@keystrokehq/spotify 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-items-to-playlist.cjs +1 -1
- package/dist/actions/add-items-to-playlist.cjs.map +1 -1
- package/dist/actions/add-items-to-playlist.d.cts +1 -1
- package/dist/actions/add-items-to-playlist.d.mts +1 -1
- package/dist/actions/add-items-to-playlist.mjs +1 -1
- package/dist/actions/add-items-to-playlist.mjs.map +1 -1
- package/dist/actions/check-if-user-follows-artists-or-users.cjs +1 -1
- package/dist/actions/check-if-user-follows-artists-or-users.cjs.map +1 -1
- package/dist/actions/check-if-user-follows-artists-or-users.d.cts +1 -1
- package/dist/actions/check-if-user-follows-artists-or-users.d.mts +1 -1
- package/dist/actions/check-if-user-follows-artists-or-users.mjs +1 -1
- package/dist/actions/check-if-user-follows-artists-or-users.mjs.map +1 -1
- package/dist/actions/check-user-s-saved-albums.cjs +1 -1
- package/dist/actions/check-user-s-saved-albums.cjs.map +1 -1
- package/dist/actions/check-user-s-saved-albums.d.cts +1 -1
- package/dist/actions/check-user-s-saved-albums.d.mts +1 -1
- package/dist/actions/check-user-s-saved-albums.mjs +1 -1
- package/dist/actions/check-user-s-saved-albums.mjs.map +1 -1
- package/dist/actions/check-user-s-saved-audiobooks.cjs +1 -1
- package/dist/actions/check-user-s-saved-audiobooks.cjs.map +1 -1
- package/dist/actions/check-user-s-saved-audiobooks.d.cts +1 -1
- package/dist/actions/check-user-s-saved-audiobooks.d.mts +1 -1
- package/dist/actions/check-user-s-saved-audiobooks.mjs +1 -1
- package/dist/actions/check-user-s-saved-audiobooks.mjs.map +1 -1
- package/dist/actions/check-user-s-saved-shows.cjs +1 -1
- package/dist/actions/check-user-s-saved-shows.cjs.map +1 -1
- package/dist/actions/check-user-s-saved-shows.d.cts +1 -1
- package/dist/actions/check-user-s-saved-shows.d.mts +1 -1
- package/dist/actions/check-user-s-saved-shows.mjs +1 -1
- package/dist/actions/check-user-s-saved-shows.mjs.map +1 -1
- package/dist/actions/create-playlist.cjs +7 -7
- package/dist/actions/create-playlist.cjs.map +1 -1
- package/dist/actions/create-playlist.d.cts +9 -9
- package/dist/actions/create-playlist.d.mts +9 -9
- package/dist/actions/create-playlist.mjs +7 -7
- package/dist/actions/create-playlist.mjs.map +1 -1
- package/dist/actions/get-a-chapter.cjs +2 -2
- package/dist/actions/get-a-chapter.cjs.map +1 -1
- package/dist/actions/get-a-chapter.d.cts +2 -2
- package/dist/actions/get-a-chapter.d.mts +2 -2
- package/dist/actions/get-a-chapter.mjs +2 -2
- package/dist/actions/get-a-chapter.mjs.map +1 -1
- package/dist/actions/get-album-tracks.cjs +2 -2
- package/dist/actions/get-album-tracks.cjs.map +1 -1
- package/dist/actions/get-album-tracks.d.cts +2 -2
- package/dist/actions/get-album-tracks.d.mts +2 -2
- package/dist/actions/get-album-tracks.mjs +2 -2
- package/dist/actions/get-album-tracks.mjs.map +1 -1
- package/dist/actions/get-album.cjs +7 -7
- package/dist/actions/get-album.cjs.map +1 -1
- package/dist/actions/get-album.d.cts +8 -8
- package/dist/actions/get-album.d.mts +8 -8
- package/dist/actions/get-album.mjs +7 -7
- package/dist/actions/get-album.mjs.map +1 -1
- package/dist/actions/get-an-audiobook.cjs +2 -2
- package/dist/actions/get-an-audiobook.cjs.map +1 -1
- package/dist/actions/get-an-audiobook.d.cts +2 -2
- package/dist/actions/get-an-audiobook.d.mts +2 -2
- package/dist/actions/get-an-audiobook.mjs +2 -2
- package/dist/actions/get-an-audiobook.mjs.map +1 -1
- package/dist/actions/get-artist-s-albums.cjs +4 -4
- package/dist/actions/get-artist-s-albums.cjs.map +1 -1
- package/dist/actions/get-artist-s-albums.d.cts +4 -4
- package/dist/actions/get-artist-s-albums.d.mts +4 -4
- package/dist/actions/get-artist-s-albums.mjs +4 -4
- package/dist/actions/get-artist-s-albums.mjs.map +1 -1
- package/dist/actions/get-artist-s-related-artists.cjs +5 -5
- package/dist/actions/get-artist-s-related-artists.cjs.map +1 -1
- package/dist/actions/get-artist-s-related-artists.d.cts +5 -5
- package/dist/actions/get-artist-s-related-artists.d.mts +5 -5
- package/dist/actions/get-artist-s-related-artists.mjs +5 -5
- package/dist/actions/get-artist-s-related-artists.mjs.map +1 -1
- package/dist/actions/get-artist-s-top-tracks.cjs +8 -8
- package/dist/actions/get-artist-s-top-tracks.cjs.map +1 -1
- package/dist/actions/get-artist-s-top-tracks.d.cts +13 -13
- package/dist/actions/get-artist-s-top-tracks.d.mts +13 -13
- package/dist/actions/get-artist-s-top-tracks.mjs +8 -8
- package/dist/actions/get-artist-s-top-tracks.mjs.map +1 -1
- package/dist/actions/get-artist.cjs +5 -5
- package/dist/actions/get-artist.cjs.map +1 -1
- package/dist/actions/get-artist.d.cts +5 -5
- package/dist/actions/get-artist.d.mts +5 -5
- package/dist/actions/get-artist.mjs +5 -5
- package/dist/actions/get-artist.mjs.map +1 -1
- package/dist/actions/get-audiobook-chapters.cjs +1 -1
- package/dist/actions/get-audiobook-chapters.cjs.map +1 -1
- package/dist/actions/get-audiobook-chapters.d.cts +1 -1
- package/dist/actions/get-audiobook-chapters.d.mts +1 -1
- package/dist/actions/get-audiobook-chapters.mjs +1 -1
- package/dist/actions/get-audiobook-chapters.mjs.map +1 -1
- package/dist/actions/get-available-devices.cjs +2 -2
- package/dist/actions/get-available-devices.cjs.map +1 -1
- package/dist/actions/get-available-devices.d.cts +2 -2
- package/dist/actions/get-available-devices.d.mts +2 -2
- package/dist/actions/get-available-devices.mjs +2 -2
- package/dist/actions/get-available-devices.mjs.map +1 -1
- package/dist/actions/get-available-markets.cjs +1 -1
- package/dist/actions/get-available-markets.cjs.map +1 -1
- package/dist/actions/get-available-markets.d.cts +1 -1
- package/dist/actions/get-available-markets.d.mts +1 -1
- package/dist/actions/get-available-markets.mjs +1 -1
- package/dist/actions/get-available-markets.mjs.map +1 -1
- package/dist/actions/get-current-user-s-playlists.cjs +7 -7
- package/dist/actions/get-current-user-s-playlists.cjs.map +1 -1
- package/dist/actions/get-current-user-s-playlists.d.cts +8 -8
- package/dist/actions/get-current-user-s-playlists.d.mts +8 -8
- package/dist/actions/get-current-user-s-playlists.mjs +7 -7
- package/dist/actions/get-current-user-s-playlists.mjs.map +1 -1
- package/dist/actions/get-current-user-s-profile.cjs +6 -6
- package/dist/actions/get-current-user-s-profile.cjs.map +1 -1
- package/dist/actions/get-current-user-s-profile.d.cts +6 -6
- package/dist/actions/get-current-user-s-profile.d.mts +6 -6
- package/dist/actions/get-current-user-s-profile.mjs +6 -6
- package/dist/actions/get-current-user-s-profile.mjs.map +1 -1
- package/dist/actions/get-episode.cjs +2 -2
- package/dist/actions/get-episode.cjs.map +1 -1
- package/dist/actions/get-episode.d.cts +2 -2
- package/dist/actions/get-episode.d.mts +2 -2
- package/dist/actions/get-episode.mjs +2 -2
- package/dist/actions/get-episode.mjs.map +1 -1
- package/dist/actions/get-followed-artists.cjs +8 -8
- package/dist/actions/get-followed-artists.cjs.map +1 -1
- package/dist/actions/get-followed-artists.d.cts +8 -8
- package/dist/actions/get-followed-artists.d.mts +8 -8
- package/dist/actions/get-followed-artists.mjs +8 -8
- package/dist/actions/get-followed-artists.mjs.map +1 -1
- package/dist/actions/get-new-releases.cjs +3 -3
- package/dist/actions/get-new-releases.cjs.map +1 -1
- package/dist/actions/get-new-releases.d.cts +3 -3
- package/dist/actions/get-new-releases.d.mts +3 -3
- package/dist/actions/get-new-releases.mjs +3 -3
- package/dist/actions/get-new-releases.mjs.map +1 -1
- package/dist/actions/get-playback-state.cjs +16 -16
- package/dist/actions/get-playback-state.cjs.map +1 -1
- package/dist/actions/get-playback-state.d.cts +29 -29
- package/dist/actions/get-playback-state.d.mts +29 -29
- package/dist/actions/get-playback-state.mjs +16 -16
- package/dist/actions/get-playback-state.mjs.map +1 -1
- package/dist/actions/get-playlist-cover-image.cjs +1 -1
- package/dist/actions/get-playlist-cover-image.cjs.map +1 -1
- package/dist/actions/get-playlist-cover-image.d.cts +1 -1
- package/dist/actions/get-playlist-cover-image.d.mts +1 -1
- package/dist/actions/get-playlist-cover-image.mjs +1 -1
- package/dist/actions/get-playlist-cover-image.mjs.map +1 -1
- package/dist/actions/get-recently-played-tracks.cjs +11 -11
- package/dist/actions/get-recently-played-tracks.cjs.map +1 -1
- package/dist/actions/get-recently-played-tracks.d.cts +17 -17
- package/dist/actions/get-recently-played-tracks.d.mts +17 -17
- package/dist/actions/get-recently-played-tracks.mjs +11 -11
- package/dist/actions/get-recently-played-tracks.mjs.map +1 -1
- package/dist/actions/get-recommendations.cjs +1 -1
- package/dist/actions/get-recommendations.cjs.map +1 -1
- package/dist/actions/get-recommendations.d.cts +1 -1
- package/dist/actions/get-recommendations.d.mts +1 -1
- package/dist/actions/get-recommendations.mjs +1 -1
- package/dist/actions/get-recommendations.mjs.map +1 -1
- package/dist/actions/get-several-albums.cjs +5 -5
- package/dist/actions/get-several-albums.cjs.map +1 -1
- package/dist/actions/get-several-albums.d.cts +6 -6
- package/dist/actions/get-several-albums.d.mts +6 -6
- package/dist/actions/get-several-albums.mjs +5 -5
- package/dist/actions/get-several-albums.mjs.map +1 -1
- package/dist/actions/get-several-artists.cjs +1 -1
- package/dist/actions/get-several-artists.cjs.map +1 -1
- package/dist/actions/get-several-artists.d.cts +1 -1
- package/dist/actions/get-several-artists.d.mts +1 -1
- package/dist/actions/get-several-artists.mjs +1 -1
- package/dist/actions/get-several-artists.mjs.map +1 -1
- package/dist/actions/get-several-audiobooks.cjs +2 -2
- package/dist/actions/get-several-audiobooks.cjs.map +1 -1
- package/dist/actions/get-several-audiobooks.d.cts +2 -2
- package/dist/actions/get-several-audiobooks.d.mts +2 -2
- package/dist/actions/get-several-audiobooks.mjs +2 -2
- package/dist/actions/get-several-audiobooks.mjs.map +1 -1
- package/dist/actions/get-several-chapters.cjs +2 -2
- package/dist/actions/get-several-chapters.cjs.map +1 -1
- package/dist/actions/get-several-chapters.d.cts +2 -2
- package/dist/actions/get-several-chapters.d.mts +2 -2
- package/dist/actions/get-several-chapters.mjs +2 -2
- package/dist/actions/get-several-chapters.mjs.map +1 -1
- package/dist/actions/get-several-episodes.cjs +2 -2
- package/dist/actions/get-several-episodes.cjs.map +1 -1
- package/dist/actions/get-several-episodes.d.cts +2 -2
- package/dist/actions/get-several-episodes.d.mts +2 -2
- package/dist/actions/get-several-episodes.mjs +2 -2
- package/dist/actions/get-several-episodes.mjs.map +1 -1
- package/dist/actions/get-several-shows.cjs +1 -1
- package/dist/actions/get-several-shows.cjs.map +1 -1
- package/dist/actions/get-several-shows.d.cts +1 -1
- package/dist/actions/get-several-shows.d.mts +1 -1
- package/dist/actions/get-several-shows.mjs +1 -1
- package/dist/actions/get-several-shows.mjs.map +1 -1
- package/dist/actions/get-several-tracks.cjs +6 -6
- package/dist/actions/get-several-tracks.cjs.map +1 -1
- package/dist/actions/get-several-tracks.d.cts +7 -7
- package/dist/actions/get-several-tracks.d.mts +7 -7
- package/dist/actions/get-several-tracks.mjs +6 -6
- package/dist/actions/get-several-tracks.mjs.map +1 -1
- package/dist/actions/get-show-episodes.cjs +1 -1
- package/dist/actions/get-show-episodes.cjs.map +1 -1
- package/dist/actions/get-show-episodes.d.cts +1 -1
- package/dist/actions/get-show-episodes.d.mts +1 -1
- package/dist/actions/get-show-episodes.mjs +1 -1
- package/dist/actions/get-show-episodes.mjs.map +1 -1
- package/dist/actions/get-show.cjs +2 -2
- package/dist/actions/get-show.cjs.map +1 -1
- package/dist/actions/get-show.d.cts +2 -2
- package/dist/actions/get-show.d.mts +2 -2
- package/dist/actions/get-show.mjs +2 -2
- package/dist/actions/get-show.mjs.map +1 -1
- package/dist/actions/get-track.cjs +9 -9
- package/dist/actions/get-track.cjs.map +1 -1
- package/dist/actions/get-track.d.cts +9 -9
- package/dist/actions/get-track.d.mts +9 -9
- package/dist/actions/get-track.mjs +9 -9
- package/dist/actions/get-track.mjs.map +1 -1
- package/dist/actions/get-user-s-playlists.cjs +7 -7
- package/dist/actions/get-user-s-playlists.cjs.map +1 -1
- package/dist/actions/get-user-s-playlists.d.cts +8 -8
- package/dist/actions/get-user-s-playlists.d.mts +8 -8
- package/dist/actions/get-user-s-playlists.mjs +7 -7
- package/dist/actions/get-user-s-playlists.mjs.map +1 -1
- package/dist/actions/get-user-s-profile.cjs +5 -5
- package/dist/actions/get-user-s-profile.cjs.map +1 -1
- package/dist/actions/get-user-s-profile.d.cts +5 -5
- package/dist/actions/get-user-s-profile.d.mts +5 -5
- package/dist/actions/get-user-s-profile.mjs +5 -5
- package/dist/actions/get-user-s-profile.mjs.map +1 -1
- package/dist/actions/get-user-s-saved-albums.cjs +2 -2
- package/dist/actions/get-user-s-saved-albums.cjs.map +1 -1
- package/dist/actions/get-user-s-saved-albums.d.cts +2 -2
- package/dist/actions/get-user-s-saved-albums.d.mts +2 -2
- package/dist/actions/get-user-s-saved-albums.mjs +2 -2
- package/dist/actions/get-user-s-saved-albums.mjs.map +1 -1
- package/dist/actions/get-user-s-saved-audiobooks.cjs +1 -1
- package/dist/actions/get-user-s-saved-audiobooks.cjs.map +1 -1
- package/dist/actions/get-user-s-saved-audiobooks.d.cts +1 -1
- package/dist/actions/get-user-s-saved-audiobooks.d.mts +1 -1
- package/dist/actions/get-user-s-saved-audiobooks.mjs +1 -1
- package/dist/actions/get-user-s-saved-audiobooks.mjs.map +1 -1
- package/dist/actions/get-user-s-saved-episodes.cjs +2 -2
- package/dist/actions/get-user-s-saved-episodes.cjs.map +1 -1
- package/dist/actions/get-user-s-saved-episodes.d.cts +2 -2
- package/dist/actions/get-user-s-saved-episodes.d.mts +2 -2
- package/dist/actions/get-user-s-saved-episodes.mjs +2 -2
- package/dist/actions/get-user-s-saved-episodes.mjs.map +1 -1
- package/dist/actions/get-user-s-saved-shows.cjs +1 -1
- package/dist/actions/get-user-s-saved-shows.cjs.map +1 -1
- package/dist/actions/get-user-s-saved-shows.d.cts +1 -1
- package/dist/actions/get-user-s-saved-shows.d.mts +1 -1
- package/dist/actions/get-user-s-saved-shows.mjs +1 -1
- package/dist/actions/get-user-s-saved-shows.mjs.map +1 -1
- package/dist/actions/get-user-s-saved-tracks.cjs +1 -1
- package/dist/actions/get-user-s-saved-tracks.cjs.map +1 -1
- package/dist/actions/get-user-s-saved-tracks.d.cts +1 -1
- package/dist/actions/get-user-s-saved-tracks.d.mts +1 -1
- package/dist/actions/get-user-s-saved-tracks.mjs +1 -1
- package/dist/actions/get-user-s-saved-tracks.mjs.map +1 -1
- package/dist/actions/get-user-s-top-artists.cjs +5 -5
- package/dist/actions/get-user-s-top-artists.cjs.map +1 -1
- package/dist/actions/get-user-s-top-artists.d.cts +5 -5
- package/dist/actions/get-user-s-top-artists.d.mts +5 -5
- package/dist/actions/get-user-s-top-artists.mjs +5 -5
- package/dist/actions/get-user-s-top-artists.mjs.map +1 -1
- package/dist/actions/get-user-s-top-tracks.cjs +9 -9
- package/dist/actions/get-user-s-top-tracks.cjs.map +1 -1
- package/dist/actions/get-user-s-top-tracks.d.cts +15 -15
- package/dist/actions/get-user-s-top-tracks.d.mts +15 -15
- package/dist/actions/get-user-s-top-tracks.mjs +9 -9
- package/dist/actions/get-user-s-top-tracks.mjs.map +1 -1
- package/dist/actions/pause-playback.cjs +1 -1
- package/dist/actions/pause-playback.cjs.map +1 -1
- package/dist/actions/pause-playback.d.cts +1 -1
- package/dist/actions/pause-playback.d.mts +1 -1
- package/dist/actions/pause-playback.mjs +1 -1
- package/dist/actions/pause-playback.mjs.map +1 -1
- package/dist/actions/remove-user-s-saved-audiobooks.cjs +1 -1
- package/dist/actions/remove-user-s-saved-audiobooks.cjs.map +1 -1
- package/dist/actions/remove-user-s-saved-audiobooks.d.cts +1 -1
- package/dist/actions/remove-user-s-saved-audiobooks.d.mts +1 -1
- package/dist/actions/remove-user-s-saved-audiobooks.mjs +1 -1
- package/dist/actions/remove-user-s-saved-audiobooks.mjs.map +1 -1
- package/dist/actions/remove-user-s-saved-episodes.cjs +1 -1
- package/dist/actions/remove-user-s-saved-episodes.cjs.map +1 -1
- package/dist/actions/remove-user-s-saved-episodes.d.cts +1 -1
- package/dist/actions/remove-user-s-saved-episodes.d.mts +1 -1
- package/dist/actions/remove-user-s-saved-episodes.mjs +1 -1
- package/dist/actions/remove-user-s-saved-episodes.mjs.map +1 -1
- package/dist/actions/remove-user-s-saved-tracks.cjs +1 -1
- package/dist/actions/remove-user-s-saved-tracks.cjs.map +1 -1
- package/dist/actions/remove-user-s-saved-tracks.d.cts +1 -1
- package/dist/actions/remove-user-s-saved-tracks.d.mts +1 -1
- package/dist/actions/remove-user-s-saved-tracks.mjs +1 -1
- package/dist/actions/remove-user-s-saved-tracks.mjs.map +1 -1
- package/dist/actions/save-albums-for-current-user.cjs +1 -1
- package/dist/actions/save-albums-for-current-user.cjs.map +1 -1
- package/dist/actions/save-albums-for-current-user.d.cts +1 -1
- package/dist/actions/save-albums-for-current-user.d.mts +1 -1
- package/dist/actions/save-albums-for-current-user.mjs +1 -1
- package/dist/actions/save-albums-for-current-user.mjs.map +1 -1
- package/dist/actions/save-audiobooks-for-current-user.cjs +1 -1
- package/dist/actions/save-audiobooks-for-current-user.cjs.map +1 -1
- package/dist/actions/save-audiobooks-for-current-user.d.cts +1 -1
- package/dist/actions/save-audiobooks-for-current-user.d.mts +1 -1
- package/dist/actions/save-audiobooks-for-current-user.mjs +1 -1
- package/dist/actions/save-audiobooks-for-current-user.mjs.map +1 -1
- package/dist/actions/save-episodes-for-current-user.cjs +1 -1
- package/dist/actions/save-episodes-for-current-user.cjs.map +1 -1
- package/dist/actions/save-episodes-for-current-user.d.cts +1 -1
- package/dist/actions/save-episodes-for-current-user.d.mts +1 -1
- package/dist/actions/save-episodes-for-current-user.mjs +1 -1
- package/dist/actions/save-episodes-for-current-user.mjs.map +1 -1
- package/dist/actions/save-shows-for-current-user.cjs +1 -1
- package/dist/actions/save-shows-for-current-user.cjs.map +1 -1
- package/dist/actions/save-shows-for-current-user.d.cts +1 -1
- package/dist/actions/save-shows-for-current-user.d.mts +1 -1
- package/dist/actions/save-shows-for-current-user.mjs +1 -1
- package/dist/actions/save-shows-for-current-user.mjs.map +1 -1
- package/dist/actions/save-tracks-for-current-user.cjs +1 -1
- package/dist/actions/save-tracks-for-current-user.cjs.map +1 -1
- package/dist/actions/save-tracks-for-current-user.d.cts +1 -1
- package/dist/actions/save-tracks-for-current-user.d.mts +1 -1
- package/dist/actions/save-tracks-for-current-user.mjs +1 -1
- package/dist/actions/save-tracks-for-current-user.mjs.map +1 -1
- package/dist/actions/search-for-item.d.cts +3 -3
- package/dist/actions/search-for-item.d.mts +3 -3
- package/dist/actions/set-playback-volume.cjs +1 -1
- package/dist/actions/set-playback-volume.cjs.map +1 -1
- package/dist/actions/set-playback-volume.d.cts +1 -1
- package/dist/actions/set-playback-volume.d.mts +1 -1
- package/dist/actions/set-playback-volume.mjs +1 -1
- package/dist/actions/set-playback-volume.mjs.map +1 -1
- package/dist/actions/set-repeat-mode.cjs +1 -1
- package/dist/actions/set-repeat-mode.cjs.map +1 -1
- package/dist/actions/set-repeat-mode.d.cts +3 -3
- package/dist/actions/set-repeat-mode.d.mts +3 -3
- package/dist/actions/set-repeat-mode.mjs +1 -1
- package/dist/actions/set-repeat-mode.mjs.map +1 -1
- package/dist/actions/skip-to-previous.cjs +1 -1
- package/dist/actions/skip-to-previous.cjs.map +1 -1
- package/dist/actions/skip-to-previous.d.cts +1 -1
- package/dist/actions/skip-to-previous.d.mts +1 -1
- package/dist/actions/skip-to-previous.mjs +1 -1
- package/dist/actions/skip-to-previous.mjs.map +1 -1
- package/dist/actions/start-resume-playback.cjs +1 -1
- package/dist/actions/start-resume-playback.cjs.map +1 -1
- package/dist/actions/start-resume-playback.d.cts +1 -1
- package/dist/actions/start-resume-playback.d.mts +1 -1
- package/dist/actions/start-resume-playback.mjs +1 -1
- package/dist/actions/start-resume-playback.mjs.map +1 -1
- package/dist/actions/transfer-playback.cjs +1 -1
- package/dist/actions/transfer-playback.cjs.map +1 -1
- package/dist/actions/transfer-playback.d.cts +1 -1
- package/dist/actions/transfer-playback.d.mts +1 -1
- package/dist/actions/transfer-playback.mjs +1 -1
- package/dist/actions/transfer-playback.mjs.map +1 -1
- package/dist/actions/update-playlist-items.cjs +1 -1
- package/dist/actions/update-playlist-items.cjs.map +1 -1
- package/dist/actions/update-playlist-items.d.cts +1 -1
- package/dist/actions/update-playlist-items.d.mts +1 -1
- package/dist/actions/update-playlist-items.mjs +1 -1
- package/dist/actions/update-playlist-items.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user-s-profile.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user-s-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetCurrentUserSProfileInput = z.object({}).describe(\"Request schema for `GetCurrentUserSProfile`\\n\\nThis action requires no parameters as it retrieves the profile\\nof the currently authenticated user.\");\nconst SpotifyGetCurrentUserSProfile_ImageSchema = z.object({\n url: z.string().describe(\"Image URL\").nullable(),\n width: z.number().int().describe(\"Image width in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Image height in pixels\").nullable().optional(),\n}).describe(\"User profile image\");\nconst SpotifyGetCurrentUserSProfile_FollowersSchema = z.object({\n href: z.string().describe(\"API endpoint for followers (always null for current user)\").nullable().optional(),\n total: z.number().int().describe(\"Total number of followers\").nullable().optional(),\n}).describe(\"Follower information\");\nconst SpotifyGetCurrentUserSProfile_ExplicitContentSchema = z.object({\n filter_locked: z.boolean().describe(\"Whether explicit content filter is locked\").nullable().optional(),\n filter_enabled: z.boolean().describe(\"Whether explicit content filtering is enabled\").nullable().optional(),\n}).describe(\"Explicit content settings for the user\");\nconst SpotifyGetCurrentUserSProfile_UserProfileDataSchema = z.object({\n id: z.string().describe(\"Spotify user ID\").nullable(),\n uri: z.string().describe(\"Spotify URI for the user\").nullable(),\n href: z.string().describe(\"API endpoint for this user\").nullable(),\n type: z.string().describe(\"Object type, always 'user'\").nullable(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n images: z.array(SpotifyGetCurrentUserSProfile_ImageSchema).describe(\"User's profile images\").nullable().optional(),\n country: z.string().describe(\"User's country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n product: z.string().describe(\"User's Spotify subscription level (e.g., 'free', 'premium', 'open')\").nullable().optional(),\n followers: SpotifyGetCurrentUserSProfile_FollowersSchema.nullable().optional(),\n display_name: z.string().describe(\"User's display name\").nullable().optional(),\n external_urls: z.
|
|
1
|
+
{"version":3,"file":"get-current-user-s-profile.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user-s-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetCurrentUserSProfileInput = z.object({}).describe(\"Request schema for `GetCurrentUserSProfile`\\n\\nThis action requires no parameters as it retrieves the profile\\nof the currently authenticated user.\");\nconst SpotifyGetCurrentUserSProfile_ImageSchema = z.object({\n url: z.string().describe(\"Image URL\").nullable(),\n width: z.number().int().describe(\"Image width in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Image height in pixels\").nullable().optional(),\n}).passthrough().describe(\"User profile image\");\nconst SpotifyGetCurrentUserSProfile_FollowersSchema = z.object({\n href: z.string().describe(\"API endpoint for followers (always null for current user)\").nullable().optional(),\n total: z.number().int().describe(\"Total number of followers\").nullable().optional(),\n}).passthrough().describe(\"Follower information\");\nconst SpotifyGetCurrentUserSProfile_ExplicitContentSchema = z.object({\n filter_locked: z.boolean().describe(\"Whether explicit content filter is locked\").nullable().optional(),\n filter_enabled: z.boolean().describe(\"Whether explicit content filtering is enabled\").nullable().optional(),\n}).passthrough().describe(\"Explicit content settings for the user\");\nconst SpotifyGetCurrentUserSProfile_UserProfileDataSchema = z.object({\n id: z.string().describe(\"Spotify user ID\").nullable(),\n uri: z.string().describe(\"Spotify URI for the user\").nullable(),\n href: z.string().describe(\"API endpoint for this user\").nullable(),\n type: z.string().describe(\"Object type, always 'user'\").nullable(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n images: z.array(SpotifyGetCurrentUserSProfile_ImageSchema).describe(\"User's profile images\").nullable().optional(),\n country: z.string().describe(\"User's country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n product: z.string().describe(\"User's Spotify subscription level (e.g., 'free', 'premium', 'open')\").nullable().optional(),\n followers: SpotifyGetCurrentUserSProfile_FollowersSchema.nullable().optional(),\n display_name: z.string().describe(\"User's display name\").nullable().optional(),\n external_urls: z.record(z.string(), z.unknown()).describe(\"External URLs for the user (e.g., Spotify web player link)\").nullable().optional(),\n explicit_content: SpotifyGetCurrentUserSProfile_ExplicitContentSchema.nullable().optional(),\n}).passthrough().describe(\"Detailed user profile information\");\nexport const SpotifyGetCurrentUserSProfileOutput = z.object({\n data: SpotifyGetCurrentUserSProfile_UserProfileDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for `GetCurrentUserSProfile`.\\n\\nReturns a Spotify private user object containing:\\n- id: The Spotify user ID\\n- display_name: The name displayed on the user's profile\\n- email: User's email address (requires user-read-email scope)\\n- country: ISO 3166-1 alpha-2 country code (requires user-read-private scope)\\n- product: Subscription level - \\\"premium\\\", \\\"free\\\", or \\\"open\\\" (requires user-read-private scope)\\n- explicit_content: Object with filter_enabled and filter_locked boolean fields\\n- images: Array of profile images with url, height, and width\\n- followers: Object with href and total follower count\\n- external_urls: Object containing the Spotify URL for the user\\n- href: Full Spotify API endpoint URL for this user\\n- type: Object type, always \\\"user\\\"\\n- uri: The Spotify URI for the user\");\n\nexport const spotifyGetCurrentUserSProfile = action(\"SPOTIFY_GET_CURRENT_USER_S_PROFILE\", {\n slug: \"spotify-get-current-user-s-profile\",\n name: \"Get current user s profile\",\n description: \"Get detailed profile information about the current authenticated user. This endpoint returns comprehensive user profile data including display name, email address, country, subscription level (premium/free), explicit content settings, profile images, follower count, and Spotify URIs. Required OAuth scopes: - user-read-private: Required to access country, product (subscription level), and explicit content settings - user-read-email: Required to access the user's email address Returns a private user object with all available profile information for the authenticated user.\",\n input: SpotifyGetCurrentUserS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N,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,21 +13,21 @@ declare const SpotifyGetCurrentUserSProfileOutput: z.ZodObject<{
|
|
|
13
13
|
url: z.ZodNullable<z.ZodString>;
|
|
14
14
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
15
|
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
17
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
product: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
followers: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
external_urls: z.ZodOptional<z.ZodNullable<z.
|
|
24
|
+
external_urls: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
25
|
explicit_content: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
26
|
filter_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
27
27
|
filter_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
30
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const spotifyGetCurrentUserSProfile: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { spotifyGetCurrentUserSProfile };
|
|
@@ -13,21 +13,21 @@ declare const SpotifyGetCurrentUserSProfileOutput: z.ZodObject<{
|
|
|
13
13
|
url: z.ZodNullable<z.ZodString>;
|
|
14
14
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
15
|
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
17
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
product: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
followers: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
external_urls: z.ZodOptional<z.ZodNullable<z.
|
|
24
|
+
external_urls: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
25
|
explicit_content: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
26
|
filter_locked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
27
27
|
filter_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
30
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const spotifyGetCurrentUserSProfile: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { spotifyGetCurrentUserSProfile };
|
|
@@ -6,15 +6,15 @@ const SpotifyGetCurrentUserSProfile_ImageSchema = z.object({
|
|
|
6
6
|
url: z.string().describe("Image URL").nullable(),
|
|
7
7
|
width: z.number().int().describe("Image width in pixels").nullable().optional(),
|
|
8
8
|
height: z.number().int().describe("Image height in pixels").nullable().optional()
|
|
9
|
-
}).describe("User profile image");
|
|
9
|
+
}).passthrough().describe("User profile image");
|
|
10
10
|
const SpotifyGetCurrentUserSProfile_FollowersSchema = z.object({
|
|
11
11
|
href: z.string().describe("API endpoint for followers (always null for current user)").nullable().optional(),
|
|
12
12
|
total: z.number().int().describe("Total number of followers").nullable().optional()
|
|
13
|
-
}).describe("Follower information");
|
|
13
|
+
}).passthrough().describe("Follower information");
|
|
14
14
|
const SpotifyGetCurrentUserSProfile_ExplicitContentSchema = z.object({
|
|
15
15
|
filter_locked: z.boolean().describe("Whether explicit content filter is locked").nullable().optional(),
|
|
16
16
|
filter_enabled: z.boolean().describe("Whether explicit content filtering is enabled").nullable().optional()
|
|
17
|
-
}).describe("Explicit content settings for the user");
|
|
17
|
+
}).passthrough().describe("Explicit content settings for the user");
|
|
18
18
|
const SpotifyGetCurrentUserSProfile_UserProfileDataSchema = z.object({
|
|
19
19
|
id: z.string().describe("Spotify user ID").nullable(),
|
|
20
20
|
uri: z.string().describe("Spotify URI for the user").nullable(),
|
|
@@ -26,15 +26,15 @@ const SpotifyGetCurrentUserSProfile_UserProfileDataSchema = z.object({
|
|
|
26
26
|
product: z.string().describe("User's Spotify subscription level (e.g., 'free', 'premium', 'open')").nullable().optional(),
|
|
27
27
|
followers: SpotifyGetCurrentUserSProfile_FollowersSchema.nullable().optional(),
|
|
28
28
|
display_name: z.string().describe("User's display name").nullable().optional(),
|
|
29
|
-
external_urls: z.
|
|
29
|
+
external_urls: z.record(z.string(), z.unknown()).describe("External URLs for the user (e.g., Spotify web player link)").nullable().optional(),
|
|
30
30
|
explicit_content: SpotifyGetCurrentUserSProfile_ExplicitContentSchema.nullable().optional()
|
|
31
|
-
}).describe("Detailed user profile information");
|
|
31
|
+
}).passthrough().describe("Detailed user profile information");
|
|
32
32
|
const spotifyGetCurrentUserSProfile = action("SPOTIFY_GET_CURRENT_USER_S_PROFILE", {
|
|
33
33
|
slug: "spotify-get-current-user-s-profile",
|
|
34
34
|
name: "Get current user s profile",
|
|
35
35
|
description: "Get detailed profile information about the current authenticated user. This endpoint returns comprehensive user profile data including display name, email address, country, subscription level (premium/free), explicit content settings, profile images, follower count, and Spotify URIs. Required OAuth scopes: - user-read-private: Required to access country, product (subscription level), and explicit content settings - user-read-email: Required to access the user's email address Returns a private user object with all available profile information for the authenticated user.",
|
|
36
36
|
input: SpotifyGetCurrentUserSProfileInput,
|
|
37
|
-
output: z.object({ data: SpotifyGetCurrentUserSProfile_UserProfileDataSchema.nullable() }).describe("Response schema for `GetCurrentUserSProfile`.\n\nReturns a Spotify private user object containing:\n- id: The Spotify user ID\n- display_name: The name displayed on the user's profile\n- email: User's email address (requires user-read-email scope)\n- country: ISO 3166-1 alpha-2 country code (requires user-read-private scope)\n- product: Subscription level - \"premium\", \"free\", or \"open\" (requires user-read-private scope)\n- explicit_content: Object with filter_enabled and filter_locked boolean fields\n- images: Array of profile images with url, height, and width\n- followers: Object with href and total follower count\n- external_urls: Object containing the Spotify URL for the user\n- href: Full Spotify API endpoint URL for this user\n- type: Object type, always \"user\"\n- uri: The Spotify URI for the user")
|
|
37
|
+
output: z.object({ data: SpotifyGetCurrentUserSProfile_UserProfileDataSchema.nullable() }).passthrough().describe("Response schema for `GetCurrentUserSProfile`.\n\nReturns a Spotify private user object containing:\n- id: The Spotify user ID\n- display_name: The name displayed on the user's profile\n- email: User's email address (requires user-read-email scope)\n- country: ISO 3166-1 alpha-2 country code (requires user-read-private scope)\n- product: Subscription level - \"premium\", \"free\", or \"open\" (requires user-read-private scope)\n- explicit_content: Object with filter_enabled and filter_locked boolean fields\n- images: Array of profile images with url, height, and width\n- followers: Object with href and total follower count\n- external_urls: Object containing the Spotify URL for the user\n- href: Full Spotify API endpoint URL for this user\n- type: Object type, always \"user\"\n- uri: The Spotify URI for the user")
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { spotifyGetCurrentUserSProfile };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user-s-profile.mjs","names":[],"sources":["../../src/actions/get-current-user-s-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetCurrentUserSProfileInput = z.object({}).describe(\"Request schema for `GetCurrentUserSProfile`\\n\\nThis action requires no parameters as it retrieves the profile\\nof the currently authenticated user.\");\nconst SpotifyGetCurrentUserSProfile_ImageSchema = z.object({\n url: z.string().describe(\"Image URL\").nullable(),\n width: z.number().int().describe(\"Image width in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Image height in pixels\").nullable().optional(),\n}).describe(\"User profile image\");\nconst SpotifyGetCurrentUserSProfile_FollowersSchema = z.object({\n href: z.string().describe(\"API endpoint for followers (always null for current user)\").nullable().optional(),\n total: z.number().int().describe(\"Total number of followers\").nullable().optional(),\n}).describe(\"Follower information\");\nconst SpotifyGetCurrentUserSProfile_ExplicitContentSchema = z.object({\n filter_locked: z.boolean().describe(\"Whether explicit content filter is locked\").nullable().optional(),\n filter_enabled: z.boolean().describe(\"Whether explicit content filtering is enabled\").nullable().optional(),\n}).describe(\"Explicit content settings for the user\");\nconst SpotifyGetCurrentUserSProfile_UserProfileDataSchema = z.object({\n id: z.string().describe(\"Spotify user ID\").nullable(),\n uri: z.string().describe(\"Spotify URI for the user\").nullable(),\n href: z.string().describe(\"API endpoint for this user\").nullable(),\n type: z.string().describe(\"Object type, always 'user'\").nullable(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n images: z.array(SpotifyGetCurrentUserSProfile_ImageSchema).describe(\"User's profile images\").nullable().optional(),\n country: z.string().describe(\"User's country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n product: z.string().describe(\"User's Spotify subscription level (e.g., 'free', 'premium', 'open')\").nullable().optional(),\n followers: SpotifyGetCurrentUserSProfile_FollowersSchema.nullable().optional(),\n display_name: z.string().describe(\"User's display name\").nullable().optional(),\n external_urls: z.
|
|
1
|
+
{"version":3,"file":"get-current-user-s-profile.mjs","names":[],"sources":["../../src/actions/get-current-user-s-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetCurrentUserSProfileInput = z.object({}).describe(\"Request schema for `GetCurrentUserSProfile`\\n\\nThis action requires no parameters as it retrieves the profile\\nof the currently authenticated user.\");\nconst SpotifyGetCurrentUserSProfile_ImageSchema = z.object({\n url: z.string().describe(\"Image URL\").nullable(),\n width: z.number().int().describe(\"Image width in pixels\").nullable().optional(),\n height: z.number().int().describe(\"Image height in pixels\").nullable().optional(),\n}).passthrough().describe(\"User profile image\");\nconst SpotifyGetCurrentUserSProfile_FollowersSchema = z.object({\n href: z.string().describe(\"API endpoint for followers (always null for current user)\").nullable().optional(),\n total: z.number().int().describe(\"Total number of followers\").nullable().optional(),\n}).passthrough().describe(\"Follower information\");\nconst SpotifyGetCurrentUserSProfile_ExplicitContentSchema = z.object({\n filter_locked: z.boolean().describe(\"Whether explicit content filter is locked\").nullable().optional(),\n filter_enabled: z.boolean().describe(\"Whether explicit content filtering is enabled\").nullable().optional(),\n}).passthrough().describe(\"Explicit content settings for the user\");\nconst SpotifyGetCurrentUserSProfile_UserProfileDataSchema = z.object({\n id: z.string().describe(\"Spotify user ID\").nullable(),\n uri: z.string().describe(\"Spotify URI for the user\").nullable(),\n href: z.string().describe(\"API endpoint for this user\").nullable(),\n type: z.string().describe(\"Object type, always 'user'\").nullable(),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n images: z.array(SpotifyGetCurrentUserSProfile_ImageSchema).describe(\"User's profile images\").nullable().optional(),\n country: z.string().describe(\"User's country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n product: z.string().describe(\"User's Spotify subscription level (e.g., 'free', 'premium', 'open')\").nullable().optional(),\n followers: SpotifyGetCurrentUserSProfile_FollowersSchema.nullable().optional(),\n display_name: z.string().describe(\"User's display name\").nullable().optional(),\n external_urls: z.record(z.string(), z.unknown()).describe(\"External URLs for the user (e.g., Spotify web player link)\").nullable().optional(),\n explicit_content: SpotifyGetCurrentUserSProfile_ExplicitContentSchema.nullable().optional(),\n}).passthrough().describe(\"Detailed user profile information\");\nexport const SpotifyGetCurrentUserSProfileOutput = z.object({\n data: SpotifyGetCurrentUserSProfile_UserProfileDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for `GetCurrentUserSProfile`.\\n\\nReturns a Spotify private user object containing:\\n- id: The Spotify user ID\\n- display_name: The name displayed on the user's profile\\n- email: User's email address (requires user-read-email scope)\\n- country: ISO 3166-1 alpha-2 country code (requires user-read-private scope)\\n- product: Subscription level - \\\"premium\\\", \\\"free\\\", or \\\"open\\\" (requires user-read-private scope)\\n- explicit_content: Object with filter_enabled and filter_locked boolean fields\\n- images: Array of profile images with url, height, and width\\n- followers: Object with href and total follower count\\n- external_urls: Object containing the Spotify URL for the user\\n- href: Full Spotify API endpoint URL for this user\\n- type: Object type, always \\\"user\\\"\\n- uri: The Spotify URI for the user\");\n\nexport const spotifyGetCurrentUserSProfile = action(\"SPOTIFY_GET_CURRENT_USER_S_PROFILE\", {\n slug: \"spotify-get-current-user-s-profile\",\n name: \"Get current user s profile\",\n description: \"Get detailed profile information about the current authenticated user. This endpoint returns comprehensive user profile data including display name, email address, country, subscription level (premium/free), explicit content settings, profile images, follower count, and Spotify URIs. Required OAuth scopes: - user-read-private: Required to access country, product (subscription level), and explicit content settings - user-read-email: Required to access the user's email address Returns a private user object with all available profile information for the authenticated user.\",\n input: SpotifyGetCurrentUserSProfileInput,\n output: SpotifyGetCurrentUserSProfileOutput,\n});\n"],"mappings":";;;A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CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,WAAW,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,kBAAkB,oDAAoD,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,MAAM,oDAAoD,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wzBAOhB;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ const SpotifyGetEpisode_SimplifiedShowObjectSchema = zod.z.object({
|
|
|
21
21
|
publisher: zod.z.string().nullable().optional(),
|
|
22
22
|
media_type: zod.z.string().nullable().optional(),
|
|
23
23
|
description: zod.z.string().nullable().optional(),
|
|
24
|
-
external_urls: zod.z.
|
|
24
|
+
external_urls: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
25
25
|
total_episodes: zod.z.number().int().nullable().optional(),
|
|
26
26
|
html_description: zod.z.string().nullable().optional()
|
|
27
27
|
}).passthrough().describe("A simplified show object.");
|
|
@@ -46,7 +46,7 @@ const SpotifyGetEpisodeOutput = zod.z.object({
|
|
|
46
46
|
release_date: zod.z.string().describe("The date the episode was first released (YYYY-MM-DD format)").nullable().optional(),
|
|
47
47
|
restrictions: SpotifyGetEpisode_RestrictionObjectSchema.nullable().optional(),
|
|
48
48
|
resume_point: SpotifyGetEpisode_ResumePointObjectSchema.nullable().optional(),
|
|
49
|
-
external_urls: zod.z.
|
|
49
|
+
external_urls: zod.z.record(zod.z.string(), zod.z.unknown()).describe("External URLs for this episode").nullable().optional(),
|
|
50
50
|
html_description: zod.z.string().describe("A description of the episode with HTML tags").nullable().optional(),
|
|
51
51
|
audio_preview_url: zod.z.string().describe("A URL to a 30 second preview (MP3 format) of the episode. None if not available.").nullable().optional(),
|
|
52
52
|
is_externally_hosted: zod.z.boolean().describe("True if the episode is hosted outside of Spotify's CDN").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-episode.cjs","names":["z","action"],"sources":["../../src/actions/get-episode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetEpisodeInput = z.object({\n id: z.string().describe(\"The Spotify ID for the episode (22-character alphanumeric string). Example: '512ojhOuo1ktJprKbVcKyQ'\"),\n market: z.string().describe(\"An ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'ES'). If provided, only content available in that market will be returned. If a valid user access token is specified in the request header, the user's country takes priority.\").optional(),\n}).describe(\"Request schema for `GetEpisode`\");\nconst SpotifyGetEpisode_ImageObjectSchema = z.object({\n url: z.string().nullable().optional(),\n width: z.number().int().nullable().optional(),\n height: z.number().int().nullable().optional(),\n}).passthrough().describe(\"An image object from Spotify API.\");\nconst SpotifyGetEpisode_SimplifiedShowObjectSchema = z.object({\n id: z.string().nullable().optional(),\n uri: z.string().nullable().optional(),\n href: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.string().nullable().optional(),\n images: z.array(SpotifyGetEpisode_ImageObjectSchema).nullable().optional(),\n explicit: z.boolean().nullable().optional(),\n publisher: z.string().nullable().optional(),\n media_type: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n external_urls: z.
|
|
1
|
+
{"version":3,"file":"get-episode.cjs","names":["z","action"],"sources":["../../src/actions/get-episode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetEpisodeInput = z.object({\n id: z.string().describe(\"The Spotify ID for the episode (22-character alphanumeric string). Example: '512ojhOuo1ktJprKbVcKyQ'\"),\n market: z.string().describe(\"An ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'ES'). If provided, only content available in that market will be returned. If a valid user access token is specified in the request header, the user's country takes priority.\").optional(),\n}).describe(\"Request schema for `GetEpisode`\");\nconst SpotifyGetEpisode_ImageObjectSchema = z.object({\n url: z.string().nullable().optional(),\n width: z.number().int().nullable().optional(),\n height: z.number().int().nullable().optional(),\n}).passthrough().describe(\"An image object from Spotify API.\");\nconst SpotifyGetEpisode_SimplifiedShowObjectSchema = z.object({\n id: z.string().nullable().optional(),\n uri: z.string().nullable().optional(),\n href: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.string().nullable().optional(),\n images: z.array(SpotifyGetEpisode_ImageObjectSchema).nullable().optional(),\n explicit: z.boolean().nullable().optional(),\n publisher: z.string().nullable().optional(),\n media_type: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n external_urls: z.record(z.string(), z.unknown()).nullable().optional(),\n total_episodes: z.number().int().nullable().optional(),\n html_description: z.string().nullable().optional(),\n}).passthrough().describe(\"A simplified show object.\");\nconst SpotifyGetEpisode_RestrictionObjectSchema = z.object({\n reason: z.string().nullable().optional(),\n}).passthrough().describe(\"Restriction information.\");\nconst SpotifyGetEpisode_ResumePointObjectSchema = z.object({\n fully_played: z.boolean().nullable().optional(),\n resume_position_ms: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Resume point information for an episode.\");\nexport const SpotifyGetEpisodeOutput = z.object({\n id: z.string().describe(\"The Spotify ID for the episode\").nullable().optional(),\n uri: z.string().describe(\"The Spotify URI for the episode\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the episode\").nullable().optional(),\n name: z.string().describe(\"The name/title of the episode\").nullable().optional(),\n show: SpotifyGetEpisode_SimplifiedShowObjectSchema.nullable().optional(),\n type: z.string().describe(\"The object type: 'episode'\").nullable().optional(),\n images: z.array(SpotifyGetEpisode_ImageObjectSchema).describe(\"The cover art for the episode in various sizes\").nullable().optional(),\n explicit: z.boolean().describe(\"Whether the episode contains explicit content (true = yes, false = no or unknown)\").nullable().optional(),\n languages: z.array(z.string()).describe(\"A list of the languages used in the episode, identified by ISO 639-1 codes\").nullable().optional(),\n description: z.string().describe(\"A description of the episode (HTML tags stripped)\").nullable().optional(),\n duration_ms: z.number().int().describe(\"The episode length in milliseconds\").nullable().optional(),\n is_playable: z.boolean().describe(\"True if the episode is playable in the given market. Otherwise false.\").nullable().optional(),\n release_date: z.string().describe(\"The date the episode was first released (YYYY-MM-DD format)\").nullable().optional(),\n restrictions: SpotifyGetEpisode_RestrictionObjectSchema.nullable().optional(),\n resume_point: SpotifyGetEpisode_ResumePointObjectSchema.nullable().optional(),\n external_urls: z.record(z.string(), z.unknown()).describe(\"External URLs for this episode\").nullable().optional(),\n html_description: z.string().describe(\"A description of the episode with HTML tags\").nullable().optional(),\n audio_preview_url: z.string().describe(\"A URL to a 30 second preview (MP3 format) of the episode. None if not available.\").nullable().optional(),\n is_externally_hosted: z.boolean().describe(\"True if the episode is hosted outside of Spotify's CDN\").nullable().optional(),\n release_date_precision: z.string().describe(\"The precision level of release_date: 'year', 'month', or 'day'\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `GetEpisode`\");\n\nexport const spotifyGetEpisode = action(\"SPOTIFY_GET_EPISODE\", {\n slug: \"spotify-get-episode\",\n name: \"Get episode\",\n description: \"Get Spotify catalog information for a single podcast episode identified by its unique Spotify ID. This endpoint retrieves detailed information about a podcast episode including its name, description, duration, release date, cover art, show information, and playback status. It can also return the user's resume point if the user-read-playback-position scope is authorized. Episodes are podcast content on Spotify. Use this endpoint to get metadata and playback information for a specific episode when you have its Spotify ID.\",\n input: SpotifyGetEpisodeInput,\n output: SpotifyGetEpisodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CAC9H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uOAAuO,CAAC,CAAC,SAAS;AAChR,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,MAAMA,IAAAA,EAAE,OAAO,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0C,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC5E,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -25,7 +25,7 @@ declare const SpotifyGetEpisodeOutput: z.ZodObject<{
|
|
|
25
25
|
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
media_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
external_urls: z.ZodOptional<z.ZodNullable<z.
|
|
28
|
+
external_urls: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
29
|
total_episodes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
html_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
}, z.core.$loose>>>;
|
|
@@ -48,7 +48,7 @@ declare const SpotifyGetEpisodeOutput: z.ZodObject<{
|
|
|
48
48
|
fully_played: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
49
49
|
resume_position_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
50
|
}, z.core.$loose>>>;
|
|
51
|
-
external_urls: z.ZodOptional<z.ZodNullable<z.
|
|
51
|
+
external_urls: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
52
52
|
html_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
audio_preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
is_externally_hosted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -25,7 +25,7 @@ declare const SpotifyGetEpisodeOutput: z.ZodObject<{
|
|
|
25
25
|
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
media_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
external_urls: z.ZodOptional<z.ZodNullable<z.
|
|
28
|
+
external_urls: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
29
|
total_episodes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
html_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
}, z.core.$loose>>>;
|
|
@@ -48,7 +48,7 @@ declare const SpotifyGetEpisodeOutput: z.ZodObject<{
|
|
|
48
48
|
fully_played: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
49
49
|
resume_position_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
50
|
}, z.core.$loose>>>;
|
|
51
|
-
external_urls: z.ZodOptional<z.ZodNullable<z.
|
|
51
|
+
external_urls: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
52
52
|
html_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
audio_preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
is_externally_hosted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -21,7 +21,7 @@ const SpotifyGetEpisode_SimplifiedShowObjectSchema = z.object({
|
|
|
21
21
|
publisher: z.string().nullable().optional(),
|
|
22
22
|
media_type: z.string().nullable().optional(),
|
|
23
23
|
description: z.string().nullable().optional(),
|
|
24
|
-
external_urls: z.
|
|
24
|
+
external_urls: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
25
25
|
total_episodes: z.number().int().nullable().optional(),
|
|
26
26
|
html_description: z.string().nullable().optional()
|
|
27
27
|
}).passthrough().describe("A simplified show object.");
|
|
@@ -51,7 +51,7 @@ const spotifyGetEpisode = action("SPOTIFY_GET_EPISODE", {
|
|
|
51
51
|
release_date: z.string().describe("The date the episode was first released (YYYY-MM-DD format)").nullable().optional(),
|
|
52
52
|
restrictions: SpotifyGetEpisode_RestrictionObjectSchema.nullable().optional(),
|
|
53
53
|
resume_point: SpotifyGetEpisode_ResumePointObjectSchema.nullable().optional(),
|
|
54
|
-
external_urls: z.
|
|
54
|
+
external_urls: z.record(z.string(), z.unknown()).describe("External URLs for this episode").nullable().optional(),
|
|
55
55
|
html_description: z.string().describe("A description of the episode with HTML tags").nullable().optional(),
|
|
56
56
|
audio_preview_url: z.string().describe("A URL to a 30 second preview (MP3 format) of the episode. None if not available.").nullable().optional(),
|
|
57
57
|
is_externally_hosted: z.boolean().describe("True if the episode is hosted outside of Spotify's CDN").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-episode.mjs","names":[],"sources":["../../src/actions/get-episode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetEpisodeInput = z.object({\n id: z.string().describe(\"The Spotify ID for the episode (22-character alphanumeric string). Example: '512ojhOuo1ktJprKbVcKyQ'\"),\n market: z.string().describe(\"An ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'ES'). If provided, only content available in that market will be returned. If a valid user access token is specified in the request header, the user's country takes priority.\").optional(),\n}).describe(\"Request schema for `GetEpisode`\");\nconst SpotifyGetEpisode_ImageObjectSchema = z.object({\n url: z.string().nullable().optional(),\n width: z.number().int().nullable().optional(),\n height: z.number().int().nullable().optional(),\n}).passthrough().describe(\"An image object from Spotify API.\");\nconst SpotifyGetEpisode_SimplifiedShowObjectSchema = z.object({\n id: z.string().nullable().optional(),\n uri: z.string().nullable().optional(),\n href: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.string().nullable().optional(),\n images: z.array(SpotifyGetEpisode_ImageObjectSchema).nullable().optional(),\n explicit: z.boolean().nullable().optional(),\n publisher: z.string().nullable().optional(),\n media_type: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n external_urls: z.
|
|
1
|
+
{"version":3,"file":"get-episode.mjs","names":[],"sources":["../../src/actions/get-episode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetEpisodeInput = z.object({\n id: z.string().describe(\"The Spotify ID for the episode (22-character alphanumeric string). Example: '512ojhOuo1ktJprKbVcKyQ'\"),\n market: z.string().describe(\"An ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'ES'). If provided, only content available in that market will be returned. If a valid user access token is specified in the request header, the user's country takes priority.\").optional(),\n}).describe(\"Request schema for `GetEpisode`\");\nconst SpotifyGetEpisode_ImageObjectSchema = z.object({\n url: z.string().nullable().optional(),\n width: z.number().int().nullable().optional(),\n height: z.number().int().nullable().optional(),\n}).passthrough().describe(\"An image object from Spotify API.\");\nconst SpotifyGetEpisode_SimplifiedShowObjectSchema = z.object({\n id: z.string().nullable().optional(),\n uri: z.string().nullable().optional(),\n href: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.string().nullable().optional(),\n images: z.array(SpotifyGetEpisode_ImageObjectSchema).nullable().optional(),\n explicit: z.boolean().nullable().optional(),\n publisher: z.string().nullable().optional(),\n media_type: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n external_urls: z.record(z.string(), z.unknown()).nullable().optional(),\n total_episodes: z.number().int().nullable().optional(),\n html_description: z.string().nullable().optional(),\n}).passthrough().describe(\"A simplified show object.\");\nconst SpotifyGetEpisode_RestrictionObjectSchema = z.object({\n reason: z.string().nullable().optional(),\n}).passthrough().describe(\"Restriction information.\");\nconst SpotifyGetEpisode_ResumePointObjectSchema = z.object({\n fully_played: z.boolean().nullable().optional(),\n resume_position_ms: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Resume point information for an episode.\");\nexport const SpotifyGetEpisodeOutput = z.object({\n id: z.string().describe(\"The Spotify ID for the episode\").nullable().optional(),\n uri: z.string().describe(\"The Spotify URI for the episode\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the episode\").nullable().optional(),\n name: z.string().describe(\"The name/title of the episode\").nullable().optional(),\n show: SpotifyGetEpisode_SimplifiedShowObjectSchema.nullable().optional(),\n type: z.string().describe(\"The object type: 'episode'\").nullable().optional(),\n images: z.array(SpotifyGetEpisode_ImageObjectSchema).describe(\"The cover art for the episode in various sizes\").nullable().optional(),\n explicit: z.boolean().describe(\"Whether the episode contains explicit content (true = yes, false = no or unknown)\").nullable().optional(),\n languages: z.array(z.string()).describe(\"A list of the languages used in the episode, identified by ISO 639-1 codes\").nullable().optional(),\n description: z.string().describe(\"A description of the episode (HTML tags stripped)\").nullable().optional(),\n duration_ms: z.number().int().describe(\"The episode length in milliseconds\").nullable().optional(),\n is_playable: z.boolean().describe(\"True if the episode is playable in the given market. Otherwise false.\").nullable().optional(),\n release_date: z.string().describe(\"The date the episode was first released (YYYY-MM-DD format)\").nullable().optional(),\n restrictions: SpotifyGetEpisode_RestrictionObjectSchema.nullable().optional(),\n resume_point: SpotifyGetEpisode_ResumePointObjectSchema.nullable().optional(),\n external_urls: z.record(z.string(), z.unknown()).describe(\"External URLs for this episode\").nullable().optional(),\n html_description: z.string().describe(\"A description of the episode with HTML tags\").nullable().optional(),\n audio_preview_url: z.string().describe(\"A URL to a 30 second preview (MP3 format) of the episode. None if not available.\").nullable().optional(),\n is_externally_hosted: z.boolean().describe(\"True if the episode is hosted outside of Spotify's CDN\").nullable().optional(),\n release_date_precision: z.string().describe(\"The precision level of release_date: 'year', 'month', or 'day'\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `GetEpisode`\");\n\nexport const spotifyGetEpisode = action(\"SPOTIFY_GET_EPISODE\", {\n slug: \"spotify-get-episode\",\n name: \"Get episode\",\n description: \"Get Spotify catalog information for a single podcast episode identified by its unique Spotify ID. This endpoint retrieves detailed information about a podcast episode including its name, description, duration, release date, cover art, show information, and playback status. It can also return the user's resume point if the user-read-playback-position scope is authorized. Episodes are podcast content on Spotify. Use this endpoint to get metadata and playback information for a specific episode when you have its Spotify ID.\",\n input: SpotifyGetEpisodeInput,\n output: SpotifyGetEpisodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CAC9H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uOAAuO,CAAC,CAAC,SAAS;AAChR,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,sCAAsC,EAAE,OAAO;CACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;A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AAC,SAAS,CAAC,CAAC,SAAS;EAC/H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC5E,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC5E,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
|
|
@@ -10,12 +10,12 @@ const SpotifyGetFollowedArtists_ArtistImageObjectSchema = zod.z.object({
|
|
|
10
10
|
url: zod.z.string().describe("The source URL of the image.").nullable(),
|
|
11
11
|
width: zod.z.number().int().describe("The image width in pixels.").nullable().optional(),
|
|
12
12
|
height: zod.z.number().int().describe("The image height in pixels.").nullable().optional()
|
|
13
|
-
}).describe("Image object for artist.");
|
|
13
|
+
}).passthrough().describe("Image object for artist.");
|
|
14
14
|
const SpotifyGetFollowedArtists_FollowersObjectSchema = zod.z.object({
|
|
15
15
|
href: zod.z.string().describe("This will always be null as the Web API does not support it.").nullable().optional(),
|
|
16
16
|
total: zod.z.number().int().default(0).describe("The total number of followers.").nullable().optional()
|
|
17
|
-
}).describe("Followers info object.");
|
|
18
|
-
const SpotifyGetFollowedArtists_ExternalUrlsObjectSchema = zod.z.object({ spotify: zod.z.string().describe("The Spotify URL for the object.").nullable().optional() }).describe("External URLs for the artist.");
|
|
17
|
+
}).passthrough().describe("Followers info object.");
|
|
18
|
+
const SpotifyGetFollowedArtists_ExternalUrlsObjectSchema = zod.z.object({ spotify: zod.z.string().describe("The Spotify URL for the object.").nullable().optional() }).passthrough().describe("External URLs for the artist.");
|
|
19
19
|
const SpotifyGetFollowedArtists_ArtistObjectSchema = zod.z.object({
|
|
20
20
|
id: zod.z.string().describe("The Spotify ID for the artist.").nullable(),
|
|
21
21
|
uri: zod.z.string().describe("The Spotify URI for the artist.").nullable().optional(),
|
|
@@ -27,11 +27,11 @@ const SpotifyGetFollowedArtists_ArtistObjectSchema = zod.z.object({
|
|
|
27
27
|
followers: SpotifyGetFollowedArtists_FollowersObjectSchema.nullable().optional(),
|
|
28
28
|
popularity: zod.z.number().int().default(0).describe("The popularity of the artist (0-100).").nullable().optional(),
|
|
29
29
|
external_urls: SpotifyGetFollowedArtists_ExternalUrlsObjectSchema.nullable().optional()
|
|
30
|
-
}).describe("Artist object in the response.");
|
|
30
|
+
}).passthrough().describe("Artist object in the response.");
|
|
31
31
|
const SpotifyGetFollowedArtists_CursorObjectSchema = zod.z.object({
|
|
32
32
|
after: zod.z.string().describe("The cursor to use as key to find the next page of items.").nullable().optional(),
|
|
33
33
|
before: zod.z.string().describe("The cursor to use as key to find the previous page of items.").nullable().optional()
|
|
34
|
-
}).describe("Cursor object for pagination.");
|
|
34
|
+
}).passthrough().describe("Cursor object for pagination.");
|
|
35
35
|
const SpotifyGetFollowedArtists_ArtistsObjectSchema = zod.z.object({
|
|
36
36
|
href: zod.z.string().describe("A link to the Web API endpoint returning the full result.").nullable().optional(),
|
|
37
37
|
next: zod.z.string().describe("URL to the next page of items (null if none).").nullable().optional(),
|
|
@@ -39,9 +39,9 @@ const SpotifyGetFollowedArtists_ArtistsObjectSchema = zod.z.object({
|
|
|
39
39
|
limit: zod.z.number().int().default(20).describe("The maximum number of items in the response.").nullable().optional(),
|
|
40
40
|
total: zod.z.number().int().default(0).describe("The total number of items available.").nullable().optional(),
|
|
41
41
|
cursors: SpotifyGetFollowedArtists_CursorObjectSchema.nullable().optional()
|
|
42
|
-
}).describe("Artists object containing the list of followed artists.");
|
|
43
|
-
const SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema = zod.z.object({ artists: SpotifyGetFollowedArtists_ArtistsObjectSchema.nullable() }).describe("Response data wrapper containing artists.");
|
|
44
|
-
const SpotifyGetFollowedArtistsOutput = zod.z.object({ data: SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema.nullable() }).describe("Response schema for `GetFollowedArtists`");
|
|
42
|
+
}).passthrough().describe("Artists object containing the list of followed artists.");
|
|
43
|
+
const SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema = zod.z.object({ artists: SpotifyGetFollowedArtists_ArtistsObjectSchema.nullable() }).passthrough().describe("Response data wrapper containing artists.");
|
|
44
|
+
const SpotifyGetFollowedArtistsOutput = zod.z.object({ data: SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema.nullable() }).passthrough().describe("Response schema for `GetFollowedArtists`");
|
|
45
45
|
const spotifyGetFollowedArtists = require_action.action("SPOTIFY_GET_FOLLOWED_ARTISTS", {
|
|
46
46
|
slug: "spotify-get-followed-artists",
|
|
47
47
|
name: "Get followed artists",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-followed-artists.cjs","names":["z","action"],"sources":["../../src/actions/get-followed-artists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetFollowedArtistsInput = z.object({\n type: z.enum([\"artist\"]).describe(\"The ID type for the follow operation. Currently only 'artist' is supported by the Spotify API.\"),\n after: z.string().describe(\"The cursor for pagination. Provide the last artist ID from the previous response to retrieve the next page of results.\").optional(),\n limit: z.number().int().default(20).describe(\"Maximum number of items to return per request. Range: 0-50. Default: 20.\").optional(),\n}).describe(\"Request schema for `GetFollowedArtists`\");\nconst SpotifyGetFollowedArtists_ArtistImageObjectSchema = z.object({\n url: z.string().describe(\"The source URL of the image.\").nullable(),\n width: z.number().int().describe(\"The image width in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"The image height in pixels.\").nullable().optional(),\n}).describe(\"Image object for artist.\");\nconst SpotifyGetFollowedArtists_FollowersObjectSchema = z.object({\n href: z.string().describe(\"This will always be null as the Web API does not support it.\").nullable().optional(),\n total: z.number().int().default(0).describe(\"The total number of followers.\").nullable().optional(),\n}).describe(\"Followers info object.\");\nconst SpotifyGetFollowedArtists_ExternalUrlsObjectSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object.\").nullable().optional(),\n}).describe(\"External URLs for the artist.\");\nconst SpotifyGetFollowedArtists_ArtistObjectSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the artist.\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the artist.\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the artist.\").nullable().optional(),\n name: z.string().describe(\"The name of the artist.\").nullable(),\n type: z.string().default(\"artist\").describe(\"The object type: 'artist'.\").nullable().optional(),\n genres: z.array(z.string()).describe(\"A list of genres the artist is associated with.\").nullable().optional(),\n images: z.array(SpotifyGetFollowedArtists_ArtistImageObjectSchema).describe(\"Images of the artist in various sizes.\").nullable().optional(),\n followers: SpotifyGetFollowedArtists_FollowersObjectSchema.nullable().optional(),\n popularity: z.number().int().default(0).describe(\"The popularity of the artist (0-100).\").nullable().optional(),\n external_urls: SpotifyGetFollowedArtists_ExternalUrlsObjectSchema.nullable().optional(),\n}).describe(\"Artist object in the response.\");\nconst SpotifyGetFollowedArtists_CursorObjectSchema = z.object({\n after: z.string().describe(\"The cursor to use as key to find the next page of items.\").nullable().optional(),\n before: z.string().describe(\"The cursor to use as key to find the previous page of items.\").nullable().optional(),\n}).describe(\"Cursor object for pagination.\");\nconst SpotifyGetFollowedArtists_ArtistsObjectSchema = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result.\").nullable().optional(),\n next: z.string().describe(\"URL to the next page of items (null if none).\").nullable().optional(),\n items: z.array(SpotifyGetFollowedArtists_ArtistObjectSchema).describe(\"The list of followed artists.\").nullable().optional(),\n limit: z.number().int().default(20).describe(\"The maximum number of items in the response.\").nullable().optional(),\n total: z.number().int().default(0).describe(\"The total number of items available.\").nullable().optional(),\n cursors: SpotifyGetFollowedArtists_CursorObjectSchema.nullable().optional(),\n}).describe(\"Artists object containing the list of followed artists.\");\nconst SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema = z.object({\n artists: SpotifyGetFollowedArtists_ArtistsObjectSchema.nullable(),\n}).describe(\"Response data wrapper containing artists.\");\nexport const SpotifyGetFollowedArtistsOutput = z.object({\n data: SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema.nullable(),\n}).describe(\"Response schema for `GetFollowedArtists`\");\n\nexport const spotifyGetFollowedArtists = action(\"SPOTIFY_GET_FOLLOWED_ARTISTS\", {\n slug: \"spotify-get-followed-artists\",\n name: \"Get followed artists\",\n description: \"Get all artists followed by the current user. Returns a cursor-paginated list of artist objects with full details including name, genres, popularity, images, and follower counts. Use the 'after' parameter to navigate through pages of results. Requires the 'user-follow-read' authorization scope.\",\n input: SpotifyGetFollowedArtistsInput,\n output: SpotifyGetFollowedArtistsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC9J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,0BAA0B;
|
|
1
|
+
{"version":3,"file":"get-followed-artists.cjs","names":["z","action"],"sources":["../../src/actions/get-followed-artists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetFollowedArtistsInput = z.object({\n type: z.enum([\"artist\"]).describe(\"The ID type for the follow operation. Currently only 'artist' is supported by the Spotify API.\"),\n after: z.string().describe(\"The cursor for pagination. Provide the last artist ID from the previous response to retrieve the next page of results.\").optional(),\n limit: z.number().int().default(20).describe(\"Maximum number of items to return per request. Range: 0-50. Default: 20.\").optional(),\n}).describe(\"Request schema for `GetFollowedArtists`\");\nconst SpotifyGetFollowedArtists_ArtistImageObjectSchema = z.object({\n url: z.string().describe(\"The source URL of the image.\").nullable(),\n width: z.number().int().describe(\"The image width in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"The image height in pixels.\").nullable().optional(),\n}).passthrough().describe(\"Image object for artist.\");\nconst SpotifyGetFollowedArtists_FollowersObjectSchema = z.object({\n href: z.string().describe(\"This will always be null as the Web API does not support it.\").nullable().optional(),\n total: z.number().int().default(0).describe(\"The total number of followers.\").nullable().optional(),\n}).passthrough().describe(\"Followers info object.\");\nconst SpotifyGetFollowedArtists_ExternalUrlsObjectSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object.\").nullable().optional(),\n}).passthrough().describe(\"External URLs for the artist.\");\nconst SpotifyGetFollowedArtists_ArtistObjectSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the artist.\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the artist.\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the artist.\").nullable().optional(),\n name: z.string().describe(\"The name of the artist.\").nullable(),\n type: z.string().default(\"artist\").describe(\"The object type: 'artist'.\").nullable().optional(),\n genres: z.array(z.string()).describe(\"A list of genres the artist is associated with.\").nullable().optional(),\n images: z.array(SpotifyGetFollowedArtists_ArtistImageObjectSchema).describe(\"Images of the artist in various sizes.\").nullable().optional(),\n followers: SpotifyGetFollowedArtists_FollowersObjectSchema.nullable().optional(),\n popularity: z.number().int().default(0).describe(\"The popularity of the artist (0-100).\").nullable().optional(),\n external_urls: SpotifyGetFollowedArtists_ExternalUrlsObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Artist object in the response.\");\nconst SpotifyGetFollowedArtists_CursorObjectSchema = z.object({\n after: z.string().describe(\"The cursor to use as key to find the next page of items.\").nullable().optional(),\n before: z.string().describe(\"The cursor to use as key to find the previous page of items.\").nullable().optional(),\n}).passthrough().describe(\"Cursor object for pagination.\");\nconst SpotifyGetFollowedArtists_ArtistsObjectSchema = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result.\").nullable().optional(),\n next: z.string().describe(\"URL to the next page of items (null if none).\").nullable().optional(),\n items: z.array(SpotifyGetFollowedArtists_ArtistObjectSchema).describe(\"The list of followed artists.\").nullable().optional(),\n limit: z.number().int().default(20).describe(\"The maximum number of items in the response.\").nullable().optional(),\n total: z.number().int().default(0).describe(\"The total number of items available.\").nullable().optional(),\n cursors: SpotifyGetFollowedArtists_CursorObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Artists object containing the list of followed artists.\");\nconst SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema = z.object({\n artists: SpotifyGetFollowedArtists_ArtistsObjectSchema.nullable(),\n}).passthrough().describe(\"Response data wrapper containing artists.\");\nexport const SpotifyGetFollowedArtistsOutput = z.object({\n data: SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for `GetFollowedArtists`\");\n\nexport const spotifyGetFollowedArtists = action(\"SPOTIFY_GET_FOLLOWED_ARTISTS\", {\n slug: \"spotify-get-followed-artists\",\n name: \"Get followed artists\",\n description: \"Get all artists followed by the current user. Returns a cursor-paginated list of artist objects with full details including name, genres, popularity, images, and follower counts. Use the 'after' parameter to navigate through pages of results. Requires the 'user-follow-read' authorization scope.\",\n input: SpotifyGetFollowedArtistsInput,\n output: SpotifyGetFollowedArtistsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC9J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;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E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,iEAAiEA,IAAAA,EAAE,OAAO,EAC9E,SAAS,8CAA8C,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAM,+DAA+D,SAAS,EAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -24,25 +24,25 @@ declare const SpotifyGetFollowedArtistsOutput: z.ZodObject<{
|
|
|
24
24
|
url: z.ZodNullable<z.ZodString>;
|
|
25
25
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>>;
|
|
28
28
|
followers: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
29
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
total: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
popularity: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
33
33
|
external_urls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
34
|
spotify: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
36
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
}, z.core.$loose>>>>;
|
|
37
37
|
limit: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
38
38
|
total: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
39
39
|
cursors: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const spotifyGetFollowedArtists: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
type: "artist";
|
|
48
48
|
after?: string | undefined;
|
|
@@ -24,25 +24,25 @@ declare const SpotifyGetFollowedArtistsOutput: z.ZodObject<{
|
|
|
24
24
|
url: z.ZodNullable<z.ZodString>;
|
|
25
25
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>>;
|
|
28
28
|
followers: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
29
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
total: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
popularity: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
33
33
|
external_urls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
34
|
spotify: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
36
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
}, z.core.$loose>>>>;
|
|
37
37
|
limit: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
38
38
|
total: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
39
39
|
cursors: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const spotifyGetFollowedArtists: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
type: "artist";
|
|
48
48
|
after?: string | undefined;
|
|
@@ -10,12 +10,12 @@ const SpotifyGetFollowedArtists_ArtistImageObjectSchema = z.object({
|
|
|
10
10
|
url: z.string().describe("The source URL of the image.").nullable(),
|
|
11
11
|
width: z.number().int().describe("The image width in pixels.").nullable().optional(),
|
|
12
12
|
height: z.number().int().describe("The image height in pixels.").nullable().optional()
|
|
13
|
-
}).describe("Image object for artist.");
|
|
13
|
+
}).passthrough().describe("Image object for artist.");
|
|
14
14
|
const SpotifyGetFollowedArtists_FollowersObjectSchema = z.object({
|
|
15
15
|
href: z.string().describe("This will always be null as the Web API does not support it.").nullable().optional(),
|
|
16
16
|
total: z.number().int().default(0).describe("The total number of followers.").nullable().optional()
|
|
17
|
-
}).describe("Followers info object.");
|
|
18
|
-
const SpotifyGetFollowedArtists_ExternalUrlsObjectSchema = z.object({ spotify: z.string().describe("The Spotify URL for the object.").nullable().optional() }).describe("External URLs for the artist.");
|
|
17
|
+
}).passthrough().describe("Followers info object.");
|
|
18
|
+
const SpotifyGetFollowedArtists_ExternalUrlsObjectSchema = z.object({ spotify: z.string().describe("The Spotify URL for the object.").nullable().optional() }).passthrough().describe("External URLs for the artist.");
|
|
19
19
|
const SpotifyGetFollowedArtists_ArtistObjectSchema = z.object({
|
|
20
20
|
id: z.string().describe("The Spotify ID for the artist.").nullable(),
|
|
21
21
|
uri: z.string().describe("The Spotify URI for the artist.").nullable().optional(),
|
|
@@ -27,11 +27,11 @@ const SpotifyGetFollowedArtists_ArtistObjectSchema = z.object({
|
|
|
27
27
|
followers: SpotifyGetFollowedArtists_FollowersObjectSchema.nullable().optional(),
|
|
28
28
|
popularity: z.number().int().default(0).describe("The popularity of the artist (0-100).").nullable().optional(),
|
|
29
29
|
external_urls: SpotifyGetFollowedArtists_ExternalUrlsObjectSchema.nullable().optional()
|
|
30
|
-
}).describe("Artist object in the response.");
|
|
30
|
+
}).passthrough().describe("Artist object in the response.");
|
|
31
31
|
const SpotifyGetFollowedArtists_CursorObjectSchema = z.object({
|
|
32
32
|
after: z.string().describe("The cursor to use as key to find the next page of items.").nullable().optional(),
|
|
33
33
|
before: z.string().describe("The cursor to use as key to find the previous page of items.").nullable().optional()
|
|
34
|
-
}).describe("Cursor object for pagination.");
|
|
34
|
+
}).passthrough().describe("Cursor object for pagination.");
|
|
35
35
|
const SpotifyGetFollowedArtists_ArtistsObjectSchema = z.object({
|
|
36
36
|
href: z.string().describe("A link to the Web API endpoint returning the full result.").nullable().optional(),
|
|
37
37
|
next: z.string().describe("URL to the next page of items (null if none).").nullable().optional(),
|
|
@@ -39,14 +39,14 @@ const SpotifyGetFollowedArtists_ArtistsObjectSchema = z.object({
|
|
|
39
39
|
limit: z.number().int().default(20).describe("The maximum number of items in the response.").nullable().optional(),
|
|
40
40
|
total: z.number().int().default(0).describe("The total number of items available.").nullable().optional(),
|
|
41
41
|
cursors: SpotifyGetFollowedArtists_CursorObjectSchema.nullable().optional()
|
|
42
|
-
}).describe("Artists object containing the list of followed artists.");
|
|
43
|
-
const SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema = z.object({ artists: SpotifyGetFollowedArtists_ArtistsObjectSchema.nullable() }).describe("Response data wrapper containing artists.");
|
|
42
|
+
}).passthrough().describe("Artists object containing the list of followed artists.");
|
|
43
|
+
const SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema = z.object({ artists: SpotifyGetFollowedArtists_ArtistsObjectSchema.nullable() }).passthrough().describe("Response data wrapper containing artists.");
|
|
44
44
|
const spotifyGetFollowedArtists = action("SPOTIFY_GET_FOLLOWED_ARTISTS", {
|
|
45
45
|
slug: "spotify-get-followed-artists",
|
|
46
46
|
name: "Get followed artists",
|
|
47
47
|
description: "Get all artists followed by the current user. Returns a cursor-paginated list of artist objects with full details including name, genres, popularity, images, and follower counts. Use the 'after' parameter to navigate through pages of results. Requires the 'user-follow-read' authorization scope.",
|
|
48
48
|
input: SpotifyGetFollowedArtistsInput,
|
|
49
|
-
output: z.object({ data: SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema.nullable() }).describe("Response schema for `GetFollowedArtists`")
|
|
49
|
+
output: z.object({ data: SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema.nullable() }).passthrough().describe("Response schema for `GetFollowedArtists`")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { spotifyGetFollowedArtists };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-followed-artists.mjs","names":[],"sources":["../../src/actions/get-followed-artists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetFollowedArtistsInput = z.object({\n type: z.enum([\"artist\"]).describe(\"The ID type for the follow operation. Currently only 'artist' is supported by the Spotify API.\"),\n after: z.string().describe(\"The cursor for pagination. Provide the last artist ID from the previous response to retrieve the next page of results.\").optional(),\n limit: z.number().int().default(20).describe(\"Maximum number of items to return per request. Range: 0-50. Default: 20.\").optional(),\n}).describe(\"Request schema for `GetFollowedArtists`\");\nconst SpotifyGetFollowedArtists_ArtistImageObjectSchema = z.object({\n url: z.string().describe(\"The source URL of the image.\").nullable(),\n width: z.number().int().describe(\"The image width in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"The image height in pixels.\").nullable().optional(),\n}).describe(\"Image object for artist.\");\nconst SpotifyGetFollowedArtists_FollowersObjectSchema = z.object({\n href: z.string().describe(\"This will always be null as the Web API does not support it.\").nullable().optional(),\n total: z.number().int().default(0).describe(\"The total number of followers.\").nullable().optional(),\n}).describe(\"Followers info object.\");\nconst SpotifyGetFollowedArtists_ExternalUrlsObjectSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object.\").nullable().optional(),\n}).describe(\"External URLs for the artist.\");\nconst SpotifyGetFollowedArtists_ArtistObjectSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the artist.\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the artist.\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the artist.\").nullable().optional(),\n name: z.string().describe(\"The name of the artist.\").nullable(),\n type: z.string().default(\"artist\").describe(\"The object type: 'artist'.\").nullable().optional(),\n genres: z.array(z.string()).describe(\"A list of genres the artist is associated with.\").nullable().optional(),\n images: z.array(SpotifyGetFollowedArtists_ArtistImageObjectSchema).describe(\"Images of the artist in various sizes.\").nullable().optional(),\n followers: SpotifyGetFollowedArtists_FollowersObjectSchema.nullable().optional(),\n popularity: z.number().int().default(0).describe(\"The popularity of the artist (0-100).\").nullable().optional(),\n external_urls: SpotifyGetFollowedArtists_ExternalUrlsObjectSchema.nullable().optional(),\n}).describe(\"Artist object in the response.\");\nconst SpotifyGetFollowedArtists_CursorObjectSchema = z.object({\n after: z.string().describe(\"The cursor to use as key to find the next page of items.\").nullable().optional(),\n before: z.string().describe(\"The cursor to use as key to find the previous page of items.\").nullable().optional(),\n}).describe(\"Cursor object for pagination.\");\nconst SpotifyGetFollowedArtists_ArtistsObjectSchema = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result.\").nullable().optional(),\n next: z.string().describe(\"URL to the next page of items (null if none).\").nullable().optional(),\n items: z.array(SpotifyGetFollowedArtists_ArtistObjectSchema).describe(\"The list of followed artists.\").nullable().optional(),\n limit: z.number().int().default(20).describe(\"The maximum number of items in the response.\").nullable().optional(),\n total: z.number().int().default(0).describe(\"The total number of items available.\").nullable().optional(),\n cursors: SpotifyGetFollowedArtists_CursorObjectSchema.nullable().optional(),\n}).describe(\"Artists object containing the list of followed artists.\");\nconst SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema = z.object({\n artists: SpotifyGetFollowedArtists_ArtistsObjectSchema.nullable(),\n}).describe(\"Response data wrapper containing artists.\");\nexport const SpotifyGetFollowedArtistsOutput = z.object({\n data: SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema.nullable(),\n}).describe(\"Response schema for `GetFollowedArtists`\");\n\nexport const spotifyGetFollowedArtists = action(\"SPOTIFY_GET_FOLLOWED_ARTISTS\", {\n slug: \"spotify-get-followed-artists\",\n name: \"Get followed artists\",\n description: \"Get all artists followed by the current user. Returns a cursor-paginated list of artist objects with full details including name, genres, popularity, images, and follower counts. Use the 'after' parameter to navigate through pages of results. Requires the 'user-follow-read' authorization scope.\",\n input: SpotifyGetFollowedArtistsInput,\n output: SpotifyGetFollowedArtistsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG;CAClI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC9J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,oDAAoD,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,0BAA0B;
|
|
1
|
+
{"version":3,"file":"get-followed-artists.mjs","names":[],"sources":["../../src/actions/get-followed-artists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetFollowedArtistsInput = z.object({\n type: z.enum([\"artist\"]).describe(\"The ID type for the follow operation. Currently only 'artist' is supported by the Spotify API.\"),\n after: z.string().describe(\"The cursor for pagination. Provide the last artist ID from the previous response to retrieve the next page of results.\").optional(),\n limit: z.number().int().default(20).describe(\"Maximum number of items to return per request. Range: 0-50. Default: 20.\").optional(),\n}).describe(\"Request schema for `GetFollowedArtists`\");\nconst SpotifyGetFollowedArtists_ArtistImageObjectSchema = z.object({\n url: z.string().describe(\"The source URL of the image.\").nullable(),\n width: z.number().int().describe(\"The image width in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"The image height in pixels.\").nullable().optional(),\n}).passthrough().describe(\"Image object for artist.\");\nconst SpotifyGetFollowedArtists_FollowersObjectSchema = z.object({\n href: z.string().describe(\"This will always be null as the Web API does not support it.\").nullable().optional(),\n total: z.number().int().default(0).describe(\"The total number of followers.\").nullable().optional(),\n}).passthrough().describe(\"Followers info object.\");\nconst SpotifyGetFollowedArtists_ExternalUrlsObjectSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object.\").nullable().optional(),\n}).passthrough().describe(\"External URLs for the artist.\");\nconst SpotifyGetFollowedArtists_ArtistObjectSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the artist.\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the artist.\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the artist.\").nullable().optional(),\n name: z.string().describe(\"The name of the artist.\").nullable(),\n type: z.string().default(\"artist\").describe(\"The object type: 'artist'.\").nullable().optional(),\n genres: z.array(z.string()).describe(\"A list of genres the artist is associated with.\").nullable().optional(),\n images: z.array(SpotifyGetFollowedArtists_ArtistImageObjectSchema).describe(\"Images of the artist in various sizes.\").nullable().optional(),\n followers: SpotifyGetFollowedArtists_FollowersObjectSchema.nullable().optional(),\n popularity: z.number().int().default(0).describe(\"The popularity of the artist (0-100).\").nullable().optional(),\n external_urls: SpotifyGetFollowedArtists_ExternalUrlsObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Artist object in the response.\");\nconst SpotifyGetFollowedArtists_CursorObjectSchema = z.object({\n after: z.string().describe(\"The cursor to use as key to find the next page of items.\").nullable().optional(),\n before: z.string().describe(\"The cursor to use as key to find the previous page of items.\").nullable().optional(),\n}).passthrough().describe(\"Cursor object for pagination.\");\nconst SpotifyGetFollowedArtists_ArtistsObjectSchema = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result.\").nullable().optional(),\n next: z.string().describe(\"URL to the next page of items (null if none).\").nullable().optional(),\n items: z.array(SpotifyGetFollowedArtists_ArtistObjectSchema).describe(\"The list of followed artists.\").nullable().optional(),\n limit: z.number().int().default(20).describe(\"The maximum number of items in the response.\").nullable().optional(),\n total: z.number().int().default(0).describe(\"The total number of items available.\").nullable().optional(),\n cursors: SpotifyGetFollowedArtists_CursorObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Artists object containing the list of followed artists.\");\nconst SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema = z.object({\n artists: SpotifyGetFollowedArtists_ArtistsObjectSchema.nullable(),\n}).passthrough().describe(\"Response data wrapper containing artists.\");\nexport const SpotifyGetFollowedArtistsOutput = z.object({\n data: SpotifyGetFollowedArtists_GetFollowedArtistsResponseDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for `GetFollowedArtists`\");\n\nexport const spotifyGetFollowedArtists = action(\"SPOTIFY_GET_FOLLOWED_ARTISTS\", {\n slug: \"spotify-get-followed-artists\",\n name: \"Get followed artists\",\n description: \"Get all artists followed by the current user. Returns a cursor-paginated list of artist objects with full details including name, genres, popularity, images, and follower counts. Use the 'after' parameter to navigate through pages of results. Requires the 'user-follow-read' authorization scope.\",\n input: SpotifyGetFollowedArtistsInput,\n output: SpotifyGetFollowedArtistsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG;CAClI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CAC9J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,oDAAoD,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,C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