@dvxch/yandex-music
    Preparing search index...

    Class Account

    Information about the authenticated account.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    birthday?: string

    Birthday (ISO date).

    child?: boolean

    Whether this is a child account.

    client?: Client

    The client that created this model, used by convenience methods.

    displayName?: string

    Display name.

    firstName?: string

    First name.

    fullName?: string

    Full name.

    hasInfoForAppMetrica?: boolean

    Whether AppMetrica info is available.

    hostedUser?: boolean

    Whether this is a hosted (organization) user.

    login?: string

    Login.

    nonOwnerFamilyMember?: boolean

    Whether the account is a non-owner family-plan member.

    now?: string

    Server timestamp of the response.

    passportPhones?: PassportPhone[]

    Phone numbers on the passport.

    region?: number

    Region code.

    regionCode?: string

    Region code.

    registeredAt?: string

    Registration timestamp.

    secondName?: string

    Second name.

    serviceAvailable?: boolean

    Whether the music service is available for the account.

    uid?: number

    Account uid.

    Methods

    • Assert that this model carries a client, returning it narrowed to non-null.

      Convenience methods that need to call the API use this to fail fast with a clear message instead of a generic "cannot read property of undefined".

      Returns Client

      The owning Client.

      When the model was created without a client.