mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-07 04:20:49 +00:00
Automated build 'Merge branch 'main' of https://github.com/LukeHagar/plex-api-spec' typescript-axios sdk: 4695449944
This commit is contained in:
@@ -980,12 +980,6 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexClientIdentifier required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration)
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (strong !== undefined) {
|
||||
localVarQueryParameter['strong'] = strong;
|
||||
}
|
||||
@@ -1059,12 +1053,6 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexClientIdentifier required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Client-Identifier", configuration)
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (xPlexDeviceName !== undefined && xPlexDeviceName !== null) {
|
||||
localVarHeaderParameter['X-Plex-Device-Name'] = String(JSON.stringify(xPlexDeviceName));
|
||||
}
|
||||
@@ -7326,9 +7314,9 @@ export const SecurityApiAxiosParamCreator = function (configuration?: Configurat
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getConnectionInformation: async (source: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getSourceConnectionInformation: async (source: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'source' is not null or undefined
|
||||
assertParamExists('getConnectionInformation', 'source', source)
|
||||
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);
|
||||
@@ -7499,8 +7487,8 @@ export const SecurityApiFp = function(configuration?: Configuration) {
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getConnectionInformation(source: 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.getConnectionInformation(source, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions);
|
||||
async getSourceConnectionInformation(source: 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.getSourceConnectionInformation(source, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
/**
|
||||
@@ -7546,8 +7534,8 @@ export const SecurityApiFactory = function (configuration?: Configuration, baseP
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getConnectionInformation(source: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<void> {
|
||||
return localVarFp.getConnectionInformation(source, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then((request) => request(axios, basePath));
|
||||
getSourceConnectionInformation(source: any, xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<void> {
|
||||
return localVarFp.getSourceConnectionInformation(source, xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, 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.
|
||||
@@ -7571,64 +7559,64 @@ export const SecurityApiFactory = function (configuration?: Configuration, baseP
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for getConnectionInformation operation in SecurityApi.
|
||||
* Request parameters for getSourceConnectionInformation operation in SecurityApi.
|
||||
* @export
|
||||
* @interface SecurityApiGetConnectionInformationRequest
|
||||
* @interface SecurityApiGetSourceConnectionInformationRequest
|
||||
*/
|
||||
export interface SecurityApiGetConnectionInformationRequest {
|
||||
export interface SecurityApiGetSourceConnectionInformationRequest {
|
||||
/**
|
||||
* The source identifier with an included prefix.
|
||||
* @type {any}
|
||||
* @memberof SecurityApiGetConnectionInformation
|
||||
* @memberof SecurityApiGetSourceConnectionInformation
|
||||
*/
|
||||
readonly source: any
|
||||
|
||||
/**
|
||||
* Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @type {any}
|
||||
* @memberof SecurityApiGetConnectionInformation
|
||||
* @memberof SecurityApiGetSourceConnectionInformation
|
||||
*/
|
||||
readonly xPlexDeviceName?: any
|
||||
|
||||
/**
|
||||
* The type of device your application is running on Device name and or model number, eg `iPhone3,2`, `Motorola XOOM™`, `LG5200TV`
|
||||
* @type {any}
|
||||
* @memberof SecurityApiGetConnectionInformation
|
||||
* @memberof SecurityApiGetSourceConnectionInformation
|
||||
*/
|
||||
readonly xPlexDevice?: any
|
||||
|
||||
/**
|
||||
* Operating system version, eg `4.3.1`, `10.6.7`, `3.2`
|
||||
* @type {any}
|
||||
* @memberof SecurityApiGetConnectionInformation
|
||||
* @memberof SecurityApiGetSourceConnectionInformation
|
||||
*/
|
||||
readonly xPlexPlatformVersion?: any
|
||||
|
||||
/**
|
||||
* Platform name, eg `Web`, `iOS`, `MacOSX`, `Android`, `LG`
|
||||
* @type {any}
|
||||
* @memberof SecurityApiGetConnectionInformation
|
||||
* @memberof SecurityApiGetSourceConnectionInformation
|
||||
*/
|
||||
readonly xPlexPlatform?: any
|
||||
|
||||
/**
|
||||
* Plex application name, eg `Laika`, `Plex Media Server`, `Media Link`
|
||||
* @type {any}
|
||||
* @memberof SecurityApiGetConnectionInformation
|
||||
* @memberof SecurityApiGetSourceConnectionInformation
|
||||
*/
|
||||
readonly xPlexProduct?: any
|
||||
|
||||
/**
|
||||
* One or more of `[player, controller, server]`
|
||||
* @type {any}
|
||||
* @memberof SecurityApiGetConnectionInformation
|
||||
* @memberof SecurityApiGetSourceConnectionInformation
|
||||
*/
|
||||
readonly xPlexProvides?: any
|
||||
|
||||
/**
|
||||
* Your application version number
|
||||
* @type {any}
|
||||
* @memberof SecurityApiGetConnectionInformation
|
||||
* @memberof SecurityApiGetSourceConnectionInformation
|
||||
*/
|
||||
readonly xPlexVersion?: any
|
||||
}
|
||||
@@ -7713,13 +7701,13 @@ 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 {SecurityApiGetConnectionInformationRequest} requestParameters Request parameters.
|
||||
* @param {SecurityApiGetSourceConnectionInformationRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SecurityApi
|
||||
*/
|
||||
public getConnectionInformation(requestParameters: SecurityApiGetConnectionInformationRequest, axiosOptions?: AxiosRequestConfig) {
|
||||
return SecurityApiFp(this.configuration).getConnectionInformation(requestParameters.source, requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||
public getSourceConnectionInformation(requestParameters: SecurityApiGetSourceConnectionInformationRequest, axiosOptions?: AxiosRequestConfig) {
|
||||
return SecurityApiFp(this.configuration).getSourceConnectionInformation(requestParameters.source, requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -8508,7 +8496,7 @@ export const UpdaterApiAxiosParamCreator = function (configuration?: Configurati
|
||||
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 Applying updates
|
||||
* @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 {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
@@ -8746,7 +8734,7 @@ export const UpdaterApiFp = 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 Applying updates
|
||||
* @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 {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
@@ -8810,7 +8798,7 @@ export const UpdaterApiFactory = function (configuration?: Configuration, basePa
|
||||
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 Applying updates
|
||||
* @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 {any} [xPlexDeviceName] Primary name for the device eg. `Plex Web (Chrome)`
|
||||
@@ -9060,7 +9048,7 @@ export interface UpdaterApiQueryUpdateStatusRequest {
|
||||
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 Applying updates
|
||||
* @summary Apply Updates
|
||||
* @param {UpdaterApiApplyUpdatesRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
@@ -9115,7 +9103,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails: async (xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
getUserDetails: async (xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/user`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
@@ -9196,8 +9184,8 @@ export const UserApiFp = function(configuration?: Configuration) {
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async getCurrentUserDetails(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(xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions);
|
||||
async getUserDetails(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.getUserDetails(xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
}
|
||||
@@ -9223,64 +9211,64 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
getCurrentUserDetails(xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<void> {
|
||||
return localVarFp.getCurrentUserDetails(xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then((request) => request(axios, basePath));
|
||||
getUserDetails(xPlexDeviceName?: any, xPlexDevice?: any, xPlexPlatformVersion?: any, xPlexPlatform?: any, xPlexProduct?: any, xPlexProvides?: any, xPlexVersion?: any, axiosOptions?: any): AxiosPromise<void> {
|
||||
return localVarFp.getUserDetails(xPlexDeviceName, xPlexDevice, xPlexPlatformVersion, xPlexPlatform, xPlexProduct, xPlexProvides, xPlexVersion, axiosOptions).then((request) => request(axios, basePath));
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Request parameters for getCurrentUserDetails operation in UserApi.
|
||||
* Request parameters for getUserDetails operation in UserApi.
|
||||
* @export
|
||||
* @interface UserApiGetCurrentUserDetailsRequest
|
||||
* @interface UserApiGetUserDetailsRequest
|
||||
*/
|
||||
export interface UserApiGetCurrentUserDetailsRequest {
|
||||
export interface UserApiGetUserDetailsRequest {
|
||||
/**
|
||||
* Primary name for the device eg. `Plex Web (Chrome)`
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
* @memberof UserApiGetUserDetails
|
||||
*/
|
||||
readonly xPlexDeviceName?: any
|
||||
|
||||
/**
|
||||
* The type of device your application is running on Device name and or model number, eg `iPhone3,2`, `Motorola XOOM™`, `LG5200TV`
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
* @memberof UserApiGetUserDetails
|
||||
*/
|
||||
readonly xPlexDevice?: any
|
||||
|
||||
/**
|
||||
* Operating system version, eg `4.3.1`, `10.6.7`, `3.2`
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
* @memberof UserApiGetUserDetails
|
||||
*/
|
||||
readonly xPlexPlatformVersion?: any
|
||||
|
||||
/**
|
||||
* Platform name, eg `Web`, `iOS`, `MacOSX`, `Android`, `LG`
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
* @memberof UserApiGetUserDetails
|
||||
*/
|
||||
readonly xPlexPlatform?: any
|
||||
|
||||
/**
|
||||
* Plex application name, eg `Laika`, `Plex Media Server`, `Media Link`
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
* @memberof UserApiGetUserDetails
|
||||
*/
|
||||
readonly xPlexProduct?: any
|
||||
|
||||
/**
|
||||
* One or more of `[player, controller, server]`
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
* @memberof UserApiGetUserDetails
|
||||
*/
|
||||
readonly xPlexProvides?: any
|
||||
|
||||
/**
|
||||
* Your application version number
|
||||
* @type {any}
|
||||
* @memberof UserApiGetCurrentUserDetails
|
||||
* @memberof UserApiGetUserDetails
|
||||
*/
|
||||
readonly xPlexVersion?: any
|
||||
}
|
||||
@@ -9295,13 +9283,13 @@ export class UserApi extends BaseAPI {
|
||||
/**
|
||||
* Get Logged in User
|
||||
* @summary Get Logged in User
|
||||
* @param {UserApiGetCurrentUserDetailsRequest} requestParameters Request parameters.
|
||||
* @param {UserApiGetUserDetailsRequest} requestParameters Request parameters.
|
||||
* @param {*} [axiosOptions] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof UserApi
|
||||
*/
|
||||
public getCurrentUserDetails(requestParameters: UserApiGetCurrentUserDetailsRequest = {}, axiosOptions?: AxiosRequestConfig) {
|
||||
return UserApiFp(this.configuration).getCurrentUserDetails(requestParameters.xPlexDeviceName, requestParameters.xPlexDevice, requestParameters.xPlexPlatformVersion, requestParameters.xPlexPlatform, requestParameters.xPlexProduct, requestParameters.xPlexProvides, requestParameters.xPlexVersion, axiosOptions).then((request) => request(this.axios, this.basePath));
|
||||
public getUserDetails(requestParameters: UserApiGetUserDetailsRequest = {}, axiosOptions?: AxiosRequestConfig) {
|
||||
return UserApiFp(this.configuration).getUserDetails(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