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

Minor update kotlin

parents
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
4.2.3
\ No newline at end of file
This diff is collapsed.
group 'org.peertube'
version '2.1.0'
wrapper {
gradleVersion = '4.9'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
maven { url "https://repo1.maven.org/maven2" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
repositories {
maven { url "https://repo1.maven.org/maven2" }
}
test {
useJUnitPlatform()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
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"
testCompile "io.kotlintest:kotlintest-runner-junit5:3.1.0"
}
# Account
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**userId** | **kotlin.String** | | [optional]
**displayName** | **kotlin.String** | | [optional]
**description** | **kotlin.String** | | [optional]
# AccountsApi
All URIs are relative to *https://peertube.cpy.re/api/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**accountsGet**](AccountsApi.md#accountsGet) | **GET** /accounts | Get all accounts
[**accountsNameGet**](AccountsApi.md#accountsNameGet) | **GET** /accounts/{name} | Get the account by name
[**accountsNameVideosGet**](AccountsApi.md#accountsNameVideosGet) | **GET** /accounts/{name}/videos | Get videos for an account, provided the name of that account
<a name="accountsGet"></a>
# **accountsGet**
> kotlin.Array&lt;Account&gt; accountsGet(start, count, sort)
Get all accounts
### Example
```kotlin
// Import classes:
//import org.peertube.client.infrastructure.*
//import org.peertube.client.models.*
val apiInstance = AccountsApi()
val start : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Offset
val count : java.math.BigDecimal = 8.14 // java.math.BigDecimal | Number of items
val sort : kotlin.String = sort_example // kotlin.String | Sort column (-createdAt for example)
try {
val result : kotlin.Array<Account> = apiInstance.accountsGet(start, count, sort)
println(result)
} catch (e: ClientException) {
println("4xx response calling AccountsApi#accountsGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AccountsApi#accountsGet")
e.printStackTrace()
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**start** | **java.math.BigDecimal**| Offset | [optional]
**count** | **java.math.BigDecimal**| Number of items | [optional]
**sort** | **kotlin.String**| Sort column (-createdAt for example) | [optional]
### Return type
[**kotlin.Array&lt;Account&gt;**](Account.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
<a name="accountsNameGet"></a>
# **accountsNameGet**
> Account accountsNameGet(name)
Get the account by name
### Example
```kotlin
// Import classes:
//import org.peertube.client.infrastructure.*
//import org.peertube.client.models.*
val apiInstance = AccountsApi()
val name : kotlin.String = name_example // kotlin.String | The name of the account (chocobozzz or chocobozzz@peertube.cpy.re for example)
try {
val result : Account = apiInstance.accountsNameGet(name)
println(result)
} catch (e: ClientException) {
println("4xx response calling AccountsApi#accountsNameGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AccountsApi#accountsNameGet")
e.printStackTrace()
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **kotlin.String**| The name of the account (chocobozzz or chocobozzz@peertube.cpy.re for example) |
### Return type
[**Account**](Account.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
<a name="accountsNameVideosGet"></a>
# **accountsNameVideosGet**
> VideoListResponse accountsNameVideosGet(name)
Get videos for an account, provided the name of that account
### Example
```kotlin
// Import classes:
//import org.peertube.client.infrastructure.*
//import org.peertube.client.models.*
val apiInstance = AccountsApi()
val name : kotlin.String = name_example // kotlin.String | The name of the account (chocobozzz or chocobozzz@peertube.cpy.re for example)
try {
val result : VideoListResponse = apiInstance.accountsNameVideosGet(name)
println(result)
} catch (e: ClientException) {
println("4xx response calling AccountsApi#accountsNameVideosGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AccountsApi#accountsNameVideosGet")
e.printStackTrace()
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **kotlin.String**| The name of the account (chocobozzz or chocobozzz@peertube.cpy.re for example) |
### Return type
[**VideoListResponse**](VideoListResponse.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
# Actor
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**url** | **kotlin.String** | | [optional]
**name** | **kotlin.String** | | [optional]
**host** | **kotlin.String** | | [optional]
**followingCount** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**followersCount** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**createdAt** | **kotlin.String** | | [optional]
**updatedAt** | **kotlin.String** | | [optional]
**avatar** | [**Avatar**](Avatar.md) | | [optional]
# AddUser
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**username** | **kotlin.String** | The user username |
**password** | **kotlin.String** | The user password |
**email** | **kotlin.String** | The user email |
**videoQuota** | **kotlin.String** | The user videoQuota |
**videoQuotaDaily** | **kotlin.String** | The user daily video quota |
**role** | [**inline**](#RoleEnum) | The user role (Admin &#x3D; 0, Moderator &#x3D; 1, User &#x3D; 2) |
<a name="RoleEnum"></a>
## Enum: role
Name | Value
---- | -----
role | 0, 1, 2
# AddUserResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**uuid** | **kotlin.String** | | [optional]
# Avatar
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**path** | **kotlin.String** | | [optional]
**createdAt** | **kotlin.String** | | [optional]
**updatedAt** | **kotlin.String** | | [optional]
# CommentThreadPostResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**comment** | [**VideoComment**](VideoComment.md) | | [optional]
# CommentThreadResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**total** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**data** | [**kotlin.Array&lt;VideoComment&gt;**](VideoComment.md) | | [optional]
# ConfigApi
All URIs are relative to *https://peertube.cpy.re/api/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**configAboutGet**](ConfigApi.md#configAboutGet) | **GET** /config/about | Get the instance about page content
[**configCustomDelete**](ConfigApi.md#configCustomDelete) | **DELETE** /config/custom | Delete the runtime configuration of the server
[**configCustomGet**](ConfigApi.md#configCustomGet) | **GET** /config/custom | Get the runtime configuration of the server
[**configCustomPut**](ConfigApi.md#configCustomPut) | **PUT** /config/custom | Set the runtime configuration of the server
[**configGet**](ConfigApi.md#configGet) | **GET** /config | Get the public configuration of the server
<a name="configAboutGet"></a>
# **configAboutGet**
> ServerConfigAbout configAboutGet()
Get the instance about page content
### Example
```kotlin
// Import classes:
//import org.peertube.client.infrastructure.*
//import org.peertube.client.models.*
val apiInstance = ConfigApi()
try {
val result : ServerConfigAbout = apiInstance.configAboutGet()
println(result)
} catch (e: ClientException) {
println("4xx response calling ConfigApi#configAboutGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ConfigApi#configAboutGet")
e.printStackTrace()
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**ServerConfigAbout**](ServerConfigAbout.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
<a name="configCustomDelete"></a>
# **configCustomDelete**
> configCustomDelete()
Delete the runtime configuration of the server
### Example
```kotlin
// Import classes:
//import org.peertube.client.infrastructure.*
//import org.peertube.client.models.*
val apiInstance = ConfigApi()
try {
apiInstance.configCustomDelete()
} catch (e: ClientException) {
println("4xx response calling ConfigApi#configCustomDelete")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ConfigApi#configCustomDelete")
e.printStackTrace()
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
null (empty response body)
### Authorization
Configure OAuth2:
ApiClient.accessToken = ""
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
<a name="configCustomGet"></a>
# **configCustomGet**
> ServerConfigCustom configCustomGet()
Get the runtime configuration of the server
### Example
```kotlin
// Import classes:
//import org.peertube.client.infrastructure.*
//import org.peertube.client.models.*
val apiInstance = ConfigApi()
try {
val result : ServerConfigCustom = apiInstance.configCustomGet()
println(result)
} catch (e: ClientException) {
println("4xx response calling ConfigApi#configCustomGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ConfigApi#configCustomGet")
e.printStackTrace()
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**ServerConfigCustom**](ServerConfigCustom.md)
### Authorization
Configure OAuth2:
ApiClient.accessToken = ""
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
<a name="configCustomPut"></a>
# **configCustomPut**
> configCustomPut()
Set the runtime configuration of the server
### Example
```kotlin
// Import classes:
//import org.peertube.client.infrastructure.*
//import org.peertube.client.models.*
val apiInstance = ConfigApi()
try {
apiInstance.configCustomPut()
} catch (e: ClientException) {
println("4xx response calling ConfigApi#configCustomPut")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ConfigApi#configCustomPut")
e.printStackTrace()
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
null (empty response body)
### Authorization
Configure OAuth2:
ApiClient.accessToken = ""
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
<a name="configGet"></a>
# **configGet**
> ServerConfig configGet()
Get the public configuration of the server
### Example
```kotlin
// Import classes:
//import org.peertube.client.infrastructure.*
//import org.peertube.client.models.*
val apiInstance = ConfigApi()
try {
val result : ServerConfig = apiInstance.configGet()
println(result)
} catch (e: ClientException) {
println("4xx response calling ConfigApi#configGet")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ConfigApi#configGet")
e.printStackTrace()
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**ServerConfig**](ServerConfig.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
# Follow
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**follower** | [**Actor**](Actor.md) | | [optional]
**following** | [**Actor**](Actor.md) | | [optional]
**score** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**state** | [**inline**](#StateEnum) | | [optional]
**createdAt** | **kotlin.String** | | [optional]
**updatedAt** | **kotlin.String** | | [optional]
<a name="StateEnum"></a>
## Enum: state
Name | Value
---- | -----
state | pending, accepted
# GetMeVideoRating
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **kotlin.String** | Id of the video |
**rating** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | Rating of the video |
# InlineObject
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**avatarfile** | [**java.io.File**](java.io.File.md) | The file to upload. | [optional]
# InlineObject1
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**thumbnailfile** | [**java.io.File**](java.io.File.md) | Video thumbnail file | [optional]
**previewfile** | [**java.io.File**](java.io.File.md) | Video preview file | [optional]
**category** | **kotlin.String** | Video category | [optional]
**licence** | **kotlin.String** | Video licence | [optional]
**language** | **kotlin.String** | Video language | [optional]
**description** | **kotlin.String** | Video description | [optional]
**waitTranscoding** | **kotlin.String** | Whether or not we wait transcoding before publish the video | [optional]
**support** | **kotlin.String** | Text describing how to support the video uploader | [optional]
**nsfw** | **kotlin.String** | Whether or not this video contains sensitive content | [optional]
**name** | **kotlin.String** | Video name | [optional]
**tags** | **kotlin.Array&lt;kotlin.String&gt;** | Video tags (maximum 5 tags each between 2 and 30 characters) | [optional]
**commentsEnabled** | **kotlin.String** | Enable or disable comments for this video | [optional]
**originallyPublishedAt** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Date when the content was originally published | [optional]
**scheduleUpdate** | [**VideoScheduledUpdate**](VideoScheduledUpdate.md) | | [optional]
# InlineObject2
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**username** | **kotlin.String** | |
# InlineObject3
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------