@jellyfin/sdk 0.11.0 → 0.13.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/CHANGELOG.md +142 -0
- package/README.md +8 -53
- package/lib/api.d.ts +11 -2
- package/lib/api.js +23 -13
- package/lib/generated-client/api/activity-log-api.d.ts +1 -1
- package/lib/generated-client/api/api-key-api.d.ts +3 -3
- package/lib/generated-client/api/artists-api.d.ts +3 -3
- package/lib/generated-client/api/audio-api.d.ts +10 -10
- package/lib/generated-client/api/audio-api.js +4 -4
- package/lib/generated-client/api/backup-api.d.ts +209 -0
- package/lib/generated-client/api/backup-api.js +311 -0
- package/lib/generated-client/api/branding-api.d.ts +6 -6
- package/lib/generated-client/api/channels-api.d.ts +5 -5
- package/lib/generated-client/api/client-log-api.d.ts +1 -1
- package/lib/generated-client/api/collection-api.d.ts +3 -3
- package/lib/generated-client/api/configuration-api.d.ts +52 -5
- package/lib/generated-client/api/configuration-api.js +68 -1
- package/lib/generated-client/api/dashboard-api.d.ts +2 -2
- package/lib/generated-client/api/dashboard-api.js +1 -1
- package/lib/generated-client/api/devices-api.d.ts +5 -5
- package/lib/generated-client/api/devices-api.js +1 -1
- package/lib/generated-client/api/display-preferences-api.d.ts +2 -2
- package/lib/generated-client/api/display-preferences-api.js +1 -1
- package/lib/generated-client/api/dlna-api.d.ts +6 -6
- package/lib/generated-client/api/dlna-server-api.d.ts +16 -16
- package/lib/generated-client/api/dynamic-hls-api.d.ts +9 -9
- package/lib/generated-client/api/environment-api.d.ts +6 -6
- package/lib/generated-client/api/environment-api.js +1 -1
- package/lib/generated-client/api/filter-api.d.ts +2 -2
- package/lib/generated-client/api/genres-api.d.ts +2 -2
- package/lib/generated-client/api/genres-api.js +1 -1
- package/lib/generated-client/api/hls-segment-api.d.ts +5 -5
- package/lib/generated-client/api/hls-segment-api.js +1 -1
- package/lib/generated-client/api/image-api.d.ts +43 -331
- package/lib/generated-client/api/image-api.js +16 -196
- package/lib/generated-client/api/image-by-name-api.d.ts +6 -6
- package/lib/generated-client/api/instant-mix-api.d.ts +8 -8
- package/lib/generated-client/api/item-lookup-api.d.ts +11 -11
- package/lib/generated-client/api/item-refresh-api.d.ts +11 -3
- package/lib/generated-client/api/item-refresh-api.js +10 -5
- package/lib/generated-client/api/item-update-api.d.ts +3 -3
- package/lib/generated-client/api/items-api.d.ts +4 -4
- package/lib/generated-client/api/items-api.js +1 -1
- package/lib/generated-client/api/library-api.d.ts +25 -25
- package/lib/generated-client/api/library-api.js +1 -1
- package/lib/generated-client/api/library-structure-api.d.ts +8 -8
- package/lib/generated-client/api/live-tv-api.d.ts +55 -47
- package/lib/generated-client/api/live-tv-api.js +15 -10
- package/lib/generated-client/api/localization-api.d.ts +4 -4
- package/lib/generated-client/api/lyrics-api.d.ts +6 -6
- package/lib/generated-client/api/lyrics-api.js +1 -1
- package/lib/generated-client/api/media-info-api.d.ts +5 -5
- package/lib/generated-client/api/media-info-api.js +1 -1
- package/lib/generated-client/api/media-segments-api.d.ts +1 -1
- package/lib/generated-client/api/movies-api.d.ts +1 -1
- package/lib/generated-client/api/music-genres-api.d.ts +2 -2
- package/lib/generated-client/api/music-genres-api.js +1 -1
- package/lib/generated-client/api/notifications-api.d.ts +7 -7
- package/lib/generated-client/api/package-api.d.ts +6 -6
- package/lib/generated-client/api/package-api.js +1 -1
- package/lib/generated-client/api/persons-api.d.ts +2 -2
- package/lib/generated-client/api/persons-api.js +1 -1
- package/lib/generated-client/api/playlists-api.d.ts +11 -11
- package/lib/generated-client/api/playlists-api.js +1 -1
- package/lib/generated-client/api/playstate-api.d.ts +21 -9
- package/lib/generated-client/api/playstate-api.js +13 -1
- package/lib/generated-client/api/plugins-api.d.ts +9 -9
- package/lib/generated-client/api/quick-connect-api.d.ts +4 -4
- package/lib/generated-client/api/quick-connect-api.js +1 -1
- package/lib/generated-client/api/remote-image-api.d.ts +3 -3
- package/lib/generated-client/api/scheduled-tasks-api.d.ts +5 -5
- package/lib/generated-client/api/scheduled-tasks-api.js +1 -1
- package/lib/generated-client/api/search-api.d.ts +1 -1
- package/lib/generated-client/api/session-api.d.ts +16 -16
- package/lib/generated-client/api/startup-api.d.ts +7 -7
- package/lib/generated-client/api/startup-api.js +1 -1
- package/lib/generated-client/api/studios-api.d.ts +2 -2
- package/lib/generated-client/api/studios-api.js +1 -1
- package/lib/generated-client/api/subtitle-api.d.ts +10 -10
- package/lib/generated-client/api/subtitle-api.js +1 -1
- package/lib/generated-client/api/suggestions-api.d.ts +1 -1
- package/lib/generated-client/api/sync-play-api.d.ts +69 -23
- package/lib/generated-client/api/sync-play-api.js +67 -1
- package/lib/generated-client/api/system-api.d.ts +18 -22
- package/lib/generated-client/api/system-api.js +13 -17
- package/lib/generated-client/api/time-sync-api.d.ts +1 -1
- package/lib/generated-client/api/tmdb-api.d.ts +1 -1
- package/lib/generated-client/api/trailers-api.d.ts +1 -1
- package/lib/generated-client/api/trickplay-api.d.ts +2 -2
- package/lib/generated-client/api/tv-shows-api.d.ts +4 -4
- package/lib/generated-client/api/tv-shows-api.js +1 -1
- package/lib/generated-client/api/universal-audio-api.d.ts +2 -2
- package/lib/generated-client/api/user-api.d.ts +14 -14
- package/lib/generated-client/api/user-api.js +1 -1
- package/lib/generated-client/api/user-library-api.d.ts +10 -10
- package/lib/generated-client/api/user-views-api.d.ts +2 -2
- package/lib/generated-client/api/video-attachments-api.d.ts +1 -1
- package/lib/generated-client/api/videos-api.d.ts +7 -7
- package/lib/generated-client/api/years-api.d.ts +2 -2
- package/lib/generated-client/api/years-api.js +1 -1
- package/lib/generated-client/api.d.ts +1 -0
- package/lib/generated-client/common.d.ts +1 -1
- package/lib/generated-client/index.js +3 -0
- package/lib/generated-client/models/backup-manifest-dto.d.ts +48 -0
- package/lib/generated-client/models/backup-options-dto.d.ts +41 -0
- package/lib/generated-client/models/backup-restore-request-dto.d.ts +23 -0
- package/lib/generated-client/models/base-item-dto.d.ts +3 -3
- package/lib/generated-client/models/branding-options-dto.d.ts +35 -0
- package/lib/generated-client/models/custom-database-option.d.ts +29 -0
- package/lib/generated-client/models/custom-database-options.d.ts +42 -0
- package/lib/generated-client/models/database-configuration-options.d.ts +37 -0
- package/lib/generated-client/models/database-locking-behavior-types.d.ts +21 -0
- package/lib/generated-client/models/database-locking-behavior-types.js +24 -0
- package/lib/generated-client/models/external-id-info.d.ts +0 -7
- 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/folder-storage-dto.d.ts +47 -0
- package/lib/generated-client/models/group-update-type.d.ts +0 -2
- package/lib/generated-client/models/group-update-type.js +0 -2
- package/lib/generated-client/models/group-update.d.ts +19 -14
- package/lib/generated-client/models/index.d.ts +25 -8
- package/lib/generated-client/models/index.js +2 -0
- package/lib/generated-client/models/item-fields.d.ts +0 -11
- package/lib/generated-client/models/item-fields.js +0 -11
- package/lib/generated-client/models/item-sort-by.d.ts +0 -2
- package/lib/generated-client/models/item-sort-by.js +1 -3
- package/lib/generated-client/models/library-options-result-dto.d.ts +6 -0
- package/lib/generated-client/models/library-options.d.ts +1 -1
- package/lib/generated-client/models/library-storage-dto.d.ts +36 -0
- package/lib/generated-client/models/lyric-line-cue.d.ts +41 -0
- package/lib/generated-client/models/lyric-line.d.ts +7 -0
- package/lib/generated-client/models/media-segment-type.d.ts +1 -1
- package/lib/generated-client/models/media-segment-type.js +1 -1
- package/lib/generated-client/models/media-stream.d.ts +6 -0
- package/lib/generated-client/models/metadata-editor-info.d.ts +6 -6
- package/lib/generated-client/models/network-configuration.d.ts +1 -0
- package/lib/generated-client/models/open-live-stream-dto.d.ts +1 -1
- package/lib/generated-client/models/outbound-web-socket-message.d.ts +2 -2
- package/lib/generated-client/models/parental-rating-score.d.ts +29 -0
- package/lib/generated-client/models/parental-rating.d.ts +8 -1
- package/lib/generated-client/models/playback-info-dto.d.ts +1 -1
- package/lib/generated-client/models/plugin-status.d.ts +1 -0
- package/lib/generated-client/models/plugin-status.js +1 -0
- package/lib/generated-client/models/profile-condition-value.d.ts +1 -0
- package/lib/generated-client/models/profile-condition-value.js +2 -1
- package/lib/generated-client/models/server-configuration.d.ts +21 -9
- package/lib/generated-client/models/startup-configuration-dto.d.ts +6 -0
- package/lib/generated-client/models/startup-remote-access-dto.d.ts +1 -0
- package/lib/generated-client/models/sync-play-group-does-not-exist-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-group-joined-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-group-left-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-group-update-message.d.ts +37 -0
- package/lib/generated-client/models/sync-play-library-access-denied-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-not-in-group-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-play-queue-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-state-update.d.ts +37 -0
- package/lib/generated-client/models/sync-play-user-joined-update.d.ts +36 -0
- package/lib/generated-client/models/sync-play-user-left-update.d.ts +36 -0
- package/lib/generated-client/models/system-info.d.ts +7 -0
- package/lib/generated-client/models/system-storage-dto.d.ts +67 -0
- package/lib/generated-client/models/task-trigger-info-type.d.ts +22 -0
- package/lib/generated-client/models/task-trigger-info-type.js +25 -0
- package/lib/generated-client/models/task-trigger-info.d.ts +4 -3
- package/lib/generated-client/models/transcode-reason.d.ts +1 -0
- package/lib/generated-client/models/transcode-reason.js +2 -1
- package/lib/generated-client/models/transcoding-info.d.ts +1 -1
- package/lib/generated-client/models/transcoding-profile.d.ts +1 -1
- package/lib/generated-client/models/trickplay-info-dto.d.ts +59 -0
- package/lib/generated-client/models/trickplay-info.d.ts +7 -1
- package/lib/generated-client/models/tuner-host-info.d.ts +6 -0
- package/lib/generated-client/models/user-policy.d.ts +6 -0
- package/lib/generated-client/models/video-range-type.d.ts +4 -0
- package/lib/generated-client/models/video-range-type.js +4 -0
- package/lib/models/api/image-request-parameters.d.ts +0 -1
- package/lib/models/api/index.d.ts +0 -1
- package/lib/models/api/index.js +1 -1
- package/lib/utils/api/session-api.js +16 -1
- package/lib/utils/api/user-api.js +26 -1
- package/lib/versions.d.ts +2 -2
- package/lib/versions.js +2 -2
- package/package.json +18 -16
- package/lib/models/api/item-sort-by.d.ts +0 -40
- package/lib/models/api/item-sort-by.js +0 -43
|
@@ -120,42 +120,49 @@ export interface SystemInfo {
|
|
|
120
120
|
* Gets or sets the program data path.
|
|
121
121
|
* @type {string}
|
|
122
122
|
* @memberof SystemInfo
|
|
123
|
+
* @deprecated
|
|
123
124
|
*/
|
|
124
125
|
'ProgramDataPath'?: string | null;
|
|
125
126
|
/**
|
|
126
127
|
* Gets or sets the web UI resources path.
|
|
127
128
|
* @type {string}
|
|
128
129
|
* @memberof SystemInfo
|
|
130
|
+
* @deprecated
|
|
129
131
|
*/
|
|
130
132
|
'WebPath'?: string | null;
|
|
131
133
|
/**
|
|
132
134
|
* Gets or sets the items by name path.
|
|
133
135
|
* @type {string}
|
|
134
136
|
* @memberof SystemInfo
|
|
137
|
+
* @deprecated
|
|
135
138
|
*/
|
|
136
139
|
'ItemsByNamePath'?: string | null;
|
|
137
140
|
/**
|
|
138
141
|
* Gets or sets the cache path.
|
|
139
142
|
* @type {string}
|
|
140
143
|
* @memberof SystemInfo
|
|
144
|
+
* @deprecated
|
|
141
145
|
*/
|
|
142
146
|
'CachePath'?: string | null;
|
|
143
147
|
/**
|
|
144
148
|
* Gets or sets the log path.
|
|
145
149
|
* @type {string}
|
|
146
150
|
* @memberof SystemInfo
|
|
151
|
+
* @deprecated
|
|
147
152
|
*/
|
|
148
153
|
'LogPath'?: string | null;
|
|
149
154
|
/**
|
|
150
155
|
* Gets or sets the internal metadata path.
|
|
151
156
|
* @type {string}
|
|
152
157
|
* @memberof SystemInfo
|
|
158
|
+
* @deprecated
|
|
153
159
|
*/
|
|
154
160
|
'InternalMetadataPath'?: string | null;
|
|
155
161
|
/**
|
|
156
162
|
* Gets or sets the transcode path.
|
|
157
163
|
* @type {string}
|
|
158
164
|
* @memberof SystemInfo
|
|
165
|
+
* @deprecated
|
|
159
166
|
*/
|
|
160
167
|
'TranscodingTempPath'?: string | null;
|
|
161
168
|
/**
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3
|
+
* Do not edit the class manually.
|
|
4
|
+
*
|
|
5
|
+
* Jellyfin API
|
|
6
|
+
*
|
|
7
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
8
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
|
+
*/
|
|
11
|
+
import type { FolderStorageDto } from './folder-storage-dto';
|
|
12
|
+
import type { LibraryStorageDto } from './library-storage-dto';
|
|
13
|
+
/**
|
|
14
|
+
* Contains informations about the systems storage.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SystemStorageDto
|
|
17
|
+
*/
|
|
18
|
+
export interface SystemStorageDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {FolderStorageDto}
|
|
22
|
+
* @memberof SystemStorageDto
|
|
23
|
+
*/
|
|
24
|
+
'ProgramDataFolder'?: FolderStorageDto;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {FolderStorageDto}
|
|
28
|
+
* @memberof SystemStorageDto
|
|
29
|
+
*/
|
|
30
|
+
'WebFolder'?: FolderStorageDto;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {FolderStorageDto}
|
|
34
|
+
* @memberof SystemStorageDto
|
|
35
|
+
*/
|
|
36
|
+
'ImageCacheFolder'?: FolderStorageDto;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {FolderStorageDto}
|
|
40
|
+
* @memberof SystemStorageDto
|
|
41
|
+
*/
|
|
42
|
+
'CacheFolder'?: FolderStorageDto;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {FolderStorageDto}
|
|
46
|
+
* @memberof SystemStorageDto
|
|
47
|
+
*/
|
|
48
|
+
'LogFolder'?: FolderStorageDto;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {FolderStorageDto}
|
|
52
|
+
* @memberof SystemStorageDto
|
|
53
|
+
*/
|
|
54
|
+
'InternalMetadataFolder'?: FolderStorageDto;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {FolderStorageDto}
|
|
58
|
+
* @memberof SystemStorageDto
|
|
59
|
+
*/
|
|
60
|
+
'TranscodingTempFolder'?: FolderStorageDto;
|
|
61
|
+
/**
|
|
62
|
+
* Gets or sets the storage informations of all libraries.
|
|
63
|
+
* @type {Array<LibraryStorageDto>}
|
|
64
|
+
* @memberof SystemStorageDto
|
|
65
|
+
*/
|
|
66
|
+
'Libraries'?: Array<LibraryStorageDto>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3
|
+
* Do not edit the class manually.
|
|
4
|
+
*
|
|
5
|
+
* Jellyfin API
|
|
6
|
+
*
|
|
7
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
8
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Enum TaskTriggerInfoType.
|
|
13
|
+
* @export
|
|
14
|
+
* @enum {string}
|
|
15
|
+
*/
|
|
16
|
+
export declare const TaskTriggerInfoType: {
|
|
17
|
+
readonly DailyTrigger: "DailyTrigger";
|
|
18
|
+
readonly WeeklyTrigger: "WeeklyTrigger";
|
|
19
|
+
readonly IntervalTrigger: "IntervalTrigger";
|
|
20
|
+
readonly StartupTrigger: "StartupTrigger";
|
|
21
|
+
};
|
|
22
|
+
export type TaskTriggerInfoType = typeof TaskTriggerInfoType[keyof typeof TaskTriggerInfoType];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5
|
+
* Do not edit the class manually.
|
|
6
|
+
*
|
|
7
|
+
* Jellyfin API
|
|
8
|
+
*
|
|
9
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
10
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
11
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Enum TaskTriggerInfoType.
|
|
15
|
+
* @export
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*/
|
|
18
|
+
const TaskTriggerInfoType = {
|
|
19
|
+
DailyTrigger: 'DailyTrigger',
|
|
20
|
+
WeeklyTrigger: 'WeeklyTrigger',
|
|
21
|
+
IntervalTrigger: 'IntervalTrigger',
|
|
22
|
+
StartupTrigger: 'StartupTrigger'
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { TaskTriggerInfoType };
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
11
|
import type { DayOfWeek } from './day-of-week';
|
|
12
|
+
import type { TaskTriggerInfoType } from './task-trigger-info-type';
|
|
12
13
|
/**
|
|
13
14
|
* Class TaskTriggerInfo.
|
|
14
15
|
* @export
|
|
@@ -16,11 +17,11 @@ import type { DayOfWeek } from './day-of-week';
|
|
|
16
17
|
*/
|
|
17
18
|
export interface TaskTriggerInfo {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {
|
|
20
|
+
*
|
|
21
|
+
* @type {TaskTriggerInfoType}
|
|
21
22
|
* @memberof TaskTriggerInfo
|
|
22
23
|
*/
|
|
23
|
-
'Type'?:
|
|
24
|
+
'Type'?: TaskTriggerInfoType;
|
|
24
25
|
/**
|
|
25
26
|
* Gets or sets the time of day.
|
|
26
27
|
* @type {number}
|
|
@@ -40,5 +40,6 @@ export declare const TranscodeReason: {
|
|
|
40
40
|
readonly DirectPlayError: "DirectPlayError";
|
|
41
41
|
readonly VideoRangeTypeNotSupported: "VideoRangeTypeNotSupported";
|
|
42
42
|
readonly VideoCodecTagNotSupported: "VideoCodecTagNotSupported";
|
|
43
|
+
readonly StreamCountExceedsLimit: "StreamCountExceedsLimit";
|
|
43
44
|
};
|
|
44
45
|
export type TranscodeReason = typeof TranscodeReason[keyof typeof TranscodeReason];
|
|
@@ -41,7 +41,8 @@ const TranscodeReason = {
|
|
|
41
41
|
UnknownAudioStreamInfo: 'UnknownAudioStreamInfo',
|
|
42
42
|
DirectPlayError: 'DirectPlayError',
|
|
43
43
|
VideoRangeTypeNotSupported: 'VideoRangeTypeNotSupported',
|
|
44
|
-
VideoCodecTagNotSupported: 'VideoCodecTagNotSupported'
|
|
44
|
+
VideoCodecTagNotSupported: 'VideoCodecTagNotSupported',
|
|
45
|
+
StreamCountExceedsLimit: 'StreamCountExceedsLimit'
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
export { TranscodeReason };
|
|
@@ -14,7 +14,7 @@ import type { MediaStreamProtocol } from './media-stream-protocol';
|
|
|
14
14
|
import type { ProfileCondition } from './profile-condition';
|
|
15
15
|
import type { TranscodeSeekInfo } from './transcode-seek-info';
|
|
16
16
|
/**
|
|
17
|
-
* A class for transcoding profile information.
|
|
17
|
+
* A class for transcoding profile information. Note for client developers: Conditions defined in MediaBrowser.Model.Dlna.CodecProfile has higher priority and can override values defined here.
|
|
18
18
|
* @export
|
|
19
19
|
* @interface TranscodingProfile
|
|
20
20
|
*/
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3
|
+
* Do not edit the class manually.
|
|
4
|
+
*
|
|
5
|
+
* Jellyfin API
|
|
6
|
+
*
|
|
7
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
8
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
9
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* The trickplay api model.
|
|
13
|
+
* @export
|
|
14
|
+
* @interface TrickplayInfoDto
|
|
15
|
+
*/
|
|
16
|
+
export interface TrickplayInfoDto {
|
|
17
|
+
/**
|
|
18
|
+
* Gets the width of an individual thumbnail.
|
|
19
|
+
* @type {number}
|
|
20
|
+
* @memberof TrickplayInfoDto
|
|
21
|
+
*/
|
|
22
|
+
'Width'?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the height of an individual thumbnail.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof TrickplayInfoDto
|
|
27
|
+
*/
|
|
28
|
+
'Height'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the amount of thumbnails per row.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof TrickplayInfoDto
|
|
33
|
+
*/
|
|
34
|
+
'TileWidth'?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the amount of thumbnails per column.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof TrickplayInfoDto
|
|
39
|
+
*/
|
|
40
|
+
'TileHeight'?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the total amount of non-black thumbnails.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof TrickplayInfoDto
|
|
45
|
+
*/
|
|
46
|
+
'ThumbnailCount'?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Gets the interval in milliseconds between each trickplay thumbnail.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof TrickplayInfoDto
|
|
51
|
+
*/
|
|
52
|
+
'Interval'?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Gets the peak bandwidth usage in bits per second.
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof TrickplayInfoDto
|
|
57
|
+
*/
|
|
58
|
+
'Bandwidth'?: number;
|
|
59
|
+
}
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
* @interface TrickplayInfo
|
|
15
15
|
*/
|
|
16
16
|
export interface TrickplayInfo {
|
|
17
|
+
/**
|
|
18
|
+
* Gets or sets the id of the associated item.
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof TrickplayInfo
|
|
21
|
+
*/
|
|
22
|
+
'ItemId'?: string;
|
|
17
23
|
/**
|
|
18
24
|
* Gets or sets width of an individual thumbnail.
|
|
19
25
|
* @type {number}
|
|
@@ -51,7 +57,7 @@ export interface TrickplayInfo {
|
|
|
51
57
|
*/
|
|
52
58
|
'Interval'?: number;
|
|
53
59
|
/**
|
|
54
|
-
* Gets or sets peak
|
|
60
|
+
* Gets or sets peak bandwidth usage in bits per second.
|
|
55
61
|
* @type {number}
|
|
56
62
|
* @memberof TrickplayInfo
|
|
57
63
|
*/
|
|
@@ -22,6 +22,10 @@ export declare const VideoRangeType: {
|
|
|
22
22
|
readonly DoviWithHdr10: "DOVIWithHDR10";
|
|
23
23
|
readonly DoviWithHlg: "DOVIWithHLG";
|
|
24
24
|
readonly DoviWithSdr: "DOVIWithSDR";
|
|
25
|
+
readonly DoviWithEl: "DOVIWithEL";
|
|
26
|
+
readonly DoviWithHdr10Plus: "DOVIWithHDR10Plus";
|
|
27
|
+
readonly DoviWithElhdr10Plus: "DOVIWithELHDR10Plus";
|
|
28
|
+
readonly DoviInvalid: "DOVIInvalid";
|
|
25
29
|
readonly Hdr10Plus: "HDR10Plus";
|
|
26
30
|
};
|
|
27
31
|
export type VideoRangeType = typeof VideoRangeType[keyof typeof VideoRangeType];
|
|
@@ -24,6 +24,10 @@ const VideoRangeType = {
|
|
|
24
24
|
DoviWithHdr10: 'DOVIWithHDR10',
|
|
25
25
|
DoviWithHlg: 'DOVIWithHLG',
|
|
26
26
|
DoviWithSdr: 'DOVIWithSDR',
|
|
27
|
+
DoviWithEl: 'DOVIWithEL',
|
|
28
|
+
DoviWithHdr10Plus: 'DOVIWithHDR10Plus',
|
|
29
|
+
DoviWithElhdr10Plus: 'DOVIWithELHDR10Plus',
|
|
30
|
+
DoviInvalid: 'DOVIInvalid',
|
|
27
31
|
Hdr10Plus: 'HDR10Plus'
|
|
28
32
|
};
|
|
29
33
|
|
package/lib/models/api/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -5,8 +5,23 @@ import { SessionApi } from '../../generated-client/api/session-api.js';
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
+
/** An augmented SessionApi that updates the state of the access token in the Api instance. */
|
|
9
|
+
class AugmentedSessionApi extends SessionApi {
|
|
10
|
+
constructor(api) {
|
|
11
|
+
super(api.configuration, undefined, api.axiosInstance);
|
|
12
|
+
this.api = api;
|
|
13
|
+
}
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type
|
|
15
|
+
reportSessionEnded(options) {
|
|
16
|
+
return super.reportSessionEnded(options)
|
|
17
|
+
.then(response => {
|
|
18
|
+
this.api.accessToken = '';
|
|
19
|
+
return response;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
8
23
|
function getSessionApi(api) {
|
|
9
|
-
return new
|
|
24
|
+
return new AugmentedSessionApi(api);
|
|
10
25
|
}
|
|
11
26
|
|
|
12
27
|
export { getSessionApi };
|
|
@@ -5,8 +5,33 @@ import { UserApi } from '../../generated-client/api/user-api.js';
|
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
6
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
7
7
|
*/
|
|
8
|
+
/** An augmented UserApi that updates the state of the access token in the Api instance. */
|
|
9
|
+
class AugmentedUserApi extends UserApi {
|
|
10
|
+
constructor(api) {
|
|
11
|
+
super(api.configuration, undefined, api.axiosInstance);
|
|
12
|
+
this.api = api;
|
|
13
|
+
}
|
|
14
|
+
authenticateUserByName(requestParameters, options
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type
|
|
16
|
+
) {
|
|
17
|
+
return super.authenticateUserByName(requestParameters, options)
|
|
18
|
+
.then(response => {
|
|
19
|
+
this.api.accessToken = response.data.AccessToken || '';
|
|
20
|
+
return response;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
authenticateWithQuickConnect(requestParameters, options
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type
|
|
25
|
+
) {
|
|
26
|
+
return super.authenticateWithQuickConnect(requestParameters, options)
|
|
27
|
+
.then(response => {
|
|
28
|
+
this.api.accessToken = response.data.AccessToken || '';
|
|
29
|
+
return response;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
8
33
|
function getUserApi(api) {
|
|
9
|
-
return new
|
|
34
|
+
return new AugmentedUserApi(api);
|
|
10
35
|
}
|
|
11
36
|
|
|
12
37
|
export { getUserApi };
|
package/lib/versions.d.ts
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
6
6
|
/** The current API version of the generated client. */
|
|
7
|
-
export declare const API_VERSION = "10.
|
|
7
|
+
export declare const API_VERSION = "10.11.1";
|
|
8
8
|
/** The minimum supported server version. */
|
|
9
|
-
export declare const MINIMUM_VERSION = "10.
|
|
9
|
+
export declare const MINIMUM_VERSION = "10.10.0";
|
package/lib/versions.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
6
6
|
/** The current API version of the generated client. */
|
|
7
|
-
const API_VERSION = '10.
|
|
7
|
+
const API_VERSION = '10.11.1';
|
|
8
8
|
/** The minimum supported server version. */
|
|
9
|
-
const MINIMUM_VERSION = '10.
|
|
9
|
+
const MINIMUM_VERSION = '10.10.0';
|
|
10
10
|
|
|
11
11
|
export { API_VERSION, MINIMUM_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jellyfin/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "A TypeScript SDK for Jellyfin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jellyfin"
|
|
@@ -26,23 +26,25 @@
|
|
|
26
26
|
"test:integration": "vitest integration"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@openapitools/openapi-generator-cli": "2.
|
|
30
|
-
"@rollup/plugin-typescript": "12.1.
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"eslint": "8.
|
|
36
|
-
"
|
|
37
|
-
"eslint-plugin
|
|
38
|
-
"
|
|
29
|
+
"@openapitools/openapi-generator-cli": "2.25.0",
|
|
30
|
+
"@rollup/plugin-typescript": "12.1.4",
|
|
31
|
+
"@stylistic/eslint-plugin": "2.13.0",
|
|
32
|
+
"@tsconfig/recommended": "1.0.10",
|
|
33
|
+
"@types/node": "24.9.1",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "8.46.2",
|
|
35
|
+
"@typescript-eslint/parser": "8.46.2",
|
|
36
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
37
|
+
"@vitest/eslint-plugin": "1.3.23",
|
|
38
|
+
"eslint": "8.57.1",
|
|
39
|
+
"eslint-plugin-import": "2.32.0",
|
|
40
|
+
"glob": "11.0.3",
|
|
39
41
|
"rimraf": "5.0.10",
|
|
40
|
-
"rollup": "4.
|
|
41
|
-
"typedoc": "0.
|
|
42
|
-
"typescript": "5.
|
|
43
|
-
"vitest": "2.
|
|
42
|
+
"rollup": "4.52.5",
|
|
43
|
+
"typedoc": "0.28.14",
|
|
44
|
+
"typescript": "5.9.3",
|
|
45
|
+
"vitest": "3.2.4"
|
|
44
46
|
},
|
|
45
47
|
"peerDependencies": {
|
|
46
|
-
"axios": "^1.
|
|
48
|
+
"axios": "^1.12.0"
|
|
47
49
|
}
|
|
48
50
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
3
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* An enum representing the item sort by options.
|
|
8
|
-
* References: https://github.com/jellyfin/jellyfin/blob/master/MediaBrowser.Model/Querying/ItemSortBy.cs
|
|
9
|
-
* @export
|
|
10
|
-
* @enum {string}
|
|
11
|
-
*/
|
|
12
|
-
export declare enum ItemSortBy {
|
|
13
|
-
AiredEpisodeOrder = "AiredEpisodeOrder",
|
|
14
|
-
AirTime = "AirTime",
|
|
15
|
-
Album = "Album",
|
|
16
|
-
AlbumArtist = "AlbumArtist",
|
|
17
|
-
Artist = "Artist",
|
|
18
|
-
CommunityRating = "CommunityRating",
|
|
19
|
-
CriticRating = "CriticRating",
|
|
20
|
-
DateCreated = "DateCreated",
|
|
21
|
-
DateLastContentAdded = "DateLastContentAdded",
|
|
22
|
-
DatePlayed = "DatePlayed",
|
|
23
|
-
IsFavoriteOrLiked = "IsFavoriteOrLiked",
|
|
24
|
-
IsFolder = "IsFolder",
|
|
25
|
-
IsPlayed = "IsPlayed",
|
|
26
|
-
IsUnplayed = "IsUnplayed",
|
|
27
|
-
Name = "Name",
|
|
28
|
-
OfficialRating = "OfficialRating",
|
|
29
|
-
PlayCount = "PlayCount",
|
|
30
|
-
PremiereDate = "PremiereDate",
|
|
31
|
-
ProductionYear = "ProductionYear",
|
|
32
|
-
Random = "Random",
|
|
33
|
-
Runtime = "Runtime",
|
|
34
|
-
SeriesDatePlayed = "SeriesDatePlayed",
|
|
35
|
-
SeriesSortName = "SeriesSortName",
|
|
36
|
-
SortName = "SortName",
|
|
37
|
-
StartDate = "StartDate",
|
|
38
|
-
Studio = "Studio",
|
|
39
|
-
VideoBitRate = "VideoBitRate"
|
|
40
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
3
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* An enum representing the item sort by options.
|
|
8
|
-
* References: https://github.com/jellyfin/jellyfin/blob/master/MediaBrowser.Model/Querying/ItemSortBy.cs
|
|
9
|
-
* @export
|
|
10
|
-
* @enum {string}
|
|
11
|
-
*/
|
|
12
|
-
var ItemSortBy;
|
|
13
|
-
(function (ItemSortBy) {
|
|
14
|
-
ItemSortBy["AiredEpisodeOrder"] = "AiredEpisodeOrder";
|
|
15
|
-
ItemSortBy["AirTime"] = "AirTime";
|
|
16
|
-
ItemSortBy["Album"] = "Album";
|
|
17
|
-
ItemSortBy["AlbumArtist"] = "AlbumArtist";
|
|
18
|
-
ItemSortBy["Artist"] = "Artist";
|
|
19
|
-
ItemSortBy["CommunityRating"] = "CommunityRating";
|
|
20
|
-
ItemSortBy["CriticRating"] = "CriticRating";
|
|
21
|
-
ItemSortBy["DateCreated"] = "DateCreated";
|
|
22
|
-
ItemSortBy["DateLastContentAdded"] = "DateLastContentAdded";
|
|
23
|
-
ItemSortBy["DatePlayed"] = "DatePlayed";
|
|
24
|
-
ItemSortBy["IsFavoriteOrLiked"] = "IsFavoriteOrLiked";
|
|
25
|
-
ItemSortBy["IsFolder"] = "IsFolder";
|
|
26
|
-
ItemSortBy["IsPlayed"] = "IsPlayed";
|
|
27
|
-
ItemSortBy["IsUnplayed"] = "IsUnplayed";
|
|
28
|
-
ItemSortBy["Name"] = "Name";
|
|
29
|
-
ItemSortBy["OfficialRating"] = "OfficialRating";
|
|
30
|
-
ItemSortBy["PlayCount"] = "PlayCount";
|
|
31
|
-
ItemSortBy["PremiereDate"] = "PremiereDate";
|
|
32
|
-
ItemSortBy["ProductionYear"] = "ProductionYear";
|
|
33
|
-
ItemSortBy["Random"] = "Random";
|
|
34
|
-
ItemSortBy["Runtime"] = "Runtime";
|
|
35
|
-
ItemSortBy["SeriesDatePlayed"] = "SeriesDatePlayed";
|
|
36
|
-
ItemSortBy["SeriesSortName"] = "SeriesSortName";
|
|
37
|
-
ItemSortBy["SortName"] = "SortName";
|
|
38
|
-
ItemSortBy["StartDate"] = "StartDate";
|
|
39
|
-
ItemSortBy["Studio"] = "Studio";
|
|
40
|
-
ItemSortBy["VideoBitRate"] = "VideoBitRate";
|
|
41
|
-
})(ItemSortBy || (ItemSortBy = {}));
|
|
42
|
-
|
|
43
|
-
export { ItemSortBy };
|