@jellyfin/sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/lib/discovery/discovery-service.js +4 -9
- package/lib/discovery/recommended-server-discovery.js +17 -22
- package/lib/generated-client/api/activity-log-api.js +8 -11
- package/lib/generated-client/api/api-key-api.js +24 -31
- package/lib/generated-client/api/artists-api.js +24 -31
- package/lib/generated-client/api/audio-api.d.ts +12 -12
- package/lib/generated-client/api/audio-api.js +28 -37
- package/lib/generated-client/api/branding-api.js +21 -28
- package/lib/generated-client/api/channels-api.js +40 -51
- package/lib/generated-client/api/client-log-api.js +8 -11
- package/lib/generated-client/api/collection-api.js +24 -31
- package/lib/generated-client/api/configuration-api.js +40 -51
- package/lib/generated-client/api/dashboard-api.js +15 -20
- package/lib/generated-client/api/devices-api.js +40 -51
- package/lib/generated-client/api/display-preferences-api.js +16 -21
- package/lib/generated-client/api/dynamic-hls-api.d.ts +27 -27
- package/lib/generated-client/api/dynamic-hls-api.js +72 -91
- package/lib/generated-client/api/environment-api.js +48 -61
- package/lib/generated-client/api/filter-api.js +16 -21
- package/lib/generated-client/api/genres-api.js +16 -21
- package/lib/generated-client/api/hls-segment-api.js +37 -48
- package/lib/generated-client/api/image-api.js +269 -344
- package/lib/generated-client/api/instant-mix-api.js +64 -81
- package/lib/generated-client/api/item-lookup-api.js +88 -111
- package/lib/generated-client/api/item-refresh-api.js +8 -11
- package/lib/generated-client/api/item-update-api.js +24 -31
- package/lib/generated-client/api/items-api.js +32 -41
- package/lib/generated-client/api/library-api.js +200 -251
- package/lib/generated-client/api/library-structure-api.js +64 -81
- package/lib/generated-client/api/live-tv-api.js +326 -409
- package/lib/generated-client/api/localization-api.js +32 -41
- package/lib/generated-client/api/lyrics-api.js +48 -61
- package/lib/generated-client/api/media-info-api.js +40 -51
- package/lib/generated-client/api/movies-api.js +8 -11
- package/lib/generated-client/api/music-genres-api.js +16 -21
- package/lib/generated-client/api/package-api.js +48 -61
- package/lib/generated-client/api/persons-api.js +16 -21
- package/lib/generated-client/api/playlists-api.js +80 -101
- package/lib/generated-client/api/playstate-api.js +72 -91
- package/lib/generated-client/api/plugins-api.js +72 -91
- package/lib/generated-client/api/quick-connect-api.js +29 -38
- package/lib/generated-client/api/remote-image-api.js +24 -31
- package/lib/generated-client/api/scheduled-tasks-api.js +40 -51
- package/lib/generated-client/api/search-api.js +8 -11
- package/lib/generated-client/api/session-api.js +128 -161
- package/lib/generated-client/api/startup-api.js +56 -71
- package/lib/generated-client/api/studios-api.js +16 -21
- package/lib/generated-client/api/subtitle-api.js +78 -99
- package/lib/generated-client/api/suggestions-api.js +8 -11
- package/lib/generated-client/api/sync-play-api.js +168 -211
- package/lib/generated-client/api/system-api.js +77 -98
- package/lib/generated-client/api/time-sync-api.js +7 -10
- package/lib/generated-client/api/tmdb-api.js +8 -11
- package/lib/generated-client/api/trailers-api.js +8 -11
- package/lib/generated-client/api/trickplay-api.js +16 -21
- package/lib/generated-client/api/tv-shows-api.js +32 -41
- package/lib/generated-client/api/universal-audio-api.js +16 -21
- package/lib/generated-client/api/user-api.js +107 -136
- package/lib/generated-client/api/user-library-api.js +80 -101
- package/lib/generated-client/api/user-views-api.js +16 -21
- package/lib/generated-client/api/video-attachments-api.js +7 -10
- package/lib/generated-client/api/videos-api.d.ts +12 -12
- package/lib/generated-client/api/videos-api.js +52 -67
- package/lib/generated-client/api/years-api.js +16 -21
- package/lib/generated-client/common.js +8 -11
- package/lib/generated-client/models/search-hint.d.ts +1 -1
- package/lib/utils/api/image-urls-api.js +16 -4
- package/lib/versions.d.ts +1 -1
- package/lib/versions.js +1 -1
- package/package.json +10 -10
- package/lib/node_modules/tslib/tslib.es6.js +0 -33
package/README.md
CHANGED
|
@@ -35,6 +35,7 @@ yarn add @jellyfin/sdk
|
|
|
35
35
|
|
|
36
36
|
| SDK Version | Jellyfin Version |
|
|
37
37
|
|:-:|:-:|
|
|
38
|
+
| 0.10.0 | 10.9.x |
|
|
38
39
|
| 0.9.0 | 10.9.x |
|
|
39
40
|
| 0.8.2 - 0.6.0 | 10.8.1 - 10.8.13 |
|
|
40
41
|
| 0.5.0 | 10.8.0 |
|
|
@@ -107,6 +108,10 @@ await api.logout();
|
|
|
107
108
|
|
|
108
109
|
## Breaking Changes
|
|
109
110
|
|
|
111
|
+
### v0.10.0
|
|
112
|
+
|
|
113
|
+
* Updated build target to ES2018. [#712](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/712)
|
|
114
|
+
|
|
110
115
|
### v0.9.0
|
|
111
116
|
|
|
112
117
|
* Updated OpenAPI spec for Jellyfin 10.9.1. [#694](https://github.com/jellyfin/jellyfin-sdk-typescript/pull/694)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import { RecommendedServerInfoScore } from '../models/recommended-server-info.js';
|
|
3
2
|
import { getAddressCandidates } from '../utils/address-candidates.js';
|
|
4
3
|
import { RecommendedServerDiscovery } from './recommended-server-discovery.js';
|
|
@@ -49,10 +48,8 @@ class DiscoveryService {
|
|
|
49
48
|
* @param minimumScore The minimum server score to include in the results.
|
|
50
49
|
* @returns A list of RecommendedServerInfo from the possible server addresses.
|
|
51
50
|
*/
|
|
52
|
-
getRecommendedServers(servers, minimumScore) {
|
|
53
|
-
return
|
|
54
|
-
return this.recommendedServerDiscovery.discover(servers, minimumScore);
|
|
55
|
-
});
|
|
51
|
+
async getRecommendedServers(servers, minimumScore) {
|
|
52
|
+
return this.recommendedServerDiscovery.discover(servers, minimumScore);
|
|
56
53
|
}
|
|
57
54
|
/**
|
|
58
55
|
* Gets a list of recommended server information from the address
|
|
@@ -61,10 +58,8 @@ class DiscoveryService {
|
|
|
61
58
|
* @param minimumScore The minimum server score to include in the results.
|
|
62
59
|
* @returns A list of RecommendedServerInfo from the address candidates.
|
|
63
60
|
*/
|
|
64
|
-
getRecommendedServerCandidates(input, minimumScore) {
|
|
65
|
-
return
|
|
66
|
-
return this.getRecommendedServers(this.getAddressCandidates(input), minimumScore);
|
|
67
|
-
});
|
|
61
|
+
async getRecommendedServerCandidates(input, minimumScore) {
|
|
62
|
+
return this.getRecommendedServers(this.getAddressCandidates(input), minimumScore);
|
|
68
63
|
}
|
|
69
64
|
}
|
|
70
65
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import { RecommendedServerInfoScore } from '../models/recommended-server-info.js';
|
|
3
2
|
import { SystemInfoIssue, ProductNameIssue, VersionMissingIssue, VersionUnsupportedIssue, VersionOutdatedIssue, SlowResponseIssue } from '../models/recommended-server-issue.js';
|
|
4
3
|
import { getSystemApi } from '../utils/api/system-api.js';
|
|
@@ -82,33 +81,29 @@ class RecommendedServerDiscovery {
|
|
|
82
81
|
* @param address The server address.
|
|
83
82
|
* @returns The resulting RecommendedServerInfo.
|
|
84
83
|
*/
|
|
85
|
-
fetchRecommendedServerInfo(address) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.then(result => toRecommendedServerInfo(result));
|
|
101
|
-
});
|
|
84
|
+
async fetchRecommendedServerInfo(address) {
|
|
85
|
+
const api = this.jellyfin.createApi(address);
|
|
86
|
+
const startTime = Date.now();
|
|
87
|
+
return getSystemApi(api).getPublicSystemInfo({ timeout: HTTP_TIMEOUT })
|
|
88
|
+
.then(response => ({
|
|
89
|
+
address,
|
|
90
|
+
response,
|
|
91
|
+
responseTime: Date.now() - startTime
|
|
92
|
+
}))
|
|
93
|
+
.catch(error => ({
|
|
94
|
+
address,
|
|
95
|
+
error,
|
|
96
|
+
responseTime: Date.now() - startTime
|
|
97
|
+
}))
|
|
98
|
+
.then(result => toRecommendedServerInfo(result));
|
|
102
99
|
}
|
|
103
100
|
/**
|
|
104
101
|
* Fetches the RecommendedServerInfo for multiple server addresses.
|
|
105
102
|
* @param servers An array of server addresses.
|
|
106
103
|
* @returns The RecommendedServerInfo for each address.
|
|
107
104
|
*/
|
|
108
|
-
discover(
|
|
109
|
-
return
|
|
110
|
-
return (yield Promise.all(servers.map(server => this.fetchRecommendedServerInfo(server)))).filter(serverInfo => serverInfo.score >= minimumScore);
|
|
111
|
-
});
|
|
105
|
+
async discover(servers, minimumScore = RecommendedServerInfoScore.BAD) {
|
|
106
|
+
return (await Promise.all(servers.map(server => this.fetchRecommendedServerInfo(server)))).filter(serverInfo => serverInfo.score >= minimumScore);
|
|
112
107
|
}
|
|
113
108
|
}
|
|
114
109
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -31,7 +30,7 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
31
30
|
* @param {*} [options] Override http request option.
|
|
32
31
|
* @throws {RequiredError}
|
|
33
32
|
*/
|
|
34
|
-
getLogEntries:
|
|
33
|
+
getLogEntries: async (startIndex, limit, minDate, hasUserId, options = {}) => {
|
|
35
34
|
const localVarPath = `/System/ActivityLog/Entries`;
|
|
36
35
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37
36
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -39,11 +38,11 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
43
42
|
const localVarHeaderParameter = {};
|
|
44
43
|
const localVarQueryParameter = {};
|
|
45
44
|
// authentication CustomAuthentication required
|
|
46
|
-
|
|
45
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
47
46
|
if (startIndex !== undefined) {
|
|
48
47
|
localVarQueryParameter['startIndex'] = startIndex;
|
|
49
48
|
}
|
|
@@ -60,12 +59,12 @@ const ActivityLogApiAxiosParamCreator = function (configuration) {
|
|
|
60
59
|
}
|
|
61
60
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62
61
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
-
localVarRequestOptions.headers =
|
|
62
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
64
63
|
return {
|
|
65
64
|
url: toPathString(localVarUrlObj),
|
|
66
65
|
options: localVarRequestOptions,
|
|
67
66
|
};
|
|
68
|
-
}
|
|
67
|
+
},
|
|
69
68
|
};
|
|
70
69
|
};
|
|
71
70
|
/**
|
|
@@ -85,11 +84,9 @@ const ActivityLogApiFp = function (configuration) {
|
|
|
85
84
|
* @param {*} [options] Override http request option.
|
|
86
85
|
* @throws {RequiredError}
|
|
87
86
|
*/
|
|
88
|
-
getLogEntries(startIndex, limit, minDate, hasUserId, options) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
92
|
-
});
|
|
87
|
+
async getLogEntries(startIndex, limit, minDate, hasUserId, options) {
|
|
88
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLogEntries(startIndex, limit, minDate, hasUserId, options);
|
|
89
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
93
90
|
},
|
|
94
91
|
};
|
|
95
92
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -28,7 +27,7 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
createKey:
|
|
30
|
+
createKey: async (app, options = {}) => {
|
|
32
31
|
// verify required parameter 'app' is not null or undefined
|
|
33
32
|
assertParamExists('createKey', 'app', app);
|
|
34
33
|
const localVarPath = `/Auth/Keys`;
|
|
@@ -38,29 +37,29 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
38
37
|
if (configuration) {
|
|
39
38
|
baseOptions = configuration.baseOptions;
|
|
40
39
|
}
|
|
41
|
-
const localVarRequestOptions =
|
|
40
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
42
41
|
const localVarHeaderParameter = {};
|
|
43
42
|
const localVarQueryParameter = {};
|
|
44
43
|
// authentication CustomAuthentication required
|
|
45
|
-
|
|
44
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
46
45
|
if (app !== undefined) {
|
|
47
46
|
localVarQueryParameter['app'] = app;
|
|
48
47
|
}
|
|
49
48
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50
49
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
|
-
localVarRequestOptions.headers =
|
|
50
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
52
51
|
return {
|
|
53
52
|
url: toPathString(localVarUrlObj),
|
|
54
53
|
options: localVarRequestOptions,
|
|
55
54
|
};
|
|
56
|
-
}
|
|
55
|
+
},
|
|
57
56
|
/**
|
|
58
57
|
*
|
|
59
58
|
* @summary Get all keys.
|
|
60
59
|
* @param {*} [options] Override http request option.
|
|
61
60
|
* @throws {RequiredError}
|
|
62
61
|
*/
|
|
63
|
-
getKeys:
|
|
62
|
+
getKeys: async (options = {}) => {
|
|
64
63
|
const localVarPath = `/Auth/Keys`;
|
|
65
64
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
65
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -68,19 +67,19 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
68
67
|
if (configuration) {
|
|
69
68
|
baseOptions = configuration.baseOptions;
|
|
70
69
|
}
|
|
71
|
-
const localVarRequestOptions =
|
|
70
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
72
71
|
const localVarHeaderParameter = {};
|
|
73
72
|
const localVarQueryParameter = {};
|
|
74
73
|
// authentication CustomAuthentication required
|
|
75
|
-
|
|
74
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
76
75
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
76
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
-
localVarRequestOptions.headers =
|
|
77
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
79
78
|
return {
|
|
80
79
|
url: toPathString(localVarUrlObj),
|
|
81
80
|
options: localVarRequestOptions,
|
|
82
81
|
};
|
|
83
|
-
}
|
|
82
|
+
},
|
|
84
83
|
/**
|
|
85
84
|
*
|
|
86
85
|
* @summary Remove an api key.
|
|
@@ -88,7 +87,7 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
88
87
|
* @param {*} [options] Override http request option.
|
|
89
88
|
* @throws {RequiredError}
|
|
90
89
|
*/
|
|
91
|
-
revokeKey:
|
|
90
|
+
revokeKey: async (key, options = {}) => {
|
|
92
91
|
// verify required parameter 'key' is not null or undefined
|
|
93
92
|
assertParamExists('revokeKey', 'key', key);
|
|
94
93
|
const localVarPath = `/Auth/Keys/{key}`
|
|
@@ -99,19 +98,19 @@ const ApiKeyApiAxiosParamCreator = function (configuration) {
|
|
|
99
98
|
if (configuration) {
|
|
100
99
|
baseOptions = configuration.baseOptions;
|
|
101
100
|
}
|
|
102
|
-
const localVarRequestOptions =
|
|
101
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
103
102
|
const localVarHeaderParameter = {};
|
|
104
103
|
const localVarQueryParameter = {};
|
|
105
104
|
// authentication CustomAuthentication required
|
|
106
|
-
|
|
105
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
107
106
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
108
107
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
|
-
localVarRequestOptions.headers =
|
|
108
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
110
109
|
return {
|
|
111
110
|
url: toPathString(localVarUrlObj),
|
|
112
111
|
options: localVarRequestOptions,
|
|
113
112
|
};
|
|
114
|
-
}
|
|
113
|
+
},
|
|
115
114
|
};
|
|
116
115
|
};
|
|
117
116
|
/**
|
|
@@ -128,11 +127,9 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
128
127
|
* @param {*} [options] Override http request option.
|
|
129
128
|
* @throws {RequiredError}
|
|
130
129
|
*/
|
|
131
|
-
createKey(app, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
135
|
-
});
|
|
130
|
+
async createKey(app, options) {
|
|
131
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createKey(app, options);
|
|
132
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
136
133
|
},
|
|
137
134
|
/**
|
|
138
135
|
*
|
|
@@ -140,11 +137,9 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
140
137
|
* @param {*} [options] Override http request option.
|
|
141
138
|
* @throws {RequiredError}
|
|
142
139
|
*/
|
|
143
|
-
getKeys(options) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
147
|
-
});
|
|
140
|
+
async getKeys(options) {
|
|
141
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getKeys(options);
|
|
142
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
148
143
|
},
|
|
149
144
|
/**
|
|
150
145
|
*
|
|
@@ -153,11 +148,9 @@ const ApiKeyApiFp = function (configuration) {
|
|
|
153
148
|
* @param {*} [options] Override http request option.
|
|
154
149
|
* @throws {RequiredError}
|
|
155
150
|
*/
|
|
156
|
-
revokeKey(key, options) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
160
|
-
});
|
|
151
|
+
async revokeKey(key, options) {
|
|
152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revokeKey(key, options);
|
|
153
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
161
154
|
},
|
|
162
155
|
};
|
|
163
156
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, assertParamExists, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -59,7 +58,7 @@ const ArtistsApiAxiosParamCreator = function (configuration) {
|
|
|
59
58
|
* @param {*} [options] Override http request option.
|
|
60
59
|
* @throws {RequiredError}
|
|
61
60
|
*/
|
|
62
|
-
getAlbumArtists:
|
|
61
|
+
getAlbumArtists: async (minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options = {}) => {
|
|
63
62
|
const localVarPath = `/Artists/AlbumArtists`;
|
|
64
63
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
64
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -67,11 +66,11 @@ const ArtistsApiAxiosParamCreator = function (configuration) {
|
|
|
67
66
|
if (configuration) {
|
|
68
67
|
baseOptions = configuration.baseOptions;
|
|
69
68
|
}
|
|
70
|
-
const localVarRequestOptions =
|
|
69
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
71
70
|
const localVarHeaderParameter = {};
|
|
72
71
|
const localVarQueryParameter = {};
|
|
73
72
|
// authentication CustomAuthentication required
|
|
74
|
-
|
|
73
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
75
74
|
if (minCommunityRating !== undefined) {
|
|
76
75
|
localVarQueryParameter['minCommunityRating'] = minCommunityRating;
|
|
77
76
|
}
|
|
@@ -170,12 +169,12 @@ const ArtistsApiAxiosParamCreator = function (configuration) {
|
|
|
170
169
|
}
|
|
171
170
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
171
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
|
-
localVarRequestOptions.headers =
|
|
172
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
174
173
|
return {
|
|
175
174
|
url: toPathString(localVarUrlObj),
|
|
176
175
|
options: localVarRequestOptions,
|
|
177
176
|
};
|
|
178
|
-
}
|
|
177
|
+
},
|
|
179
178
|
/**
|
|
180
179
|
*
|
|
181
180
|
* @summary Gets an artist by name.
|
|
@@ -184,7 +183,7 @@ const ArtistsApiAxiosParamCreator = function (configuration) {
|
|
|
184
183
|
* @param {*} [options] Override http request option.
|
|
185
184
|
* @throws {RequiredError}
|
|
186
185
|
*/
|
|
187
|
-
getArtistByName:
|
|
186
|
+
getArtistByName: async (name, userId, options = {}) => {
|
|
188
187
|
// verify required parameter 'name' is not null or undefined
|
|
189
188
|
assertParamExists('getArtistByName', 'name', name);
|
|
190
189
|
const localVarPath = `/Artists/{name}`
|
|
@@ -195,22 +194,22 @@ const ArtistsApiAxiosParamCreator = function (configuration) {
|
|
|
195
194
|
if (configuration) {
|
|
196
195
|
baseOptions = configuration.baseOptions;
|
|
197
196
|
}
|
|
198
|
-
const localVarRequestOptions =
|
|
197
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
199
198
|
const localVarHeaderParameter = {};
|
|
200
199
|
const localVarQueryParameter = {};
|
|
201
200
|
// authentication CustomAuthentication required
|
|
202
|
-
|
|
201
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
203
202
|
if (userId !== undefined) {
|
|
204
203
|
localVarQueryParameter['userId'] = userId;
|
|
205
204
|
}
|
|
206
205
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
207
206
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
-
localVarRequestOptions.headers =
|
|
207
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
209
208
|
return {
|
|
210
209
|
url: toPathString(localVarUrlObj),
|
|
211
210
|
options: localVarRequestOptions,
|
|
212
211
|
};
|
|
213
|
-
}
|
|
212
|
+
},
|
|
214
213
|
/**
|
|
215
214
|
*
|
|
216
215
|
* @summary Gets all artists from a given item, folder, or the entire library.
|
|
@@ -249,7 +248,7 @@ const ArtistsApiAxiosParamCreator = function (configuration) {
|
|
|
249
248
|
* @param {*} [options] Override http request option.
|
|
250
249
|
* @throws {RequiredError}
|
|
251
250
|
*/
|
|
252
|
-
getArtists:
|
|
251
|
+
getArtists: async (minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options = {}) => {
|
|
253
252
|
const localVarPath = `/Artists`;
|
|
254
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
255
254
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -257,11 +256,11 @@ const ArtistsApiAxiosParamCreator = function (configuration) {
|
|
|
257
256
|
if (configuration) {
|
|
258
257
|
baseOptions = configuration.baseOptions;
|
|
259
258
|
}
|
|
260
|
-
const localVarRequestOptions =
|
|
259
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
261
260
|
const localVarHeaderParameter = {};
|
|
262
261
|
const localVarQueryParameter = {};
|
|
263
262
|
// authentication CustomAuthentication required
|
|
264
|
-
|
|
263
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
265
264
|
if (minCommunityRating !== undefined) {
|
|
266
265
|
localVarQueryParameter['minCommunityRating'] = minCommunityRating;
|
|
267
266
|
}
|
|
@@ -360,12 +359,12 @@ const ArtistsApiAxiosParamCreator = function (configuration) {
|
|
|
360
359
|
}
|
|
361
360
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
362
361
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
363
|
-
localVarRequestOptions.headers =
|
|
362
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
364
363
|
return {
|
|
365
364
|
url: toPathString(localVarUrlObj),
|
|
366
365
|
options: localVarRequestOptions,
|
|
367
366
|
};
|
|
368
|
-
}
|
|
367
|
+
},
|
|
369
368
|
};
|
|
370
369
|
};
|
|
371
370
|
/**
|
|
@@ -413,11 +412,9 @@ const ArtistsApiFp = function (configuration) {
|
|
|
413
412
|
* @param {*} [options] Override http request option.
|
|
414
413
|
* @throws {RequiredError}
|
|
415
414
|
*/
|
|
416
|
-
getAlbumArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options) {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
420
|
-
});
|
|
415
|
+
async getAlbumArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options) {
|
|
416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options);
|
|
417
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
421
418
|
},
|
|
422
419
|
/**
|
|
423
420
|
*
|
|
@@ -427,11 +424,9 @@ const ArtistsApiFp = function (configuration) {
|
|
|
427
424
|
* @param {*} [options] Override http request option.
|
|
428
425
|
* @throws {RequiredError}
|
|
429
426
|
*/
|
|
430
|
-
getArtistByName(name, userId, options) {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
434
|
-
});
|
|
427
|
+
async getArtistByName(name, userId, options) {
|
|
428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getArtistByName(name, userId, options);
|
|
429
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
435
430
|
},
|
|
436
431
|
/**
|
|
437
432
|
*
|
|
@@ -471,11 +466,9 @@ const ArtistsApiFp = function (configuration) {
|
|
|
471
466
|
* @param {*} [options] Override http request option.
|
|
472
467
|
* @throws {RequiredError}
|
|
473
468
|
*/
|
|
474
|
-
getArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options) {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
478
|
-
});
|
|
469
|
+
async getArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options) {
|
|
470
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getArtists(minCommunityRating, startIndex, limit, searchTerm, parentId, fields, excludeItemTypes, includeItemTypes, filters, isFavorite, mediaTypes, genres, genreIds, officialRatings, tags, years, enableUserData, imageTypeLimit, enableImageTypes, person, personIds, personTypes, studios, studioIds, userId, nameStartsWithOrGreater, nameStartsWith, nameLessThan, sortBy, sortOrder, enableImages, enableTotalRecordCount, options);
|
|
471
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
479
472
|
},
|
|
480
473
|
};
|
|
481
474
|
};
|
|
@@ -75,7 +75,7 @@ export declare const AudioApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
75
75
|
*/
|
|
76
76
|
getAudioStream: (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
77
77
|
[key: string]: string;
|
|
78
|
-
}
|
|
78
|
+
}, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @summary Gets an audio stream.
|
|
@@ -133,7 +133,7 @@ export declare const AudioApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
133
133
|
*/
|
|
134
134
|
getAudioStreamByContainer: (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
135
135
|
[key: string]: string;
|
|
136
|
-
}
|
|
136
|
+
}, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
139
|
* @summary Gets an audio stream.
|
|
@@ -191,7 +191,7 @@ export declare const AudioApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
191
191
|
*/
|
|
192
192
|
headAudioStream: (itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
193
193
|
[key: string]: string;
|
|
194
|
-
}
|
|
194
|
+
}, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
195
195
|
/**
|
|
196
196
|
*
|
|
197
197
|
* @summary Gets an audio stream.
|
|
@@ -249,7 +249,7 @@ export declare const AudioApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
249
249
|
*/
|
|
250
250
|
headAudioStreamByContainer: (itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
251
251
|
[key: string]: string;
|
|
252
|
-
}
|
|
252
|
+
}, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
253
253
|
};
|
|
254
254
|
/**
|
|
255
255
|
* AudioApi - functional programming interface
|
|
@@ -313,7 +313,7 @@ export declare const AudioApiFp: (configuration?: Configuration) => {
|
|
|
313
313
|
*/
|
|
314
314
|
getAudioStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
315
315
|
[key: string]: string;
|
|
316
|
-
}
|
|
316
|
+
}, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
317
317
|
/**
|
|
318
318
|
*
|
|
319
319
|
* @summary Gets an audio stream.
|
|
@@ -371,7 +371,7 @@ export declare const AudioApiFp: (configuration?: Configuration) => {
|
|
|
371
371
|
*/
|
|
372
372
|
getAudioStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
373
373
|
[key: string]: string;
|
|
374
|
-
}
|
|
374
|
+
}, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
375
375
|
/**
|
|
376
376
|
*
|
|
377
377
|
* @summary Gets an audio stream.
|
|
@@ -429,7 +429,7 @@ export declare const AudioApiFp: (configuration?: Configuration) => {
|
|
|
429
429
|
*/
|
|
430
430
|
headAudioStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
431
431
|
[key: string]: string;
|
|
432
|
-
}
|
|
432
|
+
}, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
433
433
|
/**
|
|
434
434
|
*
|
|
435
435
|
* @summary Gets an audio stream.
|
|
@@ -487,7 +487,7 @@ export declare const AudioApiFp: (configuration?: Configuration) => {
|
|
|
487
487
|
*/
|
|
488
488
|
headAudioStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
489
489
|
[key: string]: string;
|
|
490
|
-
}
|
|
490
|
+
}, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
491
491
|
};
|
|
492
492
|
/**
|
|
493
493
|
* AudioApi - factory interface
|
|
@@ -551,7 +551,7 @@ export declare const AudioApiFactory: (configuration?: Configuration, basePath?:
|
|
|
551
551
|
*/
|
|
552
552
|
getAudioStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
553
553
|
[key: string]: string;
|
|
554
|
-
}
|
|
554
|
+
}, options?: any): AxiosPromise<any>;
|
|
555
555
|
/**
|
|
556
556
|
*
|
|
557
557
|
* @summary Gets an audio stream.
|
|
@@ -609,7 +609,7 @@ export declare const AudioApiFactory: (configuration?: Configuration, basePath?:
|
|
|
609
609
|
*/
|
|
610
610
|
getAudioStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
611
611
|
[key: string]: string;
|
|
612
|
-
}
|
|
612
|
+
}, options?: any): AxiosPromise<any>;
|
|
613
613
|
/**
|
|
614
614
|
*
|
|
615
615
|
* @summary Gets an audio stream.
|
|
@@ -667,7 +667,7 @@ export declare const AudioApiFactory: (configuration?: Configuration, basePath?:
|
|
|
667
667
|
*/
|
|
668
668
|
headAudioStream(itemId: string, container?: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
669
669
|
[key: string]: string;
|
|
670
|
-
}
|
|
670
|
+
}, options?: any): AxiosPromise<any>;
|
|
671
671
|
/**
|
|
672
672
|
*
|
|
673
673
|
* @summary Gets an audio stream.
|
|
@@ -725,7 +725,7 @@ export declare const AudioApiFactory: (configuration?: Configuration, basePath?:
|
|
|
725
725
|
*/
|
|
726
726
|
headAudioStreamByContainer(itemId: string, container: string, _static?: boolean, params?: string, tag?: string, deviceProfileId?: string, playSessionId?: string, segmentContainer?: string, segmentLength?: number, minSegments?: number, mediaSourceId?: string, deviceId?: string, audioCodec?: string, enableAutoStreamCopy?: boolean, allowVideoStreamCopy?: boolean, allowAudioStreamCopy?: boolean, breakOnNonKeyFrames?: boolean, audioSampleRate?: number, maxAudioBitDepth?: number, audioBitRate?: number, audioChannels?: number, maxAudioChannels?: number, profile?: string, level?: string, framerate?: number, maxFramerate?: number, copyTimestamps?: boolean, startTimeTicks?: number, width?: number, height?: number, videoBitRate?: number, subtitleStreamIndex?: number, subtitleMethod?: SubtitleDeliveryMethod, maxRefFrames?: number, maxVideoBitDepth?: number, requireAvc?: boolean, deInterlace?: boolean, requireNonAnamorphic?: boolean, transcodingMaxAudioChannels?: number, cpuCoreLimit?: number, liveStreamId?: string, enableMpegtsM2TsMode?: boolean, videoCodec?: string, subtitleCodec?: string, transcodeReasons?: string, audioStreamIndex?: number, videoStreamIndex?: number, context?: EncodingContext, streamOptions?: {
|
|
727
727
|
[key: string]: string;
|
|
728
|
-
}
|
|
728
|
+
}, options?: any): AxiosPromise<any>;
|
|
729
729
|
};
|
|
730
730
|
/**
|
|
731
731
|
* Request parameters for getAudioStream operation in AudioApi.
|