spotify-cli / schemas/artist
schemas/artist
Zod schemas for Spotify artist objects.
Type Aliases
Artist
Artist =
z.infer<typeofArtistSchema>
Defined in: src/schemas/artist.ts:32
A full Spotify artist with images, genres, and popularity.
SimplifiedArtist
SimplifiedArtist =
z.infer<typeofSimplifiedArtistSchema>
Defined in: src/schemas/artist.ts:29
A simplified Spotify artist (no images/genres/followers).
Variables
ArtistSchema
constArtistSchema: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
constSimplifiedArtistSchema: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).