export declare type RequestHeaders = { [key: string]: string; }; export declare type RequestQuery = { [key: string]: string; }; export declare type RequestBodyData = { [key: string]: string; }; export declare type RequestConfig = { scheme: string; host: string; port: number; path?: string; headers?: RequestHeaders; query?: RequestQuery; bodyData?: RequestBodyData; }; export declare type Method = "get" | "post"; export declare type ObjectResponse = { [key: string]: any; }; export declare type StringResponse = string; export declare type Response = ObjectResponse | StringResponse; declare type PlusStatus = { hasPlus: boolean; isTutorialCompleted: boolean; }; declare type Subscription = { expires: string; vendor: string; vendorHelpUrl: string; productId: string; orderId: number; finished: boolean; }; declare type SubscriptionStatus = { autoRenewable: Array; nonAutoRenewableRemainder: { [key: string]: any; }; canStartTrial: boolean; mcdonalds: boolean; }; declare type Permissions = { until: string; values: Array; default: Array; }; declare type PassportPhone = { phone: string; }; declare type Account = { now: string; uid: number; login: string; region: number; fullName: string; secondName: string; firstName: string; displayName: string; birthday: string; serviceAvailable: boolean; hostedUser: boolean; "passport-phones": Array; registeredAt: string; }; export declare type GetAccountStatusResponse = { account: Account; permissions: Permissions; subscription: SubscriptionStatus; subeditor: boolean; subeditorLevel: number; plus: PlusStatus; defaultEmail: string; }; declare type GeneratedPlaylistType = "rewind20" | "playlistOfTheDay" | "missedLikes" | "origin" | "family" | "recentTracks" | "neverHeard" | "podcasts" | "kinopoisk" | string; declare type GeneratedPlaylist = { type: GeneratedPlaylistType; ready: boolean; notify: boolean; data: Playlist; }; declare type FeedDayEventTitle = { type: string; text: string; }; declare type FeedDayEventAugmentedArtist = { artist: Artist; subscribed: true; }; declare type FeedDayEventArtist = { augmentedArtist: FeedDayEventAugmentedArtist; playsDurationMillis: number; }; declare type FeedDayEvent = { id: string; type: string; typeForFrom: string; title: Array; artists?: Array; likedTrack?: Track; tracks?: Array; radioIsAvailable?: boolean; genre?: GenreId; albums?: Array; similarToGenre?: GenreId; similarGenre?: GenreId; similarToArtist?: Artist; similarArtists?: Array; artist?: Artist; socialTracks?: Array; }; declare type FeedDayTrackToPlayWithAds = { type: string; track: Track; }; declare type FeedDay = { day: string; events: Array; tracksToPlay: Array; tracksToPlayWithAds: Array; }; export declare type GetFeedResponse = { nextRevision: string; canGetMoreEvents: boolean; pumpkin: boolean; isWizardPassed: boolean; generatedPlaylists: Array; headlines: Array; today: string; days: Array; }; declare type Visibility = "public" | "private" | string; declare type Sex = "male" | "female" | string; declare type PlaylistOwner = { uid: number; login: string; name: string; verified: boolean; sex: Sex; }; declare type PlaylistTrack = { id: number; timestamp: string; recent: boolean; track: Track; }; declare type PlaylistCoverType = "mosaic" | string; declare type PlaylistCover = { error?: string; type?: PlaylistCoverType; itemsUri?: Array; custom?: boolean; }; export declare type Playlist = { owner: PlaylistOwner; playlistUuid: string; available: boolean; uid: number; kind: number; title: string; revision: number; snapshot: number; trackCount: number; visibility: Visibility; collective: boolean; created: string; modified: string; isBanner: boolean; isPremiere: boolean; durationMs: number; cover: PlaylistCover; ogImage: string; tags: Array; prerolls: Array; lastOwnerPlaylists: Array; tracks?: Array; }; declare type GenreId = "all" | "pop" | "allrock" | "indie" | "metal" | "alternative" | "electronics" | "dance" | "rap" | "rnb" | "jazz" | "blues" | "reggae" | "ska" | "punk" | "folk" | "estrada" | "shanson" | "country" | "soundtrack" | "relax" | "children" | "naturesounds" | "bard" | "forchildren" | "fairytales" | "poemsforchildren" | "podcasts" | "classicalmusic" | "audiobooks" | "other" | string; declare type RadioIcon = { backgroundColor: string; imageUrl: string; }; declare type Genre = { id: GenreId; weight: number; composerTop: boolean; title: string; fullTitle: string; titles: { [key: string]: { title: string; }; }; images: { [key: string]: string; }; showInMenu: boolean; showInRegions?: Array; urlPart?: string; color?: string; radioIcon?: RadioIcon; subGenres?: Array; }; export declare type GetGenresResponse = Array; export declare type SearchType = "artist" | "album" | "track" | "all"; export declare type ApiConfig = { oauth: { CLIENT_ID: string; CLIENT_SECRET: string; }; fake_device: { DEVICE_ID: string; UUID: string; PACKAGE_NAME: string; }; }; export declare type ApiInitConfig = { access_token?: string; uid?: number; username?: string; password?: string; }; declare type ArtistCoverType = "from-artist-photos" | string; declare type ArtistCover = { type: ArtistCoverType; prefix: string; uri: string; }; declare type ArtistCounts = { tracks: number; directAlbums: number; alsoAlbums: number; alsoTracks: number; }; declare type Region = "RUSSIA_PREMIUM" | "RUSSIA" | string; declare type AlbumType = "compilation" | string; declare type TrackPosition = { volume: number; index: number; }; declare type Label = { id: number; name: string; } | string; export declare type AlbumVolume = Array; export declare type Album = { id: number; storageDir: string; coverUri: string; trackCount: number; available: boolean; availableForPremiumUsers: boolean; title: string; genre: GenreId; type: AlbumType; trackPosition: TrackPosition; artists: Array; availableRegions: Array; labels: Array