@jellyfin/sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.js +8 -11
- package/lib/generated-client/api/api-key-api.js +24 -31
- package/lib/generated-client/api/artists-api.js +24 -31
- package/lib/generated-client/api/audio-api.d.ts +12 -12
- package/lib/generated-client/api/audio-api.js +28 -37
- package/lib/generated-client/api/branding-api.js +21 -28
- package/lib/generated-client/api/channels-api.js +40 -51
- package/lib/generated-client/api/client-log-api.js +8 -11
- package/lib/generated-client/api/collection-api.js +24 -31
- package/lib/generated-client/api/configuration-api.js +40 -51
- package/lib/generated-client/api/dashboard-api.js +15 -20
- package/lib/generated-client/api/devices-api.js +40 -51
- package/lib/generated-client/api/display-preferences-api.js +16 -21
- package/lib/generated-client/api/dynamic-hls-api.d.ts +27 -27
- package/lib/generated-client/api/dynamic-hls-api.js +72 -91
- package/lib/generated-client/api/environment-api.js +48 -61
- package/lib/generated-client/api/filter-api.js +16 -21
- package/lib/generated-client/api/genres-api.js +16 -21
- package/lib/generated-client/api/hls-segment-api.js +37 -48
- package/lib/generated-client/api/image-api.js +269 -344
- package/lib/generated-client/api/instant-mix-api.js +64 -81
- package/lib/generated-client/api/item-lookup-api.js +88 -111
- package/lib/generated-client/api/item-refresh-api.js +8 -11
- package/lib/generated-client/api/item-update-api.js +24 -31
- package/lib/generated-client/api/items-api.js +32 -41
- package/lib/generated-client/api/library-api.js +200 -251
- package/lib/generated-client/api/library-structure-api.js +64 -81
- package/lib/generated-client/api/live-tv-api.js +326 -409
- package/lib/generated-client/api/localization-api.js +32 -41
- package/lib/generated-client/api/lyrics-api.js +48 -61
- package/lib/generated-client/api/media-info-api.js +40 -51
- package/lib/generated-client/api/movies-api.js +8 -11
- package/lib/generated-client/api/music-genres-api.js +16 -21
- package/lib/generated-client/api/package-api.js +48 -61
- package/lib/generated-client/api/persons-api.js +16 -21
- package/lib/generated-client/api/playlists-api.js +80 -101
- package/lib/generated-client/api/playstate-api.js +72 -91
- package/lib/generated-client/api/plugins-api.js +72 -91
- package/lib/generated-client/api/quick-connect-api.js +29 -38
- package/lib/generated-client/api/remote-image-api.js +24 -31
- package/lib/generated-client/api/scheduled-tasks-api.js +40 -51
- package/lib/generated-client/api/search-api.js +8 -11
- package/lib/generated-client/api/session-api.js +128 -161
- package/lib/generated-client/api/startup-api.js +56 -71
- package/lib/generated-client/api/studios-api.js +16 -21
- package/lib/generated-client/api/subtitle-api.js +78 -99
- package/lib/generated-client/api/suggestions-api.js +8 -11
- package/lib/generated-client/api/sync-play-api.js +168 -211
- package/lib/generated-client/api/system-api.js +77 -98
- package/lib/generated-client/api/time-sync-api.js +7 -10
- package/lib/generated-client/api/tmdb-api.js +8 -11
- package/lib/generated-client/api/trailers-api.js +8 -11
- package/lib/generated-client/api/trickplay-api.js +16 -21
- package/lib/generated-client/api/tv-shows-api.js +32 -41
- package/lib/generated-client/api/universal-audio-api.js +16 -21
- package/lib/generated-client/api/user-api.js +107 -136
- package/lib/generated-client/api/user-library-api.js +80 -101
- package/lib/generated-client/api/user-views-api.js +16 -21
- package/lib/generated-client/api/video-attachments-api.js +7 -10
- package/lib/generated-client/api/videos-api.d.ts +12 -12
- package/lib/generated-client/api/videos-api.js +52 -67
- package/lib/generated-client/api/years-api.js +16 -21
- package/lib/generated-client/common.js +8 -11
- package/lib/generated-client/models/search-hint.d.ts +1 -1
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +10 -10
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -29,7 +28,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
addUserToSession:
|
|
31
|
+
addUserToSession: async (sessionId, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'sessionId' is not null or undefined
|
|
34
33
|
assertParamExists('addUserToSession', 'sessionId', sessionId);
|
|
35
34
|
// verify required parameter 'userId' is not null or undefined
|
|
@@ -43,19 +42,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
43
42
|
if (configuration) {
|
|
44
43
|
baseOptions = configuration.baseOptions;
|
|
45
44
|
}
|
|
46
|
-
const localVarRequestOptions =
|
|
45
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
47
46
|
const localVarHeaderParameter = {};
|
|
48
47
|
const localVarQueryParameter = {};
|
|
49
48
|
// authentication CustomAuthentication required
|
|
50
|
-
|
|
49
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
51
50
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
52
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
-
localVarRequestOptions.headers =
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
54
53
|
return {
|
|
55
54
|
url: toPathString(localVarUrlObj),
|
|
56
55
|
options: localVarRequestOptions,
|
|
57
56
|
};
|
|
58
|
-
}
|
|
57
|
+
},
|
|
59
58
|
/**
|
|
60
59
|
*
|
|
61
60
|
* @summary Instructs a session to browse to an item or view.
|
|
@@ -66,7 +65,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
66
65
|
* @param {*} [options] Override http request option.
|
|
67
66
|
* @throws {RequiredError}
|
|
68
67
|
*/
|
|
69
|
-
displayContent:
|
|
68
|
+
displayContent: async (sessionId, itemType, itemId, itemName, options = {}) => {
|
|
70
69
|
// verify required parameter 'sessionId' is not null or undefined
|
|
71
70
|
assertParamExists('displayContent', 'sessionId', sessionId);
|
|
72
71
|
// verify required parameter 'itemType' is not null or undefined
|
|
@@ -83,11 +82,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
83
82
|
if (configuration) {
|
|
84
83
|
baseOptions = configuration.baseOptions;
|
|
85
84
|
}
|
|
86
|
-
const localVarRequestOptions =
|
|
85
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
87
86
|
const localVarHeaderParameter = {};
|
|
88
87
|
const localVarQueryParameter = {};
|
|
89
88
|
// authentication CustomAuthentication required
|
|
90
|
-
|
|
89
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
91
90
|
if (itemType !== undefined) {
|
|
92
91
|
localVarQueryParameter['itemType'] = itemType;
|
|
93
92
|
}
|
|
@@ -99,19 +98,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
99
98
|
}
|
|
100
99
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
101
100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
102
|
-
localVarRequestOptions.headers =
|
|
101
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
103
102
|
return {
|
|
104
103
|
url: toPathString(localVarUrlObj),
|
|
105
104
|
options: localVarRequestOptions,
|
|
106
105
|
};
|
|
107
|
-
}
|
|
106
|
+
},
|
|
108
107
|
/**
|
|
109
108
|
*
|
|
110
109
|
* @summary Get all auth providers.
|
|
111
110
|
* @param {*} [options] Override http request option.
|
|
112
111
|
* @throws {RequiredError}
|
|
113
112
|
*/
|
|
114
|
-
getAuthProviders:
|
|
113
|
+
getAuthProviders: async (options = {}) => {
|
|
115
114
|
const localVarPath = `/Auth/Providers`;
|
|
116
115
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
116
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -119,26 +118,26 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
119
118
|
if (configuration) {
|
|
120
119
|
baseOptions = configuration.baseOptions;
|
|
121
120
|
}
|
|
122
|
-
const localVarRequestOptions =
|
|
121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
123
122
|
const localVarHeaderParameter = {};
|
|
124
123
|
const localVarQueryParameter = {};
|
|
125
124
|
// authentication CustomAuthentication required
|
|
126
|
-
|
|
125
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
127
126
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
127
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
-
localVarRequestOptions.headers =
|
|
128
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
130
129
|
return {
|
|
131
130
|
url: toPathString(localVarUrlObj),
|
|
132
131
|
options: localVarRequestOptions,
|
|
133
132
|
};
|
|
134
|
-
}
|
|
133
|
+
},
|
|
135
134
|
/**
|
|
136
135
|
*
|
|
137
136
|
* @summary Get all password reset providers.
|
|
138
137
|
* @param {*} [options] Override http request option.
|
|
139
138
|
* @throws {RequiredError}
|
|
140
139
|
*/
|
|
141
|
-
getPasswordResetProviders:
|
|
140
|
+
getPasswordResetProviders: async (options = {}) => {
|
|
142
141
|
const localVarPath = `/Auth/PasswordResetProviders`;
|
|
143
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
144
143
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -146,19 +145,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
146
145
|
if (configuration) {
|
|
147
146
|
baseOptions = configuration.baseOptions;
|
|
148
147
|
}
|
|
149
|
-
const localVarRequestOptions =
|
|
148
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
150
149
|
const localVarHeaderParameter = {};
|
|
151
150
|
const localVarQueryParameter = {};
|
|
152
151
|
// authentication CustomAuthentication required
|
|
153
|
-
|
|
152
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
154
153
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
155
154
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
156
|
-
localVarRequestOptions.headers =
|
|
155
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
157
156
|
return {
|
|
158
157
|
url: toPathString(localVarUrlObj),
|
|
159
158
|
options: localVarRequestOptions,
|
|
160
159
|
};
|
|
161
|
-
}
|
|
160
|
+
},
|
|
162
161
|
/**
|
|
163
162
|
*
|
|
164
163
|
* @summary Gets a list of sessions.
|
|
@@ -168,7 +167,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
168
167
|
* @param {*} [options] Override http request option.
|
|
169
168
|
* @throws {RequiredError}
|
|
170
169
|
*/
|
|
171
|
-
getSessions:
|
|
170
|
+
getSessions: async (controllableByUserId, deviceId, activeWithinSeconds, options = {}) => {
|
|
172
171
|
const localVarPath = `/Sessions`;
|
|
173
172
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
174
173
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -176,11 +175,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
176
175
|
if (configuration) {
|
|
177
176
|
baseOptions = configuration.baseOptions;
|
|
178
177
|
}
|
|
179
|
-
const localVarRequestOptions =
|
|
178
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
180
179
|
const localVarHeaderParameter = {};
|
|
181
180
|
const localVarQueryParameter = {};
|
|
182
181
|
// authentication CustomAuthentication required
|
|
183
|
-
|
|
182
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
184
183
|
if (controllableByUserId !== undefined) {
|
|
185
184
|
localVarQueryParameter['controllableByUserId'] = controllableByUserId;
|
|
186
185
|
}
|
|
@@ -192,12 +191,12 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
192
191
|
}
|
|
193
192
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
194
193
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
-
localVarRequestOptions.headers =
|
|
194
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
196
195
|
return {
|
|
197
196
|
url: toPathString(localVarUrlObj),
|
|
198
197
|
options: localVarRequestOptions,
|
|
199
198
|
};
|
|
200
|
-
}
|
|
199
|
+
},
|
|
201
200
|
/**
|
|
202
201
|
*
|
|
203
202
|
* @summary Instructs a session to play an item.
|
|
@@ -212,7 +211,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
212
211
|
* @param {*} [options] Override http request option.
|
|
213
212
|
* @throws {RequiredError}
|
|
214
213
|
*/
|
|
215
|
-
play:
|
|
214
|
+
play: async (sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options = {}) => {
|
|
216
215
|
// verify required parameter 'sessionId' is not null or undefined
|
|
217
216
|
assertParamExists('play', 'sessionId', sessionId);
|
|
218
217
|
// verify required parameter 'playCommand' is not null or undefined
|
|
@@ -227,11 +226,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
227
226
|
if (configuration) {
|
|
228
227
|
baseOptions = configuration.baseOptions;
|
|
229
228
|
}
|
|
230
|
-
const localVarRequestOptions =
|
|
229
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
231
230
|
const localVarHeaderParameter = {};
|
|
232
231
|
const localVarQueryParameter = {};
|
|
233
232
|
// authentication CustomAuthentication required
|
|
234
|
-
|
|
233
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
235
234
|
if (playCommand !== undefined) {
|
|
236
235
|
localVarQueryParameter['playCommand'] = playCommand;
|
|
237
236
|
}
|
|
@@ -255,12 +254,12 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
255
254
|
}
|
|
256
255
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
257
256
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
|
-
localVarRequestOptions.headers =
|
|
257
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
259
258
|
return {
|
|
260
259
|
url: toPathString(localVarUrlObj),
|
|
261
260
|
options: localVarRequestOptions,
|
|
262
261
|
};
|
|
263
|
-
}
|
|
262
|
+
},
|
|
264
263
|
/**
|
|
265
264
|
*
|
|
266
265
|
* @summary Updates capabilities for a device.
|
|
@@ -272,7 +271,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
272
271
|
* @param {*} [options] Override http request option.
|
|
273
272
|
* @throws {RequiredError}
|
|
274
273
|
*/
|
|
275
|
-
postCapabilities:
|
|
274
|
+
postCapabilities: async (id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options = {}) => {
|
|
276
275
|
const localVarPath = `/Sessions/Capabilities`;
|
|
277
276
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
278
277
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -280,11 +279,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
280
279
|
if (configuration) {
|
|
281
280
|
baseOptions = configuration.baseOptions;
|
|
282
281
|
}
|
|
283
|
-
const localVarRequestOptions =
|
|
282
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
284
283
|
const localVarHeaderParameter = {};
|
|
285
284
|
const localVarQueryParameter = {};
|
|
286
285
|
// authentication CustomAuthentication required
|
|
287
|
-
|
|
286
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
288
287
|
if (id !== undefined) {
|
|
289
288
|
localVarQueryParameter['id'] = id;
|
|
290
289
|
}
|
|
@@ -302,12 +301,12 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
302
301
|
}
|
|
303
302
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
304
303
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
|
-
localVarRequestOptions.headers =
|
|
304
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
306
305
|
return {
|
|
307
306
|
url: toPathString(localVarUrlObj),
|
|
308
307
|
options: localVarRequestOptions,
|
|
309
308
|
};
|
|
310
|
-
}
|
|
309
|
+
},
|
|
311
310
|
/**
|
|
312
311
|
*
|
|
313
312
|
* @summary Updates capabilities for a device.
|
|
@@ -316,7 +315,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
316
315
|
* @param {*} [options] Override http request option.
|
|
317
316
|
* @throws {RequiredError}
|
|
318
317
|
*/
|
|
319
|
-
postFullCapabilities:
|
|
318
|
+
postFullCapabilities: async (clientCapabilitiesDto, id, options = {}) => {
|
|
320
319
|
// verify required parameter 'clientCapabilitiesDto' is not null or undefined
|
|
321
320
|
assertParamExists('postFullCapabilities', 'clientCapabilitiesDto', clientCapabilitiesDto);
|
|
322
321
|
const localVarPath = `/Sessions/Capabilities/Full`;
|
|
@@ -326,24 +325,24 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
326
325
|
if (configuration) {
|
|
327
326
|
baseOptions = configuration.baseOptions;
|
|
328
327
|
}
|
|
329
|
-
const localVarRequestOptions =
|
|
328
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
330
329
|
const localVarHeaderParameter = {};
|
|
331
330
|
const localVarQueryParameter = {};
|
|
332
331
|
// authentication CustomAuthentication required
|
|
333
|
-
|
|
332
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
334
333
|
if (id !== undefined) {
|
|
335
334
|
localVarQueryParameter['id'] = id;
|
|
336
335
|
}
|
|
337
336
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
338
337
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
339
338
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
340
|
-
localVarRequestOptions.headers =
|
|
339
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
341
340
|
localVarRequestOptions.data = serializeDataIfNeeded(clientCapabilitiesDto, localVarRequestOptions, configuration);
|
|
342
341
|
return {
|
|
343
342
|
url: toPathString(localVarUrlObj),
|
|
344
343
|
options: localVarRequestOptions,
|
|
345
344
|
};
|
|
346
|
-
}
|
|
345
|
+
},
|
|
347
346
|
/**
|
|
348
347
|
*
|
|
349
348
|
* @summary Removes an additional user from a session.
|
|
@@ -352,7 +351,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
352
351
|
* @param {*} [options] Override http request option.
|
|
353
352
|
* @throws {RequiredError}
|
|
354
353
|
*/
|
|
355
|
-
removeUserFromSession:
|
|
354
|
+
removeUserFromSession: async (sessionId, userId, options = {}) => {
|
|
356
355
|
// verify required parameter 'sessionId' is not null or undefined
|
|
357
356
|
assertParamExists('removeUserFromSession', 'sessionId', sessionId);
|
|
358
357
|
// verify required parameter 'userId' is not null or undefined
|
|
@@ -366,26 +365,26 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
366
365
|
if (configuration) {
|
|
367
366
|
baseOptions = configuration.baseOptions;
|
|
368
367
|
}
|
|
369
|
-
const localVarRequestOptions =
|
|
368
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
370
369
|
const localVarHeaderParameter = {};
|
|
371
370
|
const localVarQueryParameter = {};
|
|
372
371
|
// authentication CustomAuthentication required
|
|
373
|
-
|
|
372
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
374
373
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
375
374
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
376
|
-
localVarRequestOptions.headers =
|
|
375
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
377
376
|
return {
|
|
378
377
|
url: toPathString(localVarUrlObj),
|
|
379
378
|
options: localVarRequestOptions,
|
|
380
379
|
};
|
|
381
|
-
}
|
|
380
|
+
},
|
|
382
381
|
/**
|
|
383
382
|
*
|
|
384
383
|
* @summary Reports that a session has ended.
|
|
385
384
|
* @param {*} [options] Override http request option.
|
|
386
385
|
* @throws {RequiredError}
|
|
387
386
|
*/
|
|
388
|
-
reportSessionEnded:
|
|
387
|
+
reportSessionEnded: async (options = {}) => {
|
|
389
388
|
const localVarPath = `/Sessions/Logout`;
|
|
390
389
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
391
390
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -393,19 +392,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
393
392
|
if (configuration) {
|
|
394
393
|
baseOptions = configuration.baseOptions;
|
|
395
394
|
}
|
|
396
|
-
const localVarRequestOptions =
|
|
395
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
397
396
|
const localVarHeaderParameter = {};
|
|
398
397
|
const localVarQueryParameter = {};
|
|
399
398
|
// authentication CustomAuthentication required
|
|
400
|
-
|
|
399
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
401
400
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
402
401
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
403
|
-
localVarRequestOptions.headers =
|
|
402
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
404
403
|
return {
|
|
405
404
|
url: toPathString(localVarUrlObj),
|
|
406
405
|
options: localVarRequestOptions,
|
|
407
406
|
};
|
|
408
|
-
}
|
|
407
|
+
},
|
|
409
408
|
/**
|
|
410
409
|
*
|
|
411
410
|
* @summary Reports that a session is viewing an item.
|
|
@@ -414,7 +413,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
414
413
|
* @param {*} [options] Override http request option.
|
|
415
414
|
* @throws {RequiredError}
|
|
416
415
|
*/
|
|
417
|
-
reportViewing:
|
|
416
|
+
reportViewing: async (itemId, sessionId, options = {}) => {
|
|
418
417
|
// verify required parameter 'itemId' is not null or undefined
|
|
419
418
|
assertParamExists('reportViewing', 'itemId', itemId);
|
|
420
419
|
const localVarPath = `/Sessions/Viewing`;
|
|
@@ -424,11 +423,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
424
423
|
if (configuration) {
|
|
425
424
|
baseOptions = configuration.baseOptions;
|
|
426
425
|
}
|
|
427
|
-
const localVarRequestOptions =
|
|
426
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
428
427
|
const localVarHeaderParameter = {};
|
|
429
428
|
const localVarQueryParameter = {};
|
|
430
429
|
// authentication CustomAuthentication required
|
|
431
|
-
|
|
430
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
432
431
|
if (sessionId !== undefined) {
|
|
433
432
|
localVarQueryParameter['sessionId'] = sessionId;
|
|
434
433
|
}
|
|
@@ -437,12 +436,12 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
437
436
|
}
|
|
438
437
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
439
438
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
440
|
-
localVarRequestOptions.headers =
|
|
439
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
441
440
|
return {
|
|
442
441
|
url: toPathString(localVarUrlObj),
|
|
443
442
|
options: localVarRequestOptions,
|
|
444
443
|
};
|
|
445
|
-
}
|
|
444
|
+
},
|
|
446
445
|
/**
|
|
447
446
|
*
|
|
448
447
|
* @summary Issues a full general command to a client.
|
|
@@ -451,7 +450,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
451
450
|
* @param {*} [options] Override http request option.
|
|
452
451
|
* @throws {RequiredError}
|
|
453
452
|
*/
|
|
454
|
-
sendFullGeneralCommand:
|
|
453
|
+
sendFullGeneralCommand: async (sessionId, generalCommand, options = {}) => {
|
|
455
454
|
// verify required parameter 'sessionId' is not null or undefined
|
|
456
455
|
assertParamExists('sendFullGeneralCommand', 'sessionId', sessionId);
|
|
457
456
|
// verify required parameter 'generalCommand' is not null or undefined
|
|
@@ -464,21 +463,21 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
464
463
|
if (configuration) {
|
|
465
464
|
baseOptions = configuration.baseOptions;
|
|
466
465
|
}
|
|
467
|
-
const localVarRequestOptions =
|
|
466
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
468
467
|
const localVarHeaderParameter = {};
|
|
469
468
|
const localVarQueryParameter = {};
|
|
470
469
|
// authentication CustomAuthentication required
|
|
471
|
-
|
|
470
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
472
471
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
473
472
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
474
473
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
475
|
-
localVarRequestOptions.headers =
|
|
474
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
476
475
|
localVarRequestOptions.data = serializeDataIfNeeded(generalCommand, localVarRequestOptions, configuration);
|
|
477
476
|
return {
|
|
478
477
|
url: toPathString(localVarUrlObj),
|
|
479
478
|
options: localVarRequestOptions,
|
|
480
479
|
};
|
|
481
|
-
}
|
|
480
|
+
},
|
|
482
481
|
/**
|
|
483
482
|
*
|
|
484
483
|
* @summary Issues a general command to a client.
|
|
@@ -487,7 +486,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
487
486
|
* @param {*} [options] Override http request option.
|
|
488
487
|
* @throws {RequiredError}
|
|
489
488
|
*/
|
|
490
|
-
sendGeneralCommand:
|
|
489
|
+
sendGeneralCommand: async (sessionId, command, options = {}) => {
|
|
491
490
|
// verify required parameter 'sessionId' is not null or undefined
|
|
492
491
|
assertParamExists('sendGeneralCommand', 'sessionId', sessionId);
|
|
493
492
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -501,19 +500,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
501
500
|
if (configuration) {
|
|
502
501
|
baseOptions = configuration.baseOptions;
|
|
503
502
|
}
|
|
504
|
-
const localVarRequestOptions =
|
|
503
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
505
504
|
const localVarHeaderParameter = {};
|
|
506
505
|
const localVarQueryParameter = {};
|
|
507
506
|
// authentication CustomAuthentication required
|
|
508
|
-
|
|
507
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
509
508
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
510
509
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
511
|
-
localVarRequestOptions.headers =
|
|
510
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
512
511
|
return {
|
|
513
512
|
url: toPathString(localVarUrlObj),
|
|
514
513
|
options: localVarRequestOptions,
|
|
515
514
|
};
|
|
516
|
-
}
|
|
515
|
+
},
|
|
517
516
|
/**
|
|
518
517
|
*
|
|
519
518
|
* @summary Issues a command to a client to display a message to the user.
|
|
@@ -522,7 +521,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
522
521
|
* @param {*} [options] Override http request option.
|
|
523
522
|
* @throws {RequiredError}
|
|
524
523
|
*/
|
|
525
|
-
sendMessageCommand:
|
|
524
|
+
sendMessageCommand: async (sessionId, messageCommand, options = {}) => {
|
|
526
525
|
// verify required parameter 'sessionId' is not null or undefined
|
|
527
526
|
assertParamExists('sendMessageCommand', 'sessionId', sessionId);
|
|
528
527
|
// verify required parameter 'messageCommand' is not null or undefined
|
|
@@ -535,21 +534,21 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
535
534
|
if (configuration) {
|
|
536
535
|
baseOptions = configuration.baseOptions;
|
|
537
536
|
}
|
|
538
|
-
const localVarRequestOptions =
|
|
537
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
539
538
|
const localVarHeaderParameter = {};
|
|
540
539
|
const localVarQueryParameter = {};
|
|
541
540
|
// authentication CustomAuthentication required
|
|
542
|
-
|
|
541
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
543
542
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
544
543
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
545
544
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
546
|
-
localVarRequestOptions.headers =
|
|
545
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
547
546
|
localVarRequestOptions.data = serializeDataIfNeeded(messageCommand, localVarRequestOptions, configuration);
|
|
548
547
|
return {
|
|
549
548
|
url: toPathString(localVarUrlObj),
|
|
550
549
|
options: localVarRequestOptions,
|
|
551
550
|
};
|
|
552
|
-
}
|
|
551
|
+
},
|
|
553
552
|
/**
|
|
554
553
|
*
|
|
555
554
|
* @summary Issues a playstate command to a client.
|
|
@@ -560,7 +559,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
560
559
|
* @param {*} [options] Override http request option.
|
|
561
560
|
* @throws {RequiredError}
|
|
562
561
|
*/
|
|
563
|
-
sendPlaystateCommand:
|
|
562
|
+
sendPlaystateCommand: async (sessionId, command, seekPositionTicks, controllingUserId, options = {}) => {
|
|
564
563
|
// verify required parameter 'sessionId' is not null or undefined
|
|
565
564
|
assertParamExists('sendPlaystateCommand', 'sessionId', sessionId);
|
|
566
565
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -574,11 +573,11 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
574
573
|
if (configuration) {
|
|
575
574
|
baseOptions = configuration.baseOptions;
|
|
576
575
|
}
|
|
577
|
-
const localVarRequestOptions =
|
|
576
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
578
577
|
const localVarHeaderParameter = {};
|
|
579
578
|
const localVarQueryParameter = {};
|
|
580
579
|
// authentication CustomAuthentication required
|
|
581
|
-
|
|
580
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
582
581
|
if (seekPositionTicks !== undefined) {
|
|
583
582
|
localVarQueryParameter['seekPositionTicks'] = seekPositionTicks;
|
|
584
583
|
}
|
|
@@ -587,12 +586,12 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
587
586
|
}
|
|
588
587
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
589
588
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
590
|
-
localVarRequestOptions.headers =
|
|
589
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
591
590
|
return {
|
|
592
591
|
url: toPathString(localVarUrlObj),
|
|
593
592
|
options: localVarRequestOptions,
|
|
594
593
|
};
|
|
595
|
-
}
|
|
594
|
+
},
|
|
596
595
|
/**
|
|
597
596
|
*
|
|
598
597
|
* @summary Issues a system command to a client.
|
|
@@ -601,7 +600,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
601
600
|
* @param {*} [options] Override http request option.
|
|
602
601
|
* @throws {RequiredError}
|
|
603
602
|
*/
|
|
604
|
-
sendSystemCommand:
|
|
603
|
+
sendSystemCommand: async (sessionId, command, options = {}) => {
|
|
605
604
|
// verify required parameter 'sessionId' is not null or undefined
|
|
606
605
|
assertParamExists('sendSystemCommand', 'sessionId', sessionId);
|
|
607
606
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -615,19 +614,19 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
615
614
|
if (configuration) {
|
|
616
615
|
baseOptions = configuration.baseOptions;
|
|
617
616
|
}
|
|
618
|
-
const localVarRequestOptions =
|
|
617
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
619
618
|
const localVarHeaderParameter = {};
|
|
620
619
|
const localVarQueryParameter = {};
|
|
621
620
|
// authentication CustomAuthentication required
|
|
622
|
-
|
|
621
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
623
622
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
624
623
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
625
|
-
localVarRequestOptions.headers =
|
|
624
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
626
625
|
return {
|
|
627
626
|
url: toPathString(localVarUrlObj),
|
|
628
627
|
options: localVarRequestOptions,
|
|
629
628
|
};
|
|
630
|
-
}
|
|
629
|
+
},
|
|
631
630
|
};
|
|
632
631
|
};
|
|
633
632
|
/**
|
|
@@ -645,11 +644,9 @@ const SessionApiFp = function (configuration) {
|
|
|
645
644
|
* @param {*} [options] Override http request option.
|
|
646
645
|
* @throws {RequiredError}
|
|
647
646
|
*/
|
|
648
|
-
addUserToSession(sessionId, userId, options) {
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
652
|
-
});
|
|
647
|
+
async addUserToSession(sessionId, userId, options) {
|
|
648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addUserToSession(sessionId, userId, options);
|
|
649
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
653
650
|
},
|
|
654
651
|
/**
|
|
655
652
|
*
|
|
@@ -661,11 +658,9 @@ const SessionApiFp = function (configuration) {
|
|
|
661
658
|
* @param {*} [options] Override http request option.
|
|
662
659
|
* @throws {RequiredError}
|
|
663
660
|
*/
|
|
664
|
-
displayContent(sessionId, itemType, itemId, itemName, options) {
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
668
|
-
});
|
|
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);
|
|
669
664
|
},
|
|
670
665
|
/**
|
|
671
666
|
*
|
|
@@ -673,11 +668,9 @@ const SessionApiFp = function (configuration) {
|
|
|
673
668
|
* @param {*} [options] Override http request option.
|
|
674
669
|
* @throws {RequiredError}
|
|
675
670
|
*/
|
|
676
|
-
getAuthProviders(options) {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
680
|
-
});
|
|
671
|
+
async getAuthProviders(options) {
|
|
672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthProviders(options);
|
|
673
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
681
674
|
},
|
|
682
675
|
/**
|
|
683
676
|
*
|
|
@@ -685,11 +678,9 @@ const SessionApiFp = function (configuration) {
|
|
|
685
678
|
* @param {*} [options] Override http request option.
|
|
686
679
|
* @throws {RequiredError}
|
|
687
680
|
*/
|
|
688
|
-
getPasswordResetProviders(options) {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
692
|
-
});
|
|
681
|
+
async getPasswordResetProviders(options) {
|
|
682
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPasswordResetProviders(options);
|
|
683
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
693
684
|
},
|
|
694
685
|
/**
|
|
695
686
|
*
|
|
@@ -700,11 +691,9 @@ const SessionApiFp = function (configuration) {
|
|
|
700
691
|
* @param {*} [options] Override http request option.
|
|
701
692
|
* @throws {RequiredError}
|
|
702
693
|
*/
|
|
703
|
-
getSessions(controllableByUserId, deviceId, activeWithinSeconds, options) {
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
707
|
-
});
|
|
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);
|
|
708
697
|
},
|
|
709
698
|
/**
|
|
710
699
|
*
|
|
@@ -720,11 +709,9 @@ const SessionApiFp = function (configuration) {
|
|
|
720
709
|
* @param {*} [options] Override http request option.
|
|
721
710
|
* @throws {RequiredError}
|
|
722
711
|
*/
|
|
723
|
-
play(sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options) {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
727
|
-
});
|
|
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);
|
|
728
715
|
},
|
|
729
716
|
/**
|
|
730
717
|
*
|
|
@@ -737,11 +724,9 @@ const SessionApiFp = function (configuration) {
|
|
|
737
724
|
* @param {*} [options] Override http request option.
|
|
738
725
|
* @throws {RequiredError}
|
|
739
726
|
*/
|
|
740
|
-
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options) {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
744
|
-
});
|
|
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);
|
|
745
730
|
},
|
|
746
731
|
/**
|
|
747
732
|
*
|
|
@@ -751,11 +736,9 @@ const SessionApiFp = function (configuration) {
|
|
|
751
736
|
* @param {*} [options] Override http request option.
|
|
752
737
|
* @throws {RequiredError}
|
|
753
738
|
*/
|
|
754
|
-
postFullCapabilities(clientCapabilitiesDto, id, options) {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
758
|
-
});
|
|
739
|
+
async postFullCapabilities(clientCapabilitiesDto, id, options) {
|
|
740
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postFullCapabilities(clientCapabilitiesDto, id, options);
|
|
741
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
759
742
|
},
|
|
760
743
|
/**
|
|
761
744
|
*
|
|
@@ -765,11 +748,9 @@ const SessionApiFp = function (configuration) {
|
|
|
765
748
|
* @param {*} [options] Override http request option.
|
|
766
749
|
* @throws {RequiredError}
|
|
767
750
|
*/
|
|
768
|
-
removeUserFromSession(sessionId, userId, options) {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
772
|
-
});
|
|
751
|
+
async removeUserFromSession(sessionId, userId, options) {
|
|
752
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromSession(sessionId, userId, options);
|
|
753
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
773
754
|
},
|
|
774
755
|
/**
|
|
775
756
|
*
|
|
@@ -777,11 +758,9 @@ const SessionApiFp = function (configuration) {
|
|
|
777
758
|
* @param {*} [options] Override http request option.
|
|
778
759
|
* @throws {RequiredError}
|
|
779
760
|
*/
|
|
780
|
-
reportSessionEnded(options) {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
784
|
-
});
|
|
761
|
+
async reportSessionEnded(options) {
|
|
762
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportSessionEnded(options);
|
|
763
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
785
764
|
},
|
|
786
765
|
/**
|
|
787
766
|
*
|
|
@@ -791,11 +770,9 @@ const SessionApiFp = function (configuration) {
|
|
|
791
770
|
* @param {*} [options] Override http request option.
|
|
792
771
|
* @throws {RequiredError}
|
|
793
772
|
*/
|
|
794
|
-
reportViewing(itemId, sessionId, options) {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
798
|
-
});
|
|
773
|
+
async reportViewing(itemId, sessionId, options) {
|
|
774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportViewing(itemId, sessionId, options);
|
|
775
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
799
776
|
},
|
|
800
777
|
/**
|
|
801
778
|
*
|
|
@@ -805,11 +782,9 @@ const SessionApiFp = function (configuration) {
|
|
|
805
782
|
* @param {*} [options] Override http request option.
|
|
806
783
|
* @throws {RequiredError}
|
|
807
784
|
*/
|
|
808
|
-
sendFullGeneralCommand(sessionId, generalCommand, options) {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
812
|
-
});
|
|
785
|
+
async sendFullGeneralCommand(sessionId, generalCommand, options) {
|
|
786
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendFullGeneralCommand(sessionId, generalCommand, options);
|
|
787
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
813
788
|
},
|
|
814
789
|
/**
|
|
815
790
|
*
|
|
@@ -819,11 +794,9 @@ const SessionApiFp = function (configuration) {
|
|
|
819
794
|
* @param {*} [options] Override http request option.
|
|
820
795
|
* @throws {RequiredError}
|
|
821
796
|
*/
|
|
822
|
-
sendGeneralCommand(sessionId, command, options) {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
826
|
-
});
|
|
797
|
+
async sendGeneralCommand(sessionId, command, options) {
|
|
798
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendGeneralCommand(sessionId, command, options);
|
|
799
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
827
800
|
},
|
|
828
801
|
/**
|
|
829
802
|
*
|
|
@@ -833,11 +806,9 @@ const SessionApiFp = function (configuration) {
|
|
|
833
806
|
* @param {*} [options] Override http request option.
|
|
834
807
|
* @throws {RequiredError}
|
|
835
808
|
*/
|
|
836
|
-
sendMessageCommand(sessionId, messageCommand, options) {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
840
|
-
});
|
|
809
|
+
async sendMessageCommand(sessionId, messageCommand, options) {
|
|
810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendMessageCommand(sessionId, messageCommand, options);
|
|
811
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
841
812
|
},
|
|
842
813
|
/**
|
|
843
814
|
*
|
|
@@ -849,11 +820,9 @@ const SessionApiFp = function (configuration) {
|
|
|
849
820
|
* @param {*} [options] Override http request option.
|
|
850
821
|
* @throws {RequiredError}
|
|
851
822
|
*/
|
|
852
|
-
sendPlaystateCommand(sessionId, command, seekPositionTicks, controllingUserId, options) {
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
856
|
-
});
|
|
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);
|
|
857
826
|
},
|
|
858
827
|
/**
|
|
859
828
|
*
|
|
@@ -863,11 +832,9 @@ const SessionApiFp = function (configuration) {
|
|
|
863
832
|
* @param {*} [options] Override http request option.
|
|
864
833
|
* @throws {RequiredError}
|
|
865
834
|
*/
|
|
866
|
-
sendSystemCommand(sessionId, command, options) {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
870
|
-
});
|
|
835
|
+
async sendSystemCommand(sessionId, command, options) {
|
|
836
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendSystemCommand(sessionId, command, options);
|
|
837
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
871
838
|
},
|
|
872
839
|
};
|
|
873
840
|
};
|