Automated build 'Merge branch 'main' of https://github.com/LukeHagar/plex-api-spec' typescript-axios sdk: 4680335894

This commit is contained in:
GitHub Action Bot
2023-04-12 15:55:38 +00:00
parent d5d4cf625d
commit 0dd1acd733
3 changed files with 589 additions and 169 deletions

546
dist/sdk-output/api.js vendored
View File

@@ -115,10 +115,17 @@ var ActivitiesApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -152,10 +159,17 @@ var ActivitiesApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -318,10 +332,17 @@ var ButlerApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -355,10 +376,17 @@ var ButlerApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -396,10 +424,17 @@ var ButlerApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -433,10 +468,17 @@ var ButlerApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -676,10 +718,17 @@ var DevicesApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -723,10 +772,17 @@ var DevicesApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
@@ -927,10 +983,17 @@ var HashesApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (url !== undefined) {
localVarQueryParameter['url'] = url;
@@ -1060,10 +1123,17 @@ var HubsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (count !== undefined) {
localVarQueryParameter['count'] = count;
@@ -1109,10 +1179,17 @@ var HubsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (count !== undefined) {
localVarQueryParameter['count'] = count;
@@ -1293,10 +1370,17 @@ var LibraryApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (type !== undefined) {
localVarQueryParameter['type'] = type;
@@ -1344,10 +1428,17 @@ var LibraryApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (type !== undefined) {
localVarQueryParameter['type'] = type;
@@ -1395,10 +1486,17 @@ var LibraryApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (type !== undefined) {
localVarQueryParameter['type'] = type;
@@ -1438,10 +1536,17 @@ var LibraryApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1480,10 +1585,17 @@ var LibraryApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (includeDetails !== undefined) {
localVarQueryParameter['includeDetails'] = includeDetails;
@@ -1520,10 +1632,17 @@ var LibraryApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1561,10 +1680,17 @@ var LibraryApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1944,10 +2070,17 @@ var LogApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1981,10 +2114,17 @@ var LogApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2027,10 +2167,17 @@ var LogApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (level !== undefined) {
localVarQueryParameter['level'] = level;
@@ -2251,10 +2398,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (uri !== undefined) {
localVarQueryParameter['uri'] = uri;
@@ -2298,10 +2452,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2346,10 +2507,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (title !== undefined) {
localVarQueryParameter['title'] = title;
@@ -2402,10 +2570,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2441,10 +2616,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (playlistType !== undefined) {
localVarQueryParameter['playlistType'] = playlistType;
@@ -2488,10 +2670,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2532,10 +2721,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (type !== undefined) {
localVarQueryParameter['type'] = type;
@@ -2576,10 +2772,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2619,10 +2822,17 @@ var PlaylistsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (path !== undefined) {
localVarQueryParameter['path'] = path;
@@ -3108,10 +3318,17 @@ var SearchApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (query !== undefined) {
localVarQueryParameter['query'] = query;
@@ -3159,10 +3376,17 @@ var SearchApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (query !== undefined) {
localVarQueryParameter['query'] = query;
@@ -3344,10 +3568,17 @@ var SecurityApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (source !== undefined) {
localVarQueryParameter['source'] = source;
@@ -3390,10 +3621,17 @@ var SecurityApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (type !== undefined) {
localVarQueryParameter['type'] = type;
@@ -3563,10 +3801,17 @@ var ServerApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -3600,10 +3845,17 @@ var ServerApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -3759,10 +4011,17 @@ var SessionsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -3796,10 +4055,17 @@ var SessionsApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -3957,10 +4223,17 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (tonight !== undefined) {
localVarQueryParameter['tonight'] = tonight;
@@ -4001,10 +4274,17 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (download !== undefined) {
localVarQueryParameter['download'] = download;
@@ -4041,10 +4321,17 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -4259,10 +4546,17 @@ var UserApiAxiosParamCreator = function (configuration) {
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
localVarHeaderParameter = {};
localVarQueryParameter = {};
// authentication PlexToken required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
// authentication PlexToken-Header required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)
// authentication PlexToken-Query required
];
case 1:
// authentication PlexToken required
// authentication PlexToken-Header required
_a.sent();
// authentication PlexToken-Query required
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarQueryParameter, "X-Plex-Token", configuration)];
case 2:
// authentication PlexToken-Query required
_a.sent();
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));