@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,54 +1,25 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
|
-
import { assertParamExists, DUMMY_BASE_URL, setSearchParams,
|
|
2
|
+
import { assertParamExists, DUMMY_BASE_URL, setSearchParams, serializeDataIfNeeded, toPathString, setApiKeyToObject, 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
|
* UserApi - axios parameter creator
|
|
9
19
|
* @export
|
|
10
20
|
*/
|
|
11
21
|
const UserApiAxiosParamCreator = function (configuration) {
|
|
12
22
|
return {
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @summary Authenticates a user.
|
|
16
|
-
* @param {string} userId The user id.
|
|
17
|
-
* @param {string} pw The password as plain text.
|
|
18
|
-
* @param {string} [password] The password sha1-hash.
|
|
19
|
-
* @param {*} [options] Override http request option.
|
|
20
|
-
* @throws {RequiredError}
|
|
21
|
-
*/
|
|
22
|
-
authenticateUser: (userId, pw, password, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
// verify required parameter 'userId' is not null or undefined
|
|
24
|
-
assertParamExists('authenticateUser', 'userId', userId);
|
|
25
|
-
// verify required parameter 'pw' is not null or undefined
|
|
26
|
-
assertParamExists('authenticateUser', 'pw', pw);
|
|
27
|
-
const localVarPath = `/Users/{userId}/Authenticate`
|
|
28
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
29
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31
|
-
let baseOptions;
|
|
32
|
-
if (configuration) {
|
|
33
|
-
baseOptions = configuration.baseOptions;
|
|
34
|
-
}
|
|
35
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
36
|
-
const localVarHeaderParameter = {};
|
|
37
|
-
const localVarQueryParameter = {};
|
|
38
|
-
if (pw !== undefined) {
|
|
39
|
-
localVarQueryParameter['pw'] = pw;
|
|
40
|
-
}
|
|
41
|
-
if (password !== undefined) {
|
|
42
|
-
localVarQueryParameter['password'] = password;
|
|
43
|
-
}
|
|
44
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
47
|
-
return {
|
|
48
|
-
url: toPathString(localVarUrlObj),
|
|
49
|
-
options: localVarRequestOptions,
|
|
50
|
-
};
|
|
51
|
-
}),
|
|
52
23
|
/**
|
|
53
24
|
*
|
|
54
25
|
* @summary Authenticates a user by name.
|
|
@@ -56,7 +27,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
56
27
|
* @param {*} [options] Override http request option.
|
|
57
28
|
* @throws {RequiredError}
|
|
58
29
|
*/
|
|
59
|
-
authenticateUserByName: (authenticateUserByName, options = {}) =>
|
|
30
|
+
authenticateUserByName: async (authenticateUserByName, options = {}) => {
|
|
60
31
|
// verify required parameter 'authenticateUserByName' is not null or undefined
|
|
61
32
|
assertParamExists('authenticateUserByName', 'authenticateUserByName', authenticateUserByName);
|
|
62
33
|
const localVarPath = `/Users/AuthenticateByName`;
|
|
@@ -66,19 +37,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
66
37
|
if (configuration) {
|
|
67
38
|
baseOptions = configuration.baseOptions;
|
|
68
39
|
}
|
|
69
|
-
const localVarRequestOptions =
|
|
40
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
70
41
|
const localVarHeaderParameter = {};
|
|
71
42
|
const localVarQueryParameter = {};
|
|
72
43
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
44
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
45
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
-
localVarRequestOptions.headers =
|
|
46
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
76
47
|
localVarRequestOptions.data = serializeDataIfNeeded(authenticateUserByName, localVarRequestOptions, configuration);
|
|
77
48
|
return {
|
|
78
49
|
url: toPathString(localVarUrlObj),
|
|
79
50
|
options: localVarRequestOptions,
|
|
80
51
|
};
|
|
81
|
-
}
|
|
52
|
+
},
|
|
82
53
|
/**
|
|
83
54
|
*
|
|
84
55
|
* @summary Authenticates a user with quick connect.
|
|
@@ -86,7 +57,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
86
57
|
* @param {*} [options] Override http request option.
|
|
87
58
|
* @throws {RequiredError}
|
|
88
59
|
*/
|
|
89
|
-
authenticateWithQuickConnect: (quickConnectDto, options = {}) =>
|
|
60
|
+
authenticateWithQuickConnect: async (quickConnectDto, options = {}) => {
|
|
90
61
|
// verify required parameter 'quickConnectDto' is not null or undefined
|
|
91
62
|
assertParamExists('authenticateWithQuickConnect', 'quickConnectDto', quickConnectDto);
|
|
92
63
|
const localVarPath = `/Users/AuthenticateWithQuickConnect`;
|
|
@@ -96,19 +67,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
96
67
|
if (configuration) {
|
|
97
68
|
baseOptions = configuration.baseOptions;
|
|
98
69
|
}
|
|
99
|
-
const localVarRequestOptions =
|
|
70
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
100
71
|
const localVarHeaderParameter = {};
|
|
101
72
|
const localVarQueryParameter = {};
|
|
102
73
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
103
74
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
104
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105
|
-
localVarRequestOptions.headers =
|
|
76
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
106
77
|
localVarRequestOptions.data = serializeDataIfNeeded(quickConnectDto, localVarRequestOptions, configuration);
|
|
107
78
|
return {
|
|
108
79
|
url: toPathString(localVarUrlObj),
|
|
109
80
|
options: localVarRequestOptions,
|
|
110
81
|
};
|
|
111
|
-
}
|
|
82
|
+
},
|
|
112
83
|
/**
|
|
113
84
|
*
|
|
114
85
|
* @summary Creates a user.
|
|
@@ -116,7 +87,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
116
87
|
* @param {*} [options] Override http request option.
|
|
117
88
|
* @throws {RequiredError}
|
|
118
89
|
*/
|
|
119
|
-
createUserByName: (createUserByName, options = {}) =>
|
|
90
|
+
createUserByName: async (createUserByName, options = {}) => {
|
|
120
91
|
// verify required parameter 'createUserByName' is not null or undefined
|
|
121
92
|
assertParamExists('createUserByName', 'createUserByName', createUserByName);
|
|
122
93
|
const localVarPath = `/Users/New`;
|
|
@@ -126,21 +97,21 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
126
97
|
if (configuration) {
|
|
127
98
|
baseOptions = configuration.baseOptions;
|
|
128
99
|
}
|
|
129
|
-
const localVarRequestOptions =
|
|
100
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
130
101
|
const localVarHeaderParameter = {};
|
|
131
102
|
const localVarQueryParameter = {};
|
|
132
103
|
// authentication CustomAuthentication required
|
|
133
|
-
|
|
104
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
134
105
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
106
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
136
107
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
-
localVarRequestOptions.headers =
|
|
108
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
138
109
|
localVarRequestOptions.data = serializeDataIfNeeded(createUserByName, localVarRequestOptions, configuration);
|
|
139
110
|
return {
|
|
140
111
|
url: toPathString(localVarUrlObj),
|
|
141
112
|
options: localVarRequestOptions,
|
|
142
113
|
};
|
|
143
|
-
}
|
|
114
|
+
},
|
|
144
115
|
/**
|
|
145
116
|
*
|
|
146
117
|
* @summary Deletes a user.
|
|
@@ -148,7 +119,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
148
119
|
* @param {*} [options] Override http request option.
|
|
149
120
|
* @throws {RequiredError}
|
|
150
121
|
*/
|
|
151
|
-
deleteUser: (userId, options = {}) =>
|
|
122
|
+
deleteUser: async (userId, options = {}) => {
|
|
152
123
|
// verify required parameter 'userId' is not null or undefined
|
|
153
124
|
assertParamExists('deleteUser', 'userId', userId);
|
|
154
125
|
const localVarPath = `/Users/{userId}`
|
|
@@ -159,19 +130,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
159
130
|
if (configuration) {
|
|
160
131
|
baseOptions = configuration.baseOptions;
|
|
161
132
|
}
|
|
162
|
-
const localVarRequestOptions =
|
|
133
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
163
134
|
const localVarHeaderParameter = {};
|
|
164
135
|
const localVarQueryParameter = {};
|
|
165
136
|
// authentication CustomAuthentication required
|
|
166
|
-
|
|
137
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
167
138
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
168
139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
-
localVarRequestOptions.headers =
|
|
140
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
170
141
|
return {
|
|
171
142
|
url: toPathString(localVarUrlObj),
|
|
172
143
|
options: localVarRequestOptions,
|
|
173
144
|
};
|
|
174
|
-
}
|
|
145
|
+
},
|
|
175
146
|
/**
|
|
176
147
|
*
|
|
177
148
|
* @summary Initiates the forgot password process for a local user.
|
|
@@ -179,7 +150,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
179
150
|
* @param {*} [options] Override http request option.
|
|
180
151
|
* @throws {RequiredError}
|
|
181
152
|
*/
|
|
182
|
-
forgotPassword: (forgotPasswordDto, options = {}) =>
|
|
153
|
+
forgotPassword: async (forgotPasswordDto, options = {}) => {
|
|
183
154
|
// verify required parameter 'forgotPasswordDto' is not null or undefined
|
|
184
155
|
assertParamExists('forgotPassword', 'forgotPasswordDto', forgotPasswordDto);
|
|
185
156
|
const localVarPath = `/Users/ForgotPassword`;
|
|
@@ -189,19 +160,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
189
160
|
if (configuration) {
|
|
190
161
|
baseOptions = configuration.baseOptions;
|
|
191
162
|
}
|
|
192
|
-
const localVarRequestOptions =
|
|
163
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
193
164
|
const localVarHeaderParameter = {};
|
|
194
165
|
const localVarQueryParameter = {};
|
|
195
166
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
196
167
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
197
168
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
198
|
-
localVarRequestOptions.headers =
|
|
169
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
199
170
|
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordDto, localVarRequestOptions, configuration);
|
|
200
171
|
return {
|
|
201
172
|
url: toPathString(localVarUrlObj),
|
|
202
173
|
options: localVarRequestOptions,
|
|
203
174
|
};
|
|
204
|
-
}
|
|
175
|
+
},
|
|
205
176
|
/**
|
|
206
177
|
*
|
|
207
178
|
* @summary Redeems a forgot password pin.
|
|
@@ -209,7 +180,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
209
180
|
* @param {*} [options] Override http request option.
|
|
210
181
|
* @throws {RequiredError}
|
|
211
182
|
*/
|
|
212
|
-
forgotPasswordPin: (forgotPasswordPinDto, options = {}) =>
|
|
183
|
+
forgotPasswordPin: async (forgotPasswordPinDto, options = {}) => {
|
|
213
184
|
// verify required parameter 'forgotPasswordPinDto' is not null or undefined
|
|
214
185
|
assertParamExists('forgotPasswordPin', 'forgotPasswordPinDto', forgotPasswordPinDto);
|
|
215
186
|
const localVarPath = `/Users/ForgotPassword/Pin`;
|
|
@@ -219,26 +190,26 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
219
190
|
if (configuration) {
|
|
220
191
|
baseOptions = configuration.baseOptions;
|
|
221
192
|
}
|
|
222
|
-
const localVarRequestOptions =
|
|
193
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
223
194
|
const localVarHeaderParameter = {};
|
|
224
195
|
const localVarQueryParameter = {};
|
|
225
196
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
226
197
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
227
198
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
228
|
-
localVarRequestOptions.headers =
|
|
199
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
229
200
|
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordPinDto, localVarRequestOptions, configuration);
|
|
230
201
|
return {
|
|
231
202
|
url: toPathString(localVarUrlObj),
|
|
232
203
|
options: localVarRequestOptions,
|
|
233
204
|
};
|
|
234
|
-
}
|
|
205
|
+
},
|
|
235
206
|
/**
|
|
236
207
|
*
|
|
237
208
|
* @summary Gets the user based on auth token.
|
|
238
209
|
* @param {*} [options] Override http request option.
|
|
239
210
|
* @throws {RequiredError}
|
|
240
211
|
*/
|
|
241
|
-
getCurrentUser: (options = {}) =>
|
|
212
|
+
getCurrentUser: async (options = {}) => {
|
|
242
213
|
const localVarPath = `/Users/Me`;
|
|
243
214
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
215
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -246,26 +217,26 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
246
217
|
if (configuration) {
|
|
247
218
|
baseOptions = configuration.baseOptions;
|
|
248
219
|
}
|
|
249
|
-
const localVarRequestOptions =
|
|
220
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
250
221
|
const localVarHeaderParameter = {};
|
|
251
222
|
const localVarQueryParameter = {};
|
|
252
223
|
// authentication CustomAuthentication required
|
|
253
|
-
|
|
224
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
254
225
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
255
226
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
256
|
-
localVarRequestOptions.headers =
|
|
227
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
257
228
|
return {
|
|
258
229
|
url: toPathString(localVarUrlObj),
|
|
259
230
|
options: localVarRequestOptions,
|
|
260
231
|
};
|
|
261
|
-
}
|
|
232
|
+
},
|
|
262
233
|
/**
|
|
263
234
|
*
|
|
264
235
|
* @summary Gets a list of publicly visible users for display on a login screen.
|
|
265
236
|
* @param {*} [options] Override http request option.
|
|
266
237
|
* @throws {RequiredError}
|
|
267
238
|
*/
|
|
268
|
-
getPublicUsers: (options = {}) =>
|
|
239
|
+
getPublicUsers: async (options = {}) => {
|
|
269
240
|
const localVarPath = `/Users/Public`;
|
|
270
241
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
271
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -273,17 +244,17 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
273
244
|
if (configuration) {
|
|
274
245
|
baseOptions = configuration.baseOptions;
|
|
275
246
|
}
|
|
276
|
-
const localVarRequestOptions =
|
|
247
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
277
248
|
const localVarHeaderParameter = {};
|
|
278
249
|
const localVarQueryParameter = {};
|
|
279
250
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
280
251
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
281
|
-
localVarRequestOptions.headers =
|
|
252
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
282
253
|
return {
|
|
283
254
|
url: toPathString(localVarUrlObj),
|
|
284
255
|
options: localVarRequestOptions,
|
|
285
256
|
};
|
|
286
|
-
}
|
|
257
|
+
},
|
|
287
258
|
/**
|
|
288
259
|
*
|
|
289
260
|
* @summary Gets a user by Id.
|
|
@@ -291,7 +262,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
291
262
|
* @param {*} [options] Override http request option.
|
|
292
263
|
* @throws {RequiredError}
|
|
293
264
|
*/
|
|
294
|
-
getUserById: (userId, options = {}) =>
|
|
265
|
+
getUserById: async (userId, options = {}) => {
|
|
295
266
|
// verify required parameter 'userId' is not null or undefined
|
|
296
267
|
assertParamExists('getUserById', 'userId', userId);
|
|
297
268
|
const localVarPath = `/Users/{userId}`
|
|
@@ -302,19 +273,19 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
302
273
|
if (configuration) {
|
|
303
274
|
baseOptions = configuration.baseOptions;
|
|
304
275
|
}
|
|
305
|
-
const localVarRequestOptions =
|
|
276
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
306
277
|
const localVarHeaderParameter = {};
|
|
307
278
|
const localVarQueryParameter = {};
|
|
308
279
|
// authentication CustomAuthentication required
|
|
309
|
-
|
|
280
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
310
281
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
311
282
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
-
localVarRequestOptions.headers =
|
|
283
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
313
284
|
return {
|
|
314
285
|
url: toPathString(localVarUrlObj),
|
|
315
286
|
options: localVarRequestOptions,
|
|
316
287
|
};
|
|
317
|
-
}
|
|
288
|
+
},
|
|
318
289
|
/**
|
|
319
290
|
*
|
|
320
291
|
* @summary Gets a list of users.
|
|
@@ -323,7 +294,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
323
294
|
* @param {*} [options] Override http request option.
|
|
324
295
|
* @throws {RequiredError}
|
|
325
296
|
*/
|
|
326
|
-
getUsers: (isHidden, isDisabled, options = {}) =>
|
|
297
|
+
getUsers: async (isHidden, isDisabled, options = {}) => {
|
|
327
298
|
const localVarPath = `/Users`;
|
|
328
299
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
329
300
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -331,11 +302,11 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
331
302
|
if (configuration) {
|
|
332
303
|
baseOptions = configuration.baseOptions;
|
|
333
304
|
}
|
|
334
|
-
const localVarRequestOptions =
|
|
305
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
335
306
|
const localVarHeaderParameter = {};
|
|
336
307
|
const localVarQueryParameter = {};
|
|
337
308
|
// authentication CustomAuthentication required
|
|
338
|
-
|
|
309
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
339
310
|
if (isHidden !== undefined) {
|
|
340
311
|
localVarQueryParameter['isHidden'] = isHidden;
|
|
341
312
|
}
|
|
@@ -344,156 +315,120 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
344
315
|
}
|
|
345
316
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
346
317
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
347
|
-
localVarRequestOptions.headers =
|
|
318
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
348
319
|
return {
|
|
349
320
|
url: toPathString(localVarUrlObj),
|
|
350
321
|
options: localVarRequestOptions,
|
|
351
322
|
};
|
|
352
|
-
}
|
|
323
|
+
},
|
|
353
324
|
/**
|
|
354
325
|
*
|
|
355
326
|
* @summary Updates a user.
|
|
356
|
-
* @param {string} userId The user id.
|
|
357
327
|
* @param {UserDto} userDto The updated user model.
|
|
328
|
+
* @param {string} [userId] The user id.
|
|
358
329
|
* @param {*} [options] Override http request option.
|
|
359
330
|
* @throws {RequiredError}
|
|
360
331
|
*/
|
|
361
|
-
updateUser: (
|
|
362
|
-
// verify required parameter 'userId' is not null or undefined
|
|
363
|
-
assertParamExists('updateUser', 'userId', userId);
|
|
332
|
+
updateUser: async (userDto, userId, options = {}) => {
|
|
364
333
|
// verify required parameter 'userDto' is not null or undefined
|
|
365
334
|
assertParamExists('updateUser', 'userDto', userDto);
|
|
366
|
-
const localVarPath = `/Users
|
|
367
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
335
|
+
const localVarPath = `/Users`;
|
|
368
336
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
369
337
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
370
338
|
let baseOptions;
|
|
371
339
|
if (configuration) {
|
|
372
340
|
baseOptions = configuration.baseOptions;
|
|
373
341
|
}
|
|
374
|
-
const localVarRequestOptions =
|
|
342
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
375
343
|
const localVarHeaderParameter = {};
|
|
376
344
|
const localVarQueryParameter = {};
|
|
377
345
|
// authentication CustomAuthentication required
|
|
378
|
-
|
|
346
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
347
|
+
if (userId !== undefined) {
|
|
348
|
+
localVarQueryParameter['userId'] = userId;
|
|
349
|
+
}
|
|
379
350
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
380
351
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
381
352
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
382
|
-
localVarRequestOptions.headers =
|
|
353
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
383
354
|
localVarRequestOptions.data = serializeDataIfNeeded(userDto, localVarRequestOptions, configuration);
|
|
384
355
|
return {
|
|
385
356
|
url: toPathString(localVarUrlObj),
|
|
386
357
|
options: localVarRequestOptions,
|
|
387
358
|
};
|
|
388
|
-
}
|
|
359
|
+
},
|
|
389
360
|
/**
|
|
390
361
|
*
|
|
391
362
|
* @summary Updates a user configuration.
|
|
392
|
-
* @param {string} userId The user id.
|
|
393
363
|
* @param {UserConfiguration} userConfiguration The new user configuration.
|
|
364
|
+
* @param {string} [userId] The user id.
|
|
394
365
|
* @param {*} [options] Override http request option.
|
|
395
366
|
* @throws {RequiredError}
|
|
396
367
|
*/
|
|
397
|
-
updateUserConfiguration: (
|
|
398
|
-
// verify required parameter 'userId' is not null or undefined
|
|
399
|
-
assertParamExists('updateUserConfiguration', 'userId', userId);
|
|
368
|
+
updateUserConfiguration: async (userConfiguration, userId, options = {}) => {
|
|
400
369
|
// verify required parameter 'userConfiguration' is not null or undefined
|
|
401
370
|
assertParamExists('updateUserConfiguration', 'userConfiguration', userConfiguration);
|
|
402
|
-
const localVarPath = `/Users/
|
|
403
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
371
|
+
const localVarPath = `/Users/Configuration`;
|
|
404
372
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
405
373
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
406
374
|
let baseOptions;
|
|
407
375
|
if (configuration) {
|
|
408
376
|
baseOptions = configuration.baseOptions;
|
|
409
377
|
}
|
|
410
|
-
const localVarRequestOptions =
|
|
378
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
411
379
|
const localVarHeaderParameter = {};
|
|
412
380
|
const localVarQueryParameter = {};
|
|
413
381
|
// authentication CustomAuthentication required
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
418
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
419
|
-
localVarRequestOptions.data = serializeDataIfNeeded(userConfiguration, localVarRequestOptions, configuration);
|
|
420
|
-
return {
|
|
421
|
-
url: toPathString(localVarUrlObj),
|
|
422
|
-
options: localVarRequestOptions,
|
|
423
|
-
};
|
|
424
|
-
}),
|
|
425
|
-
/**
|
|
426
|
-
*
|
|
427
|
-
* @summary Updates a user\'s easy password.
|
|
428
|
-
* @param {string} userId The user id.
|
|
429
|
-
* @param {UpdateUserEasyPassword} updateUserEasyPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request.
|
|
430
|
-
* @param {*} [options] Override http request option.
|
|
431
|
-
* @throws {RequiredError}
|
|
432
|
-
*/
|
|
433
|
-
updateUserEasyPassword: (userId, updateUserEasyPassword, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
434
|
-
// verify required parameter 'userId' is not null or undefined
|
|
435
|
-
assertParamExists('updateUserEasyPassword', 'userId', userId);
|
|
436
|
-
// verify required parameter 'updateUserEasyPassword' is not null or undefined
|
|
437
|
-
assertParamExists('updateUserEasyPassword', 'updateUserEasyPassword', updateUserEasyPassword);
|
|
438
|
-
const localVarPath = `/Users/{userId}/EasyPassword`
|
|
439
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
440
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
441
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
442
|
-
let baseOptions;
|
|
443
|
-
if (configuration) {
|
|
444
|
-
baseOptions = configuration.baseOptions;
|
|
382
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
383
|
+
if (userId !== undefined) {
|
|
384
|
+
localVarQueryParameter['userId'] = userId;
|
|
445
385
|
}
|
|
446
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
447
|
-
const localVarHeaderParameter = {};
|
|
448
|
-
const localVarQueryParameter = {};
|
|
449
|
-
// authentication CustomAuthentication required
|
|
450
|
-
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
451
386
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
452
387
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
453
388
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
454
|
-
localVarRequestOptions.headers =
|
|
455
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
389
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
390
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userConfiguration, localVarRequestOptions, configuration);
|
|
456
391
|
return {
|
|
457
392
|
url: toPathString(localVarUrlObj),
|
|
458
393
|
options: localVarRequestOptions,
|
|
459
394
|
};
|
|
460
|
-
}
|
|
395
|
+
},
|
|
461
396
|
/**
|
|
462
397
|
*
|
|
463
398
|
* @summary Updates a user\'s password.
|
|
464
|
-
* @param {
|
|
465
|
-
* @param {
|
|
399
|
+
* @param {UpdateUserPassword} updateUserPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Nullable{System.Guid},Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request.
|
|
400
|
+
* @param {string} [userId] The user id.
|
|
466
401
|
* @param {*} [options] Override http request option.
|
|
467
402
|
* @throws {RequiredError}
|
|
468
403
|
*/
|
|
469
|
-
updateUserPassword: (
|
|
470
|
-
// verify required parameter 'userId' is not null or undefined
|
|
471
|
-
assertParamExists('updateUserPassword', 'userId', userId);
|
|
404
|
+
updateUserPassword: async (updateUserPassword, userId, options = {}) => {
|
|
472
405
|
// verify required parameter 'updateUserPassword' is not null or undefined
|
|
473
406
|
assertParamExists('updateUserPassword', 'updateUserPassword', updateUserPassword);
|
|
474
|
-
const localVarPath = `/Users/
|
|
475
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
407
|
+
const localVarPath = `/Users/Password`;
|
|
476
408
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
477
409
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
478
410
|
let baseOptions;
|
|
479
411
|
if (configuration) {
|
|
480
412
|
baseOptions = configuration.baseOptions;
|
|
481
413
|
}
|
|
482
|
-
const localVarRequestOptions =
|
|
414
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
483
415
|
const localVarHeaderParameter = {};
|
|
484
416
|
const localVarQueryParameter = {};
|
|
485
417
|
// authentication CustomAuthentication required
|
|
486
|
-
|
|
418
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
419
|
+
if (userId !== undefined) {
|
|
420
|
+
localVarQueryParameter['userId'] = userId;
|
|
421
|
+
}
|
|
487
422
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
488
423
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
489
424
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
490
|
-
localVarRequestOptions.headers =
|
|
425
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
491
426
|
localVarRequestOptions.data = serializeDataIfNeeded(updateUserPassword, localVarRequestOptions, configuration);
|
|
492
427
|
return {
|
|
493
428
|
url: toPathString(localVarUrlObj),
|
|
494
429
|
options: localVarRequestOptions,
|
|
495
430
|
};
|
|
496
|
-
}
|
|
431
|
+
},
|
|
497
432
|
/**
|
|
498
433
|
*
|
|
499
434
|
* @summary Updates a user policy.
|
|
@@ -502,7 +437,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
502
437
|
* @param {*} [options] Override http request option.
|
|
503
438
|
* @throws {RequiredError}
|
|
504
439
|
*/
|
|
505
|
-
updateUserPolicy: (userId, userPolicy, options = {}) =>
|
|
440
|
+
updateUserPolicy: async (userId, userPolicy, options = {}) => {
|
|
506
441
|
// verify required parameter 'userId' is not null or undefined
|
|
507
442
|
assertParamExists('updateUserPolicy', 'userId', userId);
|
|
508
443
|
// verify required parameter 'userPolicy' is not null or undefined
|
|
@@ -515,21 +450,21 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
515
450
|
if (configuration) {
|
|
516
451
|
baseOptions = configuration.baseOptions;
|
|
517
452
|
}
|
|
518
|
-
const localVarRequestOptions =
|
|
453
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
519
454
|
const localVarHeaderParameter = {};
|
|
520
455
|
const localVarQueryParameter = {};
|
|
521
456
|
// authentication CustomAuthentication required
|
|
522
|
-
|
|
457
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
523
458
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
524
459
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
525
460
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
526
|
-
localVarRequestOptions.headers =
|
|
461
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
527
462
|
localVarRequestOptions.data = serializeDataIfNeeded(userPolicy, localVarRequestOptions, configuration);
|
|
528
463
|
return {
|
|
529
464
|
url: toPathString(localVarUrlObj),
|
|
530
465
|
options: localVarRequestOptions,
|
|
531
466
|
};
|
|
532
|
-
}
|
|
467
|
+
},
|
|
533
468
|
};
|
|
534
469
|
};
|
|
535
470
|
/**
|
|
@@ -539,21 +474,6 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
539
474
|
const UserApiFp = function (configuration) {
|
|
540
475
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
541
476
|
return {
|
|
542
|
-
/**
|
|
543
|
-
*
|
|
544
|
-
* @summary Authenticates a user.
|
|
545
|
-
* @param {string} userId The user id.
|
|
546
|
-
* @param {string} pw The password as plain text.
|
|
547
|
-
* @param {string} [password] The password sha1-hash.
|
|
548
|
-
* @param {*} [options] Override http request option.
|
|
549
|
-
* @throws {RequiredError}
|
|
550
|
-
*/
|
|
551
|
-
authenticateUser(userId, pw, password, options) {
|
|
552
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
553
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authenticateUser(userId, pw, password, options);
|
|
554
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
555
|
-
});
|
|
556
|
-
},
|
|
557
477
|
/**
|
|
558
478
|
*
|
|
559
479
|
* @summary Authenticates a user by name.
|
|
@@ -561,11 +481,9 @@ const UserApiFp = function (configuration) {
|
|
|
561
481
|
* @param {*} [options] Override http request option.
|
|
562
482
|
* @throws {RequiredError}
|
|
563
483
|
*/
|
|
564
|
-
authenticateUserByName(authenticateUserByName, options) {
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
568
|
-
});
|
|
484
|
+
async authenticateUserByName(authenticateUserByName, options) {
|
|
485
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateUserByName(authenticateUserByName, options);
|
|
486
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
569
487
|
},
|
|
570
488
|
/**
|
|
571
489
|
*
|
|
@@ -574,11 +492,9 @@ const UserApiFp = function (configuration) {
|
|
|
574
492
|
* @param {*} [options] Override http request option.
|
|
575
493
|
* @throws {RequiredError}
|
|
576
494
|
*/
|
|
577
|
-
authenticateWithQuickConnect(quickConnectDto, options) {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
581
|
-
});
|
|
495
|
+
async authenticateWithQuickConnect(quickConnectDto, options) {
|
|
496
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authenticateWithQuickConnect(quickConnectDto, options);
|
|
497
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
582
498
|
},
|
|
583
499
|
/**
|
|
584
500
|
*
|
|
@@ -587,11 +503,9 @@ const UserApiFp = function (configuration) {
|
|
|
587
503
|
* @param {*} [options] Override http request option.
|
|
588
504
|
* @throws {RequiredError}
|
|
589
505
|
*/
|
|
590
|
-
createUserByName(createUserByName, options) {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
594
|
-
});
|
|
506
|
+
async createUserByName(createUserByName, options) {
|
|
507
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUserByName(createUserByName, options);
|
|
508
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
595
509
|
},
|
|
596
510
|
/**
|
|
597
511
|
*
|
|
@@ -600,11 +514,9 @@ const UserApiFp = function (configuration) {
|
|
|
600
514
|
* @param {*} [options] Override http request option.
|
|
601
515
|
* @throws {RequiredError}
|
|
602
516
|
*/
|
|
603
|
-
deleteUser(userId, options) {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
607
|
-
});
|
|
517
|
+
async deleteUser(userId, options) {
|
|
518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(userId, options);
|
|
519
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
608
520
|
},
|
|
609
521
|
/**
|
|
610
522
|
*
|
|
@@ -613,11 +525,9 @@ const UserApiFp = function (configuration) {
|
|
|
613
525
|
* @param {*} [options] Override http request option.
|
|
614
526
|
* @throws {RequiredError}
|
|
615
527
|
*/
|
|
616
|
-
forgotPassword(forgotPasswordDto, options) {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
620
|
-
});
|
|
528
|
+
async forgotPassword(forgotPasswordDto, options) {
|
|
529
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPassword(forgotPasswordDto, options);
|
|
530
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
621
531
|
},
|
|
622
532
|
/**
|
|
623
533
|
*
|
|
@@ -626,11 +536,9 @@ const UserApiFp = function (configuration) {
|
|
|
626
536
|
* @param {*} [options] Override http request option.
|
|
627
537
|
* @throws {RequiredError}
|
|
628
538
|
*/
|
|
629
|
-
forgotPasswordPin(forgotPasswordPinDto, options) {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
633
|
-
});
|
|
539
|
+
async forgotPasswordPin(forgotPasswordPinDto, options) {
|
|
540
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPasswordPin(forgotPasswordPinDto, options);
|
|
541
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
634
542
|
},
|
|
635
543
|
/**
|
|
636
544
|
*
|
|
@@ -638,11 +546,9 @@ const UserApiFp = function (configuration) {
|
|
|
638
546
|
* @param {*} [options] Override http request option.
|
|
639
547
|
* @throws {RequiredError}
|
|
640
548
|
*/
|
|
641
|
-
getCurrentUser(options) {
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
645
|
-
});
|
|
549
|
+
async getCurrentUser(options) {
|
|
550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUser(options);
|
|
551
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
646
552
|
},
|
|
647
553
|
/**
|
|
648
554
|
*
|
|
@@ -650,11 +556,9 @@ const UserApiFp = function (configuration) {
|
|
|
650
556
|
* @param {*} [options] Override http request option.
|
|
651
557
|
* @throws {RequiredError}
|
|
652
558
|
*/
|
|
653
|
-
getPublicUsers(options) {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
657
|
-
});
|
|
559
|
+
async getPublicUsers(options) {
|
|
560
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicUsers(options);
|
|
561
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
658
562
|
},
|
|
659
563
|
/**
|
|
660
564
|
*
|
|
@@ -663,11 +567,9 @@ const UserApiFp = function (configuration) {
|
|
|
663
567
|
* @param {*} [options] Override http request option.
|
|
664
568
|
* @throws {RequiredError}
|
|
665
569
|
*/
|
|
666
|
-
getUserById(userId, options) {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
670
|
-
});
|
|
570
|
+
async getUserById(userId, options) {
|
|
571
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(userId, options);
|
|
572
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
671
573
|
},
|
|
672
574
|
/**
|
|
673
575
|
*
|
|
@@ -677,67 +579,45 @@ const UserApiFp = function (configuration) {
|
|
|
677
579
|
* @param {*} [options] Override http request option.
|
|
678
580
|
* @throws {RequiredError}
|
|
679
581
|
*/
|
|
680
|
-
getUsers(isHidden, isDisabled, options) {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
684
|
-
});
|
|
582
|
+
async getUsers(isHidden, isDisabled, options) {
|
|
583
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUsers(isHidden, isDisabled, options);
|
|
584
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
685
585
|
},
|
|
686
586
|
/**
|
|
687
587
|
*
|
|
688
588
|
* @summary Updates a user.
|
|
689
|
-
* @param {string} userId The user id.
|
|
690
589
|
* @param {UserDto} userDto The updated user model.
|
|
590
|
+
* @param {string} [userId] The user id.
|
|
691
591
|
* @param {*} [options] Override http request option.
|
|
692
592
|
* @throws {RequiredError}
|
|
693
593
|
*/
|
|
694
|
-
updateUser(
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
698
|
-
});
|
|
594
|
+
async updateUser(userDto, userId, options) {
|
|
595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(userDto, userId, options);
|
|
596
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
699
597
|
},
|
|
700
598
|
/**
|
|
701
599
|
*
|
|
702
600
|
* @summary Updates a user configuration.
|
|
703
|
-
* @param {string} userId The user id.
|
|
704
601
|
* @param {UserConfiguration} userConfiguration The new user configuration.
|
|
602
|
+
* @param {string} [userId] The user id.
|
|
705
603
|
* @param {*} [options] Override http request option.
|
|
706
604
|
* @throws {RequiredError}
|
|
707
605
|
*/
|
|
708
|
-
updateUserConfiguration(
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
712
|
-
});
|
|
713
|
-
},
|
|
714
|
-
/**
|
|
715
|
-
*
|
|
716
|
-
* @summary Updates a user\'s easy password.
|
|
717
|
-
* @param {string} userId The user id.
|
|
718
|
-
* @param {UpdateUserEasyPassword} updateUserEasyPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request.
|
|
719
|
-
* @param {*} [options] Override http request option.
|
|
720
|
-
* @throws {RequiredError}
|
|
721
|
-
*/
|
|
722
|
-
updateUserEasyPassword(userId, updateUserEasyPassword, options) {
|
|
723
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
724
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserEasyPassword(userId, updateUserEasyPassword, options);
|
|
725
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
726
|
-
});
|
|
606
|
+
async updateUserConfiguration(userConfiguration, userId, options) {
|
|
607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserConfiguration(userConfiguration, userId, options);
|
|
608
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
727
609
|
},
|
|
728
610
|
/**
|
|
729
611
|
*
|
|
730
612
|
* @summary Updates a user\'s password.
|
|
731
|
-
* @param {
|
|
732
|
-
* @param {
|
|
613
|
+
* @param {UpdateUserPassword} updateUserPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Nullable{System.Guid},Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request.
|
|
614
|
+
* @param {string} [userId] The user id.
|
|
733
615
|
* @param {*} [options] Override http request option.
|
|
734
616
|
* @throws {RequiredError}
|
|
735
617
|
*/
|
|
736
|
-
updateUserPassword(
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
740
|
-
});
|
|
618
|
+
async updateUserPassword(updateUserPassword, userId, options) {
|
|
619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPassword(updateUserPassword, userId, options);
|
|
620
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
741
621
|
},
|
|
742
622
|
/**
|
|
743
623
|
*
|
|
@@ -747,11 +627,9 @@ const UserApiFp = function (configuration) {
|
|
|
747
627
|
* @param {*} [options] Override http request option.
|
|
748
628
|
* @throws {RequiredError}
|
|
749
629
|
*/
|
|
750
|
-
updateUserPolicy(userId, userPolicy, options) {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
754
|
-
});
|
|
630
|
+
async updateUserPolicy(userId, userPolicy, options) {
|
|
631
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPolicy(userId, userPolicy, options);
|
|
632
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
755
633
|
},
|
|
756
634
|
};
|
|
757
635
|
};
|
|
@@ -762,18 +640,6 @@ const UserApiFp = function (configuration) {
|
|
|
762
640
|
const UserApiFactory = function (configuration, basePath, axios) {
|
|
763
641
|
const localVarFp = UserApiFp(configuration);
|
|
764
642
|
return {
|
|
765
|
-
/**
|
|
766
|
-
*
|
|
767
|
-
* @summary Authenticates a user.
|
|
768
|
-
* @param {string} userId The user id.
|
|
769
|
-
* @param {string} pw The password as plain text.
|
|
770
|
-
* @param {string} [password] The password sha1-hash.
|
|
771
|
-
* @param {*} [options] Override http request option.
|
|
772
|
-
* @throws {RequiredError}
|
|
773
|
-
*/
|
|
774
|
-
authenticateUser(userId, pw, password, options) {
|
|
775
|
-
return localVarFp.authenticateUser(userId, pw, password, options).then((request) => request(axios, basePath));
|
|
776
|
-
},
|
|
777
643
|
/**
|
|
778
644
|
*
|
|
779
645
|
* @summary Authenticates a user by name.
|
|
@@ -876,46 +742,35 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
876
742
|
/**
|
|
877
743
|
*
|
|
878
744
|
* @summary Updates a user.
|
|
879
|
-
* @param {string} userId The user id.
|
|
880
745
|
* @param {UserDto} userDto The updated user model.
|
|
746
|
+
* @param {string} [userId] The user id.
|
|
881
747
|
* @param {*} [options] Override http request option.
|
|
882
748
|
* @throws {RequiredError}
|
|
883
749
|
*/
|
|
884
|
-
updateUser(
|
|
885
|
-
return localVarFp.updateUser(
|
|
750
|
+
updateUser(userDto, userId, options) {
|
|
751
|
+
return localVarFp.updateUser(userDto, userId, options).then((request) => request(axios, basePath));
|
|
886
752
|
},
|
|
887
753
|
/**
|
|
888
754
|
*
|
|
889
755
|
* @summary Updates a user configuration.
|
|
890
|
-
* @param {string} userId The user id.
|
|
891
756
|
* @param {UserConfiguration} userConfiguration The new user configuration.
|
|
757
|
+
* @param {string} [userId] The user id.
|
|
892
758
|
* @param {*} [options] Override http request option.
|
|
893
759
|
* @throws {RequiredError}
|
|
894
760
|
*/
|
|
895
|
-
updateUserConfiguration(
|
|
896
|
-
return localVarFp.updateUserConfiguration(
|
|
897
|
-
},
|
|
898
|
-
/**
|
|
899
|
-
*
|
|
900
|
-
* @summary Updates a user\'s easy password.
|
|
901
|
-
* @param {string} userId The user id.
|
|
902
|
-
* @param {UpdateUserEasyPassword} updateUserEasyPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserEasyPassword(System.Guid,Jellyfin.Api.Models.UserDtos.UpdateUserEasyPassword) request.
|
|
903
|
-
* @param {*} [options] Override http request option.
|
|
904
|
-
* @throws {RequiredError}
|
|
905
|
-
*/
|
|
906
|
-
updateUserEasyPassword(userId, updateUserEasyPassword, options) {
|
|
907
|
-
return localVarFp.updateUserEasyPassword(userId, updateUserEasyPassword, options).then((request) => request(axios, basePath));
|
|
761
|
+
updateUserConfiguration(userConfiguration, userId, options) {
|
|
762
|
+
return localVarFp.updateUserConfiguration(userConfiguration, userId, options).then((request) => request(axios, basePath));
|
|
908
763
|
},
|
|
909
764
|
/**
|
|
910
765
|
*
|
|
911
766
|
* @summary Updates a user\'s password.
|
|
912
|
-
* @param {
|
|
913
|
-
* @param {
|
|
767
|
+
* @param {UpdateUserPassword} updateUserPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Nullable{System.Guid},Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request.
|
|
768
|
+
* @param {string} [userId] The user id.
|
|
914
769
|
* @param {*} [options] Override http request option.
|
|
915
770
|
* @throws {RequiredError}
|
|
916
771
|
*/
|
|
917
|
-
updateUserPassword(
|
|
918
|
-
return localVarFp.updateUserPassword(
|
|
772
|
+
updateUserPassword(updateUserPassword, userId, options) {
|
|
773
|
+
return localVarFp.updateUserPassword(updateUserPassword, userId, options).then((request) => request(axios, basePath));
|
|
919
774
|
},
|
|
920
775
|
/**
|
|
921
776
|
*
|
|
@@ -937,17 +792,6 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
937
792
|
* @extends {BaseAPI}
|
|
938
793
|
*/
|
|
939
794
|
class UserApi extends BaseAPI {
|
|
940
|
-
/**
|
|
941
|
-
*
|
|
942
|
-
* @summary Authenticates a user.
|
|
943
|
-
* @param {UserApiAuthenticateUserRequest} requestParameters Request parameters.
|
|
944
|
-
* @param {*} [options] Override http request option.
|
|
945
|
-
* @throws {RequiredError}
|
|
946
|
-
* @memberof UserApi
|
|
947
|
-
*/
|
|
948
|
-
authenticateUser(requestParameters, options) {
|
|
949
|
-
return UserApiFp(this.configuration).authenticateUser(requestParameters.userId, requestParameters.pw, requestParameters.password, options).then((request) => request(this.axios, this.basePath));
|
|
950
|
-
}
|
|
951
795
|
/**
|
|
952
796
|
*
|
|
953
797
|
* @summary Authenticates a user by name.
|
|
@@ -1065,7 +909,7 @@ class UserApi extends BaseAPI {
|
|
|
1065
909
|
* @memberof UserApi
|
|
1066
910
|
*/
|
|
1067
911
|
updateUser(requestParameters, options) {
|
|
1068
|
-
return UserApiFp(this.configuration).updateUser(requestParameters.
|
|
912
|
+
return UserApiFp(this.configuration).updateUser(requestParameters.userDto, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1069
913
|
}
|
|
1070
914
|
/**
|
|
1071
915
|
*
|
|
@@ -1076,18 +920,7 @@ class UserApi extends BaseAPI {
|
|
|
1076
920
|
* @memberof UserApi
|
|
1077
921
|
*/
|
|
1078
922
|
updateUserConfiguration(requestParameters, options) {
|
|
1079
|
-
return UserApiFp(this.configuration).updateUserConfiguration(requestParameters.
|
|
1080
|
-
}
|
|
1081
|
-
/**
|
|
1082
|
-
*
|
|
1083
|
-
* @summary Updates a user\'s easy password.
|
|
1084
|
-
* @param {UserApiUpdateUserEasyPasswordRequest} requestParameters Request parameters.
|
|
1085
|
-
* @param {*} [options] Override http request option.
|
|
1086
|
-
* @throws {RequiredError}
|
|
1087
|
-
* @memberof UserApi
|
|
1088
|
-
*/
|
|
1089
|
-
updateUserEasyPassword(requestParameters, options) {
|
|
1090
|
-
return UserApiFp(this.configuration).updateUserEasyPassword(requestParameters.userId, requestParameters.updateUserEasyPassword, options).then((request) => request(this.axios, this.basePath));
|
|
923
|
+
return UserApiFp(this.configuration).updateUserConfiguration(requestParameters.userConfiguration, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1091
924
|
}
|
|
1092
925
|
/**
|
|
1093
926
|
*
|
|
@@ -1098,7 +931,7 @@ class UserApi extends BaseAPI {
|
|
|
1098
931
|
* @memberof UserApi
|
|
1099
932
|
*/
|
|
1100
933
|
updateUserPassword(requestParameters, options) {
|
|
1101
|
-
return UserApiFp(this.configuration).updateUserPassword(requestParameters.
|
|
934
|
+
return UserApiFp(this.configuration).updateUserPassword(requestParameters.updateUserPassword, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1102
935
|
}
|
|
1103
936
|
/**
|
|
1104
937
|
*
|