@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
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import globalAxios from 'axios';
|
|
3
|
+
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
|
+
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
5
|
+
|
|
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
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* TrickplayApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
const TrickplayApiAxiosParamCreator = function (configuration) {
|
|
23
|
+
return {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary Gets an image tiles playlist for trickplay.
|
|
27
|
+
* @param {string} itemId The item id.
|
|
28
|
+
* @param {number} width The width of a single tile.
|
|
29
|
+
* @param {string} [mediaSourceId] The media version id, if using an alternate version.
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
getTrickplayHlsPlaylist: (itemId_1, width_1, mediaSourceId_1, ...args_1) => __awaiter(this, [itemId_1, width_1, mediaSourceId_1, ...args_1], void 0, function* (itemId, width, mediaSourceId, options = {}) {
|
|
34
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
35
|
+
assertParamExists('getTrickplayHlsPlaylist', 'itemId', itemId);
|
|
36
|
+
// verify required parameter 'width' is not null or undefined
|
|
37
|
+
assertParamExists('getTrickplayHlsPlaylist', 'width', width);
|
|
38
|
+
const localVarPath = `/Videos/{itemId}/Trickplay/{width}/tiles.m3u8`
|
|
39
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)))
|
|
40
|
+
.replace(`{${"width"}}`, encodeURIComponent(String(width)));
|
|
41
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43
|
+
let baseOptions;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
baseOptions = configuration.baseOptions;
|
|
46
|
+
}
|
|
47
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
48
|
+
const localVarHeaderParameter = {};
|
|
49
|
+
const localVarQueryParameter = {};
|
|
50
|
+
// authentication CustomAuthentication required
|
|
51
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
52
|
+
if (mediaSourceId !== undefined) {
|
|
53
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
54
|
+
}
|
|
55
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
58
|
+
return {
|
|
59
|
+
url: toPathString(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
}),
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @summary Gets a trickplay tile image.
|
|
66
|
+
* @param {string} itemId The item id.
|
|
67
|
+
* @param {number} width The width of a single tile.
|
|
68
|
+
* @param {number} index The index of the desired tile.
|
|
69
|
+
* @param {string} [mediaSourceId] The media version id, if using an alternate version.
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
getTrickplayTileImage: (itemId_2, width_2, index_1, mediaSourceId_2, ...args_2) => __awaiter(this, [itemId_2, width_2, index_1, mediaSourceId_2, ...args_2], void 0, function* (itemId, width, index, mediaSourceId, options = {}) {
|
|
74
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
75
|
+
assertParamExists('getTrickplayTileImage', 'itemId', itemId);
|
|
76
|
+
// verify required parameter 'width' is not null or undefined
|
|
77
|
+
assertParamExists('getTrickplayTileImage', 'width', width);
|
|
78
|
+
// verify required parameter 'index' is not null or undefined
|
|
79
|
+
assertParamExists('getTrickplayTileImage', 'index', index);
|
|
80
|
+
const localVarPath = `/Videos/{itemId}/Trickplay/{width}/{index}.jpg`
|
|
81
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)))
|
|
82
|
+
.replace(`{${"width"}}`, encodeURIComponent(String(width)))
|
|
83
|
+
.replace(`{${"index"}}`, encodeURIComponent(String(index)));
|
|
84
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
85
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
86
|
+
let baseOptions;
|
|
87
|
+
if (configuration) {
|
|
88
|
+
baseOptions = configuration.baseOptions;
|
|
89
|
+
}
|
|
90
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
91
|
+
const localVarHeaderParameter = {};
|
|
92
|
+
const localVarQueryParameter = {};
|
|
93
|
+
// authentication CustomAuthentication required
|
|
94
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
95
|
+
if (mediaSourceId !== undefined) {
|
|
96
|
+
localVarQueryParameter['mediaSourceId'] = mediaSourceId;
|
|
97
|
+
}
|
|
98
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
99
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
100
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
101
|
+
return {
|
|
102
|
+
url: toPathString(localVarUrlObj),
|
|
103
|
+
options: localVarRequestOptions,
|
|
104
|
+
};
|
|
105
|
+
}),
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* TrickplayApi - functional programming interface
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
const TrickplayApiFp = function (configuration) {
|
|
113
|
+
const localVarAxiosParamCreator = TrickplayApiAxiosParamCreator(configuration);
|
|
114
|
+
return {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @summary Gets an image tiles playlist for trickplay.
|
|
118
|
+
* @param {string} itemId The item id.
|
|
119
|
+
* @param {number} width The width of a single tile.
|
|
120
|
+
* @param {string} [mediaSourceId] The media version id, if using an alternate version.
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
getTrickplayHlsPlaylist(itemId, width, mediaSourceId, options) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTrickplayHlsPlaylist(itemId, width, mediaSourceId, options);
|
|
127
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @summary Gets a trickplay tile image.
|
|
133
|
+
* @param {string} itemId The item id.
|
|
134
|
+
* @param {number} width The width of a single tile.
|
|
135
|
+
* @param {number} index The index of the desired tile.
|
|
136
|
+
* @param {string} [mediaSourceId] The media version id, if using an alternate version.
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
getTrickplayTileImage(itemId, width, index, mediaSourceId, options) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTrickplayTileImage(itemId, width, index, mediaSourceId, options);
|
|
143
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* TrickplayApi - factory interface
|
|
150
|
+
* @export
|
|
151
|
+
*/
|
|
152
|
+
const TrickplayApiFactory = function (configuration, basePath, axios) {
|
|
153
|
+
const localVarFp = TrickplayApiFp(configuration);
|
|
154
|
+
return {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary Gets an image tiles playlist for trickplay.
|
|
158
|
+
* @param {string} itemId The item id.
|
|
159
|
+
* @param {number} width The width of a single tile.
|
|
160
|
+
* @param {string} [mediaSourceId] The media version id, if using an alternate version.
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
getTrickplayHlsPlaylist(itemId, width, mediaSourceId, options) {
|
|
165
|
+
return localVarFp.getTrickplayHlsPlaylist(itemId, width, mediaSourceId, options).then((request) => request(axios, basePath));
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @summary Gets a trickplay tile image.
|
|
170
|
+
* @param {string} itemId The item id.
|
|
171
|
+
* @param {number} width The width of a single tile.
|
|
172
|
+
* @param {number} index The index of the desired tile.
|
|
173
|
+
* @param {string} [mediaSourceId] The media version id, if using an alternate version.
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
getTrickplayTileImage(itemId, width, index, mediaSourceId, options) {
|
|
178
|
+
return localVarFp.getTrickplayTileImage(itemId, width, index, mediaSourceId, options).then((request) => request(axios, basePath));
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* TrickplayApi - object-oriented interface
|
|
184
|
+
* @export
|
|
185
|
+
* @class TrickplayApi
|
|
186
|
+
* @extends {BaseAPI}
|
|
187
|
+
*/
|
|
188
|
+
class TrickplayApi extends BaseAPI {
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary Gets an image tiles playlist for trickplay.
|
|
192
|
+
* @param {TrickplayApiGetTrickplayHlsPlaylistRequest} requestParameters Request parameters.
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
* @memberof TrickplayApi
|
|
196
|
+
*/
|
|
197
|
+
getTrickplayHlsPlaylist(requestParameters, options) {
|
|
198
|
+
return TrickplayApiFp(this.configuration).getTrickplayHlsPlaylist(requestParameters.itemId, requestParameters.width, requestParameters.mediaSourceId, options).then((request) => request(this.axios, this.basePath));
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @summary Gets a trickplay tile image.
|
|
203
|
+
* @param {TrickplayApiGetTrickplayTileImageRequest} requestParameters Request parameters.
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
* @memberof TrickplayApi
|
|
207
|
+
*/
|
|
208
|
+
getTrickplayTileImage(requestParameters, options) {
|
|
209
|
+
return TrickplayApiFp(this.configuration).getTrickplayTileImage(requestParameters.itemId, requestParameters.width, requestParameters.index, requestParameters.mediaSourceId, options).then((request) => request(this.axios, this.basePath));
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export { TrickplayApi, TrickplayApiAxiosParamCreator, TrickplayApiFactory, TrickplayApiFp };
|
|
@@ -14,6 +14,7 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
14
14
|
import { BaseItemDtoQueryResult } from '../models';
|
|
15
15
|
import { ImageType } from '../models';
|
|
16
16
|
import { ItemFields } from '../models';
|
|
17
|
+
import { ItemSortBy } from '../models';
|
|
17
18
|
/**
|
|
18
19
|
* TvShowsApi - axios parameter creator
|
|
19
20
|
* @export
|
|
@@ -36,11 +37,11 @@ export declare const TvShowsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
36
37
|
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
37
38
|
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
38
39
|
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
39
|
-
* @param {
|
|
40
|
+
* @param {ItemSortBy} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
getEpisodes: (seriesId: string, userId?: string, fields?: Array<ItemFields>, season?: number, seasonId?: string, isMissing?: boolean, adjacentTo?: string, startItemId?: string, startIndex?: number, limit?: number, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, sortBy?:
|
|
44
|
+
getEpisodes: (seriesId: string, userId?: string, fields?: Array<ItemFields>, season?: number, seasonId?: string, isMissing?: boolean, adjacentTo?: string, startItemId?: string, startIndex?: number, limit?: number, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, sortBy?: ItemSortBy, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
45
|
/**
|
|
45
46
|
*
|
|
46
47
|
* @summary Gets a list of next up episodes.
|
|
@@ -57,11 +58,12 @@ export declare const TvShowsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
57
58
|
* @param {string} [nextUpDateCutoff] Optional. Starting date of shows to show in Next Up section.
|
|
58
59
|
* @param {boolean} [enableTotalRecordCount] Whether to enable the total records count. Defaults to true.
|
|
59
60
|
* @param {boolean} [disableFirstEpisode] Whether to disable sending the first episode in a series as next up.
|
|
60
|
-
* @param {boolean} [
|
|
61
|
+
* @param {boolean} [enableResumable] Whether to include resumable episodes in next up results.
|
|
62
|
+
* @param {boolean} [enableRewatching] Whether to include watched episodes in next up results.
|
|
61
63
|
* @param {*} [options] Override http request option.
|
|
62
64
|
* @throws {RequiredError}
|
|
63
65
|
*/
|
|
64
|
-
getNextUp: (userId?: string, startIndex?: number, limit?: number, fields?: Array<ItemFields>, seriesId?: string, parentId?: string, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, nextUpDateCutoff?: string, enableTotalRecordCount?: boolean, disableFirstEpisode?: boolean, enableRewatching?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
|
+
getNextUp: (userId?: string, startIndex?: number, limit?: number, fields?: Array<ItemFields>, seriesId?: string, parentId?: string, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, nextUpDateCutoff?: string, enableTotalRecordCount?: boolean, disableFirstEpisode?: boolean, enableResumable?: boolean, enableRewatching?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
67
|
/**
|
|
66
68
|
*
|
|
67
69
|
* @summary Gets seasons for a tv series.
|
|
@@ -118,11 +120,11 @@ export declare const TvShowsApiFp: (configuration?: Configuration) => {
|
|
|
118
120
|
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
119
121
|
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
120
122
|
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
121
|
-
* @param {
|
|
123
|
+
* @param {ItemSortBy} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
122
124
|
* @param {*} [options] Override http request option.
|
|
123
125
|
* @throws {RequiredError}
|
|
124
126
|
*/
|
|
125
|
-
getEpisodes(seriesId: string, userId?: string, fields?: Array<ItemFields>, season?: number, seasonId?: string, isMissing?: boolean, adjacentTo?: string, startItemId?: string, startIndex?: number, limit?: number, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, sortBy?:
|
|
127
|
+
getEpisodes(seriesId: string, userId?: string, fields?: Array<ItemFields>, season?: number, seasonId?: string, isMissing?: boolean, adjacentTo?: string, startItemId?: string, startIndex?: number, limit?: number, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, sortBy?: ItemSortBy, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
|
|
126
128
|
/**
|
|
127
129
|
*
|
|
128
130
|
* @summary Gets a list of next up episodes.
|
|
@@ -139,11 +141,12 @@ export declare const TvShowsApiFp: (configuration?: Configuration) => {
|
|
|
139
141
|
* @param {string} [nextUpDateCutoff] Optional. Starting date of shows to show in Next Up section.
|
|
140
142
|
* @param {boolean} [enableTotalRecordCount] Whether to enable the total records count. Defaults to true.
|
|
141
143
|
* @param {boolean} [disableFirstEpisode] Whether to disable sending the first episode in a series as next up.
|
|
142
|
-
* @param {boolean} [
|
|
144
|
+
* @param {boolean} [enableResumable] Whether to include resumable episodes in next up results.
|
|
145
|
+
* @param {boolean} [enableRewatching] Whether to include watched episodes in next up results.
|
|
143
146
|
* @param {*} [options] Override http request option.
|
|
144
147
|
* @throws {RequiredError}
|
|
145
148
|
*/
|
|
146
|
-
getNextUp(userId?: string, startIndex?: number, limit?: number, fields?: Array<ItemFields>, seriesId?: string, parentId?: string, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, nextUpDateCutoff?: string, enableTotalRecordCount?: boolean, disableFirstEpisode?: boolean, enableRewatching?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
|
|
149
|
+
getNextUp(userId?: string, startIndex?: number, limit?: number, fields?: Array<ItemFields>, seriesId?: string, parentId?: string, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, nextUpDateCutoff?: string, enableTotalRecordCount?: boolean, disableFirstEpisode?: boolean, enableResumable?: boolean, enableRewatching?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
|
|
147
150
|
/**
|
|
148
151
|
*
|
|
149
152
|
* @summary Gets seasons for a tv series.
|
|
@@ -200,11 +203,11 @@ export declare const TvShowsApiFactory: (configuration?: Configuration, basePath
|
|
|
200
203
|
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
201
204
|
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
202
205
|
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
203
|
-
* @param {
|
|
206
|
+
* @param {ItemSortBy} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
204
207
|
* @param {*} [options] Override http request option.
|
|
205
208
|
* @throws {RequiredError}
|
|
206
209
|
*/
|
|
207
|
-
getEpisodes(seriesId: string, userId?: string, fields?: Array<ItemFields>, season?: number, seasonId?: string, isMissing?: boolean, adjacentTo?: string, startItemId?: string, startIndex?: number, limit?: number, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, sortBy?:
|
|
210
|
+
getEpisodes(seriesId: string, userId?: string, fields?: Array<ItemFields>, season?: number, seasonId?: string, isMissing?: boolean, adjacentTo?: string, startItemId?: string, startIndex?: number, limit?: number, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, sortBy?: ItemSortBy, options?: any): AxiosPromise<BaseItemDtoQueryResult>;
|
|
208
211
|
/**
|
|
209
212
|
*
|
|
210
213
|
* @summary Gets a list of next up episodes.
|
|
@@ -221,11 +224,12 @@ export declare const TvShowsApiFactory: (configuration?: Configuration, basePath
|
|
|
221
224
|
* @param {string} [nextUpDateCutoff] Optional. Starting date of shows to show in Next Up section.
|
|
222
225
|
* @param {boolean} [enableTotalRecordCount] Whether to enable the total records count. Defaults to true.
|
|
223
226
|
* @param {boolean} [disableFirstEpisode] Whether to disable sending the first episode in a series as next up.
|
|
224
|
-
* @param {boolean} [
|
|
227
|
+
* @param {boolean} [enableResumable] Whether to include resumable episodes in next up results.
|
|
228
|
+
* @param {boolean} [enableRewatching] Whether to include watched episodes in next up results.
|
|
225
229
|
* @param {*} [options] Override http request option.
|
|
226
230
|
* @throws {RequiredError}
|
|
227
231
|
*/
|
|
228
|
-
getNextUp(userId?: string, startIndex?: number, limit?: number, fields?: Array<ItemFields>, seriesId?: string, parentId?: string, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, nextUpDateCutoff?: string, enableTotalRecordCount?: boolean, disableFirstEpisode?: boolean, enableRewatching?: boolean, options?: any): AxiosPromise<BaseItemDtoQueryResult>;
|
|
232
|
+
getNextUp(userId?: string, startIndex?: number, limit?: number, fields?: Array<ItemFields>, seriesId?: string, parentId?: string, enableImages?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, enableUserData?: boolean, nextUpDateCutoff?: string, enableTotalRecordCount?: boolean, disableFirstEpisode?: boolean, enableResumable?: boolean, enableRewatching?: boolean, options?: any): AxiosPromise<BaseItemDtoQueryResult>;
|
|
229
233
|
/**
|
|
230
234
|
*
|
|
231
235
|
* @summary Gets seasons for a tv series.
|
|
@@ -352,10 +356,10 @@ export interface TvShowsApiGetEpisodesRequest {
|
|
|
352
356
|
readonly enableUserData?: boolean;
|
|
353
357
|
/**
|
|
354
358
|
* Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
355
|
-
* @type {
|
|
359
|
+
* @type {ItemSortBy}
|
|
356
360
|
* @memberof TvShowsApiGetEpisodes
|
|
357
361
|
*/
|
|
358
|
-
readonly sortBy?:
|
|
362
|
+
readonly sortBy?: ItemSortBy;
|
|
359
363
|
}
|
|
360
364
|
/**
|
|
361
365
|
* Request parameters for getNextUp operation in TvShowsApi.
|
|
@@ -442,7 +446,13 @@ export interface TvShowsApiGetNextUpRequest {
|
|
|
442
446
|
*/
|
|
443
447
|
readonly disableFirstEpisode?: boolean;
|
|
444
448
|
/**
|
|
445
|
-
* Whether to include
|
|
449
|
+
* Whether to include resumable episodes in next up results.
|
|
450
|
+
* @type {boolean}
|
|
451
|
+
* @memberof TvShowsApiGetNextUp
|
|
452
|
+
*/
|
|
453
|
+
readonly enableResumable?: boolean;
|
|
454
|
+
/**
|
|
455
|
+
* Whether to include watched episodes in next up results.
|
|
446
456
|
* @type {boolean}
|
|
447
457
|
* @memberof TvShowsApiGetNextUp
|
|
448
458
|
*/
|
|
@@ -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
|
* TvShowsApi - axios parameter creator
|
|
9
20
|
* @export
|
|
@@ -27,11 +38,11 @@ const TvShowsApiAxiosParamCreator = function (configuration) {
|
|
|
27
38
|
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
28
39
|
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
29
40
|
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
30
|
-
* @param {
|
|
41
|
+
* @param {ItemSortBy} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
31
42
|
* @param {*} [options] Override http request option.
|
|
32
43
|
* @throws {RequiredError}
|
|
33
44
|
*/
|
|
34
|
-
getEpisodes: (seriesId, userId, fields, season, seasonId, isMissing, adjacentTo, startItemId, startIndex, limit, enableImages, imageTypeLimit, enableImageTypes, enableUserData, sortBy, options = {})
|
|
45
|
+
getEpisodes: (seriesId_1, userId_1, fields_1, season_1, seasonId_1, isMissing_1, adjacentTo_1, startItemId_1, startIndex_1, limit_1, enableImages_1, imageTypeLimit_1, enableImageTypes_1, enableUserData_1, sortBy_1, ...args_1) => __awaiter(this, [seriesId_1, userId_1, fields_1, season_1, seasonId_1, isMissing_1, adjacentTo_1, startItemId_1, startIndex_1, limit_1, enableImages_1, imageTypeLimit_1, enableImageTypes_1, enableUserData_1, sortBy_1, ...args_1], void 0, function* (seriesId, userId, fields, season, seasonId, isMissing, adjacentTo, startItemId, startIndex, limit, enableImages, imageTypeLimit, enableImageTypes, enableUserData, sortBy, options = {}) {
|
|
35
46
|
// verify required parameter 'seriesId' is not null or undefined
|
|
36
47
|
assertParamExists('getEpisodes', 'seriesId', seriesId);
|
|
37
48
|
const localVarPath = `/Shows/{seriesId}/Episodes`
|
|
@@ -113,11 +124,12 @@ const TvShowsApiAxiosParamCreator = function (configuration) {
|
|
|
113
124
|
* @param {string} [nextUpDateCutoff] Optional. Starting date of shows to show in Next Up section.
|
|
114
125
|
* @param {boolean} [enableTotalRecordCount] Whether to enable the total records count. Defaults to true.
|
|
115
126
|
* @param {boolean} [disableFirstEpisode] Whether to disable sending the first episode in a series as next up.
|
|
116
|
-
* @param {boolean} [
|
|
127
|
+
* @param {boolean} [enableResumable] Whether to include resumable episodes in next up results.
|
|
128
|
+
* @param {boolean} [enableRewatching] Whether to include watched episodes in next up results.
|
|
117
129
|
* @param {*} [options] Override http request option.
|
|
118
130
|
* @throws {RequiredError}
|
|
119
131
|
*/
|
|
120
|
-
getNextUp: (
|
|
132
|
+
getNextUp: (userId_2, startIndex_2, limit_2, fields_2, seriesId_2, parentId_1, enableImages_2, imageTypeLimit_2, enableImageTypes_2, enableUserData_2, nextUpDateCutoff_1, enableTotalRecordCount_1, disableFirstEpisode_1, enableResumable_1, enableRewatching_1, ...args_2) => __awaiter(this, [userId_2, startIndex_2, limit_2, fields_2, seriesId_2, parentId_1, enableImages_2, imageTypeLimit_2, enableImageTypes_2, enableUserData_2, nextUpDateCutoff_1, enableTotalRecordCount_1, disableFirstEpisode_1, enableResumable_1, enableRewatching_1, ...args_2], void 0, function* (userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableResumable, enableRewatching, options = {}) {
|
|
121
133
|
const localVarPath = `/Shows/NextUp`;
|
|
122
134
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123
135
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -171,6 +183,9 @@ const TvShowsApiAxiosParamCreator = function (configuration) {
|
|
|
171
183
|
if (disableFirstEpisode !== undefined) {
|
|
172
184
|
localVarQueryParameter['disableFirstEpisode'] = disableFirstEpisode;
|
|
173
185
|
}
|
|
186
|
+
if (enableResumable !== undefined) {
|
|
187
|
+
localVarQueryParameter['enableResumable'] = enableResumable;
|
|
188
|
+
}
|
|
174
189
|
if (enableRewatching !== undefined) {
|
|
175
190
|
localVarQueryParameter['enableRewatching'] = enableRewatching;
|
|
176
191
|
}
|
|
@@ -198,7 +213,7 @@ const TvShowsApiAxiosParamCreator = function (configuration) {
|
|
|
198
213
|
* @param {*} [options] Override http request option.
|
|
199
214
|
* @throws {RequiredError}
|
|
200
215
|
*/
|
|
201
|
-
getSeasons: (
|
|
216
|
+
getSeasons: (seriesId_3, userId_3, fields_3, isSpecialSeason_1, isMissing_2, adjacentTo_2, enableImages_3, imageTypeLimit_3, enableImageTypes_3, enableUserData_3, ...args_3) => __awaiter(this, [seriesId_3, userId_3, fields_3, isSpecialSeason_1, isMissing_2, adjacentTo_2, enableImages_3, imageTypeLimit_3, enableImageTypes_3, enableUserData_3, ...args_3], void 0, function* (seriesId, userId, fields, isSpecialSeason, isMissing, adjacentTo, enableImages, imageTypeLimit, enableImageTypes, enableUserData, options = {}) {
|
|
202
217
|
// verify required parameter 'seriesId' is not null or undefined
|
|
203
218
|
assertParamExists('getSeasons', 'seriesId', seriesId);
|
|
204
219
|
const localVarPath = `/Shows/{seriesId}/Seasons`
|
|
@@ -264,7 +279,7 @@ const TvShowsApiAxiosParamCreator = function (configuration) {
|
|
|
264
279
|
* @param {*} [options] Override http request option.
|
|
265
280
|
* @throws {RequiredError}
|
|
266
281
|
*/
|
|
267
|
-
getUpcomingEpisodes: (
|
|
282
|
+
getUpcomingEpisodes: (userId_4, startIndex_3, limit_3, fields_4, parentId_2, enableImages_4, imageTypeLimit_4, enableImageTypes_4, enableUserData_4, ...args_4) => __awaiter(this, [userId_4, startIndex_3, limit_3, fields_4, parentId_2, enableImages_4, imageTypeLimit_4, enableImageTypes_4, enableUserData_4, ...args_4], void 0, function* (userId, startIndex, limit, fields, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, options = {}) {
|
|
268
283
|
const localVarPath = `/Shows/Upcoming`;
|
|
269
284
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
285
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -338,7 +353,7 @@ const TvShowsApiFp = function (configuration) {
|
|
|
338
353
|
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
339
354
|
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
340
355
|
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
341
|
-
* @param {
|
|
356
|
+
* @param {ItemSortBy} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
342
357
|
* @param {*} [options] Override http request option.
|
|
343
358
|
* @throws {RequiredError}
|
|
344
359
|
*/
|
|
@@ -364,13 +379,14 @@ const TvShowsApiFp = function (configuration) {
|
|
|
364
379
|
* @param {string} [nextUpDateCutoff] Optional. Starting date of shows to show in Next Up section.
|
|
365
380
|
* @param {boolean} [enableTotalRecordCount] Whether to enable the total records count. Defaults to true.
|
|
366
381
|
* @param {boolean} [disableFirstEpisode] Whether to disable sending the first episode in a series as next up.
|
|
367
|
-
* @param {boolean} [
|
|
382
|
+
* @param {boolean} [enableResumable] Whether to include resumable episodes in next up results.
|
|
383
|
+
* @param {boolean} [enableRewatching] Whether to include watched episodes in next up results.
|
|
368
384
|
* @param {*} [options] Override http request option.
|
|
369
385
|
* @throws {RequiredError}
|
|
370
386
|
*/
|
|
371
|
-
getNextUp(userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableRewatching, options) {
|
|
387
|
+
getNextUp(userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableResumable, enableRewatching, options) {
|
|
372
388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNextUp(userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableRewatching, options);
|
|
389
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNextUp(userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableResumable, enableRewatching, options);
|
|
374
390
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
391
|
});
|
|
376
392
|
},
|
|
@@ -443,7 +459,7 @@ const TvShowsApiFactory = function (configuration, basePath, axios) {
|
|
|
443
459
|
* @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type.
|
|
444
460
|
* @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output.
|
|
445
461
|
* @param {boolean} [enableUserData] Optional. Include user data.
|
|
446
|
-
* @param {
|
|
462
|
+
* @param {ItemSortBy} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
|
|
447
463
|
* @param {*} [options] Override http request option.
|
|
448
464
|
* @throws {RequiredError}
|
|
449
465
|
*/
|
|
@@ -466,12 +482,13 @@ const TvShowsApiFactory = function (configuration, basePath, axios) {
|
|
|
466
482
|
* @param {string} [nextUpDateCutoff] Optional. Starting date of shows to show in Next Up section.
|
|
467
483
|
* @param {boolean} [enableTotalRecordCount] Whether to enable the total records count. Defaults to true.
|
|
468
484
|
* @param {boolean} [disableFirstEpisode] Whether to disable sending the first episode in a series as next up.
|
|
469
|
-
* @param {boolean} [
|
|
485
|
+
* @param {boolean} [enableResumable] Whether to include resumable episodes in next up results.
|
|
486
|
+
* @param {boolean} [enableRewatching] Whether to include watched episodes in next up results.
|
|
470
487
|
* @param {*} [options] Override http request option.
|
|
471
488
|
* @throws {RequiredError}
|
|
472
489
|
*/
|
|
473
|
-
getNextUp(userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableRewatching, options) {
|
|
474
|
-
return localVarFp.getNextUp(userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableRewatching, options).then((request) => request(axios, basePath));
|
|
490
|
+
getNextUp(userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableResumable, enableRewatching, options) {
|
|
491
|
+
return localVarFp.getNextUp(userId, startIndex, limit, fields, seriesId, parentId, enableImages, imageTypeLimit, enableImageTypes, enableUserData, nextUpDateCutoff, enableTotalRecordCount, disableFirstEpisode, enableResumable, enableRewatching, options).then((request) => request(axios, basePath));
|
|
475
492
|
},
|
|
476
493
|
/**
|
|
477
494
|
*
|
|
@@ -539,7 +556,7 @@ class TvShowsApi extends BaseAPI {
|
|
|
539
556
|
* @memberof TvShowsApi
|
|
540
557
|
*/
|
|
541
558
|
getNextUp(requestParameters = {}, options) {
|
|
542
|
-
return TvShowsApiFp(this.configuration).getNextUp(requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.fields, requestParameters.seriesId, requestParameters.parentId, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.nextUpDateCutoff, requestParameters.enableTotalRecordCount, requestParameters.disableFirstEpisode, requestParameters.enableRewatching, options).then((request) => request(this.axios, this.basePath));
|
|
559
|
+
return TvShowsApiFp(this.configuration).getNextUp(requestParameters.userId, requestParameters.startIndex, requestParameters.limit, requestParameters.fields, requestParameters.seriesId, requestParameters.parentId, requestParameters.enableImages, requestParameters.imageTypeLimit, requestParameters.enableImageTypes, requestParameters.enableUserData, requestParameters.nextUpDateCutoff, requestParameters.enableTotalRecordCount, requestParameters.disableFirstEpisode, requestParameters.enableResumable, requestParameters.enableRewatching, options).then((request) => request(this.axios, this.basePath));
|
|
543
560
|
}
|
|
544
561
|
/**
|
|
545
562
|
*
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
12
12
|
import { Configuration } from '../configuration';
|
|
13
13
|
import { RequestArgs, BaseAPI } from '../base';
|
|
14
|
+
import { MediaStreamProtocol } from '../models';
|
|
14
15
|
/**
|
|
15
16
|
* UniversalAudioApi - axios parameter creator
|
|
16
17
|
* @export
|
|
@@ -31,7 +32,7 @@ export declare const UniversalAudioApiAxiosParamCreator: (configuration?: Config
|
|
|
31
32
|
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
32
33
|
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
33
34
|
* @param {string} [transcodingContainer] Optional. The container to transcode to.
|
|
34
|
-
* @param {
|
|
35
|
+
* @param {MediaStreamProtocol} [transcodingProtocol] Optional. The transcoding protocol.
|
|
35
36
|
* @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate.
|
|
36
37
|
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
37
38
|
* @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media.
|
|
@@ -40,7 +41,7 @@ export declare const UniversalAudioApiAxiosParamCreator: (configuration?: Config
|
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
getUniversalAudioStream: (itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?:
|
|
44
|
+
getUniversalAudioStream: (itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
45
|
/**
|
|
45
46
|
*
|
|
46
47
|
* @summary Gets an audio stream.
|
|
@@ -56,7 +57,7 @@ export declare const UniversalAudioApiAxiosParamCreator: (configuration?: Config
|
|
|
56
57
|
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
57
58
|
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
58
59
|
* @param {string} [transcodingContainer] Optional. The container to transcode to.
|
|
59
|
-
* @param {
|
|
60
|
+
* @param {MediaStreamProtocol} [transcodingProtocol] Optional. The transcoding protocol.
|
|
60
61
|
* @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate.
|
|
61
62
|
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
62
63
|
* @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media.
|
|
@@ -65,7 +66,7 @@ export declare const UniversalAudioApiAxiosParamCreator: (configuration?: Config
|
|
|
65
66
|
* @param {*} [options] Override http request option.
|
|
66
67
|
* @throws {RequiredError}
|
|
67
68
|
*/
|
|
68
|
-
headUniversalAudioStream: (itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?:
|
|
69
|
+
headUniversalAudioStream: (itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
70
|
};
|
|
70
71
|
/**
|
|
71
72
|
* UniversalAudioApi - functional programming interface
|
|
@@ -87,7 +88,7 @@ export declare const UniversalAudioApiFp: (configuration?: Configuration) => {
|
|
|
87
88
|
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
88
89
|
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
89
90
|
* @param {string} [transcodingContainer] Optional. The container to transcode to.
|
|
90
|
-
* @param {
|
|
91
|
+
* @param {MediaStreamProtocol} [transcodingProtocol] Optional. The transcoding protocol.
|
|
91
92
|
* @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate.
|
|
92
93
|
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
93
94
|
* @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media.
|
|
@@ -96,7 +97,7 @@ export declare const UniversalAudioApiFp: (configuration?: Configuration) => {
|
|
|
96
97
|
* @param {*} [options] Override http request option.
|
|
97
98
|
* @throws {RequiredError}
|
|
98
99
|
*/
|
|
99
|
-
getUniversalAudioStream(itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?:
|
|
100
|
+
getUniversalAudioStream(itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
100
101
|
/**
|
|
101
102
|
*
|
|
102
103
|
* @summary Gets an audio stream.
|
|
@@ -112,7 +113,7 @@ export declare const UniversalAudioApiFp: (configuration?: Configuration) => {
|
|
|
112
113
|
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
113
114
|
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
114
115
|
* @param {string} [transcodingContainer] Optional. The container to transcode to.
|
|
115
|
-
* @param {
|
|
116
|
+
* @param {MediaStreamProtocol} [transcodingProtocol] Optional. The transcoding protocol.
|
|
116
117
|
* @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate.
|
|
117
118
|
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
118
119
|
* @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media.
|
|
@@ -121,7 +122,7 @@ export declare const UniversalAudioApiFp: (configuration?: Configuration) => {
|
|
|
121
122
|
* @param {*} [options] Override http request option.
|
|
122
123
|
* @throws {RequiredError}
|
|
123
124
|
*/
|
|
124
|
-
headUniversalAudioStream(itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?:
|
|
125
|
+
headUniversalAudioStream(itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
125
126
|
};
|
|
126
127
|
/**
|
|
127
128
|
* UniversalAudioApi - factory interface
|
|
@@ -143,7 +144,7 @@ export declare const UniversalAudioApiFactory: (configuration?: Configuration, b
|
|
|
143
144
|
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
144
145
|
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
145
146
|
* @param {string} [transcodingContainer] Optional. The container to transcode to.
|
|
146
|
-
* @param {
|
|
147
|
+
* @param {MediaStreamProtocol} [transcodingProtocol] Optional. The transcoding protocol.
|
|
147
148
|
* @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate.
|
|
148
149
|
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
149
150
|
* @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media.
|
|
@@ -152,7 +153,7 @@ export declare const UniversalAudioApiFactory: (configuration?: Configuration, b
|
|
|
152
153
|
* @param {*} [options] Override http request option.
|
|
153
154
|
* @throws {RequiredError}
|
|
154
155
|
*/
|
|
155
|
-
getUniversalAudioStream(itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?:
|
|
156
|
+
getUniversalAudioStream(itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: any): AxiosPromise<any>;
|
|
156
157
|
/**
|
|
157
158
|
*
|
|
158
159
|
* @summary Gets an audio stream.
|
|
@@ -168,7 +169,7 @@ export declare const UniversalAudioApiFactory: (configuration?: Configuration, b
|
|
|
168
169
|
* @param {number} [audioBitRate] Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.
|
|
169
170
|
* @param {number} [startTimeTicks] Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.
|
|
170
171
|
* @param {string} [transcodingContainer] Optional. The container to transcode to.
|
|
171
|
-
* @param {
|
|
172
|
+
* @param {MediaStreamProtocol} [transcodingProtocol] Optional. The transcoding protocol.
|
|
172
173
|
* @param {number} [maxAudioSampleRate] Optional. The maximum audio sample rate.
|
|
173
174
|
* @param {number} [maxAudioBitDepth] Optional. The maximum audio bit depth.
|
|
174
175
|
* @param {boolean} [enableRemoteMedia] Optional. Whether to enable remote media.
|
|
@@ -177,7 +178,7 @@ export declare const UniversalAudioApiFactory: (configuration?: Configuration, b
|
|
|
177
178
|
* @param {*} [options] Override http request option.
|
|
178
179
|
* @throws {RequiredError}
|
|
179
180
|
*/
|
|
180
|
-
headUniversalAudioStream(itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?:
|
|
181
|
+
headUniversalAudioStream(itemId: string, container?: Array<string>, mediaSourceId?: string, deviceId?: string, userId?: string, audioCodec?: string, maxAudioChannels?: number, transcodingAudioChannels?: number, maxStreamingBitrate?: number, audioBitRate?: number, startTimeTicks?: number, transcodingContainer?: string, transcodingProtocol?: MediaStreamProtocol, maxAudioSampleRate?: number, maxAudioBitDepth?: number, enableRemoteMedia?: boolean, breakOnNonKeyFrames?: boolean, enableRedirection?: boolean, options?: any): AxiosPromise<any>;
|
|
181
182
|
};
|
|
182
183
|
/**
|
|
183
184
|
* Request parameters for getUniversalAudioStream operation in UniversalAudioApi.
|
|
@@ -259,10 +260,10 @@ export interface UniversalAudioApiGetUniversalAudioStreamRequest {
|
|
|
259
260
|
readonly transcodingContainer?: string;
|
|
260
261
|
/**
|
|
261
262
|
* Optional. The transcoding protocol.
|
|
262
|
-
* @type {
|
|
263
|
+
* @type {MediaStreamProtocol}
|
|
263
264
|
* @memberof UniversalAudioApiGetUniversalAudioStream
|
|
264
265
|
*/
|
|
265
|
-
readonly transcodingProtocol?:
|
|
266
|
+
readonly transcodingProtocol?: MediaStreamProtocol;
|
|
266
267
|
/**
|
|
267
268
|
* Optional. The maximum audio sample rate.
|
|
268
269
|
* @type {number}
|
|
@@ -374,10 +375,10 @@ export interface UniversalAudioApiHeadUniversalAudioStreamRequest {
|
|
|
374
375
|
readonly transcodingContainer?: string;
|
|
375
376
|
/**
|
|
376
377
|
* Optional. The transcoding protocol.
|
|
377
|
-
* @type {
|
|
378
|
+
* @type {MediaStreamProtocol}
|
|
378
379
|
* @memberof UniversalAudioApiHeadUniversalAudioStream
|
|
379
380
|
*/
|
|
380
|
-
readonly transcodingProtocol?:
|
|
381
|
+
readonly transcodingProtocol?: MediaStreamProtocol;
|
|
381
382
|
/**
|
|
382
383
|
* Optional. The maximum audio sample rate.
|
|
383
384
|
* @type {number}
|