61 lines
1.8 KiB
TypeScript
61 lines
1.8 KiB
TypeScript
|
/* tslint:disable */
|
||
|
/* eslint-disable */
|
||
|
/**
|
||
|
* Jellyfin API
|
||
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||
|
*
|
||
|
* The version of the OpenAPI document: 10.8.9
|
||
|
*
|
||
|
*
|
||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||
|
* https://openapi-generator.tech
|
||
|
* Do not edit the class manually.
|
||
|
*/
|
||
|
|
||
|
|
||
|
import * as runtime from '../runtime';
|
||
|
import type {
|
||
|
ConfigImageTypes,
|
||
|
} from '../models';
|
||
|
import {
|
||
|
ConfigImageTypesFromJSON,
|
||
|
ConfigImageTypesToJSON,
|
||
|
} from '../models';
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
export class TmdbApi extends runtime.BaseAPI {
|
||
|
|
||
|
/**
|
||
|
* Gets the TMDb image configuration options.
|
||
|
*/
|
||
|
async tmdbClientConfigurationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConfigImageTypes>> {
|
||
|
const queryParameters: any = {};
|
||
|
|
||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||
|
|
||
|
if (this.configuration && this.configuration.apiKey) {
|
||
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // CustomAuthentication authentication
|
||
|
}
|
||
|
|
||
|
const response = await this.request({
|
||
|
path: `/Tmdb/ClientConfiguration`,
|
||
|
method: 'GET',
|
||
|
headers: headerParameters,
|
||
|
query: queryParameters,
|
||
|
}, initOverrides);
|
||
|
|
||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ConfigImageTypesFromJSON(jsonValue));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Gets the TMDb image configuration options.
|
||
|
*/
|
||
|
async tmdbClientConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConfigImageTypes> {
|
||
|
const response = await this.tmdbClientConfigurationRaw(initOverrides);
|
||
|
return await response.value();
|
||
|
}
|
||
|
|
||
|
}
|