mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Automated build 'Merge branch 'main' of https://github.com/LukeHagar/plex-api-spec' typescript-axios sdk: 4679363310
This commit is contained in:
264
dist/sdk-output/api.d.ts
vendored
264
dist/sdk-output/api.d.ts
vendored
@@ -851,17 +851,33 @@ export declare const DevicesApiAxiosParamCreator: (configuration?: Configuration
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAvailableClients: (axiosOptions?: AxiosRequestConfig) => Promise<RequestArgs>;
|
||||
getAvailableClients: (xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig) => Promise<RequestArgs>;
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDevices: (axiosOptions?: AxiosRequestConfig) => Promise<RequestArgs>;
|
||||
getDevices: (xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig) => Promise<RequestArgs>;
|
||||
};
|
||||
/**
|
||||
* DevicesApi - functional programming interface
|
||||
@@ -871,17 +887,33 @@ export declare const DevicesApiFp: (configuration?: Configuration) => {
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAvailableClients(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAvailableClients200Response>>;
|
||||
getAvailableClients(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAvailableClients200Response>>;
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDevices(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDevices200Response>>;
|
||||
getDevices(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDevices200Response>>;
|
||||
};
|
||||
/**
|
||||
* DevicesApi - factory interface
|
||||
@@ -891,18 +923,144 @@ export declare const DevicesApiFactory: (configuration?: Configuration, basePath
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAvailableClients(axiosOptions?: any): AxiosPromise<GetAvailableClients200Response>;
|
||||
getAvailableClients(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<GetAvailableClients200Response>;
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDevices(axiosOptions?: any): AxiosPromise<GetDevices200Response>;
|
||||
getDevices(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<GetDevices200Response>;
|
||||
};
|
||||
/**
|
||||
* Request parameters for getAvailableClients operation in DevicesApi.
|
||||
* @export
|
||||
* @interface DevicesApiGetAvailableClientsRequest
|
||||
*/
|
||||
export interface DevicesApiGetAvailableClientsRequest {
|
||||
/**
|
||||
* UUID, serial number, or other number unique per device
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexClientIdentifier: any;
|
||||
/**
|
||||
* Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexDeviceName?: any;
|
||||
/**
|
||||
* Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexDevice?: any;
|
||||
/**
|
||||
* Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexPlatformVersion?: any;
|
||||
/**
|
||||
* Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexPlatform?: any;
|
||||
/**
|
||||
* Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexProduct?: any;
|
||||
/**
|
||||
* One or more of [player, controller, server]
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexProvides?: any;
|
||||
/**
|
||||
* Plex application version number
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexVersion?: any;
|
||||
}
|
||||
/**
|
||||
* Request parameters for getDevices operation in DevicesApi.
|
||||
* @export
|
||||
* @interface DevicesApiGetDevicesRequest
|
||||
*/
|
||||
export interface DevicesApiGetDevicesRequest {
|
||||
/**
|
||||
* UUID, serial number, or other number unique per device
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexClientIdentifier: any;
|
||||
/**
|
||||
* Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexDeviceName?: any;
|
||||
/**
|
||||
* Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexDevice?: any;
|
||||
/**
|
||||
* Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexPlatformVersion?: any;
|
||||
/**
|
||||
* Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexPlatform?: any;
|
||||
/**
|
||||
* Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexProduct?: any;
|
||||
/**
|
||||
* One or more of [player, controller, server]
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexProvides?: any;
|
||||
/**
|
||||
* Plex application version number
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexVersion?: any;
|
||||
}
|
||||
/**
|
||||
* DevicesApi - object-oriented interface
|
||||
* @export
|
||||
@@ -913,19 +1071,21 @@ export declare class DevicesApi extends BaseAPI {
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {DevicesApiGetAvailableClientsRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DevicesApi
|
||||
*/
|
||||
getAvailableClients(axiosOptions?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAvailableClients200Response, any>>;
|
||||
getAvailableClients(requestParameters: DevicesApiGetAvailableClientsRequest, axiosOptions?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAvailableClients200Response, any>>;
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {DevicesApiGetDevicesRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DevicesApi
|
||||
*/
|
||||
getDevices(axiosOptions?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDevices200Response, any>>;
|
||||
getDevices(requestParameters: DevicesApiGetDevicesRequest, axiosOptions?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDevices200Response, any>>;
|
||||
}
|
||||
/**
|
||||
* HashesApi - axios parameter creator
|
||||
@@ -2812,10 +2972,18 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails: (axiosOptions?: AxiosRequestConfig) => Promise<RequestArgs>;
|
||||
getCurrentUserDetails: (xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig) => Promise<RequestArgs>;
|
||||
};
|
||||
/**
|
||||
* UserApi - functional programming interface
|
||||
@@ -2825,10 +2993,18 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||
getCurrentUserDetails(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
||||
};
|
||||
/**
|
||||
* UserApi - factory interface
|
||||
@@ -2838,11 +3014,74 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails(axiosOptions?: any): AxiosPromise<void>;
|
||||
getCurrentUserDetails(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<void>;
|
||||
};
|
||||
/**
|
||||
* Request parameters for getCurrentUserDetails operation in UserApi.
|
||||
* @export
|
||||
* @interface UserApiGetCurrentUserDetailsRequest
|
||||
*/
|
||||
export interface UserApiGetCurrentUserDetailsRequest {
|
||||
/**
|
||||
* UUID, serial number, or other number unique per device
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexClientIdentifier: any;
|
||||
/**
|
||||
* Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexDeviceName?: any;
|
||||
/**
|
||||
* Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexDevice?: any;
|
||||
/**
|
||||
* Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexPlatformVersion?: any;
|
||||
/**
|
||||
* Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexPlatform?: any;
|
||||
/**
|
||||
* Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexProduct?: any;
|
||||
/**
|
||||
* One or more of [player, controller, server]
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexProvides?: any;
|
||||
/**
|
||||
* Plex application version number
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexVersion?: any;
|
||||
}
|
||||
/**
|
||||
* UserApi - object-oriented interface
|
||||
* @export
|
||||
@@ -2853,9 +3092,10 @@ export declare class UserApi extends BaseAPI {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {UserApiGetCurrentUserDetailsRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserApi
|
||||
*/
|
||||
getCurrentUserDetails(axiosOptions?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
||||
getCurrentUserDetails(requestParameters: UserApiGetCurrentUserDetailsRequest, axiosOptions?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
||||
}
|
||||
|
||||
195
dist/sdk-output/api.js
vendored
195
dist/sdk-output/api.js
vendored
@@ -658,16 +658,26 @@ var DevicesApiAxiosParamCreator = function (configuration) {
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAvailableClients: function (axiosOptions) {
|
||||
getAvailableClients: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
if (axiosOptions === void 0) { axiosOptions = {}; }
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'xPlexClientIdentifier' is not null or undefined
|
||||
(0, common_1.assertParamExists)('getAvailableClients', 'xPlexClientIdentifier', xPlexClientIdentifier);
|
||||
localVarPath = "/clients";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -681,6 +691,30 @@ var DevicesApiAxiosParamCreator = function (configuration) {
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
|
||||
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
|
||||
}
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
if (xPlexDevice !== undefined && xPlexDevice !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device'] = String(JSON.stringify(xPlexDevice));
|
||||
}
|
||||
if (xPlexPlatformVersion !== undefined && xPlexPlatformVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform-Version'] = String(JSON.stringify(xPlexPlatformVersion));
|
||||
}
|
||||
if (xPlexPlatform !== undefined && xPlexPlatform !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform'] = String(JSON.stringify(xPlexPlatform));
|
||||
}
|
||||
if (xPlexProduct !== undefined && xPlexProduct !== null) {
|
||||
localVarHeaderParameter['X-Plex-Product'] = String(JSON.stringify(xPlexProduct));
|
||||
}
|
||||
if (xPlexProvides !== undefined && xPlexProvides !== null) {
|
||||
localVarHeaderParameter['X-Plex-Provides'] = String(JSON.stringify(xPlexProvides));
|
||||
}
|
||||
if (xPlexVersion !== undefined && xPlexVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Version'] = String(JSON.stringify(xPlexVersion));
|
||||
}
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -695,16 +729,26 @@ var DevicesApiAxiosParamCreator = function (configuration) {
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDevices: function (axiosOptions) {
|
||||
getDevices: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
if (axiosOptions === void 0) { axiosOptions = {}; }
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'xPlexClientIdentifier' is not null or undefined
|
||||
(0, common_1.assertParamExists)('getDevices', 'xPlexClientIdentifier', xPlexClientIdentifier);
|
||||
localVarPath = "/resources";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -718,6 +762,30 @@ var DevicesApiAxiosParamCreator = function (configuration) {
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
|
||||
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
|
||||
}
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
if (xPlexDevice !== undefined && xPlexDevice !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device'] = String(JSON.stringify(xPlexDevice));
|
||||
}
|
||||
if (xPlexPlatformVersion !== undefined && xPlexPlatformVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform-Version'] = String(JSON.stringify(xPlexPlatformVersion));
|
||||
}
|
||||
if (xPlexPlatform !== undefined && xPlexPlatform !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform'] = String(JSON.stringify(xPlexPlatform));
|
||||
}
|
||||
if (xPlexProduct !== undefined && xPlexProduct !== null) {
|
||||
localVarHeaderParameter['X-Plex-Product'] = String(JSON.stringify(xPlexProduct));
|
||||
}
|
||||
if (xPlexProvides !== undefined && xPlexProvides !== null) {
|
||||
localVarHeaderParameter['X-Plex-Provides'] = String(JSON.stringify(xPlexProvides));
|
||||
}
|
||||
if (xPlexVersion !== undefined && xPlexVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Version'] = String(JSON.stringify(xPlexVersion));
|
||||
}
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -742,15 +810,23 @@ var DevicesApiFp = function (configuration) {
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAvailableClients: function (axiosOptions) {
|
||||
getAvailableClients: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var localVarAxiosArgs;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAvailableClients(axiosOptions)];
|
||||
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAvailableClients(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions)];
|
||||
case 1:
|
||||
localVarAxiosArgs = _a.sent();
|
||||
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
||||
@@ -761,15 +837,23 @@ var DevicesApiFp = function (configuration) {
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDevices: function (axiosOptions) {
|
||||
getDevices: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var localVarAxiosArgs;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDevices(axiosOptions)];
|
||||
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDevices(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions)];
|
||||
case 1:
|
||||
localVarAxiosArgs = _a.sent();
|
||||
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
||||
@@ -790,20 +874,36 @@ var DevicesApiFactory = function (configuration, basePath, axios) {
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAvailableClients: function (axiosOptions) {
|
||||
return localVarFp.getAvailableClients(axiosOptions).then(function (request) { return request(axios, basePath); });
|
||||
getAvailableClients: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
return localVarFp.getAvailableClients(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then(function (request) { return request(axios, basePath); });
|
||||
},
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDevices: function (axiosOptions) {
|
||||
return localVarFp.getDevices(axiosOptions).then(function (request) { return request(axios, basePath); });
|
||||
getDevices: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
return localVarFp.getDevices(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then(function (request) { return request(axios, basePath); });
|
||||
},
|
||||
};
|
||||
};
|
||||
@@ -822,24 +922,26 @@ var DevicesApi = /** @class */ (function (_super) {
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {DevicesApiGetAvailableClientsRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DevicesApi
|
||||
*/
|
||||
DevicesApi.prototype.getAvailableClients = function (axiosOptions) {
|
||||
DevicesApi.prototype.getAvailableClients = function (requestParameters, axiosOptions) {
|
||||
var _this = this;
|
||||
return (0, exports.DevicesApiFp)(this.configuration).getAvailableClients(axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
||||
return (0, exports.DevicesApiFp)(this.configuration).getAvailableClients(requestParameters.xPlexClientIdentifier, requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, axiosOptions).then(function (request) { return 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
|
||||
*/
|
||||
DevicesApi.prototype.getDevices = function (axiosOptions) {
|
||||
DevicesApi.prototype.getDevices = function (requestParameters, axiosOptions) {
|
||||
var _this = this;
|
||||
return (0, exports.DevicesApiFp)(this.configuration).getDevices(axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
||||
return (0, exports.DevicesApiFp)(this.configuration).getDevices(requestParameters.xPlexClientIdentifier, requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
||||
};
|
||||
return DevicesApi;
|
||||
}(base_1.BaseAPI));
|
||||
@@ -4178,16 +4280,26 @@ var UserApiAxiosParamCreator = function (configuration) {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails: function (axiosOptions) {
|
||||
getCurrentUserDetails: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
if (axiosOptions === void 0) { axiosOptions = {}; }
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'xPlexClientIdentifier' is not null or undefined
|
||||
(0, common_1.assertParamExists)('getCurrentUserDetails', 'xPlexClientIdentifier', xPlexClientIdentifier);
|
||||
localVarPath = "/user";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -4201,6 +4313,30 @@ var UserApiAxiosParamCreator = function (configuration) {
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
|
||||
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
|
||||
}
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
if (xPlexDevice !== undefined && xPlexDevice !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device'] = String(JSON.stringify(xPlexDevice));
|
||||
}
|
||||
if (xPlexPlatformVersion !== undefined && xPlexPlatformVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform-Version'] = String(JSON.stringify(xPlexPlatformVersion));
|
||||
}
|
||||
if (xPlexPlatform !== undefined && xPlexPlatform !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform'] = String(JSON.stringify(xPlexPlatform));
|
||||
}
|
||||
if (xPlexProduct !== undefined && xPlexProduct !== null) {
|
||||
localVarHeaderParameter['X-Plex-Product'] = String(JSON.stringify(xPlexProduct));
|
||||
}
|
||||
if (xPlexProvides !== undefined && xPlexProvides !== null) {
|
||||
localVarHeaderParameter['X-Plex-Provides'] = String(JSON.stringify(xPlexProvides));
|
||||
}
|
||||
if (xPlexVersion !== undefined && xPlexVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Version'] = String(JSON.stringify(xPlexVersion));
|
||||
}
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -4225,15 +4361,23 @@ var UserApiFp = function (configuration) {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails: function (axiosOptions) {
|
||||
getCurrentUserDetails: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var localVarAxiosArgs;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCurrentUserDetails(axiosOptions)];
|
||||
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCurrentUserDetails(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions)];
|
||||
case 1:
|
||||
localVarAxiosArgs = _a.sent();
|
||||
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
||||
@@ -4254,11 +4398,19 @@ var UserApiFactory = function (configuration, basePath, axios) {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails: function (axiosOptions) {
|
||||
return localVarFp.getCurrentUserDetails(axiosOptions).then(function (request) { return request(axios, basePath); });
|
||||
getCurrentUserDetails: function (xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions) {
|
||||
return localVarFp.getCurrentUserDetails(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then(function (request) { return request(axios, basePath); });
|
||||
},
|
||||
};
|
||||
};
|
||||
@@ -4277,13 +4429,14 @@ var UserApi = /** @class */ (function (_super) {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {UserApiGetCurrentUserDetailsRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserApi
|
||||
*/
|
||||
UserApi.prototype.getCurrentUserDetails = function (axiosOptions) {
|
||||
UserApi.prototype.getCurrentUserDetails = function (requestParameters, axiosOptions) {
|
||||
var _this = this;
|
||||
return (0, exports.UserApiFp)(this.configuration).getCurrentUserDetails(axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
||||
return (0, exports.UserApiFp)(this.configuration).getCurrentUserDetails(requestParameters.xPlexClientIdentifier, requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
||||
};
|
||||
return UserApi;
|
||||
}(base_1.BaseAPI));
|
||||
|
||||
2
dist/sdk-output/api.js.map
vendored
2
dist/sdk-output/api.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -1102,10 +1102,20 @@ export const DevicesApiAxiosParamCreator = function (configuration?: Configurati
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAvailableClients: async (axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getAvailableClients: async (xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'xPlexClientIdentifier' is not null or undefined
|
||||
assertParamExists('getAvailableClients', 'xPlexClientIdentifier', xPlexClientIdentifier)
|
||||
const localVarPath = `/clients`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
@@ -1121,6 +1131,38 @@ export const DevicesApiAxiosParamCreator = function (configuration?: Configurati
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
|
||||
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
|
||||
}
|
||||
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
|
||||
if (xPlexDevice !== undefined && xPlexDevice !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device'] = String(JSON.stringify(xPlexDevice));
|
||||
}
|
||||
|
||||
if (xPlexPlatformVersion !== undefined && xPlexPlatformVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform-Version'] = String(JSON.stringify(xPlexPlatformVersion));
|
||||
}
|
||||
|
||||
if (xPlexPlatform !== undefined && xPlexPlatform !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform'] = String(JSON.stringify(xPlexPlatform));
|
||||
}
|
||||
|
||||
if (xPlexProduct !== undefined && xPlexProduct !== null) {
|
||||
localVarHeaderParameter['X-Plex-Product'] = String(JSON.stringify(xPlexProduct));
|
||||
}
|
||||
|
||||
if (xPlexProvides !== undefined && xPlexProvides !== null) {
|
||||
localVarHeaderParameter['X-Plex-Provides'] = String(JSON.stringify(xPlexProvides));
|
||||
}
|
||||
|
||||
if (xPlexVersion !== undefined && xPlexVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Version'] = String(JSON.stringify(xPlexVersion));
|
||||
}
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -1135,10 +1177,20 @@ export const DevicesApiAxiosParamCreator = function (configuration?: Configurati
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDevices: async (axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getDevices: async (xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'xPlexClientIdentifier' is not null or undefined
|
||||
assertParamExists('getDevices', 'xPlexClientIdentifier', xPlexClientIdentifier)
|
||||
const localVarPath = `/resources`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
@@ -1154,6 +1206,38 @@ export const DevicesApiAxiosParamCreator = function (configuration?: Configurati
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
|
||||
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
|
||||
}
|
||||
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
|
||||
if (xPlexDevice !== undefined && xPlexDevice !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device'] = String(JSON.stringify(xPlexDevice));
|
||||
}
|
||||
|
||||
if (xPlexPlatformVersion !== undefined && xPlexPlatformVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform-Version'] = String(JSON.stringify(xPlexPlatformVersion));
|
||||
}
|
||||
|
||||
if (xPlexPlatform !== undefined && xPlexPlatform !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform'] = String(JSON.stringify(xPlexPlatform));
|
||||
}
|
||||
|
||||
if (xPlexProduct !== undefined && xPlexProduct !== null) {
|
||||
localVarHeaderParameter['X-Plex-Product'] = String(JSON.stringify(xPlexProduct));
|
||||
}
|
||||
|
||||
if (xPlexProvides !== undefined && xPlexProvides !== null) {
|
||||
localVarHeaderParameter['X-Plex-Provides'] = String(JSON.stringify(xPlexProvides));
|
||||
}
|
||||
|
||||
if (xPlexVersion !== undefined && xPlexVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Version'] = String(JSON.stringify(xPlexVersion));
|
||||
}
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -1178,21 +1262,37 @@ export const DevicesApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getAvailableClients(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAvailableClients200Response>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableClients(axiosOptions);
|
||||
async getAvailableClients(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAvailableClients200Response>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableClients(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getDevices(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDevices200Response>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getDevices(axiosOptions);
|
||||
async getDevices(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDevices200Response>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getDevices(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
}
|
||||
@@ -1208,24 +1308,166 @@ export const DevicesApiFactory = function (configuration?: Configuration, basePa
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getAvailableClients(axiosOptions?: any): AxiosPromise<GetAvailableClients200Response> {
|
||||
return localVarFp.getAvailableClients(axiosOptions).then((request) => request(axios, basePath));
|
||||
getAvailableClients(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<GetAvailableClients200Response> {
|
||||
return localVarFp.getAvailableClients(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
* Get Devices
|
||||
* @summary Get Devices
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getDevices(axiosOptions?: any): AxiosPromise<GetDevices200Response> {
|
||||
return localVarFp.getDevices(axiosOptions).then((request) => request(axios, basePath));
|
||||
getDevices(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<GetDevices200Response> {
|
||||
return localVarFp.getDevices(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for getAvailableClients operation in DevicesApi.
|
||||
* @export
|
||||
* @interface DevicesApiGetAvailableClientsRequest
|
||||
*/
|
||||
export interface DevicesApiGetAvailableClientsRequest {
|
||||
/**
|
||||
* UUID, serial number, or other number unique per device
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexClientIdentifier: any
|
||||
|
||||
/**
|
||||
* Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexDeviceName?: any
|
||||
|
||||
/**
|
||||
* Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexDevice?: any
|
||||
|
||||
/**
|
||||
* Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexPlatformVersion?: any
|
||||
|
||||
/**
|
||||
* Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexPlatform?: any
|
||||
|
||||
/**
|
||||
* Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexProduct?: any
|
||||
|
||||
/**
|
||||
* One or more of [player, controller, server]
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexProvides?: any
|
||||
|
||||
/**
|
||||
* Plex application version number
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetAvailableClients
|
||||
*/
|
||||
readonly xPlexVersion?: any
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for getDevices operation in DevicesApi.
|
||||
* @export
|
||||
* @interface DevicesApiGetDevicesRequest
|
||||
*/
|
||||
export interface DevicesApiGetDevicesRequest {
|
||||
/**
|
||||
* UUID, serial number, or other number unique per device
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexClientIdentifier: any
|
||||
|
||||
/**
|
||||
* Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexDeviceName?: any
|
||||
|
||||
/**
|
||||
* Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexDevice?: any
|
||||
|
||||
/**
|
||||
* Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexPlatformVersion?: any
|
||||
|
||||
/**
|
||||
* Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexPlatform?: any
|
||||
|
||||
/**
|
||||
* Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexProduct?: any
|
||||
|
||||
/**
|
||||
* One or more of [player, controller, server]
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexProvides?: any
|
||||
|
||||
/**
|
||||
* Plex application version number
|
||||
* @type {any}
|
||||
* @memberof DevicesApiGetDevices
|
||||
*/
|
||||
readonly xPlexVersion?: any
|
||||
}
|
||||
|
||||
/**
|
||||
* DevicesApi - object-oriented interface
|
||||
* @export
|
||||
@@ -1236,23 +1478,25 @@ export class DevicesApi extends BaseAPI {
|
||||
/**
|
||||
* Get Available Clients
|
||||
* @summary Get Available Clients
|
||||
* @param {DevicesApiGetAvailableClientsRequest} requestParameters Request parameters.
|
||||
* @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));
|
||||
public getAvailableClients(requestParameters: DevicesApiGetAvailableClientsRequest, axiosOptions?: AxiosRequestConfig) {
|
||||
return DevicesApiFp(this.configuration).getAvailableClients(requestParameters.xPlexClientIdentifier, requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, 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
|
||||
*/
|
||||
public getDevices(axiosOptions?: AxiosRequestConfig) {
|
||||
return DevicesApiFp(this.configuration).getDevices(axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||
public getDevices(requestParameters: DevicesApiGetDevicesRequest, axiosOptions?: AxiosRequestConfig) {
|
||||
return DevicesApiFp(this.configuration).getDevices(requestParameters.xPlexClientIdentifier, requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4668,10 +4912,20 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails: async (axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getCurrentUserDetails: async (xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'xPlexClientIdentifier' is not null or undefined
|
||||
assertParamExists('getCurrentUserDetails', 'xPlexClientIdentifier', xPlexClientIdentifier)
|
||||
const localVarPath = `/user`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
@@ -4687,6 +4941,38 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (xPlexClientIdentifier !== undefined && xPlexClientIdentifier !== null) {
|
||||
localVarHeaderParameter['X-Plex-Client-Identifier'] = String(JSON.stringify(xPlexClientIdentifier));
|
||||
}
|
||||
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
|
||||
if (xPlexDevice !== undefined && xPlexDevice !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device'] = String(JSON.stringify(xPlexDevice));
|
||||
}
|
||||
|
||||
if (xPlexPlatformVersion !== undefined && xPlexPlatformVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform-Version'] = String(JSON.stringify(xPlexPlatformVersion));
|
||||
}
|
||||
|
||||
if (xPlexPlatform !== undefined && xPlexPlatform !== null) {
|
||||
localVarHeaderParameter['X-Plex-Platform'] = String(JSON.stringify(xPlexPlatform));
|
||||
}
|
||||
|
||||
if (xPlexProduct !== undefined && xPlexProduct !== null) {
|
||||
localVarHeaderParameter['X-Plex-Product'] = String(JSON.stringify(xPlexProduct));
|
||||
}
|
||||
|
||||
if (xPlexProvides !== undefined && xPlexProvides !== null) {
|
||||
localVarHeaderParameter['X-Plex-Provides'] = String(JSON.stringify(xPlexProvides));
|
||||
}
|
||||
|
||||
if (xPlexVersion !== undefined && xPlexVersion !== null) {
|
||||
localVarHeaderParameter['X-Plex-Version'] = String(JSON.stringify(xPlexVersion));
|
||||
}
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -4711,11 +4997,19 @@ export const UserApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCurrentUserDetails(axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUserDetails(axiosOptions);
|
||||
async getCurrentUserDetails(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUserDetails(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
}
|
||||
@@ -4731,15 +5025,86 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {any} xPlexClientIdentifier UUID, serial number, or other number unique per device
|
||||
* @param {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @param {any} [xPlexDevice] Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @param {any} [xPlexPlatformVersion] Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @param {any} [xPlexPlatform] Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @param {any} [xPlexProduct] Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @param {any} [xPlexProvides] One or more of [player, controller, server]
|
||||
* @param {any} [xPlexVersion] Plex application version number
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails(axiosOptions?: any): AxiosPromise<void> {
|
||||
return localVarFp.getCurrentUserDetails(axiosOptions).then((request) => request(axios, basePath));
|
||||
getCurrentUserDetails(xPlexClientIdentifier: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<void> {
|
||||
return localVarFp.getCurrentUserDetails(xPlexClientIdentifier, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for getCurrentUserDetails operation in UserApi.
|
||||
* @export
|
||||
* @interface UserApiGetCurrentUserDetailsRequest
|
||||
*/
|
||||
export interface UserApiGetCurrentUserDetailsRequest {
|
||||
/**
|
||||
* UUID, serial number, or other number unique per device
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexClientIdentifier: any
|
||||
|
||||
/**
|
||||
* Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexDeviceName?: any
|
||||
|
||||
/**
|
||||
* Device name and model number, eg iPhone3,2, Motorola XOOM™, LG5200TV
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexDevice?: any
|
||||
|
||||
/**
|
||||
* Operating system version, eg 4.3.1, 10.6.7, 3.2
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexPlatformVersion?: any
|
||||
|
||||
/**
|
||||
* Platform name, eg iOS, MacOSX, Android, LG, etc
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexPlatform?: any
|
||||
|
||||
/**
|
||||
* Plex application name, eg Laika, Plex Media Server, Media Link
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexProduct?: any
|
||||
|
||||
/**
|
||||
* One or more of [player, controller, server]
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexProvides?: any
|
||||
|
||||
/**
|
||||
* Plex application version number
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
*/
|
||||
readonly xPlexVersion?: any
|
||||
}
|
||||
|
||||
/**
|
||||
* UserApi - object-oriented interface
|
||||
* @export
|
||||
@@ -4750,12 +5115,13 @@ export class UserApi extends BaseAPI {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {UserApiGetCurrentUserDetailsRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserApi
|
||||
*/
|
||||
public getCurrentUserDetails(axiosOptions?: AxiosRequestConfig) {
|
||||
return UserApiFp(this.configuration).getCurrentUserDetails(axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||
public getCurrentUserDetails(requestParameters: UserApiGetCurrentUserDetailsRequest, axiosOptions?: AxiosRequestConfig) {
|
||||
return UserApiFp(this.configuration).getCurrentUserDetails(requestParameters.xPlexClientIdentifier, requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user