Skip to content

spotify-cli


spotify-cli / schemas/player

schemas/player

Zod schemas for Spotify player/playback objects.

Type Aliases

Device

Device = z.infer<typeof DeviceSchema>

Defined in: src/schemas/player.ts:79

A Spotify playback device.


PlaybackState

PlaybackState = z.infer<typeof PlaybackStateSchema>

Defined in: src/schemas/player.ts:82

Full playback state including device, track, and settings.


PlayHistory

PlayHistory = z.infer<typeof PlayHistorySchema>

Defined in: src/schemas/player.ts:88

A play history entry (track + timestamp + context).


Queue

Queue = z.infer<typeof QueueSchema>

Defined in: src/schemas/player.ts:85

The user's playback queue.

Variables

CurrentlyPlayingSchema

const CurrentlyPlayingSchema: ZodObject<{ context: ZodOptional<ZodNullable<ZodObject<{ external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; type: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { external_urls: { spotify?: string; }; href: string; type: string; uri: string; }, { external_urls: { spotify?: string; }; href: string; type: string; uri: string; }>>>; currently_playing_type: ZodString; is_playing: ZodBoolean; item: ZodOptional<ZodNullable<ZodObject<{ album: ZodObject<{ album_type: ZodString; external_urls: ZodObject<{ spotify: ZodOptional<...>; }, "strip", ZodTypeAny, { spotify?: ... | ...; }, { spotify?: ... | ...; }>; href: ZodString; id: ZodString; images: ZodArray<ZodObject<{ height: ...; url: ...; width: ...; }, "strip", ZodTypeAny, { height: ...; url: ...; width: ...; }, { height: ...; url: ...; width: ...; }>, "many">; name: ZodString; release_date: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }>; artists: ZodArray<ZodObject<{ external_urls: ZodObject<{ spotify: ...; }, "strip", ZodTypeAny, { spotify?: ...; }, { spotify?: ...; }>; href: ZodString; id: ZodString; name: ZodString; type: ZodLiteral<"artist">; uri: ZodString; }, "strip", ZodTypeAny, { external_urls: { spotify?: ... | ...; }; href: string; id: string; name: string; type: "artist"; uri: string; }, { external_urls: { spotify?: ... | ...; }; href: string; id: string; name: string; type: "artist"; uri: string; }>, "many">; disc_number: ZodNumber; duration_ms: ZodNumber; explicit: ZodBoolean; external_ids: ZodOptional<ZodObject<{ ean: ZodOptional<ZodString>; isrc: ZodOptional<ZodString>; upc: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { ean?: string; isrc?: string; upc?: string; }, { ean?: string; isrc?: string; upc?: string; }>>; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; is_local: ZodBoolean; name: ZodString; popularity: ZodOptional<ZodNumber>; preview_url: ZodOptional<ZodNullable<ZodString>>; track_number: ZodNumber; type: ZodLiteral<"track">; uri: ZodString; }, "strip", ZodTypeAny, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }>>>; progress_ms: ZodOptional<ZodNullable<ZodNumber>>; timestamp: ZodOptional<ZodNumber>; }, "strip", ZodTypeAny, { context?: { external_urls: { spotify?: string; }; href: string; type: string; uri: string; } | null; currently_playing_type: string; is_playing: boolean; item?: { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; } | null; progress_ms?: number | null; timestamp?: number; }, { context?: { external_urls: { spotify?: string; }; href: string; type: string; uri: string; } | null; currently_playing_type: string; is_playing: boolean; item?: { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; } | null; progress_ms?: number | null; timestamp?: number; }>

Defined in: src/schemas/player.ts:44

Schema for currently playing response from GET /me/player/currently-playing (subset of playback state).


DeviceSchema

const DeviceSchema: ZodObject<{ id: ZodNullable<ZodString>; is_active: ZodBoolean; is_private_session: ZodBoolean; is_restricted: ZodBoolean; name: ZodString; supports_volume: ZodBoolean; type: ZodString; volume_percent: ZodNullable<ZodNumber>; }, "strip", ZodTypeAny, { id: string | null; is_active: boolean; is_private_session: boolean; is_restricted: boolean; name: string; supports_volume: boolean; type: string; volume_percent: number | null; }, { id: string | null; is_active: boolean; is_private_session: boolean; is_restricted: boolean; name: string; supports_volume: boolean; type: string; volume_percent: number | null; }>

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

Schema for a playback device.


DevicesSchema

const DevicesSchema: ZodObject<{ devices: ZodArray<ZodObject<{ id: ZodNullable<ZodString>; is_active: ZodBoolean; is_private_session: ZodBoolean; is_restricted: ZodBoolean; name: ZodString; supports_volume: ZodBoolean; type: ZodString; volume_percent: ZodNullable<ZodNumber>; }, "strip", ZodTypeAny, { id: string | null; is_active: boolean; is_private_session: boolean; is_restricted: boolean; name: string; supports_volume: boolean; type: string; volume_percent: number | null; }, { id: string | null; is_active: boolean; is_private_session: boolean; is_restricted: boolean; name: string; supports_volume: boolean; type: string; volume_percent: number | null; }>, "many">; }, "strip", ZodTypeAny, { devices: object[]; }, { devices: object[]; }>

Defined in: src/schemas/player.ts:60

Schema for the devices list response.


PlaybackContextSchema

const PlaybackContextSchema: ZodObject<{ external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; type: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { external_urls: { spotify?: string; }; href: string; type: string; uri: string; }, { external_urls: { spotify?: string; }; href: string; type: string; uri: string; }>

Defined in: src/schemas/player.ts:23

Schema for the playback context (album, playlist, or artist being played).


PlaybackStateSchema

const PlaybackStateSchema: ZodObject<{ context: ZodOptional<ZodNullable<ZodObject<{ external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; type: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { external_urls: { spotify?: string; }; href: string; type: string; uri: string; }, { external_urls: { spotify?: string; }; href: string; type: string; uri: string; }>>>; currently_playing_type: ZodString; device: ZodObject<{ id: ZodNullable<ZodString>; is_active: ZodBoolean; is_private_session: ZodBoolean; is_restricted: ZodBoolean; name: ZodString; supports_volume: ZodBoolean; type: ZodString; volume_percent: ZodNullable<ZodNumber>; }, "strip", ZodTypeAny, { id: string | null; is_active: boolean; is_private_session: boolean; is_restricted: boolean; name: string; supports_volume: boolean; type: string; volume_percent: number | null; }, { id: string | null; is_active: boolean; is_private_session: boolean; is_restricted: boolean; name: string; supports_volume: boolean; type: string; volume_percent: number | null; }>; is_playing: ZodBoolean; item: ZodNullable<ZodObject<{ album: ZodObject<{ album_type: ZodString; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; images: ZodArray<ZodObject<{ height: ZodNullable<...>; url: ZodString; width: ZodNullable<...>; }, "strip", ZodTypeAny, { height: ... | ...; url: string; width: ... | ...; }, { height: ... | ...; url: string; width: ... | ...; }>, "many">; name: ZodString; release_date: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }>; artists: ZodArray<ZodObject<{ external_urls: ZodObject<{ spotify: ZodOptional<...>; }, "strip", ZodTypeAny, { spotify?: ... | ...; }, { spotify?: ... | ...; }>; 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; }>, "many">; disc_number: ZodNumber; duration_ms: ZodNumber; explicit: ZodBoolean; external_ids: ZodOptional<ZodObject<{ ean: ZodOptional<ZodString>; isrc: ZodOptional<ZodString>; upc: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { ean?: string; isrc?: string; upc?: string; }, { ean?: string; isrc?: string; upc?: string; }>>; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; is_local: ZodBoolean; name: ZodString; popularity: ZodOptional<ZodNumber>; preview_url: ZodOptional<ZodNullable<ZodString>>; track_number: ZodNumber; type: ZodLiteral<"track">; uri: ZodString; }, "strip", ZodTypeAny, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }>>; progress_ms: ZodNullable<ZodNumber>; repeat_state: ZodString; shuffle_state: ZodBoolean; timestamp: ZodNumber; }, "strip", ZodTypeAny, { context?: { external_urls: { spotify?: string; }; href: string; type: string; uri: string; } | null; currently_playing_type: string; device: { id: string | null; is_active: boolean; is_private_session: boolean; is_restricted: boolean; name: string; supports_volume: boolean; type: string; volume_percent: number | null; }; is_playing: boolean; item: { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; } | null; progress_ms: number | null; repeat_state: string; shuffle_state: boolean; timestamp: number; }, { context?: { external_urls: { spotify?: string; }; href: string; type: string; uri: string; } | null; currently_playing_type: string; device: { id: string | null; is_active: boolean; is_private_session: boolean; is_restricted: boolean; name: string; supports_volume: boolean; type: string; volume_percent: number | null; }; is_playing: boolean; item: { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; } | null; progress_ms: number | null; repeat_state: string; shuffle_state: boolean; timestamp: number; }>

Defined in: src/schemas/player.ts:31

Schema for full playback state from GET /me/player.


PlayHistorySchema

const PlayHistorySchema: ZodObject<{ context: ZodNullable<ZodObject<{ external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; type: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { external_urls: { spotify?: string; }; href: string; type: string; uri: string; }, { external_urls: { spotify?: string; }; href: string; type: string; uri: string; }>>; played_at: ZodString; track: ZodObject<{ album: ZodObject<{ album_type: ZodString; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; 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">; name: ZodString; release_date: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }>; artists: ZodArray<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; }>, "many">; disc_number: ZodNumber; duration_ms: ZodNumber; explicit: ZodBoolean; external_ids: ZodOptional<ZodObject<{ ean: ZodOptional<ZodString>; isrc: ZodOptional<ZodString>; upc: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { ean?: string; isrc?: string; upc?: string; }, { ean?: string; isrc?: string; upc?: string; }>>; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; is_local: ZodBoolean; name: ZodString; popularity: ZodOptional<ZodNumber>; preview_url: ZodOptional<ZodNullable<ZodString>>; track_number: ZodNumber; type: ZodLiteral<"track">; uri: ZodString; }, "strip", ZodTypeAny, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }>; }, "strip", ZodTypeAny, { context: { external_urls: { spotify?: string; }; href: string; type: string; uri: string; } | null; played_at: string; track: { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }; }, { context: { external_urls: { spotify?: string; }; href: string; type: string; uri: string; } | null; played_at: string; track: { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }; }>

Defined in: src/schemas/player.ts:65

Schema for a play history entry (recently played track).


QueueSchema

const QueueSchema: ZodObject<{ currently_playing: ZodNullable<ZodObject<{ album: ZodObject<{ album_type: ZodString; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; images: ZodArray<ZodObject<{ height: ZodNullable<...>; url: ZodString; width: ZodNullable<...>; }, "strip", ZodTypeAny, { height: ... | ...; url: string; width: ... | ...; }, { height: ... | ...; url: string; width: ... | ...; }>, "many">; name: ZodString; release_date: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }>; artists: ZodArray<ZodObject<{ external_urls: ZodObject<{ spotify: ZodOptional<...>; }, "strip", ZodTypeAny, { spotify?: ... | ...; }, { spotify?: ... | ...; }>; 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; }>, "many">; disc_number: ZodNumber; duration_ms: ZodNumber; explicit: ZodBoolean; external_ids: ZodOptional<ZodObject<{ ean: ZodOptional<ZodString>; isrc: ZodOptional<ZodString>; upc: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { ean?: string; isrc?: string; upc?: string; }, { ean?: string; isrc?: string; upc?: string; }>>; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; is_local: ZodBoolean; name: ZodString; popularity: ZodOptional<ZodNumber>; preview_url: ZodOptional<ZodNullable<ZodString>>; track_number: ZodNumber; type: ZodLiteral<"track">; uri: ZodString; }, "strip", ZodTypeAny, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }>>; queue: ZodArray<ZodObject<{ album: ZodObject<{ album_type: ZodString; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; images: ZodArray<ZodObject<{ height: ZodNullable<...>; url: ZodString; width: ZodNullable<...>; }, "strip", ZodTypeAny, { height: ... | ...; url: string; width: ... | ...; }, { height: ... | ...; url: string; width: ... | ...; }>, "many">; name: ZodString; release_date: ZodString; uri: ZodString; }, "strip", ZodTypeAny, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }, { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }>; artists: ZodArray<ZodObject<{ external_urls: ZodObject<{ spotify: ZodOptional<...>; }, "strip", ZodTypeAny, { spotify?: ... | ...; }, { spotify?: ... | ...; }>; 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; }>, "many">; disc_number: ZodNumber; duration_ms: ZodNumber; explicit: ZodBoolean; external_ids: ZodOptional<ZodObject<{ ean: ZodOptional<ZodString>; isrc: ZodOptional<ZodString>; upc: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { ean?: string; isrc?: string; upc?: string; }, { ean?: string; isrc?: string; upc?: string; }>>; external_urls: ZodObject<{ spotify: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { spotify?: string; }, { spotify?: string; }>; href: ZodString; id: ZodString; is_local: ZodBoolean; name: ZodString; popularity: ZodOptional<ZodNumber>; preview_url: ZodOptional<ZodNullable<ZodString>>; track_number: ZodNumber; type: ZodLiteral<"track">; uri: ZodString; }, "strip", ZodTypeAny, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }, { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; }>, "many">; }, "strip", ZodTypeAny, { currently_playing: { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; } | null; queue: object[]; }, { currently_playing: { album: { album_type: string; external_urls: { spotify?: string; }; href: string; id: string; images: object[]; name: string; release_date: string; uri: string; }; artists: object[]; disc_number: number; duration_ms: number; explicit: boolean; external_ids?: { ean?: string; isrc?: string; upc?: string; }; external_urls: { spotify?: string; }; href: string; id: string; is_local: boolean; name: string; popularity?: number; preview_url?: string | null; track_number: number; type: "track"; uri: string; } | null; queue: object[]; }>

Defined in: src/schemas/player.ts:54

Schema for the playback queue.

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