@jellyfin/sdk
Version:
A TypeScript SDK for Jellyfin.
799 lines • 58.4 kB
TypeScript
/**
* 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 { BaseItemDtoQueryResult } from '../models';
import type { BaseItemKind } from '../models';
import type { ImageType } from '../models';
import type { ItemFields } from '../models';
import type { ItemFilter } from '../models';
import type { ItemSortBy } from '../models';
import type { LocationType } from '../models';
import type { MediaType } from '../models';
import type { SeriesStatus } from '../models';
import type { SortOrder } from '../models';
import type { UpdateUserItemDataDto } from '../models';
import type { UserItemDataDto } from '../models';
import type { VideoType } from '../models';
/**
* ItemsApi - axios parameter creator
* @export
*/
export declare const ItemsApiAxiosParamCreator: (configuration?: Configuration) => {
/**
*
* @summary Get Item User Data.
* @param {string} itemId The item id.
* @param {string} [userId] The user id.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getItemUserData: (itemId: string, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Gets items based on a query.
* @param {string} [userId] The user id supplied as query parameter; this is required when not using an API key.
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
* @param {boolean} [hasSubtitles] Optional filter by items with subtitles.
* @param {boolean} [hasSpecialFeature] Optional filter by items with special features.
* @param {boolean} [hasTrailer] Optional filter by items with trailers.
* @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item.
* @param {number} [indexNumber] Optional filter by index number.
* @param {number} [parentIndexNumber] Optional filter by parent index number.
* @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating.
* @param {boolean} [isHd] Optional filter by items that are HD or not.
* @param {boolean} [is4K] Optional filter by items that are 4K or not.
* @param {Array<LocationType>} [locationTypes] Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited.
* @param {Array<LocationType>} [excludeLocationTypes] Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited.
* @param {boolean} [isMissing] Optional filter by items that are missing episodes or not.
* @param {boolean} [isUnaired] Optional filter by items that are unaired episodes or not.
* @param {number} [minCommunityRating] Optional filter by minimum community rating.
* @param {number} [minCriticRating] Optional filter by minimum critic rating.
* @param {string} [minPremiereDate] Optional. The minimum premiere date. Format = ISO.
* @param {string} [minDateLastSaved] Optional. The minimum last saved date. Format = ISO.
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
* @param {boolean} [hasImdbId] Optional filter by items that have an IMDb id or not.
* @param {boolean} [hasTmdbId] Optional filter by items that have a TMDb id or not.
* @param {boolean} [hasTvdbId] Optional filter by items that have a TVDb id or not.
* @param {boolean} [isMovie] Optional filter for live tv movies.
* @param {boolean} [isSeries] Optional filter for live tv series.
* @param {boolean} [isNews] Optional filter for live tv news.
* @param {boolean} [isKids] Optional filter for live tv kids.
* @param {boolean} [isSports] Optional filter for live tv sports.
* @param {Array<string>} [excludeItemIds] Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited.
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
* @param {number} [limit] Optional. The maximum number of records to return.
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
* @param {string} [searchTerm] Optional. Filter based on a search term.
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending, Descending.
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
* @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
* @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
* @param {Array<MediaType>} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited.
* @param {Array<ImageType>} [imageTypes] Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited.
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
* @param {boolean} [isPlayed] Optional filter by items that are played, or not.
* @param {Array<string>} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
* @param {Array<string>} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
* @param {Array<string>} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
* @param {Array<number>} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
* @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 {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person.
* @param {Array<string>} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person id.
* @param {Array<string>} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
* @param {Array<string>} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
* @param {Array<string>} [artists] Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited.
* @param {Array<string>} [excludeArtistIds] Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited.
* @param {Array<string>} [artistIds] Optional. If specified, results will be filtered to include only those containing the specified artist id.
* @param {Array<string>} [albumArtistIds] Optional. If specified, results will be filtered to include only those containing the specified album artist id.
* @param {Array<string>} [contributingArtistIds] Optional. If specified, results will be filtered to include only those containing the specified contributing artist id.
* @param {Array<string>} [albums] Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited.
* @param {Array<string>} [albumIds] Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited.
* @param {Array<string>} [ids] Optional. If specific items are needed, specify a list of item id\'s to retrieve. This allows multiple, comma delimited.
* @param {Array<VideoType>} [videoTypes] Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited.
* @param {string} [minOfficialRating] Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).
* @param {boolean} [isLocked] Optional filter by items that are locked.
* @param {boolean} [isPlaceHolder] Optional filter by items that are placeholders.
* @param {boolean} [hasOfficialRating] Optional filter by items that have official ratings.
* @param {boolean} [collapseBoxSetItems] Whether or not to hide items behind their boxsets.
* @param {number} [minWidth] Optional. Filter by the minimum width of the item.
* @param {number} [minHeight] Optional. Filter by the minimum height of the item.
* @param {number} [maxWidth] Optional. Filter by the maximum width of the item.
* @param {number} [maxHeight] Optional. Filter by the maximum height of the item.
* @param {boolean} [is3D] Optional filter by items that are 3D, or not.
* @param {Array<SeriesStatus>} [seriesStatus] Optional filter by Series Status. Allows multiple, comma delimited.
* @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
* @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
* @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
* @param {Array<string>} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
* @param {Array<string>} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
* @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
* @param {boolean} [enableImages] Optional, include image information in output.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getItems: (userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, indexNumber?: number, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array<LocationType>, excludeLocationTypes?: Array<LocationType>, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array<string>, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, filters?: Array<ItemFilter>, isFavorite?: boolean, mediaTypes?: Array<MediaType>, imageTypes?: Array<ImageType>, sortBy?: Array<ItemSortBy>, isPlayed?: boolean, genres?: Array<string>, officialRatings?: Array<string>, tags?: Array<string>, years?: Array<number>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, person?: string, personIds?: Array<string>, personTypes?: Array<string>, studios?: Array<string>, artists?: Array<string>, excludeArtistIds?: Array<string>, artistIds?: Array<string>, albumArtistIds?: Array<string>, contributingArtistIds?: Array<string>, albums?: Array<string>, albumIds?: Array<string>, ids?: Array<string>, videoTypes?: Array<VideoType>, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array<SeriesStatus>, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array<string>, genreIds?: Array<string>, enableTotalRecordCount?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Gets items based on a query.
* @param {string} [userId] The user id.
* @param {number} [startIndex] The start index.
* @param {number} [limit] The item limit.
* @param {string} [searchTerm] The search term.
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
* @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
* @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<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
* @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
* @param {boolean} [enableImages] Optional. Include image information in output.
* @param {boolean} [excludeActiveSessions] Optional. Whether to exclude the currently active sessions.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getResumeItems: (userId?: string, startIndex?: number, limit?: number, searchTerm?: string, parentId?: string, fields?: Array<ItemFields>, mediaTypes?: Array<MediaType>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, enableTotalRecordCount?: boolean, enableImages?: boolean, excludeActiveSessions?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Update Item User Data.
* @param {string} itemId The item id.
* @param {UpdateUserItemDataDto} updateUserItemDataDto New user data object.
* @param {string} [userId] The user id.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateItemUserData: (itemId: string, updateUserItemDataDto: UpdateUserItemDataDto, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
};
/**
* ItemsApi - functional programming interface
* @export
*/
export declare const ItemsApiFp: (configuration?: Configuration) => {
/**
*
* @summary Get Item User Data.
* @param {string} itemId The item id.
* @param {string} [userId] The user id.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getItemUserData(itemId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserItemDataDto>>;
/**
*
* @summary Gets items based on a query.
* @param {string} [userId] The user id supplied as query parameter; this is required when not using an API key.
* @param {string} [maxOfficialRating] Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
* @param {boolean} [hasThemeSong] Optional filter by items with theme songs.
* @param {boolean} [hasThemeVideo] Optional filter by items with theme videos.
* @param {boolean} [hasSubtitles] Optional filter by items with subtitles.
* @param {boolean} [hasSpecialFeature] Optional filter by items with special features.
* @param {boolean} [hasTrailer] Optional filter by items with trailers.
* @param {string} [adjacentTo] Optional. Return items that are siblings of a supplied item.
* @param {number} [indexNumber] Optional filter by index number.
* @param {number} [parentIndexNumber] Optional filter by parent index number.
* @param {boolean} [hasParentalRating] Optional filter by items that have or do not have a parental rating.
* @param {boolean} [isHd] Optional filter by items that are HD or not.
* @param {boolean} [is4K] Optional filter by items that are 4K or not.
* @param {Array<LocationType>} [locationTypes] Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited.
* @param {Array<LocationType>} [excludeLocationTypes] Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited.
* @param {boolean} [isMissing] Optional filter by items that are missing episodes or not.
* @param {boolean} [isUnaired] Optional filter by items that are unaired episodes or not.
* @param {number} [minCommunityRating] Optional filter by minimum community rating.
* @param {number} [minCriticRating] Optional filter by minimum critic rating.
* @param {string} [minPremiereDate] Optional. The minimum premiere date. Format = ISO.
* @param {string} [minDateLastSaved] Optional. The minimum last saved date. Format = ISO.
* @param {string} [minDateLastSavedForUser] Optional. The minimum last saved date for the current user. Format = ISO.
* @param {string} [maxPremiereDate] Optional. The maximum premiere date. Format = ISO.
* @param {boolean} [hasOverview] Optional filter by items that have an overview or not.
* @param {boolean} [hasImdbId] Optional filter by items that have an IMDb id or not.
* @param {boolean} [hasTmdbId] Optional filter by items that have a TMDb id or not.
* @param {boolean} [hasTvdbId] Optional filter by items that have a TVDb id or not.
* @param {boolean} [isMovie] Optional filter for live tv movies.
* @param {boolean} [isSeries] Optional filter for live tv series.
* @param {boolean} [isNews] Optional filter for live tv news.
* @param {boolean} [isKids] Optional filter for live tv kids.
* @param {boolean} [isSports] Optional filter for live tv sports.
* @param {Array<string>} [excludeItemIds] Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited.
* @param {number} [startIndex] Optional. The record index to start at. All items with a lower index will be dropped from the results.
* @param {number} [limit] Optional. The maximum number of records to return.
* @param {boolean} [recursive] When searching within folders, this determines whether or not the search will be recursive. true/false.
* @param {string} [searchTerm] Optional. Filter based on a search term.
* @param {Array<SortOrder>} [sortOrder] Sort Order - Ascending, Descending.
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
* @param {Array<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
* @param {Array<ItemFilter>} [filters] Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
* @param {boolean} [isFavorite] Optional filter by items that are marked as favorite, or not.
* @param {Array<MediaType>} [mediaTypes] Optional filter by MediaType. Allows multiple, comma delimited.
* @param {Array<ImageType>} [imageTypes] Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited.
* @param {Array<ItemSortBy>} [sortBy] Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
* @param {boolean} [isPlayed] Optional filter by items that are played, or not.
* @param {Array<string>} [genres] Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
* @param {Array<string>} [officialRatings] Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
* @param {Array<string>} [tags] Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
* @param {Array<number>} [years] Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
* @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 {string} [person] Optional. If specified, results will be filtered to include only those containing the specified person.
* @param {Array<string>} [personIds] Optional. If specified, results will be filtered to include only those containing the specified person id.
* @param {Array<string>} [personTypes] Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
* @param {Array<string>} [studios] Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
* @param {Array<string>} [artists] Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited.
* @param {Array<string>} [excludeArtistIds] Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited.
* @param {Array<string>} [artistIds] Optional. If specified, results will be filtered to include only those containing the specified artist id.
* @param {Array<string>} [albumArtistIds] Optional. If specified, results will be filtered to include only those containing the specified album artist id.
* @param {Array<string>} [contributingArtistIds] Optional. If specified, results will be filtered to include only those containing the specified contributing artist id.
* @param {Array<string>} [albums] Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited.
* @param {Array<string>} [albumIds] Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited.
* @param {Array<string>} [ids] Optional. If specific items are needed, specify a list of item id\'s to retrieve. This allows multiple, comma delimited.
* @param {Array<VideoType>} [videoTypes] Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited.
* @param {string} [minOfficialRating] Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).
* @param {boolean} [isLocked] Optional filter by items that are locked.
* @param {boolean} [isPlaceHolder] Optional filter by items that are placeholders.
* @param {boolean} [hasOfficialRating] Optional filter by items that have official ratings.
* @param {boolean} [collapseBoxSetItems] Whether or not to hide items behind their boxsets.
* @param {number} [minWidth] Optional. Filter by the minimum width of the item.
* @param {number} [minHeight] Optional. Filter by the minimum height of the item.
* @param {number} [maxWidth] Optional. Filter by the maximum width of the item.
* @param {number} [maxHeight] Optional. Filter by the maximum height of the item.
* @param {boolean} [is3D] Optional filter by items that are 3D, or not.
* @param {Array<SeriesStatus>} [seriesStatus] Optional filter by Series Status. Allows multiple, comma delimited.
* @param {string} [nameStartsWithOrGreater] Optional filter by items whose name is sorted equally or greater than a given input string.
* @param {string} [nameStartsWith] Optional filter by items whose name is sorted equally than a given input string.
* @param {string} [nameLessThan] Optional filter by items whose name is equally or lesser than a given input string.
* @param {Array<string>} [studioIds] Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
* @param {Array<string>} [genreIds] Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
* @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
* @param {boolean} [enableImages] Optional, include image information in output.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getItems(userId?: string, maxOfficialRating?: string, hasThemeSong?: boolean, hasThemeVideo?: boolean, hasSubtitles?: boolean, hasSpecialFeature?: boolean, hasTrailer?: boolean, adjacentTo?: string, indexNumber?: number, parentIndexNumber?: number, hasParentalRating?: boolean, isHd?: boolean, is4K?: boolean, locationTypes?: Array<LocationType>, excludeLocationTypes?: Array<LocationType>, isMissing?: boolean, isUnaired?: boolean, minCommunityRating?: number, minCriticRating?: number, minPremiereDate?: string, minDateLastSaved?: string, minDateLastSavedForUser?: string, maxPremiereDate?: string, hasOverview?: boolean, hasImdbId?: boolean, hasTmdbId?: boolean, hasTvdbId?: boolean, isMovie?: boolean, isSeries?: boolean, isNews?: boolean, isKids?: boolean, isSports?: boolean, excludeItemIds?: Array<string>, startIndex?: number, limit?: number, recursive?: boolean, searchTerm?: string, sortOrder?: Array<SortOrder>, parentId?: string, fields?: Array<ItemFields>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, filters?: Array<ItemFilter>, isFavorite?: boolean, mediaTypes?: Array<MediaType>, imageTypes?: Array<ImageType>, sortBy?: Array<ItemSortBy>, isPlayed?: boolean, genres?: Array<string>, officialRatings?: Array<string>, tags?: Array<string>, years?: Array<number>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, person?: string, personIds?: Array<string>, personTypes?: Array<string>, studios?: Array<string>, artists?: Array<string>, excludeArtistIds?: Array<string>, artistIds?: Array<string>, albumArtistIds?: Array<string>, contributingArtistIds?: Array<string>, albums?: Array<string>, albumIds?: Array<string>, ids?: Array<string>, videoTypes?: Array<VideoType>, minOfficialRating?: string, isLocked?: boolean, isPlaceHolder?: boolean, hasOfficialRating?: boolean, collapseBoxSetItems?: boolean, minWidth?: number, minHeight?: number, maxWidth?: number, maxHeight?: number, is3D?: boolean, seriesStatus?: Array<SeriesStatus>, nameStartsWithOrGreater?: string, nameStartsWith?: string, nameLessThan?: string, studioIds?: Array<string>, genreIds?: Array<string>, enableTotalRecordCount?: boolean, enableImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
/**
*
* @summary Gets items based on a query.
* @param {string} [userId] The user id.
* @param {number} [startIndex] The start index.
* @param {number} [limit] The item limit.
* @param {string} [searchTerm] The search term.
* @param {string} [parentId] Specify this to localize the search to a specific item or folder. Omit to use the root.
* @param {Array<ItemFields>} [fields] Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
* @param {Array<MediaType>} [mediaTypes] Optional. Filter by MediaType. Allows multiple, comma delimited.
* @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<BaseItemKind>} [excludeItemTypes] Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
* @param {Array<BaseItemKind>} [includeItemTypes] Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
* @param {boolean} [enableTotalRecordCount] Optional. Enable the total record count.
* @param {boolean} [enableImages] Optional. Include image information in output.
* @param {boolean} [excludeActiveSessions] Optional. Whether to exclude the currently active sessions.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getResumeItems(userId?: string, startIndex?: number, limit?: number, searchTerm?: string, parentId?: string, fields?: Array<ItemFields>, mediaTypes?: Array<MediaType>, enableUserData?: boolean, imageTypeLimit?: number, enableImageTypes?: Array<ImageType>, excludeItemTypes?: Array<BaseItemKind>, includeItemTypes?: Array<BaseItemKind>, enableTotalRecordCount?: boolean, enableImages?: boolean, excludeActiveSessions?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseItemDtoQueryResult>>;
/**
*
* @summary Update Item User Data.
* @param {string} itemId The item id.
* @param {UpdateUserItemDataDto} updateUserItemDataDto New user data object.
* @param {string} [userId] The user id.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateItemUserData(itemId: string, updateUserItemDataDto: UpdateUserItemDataDto, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserItemDataDto>>;
};
/**
* ItemsApi - factory interface
* @export
*/
export declare const ItemsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
*
* @summary Get Item User Data.
* @param {ItemsApiGetItemUserDataRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getItemUserData(requestParameters: ItemsApiGetItemUserDataRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserItemDataDto>;
/**
*
* @summary Gets items based on a query.
* @param {ItemsApiGetItemsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getItems(requestParameters?: ItemsApiGetItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDtoQueryResult>;
/**
*
* @summary Gets items based on a query.
* @param {ItemsApiGetResumeItemsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getResumeItems(requestParameters?: ItemsApiGetResumeItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseItemDtoQueryResult>;
/**
*
* @summary Update Item User Data.
* @param {ItemsApiUpdateItemUserDataRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateItemUserData(requestParameters: ItemsApiUpdateItemUserDataRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserItemDataDto>;
};
/**
* Request parameters for getItemUserData operation in ItemsApi.
* @export
* @interface ItemsApiGetItemUserDataRequest
*/
export interface ItemsApiGetItemUserDataRequest {
/**
* The item id.
* @type {string}
* @memberof ItemsApiGetItemUserData
*/
readonly itemId: string;
/**
* The user id.
* @type {string}
* @memberof ItemsApiGetItemUserData
*/
readonly userId?: string;
}
/**
* Request parameters for getItems operation in ItemsApi.
* @export
* @interface ItemsApiGetItemsRequest
*/
export interface ItemsApiGetItemsRequest {
/**
* The user id supplied as query parameter; this is required when not using an API key.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly userId?: string;
/**
* Optional filter by maximum official rating (PG, PG-13, TV-MA, etc).
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly maxOfficialRating?: string;
/**
* Optional filter by items with theme songs.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasThemeSong?: boolean;
/**
* Optional filter by items with theme videos.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasThemeVideo?: boolean;
/**
* Optional filter by items with subtitles.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasSubtitles?: boolean;
/**
* Optional filter by items with special features.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasSpecialFeature?: boolean;
/**
* Optional filter by items with trailers.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasTrailer?: boolean;
/**
* Optional. Return items that are siblings of a supplied item.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly adjacentTo?: string;
/**
* Optional filter by index number.
* @type {number}
* @memberof ItemsApiGetItems
*/
readonly indexNumber?: number;
/**
* Optional filter by parent index number.
* @type {number}
* @memberof ItemsApiGetItems
*/
readonly parentIndexNumber?: number;
/**
* Optional filter by items that have or do not have a parental rating.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasParentalRating?: boolean;
/**
* Optional filter by items that are HD or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isHd?: boolean;
/**
* Optional filter by items that are 4K or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly is4K?: boolean;
/**
* Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited.
* @type {Array<LocationType>}
* @memberof ItemsApiGetItems
*/
readonly locationTypes?: Array<LocationType>;
/**
* Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited.
* @type {Array<LocationType>}
* @memberof ItemsApiGetItems
*/
readonly excludeLocationTypes?: Array<LocationType>;
/**
* Optional filter by items that are missing episodes or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isMissing?: boolean;
/**
* Optional filter by items that are unaired episodes or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isUnaired?: boolean;
/**
* Optional filter by minimum community rating.
* @type {number}
* @memberof ItemsApiGetItems
*/
readonly minCommunityRating?: number;
/**
* Optional filter by minimum critic rating.
* @type {number}
* @memberof ItemsApiGetItems
*/
readonly minCriticRating?: number;
/**
* Optional. The minimum premiere date. Format = ISO.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly minPremiereDate?: string;
/**
* Optional. The minimum last saved date. Format = ISO.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly minDateLastSaved?: string;
/**
* Optional. The minimum last saved date for the current user. Format = ISO.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly minDateLastSavedForUser?: string;
/**
* Optional. The maximum premiere date. Format = ISO.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly maxPremiereDate?: string;
/**
* Optional filter by items that have an overview or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasOverview?: boolean;
/**
* Optional filter by items that have an IMDb id or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasImdbId?: boolean;
/**
* Optional filter by items that have a TMDb id or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasTmdbId?: boolean;
/**
* Optional filter by items that have a TVDb id or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly hasTvdbId?: boolean;
/**
* Optional filter for live tv movies.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isMovie?: boolean;
/**
* Optional filter for live tv series.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isSeries?: boolean;
/**
* Optional filter for live tv news.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isNews?: boolean;
/**
* Optional filter for live tv kids.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isKids?: boolean;
/**
* Optional filter for live tv sports.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isSports?: boolean;
/**
* Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly excludeItemIds?: Array<string>;
/**
* Optional. The record index to start at. All items with a lower index will be dropped from the results.
* @type {number}
* @memberof ItemsApiGetItems
*/
readonly startIndex?: number;
/**
* Optional. The maximum number of records to return.
* @type {number}
* @memberof ItemsApiGetItems
*/
readonly limit?: number;
/**
* When searching within folders, this determines whether or not the search will be recursive. true/false.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly recursive?: boolean;
/**
* Optional. Filter based on a search term.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly searchTerm?: string;
/**
* Sort Order - Ascending, Descending.
* @type {Array<SortOrder>}
* @memberof ItemsApiGetItems
*/
readonly sortOrder?: Array<SortOrder>;
/**
* Specify this to localize the search to a specific item or folder. Omit to use the root.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly parentId?: string;
/**
* Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
* @type {Array<ItemFields>}
* @memberof ItemsApiGetItems
*/
readonly fields?: Array<ItemFields>;
/**
* Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
* @type {Array<BaseItemKind>}
* @memberof ItemsApiGetItems
*/
readonly excludeItemTypes?: Array<BaseItemKind>;
/**
* Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
* @type {Array<BaseItemKind>}
* @memberof ItemsApiGetItems
*/
readonly includeItemTypes?: Array<BaseItemKind>;
/**
* Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
* @type {Array<ItemFilter>}
* @memberof ItemsApiGetItems
*/
readonly filters?: Array<ItemFilter>;
/**
* Optional filter by items that are marked as favorite, or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isFavorite?: boolean;
/**
* Optional filter by MediaType. Allows multiple, comma delimited.
* @type {Array<MediaType>}
* @memberof ItemsApiGetItems
*/
readonly mediaTypes?: Array<MediaType>;
/**
* Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited.
* @type {Array<ImageType>}
* @memberof ItemsApiGetItems
*/
readonly imageTypes?: Array<ImageType>;
/**
* Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
* @type {Array<ItemSortBy>}
* @memberof ItemsApiGetItems
*/
readonly sortBy?: Array<ItemSortBy>;
/**
* Optional filter by items that are played, or not.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isPlayed?: boolean;
/**
* Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly genres?: Array<string>;
/**
* Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly officialRatings?: Array<string>;
/**
* Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly tags?: Array<string>;
/**
* Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
* @type {Array<number>}
* @memberof ItemsApiGetItems
*/
readonly years?: Array<number>;
/**
* Optional, include user data.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly enableUserData?: boolean;
/**
* Optional, the max number of images to return, per image type.
* @type {number}
* @memberof ItemsApiGetItems
*/
readonly imageTypeLimit?: number;
/**
* Optional. The image types to include in the output.
* @type {Array<ImageType>}
* @memberof ItemsApiGetItems
*/
readonly enableImageTypes?: Array<ImageType>;
/**
* Optional. If specified, results will be filtered to include only those containing the specified person.
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly person?: string;
/**
* Optional. If specified, results will be filtered to include only those containing the specified person id.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly personIds?: Array<string>;
/**
* Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly personTypes?: Array<string>;
/**
* Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly studios?: Array<string>;
/**
* Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly artists?: Array<string>;
/**
* Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly excludeArtistIds?: Array<string>;
/**
* Optional. If specified, results will be filtered to include only those containing the specified artist id.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly artistIds?: Array<string>;
/**
* Optional. If specified, results will be filtered to include only those containing the specified album artist id.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly albumArtistIds?: Array<string>;
/**
* Optional. If specified, results will be filtered to include only those containing the specified contributing artist id.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly contributingArtistIds?: Array<string>;
/**
* Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly albums?: Array<string>;
/**
* Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly albumIds?: Array<string>;
/**
* Optional. If specific items are needed, specify a list of item id\'s to retrieve. This allows multiple, comma delimited.
* @type {Array<string>}
* @memberof ItemsApiGetItems
*/
readonly ids?: Array<string>;
/**
* Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited.
* @type {Array<VideoType>}
* @memberof ItemsApiGetItems
*/
readonly videoTypes?: Array<VideoType>;
/**
* Optional filter by minimum official rating (PG, PG-13, TV-MA, etc).
* @type {string}
* @memberof ItemsApiGetItems
*/
readonly minOfficialRating?: string;
/**
* Optional filter by items that are locked.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isLocked?: boolean;
/**
* Optional filter by items that are placeholders.
* @type {boolean}
* @memberof ItemsApiGetItems
*/
readonly isPlaceHolder?: boolean;
/**
* Optional filter by items that have official ratings.
* @type {boolean}
* @me