Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OpenAPI to unstable
Browse files Browse the repository at this point in the history
jellyfin-bot committed Jan 26, 2025
1 parent f83a162 commit 1817ee8
Showing 19 changed files with 133 additions and 58 deletions.
Original file line number Diff line number Diff line change
@@ -8,5 +8,5 @@ package org.jellyfin.sdk.api.info
import kotlin.String

public object ApiConstants {
public const val apiVersion: String = "10.10.5"
public const val apiVersion: String = "10.11.0"
}
Original file line number Diff line number Diff line change
@@ -285,7 +285,7 @@ public class LiveTvApi(
}

/**
* Get guid info.
* Get guide info.
*/
public suspend fun getGuideInfo(): Response<GuideInfo> {
val pathParameters = emptyMap<String, Any?>()
79 changes: 49 additions & 30 deletions jellyfin-model/api/jellyfin-model.api

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -77,10 +77,6 @@ public enum class ItemSortBy(
PARENT_INDEX_NUMBER("ParentIndexNumber"),
@SerialName("IndexNumber")
INDEX_NUMBER("IndexNumber"),
@SerialName("SimilarityScore")
SIMILARITY_SCORE("SimilarityScore"),
@SerialName("SearchScore")
SEARCH_SCORE("SearchScore"),
;

/**
@@ -123,8 +119,6 @@ public enum class ItemSortBy(
"SeriesDatePlayed" -> SERIES_DATE_PLAYED
"ParentIndexNumber" -> PARENT_INDEX_NUMBER
"IndexNumber" -> INDEX_NUMBER
"SimilarityScore" -> SIMILARITY_SCORE
"SearchScore" -> SEARCH_SCORE
else -> null
}

Original file line number Diff line number Diff line change
@@ -72,8 +72,8 @@ public data class LibraryOptions(
public val subtitleFetcherOrder: List<String>,
@SerialName("DisabledMediaSegmentProviders")
public val disabledMediaSegmentProviders: List<String>,
@SerialName("MediaSegmentProvideOrder")
public val mediaSegmentProvideOrder: List<String>,
@SerialName("MediaSegmentProviderOrder")
public val mediaSegmentProviderOrder: List<String>,
@SerialName("SkipSubtitlesIfEmbeddedSubtitlesPresent")
public val skipSubtitlesIfEmbeddedSubtitlesPresent: Boolean,
@SerialName("SkipSubtitlesIfAudioTrackMatches")
Original file line number Diff line number Diff line change
@@ -34,6 +34,11 @@ public data class LibraryOptionsResultDto(
*/
@SerialName("LyricFetchers")
public val lyricFetchers: List<LibraryOptionInfoDto>,
/**
* The list of MediaSegment Providers.
*/
@SerialName("MediaSegmentProviders")
public val mediaSegmentProviders: List<LibraryOptionInfoDto>,
/**
* The type options.
*/
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ public data class MediaStream(
* A value indicating whether this instance is for the hearing impaired.
*/
@SerialName("IsHearingImpaired")
public val isHearingImpaired: Boolean,
public val isHearingImpaired: Boolean? = null,
/**
* The height.
*/
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
package org.jellyfin.sdk.model.api

import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.collections.List
@@ -71,6 +72,7 @@ public data class NetworkConfiguration(
/**
* A value indicating whether to enable automatic port forwarding.
*/
@Deprecated("This member is deprecated and may be removed in the future")
@SerialName("EnableUPnP")
public val enableUPnP: Boolean,
/**
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ public data class OpenLiveStreamDto(
@SerialName("EnableDirectPlay")
public val enableDirectPlay: Boolean? = null,
/**
* A value indicating whether to enale direct stream.
* A value indicating whether to enable direct stream.
*/
@SerialName("EnableDirectStream")
public val enableDirectStream: Boolean? = null,
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ import org.jellyfin.sdk.model.UUID
import org.jellyfin.sdk.model.serializer.UUIDSerializer

/**
* Plabyback info dto.
* Playback info dto.
*/
@Serializable
public data class PlaybackInfoDto(
Original file line number Diff line number Diff line change
@@ -23,6 +23,8 @@ public enum class PluginStatus(
RESTART("Restart"),
@SerialName("Deleted")
DELETED("Deleted"),
@SerialName("Superseded")
SUPERSEDED("Superseded"),
@SerialName("Superceded")
SUPERCEDED("Superceded"),
@SerialName("Malfunctioned")
@@ -46,6 +48,7 @@ public enum class PluginStatus(
"Active" -> ACTIVE
"Restart" -> RESTART
"Deleted" -> DELETED
"Superseded" -> SUPERSEDED
"Superceded" -> SUPERCEDED
"Malfunctioned" -> MALFUNCTIONED
"NotSupported" -> NOT_SUPPORTED
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ public data class ServerConfiguration(
@SerialName("QuickConnectAvailable")
public val quickConnectAvailable: Boolean,
/**
* A value indicating whether [enable case sensitive item ids].
* A value indicating whether [enable case-sensitive item ids].
*/
@SerialName("EnableCaseSensitiveItemIds")
public val enableCaseSensitiveItemIds: Boolean,
@@ -211,18 +211,13 @@ public data class ServerConfiguration(
*/
@SerialName("LibraryMetadataRefreshConcurrency")
public val libraryMetadataRefreshConcurrency: Int,
/**
* A value indicating whether older plugins should automatically be deleted from the plugin folder.
*/
@SerialName("RemoveOldPlugins")
public val removeOldPlugins: Boolean,
/**
* A value indicating whether clients should be allowed to upload logs.
*/
@SerialName("AllowClientLogUpload")
public val allowClientLogUpload: Boolean,
/**
* The dummy chapter duration in seconds, use 0 (zero) or less to disable generation alltogether.
* The dummy chapter duration in seconds, use 0 (zero) or less to disable generation altogether.
*/
@SerialName("DummyChapterDuration")
public val dummyChapterDuration: Int,
@@ -246,4 +241,9 @@ public data class ServerConfiguration(
*/
@SerialName("TrickplayOptions")
public val trickplayOptions: TrickplayOptions,
/**
* A value indicating whether old authorization methods are allowed.
*/
@SerialName("EnableLegacyAuthorization")
public val enableLegacyAuthorization: Boolean,
)
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
package org.jellyfin.sdk.model.api

import kotlin.Boolean
import kotlin.Deprecated
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@@ -22,6 +23,7 @@ public data class StartupRemoteAccessDto(
/**
* A value indicating whether enable automatic port mapping.
*/
@Deprecated("This member is deprecated and may be removed in the future")
@SerialName("EnableAutomaticPortMapping")
public val enableAutomaticPortMapping: Boolean,
)
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@
package org.jellyfin.sdk.model.api

import kotlin.Long
import kotlin.String
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@@ -19,7 +18,7 @@ public data class TaskTriggerInfo(
* The type.
*/
@SerialName("Type")
public val type: String? = null,
public val type: TaskTriggerInfoType,
/**
* The time of day.
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// !! 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.model.api

import kotlin.String
import kotlin.requireNotNull
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
* Enum TaskTriggerInfoType.
*/
@Serializable
public enum class TaskTriggerInfoType(
public val serialName: String,
) {
@SerialName("DailyTrigger")
DAILY_TRIGGER("DailyTrigger"),
@SerialName("WeeklyTrigger")
WEEKLY_TRIGGER("WeeklyTrigger"),
@SerialName("IntervalTrigger")
INTERVAL_TRIGGER("IntervalTrigger"),
@SerialName("StartupTrigger")
STARTUP_TRIGGER("StartupTrigger"),
;

/**
* Get the serial name of the enum member.
*/
override fun toString(): String = serialName

public companion object {
/**
* Find the enum member by the serial name or return null.
*/
public fun fromNameOrNull(serialName: String): TaskTriggerInfoType? = when (serialName) {
"DailyTrigger" -> DAILY_TRIGGER
"WeeklyTrigger" -> WEEKLY_TRIGGER
"IntervalTrigger" -> INTERVAL_TRIGGER
"StartupTrigger" -> STARTUP_TRIGGER
else -> null
}

/**
* Find the enum member by the serial name or throw.
*/
public fun fromName(serialName: String): TaskTriggerInfoType =
requireNotNull(fromNameOrNull(serialName)) { """Unknown value $serialName""" }
}
}
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
* Class holding information on a runnning transcode.
* Class holding information on a running transcode.
*/
@Serializable
public data class TranscodingInfo(
Original file line number Diff line number Diff line change
@@ -14,8 +14,6 @@ import kotlinx.serialization.Serializable

/**
* A class for transcoding profile information.
* Note for client developers: Conditions defined in MediaBrowser.Model.Dlna.CodecProfile has higher
* priority and can override values defined here.
*/
@Serializable
public data class TranscodingProfile(
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ public data class TrickplayInfo(
@SerialName("Interval")
public val interval: Int,
/**
* Peak bandwith usage in bits per second.
* Peak bandwidth usage in bits per second.
*/
@SerialName("Bandwidth")
public val bandwidth: Int,
4 changes: 2 additions & 2 deletions openapi.json
Git LFS file not shown

0 comments on commit 1817ee8

Please sign in to comment.