Skip to content

Commit

Permalink
Update OpenAPI to 10.8.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen authored and Maxr1998 committed Apr 17, 2022
1 parent 5bb723e commit d37b0e2
Show file tree
Hide file tree
Showing 141 changed files with 4,478 additions and 2,098 deletions.
275 changes: 168 additions & 107 deletions jellyfin-api/api/jellyfin-api.api

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.jellyfin.sdk.api.operations.ArtistsApi
import org.jellyfin.sdk.api.operations.AudioApi
import org.jellyfin.sdk.api.operations.BrandingApi
import org.jellyfin.sdk.api.operations.ChannelsApi
import org.jellyfin.sdk.api.operations.ClientLogApi
import org.jellyfin.sdk.api.operations.CollectionApi
import org.jellyfin.sdk.api.operations.ConfigurationApi
import org.jellyfin.sdk.api.operations.DashboardApi
Expand Down Expand Up @@ -56,14 +57,14 @@ import org.jellyfin.sdk.api.operations.SuggestionsApi
import org.jellyfin.sdk.api.operations.SyncPlayApi
import org.jellyfin.sdk.api.operations.SystemApi
import org.jellyfin.sdk.api.operations.TimeSyncApi
import org.jellyfin.sdk.api.operations.TmdbApi
import org.jellyfin.sdk.api.operations.TrailersApi
import org.jellyfin.sdk.api.operations.TvShowsApi
import org.jellyfin.sdk.api.operations.UniversalAudioApi
import org.jellyfin.sdk.api.operations.UserApi
import org.jellyfin.sdk.api.operations.UserLibraryApi
import org.jellyfin.sdk.api.operations.UserViewsApi
import org.jellyfin.sdk.api.operations.VideoAttachmentsApi
import org.jellyfin.sdk.api.operations.VideoHlsApi
import org.jellyfin.sdk.api.operations.VideosApi
import org.jellyfin.sdk.api.operations.YearsApi

Expand All @@ -85,6 +86,9 @@ public val ApiClient.brandingApi: BrandingApi
public val ApiClient.channelsApi: ChannelsApi
get() = getOrCreateApi { ChannelsApi(it) }

public val ApiClient.clientLogApi: ClientLogApi
get() = getOrCreateApi { ClientLogApi(it) }

public val ApiClient.collectionApi: CollectionApi
get() = getOrCreateApi { CollectionApi(it) }

Expand Down Expand Up @@ -217,6 +221,9 @@ public val ApiClient.systemApi: SystemApi
public val ApiClient.timeSyncApi: TimeSyncApi
get() = getOrCreateApi { TimeSyncApi(it) }

public val ApiClient.tmdbApi: TmdbApi
get() = getOrCreateApi { TmdbApi(it) }

public val ApiClient.trailersApi: TrailersApi
get() = getOrCreateApi { TrailersApi(it) }

Expand All @@ -238,9 +245,6 @@ public val ApiClient.userViewsApi: UserViewsApi
public val ApiClient.videoAttachmentsApi: VideoAttachmentsApi
get() = getOrCreateApi { VideoAttachmentsApi(it) }

public val ApiClient.videoHlsApi: VideoHlsApi
get() = getOrCreateApi { VideoHlsApi(it) }

public val ApiClient.videosApi: VideosApi
get() = getOrCreateApi { VideosApi(it) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ package org.jellyfin.sdk.api.info
import kotlin.String

public object ApiConstants {
public const val apiVersion: String = "10.7.7"
public const val apiVersion: String = "10.8.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ import org.jellyfin.sdk.api.client.extensions.`get`
import org.jellyfin.sdk.model.UUID
import org.jellyfin.sdk.model.api.BaseItemDto
import org.jellyfin.sdk.model.api.BaseItemDtoQueryResult
import org.jellyfin.sdk.model.api.BaseItemKind
import org.jellyfin.sdk.model.api.ImageType
import org.jellyfin.sdk.model.api.ItemFields
import org.jellyfin.sdk.model.api.ItemFilter
import org.jellyfin.sdk.model.api.SortOrder

public class ArtistsApi(
private val api: ApiClient,
Expand Down Expand Up @@ -76,6 +78,8 @@ public class ArtistsApi(
* string.
* @param nameLessThan Optional filter by items whose name is equally or lesser than a given input
* string.
* @param sortBy Optional. Specify one or more sort orders, comma delimited.
* @param sortOrder Sort Order - Ascending,Descending.
* @param enableImages Optional, include image information in output.
* @param enableTotalRecordCount Total record count.
*/
Expand All @@ -86,8 +90,8 @@ public class ArtistsApi(
searchTerm: String? = null,
parentId: UUID? = null,
fields: Collection<ItemFields>? = emptyList(),
excludeItemTypes: Collection<String>? = emptyList(),
includeItemTypes: Collection<String>? = emptyList(),
excludeItemTypes: Collection<BaseItemKind>? = emptyList(),
includeItemTypes: Collection<BaseItemKind>? = emptyList(),
filters: Collection<ItemFilter>? = emptyList(),
isFavorite: Boolean? = null,
mediaTypes: Collection<String>? = emptyList(),
Expand All @@ -108,6 +112,8 @@ public class ArtistsApi(
nameStartsWithOrGreater: String? = null,
nameStartsWith: String? = null,
nameLessThan: String? = null,
sortBy: Collection<String>? = emptyList(),
sortOrder: Collection<SortOrder>? = emptyList(),
enableImages: Boolean? = true,
enableTotalRecordCount: Boolean? = true,
): Response<BaseItemDtoQueryResult> {
Expand Down Expand Up @@ -141,6 +147,8 @@ public class ArtistsApi(
queryParameters["nameStartsWithOrGreater"] = nameStartsWithOrGreater
queryParameters["nameStartsWith"] = nameStartsWith
queryParameters["nameLessThan"] = nameLessThan
queryParameters["sortBy"] = sortBy
queryParameters["sortOrder"] = sortOrder
queryParameters["enableImages"] = enableImages
queryParameters["enableTotalRecordCount"] = enableTotalRecordCount
val data = null
Expand Down Expand Up @@ -214,6 +222,8 @@ public class ArtistsApi(
* string.
* @param nameLessThan Optional filter by items whose name is equally or lesser than a given input
* string.
* @param sortBy Optional. Specify one or more sort orders, comma delimited.
* @param sortOrder Sort Order - Ascending,Descending.
* @param enableImages Optional, include image information in output.
* @param enableTotalRecordCount Total record count.
*/
Expand All @@ -224,8 +234,8 @@ public class ArtistsApi(
searchTerm: String? = null,
parentId: UUID? = null,
fields: Collection<ItemFields>? = emptyList(),
excludeItemTypes: Collection<String>? = emptyList(),
includeItemTypes: Collection<String>? = emptyList(),
excludeItemTypes: Collection<BaseItemKind>? = emptyList(),
includeItemTypes: Collection<BaseItemKind>? = emptyList(),
filters: Collection<ItemFilter>? = emptyList(),
isFavorite: Boolean? = null,
mediaTypes: Collection<String>? = emptyList(),
Expand All @@ -246,6 +256,8 @@ public class ArtistsApi(
nameStartsWithOrGreater: String? = null,
nameStartsWith: String? = null,
nameLessThan: String? = null,
sortBy: Collection<String>? = emptyList(),
sortOrder: Collection<SortOrder>? = emptyList(),
enableImages: Boolean? = true,
enableTotalRecordCount: Boolean? = true,
): Response<BaseItemDtoQueryResult> {
Expand Down Expand Up @@ -279,6 +291,8 @@ public class ArtistsApi(
queryParameters["nameStartsWithOrGreater"] = nameStartsWithOrGreater
queryParameters["nameStartsWith"] = nameStartsWith
queryParameters["nameLessThan"] = nameLessThan
queryParameters["sortBy"] = sortBy
queryParameters["sortOrder"] = sortOrder
queryParameters["enableImages"] = enableImages
queryParameters["enableTotalRecordCount"] = enableTotalRecordCount
val data = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public class AudioApi(
* @param liveStreamId The live stream id.
* @param enableMpegtsM2TsMode Optional. Whether to enable the MpegtsM2Ts mode.
* @param videoCodec Optional. Specify a video codec to encode to, e.g. h264. If omitted the server
* will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
* will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx
* (deprecated), wmv.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
Expand Down Expand Up @@ -142,7 +143,7 @@ public class AudioApi(
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext? = null,
streamOptions: Map<String, String>? = emptyMap(),
streamOptions: Map<String, String?>? = emptyMap(),
): Response<ByteReadChannel> {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
Expand Down Expand Up @@ -259,7 +260,8 @@ public class AudioApi(
* @param liveStreamId The live stream id.
* @param enableMpegtsM2TsMode Optional. Whether to enable the MpegtsM2Ts mode.
* @param videoCodec Optional. Specify a video codec to encode to, e.g. h264. If omitted the server
* will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
* will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx
* (deprecated), wmv.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
Expand Down Expand Up @@ -319,7 +321,7 @@ public class AudioApi(
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext? = null,
streamOptions: Map<String, String>? = emptyMap(),
streamOptions: Map<String, String?>? = emptyMap(),
includeCredentials: Boolean = false,
): String {
val pathParameters = mutableMapOf<String, Any?>()
Expand Down Expand Up @@ -435,7 +437,8 @@ public class AudioApi(
* @param liveStreamId The live stream id.
* @param enableMpegtsM2TsMode Optional. Whether to enable the MpegtsM2Ts mode.
* @param videoCodec Optional. Specify a video codec to encode to, e.g. h264. If omitted the server
* will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
* will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx
* (deprecated), wmv.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
Expand Down Expand Up @@ -494,7 +497,7 @@ public class AudioApi(
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext? = null,
streamOptions: Map<String, String>? = emptyMap(),
streamOptions: Map<String, String?>? = emptyMap(),
): Response<ByteReadChannel> {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
Expand Down Expand Up @@ -611,7 +614,8 @@ public class AudioApi(
* @param liveStreamId The live stream id.
* @param enableMpegtsM2TsMode Optional. Whether to enable the MpegtsM2Ts mode.
* @param videoCodec Optional. Specify a video codec to encode to, e.g. h264. If omitted the server
* will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vpx, wmv.
* will auto-select using the url's extension. Options: h265, h264, mpeg4, theora, vp8, vp9, vpx
* (deprecated), wmv.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
Expand Down Expand Up @@ -671,7 +675,7 @@ public class AudioApi(
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext? = null,
streamOptions: Map<String, String>? = emptyMap(),
streamOptions: Map<String, String?>? = emptyMap(),
includeCredentials: Boolean = false,
): String {
val pathParameters = mutableMapOf<String, Any?>()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// !! WARNING
// !! DO NOT EDIT THIS FILE
//
// This file is generated by the openapi-generator module and is not meant for manual changes.
// Please read the README.md file in the openapi-generator module for additional information.
package org.jellyfin.sdk.api.operations

import kotlin.Any
import kotlin.String
import kotlin.collections.emptyMap
import org.jellyfin.sdk.api.client.ApiClient
import org.jellyfin.sdk.api.client.Response
import org.jellyfin.sdk.api.client.extensions.post
import org.jellyfin.sdk.model.api.ClientLogDocumentResponseDto

public class ClientLogApi(
private val api: ApiClient,
) : Api {
/**
* Upload a document.
*/
public suspend fun logFile(`data`: String): Response<ClientLogDocumentResponseDto> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<ClientLogDocumentResponseDto>("/ClientLog/Document", pathParameters,
queryParameters, data)
return response
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.jellyfin.sdk.api.client.ApiClient
import org.jellyfin.sdk.api.client.Response
import org.jellyfin.sdk.api.client.extensions.`get`
import org.jellyfin.sdk.model.api.ConfigurationPageInfo
import org.jellyfin.sdk.model.api.ConfigurationPageType

public class DashboardApi(
private val api: ApiClient,
Expand All @@ -24,14 +23,12 @@ public class DashboardApi(
* Gets the configuration pages.
*
* @param enableInMainMenu Whether to enable in the main menu.
* @param pageType The Jellyfin.Api.Models.ConfigurationPageInfo.
*/
public suspend fun getConfigurationPages(enableInMainMenu: Boolean? = null,
pageType: ConfigurationPageType? = null): Response<List<ConfigurationPageInfo>> {
public suspend fun getConfigurationPages(enableInMainMenu: Boolean? = null):
Response<List<ConfigurationPageInfo>> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["enableInMainMenu"] = enableInMainMenu
queryParameters["pageType"] = pageType
val data = null
val response = api.`get`<List<ConfigurationPageInfo>>("/web/ConfigurationPages", pathParameters,
queryParameters, data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import org.jellyfin.sdk.model.UUID
import org.jellyfin.sdk.model.api.DeviceInfo
import org.jellyfin.sdk.model.api.DeviceInfoQueryResult
import org.jellyfin.sdk.model.api.DeviceOptions
import org.jellyfin.sdk.model.api.DeviceOptionsDto

public class DevicesApi(
private val api: ApiClient,
Expand Down Expand Up @@ -88,7 +89,7 @@ public class DevicesApi(
*
* @param id Device Id.
*/
public suspend fun updateDeviceOptions(id: String, `data`: DeviceOptions): Response<Unit> {
public suspend fun updateDeviceOptions(id: String, `data`: DeviceOptionsDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["id"] = id
Expand Down
Loading

0 comments on commit d37b0e2

Please sign in to comment.