@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
@@ -1 +1 @@
1
- {"version":3,"file":"check-user-s-saved-shows.cjs","names":["z","action"],"sources":["../../src/actions/check-user-s-saved-shows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyCheckUserSSavedShowsInput = z.object({\n ids: z.string().describe(\"A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'\"),\n}).describe(\"Request schema for `CheckUserSSavedShows`\");\nexport const SpotifyCheckUserSSavedShowsOutput = z.object({\n data: z.array(z.boolean()).describe(\"Array of booleans indicating whether each show ID is saved in the user's library. The order matches the order of IDs in the request.\"),\n}).describe(\"Response schema for `CheckUserSSavedShows`\");\n\nexport const spotifyCheckUserSSavedShows = action(\"SPOTIFY_CHECK_USER_S_SAVED_SHOWS\", {\n slug: \"spotify-check-user-s-saved-shows\",\n name: \"Check user's saved shows\",\n description: \"Check if one or more shows is already saved in the current Spotify user's library. This endpoint checks whether the specified shows are saved in the authenticated user's library. It returns a list of boolean values, one for each show ID provided, indicating whether that show is saved.\",\n input: SpotifyCheckUserSSavedShowsInput,\n output: SpotifyCheckUserSSavedShowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EAC/J,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sIAAsI,EAC5K,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"check-user-s-saved-shows.cjs","names":["z","action"],"sources":["../../src/actions/check-user-s-saved-shows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyCheckUserSSavedShowsInput = z.object({\n ids: z.string().describe(\"A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'\"),\n}).describe(\"Request schema for `CheckUserSSavedShows`\");\nexport const SpotifyCheckUserSSavedShowsOutput = z.object({\n data: z.array(z.boolean()).describe(\"Array of booleans indicating whether each show ID is saved in the user's library. The order matches the order of IDs in the request.\"),\n}).passthrough().describe(\"Response schema for `CheckUserSSavedShows`\");\n\nexport const spotifyCheckUserSSavedShows = action(\"SPOTIFY_CHECK_USER_S_SAVED_SHOWS\", {\n slug: \"spotify-check-user-s-saved-shows\",\n name: \"Check user's saved shows\",\n description: \"Check if one or more shows is already saved in the current Spotify user's library. This endpoint checks whether the specified shows are saved in the authenticated user's library. It returns a list of boolean values, one for each show ID provided, indicating whether that show is saved.\",\n input: SpotifyCheckUserSSavedShowsInput,\n output: SpotifyCheckUserSSavedShowsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EAC/J,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sIAAsI,EAC5K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,10 +6,22 @@ declare const SpotifyCheckUserSSavedShowsInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const SpotifyCheckUserSSavedShowsOutput: z.ZodObject<{
8
8
  data: z.ZodArray<z.ZodBoolean>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const spotifyCheckUserSSavedShows: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  ids: string;
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 { spotifyCheckUserSSavedShows };
15
27
  //# sourceMappingURL=check-user-s-saved-shows.d.cts.map
@@ -6,10 +6,22 @@ declare const SpotifyCheckUserSSavedShowsInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const SpotifyCheckUserSSavedShowsOutput: z.ZodObject<{
8
8
  data: z.ZodArray<z.ZodBoolean>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const spotifyCheckUserSSavedShows: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  ids: string;
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 { spotifyCheckUserSSavedShows };
15
27
  //# sourceMappingURL=check-user-s-saved-shows.d.mts.map
@@ -5,7 +5,7 @@ const spotifyCheckUserSSavedShows = action("SPOTIFY_CHECK_USER_S_SAVED_SHOWS", {
5
5
  name: "Check user's saved shows",
6
6
  description: "Check if one or more shows is already saved in the current Spotify user's library. This endpoint checks whether the specified shows are saved in the authenticated user's library. It returns a list of boolean values, one for each show ID provided, indicating whether that show is saved.",
7
7
  input: z.object({ ids: z.string().describe("A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'") }).describe("Request schema for `CheckUserSSavedShows`"),
8
- output: z.object({ data: z.array(z.boolean()).describe("Array of booleans indicating whether each show ID is saved in the user's library. The order matches the order of IDs in the request.") }).describe("Response schema for `CheckUserSSavedShows`")
8
+ output: z.object({ data: z.array(z.boolean()).describe("Array of booleans indicating whether each show ID is saved in the user's library. The order matches the order of IDs in the request.") }).passthrough().describe("Response schema for `CheckUserSSavedShows`")
9
9
  });
10
10
  //#endregion
11
11
  export { spotifyCheckUserSSavedShows };
@@ -1 +1 @@
1
- {"version":3,"file":"check-user-s-saved-shows.mjs","names":[],"sources":["../../src/actions/check-user-s-saved-shows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyCheckUserSSavedShowsInput = z.object({\n ids: z.string().describe(\"A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'\"),\n}).describe(\"Request schema for `CheckUserSSavedShows`\");\nexport const SpotifyCheckUserSSavedShowsOutput = z.object({\n data: z.array(z.boolean()).describe(\"Array of booleans indicating whether each show ID is saved in the user's library. The order matches the order of IDs in the request.\"),\n}).describe(\"Response schema for `CheckUserSSavedShows`\");\n\nexport const spotifyCheckUserSSavedShows = action(\"SPOTIFY_CHECK_USER_S_SAVED_SHOWS\", {\n slug: \"spotify-check-user-s-saved-shows\",\n name: \"Check user's saved shows\",\n description: \"Check if one or more shows is already saved in the current Spotify user's library. This endpoint checks whether the specified shows are saved in the authenticated user's library. It returns a list of boolean values, one for each show ID provided, indicating whether that show is saved.\",\n input: SpotifyCheckUserSSavedShowsInput,\n output: SpotifyCheckUserSSavedShowsOutput,\n});\n"],"mappings":";;AAWA,MAAa,8BAA8B,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX8C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EAC/J,CAAC,CAAC,CAAC,SAAS,2CASH;CACP,QAT+C,EAAE,OAAO,EACxD,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sIAAsI,EAC5K,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"check-user-s-saved-shows.mjs","names":[],"sources":["../../src/actions/check-user-s-saved-shows.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyCheckUserSSavedShowsInput = z.object({\n ids: z.string().describe(\"A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs. Example: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ'\"),\n}).describe(\"Request schema for `CheckUserSSavedShows`\");\nexport const SpotifyCheckUserSSavedShowsOutput = z.object({\n data: z.array(z.boolean()).describe(\"Array of booleans indicating whether each show ID is saved in the user's library. The order matches the order of IDs in the request.\"),\n}).passthrough().describe(\"Response schema for `CheckUserSSavedShows`\");\n\nexport const spotifyCheckUserSSavedShows = action(\"SPOTIFY_CHECK_USER_S_SAVED_SHOWS\", {\n slug: \"spotify-check-user-s-saved-shows\",\n name: \"Check user's saved shows\",\n description: \"Check if one or more shows is already saved in the current Spotify user's library. This endpoint checks whether the specified shows are saved in the authenticated user's library. It returns a list of boolean values, one for each show ID provided, indicating whether that show is saved.\",\n input: SpotifyCheckUserSSavedShowsInput,\n output: SpotifyCheckUserSSavedShowsOutput,\n});\n"],"mappings":";;AAWA,MAAa,8BAA8B,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX8C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,EAC/J,CAAC,CAAC,CAAC,SAAS,2CASH;CACP,QAT+C,EAAE,OAAO,EACxD,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sIAAsI,EAC5K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -9,7 +9,19 @@ declare const SpotifyCheckUserSSavedTracksOutput: z.ZodObject<{
9
9
  }, z.core.$loose>;
10
10
  declare const spotifyCheckUserSSavedTracks: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  ids: string;
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 { spotifyCheckUserSSavedTracks };
15
27
  //# sourceMappingURL=check-user-s-saved-tracks.d.cts.map
@@ -9,7 +9,19 @@ declare const SpotifyCheckUserSSavedTracksOutput: z.ZodObject<{
9
9
  }, z.core.$loose>;
10
10
  declare const spotifyCheckUserSSavedTracks: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  ids: string;
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 { spotifyCheckUserSSavedTracks };
15
27
  //# sourceMappingURL=check-user-s-saved-tracks.d.mts.map
@@ -8,7 +8,7 @@ const SpotifyCreatePlaylistInput = zod.z.object({
8
8
  description: zod.z.string().describe("The playlist description as displayed in Spotify Clients and in the Web API. Optional field for providing additional context about the playlist.").optional(),
9
9
  collaborative: zod.z.boolean().describe("Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to create a collaborative playlist you must also set `public` to `false`. To create collaborative playlists you must have granted `playlist-modify-private` and `playlist-modify-public` [scopes](/documentation/web-api/concepts/scopes/#list-of-scopes)._").optional()
10
10
  }).describe("Request schema for `CreatePlaylist`");
11
- const SpotifyCreatePlaylist_ExternalUrlsSchema = zod.z.object({ spotify: zod.z.string().describe("The Spotify URL for the object").nullable() }).describe("Known external URLs for the object");
11
+ const SpotifyCreatePlaylist_ExternalUrlsSchema = zod.z.object({ spotify: zod.z.string().describe("The Spotify URL for the object").nullable() }).passthrough().describe("Known external URLs for the object");
12
12
  const SpotifyCreatePlaylist_OwnerSchema = zod.z.object({
13
13
  id: zod.z.string().describe("The Spotify user ID for this user").nullable(),
14
14
  uri: zod.z.string().describe("The Spotify URI for this user").nullable(),
@@ -16,25 +16,25 @@ const SpotifyCreatePlaylist_OwnerSchema = zod.z.object({
16
16
  type: zod.z.string().describe("The object type: user").nullable(),
17
17
  display_name: zod.z.string().describe("The name displayed on the user's profile. null if not available").nullable().optional(),
18
18
  external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable()
19
- }).describe("The user who owns the playlist");
19
+ }).passthrough().describe("The user who owns the playlist");
20
20
  const SpotifyCreatePlaylist_ImageSchema = zod.z.object({
21
21
  url: zod.z.string().describe("The source URL of the image").nullable(),
22
22
  width: zod.z.number().int().describe("The image width in pixels").nullable(),
23
23
  height: zod.z.number().int().describe("The image height in pixels").nullable()
24
- }).describe("Image object with dimensions");
24
+ }).passthrough().describe("Image object with dimensions");
25
25
  const SpotifyCreatePlaylist_AddedBySchema = zod.z.object({
26
26
  id: zod.z.string().describe("The Spotify user ID for this user").nullable(),
27
27
  uri: zod.z.string().describe("The Spotify URI for this user").nullable(),
28
28
  href: zod.z.string().describe("A link to the Web API endpoint for this user").nullable(),
29
29
  type: zod.z.string().describe("The object type: user").nullable(),
30
30
  external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable()
31
- }).describe("The Spotify user who added the track or episode");
31
+ }).passthrough().describe("The Spotify user who added the track or episode");
32
32
  const SpotifyCreatePlaylist_PlaylistTrackItemSchema = zod.z.object({
33
33
  track: zod.z.unknown().describe("Information about the track or episode (can be TrackObject or EpisodeObject)"),
34
34
  added_at: zod.z.string().describe("The date and time the track or episode was added. Some very old playlists may return null").nullable().optional(),
35
35
  added_by: SpotifyCreatePlaylist_AddedBySchema.nullable().optional(),
36
36
  is_local: zod.z.boolean().describe("Whether this track or episode is a local file or not").nullable()
37
- }).describe("A single playlist track or episode item");
37
+ }).passthrough().describe("A single playlist track or episode item");
38
38
  const SpotifyCreatePlaylist_TracksSchema = zod.z.object({
39
39
  href: zod.z.string().describe("A link to the Web API endpoint returning the full result").nullable(),
40
40
  next: zod.z.string().nullable(),
@@ -43,7 +43,7 @@ const SpotifyCreatePlaylist_TracksSchema = zod.z.object({
43
43
  total: zod.z.number().int().describe("The total number of items available to return").nullable(),
44
44
  offset: zod.z.number().int().describe("The offset of the items returned").nullable(),
45
45
  previous: zod.z.string().nullable()
46
- }).describe("The tracks of the playlist");
46
+ }).passthrough().describe("The tracks of the playlist");
47
47
  const SpotifyCreatePlaylistOutput = zod.z.object({
48
48
  id: zod.z.string().describe("The Spotify ID for the playlist").nullable(),
49
49
  uri: zod.z.string().describe("The Spotify URI for the playlist").nullable(),
@@ -58,7 +58,7 @@ const SpotifyCreatePlaylistOutput = zod.z.object({
58
58
  snapshot_id: zod.z.string().describe("The version identifier for the current playlist").nullable(),
59
59
  collaborative: zod.z.boolean().describe("true if the owner allows other users to modify the playlist").nullable(),
60
60
  external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable()
61
- }).describe("Response schema for `CreatePlaylist`\n\nReturns the newly created playlist object with details including:\n- id: The Spotify ID for the playlist\n- name: The playlist name\n- description: The playlist description\n- public: Whether the playlist is public (true) or private (false)\n- collaborative: Whether the playlist is collaborative\n- owner: Object containing the owner's user ID and profile link\n- uri: The Spotify URI for the playlist\n- external_urls: External URLs including the Spotify web URL\n- snapshot_id: The version identifier for the current playlist\n- tracks: Object containing playlist tracks (initially empty with total: 0)");
61
+ }).passthrough().describe("Response schema for `CreatePlaylist`\n\nReturns the newly created playlist object with details including:\n- id: The Spotify ID for the playlist\n- name: The playlist name\n- description: The playlist description\n- public: Whether the playlist is public (true) or private (false)\n- collaborative: Whether the playlist is collaborative\n- owner: Object containing the owner's user ID and profile link\n- uri: The Spotify URI for the playlist\n- external_urls: External URLs including the Spotify web URL\n- snapshot_id: The version identifier for the current playlist\n- tracks: Object containing playlist tracks (initially empty with total: 0)");
62
62
  const spotifyCreatePlaylist = require_action.action("SPOTIFY_CREATE_PLAYLIST", {
63
63
  slug: "spotify-create-playlist",
64
64
  name: "Create playlist",
@@ -1 +1 @@
1
- {"version":3,"file":"create-playlist.cjs","names":["z","action"],"sources":["../../src/actions/create-playlist.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyCreatePlaylistInput = z.object({\n name: z.string().describe(\"The name for the new playlist, for example `\\\"Your Coolest Playlist\\\"`. This name does not need to be unique; a user may have several playlists with the same name.\"),\n public: z.boolean().describe(\"Defaults to `true`. If `true` the playlist will be public, if `false` it will be private. To be able to create private playlists, the user must have granted the `playlist-modify-private` [scope](/documentation/web-api/concepts/scopes/#list-of-scopes)\").optional(),\n user_id: z.string().describe(\"The Spotify user ID for whom to create the playlist. This can be obtained from the user's profile (e.g., using get_current_user_s_profile action).\"),\n description: z.string().describe(\"The playlist description as displayed in Spotify Clients and in the Web API. Optional field for providing additional context about the playlist.\").optional(),\n collaborative: z.boolean().describe(\"Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to create a collaborative playlist you must also set `public` to `false`. To create collaborative playlists you must have granted `playlist-modify-private` and `playlist-modify-public` [scopes](/documentation/web-api/concepts/scopes/#list-of-scopes)._\").optional(),\n}).describe(\"Request schema for `CreatePlaylist`\");\nconst SpotifyCreatePlaylist_ExternalUrlsSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object\").nullable(),\n}).describe(\"Known external URLs for the object\");\nconst SpotifyCreatePlaylist_OwnerSchema = z.object({\n id: z.string().describe(\"The Spotify user ID for this user\").nullable(),\n uri: z.string().describe(\"The Spotify URI for this user\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint for this user\").nullable(),\n type: z.string().describe(\"The object type: user\").nullable(),\n display_name: z.string().describe(\"The name displayed on the user's profile. null if not available\").nullable().optional(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).describe(\"The user who owns the playlist\");\nconst SpotifyCreatePlaylist_ImageSchema = z.object({\n url: z.string().describe(\"The source URL of the image\").nullable(),\n width: z.number().int().describe(\"The image width in pixels\").nullable(),\n height: z.number().int().describe(\"The image height in pixels\").nullable(),\n}).describe(\"Image object with dimensions\");\nconst SpotifyCreatePlaylist_AddedBySchema = z.object({\n id: z.string().describe(\"The Spotify user ID for this user\").nullable(),\n uri: z.string().describe(\"The Spotify URI for this user\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint for this user\").nullable(),\n type: z.string().describe(\"The object type: user\").nullable(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).describe(\"The Spotify user who added the track or episode\");\nconst SpotifyCreatePlaylist_PlaylistTrackItemSchema = z.object({\n track: z.unknown().describe(\"Information about the track or episode (can be TrackObject or EpisodeObject)\"),\n added_at: z.string().describe(\"The date and time the track or episode was added. Some very old playlists may return null\").nullable().optional(),\n added_by: SpotifyCreatePlaylist_AddedBySchema.nullable().optional(),\n is_local: z.boolean().describe(\"Whether this track or episode is a local file or not\").nullable(),\n}).describe(\"A single playlist track or episode item\");\nconst SpotifyCreatePlaylist_TracksSchema = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result\").nullable(),\n next: z.string().nullable(),\n items: z.array(SpotifyCreatePlaylist_PlaylistTrackItemSchema).describe(\"Array of playlist tracks/episodes. When a playlist is first created, this array is empty.\"),\n limit: z.number().int().describe(\"The maximum number of items in the response\").nullable(),\n total: z.number().int().describe(\"The total number of items available to return\").nullable(),\n offset: z.number().int().describe(\"The offset of the items returned\").nullable(),\n previous: z.string().nullable(),\n}).describe(\"The tracks of the playlist\");\nexport const SpotifyCreatePlaylistOutput = z.object({\n id: z.string().describe(\"The Spotify ID for the playlist\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the playlist\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details\").nullable(),\n name: z.string().describe(\"The name of the playlist\").nullable(),\n type: z.string().describe(\"The object type: playlist\").nullable(),\n owner: SpotifyCreatePlaylist_OwnerSchema.nullable(),\n images: z.array(SpotifyCreatePlaylist_ImageSchema).describe(\"Images for the playlist. The array may be empty or contain up to three images\"),\n public: z.boolean().describe(\"The playlist's public/private status (true = public, false = private, null = not relevant)\").nullable(),\n tracks: SpotifyCreatePlaylist_TracksSchema.nullable(),\n description: z.string().describe(\"The playlist description. Only returned for modified, verified playlists, otherwise null\").nullable().optional(),\n snapshot_id: z.string().describe(\"The version identifier for the current playlist\").nullable(),\n collaborative: z.boolean().describe(\"true if the owner allows other users to modify the playlist\").nullable(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).describe(\"Response schema for `CreatePlaylist`\\n\\nReturns the newly created playlist object with details including:\\n- id: The Spotify ID for the playlist\\n- name: The playlist name\\n- description: The playlist description\\n- public: Whether the playlist is public (true) or private (false)\\n- collaborative: Whether the playlist is collaborative\\n- owner: Object containing the owner's user ID and profile link\\n- uri: The Spotify URI for the playlist\\n- external_urls: External URLs including the Spotify web URL\\n- snapshot_id: The version identifier for the current playlist\\n- tracks: Object containing playlist tracks (initially empty with total: 0)\");\n\nexport const spotifyCreatePlaylist = action(\"SPOTIFY_CREATE_PLAYLIST\", {\n slug: \"spotify-create-playlist\",\n name: \"Create playlist\",\n description: \"Create a playlist for a Spotify user. (The playlist will be empty until you [add tracks](/documentation/web-api/reference/add-tracks-to-playlist).) Each user is generally limited to a maximum of 11000 playlists.\",\n input: SpotifyCreatePlaylistInput,\n output: SpotifyCreatePlaylistOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4PAA4P,CAAC,CAAC,SAAS;CACpS,SAASA,IAAAA,EAAE,OAAO,CAAC,CA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{"version":3,"file":"create-playlist.cjs","names":["z","action"],"sources":["../../src/actions/create-playlist.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyCreatePlaylistInput = z.object({\n name: z.string().describe(\"The name for the new playlist, for example `\\\"Your Coolest Playlist\\\"`. This name does not need to be unique; a user may have several playlists with the same name.\"),\n public: z.boolean().describe(\"Defaults to `true`. If `true` the playlist will be public, if `false` it will be private. To be able to create private playlists, the user must have granted the `playlist-modify-private` [scope](/documentation/web-api/concepts/scopes/#list-of-scopes)\").optional(),\n user_id: z.string().describe(\"The Spotify user ID for whom to create the playlist. This can be obtained from the user's profile (e.g., using get_current_user_s_profile action).\"),\n description: z.string().describe(\"The playlist description as displayed in Spotify Clients and in the Web API. Optional field for providing additional context about the playlist.\").optional(),\n collaborative: z.boolean().describe(\"Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to create a collaborative playlist you must also set `public` to `false`. To create collaborative playlists you must have granted `playlist-modify-private` and `playlist-modify-public` [scopes](/documentation/web-api/concepts/scopes/#list-of-scopes)._\").optional(),\n}).describe(\"Request schema for `CreatePlaylist`\");\nconst SpotifyCreatePlaylist_ExternalUrlsSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object\").nullable(),\n}).passthrough().describe(\"Known external URLs for the object\");\nconst SpotifyCreatePlaylist_OwnerSchema = z.object({\n id: z.string().describe(\"The Spotify user ID for this user\").nullable(),\n uri: z.string().describe(\"The Spotify URI for this user\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint for this user\").nullable(),\n type: z.string().describe(\"The object type: user\").nullable(),\n display_name: z.string().describe(\"The name displayed on the user's profile. null if not available\").nullable().optional(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).passthrough().describe(\"The user who owns the playlist\");\nconst SpotifyCreatePlaylist_ImageSchema = z.object({\n url: z.string().describe(\"The source URL of the image\").nullable(),\n width: z.number().int().describe(\"The image width in pixels\").nullable(),\n height: z.number().int().describe(\"The image height in pixels\").nullable(),\n}).passthrough().describe(\"Image object with dimensions\");\nconst SpotifyCreatePlaylist_AddedBySchema = z.object({\n id: z.string().describe(\"The Spotify user ID for this user\").nullable(),\n uri: z.string().describe(\"The Spotify URI for this user\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint for this user\").nullable(),\n type: z.string().describe(\"The object type: user\").nullable(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).passthrough().describe(\"The Spotify user who added the track or episode\");\nconst SpotifyCreatePlaylist_PlaylistTrackItemSchema = z.object({\n track: z.unknown().describe(\"Information about the track or episode (can be TrackObject or EpisodeObject)\"),\n added_at: z.string().describe(\"The date and time the track or episode was added. Some very old playlists may return null\").nullable().optional(),\n added_by: SpotifyCreatePlaylist_AddedBySchema.nullable().optional(),\n is_local: z.boolean().describe(\"Whether this track or episode is a local file or not\").nullable(),\n}).passthrough().describe(\"A single playlist track or episode item\");\nconst SpotifyCreatePlaylist_TracksSchema = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result\").nullable(),\n next: z.string().nullable(),\n items: z.array(SpotifyCreatePlaylist_PlaylistTrackItemSchema).describe(\"Array of playlist tracks/episodes. When a playlist is first created, this array is empty.\"),\n limit: z.number().int().describe(\"The maximum number of items in the response\").nullable(),\n total: z.number().int().describe(\"The total number of items available to return\").nullable(),\n offset: z.number().int().describe(\"The offset of the items returned\").nullable(),\n previous: z.string().nullable(),\n}).passthrough().describe(\"The tracks of the playlist\");\nexport const SpotifyCreatePlaylistOutput = z.object({\n id: z.string().describe(\"The Spotify ID for the playlist\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the playlist\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details\").nullable(),\n name: z.string().describe(\"The name of the playlist\").nullable(),\n type: z.string().describe(\"The object type: playlist\").nullable(),\n owner: SpotifyCreatePlaylist_OwnerSchema.nullable(),\n images: z.array(SpotifyCreatePlaylist_ImageSchema).describe(\"Images for the playlist. The array may be empty or contain up to three images\"),\n public: z.boolean().describe(\"The playlist's public/private status (true = public, false = private, null = not relevant)\").nullable(),\n tracks: SpotifyCreatePlaylist_TracksSchema.nullable(),\n description: z.string().describe(\"The playlist description. Only returned for modified, verified playlists, otherwise null\").nullable().optional(),\n snapshot_id: z.string().describe(\"The version identifier for the current playlist\").nullable(),\n collaborative: z.boolean().describe(\"true if the owner allows other users to modify the playlist\").nullable(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).passthrough().describe(\"Response schema for `CreatePlaylist`\\n\\nReturns the newly created playlist object with details including:\\n- id: The Spotify ID for the playlist\\n- name: The playlist name\\n- description: The playlist description\\n- public: Whether the playlist is public (true) or private (false)\\n- collaborative: Whether the playlist is collaborative\\n- owner: Object containing the owner's user ID and profile link\\n- uri: The Spotify URI for the playlist\\n- external_urls: External URLs including the Spotify web URL\\n- snapshot_id: The version identifier for the current playlist\\n- tracks: Object containing playlist tracks (initially empty with total: 0)\");\n\nexport const spotifyCreatePlaylist = action(\"SPOTIFY_CREATE_PLAYLIST\", {\n slug: \"spotify-create-playlist\",\n name: \"Create playlist\",\n description: \"Create a playlist for a Spotify user. (The playlist will be empty until you [add tracks](/documentation/web-api/reference/add-tracks-to-playlist).) Each user is generally limited to a maximum of 11000 playlists.\",\n input: SpotifyCreatePlaylistInput,\n output: SpotifyCreatePlaylistOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4PAA4P,CAAC,CAAC,SAAS;CACpS,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CACjL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CAC9L,eAAeA,IAAAA,EAAE,QAAQ,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22,13 @@ declare const SpotifyCreatePlaylistOutput: z.ZodObject<{
22
22
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  external_urls: z.ZodNullable<z.ZodObject<{
24
24
  spotify: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>;
26
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>>;
27
27
  images: z.ZodArray<z.ZodObject<{
28
28
  url: z.ZodNullable<z.ZodString>;
29
29
  width: z.ZodNullable<z.ZodNumber>;
30
30
  height: z.ZodNullable<z.ZodNumber>;
31
- }, z.core.$strip>>;
31
+ }, z.core.$loose>>;
32
32
  public: z.ZodNullable<z.ZodBoolean>;
33
33
  tracks: z.ZodNullable<z.ZodObject<{
34
34
  href: z.ZodNullable<z.ZodString>;
@@ -43,29 +43,41 @@ declare const SpotifyCreatePlaylistOutput: z.ZodObject<{
43
43
  type: z.ZodNullable<z.ZodString>;
44
44
  external_urls: z.ZodNullable<z.ZodObject<{
45
45
  spotify: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>>>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>>>;
48
48
  is_local: z.ZodNullable<z.ZodBoolean>;
49
- }, z.core.$strip>>;
49
+ }, z.core.$loose>>;
50
50
  limit: z.ZodNullable<z.ZodNumber>;
51
51
  total: z.ZodNullable<z.ZodNumber>;
52
52
  offset: z.ZodNullable<z.ZodNumber>;
53
53
  previous: z.ZodNullable<z.ZodString>;
54
- }, z.core.$strip>>;
54
+ }, z.core.$loose>>;
55
55
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  snapshot_id: z.ZodNullable<z.ZodString>;
57
57
  collaborative: z.ZodNullable<z.ZodBoolean>;
58
58
  external_urls: z.ZodNullable<z.ZodObject<{
59
59
  spotify: z.ZodNullable<z.ZodString>;
60
- }, z.core.$strip>>;
61
- }, z.core.$strip>;
60
+ }, z.core.$loose>>;
61
+ }, z.core.$loose>;
62
62
  declare const spotifyCreatePlaylist: import("@keystrokehq/action").WorkflowActionDefinition<{
63
63
  name: string;
64
64
  user_id: string;
65
65
  public?: boolean | undefined;
66
66
  description?: string | undefined;
67
67
  collaborative?: boolean | undefined;
68
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
68
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
69
+ connectionId: z.ZodString;
70
+ entityId: z.ZodString;
71
+ instanceId: z.ZodString;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ accessToken: z.ZodString;
74
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
75
+ connectionId: z.ZodString;
76
+ entityId: z.ZodString;
77
+ instanceId: z.ZodString;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ accessToken: z.ZodString;
80
+ }, z.core.$strip>>]>;
69
81
  //#endregion
70
82
  export { spotifyCreatePlaylist };
71
83
  //# sourceMappingURL=create-playlist.d.cts.map
@@ -22,13 +22,13 @@ declare const SpotifyCreatePlaylistOutput: z.ZodObject<{
22
22
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  external_urls: z.ZodNullable<z.ZodObject<{
24
24
  spotify: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>;
26
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>>;
27
27
  images: z.ZodArray<z.ZodObject<{
28
28
  url: z.ZodNullable<z.ZodString>;
29
29
  width: z.ZodNullable<z.ZodNumber>;
30
30
  height: z.ZodNullable<z.ZodNumber>;
31
- }, z.core.$strip>>;
31
+ }, z.core.$loose>>;
32
32
  public: z.ZodNullable<z.ZodBoolean>;
33
33
  tracks: z.ZodNullable<z.ZodObject<{
34
34
  href: z.ZodNullable<z.ZodString>;
@@ -43,29 +43,41 @@ declare const SpotifyCreatePlaylistOutput: z.ZodObject<{
43
43
  type: z.ZodNullable<z.ZodString>;
44
44
  external_urls: z.ZodNullable<z.ZodObject<{
45
45
  spotify: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>>>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>>>;
48
48
  is_local: z.ZodNullable<z.ZodBoolean>;
49
- }, z.core.$strip>>;
49
+ }, z.core.$loose>>;
50
50
  limit: z.ZodNullable<z.ZodNumber>;
51
51
  total: z.ZodNullable<z.ZodNumber>;
52
52
  offset: z.ZodNullable<z.ZodNumber>;
53
53
  previous: z.ZodNullable<z.ZodString>;
54
- }, z.core.$strip>>;
54
+ }, z.core.$loose>>;
55
55
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  snapshot_id: z.ZodNullable<z.ZodString>;
57
57
  collaborative: z.ZodNullable<z.ZodBoolean>;
58
58
  external_urls: z.ZodNullable<z.ZodObject<{
59
59
  spotify: z.ZodNullable<z.ZodString>;
60
- }, z.core.$strip>>;
61
- }, z.core.$strip>;
60
+ }, z.core.$loose>>;
61
+ }, z.core.$loose>;
62
62
  declare const spotifyCreatePlaylist: import("@keystrokehq/action").WorkflowActionDefinition<{
63
63
  name: string;
64
64
  user_id: string;
65
65
  public?: boolean | undefined;
66
66
  description?: string | undefined;
67
67
  collaborative?: boolean | undefined;
68
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
68
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
69
+ connectionId: z.ZodString;
70
+ entityId: z.ZodString;
71
+ instanceId: z.ZodString;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ accessToken: z.ZodString;
74
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
75
+ connectionId: z.ZodString;
76
+ entityId: z.ZodString;
77
+ instanceId: z.ZodString;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ accessToken: z.ZodString;
80
+ }, z.core.$strip>>]>;
69
81
  //#endregion
70
82
  export { spotifyCreatePlaylist };
71
83
  //# sourceMappingURL=create-playlist.d.mts.map
@@ -8,7 +8,7 @@ const SpotifyCreatePlaylistInput = z.object({
8
8
  description: z.string().describe("The playlist description as displayed in Spotify Clients and in the Web API. Optional field for providing additional context about the playlist.").optional(),
9
9
  collaborative: z.boolean().describe("Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to create a collaborative playlist you must also set `public` to `false`. To create collaborative playlists you must have granted `playlist-modify-private` and `playlist-modify-public` [scopes](/documentation/web-api/concepts/scopes/#list-of-scopes)._").optional()
10
10
  }).describe("Request schema for `CreatePlaylist`");
11
- const SpotifyCreatePlaylist_ExternalUrlsSchema = z.object({ spotify: z.string().describe("The Spotify URL for the object").nullable() }).describe("Known external URLs for the object");
11
+ const SpotifyCreatePlaylist_ExternalUrlsSchema = z.object({ spotify: z.string().describe("The Spotify URL for the object").nullable() }).passthrough().describe("Known external URLs for the object");
12
12
  const SpotifyCreatePlaylist_OwnerSchema = z.object({
13
13
  id: z.string().describe("The Spotify user ID for this user").nullable(),
14
14
  uri: z.string().describe("The Spotify URI for this user").nullable(),
@@ -16,25 +16,25 @@ const SpotifyCreatePlaylist_OwnerSchema = z.object({
16
16
  type: z.string().describe("The object type: user").nullable(),
17
17
  display_name: z.string().describe("The name displayed on the user's profile. null if not available").nullable().optional(),
18
18
  external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable()
19
- }).describe("The user who owns the playlist");
19
+ }).passthrough().describe("The user who owns the playlist");
20
20
  const SpotifyCreatePlaylist_ImageSchema = z.object({
21
21
  url: z.string().describe("The source URL of the image").nullable(),
22
22
  width: z.number().int().describe("The image width in pixels").nullable(),
23
23
  height: z.number().int().describe("The image height in pixels").nullable()
24
- }).describe("Image object with dimensions");
24
+ }).passthrough().describe("Image object with dimensions");
25
25
  const SpotifyCreatePlaylist_AddedBySchema = z.object({
26
26
  id: z.string().describe("The Spotify user ID for this user").nullable(),
27
27
  uri: z.string().describe("The Spotify URI for this user").nullable(),
28
28
  href: z.string().describe("A link to the Web API endpoint for this user").nullable(),
29
29
  type: z.string().describe("The object type: user").nullable(),
30
30
  external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable()
31
- }).describe("The Spotify user who added the track or episode");
31
+ }).passthrough().describe("The Spotify user who added the track or episode");
32
32
  const SpotifyCreatePlaylist_PlaylistTrackItemSchema = z.object({
33
33
  track: z.unknown().describe("Information about the track or episode (can be TrackObject or EpisodeObject)"),
34
34
  added_at: z.string().describe("The date and time the track or episode was added. Some very old playlists may return null").nullable().optional(),
35
35
  added_by: SpotifyCreatePlaylist_AddedBySchema.nullable().optional(),
36
36
  is_local: z.boolean().describe("Whether this track or episode is a local file or not").nullable()
37
- }).describe("A single playlist track or episode item");
37
+ }).passthrough().describe("A single playlist track or episode item");
38
38
  const SpotifyCreatePlaylist_TracksSchema = z.object({
39
39
  href: z.string().describe("A link to the Web API endpoint returning the full result").nullable(),
40
40
  next: z.string().nullable(),
@@ -43,7 +43,7 @@ const SpotifyCreatePlaylist_TracksSchema = z.object({
43
43
  total: z.number().int().describe("The total number of items available to return").nullable(),
44
44
  offset: z.number().int().describe("The offset of the items returned").nullable(),
45
45
  previous: z.string().nullable()
46
- }).describe("The tracks of the playlist");
46
+ }).passthrough().describe("The tracks of the playlist");
47
47
  const spotifyCreatePlaylist = action("SPOTIFY_CREATE_PLAYLIST", {
48
48
  slug: "spotify-create-playlist",
49
49
  name: "Create playlist",
@@ -63,7 +63,7 @@ const spotifyCreatePlaylist = action("SPOTIFY_CREATE_PLAYLIST", {
63
63
  snapshot_id: z.string().describe("The version identifier for the current playlist").nullable(),
64
64
  collaborative: z.boolean().describe("true if the owner allows other users to modify the playlist").nullable(),
65
65
  external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable()
66
- }).describe("Response schema for `CreatePlaylist`\n\nReturns the newly created playlist object with details including:\n- id: The Spotify ID for the playlist\n- name: The playlist name\n- description: The playlist description\n- public: Whether the playlist is public (true) or private (false)\n- collaborative: Whether the playlist is collaborative\n- owner: Object containing the owner's user ID and profile link\n- uri: The Spotify URI for the playlist\n- external_urls: External URLs including the Spotify web URL\n- snapshot_id: The version identifier for the current playlist\n- tracks: Object containing playlist tracks (initially empty with total: 0)")
66
+ }).passthrough().describe("Response schema for `CreatePlaylist`\n\nReturns the newly created playlist object with details including:\n- id: The Spotify ID for the playlist\n- name: The playlist name\n- description: The playlist description\n- public: Whether the playlist is public (true) or private (false)\n- collaborative: Whether the playlist is collaborative\n- owner: Object containing the owner's user ID and profile link\n- uri: The Spotify URI for the playlist\n- external_urls: External URLs including the Spotify web URL\n- snapshot_id: The version identifier for the current playlist\n- tracks: Object containing playlist tracks (initially empty with total: 0)")
67
67
  });
68
68
  //#endregion
69
69
  export { spotifyCreatePlaylist };
@@ -1 +1 @@
1
- {"version":3,"file":"create-playlist.mjs","names":[],"sources":["../../src/actions/create-playlist.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyCreatePlaylistInput = z.object({\n name: z.string().describe(\"The name for the new playlist, for example `\\\"Your Coolest Playlist\\\"`. This name does not need to be unique; a user may have several playlists with the same name.\"),\n public: z.boolean().describe(\"Defaults to `true`. If `true` the playlist will be public, if `false` it will be private. To be able to create private playlists, the user must have granted the `playlist-modify-private` [scope](/documentation/web-api/concepts/scopes/#list-of-scopes)\").optional(),\n user_id: z.string().describe(\"The Spotify user ID for whom to create the playlist. This can be obtained from the user's profile (e.g., using get_current_user_s_profile action).\"),\n description: z.string().describe(\"The playlist description as displayed in Spotify Clients and in the Web API. Optional field for providing additional context about the playlist.\").optional(),\n collaborative: z.boolean().describe(\"Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to create a collaborative playlist you must also set `public` to `false`. To create collaborative playlists you must have granted `playlist-modify-private` and `playlist-modify-public` [scopes](/documentation/web-api/concepts/scopes/#list-of-scopes)._\").optional(),\n}).describe(\"Request schema for `CreatePlaylist`\");\nconst SpotifyCreatePlaylist_ExternalUrlsSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object\").nullable(),\n}).describe(\"Known external URLs for the object\");\nconst SpotifyCreatePlaylist_OwnerSchema = z.object({\n id: z.string().describe(\"The Spotify user ID for this user\").nullable(),\n uri: z.string().describe(\"The Spotify URI for this user\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint for this user\").nullable(),\n type: z.string().describe(\"The object type: user\").nullable(),\n display_name: z.string().describe(\"The name displayed on the user's profile. null if not available\").nullable().optional(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).describe(\"The user who owns the playlist\");\nconst SpotifyCreatePlaylist_ImageSchema = z.object({\n url: z.string().describe(\"The source URL of the image\").nullable(),\n width: z.number().int().describe(\"The image width in pixels\").nullable(),\n height: z.number().int().describe(\"The image height in pixels\").nullable(),\n}).describe(\"Image object with dimensions\");\nconst SpotifyCreatePlaylist_AddedBySchema = z.object({\n id: z.string().describe(\"The Spotify user ID for this user\").nullable(),\n uri: z.string().describe(\"The Spotify URI for this user\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint for this user\").nullable(),\n type: z.string().describe(\"The object type: user\").nullable(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).describe(\"The Spotify user who added the track or episode\");\nconst SpotifyCreatePlaylist_PlaylistTrackItemSchema = z.object({\n track: z.unknown().describe(\"Information about the track or episode (can be TrackObject or EpisodeObject)\"),\n added_at: z.string().describe(\"The date and time the track or episode was added. Some very old playlists may return null\").nullable().optional(),\n added_by: SpotifyCreatePlaylist_AddedBySchema.nullable().optional(),\n is_local: z.boolean().describe(\"Whether this track or episode is a local file or not\").nullable(),\n}).describe(\"A single playlist track or episode item\");\nconst SpotifyCreatePlaylist_TracksSchema = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result\").nullable(),\n next: z.string().nullable(),\n items: z.array(SpotifyCreatePlaylist_PlaylistTrackItemSchema).describe(\"Array of playlist tracks/episodes. When a playlist is first created, this array is empty.\"),\n limit: z.number().int().describe(\"The maximum number of items in the response\").nullable(),\n total: z.number().int().describe(\"The total number of items available to return\").nullable(),\n offset: z.number().int().describe(\"The offset of the items returned\").nullable(),\n previous: z.string().nullable(),\n}).describe(\"The tracks of the playlist\");\nexport const SpotifyCreatePlaylistOutput = z.object({\n id: z.string().describe(\"The Spotify ID for the playlist\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the playlist\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details\").nullable(),\n name: z.string().describe(\"The name of the playlist\").nullable(),\n type: z.string().describe(\"The object type: playlist\").nullable(),\n owner: SpotifyCreatePlaylist_OwnerSchema.nullable(),\n images: z.array(SpotifyCreatePlaylist_ImageSchema).describe(\"Images for the playlist. The array may be empty or contain up to three images\"),\n public: z.boolean().describe(\"The playlist's public/private status (true = public, false = private, null = not relevant)\").nullable(),\n tracks: SpotifyCreatePlaylist_TracksSchema.nullable(),\n description: z.string().describe(\"The playlist description. Only returned for modified, verified playlists, otherwise null\").nullable().optional(),\n snapshot_id: z.string().describe(\"The version identifier for the current playlist\").nullable(),\n collaborative: z.boolean().describe(\"true if the owner allows other users to modify the playlist\").nullable(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).describe(\"Response schema for `CreatePlaylist`\\n\\nReturns the newly created playlist object with details including:\\n- id: The Spotify ID for the playlist\\n- name: The playlist name\\n- description: The playlist description\\n- public: Whether the playlist is public (true) or private (false)\\n- collaborative: Whether the playlist is collaborative\\n- owner: Object containing the owner's user ID and profile link\\n- uri: The Spotify URI for the playlist\\n- external_urls: External URLs including the Spotify web URL\\n- snapshot_id: The version identifier for the current playlist\\n- tracks: Object containing playlist tracks (initially empty with total: 0)\");\n\nexport const spotifyCreatePlaylist = action(\"SPOTIFY_CREATE_PLAYLIST\", {\n slug: \"spotify-create-playlist\",\n name: \"Create playlist\",\n description: \"Create a playlist for a Spotify user. (The playlist will be empty until you [add tracks](/documentation/web-api/reference/add-tracks-to-playlist).) Each user is generally limited to a maximum of 11000 playlists.\",\n input: SpotifyCreatePlaylistInput,\n output: SpotifyCreatePlaylistOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,4PAA4P,CAAC,CAAC,SAAS;CACpS,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CACjL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CAC9L,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,2UAA2U,CAAC,CAAC,SAAS;AAC5X,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,2CAA2C,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,oCAAoC,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,eAAe,yCAAyC,SAAS;AACnE,CAAC,CAAC,CAAC,SAA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SAAS;CACnE,CAAC,CAAC,CAAC,SAAS,uoBAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-playlist.mjs","names":[],"sources":["../../src/actions/create-playlist.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyCreatePlaylistInput = z.object({\n name: z.string().describe(\"The name for the new playlist, for example `\\\"Your Coolest Playlist\\\"`. This name does not need to be unique; a user may have several playlists with the same name.\"),\n public: z.boolean().describe(\"Defaults to `true`. If `true` the playlist will be public, if `false` it will be private. To be able to create private playlists, the user must have granted the `playlist-modify-private` [scope](/documentation/web-api/concepts/scopes/#list-of-scopes)\").optional(),\n user_id: z.string().describe(\"The Spotify user ID for whom to create the playlist. This can be obtained from the user's profile (e.g., using get_current_user_s_profile action).\"),\n description: z.string().describe(\"The playlist description as displayed in Spotify Clients and in the Web API. Optional field for providing additional context about the playlist.\").optional(),\n collaborative: z.boolean().describe(\"Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to create a collaborative playlist you must also set `public` to `false`. To create collaborative playlists you must have granted `playlist-modify-private` and `playlist-modify-public` [scopes](/documentation/web-api/concepts/scopes/#list-of-scopes)._\").optional(),\n}).describe(\"Request schema for `CreatePlaylist`\");\nconst SpotifyCreatePlaylist_ExternalUrlsSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object\").nullable(),\n}).passthrough().describe(\"Known external URLs for the object\");\nconst SpotifyCreatePlaylist_OwnerSchema = z.object({\n id: z.string().describe(\"The Spotify user ID for this user\").nullable(),\n uri: z.string().describe(\"The Spotify URI for this user\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint for this user\").nullable(),\n type: z.string().describe(\"The object type: user\").nullable(),\n display_name: z.string().describe(\"The name displayed on the user's profile. null if not available\").nullable().optional(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).passthrough().describe(\"The user who owns the playlist\");\nconst SpotifyCreatePlaylist_ImageSchema = z.object({\n url: z.string().describe(\"The source URL of the image\").nullable(),\n width: z.number().int().describe(\"The image width in pixels\").nullable(),\n height: z.number().int().describe(\"The image height in pixels\").nullable(),\n}).passthrough().describe(\"Image object with dimensions\");\nconst SpotifyCreatePlaylist_AddedBySchema = z.object({\n id: z.string().describe(\"The Spotify user ID for this user\").nullable(),\n uri: z.string().describe(\"The Spotify URI for this user\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint for this user\").nullable(),\n type: z.string().describe(\"The object type: user\").nullable(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).passthrough().describe(\"The Spotify user who added the track or episode\");\nconst SpotifyCreatePlaylist_PlaylistTrackItemSchema = z.object({\n track: z.unknown().describe(\"Information about the track or episode (can be TrackObject or EpisodeObject)\"),\n added_at: z.string().describe(\"The date and time the track or episode was added. Some very old playlists may return null\").nullable().optional(),\n added_by: SpotifyCreatePlaylist_AddedBySchema.nullable().optional(),\n is_local: z.boolean().describe(\"Whether this track or episode is a local file or not\").nullable(),\n}).passthrough().describe(\"A single playlist track or episode item\");\nconst SpotifyCreatePlaylist_TracksSchema = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result\").nullable(),\n next: z.string().nullable(),\n items: z.array(SpotifyCreatePlaylist_PlaylistTrackItemSchema).describe(\"Array of playlist tracks/episodes. When a playlist is first created, this array is empty.\"),\n limit: z.number().int().describe(\"The maximum number of items in the response\").nullable(),\n total: z.number().int().describe(\"The total number of items available to return\").nullable(),\n offset: z.number().int().describe(\"The offset of the items returned\").nullable(),\n previous: z.string().nullable(),\n}).passthrough().describe(\"The tracks of the playlist\");\nexport const SpotifyCreatePlaylistOutput = z.object({\n id: z.string().describe(\"The Spotify ID for the playlist\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the playlist\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details\").nullable(),\n name: z.string().describe(\"The name of the playlist\").nullable(),\n type: z.string().describe(\"The object type: playlist\").nullable(),\n owner: SpotifyCreatePlaylist_OwnerSchema.nullable(),\n images: z.array(SpotifyCreatePlaylist_ImageSchema).describe(\"Images for the playlist. The array may be empty or contain up to three images\"),\n public: z.boolean().describe(\"The playlist's public/private status (true = public, false = private, null = not relevant)\").nullable(),\n tracks: SpotifyCreatePlaylist_TracksSchema.nullable(),\n description: z.string().describe(\"The playlist description. Only returned for modified, verified playlists, otherwise null\").nullable().optional(),\n snapshot_id: z.string().describe(\"The version identifier for the current playlist\").nullable(),\n collaborative: z.boolean().describe(\"true if the owner allows other users to modify the playlist\").nullable(),\n external_urls: SpotifyCreatePlaylist_ExternalUrlsSchema.nullable(),\n}).passthrough().describe(\"Response schema for `CreatePlaylist`\\n\\nReturns the newly created playlist object with details including:\\n- id: The Spotify ID for the playlist\\n- name: The playlist name\\n- description: The playlist description\\n- public: Whether the playlist is public (true) or private (false)\\n- collaborative: Whether the playlist is collaborative\\n- owner: Object containing the owner's user ID and profile link\\n- uri: The Spotify URI for the playlist\\n- external_urls: External URLs including the Spotify web URL\\n- snapshot_id: The version identifier for the current playlist\\n- tracks: Object containing playlist tracks (initially empty with total: 0)\");\n\nexport const spotifyCreatePlaylist = action(\"SPOTIFY_CREATE_PLAYLIST\", {\n slug: \"spotify-create-playlist\",\n name: \"Create playlist\",\n description: \"Create a playlist for a Spotify user. (The playlist will be empty until you [add tracks](/documentation/web-api/reference/add-tracks-to-playlist).) Each user is generally limited to a maximum of 11000 playlists.\",\n input: SpotifyCreatePlaylistInput,\n output: SpotifyCreatePlaylistOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC/L,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,4PAA4P,CAAC,CAAC,SAAS;CACpS,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ;CACjL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CAC9L,eAAe,EAA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AAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,OAAO,kCAAkC,SAAS;EAClD,QAAQ,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,+EAA+E;EAC3I,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EACpI,QAAQ,mCAAmC,SAAS;EACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC7F,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5G,eAAe,yCAAyC,SAAS;CACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uoBAOhB;AACV,CAAC"}
@@ -15,7 +15,19 @@ declare const SpotifyFollowArtistsOrUsersOutput: z.ZodObject<{
15
15
  declare const spotifyFollowArtistsOrUsers: 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 { spotifyFollowArtistsOrUsers };
21
33
  //# sourceMappingURL=follow-artists-or-users.d.cts.map
@@ -15,7 +15,19 @@ declare const SpotifyFollowArtistsOrUsersOutput: z.ZodObject<{
15
15
  declare const spotifyFollowArtistsOrUsers: 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 { spotifyFollowArtistsOrUsers };
21
33
  //# sourceMappingURL=follow-artists-or-users.d.mts.map
@@ -12,7 +12,19 @@ declare const SpotifyFollowPlaylistOutput: z.ZodObject<{
12
12
  declare const spotifyFollowPlaylist: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  playlist_id: string;
14
14
  public?: 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 { spotifyFollowPlaylist };
18
30
  //# sourceMappingURL=follow-playlist.d.cts.map
@@ -12,7 +12,19 @@ declare const SpotifyFollowPlaylistOutput: z.ZodObject<{
12
12
  declare const spotifyFollowPlaylist: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  playlist_id: string;
14
14
  public?: 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 { spotifyFollowPlaylist };
18
30
  //# sourceMappingURL=follow-playlist.d.mts.map
@@ -32,7 +32,7 @@ const SpotifyGetAChapter_SimplifiedAudiobookObjectSchema = zod.z.object({
32
32
  copyrights: zod.z.array(SpotifyGetAChapter_CopyrightObjectSchema).nullable().optional(),
33
33
  media_type: zod.z.string().nullable().optional(),
34
34
  description: zod.z.string().nullable().optional(),
35
- external_urls: zod.z.object({}).nullable().optional(),
35
+ external_urls: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
36
36
  total_chapters: zod.z.number().int().nullable().optional(),
37
37
  html_description: zod.z.string().nullable().optional(),
38
38
  available_markets: zod.z.array(zod.z.string()).nullable().optional()
@@ -58,7 +58,7 @@ const SpotifyGetAChapterOutput = zod.z.object({
58
58
  release_date: zod.z.string().nullable().optional(),
59
59
  restrictions: SpotifyGetAChapter_RestrictionObjectSchema.nullable().optional(),
60
60
  resume_point: SpotifyGetAChapter_ResumePointObjectSchema.nullable().optional(),
61
- external_urls: zod.z.object({}).nullable().optional(),
61
+ external_urls: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
62
62
  chapter_number: zod.z.number().int().nullable().optional(),
63
63
  html_description: zod.z.string().nullable().optional(),
64
64
  audio_preview_url: zod.z.string().nullable().optional(),