UNPKG

@jellyfin/sdk

Version:
241 lines (240 loc) • 10.8 kB
/** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * Do not edit the class manually. * * Jellyfin API * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { BaseItemDto } from '../models'; import type { BaseItemDtoQueryResult } from '../models'; import type { ImageType } from '../models'; import type { ItemFields } from '../models'; import type { ItemFilter } from '../models'; /** * PersonsApi - axios parameter creator * @export */ export declare const PersonsApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Get person by name. * @param {string} name Person name. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPerson: (name: string, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; /** * * @summary Gets all persons. * @param {number} [limit] Optional. The maximum number of records to return. * @param {string} [searchTerm] The search term. * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. * @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply. * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. userId is required. * @param {boolean} [enableUserData] Optional, include user data. * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output. * @param {Array<string>} [excludePersonTypes] Optional. If specified results will be filtered to exclude those containing the specified PersonType. Allows multiple, comma-delimited. * @param {Array<string>} [personTypes] Optional. If specified results will be filtered to include only those containing the specified PersonType. Allows multiple, comma-delimited. * @param {string} [appearsInItemId] Optional. If specified, person results will be filtered on items related to said persons. * @param {string} [userId] User id. * @param {boolean} [enableImages] Optional, include image information in output. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPersons: (limit?: number, searchTerm?: string, fields?: Array<ItemFields>, filters?: Array<ItemFilter>, isFavorite?: boolean, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, excludePersonTypes?: Array<string>, personTypes?: Array<string>, appearsInItemId?: string, userId?: string, enableImages?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; }; /** * PersonsApi - functional programming interface * @export */ export declare const PersonsApiFp: (configuration?: Configuration) => { /** * * @summary Get person by name. * @param {string} name Person name. * @param {string} [userId] Optional. Filter by user id, and attach user data. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPerson(name: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDto>>; /** * * @summary Gets all persons. * @param {number} [limit] Optional. The maximum number of records to return. * @param {string} [searchTerm] The search term. * @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. * @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply. * @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not. userId is required. * @param {boolean} [enableUserData] Optional, include user data. * @param {number} [imageTypeLimit] Optional, the max number of images to return, per image type. * @param {Array<ImageType>} [enableImageTypes] Optional. The image types to include in the output. * @param {Array<string>} [excludePersonTypes] Optional. If specified results will be filtered to exclude those containing the specified PersonType. Allows multiple, comma-delimited. * @param {Array<string>} [personTypes] Optional. If specified results will be filtered to include only those containing the specified PersonType. Allows multiple, comma-delimited. * @param {string} [appearsInItemId] Optional. If specified, person results will be filtered on items related to said persons. * @param {string} [userId] User id. * @param {boolean} [enableImages] Optional, include image information in output. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPersons(limit?: number, searchTerm?: string, fields?: Array<ItemFields>, filters?: Array<ItemFilter>, isFavorite?: boolean, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, excludePersonTypes?: Array<string>, personTypes?: Array<string>, appearsInItemId?: string, userId?: string, enableImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>; }; /** * PersonsApi - factory interface * @export */ export declare const PersonsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Get person by name. * @param {PersonsApiGetPersonRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPerson(requestParameters: PersonsApiGetPersonRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDto>; /** * * @summary Gets all persons. * @param {PersonsApiGetPersonsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPersons(requestParameters?: PersonsApiGetPersonsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDtoQueryResult>; }; /** * Request parameters for getPerson operation in PersonsApi. * @export * @interface PersonsApiGetPersonRequest */ export interface PersonsApiGetPersonRequest { /** * Person name. * @type {string} * @memberof PersonsApiGetPerson */ readonly name: string; /** * Optional. Filter by user id, and attach user data. * @type {string} * @memberof PersonsApiGetPerson */ readonly userId?: string; } /** * Request parameters for getPersons operation in PersonsApi. * @export * @interface PersonsApiGetPersonsRequest */ export interface PersonsApiGetPersonsRequest { /** * Optional. The maximum number of records to return. * @type {number} * @memberof PersonsApiGetPersons */ readonly limit?: number; /** * The search term. * @type {string} * @memberof PersonsApiGetPersons */ readonly searchTerm?: string; /** * Optional. Specify additional fields of information to return in the output. * @type {Array<ItemFields>} * @memberof PersonsApiGetPersons */ readonly fields?: Array<ItemFields>; /** * Optional. Specify additional filters to apply. * @type {Array<ItemFilter>} * @memberof PersonsApiGetPersons */ readonly filters?: Array<ItemFilter>; /** * Optional filter by items that are marked as favorite, or not. userId is required. * @type {boolean} * @memberof PersonsApiGetPersons */ readonly isFavorite?: boolean; /** * Optional, include user data. * @type {boolean} * @memberof PersonsApiGetPersons */ readonly enableUserData?: boolean; /** * Optional, the max number of images to return, per image type. * @type {number} * @memberof PersonsApiGetPersons */ readonly imageTypeLimit?: number; /** * Optional. The image types to include in the output. * @type {Array<ImageType>} * @memberof PersonsApiGetPersons */ readonly enableImageTypes?: Array<ImageType>; /** * Optional. If specified results will be filtered to exclude those containing the specified PersonType. Allows multiple, comma-delimited. * @type {Array<string>} * @memberof PersonsApiGetPersons */ readonly excludePersonTypes?: Array<string>; /** * Optional. If specified results will be filtered to include only those containing the specified PersonType. Allows multiple, comma-delimited. * @type {Array<string>} * @memberof PersonsApiGetPersons */ readonly personTypes?: Array<string>; /** * Optional. If specified, person results will be filtered on items related to said persons. * @type {string} * @memberof PersonsApiGetPersons */ readonly appearsInItemId?: string; /** * User id. * @type {string} * @memberof PersonsApiGetPersons */ readonly userId?: string; /** * Optional, include image information in output. * @type {boolean} * @memberof PersonsApiGetPersons */ readonly enableImages?: boolean; } /** * PersonsApi - object-oriented interface * @export * @class PersonsApi * @extends {BaseAPI} */ export declare class PersonsApi extends BaseAPI { /** * * @summary Get person by name. * @param {PersonsApiGetPersonRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PersonsApi */ getPerson(requestParameters: PersonsApiGetPersonRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDto, any>>; /** * * @summary Gets all persons. * @param {PersonsApiGetPersonsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PersonsApi */ getPersons(requestParameters?: PersonsApiGetPersonsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseItemDtoQueryResult, any>>; }