@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.
Files changed (72) hide show
  1. package/README.md +5 -0
  2. package/lib/discovery/discovery-service.js +4 -9
  3. package/lib/discovery/recommended-server-discovery.js +17 -22
  4. package/lib/generated-client/api/activity-log-api.js +8 -11
  5. package/lib/generated-client/api/api-key-api.js +24 -31
  6. package/lib/generated-client/api/artists-api.js +24 -31
  7. package/lib/generated-client/api/audio-api.d.ts +12 -12
  8. package/lib/generated-client/api/audio-api.js +28 -37
  9. package/lib/generated-client/api/branding-api.js +21 -28
  10. package/lib/generated-client/api/channels-api.js +40 -51
  11. package/lib/generated-client/api/client-log-api.js +8 -11
  12. package/lib/generated-client/api/collection-api.js +24 -31
  13. package/lib/generated-client/api/configuration-api.js +40 -51
  14. package/lib/generated-client/api/dashboard-api.js +15 -20
  15. package/lib/generated-client/api/devices-api.js +40 -51
  16. package/lib/generated-client/api/display-preferences-api.js +16 -21
  17. package/lib/generated-client/api/dynamic-hls-api.d.ts +27 -27
  18. package/lib/generated-client/api/dynamic-hls-api.js +72 -91
  19. package/lib/generated-client/api/environment-api.js +48 -61
  20. package/lib/generated-client/api/filter-api.js +16 -21
  21. package/lib/generated-client/api/genres-api.js +16 -21
  22. package/lib/generated-client/api/hls-segment-api.js +37 -48
  23. package/lib/generated-client/api/image-api.js +269 -344
  24. package/lib/generated-client/api/instant-mix-api.js +64 -81
  25. package/lib/generated-client/api/item-lookup-api.js +88 -111
  26. package/lib/generated-client/api/item-refresh-api.js +8 -11
  27. package/lib/generated-client/api/item-update-api.js +24 -31
  28. package/lib/generated-client/api/items-api.js +32 -41
  29. package/lib/generated-client/api/library-api.js +200 -251
  30. package/lib/generated-client/api/library-structure-api.js +64 -81
  31. package/lib/generated-client/api/live-tv-api.js +326 -409
  32. package/lib/generated-client/api/localization-api.js +32 -41
  33. package/lib/generated-client/api/lyrics-api.js +48 -61
  34. package/lib/generated-client/api/media-info-api.js +40 -51
  35. package/lib/generated-client/api/movies-api.js +8 -11
  36. package/lib/generated-client/api/music-genres-api.js +16 -21
  37. package/lib/generated-client/api/package-api.js +48 -61
  38. package/lib/generated-client/api/persons-api.js +16 -21
  39. package/lib/generated-client/api/playlists-api.js +80 -101
  40. package/lib/generated-client/api/playstate-api.js +72 -91
  41. package/lib/generated-client/api/plugins-api.js +72 -91
  42. package/lib/generated-client/api/quick-connect-api.js +29 -38
  43. package/lib/generated-client/api/remote-image-api.js +24 -31
  44. package/lib/generated-client/api/scheduled-tasks-api.js +40 -51
  45. package/lib/generated-client/api/search-api.js +8 -11
  46. package/lib/generated-client/api/session-api.js +128 -161
  47. package/lib/generated-client/api/startup-api.js +56 -71
  48. package/lib/generated-client/api/studios-api.js +16 -21
  49. package/lib/generated-client/api/subtitle-api.js +78 -99
  50. package/lib/generated-client/api/suggestions-api.js +8 -11
  51. package/lib/generated-client/api/sync-play-api.js +168 -211
  52. package/lib/generated-client/api/system-api.js +77 -98
  53. package/lib/generated-client/api/time-sync-api.js +7 -10
  54. package/lib/generated-client/api/tmdb-api.js +8 -11
  55. package/lib/generated-client/api/trailers-api.js +8 -11
  56. package/lib/generated-client/api/trickplay-api.js +16 -21
  57. package/lib/generated-client/api/tv-shows-api.js +32 -41
  58. package/lib/generated-client/api/universal-audio-api.js +16 -21
  59. package/lib/generated-client/api/user-api.js +107 -136
  60. package/lib/generated-client/api/user-library-api.js +80 -101
  61. package/lib/generated-client/api/user-views-api.js +16 -21
  62. package/lib/generated-client/api/video-attachments-api.js +7 -10
  63. package/lib/generated-client/api/videos-api.d.ts +12 -12
  64. package/lib/generated-client/api/videos-api.js +52 -67
  65. package/lib/generated-client/api/years-api.js +16 -21
  66. package/lib/generated-client/common.js +8 -11
  67. package/lib/generated-client/models/search-hint.d.ts +1 -1
  68. package/lib/utils/api/image-urls-api.js +16 -4
  69. package/lib/versions.d.ts +1 -1
  70. package/lib/versions.js +1 -1
  71. package/package.json +10 -10
  72. 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: (itemId_1, container_1, _static_1, params_1, tag_1, deviceProfileId_1, playSessionId_1, segmentContainer_1, segmentLength_1, minSegments_1, mediaSourceId_1, deviceId_1, audioCodec_1, enableAutoStreamCopy_1, allowVideoStreamCopy_1, allowAudioStreamCopy_1, breakOnNonKeyFrames_1, audioSampleRate_1, maxAudioBitDepth_1, audioBitRate_1, audioChannels_1, maxAudioChannels_1, profile_1, level_1, framerate_1, maxFramerate_1, copyTimestamps_1, startTimeTicks_1, width_1, height_1, videoBitRate_1, subtitleStreamIndex_1, subtitleMethod_1, maxRefFrames_1, maxVideoBitDepth_1, requireAvc_1, deInterlace_1, requireNonAnamorphic_1, transcodingMaxAudioChannels_1, cpuCoreLimit_1, liveStreamId_1, enableMpegtsM2TsMode_1, videoCodec_1, subtitleCodec_1, transcodeReasons_1, audioStreamIndex_1, videoStreamIndex_1, context_1, streamOptions_1, ...args_1) => __awaiter(this, [itemId_1, container_1, _static_1, params_1, tag_1, deviceProfileId_1, playSessionId_1, segmentContainer_1, segmentLength_1, minSegments_1, mediaSourceId_1, deviceId_1, audioCodec_1, enableAutoStreamCopy_1, allowVideoStreamCopy_1, allowAudioStreamCopy_1, breakOnNonKeyFrames_1, audioSampleRate_1, maxAudioBitDepth_1, audioBitRate_1, audioChannels_1, maxAudioChannels_1, profile_1, level_1, framerate_1, maxFramerate_1, copyTimestamps_1, startTimeTicks_1, width_1, height_1, videoBitRate_1, subtitleStreamIndex_1, subtitleMethod_1, maxRefFrames_1, maxVideoBitDepth_1, requireAvc_1, deInterlace_1, requireNonAnamorphic_1, transcodingMaxAudioChannels_1, cpuCoreLimit_1, liveStreamId_1, enableMpegtsM2TsMode_1, videoCodec_1, subtitleCodec_1, transcodeReasons_1, audioStreamIndex_1, videoStreamIndex_1, context_1, streamOptions_1, ...args_1], void 0, function* (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 = {}) {
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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
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 = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.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: (itemId_2, container_2, _static_2, params_2, tag_2, deviceProfileId_2, playSessionId_2, segmentContainer_2, segmentLength_2, minSegments_2, mediaSourceId_2, deviceId_2, audioCodec_2, enableAutoStreamCopy_2, allowVideoStreamCopy_2, allowAudioStreamCopy_2, breakOnNonKeyFrames_2, audioSampleRate_2, maxAudioBitDepth_2, audioBitRate_2, audioChannels_2, maxAudioChannels_2, profile_2, level_2, framerate_2, maxFramerate_2, copyTimestamps_2, startTimeTicks_2, width_2, height_2, videoBitRate_2, subtitleStreamIndex_2, subtitleMethod_2, maxRefFrames_2, maxVideoBitDepth_2, requireAvc_2, deInterlace_2, requireNonAnamorphic_2, transcodingMaxAudioChannels_2, cpuCoreLimit_2, liveStreamId_2, enableMpegtsM2TsMode_2, videoCodec_2, subtitleCodec_2, transcodeReasons_2, audioStreamIndex_2, videoStreamIndex_2, context_2, streamOptions_2, ...args_2) => __awaiter(this, [itemId_2, container_2, _static_2, params_2, tag_2, deviceProfileId_2, playSessionId_2, segmentContainer_2, segmentLength_2, minSegments_2, mediaSourceId_2, deviceId_2, audioCodec_2, enableAutoStreamCopy_2, allowVideoStreamCopy_2, allowAudioStreamCopy_2, breakOnNonKeyFrames_2, audioSampleRate_2, maxAudioBitDepth_2, audioBitRate_2, audioChannels_2, maxAudioChannels_2, profile_2, level_2, framerate_2, maxFramerate_2, copyTimestamps_2, startTimeTicks_2, width_2, height_2, videoBitRate_2, subtitleStreamIndex_2, subtitleMethod_2, maxRefFrames_2, maxVideoBitDepth_2, requireAvc_2, deInterlace_2, requireNonAnamorphic_2, transcodingMaxAudioChannels_2, cpuCoreLimit_2, liveStreamId_2, enableMpegtsM2TsMode_2, videoCodec_2, subtitleCodec_2, transcodeReasons_2, audioStreamIndex_2, videoStreamIndex_2, context_2, streamOptions_2, ...args_2], void 0, function* (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 = {}) {
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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
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 = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.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: (itemId_3, container_3, _static_3, params_3, tag_3, deviceProfileId_3, playSessionId_3, segmentContainer_3, segmentLength_3, minSegments_3, mediaSourceId_3, deviceId_3, audioCodec_3, enableAutoStreamCopy_3, allowVideoStreamCopy_3, allowAudioStreamCopy_3, breakOnNonKeyFrames_3, audioSampleRate_3, maxAudioBitDepth_3, audioBitRate_3, audioChannels_3, maxAudioChannels_3, profile_3, level_3, framerate_3, maxFramerate_3, copyTimestamps_3, startTimeTicks_3, width_3, height_3, videoBitRate_3, subtitleStreamIndex_3, subtitleMethod_3, maxRefFrames_3, maxVideoBitDepth_3, requireAvc_3, deInterlace_3, requireNonAnamorphic_3, transcodingMaxAudioChannels_3, cpuCoreLimit_3, liveStreamId_3, enableMpegtsM2TsMode_3, videoCodec_3, subtitleCodec_3, transcodeReasons_3, audioStreamIndex_3, videoStreamIndex_3, context_3, streamOptions_3, ...args_3) => __awaiter(this, [itemId_3, container_3, _static_3, params_3, tag_3, deviceProfileId_3, playSessionId_3, segmentContainer_3, segmentLength_3, minSegments_3, mediaSourceId_3, deviceId_3, audioCodec_3, enableAutoStreamCopy_3, allowVideoStreamCopy_3, allowAudioStreamCopy_3, breakOnNonKeyFrames_3, audioSampleRate_3, maxAudioBitDepth_3, audioBitRate_3, audioChannels_3, maxAudioChannels_3, profile_3, level_3, framerate_3, maxFramerate_3, copyTimestamps_3, startTimeTicks_3, width_3, height_3, videoBitRate_3, subtitleStreamIndex_3, subtitleMethod_3, maxRefFrames_3, maxVideoBitDepth_3, requireAvc_3, deInterlace_3, requireNonAnamorphic_3, transcodingMaxAudioChannels_3, cpuCoreLimit_3, liveStreamId_3, enableMpegtsM2TsMode_3, videoCodec_3, subtitleCodec_3, transcodeReasons_3, audioStreamIndex_3, videoStreamIndex_3, context_3, streamOptions_3, ...args_3], void 0, function* (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 = {}) {
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 = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
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 = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.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: (itemId_4, container_4, _static_4, params_4, tag_4, deviceProfileId_4, playSessionId_4, segmentContainer_4, segmentLength_4, minSegments_4, mediaSourceId_4, deviceId_4, audioCodec_4, enableAutoStreamCopy_4, allowVideoStreamCopy_4, allowAudioStreamCopy_4, breakOnNonKeyFrames_4, audioSampleRate_4, maxAudioBitDepth_4, audioBitRate_4, audioChannels_4, maxAudioChannels_4, profile_4, level_4, framerate_4, maxFramerate_4, copyTimestamps_4, startTimeTicks_4, width_4, height_4, videoBitRate_4, subtitleStreamIndex_4, subtitleMethod_4, maxRefFrames_4, maxVideoBitDepth_4, requireAvc_4, deInterlace_4, requireNonAnamorphic_4, transcodingMaxAudioChannels_4, cpuCoreLimit_4, liveStreamId_4, enableMpegtsM2TsMode_4, videoCodec_4, subtitleCodec_4, transcodeReasons_4, audioStreamIndex_4, videoStreamIndex_4, context_4, streamOptions_4, ...args_4) => __awaiter(this, [itemId_4, container_4, _static_4, params_4, tag_4, deviceProfileId_4, playSessionId_4, segmentContainer_4, segmentLength_4, minSegments_4, mediaSourceId_4, deviceId_4, audioCodec_4, enableAutoStreamCopy_4, allowVideoStreamCopy_4, allowAudioStreamCopy_4, breakOnNonKeyFrames_4, audioSampleRate_4, maxAudioBitDepth_4, audioBitRate_4, audioChannels_4, maxAudioChannels_4, profile_4, level_4, framerate_4, maxFramerate_4, copyTimestamps_4, startTimeTicks_4, width_4, height_4, videoBitRate_4, subtitleStreamIndex_4, subtitleMethod_4, maxRefFrames_4, maxVideoBitDepth_4, requireAvc_4, deInterlace_4, requireNonAnamorphic_4, transcodingMaxAudioChannels_4, cpuCoreLimit_4, liveStreamId_4, enableMpegtsM2TsMode_4, videoCodec_4, subtitleCodec_4, transcodeReasons_4, audioStreamIndex_4, videoStreamIndex_4, context_4, streamOptions_4, ...args_4], void 0, function* (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 = {}) {
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 = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
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 = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.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
- return __awaiter(this, void 0, void 0, function* () {
974
- const localVarAxiosArgs = yield 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);
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
- return __awaiter(this, void 0, void 0, function* () {
1035
- const localVarAxiosArgs = yield 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);
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
- return __awaiter(this, void 0, void 0, function* () {
1096
- const localVarAxiosArgs = yield 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);
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
- return __awaiter(this, void 0, void 0, function* () {
1157
- const localVarAxiosArgs = yield 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);
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: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
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 = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.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: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
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 = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.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: (...args_3) => __awaiter(this, [...args_3], void 0, function* (options = {}) {
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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
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 = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.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
- return __awaiter(this, void 0, void 0, function* () {
116
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBrandingCss(options);
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
- return __awaiter(this, void 0, void 0, function* () {
128
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBrandingCss2(options);
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
- return __awaiter(this, void 0, void 0, function* () {
140
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBrandingOptions(options);
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
  };