Commit c4578204 authored by Rigel Kent's avatar Rigel Kent
Browse files

Minor update kotlin

parent 4b319a1a
......@@ -4,42 +4,37 @@ docs/Abuse.md
docs/AbuseMessage.md
docs/AbuseStateConstant.md
docs/AbuseStateSet.md
docs/AbuseVideo.md
docs/AbusesAccount.md
docs/AbusesApi.md
docs/AbusesComment.md
docs/AbusesVideo.md
docs/Account.md
docs/AccountAllOf.md
docs/AccountApi.md
docs/AccountBlocksApi.md
docs/AccountSummary.md
docs/AccountsApi.md
docs/Actor.md
docs/ActorImage.md
docs/ActorInfo.md
docs/ActorInfoAvatar.md
docs/AddUser.md
docs/AddUserResponse.md
docs/AddUserResponseUser.md
docs/AddUserResponseUserAccount.md
docs/Avatar.md
docs/CommentThreadPostResponse.md
docs/CommentThreadResponse.md
docs/ConfigApi.md
docs/CustomHomepage.md
docs/FeedsApi.md
docs/FileRedundancyInformation.md
docs/Follow.md
docs/GetMeVideoRating.md
docs/HomepageApi.md
docs/InlineObject.md
docs/InlineObject1.md
docs/InlineObject10.md
docs/InlineObject11.md
docs/InlineObject12.md
docs/InlineObject13.md
docs/InlineObject14.md
docs/InlineObject15.md
docs/InlineObject16.md
docs/InlineObject17.md
docs/InlineObject18.md
docs/InlineObject19.md
docs/InlineObject2.md
docs/InlineObject20.md
......@@ -49,24 +44,34 @@ docs/InlineObject23.md
docs/InlineObject24.md
docs/InlineObject25.md
docs/InlineObject26.md
docs/InlineObject27.md
docs/InlineObject28.md
docs/InlineObject29.md
docs/InlineObject3.md
docs/InlineObject30.md
docs/InlineObject4.md
docs/InlineObject5.md
docs/InlineObject6.md
docs/InlineObject7.md
docs/InlineObject8.md
docs/InlineObject9.md
docs/InlineResponse200.md
docs/InlineResponse2001.md
docs/InlineResponse20010.md
docs/InlineResponse20011.md
docs/InlineResponse20012.md
docs/InlineResponse20012VideoPlaylist.md
docs/InlineResponse20013.md
docs/InlineResponse20013VideoPlaylistElement.md
docs/InlineResponse20014.md
docs/InlineResponse20014VideoId.md
docs/InlineResponse2002.md
docs/InlineResponse2003.md
docs/InlineResponse2004.md
docs/InlineResponse2005.md
docs/InlineResponse2005VideoPlaylist.md
docs/InlineResponse2006.md
docs/InlineResponse2006VideoPlaylistElement.md
docs/InlineResponse2006Abuse.md
docs/InlineResponse2007.md
docs/InlineResponse2007VideoId.md
docs/InlineResponse2008.md
docs/InlineResponse2009.md
docs/InlineResponse204.md
docs/InlineResponse204VideoChannel.md
docs/InstanceFollowsApi.md
docs/InstanceRedundancyApi.md
docs/Job.md
......@@ -76,6 +81,7 @@ docs/LiveVideoUpdate.md
docs/LiveVideosApi.md
docs/MRSSGroupContent.md
docs/MRSSPeerLink.md
docs/MyHistoryApi.md
docs/MyNotificationsApi.md
docs/MySubscriptionsApi.md
docs/MyUserApi.md
......@@ -88,10 +94,12 @@ docs/NotificationListResponse.md
docs/NotificationSettingValue.md
docs/NotificationVideoAbuse.md
docs/NotificationVideoImport.md
docs/OAuthClient.md
docs/PlaylistElement.md
docs/Plugin.md
docs/PluginResponse.md
docs/PluginsApi.md
docs/RegisterApi.md
docs/RegisterUser.md
docs/RegisterUserChannel.md
docs/SearchApi.md
......@@ -116,7 +124,10 @@ docs/ServerConfigCustomServicesTwitter.md
docs/ServerConfigCustomSignup.md
docs/ServerConfigCustomTheme.md
docs/ServerConfigCustomTranscoding.md
docs/ServerConfigCustomTranscodingHls.md
docs/ServerConfigCustomTranscodingResolutions.md
docs/ServerConfigCustomTranscodingWebtorrent.md
docs/ServerConfigCustomUser.md
docs/ServerConfigEmail.md
docs/ServerConfigFollowings.md
docs/ServerConfigFollowingsInstance.md
......@@ -138,11 +149,15 @@ docs/ServerConfigVideoCaption.md
docs/ServerConfigVideoCaptionFile.md
docs/ServerConfigVideoFile.md
docs/ServerConfigVideoImage.md
docs/SessionApi.md
docs/UpdateMe.md
docs/UpdateUser.md
docs/User.md
docs/UserAdminFlags.md
docs/UserRole.md
docs/UserWatchingVideo.md
docs/UserWithStats.md
docs/UserWithStatsAllOf.md
docs/UsersApi.md
docs/Video.md
docs/VideoApi.md
......@@ -152,20 +167,25 @@ docs/VideoCaption.md
docs/VideoCaptionsApi.md
docs/VideoChannel.md
docs/VideoChannelCreate.md
docs/VideoChannelCreateAllOf.md
docs/VideoChannelList.md
docs/VideoChannelOwnerAccount.md
docs/VideoChannelSummary.md
docs/VideoChannelUpdate.md
docs/VideoChannelUpdateAllOf.md
docs/VideoChannelsApi.md
docs/VideoComment.md
docs/VideoCommentThreadTree.md
docs/VideoCommentsApi.md
docs/VideoConstantNumber.md
docs/VideoConstantString.md
docs/VideoConstantNumberCategory.md
docs/VideoConstantNumberLicence.md
docs/VideoConstantStringLanguage.md
docs/VideoDetails.md
docs/VideoDetailsAllOf.md
docs/VideoFile.md
docs/VideoImport.md
docs/VideoImportStateConstant.md
docs/VideoImportsList.md
docs/VideoInfo.md
docs/VideoListResponse.md
docs/VideoMirroringApi.md
......@@ -186,27 +206,42 @@ docs/VideoResolutionConstant.md
docs/VideoScheduledUpdate.md
docs/VideoStateConstant.md
docs/VideoStreamingPlaylists.md
docs/VideoStreamingPlaylistsRedundancies.md
docs/VideoStreamingPlaylistsAllOf.md
docs/VideoStreamingPlaylistsHLS.md
docs/VideoStreamingPlaylistsHLSRedundancies.md
docs/VideoUploadApi.md
docs/VideoUploadRequestCommon.md
docs/VideoUploadRequestResumable.md
docs/VideoUploadRequestResumableAllOf.md
docs/VideoUploadResponse.md
docs/VideoUploadResponseVideo.md
docs/VideoUserHistory.md
docs/VideosApi.md
gradle/wrapper/gradle-wrapper.jar
gradle/wrapper/gradle-wrapper.properties
gradlew
gradlew.bat
settings.gradle
src/main/kotlin/org/peertube/client/apis/AbusesApi.kt
src/main/kotlin/org/peertube/client/apis/AccountApi.kt
src/main/kotlin/org/peertube/client/apis/AccountBlocksApi.kt
src/main/kotlin/org/peertube/client/apis/AccountsApi.kt
src/main/kotlin/org/peertube/client/apis/ConfigApi.kt
src/main/kotlin/org/peertube/client/apis/FeedsApi.kt
src/main/kotlin/org/peertube/client/apis/HomepageApi.kt
src/main/kotlin/org/peertube/client/apis/InstanceFollowsApi.kt
src/main/kotlin/org/peertube/client/apis/InstanceRedundancyApi.kt
src/main/kotlin/org/peertube/client/apis/JobApi.kt
src/main/kotlin/org/peertube/client/apis/LiveVideosApi.kt
src/main/kotlin/org/peertube/client/apis/MyHistoryApi.kt
src/main/kotlin/org/peertube/client/apis/MyNotificationsApi.kt
src/main/kotlin/org/peertube/client/apis/MySubscriptionsApi.kt
src/main/kotlin/org/peertube/client/apis/MyUserApi.kt
src/main/kotlin/org/peertube/client/apis/PluginsApi.kt
src/main/kotlin/org/peertube/client/apis/RegisterApi.kt
src/main/kotlin/org/peertube/client/apis/SearchApi.kt
src/main/kotlin/org/peertube/client/apis/ServerBlocksApi.kt
src/main/kotlin/org/peertube/client/apis/SessionApi.kt
src/main/kotlin/org/peertube/client/apis/UsersApi.kt
src/main/kotlin/org/peertube/client/apis/VideoApi.kt
src/main/kotlin/org/peertube/client/apis/VideoBlocksApi.kt
......@@ -217,11 +252,13 @@ src/main/kotlin/org/peertube/client/apis/VideoMirroringApi.kt
src/main/kotlin/org/peertube/client/apis/VideoOwnershipChangeApi.kt
src/main/kotlin/org/peertube/client/apis/VideoPlaylistsApi.kt
src/main/kotlin/org/peertube/client/apis/VideoRatesApi.kt
src/main/kotlin/org/peertube/client/apis/VideoUploadApi.kt
src/main/kotlin/org/peertube/client/apis/VideosApi.kt
src/main/kotlin/org/peertube/client/infrastructure/ApiAbstractions.kt
src/main/kotlin/org/peertube/client/infrastructure/ApiClient.kt
src/main/kotlin/org/peertube/client/infrastructure/ApiInfrastructureResponse.kt
src/main/kotlin/org/peertube/client/infrastructure/ApplicationDelegates.kt
src/main/kotlin/org/peertube/client/infrastructure/BigDecimalAdapter.kt
src/main/kotlin/org/peertube/client/infrastructure/BigIntegerAdapter.kt
src/main/kotlin/org/peertube/client/infrastructure/ByteArrayAdapter.kt
src/main/kotlin/org/peertube/client/infrastructure/Errors.kt
src/main/kotlin/org/peertube/client/infrastructure/LocalDateAdapter.kt
......@@ -231,12 +268,12 @@ src/main/kotlin/org/peertube/client/infrastructure/RequestConfig.kt
src/main/kotlin/org/peertube/client/infrastructure/RequestMethod.kt
src/main/kotlin/org/peertube/client/infrastructure/ResponseExtensions.kt
src/main/kotlin/org/peertube/client/infrastructure/Serializer.kt
src/main/kotlin/org/peertube/client/infrastructure/URIAdapter.kt
src/main/kotlin/org/peertube/client/infrastructure/UUIDAdapter.kt
src/main/kotlin/org/peertube/client/models/Abuse.kt
src/main/kotlin/org/peertube/client/models/AbuseMessage.kt
src/main/kotlin/org/peertube/client/models/AbuseStateConstant.kt
src/main/kotlin/org/peertube/client/models/AbuseStateSet.kt
src/main/kotlin/org/peertube/client/models/AbuseVideo.kt
src/main/kotlin/org/peertube/client/models/AbusesAccount.kt
src/main/kotlin/org/peertube/client/models/AbusesComment.kt
src/main/kotlin/org/peertube/client/models/AbusesVideo.kt
......@@ -244,29 +281,23 @@ src/main/kotlin/org/peertube/client/models/Account.kt
src/main/kotlin/org/peertube/client/models/AccountAllOf.kt
src/main/kotlin/org/peertube/client/models/AccountSummary.kt
src/main/kotlin/org/peertube/client/models/Actor.kt
src/main/kotlin/org/peertube/client/models/ActorImage.kt
src/main/kotlin/org/peertube/client/models/ActorInfo.kt
src/main/kotlin/org/peertube/client/models/ActorInfoAvatar.kt
src/main/kotlin/org/peertube/client/models/AddUser.kt
src/main/kotlin/org/peertube/client/models/AddUserResponse.kt
src/main/kotlin/org/peertube/client/models/AddUserResponseUser.kt
src/main/kotlin/org/peertube/client/models/AddUserResponseUserAccount.kt
src/main/kotlin/org/peertube/client/models/Avatar.kt
src/main/kotlin/org/peertube/client/models/CommentThreadPostResponse.kt
src/main/kotlin/org/peertube/client/models/CommentThreadResponse.kt
src/main/kotlin/org/peertube/client/models/CustomHomepage.kt
src/main/kotlin/org/peertube/client/models/FileRedundancyInformation.kt
src/main/kotlin/org/peertube/client/models/Follow.kt
src/main/kotlin/org/peertube/client/models/GetMeVideoRating.kt
src/main/kotlin/org/peertube/client/models/InlineObject.kt
src/main/kotlin/org/peertube/client/models/InlineObject1.kt
src/main/kotlin/org/peertube/client/models/InlineObject10.kt
src/main/kotlin/org/peertube/client/models/InlineObject11.kt
src/main/kotlin/org/peertube/client/models/InlineObject12.kt
src/main/kotlin/org/peertube/client/models/InlineObject13.kt
src/main/kotlin/org/peertube/client/models/InlineObject14.kt
src/main/kotlin/org/peertube/client/models/InlineObject15.kt
src/main/kotlin/org/peertube/client/models/InlineObject16.kt
src/main/kotlin/org/peertube/client/models/InlineObject17.kt
src/main/kotlin/org/peertube/client/models/InlineObject18.kt
src/main/kotlin/org/peertube/client/models/InlineObject19.kt
src/main/kotlin/org/peertube/client/models/InlineObject2.kt
src/main/kotlin/org/peertube/client/models/InlineObject20.kt
......@@ -276,24 +307,34 @@ src/main/kotlin/org/peertube/client/models/InlineObject23.kt
src/main/kotlin/org/peertube/client/models/InlineObject24.kt
src/main/kotlin/org/peertube/client/models/InlineObject25.kt
src/main/kotlin/org/peertube/client/models/InlineObject26.kt
src/main/kotlin/org/peertube/client/models/InlineObject27.kt
src/main/kotlin/org/peertube/client/models/InlineObject28.kt
src/main/kotlin/org/peertube/client/models/InlineObject29.kt
src/main/kotlin/org/peertube/client/models/InlineObject3.kt
src/main/kotlin/org/peertube/client/models/InlineObject30.kt
src/main/kotlin/org/peertube/client/models/InlineObject4.kt
src/main/kotlin/org/peertube/client/models/InlineObject5.kt
src/main/kotlin/org/peertube/client/models/InlineObject6.kt
src/main/kotlin/org/peertube/client/models/InlineObject7.kt
src/main/kotlin/org/peertube/client/models/InlineObject8.kt
src/main/kotlin/org/peertube/client/models/InlineObject9.kt
src/main/kotlin/org/peertube/client/models/InlineResponse200.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2001.kt
src/main/kotlin/org/peertube/client/models/InlineResponse20010.kt
src/main/kotlin/org/peertube/client/models/InlineResponse20011.kt
src/main/kotlin/org/peertube/client/models/InlineResponse20012.kt
src/main/kotlin/org/peertube/client/models/InlineResponse20012VideoPlaylist.kt
src/main/kotlin/org/peertube/client/models/InlineResponse20013.kt
src/main/kotlin/org/peertube/client/models/InlineResponse20013VideoPlaylistElement.kt
src/main/kotlin/org/peertube/client/models/InlineResponse20014.kt
src/main/kotlin/org/peertube/client/models/InlineResponse20014VideoId.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2002.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2003.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2004.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2005.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2005VideoPlaylist.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2006.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2006VideoPlaylistElement.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2006Abuse.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2007.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2007VideoId.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2008.kt
src/main/kotlin/org/peertube/client/models/InlineResponse2009.kt
src/main/kotlin/org/peertube/client/models/InlineResponse204.kt
src/main/kotlin/org/peertube/client/models/InlineResponse204VideoChannel.kt
src/main/kotlin/org/peertube/client/models/Job.kt
src/main/kotlin/org/peertube/client/models/LiveVideoResponse.kt
src/main/kotlin/org/peertube/client/models/LiveVideoUpdate.kt
......@@ -308,6 +349,7 @@ src/main/kotlin/org/peertube/client/models/NotificationListResponse.kt
src/main/kotlin/org/peertube/client/models/NotificationSettingValue.kt
src/main/kotlin/org/peertube/client/models/NotificationVideoAbuse.kt
src/main/kotlin/org/peertube/client/models/NotificationVideoImport.kt
src/main/kotlin/org/peertube/client/models/OAuthClient.kt
src/main/kotlin/org/peertube/client/models/PlaylistElement.kt
src/main/kotlin/org/peertube/client/models/Plugin.kt
src/main/kotlin/org/peertube/client/models/PluginResponse.kt
......@@ -333,7 +375,10 @@ src/main/kotlin/org/peertube/client/models/ServerConfigCustomServicesTwitter.kt
src/main/kotlin/org/peertube/client/models/ServerConfigCustomSignup.kt
src/main/kotlin/org/peertube/client/models/ServerConfigCustomTheme.kt
src/main/kotlin/org/peertube/client/models/ServerConfigCustomTranscoding.kt
src/main/kotlin/org/peertube/client/models/ServerConfigCustomTranscodingHls.kt
src/main/kotlin/org/peertube/client/models/ServerConfigCustomTranscodingResolutions.kt
src/main/kotlin/org/peertube/client/models/ServerConfigCustomTranscodingWebtorrent.kt
src/main/kotlin/org/peertube/client/models/ServerConfigCustomUser.kt
src/main/kotlin/org/peertube/client/models/ServerConfigEmail.kt
src/main/kotlin/org/peertube/client/models/ServerConfigFollowings.kt
src/main/kotlin/org/peertube/client/models/ServerConfigFollowingsInstance.kt
......@@ -358,25 +403,33 @@ src/main/kotlin/org/peertube/client/models/ServerConfigVideoImage.kt
src/main/kotlin/org/peertube/client/models/UpdateMe.kt
src/main/kotlin/org/peertube/client/models/UpdateUser.kt
src/main/kotlin/org/peertube/client/models/User.kt
src/main/kotlin/org/peertube/client/models/UserAdminFlags.kt
src/main/kotlin/org/peertube/client/models/UserRole.kt
src/main/kotlin/org/peertube/client/models/UserWatchingVideo.kt
src/main/kotlin/org/peertube/client/models/UserWithStats.kt
src/main/kotlin/org/peertube/client/models/UserWithStatsAllOf.kt
src/main/kotlin/org/peertube/client/models/Video.kt
src/main/kotlin/org/peertube/client/models/VideoBlacklist.kt
src/main/kotlin/org/peertube/client/models/VideoCaption.kt
src/main/kotlin/org/peertube/client/models/VideoChannel.kt
src/main/kotlin/org/peertube/client/models/VideoChannelCreate.kt
src/main/kotlin/org/peertube/client/models/VideoChannelCreateAllOf.kt
src/main/kotlin/org/peertube/client/models/VideoChannelList.kt
src/main/kotlin/org/peertube/client/models/VideoChannelOwnerAccount.kt
src/main/kotlin/org/peertube/client/models/VideoChannelSummary.kt
src/main/kotlin/org/peertube/client/models/VideoChannelUpdate.kt
src/main/kotlin/org/peertube/client/models/VideoChannelUpdateAllOf.kt
src/main/kotlin/org/peertube/client/models/VideoComment.kt
src/main/kotlin/org/peertube/client/models/VideoCommentThreadTree.kt
src/main/kotlin/org/peertube/client/models/VideoConstantNumber.kt
src/main/kotlin/org/peertube/client/models/VideoConstantString.kt
src/main/kotlin/org/peertube/client/models/VideoConstantNumberMinusCategory.kt
src/main/kotlin/org/peertube/client/models/VideoConstantNumberMinusLicence.kt
src/main/kotlin/org/peertube/client/models/VideoConstantStringMinusLanguage.kt
src/main/kotlin/org/peertube/client/models/VideoDetails.kt
src/main/kotlin/org/peertube/client/models/VideoDetailsAllOf.kt
src/main/kotlin/org/peertube/client/models/VideoFile.kt
src/main/kotlin/org/peertube/client/models/VideoImport.kt
src/main/kotlin/org/peertube/client/models/VideoImportStateConstant.kt
src/main/kotlin/org/peertube/client/models/VideoImportsList.kt
src/main/kotlin/org/peertube/client/models/VideoInfo.kt
src/main/kotlin/org/peertube/client/models/VideoListResponse.kt
src/main/kotlin/org/peertube/client/models/VideoPlaylist.kt
......@@ -393,7 +446,12 @@ src/main/kotlin/org/peertube/client/models/VideoResolutionConstant.kt
src/main/kotlin/org/peertube/client/models/VideoScheduledUpdate.kt
src/main/kotlin/org/peertube/client/models/VideoStateConstant.kt
src/main/kotlin/org/peertube/client/models/VideoStreamingPlaylists.kt
src/main/kotlin/org/peertube/client/models/VideoStreamingPlaylistsRedundancies.kt
src/main/kotlin/org/peertube/client/models/VideoStreamingPlaylistsAllOf.kt
src/main/kotlin/org/peertube/client/models/VideoStreamingPlaylistsHLSRedundancies.kt
src/main/kotlin/org/peertube/client/models/VideoStreamingPlaylistsMinusHLS.kt
src/main/kotlin/org/peertube/client/models/VideoUploadRequestCommon.kt
src/main/kotlin/org/peertube/client/models/VideoUploadRequestResumable.kt
src/main/kotlin/org/peertube/client/models/VideoUploadRequestResumableAllOf.kt
src/main/kotlin/org/peertube/client/models/VideoUploadResponse.kt
src/main/kotlin/org/peertube/client/models/VideoUploadResponseVideo.kt
src/main/kotlin/org/peertube/client/models/VideoUserHistory.kt
5.0.0-beta
\ No newline at end of file
5.2.0
\ No newline at end of file
This diff is collapsed.
......@@ -2,12 +2,12 @@ group 'org.peertube'
version '1.0.0'
wrapper {
gradleVersion = '4.9'
gradleVersion = '6.8.3'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
buildscript {
ext.kotlin_version = '1.3.61'
ext.kotlin_version = '1.5.10'
repositories {
maven { url "https://repo1.maven.org/maven2" }
......@@ -28,12 +28,9 @@ test {
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.0"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "com.squareup.moshi:moshi-kotlin:1.9.2"
compile "com.squareup.moshi:moshi-adapters:1.9.2"
compile "com.squareup.okhttp3:okhttp:4.2.2"
compile "com.squareup.okhttp3:logging-interceptor:4.4.0"
testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation "com.squareup.moshi:moshi-kotlin:1.12.0"
implementation "com.squareup.okhttp3:okhttp:4.9.1"
testImplementation "io.kotlintest:kotlintest-runner-junit5:3.4.2"
}
......@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**reporterAccount** | [**Account**](Account.md) | | [optional]
**state** | [**AbuseStateConstant**](AbuseStateConstant.md) | | [optional]
**moderationComment** | **kotlin.String** | | [optional]
**video** | [**AbuseVideo**](AbuseVideo.md) | | [optional]
**video** | [**VideoInfo**](VideoInfo.md) | | [optional]
**createdAt** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional]
......
......@@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | Account id to report | [optional]
**id** | **kotlin.Int** | Account id to report | [optional]
......@@ -9,9 +9,9 @@ Method | HTTP request | Description
[**abusesAbuseIdMessagesGet**](AbusesApi.md#abusesAbuseIdMessagesGet) | **GET** /abuses/{abuseId}/messages | List messages of an abuse
[**abusesAbuseIdMessagesPost**](AbusesApi.md#abusesAbuseIdMessagesPost) | **POST** /abuses/{abuseId}/messages | Add message to an abuse
[**abusesAbuseIdPut**](AbusesApi.md#abusesAbuseIdPut) | **PUT** /abuses/{abuseId} | Update an abuse
[**abusesGet**](AbusesApi.md#abusesGet) | **GET** /abuses | List abuses
[**abusesPost**](AbusesApi.md#abusesPost) | **POST** /abuses | Report an abuse
[**usersMeAbusesGet**](AbusesApi.md#usersMeAbusesGet) | **GET** /users/me/abuses | List my abuses
[**getAbuses**](AbusesApi.md#getAbuses) | **GET** /abuses | List abuses
[**getMyAbuses**](AbusesApi.md#getMyAbuses) | **GET** /users/me/abuses | List my abuses
<a name="abusesAbuseIdDelete"></a>
......@@ -110,7 +110,7 @@ Configure OAuth2:
<a name="abusesAbuseIdMessagesGet"></a>
# **abusesAbuseIdMessagesGet**
> kotlin.collections.List&lt;AbuseMessage&gt; abusesAbuseIdMessagesGet(abuseId)
> InlineResponse2007 abusesAbuseIdMessagesGet(abuseId)
List messages of an abuse
......@@ -123,7 +123,7 @@ List messages of an abuse
val apiInstance = AbusesApi()
val abuseId : kotlin.Int = 56 // kotlin.Int | Abuse id
try {
val result : kotlin.collections.List<AbuseMessage> = apiInstance.abusesAbuseIdMessagesGet(abuseId)
val result : InlineResponse2007 = apiInstance.abusesAbuseIdMessagesGet(abuseId)
println(result)
} catch (e: ClientException) {
println("4xx response calling AbusesApi#abusesAbuseIdMessagesGet")
......@@ -142,7 +142,7 @@ Name | Type | Description | Notes
### Return type
[**kotlin.collections.List&lt;AbuseMessage&gt;**](AbuseMessage.md)
[**InlineResponse2007**](InlineResponse2007.md)
### Authorization
......@@ -157,7 +157,7 @@ Configure OAuth2:
<a name="abusesAbuseIdMessagesPost"></a>
# **abusesAbuseIdMessagesPost**
> abusesAbuseIdMessagesPost(abuseId, inlineObject12)
> abusesAbuseIdMessagesPost(abuseId, inlineObject13)
Add message to an abuse
......@@ -169,9 +169,9 @@ Add message to an abuse
val apiInstance = AbusesApi()
val abuseId : kotlin.Int = 56 // kotlin.Int | Abuse id
val inlineObject12 : InlineObject12 = // InlineObject12 |
val inlineObject13 : InlineObject13 = // InlineObject13 |
try {
apiInstance.abusesAbuseIdMessagesPost(abuseId, inlineObject12)
apiInstance.abusesAbuseIdMessagesPost(abuseId, inlineObject13)
} catch (e: ClientException) {
println("4xx response calling AbusesApi#abusesAbuseIdMessagesPost")
e.printStackTrace()
......@@ -186,7 +186,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**abuseId** | **kotlin.Int**| Abuse id |
**inlineObject12** | [**InlineObject12**](InlineObject12.md)| |
**inlineObject13** | [**InlineObject13**](InlineObject13.md)| |
### Return type
......@@ -205,7 +205,7 @@ Configure OAuth2:
<a name="abusesAbuseIdPut"></a>
# **abusesAbuseIdPut**
> abusesAbuseIdPut(abuseId, inlineObject11)
> abusesAbuseIdPut(abuseId, inlineObject12)
Update an abuse
......@@ -217,9 +217,9 @@ Update an abuse
val apiInstance = AbusesApi()
val abuseId : kotlin.Int = 56 // kotlin.Int | Abuse id
val inlineObject11 : InlineObject11 = // InlineObject11 |
val inlineObject12 : InlineObject12 = // InlineObject12 |
try {
apiInstance.abusesAbuseIdPut(abuseId, inlineObject11)
apiInstance.abusesAbuseIdPut(abuseId, inlineObject12)
} catch (e: ClientException) {
println("4xx response calling AbusesApi#abusesAbuseIdPut")
e.printStackTrace()
......@@ -234,7 +234,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**abuseId** | **kotlin.Int**| Abuse id |
**inlineObject11** | [**InlineObject11**](InlineObject11.md)| | [optional]
**inlineObject12** | [**InlineObject12**](InlineObject12.md)| | [optional]
### Return type
......@@ -251,11 +251,11 @@ Configure OAuth2:
- **Content-Type**: application/json
- **Accept**: Not defined
<a name="abusesGet"></a>
# **abusesGet**
> kotlin.collections.List&lt;Abuse&gt; abusesGet(id, predefinedReason, search, state, searchReporter, searchReportee, searchVideo, searchVideoChannel, videoIs, filter, start, count, sort)
<a name="abusesPost"></a>
# **abusesPost**
> InlineResponse2006 abusesPost(inlineObject11)
List abuses
Report an abuse
### Example
```kotlin
......@@ -264,27 +264,15 @@ List abuses
//import org.peertube.client.models.*
val apiInstance = AbusesApi()
val id : kotlin.Int = 56 // kotlin.Int | only list the report with this id
val predefinedReason : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | predefined reason the listed reports should contain
val search : kotlin.String = search_example // kotlin.String | plain search that will match with video titles, reporter names and more
val state : AbuseStateSet = // AbuseStateSet |
val searchReporter : kotlin.String = searchReporter_example // kotlin.String | only list reports of a specific reporter
val searchReportee : kotlin.String = searchReportee_example // kotlin.String | only list reports of a specific reportee
val searchVideo : kotlin.String = searchVideo_example // kotlin.String | only list reports of a specific video
val searchVideoChannel : kotlin.String = searchVideoChannel_example // kotlin.String | only list reports of a specific video channel
val videoIs : kotlin.String = videoIs_example // kotlin.String | only list blacklisted or deleted videos
val filter : kotlin.String = filter_example // kotlin.String | only list account, comment or video reports
val start : kotlin.Int = 56 // kotlin.Int | Offset used to paginate results
val count : kotlin.Int = 56 // kotlin.Int | Number of items to return
val sort : kotlin.String = sort_example // kotlin.String | Sort abuses by criteria
val inlineObject11 : InlineObject11 = // InlineObject11 |
try {
val result : kotlin.collections.List<Abuse> = apiInstance.abusesGet(id, predefinedReason, search, state, searchReporter, searchReportee, searchVideo, searchVideoChannel, videoIs, filter, start, count, sort)
val result : InlineResponse2006 = apiInstance.abusesPost(inlineObject11)
println(result)
} catch (e: ClientException) {
println("4xx response calling AbusesApi#abusesGet")
println("4xx response calling AbusesApi#abusesPost")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AbusesApi#abusesGet")
println("5xx response calling AbusesApi#abusesPost")
e.printStackTrace()
}
```
......@@ -293,23 +281,11 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **kotlin.Int**| only list the report with this id | [optional]
**predefinedReason** | [**kotlin.collections.List&lt;kotlin.String&gt;**](kotlin.String.md)| predefined reason the listed reports should contain | [optional] [enum: violentOrAbusive, hatefulOrAbusive, spamOrMisleading, privacy, rights, serverRules, thumbnails, captions]
**search** | **kotlin.String**| plain search that will match with video titles, reporter names and more | [optional]
**state** | [**AbuseStateSet**](.md)| | [optional] [enum: 1, 2, 3]
**searchReporter** | **kotlin.String**| only list reports of a specific reporter | [optional]
**searchReportee** | **kotlin.String**| only list reports of a specific reportee | [optional]
**searchVideo** | **kotlin.String**| only list reports of a specific video | [optional]
**searchVideoChannel** | **kotlin.String**| only list reports of a specific video channel | [optional]
**videoIs** | **kotlin.String**| only list blacklisted or deleted videos | [optional] [enum: deleted, blacklisted]
**filter** | **kotlin.String**| only list account, comment or video reports | [optional] [enum: video, comment, account]
**start** | **kotlin.Int**| Offset used to paginate results | [optional]
**count** | **kotlin.Int**| Number of items to return | [optional] [default to 15]
**sort** | **kotlin.String**| Sort abuses by criteria | [optional] [enum: -id, -createdAt, -state]
**inlineObject11** | [**InlineObject11**](InlineObject11.md)| |
### Return type
[**kotlin.collections.List&lt;Abuse&gt;**](Abuse.md)
[**InlineResponse2006**](InlineResponse2006.md)
### Authorization
......@@ -319,14 +295,14 @@ Configure OAuth2:
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json
<a name="abusesPost"></a>
# **abusesPost**
> abusesPost(inlineObject10)
<a name="getAbuses"></a>
# **getAbuses**
> InlineResponse2005 getAbuses(id, predefinedReason, search, state, searchReporter, searchReportee, searchVideo, searchVideoChannel, videoIs, filter, start, count, sort)
Report an abuse
List abuses
### Example
```kotlin
......@@ -335,14 +311,27 @@ Report an abuse
//import org.peertube.client.models.*
val apiInstance = AbusesApi()
val inlineObject10 : InlineObject10 = // InlineObject10 |
val id : kotlin.Int = 56 // kotlin.Int | only list the report with this id
val predefinedReason : kotlin.collections.List<kotlin.String> = // kotlin.collections.List<kotlin.String> | predefined reason the listed reports should contain
val search : kotlin.String = search_example // kotlin.String | plain search that will match with video titles, reporter names and more
val state : AbuseStateSet = // AbuseStateSet |
val searchReporter : kotlin.String = searchReporter_example // kotlin.String | only list reports of a specific reporter
val searchReportee : kotlin.String = searchReportee_example // kotlin.String | only list reports of a specific reportee
val searchVideo : kotlin.String = searchVideo_example // kotlin.String | only list reports of a specific video
val searchVideoChannel : kotlin.String = searchVideoChannel_example // kotlin.String | only list reports of a specific video channel
val videoIs : kotlin.String = videoIs_example // kotlin.String | only list deleted or blocklisted videos
val filter : kotlin.String = filter_example // kotlin.String | only list account, comment or video reports
val start : kotlin.Int = 56 // kotlin.Int | Offset used to paginate results
val count : kotlin.Int = 56 // kotlin.Int | Number of items to return
val sort : kotlin.String = sort_example // kotlin.String | Sort abuses by criteria
try {
apiInstance.abusesPost(inlineObject10)
val result : InlineResponse2005 = apiInstance.getAbuses(id, predefinedReason, search, state, searchReporter, searchReportee, searchVideo, searchVideoChannel, videoIs, filter, start, count, sort)
println(result)
} catch (e: ClientException) {
println("4xx response calling AbusesApi#abusesPost")
println("4xx response calling AbusesApi#getAbuses")
e.printStackTrace()