Skip to content

spotify-cli


spotify-cli / schemas/artist

schemas/artist

Zod schemas for Spotify artist objects.

Type Aliases

Artist

Artist = z.infer<typeof ArtistSchema>

Defined in: src/schemas/artist.ts:32

A full Spotify artist with images, genres, and popularity.


SimplifiedArtist

SimplifiedArtist = z.infer<typeof SimplifiedArtistSchema>

Defined in: src/schemas/artist.ts:29

A simplified Spotify artist (no images/genres/followers).

Variables

ArtistSchema

const ArtistSchema: ZodObject<object & object, "strip", ZodTypeAny, { external_urls: { spotify?: string; }; followers?: { href: string | null; total: number; }; genres?: string[]; href: string; id: string; images: object[]; name: string; popularity?: number; type: "artist"; uri: string; }, { external_urls: { spotify?: string; }; followers?: { href: string | null; total: number; }; genres?: string[]; href: string; id: string; images: object[]; name: string; popularity?: number; type: "artist"; uri: string; }>

Defined in: src/schemas/artist.ts:21

Schema for a full artist object (includes images, genres, popularity).


SimplifiedArtistSchema

const SimplifiedArtistSchema: ZodObject<{ external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; name: ZodString; type: ZodLiteral<"artist">; uri: ZodString; }, "strip", ZodTypeAny, { external_urls: { spotify?: string; }; href: string; id: string; name: string; type: "artist"; uri: string; }, { external_urls: { spotify?: string; }; href: string; id: string; name: string; type: "artist"; uri: string; }>

Defined in: src/schemas/artist.ts:11

Schema for a simplified artist (used in track/album listings).

MIT Licensed. Not affiliated with or endorsed by Spotify AB.