Skip to content

Commit

Permalink
Update OpenAPI to 10.8.0-beta.2 (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen authored Apr 19, 2022
1 parent 3903bc4 commit 127a102
Show file tree
Hide file tree
Showing 17 changed files with 1,203 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jellyfin-api/api/jellyfin-api.api
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public final class org/jellyfin/sdk/api/operations/ConfigurationApi : org/jellyf
public static synthetic fun getNamedConfigurationUrl$default (Lorg/jellyfin/sdk/api/operations/ConfigurationApi;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
public final fun updateConfiguration (Lorg/jellyfin/sdk/model/api/ServerConfiguration;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public final fun updateMediaEncoderPath (Lorg/jellyfin/sdk/model/api/MediaEncoderPathDto;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public final fun updateNamedConfiguration (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public final fun updateNamedConfiguration (Ljava/lang/String;Lkotlinx/serialization/json/JsonElement;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
}

public final class org/jellyfin/sdk/api/operations/DashboardApi : org/jellyfin/sdk/api/operations/Api {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import kotlin.String
import kotlin.Unit
import kotlin.collections.emptyMap
import kotlin.collections.mutableMapOf
import kotlinx.serialization.json.JsonElement
import org.jellyfin.sdk.api.client.ApiClient
import org.jellyfin.sdk.api.client.Response
import org.jellyfin.sdk.api.client.extensions.`get`
Expand Down Expand Up @@ -101,11 +102,10 @@ public class ConfigurationApi(
*
* @param key Configuration key.
*/
public suspend fun updateNamedConfiguration(key: String): Response<Unit> {
public suspend fun updateNamedConfiguration(key: String, `data`: JsonElement): Response<Unit> {
val pathParameters = mutableMapOf<String, Any?>()
pathParameters["key"] = key
val queryParameters = emptyMap<String, Any?>()
val data = null
val response = api.post<Unit>("/System/Configuration/{key}", pathParameters, queryParameters,
data)
return response
Expand Down
572 changes: 572 additions & 0 deletions jellyfin-model/api/jellyfin-model.api

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
// !! 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.Boolean
import kotlin.Int
import kotlin.String
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
* The DlnaOptions class contains the user definable parameters for the dlna subsystems.
*/
@Serializable
public data class DlnaOptions(
/**
* Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna
* playTo subsystem.
*/
@SerialName("EnablePlayTo")
public val enablePlayTo: Boolean,
/**
* Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna
* server subsystem.
*/
@SerialName("EnableServer")
public val enableServer: Boolean,
/**
* Gets or sets a value indicating whether detailed dlna server logs are sent to the console/log.
* If the setting "Emby.Dlna": "Debug" msut be set in logging.default.json for this property to
* work.
*/
@SerialName("EnableDebugLog")
public val enableDebugLog: Boolean,
/**
* Gets or sets a value indicating whether whether detailed playTo debug logs are sent to the
* console/log.
* If the setting "Emby.Dlna.PlayTo": "Debug" msut be set in logging.default.json for this property
* to work.
*/
@SerialName("EnablePlayToTracing")
public val enablePlayToTracing: Boolean,
/**
* Gets or sets the ssdp client discovery interval time (in seconds).
* This is the time after which the server will send a ssdp search request.
*/
@SerialName("ClientDiscoveryIntervalSeconds")
public val clientDiscoveryIntervalSeconds: Int,
/**
* Gets or sets the frequency at which ssdp alive notifications are transmitted.
*/
@SerialName("AliveMessageIntervalSeconds")
public val aliveMessageIntervalSeconds: Int,
/**
* Gets or sets the frequency at which ssdp alive notifications are transmitted. MIGRATING - TO BE
* REMOVED ONCE WEB HAS BEEN ALTERED.
*/
@SerialName("BlastAliveMessageIntervalSeconds")
public val blastAliveMessageIntervalSeconds: Int,
/**
* Gets or sets the default user account that the dlna server uses.
*/
@SerialName("DefaultUserId")
public val defaultUserId: String? = null,
/**
* Gets or sets a value indicating whether playTo device profiles should be created.
*/
@SerialName("AutoCreatePlayToProfiles")
public val autoCreatePlayToProfiles: Boolean,
/**
* Gets or sets a value indicating whether to blast alive messages.
*/
@SerialName("BlastAliveMessages")
public val blastAliveMessages: Boolean,
/**
* gets or sets a value indicating whether to send only matched host.
*/
@SerialName("SendOnlyMatchedHost")
public val sendOnlyMatchedHost: Boolean,
)
Original file line number Diff line number Diff line change
@@ -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.
package org.jellyfin.sdk.model.api

import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.collections.List
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
public data class EncodingOptions(
@SerialName("EncodingThreadCount")
public val encodingThreadCount: Int,
@SerialName("TranscodingTempPath")
public val transcodingTempPath: String? = null,
@SerialName("FallbackFontPath")
public val fallbackFontPath: String? = null,
@SerialName("EnableFallbackFont")
public val enableFallbackFont: Boolean,
@SerialName("DownMixAudioBoost")
public val downMixAudioBoost: Double,
@SerialName("MaxMuxingQueueSize")
public val maxMuxingQueueSize: Int,
@SerialName("EnableThrottling")
public val enableThrottling: Boolean,
@SerialName("ThrottleDelaySeconds")
public val throttleDelaySeconds: Int,
@SerialName("HardwareAccelerationType")
public val hardwareAccelerationType: String? = null,
/**
* Gets or sets the FFmpeg path as set by the user via the UI.
*/
@SerialName("EncoderAppPath")
public val encoderAppPath: String? = null,
/**
* Gets or sets the current FFmpeg path being used by the system and displayed on the transcode
* page.
*/
@SerialName("EncoderAppPathDisplay")
public val encoderAppPathDisplay: String? = null,
@SerialName("VaapiDevice")
public val vaapiDevice: String? = null,
@SerialName("EnableTonemapping")
public val enableTonemapping: Boolean,
@SerialName("EnableVppTonemapping")
public val enableVppTonemapping: Boolean,
@SerialName("TonemappingAlgorithm")
public val tonemappingAlgorithm: String? = null,
@SerialName("TonemappingRange")
public val tonemappingRange: String? = null,
@SerialName("TonemappingDesat")
public val tonemappingDesat: Double,
@SerialName("TonemappingThreshold")
public val tonemappingThreshold: Double,
@SerialName("TonemappingPeak")
public val tonemappingPeak: Double,
@SerialName("TonemappingParam")
public val tonemappingParam: Double,
@SerialName("H264Crf")
public val h264Crf: Int,
@SerialName("H265Crf")
public val h265Crf: Int,
@SerialName("EncoderPreset")
public val encoderPreset: String? = null,
@SerialName("DeinterlaceDoubleRate")
public val deinterlaceDoubleRate: Boolean,
@SerialName("DeinterlaceMethod")
public val deinterlaceMethod: String? = null,
@SerialName("EnableDecodingColorDepth10Hevc")
public val enableDecodingColorDepth10Hevc: Boolean,
@SerialName("EnableDecodingColorDepth10Vp9")
public val enableDecodingColorDepth10Vp9: Boolean,
@SerialName("EnableEnhancedNvdecDecoder")
public val enableEnhancedNvdecDecoder: Boolean,
@SerialName("PreferSystemNativeHwDecoder")
public val preferSystemNativeHwDecoder: Boolean,
@SerialName("EnableIntelLowPowerH264HwEncoder")
public val enableIntelLowPowerH264HwEncoder: Boolean,
@SerialName("EnableIntelLowPowerHevcHwEncoder")
public val enableIntelLowPowerHevcHwEncoder: Boolean,
@SerialName("EnableHardwareEncoding")
public val enableHardwareEncoding: Boolean,
@SerialName("AllowHevcEncoding")
public val allowHevcEncoding: Boolean,
@SerialName("EnableSubtitleExtraction")
public val enableSubtitleExtraction: Boolean,
@SerialName("HardwareDecodingCodecs")
public val hardwareDecodingCodecs: List<String>? = null,
@SerialName("AllowOnDemandMetadataBasedKeyframeExtractionForExtensions")
public val allowOnDemandMetadataBasedKeyframeExtractionForExtensions: List<String>? = null,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// !! 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 kotlinx.serialization.Serializable

@Serializable
public class GuidStringValueTuple
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// !! 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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.collections.List
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
public data class LiveTvOptions(
@SerialName("GuideDays")
public val guideDays: Int? = null,
@SerialName("RecordingPath")
public val recordingPath: String? = null,
@SerialName("MovieRecordingPath")
public val movieRecordingPath: String? = null,
@SerialName("SeriesRecordingPath")
public val seriesRecordingPath: String? = null,
@SerialName("EnableRecordingSubfolders")
public val enableRecordingSubfolders: Boolean,
@SerialName("EnableOriginalAudioWithEncodedRecordings")
public val enableOriginalAudioWithEncodedRecordings: Boolean,
@SerialName("TunerHosts")
public val tunerHosts: List<TunerHostInfo>? = null,
@SerialName("ListingProviders")
public val listingProviders: List<ListingsProviderInfo>? = null,
@SerialName("PrePaddingSeconds")
public val prePaddingSeconds: Int,
@SerialName("PostPaddingSeconds")
public val postPaddingSeconds: Int,
@SerialName("MediaLocationsCreated")
public val mediaLocationsCreated: List<String>? = null,
@SerialName("RecordingPostProcessor")
public val recordingPostProcessor: String? = null,
@SerialName("RecordingPostProcessorArguments")
public val recordingPostProcessorArguments: String? = null,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// !! 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.Boolean
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
public data class MetadataConfiguration(
@SerialName("UseFileCreationTimeForDateAdded")
public val useFileCreationTimeForDateAdded: Boolean,
)
Original file line number Diff line number Diff line change
@@ -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.sdk.model.api

import kotlin.collections.List
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
* Configuration part that holds all migrations that were applied.
*/
@Serializable
public data class MigrationOptions(
/**
* Gets the list of applied migration routine names.
*/
@SerialName("Applied")
public val applied: List<GuidStringValueTuple>,
)
Loading

0 comments on commit 127a102

Please sign in to comment.