Skip to content

spotify-cli


spotify-cli / schemas/user

schemas/user

Zod schema for Spotify user profile objects.

Type Aliases

UserProfile

UserProfile = z.infer<typeof UserProfileSchema>

Defined in: src/schemas/user.ts:26

The current user's Spotify profile.

Variables

UserProfileSchema

const UserProfileSchema: ZodObject<{ country: ZodOptional<ZodString>; display_name: ZodNullable<ZodString>; email: ZodOptional<ZodString>; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; followers: ZodObject<{ href: ZodNullable<ZodString>; total: ZodNumber; }, "strip", ZodTypeAny, { href: string | null; total: number; }, { href: string | null; total: number; }>; href: ZodString; id: ZodString; images: ZodArray<ZodObject<{ height: ZodNullable<ZodNumber>; url: ZodString; width: ZodNullable<ZodNumber>; }, "strip", ZodTypeAny, { height: number | null; url: string; width: number | null; }, { height: number | null; url: string; width: number | null; }>, "many">; product: ZodOptional<ZodString>; type: ZodLiteral<"user">; uri: ZodString; }, "strip", ZodTypeAny, { country?: string; display_name: string | null; email?: string; external_urls: { spotify?: string; }; followers: { href: string | null; total: number; }; href: string; id: string; images: object[]; product?: string; type: "user"; uri: string; }, { country?: string; display_name: string | null; email?: string; external_urls: { spotify?: string; }; followers: { href: string | null; total: number; }; href: string; id: string; images: object[]; product?: string; type: "user"; uri: string; }>

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

Schema for the current user's Spotify profile.

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