@jellyfin/sdk 0.8.1 → 0.9.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 +9 -7
- package/lib/api.d.ts +1 -0
- package/lib/api.js +4 -4
- package/lib/discovery/recommended-server-discovery.js +24 -16
- package/lib/generated-client/api/activity-log-api.js +12 -1
- package/lib/generated-client/api/api-key-api.js +14 -3
- package/lib/generated-client/api/artists-api.d.ts +28 -26
- package/lib/generated-client/api/artists-api.js +26 -15
- package/lib/generated-client/api/audio-api.d.ts +8 -8
- package/lib/generated-client/api/audio-api.js +21 -10
- package/lib/generated-client/api/branding-api.js +14 -3
- package/lib/generated-client/api/channels-api.d.ts +9 -8
- package/lib/generated-client/api/channels-api.js +19 -8
- package/lib/generated-client/api/client-log-api.js +12 -1
- package/lib/generated-client/api/collection-api.js +14 -3
- package/lib/generated-client/api/configuration-api.d.ts +0 -47
- package/lib/generated-client/api/configuration-api.js +16 -71
- package/lib/generated-client/api/dashboard-api.js +13 -2
- package/lib/generated-client/api/devices-api.d.ts +3 -12
- package/lib/generated-client/api/devices-api.js +21 -16
- package/lib/generated-client/api/display-preferences-api.d.ts +22 -22
- package/lib/generated-client/api/display-preferences-api.js +29 -22
- package/lib/generated-client/api/dynamic-hls-api.d.ts +28 -10
- package/lib/generated-client/api/dynamic-hls-api.js +45 -22
- package/lib/generated-client/api/environment-api.js +17 -6
- package/lib/generated-client/api/filter-api.d.ts +9 -8
- package/lib/generated-client/api/filter-api.js +16 -5
- package/lib/generated-client/api/genres-api.d.ts +9 -8
- package/lib/generated-client/api/genres-api.js +16 -5
- package/lib/generated-client/api/hls-segment-api.js +16 -5
- package/lib/generated-client/api/image-api.d.ts +109 -1184
- package/lib/generated-client/api/image-api.js +218 -1056
- package/lib/generated-client/api/instant-mix-api.d.ts +35 -35
- package/lib/generated-client/api/instant-mix-api.js +79 -68
- package/lib/generated-client/api/item-lookup-api.js +22 -11
- package/lib/generated-client/api/item-refresh-api.js +12 -1
- package/lib/generated-client/api/item-update-api.js +14 -3
- package/lib/generated-client/api/items-api.d.ts +333 -1012
- package/lib/generated-client/api/items-api.js +178 -595
- package/lib/generated-client/api/library-api.d.ts +9 -8
- package/lib/generated-client/api/library-api.js +39 -28
- package/lib/generated-client/api/library-structure-api.js +19 -8
- package/lib/generated-client/api/live-tv-api.d.ts +17 -16
- package/lib/generated-client/api/live-tv-api.js +58 -47
- package/lib/generated-client/api/localization-api.js +15 -4
- package/lib/generated-client/api/lyrics-api.d.ts +344 -0
- package/lib/generated-client/api/{dlna-api.js → lyrics-api.js} +165 -125
- package/lib/generated-client/api/media-info-api.d.ts +7 -7
- package/lib/generated-client/api/media-info-api.js +19 -10
- package/lib/generated-client/api/movies-api.js +12 -1
- package/lib/generated-client/api/music-genres-api.d.ts +9 -8
- package/lib/generated-client/api/music-genres-api.js +16 -5
- package/lib/generated-client/api/package-api.js +17 -6
- package/lib/generated-client/api/persons-api.js +13 -2
- package/lib/generated-client/api/playlists-api.d.ts +315 -36
- package/lib/generated-client/api/playlists-api.js +395 -29
- package/lib/generated-client/api/playstate-api.d.ts +41 -68
- package/lib/generated-client/api/playstate-api.js +74 -81
- package/lib/generated-client/api/plugins-api.js +20 -9
- package/lib/generated-client/api/quick-connect-api.d.ts +46 -37
- package/lib/generated-client/api/quick-connect-api.js +67 -50
- package/lib/generated-client/api/remote-image-api.js +14 -3
- package/lib/generated-client/api/scheduled-tasks-api.js +16 -5
- package/lib/generated-client/api/search-api.d.ts +41 -40
- package/lib/generated-client/api/search-api.js +29 -18
- package/lib/generated-client/api/session-api.d.ts +9 -17
- package/lib/generated-client/api/session-api.js +35 -30
- package/lib/generated-client/api/startup-api.js +18 -7
- package/lib/generated-client/api/studios-api.js +13 -2
- package/lib/generated-client/api/subtitle-api.d.ts +7 -7
- package/lib/generated-client/api/subtitle-api.js +33 -22
- package/lib/generated-client/api/suggestions-api.d.ts +14 -13
- package/lib/generated-client/api/suggestions-api.js +24 -13
- package/lib/generated-client/api/sync-play-api.js +32 -21
- package/lib/generated-client/api/system-api.js +21 -10
- package/lib/generated-client/api/time-sync-api.js +12 -1
- package/lib/generated-client/api/tmdb-api.js +12 -1
- package/lib/generated-client/api/trailers-api.d.ts +35 -33
- package/lib/generated-client/api/trailers-api.js +33 -22
- package/lib/generated-client/api/trickplay-api.d.ts +176 -0
- package/lib/generated-client/api/trickplay-api.js +213 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +25 -15
- package/lib/generated-client/api/tv-shows-api.js +32 -15
- package/lib/generated-client/api/universal-audio-api.d.ts +17 -16
- package/lib/generated-client/api/universal-audio-api.js +19 -8
- package/lib/generated-client/api/user-api.d.ts +35 -155
- package/lib/generated-client/api/user-api.js +65 -203
- package/lib/generated-client/api/user-library-api.d.ts +100 -100
- package/lib/generated-client/api/user-library-api.js +136 -125
- package/lib/generated-client/api/user-views-api.d.ts +22 -21
- package/lib/generated-client/api/user-views-api.js +33 -22
- package/lib/generated-client/api/video-attachments-api.js +12 -1
- package/lib/generated-client/api/videos-api.js +18 -7
- package/lib/generated-client/api/years-api.d.ts +15 -13
- package/lib/generated-client/api/years-api.js +19 -8
- package/lib/generated-client/api.d.ts +2 -4
- package/lib/generated-client/base.js +13 -0
- package/lib/generated-client/common.js +11 -0
- 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 +20 -17
- 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/node_modules/tslib/tslib.es6.js +9 -2
- 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 +103 -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 +19 -22
- 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/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,26 @@
|
|
|
1
1
|
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
|
-
import { assertParamExists, DUMMY_BASE_URL, setSearchParams,
|
|
3
|
+
import { assertParamExists, DUMMY_BASE_URL, setSearchParams, serializeDataIfNeeded, toPathString, setApiKeyToObject, createRequestFunction } from '../common.js';
|
|
4
4
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
5
|
|
|
6
6
|
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
* Jellyfin API
|
|
13
|
+
*
|
|
14
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
15
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
16
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
17
|
+
*/
|
|
7
18
|
/**
|
|
8
19
|
* UserApi - axios parameter creator
|
|
9
20
|
* @export
|
|
10
21
|
*/
|
|
11
22
|
const UserApiAxiosParamCreator = function (configuration) {
|
|
12
23
|
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
24
|
/**
|
|
53
25
|
*
|
|
54
26
|
* @summary Authenticates a user by name.
|
|
@@ -56,7 +28,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
56
28
|
* @param {*} [options] Override http request option.
|
|
57
29
|
* @throws {RequiredError}
|
|
58
30
|
*/
|
|
59
|
-
authenticateUserByName: (
|
|
31
|
+
authenticateUserByName: (authenticateUserByName_1, ...args_1) => __awaiter(this, [authenticateUserByName_1, ...args_1], void 0, function* (authenticateUserByName, options = {}) {
|
|
60
32
|
// verify required parameter 'authenticateUserByName' is not null or undefined
|
|
61
33
|
assertParamExists('authenticateUserByName', 'authenticateUserByName', authenticateUserByName);
|
|
62
34
|
const localVarPath = `/Users/AuthenticateByName`;
|
|
@@ -86,7 +58,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
86
58
|
* @param {*} [options] Override http request option.
|
|
87
59
|
* @throws {RequiredError}
|
|
88
60
|
*/
|
|
89
|
-
authenticateWithQuickConnect: (
|
|
61
|
+
authenticateWithQuickConnect: (quickConnectDto_1, ...args_2) => __awaiter(this, [quickConnectDto_1, ...args_2], void 0, function* (quickConnectDto, options = {}) {
|
|
90
62
|
// verify required parameter 'quickConnectDto' is not null or undefined
|
|
91
63
|
assertParamExists('authenticateWithQuickConnect', 'quickConnectDto', quickConnectDto);
|
|
92
64
|
const localVarPath = `/Users/AuthenticateWithQuickConnect`;
|
|
@@ -116,7 +88,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
116
88
|
* @param {*} [options] Override http request option.
|
|
117
89
|
* @throws {RequiredError}
|
|
118
90
|
*/
|
|
119
|
-
createUserByName: (
|
|
91
|
+
createUserByName: (createUserByName_1, ...args_3) => __awaiter(this, [createUserByName_1, ...args_3], void 0, function* (createUserByName, options = {}) {
|
|
120
92
|
// verify required parameter 'createUserByName' is not null or undefined
|
|
121
93
|
assertParamExists('createUserByName', 'createUserByName', createUserByName);
|
|
122
94
|
const localVarPath = `/Users/New`;
|
|
@@ -148,7 +120,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
148
120
|
* @param {*} [options] Override http request option.
|
|
149
121
|
* @throws {RequiredError}
|
|
150
122
|
*/
|
|
151
|
-
deleteUser: (
|
|
123
|
+
deleteUser: (userId_1, ...args_4) => __awaiter(this, [userId_1, ...args_4], void 0, function* (userId, options = {}) {
|
|
152
124
|
// verify required parameter 'userId' is not null or undefined
|
|
153
125
|
assertParamExists('deleteUser', 'userId', userId);
|
|
154
126
|
const localVarPath = `/Users/{userId}`
|
|
@@ -179,7 +151,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
179
151
|
* @param {*} [options] Override http request option.
|
|
180
152
|
* @throws {RequiredError}
|
|
181
153
|
*/
|
|
182
|
-
forgotPassword: (
|
|
154
|
+
forgotPassword: (forgotPasswordDto_1, ...args_5) => __awaiter(this, [forgotPasswordDto_1, ...args_5], void 0, function* (forgotPasswordDto, options = {}) {
|
|
183
155
|
// verify required parameter 'forgotPasswordDto' is not null or undefined
|
|
184
156
|
assertParamExists('forgotPassword', 'forgotPasswordDto', forgotPasswordDto);
|
|
185
157
|
const localVarPath = `/Users/ForgotPassword`;
|
|
@@ -209,7 +181,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
209
181
|
* @param {*} [options] Override http request option.
|
|
210
182
|
* @throws {RequiredError}
|
|
211
183
|
*/
|
|
212
|
-
forgotPasswordPin: (
|
|
184
|
+
forgotPasswordPin: (forgotPasswordPinDto_1, ...args_6) => __awaiter(this, [forgotPasswordPinDto_1, ...args_6], void 0, function* (forgotPasswordPinDto, options = {}) {
|
|
213
185
|
// verify required parameter 'forgotPasswordPinDto' is not null or undefined
|
|
214
186
|
assertParamExists('forgotPasswordPin', 'forgotPasswordPinDto', forgotPasswordPinDto);
|
|
215
187
|
const localVarPath = `/Users/ForgotPassword/Pin`;
|
|
@@ -238,7 +210,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
238
210
|
* @param {*} [options] Override http request option.
|
|
239
211
|
* @throws {RequiredError}
|
|
240
212
|
*/
|
|
241
|
-
getCurrentUser: (
|
|
213
|
+
getCurrentUser: (...args_7) => __awaiter(this, [...args_7], void 0, function* (options = {}) {
|
|
242
214
|
const localVarPath = `/Users/Me`;
|
|
243
215
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
216
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -265,7 +237,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
265
237
|
* @param {*} [options] Override http request option.
|
|
266
238
|
* @throws {RequiredError}
|
|
267
239
|
*/
|
|
268
|
-
getPublicUsers: (
|
|
240
|
+
getPublicUsers: (...args_8) => __awaiter(this, [...args_8], void 0, function* (options = {}) {
|
|
269
241
|
const localVarPath = `/Users/Public`;
|
|
270
242
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
271
243
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -291,7 +263,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
291
263
|
* @param {*} [options] Override http request option.
|
|
292
264
|
* @throws {RequiredError}
|
|
293
265
|
*/
|
|
294
|
-
getUserById: (
|
|
266
|
+
getUserById: (userId_2, ...args_9) => __awaiter(this, [userId_2, ...args_9], void 0, function* (userId, options = {}) {
|
|
295
267
|
// verify required parameter 'userId' is not null or undefined
|
|
296
268
|
assertParamExists('getUserById', 'userId', userId);
|
|
297
269
|
const localVarPath = `/Users/{userId}`
|
|
@@ -323,7 +295,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
323
295
|
* @param {*} [options] Override http request option.
|
|
324
296
|
* @throws {RequiredError}
|
|
325
297
|
*/
|
|
326
|
-
getUsers: (
|
|
298
|
+
getUsers: (isHidden_1, isDisabled_1, ...args_10) => __awaiter(this, [isHidden_1, isDisabled_1, ...args_10], void 0, function* (isHidden, isDisabled, options = {}) {
|
|
327
299
|
const localVarPath = `/Users`;
|
|
328
300
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
329
301
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -353,18 +325,15 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
353
325
|
/**
|
|
354
326
|
*
|
|
355
327
|
* @summary Updates a user.
|
|
356
|
-
* @param {string} userId The user id.
|
|
357
328
|
* @param {UserDto} userDto The updated user model.
|
|
329
|
+
* @param {string} [userId] The user id.
|
|
358
330
|
* @param {*} [options] Override http request option.
|
|
359
331
|
* @throws {RequiredError}
|
|
360
332
|
*/
|
|
361
|
-
updateUser: (
|
|
362
|
-
// verify required parameter 'userId' is not null or undefined
|
|
363
|
-
assertParamExists('updateUser', 'userId', userId);
|
|
333
|
+
updateUser: (userDto_1, userId_3, ...args_11) => __awaiter(this, [userDto_1, userId_3, ...args_11], void 0, function* (userDto, userId, options = {}) {
|
|
364
334
|
// verify required parameter 'userDto' is not null or undefined
|
|
365
335
|
assertParamExists('updateUser', 'userDto', userDto);
|
|
366
|
-
const localVarPath = `/Users
|
|
367
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
336
|
+
const localVarPath = `/Users`;
|
|
368
337
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
369
338
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
370
339
|
let baseOptions;
|
|
@@ -376,6 +345,9 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
376
345
|
const localVarQueryParameter = {};
|
|
377
346
|
// authentication CustomAuthentication required
|
|
378
347
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
348
|
+
if (userId !== undefined) {
|
|
349
|
+
localVarQueryParameter['userId'] = userId;
|
|
350
|
+
}
|
|
379
351
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
380
352
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
381
353
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -389,18 +361,15 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
389
361
|
/**
|
|
390
362
|
*
|
|
391
363
|
* @summary Updates a user configuration.
|
|
392
|
-
* @param {string} userId The user id.
|
|
393
364
|
* @param {UserConfiguration} userConfiguration The new user configuration.
|
|
365
|
+
* @param {string} [userId] The user id.
|
|
394
366
|
* @param {*} [options] Override http request option.
|
|
395
367
|
* @throws {RequiredError}
|
|
396
368
|
*/
|
|
397
|
-
updateUserConfiguration: (
|
|
398
|
-
// verify required parameter 'userId' is not null or undefined
|
|
399
|
-
assertParamExists('updateUserConfiguration', 'userId', userId);
|
|
369
|
+
updateUserConfiguration: (userConfiguration_1, userId_4, ...args_12) => __awaiter(this, [userConfiguration_1, userId_4, ...args_12], void 0, function* (userConfiguration, userId, options = {}) {
|
|
400
370
|
// verify required parameter 'userConfiguration' is not null or undefined
|
|
401
371
|
assertParamExists('updateUserConfiguration', 'userConfiguration', userConfiguration);
|
|
402
|
-
const localVarPath = `/Users/
|
|
403
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
372
|
+
const localVarPath = `/Users/Configuration`;
|
|
404
373
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
405
374
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
406
375
|
let baseOptions;
|
|
@@ -412,47 +381,14 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
412
381
|
const localVarQueryParameter = {};
|
|
413
382
|
// authentication CustomAuthentication required
|
|
414
383
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
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;
|
|
384
|
+
if (userId !== undefined) {
|
|
385
|
+
localVarQueryParameter['userId'] = userId;
|
|
445
386
|
}
|
|
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
387
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
452
388
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
453
389
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
454
390
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
455
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
391
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userConfiguration, localVarRequestOptions, configuration);
|
|
456
392
|
return {
|
|
457
393
|
url: toPathString(localVarUrlObj),
|
|
458
394
|
options: localVarRequestOptions,
|
|
@@ -461,18 +397,15 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
461
397
|
/**
|
|
462
398
|
*
|
|
463
399
|
* @summary Updates a user\'s password.
|
|
464
|
-
* @param {
|
|
465
|
-
* @param {
|
|
400
|
+
* @param {UpdateUserPassword} updateUserPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Nullable{System.Guid},Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request.
|
|
401
|
+
* @param {string} [userId] The user id.
|
|
466
402
|
* @param {*} [options] Override http request option.
|
|
467
403
|
* @throws {RequiredError}
|
|
468
404
|
*/
|
|
469
|
-
updateUserPassword: (
|
|
470
|
-
// verify required parameter 'userId' is not null or undefined
|
|
471
|
-
assertParamExists('updateUserPassword', 'userId', userId);
|
|
405
|
+
updateUserPassword: (updateUserPassword_1, userId_5, ...args_13) => __awaiter(this, [updateUserPassword_1, userId_5, ...args_13], void 0, function* (updateUserPassword, userId, options = {}) {
|
|
472
406
|
// verify required parameter 'updateUserPassword' is not null or undefined
|
|
473
407
|
assertParamExists('updateUserPassword', 'updateUserPassword', updateUserPassword);
|
|
474
|
-
const localVarPath = `/Users/
|
|
475
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
408
|
+
const localVarPath = `/Users/Password`;
|
|
476
409
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
477
410
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
478
411
|
let baseOptions;
|
|
@@ -484,6 +417,9 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
484
417
|
const localVarQueryParameter = {};
|
|
485
418
|
// authentication CustomAuthentication required
|
|
486
419
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
420
|
+
if (userId !== undefined) {
|
|
421
|
+
localVarQueryParameter['userId'] = userId;
|
|
422
|
+
}
|
|
487
423
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
488
424
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
489
425
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -502,7 +438,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
502
438
|
* @param {*} [options] Override http request option.
|
|
503
439
|
* @throws {RequiredError}
|
|
504
440
|
*/
|
|
505
|
-
updateUserPolicy: (
|
|
441
|
+
updateUserPolicy: (userId_6, userPolicy_1, ...args_14) => __awaiter(this, [userId_6, userPolicy_1, ...args_14], void 0, function* (userId, userPolicy, options = {}) {
|
|
506
442
|
// verify required parameter 'userId' is not null or undefined
|
|
507
443
|
assertParamExists('updateUserPolicy', 'userId', userId);
|
|
508
444
|
// verify required parameter 'userPolicy' is not null or undefined
|
|
@@ -539,21 +475,6 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
539
475
|
const UserApiFp = function (configuration) {
|
|
540
476
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
541
477
|
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
478
|
/**
|
|
558
479
|
*
|
|
559
480
|
* @summary Authenticates a user by name.
|
|
@@ -686,56 +607,42 @@ const UserApiFp = function (configuration) {
|
|
|
686
607
|
/**
|
|
687
608
|
*
|
|
688
609
|
* @summary Updates a user.
|
|
689
|
-
* @param {string} userId The user id.
|
|
690
610
|
* @param {UserDto} userDto The updated user model.
|
|
611
|
+
* @param {string} [userId] The user id.
|
|
691
612
|
* @param {*} [options] Override http request option.
|
|
692
613
|
* @throws {RequiredError}
|
|
693
614
|
*/
|
|
694
|
-
updateUser(
|
|
615
|
+
updateUser(userDto, userId, options) {
|
|
695
616
|
return __awaiter(this, void 0, void 0, function* () {
|
|
696
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(
|
|
617
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(userDto, userId, options);
|
|
697
618
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
698
619
|
});
|
|
699
620
|
},
|
|
700
621
|
/**
|
|
701
622
|
*
|
|
702
623
|
* @summary Updates a user configuration.
|
|
703
|
-
* @param {string} userId The user id.
|
|
704
624
|
* @param {UserConfiguration} userConfiguration The new user configuration.
|
|
625
|
+
* @param {string} [userId] The user id.
|
|
705
626
|
* @param {*} [options] Override http request option.
|
|
706
627
|
* @throws {RequiredError}
|
|
707
628
|
*/
|
|
708
|
-
updateUserConfiguration(
|
|
629
|
+
updateUserConfiguration(userConfiguration, userId, options) {
|
|
709
630
|
return __awaiter(this, void 0, void 0, function* () {
|
|
710
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserConfiguration(
|
|
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);
|
|
631
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserConfiguration(userConfiguration, userId, options);
|
|
725
632
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
726
633
|
});
|
|
727
634
|
},
|
|
728
635
|
/**
|
|
729
636
|
*
|
|
730
637
|
* @summary Updates a user\'s password.
|
|
731
|
-
* @param {
|
|
732
|
-
* @param {
|
|
638
|
+
* @param {UpdateUserPassword} updateUserPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Nullable{System.Guid},Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request.
|
|
639
|
+
* @param {string} [userId] The user id.
|
|
733
640
|
* @param {*} [options] Override http request option.
|
|
734
641
|
* @throws {RequiredError}
|
|
735
642
|
*/
|
|
736
|
-
updateUserPassword(
|
|
643
|
+
updateUserPassword(updateUserPassword, userId, options) {
|
|
737
644
|
return __awaiter(this, void 0, void 0, function* () {
|
|
738
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPassword(
|
|
645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPassword(updateUserPassword, userId, options);
|
|
739
646
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
740
647
|
});
|
|
741
648
|
},
|
|
@@ -762,18 +669,6 @@ const UserApiFp = function (configuration) {
|
|
|
762
669
|
const UserApiFactory = function (configuration, basePath, axios) {
|
|
763
670
|
const localVarFp = UserApiFp(configuration);
|
|
764
671
|
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
672
|
/**
|
|
778
673
|
*
|
|
779
674
|
* @summary Authenticates a user by name.
|
|
@@ -876,46 +771,35 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
876
771
|
/**
|
|
877
772
|
*
|
|
878
773
|
* @summary Updates a user.
|
|
879
|
-
* @param {string} userId The user id.
|
|
880
774
|
* @param {UserDto} userDto The updated user model.
|
|
775
|
+
* @param {string} [userId] The user id.
|
|
881
776
|
* @param {*} [options] Override http request option.
|
|
882
777
|
* @throws {RequiredError}
|
|
883
778
|
*/
|
|
884
|
-
updateUser(
|
|
885
|
-
return localVarFp.updateUser(
|
|
779
|
+
updateUser(userDto, userId, options) {
|
|
780
|
+
return localVarFp.updateUser(userDto, userId, options).then((request) => request(axios, basePath));
|
|
886
781
|
},
|
|
887
782
|
/**
|
|
888
783
|
*
|
|
889
784
|
* @summary Updates a user configuration.
|
|
890
|
-
* @param {string} userId The user id.
|
|
891
785
|
* @param {UserConfiguration} userConfiguration The new user configuration.
|
|
786
|
+
* @param {string} [userId] The user id.
|
|
892
787
|
* @param {*} [options] Override http request option.
|
|
893
788
|
* @throws {RequiredError}
|
|
894
789
|
*/
|
|
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));
|
|
790
|
+
updateUserConfiguration(userConfiguration, userId, options) {
|
|
791
|
+
return localVarFp.updateUserConfiguration(userConfiguration, userId, options).then((request) => request(axios, basePath));
|
|
908
792
|
},
|
|
909
793
|
/**
|
|
910
794
|
*
|
|
911
795
|
* @summary Updates a user\'s password.
|
|
912
|
-
* @param {
|
|
913
|
-
* @param {
|
|
796
|
+
* @param {UpdateUserPassword} updateUserPassword The M:Jellyfin.Api.Controllers.UserController.UpdateUserPassword(System.Nullable{System.Guid},Jellyfin.Api.Models.UserDtos.UpdateUserPassword) request.
|
|
797
|
+
* @param {string} [userId] The user id.
|
|
914
798
|
* @param {*} [options] Override http request option.
|
|
915
799
|
* @throws {RequiredError}
|
|
916
800
|
*/
|
|
917
|
-
updateUserPassword(
|
|
918
|
-
return localVarFp.updateUserPassword(
|
|
801
|
+
updateUserPassword(updateUserPassword, userId, options) {
|
|
802
|
+
return localVarFp.updateUserPassword(updateUserPassword, userId, options).then((request) => request(axios, basePath));
|
|
919
803
|
},
|
|
920
804
|
/**
|
|
921
805
|
*
|
|
@@ -937,17 +821,6 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
937
821
|
* @extends {BaseAPI}
|
|
938
822
|
*/
|
|
939
823
|
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
824
|
/**
|
|
952
825
|
*
|
|
953
826
|
* @summary Authenticates a user by name.
|
|
@@ -1065,7 +938,7 @@ class UserApi extends BaseAPI {
|
|
|
1065
938
|
* @memberof UserApi
|
|
1066
939
|
*/
|
|
1067
940
|
updateUser(requestParameters, options) {
|
|
1068
|
-
return UserApiFp(this.configuration).updateUser(requestParameters.
|
|
941
|
+
return UserApiFp(this.configuration).updateUser(requestParameters.userDto, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1069
942
|
}
|
|
1070
943
|
/**
|
|
1071
944
|
*
|
|
@@ -1076,18 +949,7 @@ class UserApi extends BaseAPI {
|
|
|
1076
949
|
* @memberof UserApi
|
|
1077
950
|
*/
|
|
1078
951
|
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));
|
|
952
|
+
return UserApiFp(this.configuration).updateUserConfiguration(requestParameters.userConfiguration, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1091
953
|
}
|
|
1092
954
|
/**
|
|
1093
955
|
*
|
|
@@ -1098,7 +960,7 @@ class UserApi extends BaseAPI {
|
|
|
1098
960
|
* @memberof UserApi
|
|
1099
961
|
*/
|
|
1100
962
|
updateUserPassword(requestParameters, options) {
|
|
1101
|
-
return UserApiFp(this.configuration).updateUserPassword(requestParameters.
|
|
963
|
+
return UserApiFp(this.configuration).updateUserPassword(requestParameters.updateUserPassword, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
1102
964
|
}
|
|
1103
965
|
/**
|
|
1104
966
|
*
|