Update OpenAPI spec (#160)

This commit is contained in:
Niels van Velzen 2020-12-09 21:03:24 +01:00 committed by GitHub
parent a884dd236c
commit efd06bde0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
59 changed files with 1012 additions and 249 deletions

View File

@ -80,7 +80,7 @@ public class ArtistsApi(
startIndex: Int? = null,
limit: Int? = null,
searchTerm: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
includeItemTypes: List<String>? = emptyList(),
@ -218,7 +218,7 @@ public class ArtistsApi(
startIndex: Int? = null,
limit: Int? = null,
searchTerm: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
includeItemTypes: List<String>? = emptyList(),

View File

@ -82,7 +82,7 @@ public class AudioApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -135,7 +135,7 @@ public class AudioApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -187,7 +187,7 @@ public class AudioApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -258,7 +258,7 @@ public class AudioApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -312,7 +312,7 @@ public class AudioApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -365,7 +365,7 @@ public class AudioApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -434,7 +434,7 @@ public class AudioApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -487,7 +487,7 @@ public class AudioApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -539,7 +539,7 @@ public class AudioApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -610,7 +610,7 @@ public class AudioApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -664,7 +664,7 @@ public class AudioApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -717,7 +717,7 @@ public class AudioApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context

View File

@ -59,7 +59,7 @@ public class ChannelsApi(
*
* @param channelId Channel id.
*/
public suspend fun getChannelFeatures(channelId: String): Response<ChannelFeatures> {
public suspend fun getChannelFeatures(channelId: UUID): Response<ChannelFeatures> {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["channelId"] = channelId
val queryParameters = emptyMap<String, Any?>()

View File

@ -62,7 +62,7 @@ public class ConfigurationApi(
* @param key Configuration key.
* @param includeCredentials Add the access token to the url to make an authenticated request.
*/
public fun getNamedConfigurationUrl(key: String, includeCredentials: Boolean = false): String {
public fun getNamedConfigurationUrl(key: String, includeCredentials: Boolean = true): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["key"] = key
val queryParameters = emptyMap<String, Any?>()

View File

@ -86,7 +86,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -142,7 +142,7 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -197,7 +197,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -273,7 +273,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -330,12 +330,12 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
streamOptions: Map<String, String>? = null,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
@ -386,7 +386,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -455,7 +455,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -508,7 +508,7 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -560,7 +560,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -631,7 +631,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -685,12 +685,12 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
streamOptions: Map<String, String>? = null,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
@ -738,7 +738,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -807,7 +807,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -861,7 +861,7 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -914,7 +914,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -986,7 +986,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -1041,13 +1041,13 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
streamOptions: Map<String, String>? = null,
enableAdaptiveBitrateStreaming: Boolean,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
@ -1095,7 +1095,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -1168,7 +1168,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -1223,7 +1223,7 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -1277,7 +1277,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -1352,7 +1352,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -1408,12 +1408,12 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
streamOptions: Map<String, String>? = null,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
@ -1463,7 +1463,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -1531,7 +1531,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -1583,7 +1583,7 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -1634,7 +1634,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -1704,7 +1704,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -1757,12 +1757,12 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
streamOptions: Map<String, String>? = null,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
@ -1809,7 +1809,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -1877,7 +1877,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -1930,7 +1930,7 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -1982,7 +1982,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -2053,7 +2053,7 @@ public class DynamicHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -2107,13 +2107,13 @@ public class DynamicHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
streamOptions: Map<String, String>? = null,
enableAdaptiveBitrateStreaming: Boolean,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
@ -2160,7 +2160,7 @@ public class DynamicHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context

View File

@ -29,7 +29,7 @@ public class FilterApi(
*/
public suspend fun getQueryFiltersLegacy(
userId: UUID? = null,
parentId: String? = null,
parentId: UUID? = null,
includeItemTypes: List<String>? = emptyList(),
mediaTypes: List<String>? = emptyList()
): Response<QueryFiltersLegacy> {
@ -63,7 +63,7 @@ public class FilterApi(
*/
public suspend fun getQueryFilters(
userId: UUID? = null,
parentId: String? = null,
parentId: UUID? = null,
includeItemTypes: List<String>? = emptyList(),
isAiring: Boolean? = null,
isMovie: Boolean? = null,

View File

@ -52,7 +52,7 @@ public class GenresApi(
startIndex: Int? = null,
limit: Int? = null,
searchTerm: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
includeItemTypes: List<String>? = emptyList(),

View File

@ -173,7 +173,7 @@ public class HlsSegmentApi(
public fun getHlsPlaylistLegacyUrl(
itemId: String,
playlistId: String,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId

View File

@ -116,7 +116,7 @@ public class ItemLookupApi(
public fun getRemoteSearchImageUrl(
imageUrl: String,
providerName: String,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()

View File

@ -183,7 +183,7 @@ public class ItemsApi(
recursive: Boolean? = null,
searchTerm: String? = null,
sortOrder: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
includeItemTypes: List<String>? = emptyList(),
@ -476,7 +476,7 @@ public class ItemsApi(
recursive: Boolean? = null,
searchTerm: String? = null,
sortOrder: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
includeItemTypes: List<String>? = emptyList(),
@ -642,7 +642,7 @@ public class ItemsApi(
startIndex: Int? = null,
limit: Int? = null,
searchTerm: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
mediaTypes: List<String>? = emptyList(),
enableUserData: Boolean? = null,

View File

@ -33,7 +33,7 @@ public class LibraryApi(
*
* @param ids The item ids.
*/
public suspend fun deleteItems(ids: List<String>? = emptyList()): Response<Unit> {
public suspend fun deleteItems(ids: List<UUID>? = emptyList()): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["ids"] = ids
@ -201,7 +201,7 @@ public class LibraryApi(
* @param itemId The item id.
* @param includeCredentials Add the access token to the url to make an authenticated request.
*/
public fun getFileUrl(itemId: UUID, includeCredentials: Boolean = false): String {
public fun getFileUrl(itemId: UUID, includeCredentials: Boolean = true): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
val queryParameters = emptyMap<String, Any?>()

View File

@ -289,7 +289,7 @@ public class LiveTvApi(
*
* @param includeCredentials Add the access token to the url to make an authenticated request.
*/
public fun getSchedulesDirectCountriesUrl(includeCredentials: Boolean = false): String {
public fun getSchedulesDirectCountriesUrl(includeCredentials: Boolean = true): String {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
return api.createUrl("/LiveTv/ListingProviders/SchedulesDirect/Countries", pathParameters,

View File

@ -15,9 +15,9 @@ import kotlin.String
import kotlin.Unit
import org.jellyfin.apiclient.api.client.KtorClient
import org.jellyfin.apiclient.api.client.Response
import org.jellyfin.apiclient.model.api.DeviceProfileDto
import org.jellyfin.apiclient.model.api.LiveStreamResponse
import org.jellyfin.apiclient.model.api.OpenLiveStreamDto
import org.jellyfin.apiclient.model.api.PlaybackInfoDto
import org.jellyfin.apiclient.model.api.PlaybackInfoResponse
public class MediaInfoApi(
@ -41,7 +41,8 @@ public class MediaInfoApi(
}
/**
* Gets live playback media info for an item.
* For backwards compatibility parameters can be sent via Query or Body, with Query having higher
* precedence.
*
* @param itemId The item id.
* @param userId The user id.
@ -69,13 +70,13 @@ public class MediaInfoApi(
maxAudioChannels: Int? = null,
mediaSourceId: String? = null,
liveStreamId: String? = null,
autoOpenLiveStream: Boolean = false,
enableDirectPlay: Boolean = true,
enableDirectStream: Boolean = true,
enableTranscoding: Boolean = true,
allowVideoStreamCopy: Boolean = true,
allowAudioStreamCopy: Boolean = true,
`data`: DeviceProfileDto
autoOpenLiveStream: Boolean? = null,
enableDirectPlay: Boolean? = null,
enableDirectStream: Boolean? = null,
enableTranscoding: Boolean? = null,
allowVideoStreamCopy: Boolean? = null,
allowAudioStreamCopy: Boolean? = null,
`data`: PlaybackInfoDto
): Response<PlaybackInfoResponse> {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
@ -181,7 +182,7 @@ public class MediaInfoApi(
* @param size The bitrate. Defaults to 102400.
* @param includeCredentials Add the access token to the url to make an authenticated request.
*/
public fun getBitrateTestBytesUrl(size: Int, includeCredentials: Boolean = false): String {
public fun getBitrateTestBytesUrl(size: Int, includeCredentials: Boolean = true): String {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["size"] = size

View File

@ -30,7 +30,7 @@ public class MoviesApi(
*/
public suspend fun getMovieRecommendations(
userId: UUID? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
categoryLimit: Int = 5,
itemLimit: Int = 8

View File

@ -54,7 +54,7 @@ public class MusicGenresApi(
startIndex: Int? = null,
limit: Int? = null,
searchTerm: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
includeItemTypes: List<String>? = emptyList(),

View File

@ -35,7 +35,7 @@ public class PackageApi(
* @param name The name of the package.
* @param assemblyGuid The GUID of the associated assembly.
*/
public suspend fun getPackageInfo(name: String, assemblyGuid: String? = null):
public suspend fun getPackageInfo(name: String, assemblyGuid: UUID? = null):
Response<PackageInfo> {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["name"] = name
@ -56,7 +56,7 @@ public class PackageApi(
*/
public suspend fun installPackage(
name: String,
assemblyGuid: String? = null,
assemblyGuid: UUID? = null,
version: String? = null,
repositoryUrl: String? = null
): Response<Unit> {

View File

@ -54,7 +54,7 @@ public class PersonsApi(
enableImageTypes: List<ImageType>? = emptyList(),
excludePersonTypes: List<String>? = emptyList(),
personTypes: List<String>? = emptyList(),
appearsInItemId: String? = null,
appearsInItemId: UUID? = null,
userId: UUID? = null,
enableImages: Boolean? = true
): Response<BaseItemDtoQueryResult> {

View File

@ -53,7 +53,7 @@ public class SearchApi(
includeItemTypes: List<String>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
mediaTypes: List<String>? = emptyList(),
parentId: String? = null,
parentId: UUID? = null,
isMovie: Boolean? = null,
isSeries: Boolean? = null,
isNews: Boolean? = null,

View File

@ -53,7 +53,7 @@ public class StudiosApi(
startIndex: Int? = null,
limit: Int? = null,
searchTerm: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
includeItemTypes: List<String>? = emptyList(),

View File

@ -56,7 +56,7 @@ public class SubtitleApi(
* @param name The name of the fallback font file to get.
* @param includeCredentials Add the access token to the url to make an authenticated request.
*/
public fun getFallbackFontUrl(name: String, includeCredentials: Boolean = false): String {
public fun getFallbackFontUrl(name: String, includeCredentials: Boolean = true): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["name"] = name
val queryParameters = emptyMap<String, Any?>()
@ -239,7 +239,7 @@ public class SubtitleApi(
index: Int,
mediaSourceId: String,
segmentLength: Int,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId

View File

@ -5,54 +5,49 @@
// Please read the README.md file in the openapi-generator module for additional information.
package org.jellyfin.apiclient.api.operations
import java.time.LocalDateTime
import java.util.UUID
import kotlin.Any
import kotlin.Boolean
import kotlin.Double
import kotlin.Long
import kotlin.String
import kotlin.Unit
import kotlin.collections.List
import org.jellyfin.apiclient.api.client.KtorClient
import org.jellyfin.apiclient.api.client.Response
import org.jellyfin.apiclient.model.api.GroupInfoView
import org.jellyfin.apiclient.model.api.BufferRequestDto
import org.jellyfin.apiclient.model.api.GroupInfoDto
import org.jellyfin.apiclient.model.api.IgnoreWaitRequestDto
import org.jellyfin.apiclient.model.api.JoinGroupRequestDto
import org.jellyfin.apiclient.model.api.MovePlaylistItemRequestDto
import org.jellyfin.apiclient.model.api.NewGroupRequestDto
import org.jellyfin.apiclient.model.api.NextItemRequestDto
import org.jellyfin.apiclient.model.api.PingRequestDto
import org.jellyfin.apiclient.model.api.PlayRequestDto
import org.jellyfin.apiclient.model.api.PreviousItemRequestDto
import org.jellyfin.apiclient.model.api.QueueRequestDto
import org.jellyfin.apiclient.model.api.ReadyRequestDto
import org.jellyfin.apiclient.model.api.RemoveFromPlaylistRequestDto
import org.jellyfin.apiclient.model.api.SeekRequestDto
import org.jellyfin.apiclient.model.api.SetPlaylistItemRequestDto
import org.jellyfin.apiclient.model.api.SetRepeatModeRequestDto
import org.jellyfin.apiclient.model.api.SetShuffleModeRequestDto
public class SyncPlayApi(
private val api: KtorClient
) {
/**
* Request group wait in SyncPlay group while buffering.
*
* @param when When the request has been made by the client.
* @param positionTicks The playback position in ticks.
* @param bufferingDone Whether the buffering is done.
* Notify SyncPlay group that member is buffering.
*/
public suspend fun syncPlayBuffering(
`when`: LocalDateTime,
positionTicks: Long,
bufferingDone: Boolean
): Response<Unit> {
public suspend fun syncPlayBuffering(`data`: BufferRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["when"] = `when`
queryParameters["positionTicks"] = positionTicks
queryParameters["bufferingDone"] = bufferingDone
val data = null
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/Buffering", pathParameters, queryParameters, data)
return response
}
/**
* Join an existing SyncPlay group.
*
* @param groupId The sync play group id.
*/
public suspend fun syncPlayJoinGroup(groupId: UUID): Response<Unit> {
public suspend fun syncPlayJoinGroup(`data`: JoinGroupRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["groupId"] = groupId
val data = null
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/Join", pathParameters, queryParameters, data)
return response
}
@ -70,30 +65,46 @@ public class SyncPlayApi(
/**
* Gets all SyncPlay groups.
*
* @param filterItemId Optional. Filter by item id.
*/
public suspend fun syncPlayGetGroups(filterItemId: UUID? = null): Response<List<GroupInfoView>> {
public suspend fun syncPlayGetGroups(): Response<List<GroupInfoDto>> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["filterItemId"] = filterItemId
val queryParameters = emptyMap<String, Any?>()
val data = null
val response = api.`get`<List<GroupInfoView>>("/SyncPlay/List", pathParameters, queryParameters,
val response = api.`get`<List<GroupInfoDto>>("/SyncPlay/List", pathParameters, queryParameters,
data)
return response
}
/**
* Request to move an item in the playlist in SyncPlay group.
*/
public suspend fun syncPlayMovePlaylistItem(`data`: MovePlaylistItemRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/MovePlaylistItem", pathParameters, queryParameters, data)
return response
}
/**
* Create a new SyncPlay group.
*/
public suspend fun syncPlayCreateGroup(): Response<Unit> {
public suspend fun syncPlayCreateGroup(`data`: NewGroupRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val data = null
val response = api.post<Unit>("/SyncPlay/New", pathParameters, queryParameters, data)
return response
}
/**
* Request next item in SyncPlay group.
*/
public suspend fun syncPlayNextItem(`data`: NextItemRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/NextItem", pathParameters, queryParameters, data)
return response
}
/**
* Request pause in SyncPlay group.
*/
@ -107,40 +118,135 @@ public class SyncPlayApi(
/**
* Update session ping.
*
* @param ping The ping.
*/
public suspend fun syncPlayPing(ping: Double): Response<Unit> {
public suspend fun syncPlayPing(`data`: PingRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["ping"] = ping
val data = null
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/Ping", pathParameters, queryParameters, data)
return response
}
/**
* Request play in SyncPlay group.
* Request previous item in SyncPlay group.
*/
public suspend fun syncPlayPlay(): Response<Unit> {
public suspend fun syncPlayPreviousItem(`data`: PreviousItemRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val data = null
val response = api.post<Unit>("/SyncPlay/Play", pathParameters, queryParameters, data)
val response = api.post<Unit>("/SyncPlay/PreviousItem", pathParameters, queryParameters, data)
return response
}
/**
* Request to queue items to the playlist of a SyncPlay group.
*/
public suspend fun syncPlayQueue(`data`: QueueRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/Queue", pathParameters, queryParameters, data)
return response
}
/**
* Notify SyncPlay group that member is ready for playback.
*/
public suspend fun syncPlayReady(`data`: ReadyRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/Ready", pathParameters, queryParameters, data)
return response
}
/**
* Request to remove items from the playlist in SyncPlay group.
*/
public suspend fun syncPlayRemoveFromPlaylist(`data`: RemoveFromPlaylistRequestDto):
Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/RemoveFromPlaylist", pathParameters, queryParameters,
data)
return response
}
/**
* Request seek in SyncPlay group.
*
* @param positionTicks The playback position in ticks.
*/
public suspend fun syncPlaySeek(positionTicks: Long): Response<Unit> {
public suspend fun syncPlaySeek(`data`: SeekRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["positionTicks"] = positionTicks
val data = null
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/Seek", pathParameters, queryParameters, data)
return response
}
/**
* Request SyncPlay group to ignore member during group-wait.
*/
public suspend fun syncPlaySetIgnoreWait(`data`: IgnoreWaitRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/SetIgnoreWait", pathParameters, queryParameters, data)
return response
}
/**
* Request to set new playlist in SyncPlay group.
*/
public suspend fun syncPlaySetNewQueue(`data`: PlayRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/SetNewQueue", pathParameters, queryParameters, data)
return response
}
/**
* Request to change playlist item in SyncPlay group.
*/
public suspend fun syncPlaySetPlaylistItem(`data`: SetPlaylistItemRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/SetPlaylistItem", pathParameters, queryParameters, data)
return response
}
/**
* Request to set repeat mode in SyncPlay group.
*/
public suspend fun syncPlaySetRepeatMode(`data`: SetRepeatModeRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/SetRepeatMode", pathParameters, queryParameters, data)
return response
}
/**
* Request to set shuffle mode in SyncPlay group.
*/
public suspend fun syncPlaySetShuffleMode(`data`: SetShuffleModeRequestDto): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val response = api.post<Unit>("/SyncPlay/SetShuffleMode", pathParameters, queryParameters, data)
return response
}
/**
* Request stop in SyncPlay group.
*/
public suspend fun syncPlayStop(): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val data = null
val response = api.post<Unit>("/SyncPlay/Stop", pathParameters, queryParameters, data)
return response
}
/**
* Request unpause in SyncPlay group.
*/
public suspend fun syncPlayUnpause(): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val data = null
val response = api.post<Unit>("/SyncPlay/Unpause", pathParameters, queryParameters, data)
return response
}
}

View File

@ -15,7 +15,7 @@ public class TimeSyncApi(
private val api: KtorClient
) {
/**
* Gets the current utc time.
* Gets the current UTC time.
*/
public suspend fun getUtcTime(): Response<UtcTimeResponse> {
val pathParameters = emptyMap<String, Any?>()

View File

@ -181,7 +181,7 @@ public class TrailersApi(
recursive: Boolean? = null,
searchTerm: String? = null,
sortOrder: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
filters: List<ItemFilter>? = emptyList(),

View File

@ -46,14 +46,14 @@ public class TvShowsApi(
* PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
*/
public suspend fun getEpisodes(
seriesId: String,
seriesId: UUID,
userId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
season: Int? = null,
seasonId: String? = null,
seasonId: UUID? = null,
isMissing: Boolean? = null,
adjacentTo: String? = null,
startItemId: String? = null,
startItemId: UUID? = null,
startIndex: Int? = null,
limit: Int? = null,
enableImages: Boolean? = null,
@ -103,7 +103,7 @@ public class TvShowsApi(
* @param enableUserData Optional. Include user data.
*/
public suspend fun getSeasons(
seriesId: String,
seriesId: UUID,
userId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
isSpecialSeason: Boolean? = null,
@ -155,7 +155,7 @@ public class TvShowsApi(
limit: Int? = null,
fields: List<ItemFields>? = emptyList(),
seriesId: String? = null,
parentId: String? = null,
parentId: UUID? = null,
enableImges: Boolean? = null,
imageTypeLimit: Int? = null,
enableImageTypes: List<ImageType>? = emptyList(),
@ -201,7 +201,7 @@ public class TvShowsApi(
startIndex: Int? = null,
limit: Int? = null,
fields: List<ItemFields>? = emptyList(),
parentId: String? = null,
parentId: UUID? = null,
enableImges: Boolean? = null,
imageTypeLimit: Int? = null,
enableImageTypes: List<ImageType>? = emptyList(),

View File

@ -133,7 +133,7 @@ public class UniversalAudioApi(
enableRemoteMedia: Boolean? = null,
breakOnNonKeyFrames: Boolean,
enableRedirection: Boolean,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId

View File

@ -82,7 +82,7 @@ public class VideoHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -138,7 +138,7 @@ public class VideoHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -193,7 +193,7 @@ public class VideoHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -267,7 +267,7 @@ public class VideoHlsApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -324,7 +324,7 @@ public class VideoHlsApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -332,7 +332,7 @@ public class VideoHlsApi(
maxWidth: Int? = null,
maxHeight: Int? = null,
enableSubtitlesInManifest: Boolean? = null,
includeCredentials: Boolean = false
includeCredentials: Boolean = true
): String {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["itemId"] = itemId
@ -380,7 +380,7 @@ public class VideoHlsApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context

View File

@ -86,7 +86,7 @@ public class VideosApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -140,7 +140,7 @@ public class VideosApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -193,7 +193,7 @@ public class VideosApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -265,7 +265,7 @@ public class VideosApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -320,7 +320,7 @@ public class VideosApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -374,7 +374,7 @@ public class VideosApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -477,7 +477,7 @@ public class VideosApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -530,7 +530,7 @@ public class VideosApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -582,7 +582,7 @@ public class VideosApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -654,7 +654,7 @@ public class VideosApi(
* @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.
* @param subtitleCodec Optional. Specify a subtitle codec to encode to.
* @param transcodingReasons Optional. The transcoding reason.
* @param transcodeReasons Optional. The transcoding reason.
* @param audioStreamIndex Optional. The index of the audio stream to use. If omitted the first
* audio stream will be used.
* @param videoStreamIndex Optional. The index of the video stream to use. If omitted the first
@ -708,7 +708,7 @@ public class VideosApi(
enableMpegtsM2TsMode: Boolean? = null,
videoCodec: String? = null,
subtitleCodec: String? = null,
transcodingReasons: String? = null,
transcodeReasons: String? = null,
audioStreamIndex: Int? = null,
videoStreamIndex: Int? = null,
context: EncodingContext,
@ -761,7 +761,7 @@ public class VideosApi(
queryParameters["enableMpegtsM2TsMode"] = enableMpegtsM2TsMode
queryParameters["videoCodec"] = videoCodec
queryParameters["subtitleCodec"] = subtitleCodec
queryParameters["transcodingReasons"] = transcodingReasons
queryParameters["transcodeReasons"] = transcodeReasons
queryParameters["audioStreamIndex"] = audioStreamIndex
queryParameters["videoStreamIndex"] = videoStreamIndex
queryParameters["context"] = context
@ -773,12 +773,12 @@ public class VideosApi(
/**
* Merges videos into a single record.
*
* @param itemIds Item id list. This allows multiple, comma delimited.
* @param ids Item id list. This allows multiple, comma delimited.
*/
public suspend fun mergeVersions(itemIds: List<UUID> = emptyList()): Response<Unit> {
public suspend fun mergeVersions(ids: List<UUID> = emptyList()): Response<Unit> {
val pathParameters = emptyMap<String, Any?>()
val queryParameters = mutableMapOf<String, Any?>()
queryParameters["itemIds"] = itemIds
queryParameters["ids"] = ids
val data = null
val response = api.post<Unit>("/Videos/MergeVersions", pathParameters, queryParameters, data)
return response

View File

@ -49,7 +49,7 @@ public class YearsApi(
startIndex: Int? = null,
limit: Int? = null,
sortOrder: String? = null,
parentId: String? = null,
parentId: UUID? = null,
fields: List<ItemFields>? = emptyList(),
excludeItemTypes: List<String>? = emptyList(),
includeItemTypes: List<String>? = emptyList(),

View File

@ -148,7 +148,7 @@ public data class BaseItemDto(
* Gets or sets the channel identifier.
*/
@SerialName("ChannelId")
public val channelId: UUID,
public val channelId: UUID? = null,
@SerialName("ChannelName")
public val channelName: String? = null,
/**
@ -244,7 +244,7 @@ public data class BaseItemDto(
* Gets or sets the parent id.
*/
@SerialName("ParentId")
public val parentId: UUID,
public val parentId: UUID? = null,
/**
* Gets or sets the type.
*/
@ -303,12 +303,12 @@ public data class BaseItemDto(
* Gets or sets the series id.
*/
@SerialName("SeriesId")
public val seriesId: UUID,
public val seriesId: UUID? = null,
/**
* Gets or sets the season identifier.
*/
@SerialName("SeasonId")
public val seasonId: UUID,
public val seasonId: UUID? = null,
/**
* Gets or sets the special feature count.
*/
@ -373,7 +373,7 @@ public data class BaseItemDto(
* Gets or sets the album id.
*/
@SerialName("AlbumId")
public val albumId: UUID,
public val albumId: UUID? = null,
/**
* Gets or sets the album image tag.
*/

View File

@ -0,0 +1,48 @@
// !! 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.
@file:UseSerializers(
LocalDateTimeSerializer::class,
UUIDSerializer::class
)
package org.jellyfin.apiclient.model.api
import java.time.LocalDateTime
import java.util.UUID
import kotlin.Boolean
import kotlin.Long
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.LocalDateTimeSerializer
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class BufferRequestDto.
*/
@Serializable
public data class BufferRequestDto(
/**
* Gets or sets when the request has been made by the client.
*/
@SerialName("When")
public val `when`: LocalDateTime,
/**
* Gets or sets the position ticks.
*/
@SerialName("PositionTicks")
public val positionTicks: Long,
/**
* Gets or sets a value indicating whether the client playback is unpaused.
*/
@SerialName("IsPlaying")
public val isPlaying: Boolean,
/**
* Gets or sets the playlist item identifier of the playing item.
*/
@SerialName("PlaylistItemId")
public val playlistItemId: UUID
)

View File

@ -0,0 +1,50 @@
// !! 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.
@file:UseSerializers(
UUIDSerializer::class,
LocalDateTimeSerializer::class
)
package org.jellyfin.apiclient.model.api
import java.time.LocalDateTime
import java.util.UUID
import kotlin.String
import kotlin.collections.List
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.LocalDateTimeSerializer
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class GroupInfoDto.
*/
@Serializable
public data class GroupInfoDto(
/**
* Gets the group identifier.
*/
@SerialName("GroupId")
public val groupId: UUID,
/**
* Gets the group name.
*/
@SerialName("GroupName")
public val groupName: String? = null,
@SerialName("State")
public val state: GroupStateType? = null,
/**
* Gets the participants.
*/
@SerialName("Participants")
public val participants: List<String>? = null,
/**
* Gets the date when this DTO has been created.
*/
@SerialName("LastUpdatedAt")
public val lastUpdatedAt: LocalDateTime
)

View File

@ -1,44 +0,0 @@
// !! 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.apiclient.model.api
import kotlin.Long
import kotlin.String
import kotlin.collections.List
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Class GroupInfoView.
*/
@Serializable
public data class GroupInfoView(
/**
* Gets or sets the group identifier.
*/
@SerialName("GroupId")
public val groupId: String? = null,
/**
* Gets or sets the playing item id.
*/
@SerialName("PlayingItemId")
public val playingItemId: String? = null,
/**
* Gets or sets the playing item name.
*/
@SerialName("PlayingItemName")
public val playingItemName: String? = null,
/**
* Gets or sets the position ticks.
*/
@SerialName("PositionTicks")
public val positionTicks: Long,
/**
* Gets or sets the participants.
*/
@SerialName("Participants")
public val participants: List<String>? = null
)

View File

@ -0,0 +1,20 @@
// !! 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.apiclient.model.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Enum GroupQueueMode.
*/
@Serializable
public enum class GroupQueueMode {
@SerialName("Queue")
QUEUE,
@SerialName("QueueNext")
QUEUE_NEXT,
}

View File

@ -0,0 +1,22 @@
// !! 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.apiclient.model.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Enum GroupRepeatMode.
*/
@Serializable
public enum class GroupRepeatMode {
@SerialName("RepeatOne")
REPEAT_ONE,
@SerialName("RepeatAll")
REPEAT_ALL,
@SerialName("RepeatNone")
REPEAT_NONE,
}

View File

@ -0,0 +1,20 @@
// !! 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.apiclient.model.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Enum GroupShuffleMode.
*/
@Serializable
public enum class GroupShuffleMode {
@SerialName("Sorted")
SORTED,
@SerialName("Shuffle")
SHUFFLE,
}

View File

@ -0,0 +1,24 @@
// !! 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.apiclient.model.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Enum GroupState.
*/
@Serializable
public enum class GroupStateType {
@SerialName("Idle")
IDLE,
@SerialName("Waiting")
WAITING,
@SerialName("Paused")
PAUSED,
@SerialName("Playing")
PLAYING,
}

View File

@ -21,10 +21,10 @@ public enum class GroupUpdateType {
GROUP_JOINED,
@SerialName("GroupLeft")
GROUP_LEFT,
@SerialName("GroupWait")
GROUP_WAIT,
@SerialName("PrepareSession")
PREPARE_SESSION,
@SerialName("StateUpdate")
STATE_UPDATE,
@SerialName("PlayQueue")
PLAY_QUEUE,
@SerialName("NotInGroup")
NOT_IN_GROUP,
@SerialName("GroupDoesNotExist")

View File

@ -0,0 +1,22 @@
// !! 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.apiclient.model.api
import kotlin.Boolean
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Class IgnoreWaitRequestDto.
*/
@Serializable
public data class IgnoreWaitRequestDto(
/**
* Gets or sets a value indicating whether the client should be ignored.
*/
@SerialName("IgnoreWait")
public val ignoreWait: Boolean
)

View File

@ -0,0 +1,26 @@
// !! 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class JoinGroupRequestDto.
*/
@Serializable
public data class JoinGroupRequestDto(
/**
* Gets or sets the group identifier.
*/
@SerialName("GroupId")
public val groupId: UUID
)

View File

@ -0,0 +1,32 @@
// !! 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlin.Int
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class MovePlaylistItemRequestDto.
*/
@Serializable
public data class MovePlaylistItemRequestDto(
/**
* Gets or sets the playlist identifier of the item.
*/
@SerialName("PlaylistItemId")
public val playlistItemId: UUID,
/**
* Gets or sets the new position.
*/
@SerialName("NewIndex")
public val newIndex: Int
)

View File

@ -0,0 +1,22 @@
// !! 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.apiclient.model.api
import kotlin.String
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Class NewGroupRequestDto.
*/
@Serializable
public data class NewGroupRequestDto(
/**
* Gets or sets the group name.
*/
@SerialName("GroupName")
public val groupName: String? = null
)

View File

@ -0,0 +1,26 @@
// !! 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class NextItemRequestDto.
*/
@Serializable
public data class NextItemRequestDto(
/**
* Gets or sets the playing item identifier.
*/
@SerialName("PlaylistItemId")
public val playlistItemId: UUID
)

View File

@ -3,12 +3,16 @@
//
// 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import kotlin.String
import java.util.UUID
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import kotlinx.serialization.json.JsonElement
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class GroupUpdate.
@ -16,14 +20,14 @@ import kotlinx.serialization.json.JsonElement
@Serializable
public data class ObjectGroupUpdate(
/**
* Gets or sets the group identifier.
* Gets the group identifier.
*/
@SerialName("GroupId")
public val groupId: String? = null,
public val groupId: UUID,
@SerialName("Type")
public val type: GroupUpdateType? = null,
/**
* Gets or sets the data.
* Gets the update data.
*/
@SerialName("Data")
public val `data`: JsonElement

View File

@ -0,0 +1,22 @@
// !! 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.apiclient.model.api
import kotlin.Long
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Class PingRequestDto.
*/
@Serializable
public data class PingRequestDto(
/**
* Gets or sets the ping time.
*/
@SerialName("Ping")
public val ping: Long
)

View File

@ -0,0 +1,39 @@
// !! 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlin.Int
import kotlin.Long
import kotlin.collections.List
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class PlayRequestDto.
*/
@Serializable
public data class PlayRequestDto(
/**
* Gets or sets the playing queue.
*/
@SerialName("PlayingQueue")
public val playingQueue: List<UUID>? = null,
/**
* Gets or sets the position of the playing item in the queue.
*/
@SerialName("PlayingItemPosition")
public val playingItemPosition: Int,
/**
* Gets or sets the start position ticks.
*/
@SerialName("StartPositionTicks")
public val startPositionTicks: Long
)

View File

@ -0,0 +1,97 @@
// !! 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlin.Boolean
import kotlin.Int
import kotlin.Long
import kotlin.String
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Plabyback info dto.
*/
@Serializable
public data class PlaybackInfoDto(
/**
* Gets or sets the playback userId.
*/
@SerialName("UserId")
public val userId: UUID? = null,
/**
* Gets or sets the max streaming bitrate.
*/
@SerialName("MaxStreamingBitrate")
public val maxStreamingBitrate: Int? = null,
/**
* Gets or sets the start time in ticks.
*/
@SerialName("StartTimeTicks")
public val startTimeTicks: Long? = null,
/**
* Gets or sets the audio stream index.
*/
@SerialName("AudioStreamIndex")
public val audioStreamIndex: Int? = null,
/**
* Gets or sets the subtitle stream index.
*/
@SerialName("SubtitleStreamIndex")
public val subtitleStreamIndex: Int? = null,
/**
* Gets or sets the max audio channels.
*/
@SerialName("MaxAudioChannels")
public val maxAudioChannels: Int? = null,
/**
* Gets or sets the media source id.
*/
@SerialName("MediaSourceId")
public val mediaSourceId: String? = null,
/**
* Gets or sets the live stream id.
*/
@SerialName("LiveStreamId")
public val liveStreamId: String? = null,
@SerialName("DeviceProfile")
public val deviceProfile: DeviceProfile? = null,
/**
* Gets or sets a value indicating whether to enable direct play.
*/
@SerialName("EnableDirectPlay")
public val enableDirectPlay: Boolean? = null,
/**
* Gets or sets a value indicating whether to enable direct stream.
*/
@SerialName("EnableDirectStream")
public val enableDirectStream: Boolean? = null,
/**
* Gets or sets a value indicating whether to enable transcoding.
*/
@SerialName("EnableTranscoding")
public val enableTranscoding: Boolean? = null,
/**
* Gets or sets a value indicating whether to enable video stream copy.
*/
@SerialName("AllowVideoStreamCopy")
public val allowVideoStreamCopy: Boolean? = null,
/**
* Gets or sets a value indicating whether to allow audio stream copy.
*/
@SerialName("AllowAudioStreamCopy")
public val allowAudioStreamCopy: Boolean? = null,
/**
* Gets or sets a value indicating whether to auto open the live stream.
*/
@SerialName("AutoOpenLiveStream")
public val autoOpenLiveStream: Boolean? = null
)

View File

@ -0,0 +1,26 @@
// !! 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class PreviousItemRequestDto.
*/
@Serializable
public data class PreviousItemRequestDto(
/**
* Gets or sets the playing item identifier.
*/
@SerialName("PlaylistItemId")
public val playlistItemId: UUID
)

View File

@ -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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlin.collections.List
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class QueueRequestDto.
*/
@Serializable
public data class QueueRequestDto(
/**
* Gets or sets the items to enqueue.
*/
@SerialName("ItemIds")
public val itemIds: List<UUID>? = null,
@SerialName("Mode")
public val mode: GroupQueueMode? = null
)

View File

@ -0,0 +1,48 @@
// !! 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.
@file:UseSerializers(
LocalDateTimeSerializer::class,
UUIDSerializer::class
)
package org.jellyfin.apiclient.model.api
import java.time.LocalDateTime
import java.util.UUID
import kotlin.Boolean
import kotlin.Long
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.LocalDateTimeSerializer
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class ReadyRequest.
*/
@Serializable
public data class ReadyRequestDto(
/**
* Gets or sets when the request has been made by the client.
*/
@SerialName("When")
public val `when`: LocalDateTime,
/**
* Gets or sets the position ticks.
*/
@SerialName("PositionTicks")
public val positionTicks: Long,
/**
* Gets or sets a value indicating whether the client playback is unpaused.
*/
@SerialName("IsPlaying")
public val isPlaying: Boolean,
/**
* Gets or sets the playlist item identifier of the playing item.
*/
@SerialName("PlaylistItemId")
public val playlistItemId: UUID
)

View File

@ -0,0 +1,27 @@
// !! 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlin.collections.List
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class RemoveFromPlaylistRequestDto.
*/
@Serializable
public data class RemoveFromPlaylistRequestDto(
/**
* Gets or sets the playlist identifiers ot the items.
*/
@SerialName("PlaylistItemIds")
public val playlistItemIds: List<UUID>? = null
)

View File

@ -0,0 +1,22 @@
// !! 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.apiclient.model.api
import kotlin.Long
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Class SeekRequestDto.
*/
@Serializable
public data class SeekRequestDto(
/**
* Gets or sets the position ticks.
*/
@SerialName("PositionTicks")
public val positionTicks: Long
)

View File

@ -3,12 +3,21 @@
//
// 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.
@file:UseSerializers(
UUIDSerializer::class,
LocalDateTimeSerializer::class
)
package org.jellyfin.apiclient.model.api
import java.time.LocalDateTime
import java.util.UUID
import kotlin.Long
import kotlin.String
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.LocalDateTimeSerializer
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class SendCommand.
@ -16,25 +25,30 @@ import kotlinx.serialization.Serializable
@Serializable
public data class SendCommand(
/**
* Gets or sets the group identifier.
* Gets the group identifier.
*/
@SerialName("GroupId")
public val groupId: String? = null,
public val groupId: UUID,
/**
* Gets the playlist identifier of the playing item.
*/
@SerialName("PlaylistItemId")
public val playlistItemId: UUID,
/**
* Gets or sets the UTC time when to execute the command.
*/
@SerialName("When")
public val `when`: String? = null,
public val `when`: LocalDateTime,
/**
* Gets or sets the position ticks.
* Gets the position ticks.
*/
@SerialName("PositionTicks")
public val positionTicks: Long? = null,
@SerialName("Command")
public val command: SendCommandType? = null,
/**
* Gets or sets the UTC time when this command has been emitted.
* Gets the UTC time when this command has been emitted.
*/
@SerialName("EmittedAt")
public val emittedAt: String? = null
public val emittedAt: LocalDateTime
)

View File

@ -13,10 +13,12 @@ import kotlinx.serialization.Serializable
*/
@Serializable
public enum class SendCommandType {
@SerialName("Play")
PLAY,
@SerialName("Unpause")
UNPAUSE,
@SerialName("Pause")
PAUSE,
@SerialName("Stop")
STOP,
@SerialName("Seek")
SEEK,
}

View File

@ -367,5 +367,15 @@ public data class ServerConfiguration(
* Gets or sets the number of days we should retain activity logs.
*/
@SerialName("ActivityLogRetentionDays")
public val activityLogRetentionDays: Int? = null
public val activityLogRetentionDays: Int? = null,
/**
* Gets or sets the how the library scan fans out.
*/
@SerialName("LibraryScanFanoutConcurrency")
public val libraryScanFanoutConcurrency: Int,
/**
* Gets or sets the how many metadata refreshes can run concurrently.
*/
@SerialName("LibraryMetadataRefreshConcurrency")
public val libraryMetadataRefreshConcurrency: Int
)

View File

@ -0,0 +1,26 @@
// !! 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.
@file:UseSerializers(UUIDSerializer::class)
package org.jellyfin.apiclient.model.api
import java.util.UUID
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.UUIDSerializer
/**
* Class SetPlaylistItemRequestDto.
*/
@Serializable
public data class SetPlaylistItemRequestDto(
/**
* Gets or sets the playlist identifier of the playing item.
*/
@SerialName("PlaylistItemId")
public val playlistItemId: UUID
)

View File

@ -9,10 +9,10 @@ import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Device profile dto.
* Class SetRepeatModeRequestDto.
*/
@Serializable
public data class DeviceProfileDto(
@SerialName("DeviceProfile")
public val deviceProfile: DeviceProfile? = null
public data class SetRepeatModeRequestDto(
@SerialName("Mode")
public val mode: GroupRepeatMode? = null
)

View File

@ -0,0 +1,18 @@
// !! 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.apiclient.model.api
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Class SetShuffleModeRequestDto.
*/
@Serializable
public data class SetShuffleModeRequestDto(
@SerialName("Mode")
public val mode: GroupShuffleMode? = null
)

View File

@ -3,11 +3,15 @@
//
// 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.
@file:UseSerializers(LocalDateTimeSerializer::class)
package org.jellyfin.apiclient.model.api
import kotlin.String
import java.time.LocalDateTime
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.UseSerializers
import org.jellyfin.apiclient.model.serializer.LocalDateTimeSerializer
/**
* Class UtcTimeResponse.
@ -15,13 +19,13 @@ import kotlinx.serialization.Serializable
@Serializable
public data class UtcTimeResponse(
/**
* Gets or sets the UTC time when request has been received.
* Gets the UTC time when request has been received.
*/
@SerialName("RequestReceptionTime")
public val requestReceptionTime: String? = null,
public val requestReceptionTime: LocalDateTime,
/**
* Gets or sets the UTC time when response has been sent.
* Gets the UTC time when response has been sent.
*/
@SerialName("ResponseTransmissionTime")
public val responseTransmissionTime: String? = null
public val responseTransmissionTime: LocalDateTime
)

4
openapi.json vendored
View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:59576a2ac5eb43aff8e4c3a6d00a461983d651c8aa66eeaaf1b2cae31ce1e03c
size 1627788
oid sha256:baa32484ff3c8e006e65ee42c12e494aa029d715bcfc55d548da24f3b65e8925
size 1740725