@jellyfin/sdk 0.8.2 → 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 -4
- 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 +17 -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
|
@@ -4,6 +4,17 @@ import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams,
|
|
|
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
|
* UserLibraryApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -13,18 +24,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
13
24
|
/**
|
|
14
25
|
*
|
|
15
26
|
* @summary Deletes a user\'s saved personal rating for an item.
|
|
16
|
-
* @param {string} userId User id.
|
|
17
27
|
* @param {string} itemId Item id.
|
|
28
|
+
* @param {string} [userId] User id.
|
|
18
29
|
* @param {*} [options] Override http request option.
|
|
19
30
|
* @throws {RequiredError}
|
|
20
31
|
*/
|
|
21
|
-
deleteUserItemRating: (
|
|
22
|
-
// verify required parameter 'userId' is not null or undefined
|
|
23
|
-
assertParamExists('deleteUserItemRating', 'userId', userId);
|
|
32
|
+
deleteUserItemRating: (itemId_1, userId_1, ...args_1) => __awaiter(this, [itemId_1, userId_1, ...args_1], void 0, function* (itemId, userId, options = {}) {
|
|
24
33
|
// verify required parameter 'itemId' is not null or undefined
|
|
25
34
|
assertParamExists('deleteUserItemRating', 'itemId', itemId);
|
|
26
|
-
const localVarPath = `/
|
|
27
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
35
|
+
const localVarPath = `/UserItems/{itemId}/Rating`
|
|
28
36
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
29
37
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30
38
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -37,6 +45,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
37
45
|
const localVarQueryParameter = {};
|
|
38
46
|
// authentication CustomAuthentication required
|
|
39
47
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
48
|
+
if (userId !== undefined) {
|
|
49
|
+
localVarQueryParameter['userId'] = userId;
|
|
50
|
+
}
|
|
40
51
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41
52
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
42
53
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -48,18 +59,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
48
59
|
/**
|
|
49
60
|
*
|
|
50
61
|
* @summary Gets intros to play before the main media item plays.
|
|
51
|
-
* @param {string} userId User id.
|
|
52
62
|
* @param {string} itemId Item id.
|
|
63
|
+
* @param {string} [userId] User id.
|
|
53
64
|
* @param {*} [options] Override http request option.
|
|
54
65
|
* @throws {RequiredError}
|
|
55
66
|
*/
|
|
56
|
-
getIntros: (
|
|
57
|
-
// verify required parameter 'userId' is not null or undefined
|
|
58
|
-
assertParamExists('getIntros', 'userId', userId);
|
|
67
|
+
getIntros: (itemId_2, userId_2, ...args_2) => __awaiter(this, [itemId_2, userId_2, ...args_2], void 0, function* (itemId, userId, options = {}) {
|
|
59
68
|
// verify required parameter 'itemId' is not null or undefined
|
|
60
69
|
assertParamExists('getIntros', 'itemId', itemId);
|
|
61
|
-
const localVarPath = `/
|
|
62
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
70
|
+
const localVarPath = `/Items/{itemId}/Intros`
|
|
63
71
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
64
72
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
73
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -72,6 +80,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
72
80
|
const localVarQueryParameter = {};
|
|
73
81
|
// authentication CustomAuthentication required
|
|
74
82
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
83
|
+
if (userId !== undefined) {
|
|
84
|
+
localVarQueryParameter['userId'] = userId;
|
|
85
|
+
}
|
|
75
86
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
87
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
88
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -83,18 +94,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
83
94
|
/**
|
|
84
95
|
*
|
|
85
96
|
* @summary Gets an item from a user\'s library.
|
|
86
|
-
* @param {string} userId User id.
|
|
87
97
|
* @param {string} itemId Item id.
|
|
98
|
+
* @param {string} [userId] User id.
|
|
88
99
|
* @param {*} [options] Override http request option.
|
|
89
100
|
* @throws {RequiredError}
|
|
90
101
|
*/
|
|
91
|
-
getItem: (
|
|
92
|
-
// verify required parameter 'userId' is not null or undefined
|
|
93
|
-
assertParamExists('getItem', 'userId', userId);
|
|
102
|
+
getItem: (itemId_3, userId_3, ...args_3) => __awaiter(this, [itemId_3, userId_3, ...args_3], void 0, function* (itemId, userId, options = {}) {
|
|
94
103
|
// verify required parameter 'itemId' is not null or undefined
|
|
95
104
|
assertParamExists('getItem', 'itemId', itemId);
|
|
96
|
-
const localVarPath = `/
|
|
97
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
105
|
+
const localVarPath = `/Items/{itemId}`
|
|
98
106
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
99
107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
108
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -107,6 +115,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
107
115
|
const localVarQueryParameter = {};
|
|
108
116
|
// authentication CustomAuthentication required
|
|
109
117
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
118
|
+
if (userId !== undefined) {
|
|
119
|
+
localVarQueryParameter['userId'] = userId;
|
|
120
|
+
}
|
|
110
121
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
111
122
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
123
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -118,7 +129,7 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
118
129
|
/**
|
|
119
130
|
*
|
|
120
131
|
* @summary Gets latest media.
|
|
121
|
-
* @param {string} userId User id.
|
|
132
|
+
* @param {string} [userId] User id.
|
|
122
133
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
123
134
|
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
124
135
|
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -132,11 +143,8 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
132
143
|
* @param {*} [options] Override http request option.
|
|
133
144
|
* @throws {RequiredError}
|
|
134
145
|
*/
|
|
135
|
-
getLatestMedia: (
|
|
136
|
-
|
|
137
|
-
assertParamExists('getLatestMedia', 'userId', userId);
|
|
138
|
-
const localVarPath = `/Users/{userId}/Items/Latest`
|
|
139
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
146
|
+
getLatestMedia: (userId_4, parentId_1, fields_1, includeItemTypes_1, isPlayed_1, enableImages_1, imageTypeLimit_1, enableImageTypes_1, enableUserData_1, limit_1, groupItems_1, ...args_4) => __awaiter(this, [userId_4, parentId_1, fields_1, includeItemTypes_1, isPlayed_1, enableImages_1, imageTypeLimit_1, enableImageTypes_1, enableUserData_1, limit_1, groupItems_1, ...args_4], void 0, function* (userId, parentId, fields, includeItemTypes, isPlayed, enableImages, imageTypeLimit, enableImageTypes, enableUserData, limit, groupItems, options = {}) {
|
|
147
|
+
const localVarPath = `/Items/Latest`;
|
|
140
148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
142
150
|
let baseOptions;
|
|
@@ -148,6 +156,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
148
156
|
const localVarQueryParameter = {};
|
|
149
157
|
// authentication CustomAuthentication required
|
|
150
158
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
159
|
+
if (userId !== undefined) {
|
|
160
|
+
localVarQueryParameter['userId'] = userId;
|
|
161
|
+
}
|
|
151
162
|
if (parentId !== undefined) {
|
|
152
163
|
localVarQueryParameter['parentId'] = parentId;
|
|
153
164
|
}
|
|
@@ -189,18 +200,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
189
200
|
/**
|
|
190
201
|
*
|
|
191
202
|
* @summary Gets local trailers for an item.
|
|
192
|
-
* @param {string} userId User id.
|
|
193
203
|
* @param {string} itemId Item id.
|
|
204
|
+
* @param {string} [userId] User id.
|
|
194
205
|
* @param {*} [options] Override http request option.
|
|
195
206
|
* @throws {RequiredError}
|
|
196
207
|
*/
|
|
197
|
-
getLocalTrailers: (
|
|
198
|
-
// verify required parameter 'userId' is not null or undefined
|
|
199
|
-
assertParamExists('getLocalTrailers', 'userId', userId);
|
|
208
|
+
getLocalTrailers: (itemId_4, userId_5, ...args_5) => __awaiter(this, [itemId_4, userId_5, ...args_5], void 0, function* (itemId, userId, options = {}) {
|
|
200
209
|
// verify required parameter 'itemId' is not null or undefined
|
|
201
210
|
assertParamExists('getLocalTrailers', 'itemId', itemId);
|
|
202
|
-
const localVarPath = `/
|
|
203
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
211
|
+
const localVarPath = `/Items/{itemId}/LocalTrailers`
|
|
204
212
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
205
213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
214
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -213,6 +221,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
213
221
|
const localVarQueryParameter = {};
|
|
214
222
|
// authentication CustomAuthentication required
|
|
215
223
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
224
|
+
if (userId !== undefined) {
|
|
225
|
+
localVarQueryParameter['userId'] = userId;
|
|
226
|
+
}
|
|
216
227
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
217
228
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
229
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -224,15 +235,12 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
224
235
|
/**
|
|
225
236
|
*
|
|
226
237
|
* @summary Gets the root folder from a user\'s library.
|
|
227
|
-
* @param {string} userId User id.
|
|
238
|
+
* @param {string} [userId] User id.
|
|
228
239
|
* @param {*} [options] Override http request option.
|
|
229
240
|
* @throws {RequiredError}
|
|
230
241
|
*/
|
|
231
|
-
getRootFolder: (
|
|
232
|
-
|
|
233
|
-
assertParamExists('getRootFolder', 'userId', userId);
|
|
234
|
-
const localVarPath = `/Users/{userId}/Items/Root`
|
|
235
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
242
|
+
getRootFolder: (userId_6, ...args_6) => __awaiter(this, [userId_6, ...args_6], void 0, function* (userId, options = {}) {
|
|
243
|
+
const localVarPath = `/Items/Root`;
|
|
236
244
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
245
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
238
246
|
let baseOptions;
|
|
@@ -244,6 +252,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
244
252
|
const localVarQueryParameter = {};
|
|
245
253
|
// authentication CustomAuthentication required
|
|
246
254
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
255
|
+
if (userId !== undefined) {
|
|
256
|
+
localVarQueryParameter['userId'] = userId;
|
|
257
|
+
}
|
|
247
258
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
248
259
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
260
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -255,18 +266,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
255
266
|
/**
|
|
256
267
|
*
|
|
257
268
|
* @summary Gets special features for an item.
|
|
258
|
-
* @param {string} userId User id.
|
|
259
269
|
* @param {string} itemId Item id.
|
|
270
|
+
* @param {string} [userId] User id.
|
|
260
271
|
* @param {*} [options] Override http request option.
|
|
261
272
|
* @throws {RequiredError}
|
|
262
273
|
*/
|
|
263
|
-
getSpecialFeatures: (
|
|
264
|
-
// verify required parameter 'userId' is not null or undefined
|
|
265
|
-
assertParamExists('getSpecialFeatures', 'userId', userId);
|
|
274
|
+
getSpecialFeatures: (itemId_5, userId_7, ...args_7) => __awaiter(this, [itemId_5, userId_7, ...args_7], void 0, function* (itemId, userId, options = {}) {
|
|
266
275
|
// verify required parameter 'itemId' is not null or undefined
|
|
267
276
|
assertParamExists('getSpecialFeatures', 'itemId', itemId);
|
|
268
|
-
const localVarPath = `/
|
|
269
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
277
|
+
const localVarPath = `/Items/{itemId}/SpecialFeatures`
|
|
270
278
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
271
279
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
280
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -279,6 +287,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
279
287
|
const localVarQueryParameter = {};
|
|
280
288
|
// authentication CustomAuthentication required
|
|
281
289
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
290
|
+
if (userId !== undefined) {
|
|
291
|
+
localVarQueryParameter['userId'] = userId;
|
|
292
|
+
}
|
|
282
293
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
283
294
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
284
295
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -290,18 +301,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
290
301
|
/**
|
|
291
302
|
*
|
|
292
303
|
* @summary Marks an item as a favorite.
|
|
293
|
-
* @param {string} userId User id.
|
|
294
304
|
* @param {string} itemId Item id.
|
|
305
|
+
* @param {string} [userId] User id.
|
|
295
306
|
* @param {*} [options] Override http request option.
|
|
296
307
|
* @throws {RequiredError}
|
|
297
308
|
*/
|
|
298
|
-
markFavoriteItem: (
|
|
299
|
-
// verify required parameter 'userId' is not null or undefined
|
|
300
|
-
assertParamExists('markFavoriteItem', 'userId', userId);
|
|
309
|
+
markFavoriteItem: (itemId_6, userId_8, ...args_8) => __awaiter(this, [itemId_6, userId_8, ...args_8], void 0, function* (itemId, userId, options = {}) {
|
|
301
310
|
// verify required parameter 'itemId' is not null or undefined
|
|
302
311
|
assertParamExists('markFavoriteItem', 'itemId', itemId);
|
|
303
|
-
const localVarPath = `/
|
|
304
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
312
|
+
const localVarPath = `/UserFavoriteItems/{itemId}`
|
|
305
313
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
306
314
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
307
315
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -314,6 +322,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
314
322
|
const localVarQueryParameter = {};
|
|
315
323
|
// authentication CustomAuthentication required
|
|
316
324
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
325
|
+
if (userId !== undefined) {
|
|
326
|
+
localVarQueryParameter['userId'] = userId;
|
|
327
|
+
}
|
|
317
328
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
318
329
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
330
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -325,18 +336,15 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
325
336
|
/**
|
|
326
337
|
*
|
|
327
338
|
* @summary Unmarks item as a favorite.
|
|
328
|
-
* @param {string} userId User id.
|
|
329
339
|
* @param {string} itemId Item id.
|
|
340
|
+
* @param {string} [userId] User id.
|
|
330
341
|
* @param {*} [options] Override http request option.
|
|
331
342
|
* @throws {RequiredError}
|
|
332
343
|
*/
|
|
333
|
-
unmarkFavoriteItem: (
|
|
334
|
-
// verify required parameter 'userId' is not null or undefined
|
|
335
|
-
assertParamExists('unmarkFavoriteItem', 'userId', userId);
|
|
344
|
+
unmarkFavoriteItem: (itemId_7, userId_9, ...args_9) => __awaiter(this, [itemId_7, userId_9, ...args_9], void 0, function* (itemId, userId, options = {}) {
|
|
336
345
|
// verify required parameter 'itemId' is not null or undefined
|
|
337
346
|
assertParamExists('unmarkFavoriteItem', 'itemId', itemId);
|
|
338
|
-
const localVarPath = `/
|
|
339
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
347
|
+
const localVarPath = `/UserFavoriteItems/{itemId}`
|
|
340
348
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
341
349
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
342
350
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -349,6 +357,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
349
357
|
const localVarQueryParameter = {};
|
|
350
358
|
// authentication CustomAuthentication required
|
|
351
359
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
360
|
+
if (userId !== undefined) {
|
|
361
|
+
localVarQueryParameter['userId'] = userId;
|
|
362
|
+
}
|
|
352
363
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
353
364
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
365
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -360,19 +371,16 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
360
371
|
/**
|
|
361
372
|
*
|
|
362
373
|
* @summary Updates a user\'s rating for an item.
|
|
363
|
-
* @param {string} userId User id.
|
|
364
374
|
* @param {string} itemId Item id.
|
|
365
|
-
* @param {
|
|
375
|
+
* @param {string} [userId] User id.
|
|
376
|
+
* @param {boolean} [likes] Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Nullable{System.Guid},System.Guid,System.Nullable{System.Boolean}) is likes.
|
|
366
377
|
* @param {*} [options] Override http request option.
|
|
367
378
|
* @throws {RequiredError}
|
|
368
379
|
*/
|
|
369
|
-
updateUserItemRating: (
|
|
370
|
-
// verify required parameter 'userId' is not null or undefined
|
|
371
|
-
assertParamExists('updateUserItemRating', 'userId', userId);
|
|
380
|
+
updateUserItemRating: (itemId_8, userId_10, likes_1, ...args_10) => __awaiter(this, [itemId_8, userId_10, likes_1, ...args_10], void 0, function* (itemId, userId, likes, options = {}) {
|
|
372
381
|
// verify required parameter 'itemId' is not null or undefined
|
|
373
382
|
assertParamExists('updateUserItemRating', 'itemId', itemId);
|
|
374
|
-
const localVarPath = `/
|
|
375
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
383
|
+
const localVarPath = `/UserItems/{itemId}/Rating`
|
|
376
384
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
377
385
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
378
386
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -385,6 +393,9 @@ const UserLibraryApiAxiosParamCreator = function (configuration) {
|
|
|
385
393
|
const localVarQueryParameter = {};
|
|
386
394
|
// authentication CustomAuthentication required
|
|
387
395
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
396
|
+
if (userId !== undefined) {
|
|
397
|
+
localVarQueryParameter['userId'] = userId;
|
|
398
|
+
}
|
|
388
399
|
if (likes !== undefined) {
|
|
389
400
|
localVarQueryParameter['likes'] = likes;
|
|
390
401
|
}
|
|
@@ -408,49 +419,49 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
408
419
|
/**
|
|
409
420
|
*
|
|
410
421
|
* @summary Deletes a user\'s saved personal rating for an item.
|
|
411
|
-
* @param {string} userId User id.
|
|
412
422
|
* @param {string} itemId Item id.
|
|
423
|
+
* @param {string} [userId] User id.
|
|
413
424
|
* @param {*} [options] Override http request option.
|
|
414
425
|
* @throws {RequiredError}
|
|
415
426
|
*/
|
|
416
|
-
deleteUserItemRating(
|
|
427
|
+
deleteUserItemRating(itemId, userId, options) {
|
|
417
428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserItemRating(
|
|
429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserItemRating(itemId, userId, options);
|
|
419
430
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
420
431
|
});
|
|
421
432
|
},
|
|
422
433
|
/**
|
|
423
434
|
*
|
|
424
435
|
* @summary Gets intros to play before the main media item plays.
|
|
425
|
-
* @param {string} userId User id.
|
|
426
436
|
* @param {string} itemId Item id.
|
|
437
|
+
* @param {string} [userId] User id.
|
|
427
438
|
* @param {*} [options] Override http request option.
|
|
428
439
|
* @throws {RequiredError}
|
|
429
440
|
*/
|
|
430
|
-
getIntros(
|
|
441
|
+
getIntros(itemId, userId, options) {
|
|
431
442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntros(
|
|
443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntros(itemId, userId, options);
|
|
433
444
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
434
445
|
});
|
|
435
446
|
},
|
|
436
447
|
/**
|
|
437
448
|
*
|
|
438
449
|
* @summary Gets an item from a user\'s library.
|
|
439
|
-
* @param {string} userId User id.
|
|
440
450
|
* @param {string} itemId Item id.
|
|
451
|
+
* @param {string} [userId] User id.
|
|
441
452
|
* @param {*} [options] Override http request option.
|
|
442
453
|
* @throws {RequiredError}
|
|
443
454
|
*/
|
|
444
|
-
getItem(
|
|
455
|
+
getItem(itemId, userId, options) {
|
|
445
456
|
return __awaiter(this, void 0, void 0, function* () {
|
|
446
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getItem(
|
|
457
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getItem(itemId, userId, options);
|
|
447
458
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
448
459
|
});
|
|
449
460
|
},
|
|
450
461
|
/**
|
|
451
462
|
*
|
|
452
463
|
* @summary Gets latest media.
|
|
453
|
-
* @param {string} userId User id.
|
|
464
|
+
* @param {string} [userId] User id.
|
|
454
465
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
455
466
|
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
456
467
|
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -473,21 +484,21 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
473
484
|
/**
|
|
474
485
|
*
|
|
475
486
|
* @summary Gets local trailers for an item.
|
|
476
|
-
* @param {string} userId User id.
|
|
477
487
|
* @param {string} itemId Item id.
|
|
488
|
+
* @param {string} [userId] User id.
|
|
478
489
|
* @param {*} [options] Override http request option.
|
|
479
490
|
* @throws {RequiredError}
|
|
480
491
|
*/
|
|
481
|
-
getLocalTrailers(
|
|
492
|
+
getLocalTrailers(itemId, userId, options) {
|
|
482
493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLocalTrailers(
|
|
494
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLocalTrailers(itemId, userId, options);
|
|
484
495
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
485
496
|
});
|
|
486
497
|
},
|
|
487
498
|
/**
|
|
488
499
|
*
|
|
489
500
|
* @summary Gets the root folder from a user\'s library.
|
|
490
|
-
* @param {string} userId User id.
|
|
501
|
+
* @param {string} [userId] User id.
|
|
491
502
|
* @param {*} [options] Override http request option.
|
|
492
503
|
* @throws {RequiredError}
|
|
493
504
|
*/
|
|
@@ -500,57 +511,57 @@ const UserLibraryApiFp = function (configuration) {
|
|
|
500
511
|
/**
|
|
501
512
|
*
|
|
502
513
|
* @summary Gets special features for an item.
|
|
503
|
-
* @param {string} userId User id.
|
|
504
514
|
* @param {string} itemId Item id.
|
|
515
|
+
* @param {string} [userId] User id.
|
|
505
516
|
* @param {*} [options] Override http request option.
|
|
506
517
|
* @throws {RequiredError}
|
|
507
518
|
*/
|
|
508
|
-
getSpecialFeatures(
|
|
519
|
+
getSpecialFeatures(itemId, userId, options) {
|
|
509
520
|
return __awaiter(this, void 0, void 0, function* () {
|
|
510
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSpecialFeatures(
|
|
521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSpecialFeatures(itemId, userId, options);
|
|
511
522
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
512
523
|
});
|
|
513
524
|
},
|
|
514
525
|
/**
|
|
515
526
|
*
|
|
516
527
|
* @summary Marks an item as a favorite.
|
|
517
|
-
* @param {string} userId User id.
|
|
518
528
|
* @param {string} itemId Item id.
|
|
529
|
+
* @param {string} [userId] User id.
|
|
519
530
|
* @param {*} [options] Override http request option.
|
|
520
531
|
* @throws {RequiredError}
|
|
521
532
|
*/
|
|
522
|
-
markFavoriteItem(
|
|
533
|
+
markFavoriteItem(itemId, userId, options) {
|
|
523
534
|
return __awaiter(this, void 0, void 0, function* () {
|
|
524
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.markFavoriteItem(
|
|
535
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.markFavoriteItem(itemId, userId, options);
|
|
525
536
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
526
537
|
});
|
|
527
538
|
},
|
|
528
539
|
/**
|
|
529
540
|
*
|
|
530
541
|
* @summary Unmarks item as a favorite.
|
|
531
|
-
* @param {string} userId User id.
|
|
532
542
|
* @param {string} itemId Item id.
|
|
543
|
+
* @param {string} [userId] User id.
|
|
533
544
|
* @param {*} [options] Override http request option.
|
|
534
545
|
* @throws {RequiredError}
|
|
535
546
|
*/
|
|
536
|
-
unmarkFavoriteItem(
|
|
547
|
+
unmarkFavoriteItem(itemId, userId, options) {
|
|
537
548
|
return __awaiter(this, void 0, void 0, function* () {
|
|
538
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.unmarkFavoriteItem(
|
|
549
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unmarkFavoriteItem(itemId, userId, options);
|
|
539
550
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
540
551
|
});
|
|
541
552
|
},
|
|
542
553
|
/**
|
|
543
554
|
*
|
|
544
555
|
* @summary Updates a user\'s rating for an item.
|
|
545
|
-
* @param {string} userId User id.
|
|
546
556
|
* @param {string} itemId Item id.
|
|
547
|
-
* @param {
|
|
557
|
+
* @param {string} [userId] User id.
|
|
558
|
+
* @param {boolean} [likes] Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Nullable{System.Guid},System.Guid,System.Nullable{System.Boolean}) is likes.
|
|
548
559
|
* @param {*} [options] Override http request option.
|
|
549
560
|
* @throws {RequiredError}
|
|
550
561
|
*/
|
|
551
|
-
updateUserItemRating(
|
|
562
|
+
updateUserItemRating(itemId, userId, likes, options) {
|
|
552
563
|
return __awaiter(this, void 0, void 0, function* () {
|
|
553
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserItemRating(
|
|
564
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserItemRating(itemId, userId, likes, options);
|
|
554
565
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
555
566
|
});
|
|
556
567
|
},
|
|
@@ -566,40 +577,40 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
566
577
|
/**
|
|
567
578
|
*
|
|
568
579
|
* @summary Deletes a user\'s saved personal rating for an item.
|
|
569
|
-
* @param {string} userId User id.
|
|
570
580
|
* @param {string} itemId Item id.
|
|
581
|
+
* @param {string} [userId] User id.
|
|
571
582
|
* @param {*} [options] Override http request option.
|
|
572
583
|
* @throws {RequiredError}
|
|
573
584
|
*/
|
|
574
|
-
deleteUserItemRating(
|
|
575
|
-
return localVarFp.deleteUserItemRating(
|
|
585
|
+
deleteUserItemRating(itemId, userId, options) {
|
|
586
|
+
return localVarFp.deleteUserItemRating(itemId, userId, options).then((request) => request(axios, basePath));
|
|
576
587
|
},
|
|
577
588
|
/**
|
|
578
589
|
*
|
|
579
590
|
* @summary Gets intros to play before the main media item plays.
|
|
580
|
-
* @param {string} userId User id.
|
|
581
591
|
* @param {string} itemId Item id.
|
|
592
|
+
* @param {string} [userId] User id.
|
|
582
593
|
* @param {*} [options] Override http request option.
|
|
583
594
|
* @throws {RequiredError}
|
|
584
595
|
*/
|
|
585
|
-
getIntros(
|
|
586
|
-
return localVarFp.getIntros(
|
|
596
|
+
getIntros(itemId, userId, options) {
|
|
597
|
+
return localVarFp.getIntros(itemId, userId, options).then((request) => request(axios, basePath));
|
|
587
598
|
},
|
|
588
599
|
/**
|
|
589
600
|
*
|
|
590
601
|
* @summary Gets an item from a user\'s library.
|
|
591
|
-
* @param {string} userId User id.
|
|
592
602
|
* @param {string} itemId Item id.
|
|
603
|
+
* @param {string} [userId] User id.
|
|
593
604
|
* @param {*} [options] Override http request option.
|
|
594
605
|
* @throws {RequiredError}
|
|
595
606
|
*/
|
|
596
|
-
getItem(
|
|
597
|
-
return localVarFp.getItem(
|
|
607
|
+
getItem(itemId, userId, options) {
|
|
608
|
+
return localVarFp.getItem(itemId, userId, options).then((request) => request(axios, basePath));
|
|
598
609
|
},
|
|
599
610
|
/**
|
|
600
611
|
*
|
|
601
612
|
* @summary Gets latest media.
|
|
602
|
-
* @param {string} userId User id.
|
|
613
|
+
* @param {string} [userId] User id.
|
|
603
614
|
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
|
|
604
615
|
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output.
|
|
605
616
|
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
|
|
@@ -619,18 +630,18 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
619
630
|
/**
|
|
620
631
|
*
|
|
621
632
|
* @summary Gets local trailers for an item.
|
|
622
|
-
* @param {string} userId User id.
|
|
623
633
|
* @param {string} itemId Item id.
|
|
634
|
+
* @param {string} [userId] User id.
|
|
624
635
|
* @param {*} [options] Override http request option.
|
|
625
636
|
* @throws {RequiredError}
|
|
626
637
|
*/
|
|
627
|
-
getLocalTrailers(
|
|
628
|
-
return localVarFp.getLocalTrailers(
|
|
638
|
+
getLocalTrailers(itemId, userId, options) {
|
|
639
|
+
return localVarFp.getLocalTrailers(itemId, userId, options).then((request) => request(axios, basePath));
|
|
629
640
|
},
|
|
630
641
|
/**
|
|
631
642
|
*
|
|
632
643
|
* @summary Gets the root folder from a user\'s library.
|
|
633
|
-
* @param {string} userId User id.
|
|
644
|
+
* @param {string} [userId] User id.
|
|
634
645
|
* @param {*} [options] Override http request option.
|
|
635
646
|
* @throws {RequiredError}
|
|
636
647
|
*/
|
|
@@ -640,47 +651,47 @@ const UserLibraryApiFactory = function (configuration, basePath, axios) {
|
|
|
640
651
|
/**
|
|
641
652
|
*
|
|
642
653
|
* @summary Gets special features for an item.
|
|
643
|
-
* @param {string} userId User id.
|
|
644
654
|
* @param {string} itemId Item id.
|
|
655
|
+
* @param {string} [userId] User id.
|
|
645
656
|
* @param {*} [options] Override http request option.
|
|
646
657
|
* @throws {RequiredError}
|
|
647
658
|
*/
|
|
648
|
-
getSpecialFeatures(
|
|
649
|
-
return localVarFp.getSpecialFeatures(
|
|
659
|
+
getSpecialFeatures(itemId, userId, options) {
|
|
660
|
+
return localVarFp.getSpecialFeatures(itemId, userId, options).then((request) => request(axios, basePath));
|
|
650
661
|
},
|
|
651
662
|
/**
|
|
652
663
|
*
|
|
653
664
|
* @summary Marks an item as a favorite.
|
|
654
|
-
* @param {string} userId User id.
|
|
655
665
|
* @param {string} itemId Item id.
|
|
666
|
+
* @param {string} [userId] User id.
|
|
656
667
|
* @param {*} [options] Override http request option.
|
|
657
668
|
* @throws {RequiredError}
|
|
658
669
|
*/
|
|
659
|
-
markFavoriteItem(
|
|
660
|
-
return localVarFp.markFavoriteItem(
|
|
670
|
+
markFavoriteItem(itemId, userId, options) {
|
|
671
|
+
return localVarFp.markFavoriteItem(itemId, userId, options).then((request) => request(axios, basePath));
|
|
661
672
|
},
|
|
662
673
|
/**
|
|
663
674
|
*
|
|
664
675
|
* @summary Unmarks item as a favorite.
|
|
665
|
-
* @param {string} userId User id.
|
|
666
676
|
* @param {string} itemId Item id.
|
|
677
|
+
* @param {string} [userId] User id.
|
|
667
678
|
* @param {*} [options] Override http request option.
|
|
668
679
|
* @throws {RequiredError}
|
|
669
680
|
*/
|
|
670
|
-
unmarkFavoriteItem(
|
|
671
|
-
return localVarFp.unmarkFavoriteItem(
|
|
681
|
+
unmarkFavoriteItem(itemId, userId, options) {
|
|
682
|
+
return localVarFp.unmarkFavoriteItem(itemId, userId, options).then((request) => request(axios, basePath));
|
|
672
683
|
},
|
|
673
684
|
/**
|
|
674
685
|
*
|
|
675
686
|
* @summary Updates a user\'s rating for an item.
|
|
676
|
-
* @param {string} userId User id.
|
|
677
687
|
* @param {string} itemId Item id.
|
|
678
|
-
* @param {
|
|
688
|
+
* @param {string} [userId] User id.
|
|
689
|
+
* @param {boolean} [likes] Whether this M:Jellyfin.Api.Controllers.UserLibraryController.UpdateUserItemRating(System.Nullable{System.Guid},System.Guid,System.Nullable{System.Boolean}) is likes.
|
|
679
690
|
* @param {*} [options] Override http request option.
|
|
680
691
|
* @throws {RequiredError}
|
|
681
692
|
*/
|
|
682
|
-
updateUserItemRating(
|
|
683
|
-
return localVarFp.updateUserItemRating(
|
|
693
|
+
updateUserItemRating(itemId, userId, likes, options) {
|
|
694
|
+
return localVarFp.updateUserItemRating(itemId, userId, likes, options).then((request) => request(axios, basePath));
|
|
684
695
|
},
|
|
685
696
|
};
|
|
686
697
|
};
|
|
@@ -700,7 +711,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
700
711
|
* @memberof UserLibraryApi
|
|
701
712
|
*/
|
|
702
713
|
deleteUserItemRating(requestParameters, options) {
|
|
703
|
-
return UserLibraryApiFp(this.configuration).deleteUserItemRating(requestParameters.
|
|
714
|
+
return UserLibraryApiFp(this.configuration).deleteUserItemRating(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
704
715
|
}
|
|
705
716
|
/**
|
|
706
717
|
*
|
|
@@ -711,7 +722,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
711
722
|
* @memberof UserLibraryApi
|
|
712
723
|
*/
|
|
713
724
|
getIntros(requestParameters, options) {
|
|
714
|
-
return UserLibraryApiFp(this.configuration).getIntros(requestParameters.
|
|
725
|
+
return UserLibraryApiFp(this.configuration).getIntros(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
715
726
|
}
|
|
716
727
|
/**
|
|
717
728
|
*
|
|
@@ -722,7 +733,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
722
733
|
* @memberof UserLibraryApi
|
|
723
734
|
*/
|
|
724
735
|
getItem(requestParameters, options) {
|
|
725
|
-
return UserLibraryApiFp(this.configuration).getItem(requestParameters.
|
|
736
|
+
return UserLibraryApiFp(this.configuration).getItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
726
737
|
}
|
|
727
738
|
/**
|
|
728
739
|
*
|
|
@@ -732,7 +743,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
732
743
|
* @throws {RequiredError}
|
|
733
744
|
* @memberof UserLibraryApi
|
|
734
745
|
*/
|
|
735
|
-
getLatestMedia(requestParameters, options) {
|
|
746
|
+
getLatestMedia(requestParameters = {}, options) {
|
|
736
747
|
return UserLibraryApiFp(this.configuration).getLatestMedia(requestParameters.userId, requestParameters.parentId, requestParameters.fields, requestParameters.includeItemTypes, requestParameters.isPlayed, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.limit, requestParameters.groupItems, options).then((request) => request(this.axios, this.basePath));
|
|
737
748
|
}
|
|
738
749
|
/**
|
|
@@ -744,7 +755,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
744
755
|
* @memberof UserLibraryApi
|
|
745
756
|
*/
|
|
746
757
|
getLocalTrailers(requestParameters, options) {
|
|
747
|
-
return UserLibraryApiFp(this.configuration).getLocalTrailers(requestParameters.
|
|
758
|
+
return UserLibraryApiFp(this.configuration).getLocalTrailers(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
748
759
|
}
|
|
749
760
|
/**
|
|
750
761
|
*
|
|
@@ -754,7 +765,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
754
765
|
* @throws {RequiredError}
|
|
755
766
|
* @memberof UserLibraryApi
|
|
756
767
|
*/
|
|
757
|
-
getRootFolder(requestParameters, options) {
|
|
768
|
+
getRootFolder(requestParameters = {}, options) {
|
|
758
769
|
return UserLibraryApiFp(this.configuration).getRootFolder(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
759
770
|
}
|
|
760
771
|
/**
|
|
@@ -766,7 +777,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
766
777
|
* @memberof UserLibraryApi
|
|
767
778
|
*/
|
|
768
779
|
getSpecialFeatures(requestParameters, options) {
|
|
769
|
-
return UserLibraryApiFp(this.configuration).getSpecialFeatures(requestParameters.
|
|
780
|
+
return UserLibraryApiFp(this.configuration).getSpecialFeatures(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
770
781
|
}
|
|
771
782
|
/**
|
|
772
783
|
*
|
|
@@ -777,7 +788,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
777
788
|
* @memberof UserLibraryApi
|
|
778
789
|
*/
|
|
779
790
|
markFavoriteItem(requestParameters, options) {
|
|
780
|
-
return UserLibraryApiFp(this.configuration).markFavoriteItem(requestParameters.
|
|
791
|
+
return UserLibraryApiFp(this.configuration).markFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
781
792
|
}
|
|
782
793
|
/**
|
|
783
794
|
*
|
|
@@ -788,7 +799,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
788
799
|
* @memberof UserLibraryApi
|
|
789
800
|
*/
|
|
790
801
|
unmarkFavoriteItem(requestParameters, options) {
|
|
791
|
-
return UserLibraryApiFp(this.configuration).unmarkFavoriteItem(requestParameters.
|
|
802
|
+
return UserLibraryApiFp(this.configuration).unmarkFavoriteItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
792
803
|
}
|
|
793
804
|
/**
|
|
794
805
|
*
|
|
@@ -799,7 +810,7 @@ class UserLibraryApi extends BaseAPI {
|
|
|
799
810
|
* @memberof UserLibraryApi
|
|
800
811
|
*/
|
|
801
812
|
updateUserItemRating(requestParameters, options) {
|
|
802
|
-
return UserLibraryApiFp(this.configuration).updateUserItemRating(requestParameters.
|
|
813
|
+
return UserLibraryApiFp(this.configuration).updateUserItemRating(requestParameters.itemId, requestParameters.userId, requestParameters.likes, options).then((request) => request(this.axios, this.basePath));
|
|
803
814
|
}
|
|
804
815
|
}
|
|
805
816
|
|