@jellyfin/sdk 0.8.2 → 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 +14 -4
- package/lib/api.d.ts +1 -0
- package/lib/api.js +4 -4
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +39 -36
- package/lib/generated-client/api/activity-log-api.js +19 -11
- package/lib/generated-client/api/api-key-api.js +35 -31
- package/lib/generated-client/api/artists-api.d.ts +28 -26
- package/lib/generated-client/api/artists-api.js +47 -43
- package/lib/generated-client/api/audio-api.d.ts +20 -20
- package/lib/generated-client/api/audio-api.js +45 -43
- package/lib/generated-client/api/branding-api.js +32 -28
- package/lib/generated-client/api/channels-api.d.ts +9 -8
- package/lib/generated-client/api/channels-api.js +54 -54
- package/lib/generated-client/api/client-log-api.js +19 -11
- package/lib/generated-client/api/collection-api.js +35 -31
- package/lib/generated-client/api/configuration-api.d.ts +0 -47
- package/lib/generated-client/api/configuration-api.js +51 -117
- package/lib/generated-client/api/dashboard-api.js +26 -20
- package/lib/generated-client/api/devices-api.d.ts +3 -12
- package/lib/generated-client/api/devices-api.js +54 -60
- package/lib/generated-client/api/display-preferences-api.d.ts +22 -22
- package/lib/generated-client/api/display-preferences-api.js +39 -37
- package/lib/generated-client/api/dynamic-hls-api.d.ts +49 -31
- package/lib/generated-client/api/dynamic-hls-api.js +104 -100
- package/lib/generated-client/api/environment-api.js +59 -61
- package/lib/generated-client/api/filter-api.d.ts +9 -8
- package/lib/generated-client/api/filter-api.js +30 -24
- package/lib/generated-client/api/genres-api.d.ts +9 -8
- package/lib/generated-client/api/genres-api.js +30 -24
- package/lib/generated-client/api/hls-segment-api.js +48 -48
- package/lib/generated-client/api/image-api.d.ts +109 -1184
- package/lib/generated-client/api/image-api.js +394 -1307
- package/lib/generated-client/api/instant-mix-api.d.ts +35 -35
- package/lib/generated-client/api/instant-mix-api.js +125 -131
- package/lib/generated-client/api/item-lookup-api.js +99 -111
- package/lib/generated-client/api/item-refresh-api.js +19 -11
- package/lib/generated-client/api/item-update-api.js +35 -31
- package/lib/generated-client/api/items-api.d.ts +333 -1012
- package/lib/generated-client/api/items-api.js +191 -617
- package/lib/generated-client/api/library-api.d.ts +9 -8
- package/lib/generated-client/api/library-api.js +214 -254
- package/lib/generated-client/api/library-structure-api.js +75 -81
- package/lib/generated-client/api/live-tv-api.d.ts +17 -16
- package/lib/generated-client/api/live-tv-api.js +343 -415
- package/lib/generated-client/api/localization-api.js +43 -41
- package/lib/generated-client/api/lyrics-api.d.ts +344 -0
- package/lib/generated-client/api/lyrics-api.js +449 -0
- package/lib/generated-client/api/media-info-api.d.ts +7 -7
- package/lib/generated-client/api/media-info-api.js +54 -56
- package/lib/generated-client/api/movies-api.js +19 -11
- package/lib/generated-client/api/music-genres-api.d.ts +9 -8
- package/lib/generated-client/api/music-genres-api.js +30 -24
- package/lib/generated-client/api/package-api.js +59 -61
- package/lib/generated-client/api/persons-api.js +27 -21
- package/lib/generated-client/api/playlists-api.d.ts +315 -36
- package/lib/generated-client/api/playlists-api.js +416 -71
- package/lib/generated-client/api/playstate-api.d.ts +41 -68
- package/lib/generated-client/api/playstate-api.js +127 -153
- package/lib/generated-client/api/plugins-api.js +83 -91
- package/lib/generated-client/api/quick-connect-api.d.ts +46 -37
- package/lib/generated-client/api/quick-connect-api.js +83 -75
- package/lib/generated-client/api/remote-image-api.js +35 -31
- package/lib/generated-client/api/scheduled-tasks-api.js +51 -51
- package/lib/generated-client/api/search-api.d.ts +41 -40
- package/lib/generated-client/api/search-api.js +34 -26
- package/lib/generated-client/api/session-api.d.ts +9 -17
- package/lib/generated-client/api/session-api.js +145 -173
- package/lib/generated-client/api/startup-api.js +67 -71
- package/lib/generated-client/api/studios-api.js +27 -21
- package/lib/generated-client/api/subtitle-api.d.ts +7 -7
- package/lib/generated-client/api/subtitle-api.js +99 -109
- package/lib/generated-client/api/suggestions-api.d.ts +14 -13
- package/lib/generated-client/api/suggestions-api.js +31 -23
- package/lib/generated-client/api/sync-play-api.js +179 -211
- package/lib/generated-client/api/system-api.js +88 -98
- package/lib/generated-client/api/time-sync-api.js +18 -10
- package/lib/generated-client/api/tmdb-api.js +19 -11
- package/lib/generated-client/api/trailers-api.d.ts +35 -33
- package/lib/generated-client/api/trailers-api.js +40 -32
- package/lib/generated-client/api/trickplay-api.d.ts +176 -0
- package/lib/generated-client/api/trickplay-api.js +208 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +25 -15
- package/lib/generated-client/api/tv-shows-api.js +58 -50
- package/lib/generated-client/api/universal-audio-api.d.ts +17 -16
- package/lib/generated-client/api/universal-audio-api.js +33 -27
- package/lib/generated-client/api/user-api.d.ts +35 -155
- package/lib/generated-client/api/user-api.js +152 -319
- package/lib/generated-client/api/user-library-api.d.ts +100 -100
- package/lib/generated-client/api/user-library-api.js +190 -200
- package/lib/generated-client/api/user-views-api.d.ts +22 -21
- package/lib/generated-client/api/user-views-api.js +47 -41
- package/lib/generated-client/api/video-attachments-api.js +18 -10
- package/lib/generated-client/api/videos-api.d.ts +12 -12
- package/lib/generated-client/api/videos-api.js +63 -67
- package/lib/generated-client/api/years-api.d.ts +15 -13
- package/lib/generated-client/api/years-api.js +33 -27
- package/lib/generated-client/api.d.ts +2 -4
- package/lib/generated-client/base.js +13 -0
- package/lib/generated-client/common.js +19 -11
- package/lib/generated-client/index.js +19 -10
- package/lib/generated-client/models/activity-log-entry-message.d.ts +37 -0
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +30 -0
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +24 -0
- package/lib/generated-client/models/audio-spatial-format.d.ts +21 -0
- package/lib/generated-client/models/audio-spatial-format.js +24 -0
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +0 -7
- package/lib/generated-client/models/base-item-dto.d.ts +37 -17
- package/lib/generated-client/models/base-item-person.d.ts +4 -3
- package/lib/generated-client/models/cast-receiver-application.d.ts +29 -0
- package/lib/generated-client/models/client-capabilities-dto.d.ts +17 -20
- package/lib/generated-client/models/client-capabilities.d.ts +16 -19
- package/lib/generated-client/models/collection-type-options.d.ts +9 -9
- package/lib/generated-client/models/collection-type-options.js +9 -9
- package/lib/generated-client/models/collection-type.d.ts +31 -0
- package/lib/generated-client/models/collection-type.js +34 -0
- package/lib/generated-client/models/container-profile.d.ts +1 -1
- package/lib/generated-client/models/create-playlist-dto.d.ts +18 -4
- package/lib/generated-client/models/create-user-by-name.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +6 -0
- package/lib/generated-client/models/device-profile.d.ts +0 -171
- package/lib/generated-client/models/dlna-profile-type.d.ts +1 -0
- package/lib/generated-client/models/dlna-profile-type.js +2 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +21 -0
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +24 -0
- package/lib/generated-client/models/encoding-options.d.ts +77 -40
- package/lib/generated-client/models/external-id-media-type.d.ts +1 -0
- package/lib/generated-client/models/external-id-media-type.js +2 -1
- package/lib/generated-client/models/extra-type.d.ts +30 -0
- package/lib/generated-client/models/extra-type.js +33 -0
- package/lib/generated-client/models/force-keep-alive-message.d.ts +36 -0
- package/lib/generated-client/models/general-command-message.d.ts +37 -0
- package/lib/generated-client/models/general-command-type.d.ts +1 -0
- package/lib/generated-client/models/general-command-type.js +2 -1
- package/lib/generated-client/models/get-programs-dto.d.ts +4 -3
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +37 -0
- package/lib/generated-client/models/group-state-update-group-update.d.ts +37 -0
- package/lib/generated-client/models/group-state-update.d.ts +31 -0
- package/lib/generated-client/models/group-update.d.ts +20 -0
- package/lib/generated-client/models/hardware-encoding-type.d.ts +1 -0
- package/lib/generated-client/models/hardware-encoding-type.js +2 -1
- package/lib/generated-client/models/image-format.d.ts +1 -0
- package/lib/generated-client/models/image-format.js +2 -1
- package/lib/generated-client/models/image-resolution.d.ts +27 -0
- package/lib/generated-client/models/{ffmpeg-location.js → image-resolution.js} +12 -7
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +24 -0
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +23 -0
- package/lib/generated-client/models/index.d.ts +74 -25
- package/lib/generated-client/models/index.js +17 -6
- package/lib/generated-client/models/item-fields.d.ts +1 -2
- package/lib/generated-client/models/item-fields.js +1 -2
- package/lib/generated-client/models/item-sort-by.d.ts +50 -0
- package/lib/generated-client/models/item-sort-by.js +53 -0
- package/lib/generated-client/models/library-changed-message.d.ts +37 -0
- package/lib/generated-client/models/library-options.d.ts +36 -0
- package/lib/generated-client/models/live-tv-options.d.ts +12 -0
- package/lib/generated-client/models/log-file.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +31 -0
- package/lib/generated-client/models/lyric-line.d.ts +29 -0
- package/lib/generated-client/models/lyric-metadata.d.ts +77 -0
- package/lib/generated-client/models/media-source-info.d.ts +3 -2
- package/lib/generated-client/models/media-stream-protocol.d.ts +20 -0
- package/lib/generated-client/models/{header-match-type.js → media-stream-protocol.js} +5 -6
- package/lib/generated-client/models/media-stream-type.d.ts +1 -0
- package/lib/generated-client/models/media-stream-type.js +2 -1
- package/lib/generated-client/models/media-stream.d.ts +27 -6
- package/lib/generated-client/models/media-type.d.ts +23 -0
- package/lib/generated-client/models/{architecture.js → media-type.js} +8 -9
- package/lib/generated-client/models/metadata-editor-info.d.ts +3 -2
- package/lib/generated-client/models/network-configuration.d.ts +50 -116
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +30 -0
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +44 -0
- package/lib/generated-client/models/parental-rating.d.ts +1 -1
- package/lib/generated-client/models/person-kind.d.ts +43 -0
- package/lib/generated-client/models/person-kind.js +46 -0
- package/lib/generated-client/models/play-message.d.ts +37 -0
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +37 -0
- package/lib/generated-client/models/play-queue-update-reason.d.ts +28 -0
- package/lib/generated-client/models/play-queue-update-reason.js +31 -0
- package/lib/generated-client/models/play-queue-update.d.ts +69 -0
- package/lib/generated-client/models/playback-order.d.ts +20 -0
- package/lib/generated-client/models/{send-to-user-type.js → playback-order.js} +5 -6
- package/lib/generated-client/models/playback-progress-info.d.ts +7 -0
- package/lib/generated-client/models/playback-request-type.d.ts +35 -0
- package/lib/generated-client/models/playback-request-type.js +38 -0
- package/lib/generated-client/models/playback-start-info.d.ts +7 -0
- package/lib/generated-client/models/player-state-info.d.ts +7 -0
- package/lib/generated-client/models/playlist-user-permissions.d.ts +29 -0
- package/lib/generated-client/models/playstate-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installing-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +37 -0
- package/lib/generated-client/models/process-priority-class.d.ts +24 -0
- package/lib/generated-client/models/process-priority-class.js +27 -0
- package/lib/generated-client/models/public-system-info.d.ts +1 -0
- package/lib/generated-client/models/refresh-progress-message.d.ts +38 -0
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +36 -0
- package/lib/generated-client/models/remote-subtitle-info.d.ts +30 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +1 -1
- package/lib/generated-client/models/restart-required-message.d.ts +30 -0
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +37 -0
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +37 -0
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +30 -0
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +24 -0
- package/lib/generated-client/models/search-hint.d.ts +19 -16
- package/lib/generated-client/models/series-status.d.ts +2 -1
- package/lib/generated-client/models/series-status.js +3 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/series-timer-created-message.d.ts +37 -0
- package/lib/generated-client/models/server-configuration.d.ts +45 -0
- package/lib/generated-client/models/server-restarting-message.d.ts +30 -0
- package/lib/generated-client/models/server-shutting-down-message.d.ts +30 -0
- package/lib/generated-client/models/session-info.d.ts +9 -9
- package/lib/generated-client/models/sessions-message.d.ts +37 -0
- package/lib/generated-client/models/sessions-start-message.d.ts +30 -0
- package/lib/generated-client/models/sessions-stop-message.d.ts +24 -0
- package/lib/generated-client/models/string-group-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-command-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-queue-item.d.ts +29 -0
- package/lib/generated-client/models/system-info.d.ts +17 -6
- package/lib/generated-client/models/timer-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/timer-created-message.d.ts +37 -0
- package/lib/generated-client/models/transcoding-info.d.ts +3 -2
- package/lib/generated-client/models/transcoding-info.js +15 -0
- package/lib/generated-client/models/transcoding-profile.d.ts +3 -2
- package/lib/generated-client/models/trickplay-info.d.ts +59 -0
- package/lib/generated-client/models/trickplay-options.d.ts +85 -0
- package/lib/generated-client/models/trickplay-scan-behavior.d.ts +20 -0
- package/lib/generated-client/models/{notification-level.js → trickplay-scan-behavior.js} +5 -6
- package/lib/generated-client/models/tuner-host-info.d.ts +6 -0
- package/lib/generated-client/models/update-playlist-dto.d.ts +42 -0
- package/lib/generated-client/models/update-playlist-user-dto.d.ts +23 -0
- package/lib/generated-client/models/update-user-item-data-dto.d.ts +83 -0
- package/lib/generated-client/models/upload-subtitle-dto.d.ts +6 -0
- package/lib/generated-client/models/user-configuration.d.ts +6 -0
- package/lib/generated-client/models/user-data-change-info.d.ts +30 -0
- package/lib/generated-client/models/user-data-changed-message.d.ts +37 -0
- package/lib/generated-client/models/user-deleted-message.d.ts +36 -0
- package/lib/generated-client/models/user-dto.d.ts +1 -0
- package/lib/generated-client/models/user-policy.d.ts +26 -2
- package/lib/generated-client/models/user-updated-message.d.ts +37 -0
- package/lib/generated-client/models/video-range-type.d.ts +27 -0
- package/lib/generated-client/models/video-range-type.js +30 -0
- package/lib/generated-client/models/video-range.d.ts +21 -0
- package/lib/generated-client/models/{device-profile-type.js → video-range.js} +6 -5
- package/lib/generated-client/models/web-socket-message.d.ts +18 -0
- package/lib/utils/api/image-api.d.ts +2 -2
- package/lib/utils/api/image-api.js +2 -2
- package/lib/utils/api/image-urls-api.d.ts +55 -0
- package/lib/utils/api/image-urls-api.js +115 -0
- package/lib/utils/api/index.d.ts +2 -4
- package/lib/utils/api/index.js +2 -4
- package/lib/utils/api/{dlna-api.d.ts → lyrics-api.d.ts} +2 -2
- package/lib/utils/api/{dlna-api.js → lyrics-api.js} +4 -4
- package/lib/utils/api/{dlna-server-api.d.ts → trickplay-api.d.ts} +2 -2
- package/lib/utils/api/trickplay-api.js +12 -0
- package/lib/utils/authentication.js +5 -6
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.js +2 -1
- package/lib/utils/versioning.d.ts +9 -0
- package/lib/utils/versioning.js +32 -0
- package/lib/versions.d.ts +2 -2
- package/lib/versions.js +2 -2
- package/package.json +17 -22
- package/lib/generated-client/api/dlna-api.js +0 -422
- package/lib/generated-client/api/dlna-server-api.js +0 -1088
- package/lib/generated-client/api/image-by-name-api.js +0 -423
- package/lib/generated-client/api/notifications-api.js +0 -484
- package/lib/node_modules/tslib/tslib.es6.js +0 -26
- package/lib/utils/api/dlna-server-api.js +0 -12
- package/lib/utils/api/image-by-name-api.d.ts +0 -8
- package/lib/utils/api/image-by-name-api.js +0 -12
- package/lib/utils/api/notifications-api.d.ts +0 -8
- package/lib/utils/api/notifications-api.js +0 -12
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Jellyfin API
|
|
12
|
+
*
|
|
13
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
14
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
15
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
16
|
+
*/
|
|
7
17
|
/**
|
|
8
18
|
* SessionApi - axios parameter creator
|
|
9
19
|
* @export
|
|
@@ -18,7 +28,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
18
28
|
* @param {*} [options] Override http request option.
|
|
19
29
|
* @throws {RequiredError}
|
|
20
30
|
*/
|
|
21
|
-
addUserToSession: (sessionId, userId, options = {}) =>
|
|
31
|
+
addUserToSession: async (sessionId, userId, options = {}) => {
|
|
22
32
|
// verify required parameter 'sessionId' is not null or undefined
|
|
23
33
|
assertParamExists('addUserToSession', 'sessionId', sessionId);
|
|
24
34
|
// verify required parameter 'userId' is not null or undefined
|
|
@@ -32,19 +42,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
32
42
|
if (configuration) {
|
|
33
43
|
baseOptions = configuration.baseOptions;
|
|
34
44
|
}
|
|
35
|
-
const localVarRequestOptions =
|
|
45
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
36
46
|
const localVarHeaderParameter = {};
|
|
37
47
|
const localVarQueryParameter = {};
|
|
38
48
|
// authentication CustomAuthentication required
|
|
39
|
-
|
|
49
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
40
50
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42
|
-
localVarRequestOptions.headers =
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
43
53
|
return {
|
|
44
54
|
url: toPathString(localVarUrlObj),
|
|
45
55
|
options: localVarRequestOptions,
|
|
46
56
|
};
|
|
47
|
-
}
|
|
57
|
+
},
|
|
48
58
|
/**
|
|
49
59
|
*
|
|
50
60
|
* @summary Instructs a session to browse to an item or view.
|
|
@@ -55,7 +65,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
55
65
|
* @param {*} [options] Override http request option.
|
|
56
66
|
* @throws {RequiredError}
|
|
57
67
|
*/
|
|
58
|
-
displayContent: (sessionId, itemType, itemId, itemName, options = {}) =>
|
|
68
|
+
displayContent: async (sessionId, itemType, itemId, itemName, options = {}) => {
|
|
59
69
|
// verify required parameter 'sessionId' is not null or undefined
|
|
60
70
|
assertParamExists('displayContent', 'sessionId', sessionId);
|
|
61
71
|
// verify required parameter 'itemType' is not null or undefined
|
|
@@ -72,11 +82,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
72
82
|
if (configuration) {
|
|
73
83
|
baseOptions = configuration.baseOptions;
|
|
74
84
|
}
|
|
75
|
-
const localVarRequestOptions =
|
|
85
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
76
86
|
const localVarHeaderParameter = {};
|
|
77
87
|
const localVarQueryParameter = {};
|
|
78
88
|
// authentication CustomAuthentication required
|
|
79
|
-
|
|
89
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
80
90
|
if (itemType !== undefined) {
|
|
81
91
|
localVarQueryParameter['itemType'] = itemType;
|
|
82
92
|
}
|
|
@@ -88,19 +98,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
88
98
|
}
|
|
89
99
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
90
100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
91
|
-
localVarRequestOptions.headers =
|
|
101
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
92
102
|
return {
|
|
93
103
|
url: toPathString(localVarUrlObj),
|
|
94
104
|
options: localVarRequestOptions,
|
|
95
105
|
};
|
|
96
|
-
}
|
|
106
|
+
},
|
|
97
107
|
/**
|
|
98
108
|
*
|
|
99
109
|
* @summary Get all auth providers.
|
|
100
110
|
* @param {*} [options] Override http request option.
|
|
101
111
|
* @throws {RequiredError}
|
|
102
112
|
*/
|
|
103
|
-
getAuthProviders: (options = {}) =>
|
|
113
|
+
getAuthProviders: async (options = {}) => {
|
|
104
114
|
const localVarPath = `/Auth/Providers`;
|
|
105
115
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
116
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -108,26 +118,26 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
108
118
|
if (configuration) {
|
|
109
119
|
baseOptions = configuration.baseOptions;
|
|
110
120
|
}
|
|
111
|
-
const localVarRequestOptions =
|
|
121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
112
122
|
const localVarHeaderParameter = {};
|
|
113
123
|
const localVarQueryParameter = {};
|
|
114
124
|
// authentication CustomAuthentication required
|
|
115
|
-
|
|
125
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
116
126
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
127
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
|
-
localVarRequestOptions.headers =
|
|
128
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
119
129
|
return {
|
|
120
130
|
url: toPathString(localVarUrlObj),
|
|
121
131
|
options: localVarRequestOptions,
|
|
122
132
|
};
|
|
123
|
-
}
|
|
133
|
+
},
|
|
124
134
|
/**
|
|
125
135
|
*
|
|
126
136
|
* @summary Get all password reset providers.
|
|
127
137
|
* @param {*} [options] Override http request option.
|
|
128
138
|
* @throws {RequiredError}
|
|
129
139
|
*/
|
|
130
|
-
getPasswordResetProviders: (options = {}) =>
|
|
140
|
+
getPasswordResetProviders: async (options = {}) => {
|
|
131
141
|
const localVarPath = `/Auth/PasswordResetProviders`;
|
|
132
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
143
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -135,19 +145,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
135
145
|
if (configuration) {
|
|
136
146
|
baseOptions = configuration.baseOptions;
|
|
137
147
|
}
|
|
138
|
-
const localVarRequestOptions =
|
|
148
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
139
149
|
const localVarHeaderParameter = {};
|
|
140
150
|
const localVarQueryParameter = {};
|
|
141
151
|
// authentication CustomAuthentication required
|
|
142
|
-
|
|
152
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
143
153
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
144
154
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
-
localVarRequestOptions.headers =
|
|
155
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
146
156
|
return {
|
|
147
157
|
url: toPathString(localVarUrlObj),
|
|
148
158
|
options: localVarRequestOptions,
|
|
149
159
|
};
|
|
150
|
-
}
|
|
160
|
+
},
|
|
151
161
|
/**
|
|
152
162
|
*
|
|
153
163
|
* @summary Gets a list of sessions.
|
|
@@ -157,7 +167,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
157
167
|
* @param {*} [options] Override http request option.
|
|
158
168
|
* @throws {RequiredError}
|
|
159
169
|
*/
|
|
160
|
-
getSessions: (controllableByUserId, deviceId, activeWithinSeconds, options = {}) =>
|
|
170
|
+
getSessions: async (controllableByUserId, deviceId, activeWithinSeconds, options = {}) => {
|
|
161
171
|
const localVarPath = `/Sessions`;
|
|
162
172
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
163
173
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -165,11 +175,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
165
175
|
if (configuration) {
|
|
166
176
|
baseOptions = configuration.baseOptions;
|
|
167
177
|
}
|
|
168
|
-
const localVarRequestOptions =
|
|
178
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
169
179
|
const localVarHeaderParameter = {};
|
|
170
180
|
const localVarQueryParameter = {};
|
|
171
181
|
// authentication CustomAuthentication required
|
|
172
|
-
|
|
182
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
173
183
|
if (controllableByUserId !== undefined) {
|
|
174
184
|
localVarQueryParameter['controllableByUserId'] = controllableByUserId;
|
|
175
185
|
}
|
|
@@ -181,12 +191,12 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
181
191
|
}
|
|
182
192
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
183
193
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
-
localVarRequestOptions.headers =
|
|
194
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
185
195
|
return {
|
|
186
196
|
url: toPathString(localVarUrlObj),
|
|
187
197
|
options: localVarRequestOptions,
|
|
188
198
|
};
|
|
189
|
-
}
|
|
199
|
+
},
|
|
190
200
|
/**
|
|
191
201
|
*
|
|
192
202
|
* @summary Instructs a session to play an item.
|
|
@@ -201,7 +211,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
201
211
|
* @param {*} [options] Override http request option.
|
|
202
212
|
* @throws {RequiredError}
|
|
203
213
|
*/
|
|
204
|
-
play: (sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options = {}) =>
|
|
214
|
+
play: async (sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options = {}) => {
|
|
205
215
|
// verify required parameter 'sessionId' is not null or undefined
|
|
206
216
|
assertParamExists('play', 'sessionId', sessionId);
|
|
207
217
|
// verify required parameter 'playCommand' is not null or undefined
|
|
@@ -216,11 +226,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
216
226
|
if (configuration) {
|
|
217
227
|
baseOptions = configuration.baseOptions;
|
|
218
228
|
}
|
|
219
|
-
const localVarRequestOptions =
|
|
229
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
220
230
|
const localVarHeaderParameter = {};
|
|
221
231
|
const localVarQueryParameter = {};
|
|
222
232
|
// authentication CustomAuthentication required
|
|
223
|
-
|
|
233
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
224
234
|
if (playCommand !== undefined) {
|
|
225
235
|
localVarQueryParameter['playCommand'] = playCommand;
|
|
226
236
|
}
|
|
@@ -244,25 +254,24 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
244
254
|
}
|
|
245
255
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
256
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
-
localVarRequestOptions.headers =
|
|
257
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
248
258
|
return {
|
|
249
259
|
url: toPathString(localVarUrlObj),
|
|
250
260
|
options: localVarRequestOptions,
|
|
251
261
|
};
|
|
252
|
-
}
|
|
262
|
+
},
|
|
253
263
|
/**
|
|
254
264
|
*
|
|
255
265
|
* @summary Updates capabilities for a device.
|
|
256
266
|
* @param {string} [id] The session id.
|
|
257
|
-
* @param {Array<
|
|
267
|
+
* @param {Array<MediaType>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
|
|
258
268
|
* @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
|
|
259
269
|
* @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
|
|
260
|
-
* @param {boolean} [supportsSync] Determines whether sync is supported.
|
|
261
270
|
* @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
|
|
262
271
|
* @param {*} [options] Override http request option.
|
|
263
272
|
* @throws {RequiredError}
|
|
264
273
|
*/
|
|
265
|
-
postCapabilities: (id, playableMediaTypes, supportedCommands, supportsMediaControl,
|
|
274
|
+
postCapabilities: async (id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options = {}) => {
|
|
266
275
|
const localVarPath = `/Sessions/Capabilities`;
|
|
267
276
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
277
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -270,11 +279,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
270
279
|
if (configuration) {
|
|
271
280
|
baseOptions = configuration.baseOptions;
|
|
272
281
|
}
|
|
273
|
-
const localVarRequestOptions =
|
|
282
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
274
283
|
const localVarHeaderParameter = {};
|
|
275
284
|
const localVarQueryParameter = {};
|
|
276
285
|
// authentication CustomAuthentication required
|
|
277
|
-
|
|
286
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
278
287
|
if (id !== undefined) {
|
|
279
288
|
localVarQueryParameter['id'] = id;
|
|
280
289
|
}
|
|
@@ -287,20 +296,17 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
287
296
|
if (supportsMediaControl !== undefined) {
|
|
288
297
|
localVarQueryParameter['supportsMediaControl'] = supportsMediaControl;
|
|
289
298
|
}
|
|
290
|
-
if (supportsSync !== undefined) {
|
|
291
|
-
localVarQueryParameter['supportsSync'] = supportsSync;
|
|
292
|
-
}
|
|
293
299
|
if (supportsPersistentIdentifier !== undefined) {
|
|
294
300
|
localVarQueryParameter['supportsPersistentIdentifier'] = supportsPersistentIdentifier;
|
|
295
301
|
}
|
|
296
302
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
303
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
-
localVarRequestOptions.headers =
|
|
304
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
299
305
|
return {
|
|
300
306
|
url: toPathString(localVarUrlObj),
|
|
301
307
|
options: localVarRequestOptions,
|
|
302
308
|
};
|
|
303
|
-
}
|
|
309
|
+
},
|
|
304
310
|
/**
|
|
305
311
|
*
|
|
306
312
|
* @summary Updates capabilities for a device.
|
|
@@ -309,7 +315,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
309
315
|
* @param {*} [options] Override http request option.
|
|
310
316
|
* @throws {RequiredError}
|
|
311
317
|
*/
|
|
312
|
-
postFullCapabilities: (clientCapabilitiesDto, id, options = {}) =>
|
|
318
|
+
postFullCapabilities: async (clientCapabilitiesDto, id, options = {}) => {
|
|
313
319
|
// verify required parameter 'clientCapabilitiesDto' is not null or undefined
|
|
314
320
|
assertParamExists('postFullCapabilities', 'clientCapabilitiesDto', clientCapabilitiesDto);
|
|
315
321
|
const localVarPath = `/Sessions/Capabilities/Full`;
|
|
@@ -319,24 +325,24 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
319
325
|
if (configuration) {
|
|
320
326
|
baseOptions = configuration.baseOptions;
|
|
321
327
|
}
|
|
322
|
-
const localVarRequestOptions =
|
|
328
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
323
329
|
const localVarHeaderParameter = {};
|
|
324
330
|
const localVarQueryParameter = {};
|
|
325
331
|
// authentication CustomAuthentication required
|
|
326
|
-
|
|
332
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
327
333
|
if (id !== undefined) {
|
|
328
334
|
localVarQueryParameter['id'] = id;
|
|
329
335
|
}
|
|
330
336
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
331
337
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
332
338
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
|
-
localVarRequestOptions.headers =
|
|
339
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
334
340
|
localVarRequestOptions.data = serializeDataIfNeeded(clientCapabilitiesDto, localVarRequestOptions, configuration);
|
|
335
341
|
return {
|
|
336
342
|
url: toPathString(localVarUrlObj),
|
|
337
343
|
options: localVarRequestOptions,
|
|
338
344
|
};
|
|
339
|
-
}
|
|
345
|
+
},
|
|
340
346
|
/**
|
|
341
347
|
*
|
|
342
348
|
* @summary Removes an additional user from a session.
|
|
@@ -345,7 +351,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
345
351
|
* @param {*} [options] Override http request option.
|
|
346
352
|
* @throws {RequiredError}
|
|
347
353
|
*/
|
|
348
|
-
removeUserFromSession: (sessionId, userId, options = {}) =>
|
|
354
|
+
removeUserFromSession: async (sessionId, userId, options = {}) => {
|
|
349
355
|
// verify required parameter 'sessionId' is not null or undefined
|
|
350
356
|
assertParamExists('removeUserFromSession', 'sessionId', sessionId);
|
|
351
357
|
// verify required parameter 'userId' is not null or undefined
|
|
@@ -359,26 +365,26 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
359
365
|
if (configuration) {
|
|
360
366
|
baseOptions = configuration.baseOptions;
|
|
361
367
|
}
|
|
362
|
-
const localVarRequestOptions =
|
|
368
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
363
369
|
const localVarHeaderParameter = {};
|
|
364
370
|
const localVarQueryParameter = {};
|
|
365
371
|
// authentication CustomAuthentication required
|
|
366
|
-
|
|
372
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
367
373
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
368
374
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
369
|
-
localVarRequestOptions.headers =
|
|
375
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
370
376
|
return {
|
|
371
377
|
url: toPathString(localVarUrlObj),
|
|
372
378
|
options: localVarRequestOptions,
|
|
373
379
|
};
|
|
374
|
-
}
|
|
380
|
+
},
|
|
375
381
|
/**
|
|
376
382
|
*
|
|
377
383
|
* @summary Reports that a session has ended.
|
|
378
384
|
* @param {*} [options] Override http request option.
|
|
379
385
|
* @throws {RequiredError}
|
|
380
386
|
*/
|
|
381
|
-
reportSessionEnded: (options = {}) =>
|
|
387
|
+
reportSessionEnded: async (options = {}) => {
|
|
382
388
|
const localVarPath = `/Sessions/Logout`;
|
|
383
389
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
384
390
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -386,19 +392,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
386
392
|
if (configuration) {
|
|
387
393
|
baseOptions = configuration.baseOptions;
|
|
388
394
|
}
|
|
389
|
-
const localVarRequestOptions =
|
|
395
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
390
396
|
const localVarHeaderParameter = {};
|
|
391
397
|
const localVarQueryParameter = {};
|
|
392
398
|
// authentication CustomAuthentication required
|
|
393
|
-
|
|
399
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
394
400
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
395
401
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
396
|
-
localVarRequestOptions.headers =
|
|
402
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
397
403
|
return {
|
|
398
404
|
url: toPathString(localVarUrlObj),
|
|
399
405
|
options: localVarRequestOptions,
|
|
400
406
|
};
|
|
401
|
-
}
|
|
407
|
+
},
|
|
402
408
|
/**
|
|
403
409
|
*
|
|
404
410
|
* @summary Reports that a session is viewing an item.
|
|
@@ -407,7 +413,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
407
413
|
* @param {*} [options] Override http request option.
|
|
408
414
|
* @throws {RequiredError}
|
|
409
415
|
*/
|
|
410
|
-
reportViewing: (itemId, sessionId, options = {}) =>
|
|
416
|
+
reportViewing: async (itemId, sessionId, options = {}) => {
|
|
411
417
|
// verify required parameter 'itemId' is not null or undefined
|
|
412
418
|
assertParamExists('reportViewing', 'itemId', itemId);
|
|
413
419
|
const localVarPath = `/Sessions/Viewing`;
|
|
@@ -417,11 +423,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
417
423
|
if (configuration) {
|
|
418
424
|
baseOptions = configuration.baseOptions;
|
|
419
425
|
}
|
|
420
|
-
const localVarRequestOptions =
|
|
426
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
421
427
|
const localVarHeaderParameter = {};
|
|
422
428
|
const localVarQueryParameter = {};
|
|
423
429
|
// authentication CustomAuthentication required
|
|
424
|
-
|
|
430
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
425
431
|
if (sessionId !== undefined) {
|
|
426
432
|
localVarQueryParameter['sessionId'] = sessionId;
|
|
427
433
|
}
|
|
@@ -430,12 +436,12 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
430
436
|
}
|
|
431
437
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
432
438
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
433
|
-
localVarRequestOptions.headers =
|
|
439
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
434
440
|
return {
|
|
435
441
|
url: toPathString(localVarUrlObj),
|
|
436
442
|
options: localVarRequestOptions,
|
|
437
443
|
};
|
|
438
|
-
}
|
|
444
|
+
},
|
|
439
445
|
/**
|
|
440
446
|
*
|
|
441
447
|
* @summary Issues a full general command to a client.
|
|
@@ -444,7 +450,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
444
450
|
* @param {*} [options] Override http request option.
|
|
445
451
|
* @throws {RequiredError}
|
|
446
452
|
*/
|
|
447
|
-
sendFullGeneralCommand: (sessionId, generalCommand, options = {}) =>
|
|
453
|
+
sendFullGeneralCommand: async (sessionId, generalCommand, options = {}) => {
|
|
448
454
|
// verify required parameter 'sessionId' is not null or undefined
|
|
449
455
|
assertParamExists('sendFullGeneralCommand', 'sessionId', sessionId);
|
|
450
456
|
// verify required parameter 'generalCommand' is not null or undefined
|
|
@@ -457,21 +463,21 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
457
463
|
if (configuration) {
|
|
458
464
|
baseOptions = configuration.baseOptions;
|
|
459
465
|
}
|
|
460
|
-
const localVarRequestOptions =
|
|
466
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
461
467
|
const localVarHeaderParameter = {};
|
|
462
468
|
const localVarQueryParameter = {};
|
|
463
469
|
// authentication CustomAuthentication required
|
|
464
|
-
|
|
470
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
465
471
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
466
472
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
467
473
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
468
|
-
localVarRequestOptions.headers =
|
|
474
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
469
475
|
localVarRequestOptions.data = serializeDataIfNeeded(generalCommand, localVarRequestOptions, configuration);
|
|
470
476
|
return {
|
|
471
477
|
url: toPathString(localVarUrlObj),
|
|
472
478
|
options: localVarRequestOptions,
|
|
473
479
|
};
|
|
474
|
-
}
|
|
480
|
+
},
|
|
475
481
|
/**
|
|
476
482
|
*
|
|
477
483
|
* @summary Issues a general command to a client.
|
|
@@ -480,7 +486,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
480
486
|
* @param {*} [options] Override http request option.
|
|
481
487
|
* @throws {RequiredError}
|
|
482
488
|
*/
|
|
483
|
-
sendGeneralCommand: (sessionId, command, options = {}) =>
|
|
489
|
+
sendGeneralCommand: async (sessionId, command, options = {}) => {
|
|
484
490
|
// verify required parameter 'sessionId' is not null or undefined
|
|
485
491
|
assertParamExists('sendGeneralCommand', 'sessionId', sessionId);
|
|
486
492
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -494,19 +500,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
494
500
|
if (configuration) {
|
|
495
501
|
baseOptions = configuration.baseOptions;
|
|
496
502
|
}
|
|
497
|
-
const localVarRequestOptions =
|
|
503
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
498
504
|
const localVarHeaderParameter = {};
|
|
499
505
|
const localVarQueryParameter = {};
|
|
500
506
|
// authentication CustomAuthentication required
|
|
501
|
-
|
|
507
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
502
508
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
503
509
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
504
|
-
localVarRequestOptions.headers =
|
|
510
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
505
511
|
return {
|
|
506
512
|
url: toPathString(localVarUrlObj),
|
|
507
513
|
options: localVarRequestOptions,
|
|
508
514
|
};
|
|
509
|
-
}
|
|
515
|
+
},
|
|
510
516
|
/**
|
|
511
517
|
*
|
|
512
518
|
* @summary Issues a command to a client to display a message to the user.
|
|
@@ -515,7 +521,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
515
521
|
* @param {*} [options] Override http request option.
|
|
516
522
|
* @throws {RequiredError}
|
|
517
523
|
*/
|
|
518
|
-
sendMessageCommand: (sessionId, messageCommand, options = {}) =>
|
|
524
|
+
sendMessageCommand: async (sessionId, messageCommand, options = {}) => {
|
|
519
525
|
// verify required parameter 'sessionId' is not null or undefined
|
|
520
526
|
assertParamExists('sendMessageCommand', 'sessionId', sessionId);
|
|
521
527
|
// verify required parameter 'messageCommand' is not null or undefined
|
|
@@ -528,21 +534,21 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
528
534
|
if (configuration) {
|
|
529
535
|
baseOptions = configuration.baseOptions;
|
|
530
536
|
}
|
|
531
|
-
const localVarRequestOptions =
|
|
537
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
532
538
|
const localVarHeaderParameter = {};
|
|
533
539
|
const localVarQueryParameter = {};
|
|
534
540
|
// authentication CustomAuthentication required
|
|
535
|
-
|
|
541
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
536
542
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
537
543
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
538
544
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
539
|
-
localVarRequestOptions.headers =
|
|
545
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
540
546
|
localVarRequestOptions.data = serializeDataIfNeeded(messageCommand, localVarRequestOptions, configuration);
|
|
541
547
|
return {
|
|
542
548
|
url: toPathString(localVarUrlObj),
|
|
543
549
|
options: localVarRequestOptions,
|
|
544
550
|
};
|
|
545
|
-
}
|
|
551
|
+
},
|
|
546
552
|
/**
|
|
547
553
|
*
|
|
548
554
|
* @summary Issues a playstate command to a client.
|
|
@@ -553,7 +559,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
553
559
|
* @param {*} [options] Override http request option.
|
|
554
560
|
* @throws {RequiredError}
|
|
555
561
|
*/
|
|
556
|
-
sendPlaystateCommand: (sessionId, command, seekPositionTicks, controllingUserId, options = {}) =>
|
|
562
|
+
sendPlaystateCommand: async (sessionId, command, seekPositionTicks, controllingUserId, options = {}) => {
|
|
557
563
|
// verify required parameter 'sessionId' is not null or undefined
|
|
558
564
|
assertParamExists('sendPlaystateCommand', 'sessionId', sessionId);
|
|
559
565
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -567,11 +573,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
567
573
|
if (configuration) {
|
|
568
574
|
baseOptions = configuration.baseOptions;
|
|
569
575
|
}
|
|
570
|
-
const localVarRequestOptions =
|
|
576
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
571
577
|
const localVarHeaderParameter = {};
|
|
572
578
|
const localVarQueryParameter = {};
|
|
573
579
|
// authentication CustomAuthentication required
|
|
574
|
-
|
|
580
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
575
581
|
if (seekPositionTicks !== undefined) {
|
|
576
582
|
localVarQueryParameter['seekPositionTicks'] = seekPositionTicks;
|
|
577
583
|
}
|
|
@@ -580,12 +586,12 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
580
586
|
}
|
|
581
587
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
582
588
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
583
|
-
localVarRequestOptions.headers =
|
|
589
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
584
590
|
return {
|
|
585
591
|
url: toPathString(localVarUrlObj),
|
|
586
592
|
options: localVarRequestOptions,
|
|
587
593
|
};
|
|
588
|
-
}
|
|
594
|
+
},
|
|
589
595
|
/**
|
|
590
596
|
*
|
|
591
597
|
* @summary Issues a system command to a client.
|
|
@@ -594,7 +600,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
594
600
|
* @param {*} [options] Override http request option.
|
|
595
601
|
* @throws {RequiredError}
|
|
596
602
|
*/
|
|
597
|
-
sendSystemCommand: (sessionId, command, options = {}) =>
|
|
603
|
+
sendSystemCommand: async (sessionId, command, options = {}) => {
|
|
598
604
|
// verify required parameter 'sessionId' is not null or undefined
|
|
599
605
|
assertParamExists('sendSystemCommand', 'sessionId', sessionId);
|
|
600
606
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -608,19 +614,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
608
614
|
if (configuration) {
|
|
609
615
|
baseOptions = configuration.baseOptions;
|
|
610
616
|
}
|
|
611
|
-
const localVarRequestOptions =
|
|
617
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
612
618
|
const localVarHeaderParameter = {};
|
|
613
619
|
const localVarQueryParameter = {};
|
|
614
620
|
// authentication CustomAuthentication required
|
|
615
|
-
|
|
621
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
616
622
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
617
623
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
618
|
-
localVarRequestOptions.headers =
|
|
624
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
619
625
|
return {
|
|
620
626
|
url: toPathString(localVarUrlObj),
|
|
621
627
|
options: localVarRequestOptions,
|
|
622
628
|
};
|
|
623
|
-
}
|
|
629
|
+
},
|
|
624
630
|
};
|
|
625
631
|
};
|
|
626
632
|
/**
|
|
@@ -638,11 +644,9 @@ const SessionApiFp = function (configuration) {
|
|
|
638
644
|
* @param {*} [options] Override http request option.
|
|
639
645
|
* @throws {RequiredError}
|
|
640
646
|
*/
|
|
641
|
-
addUserToSession(sessionId, userId, options) {
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
645
|
-
});
|
|
647
|
+
async addUserToSession(sessionId, userId, options) {
|
|
648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addUserToSession(sessionId, userId, options);
|
|
649
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
646
650
|
},
|
|
647
651
|
/**
|
|
648
652
|
*
|
|
@@ -654,11 +658,9 @@ const SessionApiFp = function (configuration) {
|
|
|
654
658
|
* @param {*} [options] Override http request option.
|
|
655
659
|
* @throws {RequiredError}
|
|
656
660
|
*/
|
|
657
|
-
displayContent(sessionId, itemType, itemId, itemName, options) {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
661
|
-
});
|
|
661
|
+
async displayContent(sessionId, itemType, itemId, itemName, options) {
|
|
662
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.displayContent(sessionId, itemType, itemId, itemName, options);
|
|
663
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
662
664
|
},
|
|
663
665
|
/**
|
|
664
666
|
*
|
|
@@ -666,11 +668,9 @@ const SessionApiFp = function (configuration) {
|
|
|
666
668
|
* @param {*} [options] Override http request option.
|
|
667
669
|
* @throws {RequiredError}
|
|
668
670
|
*/
|
|
669
|
-
getAuthProviders(options) {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
673
|
-
});
|
|
671
|
+
async getAuthProviders(options) {
|
|
672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthProviders(options);
|
|
673
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
674
674
|
},
|
|
675
675
|
/**
|
|
676
676
|
*
|
|
@@ -678,11 +678,9 @@ const SessionApiFp = function (configuration) {
|
|
|
678
678
|
* @param {*} [options] Override http request option.
|
|
679
679
|
* @throws {RequiredError}
|
|
680
680
|
*/
|
|
681
|
-
getPasswordResetProviders(options) {
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
685
|
-
});
|
|
681
|
+
async getPasswordResetProviders(options) {
|
|
682
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPasswordResetProviders(options);
|
|
683
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
686
684
|
},
|
|
687
685
|
/**
|
|
688
686
|
*
|
|
@@ -693,11 +691,9 @@ const SessionApiFp = function (configuration) {
|
|
|
693
691
|
* @param {*} [options] Override http request option.
|
|
694
692
|
* @throws {RequiredError}
|
|
695
693
|
*/
|
|
696
|
-
getSessions(controllableByUserId, deviceId, activeWithinSeconds, options) {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
700
|
-
});
|
|
694
|
+
async getSessions(controllableByUserId, deviceId, activeWithinSeconds, options) {
|
|
695
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSessions(controllableByUserId, deviceId, activeWithinSeconds, options);
|
|
696
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
701
697
|
},
|
|
702
698
|
/**
|
|
703
699
|
*
|
|
@@ -713,29 +709,24 @@ const SessionApiFp = function (configuration) {
|
|
|
713
709
|
* @param {*} [options] Override http request option.
|
|
714
710
|
* @throws {RequiredError}
|
|
715
711
|
*/
|
|
716
|
-
play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
720
|
-
});
|
|
712
|
+
async play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
|
|
713
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options);
|
|
714
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
721
715
|
},
|
|
722
716
|
/**
|
|
723
717
|
*
|
|
724
718
|
* @summary Updates capabilities for a device.
|
|
725
719
|
* @param {string} [id] The session id.
|
|
726
|
-
* @param {Array<
|
|
720
|
+
* @param {Array<MediaType>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
|
|
727
721
|
* @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
|
|
728
722
|
* @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
|
|
729
|
-
* @param {boolean} [supportsSync] Determines whether sync is supported.
|
|
730
723
|
* @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
|
|
731
724
|
* @param {*} [options] Override http request option.
|
|
732
725
|
* @throws {RequiredError}
|
|
733
726
|
*/
|
|
734
|
-
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
738
|
-
});
|
|
727
|
+
async postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options) {
|
|
728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options);
|
|
729
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
739
730
|
},
|
|
740
731
|
/**
|
|
741
732
|
*
|
|
@@ -745,11 +736,9 @@ const SessionApiFp = function (configuration) {
|
|
|
745
736
|
* @param {*} [options] Override http request option.
|
|
746
737
|
* @throws {RequiredError}
|
|
747
738
|
*/
|
|
748
|
-
postFullCapabilities(clientCapabilitiesDto, id, options) {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
752
|
-
});
|
|
739
|
+
async postFullCapabilities(clientCapabilitiesDto, id, options) {
|
|
740
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postFullCapabilities(clientCapabilitiesDto, id, options);
|
|
741
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
753
742
|
},
|
|
754
743
|
/**
|
|
755
744
|
*
|
|
@@ -759,11 +748,9 @@ const SessionApiFp = function (configuration) {
|
|
|
759
748
|
* @param {*} [options] Override http request option.
|
|
760
749
|
* @throws {RequiredError}
|
|
761
750
|
*/
|
|
762
|
-
removeUserFromSession(sessionId, userId, options) {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
766
|
-
});
|
|
751
|
+
async removeUserFromSession(sessionId, userId, options) {
|
|
752
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromSession(sessionId, userId, options);
|
|
753
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
767
754
|
},
|
|
768
755
|
/**
|
|
769
756
|
*
|
|
@@ -771,11 +758,9 @@ const SessionApiFp = function (configuration) {
|
|
|
771
758
|
* @param {*} [options] Override http request option.
|
|
772
759
|
* @throws {RequiredError}
|
|
773
760
|
*/
|
|
774
|
-
reportSessionEnded(options) {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
778
|
-
});
|
|
761
|
+
async reportSessionEnded(options) {
|
|
762
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportSessionEnded(options);
|
|
763
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
779
764
|
},
|
|
780
765
|
/**
|
|
781
766
|
*
|
|
@@ -785,11 +770,9 @@ const SessionApiFp = function (configuration) {
|
|
|
785
770
|
* @param {*} [options] Override http request option.
|
|
786
771
|
* @throws {RequiredError}
|
|
787
772
|
*/
|
|
788
|
-
reportViewing(itemId, sessionId, options) {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
792
|
-
});
|
|
773
|
+
async reportViewing(itemId, sessionId, options) {
|
|
774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportViewing(itemId, sessionId, options);
|
|
775
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
793
776
|
},
|
|
794
777
|
/**
|
|
795
778
|
*
|
|
@@ -799,11 +782,9 @@ const SessionApiFp = function (configuration) {
|
|
|
799
782
|
* @param {*} [options] Override http request option.
|
|
800
783
|
* @throws {RequiredError}
|
|
801
784
|
*/
|
|
802
|
-
sendFullGeneralCommand(sessionId, generalCommand, options) {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
806
|
-
});
|
|
785
|
+
async sendFullGeneralCommand(sessionId, generalCommand, options) {
|
|
786
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendFullGeneralCommand(sessionId, generalCommand, options);
|
|
787
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
807
788
|
},
|
|
808
789
|
/**
|
|
809
790
|
*
|
|
@@ -813,11 +794,9 @@ const SessionApiFp = function (configuration) {
|
|
|
813
794
|
* @param {*} [options] Override http request option.
|
|
814
795
|
* @throws {RequiredError}
|
|
815
796
|
*/
|
|
816
|
-
sendGeneralCommand(sessionId, command, options) {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
820
|
-
});
|
|
797
|
+
async sendGeneralCommand(sessionId, command, options) {
|
|
798
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendGeneralCommand(sessionId, command, options);
|
|
799
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
821
800
|
},
|
|
822
801
|
/**
|
|
823
802
|
*
|
|
@@ -827,11 +806,9 @@ const SessionApiFp = function (configuration) {
|
|
|
827
806
|
* @param {*} [options] Override http request option.
|
|
828
807
|
* @throws {RequiredError}
|
|
829
808
|
*/
|
|
830
|
-
sendMessageCommand(sessionId, messageCommand, options) {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
834
|
-
});
|
|
809
|
+
async sendMessageCommand(sessionId, messageCommand, options) {
|
|
810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendMessageCommand(sessionId, messageCommand, options);
|
|
811
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
835
812
|
},
|
|
836
813
|
/**
|
|
837
814
|
*
|
|
@@ -843,11 +820,9 @@ const SessionApiFp = function (configuration) {
|
|
|
843
820
|
* @param {*} [options] Override http request option.
|
|
844
821
|
* @throws {RequiredError}
|
|
845
822
|
*/
|
|
846
|
-
sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options) {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
850
|
-
});
|
|
823
|
+
async sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options) {
|
|
824
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options);
|
|
825
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
851
826
|
},
|
|
852
827
|
/**
|
|
853
828
|
*
|
|
@@ -857,11 +832,9 @@ const SessionApiFp = function (configuration) {
|
|
|
857
832
|
* @param {*} [options] Override http request option.
|
|
858
833
|
* @throws {RequiredError}
|
|
859
834
|
*/
|
|
860
|
-
sendSystemCommand(sessionId, command, options) {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
864
|
-
});
|
|
835
|
+
async sendSystemCommand(sessionId, command, options) {
|
|
836
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendSystemCommand(sessionId, command, options);
|
|
837
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
865
838
|
},
|
|
866
839
|
};
|
|
867
840
|
};
|
|
@@ -947,16 +920,15 @@ const SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
947
920
|
*
|
|
948
921
|
* @summary Updates capabilities for a device.
|
|
949
922
|
* @param {string} [id] The session id.
|
|
950
|
-
* @param {Array<
|
|
923
|
+
* @param {Array<MediaType>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
|
|
951
924
|
* @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
|
|
952
925
|
* @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
|
|
953
|
-
* @param {boolean} [supportsSync] Determines whether sync is supported.
|
|
954
926
|
* @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
|
|
955
927
|
* @param {*} [options] Override http request option.
|
|
956
928
|
* @throws {RequiredError}
|
|
957
929
|
*/
|
|
958
|
-
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl,
|
|
959
|
-
return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl,
|
|
930
|
+
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options) {
|
|
931
|
+
return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options).then((request) => request(axios, basePath));
|
|
960
932
|
},
|
|
961
933
|
/**
|
|
962
934
|
*
|
|
@@ -1139,7 +1111,7 @@ class SessionApi extends BaseAPI {
|
|
|
1139
1111
|
* @memberof SessionApi
|
|
1140
1112
|
*/
|
|
1141
1113
|
postCapabilities(requestParameters = {}, options) {
|
|
1142
|
-
return SessionApiFp(this.configuration).postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.
|
|
1114
|
+
return SessionApiFp(this.configuration).postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.supportsPersistentIdentifier, options).then((request) => request(this.axios, this.basePath));
|
|
1143
1115
|
}
|
|
1144
1116
|
/**
|
|
1145
1117
|
*
|