@jellyfin/sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.js +8 -11
- package/lib/generated-client/api/api-key-api.js +24 -31
- package/lib/generated-client/api/artists-api.js +24 -31
- package/lib/generated-client/api/audio-api.d.ts +12 -12
- package/lib/generated-client/api/audio-api.js +28 -37
- package/lib/generated-client/api/branding-api.js +21 -28
- package/lib/generated-client/api/channels-api.js +40 -51
- package/lib/generated-client/api/client-log-api.js +8 -11
- package/lib/generated-client/api/collection-api.js +24 -31
- package/lib/generated-client/api/configuration-api.js +40 -51
- package/lib/generated-client/api/dashboard-api.js +15 -20
- package/lib/generated-client/api/devices-api.js +40 -51
- package/lib/generated-client/api/display-preferences-api.js +16 -21
- package/lib/generated-client/api/dynamic-hls-api.d.ts +27 -27
- package/lib/generated-client/api/dynamic-hls-api.js +72 -91
- package/lib/generated-client/api/environment-api.js +48 -61
- package/lib/generated-client/api/filter-api.js +16 -21
- package/lib/generated-client/api/genres-api.js +16 -21
- package/lib/generated-client/api/hls-segment-api.js +37 -48
- package/lib/generated-client/api/image-api.js +269 -344
- package/lib/generated-client/api/instant-mix-api.js +64 -81
- package/lib/generated-client/api/item-lookup-api.js +88 -111
- package/lib/generated-client/api/item-refresh-api.js +8 -11
- package/lib/generated-client/api/item-update-api.js +24 -31
- package/lib/generated-client/api/items-api.js +32 -41
- package/lib/generated-client/api/library-api.js +200 -251
- package/lib/generated-client/api/library-structure-api.js +64 -81
- package/lib/generated-client/api/live-tv-api.js +326 -409
- package/lib/generated-client/api/localization-api.js +32 -41
- package/lib/generated-client/api/lyrics-api.js +48 -61
- package/lib/generated-client/api/media-info-api.js +40 -51
- package/lib/generated-client/api/movies-api.js +8 -11
- package/lib/generated-client/api/music-genres-api.js +16 -21
- package/lib/generated-client/api/package-api.js +48 -61
- package/lib/generated-client/api/persons-api.js +16 -21
- package/lib/generated-client/api/playlists-api.js +80 -101
- package/lib/generated-client/api/playstate-api.js +72 -91
- package/lib/generated-client/api/plugins-api.js +72 -91
- package/lib/generated-client/api/quick-connect-api.js +29 -38
- package/lib/generated-client/api/remote-image-api.js +24 -31
- package/lib/generated-client/api/scheduled-tasks-api.js +40 -51
- package/lib/generated-client/api/search-api.js +8 -11
- package/lib/generated-client/api/session-api.js +128 -161
- package/lib/generated-client/api/startup-api.js +56 -71
- package/lib/generated-client/api/studios-api.js +16 -21
- package/lib/generated-client/api/subtitle-api.js +78 -99
- package/lib/generated-client/api/suggestions-api.js +8 -11
- package/lib/generated-client/api/sync-play-api.js +168 -211
- package/lib/generated-client/api/system-api.js +77 -98
- package/lib/generated-client/api/time-sync-api.js +7 -10
- package/lib/generated-client/api/tmdb-api.js +8 -11
- package/lib/generated-client/api/trailers-api.js +8 -11
- package/lib/generated-client/api/trickplay-api.js +16 -21
- package/lib/generated-client/api/tv-shows-api.js +32 -41
- package/lib/generated-client/api/universal-audio-api.js +16 -21
- package/lib/generated-client/api/user-api.js +107 -136
- package/lib/generated-client/api/user-library-api.js +80 -101
- package/lib/generated-client/api/user-views-api.js +16 -21
- package/lib/generated-client/api/video-attachments-api.js +7 -10
- package/lib/generated-client/api/videos-api.d.ts +12 -12
- package/lib/generated-client/api/videos-api.js +52 -67
- package/lib/generated-client/api/years-api.js +16 -21
- package/lib/generated-client/common.js +8 -11
- package/lib/generated-client/models/search-hint.d.ts +1 -1
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +10 -10
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -76,7 +75,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
76
75
|
* @param {*} [options] Override http request option.
|
|
77
76
|
* @throws {RequiredError}
|
|
78
77
|
*/
|
|
79
|
-
getAudioStream:
|
|
78
|
+
getAudioStream: async (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 = {}) => {
|
|
80
79
|
// verify required parameter 'itemId' is not null or undefined
|
|
81
80
|
assertParamExists('getAudioStream', 'itemId', itemId);
|
|
82
81
|
const localVarPath = `/Audio/{itemId}/stream`
|
|
@@ -87,7 +86,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
87
86
|
if (configuration) {
|
|
88
87
|
baseOptions = configuration.baseOptions;
|
|
89
88
|
}
|
|
90
|
-
const localVarRequestOptions =
|
|
89
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
91
90
|
const localVarHeaderParameter = {};
|
|
92
91
|
const localVarQueryParameter = {};
|
|
93
92
|
if (container !== undefined) {
|
|
@@ -236,12 +235,12 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
236
235
|
}
|
|
237
236
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
238
237
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
239
|
-
localVarRequestOptions.headers =
|
|
238
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
240
239
|
return {
|
|
241
240
|
url: toPathString(localVarUrlObj),
|
|
242
241
|
options: localVarRequestOptions,
|
|
243
242
|
};
|
|
244
|
-
}
|
|
243
|
+
},
|
|
245
244
|
/**
|
|
246
245
|
*
|
|
247
246
|
* @summary Gets an audio stream.
|
|
@@ -297,7 +296,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
297
296
|
* @param {*} [options] Override http request option.
|
|
298
297
|
* @throws {RequiredError}
|
|
299
298
|
*/
|
|
300
|
-
getAudioStreamByContainer:
|
|
299
|
+
getAudioStreamByContainer: async (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 = {}) => {
|
|
301
300
|
// verify required parameter 'itemId' is not null or undefined
|
|
302
301
|
assertParamExists('getAudioStreamByContainer', 'itemId', itemId);
|
|
303
302
|
// verify required parameter 'container' is not null or undefined
|
|
@@ -311,7 +310,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
311
310
|
if (configuration) {
|
|
312
311
|
baseOptions = configuration.baseOptions;
|
|
313
312
|
}
|
|
314
|
-
const localVarRequestOptions =
|
|
313
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
315
314
|
const localVarHeaderParameter = {};
|
|
316
315
|
const localVarQueryParameter = {};
|
|
317
316
|
if (_static !== undefined) {
|
|
@@ -457,12 +456,12 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
457
456
|
}
|
|
458
457
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
459
458
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
460
|
-
localVarRequestOptions.headers =
|
|
459
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
461
460
|
return {
|
|
462
461
|
url: toPathString(localVarUrlObj),
|
|
463
462
|
options: localVarRequestOptions,
|
|
464
463
|
};
|
|
465
|
-
}
|
|
464
|
+
},
|
|
466
465
|
/**
|
|
467
466
|
*
|
|
468
467
|
* @summary Gets an audio stream.
|
|
@@ -518,7 +517,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
518
517
|
* @param {*} [options] Override http request option.
|
|
519
518
|
* @throws {RequiredError}
|
|
520
519
|
*/
|
|
521
|
-
headAudioStream:
|
|
520
|
+
headAudioStream: async (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 = {}) => {
|
|
522
521
|
// verify required parameter 'itemId' is not null or undefined
|
|
523
522
|
assertParamExists('headAudioStream', 'itemId', itemId);
|
|
524
523
|
const localVarPath = `/Audio/{itemId}/stream`
|
|
@@ -529,7 +528,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
529
528
|
if (configuration) {
|
|
530
529
|
baseOptions = configuration.baseOptions;
|
|
531
530
|
}
|
|
532
|
-
const localVarRequestOptions =
|
|
531
|
+
const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
|
|
533
532
|
const localVarHeaderParameter = {};
|
|
534
533
|
const localVarQueryParameter = {};
|
|
535
534
|
if (container !== undefined) {
|
|
@@ -678,12 +677,12 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
678
677
|
}
|
|
679
678
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
680
679
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
681
|
-
localVarRequestOptions.headers =
|
|
680
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
682
681
|
return {
|
|
683
682
|
url: toPathString(localVarUrlObj),
|
|
684
683
|
options: localVarRequestOptions,
|
|
685
684
|
};
|
|
686
|
-
}
|
|
685
|
+
},
|
|
687
686
|
/**
|
|
688
687
|
*
|
|
689
688
|
* @summary Gets an audio stream.
|
|
@@ -739,7 +738,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
739
738
|
* @param {*} [options] Override http request option.
|
|
740
739
|
* @throws {RequiredError}
|
|
741
740
|
*/
|
|
742
|
-
headAudioStreamByContainer:
|
|
741
|
+
headAudioStreamByContainer: async (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 = {}) => {
|
|
743
742
|
// verify required parameter 'itemId' is not null or undefined
|
|
744
743
|
assertParamExists('headAudioStreamByContainer', 'itemId', itemId);
|
|
745
744
|
// verify required parameter 'container' is not null or undefined
|
|
@@ -753,7 +752,7 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
753
752
|
if (configuration) {
|
|
754
753
|
baseOptions = configuration.baseOptions;
|
|
755
754
|
}
|
|
756
|
-
const localVarRequestOptions =
|
|
755
|
+
const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options };
|
|
757
756
|
const localVarHeaderParameter = {};
|
|
758
757
|
const localVarQueryParameter = {};
|
|
759
758
|
if (_static !== undefined) {
|
|
@@ -899,12 +898,12 @@ const AudioApiAxiosParamCreator = function (configuration) {
|
|
|
899
898
|
}
|
|
900
899
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
901
900
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
902
|
-
localVarRequestOptions.headers =
|
|
901
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
903
902
|
return {
|
|
904
903
|
url: toPathString(localVarUrlObj),
|
|
905
904
|
options: localVarRequestOptions,
|
|
906
905
|
};
|
|
907
|
-
}
|
|
906
|
+
},
|
|
908
907
|
};
|
|
909
908
|
};
|
|
910
909
|
/**
|
|
@@ -969,11 +968,9 @@ const AudioApiFp = function (configuration) {
|
|
|
969
968
|
* @param {*} [options] Override http request option.
|
|
970
969
|
* @throws {RequiredError}
|
|
971
970
|
*/
|
|
972
|
-
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) {
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
976
|
-
});
|
|
971
|
+
async 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) {
|
|
972
|
+
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);
|
|
973
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
977
974
|
},
|
|
978
975
|
/**
|
|
979
976
|
*
|
|
@@ -1030,11 +1027,9 @@ const AudioApiFp = function (configuration) {
|
|
|
1030
1027
|
* @param {*} [options] Override http request option.
|
|
1031
1028
|
* @throws {RequiredError}
|
|
1032
1029
|
*/
|
|
1033
|
-
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) {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1037
|
-
});
|
|
1030
|
+
async 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) {
|
|
1031
|
+
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);
|
|
1032
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1038
1033
|
},
|
|
1039
1034
|
/**
|
|
1040
1035
|
*
|
|
@@ -1091,11 +1086,9 @@ const AudioApiFp = function (configuration) {
|
|
|
1091
1086
|
* @param {*} [options] Override http request option.
|
|
1092
1087
|
* @throws {RequiredError}
|
|
1093
1088
|
*/
|
|
1094
|
-
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) {
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1098
|
-
});
|
|
1089
|
+
async 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) {
|
|
1090
|
+
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);
|
|
1091
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1099
1092
|
},
|
|
1100
1093
|
/**
|
|
1101
1094
|
*
|
|
@@ -1152,11 +1145,9 @@ const AudioApiFp = function (configuration) {
|
|
|
1152
1145
|
* @param {*} [options] Override http request option.
|
|
1153
1146
|
* @throws {RequiredError}
|
|
1154
1147
|
*/
|
|
1155
|
-
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) {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1159
|
-
});
|
|
1148
|
+
async 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) {
|
|
1149
|
+
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);
|
|
1150
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1160
1151
|
},
|
|
1161
1152
|
};
|
|
1162
1153
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -27,7 +26,7 @@ const BrandingApiAxiosParamCreator = function (configuration) {
|
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
getBrandingCss:
|
|
29
|
+
getBrandingCss: async (options = {}) => {
|
|
31
30
|
const localVarPath = `/Branding/Css`;
|
|
32
31
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33
32
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -35,24 +34,24 @@ const BrandingApiAxiosParamCreator = function (configuration) {
|
|
|
35
34
|
if (configuration) {
|
|
36
35
|
baseOptions = configuration.baseOptions;
|
|
37
36
|
}
|
|
38
|
-
const localVarRequestOptions =
|
|
37
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
39
38
|
const localVarHeaderParameter = {};
|
|
40
39
|
const localVarQueryParameter = {};
|
|
41
40
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42
41
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43
|
-
localVarRequestOptions.headers =
|
|
42
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
44
43
|
return {
|
|
45
44
|
url: toPathString(localVarUrlObj),
|
|
46
45
|
options: localVarRequestOptions,
|
|
47
46
|
};
|
|
48
|
-
}
|
|
47
|
+
},
|
|
49
48
|
/**
|
|
50
49
|
*
|
|
51
50
|
* @summary Gets branding css.
|
|
52
51
|
* @param {*} [options] Override http request option.
|
|
53
52
|
* @throws {RequiredError}
|
|
54
53
|
*/
|
|
55
|
-
getBrandingCss2:
|
|
54
|
+
getBrandingCss2: async (options = {}) => {
|
|
56
55
|
const localVarPath = `/Branding/Css.css`;
|
|
57
56
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
57
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -60,24 +59,24 @@ const BrandingApiAxiosParamCreator = function (configuration) {
|
|
|
60
59
|
if (configuration) {
|
|
61
60
|
baseOptions = configuration.baseOptions;
|
|
62
61
|
}
|
|
63
|
-
const localVarRequestOptions =
|
|
62
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
64
63
|
const localVarHeaderParameter = {};
|
|
65
64
|
const localVarQueryParameter = {};
|
|
66
65
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
66
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
-
localVarRequestOptions.headers =
|
|
67
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
69
68
|
return {
|
|
70
69
|
url: toPathString(localVarUrlObj),
|
|
71
70
|
options: localVarRequestOptions,
|
|
72
71
|
};
|
|
73
|
-
}
|
|
72
|
+
},
|
|
74
73
|
/**
|
|
75
74
|
*
|
|
76
75
|
* @summary Gets branding configuration.
|
|
77
76
|
* @param {*} [options] Override http request option.
|
|
78
77
|
* @throws {RequiredError}
|
|
79
78
|
*/
|
|
80
|
-
getBrandingOptions:
|
|
79
|
+
getBrandingOptions: async (options = {}) => {
|
|
81
80
|
const localVarPath = `/Branding/Configuration`;
|
|
82
81
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
82
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -85,17 +84,17 @@ const BrandingApiAxiosParamCreator = function (configuration) {
|
|
|
85
84
|
if (configuration) {
|
|
86
85
|
baseOptions = configuration.baseOptions;
|
|
87
86
|
}
|
|
88
|
-
const localVarRequestOptions =
|
|
87
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
89
88
|
const localVarHeaderParameter = {};
|
|
90
89
|
const localVarQueryParameter = {};
|
|
91
90
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
92
91
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
|
-
localVarRequestOptions.headers =
|
|
92
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
94
93
|
return {
|
|
95
94
|
url: toPathString(localVarUrlObj),
|
|
96
95
|
options: localVarRequestOptions,
|
|
97
96
|
};
|
|
98
|
-
}
|
|
97
|
+
},
|
|
99
98
|
};
|
|
100
99
|
};
|
|
101
100
|
/**
|
|
@@ -111,11 +110,9 @@ const BrandingApiFp = function (configuration) {
|
|
|
111
110
|
* @param {*} [options] Override http request option.
|
|
112
111
|
* @throws {RequiredError}
|
|
113
112
|
*/
|
|
114
|
-
getBrandingCss(options) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
118
|
-
});
|
|
113
|
+
async getBrandingCss(options) {
|
|
114
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrandingCss(options);
|
|
115
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
119
116
|
},
|
|
120
117
|
/**
|
|
121
118
|
*
|
|
@@ -123,11 +120,9 @@ const BrandingApiFp = function (configuration) {
|
|
|
123
120
|
* @param {*} [options] Override http request option.
|
|
124
121
|
* @throws {RequiredError}
|
|
125
122
|
*/
|
|
126
|
-
getBrandingCss2(options) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
130
|
-
});
|
|
123
|
+
async getBrandingCss2(options) {
|
|
124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrandingCss2(options);
|
|
125
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
131
126
|
},
|
|
132
127
|
/**
|
|
133
128
|
*
|
|
@@ -135,11 +130,9 @@ const BrandingApiFp = function (configuration) {
|
|
|
135
130
|
* @param {*} [options] Override http request option.
|
|
136
131
|
* @throws {RequiredError}
|
|
137
132
|
*/
|
|
138
|
-
getBrandingOptions(options) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
142
|
-
});
|
|
133
|
+
async getBrandingOptions(options) {
|
|
134
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrandingOptions(options);
|
|
135
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
143
136
|
},
|
|
144
137
|
};
|
|
145
138
|
};
|