@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
|
* SessionApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -18,7 +29,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
18
29
|
* @param {*} [options] Override http request option.
|
|
19
30
|
* @throws {RequiredError}
|
|
20
31
|
*/
|
|
21
|
-
addUserToSession: (
|
|
32
|
+
addUserToSession: (sessionId_1, userId_1, ...args_1) => __awaiter(this, [sessionId_1, userId_1, ...args_1], void 0, function* (sessionId, userId, options = {}) {
|
|
22
33
|
// verify required parameter 'sessionId' is not null or undefined
|
|
23
34
|
assertParamExists('addUserToSession', 'sessionId', sessionId);
|
|
24
35
|
// verify required parameter 'userId' is not null or undefined
|
|
@@ -55,7 +66,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
55
66
|
* @param {*} [options] Override http request option.
|
|
56
67
|
* @throws {RequiredError}
|
|
57
68
|
*/
|
|
58
|
-
displayContent: (
|
|
69
|
+
displayContent: (sessionId_2, itemType_1, itemId_1, itemName_1, ...args_2) => __awaiter(this, [sessionId_2, itemType_1, itemId_1, itemName_1, ...args_2], void 0, function* (sessionId, itemType, itemId, itemName, options = {}) {
|
|
59
70
|
// verify required parameter 'sessionId' is not null or undefined
|
|
60
71
|
assertParamExists('displayContent', 'sessionId', sessionId);
|
|
61
72
|
// verify required parameter 'itemType' is not null or undefined
|
|
@@ -100,7 +111,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
100
111
|
* @param {*} [options] Override http request option.
|
|
101
112
|
* @throws {RequiredError}
|
|
102
113
|
*/
|
|
103
|
-
getAuthProviders: (
|
|
114
|
+
getAuthProviders: (...args_3) => __awaiter(this, [...args_3], void 0, function* (options = {}) {
|
|
104
115
|
const localVarPath = `/Auth/Providers`;
|
|
105
116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
117
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -127,7 +138,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
127
138
|
* @param {*} [options] Override http request option.
|
|
128
139
|
* @throws {RequiredError}
|
|
129
140
|
*/
|
|
130
|
-
getPasswordResetProviders: (
|
|
141
|
+
getPasswordResetProviders: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
|
|
131
142
|
const localVarPath = `/Auth/PasswordResetProviders`;
|
|
132
143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
144
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -157,7 +168,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
157
168
|
* @param {*} [options] Override http request option.
|
|
158
169
|
* @throws {RequiredError}
|
|
159
170
|
*/
|
|
160
|
-
getSessions: (
|
|
171
|
+
getSessions: (controllableByUserId_1, deviceId_1, activeWithinSeconds_1, ...args_5) => __awaiter(this, [controllableByUserId_1, deviceId_1, activeWithinSeconds_1, ...args_5], void 0, function* (controllableByUserId, deviceId, activeWithinSeconds, options = {}) {
|
|
161
172
|
const localVarPath = `/Sessions`;
|
|
162
173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
163
174
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -201,7 +212,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
201
212
|
* @param {*} [options] Override http request option.
|
|
202
213
|
* @throws {RequiredError}
|
|
203
214
|
*/
|
|
204
|
-
play: (
|
|
215
|
+
play: (sessionId_3, playCommand_1, itemIds_1, startPositionTicks_1, mediaSourceId_1, audioStreamIndex_1, subtitleStreamIndex_1, startIndex_1, ...args_6) => __awaiter(this, [sessionId_3, playCommand_1, itemIds_1, startPositionTicks_1, mediaSourceId_1, audioStreamIndex_1, subtitleStreamIndex_1, startIndex_1, ...args_6], void 0, function* (sessionId, playCommand, itemIds, startPositionTicks, mediaSourceId, audioStreamIndex, subtitleStreamIndex, startIndex, options = {}) {
|
|
205
216
|
// verify required parameter 'sessionId' is not null or undefined
|
|
206
217
|
assertParamExists('play', 'sessionId', sessionId);
|
|
207
218
|
// verify required parameter 'playCommand' is not null or undefined
|
|
@@ -254,15 +265,14 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
254
265
|
*
|
|
255
266
|
* @summary Updates capabilities for a device.
|
|
256
267
|
* @param {string} [id] The session id.
|
|
257
|
-
* @param {Array<
|
|
268
|
+
* @param {Array<MediaType>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
|
|
258
269
|
* @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
|
|
259
270
|
* @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
|
|
260
|
-
* @param {boolean} [supportsSync] Determines whether sync is supported.
|
|
261
271
|
* @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
|
|
262
272
|
* @param {*} [options] Override http request option.
|
|
263
273
|
* @throws {RequiredError}
|
|
264
274
|
*/
|
|
265
|
-
postCapabilities: (
|
|
275
|
+
postCapabilities: (id_1, playableMediaTypes_1, supportedCommands_1, supportsMediaControl_1, supportsPersistentIdentifier_1, ...args_7) => __awaiter(this, [id_1, playableMediaTypes_1, supportedCommands_1, supportsMediaControl_1, supportsPersistentIdentifier_1, ...args_7], void 0, function* (id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options = {}) {
|
|
266
276
|
const localVarPath = `/Sessions/Capabilities`;
|
|
267
277
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
278
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -287,9 +297,6 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
287
297
|
if (supportsMediaControl !== undefined) {
|
|
288
298
|
localVarQueryParameter['supportsMediaControl'] = supportsMediaControl;
|
|
289
299
|
}
|
|
290
|
-
if (supportsSync !== undefined) {
|
|
291
|
-
localVarQueryParameter['supportsSync'] = supportsSync;
|
|
292
|
-
}
|
|
293
300
|
if (supportsPersistentIdentifier !== undefined) {
|
|
294
301
|
localVarQueryParameter['supportsPersistentIdentifier'] = supportsPersistentIdentifier;
|
|
295
302
|
}
|
|
@@ -309,7 +316,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
309
316
|
* @param {*} [options] Override http request option.
|
|
310
317
|
* @throws {RequiredError}
|
|
311
318
|
*/
|
|
312
|
-
postFullCapabilities: (
|
|
319
|
+
postFullCapabilities: (clientCapabilitiesDto_1, id_2, ...args_8) => __awaiter(this, [clientCapabilitiesDto_1, id_2, ...args_8], void 0, function* (clientCapabilitiesDto, id, options = {}) {
|
|
313
320
|
// verify required parameter 'clientCapabilitiesDto' is not null or undefined
|
|
314
321
|
assertParamExists('postFullCapabilities', 'clientCapabilitiesDto', clientCapabilitiesDto);
|
|
315
322
|
const localVarPath = `/Sessions/Capabilities/Full`;
|
|
@@ -345,7 +352,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
345
352
|
* @param {*} [options] Override http request option.
|
|
346
353
|
* @throws {RequiredError}
|
|
347
354
|
*/
|
|
348
|
-
removeUserFromSession: (
|
|
355
|
+
removeUserFromSession: (sessionId_4, userId_2, ...args_9) => __awaiter(this, [sessionId_4, userId_2, ...args_9], void 0, function* (sessionId, userId, options = {}) {
|
|
349
356
|
// verify required parameter 'sessionId' is not null or undefined
|
|
350
357
|
assertParamExists('removeUserFromSession', 'sessionId', sessionId);
|
|
351
358
|
// verify required parameter 'userId' is not null or undefined
|
|
@@ -378,7 +385,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
378
385
|
* @param {*} [options] Override http request option.
|
|
379
386
|
* @throws {RequiredError}
|
|
380
387
|
*/
|
|
381
|
-
reportSessionEnded: (
|
|
388
|
+
reportSessionEnded: (...args_10) => __awaiter(this, [...args_10], void 0, function* (options = {}) {
|
|
382
389
|
const localVarPath = `/Sessions/Logout`;
|
|
383
390
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
384
391
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -407,7 +414,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
407
414
|
* @param {*} [options] Override http request option.
|
|
408
415
|
* @throws {RequiredError}
|
|
409
416
|
*/
|
|
410
|
-
reportViewing: (
|
|
417
|
+
reportViewing: (itemId_2, sessionId_5, ...args_11) => __awaiter(this, [itemId_2, sessionId_5, ...args_11], void 0, function* (itemId, sessionId, options = {}) {
|
|
411
418
|
// verify required parameter 'itemId' is not null or undefined
|
|
412
419
|
assertParamExists('reportViewing', 'itemId', itemId);
|
|
413
420
|
const localVarPath = `/Sessions/Viewing`;
|
|
@@ -444,7 +451,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
444
451
|
* @param {*} [options] Override http request option.
|
|
445
452
|
* @throws {RequiredError}
|
|
446
453
|
*/
|
|
447
|
-
sendFullGeneralCommand: (
|
|
454
|
+
sendFullGeneralCommand: (sessionId_6, generalCommand_1, ...args_12) => __awaiter(this, [sessionId_6, generalCommand_1, ...args_12], void 0, function* (sessionId, generalCommand, options = {}) {
|
|
448
455
|
// verify required parameter 'sessionId' is not null or undefined
|
|
449
456
|
assertParamExists('sendFullGeneralCommand', 'sessionId', sessionId);
|
|
450
457
|
// verify required parameter 'generalCommand' is not null or undefined
|
|
@@ -480,7 +487,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
480
487
|
* @param {*} [options] Override http request option.
|
|
481
488
|
* @throws {RequiredError}
|
|
482
489
|
*/
|
|
483
|
-
sendGeneralCommand: (
|
|
490
|
+
sendGeneralCommand: (sessionId_7, command_1, ...args_13) => __awaiter(this, [sessionId_7, command_1, ...args_13], void 0, function* (sessionId, command, options = {}) {
|
|
484
491
|
// verify required parameter 'sessionId' is not null or undefined
|
|
485
492
|
assertParamExists('sendGeneralCommand', 'sessionId', sessionId);
|
|
486
493
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -515,7 +522,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
515
522
|
* @param {*} [options] Override http request option.
|
|
516
523
|
* @throws {RequiredError}
|
|
517
524
|
*/
|
|
518
|
-
sendMessageCommand: (
|
|
525
|
+
sendMessageCommand: (sessionId_8, messageCommand_1, ...args_14) => __awaiter(this, [sessionId_8, messageCommand_1, ...args_14], void 0, function* (sessionId, messageCommand, options = {}) {
|
|
519
526
|
// verify required parameter 'sessionId' is not null or undefined
|
|
520
527
|
assertParamExists('sendMessageCommand', 'sessionId', sessionId);
|
|
521
528
|
// verify required parameter 'messageCommand' is not null or undefined
|
|
@@ -553,7 +560,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
553
560
|
* @param {*} [options] Override http request option.
|
|
554
561
|
* @throws {RequiredError}
|
|
555
562
|
*/
|
|
556
|
-
sendPlaystateCommand: (
|
|
563
|
+
sendPlaystateCommand: (sessionId_9, command_2, seekPositionTicks_1, controllingUserId_1, ...args_15) => __awaiter(this, [sessionId_9, command_2, seekPositionTicks_1, controllingUserId_1, ...args_15], void 0, function* (sessionId, command, seekPositionTicks, controllingUserId, options = {}) {
|
|
557
564
|
// verify required parameter 'sessionId' is not null or undefined
|
|
558
565
|
assertParamExists('sendPlaystateCommand', 'sessionId', sessionId);
|
|
559
566
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -594,7 +601,7 @@ const SessionApiAxiosParamCreator = function (configuration) {
|
|
|
594
601
|
* @param {*} [options] Override http request option.
|
|
595
602
|
* @throws {RequiredError}
|
|
596
603
|
*/
|
|
597
|
-
sendSystemCommand: (
|
|
604
|
+
sendSystemCommand: (sessionId_10, command_3, ...args_16) => __awaiter(this, [sessionId_10, command_3, ...args_16], void 0, function* (sessionId, command, options = {}) {
|
|
598
605
|
// verify required parameter 'sessionId' is not null or undefined
|
|
599
606
|
assertParamExists('sendSystemCommand', 'sessionId', sessionId);
|
|
600
607
|
// verify required parameter 'command' is not null or undefined
|
|
@@ -723,17 +730,16 @@ const SessionApiFp = function (configuration) {
|
|
|
723
730
|
*
|
|
724
731
|
* @summary Updates capabilities for a device.
|
|
725
732
|
* @param {string} [id] The session id.
|
|
726
|
-
* @param {Array<
|
|
733
|
+
* @param {Array<MediaType>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
|
|
727
734
|
* @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
|
|
728
735
|
* @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
|
|
729
|
-
* @param {boolean} [supportsSync] Determines whether sync is supported.
|
|
730
736
|
* @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
|
|
731
737
|
* @param {*} [options] Override http request option.
|
|
732
738
|
* @throws {RequiredError}
|
|
733
739
|
*/
|
|
734
|
-
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl,
|
|
740
|
+
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options) {
|
|
735
741
|
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl,
|
|
742
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options);
|
|
737
743
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
738
744
|
});
|
|
739
745
|
},
|
|
@@ -947,16 +953,15 @@ const SessionApiFactory = function (configuration, basePath, axios) {
|
|
|
947
953
|
*
|
|
948
954
|
* @summary Updates capabilities for a device.
|
|
949
955
|
* @param {string} [id] The session id.
|
|
950
|
-
* @param {Array<
|
|
956
|
+
* @param {Array<MediaType>} [playableMediaTypes] A list of playable media types, comma delimited. Audio, Video, Book, Photo.
|
|
951
957
|
* @param {Array<GeneralCommandType>} [supportedCommands] A list of supported remote control commands, comma delimited.
|
|
952
958
|
* @param {boolean} [supportsMediaControl] Determines whether media can be played remotely..
|
|
953
|
-
* @param {boolean} [supportsSync] Determines whether sync is supported.
|
|
954
959
|
* @param {boolean} [supportsPersistentIdentifier] Determines whether the device supports a unique identifier.
|
|
955
960
|
* @param {*} [options] Override http request option.
|
|
956
961
|
* @throws {RequiredError}
|
|
957
962
|
*/
|
|
958
|
-
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl,
|
|
959
|
-
return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl,
|
|
963
|
+
postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options) {
|
|
964
|
+
return localVarFp.postCapabilities(id, playableMediaTypes, supportedCommands, supportsMediaControl, supportsPersistentIdentifier, options).then((request) => request(axios, basePath));
|
|
960
965
|
},
|
|
961
966
|
/**
|
|
962
967
|
*
|
|
@@ -1139,7 +1144,7 @@ class SessionApi extends BaseAPI {
|
|
|
1139
1144
|
* @memberof SessionApi
|
|
1140
1145
|
*/
|
|
1141
1146
|
postCapabilities(requestParameters = {}, options) {
|
|
1142
|
-
return SessionApiFp(this.configuration).postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.
|
|
1147
|
+
return SessionApiFp(this.configuration).postCapabilities(requestParameters.id, requestParameters.playableMediaTypes, requestParameters.supportedCommands, requestParameters.supportsMediaControl, requestParameters.supportsPersistentIdentifier, options).then((request) => request(this.axios, this.basePath));
|
|
1143
1148
|
}
|
|
1144
1149
|
/**
|
|
1145
1150
|
*
|
|
@@ -4,6 +4,17 @@ import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, asser
|
|
|
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
|
* StartupApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -16,7 +27,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
16
27
|
* @param {*} [options] Override http request option.
|
|
17
28
|
* @throws {RequiredError}
|
|
18
29
|
*/
|
|
19
|
-
completeWizard: (
|
|
30
|
+
completeWizard: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
20
31
|
const localVarPath = `/Startup/Complete`;
|
|
21
32
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22
33
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -43,7 +54,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
43
54
|
* @param {*} [options] Override http request option.
|
|
44
55
|
* @throws {RequiredError}
|
|
45
56
|
*/
|
|
46
|
-
getFirstUser: (
|
|
57
|
+
getFirstUser: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
|
|
47
58
|
const localVarPath = `/Startup/User`;
|
|
48
59
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
60
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -70,7 +81,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
70
81
|
* @param {*} [options] Override http request option.
|
|
71
82
|
* @throws {RequiredError}
|
|
72
83
|
*/
|
|
73
|
-
getFirstUser2: (
|
|
84
|
+
getFirstUser2: (...args_3) => __awaiter(this, [...args_3], void 0, function* (options = {}) {
|
|
74
85
|
const localVarPath = `/Startup/FirstUser`;
|
|
75
86
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
76
87
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -97,7 +108,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
97
108
|
* @param {*} [options] Override http request option.
|
|
98
109
|
* @throws {RequiredError}
|
|
99
110
|
*/
|
|
100
|
-
getStartupConfiguration: (
|
|
111
|
+
getStartupConfiguration: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
|
|
101
112
|
const localVarPath = `/Startup/Configuration`;
|
|
102
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
114
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -125,7 +136,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
125
136
|
* @param {*} [options] Override http request option.
|
|
126
137
|
* @throws {RequiredError}
|
|
127
138
|
*/
|
|
128
|
-
setRemoteAccess: (
|
|
139
|
+
setRemoteAccess: (startupRemoteAccessDto_1, ...args_5) => __awaiter(this, [startupRemoteAccessDto_1, ...args_5], void 0, function* (startupRemoteAccessDto, options = {}) {
|
|
129
140
|
// verify required parameter 'startupRemoteAccessDto' is not null or undefined
|
|
130
141
|
assertParamExists('setRemoteAccess', 'startupRemoteAccessDto', startupRemoteAccessDto);
|
|
131
142
|
const localVarPath = `/Startup/RemoteAccess`;
|
|
@@ -157,7 +168,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
157
168
|
* @param {*} [options] Override http request option.
|
|
158
169
|
* @throws {RequiredError}
|
|
159
170
|
*/
|
|
160
|
-
updateInitialConfiguration: (
|
|
171
|
+
updateInitialConfiguration: (startupConfigurationDto_1, ...args_6) => __awaiter(this, [startupConfigurationDto_1, ...args_6], void 0, function* (startupConfigurationDto, options = {}) {
|
|
161
172
|
// verify required parameter 'startupConfigurationDto' is not null or undefined
|
|
162
173
|
assertParamExists('updateInitialConfiguration', 'startupConfigurationDto', startupConfigurationDto);
|
|
163
174
|
const localVarPath = `/Startup/Configuration`;
|
|
@@ -189,7 +200,7 @@ const StartupApiAxiosParamCreator = function (configuration) {
|
|
|
189
200
|
* @param {*} [options] Override http request option.
|
|
190
201
|
* @throws {RequiredError}
|
|
191
202
|
*/
|
|
192
|
-
updateStartupUser: (
|
|
203
|
+
updateStartupUser: (startupUserDto_1, ...args_7) => __awaiter(this, [startupUserDto_1, ...args_7], void 0, function* (startupUserDto, options = {}) {
|
|
193
204
|
const localVarPath = `/Startup/User`;
|
|
194
205
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
206
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -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
|
* StudiosApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -18,7 +29,7 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
18
29
|
* @param {*} [options] Override http request option.
|
|
19
30
|
* @throws {RequiredError}
|
|
20
31
|
*/
|
|
21
|
-
getStudio: (
|
|
32
|
+
getStudio: (name_1, userId_1, ...args_1) => __awaiter(this, [name_1, userId_1, ...args_1], void 0, function* (name, userId, options = {}) {
|
|
22
33
|
// verify required parameter 'name' is not null or undefined
|
|
23
34
|
assertParamExists('getStudio', 'name', name);
|
|
24
35
|
const localVarPath = `/Studios/{name}`
|
|
@@ -68,7 +79,7 @@ const StudiosApiAxiosParamCreator = function (configuration) {
|
|
|
68
79
|
* @param {*} [options] Override http request option.
|
|
69
80
|
* @throws {RequiredError}
|
|
70
81
|
*/
|
|
71
|
-
getStudios: (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options = {})
|
|
82
|
+
getStudios: (startIndex_1, limit_1, searchTerm_1, parentId_1, fields_1, excludeItemTypes_1, includeItemTypes_1, isFavorite_1, enableUserData_1, imageTypeLimit_1, enableImageTypes_1, userId_2, nameStartsWithOrGreater_1, nameStartsWith_1, nameLessThan_1, enableImages_1, enableTotalRecordCount_1, ...args_2) => __awaiter(this, [startIndex_1, limit_1, searchTerm_1, parentId_1, fields_1, excludeItemTypes_1, includeItemTypes_1, isFavorite_1, enableUserData_1, imageTypeLimit_1, enableImageTypes_1, userId_2, nameStartsWithOrGreater_1, nameStartsWith_1, nameLessThan_1, enableImages_1, enableTotalRecordCount_1, ...args_2], void 0, function* (startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, enableImages, enableTotalRecordCount, options = {}) {
|
|
72
83
|
const localVarPath = `/Studios`;
|
|
73
84
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
85
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -55,11 +55,11 @@ export declare const SubtitleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @summary Gets the remote subtitles.
|
|
58
|
-
* @param {string}
|
|
58
|
+
* @param {string} subtitleId The item id.
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
62
|
-
getRemoteSubtitles: (
|
|
62
|
+
getRemoteSubtitles: (subtitleId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @summary Gets subtitles in a specified format.
|
|
@@ -171,11 +171,11 @@ export declare const SubtitleApiFp: (configuration?: Configuration) => {
|
|
|
171
171
|
/**
|
|
172
172
|
*
|
|
173
173
|
* @summary Gets the remote subtitles.
|
|
174
|
-
* @param {string}
|
|
174
|
+
* @param {string} subtitleId The item id.
|
|
175
175
|
* @param {*} [options] Override http request option.
|
|
176
176
|
* @throws {RequiredError}
|
|
177
177
|
*/
|
|
178
|
-
getRemoteSubtitles(
|
|
178
|
+
getRemoteSubtitles(subtitleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
179
179
|
/**
|
|
180
180
|
*
|
|
181
181
|
* @summary Gets subtitles in a specified format.
|
|
@@ -287,11 +287,11 @@ export declare const SubtitleApiFactory: (configuration?: Configuration, basePat
|
|
|
287
287
|
/**
|
|
288
288
|
*
|
|
289
289
|
* @summary Gets the remote subtitles.
|
|
290
|
-
* @param {string}
|
|
290
|
+
* @param {string} subtitleId The item id.
|
|
291
291
|
* @param {*} [options] Override http request option.
|
|
292
292
|
* @throws {RequiredError}
|
|
293
293
|
*/
|
|
294
|
-
getRemoteSubtitles(
|
|
294
|
+
getRemoteSubtitles(subtitleId: string, options?: any): AxiosPromise<any>;
|
|
295
295
|
/**
|
|
296
296
|
*
|
|
297
297
|
* @summary Gets subtitles in a specified format.
|
|
@@ -424,7 +424,7 @@ export interface SubtitleApiGetRemoteSubtitlesRequest {
|
|
|
424
424
|
* @type {string}
|
|
425
425
|
* @memberof SubtitleApiGetRemoteSubtitles
|
|
426
426
|
*/
|
|
427
|
-
readonly
|
|
427
|
+
readonly subtitleId: string;
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
430
430
|
* Request parameters for getSubtitle operation in SubtitleApi.
|
|
@@ -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
|
* SubtitleApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -18,7 +29,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
18
29
|
* @param {*} [options] Override http request option.
|
|
19
30
|
* @throws {RequiredError}
|
|
20
31
|
*/
|
|
21
|
-
deleteSubtitle: (
|
|
32
|
+
deleteSubtitle: (itemId_1, index_1, ...args_1) => __awaiter(this, [itemId_1, index_1, ...args_1], void 0, function* (itemId, index, options = {}) {
|
|
22
33
|
// verify required parameter 'itemId' is not null or undefined
|
|
23
34
|
assertParamExists('deleteSubtitle', 'itemId', itemId);
|
|
24
35
|
// verify required parameter 'index' is not null or undefined
|
|
@@ -53,7 +64,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
53
64
|
* @param {*} [options] Override http request option.
|
|
54
65
|
* @throws {RequiredError}
|
|
55
66
|
*/
|
|
56
|
-
downloadRemoteSubtitles: (
|
|
67
|
+
downloadRemoteSubtitles: (itemId_2, subtitleId_1, ...args_2) => __awaiter(this, [itemId_2, subtitleId_1, ...args_2], void 0, function* (itemId, subtitleId, options = {}) {
|
|
57
68
|
// verify required parameter 'itemId' is not null or undefined
|
|
58
69
|
assertParamExists('downloadRemoteSubtitles', 'itemId', itemId);
|
|
59
70
|
// verify required parameter 'subtitleId' is not null or undefined
|
|
@@ -87,7 +98,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
87
98
|
* @param {*} [options] Override http request option.
|
|
88
99
|
* @throws {RequiredError}
|
|
89
100
|
*/
|
|
90
|
-
getFallbackFont: (
|
|
101
|
+
getFallbackFont: (name_1, ...args_3) => __awaiter(this, [name_1, ...args_3], void 0, function* (name, options = {}) {
|
|
91
102
|
// verify required parameter 'name' is not null or undefined
|
|
92
103
|
assertParamExists('getFallbackFont', 'name', name);
|
|
93
104
|
const localVarPath = `/FallbackFont/Fonts/{name}`
|
|
@@ -117,7 +128,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
117
128
|
* @param {*} [options] Override http request option.
|
|
118
129
|
* @throws {RequiredError}
|
|
119
130
|
*/
|
|
120
|
-
getFallbackFontList: (
|
|
131
|
+
getFallbackFontList: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
|
|
121
132
|
const localVarPath = `/FallbackFont/Fonts`;
|
|
122
133
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123
134
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -141,15 +152,15 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
141
152
|
/**
|
|
142
153
|
*
|
|
143
154
|
* @summary Gets the remote subtitles.
|
|
144
|
-
* @param {string}
|
|
155
|
+
* @param {string} subtitleId The item id.
|
|
145
156
|
* @param {*} [options] Override http request option.
|
|
146
157
|
* @throws {RequiredError}
|
|
147
158
|
*/
|
|
148
|
-
getRemoteSubtitles: (
|
|
149
|
-
// verify required parameter '
|
|
150
|
-
assertParamExists('getRemoteSubtitles', '
|
|
151
|
-
const localVarPath = `/Providers/Subtitles/Subtitles/{
|
|
152
|
-
.replace(`{${"
|
|
159
|
+
getRemoteSubtitles: (subtitleId_2, ...args_5) => __awaiter(this, [subtitleId_2, ...args_5], void 0, function* (subtitleId, options = {}) {
|
|
160
|
+
// verify required parameter 'subtitleId' is not null or undefined
|
|
161
|
+
assertParamExists('getRemoteSubtitles', 'subtitleId', subtitleId);
|
|
162
|
+
const localVarPath = `/Providers/Subtitles/Subtitles/{subtitleId}`
|
|
163
|
+
.replace(`{${"subtitleId"}}`, encodeURIComponent(String(subtitleId)));
|
|
153
164
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
165
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
166
|
let baseOptions;
|
|
@@ -187,7 +198,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
187
198
|
* @param {*} [options] Override http request option.
|
|
188
199
|
* @throws {RequiredError}
|
|
189
200
|
*/
|
|
190
|
-
getSubtitle: (
|
|
201
|
+
getSubtitle: (routeItemId_1, routeMediaSourceId_1, routeIndex_1, routeFormat_1, itemId_3, mediaSourceId_1, index_2, format_1, endPositionTicks_1, copyTimestamps_1, addVttTimeMap_1, startPositionTicks_1, ...args_6) => __awaiter(this, [routeItemId_1, routeMediaSourceId_1, routeIndex_1, routeFormat_1, itemId_3, mediaSourceId_1, index_2, format_1, endPositionTicks_1, copyTimestamps_1, addVttTimeMap_1, startPositionTicks_1, ...args_6], void 0, function* (routeItemId, routeMediaSourceId, routeIndex, routeFormat, itemId, mediaSourceId, index, format, endPositionTicks, copyTimestamps, addVttTimeMap, startPositionTicks, options = {}) {
|
|
191
202
|
// verify required parameter 'routeItemId' is not null or undefined
|
|
192
203
|
assertParamExists('getSubtitle', 'routeItemId', routeItemId);
|
|
193
204
|
// verify required parameter 'routeMediaSourceId' is not null or undefined
|
|
@@ -252,7 +263,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
252
263
|
* @param {*} [options] Override http request option.
|
|
253
264
|
* @throws {RequiredError}
|
|
254
265
|
*/
|
|
255
|
-
getSubtitlePlaylist: (
|
|
266
|
+
getSubtitlePlaylist: (itemId_4, index_3, mediaSourceId_2, segmentLength_1, ...args_7) => __awaiter(this, [itemId_4, index_3, mediaSourceId_2, segmentLength_1, ...args_7], void 0, function* (itemId, index, mediaSourceId, segmentLength, options = {}) {
|
|
256
267
|
// verify required parameter 'itemId' is not null or undefined
|
|
257
268
|
assertParamExists('getSubtitlePlaylist', 'itemId', itemId);
|
|
258
269
|
// verify required parameter 'index' is not null or undefined
|
|
@@ -306,7 +317,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
306
317
|
* @param {*} [options] Override http request option.
|
|
307
318
|
* @throws {RequiredError}
|
|
308
319
|
*/
|
|
309
|
-
getSubtitleWithTicks: (
|
|
320
|
+
getSubtitleWithTicks: (routeItemId_2, routeMediaSourceId_2, routeIndex_2, routeStartPositionTicks_1, routeFormat_2, itemId_5, mediaSourceId_3, index_4, startPositionTicks_2, format_2, endPositionTicks_2, copyTimestamps_2, addVttTimeMap_2, ...args_8) => __awaiter(this, [routeItemId_2, routeMediaSourceId_2, routeIndex_2, routeStartPositionTicks_1, routeFormat_2, itemId_5, mediaSourceId_3, index_4, startPositionTicks_2, format_2, endPositionTicks_2, copyTimestamps_2, addVttTimeMap_2, ...args_8], void 0, function* (routeItemId, routeMediaSourceId, routeIndex, routeStartPositionTicks, routeFormat, itemId, mediaSourceId, index, startPositionTicks, format, endPositionTicks, copyTimestamps, addVttTimeMap, options = {}) {
|
|
310
321
|
// verify required parameter 'routeItemId' is not null or undefined
|
|
311
322
|
assertParamExists('getSubtitleWithTicks', 'routeItemId', routeItemId);
|
|
312
323
|
// verify required parameter 'routeMediaSourceId' is not null or undefined
|
|
@@ -373,7 +384,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
373
384
|
* @param {*} [options] Override http request option.
|
|
374
385
|
* @throws {RequiredError}
|
|
375
386
|
*/
|
|
376
|
-
searchRemoteSubtitles: (
|
|
387
|
+
searchRemoteSubtitles: (itemId_6, language_1, isPerfectMatch_1, ...args_9) => __awaiter(this, [itemId_6, language_1, isPerfectMatch_1, ...args_9], void 0, function* (itemId, language, isPerfectMatch, options = {}) {
|
|
377
388
|
// verify required parameter 'itemId' is not null or undefined
|
|
378
389
|
assertParamExists('searchRemoteSubtitles', 'itemId', itemId);
|
|
379
390
|
// verify required parameter 'language' is not null or undefined
|
|
@@ -411,7 +422,7 @@ const SubtitleApiAxiosParamCreator = function (configuration) {
|
|
|
411
422
|
* @param {*} [options] Override http request option.
|
|
412
423
|
* @throws {RequiredError}
|
|
413
424
|
*/
|
|
414
|
-
uploadSubtitle: (
|
|
425
|
+
uploadSubtitle: (itemId_7, uploadSubtitleDto_1, ...args_10) => __awaiter(this, [itemId_7, uploadSubtitleDto_1, ...args_10], void 0, function* (itemId, uploadSubtitleDto, options = {}) {
|
|
415
426
|
// verify required parameter 'itemId' is not null or undefined
|
|
416
427
|
assertParamExists('uploadSubtitle', 'itemId', itemId);
|
|
417
428
|
// verify required parameter 'uploadSubtitleDto' is not null or undefined
|
|
@@ -504,13 +515,13 @@ const SubtitleApiFp = function (configuration) {
|
|
|
504
515
|
/**
|
|
505
516
|
*
|
|
506
517
|
* @summary Gets the remote subtitles.
|
|
507
|
-
* @param {string}
|
|
518
|
+
* @param {string} subtitleId The item id.
|
|
508
519
|
* @param {*} [options] Override http request option.
|
|
509
520
|
* @throws {RequiredError}
|
|
510
521
|
*/
|
|
511
|
-
getRemoteSubtitles(
|
|
522
|
+
getRemoteSubtitles(subtitleId, options) {
|
|
512
523
|
return __awaiter(this, void 0, void 0, function* () {
|
|
513
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRemoteSubtitles(
|
|
524
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRemoteSubtitles(subtitleId, options);
|
|
514
525
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
515
526
|
});
|
|
516
527
|
},
|
|
@@ -661,12 +672,12 @@ const SubtitleApiFactory = function (configuration, basePath, axios) {
|
|
|
661
672
|
/**
|
|
662
673
|
*
|
|
663
674
|
* @summary Gets the remote subtitles.
|
|
664
|
-
* @param {string}
|
|
675
|
+
* @param {string} subtitleId The item id.
|
|
665
676
|
* @param {*} [options] Override http request option.
|
|
666
677
|
* @throws {RequiredError}
|
|
667
678
|
*/
|
|
668
|
-
getRemoteSubtitles(
|
|
669
|
-
return localVarFp.getRemoteSubtitles(
|
|
679
|
+
getRemoteSubtitles(subtitleId, options) {
|
|
680
|
+
return localVarFp.getRemoteSubtitles(subtitleId, options).then((request) => request(axios, basePath));
|
|
670
681
|
},
|
|
671
682
|
/**
|
|
672
683
|
*
|
|
@@ -808,7 +819,7 @@ class SubtitleApi extends BaseAPI {
|
|
|
808
819
|
* @memberof SubtitleApi
|
|
809
820
|
*/
|
|
810
821
|
getRemoteSubtitles(requestParameters, options) {
|
|
811
|
-
return SubtitleApiFp(this.configuration).getRemoteSubtitles(requestParameters.
|
|
822
|
+
return SubtitleApiFp(this.configuration).getRemoteSubtitles(requestParameters.subtitleId, options).then((request) => request(this.axios, this.basePath));
|
|
812
823
|
}
|
|
813
824
|
/**
|
|
814
825
|
*
|