@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, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -29,7 +28,7 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
disablePlugin:
|
|
31
|
+
disablePlugin: async (pluginId, version, options = {}) => {
|
|
33
32
|
// verify required parameter 'pluginId' is not null or undefined
|
|
34
33
|
assertParamExists('disablePlugin', 'pluginId', pluginId);
|
|
35
34
|
// verify required parameter 'version' is not null or undefined
|
|
@@ -43,19 +42,19 @@ const PluginsApiAxiosParamCreator = 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 Enables a disabled plugin.
|
|
@@ -64,7 +63,7 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
64
63
|
* @param {*} [options] Override http request option.
|
|
65
64
|
* @throws {RequiredError}
|
|
66
65
|
*/
|
|
67
|
-
enablePlugin:
|
|
66
|
+
enablePlugin: async (pluginId, version, options = {}) => {
|
|
68
67
|
// verify required parameter 'pluginId' is not null or undefined
|
|
69
68
|
assertParamExists('enablePlugin', 'pluginId', pluginId);
|
|
70
69
|
// verify required parameter 'version' is not null or undefined
|
|
@@ -78,19 +77,19 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
78
77
|
if (configuration) {
|
|
79
78
|
baseOptions = configuration.baseOptions;
|
|
80
79
|
}
|
|
81
|
-
const localVarRequestOptions =
|
|
80
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
82
81
|
const localVarHeaderParameter = {};
|
|
83
82
|
const localVarQueryParameter = {};
|
|
84
83
|
// authentication CustomAuthentication required
|
|
85
|
-
|
|
84
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
86
85
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
87
86
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
|
-
localVarRequestOptions.headers =
|
|
87
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
89
88
|
return {
|
|
90
89
|
url: toPathString(localVarUrlObj),
|
|
91
90
|
options: localVarRequestOptions,
|
|
92
91
|
};
|
|
93
|
-
}
|
|
92
|
+
},
|
|
94
93
|
/**
|
|
95
94
|
*
|
|
96
95
|
* @summary Gets plugin configuration.
|
|
@@ -98,7 +97,7 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
98
97
|
* @param {*} [options] Override http request option.
|
|
99
98
|
* @throws {RequiredError}
|
|
100
99
|
*/
|
|
101
|
-
getPluginConfiguration:
|
|
100
|
+
getPluginConfiguration: async (pluginId, options = {}) => {
|
|
102
101
|
// verify required parameter 'pluginId' is not null or undefined
|
|
103
102
|
assertParamExists('getPluginConfiguration', 'pluginId', pluginId);
|
|
104
103
|
const localVarPath = `/Plugins/{pluginId}/Configuration`
|
|
@@ -109,19 +108,19 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
109
108
|
if (configuration) {
|
|
110
109
|
baseOptions = configuration.baseOptions;
|
|
111
110
|
}
|
|
112
|
-
const localVarRequestOptions =
|
|
111
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
113
112
|
const localVarHeaderParameter = {};
|
|
114
113
|
const localVarQueryParameter = {};
|
|
115
114
|
// authentication CustomAuthentication required
|
|
116
|
-
|
|
115
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
117
116
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
117
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
-
localVarRequestOptions.headers =
|
|
118
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
120
119
|
return {
|
|
121
120
|
url: toPathString(localVarUrlObj),
|
|
122
121
|
options: localVarRequestOptions,
|
|
123
122
|
};
|
|
124
|
-
}
|
|
123
|
+
},
|
|
125
124
|
/**
|
|
126
125
|
*
|
|
127
126
|
* @summary Gets a plugin\'s image.
|
|
@@ -130,7 +129,7 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
130
129
|
* @param {*} [options] Override http request option.
|
|
131
130
|
* @throws {RequiredError}
|
|
132
131
|
*/
|
|
133
|
-
getPluginImage:
|
|
132
|
+
getPluginImage: async (pluginId, version, options = {}) => {
|
|
134
133
|
// verify required parameter 'pluginId' is not null or undefined
|
|
135
134
|
assertParamExists('getPluginImage', 'pluginId', pluginId);
|
|
136
135
|
// verify required parameter 'version' is not null or undefined
|
|
@@ -144,19 +143,19 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
144
143
|
if (configuration) {
|
|
145
144
|
baseOptions = configuration.baseOptions;
|
|
146
145
|
}
|
|
147
|
-
const localVarRequestOptions =
|
|
146
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
148
147
|
const localVarHeaderParameter = {};
|
|
149
148
|
const localVarQueryParameter = {};
|
|
150
149
|
// authentication CustomAuthentication required
|
|
151
|
-
|
|
150
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
152
151
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
152
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
-
localVarRequestOptions.headers =
|
|
153
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
155
154
|
return {
|
|
156
155
|
url: toPathString(localVarUrlObj),
|
|
157
156
|
options: localVarRequestOptions,
|
|
158
157
|
};
|
|
159
|
-
}
|
|
158
|
+
},
|
|
160
159
|
/**
|
|
161
160
|
*
|
|
162
161
|
* @summary Gets a plugin\'s manifest.
|
|
@@ -164,7 +163,7 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
164
163
|
* @param {*} [options] Override http request option.
|
|
165
164
|
* @throws {RequiredError}
|
|
166
165
|
*/
|
|
167
|
-
getPluginManifest:
|
|
166
|
+
getPluginManifest: async (pluginId, options = {}) => {
|
|
168
167
|
// verify required parameter 'pluginId' is not null or undefined
|
|
169
168
|
assertParamExists('getPluginManifest', 'pluginId', pluginId);
|
|
170
169
|
const localVarPath = `/Plugins/{pluginId}/Manifest`
|
|
@@ -175,26 +174,26 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
175
174
|
if (configuration) {
|
|
176
175
|
baseOptions = configuration.baseOptions;
|
|
177
176
|
}
|
|
178
|
-
const localVarRequestOptions =
|
|
177
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
179
178
|
const localVarHeaderParameter = {};
|
|
180
179
|
const localVarQueryParameter = {};
|
|
181
180
|
// authentication CustomAuthentication required
|
|
182
|
-
|
|
181
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
183
182
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
184
183
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
-
localVarRequestOptions.headers =
|
|
184
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
186
185
|
return {
|
|
187
186
|
url: toPathString(localVarUrlObj),
|
|
188
187
|
options: localVarRequestOptions,
|
|
189
188
|
};
|
|
190
|
-
}
|
|
189
|
+
},
|
|
191
190
|
/**
|
|
192
191
|
*
|
|
193
192
|
* @summary Gets a list of currently installed plugins.
|
|
194
193
|
* @param {*} [options] Override http request option.
|
|
195
194
|
* @throws {RequiredError}
|
|
196
195
|
*/
|
|
197
|
-
getPlugins:
|
|
196
|
+
getPlugins: async (options = {}) => {
|
|
198
197
|
const localVarPath = `/Plugins`;
|
|
199
198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
199
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -202,19 +201,19 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
202
201
|
if (configuration) {
|
|
203
202
|
baseOptions = configuration.baseOptions;
|
|
204
203
|
}
|
|
205
|
-
const localVarRequestOptions =
|
|
204
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
206
205
|
const localVarHeaderParameter = {};
|
|
207
206
|
const localVarQueryParameter = {};
|
|
208
207
|
// authentication CustomAuthentication required
|
|
209
|
-
|
|
208
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
210
209
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
211
210
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
-
localVarRequestOptions.headers =
|
|
211
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
213
212
|
return {
|
|
214
213
|
url: toPathString(localVarUrlObj),
|
|
215
214
|
options: localVarRequestOptions,
|
|
216
215
|
};
|
|
217
|
-
}
|
|
216
|
+
},
|
|
218
217
|
/**
|
|
219
218
|
*
|
|
220
219
|
* @summary Uninstalls a plugin.
|
|
@@ -223,7 +222,7 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
223
222
|
* @deprecated
|
|
224
223
|
* @throws {RequiredError}
|
|
225
224
|
*/
|
|
226
|
-
uninstallPlugin:
|
|
225
|
+
uninstallPlugin: async (pluginId, options = {}) => {
|
|
227
226
|
// verify required parameter 'pluginId' is not null or undefined
|
|
228
227
|
assertParamExists('uninstallPlugin', 'pluginId', pluginId);
|
|
229
228
|
const localVarPath = `/Plugins/{pluginId}`
|
|
@@ -234,19 +233,19 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
234
233
|
if (configuration) {
|
|
235
234
|
baseOptions = configuration.baseOptions;
|
|
236
235
|
}
|
|
237
|
-
const localVarRequestOptions =
|
|
236
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
238
237
|
const localVarHeaderParameter = {};
|
|
239
238
|
const localVarQueryParameter = {};
|
|
240
239
|
// authentication CustomAuthentication required
|
|
241
|
-
|
|
240
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
242
241
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
243
242
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
|
-
localVarRequestOptions.headers =
|
|
243
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
245
244
|
return {
|
|
246
245
|
url: toPathString(localVarUrlObj),
|
|
247
246
|
options: localVarRequestOptions,
|
|
248
247
|
};
|
|
249
|
-
}
|
|
248
|
+
},
|
|
250
249
|
/**
|
|
251
250
|
*
|
|
252
251
|
* @summary Uninstalls a plugin by version.
|
|
@@ -255,7 +254,7 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
255
254
|
* @param {*} [options] Override http request option.
|
|
256
255
|
* @throws {RequiredError}
|
|
257
256
|
*/
|
|
258
|
-
uninstallPluginByVersion:
|
|
257
|
+
uninstallPluginByVersion: async (pluginId, version, options = {}) => {
|
|
259
258
|
// verify required parameter 'pluginId' is not null or undefined
|
|
260
259
|
assertParamExists('uninstallPluginByVersion', 'pluginId', pluginId);
|
|
261
260
|
// verify required parameter 'version' is not null or undefined
|
|
@@ -269,19 +268,19 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
269
268
|
if (configuration) {
|
|
270
269
|
baseOptions = configuration.baseOptions;
|
|
271
270
|
}
|
|
272
|
-
const localVarRequestOptions =
|
|
271
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
273
272
|
const localVarHeaderParameter = {};
|
|
274
273
|
const localVarQueryParameter = {};
|
|
275
274
|
// authentication CustomAuthentication required
|
|
276
|
-
|
|
275
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
277
276
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
-
localVarRequestOptions.headers =
|
|
278
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
280
279
|
return {
|
|
281
280
|
url: toPathString(localVarUrlObj),
|
|
282
281
|
options: localVarRequestOptions,
|
|
283
282
|
};
|
|
284
|
-
}
|
|
283
|
+
},
|
|
285
284
|
/**
|
|
286
285
|
* Accepts plugin configuration as JSON body.
|
|
287
286
|
* @summary Updates plugin configuration.
|
|
@@ -289,7 +288,7 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
289
288
|
* @param {*} [options] Override http request option.
|
|
290
289
|
* @throws {RequiredError}
|
|
291
290
|
*/
|
|
292
|
-
updatePluginConfiguration:
|
|
291
|
+
updatePluginConfiguration: async (pluginId, options = {}) => {
|
|
293
292
|
// verify required parameter 'pluginId' is not null or undefined
|
|
294
293
|
assertParamExists('updatePluginConfiguration', 'pluginId', pluginId);
|
|
295
294
|
const localVarPath = `/Plugins/{pluginId}/Configuration`
|
|
@@ -300,19 +299,19 @@ const PluginsApiAxiosParamCreator = function (configuration) {
|
|
|
300
299
|
if (configuration) {
|
|
301
300
|
baseOptions = configuration.baseOptions;
|
|
302
301
|
}
|
|
303
|
-
const localVarRequestOptions =
|
|
302
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
304
303
|
const localVarHeaderParameter = {};
|
|
305
304
|
const localVarQueryParameter = {};
|
|
306
305
|
// authentication CustomAuthentication required
|
|
307
|
-
|
|
306
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
308
307
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
309
308
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
310
|
-
localVarRequestOptions.headers =
|
|
309
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
311
310
|
return {
|
|
312
311
|
url: toPathString(localVarUrlObj),
|
|
313
312
|
options: localVarRequestOptions,
|
|
314
313
|
};
|
|
315
|
-
}
|
|
314
|
+
},
|
|
316
315
|
};
|
|
317
316
|
};
|
|
318
317
|
/**
|
|
@@ -330,11 +329,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
330
329
|
* @param {*} [options] Override http request option.
|
|
331
330
|
* @throws {RequiredError}
|
|
332
331
|
*/
|
|
333
|
-
disablePlugin(pluginId, version, options) {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
337
|
-
});
|
|
332
|
+
async disablePlugin(pluginId, version, options) {
|
|
333
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disablePlugin(pluginId, version, options);
|
|
334
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
338
335
|
},
|
|
339
336
|
/**
|
|
340
337
|
*
|
|
@@ -344,11 +341,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
344
341
|
* @param {*} [options] Override http request option.
|
|
345
342
|
* @throws {RequiredError}
|
|
346
343
|
*/
|
|
347
|
-
enablePlugin(pluginId, version, options) {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
351
|
-
});
|
|
344
|
+
async enablePlugin(pluginId, version, options) {
|
|
345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enablePlugin(pluginId, version, options);
|
|
346
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
352
347
|
},
|
|
353
348
|
/**
|
|
354
349
|
*
|
|
@@ -357,11 +352,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
357
352
|
* @param {*} [options] Override http request option.
|
|
358
353
|
* @throws {RequiredError}
|
|
359
354
|
*/
|
|
360
|
-
getPluginConfiguration(pluginId, options) {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
|
-
});
|
|
355
|
+
async getPluginConfiguration(pluginId, options) {
|
|
356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPluginConfiguration(pluginId, options);
|
|
357
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
365
358
|
},
|
|
366
359
|
/**
|
|
367
360
|
*
|
|
@@ -371,11 +364,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
371
364
|
* @param {*} [options] Override http request option.
|
|
372
365
|
* @throws {RequiredError}
|
|
373
366
|
*/
|
|
374
|
-
getPluginImage(pluginId, version, options) {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
378
|
-
});
|
|
367
|
+
async getPluginImage(pluginId, version, options) {
|
|
368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPluginImage(pluginId, version, options);
|
|
369
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
379
370
|
},
|
|
380
371
|
/**
|
|
381
372
|
*
|
|
@@ -384,11 +375,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
384
375
|
* @param {*} [options] Override http request option.
|
|
385
376
|
* @throws {RequiredError}
|
|
386
377
|
*/
|
|
387
|
-
getPluginManifest(pluginId, options) {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
391
|
-
});
|
|
378
|
+
async getPluginManifest(pluginId, options) {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPluginManifest(pluginId, options);
|
|
380
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
392
381
|
},
|
|
393
382
|
/**
|
|
394
383
|
*
|
|
@@ -396,11 +385,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
396
385
|
* @param {*} [options] Override http request option.
|
|
397
386
|
* @throws {RequiredError}
|
|
398
387
|
*/
|
|
399
|
-
getPlugins(options) {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
403
|
-
});
|
|
388
|
+
async getPlugins(options) {
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPlugins(options);
|
|
390
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
404
391
|
},
|
|
405
392
|
/**
|
|
406
393
|
*
|
|
@@ -410,11 +397,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
410
397
|
* @deprecated
|
|
411
398
|
* @throws {RequiredError}
|
|
412
399
|
*/
|
|
413
|
-
uninstallPlugin(pluginId, options) {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
|
-
});
|
|
400
|
+
async uninstallPlugin(pluginId, options) {
|
|
401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uninstallPlugin(pluginId, options);
|
|
402
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
418
403
|
},
|
|
419
404
|
/**
|
|
420
405
|
*
|
|
@@ -424,11 +409,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
424
409
|
* @param {*} [options] Override http request option.
|
|
425
410
|
* @throws {RequiredError}
|
|
426
411
|
*/
|
|
427
|
-
uninstallPluginByVersion(pluginId, version, options) {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
|
-
});
|
|
412
|
+
async uninstallPluginByVersion(pluginId, version, options) {
|
|
413
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uninstallPluginByVersion(pluginId, version, options);
|
|
414
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
432
415
|
},
|
|
433
416
|
/**
|
|
434
417
|
* Accepts plugin configuration as JSON body.
|
|
@@ -437,11 +420,9 @@ const PluginsApiFp = function (configuration) {
|
|
|
437
420
|
* @param {*} [options] Override http request option.
|
|
438
421
|
* @throws {RequiredError}
|
|
439
422
|
*/
|
|
440
|
-
updatePluginConfiguration(pluginId, options) {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
444
|
-
});
|
|
423
|
+
async updatePluginConfiguration(pluginId, options) {
|
|
424
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePluginConfiguration(pluginId, options);
|
|
425
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
445
426
|
},
|
|
446
427
|
};
|
|
447
428
|
};
|
|
@@ -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, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -29,7 +28,7 @@ const QuickConnectApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
authorizeQuickConnect:
|
|
31
|
+
authorizeQuickConnect: async (code, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'code' is not null or undefined
|
|
34
33
|
assertParamExists('authorizeQuickConnect', 'code', code);
|
|
35
34
|
const localVarPath = `/QuickConnect/Authorize`;
|
|
@@ -39,11 +38,11 @@ const QuickConnectApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
43
42
|
const localVarHeaderParameter = {};
|
|
44
43
|
const localVarQueryParameter = {};
|
|
45
44
|
// authentication CustomAuthentication required
|
|
46
|
-
|
|
45
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
47
46
|
if (code !== undefined) {
|
|
48
47
|
localVarQueryParameter['code'] = code;
|
|
49
48
|
}
|
|
@@ -52,19 +51,19 @@ const QuickConnectApiAxiosParamCreator = function (configuration) {
|
|
|
52
51
|
}
|
|
53
52
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54
53
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55
|
-
localVarRequestOptions.headers =
|
|
54
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
56
55
|
return {
|
|
57
56
|
url: toPathString(localVarUrlObj),
|
|
58
57
|
options: localVarRequestOptions,
|
|
59
58
|
};
|
|
60
|
-
}
|
|
59
|
+
},
|
|
61
60
|
/**
|
|
62
61
|
*
|
|
63
62
|
* @summary Gets the current quick connect state.
|
|
64
63
|
* @param {*} [options] Override http request option.
|
|
65
64
|
* @throws {RequiredError}
|
|
66
65
|
*/
|
|
67
|
-
getQuickConnectEnabled:
|
|
66
|
+
getQuickConnectEnabled: async (options = {}) => {
|
|
68
67
|
const localVarPath = `/QuickConnect/Enabled`;
|
|
69
68
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
69
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -72,17 +71,17 @@ const QuickConnectApiAxiosParamCreator = function (configuration) {
|
|
|
72
71
|
if (configuration) {
|
|
73
72
|
baseOptions = configuration.baseOptions;
|
|
74
73
|
}
|
|
75
|
-
const localVarRequestOptions =
|
|
74
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
76
75
|
const localVarHeaderParameter = {};
|
|
77
76
|
const localVarQueryParameter = {};
|
|
78
77
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
78
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
-
localVarRequestOptions.headers =
|
|
79
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
81
80
|
return {
|
|
82
81
|
url: toPathString(localVarUrlObj),
|
|
83
82
|
options: localVarRequestOptions,
|
|
84
83
|
};
|
|
85
|
-
}
|
|
84
|
+
},
|
|
86
85
|
/**
|
|
87
86
|
*
|
|
88
87
|
* @summary Attempts to retrieve authentication information.
|
|
@@ -90,7 +89,7 @@ const QuickConnectApiAxiosParamCreator = function (configuration) {
|
|
|
90
89
|
* @param {*} [options] Override http request option.
|
|
91
90
|
* @throws {RequiredError}
|
|
92
91
|
*/
|
|
93
|
-
getQuickConnectState:
|
|
92
|
+
getQuickConnectState: async (secret, options = {}) => {
|
|
94
93
|
// verify required parameter 'secret' is not null or undefined
|
|
95
94
|
assertParamExists('getQuickConnectState', 'secret', secret);
|
|
96
95
|
const localVarPath = `/QuickConnect/Connect`;
|
|
@@ -100,7 +99,7 @@ const QuickConnectApiAxiosParamCreator = function (configuration) {
|
|
|
100
99
|
if (configuration) {
|
|
101
100
|
baseOptions = configuration.baseOptions;
|
|
102
101
|
}
|
|
103
|
-
const localVarRequestOptions =
|
|
102
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
104
103
|
const localVarHeaderParameter = {};
|
|
105
104
|
const localVarQueryParameter = {};
|
|
106
105
|
if (secret !== undefined) {
|
|
@@ -108,19 +107,19 @@ const QuickConnectApiAxiosParamCreator = function (configuration) {
|
|
|
108
107
|
}
|
|
109
108
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
110
109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
-
localVarRequestOptions.headers =
|
|
110
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
112
111
|
return {
|
|
113
112
|
url: toPathString(localVarUrlObj),
|
|
114
113
|
options: localVarRequestOptions,
|
|
115
114
|
};
|
|
116
|
-
}
|
|
115
|
+
},
|
|
117
116
|
/**
|
|
118
117
|
*
|
|
119
118
|
* @summary Initiate a new quick connect request.
|
|
120
119
|
* @param {*} [options] Override http request option.
|
|
121
120
|
* @throws {RequiredError}
|
|
122
121
|
*/
|
|
123
|
-
initiateQuickConnect:
|
|
122
|
+
initiateQuickConnect: async (options = {}) => {
|
|
124
123
|
const localVarPath = `/QuickConnect/Initiate`;
|
|
125
124
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
125
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -128,17 +127,17 @@ const QuickConnectApiAxiosParamCreator = function (configuration) {
|
|
|
128
127
|
if (configuration) {
|
|
129
128
|
baseOptions = configuration.baseOptions;
|
|
130
129
|
}
|
|
131
|
-
const localVarRequestOptions =
|
|
130
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
132
131
|
const localVarHeaderParameter = {};
|
|
133
132
|
const localVarQueryParameter = {};
|
|
134
133
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
134
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
-
localVarRequestOptions.headers =
|
|
135
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
137
136
|
return {
|
|
138
137
|
url: toPathString(localVarUrlObj),
|
|
139
138
|
options: localVarRequestOptions,
|
|
140
139
|
};
|
|
141
|
-
}
|
|
140
|
+
},
|
|
142
141
|
};
|
|
143
142
|
};
|
|
144
143
|
/**
|
|
@@ -156,11 +155,9 @@ const QuickConnectApiFp = function (configuration) {
|
|
|
156
155
|
* @param {*} [options] Override http request option.
|
|
157
156
|
* @throws {RequiredError}
|
|
158
157
|
*/
|
|
159
|
-
authorizeQuickConnect(code, userId, options) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
163
|
-
});
|
|
158
|
+
async authorizeQuickConnect(code, userId, options) {
|
|
159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authorizeQuickConnect(code, userId, options);
|
|
160
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
164
161
|
},
|
|
165
162
|
/**
|
|
166
163
|
*
|
|
@@ -168,11 +165,9 @@ const QuickConnectApiFp = function (configuration) {
|
|
|
168
165
|
* @param {*} [options] Override http request option.
|
|
169
166
|
* @throws {RequiredError}
|
|
170
167
|
*/
|
|
171
|
-
getQuickConnectEnabled(options) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
175
|
-
});
|
|
168
|
+
async getQuickConnectEnabled(options) {
|
|
169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickConnectEnabled(options);
|
|
170
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
176
171
|
},
|
|
177
172
|
/**
|
|
178
173
|
*
|
|
@@ -181,11 +176,9 @@ const QuickConnectApiFp = function (configuration) {
|
|
|
181
176
|
* @param {*} [options] Override http request option.
|
|
182
177
|
* @throws {RequiredError}
|
|
183
178
|
*/
|
|
184
|
-
getQuickConnectState(secret, options) {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
188
|
-
});
|
|
179
|
+
async getQuickConnectState(secret, options) {
|
|
180
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickConnectState(secret, options);
|
|
181
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
189
182
|
},
|
|
190
183
|
/**
|
|
191
184
|
*
|
|
@@ -193,11 +186,9 @@ const QuickConnectApiFp = function (configuration) {
|
|
|
193
186
|
* @param {*} [options] Override http request option.
|
|
194
187
|
* @throws {RequiredError}
|
|
195
188
|
*/
|
|
196
|
-
initiateQuickConnect(options) {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
200
|
-
});
|
|
189
|
+
async initiateQuickConnect(options) {
|
|
190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateQuickConnect(options);
|
|
191
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
201
192
|
},
|
|
202
193
|
};
|
|
203
194
|
};
|