jellyfin-discord-bot/jellyfin/model/models.ts

1342 lines
61 KiB
TypeScript
Raw Normal View History

2023-04-15 22:02:40 +02:00
import localVarRequest from 'request';
export * from './accessSchedule';
export * from './activityLogEntry';
export * from './activityLogEntryQueryResult';
export * from './addListingProviderRequest';
export * from './addMediaPathRequest';
export * from './addTunerHostRequest';
export * from './addVirtualFolderDto';
export * from './addVirtualFolderDtoLibraryOptions';
export * from './addVirtualFolderRequest';
export * from './adminNotificationDto';
export * from './albumInfo';
export * from './albumInfoRemoteSearchQuery';
export * from './allThemeMediaResult';
export * from './allThemeMediaResultThemeVideosResult';
export * from './applySearchCriteriaRequest';
export * from './architecture';
export * from './artistInfo';
export * from './artistInfoRemoteSearchQuery';
export * from './authenticateUserByName';
export * from './authenticateUserByNameRequest';
export * from './authenticateWithQuickConnectRequest';
export * from './authenticationInfo';
export * from './authenticationInfoQueryResult';
export * from './authenticationResult';
export * from './authenticationResultSessionInfo';
export * from './authenticationResultUser';
export * from './baseItem';
export * from './baseItemDto';
export * from './baseItemDtoCurrentProgram';
export * from './baseItemDtoImageBlurHashes';
export * from './baseItemDtoQueryResult';
export * from './baseItemDtoUserData';
export * from './baseItemKind';
export * from './baseItemPerson';
export * from './baseItemPersonImageBlurHashes';
export * from './bookInfo';
export * from './bookInfoRemoteSearchQuery';
export * from './boxSetInfo';
export * from './boxSetInfoRemoteSearchQuery';
export * from './brandingOptions';
export * from './bufferRequestDto';
export * from './channelFeatures';
export * from './channelItemSortField';
export * from './channelMappingOptionsDto';
export * from './channelMediaContentType';
export * from './channelMediaType';
export * from './channelType';
export * from './chapterInfo';
export * from './clientCapabilities';
export * from './clientCapabilitiesDeviceProfile';
export * from './clientCapabilitiesDto';
export * from './clientCapabilitiesDtoDeviceProfile';
export * from './clientLogDocumentResponseDto';
export * from './codecProfile';
export * from './codecType';
export * from './collectionCreationResult';
export * from './collectionTypeOptions';
export * from './configImageTypes';
export * from './configurationPageInfo';
export * from './containerProfile';
export * from './controlResponse';
export * from './countryInfo';
export * from './createAdminNotificationRequest';
export * from './createPlaylistDto';
export * from './createPlaylistRequest';
export * from './createProfileRequest';
export * from './createSeriesTimerRequest';
export * from './createTimerRequest';
export * from './createUserByName';
export * from './createUserByNameRequest';
export * from './cultureDto';
export * from './dayOfWeek';
export * from './dayPattern';
export * from './defaultDirectoryBrowserInfoDto';
export * from './deviceIdentification';
export * from './deviceInfo';
export * from './deviceInfoCapabilities';
export * from './deviceInfoQueryResult';
export * from './deviceOptions';
export * from './deviceOptionsDto';
export * from './deviceProfile';
export * from './deviceProfileIdentification';
export * from './deviceProfileInfo';
export * from './deviceProfileType';
export * from './directPlayProfile';
export * from './displayPreferencesDto';
export * from './dlnaOptions';
export * from './dlnaProfileType';
export * from './dynamicDayOfWeek';
export * from './embeddedSubtitleOptions';
export * from './encodingContext';
export * from './encodingOptions';
export * from './endPointInfo';
export * from './externalIdInfo';
export * from './externalIdMediaType';
export * from './externalUrl';
export * from './fFmpegLocation';
export * from './fileSystemEntryInfo';
export * from './fileSystemEntryType';
export * from './fontFile';
export * from './forgotPasswordAction';
export * from './forgotPasswordDto';
export * from './forgotPasswordPinDto';
export * from './forgotPasswordPinRequest';
export * from './forgotPasswordRequest';
export * from './forgotPasswordResult';
export * from './generalCommand';
export * from './generalCommandType';
export * from './getBookRemoteSearchResultsRequest';
export * from './getBoxSetRemoteSearchResultsRequest';
export * from './getMovieRemoteSearchResultsRequest';
export * from './getMusicAlbumRemoteSearchResultsRequest';
export * from './getMusicArtistRemoteSearchResultsRequest';
export * from './getMusicVideoRemoteSearchResultsRequest';
export * from './getPersonRemoteSearchResultsRequest';
export * from './getPostedPlaybackInfoRequest';
export * from './getProgramsDto';
export * from './getProgramsRequest';
export * from './getSeriesRemoteSearchResultsRequest';
export * from './getTrailerRemoteSearchResultsRequest';
export * from './groupInfoDto';
export * from './groupQueueMode';
export * from './groupRepeatMode';
export * from './groupShuffleMode';
export * from './groupStateType';
export * from './groupUpdateType';
export * from './guideInfo';
export * from './hardwareEncodingType';
export * from './headerMatchType';
export * from './httpHeaderInfo';
export * from './iPlugin';
export * from './ignoreWaitRequestDto';
export * from './imageByNameInfo';
export * from './imageFormat';
export * from './imageInfo';
export * from './imageOption';
export * from './imageOrientation';
export * from './imageProviderInfo';
export * from './imageSavingConvention';
export * from './imageType';
export * from './installationInfo';
export * from './installationInfoPackageInfo';
export * from './isoType';
export * from './itemCounts';
export * from './itemFields';
export * from './itemFilter';
export * from './joinGroupRequestDto';
export * from './keepUntil';
export * from './libraryOptionInfoDto';
export * from './libraryOptions';
export * from './libraryOptionsResultDto';
export * from './libraryTypeOptionsDto';
export * from './libraryUpdateInfo';
export * from './listingsProviderInfo';
export * from './liveStreamResponse';
export * from './liveStreamResponseMediaSource';
export * from './liveTvInfo';
export * from './liveTvOptions';
export * from './liveTvServiceInfo';
export * from './liveTvServiceStatus';
export * from './localizationOption';
export * from './locationType';
export * from './logFile';
export * from './logLevel';
export * from './mediaAttachment';
export * from './mediaEncoderPathDto';
export * from './mediaPathDto';
export * from './mediaPathDtoPathInfo';
export * from './mediaPathInfo';
export * from './mediaProtocol';
export * from './mediaSourceInfo';
export * from './mediaSourceType';
export * from './mediaStream';
export * from './mediaStreamType';
export * from './mediaUpdateInfoDto';
export * from './mediaUpdateInfoPathDto';
export * from './mediaUrl';
export * from './messageCommand';
export * from './metadataConfiguration';
export * from './metadataEditorInfo';
export * from './metadataField';
export * from './metadataOptions';
export * from './metadataRefreshMode';
export * from './movePlaylistItemRequestDto';
export * from './movieInfo';
export * from './movieInfoRemoteSearchQuery';
export * from './musicVideoInfo';
export * from './musicVideoInfoRemoteSearchQuery';
export * from './nameGuidPair';
export * from './nameIdPair';
export * from './nameValuePair';
export * from './networkConfiguration';
export * from './newGroupRequestDto';
export * from './nextItemRequestDto';
export * from './notificationDto';
export * from './notificationLevel';
export * from './notificationOption';
export * from './notificationOptions';
export * from './notificationResultDto';
export * from './notificationTypeInfo';
export * from './notificationsSummaryDto';
export * from './objectGroupUpdate';
export * from './openLiveStreamDto';
export * from './openLiveStreamRequest';
export * from './packageInfo';
export * from './parentalRating';
export * from './pathSubstitution';
export * from './personLookupInfo';
export * from './personLookupInfoRemoteSearchQuery';
export * from './pinRedeemResult';
export * from './pingRequestDto';
export * from './playAccess';
export * from './playCommand';
export * from './playMethod';
export * from './playRequest';
export * from './playRequestDto';
export * from './playbackErrorCode';
export * from './playbackInfoDto';
export * from './playbackInfoResponse';
export * from './playbackProgressInfo';
export * from './playbackProgressInfoItem';
export * from './playbackStartInfo';
export * from './playbackStopInfo';
export * from './playerStateInfo';
export * from './playlistCreationResult';
export * from './playstateCommand';
export * from './playstateRequest';
export * from './pluginInfo';
export * from './pluginStatus';
export * from './postFullCapabilitiesRequest';
export * from './postUpdatedMediaRequest';
export * from './previousItemRequestDto';
export * from './problemDetails';
export * from './profileCondition';
export * from './profileConditionType';
export * from './profileConditionValue';
export * from './programAudio';
export * from './publicSystemInfo';
export * from './queryFilters';
export * from './queryFiltersLegacy';
export * from './queueItem';
export * from './queueRequestDto';
export * from './quickConnectDto';
export * from './quickConnectResult';
export * from './ratingType';
export * from './readyRequestDto';
export * from './recommendationDto';
export * from './recommendationType';
export * from './recordingStatus';
export * from './remoteImageInfo';
export * from './remoteImageResult';
export * from './remoteSearchResult';
export * from './remoteSubtitleInfo';
export * from './removeFromPlaylistRequestDto';
export * from './repeatMode';
export * from './reportPlaybackProgressRequest';
export * from './reportPlaybackStartRequest';
export * from './reportPlaybackStoppedRequest';
export * from './repositoryInfo';
export * from './responseProfile';
export * from './scrollDirection';
export * from './searchHint';
export * from './searchHintResult';
export * from './seekRequestDto';
export * from './sendCommand';
export * from './sendCommandType';
export * from './sendFullGeneralCommandRequest';
export * from './sendMessageCommandRequest';
export * from './sendToUserType';
export * from './seriesInfo';
export * from './seriesInfoRemoteSearchQuery';
export * from './seriesStatus';
export * from './seriesTimerInfoDto';
export * from './seriesTimerInfoDtoQueryResult';
export * from './serverConfiguration';
export * from './serverDiscoveryInfo';
export * from './sessionInfo';
export * from './sessionInfoFullNowPlayingItem';
export * from './sessionInfoNowPlayingItem';
export * from './sessionMessageType';
export * from './sessionUserInfo';
export * from './setChannelMappingDto';
export * from './setChannelMappingRequest';
export * from './setPlaylistItemRequestDto';
export * from './setRemoteAccessRequest';
export * from './setRepeatModeRequestDto';
export * from './setShuffleModeRequestDto';
export * from './songInfo';
export * from './sortOrder';
export * from './specialViewOptionDto';
export * from './startupConfigurationDto';
export * from './startupRemoteAccessDto';
export * from './startupUserDto';
export * from './subtitleDeliveryMethod';
export * from './subtitleOptions';
export * from './subtitlePlaybackMode';
export * from './subtitleProfile';
export * from './syncPlayBufferingRequest';
export * from './syncPlayCreateGroupRequest';
export * from './syncPlayJoinGroupRequest';
export * from './syncPlayMovePlaylistItemRequest';
export * from './syncPlayNextItemRequest';
export * from './syncPlayPingRequest';
export * from './syncPlayPreviousItemRequest';
export * from './syncPlayQueueRequest';
export * from './syncPlayReadyRequest';
export * from './syncPlayRemoveFromPlaylistRequest';
export * from './syncPlaySeekRequest';
export * from './syncPlaySetIgnoreWaitRequest';
export * from './syncPlaySetNewQueueRequest';
export * from './syncPlaySetPlaylistItemRequest';
export * from './syncPlaySetRepeatModeRequest';
export * from './syncPlaySetShuffleModeRequest';
export * from './syncPlayUserAccessType';
export * from './systemInfo';
export * from './taskCompletionStatus';
export * from './taskInfo';
export * from './taskInfoLastExecutionResult';
export * from './taskResult';
export * from './taskState';
export * from './taskTriggerInfo';
export * from './themeMediaResult';
export * from './timerEventInfo';
export * from './timerInfoDto';
export * from './timerInfoDtoProgramInfo';
export * from './timerInfoDtoQueryResult';
export * from './trailerInfo';
export * from './trailerInfoRemoteSearchQuery';
export * from './transcodeReason';
export * from './transcodeSeekInfo';
export * from './transcodingInfo';
export * from './transcodingProfile';
export * from './transportStreamTimestamp';
export * from './tunerChannelMapping';
export * from './tunerHostInfo';
export * from './typeOptions';
export * from './unratedItem';
export * from './updateConfigurationRequest';
export * from './updateDeviceOptionsRequest';
export * from './updateDisplayPreferencesRequest';
export * from './updateInitialConfigurationRequest';
export * from './updateItemRequest';
export * from './updateLibraryOptionsDto';
export * from './updateLibraryOptionsRequest';
export * from './updateMediaEncoderPathRequest';
export * from './updateMediaPathRequest';
export * from './updateMediaPathRequestDto';
export * from './updateMediaPathRequestDtoPathInfo';
export * from './updateStartupUserRequest';
export * from './updateUserConfigurationRequest';
export * from './updateUserEasyPassword';
export * from './updateUserEasyPasswordRequest';
export * from './updateUserPassword';
export * from './updateUserPasswordRequest';
export * from './updateUserPolicyRequest';
export * from './updateUserRequest';
export * from './uploadSubtitleDto';
export * from './uploadSubtitleRequest';
export * from './userConfiguration';
export * from './userDto';
export * from './userDtoConfiguration';
export * from './userDtoPolicy';
export * from './userItemDataDto';
export * from './userPolicy';
export * from './utcTimeResponse';
export * from './validatePathDto';
export * from './validatePathRequest';
export * from './versionInfo';
export * from './video3DFormat';
export * from './videoType';
export * from './virtualFolderInfo';
export * from './wakeOnLanInfo';
export * from './xbmcMetadataOptions';
export * from './xmlAttribute';
import * as fs from 'fs';
export interface RequestDetailedFile {
value: Buffer;
options?: {
filename?: string;
contentType?: string;
}
}
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
import { AccessSchedule } from './accessSchedule';
import { ActivityLogEntry } from './activityLogEntry';
import { ActivityLogEntryQueryResult } from './activityLogEntryQueryResult';
import { AddListingProviderRequest } from './addListingProviderRequest';
import { AddMediaPathRequest } from './addMediaPathRequest';
import { AddTunerHostRequest } from './addTunerHostRequest';
import { AddVirtualFolderDto } from './addVirtualFolderDto';
import { AddVirtualFolderDtoLibraryOptions } from './addVirtualFolderDtoLibraryOptions';
import { AddVirtualFolderRequest } from './addVirtualFolderRequest';
import { AdminNotificationDto } from './adminNotificationDto';
import { AlbumInfo } from './albumInfo';
import { AlbumInfoRemoteSearchQuery } from './albumInfoRemoteSearchQuery';
import { AllThemeMediaResult } from './allThemeMediaResult';
import { AllThemeMediaResultThemeVideosResult } from './allThemeMediaResultThemeVideosResult';
import { ApplySearchCriteriaRequest } from './applySearchCriteriaRequest';
import { Architecture } from './architecture';
import { ArtistInfo } from './artistInfo';
import { ArtistInfoRemoteSearchQuery } from './artistInfoRemoteSearchQuery';
import { AuthenticateUserByName } from './authenticateUserByName';
import { AuthenticateUserByNameRequest } from './authenticateUserByNameRequest';
import { AuthenticateWithQuickConnectRequest } from './authenticateWithQuickConnectRequest';
import { AuthenticationInfo } from './authenticationInfo';
import { AuthenticationInfoQueryResult } from './authenticationInfoQueryResult';
import { AuthenticationResult } from './authenticationResult';
import { AuthenticationResultSessionInfo } from './authenticationResultSessionInfo';
import { AuthenticationResultUser } from './authenticationResultUser';
import { BaseItem } from './baseItem';
import { BaseItemDto } from './baseItemDto';
import { BaseItemDtoCurrentProgram } from './baseItemDtoCurrentProgram';
import { BaseItemDtoImageBlurHashes } from './baseItemDtoImageBlurHashes';
import { BaseItemDtoQueryResult } from './baseItemDtoQueryResult';
import { BaseItemDtoUserData } from './baseItemDtoUserData';
import { BaseItemKind } from './baseItemKind';
import { BaseItemPerson } from './baseItemPerson';
import { BaseItemPersonImageBlurHashes } from './baseItemPersonImageBlurHashes';
import { BookInfo } from './bookInfo';
import { BookInfoRemoteSearchQuery } from './bookInfoRemoteSearchQuery';
import { BoxSetInfo } from './boxSetInfo';
import { BoxSetInfoRemoteSearchQuery } from './boxSetInfoRemoteSearchQuery';
import { BrandingOptions } from './brandingOptions';
import { BufferRequestDto } from './bufferRequestDto';
import { ChannelFeatures } from './channelFeatures';
import { ChannelItemSortField } from './channelItemSortField';
import { ChannelMappingOptionsDto } from './channelMappingOptionsDto';
import { ChannelMediaContentType } from './channelMediaContentType';
import { ChannelMediaType } from './channelMediaType';
import { ChannelType } from './channelType';
import { ChapterInfo } from './chapterInfo';
import { ClientCapabilities } from './clientCapabilities';
import { ClientCapabilitiesDeviceProfile } from './clientCapabilitiesDeviceProfile';
import { ClientCapabilitiesDto } from './clientCapabilitiesDto';
import { ClientCapabilitiesDtoDeviceProfile } from './clientCapabilitiesDtoDeviceProfile';
import { ClientLogDocumentResponseDto } from './clientLogDocumentResponseDto';
import { CodecProfile } from './codecProfile';
import { CodecType } from './codecType';
import { CollectionCreationResult } from './collectionCreationResult';
import { CollectionTypeOptions } from './collectionTypeOptions';
import { ConfigImageTypes } from './configImageTypes';
import { ConfigurationPageInfo } from './configurationPageInfo';
import { ContainerProfile } from './containerProfile';
import { ControlResponse } from './controlResponse';
import { CountryInfo } from './countryInfo';
import { CreateAdminNotificationRequest } from './createAdminNotificationRequest';
import { CreatePlaylistDto } from './createPlaylistDto';
import { CreatePlaylistRequest } from './createPlaylistRequest';
import { CreateProfileRequest } from './createProfileRequest';
import { CreateSeriesTimerRequest } from './createSeriesTimerRequest';
import { CreateTimerRequest } from './createTimerRequest';
import { CreateUserByName } from './createUserByName';
import { CreateUserByNameRequest } from './createUserByNameRequest';
import { CultureDto } from './cultureDto';
import { DayOfWeek } from './dayOfWeek';
import { DayPattern } from './dayPattern';
import { DefaultDirectoryBrowserInfoDto } from './defaultDirectoryBrowserInfoDto';
import { DeviceIdentification } from './deviceIdentification';
import { DeviceInfo } from './deviceInfo';
import { DeviceInfoCapabilities } from './deviceInfoCapabilities';
import { DeviceInfoQueryResult } from './deviceInfoQueryResult';
import { DeviceOptions } from './deviceOptions';
import { DeviceOptionsDto } from './deviceOptionsDto';
import { DeviceProfile } from './deviceProfile';
import { DeviceProfileIdentification } from './deviceProfileIdentification';
import { DeviceProfileInfo } from './deviceProfileInfo';
import { DeviceProfileType } from './deviceProfileType';
import { DirectPlayProfile } from './directPlayProfile';
import { DisplayPreferencesDto } from './displayPreferencesDto';
import { DlnaOptions } from './dlnaOptions';
import { DlnaProfileType } from './dlnaProfileType';
import { DynamicDayOfWeek } from './dynamicDayOfWeek';
import { EmbeddedSubtitleOptions } from './embeddedSubtitleOptions';
import { EncodingContext } from './encodingContext';
import { EncodingOptions } from './encodingOptions';
import { EndPointInfo } from './endPointInfo';
import { ExternalIdInfo } from './externalIdInfo';
import { ExternalIdMediaType } from './externalIdMediaType';
import { ExternalUrl } from './externalUrl';
import { FFmpegLocation } from './fFmpegLocation';
import { FileSystemEntryInfo } from './fileSystemEntryInfo';
import { FileSystemEntryType } from './fileSystemEntryType';
import { FontFile } from './fontFile';
import { ForgotPasswordAction } from './forgotPasswordAction';
import { ForgotPasswordDto } from './forgotPasswordDto';
import { ForgotPasswordPinDto } from './forgotPasswordPinDto';
import { ForgotPasswordPinRequest } from './forgotPasswordPinRequest';
import { ForgotPasswordRequest } from './forgotPasswordRequest';
import { ForgotPasswordResult } from './forgotPasswordResult';
import { GeneralCommand } from './generalCommand';
import { GeneralCommandType } from './generalCommandType';
import { GetBookRemoteSearchResultsRequest } from './getBookRemoteSearchResultsRequest';
import { GetBoxSetRemoteSearchResultsRequest } from './getBoxSetRemoteSearchResultsRequest';
import { GetMovieRemoteSearchResultsRequest } from './getMovieRemoteSearchResultsRequest';
import { GetMusicAlbumRemoteSearchResultsRequest } from './getMusicAlbumRemoteSearchResultsRequest';
import { GetMusicArtistRemoteSearchResultsRequest } from './getMusicArtistRemoteSearchResultsRequest';
import { GetMusicVideoRemoteSearchResultsRequest } from './getMusicVideoRemoteSearchResultsRequest';
import { GetPersonRemoteSearchResultsRequest } from './getPersonRemoteSearchResultsRequest';
import { GetPostedPlaybackInfoRequest } from './getPostedPlaybackInfoRequest';
import { GetProgramsDto } from './getProgramsDto';
import { GetProgramsRequest } from './getProgramsRequest';
import { GetSeriesRemoteSearchResultsRequest } from './getSeriesRemoteSearchResultsRequest';
import { GetTrailerRemoteSearchResultsRequest } from './getTrailerRemoteSearchResultsRequest';
import { GroupInfoDto } from './groupInfoDto';
import { GroupQueueMode } from './groupQueueMode';
import { GroupRepeatMode } from './groupRepeatMode';
import { GroupShuffleMode } from './groupShuffleMode';
import { GroupStateType } from './groupStateType';
import { GroupUpdateType } from './groupUpdateType';
import { GuideInfo } from './guideInfo';
import { HardwareEncodingType } from './hardwareEncodingType';
import { HeaderMatchType } from './headerMatchType';
import { HttpHeaderInfo } from './httpHeaderInfo';
import { IPlugin } from './iPlugin';
import { IgnoreWaitRequestDto } from './ignoreWaitRequestDto';
import { ImageByNameInfo } from './imageByNameInfo';
import { ImageFormat } from './imageFormat';
import { ImageInfo } from './imageInfo';
import { ImageOption } from './imageOption';
import { ImageOrientation } from './imageOrientation';
import { ImageProviderInfo } from './imageProviderInfo';
import { ImageSavingConvention } from './imageSavingConvention';
import { ImageType } from './imageType';
import { InstallationInfo } from './installationInfo';
import { InstallationInfoPackageInfo } from './installationInfoPackageInfo';
import { IsoType } from './isoType';
import { ItemCounts } from './itemCounts';
import { ItemFields } from './itemFields';
import { ItemFilter } from './itemFilter';
import { JoinGroupRequestDto } from './joinGroupRequestDto';
import { KeepUntil } from './keepUntil';
import { LibraryOptionInfoDto } from './libraryOptionInfoDto';
import { LibraryOptions } from './libraryOptions';
import { LibraryOptionsResultDto } from './libraryOptionsResultDto';
import { LibraryTypeOptionsDto } from './libraryTypeOptionsDto';
import { LibraryUpdateInfo } from './libraryUpdateInfo';
import { ListingsProviderInfo } from './listingsProviderInfo';
import { LiveStreamResponse } from './liveStreamResponse';
import { LiveStreamResponseMediaSource } from './liveStreamResponseMediaSource';
import { LiveTvInfo } from './liveTvInfo';
import { LiveTvOptions } from './liveTvOptions';
import { LiveTvServiceInfo } from './liveTvServiceInfo';
import { LiveTvServiceStatus } from './liveTvServiceStatus';
import { LocalizationOption } from './localizationOption';
import { LocationType } from './locationType';
import { LogFile } from './logFile';
import { LogLevel } from './logLevel';
import { MediaAttachment } from './mediaAttachment';
import { MediaEncoderPathDto } from './mediaEncoderPathDto';
import { MediaPathDto } from './mediaPathDto';
import { MediaPathDtoPathInfo } from './mediaPathDtoPathInfo';
import { MediaPathInfo } from './mediaPathInfo';
import { MediaProtocol } from './mediaProtocol';
import { MediaSourceInfo } from './mediaSourceInfo';
import { MediaSourceType } from './mediaSourceType';
import { MediaStream } from './mediaStream';
import { MediaStreamType } from './mediaStreamType';
import { MediaUpdateInfoDto } from './mediaUpdateInfoDto';
import { MediaUpdateInfoPathDto } from './mediaUpdateInfoPathDto';
import { MediaUrl } from './mediaUrl';
import { MessageCommand } from './messageCommand';
import { MetadataConfiguration } from './metadataConfiguration';
import { MetadataEditorInfo } from './metadataEditorInfo';
import { MetadataField } from './metadataField';
import { MetadataOptions } from './metadataOptions';
import { MetadataRefreshMode } from './metadataRefreshMode';
import { MovePlaylistItemRequestDto } from './movePlaylistItemRequestDto';
import { MovieInfo } from './movieInfo';
import { MovieInfoRemoteSearchQuery } from './movieInfoRemoteSearchQuery';
import { MusicVideoInfo } from './musicVideoInfo';
import { MusicVideoInfoRemoteSearchQuery } from './musicVideoInfoRemoteSearchQuery';
import { NameGuidPair } from './nameGuidPair';
import { NameIdPair } from './nameIdPair';
import { NameValuePair } from './nameValuePair';
import { NetworkConfiguration } from './networkConfiguration';
import { NewGroupRequestDto } from './newGroupRequestDto';
import { NextItemRequestDto } from './nextItemRequestDto';
import { NotificationDto } from './notificationDto';
import { NotificationLevel } from './notificationLevel';
import { NotificationOption } from './notificationOption';
import { NotificationOptions } from './notificationOptions';
import { NotificationResultDto } from './notificationResultDto';
import { NotificationTypeInfo } from './notificationTypeInfo';
import { NotificationsSummaryDto } from './notificationsSummaryDto';
import { ObjectGroupUpdate } from './objectGroupUpdate';
import { OpenLiveStreamDto } from './openLiveStreamDto';
import { OpenLiveStreamRequest } from './openLiveStreamRequest';
import { PackageInfo } from './packageInfo';
import { ParentalRating } from './parentalRating';
import { PathSubstitution } from './pathSubstitution';
import { PersonLookupInfo } from './personLookupInfo';
import { PersonLookupInfoRemoteSearchQuery } from './personLookupInfoRemoteSearchQuery';
import { PinRedeemResult } from './pinRedeemResult';
import { PingRequestDto } from './pingRequestDto';
import { PlayAccess } from './playAccess';
import { PlayCommand } from './playCommand';
import { PlayMethod } from './playMethod';
import { PlayRequest } from './playRequest';
import { PlayRequestDto } from './playRequestDto';
import { PlaybackErrorCode } from './playbackErrorCode';
import { PlaybackInfoDto } from './playbackInfoDto';
import { PlaybackInfoResponse } from './playbackInfoResponse';
import { PlaybackProgressInfo } from './playbackProgressInfo';
import { PlaybackProgressInfoItem } from './playbackProgressInfoItem';
import { PlaybackStartInfo } from './playbackStartInfo';
import { PlaybackStopInfo } from './playbackStopInfo';
import { PlayerStateInfo } from './playerStateInfo';
import { PlaylistCreationResult } from './playlistCreationResult';
import { PlaystateCommand } from './playstateCommand';
import { PlaystateRequest } from './playstateRequest';
import { PluginInfo } from './pluginInfo';
import { PluginStatus } from './pluginStatus';
import { PostFullCapabilitiesRequest } from './postFullCapabilitiesRequest';
import { PostUpdatedMediaRequest } from './postUpdatedMediaRequest';
import { PreviousItemRequestDto } from './previousItemRequestDto';
import { ProblemDetails } from './problemDetails';
import { ProfileCondition } from './profileCondition';
import { ProfileConditionType } from './profileConditionType';
import { ProfileConditionValue } from './profileConditionValue';
import { ProgramAudio } from './programAudio';
import { PublicSystemInfo } from './publicSystemInfo';
import { QueryFilters } from './queryFilters';
import { QueryFiltersLegacy } from './queryFiltersLegacy';
import { QueueItem } from './queueItem';
import { QueueRequestDto } from './queueRequestDto';
import { QuickConnectDto } from './quickConnectDto';
import { QuickConnectResult } from './quickConnectResult';
import { RatingType } from './ratingType';
import { ReadyRequestDto } from './readyRequestDto';
import { RecommendationDto } from './recommendationDto';
import { RecommendationType } from './recommendationType';
import { RecordingStatus } from './recordingStatus';
import { RemoteImageInfo } from './remoteImageInfo';
import { RemoteImageResult } from './remoteImageResult';
import { RemoteSearchResult } from './remoteSearchResult';
import { RemoteSubtitleInfo } from './remoteSubtitleInfo';
import { RemoveFromPlaylistRequestDto } from './removeFromPlaylistRequestDto';
import { RepeatMode } from './repeatMode';
import { ReportPlaybackProgressRequest } from './reportPlaybackProgressRequest';
import { ReportPlaybackStartRequest } from './reportPlaybackStartRequest';
import { ReportPlaybackStoppedRequest } from './reportPlaybackStoppedRequest';
import { RepositoryInfo } from './repositoryInfo';
import { ResponseProfile } from './responseProfile';
import { ScrollDirection } from './scrollDirection';
import { SearchHint } from './searchHint';
import { SearchHintResult } from './searchHintResult';
import { SeekRequestDto } from './seekRequestDto';
import { SendCommand } from './sendCommand';
import { SendCommandType } from './sendCommandType';
import { SendFullGeneralCommandRequest } from './sendFullGeneralCommandRequest';
import { SendMessageCommandRequest } from './sendMessageCommandRequest';
import { SendToUserType } from './sendToUserType';
import { SeriesInfo } from './seriesInfo';
import { SeriesInfoRemoteSearchQuery } from './seriesInfoRemoteSearchQuery';
import { SeriesStatus } from './seriesStatus';
import { SeriesTimerInfoDto } from './seriesTimerInfoDto';
import { SeriesTimerInfoDtoQueryResult } from './seriesTimerInfoDtoQueryResult';
import { ServerConfiguration } from './serverConfiguration';
import { ServerDiscoveryInfo } from './serverDiscoveryInfo';
import { SessionInfo } from './sessionInfo';
import { SessionInfoFullNowPlayingItem } from './sessionInfoFullNowPlayingItem';
import { SessionInfoNowPlayingItem } from './sessionInfoNowPlayingItem';
import { SessionMessageType } from './sessionMessageType';
import { SessionUserInfo } from './sessionUserInfo';
import { SetChannelMappingDto } from './setChannelMappingDto';
import { SetChannelMappingRequest } from './setChannelMappingRequest';
import { SetPlaylistItemRequestDto } from './setPlaylistItemRequestDto';
import { SetRemoteAccessRequest } from './setRemoteAccessRequest';
import { SetRepeatModeRequestDto } from './setRepeatModeRequestDto';
import { SetShuffleModeRequestDto } from './setShuffleModeRequestDto';
import { SongInfo } from './songInfo';
import { SortOrder } from './sortOrder';
import { SpecialViewOptionDto } from './specialViewOptionDto';
import { StartupConfigurationDto } from './startupConfigurationDto';
import { StartupRemoteAccessDto } from './startupRemoteAccessDto';
import { StartupUserDto } from './startupUserDto';
import { SubtitleDeliveryMethod } from './subtitleDeliveryMethod';
import { SubtitleOptions } from './subtitleOptions';
import { SubtitlePlaybackMode } from './subtitlePlaybackMode';
import { SubtitleProfile } from './subtitleProfile';
import { SyncPlayBufferingRequest } from './syncPlayBufferingRequest';
import { SyncPlayCreateGroupRequest } from './syncPlayCreateGroupRequest';
import { SyncPlayJoinGroupRequest } from './syncPlayJoinGroupRequest';
import { SyncPlayMovePlaylistItemRequest } from './syncPlayMovePlaylistItemRequest';
import { SyncPlayNextItemRequest } from './syncPlayNextItemRequest';
import { SyncPlayPingRequest } from './syncPlayPingRequest';
import { SyncPlayPreviousItemRequest } from './syncPlayPreviousItemRequest';
import { SyncPlayQueueRequest } from './syncPlayQueueRequest';
import { SyncPlayReadyRequest } from './syncPlayReadyRequest';
import { SyncPlayRemoveFromPlaylistRequest } from './syncPlayRemoveFromPlaylistRequest';
import { SyncPlaySeekRequest } from './syncPlaySeekRequest';
import { SyncPlaySetIgnoreWaitRequest } from './syncPlaySetIgnoreWaitRequest';
import { SyncPlaySetNewQueueRequest } from './syncPlaySetNewQueueRequest';
import { SyncPlaySetPlaylistItemRequest } from './syncPlaySetPlaylistItemRequest';
import { SyncPlaySetRepeatModeRequest } from './syncPlaySetRepeatModeRequest';
import { SyncPlaySetShuffleModeRequest } from './syncPlaySetShuffleModeRequest';
import { SyncPlayUserAccessType } from './syncPlayUserAccessType';
import { SystemInfo } from './systemInfo';
import { TaskCompletionStatus } from './taskCompletionStatus';
import { TaskInfo } from './taskInfo';
import { TaskInfoLastExecutionResult } from './taskInfoLastExecutionResult';
import { TaskResult } from './taskResult';
import { TaskState } from './taskState';
import { TaskTriggerInfo } from './taskTriggerInfo';
import { ThemeMediaResult } from './themeMediaResult';
import { TimerEventInfo } from './timerEventInfo';
import { TimerInfoDto } from './timerInfoDto';
import { TimerInfoDtoProgramInfo } from './timerInfoDtoProgramInfo';
import { TimerInfoDtoQueryResult } from './timerInfoDtoQueryResult';
import { TrailerInfo } from './trailerInfo';
import { TrailerInfoRemoteSearchQuery } from './trailerInfoRemoteSearchQuery';
import { TranscodeReason } from './transcodeReason';
import { TranscodeSeekInfo } from './transcodeSeekInfo';
import { TranscodingInfo } from './transcodingInfo';
import { TranscodingProfile } from './transcodingProfile';
import { TransportStreamTimestamp } from './transportStreamTimestamp';
import { TunerChannelMapping } from './tunerChannelMapping';
import { TunerHostInfo } from './tunerHostInfo';
import { TypeOptions } from './typeOptions';
import { UnratedItem } from './unratedItem';
import { UpdateConfigurationRequest } from './updateConfigurationRequest';
import { UpdateDeviceOptionsRequest } from './updateDeviceOptionsRequest';
import { UpdateDisplayPreferencesRequest } from './updateDisplayPreferencesRequest';
import { UpdateInitialConfigurationRequest } from './updateInitialConfigurationRequest';
import { UpdateItemRequest } from './updateItemRequest';
import { UpdateLibraryOptionsDto } from './updateLibraryOptionsDto';
import { UpdateLibraryOptionsRequest } from './updateLibraryOptionsRequest';
import { UpdateMediaEncoderPathRequest } from './updateMediaEncoderPathRequest';
import { UpdateMediaPathRequest } from './updateMediaPathRequest';
import { UpdateMediaPathRequestDto } from './updateMediaPathRequestDto';
import { UpdateMediaPathRequestDtoPathInfo } from './updateMediaPathRequestDtoPathInfo';
import { UpdateStartupUserRequest } from './updateStartupUserRequest';
import { UpdateUserConfigurationRequest } from './updateUserConfigurationRequest';
import { UpdateUserEasyPassword } from './updateUserEasyPassword';
import { UpdateUserEasyPasswordRequest } from './updateUserEasyPasswordRequest';
import { UpdateUserPassword } from './updateUserPassword';
import { UpdateUserPasswordRequest } from './updateUserPasswordRequest';
import { UpdateUserPolicyRequest } from './updateUserPolicyRequest';
import { UpdateUserRequest } from './updateUserRequest';
import { UploadSubtitleDto } from './uploadSubtitleDto';
import { UploadSubtitleRequest } from './uploadSubtitleRequest';
import { UserConfiguration } from './userConfiguration';
import { UserDto } from './userDto';
import { UserDtoConfiguration } from './userDtoConfiguration';
import { UserDtoPolicy } from './userDtoPolicy';
import { UserItemDataDto } from './userItemDataDto';
import { UserPolicy } from './userPolicy';
import { UtcTimeResponse } from './utcTimeResponse';
import { ValidatePathDto } from './validatePathDto';
import { ValidatePathRequest } from './validatePathRequest';
import { VersionInfo } from './versionInfo';
import { Video3DFormat } from './video3DFormat';
import { VideoType } from './videoType';
import { VirtualFolderInfo } from './virtualFolderInfo';
import { WakeOnLanInfo } from './wakeOnLanInfo';
import { XbmcMetadataOptions } from './xbmcMetadataOptions';
import { XmlAttribute } from './xmlAttribute';
/* tslint:disable:no-unused-variable */
let primitives = [
"string",
"boolean",
"double",
"integer",
"long",
"float",
"number",
"any"
];
let enumsMap: {[index: string]: any} = {
"Architecture": Architecture,
"BaseItemKind": BaseItemKind,
"ChannelItemSortField": ChannelItemSortField,
"ChannelMediaContentType": ChannelMediaContentType,
"ChannelMediaType": ChannelMediaType,
"ChannelType": ChannelType,
"CodecType": CodecType,
"CollectionTypeOptions": CollectionTypeOptions,
"DayOfWeek": DayOfWeek,
"DayPattern": DayPattern,
"DeviceProfileType": DeviceProfileType,
"DlnaProfileType": DlnaProfileType,
"DynamicDayOfWeek": DynamicDayOfWeek,
"EmbeddedSubtitleOptions": EmbeddedSubtitleOptions,
"EncodingContext": EncodingContext,
"ExternalIdMediaType": ExternalIdMediaType,
"FFmpegLocation": FFmpegLocation,
"FileSystemEntryType": FileSystemEntryType,
"ForgotPasswordAction": ForgotPasswordAction,
"GeneralCommandType": GeneralCommandType,
"GroupQueueMode": GroupQueueMode,
"GroupRepeatMode": GroupRepeatMode,
"GroupShuffleMode": GroupShuffleMode,
"GroupStateType": GroupStateType,
"GroupUpdateType": GroupUpdateType,
"HardwareEncodingType": HardwareEncodingType,
"HeaderMatchType": HeaderMatchType,
"ImageFormat": ImageFormat,
"ImageOrientation": ImageOrientation,
"ImageSavingConvention": ImageSavingConvention,
"ImageType": ImageType,
"IsoType": IsoType,
"ItemFields": ItemFields,
"ItemFilter": ItemFilter,
"KeepUntil": KeepUntil,
"LiveTvServiceStatus": LiveTvServiceStatus,
"LocationType": LocationType,
"LogLevel": LogLevel,
"MediaProtocol": MediaProtocol,
"MediaSourceType": MediaSourceType,
"MediaStreamType": MediaStreamType,
"MetadataField": MetadataField,
"MetadataRefreshMode": MetadataRefreshMode,
"NotificationLevel": NotificationLevel,
"PlayAccess": PlayAccess,
"PlayCommand": PlayCommand,
"PlayMethod": PlayMethod,
"PlaybackErrorCode": PlaybackErrorCode,
"PlaystateCommand": PlaystateCommand,
"PluginStatus": PluginStatus,
"ProfileConditionType": ProfileConditionType,
"ProfileConditionValue": ProfileConditionValue,
"ProgramAudio": ProgramAudio,
"RatingType": RatingType,
"RecommendationType": RecommendationType,
"RecordingStatus": RecordingStatus,
"RepeatMode": RepeatMode,
"ScrollDirection": ScrollDirection,
"SendCommandType": SendCommandType,
"SendToUserType": SendToUserType,
"SeriesStatus": SeriesStatus,
"SessionMessageType": SessionMessageType,
"SortOrder": SortOrder,
"SubtitleDeliveryMethod": SubtitleDeliveryMethod,
"SubtitlePlaybackMode": SubtitlePlaybackMode,
"SyncPlayUserAccessType": SyncPlayUserAccessType,
"TaskCompletionStatus": TaskCompletionStatus,
"TaskState": TaskState,
"TranscodeReason": TranscodeReason,
"TranscodeSeekInfo": TranscodeSeekInfo,
"TransportStreamTimestamp": TransportStreamTimestamp,
"UnratedItem": UnratedItem,
"Video3DFormat": Video3DFormat,
"VideoType": VideoType,
}
let typeMap: {[index: string]: any} = {
"AccessSchedule": AccessSchedule,
"ActivityLogEntry": ActivityLogEntry,
"ActivityLogEntryQueryResult": ActivityLogEntryQueryResult,
"AddListingProviderRequest": AddListingProviderRequest,
"AddMediaPathRequest": AddMediaPathRequest,
"AddTunerHostRequest": AddTunerHostRequest,
"AddVirtualFolderDto": AddVirtualFolderDto,
"AddVirtualFolderDtoLibraryOptions": AddVirtualFolderDtoLibraryOptions,
"AddVirtualFolderRequest": AddVirtualFolderRequest,
"AdminNotificationDto": AdminNotificationDto,
"AlbumInfo": AlbumInfo,
"AlbumInfoRemoteSearchQuery": AlbumInfoRemoteSearchQuery,
"AllThemeMediaResult": AllThemeMediaResult,
"AllThemeMediaResultThemeVideosResult": AllThemeMediaResultThemeVideosResult,
"ApplySearchCriteriaRequest": ApplySearchCriteriaRequest,
"ArtistInfo": ArtistInfo,
"ArtistInfoRemoteSearchQuery": ArtistInfoRemoteSearchQuery,
"AuthenticateUserByName": AuthenticateUserByName,
"AuthenticateUserByNameRequest": AuthenticateUserByNameRequest,
"AuthenticateWithQuickConnectRequest": AuthenticateWithQuickConnectRequest,
"AuthenticationInfo": AuthenticationInfo,
"AuthenticationInfoQueryResult": AuthenticationInfoQueryResult,
"AuthenticationResult": AuthenticationResult,
"AuthenticationResultSessionInfo": AuthenticationResultSessionInfo,
"AuthenticationResultUser": AuthenticationResultUser,
"BaseItem": BaseItem,
"BaseItemDto": BaseItemDto,
"BaseItemDtoCurrentProgram": BaseItemDtoCurrentProgram,
"BaseItemDtoImageBlurHashes": BaseItemDtoImageBlurHashes,
"BaseItemDtoQueryResult": BaseItemDtoQueryResult,
"BaseItemDtoUserData": BaseItemDtoUserData,
"BaseItemPerson": BaseItemPerson,
"BaseItemPersonImageBlurHashes": BaseItemPersonImageBlurHashes,
"BookInfo": BookInfo,
"BookInfoRemoteSearchQuery": BookInfoRemoteSearchQuery,
"BoxSetInfo": BoxSetInfo,
"BoxSetInfoRemoteSearchQuery": BoxSetInfoRemoteSearchQuery,
"BrandingOptions": BrandingOptions,
"BufferRequestDto": BufferRequestDto,
"ChannelFeatures": ChannelFeatures,
"ChannelMappingOptionsDto": ChannelMappingOptionsDto,
"ChapterInfo": ChapterInfo,
"ClientCapabilities": ClientCapabilities,
"ClientCapabilitiesDeviceProfile": ClientCapabilitiesDeviceProfile,
"ClientCapabilitiesDto": ClientCapabilitiesDto,
"ClientCapabilitiesDtoDeviceProfile": ClientCapabilitiesDtoDeviceProfile,
"ClientLogDocumentResponseDto": ClientLogDocumentResponseDto,
"CodecProfile": CodecProfile,
"CollectionCreationResult": CollectionCreationResult,
"ConfigImageTypes": ConfigImageTypes,
"ConfigurationPageInfo": ConfigurationPageInfo,
"ContainerProfile": ContainerProfile,
"ControlResponse": ControlResponse,
"CountryInfo": CountryInfo,
"CreateAdminNotificationRequest": CreateAdminNotificationRequest,
"CreatePlaylistDto": CreatePlaylistDto,
"CreatePlaylistRequest": CreatePlaylistRequest,
"CreateProfileRequest": CreateProfileRequest,
"CreateSeriesTimerRequest": CreateSeriesTimerRequest,
"CreateTimerRequest": CreateTimerRequest,
"CreateUserByName": CreateUserByName,
"CreateUserByNameRequest": CreateUserByNameRequest,
"CultureDto": CultureDto,
"DefaultDirectoryBrowserInfoDto": DefaultDirectoryBrowserInfoDto,
"DeviceIdentification": DeviceIdentification,
"DeviceInfo": DeviceInfo,
"DeviceInfoCapabilities": DeviceInfoCapabilities,
"DeviceInfoQueryResult": DeviceInfoQueryResult,
"DeviceOptions": DeviceOptions,
"DeviceOptionsDto": DeviceOptionsDto,
"DeviceProfile": DeviceProfile,
"DeviceProfileIdentification": DeviceProfileIdentification,
"DeviceProfileInfo": DeviceProfileInfo,
"DirectPlayProfile": DirectPlayProfile,
"DisplayPreferencesDto": DisplayPreferencesDto,
"DlnaOptions": DlnaOptions,
"EncodingOptions": EncodingOptions,
"EndPointInfo": EndPointInfo,
"ExternalIdInfo": ExternalIdInfo,
"ExternalUrl": ExternalUrl,
"FileSystemEntryInfo": FileSystemEntryInfo,
"FontFile": FontFile,
"ForgotPasswordDto": ForgotPasswordDto,
"ForgotPasswordPinDto": ForgotPasswordPinDto,
"ForgotPasswordPinRequest": ForgotPasswordPinRequest,
"ForgotPasswordRequest": ForgotPasswordRequest,
"ForgotPasswordResult": ForgotPasswordResult,
"GeneralCommand": GeneralCommand,
"GetBookRemoteSearchResultsRequest": GetBookRemoteSearchResultsRequest,
"GetBoxSetRemoteSearchResultsRequest": GetBoxSetRemoteSearchResultsRequest,
"GetMovieRemoteSearchResultsRequest": GetMovieRemoteSearchResultsRequest,
"GetMusicAlbumRemoteSearchResultsRequest": GetMusicAlbumRemoteSearchResultsRequest,
"GetMusicArtistRemoteSearchResultsRequest": GetMusicArtistRemoteSearchResultsRequest,
"GetMusicVideoRemoteSearchResultsRequest": GetMusicVideoRemoteSearchResultsRequest,
"GetPersonRemoteSearchResultsRequest": GetPersonRemoteSearchResultsRequest,
"GetPostedPlaybackInfoRequest": GetPostedPlaybackInfoRequest,
"GetProgramsDto": GetProgramsDto,
"GetProgramsRequest": GetProgramsRequest,
"GetSeriesRemoteSearchResultsRequest": GetSeriesRemoteSearchResultsRequest,
"GetTrailerRemoteSearchResultsRequest": GetTrailerRemoteSearchResultsRequest,
"GroupInfoDto": GroupInfoDto,
"GuideInfo": GuideInfo,
"HttpHeaderInfo": HttpHeaderInfo,
"IPlugin": IPlugin,
"IgnoreWaitRequestDto": IgnoreWaitRequestDto,
"ImageByNameInfo": ImageByNameInfo,
"ImageInfo": ImageInfo,
"ImageOption": ImageOption,
"ImageProviderInfo": ImageProviderInfo,
"InstallationInfo": InstallationInfo,
"InstallationInfoPackageInfo": InstallationInfoPackageInfo,
"ItemCounts": ItemCounts,
"JoinGroupRequestDto": JoinGroupRequestDto,
"LibraryOptionInfoDto": LibraryOptionInfoDto,
"LibraryOptions": LibraryOptions,
"LibraryOptionsResultDto": LibraryOptionsResultDto,
"LibraryTypeOptionsDto": LibraryTypeOptionsDto,
"LibraryUpdateInfo": LibraryUpdateInfo,
"ListingsProviderInfo": ListingsProviderInfo,
"LiveStreamResponse": LiveStreamResponse,
"LiveStreamResponseMediaSource": LiveStreamResponseMediaSource,
"LiveTvInfo": LiveTvInfo,
"LiveTvOptions": LiveTvOptions,
"LiveTvServiceInfo": LiveTvServiceInfo,
"LocalizationOption": LocalizationOption,
"LogFile": LogFile,
"MediaAttachment": MediaAttachment,
"MediaEncoderPathDto": MediaEncoderPathDto,
"MediaPathDto": MediaPathDto,
"MediaPathDtoPathInfo": MediaPathDtoPathInfo,
"MediaPathInfo": MediaPathInfo,
"MediaSourceInfo": MediaSourceInfo,
"MediaStream": MediaStream,
"MediaUpdateInfoDto": MediaUpdateInfoDto,
"MediaUpdateInfoPathDto": MediaUpdateInfoPathDto,
"MediaUrl": MediaUrl,
"MessageCommand": MessageCommand,
"MetadataConfiguration": MetadataConfiguration,
"MetadataEditorInfo": MetadataEditorInfo,
"MetadataOptions": MetadataOptions,
"MovePlaylistItemRequestDto": MovePlaylistItemRequestDto,
"MovieInfo": MovieInfo,
"MovieInfoRemoteSearchQuery": MovieInfoRemoteSearchQuery,
"MusicVideoInfo": MusicVideoInfo,
"MusicVideoInfoRemoteSearchQuery": MusicVideoInfoRemoteSearchQuery,
"NameGuidPair": NameGuidPair,
"NameIdPair": NameIdPair,
"NameValuePair": NameValuePair,
"NetworkConfiguration": NetworkConfiguration,
"NewGroupRequestDto": NewGroupRequestDto,
"NextItemRequestDto": NextItemRequestDto,
"NotificationDto": NotificationDto,
"NotificationOption": NotificationOption,
"NotificationOptions": NotificationOptions,
"NotificationResultDto": NotificationResultDto,
"NotificationTypeInfo": NotificationTypeInfo,
"NotificationsSummaryDto": NotificationsSummaryDto,
"ObjectGroupUpdate": ObjectGroupUpdate,
"OpenLiveStreamDto": OpenLiveStreamDto,
"OpenLiveStreamRequest": OpenLiveStreamRequest,
"PackageInfo": PackageInfo,
"ParentalRating": ParentalRating,
"PathSubstitution": PathSubstitution,
"PersonLookupInfo": PersonLookupInfo,
"PersonLookupInfoRemoteSearchQuery": PersonLookupInfoRemoteSearchQuery,
"PinRedeemResult": PinRedeemResult,
"PingRequestDto": PingRequestDto,
"PlayRequest": PlayRequest,
"PlayRequestDto": PlayRequestDto,
"PlaybackInfoDto": PlaybackInfoDto,
"PlaybackInfoResponse": PlaybackInfoResponse,
"PlaybackProgressInfo": PlaybackProgressInfo,
"PlaybackProgressInfoItem": PlaybackProgressInfoItem,
"PlaybackStartInfo": PlaybackStartInfo,
"PlaybackStopInfo": PlaybackStopInfo,
"PlayerStateInfo": PlayerStateInfo,
"PlaylistCreationResult": PlaylistCreationResult,
"PlaystateRequest": PlaystateRequest,
"PluginInfo": PluginInfo,
"PostFullCapabilitiesRequest": PostFullCapabilitiesRequest,
"PostUpdatedMediaRequest": PostUpdatedMediaRequest,
"PreviousItemRequestDto": PreviousItemRequestDto,
"ProblemDetails": ProblemDetails,
"ProfileCondition": ProfileCondition,
"PublicSystemInfo": PublicSystemInfo,
"QueryFilters": QueryFilters,
"QueryFiltersLegacy": QueryFiltersLegacy,
"QueueItem": QueueItem,
"QueueRequestDto": QueueRequestDto,
"QuickConnectDto": QuickConnectDto,
"QuickConnectResult": QuickConnectResult,
"ReadyRequestDto": ReadyRequestDto,
"RecommendationDto": RecommendationDto,
"RemoteImageInfo": RemoteImageInfo,
"RemoteImageResult": RemoteImageResult,
"RemoteSearchResult": RemoteSearchResult,
"RemoteSubtitleInfo": RemoteSubtitleInfo,
"RemoveFromPlaylistRequestDto": RemoveFromPlaylistRequestDto,
"ReportPlaybackProgressRequest": ReportPlaybackProgressRequest,
"ReportPlaybackStartRequest": ReportPlaybackStartRequest,
"ReportPlaybackStoppedRequest": ReportPlaybackStoppedRequest,
"RepositoryInfo": RepositoryInfo,
"ResponseProfile": ResponseProfile,
"SearchHint": SearchHint,
"SearchHintResult": SearchHintResult,
"SeekRequestDto": SeekRequestDto,
"SendCommand": SendCommand,
"SendFullGeneralCommandRequest": SendFullGeneralCommandRequest,
"SendMessageCommandRequest": SendMessageCommandRequest,
"SeriesInfo": SeriesInfo,
"SeriesInfoRemoteSearchQuery": SeriesInfoRemoteSearchQuery,
"SeriesTimerInfoDto": SeriesTimerInfoDto,
"SeriesTimerInfoDtoQueryResult": SeriesTimerInfoDtoQueryResult,
"ServerConfiguration": ServerConfiguration,
"ServerDiscoveryInfo": ServerDiscoveryInfo,
"SessionInfo": SessionInfo,
"SessionInfoFullNowPlayingItem": SessionInfoFullNowPlayingItem,
"SessionInfoNowPlayingItem": SessionInfoNowPlayingItem,
"SessionUserInfo": SessionUserInfo,
"SetChannelMappingDto": SetChannelMappingDto,
"SetChannelMappingRequest": SetChannelMappingRequest,
"SetPlaylistItemRequestDto": SetPlaylistItemRequestDto,
"SetRemoteAccessRequest": SetRemoteAccessRequest,
"SetRepeatModeRequestDto": SetRepeatModeRequestDto,
"SetShuffleModeRequestDto": SetShuffleModeRequestDto,
"SongInfo": SongInfo,
"SpecialViewOptionDto": SpecialViewOptionDto,
"StartupConfigurationDto": StartupConfigurationDto,
"StartupRemoteAccessDto": StartupRemoteAccessDto,
"StartupUserDto": StartupUserDto,
"SubtitleOptions": SubtitleOptions,
"SubtitleProfile": SubtitleProfile,
"SyncPlayBufferingRequest": SyncPlayBufferingRequest,
"SyncPlayCreateGroupRequest": SyncPlayCreateGroupRequest,
"SyncPlayJoinGroupRequest": SyncPlayJoinGroupRequest,
"SyncPlayMovePlaylistItemRequest": SyncPlayMovePlaylistItemRequest,
"SyncPlayNextItemRequest": SyncPlayNextItemRequest,
"SyncPlayPingRequest": SyncPlayPingRequest,
"SyncPlayPreviousItemRequest": SyncPlayPreviousItemRequest,
"SyncPlayQueueRequest": SyncPlayQueueRequest,
"SyncPlayReadyRequest": SyncPlayReadyRequest,
"SyncPlayRemoveFromPlaylistRequest": SyncPlayRemoveFromPlaylistRequest,
"SyncPlaySeekRequest": SyncPlaySeekRequest,
"SyncPlaySetIgnoreWaitRequest": SyncPlaySetIgnoreWaitRequest,
"SyncPlaySetNewQueueRequest": SyncPlaySetNewQueueRequest,
"SyncPlaySetPlaylistItemRequest": SyncPlaySetPlaylistItemRequest,
"SyncPlaySetRepeatModeRequest": SyncPlaySetRepeatModeRequest,
"SyncPlaySetShuffleModeRequest": SyncPlaySetShuffleModeRequest,
"SystemInfo": SystemInfo,
"TaskInfo": TaskInfo,
"TaskInfoLastExecutionResult": TaskInfoLastExecutionResult,
"TaskResult": TaskResult,
"TaskTriggerInfo": TaskTriggerInfo,
"ThemeMediaResult": ThemeMediaResult,
"TimerEventInfo": TimerEventInfo,
"TimerInfoDto": TimerInfoDto,
"TimerInfoDtoProgramInfo": TimerInfoDtoProgramInfo,
"TimerInfoDtoQueryResult": TimerInfoDtoQueryResult,
"TrailerInfo": TrailerInfo,
"TrailerInfoRemoteSearchQuery": TrailerInfoRemoteSearchQuery,
"TranscodingInfo": TranscodingInfo,
"TranscodingProfile": TranscodingProfile,
"TunerChannelMapping": TunerChannelMapping,
"TunerHostInfo": TunerHostInfo,
"TypeOptions": TypeOptions,
"UpdateConfigurationRequest": UpdateConfigurationRequest,
"UpdateDeviceOptionsRequest": UpdateDeviceOptionsRequest,
"UpdateDisplayPreferencesRequest": UpdateDisplayPreferencesRequest,
"UpdateInitialConfigurationRequest": UpdateInitialConfigurationRequest,
"UpdateItemRequest": UpdateItemRequest,
"UpdateLibraryOptionsDto": UpdateLibraryOptionsDto,
"UpdateLibraryOptionsRequest": UpdateLibraryOptionsRequest,
"UpdateMediaEncoderPathRequest": UpdateMediaEncoderPathRequest,
"UpdateMediaPathRequest": UpdateMediaPathRequest,
"UpdateMediaPathRequestDto": UpdateMediaPathRequestDto,
"UpdateMediaPathRequestDtoPathInfo": UpdateMediaPathRequestDtoPathInfo,
"UpdateStartupUserRequest": UpdateStartupUserRequest,
"UpdateUserConfigurationRequest": UpdateUserConfigurationRequest,
"UpdateUserEasyPassword": UpdateUserEasyPassword,
"UpdateUserEasyPasswordRequest": UpdateUserEasyPasswordRequest,
"UpdateUserPassword": UpdateUserPassword,
"UpdateUserPasswordRequest": UpdateUserPasswordRequest,
"UpdateUserPolicyRequest": UpdateUserPolicyRequest,
"UpdateUserRequest": UpdateUserRequest,
"UploadSubtitleDto": UploadSubtitleDto,
"UploadSubtitleRequest": UploadSubtitleRequest,
"UserConfiguration": UserConfiguration,
"UserDto": UserDto,
"UserDtoConfiguration": UserDtoConfiguration,
"UserDtoPolicy": UserDtoPolicy,
"UserItemDataDto": UserItemDataDto,
"UserPolicy": UserPolicy,
"UtcTimeResponse": UtcTimeResponse,
"ValidatePathDto": ValidatePathDto,
"ValidatePathRequest": ValidatePathRequest,
"VersionInfo": VersionInfo,
"VirtualFolderInfo": VirtualFolderInfo,
"WakeOnLanInfo": WakeOnLanInfo,
"XbmcMetadataOptions": XbmcMetadataOptions,
"XmlAttribute": XmlAttribute,
}
export class ObjectSerializer {
public static findCorrectType(data: any, expectedType: string) {
if (data == undefined) {
return expectedType;
} else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
return expectedType;
} else if (expectedType === "Date") {
return expectedType;
} else {
if (enumsMap[expectedType]) {
return expectedType;
}
if (!typeMap[expectedType]) {
return expectedType; // w/e we don't know the type
}
// Check the discriminator
let discriminatorProperty = typeMap[expectedType].discriminator;
if (discriminatorProperty == null) {
return expectedType; // the type does not have a discriminator. use it.
} else {
if (data[discriminatorProperty]) {
var discriminatorType = data[discriminatorProperty];
if(typeMap[discriminatorType]){
return discriminatorType; // use the type given in the discriminator
} else {
return expectedType; // discriminator did not map to a type
}
} else {
return expectedType; // discriminator was not present (or an empty string)
}
}
}
}
public static serialize(data: any, type: string) {
if (data == undefined) {
return data;
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
return data;
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
subType = subType.substring(0, subType.length - 1); // Type> => Type
let transformedData: any[] = [];
for (let index = 0; index < data.length; index++) {
let datum = data[index];
transformedData.push(ObjectSerializer.serialize(datum, subType));
}
return transformedData;
} else if (type === "Date") {
return data.toISOString();
} else {
if (enumsMap[type]) {
return data;
}
if (!typeMap[type]) { // in case we dont know the type
return data;
}
// Get the actual type of this object
type = this.findCorrectType(data, type);
// get the map for the correct type.
let attributeTypes = typeMap[type].getAttributeTypeMap();
let instance: {[index: string]: any} = {};
for (let index = 0; index < attributeTypes.length; index++) {
let attributeType = attributeTypes[index];
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
}
return instance;
}
}
public static deserialize(data: any, type: string) {
// polymorphism may change the actual type.
type = ObjectSerializer.findCorrectType(data, type);
if (data == undefined) {
return data;
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
return data;
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
subType = subType.substring(0, subType.length - 1); // Type> => Type
let transformedData: any[] = [];
for (let index = 0; index < data.length; index++) {
let datum = data[index];
transformedData.push(ObjectSerializer.deserialize(datum, subType));
}
return transformedData;
} else if (type === "Date") {
return new Date(data);
} else {
if (enumsMap[type]) {// is Enum
return data;
}
if (!typeMap[type]) { // dont know the type
return data;
}
let instance = new typeMap[type]();
let attributeTypes = typeMap[type].getAttributeTypeMap();
for (let index = 0; index < attributeTypes.length; index++) {
let attributeType = attributeTypes[index];
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
}
return instance;
}
}
}
export interface Authentication {
/**
* Apply authentication settings to header and query params.
*/
applyToRequest(requestOptions: localVarRequest.Options): Promise<void> | void;
}
export class HttpBasicAuth implements Authentication {
public username: string = '';
public password: string = '';
applyToRequest(requestOptions: localVarRequest.Options): void {
requestOptions.auth = {
username: this.username, password: this.password
}
}
}
export class HttpBearerAuth implements Authentication {
public accessToken: string | (() => string) = '';
applyToRequest(requestOptions: localVarRequest.Options): void {
if (requestOptions && requestOptions.headers) {
const accessToken = typeof this.accessToken === 'function'
? this.accessToken()
: this.accessToken;
requestOptions.headers["Authorization"] = "Bearer " + accessToken;
}
}
}
export class ApiKeyAuth implements Authentication {
public apiKey: string = '';
constructor(private location: string, private paramName: string) {
}
applyToRequest(requestOptions: localVarRequest.Options): void {
if (this.location == "query") {
(<any>requestOptions.qs)[this.paramName] = this.apiKey;
} else if (this.location == "header" && requestOptions && requestOptions.headers) {
requestOptions.headers[this.paramName] = this.apiKey;
} else if (this.location == 'cookie' && requestOptions && requestOptions.headers) {
if (requestOptions.headers['Cookie']) {
requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey);
}
else {
requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey);
}
}
}
}
export class OAuth implements Authentication {
public accessToken: string = '';
applyToRequest(requestOptions: localVarRequest.Options): void {
if (requestOptions && requestOptions.headers) {
requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
}
}
}
export class VoidAuth implements Authentication {
public username: string = '';
public password: string = '';
applyToRequest(_: localVarRequest.Options): void {
// Do nothing
}
}
export type Interceptor = (requestOptions: localVarRequest.Options) => (Promise<void> | void);