From 24a68e0e51d34989eb7924092de3bcf60600a7a4 Mon Sep 17 00:00:00 2001 From: jellyfin-bot Date: Sat, 26 Oct 2024 17:39:14 +0000 Subject: [PATCH] Update generated sources to 10.10.0 --- openapi.json | 4 +- src/generated-client/.openapi-generator/FILES | 20 +- src/generated-client/api.ts | 1 + src/generated-client/api/audio-api.ts | 140 +++++-- src/generated-client/api/devices-api.ts | 18 +- src/generated-client/api/dynamic-hls-api.ts | 380 +++++++++++++----- src/generated-client/api/items-api.ts | 23 +- src/generated-client/api/library-api.ts | 112 +++++- src/generated-client/api/media-info-api.ts | 23 +- .../api/media-segments-api.ts | 164 ++++++++ src/generated-client/api/playlists-api.ts | 88 ++++ src/generated-client/api/session-api.ts | 6 +- .../api/universal-audio-api.ts | 46 ++- src/generated-client/api/videos-api.ts | 140 +++++-- .../models/activity-log-entry-query-result.ts | 4 +- .../authentication-info-query-result.ts | 4 +- .../models/authentication-result.ts | 12 +- .../models/base-item-dto-query-result.ts | 4 +- .../models/client-capabilities-dto.ts | 14 - src/generated-client/models/codec-profile.ts | 20 +- .../models/container-profile.ts | 14 +- .../models/deinterlace-method.ts | 30 ++ .../models/device-info-dto-query-result.ts | 44 ++ .../models/device-info-dto.ts | 92 +++++ src/generated-client/models/device-profile.ts | 6 +- .../models/direct-play-profile.ts | 10 +- .../models/down-mix-stereo-algorithms.ts | 6 +- src/generated-client/models/encoder-preset.ts | 39 ++ .../models/encoding-options.ts | 72 +++- .../models/external-id-info.ts | 1 + .../models/get-programs-dto.ts | 60 +-- .../models/hardware-acceleration-type.ts | 36 ++ src/generated-client/models/index.ts | 19 +- .../models/library-options-result-dto.ts | 6 + .../models/library-options.ts | 54 +++ .../models/media-path-info.ts | 6 - .../models/media-segment-dto-query-result.ts | 44 ++ .../models/media-segment-dto.ts | 58 +++ .../models/media-segment-type.ts | 34 ++ .../models/media-source-info.ts | 18 + src/generated-client/models/media-stream.ts | 12 + .../models/open-live-stream-dto.ts | 6 + .../models/playback-info-dto.ts | 6 + src/generated-client/models/playlist-dto.ts | 44 ++ .../series-timer-info-dto-query-result.ts | 4 +- .../models/server-configuration.ts | 6 - .../models/session-info-dto.ts | 221 ++++++++++ .../models/sessions-message.ts | 6 +- .../models/subtitle-profile.ts | 10 +- .../models/theme-media-result.ts | 2 +- .../models/timer-info-dto-query-result.ts | 4 +- .../models/tonemapping-algorithm.ts | 36 ++ .../models/tonemapping-mode.ts | 33 ++ .../models/tonemapping-range.ts | 31 ++ .../models/transcode-reason.ts | 3 +- .../models/transcoding-info.ts | 32 +- .../models/transcoding-profile.ts | 32 +- .../models/trickplay-options.ts | 6 + .../models/tuner-host-info.ts | 18 + .../models/user-data-change-info.ts | 4 +- .../models/user-item-data-dto.ts | 4 +- src/versions.ts | 2 +- 62 files changed, 1990 insertions(+), 404 deletions(-) create mode 100644 src/generated-client/api/media-segments-api.ts create mode 100644 src/generated-client/models/deinterlace-method.ts create mode 100644 src/generated-client/models/device-info-dto-query-result.ts create mode 100644 src/generated-client/models/device-info-dto.ts create mode 100644 src/generated-client/models/encoder-preset.ts create mode 100644 src/generated-client/models/hardware-acceleration-type.ts create mode 100644 src/generated-client/models/media-segment-dto-query-result.ts create mode 100644 src/generated-client/models/media-segment-dto.ts create mode 100644 src/generated-client/models/media-segment-type.ts create mode 100644 src/generated-client/models/playlist-dto.ts create mode 100644 src/generated-client/models/session-info-dto.ts create mode 100644 src/generated-client/models/tonemapping-algorithm.ts create mode 100644 src/generated-client/models/tonemapping-mode.ts create mode 100644 src/generated-client/models/tonemapping-range.ts diff --git a/openapi.json b/openapi.json index 4ab64512..80e8aafb 100644 --- a/openapi.json +++ b/openapi.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4dc7e1721080d36ff674a9d248765a5c1b679e31b2677180c97af236693cee76 -size 850079 +oid sha256:e48d88490e79d5dec94e0b14008aeca61782ed84619623ff9d150e8af119f9d5 +size 862436 diff --git a/src/generated-client/.openapi-generator/FILES b/src/generated-client/.openapi-generator/FILES index 7cf44a98..c7cc88fb 100644 --- a/src/generated-client/.openapi-generator/FILES +++ b/src/generated-client/.openapi-generator/FILES @@ -30,6 +30,7 @@ api/live-tv-api.ts api/localization-api.ts api/lyrics-api.ts api/media-info-api.ts +api/media-segments-api.ts api/movies-api.ts api/music-genres-api.ts api/package-api.ts @@ -103,7 +104,6 @@ models/channel-media-type.ts models/channel-type.ts models/chapter-info.ts models/client-capabilities-dto.ts -models/client-capabilities.ts models/client-log-document-response-dto.ts models/codec-profile.ts models/codec-type.ts @@ -120,10 +120,10 @@ models/culture-dto.ts models/day-of-week.ts models/day-pattern.ts models/default-directory-browser-info-dto.ts -models/device-info-query-result.ts -models/device-info.ts +models/deinterlace-method.ts +models/device-info-dto-query-result.ts +models/device-info-dto.ts models/device-options-dto.ts -models/device-options.ts models/device-profile.ts models/direct-play-profile.ts models/display-preferences-dto.ts @@ -131,6 +131,7 @@ models/dlna-profile-type.ts models/down-mix-stereo-algorithms.ts models/dynamic-day-of-week.ts models/embedded-subtitle-options.ts +models/encoder-preset.ts models/encoding-context.ts models/encoding-options.ts models/end-point-info.ts @@ -161,7 +162,7 @@ models/group-state-update.ts models/group-update-type.ts models/group-update.ts models/guide-info.ts -models/hardware-encoding-type.ts +models/hardware-acceleration-type.ts models/ignore-wait-request-dto.ts models/image-format.ts models/image-info.ts @@ -206,6 +207,9 @@ models/media-attachment.ts models/media-path-dto.ts models/media-path-info.ts models/media-protocol.ts +models/media-segment-dto-query-result.ts +models/media-segment-dto.ts +models/media-segment-type.ts models/media-source-info.ts models/media-source-type.ts models/media-stream-protocol.ts @@ -262,6 +266,7 @@ models/playback-start-info.ts models/playback-stop-info.ts models/player-state-info.ts models/playlist-creation-result.ts +models/playlist-dto.ts models/playlist-user-permissions.ts models/playstate-command.ts models/playstate-message.ts @@ -323,7 +328,7 @@ models/server-configuration.ts models/server-discovery-info.ts models/server-restarting-message.ts models/server-shutting-down-message.ts -models/session-info.ts +models/session-info-dto.ts models/session-message-type.ts models/session-user-info.ts models/sessions-message.ts @@ -360,6 +365,9 @@ models/timer-created-message.ts models/timer-event-info.ts models/timer-info-dto-query-result.ts models/timer-info-dto.ts +models/tonemapping-algorithm.ts +models/tonemapping-mode.ts +models/tonemapping-range.ts models/trailer-info-remote-search-query.ts models/trailer-info.ts models/transcode-reason.ts diff --git a/src/generated-client/api.ts b/src/generated-client/api.ts index 79e873cc..6011bfc4 100644 --- a/src/generated-client/api.ts +++ b/src/generated-client/api.ts @@ -42,6 +42,7 @@ export * from './api/live-tv-api'; export * from './api/localization-api'; export * from './api/lyrics-api'; export * from './api/media-info-api'; +export * from './api/media-segments-api'; export * from './api/movies-api'; export * from './api/music-genres-api'; export * from './api/package-api'; diff --git a/src/generated-client/api/audio-api.ts b/src/generated-client/api/audio-api.ts index d3c09021..22f82c3c 100644 --- a/src/generated-client/api/audio-api.ts +++ b/src/generated-client/api/audio-api.ts @@ -45,7 +45,7 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -75,17 +75,18 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAudioStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + getAudioStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getAudioStream', 'itemId', itemId) const localVarPath = `/Audio/{itemId}/stream` @@ -295,6 +296,10 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -321,7 +326,7 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -351,17 +356,18 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAudioStreamByContainer: async (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + getAudioStreamByContainer: async (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getAudioStreamByContainer', 'itemId', itemId) // verify required parameter 'container' is not null or undefined @@ -570,6 +576,10 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -596,7 +606,7 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -626,17 +636,18 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - headAudioStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + headAudioStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('headAudioStream', 'itemId', itemId) const localVarPath = `/Audio/{itemId}/stream` @@ -846,6 +857,10 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -872,7 +887,7 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -902,17 +917,18 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - headAudioStreamByContainer: async (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + headAudioStreamByContainer: async (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('headAudioStreamByContainer', 'itemId', itemId) // verify required parameter 'container' is not null or undefined @@ -1121,6 +1137,10 @@ export const AudioApiAxiosParamCreator = function (configuration?: Configuration } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -1157,7 +1177,7 @@ export const AudioApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1187,18 +1207,19 @@ export const AudioApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAudioStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async getAudioStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AudioApi.getAudioStream']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1218,7 +1239,7 @@ export const AudioApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1248,18 +1269,19 @@ export const AudioApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAudioStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async getAudioStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AudioApi.getAudioStreamByContainer']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1279,7 +1301,7 @@ export const AudioApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1309,18 +1331,19 @@ export const AudioApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async headAudioStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async headAudioStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.headAudioStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AudioApi.headAudioStream']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1340,7 +1363,7 @@ export const AudioApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1370,18 +1393,19 @@ export const AudioApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async headAudioStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async headAudioStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.headAudioStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AudioApi.headAudioStreamByContainer']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1404,7 +1428,7 @@ export const AudioApiFactory = function (configuration?: Configuration, basePath * @throws {RequiredError} */ getAudioStream(requestParameters: AudioApiGetAudioStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.getAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -1414,7 +1438,7 @@ export const AudioApiFactory = function (configuration?: Configuration, basePath * @throws {RequiredError} */ getAudioStreamByContainer(requestParameters: AudioApiGetAudioStreamByContainerRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.getAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -1424,7 +1448,7 @@ export const AudioApiFactory = function (configuration?: Configuration, basePath * @throws {RequiredError} */ headAudioStream(requestParameters: AudioApiHeadAudioStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.headAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.headAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -1434,7 +1458,7 @@ export const AudioApiFactory = function (configuration?: Configuration, basePath * @throws {RequiredError} */ headAudioStreamByContainer(requestParameters: AudioApiHeadAudioStreamByContainerRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.headAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.headAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, }; }; @@ -1530,7 +1554,7 @@ export interface AudioApiGetAudioStreamRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof AudioApiGetAudioStream */ @@ -1740,7 +1764,7 @@ export interface AudioApiGetAudioStreamRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof AudioApiGetAudioStream */ @@ -1787,6 +1811,13 @@ export interface AudioApiGetAudioStreamRequest { * @memberof AudioApiGetAudioStream */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof AudioApiGetAudioStream + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -1880,7 +1911,7 @@ export interface AudioApiGetAudioStreamByContainerRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof AudioApiGetAudioStreamByContainer */ @@ -2090,7 +2121,7 @@ export interface AudioApiGetAudioStreamByContainerRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof AudioApiGetAudioStreamByContainer */ @@ -2137,6 +2168,13 @@ export interface AudioApiGetAudioStreamByContainerRequest { * @memberof AudioApiGetAudioStreamByContainer */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof AudioApiGetAudioStreamByContainer + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -2230,7 +2268,7 @@ export interface AudioApiHeadAudioStreamRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof AudioApiHeadAudioStream */ @@ -2440,7 +2478,7 @@ export interface AudioApiHeadAudioStreamRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof AudioApiHeadAudioStream */ @@ -2487,6 +2525,13 @@ export interface AudioApiHeadAudioStreamRequest { * @memberof AudioApiHeadAudioStream */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof AudioApiHeadAudioStream + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -2580,7 +2625,7 @@ export interface AudioApiHeadAudioStreamByContainerRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof AudioApiHeadAudioStreamByContainer */ @@ -2790,7 +2835,7 @@ export interface AudioApiHeadAudioStreamByContainerRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof AudioApiHeadAudioStreamByContainer */ @@ -2837,6 +2882,13 @@ export interface AudioApiHeadAudioStreamByContainerRequest { * @memberof AudioApiHeadAudioStreamByContainer */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof AudioApiHeadAudioStreamByContainer + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -2855,7 +2907,7 @@ export class AudioApi extends BaseAPI { * @memberof AudioApi */ public getAudioStream(requestParameters: AudioApiGetAudioStreamRequest, options?: RawAxiosRequestConfig) { - return AudioApiFp(this.configuration).getAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return AudioApiFp(this.configuration).getAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -2867,7 +2919,7 @@ export class AudioApi extends BaseAPI { * @memberof AudioApi */ public getAudioStreamByContainer(requestParameters: AudioApiGetAudioStreamByContainerRequest, options?: RawAxiosRequestConfig) { - return AudioApiFp(this.configuration).getAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return AudioApiFp(this.configuration).getAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -2879,7 +2931,7 @@ export class AudioApi extends BaseAPI { * @memberof AudioApi */ public headAudioStream(requestParameters: AudioApiHeadAudioStreamRequest, options?: RawAxiosRequestConfig) { - return AudioApiFp(this.configuration).headAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return AudioApiFp(this.configuration).headAudioStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -2891,7 +2943,7 @@ export class AudioApi extends BaseAPI { * @memberof AudioApi */ public headAudioStreamByContainer(requestParameters: AudioApiHeadAudioStreamByContainerRequest, options?: RawAxiosRequestConfig) { - return AudioApiFp(this.configuration).headAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return AudioApiFp(this.configuration).headAudioStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/generated-client/api/devices-api.ts b/src/generated-client/api/devices-api.ts index 70512e41..6bd7ce41 100644 --- a/src/generated-client/api/devices-api.ts +++ b/src/generated-client/api/devices-api.ts @@ -21,11 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import type { DeviceInfo } from '../models'; +import type { DeviceInfoDto } from '../models'; // @ts-ignore -import type { DeviceInfoQueryResult } from '../models'; -// @ts-ignore -import type { DeviceOptions } from '../models'; +import type { DeviceInfoDtoQueryResult } from '../models'; // @ts-ignore import type { DeviceOptionsDto } from '../models'; // @ts-ignore @@ -270,7 +268,7 @@ export const DevicesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeviceInfo(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeviceInfo(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceInfo(id, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DevicesApi.getDeviceInfo']?.[localVarOperationServerIndex]?.url; @@ -283,7 +281,7 @@ export const DevicesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDeviceOptions(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDeviceOptions(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceOptions(id, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DevicesApi.getDeviceOptions']?.[localVarOperationServerIndex]?.url; @@ -296,7 +294,7 @@ export const DevicesApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getDevices(userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getDevices(userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDevices(userId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DevicesApi.getDevices']?.[localVarOperationServerIndex]?.url; @@ -343,7 +341,7 @@ export const DevicesApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeviceInfo(requestParameters: DevicesApiGetDeviceInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise { + getDeviceInfo(requestParameters: DevicesApiGetDeviceInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeviceInfo(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -353,7 +351,7 @@ export const DevicesApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDeviceOptions(requestParameters: DevicesApiGetDeviceOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + getDeviceOptions(requestParameters: DevicesApiGetDeviceOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeviceOptions(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -363,7 +361,7 @@ export const DevicesApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getDevices(requestParameters: DevicesApiGetDevicesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + getDevices(requestParameters: DevicesApiGetDevicesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDevices(requestParameters.userId, options).then((request) => request(axios, basePath)); }, /** diff --git a/src/generated-client/api/dynamic-hls-api.ts b/src/generated-client/api/dynamic-hls-api.ts index 2fcf827e..e50b5d25 100644 --- a/src/generated-client/api/dynamic-hls-api.ts +++ b/src/generated-client/api/dynamic-hls-api.ts @@ -49,7 +49,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -80,17 +80,18 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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 {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getHlsAudioSegment: async (itemId: string, playlistId: string, segmentId: number, container: string, runtimeTicks: number, actualSegmentLengthTicks: number, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + getHlsAudioSegment: async (itemId: string, playlistId: string, segmentId: number, container: string, runtimeTicks: number, actualSegmentLengthTicks: number, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getHlsAudioSegment', 'itemId', itemId) // verify required parameter 'playlistId' is not null or undefined @@ -324,6 +325,10 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -354,7 +359,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -386,17 +391,19 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getHlsVideoSegment: async (itemId: string, playlistId: string, segmentId: number, container: string, runtimeTicks: number, actualSegmentLengthTicks: number, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + getHlsVideoSegment: async (itemId: string, playlistId: string, segmentId: number, container: string, runtimeTicks: number, actualSegmentLengthTicks: number, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getHlsVideoSegment', 'itemId', itemId) // verify required parameter 'playlistId' is not null or undefined @@ -634,6 +641,14 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + + if (alwaysBurnInSubtitleWhenTranscoding !== undefined) { + localVarQueryParameter['alwaysBurnInSubtitleWhenTranscoding'] = alwaysBurnInSubtitleWhenTranscoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -660,7 +675,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -690,7 +705,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -700,10 +715,12 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [maxWidth] Optional. The max width. * @param {number} [maxHeight] Optional. The max height. * @param {boolean} [enableSubtitlesInManifest] Optional. Whether to enable subtitles in the manifest. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getLiveHlsStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, maxWidth?: number, maxHeight?: number, enableSubtitlesInManifest?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getLiveHlsStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, maxWidth?: number, maxHeight?: number, enableSubtitlesInManifest?: boolean, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getLiveHlsStream', 'itemId', itemId) const localVarPath = `/Videos/{itemId}/live.m3u8` @@ -928,6 +945,14 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['enableSubtitlesInManifest'] = enableSubtitlesInManifest; } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + + if (alwaysBurnInSubtitleWhenTranscoding !== undefined) { + localVarQueryParameter['alwaysBurnInSubtitleWhenTranscoding'] = alwaysBurnInSubtitleWhenTranscoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -953,7 +978,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [segmentLength] The segment length. * @param {number} [minSegments] The minimum number of segments. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -984,7 +1009,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -992,10 +1017,11 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getMasterHlsAudioPlaylist: async (itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getMasterHlsAudioPlaylist: async (itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getMasterHlsAudioPlaylist', 'itemId', itemId) // verify required parameter 'mediaSourceId' is not null or undefined @@ -1214,6 +1240,10 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming; } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -1239,7 +1269,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [segmentLength] The segment length. * @param {number} [minSegments] The minimum number of segments. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1271,7 +1301,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -1280,10 +1310,12 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. * @param {boolean} [enableTrickplay] Enable trickplay image playlists being added to master playlist. + * @param {boolean} [enableAudioVbrEncoding] Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getMasterHlsVideoPlaylist: async (itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableTrickplay?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getMasterHlsVideoPlaylist: async (itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableTrickplay?: boolean, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getMasterHlsVideoPlaylist', 'itemId', itemId) // verify required parameter 'mediaSourceId' is not null or undefined @@ -1510,6 +1542,14 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['enableTrickplay'] = enableTrickplay; } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + + if (alwaysBurnInSubtitleWhenTranscoding !== undefined) { + localVarQueryParameter['alwaysBurnInSubtitleWhenTranscoding'] = alwaysBurnInSubtitleWhenTranscoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -1535,7 +1575,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1566,17 +1606,18 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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 {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVariantHlsAudioPlaylist: async (itemId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + getVariantHlsAudioPlaylist: async (itemId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getVariantHlsAudioPlaylist', 'itemId', itemId) const localVarPath = `/Audio/{itemId}/main.m3u8` @@ -1789,6 +1830,10 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -1814,7 +1859,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1846,17 +1891,19 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVariantHlsVideoPlaylist: async (itemId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + getVariantHlsVideoPlaylist: async (itemId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getVariantHlsVideoPlaylist', 'itemId', itemId) const localVarPath = `/Videos/{itemId}/main.m3u8` @@ -2073,6 +2120,14 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + + if (alwaysBurnInSubtitleWhenTranscoding !== undefined) { + localVarQueryParameter['alwaysBurnInSubtitleWhenTranscoding'] = alwaysBurnInSubtitleWhenTranscoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -2098,7 +2153,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [segmentLength] The segment length. * @param {number} [minSegments] The minimum number of segments. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -2129,7 +2184,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -2137,10 +2192,11 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - headMasterHlsAudioPlaylist: async (itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + headMasterHlsAudioPlaylist: async (itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('headMasterHlsAudioPlaylist', 'itemId', itemId) // verify required parameter 'mediaSourceId' is not null or undefined @@ -2359,6 +2415,10 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['enableAdaptiveBitrateStreaming'] = enableAdaptiveBitrateStreaming; } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -2384,7 +2444,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [segmentLength] The segment length. * @param {number} [minSegments] The minimum number of segments. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -2416,7 +2476,7 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -2425,10 +2485,12 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. * @param {boolean} [enableTrickplay] Enable trickplay image playlists being added to master playlist. + * @param {boolean} [enableAudioVbrEncoding] Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - headMasterHlsVideoPlaylist: async (itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableTrickplay?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + headMasterHlsVideoPlaylist: async (itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableTrickplay?: boolean, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('headMasterHlsVideoPlaylist', 'itemId', itemId) // verify required parameter 'mediaSourceId' is not null or undefined @@ -2655,6 +2717,14 @@ export const DynamicHlsApiAxiosParamCreator = function (configuration?: Configur localVarQueryParameter['enableTrickplay'] = enableTrickplay; } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + + if (alwaysBurnInSubtitleWhenTranscoding !== undefined) { + localVarQueryParameter['alwaysBurnInSubtitleWhenTranscoding'] = alwaysBurnInSubtitleWhenTranscoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -2695,7 +2765,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -2726,18 +2796,19 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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 {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getHlsAudioSegment(itemId: string, playlistId: string, segmentId: number, container: string, runtimeTicks: number, actualSegmentLengthTicks: number, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getHlsAudioSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async getHlsAudioSegment(itemId: string, playlistId: string, segmentId: number, container: string, runtimeTicks: number, actualSegmentLengthTicks: number, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getHlsAudioSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.getHlsAudioSegment']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -2761,7 +2832,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -2793,18 +2864,20 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getHlsVideoSegment(itemId: string, playlistId: string, segmentId: number, container: string, runtimeTicks: number, actualSegmentLengthTicks: number, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getHlsVideoSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async getHlsVideoSegment(itemId: string, playlistId: string, segmentId: number, container: string, runtimeTicks: number, actualSegmentLengthTicks: number, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getHlsVideoSegment(itemId, playlistId, segmentId, container, runtimeTicks, actualSegmentLengthTicks, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, alwaysBurnInSubtitleWhenTranscoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.getHlsVideoSegment']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -2824,7 +2897,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -2854,7 +2927,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -2864,11 +2937,13 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [maxWidth] Optional. The max width. * @param {number} [maxHeight] Optional. The max height. * @param {boolean} [enableSubtitlesInManifest] Optional. Whether to enable subtitles in the manifest. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getLiveHlsStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, maxWidth?: number, maxHeight?: number, enableSubtitlesInManifest?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLiveHlsStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, maxWidth, maxHeight, enableSubtitlesInManifest, options); + async getLiveHlsStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, maxWidth?: number, maxHeight?: number, enableSubtitlesInManifest?: boolean, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLiveHlsStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, maxWidth, maxHeight, enableSubtitlesInManifest, enableAudioVbrEncoding, alwaysBurnInSubtitleWhenTranscoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.getLiveHlsStream']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -2887,7 +2962,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [segmentLength] The segment length. * @param {number} [minSegments] The minimum number of segments. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -2918,7 +2993,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -2926,11 +3001,12 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getMasterHlsAudioPlaylist(itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options); + async getMasterHlsAudioPlaylist(itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.getMasterHlsAudioPlaylist']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -2949,7 +3025,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [segmentLength] The segment length. * @param {number} [minSegments] The minimum number of segments. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -2981,7 +3057,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -2990,11 +3066,13 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. * @param {boolean} [enableTrickplay] Enable trickplay image playlists being added to master playlist. + * @param {boolean} [enableAudioVbrEncoding] Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getMasterHlsVideoPlaylist(itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableTrickplay?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, enableTrickplay, options); + async getMasterHlsVideoPlaylist(itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableTrickplay?: boolean, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, enableTrickplay, enableAudioVbrEncoding, alwaysBurnInSubtitleWhenTranscoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.getMasterHlsVideoPlaylist']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3013,7 +3091,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -3044,18 +3122,19 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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 {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getVariantHlsAudioPlaylist(itemId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getVariantHlsAudioPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async getVariantHlsAudioPlaylist(itemId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVariantHlsAudioPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.getVariantHlsAudioPlaylist']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3074,7 +3153,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -3106,18 +3185,20 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getVariantHlsVideoPlaylist(itemId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getVariantHlsVideoPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async getVariantHlsVideoPlaylist(itemId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVariantHlsVideoPlaylist(itemId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, alwaysBurnInSubtitleWhenTranscoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.getVariantHlsVideoPlaylist']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3136,7 +3217,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [segmentLength] The segment length. * @param {number} [minSegments] The minimum number of segments. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -3167,7 +3248,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -3175,11 +3256,12 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async headMasterHlsAudioPlaylist(itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.headMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, options); + async headMasterHlsAudioPlaylist(itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, maxStreamingBitrate?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.headMasterHlsAudioPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, maxStreamingBitrate, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.headMasterHlsAudioPlaylist']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3198,7 +3280,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [segmentLength] The segment length. * @param {number} [minSegments] The minimum number of segments. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -3230,7 +3312,7 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. @@ -3239,11 +3321,13 @@ export const DynamicHlsApiFp = function(configuration?: Configuration) { * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. * @param {boolean} [enableAdaptiveBitrateStreaming] Enable adaptive bitrate streaming. * @param {boolean} [enableTrickplay] Enable trickplay image playlists being added to master playlist. + * @param {boolean} [enableAudioVbrEncoding] Whether to enable Audio Encoding. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Whether to always burn in subtitles when transcoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async headMasterHlsVideoPlaylist(itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableTrickplay?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.headMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, enableTrickplay, options); + async headMasterHlsVideoPlaylist(itemId: string, mediaSourceId: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAdaptiveBitrateStreaming?: boolean, enableTrickplay?: boolean, enableAudioVbrEncoding?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.headMasterHlsVideoPlaylist(itemId, mediaSourceId, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAdaptiveBitrateStreaming, enableTrickplay, enableAudioVbrEncoding, alwaysBurnInSubtitleWhenTranscoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DynamicHlsApi.headMasterHlsVideoPlaylist']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -3266,7 +3350,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ getHlsAudioSegment(requestParameters: DynamicHlsApiGetHlsAudioSegmentRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getHlsAudioSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.getHlsAudioSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -3276,7 +3360,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ getHlsVideoSegment(requestParameters: DynamicHlsApiGetHlsVideoSegmentRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getHlsVideoSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.getHlsVideoSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(axios, basePath)); }, /** * @@ -3286,7 +3370,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ getLiveHlsStream(requestParameters: DynamicHlsApiGetLiveHlsStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getLiveHlsStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.enableSubtitlesInManifest, options).then((request) => request(axios, basePath)); + return localVarFp.getLiveHlsStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.enableSubtitlesInManifest, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(axios, basePath)); }, /** * @@ -3296,7 +3380,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ getMasterHlsAudioPlaylist(requestParameters: DynamicHlsApiGetMasterHlsAudioPlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then((request) => request(axios, basePath)); + return localVarFp.getMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -3306,7 +3390,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ getMasterHlsVideoPlaylist(requestParameters: DynamicHlsApiGetMasterHlsVideoPlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableTrickplay, options).then((request) => request(axios, basePath)); + return localVarFp.getMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableTrickplay, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(axios, basePath)); }, /** * @@ -3316,7 +3400,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ getVariantHlsAudioPlaylist(requestParameters: DynamicHlsApiGetVariantHlsAudioPlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getVariantHlsAudioPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.getVariantHlsAudioPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -3326,7 +3410,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ getVariantHlsVideoPlaylist(requestParameters: DynamicHlsApiGetVariantHlsVideoPlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getVariantHlsVideoPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.getVariantHlsVideoPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(axios, basePath)); }, /** * @@ -3336,7 +3420,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ headMasterHlsAudioPlaylist(requestParameters: DynamicHlsApiHeadMasterHlsAudioPlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.headMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then((request) => request(axios, basePath)); + return localVarFp.headMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -3346,7 +3430,7 @@ export const DynamicHlsApiFactory = function (configuration?: Configuration, bas * @throws {RequiredError} */ headMasterHlsVideoPlaylist(requestParameters: DynamicHlsApiHeadMasterHlsVideoPlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.headMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableTrickplay, options).then((request) => request(axios, basePath)); + return localVarFp.headMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableTrickplay, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(axios, basePath)); }, }; }; @@ -3470,7 +3554,7 @@ export interface DynamicHlsApiGetHlsAudioSegmentRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiGetHlsAudioSegment */ @@ -3687,7 +3771,7 @@ export interface DynamicHlsApiGetHlsAudioSegmentRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiGetHlsAudioSegment */ @@ -3734,6 +3818,13 @@ export interface DynamicHlsApiGetHlsAudioSegmentRequest { * @memberof DynamicHlsApiGetHlsAudioSegment */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiGetHlsAudioSegment + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -3855,7 +3946,7 @@ export interface DynamicHlsApiGetHlsVideoSegmentRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiGetHlsVideoSegment */ @@ -4079,7 +4170,7 @@ export interface DynamicHlsApiGetHlsVideoSegmentRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiGetHlsVideoSegment */ @@ -4126,6 +4217,20 @@ export interface DynamicHlsApiGetHlsVideoSegmentRequest { * @memberof DynamicHlsApiGetHlsVideoSegment */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiGetHlsVideoSegment + */ + readonly enableAudioVbrEncoding?: boolean + + /** + * Whether to always burn in subtitles when transcoding. + * @type {boolean} + * @memberof DynamicHlsApiGetHlsVideoSegment + */ + readonly alwaysBurnInSubtitleWhenTranscoding?: boolean } /** @@ -4219,7 +4324,7 @@ export interface DynamicHlsApiGetLiveHlsStreamRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiGetLiveHlsStream */ @@ -4429,7 +4534,7 @@ export interface DynamicHlsApiGetLiveHlsStreamRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiGetLiveHlsStream */ @@ -4497,6 +4602,20 @@ export interface DynamicHlsApiGetLiveHlsStreamRequest { * @memberof DynamicHlsApiGetLiveHlsStream */ readonly enableSubtitlesInManifest?: boolean + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiGetLiveHlsStream + */ + readonly enableAudioVbrEncoding?: boolean + + /** + * Whether to always burn in subtitles when transcoding. + * @type {boolean} + * @memberof DynamicHlsApiGetLiveHlsStream + */ + readonly alwaysBurnInSubtitleWhenTranscoding?: boolean } /** @@ -4583,7 +4702,7 @@ export interface DynamicHlsApiGetMasterHlsAudioPlaylistRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiGetMasterHlsAudioPlaylist */ @@ -4800,7 +4919,7 @@ export interface DynamicHlsApiGetMasterHlsAudioPlaylistRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiGetMasterHlsAudioPlaylist */ @@ -4854,6 +4973,13 @@ export interface DynamicHlsApiGetMasterHlsAudioPlaylistRequest { * @memberof DynamicHlsApiGetMasterHlsAudioPlaylist */ readonly enableAdaptiveBitrateStreaming?: boolean + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiGetMasterHlsAudioPlaylist + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -4940,7 +5066,7 @@ export interface DynamicHlsApiGetMasterHlsVideoPlaylistRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiGetMasterHlsVideoPlaylist */ @@ -5164,7 +5290,7 @@ export interface DynamicHlsApiGetMasterHlsVideoPlaylistRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiGetMasterHlsVideoPlaylist */ @@ -5225,6 +5351,20 @@ export interface DynamicHlsApiGetMasterHlsVideoPlaylistRequest { * @memberof DynamicHlsApiGetMasterHlsVideoPlaylist */ readonly enableTrickplay?: boolean + + /** + * Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiGetMasterHlsVideoPlaylist + */ + readonly enableAudioVbrEncoding?: boolean + + /** + * Whether to always burn in subtitles when transcoding. + * @type {boolean} + * @memberof DynamicHlsApiGetMasterHlsVideoPlaylist + */ + readonly alwaysBurnInSubtitleWhenTranscoding?: boolean } /** @@ -5311,7 +5451,7 @@ export interface DynamicHlsApiGetVariantHlsAudioPlaylistRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiGetVariantHlsAudioPlaylist */ @@ -5528,7 +5668,7 @@ export interface DynamicHlsApiGetVariantHlsAudioPlaylistRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiGetVariantHlsAudioPlaylist */ @@ -5575,6 +5715,13 @@ export interface DynamicHlsApiGetVariantHlsAudioPlaylistRequest { * @memberof DynamicHlsApiGetVariantHlsAudioPlaylist */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiGetVariantHlsAudioPlaylist + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -5661,7 +5808,7 @@ export interface DynamicHlsApiGetVariantHlsVideoPlaylistRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiGetVariantHlsVideoPlaylist */ @@ -5885,7 +6032,7 @@ export interface DynamicHlsApiGetVariantHlsVideoPlaylistRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiGetVariantHlsVideoPlaylist */ @@ -5932,6 +6079,20 @@ export interface DynamicHlsApiGetVariantHlsVideoPlaylistRequest { * @memberof DynamicHlsApiGetVariantHlsVideoPlaylist */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiGetVariantHlsVideoPlaylist + */ + readonly enableAudioVbrEncoding?: boolean + + /** + * Whether to always burn in subtitles when transcoding. + * @type {boolean} + * @memberof DynamicHlsApiGetVariantHlsVideoPlaylist + */ + readonly alwaysBurnInSubtitleWhenTranscoding?: boolean } /** @@ -6018,7 +6179,7 @@ export interface DynamicHlsApiHeadMasterHlsAudioPlaylistRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiHeadMasterHlsAudioPlaylist */ @@ -6235,7 +6396,7 @@ export interface DynamicHlsApiHeadMasterHlsAudioPlaylistRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiHeadMasterHlsAudioPlaylist */ @@ -6289,6 +6450,13 @@ export interface DynamicHlsApiHeadMasterHlsAudioPlaylistRequest { * @memberof DynamicHlsApiHeadMasterHlsAudioPlaylist */ readonly enableAdaptiveBitrateStreaming?: boolean + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiHeadMasterHlsAudioPlaylist + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -6375,7 +6543,7 @@ export interface DynamicHlsApiHeadMasterHlsVideoPlaylistRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. * @type {string} * @memberof DynamicHlsApiHeadMasterHlsVideoPlaylist */ @@ -6599,7 +6767,7 @@ export interface DynamicHlsApiHeadMasterHlsVideoPlaylistRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. * @type {string} * @memberof DynamicHlsApiHeadMasterHlsVideoPlaylist */ @@ -6660,6 +6828,20 @@ export interface DynamicHlsApiHeadMasterHlsVideoPlaylistRequest { * @memberof DynamicHlsApiHeadMasterHlsVideoPlaylist */ readonly enableTrickplay?: boolean + + /** + * Whether to enable Audio Encoding. + * @type {boolean} + * @memberof DynamicHlsApiHeadMasterHlsVideoPlaylist + */ + readonly enableAudioVbrEncoding?: boolean + + /** + * Whether to always burn in subtitles when transcoding. + * @type {boolean} + * @memberof DynamicHlsApiHeadMasterHlsVideoPlaylist + */ + readonly alwaysBurnInSubtitleWhenTranscoding?: boolean } /** @@ -6678,7 +6860,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public getHlsAudioSegment(requestParameters: DynamicHlsApiGetHlsAudioSegmentRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).getHlsAudioSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).getHlsAudioSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6690,7 +6872,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public getHlsVideoSegment(requestParameters: DynamicHlsApiGetHlsVideoSegmentRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).getHlsVideoSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).getHlsVideoSegment(requestParameters.itemId, requestParameters.playlistId, requestParameters.segmentId, requestParameters.container, requestParameters.runtimeTicks, requestParameters.actualSegmentLengthTicks, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6702,7 +6884,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public getLiveHlsStream(requestParameters: DynamicHlsApiGetLiveHlsStreamRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).getLiveHlsStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.enableSubtitlesInManifest, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).getLiveHlsStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.enableSubtitlesInManifest, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6714,7 +6896,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public getMasterHlsAudioPlaylist(requestParameters: DynamicHlsApiGetMasterHlsAudioPlaylistRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).getMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).getMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6726,7 +6908,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public getMasterHlsVideoPlaylist(requestParameters: DynamicHlsApiGetMasterHlsVideoPlaylistRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).getMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableTrickplay, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).getMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableTrickplay, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6738,7 +6920,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public getVariantHlsAudioPlaylist(requestParameters: DynamicHlsApiGetVariantHlsAudioPlaylistRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).getVariantHlsAudioPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).getVariantHlsAudioPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6750,7 +6932,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public getVariantHlsVideoPlaylist(requestParameters: DynamicHlsApiGetVariantHlsVideoPlaylistRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).getVariantHlsVideoPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).getVariantHlsVideoPlaylist(requestParameters.itemId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6762,7 +6944,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public headMasterHlsAudioPlaylist(requestParameters: DynamicHlsApiHeadMasterHlsAudioPlaylistRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).headMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).headMasterHlsAudioPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -6774,7 +6956,7 @@ export class DynamicHlsApi extends BaseAPI { * @memberof DynamicHlsApi */ public headMasterHlsVideoPlaylist(requestParameters: DynamicHlsApiHeadMasterHlsVideoPlaylistRequest, options?: RawAxiosRequestConfig) { - return DynamicHlsApiFp(this.configuration).headMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableTrickplay, options).then((request) => request(this.axios, this.basePath)); + return DynamicHlsApiFp(this.configuration).headMasterHlsVideoPlaylist(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAdaptiveBitrateStreaming, requestParameters.enableTrickplay, requestParameters.enableAudioVbrEncoding, requestParameters.alwaysBurnInSubtitleWhenTranscoding, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/generated-client/api/items-api.ts b/src/generated-client/api/items-api.ts index 57440734..82f337be 100644 --- a/src/generated-client/api/items-api.ts +++ b/src/generated-client/api/items-api.ts @@ -107,6 +107,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {boolean} [hasSpecialFeature] Optional filter by items with special features. * @param {boolean} [hasTrailer] Optional filter by items with trailers. * @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item. + * @param {number} [indexNumber] Optional filter by index number. * @param {number} [parentIndexNumber] Optional filter by parent index number. * @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating. * @param {boolean} [isHd] Optional filter by items that are HD or not. @@ -187,7 +188,7 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getItems: async (userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array, excludeLocationTypes?: Array, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array, parentId?: string, fields?: Array, excludeItemTypes?: Array, includeItemTypes?: Array, filters?: Array, isFavorite?: boolean, mediaTypes?: Array, imageTypes?: Array, sortBy?: Array, isPlayed?: boolean, genres?: Array, officialRatings?: Array, tags?: Array, years?: Array, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array, person?: string, personIds?: Array, personTypes?: Array, studios?: Array, artists?: Array, excludeArtistIds?: Array, artistIds?: Array, albumArtistIds?: Array, contributingArtistIds?: Array, albums?: Array, albumIds?: Array, ids?: Array, videoTypes?: Array, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array, genreIds?: Array, enableTotalRecordCount?: boolean, enableImages?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getItems: async (userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, indexNumber?: number, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array, excludeLocationTypes?: Array, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array, parentId?: string, fields?: Array, excludeItemTypes?: Array, includeItemTypes?: Array, filters?: Array, isFavorite?: boolean, mediaTypes?: Array, imageTypes?: Array, sortBy?: Array, isPlayed?: boolean, genres?: Array, officialRatings?: Array, tags?: Array, years?: Array, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array, person?: string, personIds?: Array, personTypes?: Array, studios?: Array, artists?: Array, excludeArtistIds?: Array, artistIds?: Array, albumArtistIds?: Array, contributingArtistIds?: Array, albums?: Array, albumIds?: Array, ids?: Array, videoTypes?: Array, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array, genreIds?: Array, enableTotalRecordCount?: boolean, enableImages?: boolean, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/Items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -235,6 +236,10 @@ export const ItemsApiAxiosParamCreator = function (configuration?: Configuration localVarQueryParameter['adjacentTo'] = adjacentTo; } + if (indexNumber !== undefined) { + localVarQueryParameter['indexNumber'] = indexNumber; + } + if (parentIndexNumber !== undefined) { localVarQueryParameter['parentIndexNumber'] = parentIndexNumber; } @@ -753,6 +758,7 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {boolean} [hasSpecialFeature] Optional filter by items with special features. * @param {boolean} [hasTrailer] Optional filter by items with trailers. * @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item. + * @param {number} [indexNumber] Optional filter by index number. * @param {number} [parentIndexNumber] Optional filter by parent index number. * @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating. * @param {boolean} [isHd] Optional filter by items that are HD or not. @@ -833,8 +839,8 @@ export const ItemsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getItems(userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array, excludeLocationTypes?: Array, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array, parentId?: string, fields?: Array, excludeItemTypes?: Array, includeItemTypes?: Array, filters?: Array, isFavorite?: boolean, mediaTypes?: Array, imageTypes?: Array, sortBy?: Array, isPlayed?: boolean, genres?: Array, officialRatings?: Array, tags?: Array, years?: Array, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array, person?: string, personIds?: Array, personTypes?: Array, studios?: Array, artists?: Array, excludeArtistIds?: Array, artistIds?: Array, albumArtistIds?: Array, contributingArtistIds?: Array, albums?: Array, albumIds?: Array, ids?: Array, videoTypes?: Array, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array, genreIds?: Array, enableTotalRecordCount?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options); + async getItems(userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, indexNumber?: number, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array, excludeLocationTypes?: Array, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array, parentId?: string, fields?: Array, excludeItemTypes?: Array, includeItemTypes?: Array, filters?: Array, isFavorite?: boolean, mediaTypes?: Array, imageTypes?: Array, sortBy?: Array, isPlayed?: boolean, genres?: Array, officialRatings?: Array, tags?: Array, years?: Array, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array, person?: string, personIds?: Array, personTypes?: Array, studios?: Array, artists?: Array, excludeArtistIds?: Array, artistIds?: Array, albumArtistIds?: Array, contributingArtistIds?: Array, albums?: Array, albumIds?: Array, ids?: Array, videoTypes?: Array, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array, genreIds?: Array, enableTotalRecordCount?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItems(userId, maxOfficialRating, hasThemeSong, hasThemeVideo, hasSubtitles, hasSpecialFeature, hasTrailer, adjacentTo, indexNumber, parentIndexNumber, hasParentalRating, isHd, is4K, locationTypes, excludeLocationTypes, isMissing, isUnaired, minCommunityRating, minCriticRating, minPremiereDate, minDateLastSaved, minDateLastSavedForUser, maxPremiereDate, hasOverview, hasImdbId, hasTmdbId, hasTvdbId, isMovie, isSeries, isNews, isKids, isSports, excludeItemIds, startIndex, limit, recursive, searchTerm, sortOrder, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, imageTypes, sortBy, isPlayed, genres, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, artists, excludeArtistIds, artistIds, albumArtistIds, contributingArtistIds, albums, albumIds, ids, videoTypes, minOfficialRating, isLocked, isPlaceHolder, hasOfficialRating, collapseBoxSetItems, minWidth, minHeight, maxWidth, maxHeight, is3D, seriesStatus, nameStartsWithOrGreater, nameStartsWith, nameLessThan, studioIds, genreIds, enableTotalRecordCount, enableImages, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ItemsApi.getItems']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -909,7 +915,7 @@ export const ItemsApiFactory = function (configuration?: Configuration, basePath * @throws {RequiredError} */ getItems(requestParameters: ItemsApiGetItemsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getItems(requestParameters.userId, requestParameters.maxOfficialRating, requestParameters.hasThemeSong, requestParameters.hasThemeVideo, requestParameters.hasSubtitles, requestParameters.hasSpecialFeature, requestParameters.hasTrailer, requestParameters.adjacentTo, requestParameters.parentIndexNumber, requestParameters.hasParentalRating, requestParameters.isHd, requestParameters.is4K, requestParameters.locationTypes, requestParameters.excludeLocationTypes, requestParameters.isMissing, requestParameters.isUnaired, requestParameters.minCommunityRating, requestParameters.minCriticRating, requestParameters.minPremiereDate, requestParameters.minDateLastSaved, requestParameters.minDateLastSavedForUser, requestParameters.maxPremiereDate, requestParameters.hasOverview, requestParameters.hasImdbId, requestParameters.hasTmdbId, requestParameters.hasTvdbId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.excludeItemIds, requestParameters.startIndex, requestParameters.limit, requestParameters.recursive, requestParameters.searchTerm, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.imageTypes, requestParameters.sortBy, requestParameters.isPlayed, requestParameters.genres, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.artists, requestParameters.excludeArtistIds, requestParameters.artistIds, requestParameters.albumArtistIds, requestParameters.contributingArtistIds, requestParameters.albums, requestParameters.albumIds, requestParameters.ids, requestParameters.videoTypes, requestParameters.minOfficialRating, requestParameters.isLocked, requestParameters.isPlaceHolder, requestParameters.hasOfficialRating, requestParameters.collapseBoxSetItems, requestParameters.minWidth, requestParameters.minHeight, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.is3D, requestParameters.seriesStatus, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.studioIds, requestParameters.genreIds, requestParameters.enableTotalRecordCount, requestParameters.enableImages, options).then((request) => request(axios, basePath)); + return localVarFp.getItems(requestParameters.userId, requestParameters.maxOfficialRating, requestParameters.hasThemeSong, requestParameters.hasThemeVideo, requestParameters.hasSubtitles, requestParameters.hasSpecialFeature, requestParameters.hasTrailer, requestParameters.adjacentTo, requestParameters.indexNumber, requestParameters.parentIndexNumber, requestParameters.hasParentalRating, requestParameters.isHd, requestParameters.is4K, requestParameters.locationTypes, requestParameters.excludeLocationTypes, requestParameters.isMissing, requestParameters.isUnaired, requestParameters.minCommunityRating, requestParameters.minCriticRating, requestParameters.minPremiereDate, requestParameters.minDateLastSaved, requestParameters.minDateLastSavedForUser, requestParameters.maxPremiereDate, requestParameters.hasOverview, requestParameters.hasImdbId, requestParameters.hasTmdbId, requestParameters.hasTvdbId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.excludeItemIds, requestParameters.startIndex, requestParameters.limit, requestParameters.recursive, requestParameters.searchTerm, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.imageTypes, requestParameters.sortBy, requestParameters.isPlayed, requestParameters.genres, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.artists, requestParameters.excludeArtistIds, requestParameters.artistIds, requestParameters.albumArtistIds, requestParameters.contributingArtistIds, requestParameters.albums, requestParameters.albumIds, requestParameters.ids, requestParameters.videoTypes, requestParameters.minOfficialRating, requestParameters.isLocked, requestParameters.isPlaceHolder, requestParameters.hasOfficialRating, requestParameters.collapseBoxSetItems, requestParameters.minWidth, requestParameters.minHeight, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.is3D, requestParameters.seriesStatus, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.studioIds, requestParameters.genreIds, requestParameters.enableTotalRecordCount, requestParameters.enableImages, options).then((request) => request(axios, basePath)); }, /** * @@ -1017,6 +1023,13 @@ export interface ItemsApiGetItemsRequest { */ readonly adjacentTo?: string + /** + * Optional filter by index number. + * @type {number} + * @memberof ItemsApiGetItems + */ + readonly indexNumber?: number + /** * Optional filter by parent index number. * @type {number} @@ -1725,7 +1738,7 @@ export class ItemsApi extends BaseAPI { * @memberof ItemsApi */ public getItems(requestParameters: ItemsApiGetItemsRequest = {}, options?: RawAxiosRequestConfig) { - return ItemsApiFp(this.configuration).getItems(requestParameters.userId, requestParameters.maxOfficialRating, requestParameters.hasThemeSong, requestParameters.hasThemeVideo, requestParameters.hasSubtitles, requestParameters.hasSpecialFeature, requestParameters.hasTrailer, requestParameters.adjacentTo, requestParameters.parentIndexNumber, requestParameters.hasParentalRating, requestParameters.isHd, requestParameters.is4K, requestParameters.locationTypes, requestParameters.excludeLocationTypes, requestParameters.isMissing, requestParameters.isUnaired, requestParameters.minCommunityRating, requestParameters.minCriticRating, requestParameters.minPremiereDate, requestParameters.minDateLastSaved, requestParameters.minDateLastSavedForUser, requestParameters.maxPremiereDate, requestParameters.hasOverview, requestParameters.hasImdbId, requestParameters.hasTmdbId, requestParameters.hasTvdbId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.excludeItemIds, requestParameters.startIndex, requestParameters.limit, requestParameters.recursive, requestParameters.searchTerm, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.imageTypes, requestParameters.sortBy, requestParameters.isPlayed, requestParameters.genres, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.artists, requestParameters.excludeArtistIds, requestParameters.artistIds, requestParameters.albumArtistIds, requestParameters.contributingArtistIds, requestParameters.albums, requestParameters.albumIds, requestParameters.ids, requestParameters.videoTypes, requestParameters.minOfficialRating, requestParameters.isLocked, requestParameters.isPlaceHolder, requestParameters.hasOfficialRating, requestParameters.collapseBoxSetItems, requestParameters.minWidth, requestParameters.minHeight, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.is3D, requestParameters.seriesStatus, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.studioIds, requestParameters.genreIds, requestParameters.enableTotalRecordCount, requestParameters.enableImages, options).then((request) => request(this.axios, this.basePath)); + return ItemsApiFp(this.configuration).getItems(requestParameters.userId, requestParameters.maxOfficialRating, requestParameters.hasThemeSong, requestParameters.hasThemeVideo, requestParameters.hasSubtitles, requestParameters.hasSpecialFeature, requestParameters.hasTrailer, requestParameters.adjacentTo, requestParameters.indexNumber, requestParameters.parentIndexNumber, requestParameters.hasParentalRating, requestParameters.isHd, requestParameters.is4K, requestParameters.locationTypes, requestParameters.excludeLocationTypes, requestParameters.isMissing, requestParameters.isUnaired, requestParameters.minCommunityRating, requestParameters.minCriticRating, requestParameters.minPremiereDate, requestParameters.minDateLastSaved, requestParameters.minDateLastSavedForUser, requestParameters.maxPremiereDate, requestParameters.hasOverview, requestParameters.hasImdbId, requestParameters.hasTmdbId, requestParameters.hasTvdbId, requestParameters.isMovie, requestParameters.isSeries, requestParameters.isNews, requestParameters.isKids, requestParameters.isSports, requestParameters.excludeItemIds, requestParameters.startIndex, requestParameters.limit, requestParameters.recursive, requestParameters.searchTerm, requestParameters.sortOrder, requestParameters.parentId, requestParameters.fields, requestParameters.excludeItemTypes, requestParameters.includeItemTypes, requestParameters.filters, requestParameters.isFavorite, requestParameters.mediaTypes, requestParameters.imageTypes, requestParameters.sortBy, requestParameters.isPlayed, requestParameters.genres, requestParameters.officialRatings, requestParameters.tags, requestParameters.years, requestParameters.enableUserData, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.person, requestParameters.personIds, requestParameters.personTypes, requestParameters.studios, requestParameters.artists, requestParameters.excludeArtistIds, requestParameters.artistIds, requestParameters.albumArtistIds, requestParameters.contributingArtistIds, requestParameters.albums, requestParameters.albumIds, requestParameters.ids, requestParameters.videoTypes, requestParameters.minOfficialRating, requestParameters.isLocked, requestParameters.isPlaceHolder, requestParameters.hasOfficialRating, requestParameters.collapseBoxSetItems, requestParameters.minWidth, requestParameters.minHeight, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.is3D, requestParameters.seriesStatus, requestParameters.nameStartsWithOrGreater, requestParameters.nameStartsWith, requestParameters.nameLessThan, requestParameters.studioIds, requestParameters.genreIds, requestParameters.enableTotalRecordCount, requestParameters.enableImages, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/src/generated-client/api/library-api.ts b/src/generated-client/api/library-api.ts index 8f6d4a7b..a3f11342 100644 --- a/src/generated-client/api/library-api.ts +++ b/src/generated-client/api/library-api.ts @@ -33,12 +33,16 @@ import type { ItemCounts } from '../models'; // @ts-ignore import type { ItemFields } from '../models'; // @ts-ignore +import type { ItemSortBy } from '../models'; +// @ts-ignore import type { LibraryOptionsResultDto } from '../models'; // @ts-ignore import type { MediaUpdateInfoDto } from '../models'; // @ts-ignore import type { ProblemDetails } from '../models'; // @ts-ignore +import type { SortOrder } from '../models'; +// @ts-ignore import type { ThemeMediaResult } from '../models'; /** * LibraryApi - axios parameter creator @@ -780,10 +784,12 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati * @param {string} itemId The item id. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending, Descending. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getThemeMedia: async (itemId: string, userId?: string, inheritFromParent?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getThemeMedia: async (itemId: string, userId?: string, inheritFromParent?: boolean, sortBy?: Array, sortOrder?: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getThemeMedia', 'itemId', itemId) const localVarPath = `/Items/{itemId}/ThemeMedia` @@ -810,6 +816,14 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati localVarQueryParameter['inheritFromParent'] = inheritFromParent; } + if (sortBy) { + localVarQueryParameter['sortBy'] = sortBy; + } + + if (sortOrder) { + localVarQueryParameter['sortOrder'] = sortOrder; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -827,10 +841,12 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati * @param {string} itemId The item id. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending, Descending. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getThemeSongs: async (itemId: string, userId?: string, inheritFromParent?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getThemeSongs: async (itemId: string, userId?: string, inheritFromParent?: boolean, sortBy?: Array, sortOrder?: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getThemeSongs', 'itemId', itemId) const localVarPath = `/Items/{itemId}/ThemeSongs` @@ -857,6 +873,14 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati localVarQueryParameter['inheritFromParent'] = inheritFromParent; } + if (sortBy) { + localVarQueryParameter['sortBy'] = sortBy; + } + + if (sortOrder) { + localVarQueryParameter['sortOrder'] = sortOrder; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -874,10 +898,12 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati * @param {string} itemId The item id. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending, Descending. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getThemeVideos: async (itemId: string, userId?: string, inheritFromParent?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getThemeVideos: async (itemId: string, userId?: string, inheritFromParent?: boolean, sortBy?: Array, sortOrder?: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getThemeVideos', 'itemId', itemId) const localVarPath = `/Items/{itemId}/ThemeVideos` @@ -904,6 +930,14 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati localVarQueryParameter['inheritFromParent'] = inheritFromParent; } + if (sortBy) { + localVarQueryParameter['sortBy'] = sortBy; + } + + if (sortOrder) { + localVarQueryParameter['sortOrder'] = sortOrder; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -1400,11 +1434,13 @@ export const LibraryApiFp = function(configuration?: Configuration) { * @param {string} itemId The item id. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending, Descending. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getThemeMedia(itemId: string, userId?: string, inheritFromParent?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, options); + async getThemeMedia(itemId: string, userId?: string, inheritFromParent?: boolean, sortBy?: Array, sortOrder?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeMedia(itemId, userId, inheritFromParent, sortBy, sortOrder, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LibraryApi.getThemeMedia']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1415,11 +1451,13 @@ export const LibraryApiFp = function(configuration?: Configuration) { * @param {string} itemId The item id. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending, Descending. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getThemeSongs(itemId: string, userId?: string, inheritFromParent?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, options); + async getThemeSongs(itemId: string, userId?: string, inheritFromParent?: boolean, sortBy?: Array, sortOrder?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeSongs(itemId, userId, inheritFromParent, sortBy, sortOrder, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LibraryApi.getThemeSongs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1430,11 +1468,13 @@ export const LibraryApiFp = function(configuration?: Configuration) { * @param {string} itemId The item id. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {boolean} [inheritFromParent] Optional. Determines whether or not parent items should be searched for theme media. + * @param {Array} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @param {Array} [sortOrder] Optional. Sort Order - Ascending, Descending. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getThemeVideos(itemId: string, userId?: string, inheritFromParent?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, options); + async getThemeVideos(itemId: string, userId?: string, inheritFromParent?: boolean, sortBy?: Array, sortOrder?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeVideos(itemId, userId, inheritFromParent, sortBy, sortOrder, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LibraryApi.getThemeVideos']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1696,7 +1736,7 @@ export const LibraryApiFactory = function (configuration?: Configuration, basePa * @throws {RequiredError} */ getThemeMedia(requestParameters: LibraryApiGetThemeMediaRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(axios, basePath)); + return localVarFp.getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath)); }, /** * @@ -1706,7 +1746,7 @@ export const LibraryApiFactory = function (configuration?: Configuration, basePa * @throws {RequiredError} */ getThemeSongs(requestParameters: LibraryApiGetThemeSongsRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(axios, basePath)); + return localVarFp.getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath)); }, /** * @@ -1716,7 +1756,7 @@ export const LibraryApiFactory = function (configuration?: Configuration, basePa * @throws {RequiredError} */ getThemeVideos(requestParameters: LibraryApiGetThemeVideosRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(axios, basePath)); + return localVarFp.getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath)); }, /** * @@ -2205,6 +2245,20 @@ export interface LibraryApiGetThemeMediaRequest { * @memberof LibraryApiGetThemeMedia */ readonly inheritFromParent?: boolean + + /** + * Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @type {Array} + * @memberof LibraryApiGetThemeMedia + */ + readonly sortBy?: Array + + /** + * Optional. Sort Order - Ascending, Descending. + * @type {Array} + * @memberof LibraryApiGetThemeMedia + */ + readonly sortOrder?: Array } /** @@ -2233,6 +2287,20 @@ export interface LibraryApiGetThemeSongsRequest { * @memberof LibraryApiGetThemeSongs */ readonly inheritFromParent?: boolean + + /** + * Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @type {Array} + * @memberof LibraryApiGetThemeSongs + */ + readonly sortBy?: Array + + /** + * Optional. Sort Order - Ascending, Descending. + * @type {Array} + * @memberof LibraryApiGetThemeSongs + */ + readonly sortOrder?: Array } /** @@ -2261,6 +2329,20 @@ export interface LibraryApiGetThemeVideosRequest { * @memberof LibraryApiGetThemeVideos */ readonly inheritFromParent?: boolean + + /** + * Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. + * @type {Array} + * @memberof LibraryApiGetThemeVideos + */ + readonly sortBy?: Array + + /** + * Optional. Sort Order - Ascending, Descending. + * @type {Array} + * @memberof LibraryApiGetThemeVideos + */ + readonly sortOrder?: Array } /** @@ -2555,7 +2637,7 @@ export class LibraryApi extends BaseAPI { * @memberof LibraryApi */ public getThemeMedia(requestParameters: LibraryApiGetThemeMediaRequest, options?: RawAxiosRequestConfig) { - return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath)); + return LibraryApiFp(this.configuration).getThemeMedia(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath)); } /** @@ -2567,7 +2649,7 @@ export class LibraryApi extends BaseAPI { * @memberof LibraryApi */ public getThemeSongs(requestParameters: LibraryApiGetThemeSongsRequest, options?: RawAxiosRequestConfig) { - return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath)); + return LibraryApiFp(this.configuration).getThemeSongs(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath)); } /** @@ -2579,7 +2661,7 @@ export class LibraryApi extends BaseAPI { * @memberof LibraryApi */ public getThemeVideos(requestParameters: LibraryApiGetThemeVideosRequest, options?: RawAxiosRequestConfig) { - return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, options).then((request) => request(this.axios, this.basePath)); + return LibraryApiFp(this.configuration).getThemeVideos(requestParameters.itemId, requestParameters.userId, requestParameters.inheritFromParent, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/src/generated-client/api/media-info-api.ts b/src/generated-client/api/media-info-api.ts index c3771867..f4934a47 100644 --- a/src/generated-client/api/media-info-api.ts +++ b/src/generated-client/api/media-info-api.ts @@ -281,11 +281,12 @@ export const MediaInfoApiAxiosParamCreator = function (configuration?: Configura * @param {string} [itemId] The item id. * @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true. * @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Always burn-in subtitle when transcoding. * @param {OpenLiveStreamDto} [openLiveStreamDto] The open live stream dto. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - openLiveStream: async (openToken?: string, userId?: string, playSessionId?: string, maxStreamingBitrate?: number, startTimeTicks?: number, audioStreamIndex?: number, subtitleStreamIndex?: number, maxAudioChannels?: number, itemId?: string, enableDirectPlay?: boolean, enableDirectStream?: boolean, openLiveStreamDto?: OpenLiveStreamDto, options: RawAxiosRequestConfig = {}): Promise => { + openLiveStream: async (openToken?: string, userId?: string, playSessionId?: string, maxStreamingBitrate?: number, startTimeTicks?: number, audioStreamIndex?: number, subtitleStreamIndex?: number, maxAudioChannels?: number, itemId?: string, enableDirectPlay?: boolean, enableDirectStream?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, openLiveStreamDto?: OpenLiveStreamDto, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/LiveStreams/Open`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -345,6 +346,10 @@ export const MediaInfoApiAxiosParamCreator = function (configuration?: Configura localVarQueryParameter['enableDirectStream'] = enableDirectStream; } + if (alwaysBurnInSubtitleWhenTranscoding !== undefined) { + localVarQueryParameter['alwaysBurnInSubtitleWhenTranscoding'] = alwaysBurnInSubtitleWhenTranscoding; + } + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -451,12 +456,13 @@ export const MediaInfoApiFp = function(configuration?: Configuration) { * @param {string} [itemId] The item id. * @param {boolean} [enableDirectPlay] Whether to enable direct play. Default: true. * @param {boolean} [enableDirectStream] Whether to enable direct stream. Default: true. + * @param {boolean} [alwaysBurnInSubtitleWhenTranscoding] Always burn-in subtitle when transcoding. * @param {OpenLiveStreamDto} [openLiveStreamDto] The open live stream dto. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async openLiveStream(openToken?: string, userId?: string, playSessionId?: string, maxStreamingBitrate?: number, startTimeTicks?: number, audioStreamIndex?: number, subtitleStreamIndex?: number, maxAudioChannels?: number, itemId?: string, enableDirectPlay?: boolean, enableDirectStream?: boolean, openLiveStreamDto?: OpenLiveStreamDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, openLiveStreamDto, options); + async openLiveStream(openToken?: string, userId?: string, playSessionId?: string, maxStreamingBitrate?: number, startTimeTicks?: number, audioStreamIndex?: number, subtitleStreamIndex?: number, maxAudioChannels?: number, itemId?: string, enableDirectPlay?: boolean, enableDirectStream?: boolean, alwaysBurnInSubtitleWhenTranscoding?: boolean, openLiveStreamDto?: OpenLiveStreamDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.openLiveStream(openToken, userId, playSessionId, maxStreamingBitrate, startTimeTicks, audioStreamIndex, subtitleStreamIndex, maxAudioChannels, itemId, enableDirectPlay, enableDirectStream, alwaysBurnInSubtitleWhenTranscoding, openLiveStreamDto, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['MediaInfoApi.openLiveStream']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -519,7 +525,7 @@ export const MediaInfoApiFactory = function (configuration?: Configuration, base * @throws {RequiredError} */ openLiveStream(requestParameters: MediaInfoApiOpenLiveStreamRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.openLiveStreamDto, options).then((request) => request(axios, basePath)); + return localVarFp.openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.alwaysBurnInSubtitleWhenTranscoding, requestParameters.openLiveStreamDto, options).then((request) => request(axios, basePath)); }, }; }; @@ -775,6 +781,13 @@ export interface MediaInfoApiOpenLiveStreamRequest { */ readonly enableDirectStream?: boolean + /** + * Always burn-in subtitle when transcoding. + * @type {boolean} + * @memberof MediaInfoApiOpenLiveStream + */ + readonly alwaysBurnInSubtitleWhenTranscoding?: boolean + /** * The open live stream dto. * @type {OpenLiveStreamDto} @@ -847,7 +860,7 @@ export class MediaInfoApi extends BaseAPI { * @memberof MediaInfoApi */ public openLiveStream(requestParameters: MediaInfoApiOpenLiveStreamRequest = {}, options?: RawAxiosRequestConfig) { - return MediaInfoApiFp(this.configuration).openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.openLiveStreamDto, options).then((request) => request(this.axios, this.basePath)); + return MediaInfoApiFp(this.configuration).openLiveStream(requestParameters.openToken, requestParameters.userId, requestParameters.playSessionId, requestParameters.maxStreamingBitrate, requestParameters.startTimeTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.maxAudioChannels, requestParameters.itemId, requestParameters.enableDirectPlay, requestParameters.enableDirectStream, requestParameters.alwaysBurnInSubtitleWhenTranscoding, requestParameters.openLiveStreamDto, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/generated-client/api/media-segments-api.ts b/src/generated-client/api/media-segments-api.ts new file mode 100644 index 00000000..d0979484 --- /dev/null +++ b/src/generated-client/api/media-segments-api.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; +// @ts-ignore +import type { MediaSegmentDtoQueryResult } from '../models'; +// @ts-ignore +import type { MediaSegmentType } from '../models'; +// @ts-ignore +import type { ProblemDetails } from '../models'; +/** + * MediaSegmentsApi - axios parameter creator + * @export + */ +export const MediaSegmentsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Gets all media segments based on an itemId. + * @param {string} itemId The ItemId. + * @param {Array} [includeSegmentTypes] Optional filter of requested segment types. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemSegments: async (itemId: string, includeSegmentTypes?: Array, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'itemId' is not null or undefined + assertParamExists('getItemSegments', 'itemId', itemId) + const localVarPath = `/MediaSegments/{itemId}` + .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication CustomAuthentication required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (includeSegmentTypes) { + localVarQueryParameter['includeSegmentTypes'] = includeSegmentTypes; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * MediaSegmentsApi - functional programming interface + * @export + */ +export const MediaSegmentsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = MediaSegmentsApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Gets all media segments based on an itemId. + * @param {string} itemId The ItemId. + * @param {Array} [includeSegmentTypes] Optional filter of requested segment types. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getItemSegments(itemId: string, includeSegmentTypes?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getItemSegments(itemId, includeSegmentTypes, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['MediaSegmentsApi.getItemSegments']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + } +}; + +/** + * MediaSegmentsApi - factory interface + * @export + */ +export const MediaSegmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MediaSegmentsApiFp(configuration) + return { + /** + * + * @summary Gets all media segments based on an itemId. + * @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getItemSegments(requestParameters: MediaSegmentsApiGetItemSegmentsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getItemSegments(requestParameters.itemId, requestParameters.includeSegmentTypes, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getItemSegments operation in MediaSegmentsApi. + * @export + * @interface MediaSegmentsApiGetItemSegmentsRequest + */ +export interface MediaSegmentsApiGetItemSegmentsRequest { + /** + * The ItemId. + * @type {string} + * @memberof MediaSegmentsApiGetItemSegments + */ + readonly itemId: string + + /** + * Optional filter of requested segment types. + * @type {Array} + * @memberof MediaSegmentsApiGetItemSegments + */ + readonly includeSegmentTypes?: Array +} + +/** + * MediaSegmentsApi - object-oriented interface + * @export + * @class MediaSegmentsApi + * @extends {BaseAPI} + */ +export class MediaSegmentsApi extends BaseAPI { + /** + * + * @summary Gets all media segments based on an itemId. + * @param {MediaSegmentsApiGetItemSegmentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MediaSegmentsApi + */ + public getItemSegments(requestParameters: MediaSegmentsApiGetItemSegmentsRequest, options?: RawAxiosRequestConfig) { + return MediaSegmentsApiFp(this.configuration).getItemSegments(requestParameters.itemId, requestParameters.includeSegmentTypes, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/src/generated-client/api/playlists-api.ts b/src/generated-client/api/playlists-api.ts index cc6e1c49..b8d3994f 100644 --- a/src/generated-client/api/playlists-api.ts +++ b/src/generated-client/api/playlists-api.ts @@ -33,6 +33,8 @@ import type { MediaType } from '../models'; // @ts-ignore import type { PlaylistCreationResult } from '../models'; // @ts-ignore +import type { PlaylistDto } from '../models'; +// @ts-ignore import type { PlaylistUserPermissions } from '../models'; // @ts-ignore import type { ProblemDetails } from '../models'; @@ -150,6 +152,43 @@ export const PlaylistsApiAxiosParamCreator = function (configuration?: Configura options: localVarRequestOptions, }; }, + /** + * + * @summary Get a playlist. + * @param {string} playlistId The playlist id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPlaylist: async (playlistId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'playlistId' is not null or undefined + assertParamExists('getPlaylist', 'playlistId', playlistId) + const localVarPath = `/Playlists/{playlistId}` + .replace(`{${"playlistId"}}`, encodeURIComponent(String(playlistId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication CustomAuthentication required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * * @summary Gets the original items of a playlist. @@ -565,6 +604,19 @@ export const PlaylistsApiFp = function(configuration?: Configuration) { const localVarOperationServerBasePath = operationServerMap['PlaylistsApi.createPlaylist']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, + /** + * + * @summary Get a playlist. + * @param {string} playlistId The playlist id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPlaylist(playlistId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylist(playlistId, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PlaylistsApi.getPlaylist']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, /** * * @summary Gets the original items of a playlist. @@ -715,6 +767,16 @@ export const PlaylistsApiFactory = function (configuration?: Configuration, base createPlaylist(requestParameters: PlaylistsApiCreatePlaylistRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createPlaylist(requestParameters.name, requestParameters.ids, requestParameters.userId, requestParameters.mediaType, requestParameters.createPlaylistDto, options).then((request) => request(axios, basePath)); }, + /** + * + * @summary Get a playlist. + * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPlaylist(requestParameters: PlaylistsApiGetPlaylistRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getPlaylist(requestParameters.playlistId, options).then((request) => request(axios, basePath)); + }, /** * * @summary Gets the original items of a playlist. @@ -868,6 +930,20 @@ export interface PlaylistsApiCreatePlaylistRequest { readonly createPlaylistDto?: CreatePlaylistDto } +/** + * Request parameters for getPlaylist operation in PlaylistsApi. + * @export + * @interface PlaylistsApiGetPlaylistRequest + */ +export interface PlaylistsApiGetPlaylistRequest { + /** + * The playlist id. + * @type {string} + * @memberof PlaylistsApiGetPlaylist + */ + readonly playlistId: string +} + /** * Request parameters for getPlaylistItems operation in PlaylistsApi. * @export @@ -1123,6 +1199,18 @@ export class PlaylistsApi extends BaseAPI { return PlaylistsApiFp(this.configuration).createPlaylist(requestParameters.name, requestParameters.ids, requestParameters.userId, requestParameters.mediaType, requestParameters.createPlaylistDto, options).then((request) => request(this.axios, this.basePath)); } + /** + * + * @summary Get a playlist. + * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlaylistsApi + */ + public getPlaylist(requestParameters: PlaylistsApiGetPlaylistRequest, options?: RawAxiosRequestConfig) { + return PlaylistsApiFp(this.configuration).getPlaylist(requestParameters.playlistId, options).then((request) => request(this.axios, this.basePath)); + } + /** * * @summary Gets the original items of a playlist. diff --git a/src/generated-client/api/session-api.ts b/src/generated-client/api/session-api.ts index b0da68e2..6a116457 100644 --- a/src/generated-client/api/session-api.ts +++ b/src/generated-client/api/session-api.ts @@ -39,7 +39,7 @@ import type { PlayCommand } from '../models'; // @ts-ignore import type { PlaystateCommand } from '../models'; // @ts-ignore -import type { SessionInfo } from '../models'; +import type { SessionInfoDto } from '../models'; /** * SessionApi - axios parameter creator * @export @@ -848,7 +848,7 @@ export const SessionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSessions(controllableByUserId?: string, deviceId?: string, activeWithinSeconds?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getSessions(controllableByUserId?: string, deviceId?: string, activeWithinSeconds?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SessionApi.getSessions']?.[localVarOperationServerIndex]?.url; @@ -1072,7 +1072,7 @@ export const SessionApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSessions(requestParameters: SessionApiGetSessionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { + getSessions(requestParameters: SessionApiGetSessionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSessions(requestParameters.controllableByUserId, requestParameters.deviceId, requestParameters.activeWithinSeconds, options).then((request) => request(axios, basePath)); }, /** diff --git a/src/generated-client/api/universal-audio-api.ts b/src/generated-client/api/universal-audio-api.ts index 1261c5f6..97de36e5 100644 --- a/src/generated-client/api/universal-audio-api.ts +++ b/src/generated-client/api/universal-audio-api.ts @@ -49,12 +49,13 @@ export const UniversalAudioApiAxiosParamCreator = function (configuration?: Conf * @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate. * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. * @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. * @param {boolean} [enableRedirection] Whether to enable redirection. Defaults to true. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getUniversalAudioStream: async (itemId: string, container?: Array, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + getUniversalAudioStream: async (itemId: string, container?: Array, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, enableAudioVbrEncoding?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getUniversalAudioStream', 'itemId', itemId) const localVarPath = `/Audio/{itemId}/universal` @@ -133,6 +134,10 @@ export const UniversalAudioApiAxiosParamCreator = function (configuration?: Conf localVarQueryParameter['enableRemoteMedia'] = enableRemoteMedia; } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + if (breakOnNonKeyFrames !== undefined) { localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; } @@ -171,12 +176,13 @@ export const UniversalAudioApiAxiosParamCreator = function (configuration?: Conf * @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate. * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. * @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. * @param {boolean} [enableRedirection] Whether to enable redirection. Defaults to true. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - headUniversalAudioStream: async (itemId: string, container?: Array, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + headUniversalAudioStream: async (itemId: string, container?: Array, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, enableAudioVbrEncoding?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('headUniversalAudioStream', 'itemId', itemId) const localVarPath = `/Audio/{itemId}/universal` @@ -255,6 +261,10 @@ export const UniversalAudioApiAxiosParamCreator = function (configuration?: Conf localVarQueryParameter['enableRemoteMedia'] = enableRemoteMedia; } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + if (breakOnNonKeyFrames !== undefined) { localVarQueryParameter['breakOnNonKeyFrames'] = breakOnNonKeyFrames; } @@ -303,13 +313,14 @@ export const UniversalAudioApiFp = function(configuration?: Configuration) { * @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate. * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. * @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. * @param {boolean} [enableRedirection] Whether to enable redirection. Defaults to true. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getUniversalAudioStream(itemId: string, container?: Array, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getUniversalAudioStream(itemId, container, mediaSourceId, deviceId, userId, audioCodec, maxAudioChannels, transcodingAudioChannels, maxStreamingBitrate, audioBitRate, startTimeTicks, transcodingContainer, transcodingProtocol, maxAudioSampleRate, maxAudioBitDepth, enableRemoteMedia, breakOnNonKeyFrames, enableRedirection, options); + async getUniversalAudioStream(itemId: string, container?: Array, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, enableAudioVbrEncoding?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUniversalAudioStream(itemId, container, mediaSourceId, deviceId, userId, audioCodec, maxAudioChannels, transcodingAudioChannels, maxStreamingBitrate, audioBitRate, startTimeTicks, transcodingContainer, transcodingProtocol, maxAudioSampleRate, maxAudioBitDepth, enableRemoteMedia, enableAudioVbrEncoding, breakOnNonKeyFrames, enableRedirection, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UniversalAudioApi.getUniversalAudioStream']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -333,13 +344,14 @@ export const UniversalAudioApiFp = function(configuration?: Configuration) { * @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate. * @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth. * @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {boolean} [breakOnNonKeyFrames] Optional. Whether to break on non key frames. * @param {boolean} [enableRedirection] Whether to enable redirection. Defaults to true. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async headUniversalAudioStream(itemId: string, container?: Array, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.headUniversalAudioStream(itemId, container, mediaSourceId, deviceId, userId, audioCodec, maxAudioChannels, transcodingAudioChannels, maxStreamingBitrate, audioBitRate, startTimeTicks, transcodingContainer, transcodingProtocol, maxAudioSampleRate, maxAudioBitDepth, enableRemoteMedia, breakOnNonKeyFrames, enableRedirection, options); + async headUniversalAudioStream(itemId: string, container?: Array, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, enableAudioVbrEncoding?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.headUniversalAudioStream(itemId, container, mediaSourceId, deviceId, userId, audioCodec, maxAudioChannels, transcodingAudioChannels, maxStreamingBitrate, audioBitRate, startTimeTicks, transcodingContainer, transcodingProtocol, maxAudioSampleRate, maxAudioBitDepth, enableRemoteMedia, enableAudioVbrEncoding, breakOnNonKeyFrames, enableRedirection, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['UniversalAudioApi.headUniversalAudioStream']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -362,7 +374,7 @@ export const UniversalAudioApiFactory = function (configuration?: Configuration, * @throws {RequiredError} */ getUniversalAudioStream(requestParameters: UniversalAudioApiGetUniversalAudioStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getUniversalAudioStream(requestParameters.itemId, requestParameters.container, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.userId, requestParameters.audioCodec, requestParameters.maxAudioChannels, requestParameters.transcodingAudioChannels, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.startTimeTicks, requestParameters.transcodingContainer, requestParameters.transcodingProtocol, requestParameters.maxAudioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.enableRemoteMedia, requestParameters.breakOnNonKeyFrames, requestParameters.enableRedirection, options).then((request) => request(axios, basePath)); + return localVarFp.getUniversalAudioStream(requestParameters.itemId, requestParameters.container, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.userId, requestParameters.audioCodec, requestParameters.maxAudioChannels, requestParameters.transcodingAudioChannels, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.startTimeTicks, requestParameters.transcodingContainer, requestParameters.transcodingProtocol, requestParameters.maxAudioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.enableRemoteMedia, requestParameters.enableAudioVbrEncoding, requestParameters.breakOnNonKeyFrames, requestParameters.enableRedirection, options).then((request) => request(axios, basePath)); }, /** * @@ -372,7 +384,7 @@ export const UniversalAudioApiFactory = function (configuration?: Configuration, * @throws {RequiredError} */ headUniversalAudioStream(requestParameters: UniversalAudioApiHeadUniversalAudioStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.headUniversalAudioStream(requestParameters.itemId, requestParameters.container, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.userId, requestParameters.audioCodec, requestParameters.maxAudioChannels, requestParameters.transcodingAudioChannels, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.startTimeTicks, requestParameters.transcodingContainer, requestParameters.transcodingProtocol, requestParameters.maxAudioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.enableRemoteMedia, requestParameters.breakOnNonKeyFrames, requestParameters.enableRedirection, options).then((request) => request(axios, basePath)); + return localVarFp.headUniversalAudioStream(requestParameters.itemId, requestParameters.container, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.userId, requestParameters.audioCodec, requestParameters.maxAudioChannels, requestParameters.transcodingAudioChannels, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.startTimeTicks, requestParameters.transcodingContainer, requestParameters.transcodingProtocol, requestParameters.maxAudioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.enableRemoteMedia, requestParameters.enableAudioVbrEncoding, requestParameters.breakOnNonKeyFrames, requestParameters.enableRedirection, options).then((request) => request(axios, basePath)); }, }; }; @@ -495,6 +507,13 @@ export interface UniversalAudioApiGetUniversalAudioStreamRequest { */ readonly enableRemoteMedia?: boolean + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof UniversalAudioApiGetUniversalAudioStream + */ + readonly enableAudioVbrEncoding?: boolean + /** * Optional. Whether to break on non key frames. * @type {boolean} @@ -628,6 +647,13 @@ export interface UniversalAudioApiHeadUniversalAudioStreamRequest { */ readonly enableRemoteMedia?: boolean + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof UniversalAudioApiHeadUniversalAudioStream + */ + readonly enableAudioVbrEncoding?: boolean + /** * Optional. Whether to break on non key frames. * @type {boolean} @@ -659,7 +685,7 @@ export class UniversalAudioApi extends BaseAPI { * @memberof UniversalAudioApi */ public getUniversalAudioStream(requestParameters: UniversalAudioApiGetUniversalAudioStreamRequest, options?: RawAxiosRequestConfig) { - return UniversalAudioApiFp(this.configuration).getUniversalAudioStream(requestParameters.itemId, requestParameters.container, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.userId, requestParameters.audioCodec, requestParameters.maxAudioChannels, requestParameters.transcodingAudioChannels, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.startTimeTicks, requestParameters.transcodingContainer, requestParameters.transcodingProtocol, requestParameters.maxAudioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.enableRemoteMedia, requestParameters.breakOnNonKeyFrames, requestParameters.enableRedirection, options).then((request) => request(this.axios, this.basePath)); + return UniversalAudioApiFp(this.configuration).getUniversalAudioStream(requestParameters.itemId, requestParameters.container, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.userId, requestParameters.audioCodec, requestParameters.maxAudioChannels, requestParameters.transcodingAudioChannels, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.startTimeTicks, requestParameters.transcodingContainer, requestParameters.transcodingProtocol, requestParameters.maxAudioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.enableRemoteMedia, requestParameters.enableAudioVbrEncoding, requestParameters.breakOnNonKeyFrames, requestParameters.enableRedirection, options).then((request) => request(this.axios, this.basePath)); } /** @@ -671,7 +697,7 @@ export class UniversalAudioApi extends BaseAPI { * @memberof UniversalAudioApi */ public headUniversalAudioStream(requestParameters: UniversalAudioApiHeadUniversalAudioStreamRequest, options?: RawAxiosRequestConfig) { - return UniversalAudioApiFp(this.configuration).headUniversalAudioStream(requestParameters.itemId, requestParameters.container, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.userId, requestParameters.audioCodec, requestParameters.maxAudioChannels, requestParameters.transcodingAudioChannels, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.startTimeTicks, requestParameters.transcodingContainer, requestParameters.transcodingProtocol, requestParameters.maxAudioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.enableRemoteMedia, requestParameters.breakOnNonKeyFrames, requestParameters.enableRedirection, options).then((request) => request(this.axios, this.basePath)); + return UniversalAudioApiFp(this.configuration).headUniversalAudioStream(requestParameters.itemId, requestParameters.container, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.userId, requestParameters.audioCodec, requestParameters.maxAudioChannels, requestParameters.transcodingAudioChannels, requestParameters.maxStreamingBitrate, requestParameters.audioBitRate, requestParameters.startTimeTicks, requestParameters.transcodingContainer, requestParameters.transcodingProtocol, requestParameters.maxAudioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.enableRemoteMedia, requestParameters.enableAudioVbrEncoding, requestParameters.breakOnNonKeyFrames, requestParameters.enableRedirection, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/generated-client/api/videos-api.ts b/src/generated-client/api/videos-api.ts index 19c4bc18..eb58942e 100644 --- a/src/generated-client/api/videos-api.ts +++ b/src/generated-client/api/videos-api.ts @@ -128,7 +128,7 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -160,17 +160,18 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVideoStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + getVideoStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getVideoStream', 'itemId', itemId) const localVarPath = `/Videos/{itemId}/stream` @@ -388,6 +389,10 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -414,7 +419,7 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -446,17 +451,18 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVideoStreamByContainer: async (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + getVideoStreamByContainer: async (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('getVideoStreamByContainer', 'itemId', itemId) // verify required parameter 'container' is not null or undefined @@ -673,6 +679,10 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -699,7 +709,7 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -731,17 +741,18 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - headVideoStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + headVideoStream: async (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('headVideoStream', 'itemId', itemId) const localVarPath = `/Videos/{itemId}/stream` @@ -959,6 +970,10 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -985,7 +1000,7 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1017,17 +1032,18 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - headVideoStreamByContainer: async (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise => { + headVideoStreamByContainer: async (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('headVideoStreamByContainer', 'itemId', itemId) // verify required parameter 'container' is not null or undefined @@ -1244,6 +1260,10 @@ export const VideosApiAxiosParamCreator = function (configuration?: Configuratio } } + if (enableAudioVbrEncoding !== undefined) { + localVarQueryParameter['enableAudioVbrEncoding'] = enableAudioVbrEncoding; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -1347,7 +1367,7 @@ export const VideosApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1379,18 +1399,19 @@ export const VideosApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getVideoStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getVideoStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async getVideoStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVideoStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['VideosApi.getVideoStream']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1410,7 +1431,7 @@ export const VideosApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1442,18 +1463,19 @@ export const VideosApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getVideoStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getVideoStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async getVideoStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVideoStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['VideosApi.getVideoStreamByContainer']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1473,7 +1495,7 @@ export const VideosApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1505,18 +1527,19 @@ export const VideosApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async headVideoStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.headVideoStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async headVideoStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.headVideoStream(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['VideosApi.headVideoStream']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1536,7 +1559,7 @@ export const VideosApiFp = function(configuration?: Configuration) { * @param {number} [minSegments] The minimum number of segments. * @param {string} [mediaSourceId] The media version id, if playing an alternate version. * @param {string} [deviceId] The device id of the client requesting. Used to stop encoding processes when needed. - * @param {string} [audioCodec] Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * @param {string} [audioCodec] Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @param {boolean} [enableAutoStreamCopy] Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true. * @param {boolean} [allowVideoStreamCopy] Whether or not to allow copying of the video stream url. * @param {boolean} [allowAudioStreamCopy] Whether or not to allow copying of the audio stream url. @@ -1568,18 +1591,19 @@ export const VideosApiFp = function(configuration?: Configuration) { * @param {number} [cpuCoreLimit] Optional. The limit of how many cpu cores to use. * @param {string} [liveStreamId] The live stream id. * @param {boolean} [enableMpegtsM2TsMode] Optional. Whether to enable the MpegtsM2Ts mode. - * @param {string} [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, vp8, vp9, vpx (deprecated), wmv. + * @param {string} [videoCodec] Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @param {string} [subtitleCodec] Optional. Specify a subtitle codec to encode to. * @param {string} [transcodeReasons] Optional. The transcoding reason. * @param {number} [audioStreamIndex] Optional. The index of the audio stream to use. If omitted the first audio stream will be used. * @param {number} [videoStreamIndex] Optional. The index of the video stream to use. If omitted the first video stream will be used. * @param {EncodingContext} [context] Optional. The MediaBrowser.Model.Dlna.EncodingContext. * @param {{ [key: string]: string; }} [streamOptions] Optional. The streaming options. + * @param {boolean} [enableAudioVbrEncoding] Optional. Whether to enable Audio Encoding. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async headVideoStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.headVideoStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, options); + async headVideoStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, maxWidth?: number, maxHeight?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: { [key: string]: string; }, enableAudioVbrEncoding?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.headVideoStreamByContainer(itemId, container, _static, params, tag, deviceProfileId, playSessionId, segmentContainer, segmentLength, minSegments, mediaSourceId, deviceId, audioCodec, enableAutoStreamCopy, allowVideoStreamCopy, allowAudioStreamCopy, breakOnNonKeyFrames, audioSampleRate, maxAudioBitDepth, audioBitRate, audioChannels, maxAudioChannels, profile, level, framerate, maxFramerate, copyTimestamps, startTimeTicks, width, height, maxWidth, maxHeight, videoBitRate, subtitleStreamIndex, subtitleMethod, maxRefFrames, maxVideoBitDepth, requireAvc, deInterlace, requireNonAnamorphic, transcodingMaxAudioChannels, cpuCoreLimit, liveStreamId, enableMpegtsM2TsMode, videoCodec, subtitleCodec, transcodeReasons, audioStreamIndex, videoStreamIndex, context, streamOptions, enableAudioVbrEncoding, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['VideosApi.headVideoStreamByContainer']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1635,7 +1659,7 @@ export const VideosApiFactory = function (configuration?: Configuration, basePat * @throws {RequiredError} */ getVideoStream(requestParameters: VideosApiGetVideoStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getVideoStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.getVideoStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -1645,7 +1669,7 @@ export const VideosApiFactory = function (configuration?: Configuration, basePat * @throws {RequiredError} */ getVideoStreamByContainer(requestParameters: VideosApiGetVideoStreamByContainerRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.getVideoStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.getVideoStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -1655,7 +1679,7 @@ export const VideosApiFactory = function (configuration?: Configuration, basePat * @throws {RequiredError} */ headVideoStream(requestParameters: VideosApiHeadVideoStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.headVideoStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.headVideoStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -1665,7 +1689,7 @@ export const VideosApiFactory = function (configuration?: Configuration, basePat * @throws {RequiredError} */ headVideoStreamByContainer(requestParameters: VideosApiHeadVideoStreamByContainerRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.headVideoStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(axios, basePath)); + return localVarFp.headVideoStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(axios, basePath)); }, /** * @@ -1806,7 +1830,7 @@ export interface VideosApiGetVideoStreamRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof VideosApiGetVideoStream */ @@ -2030,7 +2054,7 @@ export interface VideosApiGetVideoStreamRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof VideosApiGetVideoStream */ @@ -2077,6 +2101,13 @@ export interface VideosApiGetVideoStreamRequest { * @memberof VideosApiGetVideoStream */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof VideosApiGetVideoStream + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -2170,7 +2201,7 @@ export interface VideosApiGetVideoStreamByContainerRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof VideosApiGetVideoStreamByContainer */ @@ -2394,7 +2425,7 @@ export interface VideosApiGetVideoStreamByContainerRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof VideosApiGetVideoStreamByContainer */ @@ -2441,6 +2472,13 @@ export interface VideosApiGetVideoStreamByContainerRequest { * @memberof VideosApiGetVideoStreamByContainer */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof VideosApiGetVideoStreamByContainer + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -2534,7 +2572,7 @@ export interface VideosApiHeadVideoStreamRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof VideosApiHeadVideoStream */ @@ -2758,7 +2796,7 @@ export interface VideosApiHeadVideoStreamRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof VideosApiHeadVideoStream */ @@ -2805,6 +2843,13 @@ export interface VideosApiHeadVideoStreamRequest { * @memberof VideosApiHeadVideoStream */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof VideosApiHeadVideoStream + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -2898,7 +2943,7 @@ export interface VideosApiHeadVideoStreamByContainerRequest { readonly deviceId?: string /** - * Optional. Specify a audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. Options: aac, mp3, vorbis, wma. + * Optional. Specify an audio codec to encode to, e.g. mp3. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof VideosApiHeadVideoStreamByContainer */ @@ -3122,7 +3167,7 @@ export interface VideosApiHeadVideoStreamByContainerRequest { readonly enableMpegtsM2TsMode?: boolean /** - * 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, vp8, vp9, vpx (deprecated), wmv. + * Optional. Specify a video codec to encode to, e.g. h264. If omitted the server will auto-select using the url\'s extension. * @type {string} * @memberof VideosApiHeadVideoStreamByContainer */ @@ -3169,6 +3214,13 @@ export interface VideosApiHeadVideoStreamByContainerRequest { * @memberof VideosApiHeadVideoStreamByContainer */ readonly streamOptions?: { [key: string]: string; } + + /** + * Optional. Whether to enable Audio Encoding. + * @type {boolean} + * @memberof VideosApiHeadVideoStreamByContainer + */ + readonly enableAudioVbrEncoding?: boolean } /** @@ -3225,7 +3277,7 @@ export class VideosApi extends BaseAPI { * @memberof VideosApi */ public getVideoStream(requestParameters: VideosApiGetVideoStreamRequest, options?: RawAxiosRequestConfig) { - return VideosApiFp(this.configuration).getVideoStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return VideosApiFp(this.configuration).getVideoStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -3237,7 +3289,7 @@ export class VideosApi extends BaseAPI { * @memberof VideosApi */ public getVideoStreamByContainer(requestParameters: VideosApiGetVideoStreamByContainerRequest, options?: RawAxiosRequestConfig) { - return VideosApiFp(this.configuration).getVideoStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return VideosApiFp(this.configuration).getVideoStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -3249,7 +3301,7 @@ export class VideosApi extends BaseAPI { * @memberof VideosApi */ public headVideoStream(requestParameters: VideosApiHeadVideoStreamRequest, options?: RawAxiosRequestConfig) { - return VideosApiFp(this.configuration).headVideoStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return VideosApiFp(this.configuration).headVideoStream(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** @@ -3261,7 +3313,7 @@ export class VideosApi extends BaseAPI { * @memberof VideosApi */ public headVideoStreamByContainer(requestParameters: VideosApiHeadVideoStreamByContainerRequest, options?: RawAxiosRequestConfig) { - return VideosApiFp(this.configuration).headVideoStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, options).then((request) => request(this.axios, this.basePath)); + return VideosApiFp(this.configuration).headVideoStreamByContainer(requestParameters.itemId, requestParameters.container, requestParameters._static, requestParameters.params, requestParameters.tag, requestParameters.deviceProfileId, requestParameters.playSessionId, requestParameters.segmentContainer, requestParameters.segmentLength, requestParameters.minSegments, requestParameters.mediaSourceId, requestParameters.deviceId, requestParameters.audioCodec, requestParameters.enableAutoStreamCopy, requestParameters.allowVideoStreamCopy, requestParameters.allowAudioStreamCopy, requestParameters.breakOnNonKeyFrames, requestParameters.audioSampleRate, requestParameters.maxAudioBitDepth, requestParameters.audioBitRate, requestParameters.audioChannels, requestParameters.maxAudioChannels, requestParameters.profile, requestParameters.level, requestParameters.framerate, requestParameters.maxFramerate, requestParameters.copyTimestamps, requestParameters.startTimeTicks, requestParameters.width, requestParameters.height, requestParameters.maxWidth, requestParameters.maxHeight, requestParameters.videoBitRate, requestParameters.subtitleStreamIndex, requestParameters.subtitleMethod, requestParameters.maxRefFrames, requestParameters.maxVideoBitDepth, requestParameters.requireAvc, requestParameters.deInterlace, requestParameters.requireNonAnamorphic, requestParameters.transcodingMaxAudioChannels, requestParameters.cpuCoreLimit, requestParameters.liveStreamId, requestParameters.enableMpegtsM2TsMode, requestParameters.videoCodec, requestParameters.subtitleCodec, requestParameters.transcodeReasons, requestParameters.audioStreamIndex, requestParameters.videoStreamIndex, requestParameters.context, requestParameters.streamOptions, requestParameters.enableAudioVbrEncoding, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/src/generated-client/models/activity-log-entry-query-result.ts b/src/generated-client/models/activity-log-entry-query-result.ts index 2a62b1f3..14191cef 100644 --- a/src/generated-client/models/activity-log-entry-query-result.ts +++ b/src/generated-client/models/activity-log-entry-query-result.ts @@ -17,7 +17,7 @@ import type { ActivityLogEntry } from './activity-log-entry'; /** - * + * Query result container. * @export * @interface ActivityLogEntryQueryResult */ @@ -27,7 +27,7 @@ export interface ActivityLogEntryQueryResult { * @type {Array} * @memberof ActivityLogEntryQueryResult */ - 'Items'?: Array | null; + 'Items'?: Array; /** * Gets or sets the total number of records available. * @type {number} diff --git a/src/generated-client/models/authentication-info-query-result.ts b/src/generated-client/models/authentication-info-query-result.ts index 34357b7e..2e35300b 100644 --- a/src/generated-client/models/authentication-info-query-result.ts +++ b/src/generated-client/models/authentication-info-query-result.ts @@ -17,7 +17,7 @@ import type { AuthenticationInfo } from './authentication-info'; /** - * + * Query result container. * @export * @interface AuthenticationInfoQueryResult */ @@ -27,7 +27,7 @@ export interface AuthenticationInfoQueryResult { * @type {Array} * @memberof AuthenticationInfoQueryResult */ - 'Items'?: Array | null; + 'Items'?: Array; /** * Gets or sets the total number of records available. * @type {number} diff --git a/src/generated-client/models/authentication-result.ts b/src/generated-client/models/authentication-result.ts index 3d6e6d79..6f6eadb2 100644 --- a/src/generated-client/models/authentication-result.ts +++ b/src/generated-client/models/authentication-result.ts @@ -14,13 +14,13 @@ // May contain unused imports in some cases // @ts-ignore -import type { SessionInfo } from './session-info'; +import type { SessionInfoDto } from './session-info-dto'; // May contain unused imports in some cases // @ts-ignore import type { UserDto } from './user-dto'; /** - * + * A class representing an authentication result. * @export * @interface AuthenticationResult */ @@ -33,18 +33,18 @@ export interface AuthenticationResult { 'User'?: UserDto; /** * - * @type {SessionInfo} + * @type {SessionInfoDto} * @memberof AuthenticationResult */ - 'SessionInfo'?: SessionInfo; + 'SessionInfo'?: SessionInfoDto; /** - * + * Gets or sets the access token. * @type {string} * @memberof AuthenticationResult */ 'AccessToken'?: string | null; /** - * + * Gets or sets the server id. * @type {string} * @memberof AuthenticationResult */ diff --git a/src/generated-client/models/base-item-dto-query-result.ts b/src/generated-client/models/base-item-dto-query-result.ts index 7304e608..9370a50d 100644 --- a/src/generated-client/models/base-item-dto-query-result.ts +++ b/src/generated-client/models/base-item-dto-query-result.ts @@ -17,7 +17,7 @@ import type { BaseItemDto } from './base-item-dto'; /** - * + * Query result container. * @export * @interface BaseItemDtoQueryResult */ @@ -27,7 +27,7 @@ export interface BaseItemDtoQueryResult { * @type {Array} * @memberof BaseItemDtoQueryResult */ - 'Items'?: Array | null; + 'Items'?: Array; /** * Gets or sets the total number of records available. * @type {number} diff --git a/src/generated-client/models/client-capabilities-dto.ts b/src/generated-client/models/client-capabilities-dto.ts index 37bd2c74..1e78dc07 100644 --- a/src/generated-client/models/client-capabilities-dto.ts +++ b/src/generated-client/models/client-capabilities-dto.ts @@ -70,19 +70,5 @@ export interface ClientCapabilitiesDto { * @memberof ClientCapabilitiesDto */ 'IconUrl'?: string | null; - /** - * - * @type {boolean} - * @memberof ClientCapabilitiesDto - * @deprecated - */ - 'SupportsContentUploading'?: boolean | null; - /** - * - * @type {boolean} - * @memberof ClientCapabilitiesDto - * @deprecated - */ - 'SupportsSync'?: boolean | null; } diff --git a/src/generated-client/models/codec-profile.ts b/src/generated-client/models/codec-profile.ts index b772e610..da6bfa27 100644 --- a/src/generated-client/models/codec-profile.ts +++ b/src/generated-client/models/codec-profile.ts @@ -20,7 +20,7 @@ import type { CodecType } from './codec-type'; import type { ProfileCondition } from './profile-condition'; /** - * + * Defines the MediaBrowser.Model.Dlna.CodecProfile. * @export * @interface CodecProfile */ @@ -32,29 +32,35 @@ export interface CodecProfile { */ 'Type'?: CodecType; /** - * + * Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet. * @type {Array} * @memberof CodecProfile */ - 'Conditions'?: Array | null; + 'Conditions'?: Array; /** - * + * Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met. * @type {Array} * @memberof CodecProfile */ - 'ApplyConditions'?: Array | null; + 'ApplyConditions'?: Array; /** - * + * Gets or sets the codec(s) that this profile applies to. * @type {string} * @memberof CodecProfile */ 'Codec'?: string | null; /** - * + * Gets or sets the container(s) which this profile will be applied to. * @type {string} * @memberof CodecProfile */ 'Container'?: string | null; + /** + * Gets or sets the sub-container(s) which this profile will be applied to. + * @type {string} + * @memberof CodecProfile + */ + 'SubContainer'?: string | null; } diff --git a/src/generated-client/models/container-profile.ts b/src/generated-client/models/container-profile.ts index 6c081a77..40599ab9 100644 --- a/src/generated-client/models/container-profile.ts +++ b/src/generated-client/models/container-profile.ts @@ -20,7 +20,7 @@ import type { DlnaProfileType } from './dlna-profile-type'; import type { ProfileCondition } from './profile-condition'; /** - * + * Defines the MediaBrowser.Model.Dlna.ContainerProfile. * @export * @interface ContainerProfile */ @@ -32,17 +32,23 @@ export interface ContainerProfile { */ 'Type'?: DlnaProfileType; /** - * + * Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this container will be applied to. * @type {Array} * @memberof ContainerProfile */ 'Conditions'?: Array; /** - * + * Gets or sets the container(s) which this container must meet. * @type {string} * @memberof ContainerProfile */ - 'Container'?: string; + 'Container'?: string | null; + /** + * Gets or sets the sub container(s) which this container must meet. + * @type {string} + * @memberof ContainerProfile + */ + 'SubContainer'?: string | null; } diff --git a/src/generated-client/models/deinterlace-method.ts b/src/generated-client/models/deinterlace-method.ts new file mode 100644 index 00000000..fbbae2cb --- /dev/null +++ b/src/generated-client/models/deinterlace-method.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + + +/** + * Enum containing deinterlace methods. + * @export + * @enum {string} + */ + +export const DeinterlaceMethod = { + Yadif: 'yadif', + Bwdif: 'bwdif' +} as const; + +export type DeinterlaceMethod = typeof DeinterlaceMethod[keyof typeof DeinterlaceMethod]; + + + diff --git a/src/generated-client/models/device-info-dto-query-result.ts b/src/generated-client/models/device-info-dto-query-result.ts new file mode 100644 index 00000000..b8046a71 --- /dev/null +++ b/src/generated-client/models/device-info-dto-query-result.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { DeviceInfoDto } from './device-info-dto'; + +/** + * Query result container. + * @export + * @interface DeviceInfoDtoQueryResult + */ +export interface DeviceInfoDtoQueryResult { + /** + * Gets or sets the items. + * @type {Array} + * @memberof DeviceInfoDtoQueryResult + */ + 'Items'?: Array; + /** + * Gets or sets the total number of records available. + * @type {number} + * @memberof DeviceInfoDtoQueryResult + */ + 'TotalRecordCount'?: number; + /** + * Gets or sets the index of the first record in Items. + * @type {number} + * @memberof DeviceInfoDtoQueryResult + */ + 'StartIndex'?: number; +} + diff --git a/src/generated-client/models/device-info-dto.ts b/src/generated-client/models/device-info-dto.ts new file mode 100644 index 00000000..2d97d88f --- /dev/null +++ b/src/generated-client/models/device-info-dto.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ClientCapabilitiesDto } from './client-capabilities-dto'; + +/** + * A DTO representing device information. + * @export + * @interface DeviceInfoDto + */ +export interface DeviceInfoDto { + /** + * Gets or sets the name. + * @type {string} + * @memberof DeviceInfoDto + */ + 'Name'?: string | null; + /** + * Gets or sets the custom name. + * @type {string} + * @memberof DeviceInfoDto + */ + 'CustomName'?: string | null; + /** + * Gets or sets the access token. + * @type {string} + * @memberof DeviceInfoDto + */ + 'AccessToken'?: string | null; + /** + * Gets or sets the identifier. + * @type {string} + * @memberof DeviceInfoDto + */ + 'Id'?: string | null; + /** + * Gets or sets the last name of the user. + * @type {string} + * @memberof DeviceInfoDto + */ + 'LastUserName'?: string | null; + /** + * Gets or sets the name of the application. + * @type {string} + * @memberof DeviceInfoDto + */ + 'AppName'?: string | null; + /** + * Gets or sets the application version. + * @type {string} + * @memberof DeviceInfoDto + */ + 'AppVersion'?: string | null; + /** + * Gets or sets the last user identifier. + * @type {string} + * @memberof DeviceInfoDto + */ + 'LastUserId'?: string | null; + /** + * Gets or sets the date last modified. + * @type {string} + * @memberof DeviceInfoDto + */ + 'DateLastActivity'?: string | null; + /** + * + * @type {ClientCapabilitiesDto} + * @memberof DeviceInfoDto + */ + 'Capabilities'?: ClientCapabilitiesDto; + /** + * Gets or sets the icon URL. + * @type {string} + * @memberof DeviceInfoDto + */ + 'IconUrl'?: string | null; +} + diff --git a/src/generated-client/models/device-profile.ts b/src/generated-client/models/device-profile.ts index 28600d7c..0f4b81c6 100644 --- a/src/generated-client/models/device-profile.ts +++ b/src/generated-client/models/device-profile.ts @@ -35,13 +35,13 @@ import type { TranscodingProfile } from './transcoding-profile'; */ export interface DeviceProfile { /** - * Gets or sets the name of this device profile. + * Gets or sets the name of this device profile. User profiles must have a unique name. * @type {string} * @memberof DeviceProfile */ 'Name'?: string | null; /** - * Gets or sets the Id. + * Gets or sets the unique internal identifier. * @type {string} * @memberof DeviceProfile */ @@ -83,7 +83,7 @@ export interface DeviceProfile { */ 'TranscodingProfiles'?: Array; /** - * Gets or sets the container profiles. + * Gets or sets the container profiles. Failing to meet these optional conditions causes transcoding to occur. * @type {Array} * @memberof DeviceProfile */ diff --git a/src/generated-client/models/direct-play-profile.ts b/src/generated-client/models/direct-play-profile.ts index 127c9b8f..c37a738a 100644 --- a/src/generated-client/models/direct-play-profile.ts +++ b/src/generated-client/models/direct-play-profile.ts @@ -17,25 +17,25 @@ import type { DlnaProfileType } from './dlna-profile-type'; /** - * + * Defines the MediaBrowser.Model.Dlna.DirectPlayProfile. * @export * @interface DirectPlayProfile */ export interface DirectPlayProfile { /** - * + * Gets or sets the container. * @type {string} * @memberof DirectPlayProfile */ - 'Container'?: string | null; + 'Container'?: string; /** - * + * Gets or sets the audio codec. * @type {string} * @memberof DirectPlayProfile */ 'AudioCodec'?: string | null; /** - * + * Gets or sets the video codec. * @type {string} * @memberof DirectPlayProfile */ diff --git a/src/generated-client/models/down-mix-stereo-algorithms.ts b/src/generated-client/models/down-mix-stereo-algorithms.ts index 6f4535ab..f0c4d79e 100644 --- a/src/generated-client/models/down-mix-stereo-algorithms.ts +++ b/src/generated-client/models/down-mix-stereo-algorithms.ts @@ -14,7 +14,7 @@ /** - * An enum representing an algorithm to downmix 6ch+ to stereo. Algorithms sourced from https://superuser.com/questions/852400/properly-downmix-5-1-to-stereo-using-ffmpeg/1410620#1410620. + * An enum representing an algorithm to downmix surround sound to stereo. * @export * @enum {string} */ @@ -22,7 +22,9 @@ export const DownMixStereoAlgorithms = { None: 'None', Dave750: 'Dave750', - NightmodeDialogue: 'NightmodeDialogue' + NightmodeDialogue: 'NightmodeDialogue', + Rfc7845: 'Rfc7845', + Ac4: 'Ac4' } as const; export type DownMixStereoAlgorithms = typeof DownMixStereoAlgorithms[keyof typeof DownMixStereoAlgorithms]; diff --git a/src/generated-client/models/encoder-preset.ts b/src/generated-client/models/encoder-preset.ts new file mode 100644 index 00000000..fb600c6a --- /dev/null +++ b/src/generated-client/models/encoder-preset.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + + +/** + * Enum containing encoder presets. + * @export + * @enum {string} + */ + +export const EncoderPreset = { + Auto: 'auto', + Placebo: 'placebo', + Veryslow: 'veryslow', + Slower: 'slower', + Slow: 'slow', + Medium: 'medium', + Fast: 'fast', + Faster: 'faster', + Veryfast: 'veryfast', + Superfast: 'superfast', + Ultrafast: 'ultrafast' +} as const; + +export type EncoderPreset = typeof EncoderPreset[keyof typeof EncoderPreset]; + + + diff --git a/src/generated-client/models/encoding-options.ts b/src/generated-client/models/encoding-options.ts index 4f69783a..713b2204 100644 --- a/src/generated-client/models/encoding-options.ts +++ b/src/generated-client/models/encoding-options.ts @@ -12,9 +12,27 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import type { DeinterlaceMethod } from './deinterlace-method'; // May contain unused imports in some cases // @ts-ignore import type { DownMixStereoAlgorithms } from './down-mix-stereo-algorithms'; +// May contain unused imports in some cases +// @ts-ignore +import type { EncoderPreset } from './encoder-preset'; +// May contain unused imports in some cases +// @ts-ignore +import type { HardwareAccelerationType } from './hardware-acceleration-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { TonemappingAlgorithm } from './tonemapping-algorithm'; +// May contain unused imports in some cases +// @ts-ignore +import type { TonemappingMode } from './tonemapping-mode'; +// May contain unused imports in some cases +// @ts-ignore +import type { TonemappingRange } from './tonemapping-range'; /** * Class EncodingOptions. @@ -95,11 +113,11 @@ export interface EncodingOptions { */ 'SegmentKeepSeconds'?: number; /** - * Gets or sets the hardware acceleration type. - * @type {string} + * + * @type {HardwareAccelerationType} * @memberof EncodingOptions */ - 'HardwareAccelerationType'?: string | null; + 'HardwareAccelerationType'?: HardwareAccelerationType; /** * Gets or sets the FFmpeg path as set by the user via the UI. * @type {string} @@ -118,6 +136,12 @@ export interface EncodingOptions { * @memberof EncodingOptions */ 'VaapiDevice'?: string | null; + /** + * Gets or sets the QSV device. + * @type {string} + * @memberof EncodingOptions + */ + 'QsvDevice'?: string | null; /** * Gets or sets a value indicating whether tonemapping is enabled. * @type {boolean} @@ -137,23 +161,23 @@ export interface EncodingOptions { */ 'EnableVideoToolboxTonemapping'?: boolean; /** - * Gets or sets the tone-mapping algorithm. - * @type {string} + * + * @type {TonemappingAlgorithm} * @memberof EncodingOptions */ - 'TonemappingAlgorithm'?: string | null; + 'TonemappingAlgorithm'?: TonemappingAlgorithm; /** - * Gets or sets the tone-mapping mode. - * @type {string} + * + * @type {TonemappingMode} * @memberof EncodingOptions */ - 'TonemappingMode'?: string | null; + 'TonemappingMode'?: TonemappingMode; /** - * Gets or sets the tone-mapping range. - * @type {string} + * + * @type {TonemappingRange} * @memberof EncodingOptions */ - 'TonemappingRange'?: string | null; + 'TonemappingRange'?: TonemappingRange; /** * Gets or sets the tone-mapping desaturation. * @type {number} @@ -197,11 +221,11 @@ export interface EncodingOptions { */ 'H265Crf'?: number; /** - * Gets or sets the encoder preset. - * @type {string} + * + * @type {EncoderPreset} * @memberof EncodingOptions */ - 'EncoderPreset'?: string | null; + 'EncoderPreset'?: EncoderPreset; /** * Gets or sets a value indicating whether the framerate is doubled when deinterlacing. * @type {boolean} @@ -209,11 +233,11 @@ export interface EncodingOptions { */ 'DeinterlaceDoubleRate'?: boolean; /** - * Gets or sets the deinterlace method. - * @type {string} + * + * @type {DeinterlaceMethod} * @memberof EncodingOptions */ - 'DeinterlaceMethod'?: string | null; + 'DeinterlaceMethod'?: DeinterlaceMethod; /** * Gets or sets a value indicating whether 10bit HEVC decoding is enabled. * @type {boolean} @@ -226,6 +250,18 @@ export interface EncodingOptions { * @memberof EncodingOptions */ 'EnableDecodingColorDepth10Vp9'?: boolean; + /** + * Gets or sets a value indicating whether 8/10bit HEVC RExt decoding is enabled. + * @type {boolean} + * @memberof EncodingOptions + */ + 'EnableDecodingColorDepth10HevcRext'?: boolean; + /** + * Gets or sets a value indicating whether 12bit HEVC RExt decoding is enabled. + * @type {boolean} + * @memberof EncodingOptions + */ + 'EnableDecodingColorDepth12HevcRext'?: boolean; /** * Gets or sets a value indicating whether the enhanced NVDEC is enabled. * @type {boolean} diff --git a/src/generated-client/models/external-id-info.ts b/src/generated-client/models/external-id-info.ts index 58589bde..e7c0a7d3 100644 --- a/src/generated-client/models/external-id-info.ts +++ b/src/generated-client/models/external-id-info.ts @@ -44,6 +44,7 @@ export interface ExternalIdInfo { * Gets or sets the URL format string. * @type {string} * @memberof ExternalIdInfo + * @deprecated */ 'UrlFormatString'?: string | null; } diff --git a/src/generated-client/models/get-programs-dto.ts b/src/generated-client/models/get-programs-dto.ts index 3d45e418..2b056465 100644 --- a/src/generated-client/models/get-programs-dto.ts +++ b/src/generated-client/models/get-programs-dto.ts @@ -36,7 +36,7 @@ export interface GetProgramsDto { * @type {Array} * @memberof GetProgramsDto */ - 'ChannelIds'?: Array; + 'ChannelIds'?: Array | null; /** * Gets or sets optional. Filter by user id. * @type {string} @@ -44,109 +44,109 @@ export interface GetProgramsDto { */ 'UserId'?: string | null; /** - * Gets or sets the minimum premiere start date. Optional. + * Gets or sets the minimum premiere start date. * @type {string} * @memberof GetProgramsDto */ 'MinStartDate'?: string | null; /** - * Gets or sets filter by programs that have completed airing, or not. Optional. + * Gets or sets filter by programs that have completed airing, or not. * @type {boolean} * @memberof GetProgramsDto */ 'HasAired'?: boolean | null; /** - * Gets or sets filter by programs that are currently airing, or not. Optional. + * Gets or sets filter by programs that are currently airing, or not. * @type {boolean} * @memberof GetProgramsDto */ 'IsAiring'?: boolean | null; /** - * Gets or sets the maximum premiere start date. Optional. + * Gets or sets the maximum premiere start date. * @type {string} * @memberof GetProgramsDto */ 'MaxStartDate'?: string | null; /** - * Gets or sets the minimum premiere end date. Optional. + * Gets or sets the minimum premiere end date. * @type {string} * @memberof GetProgramsDto */ 'MinEndDate'?: string | null; /** - * Gets or sets the maximum premiere end date. Optional. + * Gets or sets the maximum premiere end date. * @type {string} * @memberof GetProgramsDto */ 'MaxEndDate'?: string | null; /** - * Gets or sets filter for movies. Optional. + * Gets or sets filter for movies. * @type {boolean} * @memberof GetProgramsDto */ 'IsMovie'?: boolean | null; /** - * Gets or sets filter for series. Optional. + * Gets or sets filter for series. * @type {boolean} * @memberof GetProgramsDto */ 'IsSeries'?: boolean | null; /** - * Gets or sets filter for news. Optional. + * Gets or sets filter for news. * @type {boolean} * @memberof GetProgramsDto */ 'IsNews'?: boolean | null; /** - * Gets or sets filter for kids. Optional. + * Gets or sets filter for kids. * @type {boolean} * @memberof GetProgramsDto */ 'IsKids'?: boolean | null; /** - * Gets or sets filter for sports. Optional. + * Gets or sets filter for sports. * @type {boolean} * @memberof GetProgramsDto */ 'IsSports'?: boolean | null; /** - * Gets or sets the record index to start at. All items with a lower index will be dropped from the results. Optional. + * Gets or sets the record index to start at. All items with a lower index will be dropped from the results. * @type {number} * @memberof GetProgramsDto */ 'StartIndex'?: number | null; /** - * Gets or sets the maximum number of records to return. Optional. + * Gets or sets the maximum number of records to return. * @type {number} * @memberof GetProgramsDto */ 'Limit'?: number | null; /** - * Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate. Optional. + * Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate. * @type {Array} * @memberof GetProgramsDto */ - 'SortBy'?: Array; + 'SortBy'?: Array | null; /** - * Gets or sets sort Order - Ascending,Descending. + * Gets or sets sort order. * @type {Array} * @memberof GetProgramsDto */ - 'SortOrder'?: Array; + 'SortOrder'?: Array | null; /** * Gets or sets the genres to return guide information for. * @type {Array} * @memberof GetProgramsDto */ - 'Genres'?: Array; + 'Genres'?: Array | null; /** * Gets or sets the genre ids to return guide information for. * @type {Array} * @memberof GetProgramsDto */ - 'GenreIds'?: Array; + 'GenreIds'?: Array | null; /** - * Gets or sets include image information in output. Optional. + * Gets or sets include image information in output. * @type {boolean} * @memberof GetProgramsDto */ @@ -158,40 +158,40 @@ export interface GetProgramsDto { */ 'EnableTotalRecordCount'?: boolean; /** - * Gets or sets the max number of images to return, per image type. Optional. + * Gets or sets the max number of images to return, per image type. * @type {number} * @memberof GetProgramsDto */ 'ImageTypeLimit'?: number | null; /** - * Gets or sets the image types to include in the output. Optional. + * Gets or sets the image types to include in the output. * @type {Array} * @memberof GetProgramsDto */ - 'EnableImageTypes'?: Array; + 'EnableImageTypes'?: Array | null; /** - * Gets or sets include user data. Optional. + * Gets or sets include user data. * @type {boolean} * @memberof GetProgramsDto */ 'EnableUserData'?: boolean | null; /** - * Gets or sets filter by series timer id. Optional. + * Gets or sets filter by series timer id. * @type {string} * @memberof GetProgramsDto */ 'SeriesTimerId'?: string | null; /** - * Gets or sets filter by library series id. Optional. + * Gets or sets filter by library series id. * @type {string} * @memberof GetProgramsDto */ - 'LibrarySeriesId'?: string; + 'LibrarySeriesId'?: string | null; /** - * Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. Optional. + * Gets or sets specify additional fields of information to return in the output. * @type {Array} * @memberof GetProgramsDto */ - 'Fields'?: Array; + 'Fields'?: Array | null; } diff --git a/src/generated-client/models/hardware-acceleration-type.ts b/src/generated-client/models/hardware-acceleration-type.ts new file mode 100644 index 00000000..1d858b0c --- /dev/null +++ b/src/generated-client/models/hardware-acceleration-type.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + + +/** + * Enum containing hardware acceleration types. + * @export + * @enum {string} + */ + +export const HardwareAccelerationType = { + None: 'none', + Amf: 'amf', + Qsv: 'qsv', + Nvenc: 'nvenc', + V4l2m2m: 'v4l2m2m', + Vaapi: 'vaapi', + Videotoolbox: 'videotoolbox', + Rkmpp: 'rkmpp' +} as const; + +export type HardwareAccelerationType = typeof HardwareAccelerationType[keyof typeof HardwareAccelerationType]; + + + diff --git a/src/generated-client/models/index.ts b/src/generated-client/models/index.ts index a17ec3be..e2f9309f 100644 --- a/src/generated-client/models/index.ts +++ b/src/generated-client/models/index.ts @@ -35,7 +35,6 @@ export * from './channel-media-content-type'; export * from './channel-media-type'; export * from './channel-type'; export * from './chapter-info'; -export * from './client-capabilities'; export * from './client-capabilities-dto'; export * from './client-log-document-response-dto'; export * from './codec-profile'; @@ -53,9 +52,9 @@ export * from './culture-dto'; export * from './day-of-week'; export * from './day-pattern'; export * from './default-directory-browser-info-dto'; -export * from './device-info'; -export * from './device-info-query-result'; -export * from './device-options'; +export * from './deinterlace-method'; +export * from './device-info-dto'; +export * from './device-info-dto-query-result'; export * from './device-options-dto'; export * from './device-profile'; export * from './direct-play-profile'; @@ -64,6 +63,7 @@ export * from './dlna-profile-type'; export * from './down-mix-stereo-algorithms'; export * from './dynamic-day-of-week'; export * from './embedded-subtitle-options'; +export * from './encoder-preset'; export * from './encoding-context'; export * from './encoding-options'; export * from './end-point-info'; @@ -94,7 +94,7 @@ export * from './group-state-update-group-update'; export * from './group-update'; export * from './group-update-type'; export * from './guide-info'; -export * from './hardware-encoding-type'; +export * from './hardware-acceleration-type'; export * from './iplugin'; export * from './ignore-wait-request-dto'; export * from './image-format'; @@ -138,6 +138,9 @@ export * from './media-attachment'; export * from './media-path-dto'; export * from './media-path-info'; export * from './media-protocol'; +export * from './media-segment-dto'; +export * from './media-segment-dto-query-result'; +export * from './media-segment-type'; export * from './media-source-info'; export * from './media-source-type'; export * from './media-stream'; @@ -194,6 +197,7 @@ export * from './playback-start-info'; export * from './playback-stop-info'; export * from './player-state-info'; export * from './playlist-creation-result'; +export * from './playlist-dto'; export * from './playlist-user-permissions'; export * from './playstate-command'; export * from './playstate-message'; @@ -255,7 +259,7 @@ export * from './server-configuration'; export * from './server-discovery-info'; export * from './server-restarting-message'; export * from './server-shutting-down-message'; -export * from './session-info'; +export * from './session-info-dto'; export * from './session-message-type'; export * from './session-user-info'; export * from './sessions-message'; @@ -292,6 +296,9 @@ export * from './timer-created-message'; export * from './timer-event-info'; export * from './timer-info-dto'; export * from './timer-info-dto-query-result'; +export * from './tonemapping-algorithm'; +export * from './tonemapping-mode'; +export * from './tonemapping-range'; export * from './trailer-info'; export * from './trailer-info-remote-search-query'; export * from './transcode-reason'; diff --git a/src/generated-client/models/library-options-result-dto.ts b/src/generated-client/models/library-options-result-dto.ts index 5a7e5a03..619532bf 100644 --- a/src/generated-client/models/library-options-result-dto.ts +++ b/src/generated-client/models/library-options-result-dto.ts @@ -43,6 +43,12 @@ export interface LibraryOptionsResultDto { * @memberof LibraryOptionsResultDto */ 'SubtitleFetchers'?: Array; + /** + * Gets or sets the list of lyric fetchers. + * @type {Array} + * @memberof LibraryOptionsResultDto + */ + 'LyricFetchers'?: Array; /** * Gets or sets the type options. * @type {Array} diff --git a/src/generated-client/models/library-options.ts b/src/generated-client/models/library-options.ts index bf92205e..63f69a6e 100644 --- a/src/generated-client/models/library-options.ts +++ b/src/generated-client/models/library-options.ts @@ -173,6 +173,18 @@ export interface LibraryOptions { * @memberof LibraryOptions */ 'SubtitleFetcherOrder'?: Array; + /** + * + * @type {Array} + * @memberof LibraryOptions + */ + 'DisabledMediaSegmentProviders'?: Array; + /** + * + * @type {Array} + * @memberof LibraryOptions + */ + 'MediaSegmentProvideOrder'?: Array; /** * * @type {boolean} @@ -209,6 +221,48 @@ export interface LibraryOptions { * @memberof LibraryOptions */ 'SaveLyricsWithMedia'?: boolean; + /** + * + * @type {boolean} + * @memberof LibraryOptions + */ + 'SaveTrickplayWithMedia'?: boolean; + /** + * + * @type {Array} + * @memberof LibraryOptions + */ + 'DisabledLyricFetchers'?: Array; + /** + * + * @type {Array} + * @memberof LibraryOptions + */ + 'LyricFetcherOrder'?: Array; + /** + * + * @type {boolean} + * @memberof LibraryOptions + */ + 'PreferNonstandardArtistsTag'?: boolean; + /** + * + * @type {boolean} + * @memberof LibraryOptions + */ + 'UseCustomTagDelimiters'?: boolean; + /** + * + * @type {Array} + * @memberof LibraryOptions + */ + 'CustomTagDelimiters'?: Array; + /** + * + * @type {Array} + * @memberof LibraryOptions + */ + 'DelimiterWhitelist'?: Array; /** * * @type {boolean} diff --git a/src/generated-client/models/media-path-info.ts b/src/generated-client/models/media-path-info.ts index eea2ed1a..63f39168 100644 --- a/src/generated-client/models/media-path-info.ts +++ b/src/generated-client/models/media-path-info.ts @@ -25,11 +25,5 @@ export interface MediaPathInfo { * @memberof MediaPathInfo */ 'Path'?: string; - /** - * - * @type {string} - * @memberof MediaPathInfo - */ - 'NetworkPath'?: string | null; } diff --git a/src/generated-client/models/media-segment-dto-query-result.ts b/src/generated-client/models/media-segment-dto-query-result.ts new file mode 100644 index 00000000..f7980416 --- /dev/null +++ b/src/generated-client/models/media-segment-dto-query-result.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MediaSegmentDto } from './media-segment-dto'; + +/** + * Query result container. + * @export + * @interface MediaSegmentDtoQueryResult + */ +export interface MediaSegmentDtoQueryResult { + /** + * Gets or sets the items. + * @type {Array} + * @memberof MediaSegmentDtoQueryResult + */ + 'Items'?: Array; + /** + * Gets or sets the total number of records available. + * @type {number} + * @memberof MediaSegmentDtoQueryResult + */ + 'TotalRecordCount'?: number; + /** + * Gets or sets the index of the first record in Items. + * @type {number} + * @memberof MediaSegmentDtoQueryResult + */ + 'StartIndex'?: number; +} + diff --git a/src/generated-client/models/media-segment-dto.ts b/src/generated-client/models/media-segment-dto.ts new file mode 100644 index 00000000..ee854785 --- /dev/null +++ b/src/generated-client/models/media-segment-dto.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { MediaSegmentType } from './media-segment-type'; + +/** + * Api model for MediaSegment\'s. + * @export + * @interface MediaSegmentDto + */ +export interface MediaSegmentDto { + /** + * Gets or sets the id of the media segment. + * @type {string} + * @memberof MediaSegmentDto + */ + 'Id'?: string; + /** + * Gets or sets the id of the associated item. + * @type {string} + * @memberof MediaSegmentDto + */ + 'ItemId'?: string; + /** + * + * @type {MediaSegmentType} + * @memberof MediaSegmentDto + */ + 'Type'?: MediaSegmentType; + /** + * Gets or sets the start of the segment. + * @type {number} + * @memberof MediaSegmentDto + */ + 'StartTicks'?: number; + /** + * Gets or sets the end of the segment. + * @type {number} + * @memberof MediaSegmentDto + */ + 'EndTicks'?: number; +} + + + diff --git a/src/generated-client/models/media-segment-type.ts b/src/generated-client/models/media-segment-type.ts new file mode 100644 index 00000000..2c391255 --- /dev/null +++ b/src/generated-client/models/media-segment-type.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + + +/** + * Defines the types of content an individual Jellyfin.Data.Entities.MediaSegment represents. + * @export + * @enum {string} + */ + +export const MediaSegmentType = { + Unknown: 'Unknown', + Commercial: 'Commercial', + Preview: 'Preview', + Recap: 'Recap', + Outro: 'Outro', + Intro: 'Intro' +} as const; + +export type MediaSegmentType = typeof MediaSegmentType[keyof typeof MediaSegmentType]; + + + diff --git a/src/generated-client/models/media-source-info.ts b/src/generated-client/models/media-source-info.ts index d44b8842..6abbe3eb 100644 --- a/src/generated-client/models/media-source-info.ts +++ b/src/generated-client/models/media-source-info.ts @@ -166,6 +166,12 @@ export interface MediaSourceInfo { * @memberof MediaSourceInfo */ 'IsInfiniteStream'?: boolean; + /** + * + * @type {boolean} + * @memberof MediaSourceInfo + */ + 'UseMostCompatibleTranscodingProfile'?: boolean; /** * * @type {boolean} @@ -250,6 +256,12 @@ export interface MediaSourceInfo { * @memberof MediaSourceInfo */ 'Bitrate'?: number | null; + /** + * + * @type {number} + * @memberof MediaSourceInfo + */ + 'FallbackMaxStreamingBitrate'?: number | null; /** * * @type {TransportStreamTimestamp} @@ -298,6 +310,12 @@ export interface MediaSourceInfo { * @memberof MediaSourceInfo */ 'DefaultSubtitleStreamIndex'?: number | null; + /** + * + * @type {boolean} + * @memberof MediaSourceInfo + */ + 'HasSegments'?: boolean; } diff --git a/src/generated-client/models/media-stream.ts b/src/generated-client/models/media-stream.ts index 30722587..b3b0ee13 100644 --- a/src/generated-client/models/media-stream.ts +++ b/src/generated-client/models/media-stream.ts @@ -124,6 +124,12 @@ export interface MediaStream { * @memberof MediaStream */ 'DvBlSignalCompatibilityId'?: number | null; + /** + * Gets or sets the Rotation in degrees. + * @type {number} + * @memberof MediaStream + */ + 'Rotation'?: number | null; /** * Gets or sets the comment. * @type {string} @@ -310,6 +316,12 @@ export interface MediaStream { * @memberof MediaStream */ 'RealFrameRate'?: number | null; + /** + * Gets the framerate used as reference. Prefer AverageFrameRate, if that is null or an unrealistic value then fallback to RealFrameRate. + * @type {number} + * @memberof MediaStream + */ + 'ReferenceFrameRate'?: number | null; /** * Gets or sets the profile. * @type {string} diff --git a/src/generated-client/models/open-live-stream-dto.ts b/src/generated-client/models/open-live-stream-dto.ts index 8ca98411..ae92b903 100644 --- a/src/generated-client/models/open-live-stream-dto.ts +++ b/src/generated-client/models/open-live-stream-dto.ts @@ -91,6 +91,12 @@ export interface OpenLiveStreamDto { * @memberof OpenLiveStreamDto */ 'EnableDirectStream'?: boolean | null; + /** + * Gets or sets a value indicating whether always burn in subtitles when transcoding. + * @type {boolean} + * @memberof OpenLiveStreamDto + */ + 'AlwaysBurnInSubtitleWhenTranscoding'?: boolean | null; /** * * @type {DeviceProfile} diff --git a/src/generated-client/models/playback-info-dto.ts b/src/generated-client/models/playback-info-dto.ts index 62c7b60b..1716acd6 100644 --- a/src/generated-client/models/playback-info-dto.ts +++ b/src/generated-client/models/playback-info-dto.ts @@ -112,5 +112,11 @@ export interface PlaybackInfoDto { * @memberof PlaybackInfoDto */ 'AutoOpenLiveStream'?: boolean | null; + /** + * Gets or sets a value indicating whether always burn in subtitles when transcoding. + * @type {boolean} + * @memberof PlaybackInfoDto + */ + 'AlwaysBurnInSubtitleWhenTranscoding'?: boolean | null; } diff --git a/src/generated-client/models/playlist-dto.ts b/src/generated-client/models/playlist-dto.ts new file mode 100644 index 00000000..bd86a957 --- /dev/null +++ b/src/generated-client/models/playlist-dto.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { PlaylistUserPermissions } from './playlist-user-permissions'; + +/** + * DTO for playlists. + * @export + * @interface PlaylistDto + */ +export interface PlaylistDto { + /** + * Gets or sets a value indicating whether the playlist is publicly readable. + * @type {boolean} + * @memberof PlaylistDto + */ + 'OpenAccess'?: boolean; + /** + * Gets or sets the share permissions. + * @type {Array} + * @memberof PlaylistDto + */ + 'Shares'?: Array; + /** + * Gets or sets the item ids. + * @type {Array} + * @memberof PlaylistDto + */ + 'ItemIds'?: Array; +} + diff --git a/src/generated-client/models/series-timer-info-dto-query-result.ts b/src/generated-client/models/series-timer-info-dto-query-result.ts index a669c4ff..b4db8c91 100644 --- a/src/generated-client/models/series-timer-info-dto-query-result.ts +++ b/src/generated-client/models/series-timer-info-dto-query-result.ts @@ -17,7 +17,7 @@ import type { SeriesTimerInfoDto } from './series-timer-info-dto'; /** - * + * Query result container. * @export * @interface SeriesTimerInfoDtoQueryResult */ @@ -27,7 +27,7 @@ export interface SeriesTimerInfoDtoQueryResult { * @type {Array} * @memberof SeriesTimerInfoDtoQueryResult */ - 'Items'?: Array | null; + 'Items'?: Array; /** * Gets or sets the total number of records available. * @type {number} diff --git a/src/generated-client/models/server-configuration.ts b/src/generated-client/models/server-configuration.ts index 99bdb55e..cb0f3126 100644 --- a/src/generated-client/models/server-configuration.ts +++ b/src/generated-client/models/server-configuration.ts @@ -115,12 +115,6 @@ export interface ServerConfiguration { * @memberof ServerConfiguration */ 'MetadataPath'?: string; - /** - * - * @type {string} - * @memberof ServerConfiguration - */ - 'MetadataNetworkPath'?: string; /** * Gets or sets the preferred metadata language. * @type {string} diff --git a/src/generated-client/models/session-info-dto.ts b/src/generated-client/models/session-info-dto.ts new file mode 100644 index 00000000..deda1efb --- /dev/null +++ b/src/generated-client/models/session-info-dto.ts @@ -0,0 +1,221 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { BaseItemDto } from './base-item-dto'; +// May contain unused imports in some cases +// @ts-ignore +import type { ClientCapabilitiesDto } from './client-capabilities-dto'; +// May contain unused imports in some cases +// @ts-ignore +import type { GeneralCommandType } from './general-command-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { MediaType } from './media-type'; +// May contain unused imports in some cases +// @ts-ignore +import type { PlayerStateInfo } from './player-state-info'; +// May contain unused imports in some cases +// @ts-ignore +import type { QueueItem } from './queue-item'; +// May contain unused imports in some cases +// @ts-ignore +import type { SessionUserInfo } from './session-user-info'; +// May contain unused imports in some cases +// @ts-ignore +import type { TranscodingInfo } from './transcoding-info'; + +/** + * Session info DTO. + * @export + * @interface SessionInfoDto + */ +export interface SessionInfoDto { + /** + * + * @type {PlayerStateInfo} + * @memberof SessionInfoDto + */ + 'PlayState'?: PlayerStateInfo; + /** + * Gets or sets the additional users. + * @type {Array} + * @memberof SessionInfoDto + */ + 'AdditionalUsers'?: Array | null; + /** + * + * @type {ClientCapabilitiesDto} + * @memberof SessionInfoDto + */ + 'Capabilities'?: ClientCapabilitiesDto; + /** + * Gets or sets the remote end point. + * @type {string} + * @memberof SessionInfoDto + */ + 'RemoteEndPoint'?: string | null; + /** + * Gets or sets the playable media types. + * @type {Array} + * @memberof SessionInfoDto + */ + 'PlayableMediaTypes'?: Array; + /** + * Gets or sets the id. + * @type {string} + * @memberof SessionInfoDto + */ + 'Id'?: string | null; + /** + * Gets or sets the user id. + * @type {string} + * @memberof SessionInfoDto + */ + 'UserId'?: string; + /** + * Gets or sets the username. + * @type {string} + * @memberof SessionInfoDto + */ + 'UserName'?: string | null; + /** + * Gets or sets the type of the client. + * @type {string} + * @memberof SessionInfoDto + */ + 'Client'?: string | null; + /** + * Gets or sets the last activity date. + * @type {string} + * @memberof SessionInfoDto + */ + 'LastActivityDate'?: string; + /** + * Gets or sets the last playback check in. + * @type {string} + * @memberof SessionInfoDto + */ + 'LastPlaybackCheckIn'?: string; + /** + * Gets or sets the last paused date. + * @type {string} + * @memberof SessionInfoDto + */ + 'LastPausedDate'?: string | null; + /** + * Gets or sets the name of the device. + * @type {string} + * @memberof SessionInfoDto + */ + 'DeviceName'?: string | null; + /** + * Gets or sets the type of the device. + * @type {string} + * @memberof SessionInfoDto + */ + 'DeviceType'?: string | null; + /** + * + * @type {BaseItemDto} + * @memberof SessionInfoDto + */ + 'NowPlayingItem'?: BaseItemDto; + /** + * + * @type {BaseItemDto} + * @memberof SessionInfoDto + */ + 'NowViewingItem'?: BaseItemDto; + /** + * Gets or sets the device id. + * @type {string} + * @memberof SessionInfoDto + */ + 'DeviceId'?: string | null; + /** + * Gets or sets the application version. + * @type {string} + * @memberof SessionInfoDto + */ + 'ApplicationVersion'?: string | null; + /** + * + * @type {TranscodingInfo} + * @memberof SessionInfoDto + */ + 'TranscodingInfo'?: TranscodingInfo; + /** + * Gets or sets a value indicating whether this session is active. + * @type {boolean} + * @memberof SessionInfoDto + */ + 'IsActive'?: boolean; + /** + * Gets or sets a value indicating whether the session supports media control. + * @type {boolean} + * @memberof SessionInfoDto + */ + 'SupportsMediaControl'?: boolean; + /** + * Gets or sets a value indicating whether the session supports remote control. + * @type {boolean} + * @memberof SessionInfoDto + */ + 'SupportsRemoteControl'?: boolean; + /** + * Gets or sets the now playing queue. + * @type {Array} + * @memberof SessionInfoDto + */ + 'NowPlayingQueue'?: Array | null; + /** + * Gets or sets the now playing queue full items. + * @type {Array} + * @memberof SessionInfoDto + */ + 'NowPlayingQueueFullItems'?: Array | null; + /** + * Gets or sets a value indicating whether the session has a custom device name. + * @type {boolean} + * @memberof SessionInfoDto + */ + 'HasCustomDeviceName'?: boolean; + /** + * Gets or sets the playlist item id. + * @type {string} + * @memberof SessionInfoDto + */ + 'PlaylistItemId'?: string | null; + /** + * Gets or sets the server id. + * @type {string} + * @memberof SessionInfoDto + */ + 'ServerId'?: string | null; + /** + * Gets or sets the user primary image tag. + * @type {string} + * @memberof SessionInfoDto + */ + 'UserPrimaryImageTag'?: string | null; + /** + * Gets or sets the supported commands. + * @type {Array} + * @memberof SessionInfoDto + */ + 'SupportedCommands'?: Array; +} + diff --git a/src/generated-client/models/sessions-message.ts b/src/generated-client/models/sessions-message.ts index 4f5b339e..20e7023b 100644 --- a/src/generated-client/models/sessions-message.ts +++ b/src/generated-client/models/sessions-message.ts @@ -14,7 +14,7 @@ // May contain unused imports in some cases // @ts-ignore -import type { SessionInfo } from './session-info'; +import type { SessionInfoDto } from './session-info-dto'; // May contain unused imports in some cases // @ts-ignore import type { SessionMessageType } from './session-message-type'; @@ -27,10 +27,10 @@ import type { SessionMessageType } from './session-message-type'; export interface SessionsMessage { /** * Gets or sets the data. - * @type {Array} + * @type {Array} * @memberof SessionsMessage */ - 'Data'?: Array | null; + 'Data'?: Array | null; /** * Gets or sets the message id. * @type {string} diff --git a/src/generated-client/models/subtitle-profile.ts b/src/generated-client/models/subtitle-profile.ts index 8b67a337..bc2b61ac 100644 --- a/src/generated-client/models/subtitle-profile.ts +++ b/src/generated-client/models/subtitle-profile.ts @@ -17,13 +17,13 @@ import type { SubtitleDeliveryMethod } from './subtitle-delivery-method'; /** - * + * A class for subtitle profile information. * @export * @interface SubtitleProfile */ export interface SubtitleProfile { /** - * + * Gets or sets the format. * @type {string} * @memberof SubtitleProfile */ @@ -35,19 +35,19 @@ export interface SubtitleProfile { */ 'Method'?: SubtitleDeliveryMethod; /** - * + * Gets or sets the DIDL mode. * @type {string} * @memberof SubtitleProfile */ 'DidlMode'?: string | null; /** - * + * Gets or sets the language. * @type {string} * @memberof SubtitleProfile */ 'Language'?: string | null; /** - * + * Gets or sets the container. * @type {string} * @memberof SubtitleProfile */ diff --git a/src/generated-client/models/theme-media-result.ts b/src/generated-client/models/theme-media-result.ts index 4ee3a36e..7f52aed2 100644 --- a/src/generated-client/models/theme-media-result.ts +++ b/src/generated-client/models/theme-media-result.ts @@ -27,7 +27,7 @@ export interface ThemeMediaResult { * @type {Array} * @memberof ThemeMediaResult */ - 'Items'?: Array | null; + 'Items'?: Array; /** * Gets or sets the total number of records available. * @type {number} diff --git a/src/generated-client/models/timer-info-dto-query-result.ts b/src/generated-client/models/timer-info-dto-query-result.ts index 12138c85..0d626769 100644 --- a/src/generated-client/models/timer-info-dto-query-result.ts +++ b/src/generated-client/models/timer-info-dto-query-result.ts @@ -17,7 +17,7 @@ import type { TimerInfoDto } from './timer-info-dto'; /** - * + * Query result container. * @export * @interface TimerInfoDtoQueryResult */ @@ -27,7 +27,7 @@ export interface TimerInfoDtoQueryResult { * @type {Array} * @memberof TimerInfoDtoQueryResult */ - 'Items'?: Array | null; + 'Items'?: Array; /** * Gets or sets the total number of records available. * @type {number} diff --git a/src/generated-client/models/tonemapping-algorithm.ts b/src/generated-client/models/tonemapping-algorithm.ts new file mode 100644 index 00000000..7e7ed3c0 --- /dev/null +++ b/src/generated-client/models/tonemapping-algorithm.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + + +/** + * Enum containing tonemapping algorithms. + * @export + * @enum {string} + */ + +export const TonemappingAlgorithm = { + None: 'none', + Clip: 'clip', + Linear: 'linear', + Gamma: 'gamma', + Reinhard: 'reinhard', + Hable: 'hable', + Mobius: 'mobius', + Bt2390: 'bt2390' +} as const; + +export type TonemappingAlgorithm = typeof TonemappingAlgorithm[keyof typeof TonemappingAlgorithm]; + + + diff --git a/src/generated-client/models/tonemapping-mode.ts b/src/generated-client/models/tonemapping-mode.ts new file mode 100644 index 00000000..f29c6128 --- /dev/null +++ b/src/generated-client/models/tonemapping-mode.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + + +/** + * Enum containing tonemapping modes. + * @export + * @enum {string} + */ + +export const TonemappingMode = { + Auto: 'auto', + Max: 'max', + Rgb: 'rgb', + Lum: 'lum', + Itp: 'itp' +} as const; + +export type TonemappingMode = typeof TonemappingMode[keyof typeof TonemappingMode]; + + + diff --git a/src/generated-client/models/tonemapping-range.ts b/src/generated-client/models/tonemapping-range.ts new file mode 100644 index 00000000..a043ea1f --- /dev/null +++ b/src/generated-client/models/tonemapping-range.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit the class manually. + * + * Jellyfin API + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + + + +/** + * Enum containing tonemapping ranges. + * @export + * @enum {string} + */ + +export const TonemappingRange = { + Auto: 'auto', + Tv: 'tv', + Pc: 'pc' +} as const; + +export type TonemappingRange = typeof TonemappingRange[keyof typeof TonemappingRange]; + + + diff --git a/src/generated-client/models/transcode-reason.ts b/src/generated-client/models/transcode-reason.ts index e1ed1d8f..0914c78f 100644 --- a/src/generated-client/models/transcode-reason.ts +++ b/src/generated-client/models/transcode-reason.ts @@ -44,7 +44,8 @@ export const TranscodeReason = { UnknownVideoStreamInfo: 'UnknownVideoStreamInfo', UnknownAudioStreamInfo: 'UnknownAudioStreamInfo', DirectPlayError: 'DirectPlayError', - VideoRangeTypeNotSupported: 'VideoRangeTypeNotSupported' + VideoRangeTypeNotSupported: 'VideoRangeTypeNotSupported', + VideoCodecTagNotSupported: 'VideoCodecTagNotSupported' } as const; export type TranscodeReason = typeof TranscodeReason[keyof typeof TranscodeReason]; diff --git a/src/generated-client/models/transcoding-info.ts b/src/generated-client/models/transcoding-info.ts index c1b7a7f8..dbde3a44 100644 --- a/src/generated-client/models/transcoding-info.ts +++ b/src/generated-client/models/transcoding-info.ts @@ -14,91 +14,91 @@ // May contain unused imports in some cases // @ts-ignore -import type { HardwareEncodingType } from './hardware-encoding-type'; +import type { HardwareAccelerationType } from './hardware-acceleration-type'; // May contain unused imports in some cases // @ts-ignore import type { TranscodeReason } from './transcode-reason'; /** - * + * Class holding information on a runnning transcode. * @export * @interface TranscodingInfo */ export interface TranscodingInfo { /** - * + * Gets or sets the thread count used for encoding. * @type {string} * @memberof TranscodingInfo */ 'AudioCodec'?: string | null; /** - * + * Gets or sets the thread count used for encoding. * @type {string} * @memberof TranscodingInfo */ 'VideoCodec'?: string | null; /** - * + * Gets or sets the thread count used for encoding. * @type {string} * @memberof TranscodingInfo */ 'Container'?: string | null; /** - * + * Gets or sets a value indicating whether the video is passed through. * @type {boolean} * @memberof TranscodingInfo */ 'IsVideoDirect'?: boolean; /** - * + * Gets or sets a value indicating whether the audio is passed through. * @type {boolean} * @memberof TranscodingInfo */ 'IsAudioDirect'?: boolean; /** - * + * Gets or sets the bitrate. * @type {number} * @memberof TranscodingInfo */ 'Bitrate'?: number | null; /** - * + * Gets or sets the framerate. * @type {number} * @memberof TranscodingInfo */ 'Framerate'?: number | null; /** - * + * Gets or sets the completion percentage. * @type {number} * @memberof TranscodingInfo */ 'CompletionPercentage'?: number | null; /** - * + * Gets or sets the video width. * @type {number} * @memberof TranscodingInfo */ 'Width'?: number | null; /** - * + * Gets or sets the video height. * @type {number} * @memberof TranscodingInfo */ 'Height'?: number | null; /** - * + * Gets or sets the audio channels. * @type {number} * @memberof TranscodingInfo */ 'AudioChannels'?: number | null; /** * - * @type {HardwareEncodingType} + * @type {HardwareAccelerationType} * @memberof TranscodingInfo */ - 'HardwareAccelerationType'?: HardwareEncodingType; + 'HardwareAccelerationType'?: HardwareAccelerationType; /** - * + * Gets or sets the transcode reasons. * @type {Array} * @memberof TranscodingInfo */ diff --git a/src/generated-client/models/transcoding-profile.ts b/src/generated-client/models/transcoding-profile.ts index 9f4043c9..12095b97 100644 --- a/src/generated-client/models/transcoding-profile.ts +++ b/src/generated-client/models/transcoding-profile.ts @@ -29,13 +29,13 @@ import type { ProfileCondition } from './profile-condition'; import type { TranscodeSeekInfo } from './transcode-seek-info'; /** - * + * A class for transcoding profile information. * @export * @interface TranscodingProfile */ export interface TranscodingProfile { /** - * + * Gets or sets the container. * @type {string} * @memberof TranscodingProfile */ @@ -47,13 +47,13 @@ export interface TranscodingProfile { */ 'Type'?: DlnaProfileType; /** - * + * Gets or sets the video codec. * @type {string} * @memberof TranscodingProfile */ 'VideoCodec'?: string; /** - * + * Gets or sets the audio codec. * @type {string} * @memberof TranscodingProfile */ @@ -65,13 +65,13 @@ export interface TranscodingProfile { */ 'Protocol'?: MediaStreamProtocol; /** - * + * Gets or sets a value indicating whether the content length should be estimated. * @type {boolean} * @memberof TranscodingProfile */ 'EstimateContentLength'?: boolean; /** - * + * Gets or sets a value indicating whether M2TS mode is enabled. * @type {boolean} * @memberof TranscodingProfile */ @@ -83,7 +83,7 @@ export interface TranscodingProfile { */ 'TranscodeSeekInfo'?: TranscodeSeekInfo; /** - * + * Gets or sets a value indicating whether timestamps should be copied. * @type {boolean} * @memberof TranscodingProfile */ @@ -95,41 +95,47 @@ export interface TranscodingProfile { */ 'Context'?: EncodingContext; /** - * + * Gets or sets a value indicating whether subtitles are allowed in the manifest. * @type {boolean} * @memberof TranscodingProfile */ 'EnableSubtitlesInManifest'?: boolean; /** - * + * Gets or sets the maximum audio channels. * @type {string} * @memberof TranscodingProfile */ 'MaxAudioChannels'?: string | null; /** - * + * Gets or sets the minimum amount of segments. * @type {number} * @memberof TranscodingProfile */ 'MinSegments'?: number; /** - * + * Gets or sets the segment length. * @type {number} * @memberof TranscodingProfile */ 'SegmentLength'?: number; /** - * + * Gets or sets a value indicating whether breaking the video stream on non-keyframes is supported. * @type {boolean} * @memberof TranscodingProfile */ 'BreakOnNonKeyFrames'?: boolean; /** - * + * Gets or sets the profile conditions. * @type {Array} * @memberof TranscodingProfile */ 'Conditions'?: Array; + /** + * Gets or sets a value indicating whether variable bitrate encoding is supported. + * @type {boolean} + * @memberof TranscodingProfile + */ + 'EnableAudioVbrEncoding'?: boolean; } diff --git a/src/generated-client/models/trickplay-options.ts b/src/generated-client/models/trickplay-options.ts index 4cc44010..fbf1f234 100644 --- a/src/generated-client/models/trickplay-options.ts +++ b/src/generated-client/models/trickplay-options.ts @@ -37,6 +37,12 @@ export interface TrickplayOptions { * @memberof TrickplayOptions */ 'EnableHwEncoding'?: boolean; + /** + * Gets or sets a value indicating whether to only extract key frames. Significantly faster, but is not compatible with all decoders and/or video files. + * @type {boolean} + * @memberof TrickplayOptions + */ + 'EnableKeyFrameOnlyExtraction'?: boolean; /** * * @type {TrickplayScanBehavior} diff --git a/src/generated-client/models/tuner-host-info.ts b/src/generated-client/models/tuner-host-info.ts index a92425aa..c5c6f569 100644 --- a/src/generated-client/models/tuner-host-info.ts +++ b/src/generated-client/models/tuner-host-info.ts @@ -61,6 +61,24 @@ export interface TunerHostInfo { * @memberof TunerHostInfo */ 'AllowHWTranscoding'?: boolean; + /** + * + * @type {boolean} + * @memberof TunerHostInfo + */ + 'AllowFmp4TranscodingContainer'?: boolean; + /** + * + * @type {boolean} + * @memberof TunerHostInfo + */ + 'AllowStreamSharing'?: boolean; + /** + * + * @type {number} + * @memberof TunerHostInfo + */ + 'FallbackMaxStreamingBitrate'?: number; /** * * @type {boolean} diff --git a/src/generated-client/models/user-data-change-info.ts b/src/generated-client/models/user-data-change-info.ts index 1e5eb3b8..e1088a8f 100644 --- a/src/generated-client/models/user-data-change-info.ts +++ b/src/generated-client/models/user-data-change-info.ts @@ -27,12 +27,12 @@ export interface UserDataChangeInfo { * @type {string} * @memberof UserDataChangeInfo */ - 'UserId'?: string | null; + 'UserId'?: string; /** * Gets or sets the user data list. * @type {Array} * @memberof UserDataChangeInfo */ - 'UserDataList'?: Array | null; + 'UserDataList'?: Array; } diff --git a/src/generated-client/models/user-item-data-dto.ts b/src/generated-client/models/user-item-data-dto.ts index d481bed8..38cee207 100644 --- a/src/generated-client/models/user-item-data-dto.ts +++ b/src/generated-client/models/user-item-data-dto.ts @@ -78,12 +78,12 @@ export interface UserItemDataDto { * @type {string} * @memberof UserItemDataDto */ - 'Key'?: string | null; + 'Key'?: string; /** * Gets or sets the item identifier. * @type {string} * @memberof UserItemDataDto */ - 'ItemId'?: string | null; + 'ItemId'?: string; } diff --git a/src/versions.ts b/src/versions.ts index cca8515f..40fd73ac 100644 --- a/src/versions.ts +++ b/src/versions.ts @@ -5,7 +5,7 @@ */ /** The current API version of the generated client. */ -export const API_VERSION = '10.9.11'; +export const API_VERSION = '10.10.0'; /** The minimum supported server version. */ export const MINIMUM_VERSION = '10.9.0';