@keystrokehq/spotify 0.1.2 → 0.1.4

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.
Files changed (427) hide show
  1. package/dist/actions/add-item-to-playback-queue.d.cts +13 -1
  2. package/dist/actions/add-item-to-playback-queue.d.mts +13 -1
  3. package/dist/actions/add-items-to-playlist.cjs +1 -1
  4. package/dist/actions/add-items-to-playlist.cjs.map +1 -1
  5. package/dist/actions/add-items-to-playlist.d.cts +14 -2
  6. package/dist/actions/add-items-to-playlist.d.mts +14 -2
  7. package/dist/actions/add-items-to-playlist.mjs +1 -1
  8. package/dist/actions/add-items-to-playlist.mjs.map +1 -1
  9. package/dist/actions/change-playlist-details.d.cts +13 -1
  10. package/dist/actions/change-playlist-details.d.mts +13 -1
  11. package/dist/actions/check-if-user-follows-artists-or-users.cjs +1 -1
  12. package/dist/actions/check-if-user-follows-artists-or-users.cjs.map +1 -1
  13. package/dist/actions/check-if-user-follows-artists-or-users.d.cts +14 -2
  14. package/dist/actions/check-if-user-follows-artists-or-users.d.mts +14 -2
  15. package/dist/actions/check-if-user-follows-artists-or-users.mjs +1 -1
  16. package/dist/actions/check-if-user-follows-artists-or-users.mjs.map +1 -1
  17. package/dist/actions/check-if-users-follow-playlist.d.cts +13 -1
  18. package/dist/actions/check-if-users-follow-playlist.d.mts +13 -1
  19. package/dist/actions/check-user-s-saved-albums.cjs +1 -1
  20. package/dist/actions/check-user-s-saved-albums.cjs.map +1 -1
  21. package/dist/actions/check-user-s-saved-albums.d.cts +14 -2
  22. package/dist/actions/check-user-s-saved-albums.d.mts +14 -2
  23. package/dist/actions/check-user-s-saved-albums.mjs +1 -1
  24. package/dist/actions/check-user-s-saved-albums.mjs.map +1 -1
  25. package/dist/actions/check-user-s-saved-audiobooks.cjs +1 -1
  26. package/dist/actions/check-user-s-saved-audiobooks.cjs.map +1 -1
  27. package/dist/actions/check-user-s-saved-audiobooks.d.cts +14 -2
  28. package/dist/actions/check-user-s-saved-audiobooks.d.mts +14 -2
  29. package/dist/actions/check-user-s-saved-audiobooks.mjs +1 -1
  30. package/dist/actions/check-user-s-saved-audiobooks.mjs.map +1 -1
  31. package/dist/actions/check-user-s-saved-episodes.d.cts +13 -1
  32. package/dist/actions/check-user-s-saved-episodes.d.mts +13 -1
  33. package/dist/actions/check-user-s-saved-shows.cjs +1 -1
  34. package/dist/actions/check-user-s-saved-shows.cjs.map +1 -1
  35. package/dist/actions/check-user-s-saved-shows.d.cts +14 -2
  36. package/dist/actions/check-user-s-saved-shows.d.mts +14 -2
  37. package/dist/actions/check-user-s-saved-shows.mjs +1 -1
  38. package/dist/actions/check-user-s-saved-shows.mjs.map +1 -1
  39. package/dist/actions/check-user-s-saved-tracks.d.cts +13 -1
  40. package/dist/actions/check-user-s-saved-tracks.d.mts +13 -1
  41. package/dist/actions/create-playlist.cjs +7 -7
  42. package/dist/actions/create-playlist.cjs.map +1 -1
  43. package/dist/actions/create-playlist.d.cts +22 -10
  44. package/dist/actions/create-playlist.d.mts +22 -10
  45. package/dist/actions/create-playlist.mjs +7 -7
  46. package/dist/actions/create-playlist.mjs.map +1 -1
  47. package/dist/actions/follow-artists-or-users.d.cts +13 -1
  48. package/dist/actions/follow-artists-or-users.d.mts +13 -1
  49. package/dist/actions/follow-playlist.d.cts +13 -1
  50. package/dist/actions/follow-playlist.d.mts +13 -1
  51. package/dist/actions/get-a-chapter.cjs +2 -2
  52. package/dist/actions/get-a-chapter.cjs.map +1 -1
  53. package/dist/actions/get-a-chapter.d.cts +15 -3
  54. package/dist/actions/get-a-chapter.d.mts +15 -3
  55. package/dist/actions/get-a-chapter.mjs +2 -2
  56. package/dist/actions/get-a-chapter.mjs.map +1 -1
  57. package/dist/actions/get-album-tracks.cjs +2 -2
  58. package/dist/actions/get-album-tracks.cjs.map +1 -1
  59. package/dist/actions/get-album-tracks.d.cts +15 -3
  60. package/dist/actions/get-album-tracks.d.mts +15 -3
  61. package/dist/actions/get-album-tracks.mjs +2 -2
  62. package/dist/actions/get-album-tracks.mjs.map +1 -1
  63. package/dist/actions/get-album.cjs +7 -7
  64. package/dist/actions/get-album.cjs.map +1 -1
  65. package/dist/actions/get-album.d.cts +21 -9
  66. package/dist/actions/get-album.d.mts +21 -9
  67. package/dist/actions/get-album.mjs +7 -7
  68. package/dist/actions/get-album.mjs.map +1 -1
  69. package/dist/actions/get-an-audiobook.cjs +2 -2
  70. package/dist/actions/get-an-audiobook.cjs.map +1 -1
  71. package/dist/actions/get-an-audiobook.d.cts +15 -3
  72. package/dist/actions/get-an-audiobook.d.mts +15 -3
  73. package/dist/actions/get-an-audiobook.mjs +2 -2
  74. package/dist/actions/get-an-audiobook.mjs.map +1 -1
  75. package/dist/actions/get-artist-s-albums.cjs +4 -4
  76. package/dist/actions/get-artist-s-albums.cjs.map +1 -1
  77. package/dist/actions/get-artist-s-albums.d.cts +17 -5
  78. package/dist/actions/get-artist-s-albums.d.mts +17 -5
  79. package/dist/actions/get-artist-s-albums.mjs +4 -4
  80. package/dist/actions/get-artist-s-albums.mjs.map +1 -1
  81. package/dist/actions/get-artist-s-related-artists.cjs +5 -5
  82. package/dist/actions/get-artist-s-related-artists.cjs.map +1 -1
  83. package/dist/actions/get-artist-s-related-artists.d.cts +18 -6
  84. package/dist/actions/get-artist-s-related-artists.d.mts +18 -6
  85. package/dist/actions/get-artist-s-related-artists.mjs +5 -5
  86. package/dist/actions/get-artist-s-related-artists.mjs.map +1 -1
  87. package/dist/actions/get-artist-s-top-tracks.cjs +8 -8
  88. package/dist/actions/get-artist-s-top-tracks.cjs.map +1 -1
  89. package/dist/actions/get-artist-s-top-tracks.d.cts +26 -14
  90. package/dist/actions/get-artist-s-top-tracks.d.mts +26 -14
  91. package/dist/actions/get-artist-s-top-tracks.mjs +8 -8
  92. package/dist/actions/get-artist-s-top-tracks.mjs.map +1 -1
  93. package/dist/actions/get-artist.cjs +5 -5
  94. package/dist/actions/get-artist.cjs.map +1 -1
  95. package/dist/actions/get-artist.d.cts +18 -6
  96. package/dist/actions/get-artist.d.mts +18 -6
  97. package/dist/actions/get-artist.mjs +5 -5
  98. package/dist/actions/get-artist.mjs.map +1 -1
  99. package/dist/actions/get-audiobook-chapters.cjs +1 -1
  100. package/dist/actions/get-audiobook-chapters.cjs.map +1 -1
  101. package/dist/actions/get-audiobook-chapters.d.cts +14 -2
  102. package/dist/actions/get-audiobook-chapters.d.mts +14 -2
  103. package/dist/actions/get-audiobook-chapters.mjs +1 -1
  104. package/dist/actions/get-audiobook-chapters.mjs.map +1 -1
  105. package/dist/actions/get-available-devices.cjs +2 -2
  106. package/dist/actions/get-available-devices.cjs.map +1 -1
  107. package/dist/actions/get-available-devices.d.cts +15 -3
  108. package/dist/actions/get-available-devices.d.cts.map +1 -1
  109. package/dist/actions/get-available-devices.d.mts +15 -3
  110. package/dist/actions/get-available-devices.d.mts.map +1 -1
  111. package/dist/actions/get-available-devices.mjs +2 -2
  112. package/dist/actions/get-available-devices.mjs.map +1 -1
  113. package/dist/actions/get-available-markets.cjs +1 -1
  114. package/dist/actions/get-available-markets.cjs.map +1 -1
  115. package/dist/actions/get-available-markets.d.cts +14 -2
  116. package/dist/actions/get-available-markets.d.cts.map +1 -1
  117. package/dist/actions/get-available-markets.d.mts +14 -2
  118. package/dist/actions/get-available-markets.d.mts.map +1 -1
  119. package/dist/actions/get-available-markets.mjs +1 -1
  120. package/dist/actions/get-available-markets.mjs.map +1 -1
  121. package/dist/actions/get-current-user-s-playlists.cjs +7 -7
  122. package/dist/actions/get-current-user-s-playlists.cjs.map +1 -1
  123. package/dist/actions/get-current-user-s-playlists.d.cts +21 -9
  124. package/dist/actions/get-current-user-s-playlists.d.mts +21 -9
  125. package/dist/actions/get-current-user-s-playlists.mjs +7 -7
  126. package/dist/actions/get-current-user-s-playlists.mjs.map +1 -1
  127. package/dist/actions/get-current-user-s-profile.cjs +6 -6
  128. package/dist/actions/get-current-user-s-profile.cjs.map +1 -1
  129. package/dist/actions/get-current-user-s-profile.d.cts +19 -7
  130. package/dist/actions/get-current-user-s-profile.d.cts.map +1 -1
  131. package/dist/actions/get-current-user-s-profile.d.mts +19 -7
  132. package/dist/actions/get-current-user-s-profile.d.mts.map +1 -1
  133. package/dist/actions/get-current-user-s-profile.mjs +6 -6
  134. package/dist/actions/get-current-user-s-profile.mjs.map +1 -1
  135. package/dist/actions/get-currently-playing-track.d.cts +13 -1
  136. package/dist/actions/get-currently-playing-track.d.mts +13 -1
  137. package/dist/actions/get-episode.cjs +2 -2
  138. package/dist/actions/get-episode.cjs.map +1 -1
  139. package/dist/actions/get-episode.d.cts +15 -3
  140. package/dist/actions/get-episode.d.mts +15 -3
  141. package/dist/actions/get-episode.mjs +2 -2
  142. package/dist/actions/get-episode.mjs.map +1 -1
  143. package/dist/actions/get-featured-playlists.d.cts +13 -1
  144. package/dist/actions/get-featured-playlists.d.mts +13 -1
  145. package/dist/actions/get-followed-artists.cjs +8 -8
  146. package/dist/actions/get-followed-artists.cjs.map +1 -1
  147. package/dist/actions/get-followed-artists.d.cts +21 -9
  148. package/dist/actions/get-followed-artists.d.mts +21 -9
  149. package/dist/actions/get-followed-artists.mjs +8 -8
  150. package/dist/actions/get-followed-artists.mjs.map +1 -1
  151. package/dist/actions/get-new-releases.cjs +3 -3
  152. package/dist/actions/get-new-releases.cjs.map +1 -1
  153. package/dist/actions/get-new-releases.d.cts +16 -4
  154. package/dist/actions/get-new-releases.d.mts +16 -4
  155. package/dist/actions/get-new-releases.mjs +3 -3
  156. package/dist/actions/get-new-releases.mjs.map +1 -1
  157. package/dist/actions/get-playback-state.cjs +16 -16
  158. package/dist/actions/get-playback-state.cjs.map +1 -1
  159. package/dist/actions/get-playback-state.d.cts +42 -30
  160. package/dist/actions/get-playback-state.d.mts +42 -30
  161. package/dist/actions/get-playback-state.mjs +16 -16
  162. package/dist/actions/get-playback-state.mjs.map +1 -1
  163. package/dist/actions/get-playlist-cover-image.cjs +1 -1
  164. package/dist/actions/get-playlist-cover-image.cjs.map +1 -1
  165. package/dist/actions/get-playlist-cover-image.d.cts +14 -2
  166. package/dist/actions/get-playlist-cover-image.d.mts +14 -2
  167. package/dist/actions/get-playlist-cover-image.mjs +1 -1
  168. package/dist/actions/get-playlist-cover-image.mjs.map +1 -1
  169. package/dist/actions/get-playlist-items.d.cts +13 -1
  170. package/dist/actions/get-playlist-items.d.mts +13 -1
  171. package/dist/actions/get-playlist.d.cts +13 -1
  172. package/dist/actions/get-playlist.d.mts +13 -1
  173. package/dist/actions/get-recently-played-tracks.cjs +11 -11
  174. package/dist/actions/get-recently-played-tracks.cjs.map +1 -1
  175. package/dist/actions/get-recently-played-tracks.d.cts +30 -18
  176. package/dist/actions/get-recently-played-tracks.d.mts +30 -18
  177. package/dist/actions/get-recently-played-tracks.mjs +11 -11
  178. package/dist/actions/get-recently-played-tracks.mjs.map +1 -1
  179. package/dist/actions/get-recommendations.cjs +1 -1
  180. package/dist/actions/get-recommendations.cjs.map +1 -1
  181. package/dist/actions/get-recommendations.d.cts +14 -2
  182. package/dist/actions/get-recommendations.d.mts +14 -2
  183. package/dist/actions/get-recommendations.mjs +1 -1
  184. package/dist/actions/get-recommendations.mjs.map +1 -1
  185. package/dist/actions/get-several-albums.cjs +5 -5
  186. package/dist/actions/get-several-albums.cjs.map +1 -1
  187. package/dist/actions/get-several-albums.d.cts +19 -7
  188. package/dist/actions/get-several-albums.d.mts +19 -7
  189. package/dist/actions/get-several-albums.mjs +5 -5
  190. package/dist/actions/get-several-albums.mjs.map +1 -1
  191. package/dist/actions/get-several-artists.cjs +1 -1
  192. package/dist/actions/get-several-artists.cjs.map +1 -1
  193. package/dist/actions/get-several-artists.d.cts +14 -2
  194. package/dist/actions/get-several-artists.d.mts +14 -2
  195. package/dist/actions/get-several-artists.mjs +1 -1
  196. package/dist/actions/get-several-artists.mjs.map +1 -1
  197. package/dist/actions/get-several-audiobooks.cjs +2 -2
  198. package/dist/actions/get-several-audiobooks.cjs.map +1 -1
  199. package/dist/actions/get-several-audiobooks.d.cts +15 -3
  200. package/dist/actions/get-several-audiobooks.d.mts +15 -3
  201. package/dist/actions/get-several-audiobooks.mjs +2 -2
  202. package/dist/actions/get-several-audiobooks.mjs.map +1 -1
  203. package/dist/actions/get-several-browse-categories.d.cts +13 -1
  204. package/dist/actions/get-several-browse-categories.d.mts +13 -1
  205. package/dist/actions/get-several-chapters.cjs +2 -2
  206. package/dist/actions/get-several-chapters.cjs.map +1 -1
  207. package/dist/actions/get-several-chapters.d.cts +15 -3
  208. package/dist/actions/get-several-chapters.d.mts +15 -3
  209. package/dist/actions/get-several-chapters.mjs +2 -2
  210. package/dist/actions/get-several-chapters.mjs.map +1 -1
  211. package/dist/actions/get-several-episodes.cjs +2 -2
  212. package/dist/actions/get-several-episodes.cjs.map +1 -1
  213. package/dist/actions/get-several-episodes.d.cts +15 -3
  214. package/dist/actions/get-several-episodes.d.mts +15 -3
  215. package/dist/actions/get-several-episodes.mjs +2 -2
  216. package/dist/actions/get-several-episodes.mjs.map +1 -1
  217. package/dist/actions/get-several-shows.cjs +1 -1
  218. package/dist/actions/get-several-shows.cjs.map +1 -1
  219. package/dist/actions/get-several-shows.d.cts +14 -2
  220. package/dist/actions/get-several-shows.d.mts +14 -2
  221. package/dist/actions/get-several-shows.mjs +1 -1
  222. package/dist/actions/get-several-shows.mjs.map +1 -1
  223. package/dist/actions/get-several-tracks.cjs +6 -6
  224. package/dist/actions/get-several-tracks.cjs.map +1 -1
  225. package/dist/actions/get-several-tracks.d.cts +20 -8
  226. package/dist/actions/get-several-tracks.d.mts +20 -8
  227. package/dist/actions/get-several-tracks.mjs +6 -6
  228. package/dist/actions/get-several-tracks.mjs.map +1 -1
  229. package/dist/actions/get-show-episodes.cjs +1 -1
  230. package/dist/actions/get-show-episodes.cjs.map +1 -1
  231. package/dist/actions/get-show-episodes.d.cts +14 -2
  232. package/dist/actions/get-show-episodes.d.mts +14 -2
  233. package/dist/actions/get-show-episodes.mjs +1 -1
  234. package/dist/actions/get-show-episodes.mjs.map +1 -1
  235. package/dist/actions/get-show.cjs +2 -2
  236. package/dist/actions/get-show.cjs.map +1 -1
  237. package/dist/actions/get-show.d.cts +15 -3
  238. package/dist/actions/get-show.d.mts +15 -3
  239. package/dist/actions/get-show.mjs +2 -2
  240. package/dist/actions/get-show.mjs.map +1 -1
  241. package/dist/actions/get-single-browse-category.d.cts +13 -1
  242. package/dist/actions/get-single-browse-category.d.mts +13 -1
  243. package/dist/actions/get-the-user-s-queue.d.cts +13 -1
  244. package/dist/actions/get-the-user-s-queue.d.cts.map +1 -1
  245. package/dist/actions/get-the-user-s-queue.d.mts +13 -1
  246. package/dist/actions/get-the-user-s-queue.d.mts.map +1 -1
  247. package/dist/actions/get-track-s-audio-analysis.d.cts +13 -1
  248. package/dist/actions/get-track-s-audio-analysis.d.mts +13 -1
  249. package/dist/actions/get-track.cjs +9 -9
  250. package/dist/actions/get-track.cjs.map +1 -1
  251. package/dist/actions/get-track.d.cts +22 -10
  252. package/dist/actions/get-track.d.mts +22 -10
  253. package/dist/actions/get-track.mjs +9 -9
  254. package/dist/actions/get-track.mjs.map +1 -1
  255. package/dist/actions/get-user-s-playlists.cjs +7 -7
  256. package/dist/actions/get-user-s-playlists.cjs.map +1 -1
  257. package/dist/actions/get-user-s-playlists.d.cts +21 -9
  258. package/dist/actions/get-user-s-playlists.d.mts +21 -9
  259. package/dist/actions/get-user-s-playlists.mjs +7 -7
  260. package/dist/actions/get-user-s-playlists.mjs.map +1 -1
  261. package/dist/actions/get-user-s-profile.cjs +5 -5
  262. package/dist/actions/get-user-s-profile.cjs.map +1 -1
  263. package/dist/actions/get-user-s-profile.d.cts +18 -6
  264. package/dist/actions/get-user-s-profile.d.mts +18 -6
  265. package/dist/actions/get-user-s-profile.mjs +5 -5
  266. package/dist/actions/get-user-s-profile.mjs.map +1 -1
  267. package/dist/actions/get-user-s-saved-albums.cjs +2 -2
  268. package/dist/actions/get-user-s-saved-albums.cjs.map +1 -1
  269. package/dist/actions/get-user-s-saved-albums.d.cts +15 -3
  270. package/dist/actions/get-user-s-saved-albums.d.mts +15 -3
  271. package/dist/actions/get-user-s-saved-albums.mjs +2 -2
  272. package/dist/actions/get-user-s-saved-albums.mjs.map +1 -1
  273. package/dist/actions/get-user-s-saved-audiobooks.cjs +1 -1
  274. package/dist/actions/get-user-s-saved-audiobooks.cjs.map +1 -1
  275. package/dist/actions/get-user-s-saved-audiobooks.d.cts +14 -2
  276. package/dist/actions/get-user-s-saved-audiobooks.d.mts +14 -2
  277. package/dist/actions/get-user-s-saved-audiobooks.mjs +1 -1
  278. package/dist/actions/get-user-s-saved-audiobooks.mjs.map +1 -1
  279. package/dist/actions/get-user-s-saved-episodes.cjs +2 -2
  280. package/dist/actions/get-user-s-saved-episodes.cjs.map +1 -1
  281. package/dist/actions/get-user-s-saved-episodes.d.cts +15 -3
  282. package/dist/actions/get-user-s-saved-episodes.d.mts +15 -3
  283. package/dist/actions/get-user-s-saved-episodes.mjs +2 -2
  284. package/dist/actions/get-user-s-saved-episodes.mjs.map +1 -1
  285. package/dist/actions/get-user-s-saved-shows.cjs +1 -1
  286. package/dist/actions/get-user-s-saved-shows.cjs.map +1 -1
  287. package/dist/actions/get-user-s-saved-shows.d.cts +14 -2
  288. package/dist/actions/get-user-s-saved-shows.d.mts +14 -2
  289. package/dist/actions/get-user-s-saved-shows.mjs +1 -1
  290. package/dist/actions/get-user-s-saved-shows.mjs.map +1 -1
  291. package/dist/actions/get-user-s-saved-tracks.cjs +1 -1
  292. package/dist/actions/get-user-s-saved-tracks.cjs.map +1 -1
  293. package/dist/actions/get-user-s-saved-tracks.d.cts +14 -2
  294. package/dist/actions/get-user-s-saved-tracks.d.mts +14 -2
  295. package/dist/actions/get-user-s-saved-tracks.mjs +1 -1
  296. package/dist/actions/get-user-s-saved-tracks.mjs.map +1 -1
  297. package/dist/actions/get-user-s-top-artists.cjs +5 -5
  298. package/dist/actions/get-user-s-top-artists.cjs.map +1 -1
  299. package/dist/actions/get-user-s-top-artists.d.cts +18 -6
  300. package/dist/actions/get-user-s-top-artists.d.mts +18 -6
  301. package/dist/actions/get-user-s-top-artists.mjs +5 -5
  302. package/dist/actions/get-user-s-top-artists.mjs.map +1 -1
  303. package/dist/actions/get-user-s-top-tracks.cjs +9 -9
  304. package/dist/actions/get-user-s-top-tracks.cjs.map +1 -1
  305. package/dist/actions/get-user-s-top-tracks.d.cts +28 -16
  306. package/dist/actions/get-user-s-top-tracks.d.mts +28 -16
  307. package/dist/actions/get-user-s-top-tracks.mjs +9 -9
  308. package/dist/actions/get-user-s-top-tracks.mjs.map +1 -1
  309. package/dist/actions/pause-playback.cjs +1 -1
  310. package/dist/actions/pause-playback.cjs.map +1 -1
  311. package/dist/actions/pause-playback.d.cts +14 -2
  312. package/dist/actions/pause-playback.d.mts +14 -2
  313. package/dist/actions/pause-playback.mjs +1 -1
  314. package/dist/actions/pause-playback.mjs.map +1 -1
  315. package/dist/actions/remove-playlist-items.d.cts +13 -1
  316. package/dist/actions/remove-playlist-items.d.mts +13 -1
  317. package/dist/actions/remove-user-s-saved-audiobooks.cjs +1 -1
  318. package/dist/actions/remove-user-s-saved-audiobooks.cjs.map +1 -1
  319. package/dist/actions/remove-user-s-saved-audiobooks.d.cts +14 -2
  320. package/dist/actions/remove-user-s-saved-audiobooks.d.mts +14 -2
  321. package/dist/actions/remove-user-s-saved-audiobooks.mjs +1 -1
  322. package/dist/actions/remove-user-s-saved-audiobooks.mjs.map +1 -1
  323. package/dist/actions/remove-user-s-saved-episodes.cjs +1 -1
  324. package/dist/actions/remove-user-s-saved-episodes.cjs.map +1 -1
  325. package/dist/actions/remove-user-s-saved-episodes.d.cts +14 -2
  326. package/dist/actions/remove-user-s-saved-episodes.d.mts +14 -2
  327. package/dist/actions/remove-user-s-saved-episodes.mjs +1 -1
  328. package/dist/actions/remove-user-s-saved-episodes.mjs.map +1 -1
  329. package/dist/actions/remove-user-s-saved-shows.d.cts +13 -1
  330. package/dist/actions/remove-user-s-saved-shows.d.mts +13 -1
  331. package/dist/actions/remove-user-s-saved-tracks.cjs +1 -1
  332. package/dist/actions/remove-user-s-saved-tracks.cjs.map +1 -1
  333. package/dist/actions/remove-user-s-saved-tracks.d.cts +14 -2
  334. package/dist/actions/remove-user-s-saved-tracks.d.mts +14 -2
  335. package/dist/actions/remove-user-s-saved-tracks.mjs +1 -1
  336. package/dist/actions/remove-user-s-saved-tracks.mjs.map +1 -1
  337. package/dist/actions/remove-users-saved-albums.d.cts +13 -1
  338. package/dist/actions/remove-users-saved-albums.d.mts +13 -1
  339. package/dist/actions/save-albums-for-current-user.cjs +1 -1
  340. package/dist/actions/save-albums-for-current-user.cjs.map +1 -1
  341. package/dist/actions/save-albums-for-current-user.d.cts +14 -2
  342. package/dist/actions/save-albums-for-current-user.d.mts +14 -2
  343. package/dist/actions/save-albums-for-current-user.mjs +1 -1
  344. package/dist/actions/save-albums-for-current-user.mjs.map +1 -1
  345. package/dist/actions/save-audiobooks-for-current-user.cjs +1 -1
  346. package/dist/actions/save-audiobooks-for-current-user.cjs.map +1 -1
  347. package/dist/actions/save-audiobooks-for-current-user.d.cts +14 -2
  348. package/dist/actions/save-audiobooks-for-current-user.d.mts +14 -2
  349. package/dist/actions/save-audiobooks-for-current-user.mjs +1 -1
  350. package/dist/actions/save-audiobooks-for-current-user.mjs.map +1 -1
  351. package/dist/actions/save-episodes-for-current-user.cjs +1 -1
  352. package/dist/actions/save-episodes-for-current-user.cjs.map +1 -1
  353. package/dist/actions/save-episodes-for-current-user.d.cts +14 -2
  354. package/dist/actions/save-episodes-for-current-user.d.mts +14 -2
  355. package/dist/actions/save-episodes-for-current-user.mjs +1 -1
  356. package/dist/actions/save-episodes-for-current-user.mjs.map +1 -1
  357. package/dist/actions/save-shows-for-current-user.cjs +1 -1
  358. package/dist/actions/save-shows-for-current-user.cjs.map +1 -1
  359. package/dist/actions/save-shows-for-current-user.d.cts +14 -2
  360. package/dist/actions/save-shows-for-current-user.d.mts +14 -2
  361. package/dist/actions/save-shows-for-current-user.mjs +1 -1
  362. package/dist/actions/save-shows-for-current-user.mjs.map +1 -1
  363. package/dist/actions/save-tracks-for-current-user.cjs +1 -1
  364. package/dist/actions/save-tracks-for-current-user.cjs.map +1 -1
  365. package/dist/actions/save-tracks-for-current-user.d.cts +14 -2
  366. package/dist/actions/save-tracks-for-current-user.d.mts +14 -2
  367. package/dist/actions/save-tracks-for-current-user.mjs +1 -1
  368. package/dist/actions/save-tracks-for-current-user.mjs.map +1 -1
  369. package/dist/actions/search-for-item.d.cts +16 -4
  370. package/dist/actions/search-for-item.d.mts +16 -4
  371. package/dist/actions/seek-to-position.d.cts +13 -1
  372. package/dist/actions/seek-to-position.d.mts +13 -1
  373. package/dist/actions/set-playback-volume.cjs +1 -1
  374. package/dist/actions/set-playback-volume.cjs.map +1 -1
  375. package/dist/actions/set-playback-volume.d.cts +14 -2
  376. package/dist/actions/set-playback-volume.d.mts +14 -2
  377. package/dist/actions/set-playback-volume.mjs +1 -1
  378. package/dist/actions/set-playback-volume.mjs.map +1 -1
  379. package/dist/actions/set-repeat-mode.cjs +1 -1
  380. package/dist/actions/set-repeat-mode.cjs.map +1 -1
  381. package/dist/actions/set-repeat-mode.d.cts +16 -4
  382. package/dist/actions/set-repeat-mode.d.mts +16 -4
  383. package/dist/actions/set-repeat-mode.mjs +1 -1
  384. package/dist/actions/set-repeat-mode.mjs.map +1 -1
  385. package/dist/actions/skip-to-next.d.cts +13 -1
  386. package/dist/actions/skip-to-next.d.mts +13 -1
  387. package/dist/actions/skip-to-previous.cjs +1 -1
  388. package/dist/actions/skip-to-previous.cjs.map +1 -1
  389. package/dist/actions/skip-to-previous.d.cts +14 -2
  390. package/dist/actions/skip-to-previous.d.mts +14 -2
  391. package/dist/actions/skip-to-previous.mjs +1 -1
  392. package/dist/actions/skip-to-previous.mjs.map +1 -1
  393. package/dist/actions/start-resume-playback.cjs +1 -1
  394. package/dist/actions/start-resume-playback.cjs.map +1 -1
  395. package/dist/actions/start-resume-playback.d.cts +14 -2
  396. package/dist/actions/start-resume-playback.d.cts.map +1 -1
  397. package/dist/actions/start-resume-playback.d.mts +14 -2
  398. package/dist/actions/start-resume-playback.d.mts.map +1 -1
  399. package/dist/actions/start-resume-playback.mjs +1 -1
  400. package/dist/actions/start-resume-playback.mjs.map +1 -1
  401. package/dist/actions/toggle-playback-shuffle.d.cts +13 -1
  402. package/dist/actions/toggle-playback-shuffle.d.mts +13 -1
  403. package/dist/actions/transfer-playback.cjs +1 -1
  404. package/dist/actions/transfer-playback.cjs.map +1 -1
  405. package/dist/actions/transfer-playback.d.cts +14 -2
  406. package/dist/actions/transfer-playback.d.mts +14 -2
  407. package/dist/actions/transfer-playback.mjs +1 -1
  408. package/dist/actions/transfer-playback.mjs.map +1 -1
  409. package/dist/actions/unfollow-artists-or-users.d.cts +13 -1
  410. package/dist/actions/unfollow-artists-or-users.d.mts +13 -1
  411. package/dist/actions/unfollow-playlist.d.cts +13 -1
  412. package/dist/actions/unfollow-playlist.d.mts +13 -1
  413. package/dist/actions/update-playlist-items.cjs +1 -1
  414. package/dist/actions/update-playlist-items.cjs.map +1 -1
  415. package/dist/actions/update-playlist-items.d.cts +14 -2
  416. package/dist/actions/update-playlist-items.d.mts +14 -2
  417. package/dist/actions/update-playlist-items.mjs +1 -1
  418. package/dist/actions/update-playlist-items.mjs.map +1 -1
  419. package/dist/app.cjs +5 -2
  420. package/dist/app.cjs.map +1 -1
  421. package/dist/app.d.cts +9 -1
  422. package/dist/app.d.cts.map +1 -1
  423. package/dist/app.d.mts +9 -1
  424. package/dist/app.d.mts.map +1 -1
  425. package/dist/app.mjs +3 -1
  426. package/dist/app.mjs.map +1 -1
  427. package/package.json +1 -1
@@ -3,19 +3,31 @@ 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.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const spotifySetRepeatMode: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- state: "context" | "off" | "track";
16
+ state: "track" | "context" | "off";
17
17
  device_id?: string | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
25
+ connectionId: z.ZodString;
26
+ entityId: z.ZodString;
27
+ instanceId: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ accessToken: z.ZodString;
30
+ }, z.core.$strip>>]>;
19
31
  //#endregion
20
32
  export { spotifySetRepeatMode };
21
33
  //# sourceMappingURL=set-repeat-mode.d.cts.map
@@ -3,19 +3,31 @@ 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.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const spotifySetRepeatMode: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- state: "context" | "off" | "track";
16
+ state: "track" | "context" | "off";
17
17
  device_id?: string | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
25
+ connectionId: z.ZodString;
26
+ entityId: z.ZodString;
27
+ instanceId: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ accessToken: z.ZodString;
30
+ }, z.core.$strip>>]>;
19
31
  //#endregion
20
32
  export { spotifySetRepeatMode };
21
33
  //# sourceMappingURL=set-repeat-mode.d.mts.map
@@ -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,oLAOF;AACV,CAAC"}
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"}
@@ -10,7 +10,19 @@ declare const SpotifySkipToNextOutput: z.ZodObject<{
10
10
  }, z.core.$loose>;
11
11
  declare const spotifySkipToNext: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  device_id?: string | undefined;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
14
+ connectionId: z.ZodString;
15
+ entityId: z.ZodString;
16
+ instanceId: z.ZodString;
17
+ }, z.core.$strip>, z.ZodObject<{
18
+ accessToken: z.ZodString;
19
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
20
+ connectionId: z.ZodString;
21
+ entityId: z.ZodString;
22
+ instanceId: z.ZodString;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ accessToken: z.ZodString;
25
+ }, z.core.$strip>>]>;
14
26
  //#endregion
15
27
  export { spotifySkipToNext };
16
28
  //# sourceMappingURL=skip-to-next.d.cts.map
@@ -10,7 +10,19 @@ declare const SpotifySkipToNextOutput: z.ZodObject<{
10
10
  }, z.core.$loose>;
11
11
  declare const spotifySkipToNext: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  device_id?: string | undefined;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
14
+ connectionId: z.ZodString;
15
+ entityId: z.ZodString;
16
+ instanceId: z.ZodString;
17
+ }, z.core.$strip>, z.ZodObject<{
18
+ accessToken: z.ZodString;
19
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
20
+ connectionId: z.ZodString;
21
+ entityId: z.ZodString;
22
+ instanceId: z.ZodString;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ accessToken: z.ZodString;
25
+ }, z.core.$strip>>]>;
14
26
  //#endregion
15
27
  export { spotifySkipToNext };
16
28
  //# sourceMappingURL=skip-to-next.d.mts.map
@@ -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;AAE3K,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,10 +6,22 @@ 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.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const spotifySkipToPrevious: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  device_id?: string | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ accessToken: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { spotifySkipToPrevious };
15
27
  //# sourceMappingURL=skip-to-previous.d.cts.map
@@ -6,10 +6,22 @@ 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.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const spotifySkipToPrevious: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  device_id?: string | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ accessToken: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { spotifySkipToPrevious };
15
27
  //# sourceMappingURL=skip-to-previous.d.mts.map
@@ -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,+JAOF;AACV,CAAC"}
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;AAElN,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,14 +10,26 @@ 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.$strip>;
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;
17
17
  device_id?: string | undefined;
18
18
  context_uri?: string | undefined;
19
19
  position_ms?: number | undefined;
20
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
21
+ connectionId: z.ZodString;
22
+ entityId: z.ZodString;
23
+ instanceId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ accessToken: z.ZodString;
26
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
27
+ connectionId: z.ZodString;
28
+ entityId: z.ZodString;
29
+ instanceId: z.ZodString;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ accessToken: z.ZodString;
32
+ }, z.core.$strip>>]>;
21
33
  //#endregion
22
34
  export { spotifyStartResumePlayback };
23
35
  //# sourceMappingURL=start-resume-playback.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"start-resume-playback.d.cts","names":[],"sources":["../../src/actions/start-resume-playback.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAO/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA;;WAMrC,MAAA"}
1
+ {"version":3,"file":"start-resume-playback.d.cts","names":[],"sources":["../../src/actions/start-resume-playback.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAO/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -10,14 +10,26 @@ 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.$strip>;
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;
17
17
  device_id?: string | undefined;
18
18
  context_uri?: string | undefined;
19
19
  position_ms?: number | undefined;
20
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
21
+ connectionId: z.ZodString;
22
+ entityId: z.ZodString;
23
+ instanceId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ accessToken: z.ZodString;
26
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
27
+ connectionId: z.ZodString;
28
+ entityId: z.ZodString;
29
+ instanceId: z.ZodString;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ accessToken: z.ZodString;
32
+ }, z.core.$strip>>]>;
21
33
  //#endregion
22
34
  export { spotifyStartResumePlayback };
23
35
  //# sourceMappingURL=start-resume-playback.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"start-resume-playback.d.mts","names":[],"sources":["../../src/actions/start-resume-playback.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAO/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA;;WAMrC,MAAA"}
1
+ {"version":3,"file":"start-resume-playback.d.mts","names":[],"sources":["../../src/actions/start-resume-playback.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAO/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
@@ -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 };
@@ -1 +1 @@
1
- {"version":3,"file":"start-resume-playback.mjs","names":[],"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":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,EAAE,OAAO;EACtD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;EAC3N,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uRAAuR,CAAC,CAAC,SAAS;EACrV,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;EACnO,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N,CAAC,CAAC,SAAS;EACvQ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS;CACxP,CAAC,CAAC,CAAC,SAAS,0CASH;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,sMAOF;AACV,CAAC"}
1
+ {"version":3,"file":"start-resume-playback.mjs","names":[],"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":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,EAAE,OAAO;EACtD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;EAC3N,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uRAAuR,CAAC,CAAC,SAAS;EACrV,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL,CAAC,CAAC,SAAS;EACnO,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2NAA2N,CAAC,CAAC,SAAS;EACvQ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS;CACxP,CAAC,CAAC,CAAC,SAAS,0CASH;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sMAOhB;AACV,CAAC"}
@@ -12,7 +12,19 @@ declare const SpotifyTogglePlaybackShuffleOutput: z.ZodObject<{
12
12
  declare const spotifyTogglePlaybackShuffle: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  state: boolean;
14
14
  device_id?: string | undefined;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
16
+ connectionId: z.ZodString;
17
+ entityId: z.ZodString;
18
+ instanceId: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ accessToken: z.ZodString;
21
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
22
+ connectionId: z.ZodString;
23
+ entityId: z.ZodString;
24
+ instanceId: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ accessToken: z.ZodString;
27
+ }, z.core.$strip>>]>;
16
28
  //#endregion
17
29
  export { spotifyTogglePlaybackShuffle };
18
30
  //# sourceMappingURL=toggle-playback-shuffle.d.cts.map
@@ -12,7 +12,19 @@ declare const SpotifyTogglePlaybackShuffleOutput: z.ZodObject<{
12
12
  declare const spotifyTogglePlaybackShuffle: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  state: boolean;
14
14
  device_id?: string | undefined;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
16
+ connectionId: z.ZodString;
17
+ entityId: z.ZodString;
18
+ instanceId: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ accessToken: z.ZodString;
21
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
22
+ connectionId: z.ZodString;
23
+ entityId: z.ZodString;
24
+ instanceId: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ accessToken: z.ZodString;
27
+ }, z.core.$strip>>]>;
16
28
  //#endregion
17
29
  export { spotifyTogglePlaybackShuffle };
18
30
  //# sourceMappingURL=toggle-playback-shuffle.d.mts.map
@@ -8,7 +8,7 @@ const SpotifyTransferPlaybackInput = zod.z.object({
8
8
  const SpotifyTransferPlaybackOutput = zod.z.object({
9
9
  message: zod.z.string().default("Playback transferred successfully").describe("Status message for the transfer operation").nullable().optional(),
10
10
  success: zod.z.boolean().default(true).describe("Indicates whether the playback transfer was successful").nullable().optional()
11
- }).describe("Response schema for `TransferPlayback`\n\nNote: The Spotify API returns HTTP 204 No Content on success with an empty response body.\nThe framework wraps this as a success indicator in the data field.");
11
+ }).passthrough().describe("Response schema for `TransferPlayback`\n\nNote: The Spotify API returns HTTP 204 No Content on success with an empty response body.\nThe framework wraps this as a success indicator in the data field.");
12
12
  const spotifyTransferPlayback = require_action.action("SPOTIFY_TRANSFER_PLAYBACK", {
13
13
  slug: "spotify-transfer-playback",
14
14
  name: "Transfer playback",
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-playback.cjs","names":["z","action"],"sources":["../../src/actions/transfer-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyTransferPlaybackInput = z.object({\n play: z.boolean().describe(\"Whether to start playback on the new device. If true, playback will start on the new device. If false or not provided, the current playback state is maintained.\").optional(),\n device_ids: z.array(z.string()).describe(\"List containing the device ID to transfer playback to. Note: Only a single device_id is currently supported by Spotify API. Obtain device IDs using the get_available_devices action. Example: ['74ASZWbe4lXaubB36ztrGX']\"),\n}).describe(\"Request schema for `TransferPlayback`\");\nexport const SpotifyTransferPlaybackOutput = z.object({\n message: z.string().default(\"Playback transferred successfully\").describe(\"Status message for the transfer operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the playback transfer was successful\").nullable().optional(),\n}).describe(\"Response schema for `TransferPlayback`\\n\\nNote: The Spotify API returns HTTP 204 No Content on success with an empty response body.\\nThe framework wraps this as a success indicator in the data field.\");\n\nexport const spotifyTransferPlayback = action(\"SPOTIFY_TRANSFER_PLAYBACK\", {\n slug: \"spotify-transfer-playback\",\n name: \"Transfer playback\",\n description: \"Transfer playback to a new device and optionally begin playback. Requirements: - Spotify Premium subscription is required - Target device must be active and available (use Get Available Devices to retrieve device IDs) - Requires user-modify-playback-state scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. Returns 204 No Content on success, 403 Forbidden if user doesn't have Premium.\",\n input: SpotifyTransferPlaybackInput,\n output: SpotifyTransferPlaybackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACxM,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2NAA2N;AACtQ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,mCAAmC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,yMAAyM;AAErN,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"transfer-playback.cjs","names":["z","action"],"sources":["../../src/actions/transfer-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyTransferPlaybackInput = z.object({\n play: z.boolean().describe(\"Whether to start playback on the new device. If true, playback will start on the new device. If false or not provided, the current playback state is maintained.\").optional(),\n device_ids: z.array(z.string()).describe(\"List containing the device ID to transfer playback to. Note: Only a single device_id is currently supported by Spotify API. Obtain device IDs using the get_available_devices action. Example: ['74ASZWbe4lXaubB36ztrGX']\"),\n}).describe(\"Request schema for `TransferPlayback`\");\nexport const SpotifyTransferPlaybackOutput = z.object({\n message: z.string().default(\"Playback transferred successfully\").describe(\"Status message for the transfer operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the playback transfer was successful\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `TransferPlayback`\\n\\nNote: The Spotify API returns HTTP 204 No Content on success with an empty response body.\\nThe framework wraps this as a success indicator in the data field.\");\n\nexport const spotifyTransferPlayback = action(\"SPOTIFY_TRANSFER_PLAYBACK\", {\n slug: \"spotify-transfer-playback\",\n name: \"Transfer playback\",\n description: \"Transfer playback to a new device and optionally begin playback. Requirements: - Spotify Premium subscription is required - Target device must be active and available (use Get Available Devices to retrieve device IDs) - Requires user-modify-playback-state scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. Returns 204 No Content on success, 403 Forbidden if user doesn't have Premium.\",\n input: SpotifyTransferPlaybackInput,\n output: SpotifyTransferPlaybackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACxM,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2NAA2N;AACtQ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,mCAAmC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yMAAyM;AAEnO,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,11 +8,23 @@ declare const SpotifyTransferPlaybackInput: z.ZodObject<{
8
8
  declare const SpotifyTransferPlaybackOutput: z.ZodObject<{
9
9
  message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
10
10
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const spotifyTransferPlayback: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  device_ids: string[];
14
14
  play?: boolean | undefined;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
16
+ connectionId: z.ZodString;
17
+ entityId: z.ZodString;
18
+ instanceId: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ accessToken: z.ZodString;
21
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
22
+ connectionId: z.ZodString;
23
+ entityId: z.ZodString;
24
+ instanceId: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ accessToken: z.ZodString;
27
+ }, z.core.$strip>>]>;
16
28
  //#endregion
17
29
  export { spotifyTransferPlayback };
18
30
  //# sourceMappingURL=transfer-playback.d.cts.map
@@ -8,11 +8,23 @@ declare const SpotifyTransferPlaybackInput: z.ZodObject<{
8
8
  declare const SpotifyTransferPlaybackOutput: z.ZodObject<{
9
9
  message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
10
10
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const spotifyTransferPlayback: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  device_ids: string[];
14
14
  play?: boolean | undefined;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
16
+ connectionId: z.ZodString;
17
+ entityId: z.ZodString;
18
+ instanceId: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ accessToken: z.ZodString;
21
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
22
+ connectionId: z.ZodString;
23
+ entityId: z.ZodString;
24
+ instanceId: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ accessToken: z.ZodString;
27
+ }, z.core.$strip>>]>;
16
28
  //#endregion
17
29
  export { spotifyTransferPlayback };
18
30
  //# sourceMappingURL=transfer-playback.d.mts.map
@@ -11,7 +11,7 @@ const spotifyTransferPlayback = action("SPOTIFY_TRANSFER_PLAYBACK", {
11
11
  output: z.object({
12
12
  message: z.string().default("Playback transferred successfully").describe("Status message for the transfer operation").nullable().optional(),
13
13
  success: z.boolean().default(true).describe("Indicates whether the playback transfer was successful").nullable().optional()
14
- }).describe("Response schema for `TransferPlayback`\n\nNote: The Spotify API returns HTTP 204 No Content on success with an empty response body.\nThe framework wraps this as a success indicator in the data field.")
14
+ }).passthrough().describe("Response schema for `TransferPlayback`\n\nNote: The Spotify API returns HTTP 204 No Content on success with an empty response body.\nThe framework wraps this as a success indicator in the data field.")
15
15
  });
16
16
  //#endregion
17
17
  export { spotifyTransferPlayback };
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-playback.mjs","names":[],"sources":["../../src/actions/transfer-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyTransferPlaybackInput = z.object({\n play: z.boolean().describe(\"Whether to start playback on the new device. If true, playback will start on the new device. If false or not provided, the current playback state is maintained.\").optional(),\n device_ids: z.array(z.string()).describe(\"List containing the device ID to transfer playback to. Note: Only a single device_id is currently supported by Spotify API. Obtain device IDs using the get_available_devices action. Example: ['74ASZWbe4lXaubB36ztrGX']\"),\n}).describe(\"Request schema for `TransferPlayback`\");\nexport const SpotifyTransferPlaybackOutput = z.object({\n message: z.string().default(\"Playback transferred successfully\").describe(\"Status message for the transfer operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the playback transfer was successful\").nullable().optional(),\n}).describe(\"Response schema for `TransferPlayback`\\n\\nNote: The Spotify API returns HTTP 204 No Content on success with an empty response body.\\nThe framework wraps this as a success indicator in the data field.\");\n\nexport const spotifyTransferPlayback = action(\"SPOTIFY_TRANSFER_PLAYBACK\", {\n slug: \"spotify-transfer-playback\",\n name: \"Transfer playback\",\n description: \"Transfer playback to a new device and optionally begin playback. Requirements: - Spotify Premium subscription is required - Target device must be active and available (use Get Available Devices to retrieve device IDs) - Requires user-modify-playback-state scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. Returns 204 No Content on success, 403 Forbidden if user doesn't have Premium.\",\n input: SpotifyTransferPlaybackInput,\n output: SpotifyTransferPlaybackOutput,\n});\n"],"mappings":";;AAaA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0C,EAAE,OAAO;EACnD,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;EACxM,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2NAA2N;CACtQ,CAAC,CAAC,CAAC,SAAS,uCAUH;CACP,QAV2C,EAAE,OAAO;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,mCAAmC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,yMAOF;AACV,CAAC"}
1
+ {"version":3,"file":"transfer-playback.mjs","names":[],"sources":["../../src/actions/transfer-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyTransferPlaybackInput = z.object({\n play: z.boolean().describe(\"Whether to start playback on the new device. If true, playback will start on the new device. If false or not provided, the current playback state is maintained.\").optional(),\n device_ids: z.array(z.string()).describe(\"List containing the device ID to transfer playback to. Note: Only a single device_id is currently supported by Spotify API. Obtain device IDs using the get_available_devices action. Example: ['74ASZWbe4lXaubB36ztrGX']\"),\n}).describe(\"Request schema for `TransferPlayback`\");\nexport const SpotifyTransferPlaybackOutput = z.object({\n message: z.string().default(\"Playback transferred successfully\").describe(\"Status message for the transfer operation\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the playback transfer was successful\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `TransferPlayback`\\n\\nNote: The Spotify API returns HTTP 204 No Content on success with an empty response body.\\nThe framework wraps this as a success indicator in the data field.\");\n\nexport const spotifyTransferPlayback = action(\"SPOTIFY_TRANSFER_PLAYBACK\", {\n slug: \"spotify-transfer-playback\",\n name: \"Transfer playback\",\n description: \"Transfer playback to a new device and optionally begin playback. Requirements: - Spotify Premium subscription is required - Target device must be active and available (use Get Available Devices to retrieve device IDs) - Requires user-modify-playback-state scope Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. Returns 204 No Content on success, 403 Forbidden if user doesn't have Premium.\",\n input: SpotifyTransferPlaybackInput,\n output: SpotifyTransferPlaybackOutput,\n});\n"],"mappings":";;AAaA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0C,EAAE,OAAO;EACnD,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;EACxM,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2NAA2N;CACtQ,CAAC,CAAC,CAAC,SAAS,uCAUH;CACP,QAV2C,EAAE,OAAO;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,mCAAmC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yMAOhB;AACV,CAAC"}
@@ -15,7 +15,19 @@ declare const SpotifyUnfollowArtistsOrUsersOutput: z.ZodObject<{
15
15
  declare const spotifyUnfollowArtistsOrUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  ids: string;
17
17
  type: "user" | "artist";
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
25
+ connectionId: z.ZodString;
26
+ entityId: z.ZodString;
27
+ instanceId: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ accessToken: z.ZodString;
30
+ }, z.core.$strip>>]>;
19
31
  //#endregion
20
32
  export { spotifyUnfollowArtistsOrUsers };
21
33
  //# sourceMappingURL=unfollow-artists-or-users.d.cts.map
@@ -15,7 +15,19 @@ declare const SpotifyUnfollowArtistsOrUsersOutput: z.ZodObject<{
15
15
  declare const spotifyUnfollowArtistsOrUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  ids: string;
17
17
  type: "user" | "artist";
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
25
+ connectionId: z.ZodString;
26
+ entityId: z.ZodString;
27
+ instanceId: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ accessToken: z.ZodString;
30
+ }, z.core.$strip>>]>;
19
31
  //#endregion
20
32
  export { spotifyUnfollowArtistsOrUsers };
21
33
  //# sourceMappingURL=unfollow-artists-or-users.d.mts.map
@@ -10,7 +10,19 @@ declare const SpotifyUnfollowPlaylistOutput: z.ZodObject<{
10
10
  }, z.core.$loose>;
11
11
  declare const spotifyUnfollowPlaylist: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  playlist_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
14
+ connectionId: z.ZodString;
15
+ entityId: z.ZodString;
16
+ instanceId: z.ZodString;
17
+ }, z.core.$strip>, z.ZodObject<{
18
+ accessToken: z.ZodString;
19
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
20
+ connectionId: z.ZodString;
21
+ entityId: z.ZodString;
22
+ instanceId: z.ZodString;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ accessToken: z.ZodString;
25
+ }, z.core.$strip>>]>;
14
26
  //#endregion
15
27
  export { spotifyUnfollowPlaylist };
16
28
  //# sourceMappingURL=unfollow-playlist.d.cts.map