From bebf4d93ae290f8ce3728ab88855750e3d28b332 Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Mon, 17 Apr 2023 15:11:29 -0500 Subject: [PATCH] cleanup --- dist/configuration.d.ts | 147 - dist/configuration.js | 126 - dist/configuration.js.map | 1 - dist/index.d.ts | 3 - dist/index.js | 4 - dist/index.js.map | 1 - dist/paginator.d.ts | 39 - dist/paginator.js | 81 - dist/paginator.js.map | 1 - dist/plexjs/api.d.ts | 2990 -------------- dist/plexjs/api.js | 3678 ----------------- dist/plexjs/api.js.map | 1 - dist/plexjs/base.d.ts | 55 - dist/plexjs/base.js | 61 - dist/plexjs/base.js.map | 1 - dist/plexjs/common.d.ts | 50 - dist/plexjs/common.js | 95 - dist/plexjs/common.js.map | 1 - dist/plexjs/configuration.d.ts | 65 - dist/plexjs/configuration.js | 69 - dist/plexjs/configuration.js.map | 1 - dist/plexjs/index.d.ts | 12 - dist/plexjs/index.js | 15 - dist/plexjs/index.js.map | 1 - dist/sdk-output/api.d.ts | 2955 -------------- dist/sdk-output/api.js | 3659 ----------------- dist/sdk-output/api.js.map | 1 - dist/sdk-output/base.d.ts | 55 - dist/sdk-output/base.js | 61 - dist/sdk-output/base.js.map | 1 - dist/sdk-output/common.d.ts | 50 - dist/sdk-output/common.js | 95 - dist/sdk-output/common.js.map | 1 - dist/sdk-output/configuration.d.ts | 65 - dist/sdk-output/configuration.js | 69 - dist/sdk-output/configuration.js.map | 1 - dist/sdk-output/index.d.ts | 12 - dist/sdk-output/index.js | 15 - dist/sdk-output/index.js.map | 1 - index.ts | 5 - package-lock.json | 200 - package.json | 40 - sdk-output/.gitignore | 4 - sdk-output/.npmignore | 1 - sdk-output/.openapi-generator-ignore | 23 - sdk-output/.openapi-generator/FILES | 12 - sdk-output/.openapi-generator/VERSION | 1 - sdk-output/README.md | 45 - sdk-output/api.ts | 5332 ------------------------- sdk-output/base.ts | 71 - sdk-output/common.ts | 105 - sdk-output/configuration.ts | 86 - sdk-output/git_push.sh | 57 - sdk-output/index.ts | 17 - sdk-output/package.json | 35 - sdk-output/tsconfig.json | 21 - sdk-resources/package.mustache | 2 +- tsconfig.json | 24 - yarn.lock | 67 - 59 files changed, 1 insertion(+), 20686 deletions(-) delete mode 100644 dist/configuration.d.ts delete mode 100644 dist/configuration.js delete mode 100644 dist/configuration.js.map delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 dist/paginator.d.ts delete mode 100644 dist/paginator.js delete mode 100644 dist/paginator.js.map delete mode 100644 dist/plexjs/api.d.ts delete mode 100644 dist/plexjs/api.js delete mode 100644 dist/plexjs/api.js.map delete mode 100644 dist/plexjs/base.d.ts delete mode 100644 dist/plexjs/base.js delete mode 100644 dist/plexjs/base.js.map delete mode 100644 dist/plexjs/common.d.ts delete mode 100644 dist/plexjs/common.js delete mode 100644 dist/plexjs/common.js.map delete mode 100644 dist/plexjs/configuration.d.ts delete mode 100644 dist/plexjs/configuration.js delete mode 100644 dist/plexjs/configuration.js.map delete mode 100644 dist/plexjs/index.d.ts delete mode 100644 dist/plexjs/index.js delete mode 100644 dist/plexjs/index.js.map delete mode 100644 dist/sdk-output/api.d.ts delete mode 100644 dist/sdk-output/api.js delete mode 100644 dist/sdk-output/api.js.map delete mode 100644 dist/sdk-output/base.d.ts delete mode 100644 dist/sdk-output/base.js delete mode 100644 dist/sdk-output/base.js.map delete mode 100644 dist/sdk-output/common.d.ts delete mode 100644 dist/sdk-output/common.js delete mode 100644 dist/sdk-output/common.js.map delete mode 100644 dist/sdk-output/configuration.d.ts delete mode 100644 dist/sdk-output/configuration.js delete mode 100644 dist/sdk-output/configuration.js.map delete mode 100644 dist/sdk-output/index.d.ts delete mode 100644 dist/sdk-output/index.js delete mode 100644 dist/sdk-output/index.js.map delete mode 100644 index.ts delete mode 100644 package-lock.json delete mode 100644 package.json delete mode 100644 sdk-output/.gitignore delete mode 100644 sdk-output/.npmignore delete mode 100644 sdk-output/.openapi-generator-ignore delete mode 100644 sdk-output/.openapi-generator/FILES delete mode 100644 sdk-output/.openapi-generator/VERSION delete mode 100644 sdk-output/README.md delete mode 100644 sdk-output/api.ts delete mode 100644 sdk-output/base.ts delete mode 100644 sdk-output/common.ts delete mode 100644 sdk-output/configuration.ts delete mode 100644 sdk-output/git_push.sh delete mode 100644 sdk-output/index.ts delete mode 100644 sdk-output/package.json delete mode 100644 sdk-output/tsconfig.json delete mode 100644 tsconfig.json delete mode 100644 yarn.lock diff --git a/dist/configuration.d.ts b/dist/configuration.d.ts deleted file mode 100644 index 676af7bf..00000000 --- a/dist/configuration.d.ts +++ /dev/null @@ -1,147 +0,0 @@ -import { IAxiosRetryConfig } from "axios-retry"; -export interface ConfigurationParameters { - baseurl?: string; - clientId?: string; - clientSecret?: string; - accessToken?: string; - tokenUrl?: string; -} -export interface Configuration { - activeenvironment?: string; - authtype?: string; - customexporttemplatespath?: string; - customsearchtemplatespath?: string; - debug?: boolean; - environments?: { - [key: string]: Environment; - }; -} -export interface Environment { - baseurl: string; - pat: Pat; - tenanturl: string; -} -export interface Pat { - clientid: string; - clientsecret: string; -} -export declare class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - /** - * parameter for clientId - * - * @type {string} - * @memberof Configuration - */ - clientId?: string; - /** - * parameter for clientSecret - * - * @type {string} - * @memberof Configuration - */ - clientSecret?: string; - /** - * parameter for clientSecret - * - * @type {string} - * @memberof Configuration - */ - /** - * parameter for oauth2 security - * @param name security name - * @param scopes oauth2 scope - * @memberof Configuration - */ - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); - /** - * parameter for clientId - * - * @type {string} - * @memberof Configuration - */ - tokenUrl?: string; - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - username?: string; - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - password?: string; - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePathBeta?: string; - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePathV3?: string; - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePathV2?: string; - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePathCC?: string; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions?: any; - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor?: new () => any; - /** - * axios retry configuration - * - * @type {IAxiosRetryConfig} - * @memberof Configuration - */ - retriesConfig?: IAxiosRetryConfig; - constructor(param?: ConfigurationParameters); - private getParams; - private getAccessToken; - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - isJsonMime(mime: string): boolean; -} diff --git a/dist/configuration.js b/dist/configuration.js deleted file mode 100644 index 6e0fae81..00000000 --- a/dist/configuration.js +++ /dev/null @@ -1,126 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Configuration = void 0; -var axios_1 = require("axios"); -var os = require("os"); -var path = require("path"); -var yaml = require("js-yaml"); -var fs = require("fs"); -var Configuration = /** @class */ (function () { - function Configuration(param) { - if (!param) { - param = this.getParams(); - } - this.basePathBeta = param.baseurl + "/beta"; - this.basePathV3 = param.baseurl + "/v3"; - this.basePathV2 = param.baseurl + "/v2"; - this.basePathCC = param.baseurl; - this.tokenUrl = param.tokenUrl; - this.clientId = param.clientId; - this.clientSecret = param.clientSecret; - var url = "".concat(this.tokenUrl, "?grant_type=client_credentials&client_id=").concat(this.clientId, "&client_secret=").concat(this.clientSecret); - if (!this.accessToken) { - this.accessToken = this.getAccessToken(url); - } - } - Configuration.prototype.getParams = function () { - var config = {}; - try { - var homeDir = os.homedir(); - var configPath = path.join(homeDir, '.sailpoint', 'config.yaml'); - var doc = yaml.load(fs.readFileSync(configPath, 'utf8')); - if (doc.authtype && doc.authtype.toLowerCase() === 'pat') { - config.baseurl = doc.environments[doc.activeenvironment].baseurl; - config.clientId = doc.environments[doc.activeenvironment].pat.clientid; - config.clientSecret = doc.environments[doc.activeenvironment].pat.clientsecret; - } - } - catch (error) { - console.log('unable to find config file'); - } - config.baseurl = process.env["SAIL_BASE_URL"] ? process.env["BASE_URL"] : config.baseurl; - config.clientId = process.env["SAIL_CLIENT_ID"] ? process.env["CLIENT_ID"] : config.clientId; - config.clientSecret = process.env["SAIL_CLIENT_SECRET"] ? process.env["CLIENT_SECRET"] : config.clientSecret; - config.tokenUrl = config.baseurl + '/oauth/token'; - return config; - }; - Configuration.prototype.getAccessToken = function (url) { - return __awaiter(this, void 0, void 0, function () { - var _a, data, status_1, error_1; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _b.trys.push([0, 2, , 3]); - return [4 /*yield*/, axios_1.default.post(url)]; - case 1: - _a = _b.sent(), data = _a.data, status_1 = _a.status; - if (status_1 === 200) { - return [2 /*return*/, data.access_token]; - } - else { - throw new Error("Unauthorized"); - } - return [3 /*break*/, 3]; - case 2: - error_1 = _b.sent(); - console.error("Unable to fetch access token. Aborting."); - throw new Error(error_1); - case 3: return [2 /*return*/]; - } - }); - }); - }; - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - Configuration.prototype.isJsonMime = function (mime) { - var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); - return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); - }; - return Configuration; -}()); -exports.Configuration = Configuration; -//# sourceMappingURL=configuration.js.map \ No newline at end of file diff --git a/dist/configuration.js.map b/dist/configuration.js.map deleted file mode 100644 index 3ebc68f6..00000000 --- a/dist/configuration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../configuration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA0B;AAC1B,uBAAyB;AACzB,2BAA6B;AAC7B,8BAAgC;AAChC,uBAAyB;AA+BzB;IA6GI,uBAAY,KAA+B;QAEvC,IAAI,CAAC,KAAK,EAAE;YACR,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;SAC3B;QAED,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,OAAO,GAAG,OAAO,CAAA;QAC3C,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,GAAG,KAAK,CAAA;QACvC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,GAAG,KAAK,CAAA;QACvC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,CAAA;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QACvC,IAAM,GAAG,GAAG,UAAG,IAAI,CAAC,QAAQ,sDAA4C,IAAI,CAAC,QAAQ,4BAAkB,IAAI,CAAC,YAAY,CAAE,CAAC;QAC3H,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACnB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;SAC/C;IAEL,CAAC;IAEO,iCAAS,GAAjB;QACI,IAAM,MAAM,GAA4B,EAAE,CAAA;QAC1C,IAAI;YACA,IAAM,OAAO,GAAG,EAAE,CAAC,OAAO,EAAE,CAAA;YAC5B,IAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAC,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jB,CAAC;IAEa,sCAAc,GAA5B,UAA6B,GAAW;;;;;;;wBAET,qBAAM,eAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAA;;wBAAtC,KAAiB,SAAqB,EAArC,IAAI,UAAA,EAAE,oBAAM;wBACnB,IAAI,QAAM,KAAK,GAAG,EAAE;4BAChB,sBAAO,IAAI,CAAC,YAAY,EAAC;yBAC5B;6BAAM;4BACH,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAA;yBAClC;;;;wBAED,OAAO,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;wBAC1D,MAAM,IAAI,KAAK,CAAC,OAAK,CAAC,CAAC;;;;;KAE9B;IAGD;;;;;;;;;OASG;IACK,kCAAU,GAAjB,UAAkB,IAAY;QAC3B,IAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;IACL,oBAAC;AAAD,CAAC,AArLD,IAqLC;AArLY,sCAAa"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 02b90696..00000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./sdk-output/api"; -export { Configuration, ConfigurationParameters } from "./sdk-output/configuration"; -export * as axiosRetry from "axios-retry"; diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 04c67f7f..00000000 --- a/dist/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./sdk-output/api"; -export { Configuration } from "./sdk-output/configuration"; -export * as axiosRetry from "axios-retry"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index ab0251d1..00000000 --- a/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,OAAO,EAAC,aAAa,EAA0B,MAAM,4BAA4B,CAAC;AAElF,OAAO,KAAK,UAAU,MAAM,aAAa,CAAA"} \ No newline at end of file diff --git a/dist/paginator.d.ts b/dist/paginator.d.ts deleted file mode 100644 index 1f142b21..00000000 --- a/dist/paginator.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -export interface PaginationParams { - /** - * Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. - * @type {number} - * @memberof AccountsApiListAccounts - */ - limit?: number; - /** - * Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. - * @type {number} - * @memberof AccountsApiListAccounts - */ - offset?: number; - /** - * If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. - * @type {boolean} - * @memberof AccountsApiListAccounts - */ - count?: boolean; - /** - * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **identityId**: *eq* **name**: *eq, in* **nativeIdentity**: *eq, in* **sourceId**: *eq, in* **uncorrelated**: *eq* - * @type {string} - * @memberof AccountsApiListAccounts - */ - filters?: string; -} -export interface AxiosResponse { - data: T; - status: number; - statusText: string; - request?: any; - headers: AxiosResponseHeaders; -} -export declare type AxiosResponseHeaders = Record & { - "set-cookie"?: string[]; -}; -export declare class Paginator { - static paginate(thisArg: T, callbackFn: (this: T, args: A) => Promise>, args?: A, increment?: number): Promise>; -} diff --git a/dist/paginator.js b/dist/paginator.js deleted file mode 100644 index 001ff706..00000000 --- a/dist/paginator.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Paginator = void 0; -var Paginator = /** @class */ (function () { - function Paginator() { - } - Paginator.paginate = function (thisArg, callbackFn, args, increment) { - return __awaiter(this, void 0, void 0, function () { - var params, maxLimit, modified, results; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - params = args ? args : { limit: 0, offset: 0 }; - maxLimit = params && params.limit ? params.limit : 0; - if (!params.offset) { - params.offset = 0; - } - if (!increment) { - increment = 250; - } - params.limit = increment; - modified = []; - _a.label = 1; - case 1: - if (!true) return [3 /*break*/, 3]; - console.log("Paginating call, offset = ".concat(params.offset)); - return [4 /*yield*/, callbackFn.call(thisArg, params)]; - case 2: - results = _a.sent(); - modified.push.apply(modified, results.data); - if (results.data.length < increment || (params.offset >= maxLimit && maxLimit > 0)) { - results.data = modified; - return [2 /*return*/, results]; - } - params.offset += increment; - return [3 /*break*/, 1]; - case 3: return [2 /*return*/]; - } - }); - }); - }; - return Paginator; -}()); -exports.Paginator = Paginator; -//# sourceMappingURL=paginator.js.map \ No newline at end of file diff --git a/dist/paginator.js.map b/dist/paginator.js.map deleted file mode 100644 index a9998ec7..00000000 --- a/dist/paginator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"paginator.js","sourceRoot":"","sources":["../paginator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;IAAA;IAwBA,CAAC;IAvBuB,kBAAQ,GAA5B,UAAqE,OAAU,EAAE,UAAwE,EAAE,IAAQ,EAAE,SAAkB;;;;;;wBAC/K,MAAM,GAAqB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAA;wBAC5D,QAAQ,GAAG,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;wBAC1D,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;4BAChB,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;yBACpB;wBACD,IAAI,CAAC,SAAS,EAAE;4BACZ,SAAS,GAAG,GAAG,CAAA;yBAClB;wBACD,MAAM,CAAC,KAAK,GAAG,SAAS,CAAA;wBAEpB,QAAQ,GAAc,EAAE,CAAA;;;6BACrB,IAAI;wBACP,OAAO,CAAC,GAAG,CAAC,oCAA6B,MAAM,CAAC,MAAM,CAAE,CAAC,CAAA;wBAC3C,qBAAM,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAA;;wBAAhD,OAAO,GAAG,SAAsC;wBACpD,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;wBAC3C,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,QAAQ,IAAI,QAAQ,GAAG,CAAC,CAAC,EAAE;4BAChF,OAAO,CAAC,IAAI,GAAG,QAAQ,CAAA;4BACvB,sBAAO,OAAO,EAAA;yBACjB;wBACD,MAAM,CAAC,MAAM,IAAI,SAAS,CAAA;;;;;;KAEjC;IACL,gBAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,8BAAS"} \ No newline at end of file diff --git a/dist/plexjs/api.d.ts b/dist/plexjs/api.d.ts deleted file mode 100644 index bbe02db3..00000000 --- a/dist/plexjs/api.d.ts +++ /dev/null @@ -1,2990 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { Configuration } from './configuration'; -import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { RequestArgs, BaseAPI } from './base'; -/** - * - * @export - * @interface GetPin200Response - */ -export interface GetPin200Response { - /** - * PinID for use with authentication - * @type {any} - * @memberof GetPin200Response - */ - 'id'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'code'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'product'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'trusted'?: any; - /** - * a link to a QR code hosted on plex.tv The QR code redirects to the relevant `plex.tv/link` authentication page Which then prompts the user for the 4 Digit Link Pin - * @type {any} - * @memberof GetPin200Response - */ - 'qr'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'clientIdentifier'?: any; - /** - * - * @type {GetPin200ResponseLocation} - * @memberof GetPin200Response - */ - 'location'?: GetPin200ResponseLocation; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'expiresIn'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'createdAt'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'expiresAt'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'authToken'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'newRegistration'?: any; -} -/** - * - * @export - * @interface GetPin200ResponseLocation - */ -export interface GetPin200ResponseLocation { - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'european_union_member'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'continent_code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'country'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'city'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'time_zone'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'postal_code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'in_privacy_restricted_country'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'subdivisions'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'coordinates'?: any; -} -/** - * - * @export - * @interface GetPin400Response - */ -export interface GetPin400Response { - /** - * - * @type {any} - * @memberof GetPin400Response - */ - 'errors'?: any; -} -/** - * - * @export - * @interface GetServerActivities200Response - */ -export interface GetServerActivities200Response { - /** - * - * @type {GetServerActivities200ResponseMediaContainer} - * @memberof GetServerActivities200Response - */ - 'MediaContainer'?: GetServerActivities200ResponseMediaContainer; -} -/** - * - * @export - * @interface GetServerActivities200ResponseMediaContainer - */ -export interface GetServerActivities200ResponseMediaContainer { - /** - * - * @type {any} - * @memberof GetServerActivities200ResponseMediaContainer - */ - 'size'?: any; - /** - * - * @type {any} - * @memberof GetServerActivities200ResponseMediaContainer - */ - 'Activity'?: any; -} -/** - * - * @export - * @interface GetServerCapabilities200Response - */ -export interface GetServerCapabilities200Response { - /** - * - * @type {GetServerCapabilities200ResponseMediaContainer} - * @memberof GetServerCapabilities200Response - */ - 'MediaContainer'?: GetServerCapabilities200ResponseMediaContainer; -} -/** - * - * @export - * @interface GetServerCapabilities200ResponseMediaContainer - */ -export interface GetServerCapabilities200ResponseMediaContainer { - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'size'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowCameraUpload'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowChannelAccess'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowMediaDeletion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowSharing'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowSync'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowTuners'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'backgroundProcessing'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'certificate'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'companionProxy'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'countryCode'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'diagnostics'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'eventStream'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'friendlyName'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'hubSearch'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'itemClusters'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'livetv'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'machineIdentifier'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'mediaProviders'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'multiuser'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'musicAnalysis'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlex'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexMappingState'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexSigninState'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexSubscription'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexUsername'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'offlineTranscode'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'ownerFeatures'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'photoAutoTag'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'platform'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'platformVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'pluginHost'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'pushNotifications'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'readOnlyLibraries'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'streamingBrainABRVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'streamingBrainVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'sync'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderActiveVideoSessions'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderAudio'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderLyrics'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderPhoto'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderSubtitles'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideo'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoBitrates'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoQualities'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoResolutions'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'updatedAt'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'updater'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'version'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'voiceSearch'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'Directory'?: any; -} -/** - * - * @export - * @interface GetServerCapabilities401Response - */ -export interface GetServerCapabilities401Response { - /** - * - * @type {any} - * @memberof GetServerCapabilities401Response - */ - 'errors'?: any; -} -/** - * ActivitiesApi - axios parameter creator - * @export - */ -export declare const ActivitiesApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities: (activityUUID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * ActivitiesApi - functional programming interface - * @export - */ -export declare const ActivitiesApiFp: (configuration?: Configuration) => { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities(activityUUID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * ActivitiesApi - factory interface - * @export - */ -export declare const ActivitiesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities(activityUUID: any, axiosOptions?: any): AxiosPromise; - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities(axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for cancelServerActivities operation in ActivitiesApi. - * @export - * @interface ActivitiesApiCancelServerActivitiesRequest - */ -export interface ActivitiesApiCancelServerActivitiesRequest { - /** - * The UUID of the activity to cancel. - * @type {any} - * @memberof ActivitiesApiCancelServerActivities - */ - readonly activityUUID: any; -} -/** - * ActivitiesApi - object-oriented interface - * @export - * @class ActivitiesApi - * @extends {BaseAPI} - */ -export declare class ActivitiesApi extends BaseAPI { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {ActivitiesApiCancelServerActivitiesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - cancelServerActivities(requestParameters: ActivitiesApiCancelServerActivitiesRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - getServerActivities(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * AuthenticationApi - axios parameter creator - * @export - */ -export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin: (strong?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken: (pinID: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * AuthenticationApi - functional programming interface - * @export - */ -export declare const AuthenticationApiFp: (configuration?: Configuration) => { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin(strong?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken(pinID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * AuthenticationApi - factory interface - * @export - */ -export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin(strong?: any, axiosOptions?: any): AxiosPromise; - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken(pinID: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getPin operation in AuthenticationApi. - * @export - * @interface AuthenticationApiGetPinRequest - */ -export interface AuthenticationApiGetPinRequest { - /** - * Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @type {any} - * @memberof AuthenticationApiGetPin - */ - readonly strong?: any; -} -/** - * Request parameters for getToken operation in AuthenticationApi. - * @export - * @interface AuthenticationApiGetTokenRequest - */ -export interface AuthenticationApiGetTokenRequest { - /** - * The PinID to retrieve an access token for - * @type {any} - * @memberof AuthenticationApiGetToken - */ - readonly pinID: any; -} -/** - * AuthenticationApi - object-oriented interface - * @export - * @class AuthenticationApi - * @extends {BaseAPI} - */ -export declare class AuthenticationApi extends BaseAPI { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {AuthenticationApiGetPinRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - getPin(requestParameters?: AuthenticationApiGetPinRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {AuthenticationApiGetTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - getToken(requestParameters: AuthenticationApiGetTokenRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * ButlerApi - axios parameter creator - * @export - */ -export declare const ButlerApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask: (taskName: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask: (taskName: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * ButlerApi - functional programming interface - * @export - */ -export declare const ButlerApiFp: (configuration?: Configuration) => { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask(taskName: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask(taskName: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * ButlerApi - factory interface - * @export - */ -export declare const ButlerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks(axiosOptions?: any): AxiosPromise; - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask(taskName: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks(axiosOptions?: any): AxiosPromise; - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask(taskName: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for startTask operation in ButlerApi. - * @export - * @interface ButlerApiStartTaskRequest - */ -export interface ButlerApiStartTaskRequest { - /** - * the name of the task to be started. - * @type {any} - * @memberof ButlerApiStartTask - */ - readonly taskName: any; -} -/** - * Request parameters for stopTask operation in ButlerApi. - * @export - * @interface ButlerApiStopTaskRequest - */ -export interface ButlerApiStopTaskRequest { - /** - * The name of the task to be started. - * @type {any} - * @memberof ButlerApiStopTask - */ - readonly taskName: any; -} -/** - * ButlerApi - object-oriented interface - * @export - * @class ButlerApi - * @extends {BaseAPI} - */ -export declare class ButlerApi extends BaseAPI { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - startAllTasks(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {ButlerApiStartTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - startTask(requestParameters: ButlerApiStartTaskRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - stopAllTasks(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {ButlerApiStopTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - stopTask(requestParameters: ButlerApiStopTaskRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * DevicesApi - axios parameter creator - * @export - */ -export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Get Devices - * @summary Get Devices - * @param {any} [includeHttps] Include Https entries in the results - * @param {any} [includeRelay] Include Relay addresses in the results - * @param {any} [includeIPv6] Include IPv6 entries in the results - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices: (includeHttps?: any, includeRelay?: any, includeIPv6?: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * DevicesApi - functional programming interface - * @export - */ -export declare const DevicesApiFp: (configuration?: Configuration) => { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Get Devices - * @summary Get Devices - * @param {any} [includeHttps] Include Https entries in the results - * @param {any} [includeRelay] Include Relay addresses in the results - * @param {any} [includeIPv6] Include IPv6 entries in the results - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices(includeHttps?: any, includeRelay?: any, includeIPv6?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * DevicesApi - factory interface - * @export - */ -export declare const DevicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients(axiosOptions?: any): AxiosPromise; - /** - * Get Devices - * @summary Get Devices - * @param {any} [includeHttps] Include Https entries in the results - * @param {any} [includeRelay] Include Relay addresses in the results - * @param {any} [includeIPv6] Include IPv6 entries in the results - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices(includeHttps?: any, includeRelay?: any, includeIPv6?: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getDevices operation in DevicesApi. - * @export - * @interface DevicesApiGetDevicesRequest - */ -export interface DevicesApiGetDevicesRequest { - /** - * Include Https entries in the results - * @type {any} - * @memberof DevicesApiGetDevices - */ - readonly includeHttps?: any; - /** - * Include Relay addresses in the results - * @type {any} - * @memberof DevicesApiGetDevices - */ - readonly includeRelay?: any; - /** - * Include IPv6 entries in the results - * @type {any} - * @memberof DevicesApiGetDevices - */ - readonly includeIPv6?: any; -} -/** - * DevicesApi - object-oriented interface - * @export - * @class DevicesApi - * @extends {BaseAPI} - */ -export declare class DevicesApi extends BaseAPI { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - getAvailableClients(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Get Devices - * @summary Get Devices - * @param {DevicesApiGetDevicesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - getDevices(requestParameters?: DevicesApiGetDevicesRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * HashesApi - axios parameter creator - * @export - */ -export declare const HashesApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash: (url: any, type?: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * HashesApi - functional programming interface - * @export - */ -export declare const HashesApiFp: (configuration?: Configuration) => { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash(url: any, type?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * HashesApi - factory interface - * @export - */ -export declare const HashesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash(url: any, type?: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getFileHash operation in HashesApi. - * @export - * @interface HashesApiGetFileHashRequest - */ -export interface HashesApiGetFileHashRequest { - /** - * This is the path to the local file, must be prefixed by `file://` - * @type {any} - * @memberof HashesApiGetFileHash - */ - readonly url: any; - /** - * Item type - * @type {any} - * @memberof HashesApiGetFileHash - */ - readonly type?: any; -} -/** - * HashesApi - object-oriented interface - * @export - * @class HashesApi - * @extends {BaseAPI} - */ -export declare class HashesApi extends BaseAPI { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {HashesApiGetFileHashRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HashesApi - */ - getFileHash(requestParameters: HashesApiGetFileHashRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * HubsApi - axios parameter creator - * @export - */ -export declare const HubsApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs: (count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs: (sectionId: any, count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * HubsApi - functional programming interface - * @export - */ -export declare const HubsApiFp: (configuration?: Configuration) => { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs(count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs(sectionId: any, count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * HubsApi - factory interface - * @export - */ -export declare const HubsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs(count?: any, onlyTransient?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs(sectionId: any, count?: any, onlyTransient?: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getGlobalHubs operation in HubsApi. - * @export - * @interface HubsApiGetGlobalHubsRequest - */ -export interface HubsApiGetGlobalHubsRequest { - /** - * The number of items to return with each hub. - * @type {any} - * @memberof HubsApiGetGlobalHubs - */ - readonly count?: any; - /** - * Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @type {any} - * @memberof HubsApiGetGlobalHubs - */ - readonly onlyTransient?: any; -} -/** - * Request parameters for getLibraryHubs operation in HubsApi. - * @export - * @interface HubsApiGetLibraryHubsRequest - */ -export interface HubsApiGetLibraryHubsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly sectionId: any; - /** - * The number of items to return with each hub. - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly count?: any; - /** - * Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly onlyTransient?: any; -} -/** - * HubsApi - object-oriented interface - * @export - * @class HubsApi - * @extends {BaseAPI} - */ -export declare class HubsApi extends BaseAPI { - /** - * - * @summary Get Global Hubs - * @param {HubsApiGetGlobalHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - getGlobalHubs(requestParameters?: HubsApiGetGlobalHubsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {HubsApiGetLibraryHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - getLibraryHubs(requestParameters: HubsApiGetLibraryHubsRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * LibraryApi - axios parameter creator - * @export - */ -export declare const LibraryApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems: (sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems: (sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails: (sectionId: any, includeDetails?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems: (sectionId: any, type?: any, filter?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary: (sectionId: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * LibraryApi - functional programming interface - * @export - */ -export declare const LibraryApiFp: (configuration?: Configuration) => { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails(sectionId: any, includeDetails?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems(sectionId: any, type?: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary(sectionId: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * LibraryApi - factory interface - * @export - */ -export declare const LibraryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: any): AxiosPromise; - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries(axiosOptions?: any): AxiosPromise; - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails(sectionId: any, includeDetails?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems(sectionId: any, type?: any, filter?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck(axiosOptions?: any): AxiosPromise; - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary(sectionId: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getCommonLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetCommonLibraryItemsRequest - */ -export interface LibraryApiGetCommonLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly sectionId: any; - /** - * item type - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly type: any; - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly filter?: any; -} -/** - * Request parameters for getLatestLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetLatestLibraryItemsRequest - */ -export interface LibraryApiGetLatestLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly sectionId: any; - /** - * item type - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly type: any; - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly filter?: any; -} -/** - * Request parameters for getLibraryDetails operation in LibraryApi. - * @export - * @interface LibraryApiGetLibraryDetailsRequest - */ -export interface LibraryApiGetLibraryDetailsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLibraryDetails - */ - readonly sectionId: any; - /** - * Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @type {any} - * @memberof LibraryApiGetLibraryDetails - */ - readonly includeDetails?: any; -} -/** - * Request parameters for getLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetLibraryItemsRequest - */ -export interface LibraryApiGetLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly sectionId: any; - /** - * item type - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly type?: any; - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly filter?: any; -} -/** - * Request parameters for refreshLibrary operation in LibraryApi. - * @export - * @interface LibraryApiRefreshLibraryRequest - */ -export interface LibraryApiRefreshLibraryRequest { - /** - * the Id of the library to refresh - * @type {any} - * @memberof LibraryApiRefreshLibrary - */ - readonly sectionId: any; -} -/** - * LibraryApi - object-oriented interface - * @export - * @class LibraryApi - * @extends {BaseAPI} - */ -export declare class LibraryApi extends BaseAPI { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {LibraryApiGetCommonLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getCommonLibraryItems(requestParameters: LibraryApiGetCommonLibraryItemsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {LibraryApiGetLatestLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLatestLibraryItems(requestParameters: LibraryApiGetLatestLibraryItemsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraries(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {LibraryApiGetLibraryDetailsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraryDetails(requestParameters: LibraryApiGetLibraryDetailsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {LibraryApiGetLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraryItems(requestParameters: LibraryApiGetLibraryItemsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getOnDeck(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {LibraryApiRefreshLibraryRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - refreshLibrary(requestParameters: LibraryApiRefreshLibraryRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * LogApi - axios parameter creator - * @export - */ -export declare const LogApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine: (level: any, message: any, source: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * LogApi - functional programming interface - * @export - */ -export declare const LogApiFp: (configuration?: Configuration) => { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine(level: any, message: any, source: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * LogApi - factory interface - * @export - */ -export declare const LogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail(axiosOptions?: any): AxiosPromise; - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine(level: any, message: any, source: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine(axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for logLine operation in LogApi. - * @export - * @interface LogApiLogLineRequest - */ -export interface LogApiLogLineRequest { - /** - * An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @type {any} - * @memberof LogApiLogLine - */ - readonly level: any; - /** - * The text of the message to write to the log. - * @type {any} - * @memberof LogApiLogLine - */ - readonly message: any; - /** - * a string indicating the source of the message. - * @type {any} - * @memberof LogApiLogLine - */ - readonly source: any; -} -/** - * LogApi - object-oriented interface - * @export - * @class LogApi - * @extends {BaseAPI} - */ -export declare class LogApi extends BaseAPI { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - enablePaperTrail(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {LogApiLogLineRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - logLine(requestParameters: LogApiLogLineRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - logMultiLine(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * PlaylistsApi - axios parameter creator - * @export - */ -export declare const PlaylistsApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents: (playlistID: any, uri: any, playQueueID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents: (playlistID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist: (title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist: (playlistID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist: (playlistID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents: (playlistID: any, type: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists: (playlistType?: any, smart?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist: (playlistID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist: (path: any, force: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * PlaylistsApi - functional programming interface - * @export - */ -export declare const PlaylistsApiFp: (configuration?: Configuration) => { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents(playlistID: any, uri: any, playQueueID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist(title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents(playlistID: any, type: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists(playlistType?: any, smart?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist(path: any, force: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * PlaylistsApi - factory interface - * @export - */ -export declare const PlaylistsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents(playlistID: any, uri: any, playQueueID: any, axiosOptions?: any): AxiosPromise; - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents(playlistID: any, axiosOptions?: any): AxiosPromise; - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist(title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist(playlistID: any, axiosOptions?: any): AxiosPromise; - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist(playlistID: any, axiosOptions?: any): AxiosPromise; - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents(playlistID: any, type: any, axiosOptions?: any): AxiosPromise; - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists(playlistType?: any, smart?: any, axiosOptions?: any): AxiosPromise; - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist(playlistID: any, axiosOptions?: any): AxiosPromise; - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist(path: any, force: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for addPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiAddPlaylistContentsRequest - */ -export interface PlaylistsApiAddPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly playlistID: any; - /** - * the content URI for the playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly uri: any; - /** - * the play queue to add to a playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly playQueueID: any; -} -/** - * Request parameters for clearPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiClearPlaylistContentsRequest - */ -export interface PlaylistsApiClearPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiClearPlaylistContents - */ - readonly playlistID: any; -} -/** - * Request parameters for createPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiCreatePlaylistRequest - */ -export interface PlaylistsApiCreatePlaylistRequest { - /** - * name of the playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly title: any; - /** - * type of playlist to create - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly type: any; - /** - * whether the playlist is smart or not - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly smart: any; - /** - * the content URI for the playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly uri?: any; - /** - * the play queue to copy to a playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly playQueueID?: any; -} -/** - * Request parameters for deletePlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiDeletePlaylistRequest - */ -export interface PlaylistsApiDeletePlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiDeletePlaylist - */ - readonly playlistID: any; -} -/** - * Request parameters for getPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistRequest - */ -export interface PlaylistsApiGetPlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiGetPlaylist - */ - readonly playlistID: any; -} -/** - * Request parameters for getPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistContentsRequest - */ -export interface PlaylistsApiGetPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiGetPlaylistContents - */ - readonly playlistID: any; - /** - * the metadata type of the item to return - * @type {any} - * @memberof PlaylistsApiGetPlaylistContents - */ - readonly type: any; -} -/** - * Request parameters for getPlaylists operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistsRequest - */ -export interface PlaylistsApiGetPlaylistsRequest { - /** - * limit to a type of playlist. - * @type {any} - * @memberof PlaylistsApiGetPlaylists - */ - readonly playlistType?: any; - /** - * type of playlists to return (default is all). - * @type {any} - * @memberof PlaylistsApiGetPlaylists - */ - readonly smart?: any; -} -/** - * Request parameters for updatePlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiUpdatePlaylistRequest - */ -export interface PlaylistsApiUpdatePlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiUpdatePlaylist - */ - readonly playlistID: any; -} -/** - * Request parameters for uploadPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiUploadPlaylistRequest - */ -export interface PlaylistsApiUploadPlaylistRequest { - /** - * absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @type {any} - * @memberof PlaylistsApiUploadPlaylist - */ - readonly path: any; - /** - * force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @type {any} - * @memberof PlaylistsApiUploadPlaylist - */ - readonly force: any; -} -/** - * PlaylistsApi - object-oriented interface - * @export - * @class PlaylistsApi - * @extends {BaseAPI} - */ -export declare class PlaylistsApi extends BaseAPI { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {PlaylistsApiAddPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - addPlaylistContents(requestParameters: PlaylistsApiAddPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {PlaylistsApiClearPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - clearPlaylistContents(requestParameters: PlaylistsApiClearPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {PlaylistsApiCreatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - createPlaylist(requestParameters: PlaylistsApiCreatePlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {PlaylistsApiDeletePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - deletePlaylist(requestParameters: PlaylistsApiDeletePlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylist(requestParameters: PlaylistsApiGetPlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {PlaylistsApiGetPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylistContents(requestParameters: PlaylistsApiGetPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * - * @summary Get All Playlists - * @param {PlaylistsApiGetPlaylistsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylists(requestParameters?: PlaylistsApiGetPlaylistsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {PlaylistsApiUpdatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - updatePlaylist(requestParameters: PlaylistsApiUpdatePlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {PlaylistsApiUploadPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - uploadPlaylist(requestParameters: PlaylistsApiUploadPlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * SearchApi - axios parameter creator - * @export - */ -export declare const SearchApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch: (query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch: (query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * SearchApi - functional programming interface - * @export - */ -export declare const SearchApiFp: (configuration?: Configuration) => { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * SearchApi - factory interface - * @export - */ -export declare const SearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for performSearch operation in SearchApi. - * @export - * @interface SearchApiPerformSearchRequest - */ -export interface SearchApiPerformSearchRequest { - /** - * The query term - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly query: any; - /** - * This gives context to the search, and can result in re-ordering of search result hubs - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly sectionId?: any; - /** - * The number of items to return per hub - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly limit?: any; -} -/** - * Request parameters for performVoiceSearch operation in SearchApi. - * @export - * @interface SearchApiPerformVoiceSearchRequest - */ -export interface SearchApiPerformVoiceSearchRequest { - /** - * The query term - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly query: any; - /** - * This gives context to the search, and can result in re-ordering of search result hubs - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly sectionId?: any; - /** - * The number of items to return per hub - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly limit?: any; -} -/** - * SearchApi - object-oriented interface - * @export - * @class SearchApi - * @extends {BaseAPI} - */ -export declare class SearchApi extends BaseAPI { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {SearchApiPerformSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - performSearch(requestParameters: SearchApiPerformSearchRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {SearchApiPerformVoiceSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - performVoiceSearch(requestParameters: SearchApiPerformVoiceSearchRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * SecurityApi - axios parameter creator - * @export - */ -export declare const SecurityApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation: (source: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken: (type: any, scope: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * SecurityApi - functional programming interface - * @export - */ -export declare const SecurityApiFp: (configuration?: Configuration) => { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation(source: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken(type: any, scope: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * SecurityApi - factory interface - * @export - */ -export declare const SecurityApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation(source: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken(type: any, scope: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getSourceConnectionInformation operation in SecurityApi. - * @export - * @interface SecurityApiGetSourceConnectionInformationRequest - */ -export interface SecurityApiGetSourceConnectionInformationRequest { - /** - * The source identifier with an included prefix. - * @type {any} - * @memberof SecurityApiGetSourceConnectionInformation - */ - readonly source: any; -} -/** - * Request parameters for getTransientToken operation in SecurityApi. - * @export - * @interface SecurityApiGetTransientTokenRequest - */ -export interface SecurityApiGetTransientTokenRequest { - /** - * `delegation` - This is the only supported `type` parameter. - * @type {any} - * @memberof SecurityApiGetTransientToken - */ - readonly type: any; - /** - * `all` - This is the only supported `scope` parameter. - * @type {any} - * @memberof SecurityApiGetTransientToken - */ - readonly scope: any; -} -/** - * SecurityApi - object-oriented interface - * @export - * @class SecurityApi - * @extends {BaseAPI} - */ -export declare class SecurityApi extends BaseAPI { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {SecurityApiGetSourceConnectionInformationRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - getSourceConnectionInformation(requestParameters: SecurityApiGetSourceConnectionInformationRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {SecurityApiGetTransientTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - getTransientToken(requestParameters: SecurityApiGetTransientTokenRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * ServerApi - axios parameter creator - * @export - */ -export declare const ServerApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * ServerApi - functional programming interface - * @export - */ -export declare const ServerApiFp: (configuration?: Configuration) => { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * ServerApi - factory interface - * @export - */ -export declare const ServerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities(axiosOptions?: any): AxiosPromise; - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences(axiosOptions?: any): AxiosPromise; -}; -/** - * ServerApi - object-oriented interface - * @export - * @class ServerApi - * @extends {BaseAPI} - */ -export declare class ServerApi extends BaseAPI { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - getServerCapabilities(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - getServerPreferences(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * SessionsApi - axios parameter creator - * @export - */ -export declare const SessionsApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * SessionsApi - functional programming interface - * @export - */ -export declare const SessionsApiFp: (configuration?: Configuration) => { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * SessionsApi - factory interface - * @export - */ -export declare const SessionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory(axiosOptions?: any): AxiosPromise; - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions(axiosOptions?: any): AxiosPromise; -}; -/** - * SessionsApi - object-oriented interface - * @export - * @class SessionsApi - * @extends {BaseAPI} - */ -export declare class SessionsApi extends BaseAPI { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - getSessionHistory(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - getSessions(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * UpdaterApi - axios parameter creator - * @export - */ -export declare const UpdaterApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates: (tonight?: any, skip?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates: (download?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * UpdaterApi - functional programming interface - * @export - */ -export declare const UpdaterApiFp: (configuration?: Configuration) => { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates(tonight?: any, skip?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates(download?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * UpdaterApi - factory interface - * @export - */ -export declare const UpdaterApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates(tonight?: any, skip?: any, axiosOptions?: any): AxiosPromise; - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates(download?: any, axiosOptions?: any): AxiosPromise; - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus(axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for applyUpdates operation in UpdaterApi. - * @export - * @interface UpdaterApiApplyUpdatesRequest - */ -export interface UpdaterApiApplyUpdatesRequest { - /** - * Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @type {any} - * @memberof UpdaterApiApplyUpdates - */ - readonly tonight?: any; - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @type {any} - * @memberof UpdaterApiApplyUpdates - */ - readonly skip?: any; -} -/** - * Request parameters for checkForUpdates operation in UpdaterApi. - * @export - * @interface UpdaterApiCheckForUpdatesRequest - */ -export interface UpdaterApiCheckForUpdatesRequest { - /** - * Indicate that you want to start download any updates found. - * @type {any} - * @memberof UpdaterApiCheckForUpdates - */ - readonly download?: any; -} -/** - * UpdaterApi - object-oriented interface - * @export - * @class UpdaterApi - * @extends {BaseAPI} - */ -export declare class UpdaterApi extends BaseAPI { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {UpdaterApiApplyUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - applyUpdates(requestParameters?: UpdaterApiApplyUpdatesRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Checking for updates - * @summary Checking for updates - * @param {UpdaterApiCheckForUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - checkForUpdates(requestParameters?: UpdaterApiCheckForUpdatesRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - queryUpdateStatus(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * UserApi - axios parameter creator - * @export - */ -export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * UserApi - functional programming interface - * @export - */ -export declare const UserApiFp: (configuration?: Configuration) => { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * UserApi - factory interface - * @export - */ -export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails(axiosOptions?: any): AxiosPromise; -}; -/** - * UserApi - object-oriented interface - * @export - * @class UserApi - * @extends {BaseAPI} - */ -export declare class UserApi extends BaseAPI { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UserApi - */ - getUserDetails(axiosOptions?: AxiosRequestConfig): Promise>; -} diff --git a/dist/plexjs/api.js b/dist/plexjs/api.js deleted file mode 100644 index 508e91c7..00000000 --- a/dist/plexjs/api.js +++ /dev/null @@ -1,3678 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import globalAxios from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from './common'; -// @ts-ignore -import { BASE_PATH, BaseAPI } from './base'; -/** - * ActivitiesApi - axios parameter creator - * @export - */ -export const ActivitiesApiAxiosParamCreator = function (configuration) { - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities: async (activityUUID, axiosOptions = {}) => { - // verify required parameter 'activityUUID' is not null or undefined - assertParamExists('cancelServerActivities', 'activityUUID', activityUUID); - const localVarPath = `/activities/{activityUUID}` - .replace(`{${"activityUUID"}}`, encodeURIComponent(String(activityUUID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities: async (axiosOptions = {}) => { - const localVarPath = `/activities`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * ActivitiesApi - functional programming interface - * @export - */ -export const ActivitiesApiFp = function (configuration) { - const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration); - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async cancelServerActivities(activityUUID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.cancelServerActivities(activityUUID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerActivities(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerActivities(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * ActivitiesApi - factory interface - * @export - */ -export const ActivitiesApiFactory = function (configuration, basePath, axios) { - const localVarFp = ActivitiesApiFp(configuration); - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities(activityUUID, axiosOptions) { - return localVarFp.cancelServerActivities(activityUUID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities(axiosOptions) { - return localVarFp.getServerActivities(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * ActivitiesApi - object-oriented interface - * @export - * @class ActivitiesApi - * @extends {BaseAPI} - */ -export class ActivitiesApi extends BaseAPI { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {ActivitiesApiCancelServerActivitiesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - cancelServerActivities(requestParameters, axiosOptions) { - return ActivitiesApiFp(this.configuration).cancelServerActivities(requestParameters.activityUUID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - getServerActivities(axiosOptions) { - return ActivitiesApiFp(this.configuration).getServerActivities(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * AuthenticationApi - axios parameter creator - * @export - */ -export const AuthenticationApiAxiosParamCreator = function (configuration) { - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin: async (strong, axiosOptions = {}) => { - const localVarPath = `/pins`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - if (strong !== undefined) { - localVarQueryParameter['strong'] = strong; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken: async (pinID, axiosOptions = {}) => { - // verify required parameter 'pinID' is not null or undefined - assertParamExists('getToken', 'pinID', pinID); - const localVarPath = `/pins/{pinID}` - .replace(`{${"pinID"}}`, encodeURIComponent(String(pinID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * AuthenticationApi - functional programming interface - * @export - */ -export const AuthenticationApiFp = function (configuration) { - const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration); - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPin(strong, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPin(strong, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getToken(pinID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getToken(pinID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * AuthenticationApi - factory interface - * @export - */ -export const AuthenticationApiFactory = function (configuration, basePath, axios) { - const localVarFp = AuthenticationApiFp(configuration); - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin(strong, axiosOptions) { - return localVarFp.getPin(strong, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken(pinID, axiosOptions) { - return localVarFp.getToken(pinID, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * AuthenticationApi - object-oriented interface - * @export - * @class AuthenticationApi - * @extends {BaseAPI} - */ -export class AuthenticationApi extends BaseAPI { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {AuthenticationApiGetPinRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - getPin(requestParameters = {}, axiosOptions) { - return AuthenticationApiFp(this.configuration).getPin(requestParameters.strong, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {AuthenticationApiGetTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - getToken(requestParameters, axiosOptions) { - return AuthenticationApiFp(this.configuration).getToken(requestParameters.pinID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * ButlerApi - axios parameter creator - * @export - */ -export const ButlerApiAxiosParamCreator = function (configuration) { - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks: async (axiosOptions = {}) => { - const localVarPath = `/butler`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask: async (taskName, axiosOptions = {}) => { - // verify required parameter 'taskName' is not null or undefined - assertParamExists('startTask', 'taskName', taskName); - const localVarPath = `/butler/{taskName}` - .replace(`{${"taskName"}}`, encodeURIComponent(String(taskName))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks: async (axiosOptions = {}) => { - const localVarPath = `/butler`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask: async (taskName, axiosOptions = {}) => { - // verify required parameter 'taskName' is not null or undefined - assertParamExists('stopTask', 'taskName', taskName); - const localVarPath = `/butler/{taskName}` - .replace(`{${"taskName"}}`, encodeURIComponent(String(taskName))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * ButlerApi - functional programming interface - * @export - */ -export const ButlerApiFp = function (configuration) { - const localVarAxiosParamCreator = ButlerApiAxiosParamCreator(configuration); - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async startAllTasks(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.startAllTasks(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async startTask(taskName, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.startTask(taskName, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async stopAllTasks(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.stopAllTasks(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async stopTask(taskName, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.stopTask(taskName, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * ButlerApi - factory interface - * @export - */ -export const ButlerApiFactory = function (configuration, basePath, axios) { - const localVarFp = ButlerApiFp(configuration); - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks(axiosOptions) { - return localVarFp.startAllTasks(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask(taskName, axiosOptions) { - return localVarFp.startTask(taskName, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks(axiosOptions) { - return localVarFp.stopAllTasks(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask(taskName, axiosOptions) { - return localVarFp.stopTask(taskName, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * ButlerApi - object-oriented interface - * @export - * @class ButlerApi - * @extends {BaseAPI} - */ -export class ButlerApi extends BaseAPI { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - startAllTasks(axiosOptions) { - return ButlerApiFp(this.configuration).startAllTasks(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {ButlerApiStartTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - startTask(requestParameters, axiosOptions) { - return ButlerApiFp(this.configuration).startTask(requestParameters.taskName, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - stopAllTasks(axiosOptions) { - return ButlerApiFp(this.configuration).stopAllTasks(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {ButlerApiStopTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - stopTask(requestParameters, axiosOptions) { - return ButlerApiFp(this.configuration).stopTask(requestParameters.taskName, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * DevicesApi - axios parameter creator - * @export - */ -export const DevicesApiAxiosParamCreator = function (configuration) { - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients: async (axiosOptions = {}) => { - const localVarPath = `/clients`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Devices - * @summary Get Devices - * @param {any} [includeHttps] Include Https entries in the results - * @param {any} [includeRelay] Include Relay addresses in the results - * @param {any} [includeIPv6] Include IPv6 entries in the results - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices: async (includeHttps, includeRelay, includeIPv6, axiosOptions = {}) => { - const localVarPath = `/resources`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (includeHttps !== undefined) { - localVarQueryParameter['includeHttps'] = includeHttps; - } - if (includeRelay !== undefined) { - localVarQueryParameter['includeRelay'] = includeRelay; - } - if (includeIPv6 !== undefined) { - localVarQueryParameter['includeIPv6'] = includeIPv6; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * DevicesApi - functional programming interface - * @export - */ -export const DevicesApiFp = function (configuration) { - const localVarAxiosParamCreator = DevicesApiAxiosParamCreator(configuration); - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getAvailableClients(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableClients(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Devices - * @summary Get Devices - * @param {any} [includeHttps] Include Https entries in the results - * @param {any} [includeRelay] Include Relay addresses in the results - * @param {any} [includeIPv6] Include IPv6 entries in the results - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getDevices(includeHttps, includeRelay, includeIPv6, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDevices(includeHttps, includeRelay, includeIPv6, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * DevicesApi - factory interface - * @export - */ -export const DevicesApiFactory = function (configuration, basePath, axios) { - const localVarFp = DevicesApiFp(configuration); - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients(axiosOptions) { - return localVarFp.getAvailableClients(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Devices - * @summary Get Devices - * @param {any} [includeHttps] Include Https entries in the results - * @param {any} [includeRelay] Include Relay addresses in the results - * @param {any} [includeIPv6] Include IPv6 entries in the results - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices(includeHttps, includeRelay, includeIPv6, axiosOptions) { - return localVarFp.getDevices(includeHttps, includeRelay, includeIPv6, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * DevicesApi - object-oriented interface - * @export - * @class DevicesApi - * @extends {BaseAPI} - */ -export class DevicesApi extends BaseAPI { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - getAvailableClients(axiosOptions) { - return DevicesApiFp(this.configuration).getAvailableClients(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Get Devices - * @summary Get Devices - * @param {DevicesApiGetDevicesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - getDevices(requestParameters = {}, axiosOptions) { - return DevicesApiFp(this.configuration).getDevices(requestParameters.includeHttps, requestParameters.includeRelay, requestParameters.includeIPv6, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * HashesApi - axios parameter creator - * @export - */ -export const HashesApiAxiosParamCreator = function (configuration) { - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash: async (url, type, axiosOptions = {}) => { - // verify required parameter 'url' is not null or undefined - assertParamExists('getFileHash', 'url', url); - const localVarPath = `/library/hashes`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (url !== undefined) { - localVarQueryParameter['url'] = url; - } - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * HashesApi - functional programming interface - * @export - */ -export const HashesApiFp = function (configuration) { - const localVarAxiosParamCreator = HashesApiAxiosParamCreator(configuration); - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getFileHash(url, type, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getFileHash(url, type, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * HashesApi - factory interface - * @export - */ -export const HashesApiFactory = function (configuration, basePath, axios) { - const localVarFp = HashesApiFp(configuration); - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash(url, type, axiosOptions) { - return localVarFp.getFileHash(url, type, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * HashesApi - object-oriented interface - * @export - * @class HashesApi - * @extends {BaseAPI} - */ -export class HashesApi extends BaseAPI { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {HashesApiGetFileHashRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HashesApi - */ - getFileHash(requestParameters, axiosOptions) { - return HashesApiFp(this.configuration).getFileHash(requestParameters.url, requestParameters.type, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * HubsApi - axios parameter creator - * @export - */ -export const HubsApiAxiosParamCreator = function (configuration) { - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs: async (count, onlyTransient, axiosOptions = {}) => { - const localVarPath = `/hubs`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (count !== undefined) { - localVarQueryParameter['count'] = count; - } - if (onlyTransient !== undefined) { - localVarQueryParameter['onlyTransient'] = onlyTransient; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs: async (sectionId, count, onlyTransient, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryHubs', 'sectionId', sectionId); - const localVarPath = `/hubs/sections/{sectionId}` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (count !== undefined) { - localVarQueryParameter['count'] = count; - } - if (onlyTransient !== undefined) { - localVarQueryParameter['onlyTransient'] = onlyTransient; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * HubsApi - functional programming interface - * @export - */ -export const HubsApiFp = function (configuration) { - const localVarAxiosParamCreator = HubsApiAxiosParamCreator(configuration); - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getGlobalHubs(count, onlyTransient, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalHubs(count, onlyTransient, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryHubs(sectionId, count, onlyTransient, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryHubs(sectionId, count, onlyTransient, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * HubsApi - factory interface - * @export - */ -export const HubsApiFactory = function (configuration, basePath, axios) { - const localVarFp = HubsApiFp(configuration); - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs(count, onlyTransient, axiosOptions) { - return localVarFp.getGlobalHubs(count, onlyTransient, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs(sectionId, count, onlyTransient, axiosOptions) { - return localVarFp.getLibraryHubs(sectionId, count, onlyTransient, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * HubsApi - object-oriented interface - * @export - * @class HubsApi - * @extends {BaseAPI} - */ -export class HubsApi extends BaseAPI { - /** - * - * @summary Get Global Hubs - * @param {HubsApiGetGlobalHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - getGlobalHubs(requestParameters = {}, axiosOptions) { - return HubsApiFp(this.configuration).getGlobalHubs(requestParameters.count, requestParameters.onlyTransient, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {HubsApiGetLibraryHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - getLibraryHubs(requestParameters, axiosOptions) { - return HubsApiFp(this.configuration).getLibraryHubs(requestParameters.sectionId, requestParameters.count, requestParameters.onlyTransient, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * LibraryApi - axios parameter creator - * @export - */ -export const LibraryApiAxiosParamCreator = function (configuration) { - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems: async (sectionId, type, filter, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getCommonLibraryItems', 'sectionId', sectionId); - // verify required parameter 'type' is not null or undefined - assertParamExists('getCommonLibraryItems', 'type', type); - const localVarPath = `/library/sections/{sectionId}/common` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems: async (sectionId, type, filter, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLatestLibraryItems', 'sectionId', sectionId); - // verify required parameter 'type' is not null or undefined - assertParamExists('getLatestLibraryItems', 'type', type); - const localVarPath = `/library/sections/{sectionId}/latest` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries: async (axiosOptions = {}) => { - const localVarPath = `/library/sections`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails: async (sectionId, includeDetails, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryDetails', 'sectionId', sectionId); - const localVarPath = `/library/sections/{sectionId}` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (includeDetails !== undefined) { - localVarQueryParameter['includeDetails'] = includeDetails; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems: async (sectionId, type, filter, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryItems', 'sectionId', sectionId); - const localVarPath = `/library/sections/{sectionId}/all` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck: async (axiosOptions = {}) => { - const localVarPath = `/library/onDeck`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary: async (sectionId, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('refreshLibrary', 'sectionId', sectionId); - const localVarPath = `/library/sections/{sectionId}/refresh` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * LibraryApi - functional programming interface - * @export - */ -export const LibraryApiFp = function (configuration) { - const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration); - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getCommonLibraryItems(sectionId, type, filter, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCommonLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLatestLibraryItems(sectionId, type, filter, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraries(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryDetails(sectionId, includeDetails, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryDetails(sectionId, includeDetails, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryItems(sectionId, type, filter, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getOnDeck(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOnDeck(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async refreshLibrary(sectionId, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.refreshLibrary(sectionId, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * LibraryApi - factory interface - * @export - */ -export const LibraryApiFactory = function (configuration, basePath, axios) { - const localVarFp = LibraryApiFp(configuration); - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems(sectionId, type, filter, axiosOptions) { - return localVarFp.getCommonLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems(sectionId, type, filter, axiosOptions) { - return localVarFp.getLatestLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries(axiosOptions) { - return localVarFp.getLibraries(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails(sectionId, includeDetails, axiosOptions) { - return localVarFp.getLibraryDetails(sectionId, includeDetails, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems(sectionId, type, filter, axiosOptions) { - return localVarFp.getLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck(axiosOptions) { - return localVarFp.getOnDeck(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary(sectionId, axiosOptions) { - return localVarFp.refreshLibrary(sectionId, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * LibraryApi - object-oriented interface - * @export - * @class LibraryApi - * @extends {BaseAPI} - */ -export class LibraryApi extends BaseAPI { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {LibraryApiGetCommonLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getCommonLibraryItems(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).getCommonLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {LibraryApiGetLatestLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLatestLibraryItems(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).getLatestLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraries(axiosOptions) { - return LibraryApiFp(this.configuration).getLibraries(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {LibraryApiGetLibraryDetailsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraryDetails(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).getLibraryDetails(requestParameters.sectionId, requestParameters.includeDetails, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {LibraryApiGetLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraryItems(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).getLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getOnDeck(axiosOptions) { - return LibraryApiFp(this.configuration).getOnDeck(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {LibraryApiRefreshLibraryRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - refreshLibrary(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).refreshLibrary(requestParameters.sectionId, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * LogApi - axios parameter creator - * @export - */ -export const LogApiAxiosParamCreator = function (configuration) { - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail: async (axiosOptions = {}) => { - const localVarPath = `/log/networked`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine: async (level, message, source, axiosOptions = {}) => { - // verify required parameter 'level' is not null or undefined - assertParamExists('logLine', 'level', level); - // verify required parameter 'message' is not null or undefined - assertParamExists('logLine', 'message', message); - // verify required parameter 'source' is not null or undefined - assertParamExists('logLine', 'source', source); - const localVarPath = `/log`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (level !== undefined) { - localVarQueryParameter['level'] = level; - } - if (message !== undefined) { - localVarQueryParameter['message'] = message; - } - if (source !== undefined) { - localVarQueryParameter['source'] = source; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine: async (axiosOptions = {}) => { - const localVarPath = `/log`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * LogApi - functional programming interface - * @export - */ -export const LogApiFp = function (configuration) { - const localVarAxiosParamCreator = LogApiAxiosParamCreator(configuration); - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async enablePaperTrail(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.enablePaperTrail(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async logLine(level, message, source, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.logLine(level, message, source, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async logMultiLine(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.logMultiLine(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * LogApi - factory interface - * @export - */ -export const LogApiFactory = function (configuration, basePath, axios) { - const localVarFp = LogApiFp(configuration); - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail(axiosOptions) { - return localVarFp.enablePaperTrail(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine(level, message, source, axiosOptions) { - return localVarFp.logLine(level, message, source, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine(axiosOptions) { - return localVarFp.logMultiLine(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * LogApi - object-oriented interface - * @export - * @class LogApi - * @extends {BaseAPI} - */ -export class LogApi extends BaseAPI { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - enablePaperTrail(axiosOptions) { - return LogApiFp(this.configuration).enablePaperTrail(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {LogApiLogLineRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - logLine(requestParameters, axiosOptions) { - return LogApiFp(this.configuration).logLine(requestParameters.level, requestParameters.message, requestParameters.source, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - logMultiLine(axiosOptions) { - return LogApiFp(this.configuration).logMultiLine(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * PlaylistsApi - axios parameter creator - * @export - */ -export const PlaylistsApiAxiosParamCreator = function (configuration) { - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents: async (playlistID, uri, playQueueID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('addPlaylistContents', 'playlistID', playlistID); - // verify required parameter 'uri' is not null or undefined - assertParamExists('addPlaylistContents', 'uri', uri); - // verify required parameter 'playQueueID' is not null or undefined - assertParamExists('addPlaylistContents', 'playQueueID', playQueueID); - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (uri !== undefined) { - localVarQueryParameter['uri'] = uri; - } - if (playQueueID !== undefined) { - localVarQueryParameter['playQueueID'] = playQueueID; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents: async (playlistID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('clearPlaylistContents', 'playlistID', playlistID); - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist: async (title, type, smart, uri, playQueueID, axiosOptions = {}) => { - // verify required parameter 'title' is not null or undefined - assertParamExists('createPlaylist', 'title', title); - // verify required parameter 'type' is not null or undefined - assertParamExists('createPlaylist', 'type', type); - // verify required parameter 'smart' is not null or undefined - assertParamExists('createPlaylist', 'smart', smart); - const localVarPath = `/playlists`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (title !== undefined) { - localVarQueryParameter['title'] = title; - } - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (smart !== undefined) { - localVarQueryParameter['smart'] = smart; - } - if (uri !== undefined) { - localVarQueryParameter['uri'] = uri; - } - if (playQueueID !== undefined) { - localVarQueryParameter['playQueueID'] = playQueueID; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist: async (playlistID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('deletePlaylist', 'playlistID', playlistID); - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist: async (playlistID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('getPlaylist', 'playlistID', playlistID); - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents: async (playlistID, type, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('getPlaylistContents', 'playlistID', playlistID); - // verify required parameter 'type' is not null or undefined - assertParamExists('getPlaylistContents', 'type', type); - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists: async (playlistType, smart, axiosOptions = {}) => { - const localVarPath = `/playlists/all`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (playlistType !== undefined) { - localVarQueryParameter['playlistType'] = playlistType; - } - if (smart !== undefined) { - localVarQueryParameter['smart'] = smart; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist: async (playlistID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('updatePlaylist', 'playlistID', playlistID); - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist: async (path, force, axiosOptions = {}) => { - // verify required parameter 'path' is not null or undefined - assertParamExists('uploadPlaylist', 'path', path); - // verify required parameter 'force' is not null or undefined - assertParamExists('uploadPlaylist', 'force', force); - const localVarPath = `/playlists/upload`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (path !== undefined) { - localVarQueryParameter['path'] = path; - } - if (force !== undefined) { - localVarQueryParameter['force'] = force; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * PlaylistsApi - functional programming interface - * @export - */ -export const PlaylistsApiFp = function (configuration) { - const localVarAxiosParamCreator = PlaylistsApiAxiosParamCreator(configuration); - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async addPlaylistContents(playlistID, uri, playQueueID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.addPlaylistContents(playlistID, uri, playQueueID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async clearPlaylistContents(playlistID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.clearPlaylistContents(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async createPlaylist(title, type, smart, uri, playQueueID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.createPlaylist(title, type, smart, uri, playQueueID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async deletePlaylist(playlistID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.deletePlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylist(playlistID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylistContents(playlistID, type, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistContents(playlistID, type, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylists(playlistType, smart, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylists(playlistType, smart, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async updatePlaylist(playlistID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async uploadPlaylist(path, force, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.uploadPlaylist(path, force, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * PlaylistsApi - factory interface - * @export - */ -export const PlaylistsApiFactory = function (configuration, basePath, axios) { - const localVarFp = PlaylistsApiFp(configuration); - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents(playlistID, uri, playQueueID, axiosOptions) { - return localVarFp.addPlaylistContents(playlistID, uri, playQueueID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents(playlistID, axiosOptions) { - return localVarFp.clearPlaylistContents(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist(title, type, smart, uri, playQueueID, axiosOptions) { - return localVarFp.createPlaylist(title, type, smart, uri, playQueueID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist(playlistID, axiosOptions) { - return localVarFp.deletePlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist(playlistID, axiosOptions) { - return localVarFp.getPlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents(playlistID, type, axiosOptions) { - return localVarFp.getPlaylistContents(playlistID, type, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists(playlistType, smart, axiosOptions) { - return localVarFp.getPlaylists(playlistType, smart, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist(playlistID, axiosOptions) { - return localVarFp.updatePlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist(path, force, axiosOptions) { - return localVarFp.uploadPlaylist(path, force, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * PlaylistsApi - object-oriented interface - * @export - * @class PlaylistsApi - * @extends {BaseAPI} - */ -export class PlaylistsApi extends BaseAPI { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {PlaylistsApiAddPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - addPlaylistContents(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).addPlaylistContents(requestParameters.playlistID, requestParameters.uri, requestParameters.playQueueID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {PlaylistsApiClearPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - clearPlaylistContents(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).clearPlaylistContents(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {PlaylistsApiCreatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - createPlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).createPlaylist(requestParameters.title, requestParameters.type, requestParameters.smart, requestParameters.uri, requestParameters.playQueueID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {PlaylistsApiDeletePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - deletePlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).deletePlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).getPlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {PlaylistsApiGetPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylistContents(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).getPlaylistContents(requestParameters.playlistID, requestParameters.type, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * - * @summary Get All Playlists - * @param {PlaylistsApiGetPlaylistsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylists(requestParameters = {}, axiosOptions) { - return PlaylistsApiFp(this.configuration).getPlaylists(requestParameters.playlistType, requestParameters.smart, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {PlaylistsApiUpdatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - updatePlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).updatePlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {PlaylistsApiUploadPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - uploadPlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).uploadPlaylist(requestParameters.path, requestParameters.force, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * SearchApi - axios parameter creator - * @export - */ -export const SearchApiAxiosParamCreator = function (configuration) { - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch: async (query, sectionId, limit, axiosOptions = {}) => { - // verify required parameter 'query' is not null or undefined - assertParamExists('performSearch', 'query', query); - const localVarPath = `/hubs/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - if (sectionId !== undefined) { - localVarQueryParameter['sectionId'] = sectionId; - } - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch: async (query, sectionId, limit, axiosOptions = {}) => { - // verify required parameter 'query' is not null or undefined - assertParamExists('performVoiceSearch', 'query', query); - const localVarPath = `/hubs/search/voice`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - if (sectionId !== undefined) { - localVarQueryParameter['sectionId'] = sectionId; - } - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * SearchApi - functional programming interface - * @export - */ -export const SearchApiFp = function (configuration) { - const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration); - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async performSearch(query, sectionId, limit, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.performSearch(query, sectionId, limit, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async performVoiceSearch(query, sectionId, limit, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.performVoiceSearch(query, sectionId, limit, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * SearchApi - factory interface - * @export - */ -export const SearchApiFactory = function (configuration, basePath, axios) { - const localVarFp = SearchApiFp(configuration); - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch(query, sectionId, limit, axiosOptions) { - return localVarFp.performSearch(query, sectionId, limit, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch(query, sectionId, limit, axiosOptions) { - return localVarFp.performVoiceSearch(query, sectionId, limit, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * SearchApi - object-oriented interface - * @export - * @class SearchApi - * @extends {BaseAPI} - */ -export class SearchApi extends BaseAPI { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {SearchApiPerformSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - performSearch(requestParameters, axiosOptions) { - return SearchApiFp(this.configuration).performSearch(requestParameters.query, requestParameters.sectionId, requestParameters.limit, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {SearchApiPerformVoiceSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - performVoiceSearch(requestParameters, axiosOptions) { - return SearchApiFp(this.configuration).performVoiceSearch(requestParameters.query, requestParameters.sectionId, requestParameters.limit, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * SecurityApi - axios parameter creator - * @export - */ -export const SecurityApiAxiosParamCreator = function (configuration) { - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation: async (source, axiosOptions = {}) => { - // verify required parameter 'source' is not null or undefined - assertParamExists('getSourceConnectionInformation', 'source', source); - const localVarPath = `/security/resources`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (source !== undefined) { - localVarQueryParameter['source'] = source; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken: async (type, scope, axiosOptions = {}) => { - // verify required parameter 'type' is not null or undefined - assertParamExists('getTransientToken', 'type', type); - // verify required parameter 'scope' is not null or undefined - assertParamExists('getTransientToken', 'scope', scope); - const localVarPath = `/security/token`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * SecurityApi - functional programming interface - * @export - */ -export const SecurityApiFp = function (configuration) { - const localVarAxiosParamCreator = SecurityApiAxiosParamCreator(configuration); - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSourceConnectionInformation(source, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSourceConnectionInformation(source, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getTransientToken(type, scope, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getTransientToken(type, scope, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * SecurityApi - factory interface - * @export - */ -export const SecurityApiFactory = function (configuration, basePath, axios) { - const localVarFp = SecurityApiFp(configuration); - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation(source, axiosOptions) { - return localVarFp.getSourceConnectionInformation(source, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken(type, scope, axiosOptions) { - return localVarFp.getTransientToken(type, scope, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * SecurityApi - object-oriented interface - * @export - * @class SecurityApi - * @extends {BaseAPI} - */ -export class SecurityApi extends BaseAPI { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {SecurityApiGetSourceConnectionInformationRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - getSourceConnectionInformation(requestParameters, axiosOptions) { - return SecurityApiFp(this.configuration).getSourceConnectionInformation(requestParameters.source, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {SecurityApiGetTransientTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - getTransientToken(requestParameters, axiosOptions) { - return SecurityApiFp(this.configuration).getTransientToken(requestParameters.type, requestParameters.scope, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * ServerApi - axios parameter creator - * @export - */ -export const ServerApiAxiosParamCreator = function (configuration) { - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities: async (axiosOptions = {}) => { - const localVarPath = `/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences: async (axiosOptions = {}) => { - const localVarPath = `/:/prefs`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * ServerApi - functional programming interface - * @export - */ -export const ServerApiFp = function (configuration) { - const localVarAxiosParamCreator = ServerApiAxiosParamCreator(configuration); - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerCapabilities(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerCapabilities(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerPreferences(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerPreferences(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * ServerApi - factory interface - * @export - */ -export const ServerApiFactory = function (configuration, basePath, axios) { - const localVarFp = ServerApiFp(configuration); - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities(axiosOptions) { - return localVarFp.getServerCapabilities(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences(axiosOptions) { - return localVarFp.getServerPreferences(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * ServerApi - object-oriented interface - * @export - * @class ServerApi - * @extends {BaseAPI} - */ -export class ServerApi extends BaseAPI { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - getServerCapabilities(axiosOptions) { - return ServerApiFp(this.configuration).getServerCapabilities(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - getServerPreferences(axiosOptions) { - return ServerApiFp(this.configuration).getServerPreferences(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * SessionsApi - axios parameter creator - * @export - */ -export const SessionsApiAxiosParamCreator = function (configuration) { - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory: async (axiosOptions = {}) => { - const localVarPath = `/status/sessions/history/all`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions: async (axiosOptions = {}) => { - const localVarPath = `/status/sessions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * SessionsApi - functional programming interface - * @export - */ -export const SessionsApiFp = function (configuration) { - const localVarAxiosParamCreator = SessionsApiAxiosParamCreator(configuration); - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSessionHistory(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionHistory(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSessions(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSessions(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * SessionsApi - factory interface - * @export - */ -export const SessionsApiFactory = function (configuration, basePath, axios) { - const localVarFp = SessionsApiFp(configuration); - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory(axiosOptions) { - return localVarFp.getSessionHistory(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions(axiosOptions) { - return localVarFp.getSessions(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * SessionsApi - object-oriented interface - * @export - * @class SessionsApi - * @extends {BaseAPI} - */ -export class SessionsApi extends BaseAPI { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - getSessionHistory(axiosOptions) { - return SessionsApiFp(this.configuration).getSessionHistory(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - getSessions(axiosOptions) { - return SessionsApiFp(this.configuration).getSessions(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * UpdaterApi - axios parameter creator - * @export - */ -export const UpdaterApiAxiosParamCreator = function (configuration) { - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates: async (tonight, skip, axiosOptions = {}) => { - const localVarPath = `/updater/apply`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (tonight !== undefined) { - localVarQueryParameter['tonight'] = tonight; - } - if (skip !== undefined) { - localVarQueryParameter['skip'] = skip; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates: async (download, axiosOptions = {}) => { - const localVarPath = `/updater/check`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (download !== undefined) { - localVarQueryParameter['download'] = download; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus: async (axiosOptions = {}) => { - const localVarPath = `/updater/status`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * UpdaterApi - functional programming interface - * @export - */ -export const UpdaterApiFp = function (configuration) { - const localVarAxiosParamCreator = UpdaterApiAxiosParamCreator(configuration); - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async applyUpdates(tonight, skip, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.applyUpdates(tonight, skip, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async checkForUpdates(download, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.checkForUpdates(download, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async queryUpdateStatus(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryUpdateStatus(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * UpdaterApi - factory interface - * @export - */ -export const UpdaterApiFactory = function (configuration, basePath, axios) { - const localVarFp = UpdaterApiFp(configuration); - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates(tonight, skip, axiosOptions) { - return localVarFp.applyUpdates(tonight, skip, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates(download, axiosOptions) { - return localVarFp.checkForUpdates(download, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus(axiosOptions) { - return localVarFp.queryUpdateStatus(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * UpdaterApi - object-oriented interface - * @export - * @class UpdaterApi - * @extends {BaseAPI} - */ -export class UpdaterApi extends BaseAPI { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {UpdaterApiApplyUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - applyUpdates(requestParameters = {}, axiosOptions) { - return UpdaterApiFp(this.configuration).applyUpdates(requestParameters.tonight, requestParameters.skip, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Checking for updates - * @summary Checking for updates - * @param {UpdaterApiCheckForUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - checkForUpdates(requestParameters = {}, axiosOptions) { - return UpdaterApiFp(this.configuration).checkForUpdates(requestParameters.download, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - queryUpdateStatus(axiosOptions) { - return UpdaterApiFp(this.configuration).queryUpdateStatus(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * UserApi - axios parameter creator - * @export - */ -export const UserApiAxiosParamCreator = function (configuration) { - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails: async (axiosOptions = {}) => { - const localVarPath = `/user`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * UserApi - functional programming interface - * @export - */ -export const UserApiFp = function (configuration) { - const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration); - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getUserDetails(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getUserDetails(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * UserApi - factory interface - * @export - */ -export const UserApiFactory = function (configuration, basePath, axios) { - const localVarFp = UserApiFp(configuration); - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails(axiosOptions) { - return localVarFp.getUserDetails(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * UserApi - object-oriented interface - * @export - * @class UserApi - * @extends {BaseAPI} - */ -export class UserApi extends BaseAPI { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UserApi - */ - getUserDetails(axiosOptions) { - return UserApiFp(this.configuration).getUserDetails(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/dist/plexjs/api.js.map b/dist/plexjs/api.js.map deleted file mode 100644 index d91452e2..00000000 --- a/dist/plexjs/api.js.map +++ /dev/null @@ -1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,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5H,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/plexjs/base.d.ts b/dist/plexjs/base.d.ts deleted file mode 100644 index 59fb64e1..00000000 --- a/dist/plexjs/base.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { Configuration } from "./configuration"; -import { AxiosInstance, AxiosRequestConfig } from 'axios'; -export declare const BASE_PATH: string; -/** - * - * @export - */ -export declare const COLLECTION_FORMATS: { - csv: string; - ssv: string; - tsv: string; - pipes: string; -}; -/** - * - * @export - * @interface RequestArgs - */ -export interface RequestArgs { - url: string; - axiosOptions: AxiosRequestConfig; -} -/** - * - * @export - * @class BaseAPI - */ -export declare class BaseAPI { - protected basePath: string; - protected axios: AxiosInstance; - protected configuration: Configuration | undefined; - constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); -} -/** - * - * @export - * @class RequiredError - * @extends {Error} - */ -export declare class RequiredError extends Error { - field: string; - name: "RequiredError"; - constructor(field: string, msg?: string); -} diff --git a/dist/plexjs/base.js b/dist/plexjs/base.js deleted file mode 100644 index 036a6a04..00000000 --- a/dist/plexjs/base.js +++ /dev/null @@ -1,61 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -// Some imports not used depending on template conditions -// @ts-ignore -import globalAxios from 'axios'; -export const BASE_PATH = "http://10.10.10.47:32400".replace(/\/+$/, ""); -/** - * - * @export - */ -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; -/** - * - * @export - * @class BaseAPI - */ -export class BaseAPI { - basePath; - axios; - configuration; - constructor(configuration, basePath = BASE_PATH, axios = globalAxios) { - this.basePath = basePath; - this.axios = axios; - if (configuration) { - this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; - } - } -} -; -/** - * - * @export - * @class RequiredError - * @extends {Error} - */ -export class RequiredError extends Error { - field; - name = "RequiredError"; - constructor(field, msg) { - super(msg); - this.field = field; - } -} -//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/dist/plexjs/base.js.map b/dist/plexjs/base.js.map deleted file mode 100644 index d747a17c..00000000 --- a/dist/plexjs/base.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.js","sourceRoot":"","sources":["../../plexjs/base.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,yDAAyD;AACzD,aAAa;AACb,OAAO,WAAgE,MAAM,OAAO,CAAC;AAErF,MAAM,CAAC,MAAM,SAAS,GAAG,0BAA0B,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAExE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAM,OAAO,OAAO;IAGqC;IAAwC;IAFnF,aAAa,CAA4B;IAEnD,YAAY,aAA6B,EAAY,WAAmB,SAAS,EAAY,QAAuB,WAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE;YACf,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC3D;IACL,CAAC;CACJ;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IAEjB;IADnB,IAAI,GAAoB,eAAe,CAAC;IACxC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/plexjs/common.d.ts b/dist/plexjs/common.d.ts deleted file mode 100644 index 622cca31..00000000 --- a/dist/plexjs/common.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { Configuration } from "./configuration"; -import { RequestArgs } from "./base"; -import { AxiosInstance, AxiosResponse } from 'axios'; -/** - * - * @export - */ -export declare const DUMMY_BASE_URL = "https://example.com"; -/** - * - * @throws {RequiredError} - * @export - */ -export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; -/** - * - * @export - */ -export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise; -/** - * - * @export - */ -export declare const setSearchParams: (url: URL, ...objects: any[]) => void; -/** - * - * @export - */ -export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; -/** - * - * @export - */ -export declare const toPathString: (url: URL) => string; -/** - * - * @export - */ -export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => >(axios?: AxiosInstance, basePath?: string) => Promise; diff --git a/dist/plexjs/common.js b/dist/plexjs/common.js deleted file mode 100644 index cf9912f2..00000000 --- a/dist/plexjs/common.js +++ /dev/null @@ -1,95 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { RequiredError } from "./base"; -import axiosRetry from "axios-retry"; -/** - * - * @export - */ -export const DUMMY_BASE_URL = 'https://example.com'; -/** - * - * @throws {RequiredError} - * @export - */ -export const assertParamExists = function (functionName, paramName, paramValue) { - if (paramValue === null || paramValue === undefined) { - throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); - } -}; -/** - * - * @export - */ -export const setApiKeyToObject = async function (object, keyParamName, configuration) { - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? await configuration.apiKey(keyParamName) - : await configuration.apiKey; - object[keyParamName] = localVarApiKeyValue; - } -}; -/** - * - * @export - */ -export const setSearchParams = function (url, ...objects) { - const searchParams = new URLSearchParams(url.search); - for (const object of objects) { - for (const key in object) { - if (Array.isArray(object[key])) { - searchParams.delete(key); - for (const item of object[key]) { - searchParams.append(key, item); - } - } - else { - searchParams.set(key, object[key]); - } - } - } - url.search = searchParams.toString(); -}; -/** - * - * @export - */ -export const serializeDataIfNeeded = function (value, requestOptions, configuration) { - const nonString = typeof value !== 'string'; - const needsSerialization = nonString && configuration && configuration.isJsonMime - ? configuration.isJsonMime(requestOptions.headers['Content-Type']) - : nonString; - return needsSerialization - ? JSON.stringify(value !== undefined ? value : {}) - : (value || ""); -}; -/** - * - * @export - */ -export const toPathString = function (url) { - return url.pathname + url.search + url.hash; -}; -/** - * - * @export - */ -export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) { - return (axios = globalAxios, basePath = BASE_PATH) => { - axiosRetry(globalAxios, configuration.retriesConfig); - const axiosRequestArgs = { ...axiosArgs.axiosOptions, url: (configuration?.basePath || basePath) + axiosArgs.url }; - return axios.request(axiosRequestArgs); - }; -}; -//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/plexjs/common.js.map b/dist/plexjs/common.js.map deleted file mode 100644 index 8c8aed3a..00000000 --- a/dist/plexjs/common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"common.js","sourceRoot":"","sources":["../../plexjs/common.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,aAAa,EAAe,MAAM,QAAQ,CAAC;AAEpD,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,aAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,WAAW,MAAW,EAAE,YAAoB,EAAE,aAA6B;IAC7G,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,EAAE;QACvC,MAAM,mBAAmB,GAAG,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU;YAClE,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC;YAC1C,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC;QACjC,MAAM,CAAC,YAAY,CAAC,GAAG,mBAAmB,CAAC;KAC9C;AACL,CAAC,CAAA;AAGD;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,GAAQ,EAAE,GAAG,OAAc;IAChE,MAAM,YAAY,GAAG,IAAI,e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G,CAAC,IAAI,CAAA;AAC/C,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,SAAsB,EAAE,WAA0B,EAAE,SAAiB,EAAE,aAA6B;IAC/I,OAAO,CAAoC,QAAuB,WAAW,EAAE,WAAmB,SAAS,EAAE,EAAE;QAC3G,UAAU,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;QACpD,MAAM,gBAAgB,GAAG,EAAC,GAAG,SAAS,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE,QAAQ,IAAI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,EAAC,CAAC;QACjH,OAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC;IACjD,CAAC,CAAC;AACN,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/plexjs/configuration.d.ts b/dist/plexjs/configuration.d.ts deleted file mode 100644 index cf6608ca..00000000 --- a/dist/plexjs/configuration.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { IAxiosRetryConfig } from "axios-retry"; -export interface ConfigurationParameters { - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - basePath?: string; -} -export declare class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath?: string; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions?: any; - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor?: new () => any; - /** - * axios retry configuration - * - * @type {IAxiosRetryConfig} - * @memberof Configuration - */ - retriesConfig?: IAxiosRetryConfig; - constructor(param?: ConfigurationParameters); - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - isJsonMime(mime: string): boolean; -} diff --git a/dist/plexjs/configuration.js b/dist/plexjs/configuration.js deleted file mode 100644 index 57c28918..00000000 --- a/dist/plexjs/configuration.js +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey; - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions; - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor; - /** - * axios retry configuration - * - * @type {IAxiosRetryConfig} - * @memberof Configuration - */ - retriesConfig; - constructor(param = {}) { - this.apiKey = param.apiKey; - this.basePath = param.basePath; - } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - isJsonMime(mime) { - const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); - return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); - } -} -//# sourceMappingURL=configuration.js.map \ No newline at end of file diff --git a/dist/plexjs/configuration.js.map b/dist/plexjs/configuration.js.map deleted file mode 100644 index 6c54f5ff..00000000 --- a/dist/plexjs/configuration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../plexjs/configuration.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAWH,MAAM,OAAO,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAA+F;IAErG;;;;;OAKG;IACH,QAAQ,CAAU;IAElB;;;;;OAKG;IACH,WAAW,CAAO;IAElB;;;;;;OAMG;IACH,YAAY,CAAiB;IAE7B;;;;;OAKG;IACH,aAAa,CAAoB;IAEjC,YAAY,QAAiC,EAAE;QAE3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAEnC,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/plexjs/index.d.ts b/dist/plexjs/index.d.ts deleted file mode 100644 index d28552db..00000000 --- a/dist/plexjs/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export * from "./api"; diff --git a/dist/plexjs/index.js b/dist/plexjs/index.js deleted file mode 100644 index d779ea94..00000000 --- a/dist/plexjs/index.js +++ /dev/null @@ -1,15 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export * from "./api"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/plexjs/index.js.map b/dist/plexjs/index.js.map deleted file mode 100644 index 834cf3fa..00000000 --- a/dist/plexjs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../plexjs/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/sdk-output/api.d.ts b/dist/sdk-output/api.d.ts deleted file mode 100644 index d25c020f..00000000 --- a/dist/sdk-output/api.d.ts +++ /dev/null @@ -1,2955 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { Configuration } from './configuration'; -import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { RequestArgs, BaseAPI } from './base'; -/** - * - * @export - * @interface GetPin200Response - */ -export interface GetPin200Response { - /** - * PinID for use with authentication - * @type {any} - * @memberof GetPin200Response - */ - 'id'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'code'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'product'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'trusted'?: any; - /** - * a link to a QR code hosted on plex.tv The QR code redirects to the relevant `plex.tv/link` authentication page Which then prompts the user for the 4 Digit Link Pin - * @type {any} - * @memberof GetPin200Response - */ - 'qr'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'clientIdentifier'?: any; - /** - * - * @type {GetPin200ResponseLocation} - * @memberof GetPin200Response - */ - 'location'?: GetPin200ResponseLocation; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'expiresIn'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'createdAt'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'expiresAt'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'authToken'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'newRegistration'?: any; -} -/** - * - * @export - * @interface GetPin200ResponseLocation - */ -export interface GetPin200ResponseLocation { - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'european_union_member'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'continent_code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'country'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'city'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'time_zone'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'postal_code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'in_privacy_restricted_country'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'subdivisions'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'coordinates'?: any; -} -/** - * - * @export - * @interface GetPin400Response - */ -export interface GetPin400Response { - /** - * - * @type {any} - * @memberof GetPin400Response - */ - 'errors'?: any; -} -/** - * - * @export - * @interface GetServerActivities200Response - */ -export interface GetServerActivities200Response { - /** - * - * @type {GetServerActivities200ResponseMediaContainer} - * @memberof GetServerActivities200Response - */ - 'MediaContainer'?: GetServerActivities200ResponseMediaContainer; -} -/** - * - * @export - * @interface GetServerActivities200ResponseMediaContainer - */ -export interface GetServerActivities200ResponseMediaContainer { - /** - * - * @type {any} - * @memberof GetServerActivities200ResponseMediaContainer - */ - 'size'?: any; - /** - * - * @type {any} - * @memberof GetServerActivities200ResponseMediaContainer - */ - 'Activity'?: any; -} -/** - * - * @export - * @interface GetServerCapabilities200Response - */ -export interface GetServerCapabilities200Response { - /** - * - * @type {GetServerCapabilities200ResponseMediaContainer} - * @memberof GetServerCapabilities200Response - */ - 'MediaContainer'?: GetServerCapabilities200ResponseMediaContainer; -} -/** - * - * @export - * @interface GetServerCapabilities200ResponseMediaContainer - */ -export interface GetServerCapabilities200ResponseMediaContainer { - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'size'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowCameraUpload'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowChannelAccess'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowMediaDeletion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowSharing'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowSync'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowTuners'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'backgroundProcessing'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'certificate'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'companionProxy'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'countryCode'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'diagnostics'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'eventStream'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'friendlyName'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'hubSearch'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'itemClusters'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'livetv'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'machineIdentifier'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'mediaProviders'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'multiuser'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'musicAnalysis'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlex'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexMappingState'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexSigninState'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexSubscription'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexUsername'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'offlineTranscode'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'ownerFeatures'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'photoAutoTag'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'platform'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'platformVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'pluginHost'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'pushNotifications'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'readOnlyLibraries'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'streamingBrainABRVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'streamingBrainVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'sync'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderActiveVideoSessions'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderAudio'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderLyrics'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderPhoto'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderSubtitles'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideo'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoBitrates'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoQualities'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoResolutions'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'updatedAt'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'updater'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'version'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'voiceSearch'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'Directory'?: any; -} -/** - * - * @export - * @interface GetServerCapabilities401Response - */ -export interface GetServerCapabilities401Response { - /** - * - * @type {any} - * @memberof GetServerCapabilities401Response - */ - 'errors'?: any; -} -/** - * ActivitiesApi - axios parameter creator - * @export - */ -export declare const ActivitiesApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities: (activityUUID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * ActivitiesApi - functional programming interface - * @export - */ -export declare const ActivitiesApiFp: (configuration?: Configuration) => { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities(activityUUID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * ActivitiesApi - factory interface - * @export - */ -export declare const ActivitiesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities(activityUUID: any, axiosOptions?: any): AxiosPromise; - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities(axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for cancelServerActivities operation in ActivitiesApi. - * @export - * @interface ActivitiesApiCancelServerActivitiesRequest - */ -export interface ActivitiesApiCancelServerActivitiesRequest { - /** - * The UUID of the activity to cancel. - * @type {any} - * @memberof ActivitiesApiCancelServerActivities - */ - readonly activityUUID: any; -} -/** - * ActivitiesApi - object-oriented interface - * @export - * @class ActivitiesApi - * @extends {BaseAPI} - */ -export declare class ActivitiesApi extends BaseAPI { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {ActivitiesApiCancelServerActivitiesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - cancelServerActivities(requestParameters: ActivitiesApiCancelServerActivitiesRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - getServerActivities(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * AuthenticationApi - axios parameter creator - * @export - */ -export declare const AuthenticationApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin: (strong?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken: (pinID: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * AuthenticationApi - functional programming interface - * @export - */ -export declare const AuthenticationApiFp: (configuration?: Configuration) => { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin(strong?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken(pinID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * AuthenticationApi - factory interface - * @export - */ -export declare const AuthenticationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin(strong?: any, axiosOptions?: any): AxiosPromise; - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken(pinID: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getPin operation in AuthenticationApi. - * @export - * @interface AuthenticationApiGetPinRequest - */ -export interface AuthenticationApiGetPinRequest { - /** - * Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @type {any} - * @memberof AuthenticationApiGetPin - */ - readonly strong?: any; -} -/** - * Request parameters for getToken operation in AuthenticationApi. - * @export - * @interface AuthenticationApiGetTokenRequest - */ -export interface AuthenticationApiGetTokenRequest { - /** - * The PinID to retrieve an access token for - * @type {any} - * @memberof AuthenticationApiGetToken - */ - readonly pinID: any; -} -/** - * AuthenticationApi - object-oriented interface - * @export - * @class AuthenticationApi - * @extends {BaseAPI} - */ -export declare class AuthenticationApi extends BaseAPI { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {AuthenticationApiGetPinRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - getPin(requestParameters?: AuthenticationApiGetPinRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {AuthenticationApiGetTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - getToken(requestParameters: AuthenticationApiGetTokenRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * ButlerApi - axios parameter creator - * @export - */ -export declare const ButlerApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask: (taskName: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask: (taskName: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * ButlerApi - functional programming interface - * @export - */ -export declare const ButlerApiFp: (configuration?: Configuration) => { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask(taskName: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask(taskName: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * ButlerApi - factory interface - * @export - */ -export declare const ButlerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks(axiosOptions?: any): AxiosPromise; - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask(taskName: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks(axiosOptions?: any): AxiosPromise; - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask(taskName: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for startTask operation in ButlerApi. - * @export - * @interface ButlerApiStartTaskRequest - */ -export interface ButlerApiStartTaskRequest { - /** - * the name of the task to be started. - * @type {any} - * @memberof ButlerApiStartTask - */ - readonly taskName: any; -} -/** - * Request parameters for stopTask operation in ButlerApi. - * @export - * @interface ButlerApiStopTaskRequest - */ -export interface ButlerApiStopTaskRequest { - /** - * The name of the task to be started. - * @type {any} - * @memberof ButlerApiStopTask - */ - readonly taskName: any; -} -/** - * ButlerApi - object-oriented interface - * @export - * @class ButlerApi - * @extends {BaseAPI} - */ -export declare class ButlerApi extends BaseAPI { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - startAllTasks(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {ButlerApiStartTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - startTask(requestParameters: ButlerApiStartTaskRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - stopAllTasks(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {ButlerApiStopTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - stopTask(requestParameters: ButlerApiStopTaskRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * DevicesApi - axios parameter creator - * @export - */ -export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * DevicesApi - functional programming interface - * @export - */ -export declare const DevicesApiFp: (configuration?: Configuration) => { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * DevicesApi - factory interface - * @export - */ -export declare const DevicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients(axiosOptions?: any): AxiosPromise; - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices(axiosOptions?: any): AxiosPromise; -}; -/** - * DevicesApi - object-oriented interface - * @export - * @class DevicesApi - * @extends {BaseAPI} - */ -export declare class DevicesApi extends BaseAPI { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - getAvailableClients(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - getDevices(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * HashesApi - axios parameter creator - * @export - */ -export declare const HashesApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash: (url: any, type?: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * HashesApi - functional programming interface - * @export - */ -export declare const HashesApiFp: (configuration?: Configuration) => { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash(url: any, type?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * HashesApi - factory interface - * @export - */ -export declare const HashesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash(url: any, type?: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getFileHash operation in HashesApi. - * @export - * @interface HashesApiGetFileHashRequest - */ -export interface HashesApiGetFileHashRequest { - /** - * This is the path to the local file, must be prefixed by `file://` - * @type {any} - * @memberof HashesApiGetFileHash - */ - readonly url: any; - /** - * Item type - * @type {any} - * @memberof HashesApiGetFileHash - */ - readonly type?: any; -} -/** - * HashesApi - object-oriented interface - * @export - * @class HashesApi - * @extends {BaseAPI} - */ -export declare class HashesApi extends BaseAPI { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {HashesApiGetFileHashRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HashesApi - */ - getFileHash(requestParameters: HashesApiGetFileHashRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * HubsApi - axios parameter creator - * @export - */ -export declare const HubsApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs: (count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs: (sectionId: any, count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * HubsApi - functional programming interface - * @export - */ -export declare const HubsApiFp: (configuration?: Configuration) => { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs(count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs(sectionId: any, count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * HubsApi - factory interface - * @export - */ -export declare const HubsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs(count?: any, onlyTransient?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs(sectionId: any, count?: any, onlyTransient?: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getGlobalHubs operation in HubsApi. - * @export - * @interface HubsApiGetGlobalHubsRequest - */ -export interface HubsApiGetGlobalHubsRequest { - /** - * The number of items to return with each hub. - * @type {any} - * @memberof HubsApiGetGlobalHubs - */ - readonly count?: any; - /** - * Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @type {any} - * @memberof HubsApiGetGlobalHubs - */ - readonly onlyTransient?: any; -} -/** - * Request parameters for getLibraryHubs operation in HubsApi. - * @export - * @interface HubsApiGetLibraryHubsRequest - */ -export interface HubsApiGetLibraryHubsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly sectionId: any; - /** - * The number of items to return with each hub. - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly count?: any; - /** - * Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly onlyTransient?: any; -} -/** - * HubsApi - object-oriented interface - * @export - * @class HubsApi - * @extends {BaseAPI} - */ -export declare class HubsApi extends BaseAPI { - /** - * - * @summary Get Global Hubs - * @param {HubsApiGetGlobalHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - getGlobalHubs(requestParameters?: HubsApiGetGlobalHubsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {HubsApiGetLibraryHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - getLibraryHubs(requestParameters: HubsApiGetLibraryHubsRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * LibraryApi - axios parameter creator - * @export - */ -export declare const LibraryApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems: (sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems: (sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails: (sectionId: any, includeDetails?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems: (sectionId: any, type?: any, filter?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary: (sectionId: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * LibraryApi - functional programming interface - * @export - */ -export declare const LibraryApiFp: (configuration?: Configuration) => { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails(sectionId: any, includeDetails?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems(sectionId: any, type?: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary(sectionId: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * LibraryApi - factory interface - * @export - */ -export declare const LibraryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: any): AxiosPromise; - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries(axiosOptions?: any): AxiosPromise; - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails(sectionId: any, includeDetails?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems(sectionId: any, type?: any, filter?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck(axiosOptions?: any): AxiosPromise; - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary(sectionId: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getCommonLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetCommonLibraryItemsRequest - */ -export interface LibraryApiGetCommonLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly sectionId: any; - /** - * item type - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly type: any; - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly filter?: any; -} -/** - * Request parameters for getLatestLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetLatestLibraryItemsRequest - */ -export interface LibraryApiGetLatestLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly sectionId: any; - /** - * item type - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly type: any; - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly filter?: any; -} -/** - * Request parameters for getLibraryDetails operation in LibraryApi. - * @export - * @interface LibraryApiGetLibraryDetailsRequest - */ -export interface LibraryApiGetLibraryDetailsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLibraryDetails - */ - readonly sectionId: any; - /** - * Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @type {any} - * @memberof LibraryApiGetLibraryDetails - */ - readonly includeDetails?: any; -} -/** - * Request parameters for getLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetLibraryItemsRequest - */ -export interface LibraryApiGetLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly sectionId: any; - /** - * item type - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly type?: any; - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly filter?: any; -} -/** - * Request parameters for refreshLibrary operation in LibraryApi. - * @export - * @interface LibraryApiRefreshLibraryRequest - */ -export interface LibraryApiRefreshLibraryRequest { - /** - * the Id of the library to refresh - * @type {any} - * @memberof LibraryApiRefreshLibrary - */ - readonly sectionId: any; -} -/** - * LibraryApi - object-oriented interface - * @export - * @class LibraryApi - * @extends {BaseAPI} - */ -export declare class LibraryApi extends BaseAPI { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {LibraryApiGetCommonLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getCommonLibraryItems(requestParameters: LibraryApiGetCommonLibraryItemsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {LibraryApiGetLatestLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLatestLibraryItems(requestParameters: LibraryApiGetLatestLibraryItemsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraries(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {LibraryApiGetLibraryDetailsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraryDetails(requestParameters: LibraryApiGetLibraryDetailsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {LibraryApiGetLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraryItems(requestParameters: LibraryApiGetLibraryItemsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getOnDeck(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {LibraryApiRefreshLibraryRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - refreshLibrary(requestParameters: LibraryApiRefreshLibraryRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * LogApi - axios parameter creator - * @export - */ -export declare const LogApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine: (level: any, message: any, source: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * LogApi - functional programming interface - * @export - */ -export declare const LogApiFp: (configuration?: Configuration) => { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine(level: any, message: any, source: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * LogApi - factory interface - * @export - */ -export declare const LogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail(axiosOptions?: any): AxiosPromise; - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine(level: any, message: any, source: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine(axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for logLine operation in LogApi. - * @export - * @interface LogApiLogLineRequest - */ -export interface LogApiLogLineRequest { - /** - * An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @type {any} - * @memberof LogApiLogLine - */ - readonly level: any; - /** - * The text of the message to write to the log. - * @type {any} - * @memberof LogApiLogLine - */ - readonly message: any; - /** - * a string indicating the source of the message. - * @type {any} - * @memberof LogApiLogLine - */ - readonly source: any; -} -/** - * LogApi - object-oriented interface - * @export - * @class LogApi - * @extends {BaseAPI} - */ -export declare class LogApi extends BaseAPI { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - enablePaperTrail(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {LogApiLogLineRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - logLine(requestParameters: LogApiLogLineRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - logMultiLine(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * PlaylistsApi - axios parameter creator - * @export - */ -export declare const PlaylistsApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents: (playlistID: any, uri: any, playQueueID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents: (playlistID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist: (title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist: (playlistID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist: (playlistID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents: (playlistID: any, type: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists: (playlistType?: any, smart?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist: (playlistID: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist: (path: any, force: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * PlaylistsApi - functional programming interface - * @export - */ -export declare const PlaylistsApiFp: (configuration?: Configuration) => { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents(playlistID: any, uri: any, playQueueID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist(title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents(playlistID: any, type: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists(playlistType?: any, smart?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist(path: any, force: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * PlaylistsApi - factory interface - * @export - */ -export declare const PlaylistsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents(playlistID: any, uri: any, playQueueID: any, axiosOptions?: any): AxiosPromise; - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents(playlistID: any, axiosOptions?: any): AxiosPromise; - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist(title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist(playlistID: any, axiosOptions?: any): AxiosPromise; - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist(playlistID: any, axiosOptions?: any): AxiosPromise; - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents(playlistID: any, type: any, axiosOptions?: any): AxiosPromise; - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists(playlistType?: any, smart?: any, axiosOptions?: any): AxiosPromise; - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist(playlistID: any, axiosOptions?: any): AxiosPromise; - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist(path: any, force: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for addPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiAddPlaylistContentsRequest - */ -export interface PlaylistsApiAddPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly playlistID: any; - /** - * the content URI for the playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly uri: any; - /** - * the play queue to add to a playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly playQueueID: any; -} -/** - * Request parameters for clearPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiClearPlaylistContentsRequest - */ -export interface PlaylistsApiClearPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiClearPlaylistContents - */ - readonly playlistID: any; -} -/** - * Request parameters for createPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiCreatePlaylistRequest - */ -export interface PlaylistsApiCreatePlaylistRequest { - /** - * name of the playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly title: any; - /** - * type of playlist to create - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly type: any; - /** - * whether the playlist is smart or not - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly smart: any; - /** - * the content URI for the playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly uri?: any; - /** - * the play queue to copy to a playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly playQueueID?: any; -} -/** - * Request parameters for deletePlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiDeletePlaylistRequest - */ -export interface PlaylistsApiDeletePlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiDeletePlaylist - */ - readonly playlistID: any; -} -/** - * Request parameters for getPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistRequest - */ -export interface PlaylistsApiGetPlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiGetPlaylist - */ - readonly playlistID: any; -} -/** - * Request parameters for getPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistContentsRequest - */ -export interface PlaylistsApiGetPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiGetPlaylistContents - */ - readonly playlistID: any; - /** - * the metadata type of the item to return - * @type {any} - * @memberof PlaylistsApiGetPlaylistContents - */ - readonly type: any; -} -/** - * Request parameters for getPlaylists operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistsRequest - */ -export interface PlaylistsApiGetPlaylistsRequest { - /** - * limit to a type of playlist. - * @type {any} - * @memberof PlaylistsApiGetPlaylists - */ - readonly playlistType?: any; - /** - * type of playlists to return (default is all). - * @type {any} - * @memberof PlaylistsApiGetPlaylists - */ - readonly smart?: any; -} -/** - * Request parameters for updatePlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiUpdatePlaylistRequest - */ -export interface PlaylistsApiUpdatePlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiUpdatePlaylist - */ - readonly playlistID: any; -} -/** - * Request parameters for uploadPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiUploadPlaylistRequest - */ -export interface PlaylistsApiUploadPlaylistRequest { - /** - * absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @type {any} - * @memberof PlaylistsApiUploadPlaylist - */ - readonly path: any; - /** - * force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @type {any} - * @memberof PlaylistsApiUploadPlaylist - */ - readonly force: any; -} -/** - * PlaylistsApi - object-oriented interface - * @export - * @class PlaylistsApi - * @extends {BaseAPI} - */ -export declare class PlaylistsApi extends BaseAPI { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {PlaylistsApiAddPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - addPlaylistContents(requestParameters: PlaylistsApiAddPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {PlaylistsApiClearPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - clearPlaylistContents(requestParameters: PlaylistsApiClearPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {PlaylistsApiCreatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - createPlaylist(requestParameters: PlaylistsApiCreatePlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {PlaylistsApiDeletePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - deletePlaylist(requestParameters: PlaylistsApiDeletePlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylist(requestParameters: PlaylistsApiGetPlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {PlaylistsApiGetPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylistContents(requestParameters: PlaylistsApiGetPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * - * @summary Get All Playlists - * @param {PlaylistsApiGetPlaylistsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylists(requestParameters?: PlaylistsApiGetPlaylistsRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {PlaylistsApiUpdatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - updatePlaylist(requestParameters: PlaylistsApiUpdatePlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {PlaylistsApiUploadPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - uploadPlaylist(requestParameters: PlaylistsApiUploadPlaylistRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * SearchApi - axios parameter creator - * @export - */ -export declare const SearchApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch: (query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch: (query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * SearchApi - functional programming interface - * @export - */ -export declare const SearchApiFp: (configuration?: Configuration) => { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * SearchApi - factory interface - * @export - */ -export declare const SearchApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for performSearch operation in SearchApi. - * @export - * @interface SearchApiPerformSearchRequest - */ -export interface SearchApiPerformSearchRequest { - /** - * The query term - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly query: any; - /** - * This gives context to the search, and can result in re-ordering of search result hubs - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly sectionId?: any; - /** - * The number of items to return per hub - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly limit?: any; -} -/** - * Request parameters for performVoiceSearch operation in SearchApi. - * @export - * @interface SearchApiPerformVoiceSearchRequest - */ -export interface SearchApiPerformVoiceSearchRequest { - /** - * The query term - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly query: any; - /** - * This gives context to the search, and can result in re-ordering of search result hubs - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly sectionId?: any; - /** - * The number of items to return per hub - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly limit?: any; -} -/** - * SearchApi - object-oriented interface - * @export - * @class SearchApi - * @extends {BaseAPI} - */ -export declare class SearchApi extends BaseAPI { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {SearchApiPerformSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - performSearch(requestParameters: SearchApiPerformSearchRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {SearchApiPerformVoiceSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - performVoiceSearch(requestParameters: SearchApiPerformVoiceSearchRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * SecurityApi - axios parameter creator - * @export - */ -export declare const SecurityApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation: (source: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken: (type: any, scope: any, axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * SecurityApi - functional programming interface - * @export - */ -export declare const SecurityApiFp: (configuration?: Configuration) => { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation(source: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken(type: any, scope: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * SecurityApi - factory interface - * @export - */ -export declare const SecurityApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation(source: any, axiosOptions?: any): AxiosPromise; - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken(type: any, scope: any, axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for getSourceConnectionInformation operation in SecurityApi. - * @export - * @interface SecurityApiGetSourceConnectionInformationRequest - */ -export interface SecurityApiGetSourceConnectionInformationRequest { - /** - * The source identifier with an included prefix. - * @type {any} - * @memberof SecurityApiGetSourceConnectionInformation - */ - readonly source: any; -} -/** - * Request parameters for getTransientToken operation in SecurityApi. - * @export - * @interface SecurityApiGetTransientTokenRequest - */ -export interface SecurityApiGetTransientTokenRequest { - /** - * `delegation` - This is the only supported `type` parameter. - * @type {any} - * @memberof SecurityApiGetTransientToken - */ - readonly type: any; - /** - * `all` - This is the only supported `scope` parameter. - * @type {any} - * @memberof SecurityApiGetTransientToken - */ - readonly scope: any; -} -/** - * SecurityApi - object-oriented interface - * @export - * @class SecurityApi - * @extends {BaseAPI} - */ -export declare class SecurityApi extends BaseAPI { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {SecurityApiGetSourceConnectionInformationRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - getSourceConnectionInformation(requestParameters: SecurityApiGetSourceConnectionInformationRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {SecurityApiGetTransientTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - getTransientToken(requestParameters: SecurityApiGetTransientTokenRequest, axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * ServerApi - axios parameter creator - * @export - */ -export declare const ServerApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * ServerApi - functional programming interface - * @export - */ -export declare const ServerApiFp: (configuration?: Configuration) => { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * ServerApi - factory interface - * @export - */ -export declare const ServerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities(axiosOptions?: any): AxiosPromise; - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences(axiosOptions?: any): AxiosPromise; -}; -/** - * ServerApi - object-oriented interface - * @export - * @class ServerApi - * @extends {BaseAPI} - */ -export declare class ServerApi extends BaseAPI { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - getServerCapabilities(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - getServerPreferences(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * SessionsApi - axios parameter creator - * @export - */ -export declare const SessionsApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory: (axiosOptions?: AxiosRequestConfig) => Promise; - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * SessionsApi - functional programming interface - * @export - */ -export declare const SessionsApiFp: (configuration?: Configuration) => { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * SessionsApi - factory interface - * @export - */ -export declare const SessionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory(axiosOptions?: any): AxiosPromise; - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions(axiosOptions?: any): AxiosPromise; -}; -/** - * SessionsApi - object-oriented interface - * @export - * @class SessionsApi - * @extends {BaseAPI} - */ -export declare class SessionsApi extends BaseAPI { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - getSessionHistory(axiosOptions?: AxiosRequestConfig): Promise>; - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - getSessions(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * UpdaterApi - axios parameter creator - * @export - */ -export declare const UpdaterApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates: (tonight?: any, skip?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates: (download?: any, axiosOptions?: AxiosRequestConfig) => Promise; - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * UpdaterApi - functional programming interface - * @export - */ -export declare const UpdaterApiFp: (configuration?: Configuration) => { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates(tonight?: any, skip?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates(download?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * UpdaterApi - factory interface - * @export - */ -export declare const UpdaterApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates(tonight?: any, skip?: any, axiosOptions?: any): AxiosPromise; - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates(download?: any, axiosOptions?: any): AxiosPromise; - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus(axiosOptions?: any): AxiosPromise; -}; -/** - * Request parameters for applyUpdates operation in UpdaterApi. - * @export - * @interface UpdaterApiApplyUpdatesRequest - */ -export interface UpdaterApiApplyUpdatesRequest { - /** - * Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @type {any} - * @memberof UpdaterApiApplyUpdates - */ - readonly tonight?: any; - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @type {any} - * @memberof UpdaterApiApplyUpdates - */ - readonly skip?: any; -} -/** - * Request parameters for checkForUpdates operation in UpdaterApi. - * @export - * @interface UpdaterApiCheckForUpdatesRequest - */ -export interface UpdaterApiCheckForUpdatesRequest { - /** - * Indicate that you want to start download any updates found. - * @type {any} - * @memberof UpdaterApiCheckForUpdates - */ - readonly download?: any; -} -/** - * UpdaterApi - object-oriented interface - * @export - * @class UpdaterApi - * @extends {BaseAPI} - */ -export declare class UpdaterApi extends BaseAPI { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {UpdaterApiApplyUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - applyUpdates(requestParameters?: UpdaterApiApplyUpdatesRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Checking for updates - * @summary Checking for updates - * @param {UpdaterApiCheckForUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - checkForUpdates(requestParameters?: UpdaterApiCheckForUpdatesRequest, axiosOptions?: AxiosRequestConfig): Promise>; - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - queryUpdateStatus(axiosOptions?: AxiosRequestConfig): Promise>; -} -/** - * UserApi - axios parameter creator - * @export - */ -export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails: (axiosOptions?: AxiosRequestConfig) => Promise; -}; -/** - * UserApi - functional programming interface - * @export - */ -export declare const UserApiFp: (configuration?: Configuration) => { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; -}; -/** - * UserApi - factory interface - * @export - */ -export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails(axiosOptions?: any): AxiosPromise; -}; -/** - * UserApi - object-oriented interface - * @export - * @class UserApi - * @extends {BaseAPI} - */ -export declare class UserApi extends BaseAPI { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UserApi - */ - getUserDetails(axiosOptions?: AxiosRequestConfig): Promise>; -} diff --git a/dist/sdk-output/api.js b/dist/sdk-output/api.js deleted file mode 100644 index 35ac4c1d..00000000 --- a/dist/sdk-output/api.js +++ /dev/null @@ -1,3659 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import globalAxios from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from './common'; -// @ts-ignore -import { BASE_PATH, BaseAPI } from './base'; -/** - * ActivitiesApi - axios parameter creator - * @export - */ -export const ActivitiesApiAxiosParamCreator = function (configuration) { - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities: async (activityUUID, axiosOptions = {}) => { - // verify required parameter 'activityUUID' is not null or undefined - assertParamExists('cancelServerActivities', 'activityUUID', activityUUID); - const localVarPath = `/activities/{activityUUID}` - .replace(`{${"activityUUID"}}`, encodeURIComponent(String(activityUUID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities: async (axiosOptions = {}) => { - const localVarPath = `/activities`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * ActivitiesApi - functional programming interface - * @export - */ -export const ActivitiesApiFp = function (configuration) { - const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration); - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async cancelServerActivities(activityUUID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.cancelServerActivities(activityUUID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerActivities(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerActivities(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * ActivitiesApi - factory interface - * @export - */ -export const ActivitiesApiFactory = function (configuration, basePath, axios) { - const localVarFp = ActivitiesApiFp(configuration); - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities(activityUUID, axiosOptions) { - return localVarFp.cancelServerActivities(activityUUID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities(axiosOptions) { - return localVarFp.getServerActivities(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * ActivitiesApi - object-oriented interface - * @export - * @class ActivitiesApi - * @extends {BaseAPI} - */ -export class ActivitiesApi extends BaseAPI { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {ActivitiesApiCancelServerActivitiesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - cancelServerActivities(requestParameters, axiosOptions) { - return ActivitiesApiFp(this.configuration).cancelServerActivities(requestParameters.activityUUID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - getServerActivities(axiosOptions) { - return ActivitiesApiFp(this.configuration).getServerActivities(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * AuthenticationApi - axios parameter creator - * @export - */ -export const AuthenticationApiAxiosParamCreator = function (configuration) { - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin: async (strong, axiosOptions = {}) => { - const localVarPath = `/pins`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - if (strong !== undefined) { - localVarQueryParameter['strong'] = strong; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken: async (pinID, axiosOptions = {}) => { - // verify required parameter 'pinID' is not null or undefined - assertParamExists('getToken', 'pinID', pinID); - const localVarPath = `/pins/{pinID}` - .replace(`{${"pinID"}}`, encodeURIComponent(String(pinID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * AuthenticationApi - functional programming interface - * @export - */ -export const AuthenticationApiFp = function (configuration) { - const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration); - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPin(strong, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPin(strong, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getToken(pinID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getToken(pinID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * AuthenticationApi - factory interface - * @export - */ -export const AuthenticationApiFactory = function (configuration, basePath, axios) { - const localVarFp = AuthenticationApiFp(configuration); - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin(strong, axiosOptions) { - return localVarFp.getPin(strong, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken(pinID, axiosOptions) { - return localVarFp.getToken(pinID, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * AuthenticationApi - object-oriented interface - * @export - * @class AuthenticationApi - * @extends {BaseAPI} - */ -export class AuthenticationApi extends BaseAPI { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {AuthenticationApiGetPinRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - getPin(requestParameters = {}, axiosOptions) { - return AuthenticationApiFp(this.configuration).getPin(requestParameters.strong, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {AuthenticationApiGetTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - getToken(requestParameters, axiosOptions) { - return AuthenticationApiFp(this.configuration).getToken(requestParameters.pinID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * ButlerApi - axios parameter creator - * @export - */ -export const ButlerApiAxiosParamCreator = function (configuration) { - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks: async (axiosOptions = {}) => { - const localVarPath = `/butler`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask: async (taskName, axiosOptions = {}) => { - // verify required parameter 'taskName' is not null or undefined - assertParamExists('startTask', 'taskName', taskName); - const localVarPath = `/butler/{taskName}` - .replace(`{${"taskName"}}`, encodeURIComponent(String(taskName))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks: async (axiosOptions = {}) => { - const localVarPath = `/butler`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask: async (taskName, axiosOptions = {}) => { - // verify required parameter 'taskName' is not null or undefined - assertParamExists('stopTask', 'taskName', taskName); - const localVarPath = `/butler/{taskName}` - .replace(`{${"taskName"}}`, encodeURIComponent(String(taskName))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * ButlerApi - functional programming interface - * @export - */ -export const ButlerApiFp = function (configuration) { - const localVarAxiosParamCreator = ButlerApiAxiosParamCreator(configuration); - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async startAllTasks(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.startAllTasks(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async startTask(taskName, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.startTask(taskName, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async stopAllTasks(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.stopAllTasks(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async stopTask(taskName, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.stopTask(taskName, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * ButlerApi - factory interface - * @export - */ -export const ButlerApiFactory = function (configuration, basePath, axios) { - const localVarFp = ButlerApiFp(configuration); - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks(axiosOptions) { - return localVarFp.startAllTasks(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask(taskName, axiosOptions) { - return localVarFp.startTask(taskName, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks(axiosOptions) { - return localVarFp.stopAllTasks(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask(taskName, axiosOptions) { - return localVarFp.stopTask(taskName, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * ButlerApi - object-oriented interface - * @export - * @class ButlerApi - * @extends {BaseAPI} - */ -export class ButlerApi extends BaseAPI { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - startAllTasks(axiosOptions) { - return ButlerApiFp(this.configuration).startAllTasks(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {ButlerApiStartTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - startTask(requestParameters, axiosOptions) { - return ButlerApiFp(this.configuration).startTask(requestParameters.taskName, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - stopAllTasks(axiosOptions) { - return ButlerApiFp(this.configuration).stopAllTasks(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {ButlerApiStopTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - stopTask(requestParameters, axiosOptions) { - return ButlerApiFp(this.configuration).stopTask(requestParameters.taskName, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * DevicesApi - axios parameter creator - * @export - */ -export const DevicesApiAxiosParamCreator = function (configuration) { - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients: async (axiosOptions = {}) => { - const localVarPath = `/clients`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices: async (axiosOptions = {}) => { - const localVarPath = `/resources`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * DevicesApi - functional programming interface - * @export - */ -export const DevicesApiFp = function (configuration) { - const localVarAxiosParamCreator = DevicesApiAxiosParamCreator(configuration); - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getAvailableClients(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableClients(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getDevices(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDevices(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * DevicesApi - factory interface - * @export - */ -export const DevicesApiFactory = function (configuration, basePath, axios) { - const localVarFp = DevicesApiFp(configuration); - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients(axiosOptions) { - return localVarFp.getAvailableClients(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices(axiosOptions) { - return localVarFp.getDevices(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * DevicesApi - object-oriented interface - * @export - * @class DevicesApi - * @extends {BaseAPI} - */ -export class DevicesApi extends BaseAPI { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - getAvailableClients(axiosOptions) { - return DevicesApiFp(this.configuration).getAvailableClients(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - getDevices(axiosOptions) { - return DevicesApiFp(this.configuration).getDevices(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * HashesApi - axios parameter creator - * @export - */ -export const HashesApiAxiosParamCreator = function (configuration) { - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash: async (url, type, axiosOptions = {}) => { - // verify required parameter 'url' is not null or undefined - assertParamExists('getFileHash', 'url', url); - const localVarPath = `/library/hashes`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (url !== undefined) { - localVarQueryParameter['url'] = url; - } - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * HashesApi - functional programming interface - * @export - */ -export const HashesApiFp = function (configuration) { - const localVarAxiosParamCreator = HashesApiAxiosParamCreator(configuration); - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getFileHash(url, type, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getFileHash(url, type, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * HashesApi - factory interface - * @export - */ -export const HashesApiFactory = function (configuration, basePath, axios) { - const localVarFp = HashesApiFp(configuration); - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash(url, type, axiosOptions) { - return localVarFp.getFileHash(url, type, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * HashesApi - object-oriented interface - * @export - * @class HashesApi - * @extends {BaseAPI} - */ -export class HashesApi extends BaseAPI { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {HashesApiGetFileHashRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HashesApi - */ - getFileHash(requestParameters, axiosOptions) { - return HashesApiFp(this.configuration).getFileHash(requestParameters.url, requestParameters.type, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * HubsApi - axios parameter creator - * @export - */ -export const HubsApiAxiosParamCreator = function (configuration) { - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs: async (count, onlyTransient, axiosOptions = {}) => { - const localVarPath = `/hubs`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (count !== undefined) { - localVarQueryParameter['count'] = count; - } - if (onlyTransient !== undefined) { - localVarQueryParameter['onlyTransient'] = onlyTransient; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs: async (sectionId, count, onlyTransient, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryHubs', 'sectionId', sectionId); - const localVarPath = `/hubs/sections/{sectionId}` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (count !== undefined) { - localVarQueryParameter['count'] = count; - } - if (onlyTransient !== undefined) { - localVarQueryParameter['onlyTransient'] = onlyTransient; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * HubsApi - functional programming interface - * @export - */ -export const HubsApiFp = function (configuration) { - const localVarAxiosParamCreator = HubsApiAxiosParamCreator(configuration); - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getGlobalHubs(count, onlyTransient, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalHubs(count, onlyTransient, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryHubs(sectionId, count, onlyTransient, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryHubs(sectionId, count, onlyTransient, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * HubsApi - factory interface - * @export - */ -export const HubsApiFactory = function (configuration, basePath, axios) { - const localVarFp = HubsApiFp(configuration); - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs(count, onlyTransient, axiosOptions) { - return localVarFp.getGlobalHubs(count, onlyTransient, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs(sectionId, count, onlyTransient, axiosOptions) { - return localVarFp.getLibraryHubs(sectionId, count, onlyTransient, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * HubsApi - object-oriented interface - * @export - * @class HubsApi - * @extends {BaseAPI} - */ -export class HubsApi extends BaseAPI { - /** - * - * @summary Get Global Hubs - * @param {HubsApiGetGlobalHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - getGlobalHubs(requestParameters = {}, axiosOptions) { - return HubsApiFp(this.configuration).getGlobalHubs(requestParameters.count, requestParameters.onlyTransient, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {HubsApiGetLibraryHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - getLibraryHubs(requestParameters, axiosOptions) { - return HubsApiFp(this.configuration).getLibraryHubs(requestParameters.sectionId, requestParameters.count, requestParameters.onlyTransient, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * LibraryApi - axios parameter creator - * @export - */ -export const LibraryApiAxiosParamCreator = function (configuration) { - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems: async (sectionId, type, filter, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getCommonLibraryItems', 'sectionId', sectionId); - // verify required parameter 'type' is not null or undefined - assertParamExists('getCommonLibraryItems', 'type', type); - const localVarPath = `/library/sections/{sectionId}/common` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems: async (sectionId, type, filter, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLatestLibraryItems', 'sectionId', sectionId); - // verify required parameter 'type' is not null or undefined - assertParamExists('getLatestLibraryItems', 'type', type); - const localVarPath = `/library/sections/{sectionId}/latest` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries: async (axiosOptions = {}) => { - const localVarPath = `/library/sections`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails: async (sectionId, includeDetails, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryDetails', 'sectionId', sectionId); - const localVarPath = `/library/sections/{sectionId}` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (includeDetails !== undefined) { - localVarQueryParameter['includeDetails'] = includeDetails; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems: async (sectionId, type, filter, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryItems', 'sectionId', sectionId); - const localVarPath = `/library/sections/{sectionId}/all` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck: async (axiosOptions = {}) => { - const localVarPath = `/library/onDeck`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary: async (sectionId, axiosOptions = {}) => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('refreshLibrary', 'sectionId', sectionId); - const localVarPath = `/library/sections/{sectionId}/refresh` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * LibraryApi - functional programming interface - * @export - */ -export const LibraryApiFp = function (configuration) { - const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration); - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getCommonLibraryItems(sectionId, type, filter, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCommonLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLatestLibraryItems(sectionId, type, filter, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraries(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryDetails(sectionId, includeDetails, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryDetails(sectionId, includeDetails, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryItems(sectionId, type, filter, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getOnDeck(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOnDeck(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async refreshLibrary(sectionId, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.refreshLibrary(sectionId, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * LibraryApi - factory interface - * @export - */ -export const LibraryApiFactory = function (configuration, basePath, axios) { - const localVarFp = LibraryApiFp(configuration); - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems(sectionId, type, filter, axiosOptions) { - return localVarFp.getCommonLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems(sectionId, type, filter, axiosOptions) { - return localVarFp.getLatestLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries(axiosOptions) { - return localVarFp.getLibraries(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails(sectionId, includeDetails, axiosOptions) { - return localVarFp.getLibraryDetails(sectionId, includeDetails, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems(sectionId, type, filter, axiosOptions) { - return localVarFp.getLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck(axiosOptions) { - return localVarFp.getOnDeck(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary(sectionId, axiosOptions) { - return localVarFp.refreshLibrary(sectionId, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * LibraryApi - object-oriented interface - * @export - * @class LibraryApi - * @extends {BaseAPI} - */ -export class LibraryApi extends BaseAPI { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {LibraryApiGetCommonLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getCommonLibraryItems(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).getCommonLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {LibraryApiGetLatestLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLatestLibraryItems(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).getLatestLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraries(axiosOptions) { - return LibraryApiFp(this.configuration).getLibraries(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {LibraryApiGetLibraryDetailsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraryDetails(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).getLibraryDetails(requestParameters.sectionId, requestParameters.includeDetails, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {LibraryApiGetLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getLibraryItems(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).getLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - getOnDeck(axiosOptions) { - return LibraryApiFp(this.configuration).getOnDeck(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {LibraryApiRefreshLibraryRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - refreshLibrary(requestParameters, axiosOptions) { - return LibraryApiFp(this.configuration).refreshLibrary(requestParameters.sectionId, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * LogApi - axios parameter creator - * @export - */ -export const LogApiAxiosParamCreator = function (configuration) { - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail: async (axiosOptions = {}) => { - const localVarPath = `/log/networked`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine: async (level, message, source, axiosOptions = {}) => { - // verify required parameter 'level' is not null or undefined - assertParamExists('logLine', 'level', level); - // verify required parameter 'message' is not null or undefined - assertParamExists('logLine', 'message', message); - // verify required parameter 'source' is not null or undefined - assertParamExists('logLine', 'source', source); - const localVarPath = `/log`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (level !== undefined) { - localVarQueryParameter['level'] = level; - } - if (message !== undefined) { - localVarQueryParameter['message'] = message; - } - if (source !== undefined) { - localVarQueryParameter['source'] = source; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine: async (axiosOptions = {}) => { - const localVarPath = `/log`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * LogApi - functional programming interface - * @export - */ -export const LogApiFp = function (configuration) { - const localVarAxiosParamCreator = LogApiAxiosParamCreator(configuration); - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async enablePaperTrail(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.enablePaperTrail(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async logLine(level, message, source, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.logLine(level, message, source, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async logMultiLine(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.logMultiLine(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * LogApi - factory interface - * @export - */ -export const LogApiFactory = function (configuration, basePath, axios) { - const localVarFp = LogApiFp(configuration); - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail(axiosOptions) { - return localVarFp.enablePaperTrail(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine(level, message, source, axiosOptions) { - return localVarFp.logLine(level, message, source, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine(axiosOptions) { - return localVarFp.logMultiLine(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * LogApi - object-oriented interface - * @export - * @class LogApi - * @extends {BaseAPI} - */ -export class LogApi extends BaseAPI { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - enablePaperTrail(axiosOptions) { - return LogApiFp(this.configuration).enablePaperTrail(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {LogApiLogLineRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - logLine(requestParameters, axiosOptions) { - return LogApiFp(this.configuration).logLine(requestParameters.level, requestParameters.message, requestParameters.source, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - logMultiLine(axiosOptions) { - return LogApiFp(this.configuration).logMultiLine(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * PlaylistsApi - axios parameter creator - * @export - */ -export const PlaylistsApiAxiosParamCreator = function (configuration) { - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents: async (playlistID, uri, playQueueID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('addPlaylistContents', 'playlistID', playlistID); - // verify required parameter 'uri' is not null or undefined - assertParamExists('addPlaylistContents', 'uri', uri); - // verify required parameter 'playQueueID' is not null or undefined - assertParamExists('addPlaylistContents', 'playQueueID', playQueueID); - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (uri !== undefined) { - localVarQueryParameter['uri'] = uri; - } - if (playQueueID !== undefined) { - localVarQueryParameter['playQueueID'] = playQueueID; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents: async (playlistID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('clearPlaylistContents', 'playlistID', playlistID); - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist: async (title, type, smart, uri, playQueueID, axiosOptions = {}) => { - // verify required parameter 'title' is not null or undefined - assertParamExists('createPlaylist', 'title', title); - // verify required parameter 'type' is not null or undefined - assertParamExists('createPlaylist', 'type', type); - // verify required parameter 'smart' is not null or undefined - assertParamExists('createPlaylist', 'smart', smart); - const localVarPath = `/playlists`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (title !== undefined) { - localVarQueryParameter['title'] = title; - } - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (smart !== undefined) { - localVarQueryParameter['smart'] = smart; - } - if (uri !== undefined) { - localVarQueryParameter['uri'] = uri; - } - if (playQueueID !== undefined) { - localVarQueryParameter['playQueueID'] = playQueueID; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist: async (playlistID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('deletePlaylist', 'playlistID', playlistID); - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist: async (playlistID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('getPlaylist', 'playlistID', playlistID); - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents: async (playlistID, type, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('getPlaylistContents', 'playlistID', playlistID); - // verify required parameter 'type' is not null or undefined - assertParamExists('getPlaylistContents', 'type', type); - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists: async (playlistType, smart, axiosOptions = {}) => { - const localVarPath = `/playlists/all`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (playlistType !== undefined) { - localVarQueryParameter['playlistType'] = playlistType; - } - if (smart !== undefined) { - localVarQueryParameter['smart'] = smart; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist: async (playlistID, axiosOptions = {}) => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('updatePlaylist', 'playlistID', playlistID); - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist: async (path, force, axiosOptions = {}) => { - // verify required parameter 'path' is not null or undefined - assertParamExists('uploadPlaylist', 'path', path); - // verify required parameter 'force' is not null or undefined - assertParamExists('uploadPlaylist', 'force', force); - const localVarPath = `/playlists/upload`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (path !== undefined) { - localVarQueryParameter['path'] = path; - } - if (force !== undefined) { - localVarQueryParameter['force'] = force; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * PlaylistsApi - functional programming interface - * @export - */ -export const PlaylistsApiFp = function (configuration) { - const localVarAxiosParamCreator = PlaylistsApiAxiosParamCreator(configuration); - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async addPlaylistContents(playlistID, uri, playQueueID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.addPlaylistContents(playlistID, uri, playQueueID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async clearPlaylistContents(playlistID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.clearPlaylistContents(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async createPlaylist(title, type, smart, uri, playQueueID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.createPlaylist(title, type, smart, uri, playQueueID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async deletePlaylist(playlistID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.deletePlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylist(playlistID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylistContents(playlistID, type, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistContents(playlistID, type, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylists(playlistType, smart, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylists(playlistType, smart, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async updatePlaylist(playlistID, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async uploadPlaylist(path, force, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.uploadPlaylist(path, force, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * PlaylistsApi - factory interface - * @export - */ -export const PlaylistsApiFactory = function (configuration, basePath, axios) { - const localVarFp = PlaylistsApiFp(configuration); - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents(playlistID, uri, playQueueID, axiosOptions) { - return localVarFp.addPlaylistContents(playlistID, uri, playQueueID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents(playlistID, axiosOptions) { - return localVarFp.clearPlaylistContents(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist(title, type, smart, uri, playQueueID, axiosOptions) { - return localVarFp.createPlaylist(title, type, smart, uri, playQueueID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist(playlistID, axiosOptions) { - return localVarFp.deletePlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist(playlistID, axiosOptions) { - return localVarFp.getPlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents(playlistID, type, axiosOptions) { - return localVarFp.getPlaylistContents(playlistID, type, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists(playlistType, smart, axiosOptions) { - return localVarFp.getPlaylists(playlistType, smart, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist(playlistID, axiosOptions) { - return localVarFp.updatePlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist(path, force, axiosOptions) { - return localVarFp.uploadPlaylist(path, force, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * PlaylistsApi - object-oriented interface - * @export - * @class PlaylistsApi - * @extends {BaseAPI} - */ -export class PlaylistsApi extends BaseAPI { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {PlaylistsApiAddPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - addPlaylistContents(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).addPlaylistContents(requestParameters.playlistID, requestParameters.uri, requestParameters.playQueueID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {PlaylistsApiClearPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - clearPlaylistContents(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).clearPlaylistContents(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {PlaylistsApiCreatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - createPlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).createPlaylist(requestParameters.title, requestParameters.type, requestParameters.smart, requestParameters.uri, requestParameters.playQueueID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {PlaylistsApiDeletePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - deletePlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).deletePlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).getPlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {PlaylistsApiGetPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylistContents(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).getPlaylistContents(requestParameters.playlistID, requestParameters.type, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * - * @summary Get All Playlists - * @param {PlaylistsApiGetPlaylistsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - getPlaylists(requestParameters = {}, axiosOptions) { - return PlaylistsApiFp(this.configuration).getPlaylists(requestParameters.playlistType, requestParameters.smart, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {PlaylistsApiUpdatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - updatePlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).updatePlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {PlaylistsApiUploadPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - uploadPlaylist(requestParameters, axiosOptions) { - return PlaylistsApiFp(this.configuration).uploadPlaylist(requestParameters.path, requestParameters.force, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * SearchApi - axios parameter creator - * @export - */ -export const SearchApiAxiosParamCreator = function (configuration) { - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch: async (query, sectionId, limit, axiosOptions = {}) => { - // verify required parameter 'query' is not null or undefined - assertParamExists('performSearch', 'query', query); - const localVarPath = `/hubs/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - if (sectionId !== undefined) { - localVarQueryParameter['sectionId'] = sectionId; - } - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch: async (query, sectionId, limit, axiosOptions = {}) => { - // verify required parameter 'query' is not null or undefined - assertParamExists('performVoiceSearch', 'query', query); - const localVarPath = `/hubs/search/voice`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - if (sectionId !== undefined) { - localVarQueryParameter['sectionId'] = sectionId; - } - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * SearchApi - functional programming interface - * @export - */ -export const SearchApiFp = function (configuration) { - const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration); - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async performSearch(query, sectionId, limit, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.performSearch(query, sectionId, limit, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async performVoiceSearch(query, sectionId, limit, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.performVoiceSearch(query, sectionId, limit, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * SearchApi - factory interface - * @export - */ -export const SearchApiFactory = function (configuration, basePath, axios) { - const localVarFp = SearchApiFp(configuration); - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch(query, sectionId, limit, axiosOptions) { - return localVarFp.performSearch(query, sectionId, limit, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch(query, sectionId, limit, axiosOptions) { - return localVarFp.performVoiceSearch(query, sectionId, limit, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * SearchApi - object-oriented interface - * @export - * @class SearchApi - * @extends {BaseAPI} - */ -export class SearchApi extends BaseAPI { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {SearchApiPerformSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - performSearch(requestParameters, axiosOptions) { - return SearchApiFp(this.configuration).performSearch(requestParameters.query, requestParameters.sectionId, requestParameters.limit, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {SearchApiPerformVoiceSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - performVoiceSearch(requestParameters, axiosOptions) { - return SearchApiFp(this.configuration).performVoiceSearch(requestParameters.query, requestParameters.sectionId, requestParameters.limit, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * SecurityApi - axios parameter creator - * @export - */ -export const SecurityApiAxiosParamCreator = function (configuration) { - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation: async (source, axiosOptions = {}) => { - // verify required parameter 'source' is not null or undefined - assertParamExists('getSourceConnectionInformation', 'source', source); - const localVarPath = `/security/resources`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (source !== undefined) { - localVarQueryParameter['source'] = source; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken: async (type, scope, axiosOptions = {}) => { - // verify required parameter 'type' is not null or undefined - assertParamExists('getTransientToken', 'type', type); - // verify required parameter 'scope' is not null or undefined - assertParamExists('getTransientToken', 'scope', scope); - const localVarPath = `/security/token`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * SecurityApi - functional programming interface - * @export - */ -export const SecurityApiFp = function (configuration) { - const localVarAxiosParamCreator = SecurityApiAxiosParamCreator(configuration); - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSourceConnectionInformation(source, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSourceConnectionInformation(source, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getTransientToken(type, scope, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getTransientToken(type, scope, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * SecurityApi - factory interface - * @export - */ -export const SecurityApiFactory = function (configuration, basePath, axios) { - const localVarFp = SecurityApiFp(configuration); - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation(source, axiosOptions) { - return localVarFp.getSourceConnectionInformation(source, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken(type, scope, axiosOptions) { - return localVarFp.getTransientToken(type, scope, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * SecurityApi - object-oriented interface - * @export - * @class SecurityApi - * @extends {BaseAPI} - */ -export class SecurityApi extends BaseAPI { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {SecurityApiGetSourceConnectionInformationRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - getSourceConnectionInformation(requestParameters, axiosOptions) { - return SecurityApiFp(this.configuration).getSourceConnectionInformation(requestParameters.source, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {SecurityApiGetTransientTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - getTransientToken(requestParameters, axiosOptions) { - return SecurityApiFp(this.configuration).getTransientToken(requestParameters.type, requestParameters.scope, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * ServerApi - axios parameter creator - * @export - */ -export const ServerApiAxiosParamCreator = function (configuration) { - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities: async (axiosOptions = {}) => { - const localVarPath = `/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences: async (axiosOptions = {}) => { - const localVarPath = `/:/prefs`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * ServerApi - functional programming interface - * @export - */ -export const ServerApiFp = function (configuration) { - const localVarAxiosParamCreator = ServerApiAxiosParamCreator(configuration); - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerCapabilities(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerCapabilities(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerPreferences(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerPreferences(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * ServerApi - factory interface - * @export - */ -export const ServerApiFactory = function (configuration, basePath, axios) { - const localVarFp = ServerApiFp(configuration); - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities(axiosOptions) { - return localVarFp.getServerCapabilities(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences(axiosOptions) { - return localVarFp.getServerPreferences(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * ServerApi - object-oriented interface - * @export - * @class ServerApi - * @extends {BaseAPI} - */ -export class ServerApi extends BaseAPI { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - getServerCapabilities(axiosOptions) { - return ServerApiFp(this.configuration).getServerCapabilities(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - getServerPreferences(axiosOptions) { - return ServerApiFp(this.configuration).getServerPreferences(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * SessionsApi - axios parameter creator - * @export - */ -export const SessionsApiAxiosParamCreator = function (configuration) { - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory: async (axiosOptions = {}) => { - const localVarPath = `/status/sessions/history/all`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions: async (axiosOptions = {}) => { - const localVarPath = `/status/sessions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * SessionsApi - functional programming interface - * @export - */ -export const SessionsApiFp = function (configuration) { - const localVarAxiosParamCreator = SessionsApiAxiosParamCreator(configuration); - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSessionHistory(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionHistory(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSessions(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSessions(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * SessionsApi - factory interface - * @export - */ -export const SessionsApiFactory = function (configuration, basePath, axios) { - const localVarFp = SessionsApiFp(configuration); - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory(axiosOptions) { - return localVarFp.getSessionHistory(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions(axiosOptions) { - return localVarFp.getSessions(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * SessionsApi - object-oriented interface - * @export - * @class SessionsApi - * @extends {BaseAPI} - */ -export class SessionsApi extends BaseAPI { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - getSessionHistory(axiosOptions) { - return SessionsApiFp(this.configuration).getSessionHistory(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - getSessions(axiosOptions) { - return SessionsApiFp(this.configuration).getSessions(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * UpdaterApi - axios parameter creator - * @export - */ -export const UpdaterApiAxiosParamCreator = function (configuration) { - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates: async (tonight, skip, axiosOptions = {}) => { - const localVarPath = `/updater/apply`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (tonight !== undefined) { - localVarQueryParameter['tonight'] = tonight; - } - if (skip !== undefined) { - localVarQueryParameter['skip'] = skip; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates: async (download, axiosOptions = {}) => { - const localVarPath = `/updater/check`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - if (download !== undefined) { - localVarQueryParameter['download'] = download; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus: async (axiosOptions = {}) => { - const localVarPath = `/updater/status`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * UpdaterApi - functional programming interface - * @export - */ -export const UpdaterApiFp = function (configuration) { - const localVarAxiosParamCreator = UpdaterApiAxiosParamCreator(configuration); - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async applyUpdates(tonight, skip, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.applyUpdates(tonight, skip, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async checkForUpdates(download, axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.checkForUpdates(download, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async queryUpdateStatus(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryUpdateStatus(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * UpdaterApi - factory interface - * @export - */ -export const UpdaterApiFactory = function (configuration, basePath, axios) { - const localVarFp = UpdaterApiFp(configuration); - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates(tonight, skip, axiosOptions) { - return localVarFp.applyUpdates(tonight, skip, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates(download, axiosOptions) { - return localVarFp.checkForUpdates(download, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus(axiosOptions) { - return localVarFp.queryUpdateStatus(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * UpdaterApi - object-oriented interface - * @export - * @class UpdaterApi - * @extends {BaseAPI} - */ -export class UpdaterApi extends BaseAPI { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {UpdaterApiApplyUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - applyUpdates(requestParameters = {}, axiosOptions) { - return UpdaterApiFp(this.configuration).applyUpdates(requestParameters.tonight, requestParameters.skip, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Checking for updates - * @summary Checking for updates - * @param {UpdaterApiCheckForUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - checkForUpdates(requestParameters = {}, axiosOptions) { - return UpdaterApiFp(this.configuration).checkForUpdates(requestParameters.download, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - queryUpdateStatus(axiosOptions) { - return UpdaterApiFp(this.configuration).queryUpdateStatus(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -/** - * UserApi - axios parameter creator - * @export - */ -export const UserApiAxiosParamCreator = function (configuration) { - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails: async (axiosOptions = {}) => { - const localVarPath = `/user`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions }; - const localVarHeaderParameter = {}; - const localVarQueryParameter = {}; - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration); - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration); - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration); - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration); - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers }; - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - }; -}; -/** - * UserApi - functional programming interface - * @export - */ -export const UserApiFp = function (configuration) { - const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration); - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getUserDetails(axiosOptions) { - const localVarAxiosArgs = await localVarAxiosParamCreator.getUserDetails(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - }; -}; -/** - * UserApi - factory interface - * @export - */ -export const UserApiFactory = function (configuration, basePath, axios) { - const localVarFp = UserApiFp(configuration); - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails(axiosOptions) { - return localVarFp.getUserDetails(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; -/** - * UserApi - object-oriented interface - * @export - * @class UserApi - * @extends {BaseAPI} - */ -export class UserApi extends BaseAPI { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UserApi - */ - getUserDetails(axiosOptions) { - return UserApiFp(this.configuration).getUserDetails(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} -//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/dist/sdk-output/api.js.map b/dist/sdk-output/api.js.map deleted file mode 100644 index d40d23b9..00000000 --- a/dist/sdk-output/api.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"api.js","sourceRoot":"","sources":["../../sdk-output/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,WAAgE,MAAM,OAAO,CAAC;AACrF,yDAAyD;AACzD,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAiE,eAAe,EAAyB,YAAY,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAC5N,aAAa;AACb,OAAO,EAAE,SAAS,EAAmC,OAA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Q,CAAC,CAAC,CAAC;QAC/F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,OAAQ,SAAQ,OAAO;IAChC;;;;;;OAMG;IACI,cAAc,CAAC,YAAiC;QACnD,OAAO,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5H,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/sdk-output/base.d.ts b/dist/sdk-output/base.d.ts deleted file mode 100644 index 59fb64e1..00000000 --- a/dist/sdk-output/base.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { Configuration } from "./configuration"; -import { AxiosInstance, AxiosRequestConfig } from 'axios'; -export declare const BASE_PATH: string; -/** - * - * @export - */ -export declare const COLLECTION_FORMATS: { - csv: string; - ssv: string; - tsv: string; - pipes: string; -}; -/** - * - * @export - * @interface RequestArgs - */ -export interface RequestArgs { - url: string; - axiosOptions: AxiosRequestConfig; -} -/** - * - * @export - * @class BaseAPI - */ -export declare class BaseAPI { - protected basePath: string; - protected axios: AxiosInstance; - protected configuration: Configuration | undefined; - constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); -} -/** - * - * @export - * @class RequiredError - * @extends {Error} - */ -export declare class RequiredError extends Error { - field: string; - name: "RequiredError"; - constructor(field: string, msg?: string); -} diff --git a/dist/sdk-output/base.js b/dist/sdk-output/base.js deleted file mode 100644 index 036a6a04..00000000 --- a/dist/sdk-output/base.js +++ /dev/null @@ -1,61 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -// Some imports not used depending on template conditions -// @ts-ignore -import globalAxios from 'axios'; -export const BASE_PATH = "http://10.10.10.47:32400".replace(/\/+$/, ""); -/** - * - * @export - */ -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; -/** - * - * @export - * @class BaseAPI - */ -export class BaseAPI { - basePath; - axios; - configuration; - constructor(configuration, basePath = BASE_PATH, axios = globalAxios) { - this.basePath = basePath; - this.axios = axios; - if (configuration) { - this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; - } - } -} -; -/** - * - * @export - * @class RequiredError - * @extends {Error} - */ -export class RequiredError extends Error { - field; - name = "RequiredError"; - constructor(field, msg) { - super(msg); - this.field = field; - } -} -//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/dist/sdk-output/base.js.map b/dist/sdk-output/base.js.map deleted file mode 100644 index cf0c5176..00000000 --- a/dist/sdk-output/base.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.js","sourceRoot":"","sources":["../../sdk-output/base.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,yDAAyD;AACzD,aAAa;AACb,OAAO,WAAgE,MAAM,OAAO,CAAC;AAErF,MAAM,CAAC,MAAM,SAAS,GAAG,0BAA0B,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAExE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAM,OAAO,OAAO;IAGqC;IAAwC;IAFnF,aAAa,CAA4B;IAEnD,YAAY,aAA6B,EAAY,WAAmB,SAAS,EAAY,QAAuB,WAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE;YACf,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC3D;IACL,CAAC;CACJ;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IAEjB;IADnB,IAAI,GAAoB,eAAe,CAAC;IACxC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;IAEhC,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/sdk-output/common.d.ts b/dist/sdk-output/common.d.ts deleted file mode 100644 index 622cca31..00000000 --- a/dist/sdk-output/common.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { Configuration } from "./configuration"; -import { RequestArgs } from "./base"; -import { AxiosInstance, AxiosResponse } from 'axios'; -/** - * - * @export - */ -export declare const DUMMY_BASE_URL = "https://example.com"; -/** - * - * @throws {RequiredError} - * @export - */ -export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void; -/** - * - * @export - */ -export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise; -/** - * - * @export - */ -export declare const setSearchParams: (url: URL, ...objects: any[]) => void; -/** - * - * @export - */ -export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any; -/** - * - * @export - */ -export declare const toPathString: (url: URL) => string; -/** - * - * @export - */ -export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => >(axios?: AxiosInstance, basePath?: string) => Promise; diff --git a/dist/sdk-output/common.js b/dist/sdk-output/common.js deleted file mode 100644 index cf9912f2..00000000 --- a/dist/sdk-output/common.js +++ /dev/null @@ -1,95 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { RequiredError } from "./base"; -import axiosRetry from "axios-retry"; -/** - * - * @export - */ -export const DUMMY_BASE_URL = 'https://example.com'; -/** - * - * @throws {RequiredError} - * @export - */ -export const assertParamExists = function (functionName, paramName, paramValue) { - if (paramValue === null || paramValue === undefined) { - throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); - } -}; -/** - * - * @export - */ -export const setApiKeyToObject = async function (object, keyParamName, configuration) { - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? await configuration.apiKey(keyParamName) - : await configuration.apiKey; - object[keyParamName] = localVarApiKeyValue; - } -}; -/** - * - * @export - */ -export const setSearchParams = function (url, ...objects) { - const searchParams = new URLSearchParams(url.search); - for (const object of objects) { - for (const key in object) { - if (Array.isArray(object[key])) { - searchParams.delete(key); - for (const item of object[key]) { - searchParams.append(key, item); - } - } - else { - searchParams.set(key, object[key]); - } - } - } - url.search = searchParams.toString(); -}; -/** - * - * @export - */ -export const serializeDataIfNeeded = function (value, requestOptions, configuration) { - const nonString = typeof value !== 'string'; - const needsSerialization = nonString && configuration && configuration.isJsonMime - ? configuration.isJsonMime(requestOptions.headers['Content-Type']) - : nonString; - return needsSerialization - ? JSON.stringify(value !== undefined ? value : {}) - : (value || ""); -}; -/** - * - * @export - */ -export const toPathString = function (url) { - return url.pathname + url.search + url.hash; -}; -/** - * - * @export - */ -export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) { - return (axios = globalAxios, basePath = BASE_PATH) => { - axiosRetry(globalAxios, configuration.retriesConfig); - const axiosRequestArgs = { ...axiosArgs.axiosOptions, url: (configuration?.basePath || basePath) + axiosArgs.url }; - return axios.request(axiosRequestArgs); - }; -}; -//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/dist/sdk-output/common.js.map b/dist/sdk-output/common.js.map deleted file mode 100644 index 8203a8b6..00000000 --- a/dist/sdk-output/common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"common.js","sourceRoot":"","sources":["../../sdk-output/common.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,aAAa,EAAe,MAAM,QAAQ,CAAC;AAEpD,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,aAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,WAAW,MAAW,EAAE,YAAoB,EAAE,aAA6B;IAC7G,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,EAAE;QACvC,MAAM,mBAAmB,GAAG,OAAO,aAAa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BAAkB;QACrB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAClD,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;AACxB,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,GAAQ;IAC1C,OAAO,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI,CAAA;AAC/C,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,SAAsB,EAAE,WAA0B,EAAE,SAAiB,EAAE,aAA6B;IAC/I,OAAO,CAAoC,QAAuB,WAAW,EAAE,WAAmB,SAAS,EAAE,EAAE;QAC3G,UAAU,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;QACpD,MAAM,gBAAgB,GAAG,EAAC,GAAG,SAAS,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC,aAAa,EAAE,QAAQ,IAAI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,EAAC,CAAC;QACjH,OAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC;IACjD,CAAC,CAAC;AACN,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/sdk-output/configuration.d.ts b/dist/sdk-output/configuration.d.ts deleted file mode 100644 index cf6608ca..00000000 --- a/dist/sdk-output/configuration.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { IAxiosRetryConfig } from "axios-retry"; -export interface ConfigurationParameters { - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - basePath?: string; -} -export declare class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath?: string; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions?: any; - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor?: new () => any; - /** - * axios retry configuration - * - * @type {IAxiosRetryConfig} - * @memberof Configuration - */ - retriesConfig?: IAxiosRetryConfig; - constructor(param?: ConfigurationParameters); - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - isJsonMime(mime: string): boolean; -} diff --git a/dist/sdk-output/configuration.js b/dist/sdk-output/configuration.js deleted file mode 100644 index 57c28918..00000000 --- a/dist/sdk-output/configuration.js +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey; - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions; - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor; - /** - * axios retry configuration - * - * @type {IAxiosRetryConfig} - * @memberof Configuration - */ - retriesConfig; - constructor(param = {}) { - this.apiKey = param.apiKey; - this.basePath = param.basePath; - } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - isJsonMime(mime) { - const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); - return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); - } -} -//# sourceMappingURL=configuration.js.map \ No newline at end of file diff --git a/dist/sdk-output/configuration.js.map b/dist/sdk-output/configuration.js.map deleted file mode 100644 index b4383d8f..00000000 --- a/dist/sdk-output/configuration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../sdk-output/configuration.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAWH,MAAM,OAAO,aAAa;IACtB;;;;OAIG;IACH,MAAM,CAA+F;IAErG;;;;;OAKG;IACH,QAAQ,CAAU;IAElB;;;;;OAKG;IACH,WAAW,CAAO;IAElB;;;;;;OAMG;IACH,YAAY,CAAiB;IAE7B;;;;;OAKG;IACH,aAAa,CAAoB;IAEjC,YAAY,QAAiC,EAAE;QAE3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAEnC,CAAC;IAED;;;;;;;;;OASG;IACI,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ"} \ No newline at end of file diff --git a/dist/sdk-output/index.d.ts b/dist/sdk-output/index.d.ts deleted file mode 100644 index d28552db..00000000 --- a/dist/sdk-output/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export * from "./api"; diff --git a/dist/sdk-output/index.js b/dist/sdk-output/index.js deleted file mode 100644 index d779ea94..00000000 --- a/dist/sdk-output/index.js +++ /dev/null @@ -1,15 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -export * from "./api"; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/sdk-output/index.js.map b/dist/sdk-output/index.js.map deleted file mode 100644 index 42cf5f61..00000000 --- a/dist/sdk-output/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../sdk-output/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC"} \ No newline at end of file diff --git a/index.ts b/index.ts deleted file mode 100644 index 60dd3cea..00000000 --- a/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./sdk-output/api"; - -export {Configuration, ConfigurationParameters} from "./sdk-output/configuration"; - -export * as axiosRetry from "axios-retry" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index f292e4cf..00000000 --- a/package-lock.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "name": "@lukehagar/plexjs", - "version": "0.0.5", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "@lukehagar/plexjs", - "version": "0.0.5", - "license": "MIT", - "dependencies": { - "axios": "^0.26.1", - "axios-retry": "^3.4.0", - "js-yaml": "^4.1.0" - }, - "devDependencies": { - "@types/js-yaml": "^4.0.5", - "@types/node": "^12.11.5", - "typescript": "^4.0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", - "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", - "dependencies": { - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@types/js-yaml": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", - "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", - "dev": true - }, - "node_modules/@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", - "dev": true - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/axios": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz", - "integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==", - "dependencies": { - "follow-redirects": "^1.14.8" - } - }, - "node_modules/axios-retry": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.4.0.tgz", - "integrity": "sha512-VdgaP+gHH4iQYCCNUWF2pcqeciVOdGrBBAYUfTY+wPcO5Ltvp/37MLFNCmJKo7Gj3SHvCSdL8ouI1qLYJN3liA==", - "dependencies": { - "@babel/runtime": "^7.15.4", - "is-retry-allowed": "^2.2.0" - } - }, - "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/is-retry-allowed": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz", - "integrity": "sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - } - }, - "dependencies": { - "@babel/runtime": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", - "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", - "requires": { - "regenerator-runtime": "^0.13.11" - } - }, - "@types/js-yaml": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", - "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", - "dev": true - }, - "@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", - "dev": true - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "axios": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz", - "integrity": "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==", - "requires": { - "follow-redirects": "^1.14.8" - } - }, - "axios-retry": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.4.0.tgz", - "integrity": "sha512-VdgaP+gHH4iQYCCNUWF2pcqeciVOdGrBBAYUfTY+wPcO5Ltvp/37MLFNCmJKo7Gj3SHvCSdL8ouI1qLYJN3liA==", - "requires": { - "@babel/runtime": "^7.15.4", - "is-retry-allowed": "^2.2.0" - } - }, - "follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" - }, - "is-retry-allowed": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz", - "integrity": "sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==" - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } - }, - "regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - }, - "typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 15158b7b..00000000 --- a/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@lukehagar/plexjs", - "version": "0.0.5", - "description": "Community Made Plex JS/TS Module", - "author": "Luke Hagar", - "type": "module", - "repository": { - "type": "git", - "url": "https://github.com/LukeHagar/plexjs.git" - }, - "keywords": [ - "axios", - "typescript", - "sdk", - "plex" - ], - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "bugs": { - "url": "https://github.com/LukeHagar/plexjs/issues" - }, - "main": "./dist/index.js", - "typings": "./dist/index.d.ts", - "scripts": { - "build": "tsc --outDir dist/", - "prepare": "npm run build" - }, - "dependencies": { - "axios": "^0.26.1", - "axios-retry": "^3.4.0", - "js-yaml": "^4.1.0" - }, - "devDependencies": { - "@types/js-yaml": "^4.0.5", - "@types/node": "^12.11.5", - "typescript": "^4.0" - } -} diff --git a/sdk-output/.gitignore b/sdk-output/.gitignore deleted file mode 100644 index 149b5765..00000000 --- a/sdk-output/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -wwwroot/*.js -node_modules -typings -dist diff --git a/sdk-output/.npmignore b/sdk-output/.npmignore deleted file mode 100644 index 999d88df..00000000 --- a/sdk-output/.npmignore +++ /dev/null @@ -1 +0,0 @@ -# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/sdk-output/.openapi-generator-ignore b/sdk-output/.openapi-generator-ignore deleted file mode 100644 index 7484ee59..00000000 --- a/sdk-output/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/sdk-output/.openapi-generator/FILES b/sdk-output/.openapi-generator/FILES deleted file mode 100644 index 70c4a1c1..00000000 --- a/sdk-output/.openapi-generator/FILES +++ /dev/null @@ -1,12 +0,0 @@ -.gitignore -.npmignore -.openapi-generator-ignore -README.md -api.ts -base.ts -common.ts -configuration.ts -git_push.sh -index.ts -package.json -tsconfig.json diff --git a/sdk-output/.openapi-generator/VERSION b/sdk-output/.openapi-generator/VERSION deleted file mode 100644 index e7e42a4b..00000000 --- a/sdk-output/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.3.0 \ No newline at end of file diff --git a/sdk-output/README.md b/sdk-output/README.md deleted file mode 100644 index 56f8547f..00000000 --- a/sdk-output/README.md +++ /dev/null @@ -1,45 +0,0 @@ -## plexjs@0.0.5 - -This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments: - -Environment -* Node.js -* Webpack -* Browserify - -Language level -* ES5 - you must have a Promises/A+ library installed -* ES6 - -Module system -* CommonJS -* ES6 module system - -It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)) - -### Building - -To build and compile the typescript sources to javascript use: -``` -npm install -npm run build -``` - -### Publishing - -First build the package then run ```npm publish``` - -### Consuming - -navigate to the folder of your consuming project and run one of the following commands. - -_published:_ - -``` -npm install plexjs@0.0.5 --save -``` - -_unPublished (not recommended):_ - -``` -npm install PATH_TO_GENERATED_PACKAGE --save diff --git a/sdk-output/api.ts b/sdk-output/api.ts deleted file mode 100644 index a80212b4..00000000 --- a/sdk-output/api.ts +++ /dev/null @@ -1,5332 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { Configuration } from './configuration'; -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; - -/** - * - * @export - * @interface GetPin200Response - */ -export interface GetPin200Response { - /** - * PinID for use with authentication - * @type {any} - * @memberof GetPin200Response - */ - 'id'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'code'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'product'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'trusted'?: any; - /** - * a link to a QR code hosted on plex.tv The QR code redirects to the relevant `plex.tv/link` authentication page Which then prompts the user for the 4 Digit Link Pin - * @type {any} - * @memberof GetPin200Response - */ - 'qr'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'clientIdentifier'?: any; - /** - * - * @type {GetPin200ResponseLocation} - * @memberof GetPin200Response - */ - 'location'?: GetPin200ResponseLocation; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'expiresIn'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'createdAt'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'expiresAt'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'authToken'?: any; - /** - * - * @type {any} - * @memberof GetPin200Response - */ - 'newRegistration'?: any; -} -/** - * - * @export - * @interface GetPin200ResponseLocation - */ -export interface GetPin200ResponseLocation { - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'european_union_member'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'continent_code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'country'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'city'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'time_zone'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'postal_code'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'in_privacy_restricted_country'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'subdivisions'?: any; - /** - * - * @type {any} - * @memberof GetPin200ResponseLocation - */ - 'coordinates'?: any; -} -/** - * - * @export - * @interface GetPin400Response - */ -export interface GetPin400Response { - /** - * - * @type {any} - * @memberof GetPin400Response - */ - 'errors'?: any; -} -/** - * - * @export - * @interface GetServerActivities200Response - */ -export interface GetServerActivities200Response { - /** - * - * @type {GetServerActivities200ResponseMediaContainer} - * @memberof GetServerActivities200Response - */ - 'MediaContainer'?: GetServerActivities200ResponseMediaContainer; -} -/** - * - * @export - * @interface GetServerActivities200ResponseMediaContainer - */ -export interface GetServerActivities200ResponseMediaContainer { - /** - * - * @type {any} - * @memberof GetServerActivities200ResponseMediaContainer - */ - 'size'?: any; - /** - * - * @type {any} - * @memberof GetServerActivities200ResponseMediaContainer - */ - 'Activity'?: any; -} -/** - * - * @export - * @interface GetServerCapabilities200Response - */ -export interface GetServerCapabilities200Response { - /** - * - * @type {GetServerCapabilities200ResponseMediaContainer} - * @memberof GetServerCapabilities200Response - */ - 'MediaContainer'?: GetServerCapabilities200ResponseMediaContainer; -} -/** - * - * @export - * @interface GetServerCapabilities200ResponseMediaContainer - */ -export interface GetServerCapabilities200ResponseMediaContainer { - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'size'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowCameraUpload'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowChannelAccess'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowMediaDeletion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowSharing'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowSync'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'allowTuners'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'backgroundProcessing'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'certificate'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'companionProxy'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'countryCode'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'diagnostics'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'eventStream'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'friendlyName'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'hubSearch'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'itemClusters'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'livetv'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'machineIdentifier'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'mediaProviders'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'multiuser'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'musicAnalysis'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlex'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexMappingState'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexSigninState'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexSubscription'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'myPlexUsername'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'offlineTranscode'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'ownerFeatures'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'photoAutoTag'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'platform'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'platformVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'pluginHost'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'pushNotifications'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'readOnlyLibraries'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'streamingBrainABRVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'streamingBrainVersion'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'sync'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderActiveVideoSessions'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderAudio'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderLyrics'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderPhoto'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderSubtitles'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideo'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoBitrates'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoQualities'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'transcoderVideoResolutions'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'updatedAt'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'updater'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'version'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'voiceSearch'?: any; - /** - * - * @type {any} - * @memberof GetServerCapabilities200ResponseMediaContainer - */ - 'Directory'?: any; -} -/** - * - * @export - * @interface GetServerCapabilities401Response - */ -export interface GetServerCapabilities401Response { - /** - * - * @type {any} - * @memberof GetServerCapabilities401Response - */ - 'errors'?: any; -} - -/** - * ActivitiesApi - axios parameter creator - * @export - */ -export const ActivitiesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities: async (activityUUID: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'activityUUID' is not null or undefined - assertParamExists('cancelServerActivities', 'activityUUID', activityUUID) - const localVarPath = `/activities/{activityUUID}` - .replace(`{${"activityUUID"}}`, encodeURIComponent(String(activityUUID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/activities`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * ActivitiesApi - functional programming interface - * @export - */ -export const ActivitiesApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration) - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async cancelServerActivities(activityUUID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cancelServerActivities(activityUUID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerActivities(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerActivities(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ActivitiesApi - factory interface - * @export - */ -export const ActivitiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ActivitiesApiFp(configuration) - return { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {any} activityUUID The UUID of the activity to cancel. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - cancelServerActivities(activityUUID: any, axiosOptions?: any): AxiosPromise { - return localVarFp.cancelServerActivities(activityUUID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerActivities(axiosOptions?: any): AxiosPromise { - return localVarFp.getServerActivities(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for cancelServerActivities operation in ActivitiesApi. - * @export - * @interface ActivitiesApiCancelServerActivitiesRequest - */ -export interface ActivitiesApiCancelServerActivitiesRequest { - /** - * The UUID of the activity to cancel. - * @type {any} - * @memberof ActivitiesApiCancelServerActivities - */ - readonly activityUUID: any -} - -/** - * ActivitiesApi - object-oriented interface - * @export - * @class ActivitiesApi - * @extends {BaseAPI} - */ -export class ActivitiesApi extends BaseAPI { - /** - * Cancel Server Activities - * @summary Cancel Server Activities - * @param {ActivitiesApiCancelServerActivitiesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - public cancelServerActivities(requestParameters: ActivitiesApiCancelServerActivitiesRequest, axiosOptions?: AxiosRequestConfig) { - return ActivitiesApiFp(this.configuration).cancelServerActivities(requestParameters.activityUUID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Get Server Activities - * @summary Get Server Activities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ActivitiesApi - */ - public getServerActivities(axiosOptions?: AxiosRequestConfig) { - return ActivitiesApiFp(this.configuration).getServerActivities(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * AuthenticationApi - axios parameter creator - * @export - */ -export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin: async (strong?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/pins`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - if (strong !== undefined) { - localVarQueryParameter['strong'] = strong; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken: async (pinID: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'pinID' is not null or undefined - assertParamExists('getToken', 'pinID', pinID) - const localVarPath = `/pins/{pinID}` - .replace(`{${"pinID"}}`, encodeURIComponent(String(pinID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * AuthenticationApi - functional programming interface - * @export - */ -export const AuthenticationApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration) - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPin(strong?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPin(strong, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getToken(pinID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getToken(pinID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * AuthenticationApi - factory interface - * @export - */ -export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = AuthenticationApiFp(configuration) - return { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {any} [strong] Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPin(strong?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getPin(strong, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {any} pinID The PinID to retrieve an access token for - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getToken(pinID: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getToken(pinID, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for getPin operation in AuthenticationApi. - * @export - * @interface AuthenticationApiGetPinRequest - */ -export interface AuthenticationApiGetPinRequest { - /** - * Determines the kind of code returned by the API call Strong codes are used for Pin authentication flows Non-Strong codes are used for `Plex.tv/link` - * @type {any} - * @memberof AuthenticationApiGetPin - */ - readonly strong?: any -} - -/** - * Request parameters for getToken operation in AuthenticationApi. - * @export - * @interface AuthenticationApiGetTokenRequest - */ -export interface AuthenticationApiGetTokenRequest { - /** - * The PinID to retrieve an access token for - * @type {any} - * @memberof AuthenticationApiGetToken - */ - readonly pinID: any -} - -/** - * AuthenticationApi - object-oriented interface - * @export - * @class AuthenticationApi - * @extends {BaseAPI} - */ -export class AuthenticationApi extends BaseAPI { - /** - * Retrieve a Pin from Plex.tv for authentication flows - * @summary Get a Pin - * @param {AuthenticationApiGetPinRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - public getPin(requestParameters: AuthenticationApiGetPinRequest = {}, axiosOptions?: AxiosRequestConfig) { - return AuthenticationApiFp(this.configuration).getPin(requestParameters.strong, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Retrieve an Access Token from Plex.tv after the Pin has already been authenticated - * @summary Get Access Token - * @param {AuthenticationApiGetTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationApi - */ - public getToken(requestParameters: AuthenticationApiGetTokenRequest, axiosOptions?: AxiosRequestConfig) { - return AuthenticationApiFp(this.configuration).getToken(requestParameters.pinID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * ButlerApi - axios parameter creator - * @export - */ -export const ButlerApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/butler`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask: async (taskName: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'taskName' is not null or undefined - assertParamExists('startTask', 'taskName', taskName) - const localVarPath = `/butler/{taskName}` - .replace(`{${"taskName"}}`, encodeURIComponent(String(taskName))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/butler`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask: async (taskName: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'taskName' is not null or undefined - assertParamExists('stopTask', 'taskName', taskName) - const localVarPath = `/butler/{taskName}` - .replace(`{${"taskName"}}`, encodeURIComponent(String(taskName))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * ButlerApi - functional programming interface - * @export - */ -export const ButlerApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ButlerApiAxiosParamCreator(configuration) - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async startAllTasks(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.startAllTasks(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async startTask(taskName: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.startTask(taskName, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async stopAllTasks(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.stopAllTasks(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async stopTask(taskName: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.stopTask(taskName, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ButlerApi - factory interface - * @export - */ -export const ButlerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ButlerApiFp(configuration) - return { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startAllTasks(axiosOptions?: any): AxiosPromise { - return localVarFp.startAllTasks(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {any} taskName the name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - startTask(taskName: any, axiosOptions?: any): AxiosPromise { - return localVarFp.startTask(taskName, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopAllTasks(axiosOptions?: any): AxiosPromise { - return localVarFp.stopAllTasks(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {any} taskName The name of the task to be started. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - stopTask(taskName: any, axiosOptions?: any): AxiosPromise { - return localVarFp.stopTask(taskName, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for startTask operation in ButlerApi. - * @export - * @interface ButlerApiStartTaskRequest - */ -export interface ButlerApiStartTaskRequest { - /** - * the name of the task to be started. - * @type {any} - * @memberof ButlerApiStartTask - */ - readonly taskName: any -} - -/** - * Request parameters for stopTask operation in ButlerApi. - * @export - * @interface ButlerApiStopTaskRequest - */ -export interface ButlerApiStopTaskRequest { - /** - * The name of the task to be started. - * @type {any} - * @memberof ButlerApiStopTask - */ - readonly taskName: any -} - -/** - * ButlerApi - object-oriented interface - * @export - * @class ButlerApi - * @extends {BaseAPI} - */ -export class ButlerApi extends BaseAPI { - /** - * This endpoint will attempt to start all Butler tasks that are enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - public startAllTasks(axiosOptions?: AxiosRequestConfig) { - return ButlerApiFp(this.configuration).startAllTasks(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will attempt to start a single Butler task that is enabled in the settings. Butler tasks normally run automatically during a time window configured on the server\'s Settings page but can be manually started using this endpoint. Tasks will run with the following criteria: 1. Any tasks not scheduled to run on the current day will be skipped. 2. If a task is configured to run at a random time during the configured window and we are outside that window, the task will start immediately. 3. If a task is configured to run at a random time during the configured window and we are within that window, the task will be scheduled at a random time within the window. 4. If we are outside the configured window, the task will start immediately. - * @summary Start a single Butler task - * @param {ButlerApiStartTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - public startTask(requestParameters: ButlerApiStartTaskRequest, axiosOptions?: AxiosRequestConfig) { - return ButlerApiFp(this.configuration).startTask(requestParameters.taskName, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will stop all currently running tasks and remove any scheduled tasks from the queue. - * @summary Stop all Butler tasks - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - public stopAllTasks(axiosOptions?: AxiosRequestConfig) { - return ButlerApiFp(this.configuration).stopAllTasks(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will stop a currently running task by name, or remove it from the list of scheduled tasks if it exists. See the section above for a list of task names for this endpoint. - * @summary Stop a single Butler task - * @param {ButlerApiStopTaskRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ButlerApi - */ - public stopTask(requestParameters: ButlerApiStopTaskRequest, axiosOptions?: AxiosRequestConfig) { - return ButlerApiFp(this.configuration).stopTask(requestParameters.taskName, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * DevicesApi - axios parameter creator - * @export - */ -export const DevicesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/clients`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/resources`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * DevicesApi - functional programming interface - * @export - */ -export const DevicesApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = DevicesApiAxiosParamCreator(configuration) - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getAvailableClients(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableClients(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getDevices(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getDevices(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * DevicesApi - factory interface - * @export - */ -export const DevicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = DevicesApiFp(configuration) - return { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getAvailableClients(axiosOptions?: any): AxiosPromise { - return localVarFp.getAvailableClients(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getDevices(axiosOptions?: any): AxiosPromise { - return localVarFp.getDevices(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * DevicesApi - object-oriented interface - * @export - * @class DevicesApi - * @extends {BaseAPI} - */ -export class DevicesApi extends BaseAPI { - /** - * Get Available Clients - * @summary Get Available Clients - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - public getAvailableClients(axiosOptions?: AxiosRequestConfig) { - return DevicesApiFp(this.configuration).getAvailableClients(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Get Devices - * @summary Get Devices - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof DevicesApi - */ - public getDevices(axiosOptions?: AxiosRequestConfig) { - return DevicesApiFp(this.configuration).getDevices(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * HashesApi - axios parameter creator - * @export - */ -export const HashesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash: async (url: any, type?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'url' is not null or undefined - assertParamExists('getFileHash', 'url', url) - const localVarPath = `/library/hashes`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (url !== undefined) { - localVarQueryParameter['url'] = url; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * HashesApi - functional programming interface - * @export - */ -export const HashesApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = HashesApiAxiosParamCreator(configuration) - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getFileHash(url: any, type?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getFileHash(url, type, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * HashesApi - factory interface - * @export - */ -export const HashesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = HashesApiFp(configuration) - return { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {any} url This is the path to the local file, must be prefixed by `file://` - * @param {any} [type] Item type - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getFileHash(url: any, type?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getFileHash(url, type, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for getFileHash operation in HashesApi. - * @export - * @interface HashesApiGetFileHashRequest - */ -export interface HashesApiGetFileHashRequest { - /** - * This is the path to the local file, must be prefixed by `file://` - * @type {any} - * @memberof HashesApiGetFileHash - */ - readonly url: any - - /** - * Item type - * @type {any} - * @memberof HashesApiGetFileHash - */ - readonly type?: any -} - -/** - * HashesApi - object-oriented interface - * @export - * @class HashesApi - * @extends {BaseAPI} - */ -export class HashesApi extends BaseAPI { - /** - * This resource returns hash values for local files - * @summary Get Hash Value - * @param {HashesApiGetFileHashRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HashesApi - */ - public getFileHash(requestParameters: HashesApiGetFileHashRequest, axiosOptions?: AxiosRequestConfig) { - return HashesApiFp(this.configuration).getFileHash(requestParameters.url, requestParameters.type, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * HubsApi - axios parameter creator - * @export - */ -export const HubsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs: async (count?: any, onlyTransient?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/hubs`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (count !== undefined) { - localVarQueryParameter['count'] = count; - } - - if (onlyTransient !== undefined) { - localVarQueryParameter['onlyTransient'] = onlyTransient; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs: async (sectionId: any, count?: any, onlyTransient?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryHubs', 'sectionId', sectionId) - const localVarPath = `/hubs/sections/{sectionId}` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (count !== undefined) { - localVarQueryParameter['count'] = count; - } - - if (onlyTransient !== undefined) { - localVarQueryParameter['onlyTransient'] = onlyTransient; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * HubsApi - functional programming interface - * @export - */ -export const HubsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = HubsApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getGlobalHubs(count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getGlobalHubs(count, onlyTransient, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryHubs(sectionId: any, count?: any, onlyTransient?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryHubs(sectionId, count, onlyTransient, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * HubsApi - factory interface - * @export - */ -export const HubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = HubsApiFp(configuration) - return { - /** - * - * @summary Get Global Hubs - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getGlobalHubs(count?: any, onlyTransient?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getGlobalHubs(count, onlyTransient, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {any} sectionId the Id of the library to query - * @param {any} [count] The number of items to return with each hub. - * @param {any} [onlyTransient] Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryHubs(sectionId: any, count?: any, onlyTransient?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getLibraryHubs(sectionId, count, onlyTransient, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for getGlobalHubs operation in HubsApi. - * @export - * @interface HubsApiGetGlobalHubsRequest - */ -export interface HubsApiGetGlobalHubsRequest { - /** - * The number of items to return with each hub. - * @type {any} - * @memberof HubsApiGetGlobalHubs - */ - readonly count?: any - - /** - * Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @type {any} - * @memberof HubsApiGetGlobalHubs - */ - readonly onlyTransient?: any -} - -/** - * Request parameters for getLibraryHubs operation in HubsApi. - * @export - * @interface HubsApiGetLibraryHubsRequest - */ -export interface HubsApiGetLibraryHubsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly sectionId: any - - /** - * The number of items to return with each hub. - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly count?: any - - /** - * Only return hubs which are \"transient\", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). - * @type {any} - * @memberof HubsApiGetLibraryHubs - */ - readonly onlyTransient?: any -} - -/** - * HubsApi - object-oriented interface - * @export - * @class HubsApi - * @extends {BaseAPI} - */ -export class HubsApi extends BaseAPI { - /** - * - * @summary Get Global Hubs - * @param {HubsApiGetGlobalHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - public getGlobalHubs(requestParameters: HubsApiGetGlobalHubsRequest = {}, axiosOptions?: AxiosRequestConfig) { - return HubsApiFp(this.configuration).getGlobalHubs(requestParameters.count, requestParameters.onlyTransient, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will return a list of library specific hubs - * @summary Get library specific hubs - * @param {HubsApiGetLibraryHubsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof HubsApi - */ - public getLibraryHubs(requestParameters: HubsApiGetLibraryHubsRequest, axiosOptions?: AxiosRequestConfig) { - return HubsApiFp(this.configuration).getLibraryHubs(requestParameters.sectionId, requestParameters.count, requestParameters.onlyTransient, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * LibraryApi - axios parameter creator - * @export - */ -export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems: async (sectionId: any, type: any, filter?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getCommonLibraryItems', 'sectionId', sectionId) - // verify required parameter 'type' is not null or undefined - assertParamExists('getCommonLibraryItems', 'type', type) - const localVarPath = `/library/sections/{sectionId}/common` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems: async (sectionId: any, type: any, filter?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLatestLibraryItems', 'sectionId', sectionId) - // verify required parameter 'type' is not null or undefined - assertParamExists('getLatestLibraryItems', 'type', type) - const localVarPath = `/library/sections/{sectionId}/latest` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/library/sections`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails: async (sectionId: any, includeDetails?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryDetails', 'sectionId', sectionId) - const localVarPath = `/library/sections/{sectionId}` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (includeDetails !== undefined) { - localVarQueryParameter['includeDetails'] = includeDetails; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems: async (sectionId: any, type?: any, filter?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('getLibraryItems', 'sectionId', sectionId) - const localVarPath = `/library/sections/{sectionId}/all` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (filter !== undefined) { - localVarQueryParameter['filter'] = filter; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/library/onDeck`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary: async (sectionId: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'sectionId' is not null or undefined - assertParamExists('refreshLibrary', 'sectionId', sectionId) - const localVarPath = `/library/sections/{sectionId}/refresh` - .replace(`{${"sectionId"}}`, encodeURIComponent(String(sectionId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * LibraryApi - functional programming interface - * @export - */ -export const LibraryApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration) - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getCommonLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getCommonLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLatestLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLatestLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraries(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryDetails(sectionId: any, includeDetails?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryDetails(sectionId, includeDetails, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getLibraryItems(sectionId: any, type?: any, filter?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryItems(sectionId, type, filter, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getOnDeck(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getOnDeck(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async refreshLibrary(sectionId: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.refreshLibrary(sectionId, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * LibraryApi - factory interface - * @export - */ -export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = LibraryApiFp(configuration) - return { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getCommonLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getCommonLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} type item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLatestLibraryItems(sectionId: any, type: any, filter?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getLatestLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraries(axiosOptions?: any): AxiosPromise { - return localVarFp.getLibraries(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {any} sectionId the Id of the library to query - * @param {any} [includeDetails] Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryDetails(sectionId: any, includeDetails?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getLibraryDetails(sectionId, includeDetails, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {any} sectionId the Id of the library to query - * @param {any} [type] item type - * @param {any} [filter] the filter parameter - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getLibraryItems(sectionId: any, type?: any, filter?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getLibraryItems(sectionId, type, filter, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getOnDeck(axiosOptions?: any): AxiosPromise { - return localVarFp.getOnDeck(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {any} sectionId the Id of the library to refresh - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - refreshLibrary(sectionId: any, axiosOptions?: any): AxiosPromise { - return localVarFp.refreshLibrary(sectionId, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for getCommonLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetCommonLibraryItemsRequest - */ -export interface LibraryApiGetCommonLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly sectionId: any - - /** - * item type - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly type: any - - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetCommonLibraryItems - */ - readonly filter?: any -} - -/** - * Request parameters for getLatestLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetLatestLibraryItemsRequest - */ -export interface LibraryApiGetLatestLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly sectionId: any - - /** - * item type - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly type: any - - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetLatestLibraryItems - */ - readonly filter?: any -} - -/** - * Request parameters for getLibraryDetails operation in LibraryApi. - * @export - * @interface LibraryApiGetLibraryDetailsRequest - */ -export interface LibraryApiGetLibraryDetailsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLibraryDetails - */ - readonly sectionId: any - - /** - * Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. - * @type {any} - * @memberof LibraryApiGetLibraryDetails - */ - readonly includeDetails?: any -} - -/** - * Request parameters for getLibraryItems operation in LibraryApi. - * @export - * @interface LibraryApiGetLibraryItemsRequest - */ -export interface LibraryApiGetLibraryItemsRequest { - /** - * the Id of the library to query - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly sectionId: any - - /** - * item type - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly type?: any - - /** - * the filter parameter - * @type {any} - * @memberof LibraryApiGetLibraryItems - */ - readonly filter?: any -} - -/** - * Request parameters for refreshLibrary operation in LibraryApi. - * @export - * @interface LibraryApiRefreshLibraryRequest - */ -export interface LibraryApiRefreshLibraryRequest { - /** - * the Id of the library to refresh - * @type {any} - * @memberof LibraryApiRefreshLibrary - */ - readonly sectionId: any -} - -/** - * LibraryApi - object-oriented interface - * @export - * @class LibraryApi - * @extends {BaseAPI} - */ -export class LibraryApi extends BaseAPI { - /** - * Represents a \"Common\" item. It contains only the common attributes of the items selected by the provided filter - * @summary Get Common Library Items - * @param {LibraryApiGetCommonLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - public getCommonLibraryItems(requestParameters: LibraryApiGetCommonLibraryItemsRequest, axiosOptions?: AxiosRequestConfig) { - return LibraryApiFp(this.configuration).getCommonLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will return a list of the latest library items filtered by the filter and type provided - * @summary Get Latest Library Items - * @param {LibraryApiGetLatestLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - public getLatestLibraryItems(requestParameters: LibraryApiGetLatestLibraryItemsRequest, axiosOptions?: AxiosRequestConfig) { - return LibraryApiFp(this.configuration).getLatestLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * A library section (commonly referred to as just a library) is a collection of media. Libraries are typed, and depending on their type provide either a flat or a hierarchical view of the media. For example, a music library has an artist > albums > tracks structure, whereas a movie library is flat. Libraries have features beyond just being a collection of media; for starters, they include information about supported types, filters and sorts. This allows a client to provide a rich interface around the media (e.g. allow sorting movies by release year). - * @summary Get All Libraries - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - public getLibraries(axiosOptions?: AxiosRequestConfig) { - return LibraryApiFp(this.configuration).getLibraries(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Returns details for the library. This can be thought of as an interstitial endpoint because it contains information about the library, rather than content itself. These details are: - A list of `Directory` objects: These used to be used by clients to build a menuing system. There are four flavors of directory found here: - Primary: (e.g. all, On Deck) These are still used in some clients to provide \"shortcuts\" to subsets of media. However, with the exception of On Deck, all of them can be created by media queries, and the desire is to allow these to be customized by users. - Secondary: These are marked with `secondary=\"1\"` and were used by old clients to provide nested menus allowing for primative (but structured) navigation. - Special: There is a By Folder entry which allows browsing the media by the underlying filesystem structure, and there\'s a completely obsolete entry marked `search=\"1\"` which used to be used to allow clients to build search dialogs on the fly. - A list of `Type` objects: These represent the types of things found in this library, and for each one, a list of `Filter` and `Sort` objects. These can be used to build rich controls around a grid of media to allow filtering and organizing. Note that these filters and sorts are optional, and without them, the client won\'t render any filtering controls. The `Type` object contains: - `key`: This provides the root endpoint returning the actual media list for the type. - `type`: This is the metadata type for the type (if a standard Plex type). - `title`: The title for for the content of this type (e.g. \"Movies\"). - Each `Filter` object contains a description of the filter. Note that it is not an exhaustive list of the full media query language, but an inportant subset useful for top-level API. - `filter`: This represents the filter name used for the filter, which can be used to construct complex media queries with. - `filterType`: This is either `string`, `integer`, or `boolean`, and describes the type of values used for the filter. - `key`: This provides the endpoint where the possible range of values for the filter can be retrieved (e.g. for a \"Genre\" filter, it returns a list of all the genres in the library). This will include a `type` argument that matches the metadata type of the Type element. - `title`: The title for the filter. - Each `Sort` object contains a description of the sort field. - `defaultDirection`: Can be either `asc` or `desc`, and specifies the default direction for the sort field (e.g. titles default to alphabetically ascending). - `descKey` and `key`: Contains the parameters passed to the `sort=...` media query for each direction of the sort. - `title`: The title of the field. - * @summary Get Library Details - * @param {LibraryApiGetLibraryDetailsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - public getLibraryDetails(requestParameters: LibraryApiGetLibraryDetailsRequest, axiosOptions?: AxiosRequestConfig) { - return LibraryApiFp(this.configuration).getLibraryDetails(requestParameters.sectionId, requestParameters.includeDetails, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will return a list of library items filtered by the filter and type provided - * @summary Get Library Items - * @param {LibraryApiGetLibraryItemsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - public getLibraryItems(requestParameters: LibraryApiGetLibraryItemsRequest, axiosOptions?: AxiosRequestConfig) { - return LibraryApiFp(this.configuration).getLibraryItems(requestParameters.sectionId, requestParameters.type, requestParameters.filter, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will return the on deck content. - * @summary Get On Deck - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - public getOnDeck(axiosOptions?: AxiosRequestConfig) { - return LibraryApiFp(this.configuration).getOnDeck(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint Refreshes the library. - * @summary Refresh Library - * @param {LibraryApiRefreshLibraryRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LibraryApi - */ - public refreshLibrary(requestParameters: LibraryApiRefreshLibraryRequest, axiosOptions?: AxiosRequestConfig) { - return LibraryApiFp(this.configuration).refreshLibrary(requestParameters.sectionId, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * LogApi - axios parameter creator - * @export - */ -export const LogApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/log/networked`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine: async (level: any, message: any, source: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'level' is not null or undefined - assertParamExists('logLine', 'level', level) - // verify required parameter 'message' is not null or undefined - assertParamExists('logLine', 'message', message) - // verify required parameter 'source' is not null or undefined - assertParamExists('logLine', 'source', source) - const localVarPath = `/log`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (level !== undefined) { - localVarQueryParameter['level'] = level; - } - - if (message !== undefined) { - localVarQueryParameter['message'] = message; - } - - if (source !== undefined) { - localVarQueryParameter['source'] = source; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/log`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * LogApi - functional programming interface - * @export - */ -export const LogApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = LogApiAxiosParamCreator(configuration) - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async enablePaperTrail(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.enablePaperTrail(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async logLine(level: any, message: any, source: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.logLine(level, message, source, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async logMultiLine(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.logMultiLine(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * LogApi - factory interface - * @export - */ -export const LogApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = LogApiFp(configuration) - return { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - enablePaperTrail(axiosOptions?: any): AxiosPromise { - return localVarFp.enablePaperTrail(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {any} level An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @param {any} message The text of the message to write to the log. - * @param {any} source a string indicating the source of the message. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logLine(level: any, message: any, source: any, axiosOptions?: any): AxiosPromise { - return localVarFp.logLine(level, message, source, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - logMultiLine(axiosOptions?: any): AxiosPromise { - return localVarFp.logMultiLine(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for logLine operation in LogApi. - * @export - * @interface LogApiLogLineRequest - */ -export interface LogApiLogLineRequest { - /** - * An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info 3: Debug 4: Verbose - * @type {any} - * @memberof LogApiLogLine - */ - readonly level: any - - /** - * The text of the message to write to the log. - * @type {any} - * @memberof LogApiLogLine - */ - readonly message: any - - /** - * a string indicating the source of the message. - * @type {any} - * @memberof LogApiLogLine - */ - readonly source: any -} - -/** - * LogApi - object-oriented interface - * @export - * @class LogApi - * @extends {BaseAPI} - */ -export class LogApi extends BaseAPI { - /** - * This endpoint will enable all Plex Media Serverlogs to be sent to the Papertrail networked logging site for a period of time. - * @summary Enabling Papertrail - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - public enablePaperTrail(axiosOptions?: AxiosRequestConfig) { - return LogApiFp(this.configuration).enablePaperTrail(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will write a single-line log message, including a level and source to the main Plex Media Server log. - * @summary Logging a single line message. - * @param {LogApiLogLineRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - public logLine(requestParameters: LogApiLogLineRequest, axiosOptions?: AxiosRequestConfig) { - return LogApiFp(this.configuration).logLine(requestParameters.level, requestParameters.message, requestParameters.source, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will write multiple lines to the main Plex Media Server log in a single request. It takes a set of query strings as would normally sent to the above GET endpoint as a linefeed-separated block of POST data. The parameters for each query string match as above. - * @summary Logging a multi-line message - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof LogApi - */ - public logMultiLine(axiosOptions?: AxiosRequestConfig) { - return LogApiFp(this.configuration).logMultiLine(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * PlaylistsApi - axios parameter creator - * @export - */ -export const PlaylistsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents: async (playlistID: any, uri: any, playQueueID: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('addPlaylistContents', 'playlistID', playlistID) - // verify required parameter 'uri' is not null or undefined - assertParamExists('addPlaylistContents', 'uri', uri) - // verify required parameter 'playQueueID' is not null or undefined - assertParamExists('addPlaylistContents', 'playQueueID', playQueueID) - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (uri !== undefined) { - localVarQueryParameter['uri'] = uri; - } - - if (playQueueID !== undefined) { - localVarQueryParameter['playQueueID'] = playQueueID; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents: async (playlistID: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('clearPlaylistContents', 'playlistID', playlistID) - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist: async (title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'title' is not null or undefined - assertParamExists('createPlaylist', 'title', title) - // verify required parameter 'type' is not null or undefined - assertParamExists('createPlaylist', 'type', type) - // verify required parameter 'smart' is not null or undefined - assertParamExists('createPlaylist', 'smart', smart) - const localVarPath = `/playlists`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (title !== undefined) { - localVarQueryParameter['title'] = title; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (smart !== undefined) { - localVarQueryParameter['smart'] = smart; - } - - if (uri !== undefined) { - localVarQueryParameter['uri'] = uri; - } - - if (playQueueID !== undefined) { - localVarQueryParameter['playQueueID'] = playQueueID; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist: async (playlistID: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('deletePlaylist', 'playlistID', playlistID) - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist: async (playlistID: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('getPlaylist', 'playlistID', playlistID) - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents: async (playlistID: any, type: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('getPlaylistContents', 'playlistID', playlistID) - // verify required parameter 'type' is not null or undefined - assertParamExists('getPlaylistContents', 'type', type) - const localVarPath = `/playlists/{playlistID}/items` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists: async (playlistType?: any, smart?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/playlists/all`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (playlistType !== undefined) { - localVarQueryParameter['playlistType'] = playlistType; - } - - if (smart !== undefined) { - localVarQueryParameter['smart'] = smart; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist: async (playlistID: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'playlistID' is not null or undefined - assertParamExists('updatePlaylist', 'playlistID', playlistID) - const localVarPath = `/playlists/{playlistID}` - .replace(`{${"playlistID"}}`, encodeURIComponent(String(playlistID))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist: async (path: any, force: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'path' is not null or undefined - assertParamExists('uploadPlaylist', 'path', path) - // verify required parameter 'force' is not null or undefined - assertParamExists('uploadPlaylist', 'force', force) - const localVarPath = `/playlists/upload`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (path !== undefined) { - localVarQueryParameter['path'] = path; - } - - if (force !== undefined) { - localVarQueryParameter['force'] = force; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * PlaylistsApi - functional programming interface - * @export - */ -export const PlaylistsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = PlaylistsApiAxiosParamCreator(configuration) - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async addPlaylistContents(playlistID: any, uri: any, playQueueID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.addPlaylistContents(playlistID, uri, playQueueID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async clearPlaylistContents(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.clearPlaylistContents(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async createPlaylist(title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createPlaylist(title, type, smart, uri, playQueueID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async deletePlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.deletePlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylistContents(playlistID: any, type: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylistContents(playlistID, type, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getPlaylists(playlistType?: any, smart?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPlaylists(playlistType, smart, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async updatePlaylist(playlistID: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlaylist(playlistID, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async uploadPlaylist(path: any, force: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.uploadPlaylist(path, force, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * PlaylistsApi - factory interface - * @export - */ -export const PlaylistsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = PlaylistsApiFp(configuration) - return { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {any} playlistID the ID of the playlist - * @param {any} uri the content URI for the playlist - * @param {any} playQueueID the play queue to add to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - addPlaylistContents(playlistID: any, uri: any, playQueueID: any, axiosOptions?: any): AxiosPromise { - return localVarFp.addPlaylistContents(playlistID, uri, playQueueID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - clearPlaylistContents(playlistID: any, axiosOptions?: any): AxiosPromise { - return localVarFp.clearPlaylistContents(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {any} title name of the playlist - * @param {any} type type of playlist to create - * @param {any} smart whether the playlist is smart or not - * @param {any} [uri] the content URI for the playlist - * @param {any} [playQueueID] the play queue to copy to a playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - createPlaylist(title: any, type: any, smart: any, uri?: any, playQueueID?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.createPlaylist(title, type, smart, uri, playQueueID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - deletePlaylist(playlistID: any, axiosOptions?: any): AxiosPromise { - return localVarFp.deletePlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylist(playlistID: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getPlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {any} playlistID the ID of the playlist - * @param {any} type the metadata type of the item to return - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylistContents(playlistID: any, type: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getPlaylistContents(playlistID, type, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get All Playlists - * @param {any} [playlistType] limit to a type of playlist. - * @param {any} [smart] type of playlists to return (default is all). - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getPlaylists(playlistType?: any, smart?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getPlaylists(playlistType, smart, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {any} playlistID the ID of the playlist - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - updatePlaylist(playlistID: any, axiosOptions?: any): AxiosPromise { - return localVarFp.updatePlaylist(playlistID, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {any} path absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {any} force force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - uploadPlaylist(path: any, force: any, axiosOptions?: any): AxiosPromise { - return localVarFp.uploadPlaylist(path, force, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for addPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiAddPlaylistContentsRequest - */ -export interface PlaylistsApiAddPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly playlistID: any - - /** - * the content URI for the playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly uri: any - - /** - * the play queue to add to a playlist - * @type {any} - * @memberof PlaylistsApiAddPlaylistContents - */ - readonly playQueueID: any -} - -/** - * Request parameters for clearPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiClearPlaylistContentsRequest - */ -export interface PlaylistsApiClearPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiClearPlaylistContents - */ - readonly playlistID: any -} - -/** - * Request parameters for createPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiCreatePlaylistRequest - */ -export interface PlaylistsApiCreatePlaylistRequest { - /** - * name of the playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly title: any - - /** - * type of playlist to create - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly type: any - - /** - * whether the playlist is smart or not - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly smart: any - - /** - * the content URI for the playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly uri?: any - - /** - * the play queue to copy to a playlist - * @type {any} - * @memberof PlaylistsApiCreatePlaylist - */ - readonly playQueueID?: any -} - -/** - * Request parameters for deletePlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiDeletePlaylistRequest - */ -export interface PlaylistsApiDeletePlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiDeletePlaylist - */ - readonly playlistID: any -} - -/** - * Request parameters for getPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistRequest - */ -export interface PlaylistsApiGetPlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiGetPlaylist - */ - readonly playlistID: any -} - -/** - * Request parameters for getPlaylistContents operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistContentsRequest - */ -export interface PlaylistsApiGetPlaylistContentsRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiGetPlaylistContents - */ - readonly playlistID: any - - /** - * the metadata type of the item to return - * @type {any} - * @memberof PlaylistsApiGetPlaylistContents - */ - readonly type: any -} - -/** - * Request parameters for getPlaylists operation in PlaylistsApi. - * @export - * @interface PlaylistsApiGetPlaylistsRequest - */ -export interface PlaylistsApiGetPlaylistsRequest { - /** - * limit to a type of playlist. - * @type {any} - * @memberof PlaylistsApiGetPlaylists - */ - readonly playlistType?: any - - /** - * type of playlists to return (default is all). - * @type {any} - * @memberof PlaylistsApiGetPlaylists - */ - readonly smart?: any -} - -/** - * Request parameters for updatePlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiUpdatePlaylistRequest - */ -export interface PlaylistsApiUpdatePlaylistRequest { - /** - * the ID of the playlist - * @type {any} - * @memberof PlaylistsApiUpdatePlaylist - */ - readonly playlistID: any -} - -/** - * Request parameters for uploadPlaylist operation in PlaylistsApi. - * @export - * @interface PlaylistsApiUploadPlaylistRequest - */ -export interface PlaylistsApiUploadPlaylistRequest { - /** - * absolute path to a directory on the server where m3u files are stored, or the absolute path to a playlist file on the server. If the `path` argument is a directory, that path will be scanned for playlist files to be processed. Each file in that directory creates a separate playlist, with a name based on the filename of the file that created it. The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @type {any} - * @memberof PlaylistsApiUploadPlaylist - */ - readonly path: any - - /** - * force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. - * @type {any} - * @memberof PlaylistsApiUploadPlaylist - */ - readonly force: any -} - -/** - * PlaylistsApi - object-oriented interface - * @export - * @class PlaylistsApi - * @extends {BaseAPI} - */ -export class PlaylistsApi extends BaseAPI { - /** - * Adds a generator to a playlist, same parameters as the POST above. With a dumb playlist, this adds the specified items to the playlist. With a smart playlist, passing a new `uri` parameter replaces the rules for the playlist. Returns the playlist. - * @summary Adding to a Playlist - * @param {PlaylistsApiAddPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public addPlaylistContents(requestParameters: PlaylistsApiAddPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).addPlaylistContents(requestParameters.playlistID, requestParameters.uri, requestParameters.playQueueID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Clears a playlist, only works with dumb playlists. Returns the playlist. - * @summary Delete Playlist Contents - * @param {PlaylistsApiClearPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public clearPlaylistContents(requestParameters: PlaylistsApiClearPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).clearPlaylistContents(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Create a new playlist. By default the playlist is blank. To create a playlist along with a first item, pass: - `uri` - The content URI for what we\'re playing (e.g. `library://...`). - `playQueueID` - To create a playlist from an existing play queue. - * @summary Create a Playlist - * @param {PlaylistsApiCreatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public createPlaylist(requestParameters: PlaylistsApiCreatePlaylistRequest, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).createPlaylist(requestParameters.title, requestParameters.type, requestParameters.smart, requestParameters.uri, requestParameters.playQueueID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint will delete a playlist - * @summary Deletes a Playlist - * @param {PlaylistsApiDeletePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public deletePlaylist(requestParameters: PlaylistsApiDeletePlaylistRequest, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).deletePlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item: Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing. - * @summary Retrieve Playlist - * @param {PlaylistsApiGetPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public getPlaylist(requestParameters: PlaylistsApiGetPlaylistRequest, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).getPlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Gets the contents of a playlist. Should be paged by clients via standard mechanisms. By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter. For example, you could use this to display a list of recently added albums vis a smart playlist. Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items. - * @summary Retrieve Playlist Contents - * @param {PlaylistsApiGetPlaylistContentsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public getPlaylistContents(requestParameters: PlaylistsApiGetPlaylistContentsRequest, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).getPlaylistContents(requestParameters.playlistID, requestParameters.type, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get All Playlists - * @param {PlaylistsApiGetPlaylistsRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public getPlaylists(requestParameters: PlaylistsApiGetPlaylistsRequest = {}, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).getPlaylists(requestParameters.playlistType, requestParameters.smart, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}` - * @summary Update a Playlist - * @param {PlaylistsApiUpdatePlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public updatePlaylist(requestParameters: PlaylistsApiUpdatePlaylistRequest, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).updatePlaylist(requestParameters.playlistID, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file. - * @summary Upload Playlist - * @param {PlaylistsApiUploadPlaylistRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof PlaylistsApi - */ - public uploadPlaylist(requestParameters: PlaylistsApiUploadPlaylistRequest, axiosOptions?: AxiosRequestConfig) { - return PlaylistsApiFp(this.configuration).uploadPlaylist(requestParameters.path, requestParameters.force, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * SearchApi - axios parameter creator - * @export - */ -export const SearchApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch: async (query: any, sectionId?: any, limit?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'query' is not null or undefined - assertParamExists('performSearch', 'query', query) - const localVarPath = `/hubs/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - if (sectionId !== undefined) { - localVarQueryParameter['sectionId'] = sectionId; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch: async (query: any, sectionId?: any, limit?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'query' is not null or undefined - assertParamExists('performVoiceSearch', 'query', query) - const localVarPath = `/hubs/search/voice`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - if (sectionId !== undefined) { - localVarQueryParameter['sectionId'] = sectionId; - } - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * SearchApi - functional programming interface - * @export - */ -export const SearchApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration) - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async performSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.performSearch(query, sectionId, limit, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async performVoiceSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.performVoiceSearch(query, sectionId, limit, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * SearchApi - factory interface - * @export - */ -export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SearchApiFp(configuration) - return { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.performSearch(query, sectionId, limit, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {any} query The query term - * @param {any} [sectionId] This gives context to the search, and can result in re-ordering of search result hubs - * @param {any} [limit] The number of items to return per hub - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - performVoiceSearch(query: any, sectionId?: any, limit?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.performVoiceSearch(query, sectionId, limit, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for performSearch operation in SearchApi. - * @export - * @interface SearchApiPerformSearchRequest - */ -export interface SearchApiPerformSearchRequest { - /** - * The query term - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly query: any - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly sectionId?: any - - /** - * The number of items to return per hub - * @type {any} - * @memberof SearchApiPerformSearch - */ - readonly limit?: any -} - -/** - * Request parameters for performVoiceSearch operation in SearchApi. - * @export - * @interface SearchApiPerformVoiceSearchRequest - */ -export interface SearchApiPerformVoiceSearchRequest { - /** - * The query term - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly query: any - - /** - * This gives context to the search, and can result in re-ordering of search result hubs - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly sectionId?: any - - /** - * The number of items to return per hub - * @type {any} - * @memberof SearchApiPerformVoiceSearch - */ - readonly limit?: any -} - -/** - * SearchApi - object-oriented interface - * @export - * @class SearchApi - * @extends {BaseAPI} - */ -export class SearchApi extends BaseAPI { - /** - * This endpoint performs a search across all library sections, or a single section, and returns matches as hubs, split up by type. It performs spell checking, looks for partial matches, and orders the hubs based on quality of results. In addition, based on matches, it will return other related matches (e.g. for a genre match, it may return movies in that genre, or for an actor match, movies with that actor). In the response\'s items, the following extra attributes are returned to further describe or disambiguate the result: - `reason`: The reason for the result, if not because of a direct search term match; can be either: - `section`: There are multiple identical results from different sections. - `originalTitle`: There was a search term match from the original title field (sometimes those can be very different or in a foreign language). - ``: If the reason for the result is due to a result in another hub, the source hub identifier is returned. For example, if the search is for \"dylan\" then Bob Dylan may be returned as an artist result, an a few of his albums returned as album results with a reason code of `artist` (the identifier of that particular hub). Or if the search is for \"arnold\", there might be movie results returned with a reason of `actor` - `reasonTitle`: The string associated with the reason code. For a section reason, it\'ll be the section name; For a hub identifier, it\'ll be a string associated with the match (e.g. `Arnold Schwarzenegger` for movies which were returned because the search was for \"arnold\"). - `reasonID`: The ID of the item associated with the reason for the result. This might be a section ID, a tag ID, an artist ID, or a show ID. This request is intended to be very fast, and called as the user types. - * @summary Perform a search - * @param {SearchApiPerformSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - public performSearch(requestParameters: SearchApiPerformSearchRequest, axiosOptions?: AxiosRequestConfig) { - return SearchApiFp(this.configuration).performSearch(requestParameters.query, requestParameters.sectionId, requestParameters.limit, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint performs a search specifically tailored towards voice or other imprecise input which may work badly with the substring and spell-checking heuristics used by the `/hubs/search` endpoint. It uses a [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) heuristic to search titles, and as such is much slower than the other search endpoint. Whenever possible, clients should limit the search to the appropriate type. Results, as well as their containing per-type hubs, contain a `distance` attribute which can be used to judge result quality. - * @summary Perform a voice search - * @param {SearchApiPerformVoiceSearchRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SearchApi - */ - public performVoiceSearch(requestParameters: SearchApiPerformVoiceSearchRequest, axiosOptions?: AxiosRequestConfig) { - return SearchApiFp(this.configuration).performVoiceSearch(requestParameters.query, requestParameters.sectionId, requestParameters.limit, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * SecurityApi - axios parameter creator - * @export - */ -export const SecurityApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation: async (source: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'source' is not null or undefined - assertParamExists('getSourceConnectionInformation', 'source', source) - const localVarPath = `/security/resources`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (source !== undefined) { - localVarQueryParameter['source'] = source; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken: async (type: any, scope: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'type' is not null or undefined - assertParamExists('getTransientToken', 'type', type) - // verify required parameter 'scope' is not null or undefined - assertParamExists('getTransientToken', 'scope', scope) - const localVarPath = `/security/token`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * SecurityApi - functional programming interface - * @export - */ -export const SecurityApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SecurityApiAxiosParamCreator(configuration) - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSourceConnectionInformation(source: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSourceConnectionInformation(source, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getTransientToken(type: any, scope: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getTransientToken(type, scope, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * SecurityApi - factory interface - * @export - */ -export const SecurityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SecurityApiFp(configuration) - return { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {any} source The source identifier with an included prefix. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSourceConnectionInformation(source: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getSourceConnectionInformation(source, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {any} type `delegation` - This is the only supported `type` parameter. - * @param {any} scope `all` - This is the only supported `scope` parameter. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getTransientToken(type: any, scope: any, axiosOptions?: any): AxiosPromise { - return localVarFp.getTransientToken(type, scope, axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for getSourceConnectionInformation operation in SecurityApi. - * @export - * @interface SecurityApiGetSourceConnectionInformationRequest - */ -export interface SecurityApiGetSourceConnectionInformationRequest { - /** - * The source identifier with an included prefix. - * @type {any} - * @memberof SecurityApiGetSourceConnectionInformation - */ - readonly source: any -} - -/** - * Request parameters for getTransientToken operation in SecurityApi. - * @export - * @interface SecurityApiGetTransientTokenRequest - */ -export interface SecurityApiGetTransientTokenRequest { - /** - * `delegation` - This is the only supported `type` parameter. - * @type {any} - * @memberof SecurityApiGetTransientToken - */ - readonly type: any - - /** - * `all` - This is the only supported `scope` parameter. - * @type {any} - * @memberof SecurityApiGetTransientToken - */ - readonly scope: any -} - -/** - * SecurityApi - object-oriented interface - * @export - * @class SecurityApi - * @extends {BaseAPI} - */ -export class SecurityApi extends BaseAPI { - /** - * If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token. Note: requires Plex Media Server >= 1.15.4. - * @summary Get Source Connection Information - * @param {SecurityApiGetSourceConnectionInformationRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - public getSourceConnectionInformation(requestParameters: SecurityApiGetSourceConnectionInformationRequest, axiosOptions?: AxiosRequestConfig) { - return SecurityApiFp(this.configuration).getSourceConnectionInformation(requestParameters.source, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This endpoint provides the caller with a temporary token with the same access level as the caller\'s token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted. - * @summary Get a Transient Token. - * @param {SecurityApiGetTransientTokenRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SecurityApi - */ - public getTransientToken(requestParameters: SecurityApiGetTransientTokenRequest, axiosOptions?: AxiosRequestConfig) { - return SecurityApiFp(this.configuration).getTransientToken(requestParameters.type, requestParameters.scope, axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * ServerApi - axios parameter creator - * @export - */ -export const ServerApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/:/prefs`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * ServerApi - functional programming interface - * @export - */ -export const ServerApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ServerApiAxiosParamCreator(configuration) - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerCapabilities(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerCapabilities(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getServerPreferences(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getServerPreferences(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * ServerApi - factory interface - * @export - */ -export const ServerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ServerApiFp(configuration) - return { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerCapabilities(axiosOptions?: any): AxiosPromise { - return localVarFp.getServerCapabilities(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getServerPreferences(axiosOptions?: any): AxiosPromise { - return localVarFp.getServerPreferences(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ServerApi - object-oriented interface - * @export - * @class ServerApi - * @extends {BaseAPI} - */ -export class ServerApi extends BaseAPI { - /** - * Server Capabilities - * @summary Server Capabilities - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - public getServerCapabilities(axiosOptions?: AxiosRequestConfig) { - return ServerApiFp(this.configuration).getServerCapabilities(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Get Server Preferences - * @summary Get Server Preferences - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof ServerApi - */ - public getServerPreferences(axiosOptions?: AxiosRequestConfig) { - return ServerApiFp(this.configuration).getServerPreferences(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * SessionsApi - axios parameter creator - * @export - */ -export const SessionsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/status/sessions/history/all`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/status/sessions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * SessionsApi - functional programming interface - * @export - */ -export const SessionsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SessionsApiAxiosParamCreator(configuration) - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSessionHistory(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionHistory(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getSessions(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getSessions(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * SessionsApi - factory interface - * @export - */ -export const SessionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SessionsApiFp(configuration) - return { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessionHistory(axiosOptions?: any): AxiosPromise { - return localVarFp.getSessionHistory(axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getSessions(axiosOptions?: any): AxiosPromise { - return localVarFp.getSessions(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * SessionsApi - object-oriented interface - * @export - * @class SessionsApi - * @extends {BaseAPI} - */ -export class SessionsApi extends BaseAPI { - /** - * This will Retrieve a listing of all history views. - * @summary Get Session History - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - public getSessionHistory(axiosOptions?: AxiosRequestConfig) { - return SessionsApiFp(this.configuration).getSessionHistory(axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * This will retrieve the \"Now Playing\" Information of the PMS. - * @summary Get Active Sessions - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof SessionsApi - */ - public getSessions(axiosOptions?: AxiosRequestConfig) { - return SessionsApiFp(this.configuration).getSessions(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * UpdaterApi - axios parameter creator - * @export - */ -export const UpdaterApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates: async (tonight?: any, skip?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/updater/apply`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (tonight !== undefined) { - localVarQueryParameter['tonight'] = tonight; - } - - if (skip !== undefined) { - localVarQueryParameter['skip'] = skip; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates: async (download?: any, axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/updater/check`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - if (download !== undefined) { - localVarQueryParameter['download'] = download; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/updater/status`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * UpdaterApi - functional programming interface - * @export - */ -export const UpdaterApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = UpdaterApiAxiosParamCreator(configuration) - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async applyUpdates(tonight?: any, skip?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.applyUpdates(tonight, skip, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async checkForUpdates(download?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.checkForUpdates(download, axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async queryUpdateStatus(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.queryUpdateStatus(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * UpdaterApi - factory interface - * @export - */ -export const UpdaterApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = UpdaterApiFp(configuration) - return { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {any} [tonight] Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {any} [skip] Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - applyUpdates(tonight?: any, skip?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.applyUpdates(tonight, skip, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Checking for updates - * @summary Checking for updates - * @param {any} [download] Indicate that you want to start download any updates found. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - checkForUpdates(download?: any, axiosOptions?: any): AxiosPromise { - return localVarFp.checkForUpdates(download, axiosOptions).then((request) => request(axios, basePath)); - }, - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - queryUpdateStatus(axiosOptions?: any): AxiosPromise { - return localVarFp.queryUpdateStatus(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * Request parameters for applyUpdates operation in UpdaterApi. - * @export - * @interface UpdaterApiApplyUpdatesRequest - */ -export interface UpdaterApiApplyUpdatesRequest { - /** - * Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @type {any} - * @memberof UpdaterApiApplyUpdates - */ - readonly tonight?: any - - /** - * Indicate that the latest version should be marked as skipped. The <Release> entry for this version will have the `state` set to `skipped`. - * @type {any} - * @memberof UpdaterApiApplyUpdates - */ - readonly skip?: any -} - -/** - * Request parameters for checkForUpdates operation in UpdaterApi. - * @export - * @interface UpdaterApiCheckForUpdatesRequest - */ -export interface UpdaterApiCheckForUpdatesRequest { - /** - * Indicate that you want to start download any updates found. - * @type {any} - * @memberof UpdaterApiCheckForUpdates - */ - readonly download?: any -} - -/** - * UpdaterApi - object-oriented interface - * @export - * @class UpdaterApi - * @extends {BaseAPI} - */ -export class UpdaterApi extends BaseAPI { - /** - * Note that these two parameters are effectively mutually exclusive. The `tonight` parameter takes precedence and `skip` will be ignored if `tonight` is also passed - * @summary Apply Updates - * @param {UpdaterApiApplyUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - public applyUpdates(requestParameters: UpdaterApiApplyUpdatesRequest = {}, axiosOptions?: AxiosRequestConfig) { - return UpdaterApiFp(this.configuration).applyUpdates(requestParameters.tonight, requestParameters.skip, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Checking for updates - * @summary Checking for updates - * @param {UpdaterApiCheckForUpdatesRequest} requestParameters Request parameters. - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - public checkForUpdates(requestParameters: UpdaterApiCheckForUpdatesRequest = {}, axiosOptions?: AxiosRequestConfig) { - return UpdaterApiFp(this.configuration).checkForUpdates(requestParameters.download, axiosOptions).then((request) => request(this.axios, this.basePath)); - } - - /** - * Querying status of updates - * @summary Querying status of updates - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UpdaterApi - */ - public queryUpdateStatus(axiosOptions?: AxiosRequestConfig) { - return UpdaterApiFp(this.configuration).queryUpdateStatus(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - -/** - * UserApi - axios parameter creator - * @export - */ -export const UserApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails: async (axiosOptions: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/user`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication ClientIdentifier required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration) - - // authentication DeviceName required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Device-Name", configuration) - - // authentication Host required - await setApiKeyToObject(localVarHeaderParameter, "Host", configuration) - - // authentication Token required - await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; - - return { - url: toPathString(localVarUrlObj), - axiosOptions: localVarRequestOptions, - }; - }, - } -}; - -/** - * UserApi - functional programming interface - * @export - */ -export const UserApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration) - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - async getUserDetails(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getUserDetails(axiosOptions); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - } -}; - -/** - * UserApi - factory interface - * @export - */ -export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = UserApiFp(configuration) - return { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - */ - getUserDetails(axiosOptions?: any): AxiosPromise { - return localVarFp.getUserDetails(axiosOptions).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * UserApi - object-oriented interface - * @export - * @class UserApi - * @extends {BaseAPI} - */ -export class UserApi extends BaseAPI { - /** - * Get Logged in User - * @summary Get Logged in User - * @param {*} [axiosOptions] Override http request option. - * @throws {RequiredError} - * @memberof UserApi - */ - public getUserDetails(axiosOptions?: AxiosRequestConfig) { - return UserApiFp(this.configuration).getUserDetails(axiosOptions).then((request) => request(this.axios, this.basePath)); - } -} - - diff --git a/sdk-output/base.ts b/sdk-output/base.ts deleted file mode 100644 index 21ea264c..00000000 --- a/sdk-output/base.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { Configuration } from "./configuration"; -// Some imports not used depending on template conditions -// @ts-ignore -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; - -export const BASE_PATH = "http://10.10.10.47:32400".replace(/\/+$/, ""); - -/** - * - * @export - */ -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -/** - * - * @export - * @interface RequestArgs - */ -export interface RequestArgs { - url: string; - axiosOptions: AxiosRequestConfig; -} - -/** - * - * @export - * @class BaseAPI - */ -export class BaseAPI { - protected configuration: Configuration | undefined; - - constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { - if (configuration) { - this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; - } - } -}; - -/** - * - * @export - * @class RequiredError - * @extends {Error} - */ -export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} diff --git a/sdk-output/common.ts b/sdk-output/common.ts deleted file mode 100644 index cf52552c..00000000 --- a/sdk-output/common.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { Configuration } from "./configuration"; -import { RequiredError, RequestArgs } from "./base"; -import { AxiosInstance, AxiosResponse } from 'axios'; -import axiosRetry from "axios-retry"; - -/** - * - * @export - */ -export const DUMMY_BASE_URL = 'https://example.com' - -/** - * - * @throws {RequiredError} - * @export - */ -export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { - if (paramValue === null || paramValue === undefined) { - throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); - } -} - -/** - * - * @export - */ -export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? await configuration.apiKey(keyParamName) - : await configuration.apiKey; - object[keyParamName] = localVarApiKeyValue; - } -} - - -/** - * - * @export - */ -export const setSearchParams = function (url: URL, ...objects: any[]) { - const searchParams = new URLSearchParams(url.search); - for (const object of objects) { - for (const key in object) { - if (Array.isArray(object[key])) { - searchParams.delete(key); - for (const item of object[key]) { - searchParams.append(key, item); - } - } else { - searchParams.set(key, object[key]); - } - } - } - url.search = searchParams.toString(); -} - -/** - * - * @export - */ -export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { - const nonString = typeof value !== 'string'; - const needsSerialization = nonString && configuration && configuration.isJsonMime - ? configuration.isJsonMime(requestOptions.headers['Content-Type']) - : nonString; - return needsSerialization - ? JSON.stringify(value !== undefined ? value : {}) - : (value || ""); -} - -/** - * - * @export - */ -export const toPathString = function (url: URL) { - return url.pathname + url.search + url.hash -} - -/** - * - * @export - */ -export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { - return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - axiosRetry(globalAxios, configuration.retriesConfig) - const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (configuration?.basePath || basePath) + axiosArgs.url}; - return axios.request(axiosRequestArgs); - }; -} diff --git a/sdk-output/configuration.ts b/sdk-output/configuration.ts deleted file mode 100644 index 5e8fb05c..00000000 --- a/sdk-output/configuration.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { IAxiosRetryConfig } from "axios-retry"; - -export interface ConfigurationParameters { - - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - basePath?: string; - -} - -export class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath?: string; - - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions?: any; - - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor?: new () => any; - - /** - * axios retry configuration - * - * @type {IAxiosRetryConfig} - * @memberof Configuration - */ - retriesConfig?: IAxiosRetryConfig - - constructor(param: ConfigurationParameters = {}) { - - this.apiKey = param.apiKey; - this.basePath = param.basePath; - - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public isJsonMime(mime: string): boolean { - const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); - return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); - } -} diff --git a/sdk-output/git_push.sh b/sdk-output/git_push.sh deleted file mode 100644 index f53a75d4..00000000 --- a/sdk-output/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/sdk-output/index.ts b/sdk-output/index.ts deleted file mode 100644 index 15a49473..00000000 --- a/sdk-output/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Plex-API - * An Open API Spec for interacting with Plex.tv and Plex Servers - * - * The version of the OpenAPI document: 0.0.3 - * Contact: Lukeslakemail@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export * from "./api"; - diff --git a/sdk-output/package.json b/sdk-output/package.json deleted file mode 100644 index a3948303..00000000 --- a/sdk-output/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "plexjs", - "version": "0.0.5", - "description": "OpenAPI client for plexjs", - "author": "OpenAPI-Generator Contributors", - "repository": { - "type": "git", - "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" - }, - "keywords": [ - "axios", - "typescript", - "openapi-client", - "openapi-generator", - "plexjs" - ], - "license": "Unlicense", - "main": "../dist/index.js", - "typings": "../dist/index.d.ts", - "scripts": { - "build": "tsc --outDir dist/", - "prepare": "npm run build" - }, - "dependencies": { - "axios": "^0.26.1", - "axios-retry": "^3.4.0" - }, - "devDependencies": { - "@types/node": "^12.11.5", - "typescript": "^4.0" - }, - "publishConfig": { - "registry": "lukehagar" - } -} diff --git a/sdk-output/tsconfig.json b/sdk-output/tsconfig.json deleted file mode 100644 index 383a290d..00000000 --- a/sdk-output/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "declaration": true, - "target": "ES5", - "module": "CommonJS", - "noImplicitAny": true, - "outDir": "dist", - "rootDir": ".", - "lib": [ - "es6", - "dom" - ], - "typeRoots": [ - "node_modules/@types" - ] - }, - "exclude": [ - "dist", - "node_modules" - ] -} diff --git a/sdk-resources/package.mustache b/sdk-resources/package.mustache index 559275d9..d26b9561 100644 --- a/sdk-resources/package.mustache +++ b/sdk-resources/package.mustache @@ -1,5 +1,5 @@ { - "name": "{{npmName}}", + "name": "@lukehagar/plexjs", "version": "{{npmVersion}}", "description": "Community Made Plex JS/TS Module", "author": "Luke Hagar", diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index b4b4376c..00000000 --- a/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "esModuleInterop": true, - "moduleResolution": "node", - "declaration": true, - "target": "es2022", - "module": "es2022", - "noImplicitAny": true, - "outDir": "dist", - "rootDir": ".", - "lib": [ - "es6", - "dom" - ], - "typeRoots": [ - "node_modules/@types" - ], - "sourceMap": true - }, - "exclude": [ - "dist", - "node_modules" - ] -} diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index 19cbb275..00000000 --- a/yarn.lock +++ /dev/null @@ -1,67 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@babel/runtime@^7.15.4": - "integrity" "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==" - "resolved" "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz" - "version" "7.21.0" - dependencies: - "regenerator-runtime" "^0.13.11" - -"@types/js-yaml@^4.0.5": - "integrity" "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==" - "resolved" "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz" - "version" "4.0.5" - -"@types/node@^12.11.5": - "integrity" "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" - "resolved" "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz" - "version" "12.20.55" - -"argparse@^2.0.1": - "integrity" "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - "resolved" "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" - "version" "2.0.1" - -"axios-retry@^3.4.0": - "integrity" "sha512-VdgaP+gHH4iQYCCNUWF2pcqeciVOdGrBBAYUfTY+wPcO5Ltvp/37MLFNCmJKo7Gj3SHvCSdL8ouI1qLYJN3liA==" - "resolved" "https://registry.npmjs.org/axios-retry/-/axios-retry-3.4.0.tgz" - "version" "3.4.0" - dependencies: - "@babel/runtime" "^7.15.4" - "is-retry-allowed" "^2.2.0" - -"axios@^0.26.1": - "integrity" "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==" - "resolved" "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz" - "version" "0.26.1" - dependencies: - "follow-redirects" "^1.14.8" - -"follow-redirects@^1.14.8": - "integrity" "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" - "resolved" "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" - "version" "1.15.2" - -"is-retry-allowed@^2.2.0": - "integrity" "sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==" - "resolved" "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz" - "version" "2.2.0" - -"js-yaml@^4.1.0": - "integrity" "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==" - "resolved" "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "argparse" "^2.0.1" - -"regenerator-runtime@^0.13.11": - "integrity" "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" - "resolved" "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz" - "version" "0.13.11" - -"typescript@^4.0": - "integrity" "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==" - "resolved" "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz" - "version" "4.9.5"