@jellyfin/sdk 0.0.0-unstable.202512090502 → 0.0.0-unstable.202601062209
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/.nvmrc +1 -0
- package/CHANGELOG.md +5 -1
- package/eslint.config.mjs +118 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.js +3 -1
- package/lib/generated-client/api/activity-log-api.d.ts +10 -2
- package/lib/generated-client/api/activity-log-api.js +12 -5
- package/lib/generated-client/index.js +0 -1
- package/lib/generated-client/models/album-info.d.ts +2 -2
- package/lib/generated-client/models/backup-manifest-dto.d.ts +5 -5
- package/lib/generated-client/models/backup-restore-request-dto.d.ts +1 -1
- package/lib/generated-client/models/base-item-dto-image-blur-hashes.d.ts +26 -26
- package/lib/generated-client/models/base-item-dto.d.ts +4 -4
- package/lib/generated-client/models/base-item-person-image-blur-hashes.d.ts +26 -26
- package/lib/generated-client/models/cast-receiver-application.d.ts +2 -2
- package/lib/generated-client/models/channel-mapping-options-dto.d.ts +2 -2
- package/lib/generated-client/models/create-playlist-dto.d.ts +1 -1
- package/lib/generated-client/models/custom-database-option.d.ts +2 -2
- package/lib/generated-client/models/custom-database-options.d.ts +3 -3
- package/lib/generated-client/models/database-configuration-options.d.ts +1 -1
- package/lib/generated-client/models/device-profile.d.ts +1 -1
- package/lib/generated-client/models/folder-storage-dto.d.ts +1 -1
- package/lib/generated-client/models/general-command.d.ts +2 -2
- package/lib/generated-client/models/index.js +0 -1
- package/lib/generated-client/models/library-storage-dto.d.ts +3 -3
- package/lib/generated-client/models/log-file.d.ts +1 -1
- package/lib/generated-client/models/playlist-dto.d.ts +2 -2
- package/lib/generated-client/models/remote-lyric-info-dto.d.ts +3 -3
- package/lib/generated-client/models/series-timer-info-dto.d.ts +2 -2
- package/lib/generated-client/models/system-storage-dto.d.ts +8 -8
- package/lib/generated-client/models/transcoding-info.d.ts +2 -3
- package/lib/generated-client/models/user-data-change-info.d.ts +1 -1
- package/lib/generated-client/models/user-item-data-dto.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/models/api/image-request-parameters.d.ts +1 -1
- package/lib/utils/api/library-api.d.ts +15 -3
- package/lib/utils/api/library-api.js +17 -1
- package/package.json +18 -15
- package/lib/generated-client/models/transcoding-info.js +0 -15
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
* `getLibraryApi` now returns an augmented class with a `getDownloadUrl` method ([#967](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/967)).
|
|
13
|
+
|
|
10
14
|
## [0.13.0] - 2025-10-28
|
|
11
15
|
|
|
12
16
|
### Changed
|
|
@@ -15,7 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
15
19
|
|
|
16
20
|
### Deprecated
|
|
17
21
|
|
|
18
|
-
* Deprecate authentication helper methods in `Api` class ([#949](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/
|
|
22
|
+
* Deprecate authentication helper methods in `Api` class ([#949](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/949)).
|
|
19
23
|
Updating the `accessToken` is now handled transparently in `getUserApi` and `getSessionApi`. If you need to handle
|
|
20
24
|
authentication manually, then you should manually create `UserApi` and `SessionApi` instances.
|
|
21
25
|
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import stylistic from '@stylistic/eslint-plugin';
|
|
3
|
+
import vitest from '@vitest/eslint-plugin';
|
|
4
|
+
import importPlugin from 'eslint-plugin-import';
|
|
5
|
+
import globals from 'globals';
|
|
6
|
+
import tseslint from 'typescript-eslint';
|
|
7
|
+
|
|
8
|
+
export default tseslint.config(
|
|
9
|
+
// Global ignores
|
|
10
|
+
{
|
|
11
|
+
ignores: [
|
|
12
|
+
'dist/**',
|
|
13
|
+
'docs/**',
|
|
14
|
+
'src/generated-client/**',
|
|
15
|
+
'lib/**',
|
|
16
|
+
'node_modules/**'
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
// Base config for all files
|
|
21
|
+
eslint.configs.recommended,
|
|
22
|
+
...tseslint.configs.recommended,
|
|
23
|
+
|
|
24
|
+
// Main source files config
|
|
25
|
+
{
|
|
26
|
+
files: ['**/*.ts', '**/*.mjs', '**/*.js'],
|
|
27
|
+
plugins: {
|
|
28
|
+
'@stylistic': stylistic,
|
|
29
|
+
'import': importPlugin
|
|
30
|
+
},
|
|
31
|
+
languageOptions: {
|
|
32
|
+
globals: {
|
|
33
|
+
...globals.node
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
settings: {
|
|
37
|
+
'import/resolver': {
|
|
38
|
+
typescript: true,
|
|
39
|
+
node: true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
rules: {
|
|
43
|
+
'import/order': ['error', {
|
|
44
|
+
'alphabetize': { 'order': 'asc', 'caseInsensitive': true },
|
|
45
|
+
'newlines-between': 'always-and-inside-groups'
|
|
46
|
+
}],
|
|
47
|
+
|
|
48
|
+
'@stylistic/type-annotation-spacing': ['error'],
|
|
49
|
+
|
|
50
|
+
'@typescript-eslint/consistent-type-imports': ['error'],
|
|
51
|
+
|
|
52
|
+
'array-callback-return': ['error'],
|
|
53
|
+
'arrow-spacing': ['error'],
|
|
54
|
+
'block-spacing': ['error'],
|
|
55
|
+
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
|
|
56
|
+
'comma-dangle': ['error', 'never'],
|
|
57
|
+
'comma-spacing': ['error'],
|
|
58
|
+
'curly': ['error', 'multi-line'],
|
|
59
|
+
'eol-last': ['error'],
|
|
60
|
+
'indent': ['error', 'tab', { 'SwitchCase': 1 }],
|
|
61
|
+
'jsx-quotes': ['error', 'prefer-single'],
|
|
62
|
+
'key-spacing': ['error'],
|
|
63
|
+
'keyword-spacing': ['error'],
|
|
64
|
+
'max-statements-per-line': ['error'],
|
|
65
|
+
'no-floating-decimal': ['error'],
|
|
66
|
+
'no-multi-spaces': ['error'],
|
|
67
|
+
'no-multiple-empty-lines': ['error', { 'max': 1 }],
|
|
68
|
+
'no-restricted-globals': ['error'],
|
|
69
|
+
'no-trailing-spaces': ['error'],
|
|
70
|
+
'no-unreachable': ['error'],
|
|
71
|
+
'no-unused-expressions': ['error', { 'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true }],
|
|
72
|
+
'object-curly-spacing': ['error', 'always'],
|
|
73
|
+
'one-var': ['error', 'never'],
|
|
74
|
+
'padded-blocks': ['error', 'never'],
|
|
75
|
+
'prefer-const': ['error', { 'destructuring': 'all' }],
|
|
76
|
+
'quotes': ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': false }],
|
|
77
|
+
'semi': ['error'],
|
|
78
|
+
'no-var': ['error'],
|
|
79
|
+
'space-before-blocks': ['error'],
|
|
80
|
+
'space-before-function-paren': ['error', { 'anonymous': 'never', 'named': 'never', 'asyncArrow': 'always' }],
|
|
81
|
+
'space-infix-ops': 'error',
|
|
82
|
+
'yoda': 'error'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
// Source files - browser environment
|
|
87
|
+
{
|
|
88
|
+
files: ['src/**/*.ts'],
|
|
89
|
+
languageOptions: {
|
|
90
|
+
globals: {
|
|
91
|
+
...globals.browser
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
// Test files config
|
|
97
|
+
{
|
|
98
|
+
files: ['**/*.test.ts'],
|
|
99
|
+
plugins: {
|
|
100
|
+
vitest
|
|
101
|
+
},
|
|
102
|
+
languageOptions: {
|
|
103
|
+
globals: {
|
|
104
|
+
...globals.node
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
rules: {
|
|
108
|
+
...vitest.configs.recommended.rules,
|
|
109
|
+
'vitest/consistent-test-it': ['error'],
|
|
110
|
+
'vitest/prefer-lowercase-title': ['error', { 'ignoreTopLevelDescribe': true }],
|
|
111
|
+
'vitest/require-top-level-describe': ['error'],
|
|
112
|
+
// Disable because we use custom `itIf` helper that the plugin doesn't recognize
|
|
113
|
+
'vitest/no-standalone-expect': 'off',
|
|
114
|
+
// Disable rules that require type information (would need parserOptions.project)
|
|
115
|
+
'vitest/valid-title': 'off'
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
);
|
package/lib/api.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ import type { AuthenticationResult } from './generated-client/models/authenticat
|
|
|
9
9
|
import type { ClientInfo, DeviceInfo } from './models';
|
|
10
10
|
/** The authorization header field name. */
|
|
11
11
|
export declare const AUTHORIZATION_HEADER = "Authorization";
|
|
12
|
+
/** The authorization query parameter name. */
|
|
13
|
+
export declare const AUTHORIZATION_PARAMETER = "ApiKey";
|
|
12
14
|
/** Class representing the Jellyfin API. */
|
|
13
15
|
export declare class Api {
|
|
14
16
|
basePath: string;
|
package/lib/api.js
CHANGED
|
@@ -6,6 +6,8 @@ import { getUserApi } from './utils/api/user-api.js';
|
|
|
6
6
|
|
|
7
7
|
/** The authorization header field name. */
|
|
8
8
|
const AUTHORIZATION_HEADER = 'Authorization';
|
|
9
|
+
/** The authorization query parameter name. */
|
|
10
|
+
const AUTHORIZATION_PARAMETER = 'ApiKey';
|
|
9
11
|
/** Class representing the Jellyfin API. */
|
|
10
12
|
class Api {
|
|
11
13
|
constructor(basePath, clientInfo, deviceInfo, accessToken = '', axiosInstance = globalAxios) {
|
|
@@ -62,4 +64,4 @@ class Api {
|
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
export { AUTHORIZATION_HEADER, Api };
|
|
67
|
+
export { AUTHORIZATION_HEADER, AUTHORIZATION_PARAMETER, Api };
|
|
@@ -26,6 +26,7 @@ export declare const ActivityLogApiAxiosParamCreator: (configuration?: Configura
|
|
|
26
26
|
* @param {number} [startIndex] The record index to start at. All items with a lower index will be dropped from the results.
|
|
27
27
|
* @param {number} [limit] The maximum number of records to return.
|
|
28
28
|
* @param {string} [minDate] The minimum date.
|
|
29
|
+
* @param {string} [maxDate] The maximum date.
|
|
29
30
|
* @param {boolean} [hasUserId] Filter log entries if it has user id, or not.
|
|
30
31
|
* @param {string} [name] Filter by name.
|
|
31
32
|
* @param {string} [overview] Filter by overview.
|
|
@@ -39,7 +40,7 @@ export declare const ActivityLogApiAxiosParamCreator: (configuration?: Configura
|
|
|
39
40
|
* @param {*} [options] Override http request option.
|
|
40
41
|
* @throws {RequiredError}
|
|
41
42
|
*/
|
|
42
|
-
getLogEntries: (startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, name?: string, overview?: string, shortOverview?: string, type?: string, itemId?: string, username?: string, severity?: LogLevel, sortBy?: Array<ActivityLogSortBy>, sortOrder?: Array<SortOrder>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
+
getLogEntries: (startIndex?: number, limit?: number, minDate?: string, maxDate?: string, hasUserId?: boolean, name?: string, overview?: string, shortOverview?: string, type?: string, itemId?: string, username?: string, severity?: LogLevel, sortBy?: Array<ActivityLogSortBy>, sortOrder?: Array<SortOrder>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
44
|
};
|
|
44
45
|
/**
|
|
45
46
|
* ActivityLogApi - functional programming interface
|
|
@@ -52,6 +53,7 @@ export declare const ActivityLogApiFp: (configuration?: Configuration) => {
|
|
|
52
53
|
* @param {number} [startIndex] The record index to start at. All items with a lower index will be dropped from the results.
|
|
53
54
|
* @param {number} [limit] The maximum number of records to return.
|
|
54
55
|
* @param {string} [minDate] The minimum date.
|
|
56
|
+
* @param {string} [maxDate] The maximum date.
|
|
55
57
|
* @param {boolean} [hasUserId] Filter log entries if it has user id, or not.
|
|
56
58
|
* @param {string} [name] Filter by name.
|
|
57
59
|
* @param {string} [overview] Filter by overview.
|
|
@@ -65,7 +67,7 @@ export declare const ActivityLogApiFp: (configuration?: Configuration) => {
|
|
|
65
67
|
* @param {*} [options] Override http request option.
|
|
66
68
|
* @throws {RequiredError}
|
|
67
69
|
*/
|
|
68
|
-
getLogEntries(startIndex?: number, limit?: number, minDate?: string, hasUserId?: boolean, name?: string, overview?: string, shortOverview?: string, type?: string, itemId?: string, username?: string, severity?: LogLevel, sortBy?: Array<ActivityLogSortBy>, sortOrder?: Array<SortOrder>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityLogEntryQueryResult>>;
|
|
70
|
+
getLogEntries(startIndex?: number, limit?: number, minDate?: string, maxDate?: string, hasUserId?: boolean, name?: string, overview?: string, shortOverview?: string, type?: string, itemId?: string, username?: string, severity?: LogLevel, sortBy?: Array<ActivityLogSortBy>, sortOrder?: Array<SortOrder>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityLogEntryQueryResult>>;
|
|
69
71
|
};
|
|
70
72
|
/**
|
|
71
73
|
* ActivityLogApi - factory interface
|
|
@@ -105,6 +107,12 @@ export interface ActivityLogApiGetLogEntriesRequest {
|
|
|
105
107
|
* @memberof ActivityLogApiGetLogEntries
|
|
106
108
|
*/
|
|
107
109
|
readonly minDate?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The maximum date.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof ActivityLogApiGetLogEntries
|
|
114
|
+
*/
|
|
115
|
+
readonly maxDate?: string;
|
|
108
116
|
/**
|
|
109
117
|
* Filter log entries if it has user id, or not.
|
|
110
118
|
* @type {boolean}
|
|
@@ -26,6 +26,7 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
26
26
|
* @param {number} [startIndex] The record index to start at. All items with a lower index will be dropped from the results.
|
|
27
27
|
* @param {number} [limit] The maximum number of records to return.
|
|
28
28
|
* @param {string} [minDate] The minimum date.
|
|
29
|
+
* @param {string} [maxDate] The maximum date.
|
|
29
30
|
* @param {boolean} [hasUserId] Filter log entries if it has user id, or not.
|
|
30
31
|
* @param {string} [name] Filter by name.
|
|
31
32
|
* @param {string} [overview] Filter by overview.
|
|
@@ -39,7 +40,7 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
39
40
|
* @param {*} [options] Override http request option.
|
|
40
41
|
* @throws {RequiredError}
|
|
41
42
|
*/
|
|
42
|
-
getLogEntries: async (startIndex, limit, minDate, hasUserId, name, overview, shortOverview, type, itemId, username, severity, sortBy, sortOrder, options = {}) => {
|
|
43
|
+
getLogEntries: async (startIndex, limit, minDate, maxDate, hasUserId, name, overview, shortOverview, type, itemId, username, severity, sortBy, sortOrder, options = {}) => {
|
|
43
44
|
const localVarPath = `/System/ActivityLog/Entries`;
|
|
44
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -63,6 +64,11 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
63
64
|
minDate.toISOString() :
|
|
64
65
|
minDate;
|
|
65
66
|
}
|
|
67
|
+
if (maxDate !== undefined) {
|
|
68
|
+
localVarQueryParameter['maxDate'] = (maxDate instanceof Date) ?
|
|
69
|
+
maxDate.toISOString() :
|
|
70
|
+
maxDate;
|
|
71
|
+
}
|
|
66
72
|
if (hasUserId !== undefined) {
|
|
67
73
|
localVarQueryParameter['hasUserId'] = hasUserId;
|
|
68
74
|
}
|
|
@@ -116,6 +122,7 @@ const ActivityLogApiFp = function (configuration) {
|
|
|
116
122
|
* @param {number} [startIndex] The record index to start at. All items with a lower index will be dropped from the results.
|
|
117
123
|
* @param {number} [limit] The maximum number of records to return.
|
|
118
124
|
* @param {string} [minDate] The minimum date.
|
|
125
|
+
* @param {string} [maxDate] The maximum date.
|
|
119
126
|
* @param {boolean} [hasUserId] Filter log entries if it has user id, or not.
|
|
120
127
|
* @param {string} [name] Filter by name.
|
|
121
128
|
* @param {string} [overview] Filter by overview.
|
|
@@ -129,9 +136,9 @@ const ActivityLogApiFp = function (configuration) {
|
|
|
129
136
|
* @param {*} [options] Override http request option.
|
|
130
137
|
* @throws {RequiredError}
|
|
131
138
|
*/
|
|
132
|
-
async getLogEntries(startIndex, limit, minDate, hasUserId, name, overview, shortOverview, type, itemId, username, severity, sortBy, sortOrder, options) {
|
|
139
|
+
async getLogEntries(startIndex, limit, minDate, maxDate, hasUserId, name, overview, shortOverview, type, itemId, username, severity, sortBy, sortOrder, options) {
|
|
133
140
|
var _a, _b, _c;
|
|
134
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLogEntries(startIndex, limit, minDate, hasUserId, name, overview, shortOverview, type, itemId, username, severity, sortBy, sortOrder, options);
|
|
141
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLogEntries(startIndex, limit, minDate, maxDate, hasUserId, name, overview, shortOverview, type, itemId, username, severity, sortBy, sortOrder, options);
|
|
135
142
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
136
143
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ActivityLogApi.getLogEntries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
137
144
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -153,7 +160,7 @@ const ActivityLogApiFactory = function (configuration, basePath, axios) {
|
|
|
153
160
|
* @throws {RequiredError}
|
|
154
161
|
*/
|
|
155
162
|
getLogEntries(requestParameters = {}, options) {
|
|
156
|
-
return localVarFp.getLogEntries(requestParameters.startIndex, requestParameters.limit, requestParameters.minDate, requestParameters.hasUserId, requestParameters.name, requestParameters.overview, requestParameters.shortOverview, requestParameters.type, requestParameters.itemId, requestParameters.username, requestParameters.severity, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
|
|
163
|
+
return localVarFp.getLogEntries(requestParameters.startIndex, requestParameters.limit, requestParameters.minDate, requestParameters.maxDate, requestParameters.hasUserId, requestParameters.name, requestParameters.overview, requestParameters.shortOverview, requestParameters.type, requestParameters.itemId, requestParameters.username, requestParameters.severity, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath));
|
|
157
164
|
},
|
|
158
165
|
};
|
|
159
166
|
};
|
|
@@ -173,7 +180,7 @@ class ActivityLogApi extends BaseAPI {
|
|
|
173
180
|
* @memberof ActivityLogApi
|
|
174
181
|
*/
|
|
175
182
|
getLogEntries(requestParameters = {}, options) {
|
|
176
|
-
return ActivityLogApiFp(this.configuration).getLogEntries(requestParameters.startIndex, requestParameters.limit, requestParameters.minDate, requestParameters.hasUserId, requestParameters.name, requestParameters.overview, requestParameters.shortOverview, requestParameters.type, requestParameters.itemId, requestParameters.username, requestParameters.severity, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
183
|
+
return ActivityLogApiFp(this.configuration).getLogEntries(requestParameters.startIndex, requestParameters.limit, requestParameters.minDate, requestParameters.maxDate, requestParameters.hasUserId, requestParameters.name, requestParameters.overview, requestParameters.shortOverview, requestParameters.type, requestParameters.itemId, requestParameters.username, requestParameters.severity, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
177
184
|
}
|
|
178
185
|
}
|
|
179
186
|
|
|
@@ -146,7 +146,6 @@ export { TonemappingMode } from './models/tonemapping-mode.js';
|
|
|
146
146
|
export { TonemappingRange } from './models/tonemapping-range.js';
|
|
147
147
|
export { TranscodeReason } from './models/transcode-reason.js';
|
|
148
148
|
export { TranscodeSeekInfo } from './models/transcode-seek-info.js';
|
|
149
|
-
export { TranscodingInfoTranscodeReasonsEnum } from './models/transcoding-info.js';
|
|
150
149
|
export { TransportStreamTimestamp } from './models/transport-stream-timestamp.js';
|
|
151
150
|
export { TrickplayScanBehavior } from './models/trickplay-scan-behavior.js';
|
|
152
151
|
export { UnratedItem } from './models/unrated-item.js';
|
|
@@ -91,11 +91,11 @@ export interface AlbumInfo {
|
|
|
91
91
|
'AlbumArtists'?: Array<string>;
|
|
92
92
|
/**
|
|
93
93
|
* Gets or sets the artist provider ids.
|
|
94
|
-
* @type {{ [key: string]: string
|
|
94
|
+
* @type {{ [key: string]: string; }}
|
|
95
95
|
* @memberof AlbumInfo
|
|
96
96
|
*/
|
|
97
97
|
'ArtistProviderIds'?: {
|
|
98
|
-
[key: string]: string
|
|
98
|
+
[key: string]: string;
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
@@ -20,29 +20,29 @@ export interface BackupManifestDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof BackupManifestDto
|
|
22
22
|
*/
|
|
23
|
-
'ServerVersion'
|
|
23
|
+
'ServerVersion': string;
|
|
24
24
|
/**
|
|
25
25
|
* Gets or sets the backup engine version this backup was created with.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof BackupManifestDto
|
|
28
28
|
*/
|
|
29
|
-
'BackupEngineVersion'
|
|
29
|
+
'BackupEngineVersion': string;
|
|
30
30
|
/**
|
|
31
31
|
* Gets or sets the date this backup was created with.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof BackupManifestDto
|
|
34
34
|
*/
|
|
35
|
-
'DateCreated'
|
|
35
|
+
'DateCreated': string;
|
|
36
36
|
/**
|
|
37
37
|
* Gets or sets the path to the backup on the system.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof BackupManifestDto
|
|
40
40
|
*/
|
|
41
|
-
'Path'
|
|
41
|
+
'Path': string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {BackupOptionsDto}
|
|
45
45
|
* @memberof BackupManifestDto
|
|
46
46
|
*/
|
|
47
|
-
'Options'
|
|
47
|
+
'Options': BackupOptionsDto;
|
|
48
48
|
}
|
|
@@ -16,106 +16,106 @@
|
|
|
16
16
|
export interface BaseItemDtoImageBlurHashes {
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
|
-
* @type {{ [key: string]: string; }}
|
|
19
|
+
* @type {{ [key: string]: string | null; }}
|
|
20
20
|
* @memberof BaseItemDtoImageBlurHashes
|
|
21
21
|
*/
|
|
22
22
|
'Primary'?: {
|
|
23
|
-
[key: string]: string;
|
|
23
|
+
[key: string]: string | null;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @type {{ [key: string]: string | null; }}
|
|
28
28
|
* @memberof BaseItemDtoImageBlurHashes
|
|
29
29
|
*/
|
|
30
30
|
'Art'?: {
|
|
31
|
-
[key: string]: string;
|
|
31
|
+
[key: string]: string | null;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
|
-
* @type {{ [key: string]: string; }}
|
|
35
|
+
* @type {{ [key: string]: string | null; }}
|
|
36
36
|
* @memberof BaseItemDtoImageBlurHashes
|
|
37
37
|
*/
|
|
38
38
|
'Backdrop'?: {
|
|
39
|
-
[key: string]: string;
|
|
39
|
+
[key: string]: string | null;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: string; }}
|
|
43
|
+
* @type {{ [key: string]: string | null; }}
|
|
44
44
|
* @memberof BaseItemDtoImageBlurHashes
|
|
45
45
|
*/
|
|
46
46
|
'Banner'?: {
|
|
47
|
-
[key: string]: string;
|
|
47
|
+
[key: string]: string | null;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {{ [key: string]: string; }}
|
|
51
|
+
* @type {{ [key: string]: string | null; }}
|
|
52
52
|
* @memberof BaseItemDtoImageBlurHashes
|
|
53
53
|
*/
|
|
54
54
|
'Logo'?: {
|
|
55
|
-
[key: string]: string;
|
|
55
|
+
[key: string]: string | null;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
|
-
* @type {{ [key: string]: string; }}
|
|
59
|
+
* @type {{ [key: string]: string | null; }}
|
|
60
60
|
* @memberof BaseItemDtoImageBlurHashes
|
|
61
61
|
*/
|
|
62
62
|
'Thumb'?: {
|
|
63
|
-
[key: string]: string;
|
|
63
|
+
[key: string]: string | null;
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @type {{ [key: string]: string; }}
|
|
67
|
+
* @type {{ [key: string]: string | null; }}
|
|
68
68
|
* @memberof BaseItemDtoImageBlurHashes
|
|
69
69
|
*/
|
|
70
70
|
'Disc'?: {
|
|
71
|
-
[key: string]: string;
|
|
71
|
+
[key: string]: string | null;
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
|
-
* @type {{ [key: string]: string; }}
|
|
75
|
+
* @type {{ [key: string]: string | null; }}
|
|
76
76
|
* @memberof BaseItemDtoImageBlurHashes
|
|
77
77
|
*/
|
|
78
78
|
'Box'?: {
|
|
79
|
-
[key: string]: string;
|
|
79
|
+
[key: string]: string | null;
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
|
-
* @type {{ [key: string]: string; }}
|
|
83
|
+
* @type {{ [key: string]: string | null; }}
|
|
84
84
|
* @memberof BaseItemDtoImageBlurHashes
|
|
85
85
|
*/
|
|
86
86
|
'Screenshot'?: {
|
|
87
|
-
[key: string]: string;
|
|
87
|
+
[key: string]: string | null;
|
|
88
88
|
};
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
|
-
* @type {{ [key: string]: string; }}
|
|
91
|
+
* @type {{ [key: string]: string | null; }}
|
|
92
92
|
* @memberof BaseItemDtoImageBlurHashes
|
|
93
93
|
*/
|
|
94
94
|
'Menu'?: {
|
|
95
|
-
[key: string]: string;
|
|
95
|
+
[key: string]: string | null;
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
|
-
* @type {{ [key: string]: string; }}
|
|
99
|
+
* @type {{ [key: string]: string | null; }}
|
|
100
100
|
* @memberof BaseItemDtoImageBlurHashes
|
|
101
101
|
*/
|
|
102
102
|
'Chapter'?: {
|
|
103
|
-
[key: string]: string;
|
|
103
|
+
[key: string]: string | null;
|
|
104
104
|
};
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
|
-
* @type {{ [key: string]: string; }}
|
|
107
|
+
* @type {{ [key: string]: string | null; }}
|
|
108
108
|
* @memberof BaseItemDtoImageBlurHashes
|
|
109
109
|
*/
|
|
110
110
|
'BoxRear'?: {
|
|
111
|
-
[key: string]: string;
|
|
111
|
+
[key: string]: string | null;
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
|
-
* @type {{ [key: string]: string; }}
|
|
115
|
+
* @type {{ [key: string]: string | null; }}
|
|
116
116
|
* @memberof BaseItemDtoImageBlurHashes
|
|
117
117
|
*/
|
|
118
118
|
'Profile'?: {
|
|
119
|
-
[key: string]: string;
|
|
119
|
+
[key: string]: string | null;
|
|
120
120
|
};
|
|
121
121
|
}
|
|
@@ -582,11 +582,11 @@ export interface BaseItemDto {
|
|
|
582
582
|
'MediaSourceCount'?: number | null;
|
|
583
583
|
/**
|
|
584
584
|
* Gets or sets the image tags.
|
|
585
|
-
* @type {{ [key: string]: string; }}
|
|
585
|
+
* @type {{ [key: string]: string | null; }}
|
|
586
586
|
* @memberof BaseItemDto
|
|
587
587
|
*/
|
|
588
588
|
'ImageTags'?: {
|
|
589
|
-
[key: string]: string;
|
|
589
|
+
[key: string]: string | null;
|
|
590
590
|
} | null;
|
|
591
591
|
/**
|
|
592
592
|
* Gets or sets the backdrop image tags.
|
|
@@ -668,13 +668,13 @@ export interface BaseItemDto {
|
|
|
668
668
|
'Chapters'?: Array<ChapterInfo> | null;
|
|
669
669
|
/**
|
|
670
670
|
* Gets or sets the trickplay manifest.
|
|
671
|
-
* @type {{ [key: string]: { [key: string]: TrickplayInfoDto; }; }}
|
|
671
|
+
* @type {{ [key: string]: { [key: string]: TrickplayInfoDto; } | null; }}
|
|
672
672
|
* @memberof BaseItemDto
|
|
673
673
|
*/
|
|
674
674
|
'Trickplay'?: {
|
|
675
675
|
[key: string]: {
|
|
676
676
|
[key: string]: TrickplayInfoDto;
|
|
677
|
-
};
|
|
677
|
+
} | null;
|
|
678
678
|
} | null;
|
|
679
679
|
/**
|
|
680
680
|
*
|
|
@@ -16,106 +16,106 @@
|
|
|
16
16
|
export interface BaseItemPersonImageBlurHashes {
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
|
-
* @type {{ [key: string]: string; }}
|
|
19
|
+
* @type {{ [key: string]: string | null; }}
|
|
20
20
|
* @memberof BaseItemPersonImageBlurHashes
|
|
21
21
|
*/
|
|
22
22
|
'Primary'?: {
|
|
23
|
-
[key: string]: string;
|
|
23
|
+
[key: string]: string | null;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @type {{ [key: string]: string | null; }}
|
|
28
28
|
* @memberof BaseItemPersonImageBlurHashes
|
|
29
29
|
*/
|
|
30
30
|
'Art'?: {
|
|
31
|
-
[key: string]: string;
|
|
31
|
+
[key: string]: string | null;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
|
-
* @type {{ [key: string]: string; }}
|
|
35
|
+
* @type {{ [key: string]: string | null; }}
|
|
36
36
|
* @memberof BaseItemPersonImageBlurHashes
|
|
37
37
|
*/
|
|
38
38
|
'Backdrop'?: {
|
|
39
|
-
[key: string]: string;
|
|
39
|
+
[key: string]: string | null;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: string; }}
|
|
43
|
+
* @type {{ [key: string]: string | null; }}
|
|
44
44
|
* @memberof BaseItemPersonImageBlurHashes
|
|
45
45
|
*/
|
|
46
46
|
'Banner'?: {
|
|
47
|
-
[key: string]: string;
|
|
47
|
+
[key: string]: string | null;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {{ [key: string]: string; }}
|
|
51
|
+
* @type {{ [key: string]: string | null; }}
|
|
52
52
|
* @memberof BaseItemPersonImageBlurHashes
|
|
53
53
|
*/
|
|
54
54
|
'Logo'?: {
|
|
55
|
-
[key: string]: string;
|
|
55
|
+
[key: string]: string | null;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
|
-
* @type {{ [key: string]: string; }}
|
|
59
|
+
* @type {{ [key: string]: string | null; }}
|
|
60
60
|
* @memberof BaseItemPersonImageBlurHashes
|
|
61
61
|
*/
|
|
62
62
|
'Thumb'?: {
|
|
63
|
-
[key: string]: string;
|
|
63
|
+
[key: string]: string | null;
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @type {{ [key: string]: string; }}
|
|
67
|
+
* @type {{ [key: string]: string | null; }}
|
|
68
68
|
* @memberof BaseItemPersonImageBlurHashes
|
|
69
69
|
*/
|
|
70
70
|
'Disc'?: {
|
|
71
|
-
[key: string]: string;
|
|
71
|
+
[key: string]: string | null;
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
|
-
* @type {{ [key: string]: string; }}
|
|
75
|
+
* @type {{ [key: string]: string | null; }}
|
|
76
76
|
* @memberof BaseItemPersonImageBlurHashes
|
|
77
77
|
*/
|
|
78
78
|
'Box'?: {
|
|
79
|
-
[key: string]: string;
|
|
79
|
+
[key: string]: string | null;
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
|
-
* @type {{ [key: string]: string; }}
|
|
83
|
+
* @type {{ [key: string]: string | null; }}
|
|
84
84
|
* @memberof BaseItemPersonImageBlurHashes
|
|
85
85
|
*/
|
|
86
86
|
'Screenshot'?: {
|
|
87
|
-
[key: string]: string;
|
|
87
|
+
[key: string]: string | null;
|
|
88
88
|
};
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
|
-
* @type {{ [key: string]: string; }}
|
|
91
|
+
* @type {{ [key: string]: string | null; }}
|
|
92
92
|
* @memberof BaseItemPersonImageBlurHashes
|
|
93
93
|
*/
|
|
94
94
|
'Menu'?: {
|
|
95
|
-
[key: string]: string;
|
|
95
|
+
[key: string]: string | null;
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
|
-
* @type {{ [key: string]: string; }}
|
|
99
|
+
* @type {{ [key: string]: string | null; }}
|
|
100
100
|
* @memberof BaseItemPersonImageBlurHashes
|
|
101
101
|
*/
|
|
102
102
|
'Chapter'?: {
|
|
103
|
-
[key: string]: string;
|
|
103
|
+
[key: string]: string | null;
|
|
104
104
|
};
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
|
-
* @type {{ [key: string]: string; }}
|
|
107
|
+
* @type {{ [key: string]: string | null; }}
|
|
108
108
|
* @memberof BaseItemPersonImageBlurHashes
|
|
109
109
|
*/
|
|
110
110
|
'BoxRear'?: {
|
|
111
|
-
[key: string]: string;
|
|
111
|
+
[key: string]: string | null;
|
|
112
112
|
};
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
|
-
* @type {{ [key: string]: string; }}
|
|
115
|
+
* @type {{ [key: string]: string | null; }}
|
|
116
116
|
* @memberof BaseItemPersonImageBlurHashes
|
|
117
117
|
*/
|
|
118
118
|
'Profile'?: {
|
|
119
|
-
[key: string]: string;
|
|
119
|
+
[key: string]: string | null;
|
|
120
120
|
};
|
|
121
121
|
}
|
|
@@ -19,11 +19,11 @@ export interface CastReceiverApplication {
|
|
|
19
19
|
* @type {string}
|
|
20
20
|
* @memberof CastReceiverApplication
|
|
21
21
|
*/
|
|
22
|
-
'Id'
|
|
22
|
+
'Id': string;
|
|
23
23
|
/**
|
|
24
24
|
* Gets or sets the cast receiver application name.
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof CastReceiverApplication
|
|
27
27
|
*/
|
|
28
|
-
'Name'
|
|
28
|
+
'Name': string;
|
|
29
29
|
}
|
|
@@ -22,13 +22,13 @@ export interface ChannelMappingOptionsDto {
|
|
|
22
22
|
* @type {Array<TunerChannelMapping>}
|
|
23
23
|
* @memberof ChannelMappingOptionsDto
|
|
24
24
|
*/
|
|
25
|
-
'TunerChannels'
|
|
25
|
+
'TunerChannels': Array<TunerChannelMapping>;
|
|
26
26
|
/**
|
|
27
27
|
* Gets or sets list of provider channels.
|
|
28
28
|
* @type {Array<NameIdPair>}
|
|
29
29
|
* @memberof ChannelMappingOptionsDto
|
|
30
30
|
*/
|
|
31
|
-
'ProviderChannels'
|
|
31
|
+
'ProviderChannels': Array<NameIdPair>;
|
|
32
32
|
/**
|
|
33
33
|
* Gets or sets list of mappings.
|
|
34
34
|
* @type {Array<NameValuePair>}
|
|
@@ -19,11 +19,11 @@ export interface CustomDatabaseOption {
|
|
|
19
19
|
* @type {string}
|
|
20
20
|
* @memberof CustomDatabaseOption
|
|
21
21
|
*/
|
|
22
|
-
'Key'
|
|
22
|
+
'Key': string;
|
|
23
23
|
/**
|
|
24
24
|
* Gets or sets the value.
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof CustomDatabaseOption
|
|
27
27
|
*/
|
|
28
|
-
'Value'
|
|
28
|
+
'Value': string;
|
|
29
29
|
}
|
|
@@ -20,19 +20,19 @@ export interface CustomDatabaseOptions {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CustomDatabaseOptions
|
|
22
22
|
*/
|
|
23
|
-
'PluginName'
|
|
23
|
+
'PluginName': string;
|
|
24
24
|
/**
|
|
25
25
|
* Gets or sets the plugin assembly to search for providers.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CustomDatabaseOptions
|
|
28
28
|
*/
|
|
29
|
-
'PluginAssembly'
|
|
29
|
+
'PluginAssembly': string;
|
|
30
30
|
/**
|
|
31
31
|
* Gets or sets the connection string for the custom database provider.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CustomDatabaseOptions
|
|
34
34
|
*/
|
|
35
|
-
'ConnectionString'
|
|
35
|
+
'ConnectionString': string;
|
|
36
36
|
/**
|
|
37
37
|
* Gets or sets the list of extra options for the custom provider.
|
|
38
38
|
* @type {Array<CustomDatabaseOption>}
|
|
@@ -14,7 +14,7 @@ import type { DirectPlayProfile } from './direct-play-profile';
|
|
|
14
14
|
import type { SubtitleProfile } from './subtitle-profile';
|
|
15
15
|
import type { TranscodingProfile } from './transcoding-profile';
|
|
16
16
|
/**
|
|
17
|
-
* A MediaBrowser.Model.Dlna.DeviceProfile represents a set of metadata which determines which content a certain device is able to play.
|
|
17
|
+
* A MediaBrowser.Model.Dlna.DeviceProfile represents a set of metadata which determines which content a certain device is able to play. Specifically, it defines the supported <see cref=\"P:MediaBrowser.Model.Dlna.DeviceProfile.ContainerProfiles\">containers</see> and <see cref=\"P:MediaBrowser.Model.Dlna.DeviceProfile.CodecProfiles\">codecs</see> (video and/or audio, including codec profiles and levels) the device is able to direct play (without transcoding or remuxing), as well as which <see cref=\"P:MediaBrowser.Model.Dlna.DeviceProfile.TranscodingProfiles\">containers/codecs to transcode to</see> in case it isn\'t.
|
|
18
18
|
* @export
|
|
19
19
|
* @interface DeviceProfile
|
|
20
20
|
*/
|
|
@@ -19,7 +19,7 @@ export interface FolderStorageDto {
|
|
|
19
19
|
* @type {string}
|
|
20
20
|
* @memberof FolderStorageDto
|
|
21
21
|
*/
|
|
22
|
-
'Path'
|
|
22
|
+
'Path': string;
|
|
23
23
|
/**
|
|
24
24
|
* Gets the free space of the underlying storage device of the Jellyfin.Api.Models.SystemInfoDtos.FolderStorageDto.Path.
|
|
25
25
|
* @type {number}
|
|
@@ -29,10 +29,10 @@ export interface GeneralCommand {
|
|
|
29
29
|
'ControllingUserId'?: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {{ [key: string]: string
|
|
32
|
+
* @type {{ [key: string]: string; }}
|
|
33
33
|
* @memberof GeneralCommand
|
|
34
34
|
*/
|
|
35
35
|
'Arguments'?: {
|
|
36
|
-
[key: string]: string
|
|
36
|
+
[key: string]: string;
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -84,7 +84,6 @@ export { TonemappingMode } from './tonemapping-mode.js';
|
|
|
84
84
|
export { TonemappingRange } from './tonemapping-range.js';
|
|
85
85
|
export { TranscodeReason } from './transcode-reason.js';
|
|
86
86
|
export { TranscodeSeekInfo } from './transcode-seek-info.js';
|
|
87
|
-
export { TranscodingInfoTranscodeReasonsEnum } from './transcoding-info.js';
|
|
88
87
|
export { TransportStreamTimestamp } from './transport-stream-timestamp.js';
|
|
89
88
|
export { TrickplayScanBehavior } from './trickplay-scan-behavior.js';
|
|
90
89
|
export { UnratedItem } from './unrated-item.js';
|
|
@@ -20,17 +20,17 @@ export interface LibraryStorageDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof LibraryStorageDto
|
|
22
22
|
*/
|
|
23
|
-
'Id'
|
|
23
|
+
'Id': string;
|
|
24
24
|
/**
|
|
25
25
|
* Gets or sets the name of the library.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof LibraryStorageDto
|
|
28
28
|
*/
|
|
29
|
-
'Name'
|
|
29
|
+
'Name': string;
|
|
30
30
|
/**
|
|
31
31
|
* Gets or sets the storage informations about the folders used in a library.
|
|
32
32
|
* @type {Array<FolderStorageDto>}
|
|
33
33
|
* @memberof LibraryStorageDto
|
|
34
34
|
*/
|
|
35
|
-
'Folders'
|
|
35
|
+
'Folders': Array<FolderStorageDto>;
|
|
36
36
|
}
|
|
@@ -26,11 +26,11 @@ export interface PlaylistDto {
|
|
|
26
26
|
* @type {Array<PlaylistUserPermissions>}
|
|
27
27
|
* @memberof PlaylistDto
|
|
28
28
|
*/
|
|
29
|
-
'Shares'
|
|
29
|
+
'Shares': Array<PlaylistUserPermissions>;
|
|
30
30
|
/**
|
|
31
31
|
* Gets or sets the item ids.
|
|
32
32
|
* @type {Array<string>}
|
|
33
33
|
* @memberof PlaylistDto
|
|
34
34
|
*/
|
|
35
|
-
'ItemIds'
|
|
35
|
+
'ItemIds': Array<string>;
|
|
36
36
|
}
|
|
@@ -20,17 +20,17 @@ export interface RemoteLyricInfoDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RemoteLyricInfoDto
|
|
22
22
|
*/
|
|
23
|
-
'Id'
|
|
23
|
+
'Id': string;
|
|
24
24
|
/**
|
|
25
25
|
* Gets the provider name.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RemoteLyricInfoDto
|
|
28
28
|
*/
|
|
29
|
-
'ProviderName'
|
|
29
|
+
'ProviderName': string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {LyricDto}
|
|
33
33
|
* @memberof RemoteLyricInfoDto
|
|
34
34
|
*/
|
|
35
|
-
'Lyrics'
|
|
35
|
+
'Lyrics': LyricDto;
|
|
36
36
|
}
|
|
@@ -199,11 +199,11 @@ export interface SeriesTimerInfoDto {
|
|
|
199
199
|
'DayPattern'?: DayPattern;
|
|
200
200
|
/**
|
|
201
201
|
* Gets or sets the image tags.
|
|
202
|
-
* @type {{ [key: string]: string; }}
|
|
202
|
+
* @type {{ [key: string]: string | null; }}
|
|
203
203
|
* @memberof SeriesTimerInfoDto
|
|
204
204
|
*/
|
|
205
205
|
'ImageTags'?: {
|
|
206
|
-
[key: string]: string;
|
|
206
|
+
[key: string]: string | null;
|
|
207
207
|
} | null;
|
|
208
208
|
/**
|
|
209
209
|
* Gets or sets the parent thumb item id.
|
|
@@ -21,47 +21,47 @@ export interface SystemStorageDto {
|
|
|
21
21
|
* @type {FolderStorageDto}
|
|
22
22
|
* @memberof SystemStorageDto
|
|
23
23
|
*/
|
|
24
|
-
'ProgramDataFolder'
|
|
24
|
+
'ProgramDataFolder': FolderStorageDto;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {FolderStorageDto}
|
|
28
28
|
* @memberof SystemStorageDto
|
|
29
29
|
*/
|
|
30
|
-
'WebFolder'
|
|
30
|
+
'WebFolder': FolderStorageDto;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {FolderStorageDto}
|
|
34
34
|
* @memberof SystemStorageDto
|
|
35
35
|
*/
|
|
36
|
-
'ImageCacheFolder'
|
|
36
|
+
'ImageCacheFolder': FolderStorageDto;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {FolderStorageDto}
|
|
40
40
|
* @memberof SystemStorageDto
|
|
41
41
|
*/
|
|
42
|
-
'CacheFolder'
|
|
42
|
+
'CacheFolder': FolderStorageDto;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {FolderStorageDto}
|
|
46
46
|
* @memberof SystemStorageDto
|
|
47
47
|
*/
|
|
48
|
-
'LogFolder'
|
|
48
|
+
'LogFolder': FolderStorageDto;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {FolderStorageDto}
|
|
52
52
|
* @memberof SystemStorageDto
|
|
53
53
|
*/
|
|
54
|
-
'InternalMetadataFolder'
|
|
54
|
+
'InternalMetadataFolder': FolderStorageDto;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {FolderStorageDto}
|
|
58
58
|
* @memberof SystemStorageDto
|
|
59
59
|
*/
|
|
60
|
-
'TranscodingTempFolder'
|
|
60
|
+
'TranscodingTempFolder': FolderStorageDto;
|
|
61
61
|
/**
|
|
62
62
|
* Gets or sets the storage informations of all libraries.
|
|
63
63
|
* @type {Array<LibraryStorageDto>}
|
|
64
64
|
* @memberof SystemStorageDto
|
|
65
65
|
*/
|
|
66
|
-
'Libraries'
|
|
66
|
+
'Libraries': Array<LibraryStorageDto>;
|
|
67
67
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
10
10
|
*/
|
|
11
11
|
import type { HardwareAccelerationType } from './hardware-acceleration-type';
|
|
12
|
+
import type { TranscodeReason } from './transcode-reason';
|
|
12
13
|
/**
|
|
13
14
|
* Class holding information on a running transcode.
|
|
14
15
|
* @export
|
|
@@ -92,7 +93,5 @@ export interface TranscodingInfo {
|
|
|
92
93
|
* @type {Array<TranscodeReason>}
|
|
93
94
|
* @memberof TranscodingInfo
|
|
94
95
|
*/
|
|
95
|
-
'TranscodeReasons'?:
|
|
96
|
+
'TranscodeReasons'?: Array<TranscodeReason>;
|
|
96
97
|
}
|
|
97
|
-
export declare const TranscodingInfoTranscodeReasonsEnum: {};
|
|
98
|
-
export type TranscodingInfoTranscodeReasonsEnum = typeof TranscodingInfoTranscodeReasonsEnum[keyof typeof TranscodingInfoTranscodeReasonsEnum];
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as discovery_index from './discovery/index.js';
|
|
|
2
2
|
export { discovery_index as discovery };
|
|
3
3
|
import * as utils_index from './utils/index.js';
|
|
4
4
|
export { utils_index as utils };
|
|
5
|
-
export { AUTHORIZATION_HEADER, Api } from './api.js';
|
|
5
|
+
export { AUTHORIZATION_HEADER, AUTHORIZATION_PARAMETER, Api } from './api.js';
|
|
6
6
|
export { Jellyfin } from './jellyfin.js';
|
|
7
7
|
export { RecommendedServerInfoScore } from './models/recommended-server-info.js';
|
|
8
8
|
export { ProductNameIssue, RecommendedServerIssue, SlowResponseIssue, SystemInfoIssue, VersionMissingIssue, VersionOutdatedIssue, VersionUnsupportedIssue } from './models/recommended-server-issue.js';
|
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
4
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
5
|
*/
|
|
6
|
-
import type
|
|
7
|
-
import { LibraryApi } from '../../generated-client/api/library-api';
|
|
8
|
-
|
|
6
|
+
import { type Api } from '../../api';
|
|
7
|
+
import { LibraryApi, type LibraryApiGetDownloadRequest } from '../../generated-client/api/library-api';
|
|
8
|
+
/** An augmented LibraryApi with URL helpers. */
|
|
9
|
+
declare class AugmentedLibraryApi extends LibraryApi {
|
|
10
|
+
api: Api;
|
|
11
|
+
constructor(api: Api);
|
|
12
|
+
/**
|
|
13
|
+
* Get an Item download URL.
|
|
14
|
+
* @param requestParameters The download request parameters.
|
|
15
|
+
* @returns The Item download URL.
|
|
16
|
+
*/
|
|
17
|
+
getDownloadUrl(requestParameters: LibraryApiGetDownloadRequest): string;
|
|
18
|
+
}
|
|
19
|
+
export declare function getLibraryApi(api: Api): AugmentedLibraryApi;
|
|
20
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AUTHORIZATION_PARAMETER } from '../../api.js';
|
|
1
2
|
import { LibraryApi } from '../../generated-client/api/library-api.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -5,8 +6,23 @@ import { LibraryApi } from '../../generated-client/api/library-api.js';
|
|
|
5
6
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
7
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
7
8
|
*/
|
|
9
|
+
/** An augmented LibraryApi with URL helpers. */
|
|
10
|
+
class AugmentedLibraryApi extends LibraryApi {
|
|
11
|
+
constructor(api) {
|
|
12
|
+
super(api.configuration, undefined, api.axiosInstance);
|
|
13
|
+
this.api = api;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get an Item download URL.
|
|
17
|
+
* @param requestParameters The download request parameters.
|
|
18
|
+
* @returns The Item download URL.
|
|
19
|
+
*/
|
|
20
|
+
getDownloadUrl(requestParameters) {
|
|
21
|
+
return this.api.getUri(`/Items/${requestParameters.itemId}/Download`, { [AUTHORIZATION_PARAMETER]: this.api.accessToken });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
8
24
|
function getLibraryApi(api) {
|
|
9
|
-
return new
|
|
25
|
+
return new AugmentedLibraryApi(api);
|
|
10
26
|
}
|
|
11
27
|
|
|
12
28
|
export { getLibraryApi };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jellyfin/sdk",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.202601062209+commit.16e94e6038d4a7c77b33de7b55d80b203ffaa358",
|
|
4
4
|
"description": "A TypeScript SDK for Jellyfin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jellyfin"
|
|
@@ -26,23 +26,26 @@
|
|
|
26
26
|
"test:integration": "vitest integration"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@openapitools/openapi-generator-cli": "2.
|
|
30
|
-
"@rollup/plugin-typescript": "12.
|
|
31
|
-
"@stylistic/eslint-plugin": "
|
|
32
|
-
"@tsconfig/recommended": "1.0.
|
|
33
|
-
"@types/node": "24.
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
35
|
-
"@typescript-eslint/parser": "8.
|
|
36
|
-
"@vitest/coverage-v8": "
|
|
37
|
-
"@vitest/eslint-plugin": "1.
|
|
38
|
-
"eslint": "
|
|
29
|
+
"@openapitools/openapi-generator-cli": "2.26.0",
|
|
30
|
+
"@rollup/plugin-typescript": "12.3.0",
|
|
31
|
+
"@stylistic/eslint-plugin": "5.6.1",
|
|
32
|
+
"@tsconfig/recommended": "1.0.13",
|
|
33
|
+
"@types/node": "24.10.4",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "8.50.1",
|
|
35
|
+
"@typescript-eslint/parser": "8.50.1",
|
|
36
|
+
"@vitest/coverage-v8": "4.0.16",
|
|
37
|
+
"@vitest/eslint-plugin": "1.6.1",
|
|
38
|
+
"eslint": "9.39.2",
|
|
39
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
39
40
|
"eslint-plugin-import": "2.32.0",
|
|
40
|
-
"glob": "
|
|
41
|
+
"glob": "13.0.0",
|
|
42
|
+
"globals": "16.5.0",
|
|
41
43
|
"rimraf": "5.0.10",
|
|
42
|
-
"rollup": "4.
|
|
43
|
-
"typedoc": "0.28.
|
|
44
|
+
"rollup": "4.54.0",
|
|
45
|
+
"typedoc": "0.28.15",
|
|
44
46
|
"typescript": "5.9.3",
|
|
45
|
-
"
|
|
47
|
+
"typescript-eslint": "8.50.1",
|
|
48
|
+
"vitest": "4.0.16"
|
|
46
49
|
},
|
|
47
50
|
"peerDependencies": {
|
|
48
51
|
"axios": "^1.12.0"
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
const TranscodingInfoTranscodeReasonsEnum = {};
|
|
14
|
-
|
|
15
|
-
export { TranscodingInfoTranscodeReasonsEnum };
|