@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":"save-episodes-for-current-user.cjs","names":["z","action"],"sources":["../../src/actions/save-episodes-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveEpisodesForCurrentUserInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Spotify episode IDs to save to the current user's library. Maximum of 50 IDs can be specified in one request. Episode IDs are 22-character base62 strings (e.g., ['77o6BIVlYM3msb4MMIL1jH', '0Q86acNRm6V9GYx55SXKwf']). You can obtain episode IDs from the search endpoint, show episodes endpoint, or get several episodes endpoint.\"),\n}).describe(\"Request schema for `SaveEpisodesForCurrentUser`\");\nexport const SpotifySaveEpisodesForCurrentUserOutput = z.object({\n message: z.string().default(\"Episodes saved successfully\").describe(\"Status message describing the result of the operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the episodes were successfully saved to the user's library\").nullable().optional(),\n}).describe(\"Response schema for `SaveEpisodesForCurrentUser`\");\n\nexport const spotifySaveEpisodesForCurrentUser = action(\"SPOTIFY_SAVE_EPISODES_FOR_CURRENT_USER\", {\n slug: \"spotify-save-episodes-for-current-user\",\n name: \"Save episodes for current user\",\n description: \"Save one or more podcast episodes to the current user's library. This endpoint saves episodes to the user's \\\"Your Episodes\\\" library, making them easily accessible for later playback. The operation is idempotent - saving an episode that is already saved will return success. Up to 50 episode IDs can be saved in a single request. Required scope: user-library-modify Note: This API endpoint is in beta and may change without notice.\",\n input: SpotifySaveEpisodesForCurrentUserInput,\n output: SpotifySaveEpisodesForCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kVAAkV,EACtX,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,6BAA6B,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,SAAS,kDAAkD;
|
|
1
|
+
{"version":3,"file":"save-episodes-for-current-user.cjs","names":["z","action"],"sources":["../../src/actions/save-episodes-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveEpisodesForCurrentUserInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Spotify episode IDs to save to the current user's library. Maximum of 50 IDs can be specified in one request. Episode IDs are 22-character base62 strings (e.g., ['77o6BIVlYM3msb4MMIL1jH', '0Q86acNRm6V9GYx55SXKwf']). You can obtain episode IDs from the search endpoint, show episodes endpoint, or get several episodes endpoint.\"),\n}).describe(\"Request schema for `SaveEpisodesForCurrentUser`\");\nexport const SpotifySaveEpisodesForCurrentUserOutput = z.object({\n message: z.string().default(\"Episodes saved successfully\").describe(\"Status message describing the result of the operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the episodes were successfully saved to the user's library\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `SaveEpisodesForCurrentUser`\");\n\nexport const spotifySaveEpisodesForCurrentUser = action(\"SPOTIFY_SAVE_EPISODES_FOR_CURRENT_USER\", {\n slug: \"spotify-save-episodes-for-current-user\",\n name: \"Save episodes for current user\",\n description: \"Save one or more podcast episodes to the current user's library. This endpoint saves episodes to the user's \\\"Your Episodes\\\" library, making them easily accessible for later playback. The operation is idempotent - saving an episode that is already saved will return success. Up to 50 episode IDs can be saved in a single request. Required scope: user-library-modify Note: This API endpoint is in beta and may change without notice.\",\n input: SpotifySaveEpisodesForCurrentUserInput,\n output: SpotifySaveEpisodesForCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kVAAkV,EACtX,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,6BAA6B,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const SpotifySaveEpisodesForCurrentUserInput: z.ZodObject<{
|
|
|
7
7
|
declare const SpotifySaveEpisodesForCurrentUserOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
9
9
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const spotifySaveEpisodesForCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
ids: string[];
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ declare const SpotifySaveEpisodesForCurrentUserInput: z.ZodObject<{
|
|
|
7
7
|
declare const SpotifySaveEpisodesForCurrentUserOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
9
9
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const spotifySaveEpisodesForCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
ids: string[];
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ const spotifySaveEpisodesForCurrentUser = action("SPOTIFY_SAVE_EPISODES_FOR_CURR
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
message: z.string().default("Episodes saved successfully").describe("Status message describing the result of the operation").nullable().optional(),
|
|
10
10
|
success: z.boolean().default(true).describe("Indicates whether the episodes were successfully saved to the user's library").nullable().optional()
|
|
11
|
-
}).describe("Response schema for `SaveEpisodesForCurrentUser`")
|
|
11
|
+
}).passthrough().describe("Response schema for `SaveEpisodesForCurrentUser`")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { spotifySaveEpisodesForCurrentUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-episodes-for-current-user.mjs","names":[],"sources":["../../src/actions/save-episodes-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveEpisodesForCurrentUserInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Spotify episode IDs to save to the current user's library. Maximum of 50 IDs can be specified in one request. Episode IDs are 22-character base62 strings (e.g., ['77o6BIVlYM3msb4MMIL1jH', '0Q86acNRm6V9GYx55SXKwf']). You can obtain episode IDs from the search endpoint, show episodes endpoint, or get several episodes endpoint.\"),\n}).describe(\"Request schema for `SaveEpisodesForCurrentUser`\");\nexport const SpotifySaveEpisodesForCurrentUserOutput = z.object({\n message: z.string().default(\"Episodes saved successfully\").describe(\"Status message describing the result of the operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the episodes were successfully saved to the user's library\").nullable().optional(),\n}).describe(\"Response schema for `SaveEpisodesForCurrentUser`\");\n\nexport const spotifySaveEpisodesForCurrentUser = action(\"SPOTIFY_SAVE_EPISODES_FOR_CURRENT_USER\", {\n slug: \"spotify-save-episodes-for-current-user\",\n name: \"Save episodes for current user\",\n description: \"Save one or more podcast episodes to the current user's library. This endpoint saves episodes to the user's \\\"Your Episodes\\\" library, making them easily accessible for later playback. The operation is idempotent - saving an episode that is already saved will return success. Up to 50 episode IDs can be saved in a single request. Required scope: user-library-modify Note: This API endpoint is in beta and may change without notice.\",\n input: SpotifySaveEpisodesForCurrentUserInput,\n output: SpotifySaveEpisodesForCurrentUserOutput,\n});\n"],"mappings":";;AAYA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,EAC7D,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kVAAkV,EACtX,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,6BAA6B,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"save-episodes-for-current-user.mjs","names":[],"sources":["../../src/actions/save-episodes-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveEpisodesForCurrentUserInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Spotify episode IDs to save to the current user's library. Maximum of 50 IDs can be specified in one request. Episode IDs are 22-character base62 strings (e.g., ['77o6BIVlYM3msb4MMIL1jH', '0Q86acNRm6V9GYx55SXKwf']). You can obtain episode IDs from the search endpoint, show episodes endpoint, or get several episodes endpoint.\"),\n}).describe(\"Request schema for `SaveEpisodesForCurrentUser`\");\nexport const SpotifySaveEpisodesForCurrentUserOutput = z.object({\n message: z.string().default(\"Episodes saved successfully\").describe(\"Status message describing the result of the operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the episodes were successfully saved to the user's library\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `SaveEpisodesForCurrentUser`\");\n\nexport const spotifySaveEpisodesForCurrentUser = action(\"SPOTIFY_SAVE_EPISODES_FOR_CURRENT_USER\", {\n slug: \"spotify-save-episodes-for-current-user\",\n name: \"Save episodes for current user\",\n description: \"Save one or more podcast episodes to the current user's library. This endpoint saves episodes to the user's \\\"Your Episodes\\\" library, making them easily accessible for later playback. The operation is idempotent - saving an episode that is already saved will return success. Up to 50 episode IDs can be saved in a single request. Required scope: user-library-modify Note: This API endpoint is in beta and may change without notice.\",\n input: SpotifySaveEpisodesForCurrentUserInput,\n output: SpotifySaveEpisodesForCurrentUserOutput,\n});\n"],"mappings":";;AAYA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,EAC7D,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kVAAkV,EACtX,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,6BAA6B,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/save-shows-for-current-user.ts
|
|
4
4
|
const SpotifySaveShowsForCurrentUserInput = zod.z.object({ ids: zod.z.string().describe("A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'") }).describe("Request schema for `SaveShowsForCurrentUser`");
|
|
5
|
-
const SpotifySaveShowsForCurrentUserOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates whether the shows were successfully saved to the user's library").nullable().optional() }).describe("Response schema for `SaveShowsForCurrentUser`\n\nReturns an empty response with HTTP 200 status code on success.");
|
|
5
|
+
const SpotifySaveShowsForCurrentUserOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates whether the shows were successfully saved to the user's library").nullable().optional() }).passthrough().describe("Response schema for `SaveShowsForCurrentUser`\n\nReturns an empty response with HTTP 200 status code on success.");
|
|
6
6
|
const spotifySaveShowsForCurrentUser = require_action.action("SPOTIFY_SAVE_SHOWS_FOR_CURRENT_USER", {
|
|
7
7
|
slug: "spotify-save-shows-for-current-user",
|
|
8
8
|
name: "Save shows for current user",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-shows-for-current-user.cjs","names":["z","action"],"sources":["../../src/actions/save-shows-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveShowsForCurrentUserInput = z.object({\n ids: z.string().describe(\"A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'\"),\n}).describe(\"Request schema for `SaveShowsForCurrentUser`\");\nexport const SpotifySaveShowsForCurrentUserOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the shows were successfully saved to the user's library\").nullable().optional(),\n}).describe(\"Response schema for `SaveShowsForCurrentUser`\\n\\nReturns an empty response with HTTP 200 status code on success.\");\n\nexport const spotifySaveShowsForCurrentUser = action(\"SPOTIFY_SAVE_SHOWS_FOR_CURRENT_USER\", {\n slug: \"spotify-save-shows-for-current-user\",\n name: \"Save shows for current user\",\n description: \"Save one or more shows to current Spotify user's library. Requires the user-library-modify scope. Maximum of 50 show IDs per request.\",\n input: SpotifySaveShowsForCurrentUserInput,\n output: SpotifySaveShowsForCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EAC/J,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/I,CAAC,CAAC,CAAC,SAAS,kHAAkH;
|
|
1
|
+
{"version":3,"file":"save-shows-for-current-user.cjs","names":["z","action"],"sources":["../../src/actions/save-shows-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveShowsForCurrentUserInput = z.object({\n ids: z.string().describe(\"A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'\"),\n}).describe(\"Request schema for `SaveShowsForCurrentUser`\");\nexport const SpotifySaveShowsForCurrentUserOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the shows were successfully saved to the user's library\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `SaveShowsForCurrentUser`\\n\\nReturns an empty response with HTTP 200 status code on success.\");\n\nexport const spotifySaveShowsForCurrentUser = action(\"SPOTIFY_SAVE_SHOWS_FOR_CURRENT_USER\", {\n slug: \"spotify-save-shows-for-current-user\",\n name: \"Save shows for current user\",\n description: \"Save one or more shows to current Spotify user's library. Requires the user-library-modify scope. Maximum of 50 show IDs per request.\",\n input: SpotifySaveShowsForCurrentUserInput,\n output: SpotifySaveShowsForCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EAC/J,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kHAAkH;AAE5I,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const SpotifySaveShowsForCurrentUserInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const SpotifySaveShowsForCurrentUserOutput: z.ZodObject<{
|
|
8
8
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const spotifySaveShowsForCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
ids: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const SpotifySaveShowsForCurrentUserInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const SpotifySaveShowsForCurrentUserOutput: z.ZodObject<{
|
|
8
8
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const spotifySaveShowsForCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
ids: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const spotifySaveShowsForCurrentUser = action("SPOTIFY_SAVE_SHOWS_FOR_CURRENT_US
|
|
|
5
5
|
name: "Save shows for current user",
|
|
6
6
|
description: "Save one or more shows to current Spotify user's library. Requires the user-library-modify scope. Maximum of 50 show IDs per request.",
|
|
7
7
|
input: z.object({ ids: z.string().describe("A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'") }).describe("Request schema for `SaveShowsForCurrentUser`"),
|
|
8
|
-
output: z.object({ success: z.boolean().default(true).describe("Indicates whether the shows were successfully saved to the user's library").nullable().optional() }).describe("Response schema for `SaveShowsForCurrentUser`\n\nReturns an empty response with HTTP 200 status code on success.")
|
|
8
|
+
output: z.object({ success: z.boolean().default(true).describe("Indicates whether the shows were successfully saved to the user's library").nullable().optional() }).passthrough().describe("Response schema for `SaveShowsForCurrentUser`\n\nReturns an empty response with HTTP 200 status code on success.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { spotifySaveShowsForCurrentUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-shows-for-current-user.mjs","names":[],"sources":["../../src/actions/save-shows-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveShowsForCurrentUserInput = z.object({\n ids: z.string().describe(\"A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'\"),\n}).describe(\"Request schema for `SaveShowsForCurrentUser`\");\nexport const SpotifySaveShowsForCurrentUserOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the shows were successfully saved to the user's library\").nullable().optional(),\n}).describe(\"Response schema for `SaveShowsForCurrentUser`\\n\\nReturns an empty response with HTTP 200 status code on success.\");\n\nexport const spotifySaveShowsForCurrentUser = action(\"SPOTIFY_SAVE_SHOWS_FOR_CURRENT_USER\", {\n slug: \"spotify-save-shows-for-current-user\",\n name: \"Save shows for current user\",\n description: \"Save one or more shows to current Spotify user's library. Requires the user-library-modify scope. Maximum of 50 show IDs per request.\",\n input: SpotifySaveShowsForCurrentUserInput,\n output: SpotifySaveShowsForCurrentUserOutput,\n});\n"],"mappings":";;AAWA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXiD,EAAE,OAAO,EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EAC/J,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATkD,EAAE,OAAO,EAC3D,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/I,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"save-shows-for-current-user.mjs","names":[],"sources":["../../src/actions/save-shows-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveShowsForCurrentUserInput = z.object({\n ids: z.string().describe(\"A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'\"),\n}).describe(\"Request schema for `SaveShowsForCurrentUser`\");\nexport const SpotifySaveShowsForCurrentUserOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the shows were successfully saved to the user's library\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `SaveShowsForCurrentUser`\\n\\nReturns an empty response with HTTP 200 status code on success.\");\n\nexport const spotifySaveShowsForCurrentUser = action(\"SPOTIFY_SAVE_SHOWS_FOR_CURRENT_USER\", {\n slug: \"spotify-save-shows-for-current-user\",\n name: \"Save shows for current user\",\n description: \"Save one or more shows to current Spotify user's library. Requires the user-library-modify scope. Maximum of 50 show IDs per request.\",\n input: SpotifySaveShowsForCurrentUserInput,\n output: SpotifySaveShowsForCurrentUserOutput,\n});\n"],"mappings":";;AAWA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXiD,EAAE,OAAO,EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EAC/J,CAAC,CAAC,CAAC,SAAS,8CASH;CACP,QATkD,EAAE,OAAO,EAC3D,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kHAOhB;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const SpotifySaveTracksForCurrentUserInput = zod.z.object({
|
|
|
11
11
|
const SpotifySaveTracksForCurrentUserOutput = zod.z.object({
|
|
12
12
|
message: zod.z.string().default("Tracks saved successfully").describe("Status message").nullable().optional(),
|
|
13
13
|
success: zod.z.boolean().default(true).describe("Indicates whether the tracks were successfully saved (always true for 200 responses)").nullable().optional()
|
|
14
|
-
}).describe("Response schema for `SaveTracksForCurrentUser`");
|
|
14
|
+
}).passthrough().describe("Response schema for `SaveTracksForCurrentUser`");
|
|
15
15
|
const spotifySaveTracksForCurrentUser = require_action.action("SPOTIFY_SAVE_TRACKS_FOR_CURRENT_USER", {
|
|
16
16
|
slug: "spotify-save-tracks-for-current-user",
|
|
17
17
|
name: "Save tracks for current user",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-tracks-for-current-user.cjs","names":["z","action"],"sources":["../../src/actions/save-tracks-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveTracksForCurrentUserInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Spotify track IDs to save to the user's library. Maximum of 50 items. Example: ['4iV5W9uYEdYUVa79Axb7Rh', '1301WleyT98MSxVHPZCA6M']. Note: If 'timestamped_ids' is provided, this field will be ignored.\").optional(),\n timestamped_ids: z.array(z.object({\n id: z.string().describe(\"The Spotify ID for the track (e.g., '4iV5W9uYEdYUVa79Axb7Rh')\"),\n added_at: z.string().describe(\"The timestamp when the track was added to the library. Use ISO 8601 format with UTC timezone (e.g., '2023-01-15T14:30:00Z')\"),\n}).describe(\"Timestamped ID for saving tracks with specific timestamps.\")).describe(\"A list of objects containing track IDs with their corresponding timestamps. Use this to specify when tracks were added to maintain chronological order. Maximum of 50 items. If provided, 'ids' field will be ignored.\").optional(),\n}).describe(\"Request schema for `SaveTracksForCurrentUser`\");\nexport const SpotifySaveTracksForCurrentUserOutput = z.object({\n message: z.string().default(\"Tracks saved successfully\").describe(\"Status message\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the tracks were successfully saved (always true for 200 responses)\").nullable().optional(),\n}).describe(\"Response schema for `SaveTracksForCurrentUser`\");\n\nexport const spotifySaveTracksForCurrentUser = action(\"SPOTIFY_SAVE_TRACKS_FOR_CURRENT_USER\", {\n slug: \"spotify-save-tracks-for-current-user\",\n name: \"Save tracks for current user\",\n description: \"Save one or more tracks to the current user's 'Your Music' library. This action adds tracks to the user's saved tracks collection. You can provide either: - A simple list of track IDs (up to 50) - A list of timestamped IDs to preserve chronological order Requires the 'user-library-modify' OAuth scope.\",\n input: SpotifySaveTracksForCurrentUserInput,\n output: SpotifySaveTracksForCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAAS;CACjQ,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAClC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;CAC7J,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;AACvT,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;
|
|
1
|
+
{"version":3,"file":"save-tracks-for-current-user.cjs","names":["z","action"],"sources":["../../src/actions/save-tracks-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveTracksForCurrentUserInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Spotify track IDs to save to the user's library. Maximum of 50 items. Example: ['4iV5W9uYEdYUVa79Axb7Rh', '1301WleyT98MSxVHPZCA6M']. Note: If 'timestamped_ids' is provided, this field will be ignored.\").optional(),\n timestamped_ids: z.array(z.object({\n id: z.string().describe(\"The Spotify ID for the track (e.g., '4iV5W9uYEdYUVa79Axb7Rh')\"),\n added_at: z.string().describe(\"The timestamp when the track was added to the library. Use ISO 8601 format with UTC timezone (e.g., '2023-01-15T14:30:00Z')\"),\n}).describe(\"Timestamped ID for saving tracks with specific timestamps.\")).describe(\"A list of objects containing track IDs with their corresponding timestamps. Use this to specify when tracks were added to maintain chronological order. Maximum of 50 items. If provided, 'ids' field will be ignored.\").optional(),\n}).describe(\"Request schema for `SaveTracksForCurrentUser`\");\nexport const SpotifySaveTracksForCurrentUserOutput = z.object({\n message: z.string().default(\"Tracks saved successfully\").describe(\"Status message\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the tracks were successfully saved (always true for 200 responses)\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `SaveTracksForCurrentUser`\");\n\nexport const spotifySaveTracksForCurrentUser = action(\"SPOTIFY_SAVE_TRACKS_FOR_CURRENT_USER\", {\n slug: \"spotify-save-tracks-for-current-user\",\n name: \"Save tracks for current user\",\n description: \"Save one or more tracks to the current user's 'Your Music' library. This action adds tracks to the user's saved tracks collection. You can provide either: - A simple list of track IDs (up to 50) - A list of timestamped IDs to preserve chronological order Requires the 'user-library-modify' OAuth scope.\",\n input: SpotifySaveTracksForCurrentUserInput,\n output: SpotifySaveTracksForCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAAS;CACjQ,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAClC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;CAC7J,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;AACvT,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const SpotifySaveTracksForCurrentUserInput: z.ZodObject<{
|
|
|
11
11
|
declare const SpotifySaveTracksForCurrentUserOutput: z.ZodObject<{
|
|
12
12
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
13
13
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const spotifySaveTracksForCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
ids?: string[] | undefined;
|
|
17
17
|
timestamped_ids?: {
|
|
@@ -11,7 +11,7 @@ declare const SpotifySaveTracksForCurrentUserInput: z.ZodObject<{
|
|
|
11
11
|
declare const SpotifySaveTracksForCurrentUserOutput: z.ZodObject<{
|
|
12
12
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
13
13
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const spotifySaveTracksForCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
ids?: string[] | undefined;
|
|
17
17
|
timestamped_ids?: {
|
|
@@ -14,7 +14,7 @@ const spotifySaveTracksForCurrentUser = action("SPOTIFY_SAVE_TRACKS_FOR_CURRENT_
|
|
|
14
14
|
output: z.object({
|
|
15
15
|
message: z.string().default("Tracks saved successfully").describe("Status message").nullable().optional(),
|
|
16
16
|
success: z.boolean().default(true).describe("Indicates whether the tracks were successfully saved (always true for 200 responses)").nullable().optional()
|
|
17
|
-
}).describe("Response schema for `SaveTracksForCurrentUser`")
|
|
17
|
+
}).passthrough().describe("Response schema for `SaveTracksForCurrentUser`")
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { spotifySaveTracksForCurrentUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-tracks-for-current-user.mjs","names":[],"sources":["../../src/actions/save-tracks-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveTracksForCurrentUserInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Spotify track IDs to save to the user's library. Maximum of 50 items. Example: ['4iV5W9uYEdYUVa79Axb7Rh', '1301WleyT98MSxVHPZCA6M']. Note: If 'timestamped_ids' is provided, this field will be ignored.\").optional(),\n timestamped_ids: z.array(z.object({\n id: z.string().describe(\"The Spotify ID for the track (e.g., '4iV5W9uYEdYUVa79Axb7Rh')\"),\n added_at: z.string().describe(\"The timestamp when the track was added to the library. Use ISO 8601 format with UTC timezone (e.g., '2023-01-15T14:30:00Z')\"),\n}).describe(\"Timestamped ID for saving tracks with specific timestamps.\")).describe(\"A list of objects containing track IDs with their corresponding timestamps. Use this to specify when tracks were added to maintain chronological order. Maximum of 50 items. If provided, 'ids' field will be ignored.\").optional(),\n}).describe(\"Request schema for `SaveTracksForCurrentUser`\");\nexport const SpotifySaveTracksForCurrentUserOutput = z.object({\n message: z.string().default(\"Tracks saved successfully\").describe(\"Status message\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the tracks were successfully saved (always true for 200 responses)\").nullable().optional(),\n}).describe(\"Response schema for `SaveTracksForCurrentUser`\");\n\nexport const spotifySaveTracksForCurrentUser = action(\"SPOTIFY_SAVE_TRACKS_FOR_CURRENT_USER\", {\n slug: \"spotify-save-tracks-for-current-user\",\n name: \"Save tracks for current user\",\n description: \"Save one or more tracks to the current user's 'Your Music' library. This action adds tracks to the user's saved tracks collection. You can provide either: - A simple list of track IDs (up to 50) - A list of timestamped IDs to preserve chronological order Requires the 'user-library-modify' OAuth scope.\",\n input: SpotifySaveTracksForCurrentUserInput,\n output: SpotifySaveTracksForCurrentUserOutput,\n});\n"],"mappings":";;AAgBA,MAAa,kCAAkC,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkD,EAAE,OAAO;EAC3D,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAAS;EACjQ,iBAAiB,EAAE,MAAM,EAAE,OAAO;GAClC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;GACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;EAC7J,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;CACvT,CAAC,CAAC,CAAC,SAAS,+CAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"save-tracks-for-current-user.mjs","names":[],"sources":["../../src/actions/save-tracks-for-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySaveTracksForCurrentUserInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Spotify track IDs to save to the user's library. Maximum of 50 items. Example: ['4iV5W9uYEdYUVa79Axb7Rh', '1301WleyT98MSxVHPZCA6M']. Note: If 'timestamped_ids' is provided, this field will be ignored.\").optional(),\n timestamped_ids: z.array(z.object({\n id: z.string().describe(\"The Spotify ID for the track (e.g., '4iV5W9uYEdYUVa79Axb7Rh')\"),\n added_at: z.string().describe(\"The timestamp when the track was added to the library. Use ISO 8601 format with UTC timezone (e.g., '2023-01-15T14:30:00Z')\"),\n}).describe(\"Timestamped ID for saving tracks with specific timestamps.\")).describe(\"A list of objects containing track IDs with their corresponding timestamps. Use this to specify when tracks were added to maintain chronological order. Maximum of 50 items. If provided, 'ids' field will be ignored.\").optional(),\n}).describe(\"Request schema for `SaveTracksForCurrentUser`\");\nexport const SpotifySaveTracksForCurrentUserOutput = z.object({\n message: z.string().default(\"Tracks saved successfully\").describe(\"Status message\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the tracks were successfully saved (always true for 200 responses)\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `SaveTracksForCurrentUser`\");\n\nexport const spotifySaveTracksForCurrentUser = action(\"SPOTIFY_SAVE_TRACKS_FOR_CURRENT_USER\", {\n slug: \"spotify-save-tracks-for-current-user\",\n name: \"Save tracks for current user\",\n description: \"Save one or more tracks to the current user's 'Your Music' library. This action adds tracks to the user's saved tracks collection. You can provide either: - A simple list of track IDs (up to 50) - A list of timestamped IDs to preserve chronological order Requires the 'user-library-modify' OAuth scope.\",\n input: SpotifySaveTracksForCurrentUserInput,\n output: SpotifySaveTracksForCurrentUserOutput,\n});\n"],"mappings":";;AAgBA,MAAa,kCAAkC,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkD,EAAE,OAAO;EAC3D,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAAS;EACjQ,iBAAiB,EAAE,MAAM,EAAE,OAAO;GAClC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;GACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H;EAC7J,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;CACvT,CAAC,CAAC,CAAC,SAAS,+CAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const SpotifySearchForItemInput: z.ZodObject<{
|
|
5
5
|
q: z.ZodString;
|
|
6
6
|
type: z.ZodArray<z.ZodEnum<{
|
|
7
|
+
track: "track";
|
|
7
8
|
artist: "artist";
|
|
9
|
+
album: "album";
|
|
8
10
|
audiobook: "audiobook";
|
|
9
11
|
show: "show";
|
|
10
|
-
album: "album";
|
|
11
|
-
track: "track";
|
|
12
12
|
episode: "episode";
|
|
13
13
|
playlist: "playlist";
|
|
14
14
|
}>>;
|
|
@@ -86,7 +86,7 @@ declare const SpotifySearchForItemOutput: z.ZodObject<{
|
|
|
86
86
|
}, z.core.$loose>;
|
|
87
87
|
declare const spotifySearchForItem: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
88
88
|
q: string;
|
|
89
|
-
type: ("
|
|
89
|
+
type: ("track" | "artist" | "album" | "audiobook" | "show" | "episode" | "playlist")[];
|
|
90
90
|
limit?: number | undefined;
|
|
91
91
|
market?: string | undefined;
|
|
92
92
|
offset?: number | undefined;
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const SpotifySearchForItemInput: z.ZodObject<{
|
|
5
5
|
q: z.ZodString;
|
|
6
6
|
type: z.ZodArray<z.ZodEnum<{
|
|
7
|
+
track: "track";
|
|
7
8
|
artist: "artist";
|
|
9
|
+
album: "album";
|
|
8
10
|
audiobook: "audiobook";
|
|
9
11
|
show: "show";
|
|
10
|
-
album: "album";
|
|
11
|
-
track: "track";
|
|
12
12
|
episode: "episode";
|
|
13
13
|
playlist: "playlist";
|
|
14
14
|
}>>;
|
|
@@ -86,7 +86,7 @@ declare const SpotifySearchForItemOutput: z.ZodObject<{
|
|
|
86
86
|
}, z.core.$loose>;
|
|
87
87
|
declare const spotifySearchForItem: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
88
88
|
q: string;
|
|
89
|
-
type: ("
|
|
89
|
+
type: ("track" | "artist" | "album" | "audiobook" | "show" | "episode" | "playlist")[];
|
|
90
90
|
limit?: number | undefined;
|
|
91
91
|
market?: string | undefined;
|
|
92
92
|
offset?: number | undefined;
|
|
@@ -5,7 +5,7 @@ const SpotifySetPlaybackVolumeInput = zod.z.object({
|
|
|
5
5
|
device_id: zod.z.string().describe("The ID of the device this command is targeting. If not supplied, the user's currently active device is the target.").optional(),
|
|
6
6
|
volume_percent: zod.z.number().int().describe("Volume percentage to set. Must be a value from 0 to 100 inclusive.")
|
|
7
7
|
}).describe("Request schema for `SetPlaybackVolume`");
|
|
8
|
-
const SpotifySetPlaybackVolumeOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates whether the volume was successfully set. Always true when the API returns 204 No Content.").nullable().optional() }).describe("Response schema for `SetPlaybackVolume`");
|
|
8
|
+
const SpotifySetPlaybackVolumeOutput = zod.z.object({ success: zod.z.boolean().default(true).describe("Indicates whether the volume was successfully set. Always true when the API returns 204 No Content.").nullable().optional() }).passthrough().describe("Response schema for `SetPlaybackVolume`");
|
|
9
9
|
const spotifySetPlaybackVolume = require_action.action("SPOTIFY_SET_PLAYBACK_VOLUME", {
|
|
10
10
|
slug: "spotify-set-playback-volume",
|
|
11
11
|
name: "Set playback volume",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-playback-volume.cjs","names":["z","action"],"sources":["../../src/actions/set-playback-volume.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySetPlaybackVolumeInput = z.object({\n device_id: z.string().describe(\"The ID of the device this command is targeting. If not supplied, the user's currently active device is the target.\").optional(),\n volume_percent: z.number().int().describe(\"Volume percentage to set. Must be a value from 0 to 100 inclusive.\"),\n}).describe(\"Request schema for `SetPlaybackVolume`\");\nexport const SpotifySetPlaybackVolumeOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the volume was successfully set. Always true when the API returns 204 No Content.\").nullable().optional(),\n}).describe(\"Response schema for `SetPlaybackVolume`\");\n\nexport const spotifySetPlaybackVolume = action(\"SPOTIFY_SET_PLAYBACK_VOLUME\", {\n slug: \"spotify-set-playback-volume\",\n name: \"Set playback volume\",\n description: \"Set the volume for the user's current playback device. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.\",\n input: SpotifySetPlaybackVolumeInput,\n output: SpotifySetPlaybackVolumeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC9J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;AAChH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzK,CAAC,CAAC,CAAC,SAAS,yCAAyC;
|
|
1
|
+
{"version":3,"file":"set-playback-volume.cjs","names":["z","action"],"sources":["../../src/actions/set-playback-volume.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySetPlaybackVolumeInput = z.object({\n device_id: z.string().describe(\"The ID of the device this command is targeting. If not supplied, the user's currently active device is the target.\").optional(),\n volume_percent: z.number().int().describe(\"Volume percentage to set. Must be a value from 0 to 100 inclusive.\"),\n}).describe(\"Request schema for `SetPlaybackVolume`\");\nexport const SpotifySetPlaybackVolumeOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the volume was successfully set. Always true when the API returns 204 No Content.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `SetPlaybackVolume`\");\n\nexport const spotifySetPlaybackVolume = action(\"SPOTIFY_SET_PLAYBACK_VOLUME\", {\n slug: \"spotify-set-playback-volume\",\n name: \"Set playback volume\",\n description: \"Set the volume for the user's current playback device. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.\",\n input: SpotifySetPlaybackVolumeInput,\n output: SpotifySetPlaybackVolumeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC9J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;AAChH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const SpotifySetPlaybackVolumeInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const SpotifySetPlaybackVolumeOutput: z.ZodObject<{
|
|
9
9
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const spotifySetPlaybackVolume: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
volume_percent: number;
|
|
13
13
|
device_id?: string | undefined;
|
|
@@ -7,7 +7,7 @@ declare const SpotifySetPlaybackVolumeInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const SpotifySetPlaybackVolumeOutput: z.ZodObject<{
|
|
9
9
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const spotifySetPlaybackVolume: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
volume_percent: number;
|
|
13
13
|
device_id?: string | undefined;
|
|
@@ -8,7 +8,7 @@ const spotifySetPlaybackVolume = action("SPOTIFY_SET_PLAYBACK_VOLUME", {
|
|
|
8
8
|
device_id: z.string().describe("The ID of the device this command is targeting. If not supplied, the user's currently active device is the target.").optional(),
|
|
9
9
|
volume_percent: z.number().int().describe("Volume percentage to set. Must be a value from 0 to 100 inclusive.")
|
|
10
10
|
}).describe("Request schema for `SetPlaybackVolume`"),
|
|
11
|
-
output: z.object({ success: z.boolean().default(true).describe("Indicates whether the volume was successfully set. Always true when the API returns 204 No Content.").nullable().optional() }).describe("Response schema for `SetPlaybackVolume`")
|
|
11
|
+
output: z.object({ success: z.boolean().default(true).describe("Indicates whether the volume was successfully set. Always true when the API returns 204 No Content.").nullable().optional() }).passthrough().describe("Response schema for `SetPlaybackVolume`")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { spotifySetPlaybackVolume };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-playback-volume.mjs","names":[],"sources":["../../src/actions/set-playback-volume.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySetPlaybackVolumeInput = z.object({\n device_id: z.string().describe(\"The ID of the device this command is targeting. If not supplied, the user's currently active device is the target.\").optional(),\n volume_percent: z.number().int().describe(\"Volume percentage to set. Must be a value from 0 to 100 inclusive.\"),\n}).describe(\"Request schema for `SetPlaybackVolume`\");\nexport const SpotifySetPlaybackVolumeOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the volume was successfully set. Always true when the API returns 204 No Content.\").nullable().optional(),\n}).describe(\"Response schema for `SetPlaybackVolume`\");\n\nexport const spotifySetPlaybackVolume = action(\"SPOTIFY_SET_PLAYBACK_VOLUME\", {\n slug: \"spotify-set-playback-volume\",\n name: \"Set playback volume\",\n description: \"Set the volume for the user's current playback device. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.\",\n input: SpotifySetPlaybackVolumeInput,\n output: SpotifySetPlaybackVolumeOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC9J,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;CAChH,CAAC,CAAC,CAAC,SAAS,wCASH;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzK,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"set-playback-volume.mjs","names":[],"sources":["../../src/actions/set-playback-volume.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySetPlaybackVolumeInput = z.object({\n device_id: z.string().describe(\"The ID of the device this command is targeting. If not supplied, the user's currently active device is the target.\").optional(),\n volume_percent: z.number().int().describe(\"Volume percentage to set. Must be a value from 0 to 100 inclusive.\"),\n}).describe(\"Request schema for `SetPlaybackVolume`\");\nexport const SpotifySetPlaybackVolumeOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the volume was successfully set. Always true when the API returns 204 No Content.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `SetPlaybackVolume`\");\n\nexport const spotifySetPlaybackVolume = action(\"SPOTIFY_SET_PLAYBACK_VOLUME\", {\n slug: \"spotify-set-playback-volume\",\n name: \"Set playback volume\",\n description: \"Set the volume for the user's current playback device. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.\",\n input: SpotifySetPlaybackVolumeInput,\n output: SpotifySetPlaybackVolumeOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EAC9J,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;CAChH,CAAC,CAAC,CAAC,SAAS,wCASH;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const SpotifySetRepeatModeInput = zod.z.object({
|
|
|
9
9
|
]).describe("The repeat mode to set: track (repeat current track), context (repeat current context/playlist/album), or off (turn repeat off)."),
|
|
10
10
|
device_id: zod.z.string().describe("The ID of the device to target. If not provided, the user's currently active device will be targeted.").optional()
|
|
11
11
|
}).describe("Request schema for `SetRepeatMode`");
|
|
12
|
-
const SpotifySetRepeatModeOutput = zod.z.object({ success: zod.z.boolean().default(true).nullable().optional() }).describe("Response schema for `SetRepeatMode`\n\nThe Spotify API returns HTTP 204 No Content on successful repeat mode change.\nThis response object will be empty when the action succeeds.");
|
|
12
|
+
const SpotifySetRepeatModeOutput = zod.z.object({ success: zod.z.boolean().default(true).nullable().optional() }).passthrough().describe("Response schema for `SetRepeatMode`\n\nThe Spotify API returns HTTP 204 No Content on successful repeat mode change.\nThis response object will be empty when the action succeeds.");
|
|
13
13
|
const spotifySetRepeatMode = require_action.action("SPOTIFY_SET_REPEAT_MODE", {
|
|
14
14
|
slug: "spotify-set-repeat-mode",
|
|
15
15
|
name: "Set repeat mode",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-repeat-mode.cjs","names":["z","action"],"sources":["../../src/actions/set-repeat-mode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySetRepeatModeInput = z.object({\n state: z.enum([\"track\", \"context\", \"off\"]).describe(\"The repeat mode to set: track (repeat current track), context (repeat current context/playlist/album), or off (turn repeat off).\"),\n device_id: z.string().describe(\"The ID of the device to target. If not provided, the user's currently active device will be targeted.\").optional(),\n}).describe(\"Request schema for `SetRepeatMode`\");\nexport const SpotifySetRepeatModeOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).describe(\"Response schema for `SetRepeatMode`\\n\\nThe Spotify API returns HTTP 204 No Content on successful repeat mode change.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifySetRepeatMode = action(\"SPOTIFY_SET_REPEAT_MODE\", {\n slug: \"spotify-set-repeat-mode\",\n name: \"Set repeat mode\",\n description: \"Set the repeat mode for the user's playback. Controls whether playback should repeat the current track, the current context (playlist, album, etc.), or not repeat at all. The change takes effect immediately on the user's active device. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Valid repeat modes: - \\\"track\\\": Repeat the current track continuously - \\\"context\\\": Repeat the current context (playlist/album/etc.) - \\\"off\\\": Turn repeat off Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. This action is idempotent - setting the same repeat mode multiple times has the same effect as setting it once. Common scenarios: - Turn off repeat: {\\\"state\\\": \\\"off\\\"} - Repeat current track: {\\\"state\\\": \\\"track\\\"} - Repeat playlist/album: {\\\"state\\\": \\\"context\\\"} - Target specific device: {\\\"state\\\": \\\"off\\\", \\\"device_id\\\": \\\"abc123\\\"} Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifySetRepeatModeInput,\n output: SpotifySetRepeatModeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAK,CAAC,CAAC,CAAC,SAAS,kIAAkI;CACtL,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,oLAAoL;
|
|
1
|
+
{"version":3,"file":"set-repeat-mode.cjs","names":["z","action"],"sources":["../../src/actions/set-repeat-mode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySetRepeatModeInput = z.object({\n state: z.enum([\"track\", \"context\", \"off\"]).describe(\"The repeat mode to set: track (repeat current track), context (repeat current context/playlist/album), or off (turn repeat off).\"),\n device_id: z.string().describe(\"The ID of the device to target. If not provided, the user's currently active device will be targeted.\").optional(),\n}).describe(\"Request schema for `SetRepeatMode`\");\nexport const SpotifySetRepeatModeOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).passthrough().describe(\"Response schema for `SetRepeatMode`\\n\\nThe Spotify API returns HTTP 204 No Content on successful repeat mode change.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifySetRepeatMode = action(\"SPOTIFY_SET_REPEAT_MODE\", {\n slug: \"spotify-set-repeat-mode\",\n name: \"Set repeat mode\",\n description: \"Set the repeat mode for the user's playback. Controls whether playback should repeat the current track, the current context (playlist, album, etc.), or not repeat at all. The change takes effect immediately on the user's active device. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Valid repeat modes: - \\\"track\\\": Repeat the current track continuously - \\\"context\\\": Repeat the current context (playlist/album/etc.) - \\\"off\\\": Turn repeat off Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. This action is idempotent - setting the same repeat mode multiple times has the same effect as setting it once. Common scenarios: - Turn off repeat: {\\\"state\\\": \\\"off\\\"} - Repeat current track: {\\\"state\\\": \\\"track\\\"} - Repeat playlist/album: {\\\"state\\\": \\\"context\\\"} - Target specific device: {\\\"state\\\": \\\"off\\\", \\\"device_id\\\": \\\"abc123\\\"} Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifySetRepeatModeInput,\n output: SpotifySetRepeatModeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAK,CAAC,CAAC,CAAC,SAAS,kIAAkI;CACtL,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oLAAoL;AAE9M,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -3,17 +3,17 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/set-repeat-mode.d.ts
|
|
4
4
|
declare const SpotifySetRepeatModeInput: z.ZodObject<{
|
|
5
5
|
state: z.ZodEnum<{
|
|
6
|
+
track: "track";
|
|
6
7
|
context: "context";
|
|
7
8
|
off: "off";
|
|
8
|
-
track: "track";
|
|
9
9
|
}>;
|
|
10
10
|
device_id: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const SpotifySetRepeatModeOutput: z.ZodObject<{
|
|
13
13
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const spotifySetRepeatMode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
-
state: "
|
|
16
|
+
state: "track" | "context" | "off";
|
|
17
17
|
device_id?: string | undefined;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
19
|
//#endregion
|
|
@@ -3,17 +3,17 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/set-repeat-mode.d.ts
|
|
4
4
|
declare const SpotifySetRepeatModeInput: z.ZodObject<{
|
|
5
5
|
state: z.ZodEnum<{
|
|
6
|
+
track: "track";
|
|
6
7
|
context: "context";
|
|
7
8
|
off: "off";
|
|
8
|
-
track: "track";
|
|
9
9
|
}>;
|
|
10
10
|
device_id: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const SpotifySetRepeatModeOutput: z.ZodObject<{
|
|
13
13
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const spotifySetRepeatMode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
|
-
state: "
|
|
16
|
+
state: "track" | "context" | "off";
|
|
17
17
|
device_id?: string | undefined;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
19
|
//#endregion
|
|
@@ -12,7 +12,7 @@ const spotifySetRepeatMode = action("SPOTIFY_SET_REPEAT_MODE", {
|
|
|
12
12
|
]).describe("The repeat mode to set: track (repeat current track), context (repeat current context/playlist/album), or off (turn repeat off)."),
|
|
13
13
|
device_id: z.string().describe("The ID of the device to target. If not provided, the user's currently active device will be targeted.").optional()
|
|
14
14
|
}).describe("Request schema for `SetRepeatMode`"),
|
|
15
|
-
output: z.object({ success: z.boolean().default(true).nullable().optional() }).describe("Response schema for `SetRepeatMode`\n\nThe Spotify API returns HTTP 204 No Content on successful repeat mode change.\nThis response object will be empty when the action succeeds.")
|
|
15
|
+
output: z.object({ success: z.boolean().default(true).nullable().optional() }).passthrough().describe("Response schema for `SetRepeatMode`\n\nThe Spotify API returns HTTP 204 No Content on successful repeat mode change.\nThis response object will be empty when the action succeeds.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { spotifySetRepeatMode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-repeat-mode.mjs","names":[],"sources":["../../src/actions/set-repeat-mode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySetRepeatModeInput = z.object({\n state: z.enum([\"track\", \"context\", \"off\"]).describe(\"The repeat mode to set: track (repeat current track), context (repeat current context/playlist/album), or off (turn repeat off).\"),\n device_id: z.string().describe(\"The ID of the device to target. If not provided, the user's currently active device will be targeted.\").optional(),\n}).describe(\"Request schema for `SetRepeatMode`\");\nexport const SpotifySetRepeatModeOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).describe(\"Response schema for `SetRepeatMode`\\n\\nThe Spotify API returns HTTP 204 No Content on successful repeat mode change.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifySetRepeatMode = action(\"SPOTIFY_SET_REPEAT_MODE\", {\n slug: \"spotify-set-repeat-mode\",\n name: \"Set repeat mode\",\n description: \"Set the repeat mode for the user's playback. Controls whether playback should repeat the current track, the current context (playlist, album, etc.), or not repeat at all. The change takes effect immediately on the user's active device. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Valid repeat modes: - \\\"track\\\": Repeat the current track continuously - \\\"context\\\": Repeat the current context (playlist/album/etc.) - \\\"off\\\": Turn repeat off Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. This action is idempotent - setting the same repeat mode multiple times has the same effect as setting it once. Common scenarios: - Turn off repeat: {\\\"state\\\": \\\"off\\\"} - Repeat current track: {\\\"state\\\": \\\"track\\\"} - Repeat playlist/album: {\\\"state\\\": \\\"context\\\"} - Target specific device: {\\\"state\\\": \\\"off\\\", \\\"device_id\\\": \\\"abc123\\\"} Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifySetRepeatModeInput,\n output: SpotifySetRepeatModeOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO;EAChD,OAAO,EAAE,KAAK;GAAC;GAAS;GAAW;EAAK,CAAC,CAAC,CAAC,SAAS,kIAAkI;EACtL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,SAAS,oCASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"set-repeat-mode.mjs","names":[],"sources":["../../src/actions/set-repeat-mode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySetRepeatModeInput = z.object({\n state: z.enum([\"track\", \"context\", \"off\"]).describe(\"The repeat mode to set: track (repeat current track), context (repeat current context/playlist/album), or off (turn repeat off).\"),\n device_id: z.string().describe(\"The ID of the device to target. If not provided, the user's currently active device will be targeted.\").optional(),\n}).describe(\"Request schema for `SetRepeatMode`\");\nexport const SpotifySetRepeatModeOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).passthrough().describe(\"Response schema for `SetRepeatMode`\\n\\nThe Spotify API returns HTTP 204 No Content on successful repeat mode change.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifySetRepeatMode = action(\"SPOTIFY_SET_REPEAT_MODE\", {\n slug: \"spotify-set-repeat-mode\",\n name: \"Set repeat mode\",\n description: \"Set the repeat mode for the user's playback. Controls whether playback should repeat the current track, the current context (playlist, album, etc.), or not repeat at all. The change takes effect immediately on the user's active device. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Valid repeat modes: - \\\"track\\\": Repeat the current track continuously - \\\"context\\\": Repeat the current context (playlist/album/etc.) - \\\"off\\\": Turn repeat off Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. This action is idempotent - setting the same repeat mode multiple times has the same effect as setting it once. Common scenarios: - Turn off repeat: {\\\"state\\\": \\\"off\\\"} - Repeat current track: {\\\"state\\\": \\\"track\\\"} - Repeat playlist/album: {\\\"state\\\": \\\"context\\\"} - Target specific device: {\\\"state\\\": \\\"off\\\", \\\"device_id\\\": \\\"abc123\\\"} Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifySetRepeatModeInput,\n output: SpotifySetRepeatModeOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO;EAChD,OAAO,EAAE,KAAK;GAAC;GAAS;GAAW;EAAK,CAAC,CAAC,CAAC,SAAS,kIAAkI;EACtL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,SAAS,oCASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oLAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/skip-to-previous.ts
|
|
4
4
|
const SpotifySkipToPreviousInput = zod.z.object({ device_id: zod.z.string().describe("The id of the device this command is targeting. If not supplied, the user's currently active device is the target.").optional() }).describe("Request schema for `SkipToPrevious`");
|
|
5
|
-
const SpotifySkipToPreviousOutput = zod.z.object({ success: zod.z.boolean().default(true).nullable().optional() }).describe("Response schema for `SkipToPrevious`\n\nThe Spotify API returns HTTP 204 No Content on success.\nThis response object will be empty when the action succeeds.");
|
|
5
|
+
const SpotifySkipToPreviousOutput = zod.z.object({ success: zod.z.boolean().default(true).nullable().optional() }).passthrough().describe("Response schema for `SkipToPrevious`\n\nThe Spotify API returns HTTP 204 No Content on success.\nThis response object will be empty when the action succeeds.");
|
|
6
6
|
const spotifySkipToPrevious = require_action.action("SPOTIFY_SKIP_TO_PREVIOUS", {
|
|
7
7
|
slug: "spotify-skip-to-previous",
|
|
8
8
|
name: "Skip to previous",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-to-previous.cjs","names":["z","action"],"sources":["../../src/actions/skip-to-previous.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySkipToPreviousInput = z.object({\n device_id: z.string().describe(\"The id of the device this command is targeting. If not supplied, the user's currently active device is the target.\").optional(),\n}).describe(\"Request schema for `SkipToPrevious`\");\nexport const SpotifySkipToPreviousOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).describe(\"Response schema for `SkipToPrevious`\\n\\nThe Spotify API returns HTTP 204 No Content on success.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifySkipToPrevious = action(\"SPOTIFY_SKIP_TO_PREVIOUS\", {\n slug: \"spotify-skip-to-previous\",\n name: \"Skip to previous\",\n description: \"Skips to the previous track in the user's queue. Requirements: - Spotify Premium subscription - Active playback (user must be currently playing music) - Requires 'user-modify-playback-state' scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints.\",\n input: SpotifySkipToPreviousInput,\n output: SpotifySkipToPreviousOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,EAChK,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,+JAA+J;
|
|
1
|
+
{"version":3,"file":"skip-to-previous.cjs","names":["z","action"],"sources":["../../src/actions/skip-to-previous.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySkipToPreviousInput = z.object({\n device_id: z.string().describe(\"The id of the device this command is targeting. If not supplied, the user's currently active device is the target.\").optional(),\n}).describe(\"Request schema for `SkipToPrevious`\");\nexport const SpotifySkipToPreviousOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).passthrough().describe(\"Response schema for `SkipToPrevious`\\n\\nThe Spotify API returns HTTP 204 No Content on success.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifySkipToPrevious = action(\"SPOTIFY_SKIP_TO_PREVIOUS\", {\n slug: \"spotify-skip-to-previous\",\n name: \"Skip to previous\",\n description: \"Skips to the previous track in the user's queue. Requirements: - Spotify Premium subscription - Active playback (user must be currently playing music) - Requires 'user-modify-playback-state' scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints.\",\n input: SpotifySkipToPreviousInput,\n output: SpotifySkipToPreviousOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,EAChK,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+JAA+J;AAEzL,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const SpotifySkipToPreviousInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const SpotifySkipToPreviousOutput: z.ZodObject<{
|
|
8
8
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const spotifySkipToPrevious: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
device_id?: string | undefined;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const SpotifySkipToPreviousInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const SpotifySkipToPreviousOutput: z.ZodObject<{
|
|
8
8
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const spotifySkipToPrevious: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
device_id?: string | undefined;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const spotifySkipToPrevious = action("SPOTIFY_SKIP_TO_PREVIOUS", {
|
|
|
5
5
|
name: "Skip to previous",
|
|
6
6
|
description: "Skips to the previous track in the user's queue. Requirements: - Spotify Premium subscription - Active playback (user must be currently playing music) - Requires 'user-modify-playback-state' scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints.",
|
|
7
7
|
input: z.object({ device_id: z.string().describe("The id of the device this command is targeting. If not supplied, the user's currently active device is the target.").optional() }).describe("Request schema for `SkipToPrevious`"),
|
|
8
|
-
output: z.object({ success: z.boolean().default(true).nullable().optional() }).describe("Response schema for `SkipToPrevious`\n\nThe Spotify API returns HTTP 204 No Content on success.\nThis response object will be empty when the action succeeds.")
|
|
8
|
+
output: z.object({ success: z.boolean().default(true).nullable().optional() }).passthrough().describe("Response schema for `SkipToPrevious`\n\nThe Spotify API returns HTTP 204 No Content on success.\nThis response object will be empty when the action succeeds.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { spotifySkipToPrevious };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-to-previous.mjs","names":[],"sources":["../../src/actions/skip-to-previous.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySkipToPreviousInput = z.object({\n device_id: z.string().describe(\"The id of the device this command is targeting. If not supplied, the user's currently active device is the target.\").optional(),\n}).describe(\"Request schema for `SkipToPrevious`\");\nexport const SpotifySkipToPreviousOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).describe(\"Response schema for `SkipToPrevious`\\n\\nThe Spotify API returns HTTP 204 No Content on success.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifySkipToPrevious = action(\"SPOTIFY_SKIP_TO_PREVIOUS\", {\n slug: \"spotify-skip-to-previous\",\n name: \"Skip to previous\",\n description: \"Skips to the previous track in the user's queue. Requirements: - Spotify Premium subscription - Active playback (user must be currently playing music) - Requires 'user-modify-playback-state' scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints.\",\n input: SpotifySkipToPreviousInput,\n output: SpotifySkipToPreviousOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXwC,EAAE,OAAO,EACjD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,EAChK,CAAC,CAAC,CAAC,SAAS,qCASH;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,+
|
|
1
|
+
{"version":3,"file":"skip-to-previous.mjs","names":[],"sources":["../../src/actions/skip-to-previous.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifySkipToPreviousInput = z.object({\n device_id: z.string().describe(\"The id of the device this command is targeting. If not supplied, the user's currently active device is the target.\").optional(),\n}).describe(\"Request schema for `SkipToPrevious`\");\nexport const SpotifySkipToPreviousOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).passthrough().describe(\"Response schema for `SkipToPrevious`\\n\\nThe Spotify API returns HTTP 204 No Content on success.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifySkipToPrevious = action(\"SPOTIFY_SKIP_TO_PREVIOUS\", {\n slug: \"spotify-skip-to-previous\",\n name: \"Skip to previous\",\n description: \"Skips to the previous track in the user's queue. Requirements: - Spotify Premium subscription - Active playback (user must be currently playing music) - Requires 'user-modify-playback-state' scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints.\",\n input: SpotifySkipToPreviousInput,\n output: SpotifySkipToPreviousOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXwC,EAAE,OAAO,EACjD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,EAChK,CAAC,CAAC,CAAC,SAAS,qCASH;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+JAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const SpotifyStartResumePlaybackInput = zod.z.object({
|
|
|
8
8
|
context_uri: zod.z.string().describe("Spotify URI of the context to play. Valid contexts are albums, artists, or playlists. Example: 'spotify:album:1Je1IMUlBXcx1Fz0WE7oPT' or 'spotify:playlist:37i9dQZF1DXcBWIGoYBM5M'. Cannot be used with 'uris' parameter.").optional(),
|
|
9
9
|
position_ms: zod.z.number().int().describe("Position in milliseconds to start playback. Must be a positive number. If greater than the track length, the player will skip to the next song. Example: 25000 (starts 25 seconds into the track).").optional()
|
|
10
10
|
}).describe("Request schema for `StartResumePlayback`");
|
|
11
|
-
const SpotifyStartResumePlaybackOutput = zod.z.object({ success: zod.z.boolean().default(true).nullable().optional() }).describe("Response schema for `StartResumePlayback`\n\nThe Spotify API returns HTTP 204 No Content on successful playback start/resume.\nThis response object will indicate success when the action completes.");
|
|
11
|
+
const SpotifyStartResumePlaybackOutput = zod.z.object({ success: zod.z.boolean().default(true).nullable().optional() }).passthrough().describe("Response schema for `StartResumePlayback`\n\nThe Spotify API returns HTTP 204 No Content on successful playback start/resume.\nThis response object will indicate success when the action completes.");
|
|
12
12
|
const spotifyStartResumePlayback = require_action.action("SPOTIFY_START_RESUME_PLAYBACK", {
|
|
13
13
|
slug: "spotify-start-resume-playback",
|
|
14
14
|
name: "Start resume playback",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-resume-playback.cjs","names":["z","action"],"sources":["../../src/actions/start-resume-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyStartResumePlaybackInput = z.object({\n uris: z.array(z.string()).describe(\"List of Spotify track URIs to play. Example: ['spotify:track:4iV5W9uYEdYUVa79Axb7Rh', 'spotify:track:1301WleyT98MSxVHPZCA6M']. Cannot be used with 'context_uri' parameter.\").optional(),\n offset: z.record(z.string(), z.unknown()).describe(\"Starting position in the context. Only available when 'context_uri' is an album or playlist. Use either 'position' (zero-based track index) or 'uri' (specific track URI). Example with position: {'position': 5}. Example with URI: {'uri': 'spotify:track:1301WleyT98MSxVHPZCA6M'}.\").optional(),\n device_id: z.string().describe(\"The ID of the device to target for playback. If not provided, playback will start/resume on the currently active device. Use the 'get_available_devices' action to retrieve device IDs.\").optional(),\n context_uri: z.string().describe(\"Spotify URI of the context to play. Valid contexts are albums, artists, or playlists. Example: 'spotify:album:1Je1IMUlBXcx1Fz0WE7oPT' or 'spotify:playlist:37i9dQZF1DXcBWIGoYBM5M'. Cannot be used with 'uris' parameter.\").optional(),\n position_ms: z.number().int().describe(\"Position in milliseconds to start playback. Must be a positive number. If greater than the track length, the player will skip to the next song. Example: 25000 (starts 25 seconds into the track).\").optional(),\n}).describe(\"Request schema for `StartResumePlayback`\");\nexport const SpotifyStartResumePlaybackOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).describe(\"Response schema for `StartResumePlayback`\\n\\nThe Spotify API returns HTTP 204 No Content on successful playback start/resume.\\nThis response object will indicate success when the action completes.\");\n\nexport const spotifyStartResumePlayback = action(\"SPOTIFY_START_RESUME_PLAYBACK\", {\n slug: \"spotify-start-resume-playback\",\n name: \"Start resume playback\",\n description: \"Start a new context or resume current playback on the user's active device. Starts playback of a specific context (album, artist, or playlist), a list of tracks, or resumes currently paused playback. Returns immediately with success when playback starts. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - At least one active Spotify device (mobile, desktop, web player, or smart speaker) Usage patterns: - Resume paused playback: Call with no parameters - Play an album/playlist: Use 'context_uri' parameter - Play specific tracks: Use 'uris' parameter - Play from a specific track in a context: Use 'context_uri' with 'offset' - Start from a specific position in a track: Use 'position_ms' Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. You cannot use both 'context_uri' and 'uris' parameters together. Common error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifyStartResumePlaybackInput,\n output: SpotifyStartResumePlaybackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CAC3N,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uRAAuR,CAAC,CAAC,SAAS;CACrV,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACnO,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N,CAAC,CAAC,SAAS;CACvQ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS;AACxP,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,sMAAsM;
|
|
1
|
+
{"version":3,"file":"start-resume-playback.cjs","names":["z","action"],"sources":["../../src/actions/start-resume-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyStartResumePlaybackInput = z.object({\n uris: z.array(z.string()).describe(\"List of Spotify track URIs to play. Example: ['spotify:track:4iV5W9uYEdYUVa79Axb7Rh', 'spotify:track:1301WleyT98MSxVHPZCA6M']. Cannot be used with 'context_uri' parameter.\").optional(),\n offset: z.record(z.string(), z.unknown()).describe(\"Starting position in the context. Only available when 'context_uri' is an album or playlist. Use either 'position' (zero-based track index) or 'uri' (specific track URI). Example with position: {'position': 5}. Example with URI: {'uri': 'spotify:track:1301WleyT98MSxVHPZCA6M'}.\").optional(),\n device_id: z.string().describe(\"The ID of the device to target for playback. If not provided, playback will start/resume on the currently active device. Use the 'get_available_devices' action to retrieve device IDs.\").optional(),\n context_uri: z.string().describe(\"Spotify URI of the context to play. Valid contexts are albums, artists, or playlists. Example: 'spotify:album:1Je1IMUlBXcx1Fz0WE7oPT' or 'spotify:playlist:37i9dQZF1DXcBWIGoYBM5M'. Cannot be used with 'uris' parameter.\").optional(),\n position_ms: z.number().int().describe(\"Position in milliseconds to start playback. Must be a positive number. If greater than the track length, the player will skip to the next song. Example: 25000 (starts 25 seconds into the track).\").optional(),\n}).describe(\"Request schema for `StartResumePlayback`\");\nexport const SpotifyStartResumePlaybackOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).passthrough().describe(\"Response schema for `StartResumePlayback`\\n\\nThe Spotify API returns HTTP 204 No Content on successful playback start/resume.\\nThis response object will indicate success when the action completes.\");\n\nexport const spotifyStartResumePlayback = action(\"SPOTIFY_START_RESUME_PLAYBACK\", {\n slug: \"spotify-start-resume-playback\",\n name: \"Start resume playback\",\n description: \"Start a new context or resume current playback on the user's active device. Starts playback of a specific context (album, artist, or playlist), a list of tracks, or resumes currently paused playback. Returns immediately with success when playback starts. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - At least one active Spotify device (mobile, desktop, web player, or smart speaker) Usage patterns: - Resume paused playback: Call with no parameters - Play an album/playlist: Use 'context_uri' parameter - Play specific tracks: Use 'uris' parameter - Play from a specific track in a context: Use 'context_uri' with 'offset' - Start from a specific position in a track: Use 'position_ms' Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. You cannot use both 'context_uri' and 'uris' parameters together. Common error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifyStartResumePlaybackInput,\n output: SpotifyStartResumePlaybackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CAC3N,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uRAAuR,CAAC,CAAC,SAAS;CACrV,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;CACnO,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N,CAAC,CAAC,SAAS;CACvQ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS;AACxP,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sMAAsM;AAEhO,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const SpotifyStartResumePlaybackInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const SpotifyStartResumePlaybackOutput: z.ZodObject<{
|
|
12
12
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const spotifyStartResumePlayback: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
uris?: string[] | undefined;
|
|
16
16
|
offset?: Record<string, unknown> | undefined;
|
|
@@ -10,7 +10,7 @@ declare const SpotifyStartResumePlaybackInput: z.ZodObject<{
|
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
declare const SpotifyStartResumePlaybackOutput: z.ZodObject<{
|
|
12
12
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const spotifyStartResumePlayback: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
uris?: string[] | undefined;
|
|
16
16
|
offset?: Record<string, unknown> | undefined;
|
|
@@ -11,7 +11,7 @@ const spotifyStartResumePlayback = action("SPOTIFY_START_RESUME_PLAYBACK", {
|
|
|
11
11
|
context_uri: z.string().describe("Spotify URI of the context to play. Valid contexts are albums, artists, or playlists. Example: 'spotify:album:1Je1IMUlBXcx1Fz0WE7oPT' or 'spotify:playlist:37i9dQZF1DXcBWIGoYBM5M'. Cannot be used with 'uris' parameter.").optional(),
|
|
12
12
|
position_ms: z.number().int().describe("Position in milliseconds to start playback. Must be a positive number. If greater than the track length, the player will skip to the next song. Example: 25000 (starts 25 seconds into the track).").optional()
|
|
13
13
|
}).describe("Request schema for `StartResumePlayback`"),
|
|
14
|
-
output: z.object({ success: z.boolean().default(true).nullable().optional() }).describe("Response schema for `StartResumePlayback`\n\nThe Spotify API returns HTTP 204 No Content on successful playback start/resume.\nThis response object will indicate success when the action completes.")
|
|
14
|
+
output: z.object({ success: z.boolean().default(true).nullable().optional() }).passthrough().describe("Response schema for `StartResumePlayback`\n\nThe Spotify API returns HTTP 204 No Content on successful playback start/resume.\nThis response object will indicate success when the action completes.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { spotifyStartResumePlayback };
|