@jellyfin/sdk 0.8.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -4
- package/lib/api.d.ts +1 -0
- package/lib/api.js +4 -4
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +39 -36
- package/lib/generated-client/api/activity-log-api.js +19 -11
- package/lib/generated-client/api/api-key-api.js +35 -31
- package/lib/generated-client/api/artists-api.d.ts +28 -26
- package/lib/generated-client/api/artists-api.js +47 -43
- package/lib/generated-client/api/audio-api.d.ts +20 -20
- package/lib/generated-client/api/audio-api.js +45 -43
- package/lib/generated-client/api/branding-api.js +32 -28
- package/lib/generated-client/api/channels-api.d.ts +9 -8
- package/lib/generated-client/api/channels-api.js +54 -54
- package/lib/generated-client/api/client-log-api.js +19 -11
- package/lib/generated-client/api/collection-api.js +35 -31
- package/lib/generated-client/api/configuration-api.d.ts +0 -47
- package/lib/generated-client/api/configuration-api.js +51 -117
- package/lib/generated-client/api/dashboard-api.js +26 -20
- package/lib/generated-client/api/devices-api.d.ts +3 -12
- package/lib/generated-client/api/devices-api.js +54 -60
- package/lib/generated-client/api/display-preferences-api.d.ts +22 -22
- package/lib/generated-client/api/display-preferences-api.js +39 -37
- package/lib/generated-client/api/dynamic-hls-api.d.ts +49 -31
- package/lib/generated-client/api/dynamic-hls-api.js +104 -100
- package/lib/generated-client/api/environment-api.js +59 -61
- package/lib/generated-client/api/filter-api.d.ts +9 -8
- package/lib/generated-client/api/filter-api.js +30 -24
- package/lib/generated-client/api/genres-api.d.ts +9 -8
- package/lib/generated-client/api/genres-api.js +30 -24
- package/lib/generated-client/api/hls-segment-api.js +48 -48
- package/lib/generated-client/api/image-api.d.ts +109 -1184
- package/lib/generated-client/api/image-api.js +394 -1307
- package/lib/generated-client/api/instant-mix-api.d.ts +35 -35
- package/lib/generated-client/api/instant-mix-api.js +125 -131
- package/lib/generated-client/api/item-lookup-api.js +99 -111
- package/lib/generated-client/api/item-refresh-api.js +19 -11
- package/lib/generated-client/api/item-update-api.js +35 -31
- package/lib/generated-client/api/items-api.d.ts +333 -1012
- package/lib/generated-client/api/items-api.js +191 -617
- package/lib/generated-client/api/library-api.d.ts +9 -8
- package/lib/generated-client/api/library-api.js +214 -254
- package/lib/generated-client/api/library-structure-api.js +75 -81
- package/lib/generated-client/api/live-tv-api.d.ts +17 -16
- package/lib/generated-client/api/live-tv-api.js +343 -415
- package/lib/generated-client/api/localization-api.js +43 -41
- package/lib/generated-client/api/lyrics-api.d.ts +344 -0
- package/lib/generated-client/api/lyrics-api.js +449 -0
- package/lib/generated-client/api/media-info-api.d.ts +7 -7
- package/lib/generated-client/api/media-info-api.js +54 -56
- package/lib/generated-client/api/movies-api.js +19 -11
- package/lib/generated-client/api/music-genres-api.d.ts +9 -8
- package/lib/generated-client/api/music-genres-api.js +30 -24
- package/lib/generated-client/api/package-api.js +59 -61
- package/lib/generated-client/api/persons-api.js +27 -21
- package/lib/generated-client/api/playlists-api.d.ts +315 -36
- package/lib/generated-client/api/playlists-api.js +416 -71
- package/lib/generated-client/api/playstate-api.d.ts +41 -68
- package/lib/generated-client/api/playstate-api.js +127 -153
- package/lib/generated-client/api/plugins-api.js +83 -91
- package/lib/generated-client/api/quick-connect-api.d.ts +46 -37
- package/lib/generated-client/api/quick-connect-api.js +83 -75
- package/lib/generated-client/api/remote-image-api.js +35 -31
- package/lib/generated-client/api/scheduled-tasks-api.js +51 -51
- package/lib/generated-client/api/search-api.d.ts +41 -40
- package/lib/generated-client/api/search-api.js +34 -26
- package/lib/generated-client/api/session-api.d.ts +9 -17
- package/lib/generated-client/api/session-api.js +145 -173
- package/lib/generated-client/api/startup-api.js +67 -71
- package/lib/generated-client/api/studios-api.js +27 -21
- package/lib/generated-client/api/subtitle-api.d.ts +7 -7
- package/lib/generated-client/api/subtitle-api.js +99 -109
- package/lib/generated-client/api/suggestions-api.d.ts +14 -13
- package/lib/generated-client/api/suggestions-api.js +31 -23
- package/lib/generated-client/api/sync-play-api.js +179 -211
- package/lib/generated-client/api/system-api.js +88 -98
- package/lib/generated-client/api/time-sync-api.js +18 -10
- package/lib/generated-client/api/tmdb-api.js +19 -11
- package/lib/generated-client/api/trailers-api.d.ts +35 -33
- package/lib/generated-client/api/trailers-api.js +40 -32
- package/lib/generated-client/api/trickplay-api.d.ts +176 -0
- package/lib/generated-client/api/trickplay-api.js +208 -0
- package/lib/generated-client/api/tv-shows-api.d.ts +25 -15
- package/lib/generated-client/api/tv-shows-api.js +58 -50
- package/lib/generated-client/api/universal-audio-api.d.ts +17 -16
- package/lib/generated-client/api/universal-audio-api.js +33 -27
- package/lib/generated-client/api/user-api.d.ts +35 -155
- package/lib/generated-client/api/user-api.js +152 -319
- package/lib/generated-client/api/user-library-api.d.ts +100 -100
- package/lib/generated-client/api/user-library-api.js +190 -200
- package/lib/generated-client/api/user-views-api.d.ts +22 -21
- package/lib/generated-client/api/user-views-api.js +47 -41
- package/lib/generated-client/api/video-attachments-api.js +18 -10
- package/lib/generated-client/api/videos-api.d.ts +12 -12
- package/lib/generated-client/api/videos-api.js +63 -67
- package/lib/generated-client/api/years-api.d.ts +15 -13
- package/lib/generated-client/api/years-api.js +33 -27
- package/lib/generated-client/api.d.ts +2 -4
- package/lib/generated-client/base.js +13 -0
- package/lib/generated-client/common.js +19 -11
- package/lib/generated-client/index.js +19 -10
- package/lib/generated-client/models/activity-log-entry-message.d.ts +37 -0
- package/lib/generated-client/models/activity-log-entry-start-message.d.ts +30 -0
- package/lib/generated-client/models/activity-log-entry-stop-message.d.ts +24 -0
- package/lib/generated-client/models/audio-spatial-format.d.ts +21 -0
- package/lib/generated-client/models/audio-spatial-format.js +24 -0
- package/lib/generated-client/models/authenticate-user-by-name.d.ts +0 -7
- package/lib/generated-client/models/base-item-dto.d.ts +37 -17
- package/lib/generated-client/models/base-item-person.d.ts +4 -3
- package/lib/generated-client/models/cast-receiver-application.d.ts +29 -0
- package/lib/generated-client/models/client-capabilities-dto.d.ts +17 -20
- package/lib/generated-client/models/client-capabilities.d.ts +16 -19
- package/lib/generated-client/models/collection-type-options.d.ts +9 -9
- package/lib/generated-client/models/collection-type-options.js +9 -9
- package/lib/generated-client/models/collection-type.d.ts +31 -0
- package/lib/generated-client/models/collection-type.js +34 -0
- package/lib/generated-client/models/container-profile.d.ts +1 -1
- package/lib/generated-client/models/create-playlist-dto.d.ts +18 -4
- package/lib/generated-client/models/create-user-by-name.d.ts +1 -1
- package/lib/generated-client/models/device-info.d.ts +6 -0
- package/lib/generated-client/models/device-profile.d.ts +0 -171
- package/lib/generated-client/models/dlna-profile-type.d.ts +1 -0
- package/lib/generated-client/models/dlna-profile-type.js +2 -1
- package/lib/generated-client/models/down-mix-stereo-algorithms.d.ts +21 -0
- package/lib/generated-client/models/down-mix-stereo-algorithms.js +24 -0
- package/lib/generated-client/models/encoding-options.d.ts +77 -40
- package/lib/generated-client/models/external-id-media-type.d.ts +1 -0
- package/lib/generated-client/models/external-id-media-type.js +2 -1
- package/lib/generated-client/models/extra-type.d.ts +30 -0
- package/lib/generated-client/models/extra-type.js +33 -0
- package/lib/generated-client/models/force-keep-alive-message.d.ts +36 -0
- package/lib/generated-client/models/general-command-message.d.ts +37 -0
- package/lib/generated-client/models/general-command-type.d.ts +1 -0
- package/lib/generated-client/models/general-command-type.js +2 -1
- package/lib/generated-client/models/get-programs-dto.d.ts +4 -3
- package/lib/generated-client/models/group-info-dto-group-update.d.ts +37 -0
- package/lib/generated-client/models/group-state-update-group-update.d.ts +37 -0
- package/lib/generated-client/models/group-state-update.d.ts +31 -0
- package/lib/generated-client/models/group-update.d.ts +20 -0
- package/lib/generated-client/models/hardware-encoding-type.d.ts +1 -0
- package/lib/generated-client/models/hardware-encoding-type.js +2 -1
- package/lib/generated-client/models/image-format.d.ts +1 -0
- package/lib/generated-client/models/image-format.js +2 -1
- package/lib/generated-client/models/image-resolution.d.ts +27 -0
- package/lib/generated-client/models/{ffmpeg-location.js → image-resolution.js} +12 -7
- package/lib/generated-client/models/inbound-keep-alive-message.d.ts +24 -0
- package/lib/generated-client/models/inbound-web-socket-message.d.ts +23 -0
- package/lib/generated-client/models/index.d.ts +74 -25
- package/lib/generated-client/models/index.js +17 -6
- package/lib/generated-client/models/item-fields.d.ts +1 -2
- package/lib/generated-client/models/item-fields.js +1 -2
- package/lib/generated-client/models/item-sort-by.d.ts +50 -0
- package/lib/generated-client/models/item-sort-by.js +53 -0
- package/lib/generated-client/models/library-changed-message.d.ts +37 -0
- package/lib/generated-client/models/library-options.d.ts +36 -0
- package/lib/generated-client/models/live-tv-options.d.ts +12 -0
- package/lib/generated-client/models/log-file.d.ts +1 -1
- package/lib/generated-client/models/lyric-dto.d.ts +31 -0
- package/lib/generated-client/models/lyric-line.d.ts +29 -0
- package/lib/generated-client/models/lyric-metadata.d.ts +77 -0
- package/lib/generated-client/models/media-source-info.d.ts +3 -2
- package/lib/generated-client/models/media-stream-protocol.d.ts +20 -0
- package/lib/generated-client/models/{header-match-type.js → media-stream-protocol.js} +5 -6
- package/lib/generated-client/models/media-stream-type.d.ts +1 -0
- package/lib/generated-client/models/media-stream-type.js +2 -1
- package/lib/generated-client/models/media-stream.d.ts +27 -6
- package/lib/generated-client/models/media-type.d.ts +23 -0
- package/lib/generated-client/models/{architecture.js → media-type.js} +8 -9
- package/lib/generated-client/models/metadata-editor-info.d.ts +3 -2
- package/lib/generated-client/models/network-configuration.d.ts +50 -116
- package/lib/generated-client/models/outbound-keep-alive-message.d.ts +30 -0
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +44 -0
- package/lib/generated-client/models/parental-rating.d.ts +1 -1
- package/lib/generated-client/models/person-kind.d.ts +43 -0
- package/lib/generated-client/models/person-kind.js +46 -0
- package/lib/generated-client/models/play-message.d.ts +37 -0
- package/lib/generated-client/models/play-queue-update-group-update.d.ts +37 -0
- package/lib/generated-client/models/play-queue-update-reason.d.ts +28 -0
- package/lib/generated-client/models/play-queue-update-reason.js +31 -0
- package/lib/generated-client/models/play-queue-update.d.ts +69 -0
- package/lib/generated-client/models/playback-order.d.ts +20 -0
- package/lib/generated-client/models/{send-to-user-type.js → playback-order.js} +5 -6
- package/lib/generated-client/models/playback-progress-info.d.ts +7 -0
- package/lib/generated-client/models/playback-request-type.d.ts +35 -0
- package/lib/generated-client/models/playback-request-type.js +38 -0
- package/lib/generated-client/models/playback-start-info.d.ts +7 -0
- package/lib/generated-client/models/player-state-info.d.ts +7 -0
- package/lib/generated-client/models/playlist-user-permissions.d.ts +29 -0
- package/lib/generated-client/models/playstate-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-completed-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installation-failed-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-installing-message.d.ts +37 -0
- package/lib/generated-client/models/plugin-uninstalled-message.d.ts +37 -0
- package/lib/generated-client/models/process-priority-class.d.ts +24 -0
- package/lib/generated-client/models/process-priority-class.js +27 -0
- package/lib/generated-client/models/public-system-info.d.ts +1 -0
- package/lib/generated-client/models/refresh-progress-message.d.ts +38 -0
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +36 -0
- package/lib/generated-client/models/remote-subtitle-info.d.ts +30 -0
- package/lib/generated-client/models/remove-from-playlist-request-dto.d.ts +1 -1
- package/lib/generated-client/models/restart-required-message.d.ts +30 -0
- package/lib/generated-client/models/scheduled-task-ended-message.d.ts +37 -0
- package/lib/generated-client/models/scheduled-tasks-info-message.d.ts +37 -0
- package/lib/generated-client/models/scheduled-tasks-info-start-message.d.ts +30 -0
- package/lib/generated-client/models/scheduled-tasks-info-stop-message.d.ts +24 -0
- package/lib/generated-client/models/search-hint.d.ts +19 -16
- package/lib/generated-client/models/series-status.d.ts +2 -1
- package/lib/generated-client/models/series-status.js +3 -2
- package/lib/generated-client/models/series-timer-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/series-timer-created-message.d.ts +37 -0
- package/lib/generated-client/models/server-configuration.d.ts +45 -0
- package/lib/generated-client/models/server-restarting-message.d.ts +30 -0
- package/lib/generated-client/models/server-shutting-down-message.d.ts +30 -0
- package/lib/generated-client/models/session-info.d.ts +9 -9
- package/lib/generated-client/models/sessions-message.d.ts +37 -0
- package/lib/generated-client/models/sessions-start-message.d.ts +30 -0
- package/lib/generated-client/models/sessions-stop-message.d.ts +24 -0
- package/lib/generated-client/models/string-group-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-command-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-group-update-command-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-queue-item.d.ts +29 -0
- package/lib/generated-client/models/system-info.d.ts +17 -6
- package/lib/generated-client/models/timer-cancelled-message.d.ts +37 -0
- package/lib/generated-client/models/timer-created-message.d.ts +37 -0
- package/lib/generated-client/models/transcoding-info.d.ts +3 -2
- package/lib/generated-client/models/transcoding-info.js +15 -0
- package/lib/generated-client/models/transcoding-profile.d.ts +3 -2
- package/lib/generated-client/models/trickplay-info.d.ts +59 -0
- package/lib/generated-client/models/trickplay-options.d.ts +85 -0
- package/lib/generated-client/models/trickplay-scan-behavior.d.ts +20 -0
- package/lib/generated-client/models/{notification-level.js → trickplay-scan-behavior.js} +5 -6
- package/lib/generated-client/models/tuner-host-info.d.ts +6 -0
- package/lib/generated-client/models/update-playlist-dto.d.ts +42 -0
- package/lib/generated-client/models/update-playlist-user-dto.d.ts +23 -0
- package/lib/generated-client/models/update-user-item-data-dto.d.ts +83 -0
- package/lib/generated-client/models/upload-subtitle-dto.d.ts +6 -0
- package/lib/generated-client/models/user-configuration.d.ts +6 -0
- package/lib/generated-client/models/user-data-change-info.d.ts +30 -0
- package/lib/generated-client/models/user-data-changed-message.d.ts +37 -0
- package/lib/generated-client/models/user-deleted-message.d.ts +36 -0
- package/lib/generated-client/models/user-dto.d.ts +1 -0
- package/lib/generated-client/models/user-policy.d.ts +26 -2
- package/lib/generated-client/models/user-updated-message.d.ts +37 -0
- package/lib/generated-client/models/video-range-type.d.ts +27 -0
- package/lib/generated-client/models/video-range-type.js +30 -0
- package/lib/generated-client/models/video-range.d.ts +21 -0
- package/lib/generated-client/models/{device-profile-type.js → video-range.js} +6 -5
- package/lib/generated-client/models/web-socket-message.d.ts +18 -0
- package/lib/utils/api/image-api.d.ts +2 -2
- package/lib/utils/api/image-api.js +2 -2
- package/lib/utils/api/image-urls-api.d.ts +55 -0
- package/lib/utils/api/image-urls-api.js +115 -0
- package/lib/utils/api/index.d.ts +2 -4
- package/lib/utils/api/index.js +2 -4
- package/lib/utils/api/{dlna-api.d.ts → lyrics-api.d.ts} +2 -2
- package/lib/utils/api/{dlna-api.js → lyrics-api.js} +4 -4
- package/lib/utils/api/{dlna-server-api.d.ts → trickplay-api.d.ts} +2 -2
- package/lib/utils/api/trickplay-api.js +12 -0
- package/lib/utils/authentication.js +5 -6
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.js +2 -1
- package/lib/utils/versioning.d.ts +9 -0
- package/lib/utils/versioning.js +32 -0
- package/lib/versions.d.ts +2 -2
- package/lib/versions.js +2 -2
- package/package.json +17 -22
- package/lib/generated-client/api/dlna-api.js +0 -422
- package/lib/generated-client/api/dlna-server-api.js +0 -1088
- package/lib/generated-client/api/image-by-name-api.js +0 -423
- package/lib/generated-client/api/notifications-api.js +0 -484
- package/lib/node_modules/tslib/tslib.es6.js +0 -26
- package/lib/utils/api/dlna-server-api.js +0 -12
- package/lib/utils/api/image-by-name-api.d.ts +0 -8
- package/lib/utils/api/image-by-name-api.js +0 -12
- package/lib/utils/api/notifications-api.d.ts +0 -8
- package/lib/utils/api/notifications-api.js +0 -12
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
4
|
|
|
6
5
|
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Jellyfin API
|
|
12
|
+
*
|
|
13
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
14
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
15
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
16
|
+
*/
|
|
7
17
|
/**
|
|
8
18
|
* PlaystateApi - axios parameter creator
|
|
9
19
|
* @export
|
|
@@ -13,19 +23,16 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
13
23
|
/**
|
|
14
24
|
*
|
|
15
25
|
* @summary Marks an item as played for user.
|
|
16
|
-
* @param {string} userId User id.
|
|
17
26
|
* @param {string} itemId Item id.
|
|
27
|
+
* @param {string} [userId] User id.
|
|
18
28
|
* @param {string} [datePlayed] Optional. The date the item was played.
|
|
19
29
|
* @param {*} [options] Override http request option.
|
|
20
30
|
* @throws {RequiredError}
|
|
21
31
|
*/
|
|
22
|
-
markPlayedItem: (
|
|
23
|
-
// verify required parameter 'userId' is not null or undefined
|
|
24
|
-
assertParamExists('markPlayedItem', 'userId', userId);
|
|
32
|
+
markPlayedItem: async (itemId, userId, datePlayed, options = {}) => {
|
|
25
33
|
// verify required parameter 'itemId' is not null or undefined
|
|
26
34
|
assertParamExists('markPlayedItem', 'itemId', itemId);
|
|
27
|
-
const localVarPath = `/
|
|
28
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
35
|
+
const localVarPath = `/UserPlayedItems/{itemId}`
|
|
29
36
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
30
37
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31
38
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -33,11 +40,14 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
33
40
|
if (configuration) {
|
|
34
41
|
baseOptions = configuration.baseOptions;
|
|
35
42
|
}
|
|
36
|
-
const localVarRequestOptions =
|
|
43
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
37
44
|
const localVarHeaderParameter = {};
|
|
38
45
|
const localVarQueryParameter = {};
|
|
39
46
|
// authentication CustomAuthentication required
|
|
40
|
-
|
|
47
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
48
|
+
if (userId !== undefined) {
|
|
49
|
+
localVarQueryParameter['userId'] = userId;
|
|
50
|
+
}
|
|
41
51
|
if (datePlayed !== undefined) {
|
|
42
52
|
localVarQueryParameter['datePlayed'] = (datePlayed instanceof Date) ?
|
|
43
53
|
datePlayed.toISOString() :
|
|
@@ -45,27 +55,24 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
45
55
|
}
|
|
46
56
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47
57
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48
|
-
localVarRequestOptions.headers =
|
|
58
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
49
59
|
return {
|
|
50
60
|
url: toPathString(localVarUrlObj),
|
|
51
61
|
options: localVarRequestOptions,
|
|
52
62
|
};
|
|
53
|
-
}
|
|
63
|
+
},
|
|
54
64
|
/**
|
|
55
65
|
*
|
|
56
66
|
* @summary Marks an item as unplayed for user.
|
|
57
|
-
* @param {string} userId User id.
|
|
58
67
|
* @param {string} itemId Item id.
|
|
68
|
+
* @param {string} [userId] User id.
|
|
59
69
|
* @param {*} [options] Override http request option.
|
|
60
70
|
* @throws {RequiredError}
|
|
61
71
|
*/
|
|
62
|
-
markUnplayedItem: (
|
|
63
|
-
// verify required parameter 'userId' is not null or undefined
|
|
64
|
-
assertParamExists('markUnplayedItem', 'userId', userId);
|
|
72
|
+
markUnplayedItem: async (itemId, userId, options = {}) => {
|
|
65
73
|
// verify required parameter 'itemId' is not null or undefined
|
|
66
74
|
assertParamExists('markUnplayedItem', 'itemId', itemId);
|
|
67
|
-
const localVarPath = `/
|
|
68
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
75
|
+
const localVarPath = `/UserPlayedItems/{itemId}`
|
|
69
76
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
70
77
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
71
78
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -73,23 +80,25 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
73
80
|
if (configuration) {
|
|
74
81
|
baseOptions = configuration.baseOptions;
|
|
75
82
|
}
|
|
76
|
-
const localVarRequestOptions =
|
|
83
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
77
84
|
const localVarHeaderParameter = {};
|
|
78
85
|
const localVarQueryParameter = {};
|
|
79
86
|
// authentication CustomAuthentication required
|
|
80
|
-
|
|
87
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
88
|
+
if (userId !== undefined) {
|
|
89
|
+
localVarQueryParameter['userId'] = userId;
|
|
90
|
+
}
|
|
81
91
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
92
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
-
localVarRequestOptions.headers =
|
|
93
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
84
94
|
return {
|
|
85
95
|
url: toPathString(localVarUrlObj),
|
|
86
96
|
options: localVarRequestOptions,
|
|
87
97
|
};
|
|
88
|
-
}
|
|
98
|
+
},
|
|
89
99
|
/**
|
|
90
100
|
*
|
|
91
|
-
* @summary Reports a
|
|
92
|
-
* @param {string} userId User id.
|
|
101
|
+
* @summary Reports a session\'s playback progress.
|
|
93
102
|
* @param {string} itemId Item id.
|
|
94
103
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
95
104
|
* @param {number} [positionTicks] Optional. The current position, in ticks. 1 tick = 10000 ms.
|
|
@@ -105,13 +114,10 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
105
114
|
* @param {*} [options] Override http request option.
|
|
106
115
|
* @throws {RequiredError}
|
|
107
116
|
*/
|
|
108
|
-
onPlaybackProgress: (
|
|
109
|
-
// verify required parameter 'userId' is not null or undefined
|
|
110
|
-
assertParamExists('onPlaybackProgress', 'userId', userId);
|
|
117
|
+
onPlaybackProgress: async (itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options = {}) => {
|
|
111
118
|
// verify required parameter 'itemId' is not null or undefined
|
|
112
119
|
assertParamExists('onPlaybackProgress', 'itemId', itemId);
|
|
113
|
-
const localVarPath = `/
|
|
114
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
120
|
+
const localVarPath = `/PlayingItems/{itemId}/Progress`
|
|
115
121
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
116
122
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
123
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -119,11 +125,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
119
125
|
if (configuration) {
|
|
120
126
|
baseOptions = configuration.baseOptions;
|
|
121
127
|
}
|
|
122
|
-
const localVarRequestOptions =
|
|
128
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
123
129
|
const localVarHeaderParameter = {};
|
|
124
130
|
const localVarQueryParameter = {};
|
|
125
131
|
// authentication CustomAuthentication required
|
|
126
|
-
|
|
132
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
127
133
|
if (mediaSourceId !== undefined) {
|
|
128
134
|
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
129
135
|
}
|
|
@@ -159,16 +165,15 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
159
165
|
}
|
|
160
166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
161
167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
162
|
-
localVarRequestOptions.headers =
|
|
168
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
163
169
|
return {
|
|
164
170
|
url: toPathString(localVarUrlObj),
|
|
165
171
|
options: localVarRequestOptions,
|
|
166
172
|
};
|
|
167
|
-
}
|
|
173
|
+
},
|
|
168
174
|
/**
|
|
169
175
|
*
|
|
170
|
-
* @summary Reports that a
|
|
171
|
-
* @param {string} userId User id.
|
|
176
|
+
* @summary Reports that a session has begun playing an item.
|
|
172
177
|
* @param {string} itemId Item id.
|
|
173
178
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
174
179
|
* @param {number} [audioStreamIndex] The audio stream index.
|
|
@@ -180,13 +185,10 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
180
185
|
* @param {*} [options] Override http request option.
|
|
181
186
|
* @throws {RequiredError}
|
|
182
187
|
*/
|
|
183
|
-
onPlaybackStart: (
|
|
184
|
-
// verify required parameter 'userId' is not null or undefined
|
|
185
|
-
assertParamExists('onPlaybackStart', 'userId', userId);
|
|
188
|
+
onPlaybackStart: async (itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options = {}) => {
|
|
186
189
|
// verify required parameter 'itemId' is not null or undefined
|
|
187
190
|
assertParamExists('onPlaybackStart', 'itemId', itemId);
|
|
188
|
-
const localVarPath = `/
|
|
189
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
191
|
+
const localVarPath = `/PlayingItems/{itemId}`
|
|
190
192
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
191
193
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
194
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -194,11 +196,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
194
196
|
if (configuration) {
|
|
195
197
|
baseOptions = configuration.baseOptions;
|
|
196
198
|
}
|
|
197
|
-
const localVarRequestOptions =
|
|
199
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
198
200
|
const localVarHeaderParameter = {};
|
|
199
201
|
const localVarQueryParameter = {};
|
|
200
202
|
// authentication CustomAuthentication required
|
|
201
|
-
|
|
203
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
202
204
|
if (mediaSourceId !== undefined) {
|
|
203
205
|
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
204
206
|
}
|
|
@@ -222,16 +224,15 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
222
224
|
}
|
|
223
225
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
224
226
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
-
localVarRequestOptions.headers =
|
|
227
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
226
228
|
return {
|
|
227
229
|
url: toPathString(localVarUrlObj),
|
|
228
230
|
options: localVarRequestOptions,
|
|
229
231
|
};
|
|
230
|
-
}
|
|
232
|
+
},
|
|
231
233
|
/**
|
|
232
234
|
*
|
|
233
|
-
* @summary Reports that a
|
|
234
|
-
* @param {string} userId User id.
|
|
235
|
+
* @summary Reports that a session has stopped playing an item.
|
|
235
236
|
* @param {string} itemId Item id.
|
|
236
237
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
237
238
|
* @param {string} [nextMediaType] The next media type that will play.
|
|
@@ -241,13 +242,10 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
241
242
|
* @param {*} [options] Override http request option.
|
|
242
243
|
* @throws {RequiredError}
|
|
243
244
|
*/
|
|
244
|
-
onPlaybackStopped: (
|
|
245
|
-
// verify required parameter 'userId' is not null or undefined
|
|
246
|
-
assertParamExists('onPlaybackStopped', 'userId', userId);
|
|
245
|
+
onPlaybackStopped: async (itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options = {}) => {
|
|
247
246
|
// verify required parameter 'itemId' is not null or undefined
|
|
248
247
|
assertParamExists('onPlaybackStopped', 'itemId', itemId);
|
|
249
|
-
const localVarPath = `/
|
|
250
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
248
|
+
const localVarPath = `/PlayingItems/{itemId}`
|
|
251
249
|
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
252
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -255,11 +253,11 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
255
253
|
if (configuration) {
|
|
256
254
|
baseOptions = configuration.baseOptions;
|
|
257
255
|
}
|
|
258
|
-
const localVarRequestOptions =
|
|
256
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
259
257
|
const localVarHeaderParameter = {};
|
|
260
258
|
const localVarQueryParameter = {};
|
|
261
259
|
// authentication CustomAuthentication required
|
|
262
|
-
|
|
260
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
263
261
|
if (mediaSourceId !== undefined) {
|
|
264
262
|
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
265
263
|
}
|
|
@@ -277,12 +275,12 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
277
275
|
}
|
|
278
276
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
279
277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
-
localVarRequestOptions.headers =
|
|
278
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
281
279
|
return {
|
|
282
280
|
url: toPathString(localVarUrlObj),
|
|
283
281
|
options: localVarRequestOptions,
|
|
284
282
|
};
|
|
285
|
-
}
|
|
283
|
+
},
|
|
286
284
|
/**
|
|
287
285
|
*
|
|
288
286
|
* @summary Pings a playback session.
|
|
@@ -290,7 +288,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
290
288
|
* @param {*} [options] Override http request option.
|
|
291
289
|
* @throws {RequiredError}
|
|
292
290
|
*/
|
|
293
|
-
pingPlaybackSession: (playSessionId, options = {}) =>
|
|
291
|
+
pingPlaybackSession: async (playSessionId, options = {}) => {
|
|
294
292
|
// verify required parameter 'playSessionId' is not null or undefined
|
|
295
293
|
assertParamExists('pingPlaybackSession', 'playSessionId', playSessionId);
|
|
296
294
|
const localVarPath = `/Sessions/Playing/Ping`;
|
|
@@ -300,22 +298,22 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
300
298
|
if (configuration) {
|
|
301
299
|
baseOptions = configuration.baseOptions;
|
|
302
300
|
}
|
|
303
|
-
const localVarRequestOptions =
|
|
301
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
304
302
|
const localVarHeaderParameter = {};
|
|
305
303
|
const localVarQueryParameter = {};
|
|
306
304
|
// authentication CustomAuthentication required
|
|
307
|
-
|
|
305
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
308
306
|
if (playSessionId !== undefined) {
|
|
309
307
|
localVarQueryParameter['playSessionId'] = playSessionId;
|
|
310
308
|
}
|
|
311
309
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
312
310
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
313
|
-
localVarRequestOptions.headers =
|
|
311
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
314
312
|
return {
|
|
315
313
|
url: toPathString(localVarUrlObj),
|
|
316
314
|
options: localVarRequestOptions,
|
|
317
315
|
};
|
|
318
|
-
}
|
|
316
|
+
},
|
|
319
317
|
/**
|
|
320
318
|
*
|
|
321
319
|
* @summary Reports playback progress within a session.
|
|
@@ -323,7 +321,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
323
321
|
* @param {*} [options] Override http request option.
|
|
324
322
|
* @throws {RequiredError}
|
|
325
323
|
*/
|
|
326
|
-
reportPlaybackProgress: (playbackProgressInfo, options = {}) =>
|
|
324
|
+
reportPlaybackProgress: async (playbackProgressInfo, options = {}) => {
|
|
327
325
|
const localVarPath = `/Sessions/Playing/Progress`;
|
|
328
326
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
329
327
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -331,21 +329,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
331
329
|
if (configuration) {
|
|
332
330
|
baseOptions = configuration.baseOptions;
|
|
333
331
|
}
|
|
334
|
-
const localVarRequestOptions =
|
|
332
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
335
333
|
const localVarHeaderParameter = {};
|
|
336
334
|
const localVarQueryParameter = {};
|
|
337
335
|
// authentication CustomAuthentication required
|
|
338
|
-
|
|
336
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
339
337
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
340
338
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
341
339
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
342
|
-
localVarRequestOptions.headers =
|
|
340
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
343
341
|
localVarRequestOptions.data = serializeDataIfNeeded(playbackProgressInfo, localVarRequestOptions, configuration);
|
|
344
342
|
return {
|
|
345
343
|
url: toPathString(localVarUrlObj),
|
|
346
344
|
options: localVarRequestOptions,
|
|
347
345
|
};
|
|
348
|
-
}
|
|
346
|
+
},
|
|
349
347
|
/**
|
|
350
348
|
*
|
|
351
349
|
* @summary Reports playback has started within a session.
|
|
@@ -353,7 +351,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
353
351
|
* @param {*} [options] Override http request option.
|
|
354
352
|
* @throws {RequiredError}
|
|
355
353
|
*/
|
|
356
|
-
reportPlaybackStart: (playbackStartInfo, options = {}) =>
|
|
354
|
+
reportPlaybackStart: async (playbackStartInfo, options = {}) => {
|
|
357
355
|
const localVarPath = `/Sessions/Playing`;
|
|
358
356
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
357
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -361,21 +359,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
361
359
|
if (configuration) {
|
|
362
360
|
baseOptions = configuration.baseOptions;
|
|
363
361
|
}
|
|
364
|
-
const localVarRequestOptions =
|
|
362
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
365
363
|
const localVarHeaderParameter = {};
|
|
366
364
|
const localVarQueryParameter = {};
|
|
367
365
|
// authentication CustomAuthentication required
|
|
368
|
-
|
|
366
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
369
367
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
370
368
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
369
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
-
localVarRequestOptions.headers =
|
|
370
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
373
371
|
localVarRequestOptions.data = serializeDataIfNeeded(playbackStartInfo, localVarRequestOptions, configuration);
|
|
374
372
|
return {
|
|
375
373
|
url: toPathString(localVarUrlObj),
|
|
376
374
|
options: localVarRequestOptions,
|
|
377
375
|
};
|
|
378
|
-
}
|
|
376
|
+
},
|
|
379
377
|
/**
|
|
380
378
|
*
|
|
381
379
|
* @summary Reports playback has stopped within a session.
|
|
@@ -383,7 +381,7 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
383
381
|
* @param {*} [options] Override http request option.
|
|
384
382
|
* @throws {RequiredError}
|
|
385
383
|
*/
|
|
386
|
-
reportPlaybackStopped: (playbackStopInfo, options = {}) =>
|
|
384
|
+
reportPlaybackStopped: async (playbackStopInfo, options = {}) => {
|
|
387
385
|
const localVarPath = `/Sessions/Playing/Stopped`;
|
|
388
386
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
389
387
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -391,21 +389,21 @@ const PlaystateApiAxiosParamCreator = function (configuration) {
|
|
|
391
389
|
if (configuration) {
|
|
392
390
|
baseOptions = configuration.baseOptions;
|
|
393
391
|
}
|
|
394
|
-
const localVarRequestOptions =
|
|
392
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
395
393
|
const localVarHeaderParameter = {};
|
|
396
394
|
const localVarQueryParameter = {};
|
|
397
395
|
// authentication CustomAuthentication required
|
|
398
|
-
|
|
396
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
399
397
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
400
398
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
401
399
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
402
|
-
localVarRequestOptions.headers =
|
|
400
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
403
401
|
localVarRequestOptions.data = serializeDataIfNeeded(playbackStopInfo, localVarRequestOptions, configuration);
|
|
404
402
|
return {
|
|
405
403
|
url: toPathString(localVarUrlObj),
|
|
406
404
|
options: localVarRequestOptions,
|
|
407
405
|
};
|
|
408
|
-
}
|
|
406
|
+
},
|
|
409
407
|
};
|
|
410
408
|
};
|
|
411
409
|
/**
|
|
@@ -418,36 +416,31 @@ const PlaystateApiFp = function (configuration) {
|
|
|
418
416
|
/**
|
|
419
417
|
*
|
|
420
418
|
* @summary Marks an item as played for user.
|
|
421
|
-
* @param {string} userId User id.
|
|
422
419
|
* @param {string} itemId Item id.
|
|
420
|
+
* @param {string} [userId] User id.
|
|
423
421
|
* @param {string} [datePlayed] Optional. The date the item was played.
|
|
424
422
|
* @param {*} [options] Override http request option.
|
|
425
423
|
* @throws {RequiredError}
|
|
426
424
|
*/
|
|
427
|
-
markPlayedItem(
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
|
-
});
|
|
425
|
+
async markPlayedItem(itemId, userId, datePlayed, options) {
|
|
426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markPlayedItem(itemId, userId, datePlayed, options);
|
|
427
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
432
428
|
},
|
|
433
429
|
/**
|
|
434
430
|
*
|
|
435
431
|
* @summary Marks an item as unplayed for user.
|
|
436
|
-
* @param {string} userId User id.
|
|
437
432
|
* @param {string} itemId Item id.
|
|
433
|
+
* @param {string} [userId] User id.
|
|
438
434
|
* @param {*} [options] Override http request option.
|
|
439
435
|
* @throws {RequiredError}
|
|
440
436
|
*/
|
|
441
|
-
markUnplayedItem(
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
445
|
-
});
|
|
437
|
+
async markUnplayedItem(itemId, userId, options) {
|
|
438
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.markUnplayedItem(itemId, userId, options);
|
|
439
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
446
440
|
},
|
|
447
441
|
/**
|
|
448
442
|
*
|
|
449
|
-
* @summary Reports a
|
|
450
|
-
* @param {string} userId User id.
|
|
443
|
+
* @summary Reports a session\'s playback progress.
|
|
451
444
|
* @param {string} itemId Item id.
|
|
452
445
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
453
446
|
* @param {number} [positionTicks] Optional. The current position, in ticks. 1 tick = 10000 ms.
|
|
@@ -463,16 +456,13 @@ const PlaystateApiFp = function (configuration) {
|
|
|
463
456
|
* @param {*} [options] Override http request option.
|
|
464
457
|
* @throws {RequiredError}
|
|
465
458
|
*/
|
|
466
|
-
onPlaybackProgress(
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
470
|
-
});
|
|
459
|
+
async onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
|
|
460
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options);
|
|
461
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
471
462
|
},
|
|
472
463
|
/**
|
|
473
464
|
*
|
|
474
|
-
* @summary Reports that a
|
|
475
|
-
* @param {string} userId User id.
|
|
465
|
+
* @summary Reports that a session has begun playing an item.
|
|
476
466
|
* @param {string} itemId Item id.
|
|
477
467
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
478
468
|
* @param {number} [audioStreamIndex] The audio stream index.
|
|
@@ -484,16 +474,13 @@ const PlaystateApiFp = function (configuration) {
|
|
|
484
474
|
* @param {*} [options] Override http request option.
|
|
485
475
|
* @throws {RequiredError}
|
|
486
476
|
*/
|
|
487
|
-
onPlaybackStart(
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
491
|
-
});
|
|
477
|
+
async onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
|
|
478
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options);
|
|
479
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
492
480
|
},
|
|
493
481
|
/**
|
|
494
482
|
*
|
|
495
|
-
* @summary Reports that a
|
|
496
|
-
* @param {string} userId User id.
|
|
483
|
+
* @summary Reports that a session has stopped playing an item.
|
|
497
484
|
* @param {string} itemId Item id.
|
|
498
485
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
499
486
|
* @param {string} [nextMediaType] The next media type that will play.
|
|
@@ -503,11 +490,9 @@ const PlaystateApiFp = function (configuration) {
|
|
|
503
490
|
* @param {*} [options] Override http request option.
|
|
504
491
|
* @throws {RequiredError}
|
|
505
492
|
*/
|
|
506
|
-
onPlaybackStopped(
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
510
|
-
});
|
|
493
|
+
async onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
|
|
494
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options);
|
|
495
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
511
496
|
},
|
|
512
497
|
/**
|
|
513
498
|
*
|
|
@@ -516,11 +501,9 @@ const PlaystateApiFp = function (configuration) {
|
|
|
516
501
|
* @param {*} [options] Override http request option.
|
|
517
502
|
* @throws {RequiredError}
|
|
518
503
|
*/
|
|
519
|
-
pingPlaybackSession(playSessionId, options) {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
523
|
-
});
|
|
504
|
+
async pingPlaybackSession(playSessionId, options) {
|
|
505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.pingPlaybackSession(playSessionId, options);
|
|
506
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
524
507
|
},
|
|
525
508
|
/**
|
|
526
509
|
*
|
|
@@ -529,11 +512,9 @@ const PlaystateApiFp = function (configuration) {
|
|
|
529
512
|
* @param {*} [options] Override http request option.
|
|
530
513
|
* @throws {RequiredError}
|
|
531
514
|
*/
|
|
532
|
-
reportPlaybackProgress(playbackProgressInfo, options) {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
536
|
-
});
|
|
515
|
+
async reportPlaybackProgress(playbackProgressInfo, options) {
|
|
516
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackProgress(playbackProgressInfo, options);
|
|
517
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
537
518
|
},
|
|
538
519
|
/**
|
|
539
520
|
*
|
|
@@ -542,11 +523,9 @@ const PlaystateApiFp = function (configuration) {
|
|
|
542
523
|
* @param {*} [options] Override http request option.
|
|
543
524
|
* @throws {RequiredError}
|
|
544
525
|
*/
|
|
545
|
-
reportPlaybackStart(playbackStartInfo, options) {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
549
|
-
});
|
|
526
|
+
async reportPlaybackStart(playbackStartInfo, options) {
|
|
527
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackStart(playbackStartInfo, options);
|
|
528
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
550
529
|
},
|
|
551
530
|
/**
|
|
552
531
|
*
|
|
@@ -555,11 +534,9 @@ const PlaystateApiFp = function (configuration) {
|
|
|
555
534
|
* @param {*} [options] Override http request option.
|
|
556
535
|
* @throws {RequiredError}
|
|
557
536
|
*/
|
|
558
|
-
reportPlaybackStopped(playbackStopInfo, options) {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
562
|
-
});
|
|
537
|
+
async reportPlaybackStopped(playbackStopInfo, options) {
|
|
538
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reportPlaybackStopped(playbackStopInfo, options);
|
|
539
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
563
540
|
},
|
|
564
541
|
};
|
|
565
542
|
};
|
|
@@ -573,30 +550,29 @@ const PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
573
550
|
/**
|
|
574
551
|
*
|
|
575
552
|
* @summary Marks an item as played for user.
|
|
576
|
-
* @param {string} userId User id.
|
|
577
553
|
* @param {string} itemId Item id.
|
|
554
|
+
* @param {string} [userId] User id.
|
|
578
555
|
* @param {string} [datePlayed] Optional. The date the item was played.
|
|
579
556
|
* @param {*} [options] Override http request option.
|
|
580
557
|
* @throws {RequiredError}
|
|
581
558
|
*/
|
|
582
|
-
markPlayedItem(
|
|
583
|
-
return localVarFp.markPlayedItem(
|
|
559
|
+
markPlayedItem(itemId, userId, datePlayed, options) {
|
|
560
|
+
return localVarFp.markPlayedItem(itemId, userId, datePlayed, options).then((request) => request(axios, basePath));
|
|
584
561
|
},
|
|
585
562
|
/**
|
|
586
563
|
*
|
|
587
564
|
* @summary Marks an item as unplayed for user.
|
|
588
|
-
* @param {string} userId User id.
|
|
589
565
|
* @param {string} itemId Item id.
|
|
566
|
+
* @param {string} [userId] User id.
|
|
590
567
|
* @param {*} [options] Override http request option.
|
|
591
568
|
* @throws {RequiredError}
|
|
592
569
|
*/
|
|
593
|
-
markUnplayedItem(
|
|
594
|
-
return localVarFp.markUnplayedItem(
|
|
570
|
+
markUnplayedItem(itemId, userId, options) {
|
|
571
|
+
return localVarFp.markUnplayedItem(itemId, userId, options).then((request) => request(axios, basePath));
|
|
595
572
|
},
|
|
596
573
|
/**
|
|
597
574
|
*
|
|
598
|
-
* @summary Reports a
|
|
599
|
-
* @param {string} userId User id.
|
|
575
|
+
* @summary Reports a session\'s playback progress.
|
|
600
576
|
* @param {string} itemId Item id.
|
|
601
577
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
602
578
|
* @param {number} [positionTicks] Optional. The current position, in ticks. 1 tick = 10000 ms.
|
|
@@ -612,13 +588,12 @@ const PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
612
588
|
* @param {*} [options] Override http request option.
|
|
613
589
|
* @throws {RequiredError}
|
|
614
590
|
*/
|
|
615
|
-
onPlaybackProgress(
|
|
616
|
-
return localVarFp.onPlaybackProgress(
|
|
591
|
+
onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options) {
|
|
592
|
+
return localVarFp.onPlaybackProgress(itemId, mediaSourceId, positionTicks, audioStreamIndex, subtitleStreamIndex, volumeLevel, playMethod, liveStreamId, playSessionId, repeatMode, isPaused, isMuted, options).then((request) => request(axios, basePath));
|
|
617
593
|
},
|
|
618
594
|
/**
|
|
619
595
|
*
|
|
620
|
-
* @summary Reports that a
|
|
621
|
-
* @param {string} userId User id.
|
|
596
|
+
* @summary Reports that a session has begun playing an item.
|
|
622
597
|
* @param {string} itemId Item id.
|
|
623
598
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
624
599
|
* @param {number} [audioStreamIndex] The audio stream index.
|
|
@@ -630,13 +605,12 @@ const PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
630
605
|
* @param {*} [options] Override http request option.
|
|
631
606
|
* @throws {RequiredError}
|
|
632
607
|
*/
|
|
633
|
-
onPlaybackStart(
|
|
634
|
-
return localVarFp.onPlaybackStart(
|
|
608
|
+
onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options) {
|
|
609
|
+
return localVarFp.onPlaybackStart(itemId, mediaSourceId, audioStreamIndex, subtitleStreamIndex, playMethod, liveStreamId, playSessionId, canSeek, options).then((request) => request(axios, basePath));
|
|
635
610
|
},
|
|
636
611
|
/**
|
|
637
612
|
*
|
|
638
|
-
* @summary Reports that a
|
|
639
|
-
* @param {string} userId User id.
|
|
613
|
+
* @summary Reports that a session has stopped playing an item.
|
|
640
614
|
* @param {string} itemId Item id.
|
|
641
615
|
* @param {string} [mediaSourceId] The id of the MediaSource.
|
|
642
616
|
* @param {string} [nextMediaType] The next media type that will play.
|
|
@@ -646,8 +620,8 @@ const PlaystateApiFactory = function (configuration, basePath, axios) {
|
|
|
646
620
|
* @param {*} [options] Override http request option.
|
|
647
621
|
* @throws {RequiredError}
|
|
648
622
|
*/
|
|
649
|
-
onPlaybackStopped(
|
|
650
|
-
return localVarFp.onPlaybackStopped(
|
|
623
|
+
onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options) {
|
|
624
|
+
return localVarFp.onPlaybackStopped(itemId, mediaSourceId, nextMediaType, positionTicks, liveStreamId, playSessionId, options).then((request) => request(axios, basePath));
|
|
651
625
|
},
|
|
652
626
|
/**
|
|
653
627
|
*
|
|
@@ -707,7 +681,7 @@ class PlaystateApi extends BaseAPI {
|
|
|
707
681
|
* @memberof PlaystateApi
|
|
708
682
|
*/
|
|
709
683
|
markPlayedItem(requestParameters, options) {
|
|
710
|
-
return PlaystateApiFp(this.configuration).markPlayedItem(requestParameters.
|
|
684
|
+
return PlaystateApiFp(this.configuration).markPlayedItem(requestParameters.itemId, requestParameters.userId, requestParameters.datePlayed, options).then((request) => request(this.axios, this.basePath));
|
|
711
685
|
}
|
|
712
686
|
/**
|
|
713
687
|
*
|
|
@@ -718,40 +692,40 @@ class PlaystateApi extends BaseAPI {
|
|
|
718
692
|
* @memberof PlaystateApi
|
|
719
693
|
*/
|
|
720
694
|
markUnplayedItem(requestParameters, options) {
|
|
721
|
-
return PlaystateApiFp(this.configuration).markUnplayedItem(requestParameters.
|
|
695
|
+
return PlaystateApiFp(this.configuration).markUnplayedItem(requestParameters.itemId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
722
696
|
}
|
|
723
697
|
/**
|
|
724
698
|
*
|
|
725
|
-
* @summary Reports a
|
|
699
|
+
* @summary Reports a session\'s playback progress.
|
|
726
700
|
* @param {PlaystateApiOnPlaybackProgressRequest} requestParameters Request parameters.
|
|
727
701
|
* @param {*} [options] Override http request option.
|
|
728
702
|
* @throws {RequiredError}
|
|
729
703
|
* @memberof PlaystateApi
|
|
730
704
|
*/
|
|
731
705
|
onPlaybackProgress(requestParameters, options) {
|
|
732
|
-
return PlaystateApiFp(this.configuration).onPlaybackProgress(requestParameters.
|
|
706
|
+
return PlaystateApiFp(this.configuration).onPlaybackProgress(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.positionTicks, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.volumeLevel, requestParameters.playMethod, requestParameters.liveStreamId, requestParameters.playSessionId, requestParameters.repeatMode, requestParameters.isPaused, requestParameters.isMuted, options).then((request) => request(this.axios, this.basePath));
|
|
733
707
|
}
|
|
734
708
|
/**
|
|
735
709
|
*
|
|
736
|
-
* @summary Reports that a
|
|
710
|
+
* @summary Reports that a session has begun playing an item.
|
|
737
711
|
* @param {PlaystateApiOnPlaybackStartRequest} requestParameters Request parameters.
|
|
738
712
|
* @param {*} [options] Override http request option.
|
|
739
713
|
* @throws {RequiredError}
|
|
740
714
|
* @memberof PlaystateApi
|
|
741
715
|
*/
|
|
742
716
|
onPlaybackStart(requestParameters, options) {
|
|
743
|
-
return PlaystateApiFp(this.configuration).onPlaybackStart(requestParameters.
|
|
717
|
+
return PlaystateApiFp(this.configuration).onPlaybackStart(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.audioStreamIndex, requestParameters.subtitleStreamIndex, requestParameters.playMethod, requestParameters.liveStreamId, requestParameters.playSessionId, requestParameters.canSeek, options).then((request) => request(this.axios, this.basePath));
|
|
744
718
|
}
|
|
745
719
|
/**
|
|
746
720
|
*
|
|
747
|
-
* @summary Reports that a
|
|
721
|
+
* @summary Reports that a session has stopped playing an item.
|
|
748
722
|
* @param {PlaystateApiOnPlaybackStoppedRequest} requestParameters Request parameters.
|
|
749
723
|
* @param {*} [options] Override http request option.
|
|
750
724
|
* @throws {RequiredError}
|
|
751
725
|
* @memberof PlaystateApi
|
|
752
726
|
*/
|
|
753
727
|
onPlaybackStopped(requestParameters, options) {
|
|
754
|
-
return PlaystateApiFp(this.configuration).onPlaybackStopped(requestParameters.
|
|
728
|
+
return PlaystateApiFp(this.configuration).onPlaybackStopped(requestParameters.itemId, requestParameters.mediaSourceId, requestParameters.nextMediaType, requestParameters.positionTicks, requestParameters.liveStreamId, requestParameters.playSessionId, options).then((request) => request(this.axios, this.basePath));
|
|
755
729
|
}
|
|
756
730
|
/**
|
|
757
731
|
*
|