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

    Class Artist

    A music artist.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    available?: boolean

    Whether the artist is available.

    client?: Client

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

    composer?: boolean

    Whether the artist is a composer.

    contentRestrictions?: ContentRestrictions

    Content availability restrictions.

    countries?: string[]

    Countries associated with the artist.

    counts?: Counts

    Aggregate content counts.

    cover?: Cover

    Artist cover art.

    cutoutCover?: Cover

    Cut-out (transparent) cover art.

    dbAliases?: string[]

    Database aliases.

    decomposed?: JSONValue

    Decomposed name parts (names + separators; free-form raw JSON).

    derivedColors?: CoverDerivedColors

    Colors derived from the cover image.

    description?: Description

    Structured description.

    disclaimers?: string[]

    Disclaimers.

    donationInfo?: JSONValue

    Donation/support info (free-form raw JSON, pending a typed model).

    endDate?: string

    Career end date.

    enWikipediaLink?: string

    English Wikipedia link.

    error?: string

    Error code, present when the artist could not be resolved.

    extraActions?: ExtraAction[]

    Extra page actions (for example a donation button).

    genres?: string[]

    Genres associated with the artist.

    handMadeDescription?: string

    Hand-written description.

    hasTrailer?: boolean

    Whether the artist has a trailer.

    id?: number

    Unique artist identifier.

    initDate?: string

    Career start date.

    likesCount?: number

    Number of likes.

    links?: Link[]

    External links (official site, socials).

    name?: string

    Artist name.

    noPicturesFromSearch?: boolean

    Whether to suppress search-sourced pictures.

    ogImage?: string

    Open Graph image URI template.

    opImage?: string

    Alternative image URI template.

    popularTracks?: Track[]

    A selection of the artist's popular tracks.

    ratings?: Ratings

    Popularity ratings.

    reason?: string

    Reason the artist is unavailable.

    regions?: string[]

    Regions where the artist is available.

    ticketsAvailable?: boolean

    Whether concert tickets are available.

    timestamp?: string

    Like timestamp (ISO 8601), present in a likes context.

    trailer?: JSONValue

    Artist trailer descriptor (free-form raw JSON, pending a typed model).

    various?: boolean

    Whether this represents "Various Artists".

    yaMoneyId?: string

    YooMoney identifier (donations).

    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.