UNPKG

yandex-music

Version:

Creative and progressive Node.js framework for applications that interact with yandex music

40 lines 1.46 kB
import { YandexMusicClient } from "../client"; import { Languages } from "../request"; import { AccountExperiments, AccountSettings, AccountSettingsUpdate, AccountStatus } from "../interfaces"; export declare class Account { private readonly client; constructor(client: YandexMusicClient); /** * Getting account status. * @returns Account information if it is valid, otherwise null. */ status(): Promise<AccountStatus>; /** * Getting the current user's settings. * @returns User settings if the account is valid, otherwise null. */ settings(): Promise<AccountSettings>; /** * Changing the settings of the current user. * @returns Updated user settings if the account is valid, otherwise null. */ update(data: Partial<AccountSettingsUpdate>): Promise<AccountSettings>; /** * Getting the values of experimental account functions. * @returns State of experimental functions. */ experiments(): Promise<AccountExperiments>; /** * Activation of the promo code. * @param {any} data * code: Promo code. * * language: API response language in ISO 639-1. * @returns Информация об активации промо-кода */ promo(data: { code: any; language: keyof typeof Languages; }): Promise<AccountExperiments>; } //# sourceMappingURL=index.d.ts.map