@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
@@ -10,8 +10,8 @@ const SpotifyGetUserSTopTracks_ImageSchema = zod.z.object({
10
10
  url: zod.z.string().describe("The source URL of the image").nullable(),
11
11
  width: zod.z.number().int().describe("The image width in pixels").nullable().optional(),
12
12
  height: zod.z.number().int().describe("The image height in pixels").nullable().optional()
13
- }).describe("Image object");
14
- const SpotifyGetUserSTopTracks_ExternalUrlsSchema = zod.z.object({ spotify: zod.z.string().describe("The Spotify URL for the object").nullable() }).describe("Known external URLs");
13
+ }).passthrough().describe("Image object");
14
+ const SpotifyGetUserSTopTracks_ExternalUrlsSchema = zod.z.object({ spotify: zod.z.string().describe("The Spotify URL for the object").nullable() }).passthrough().describe("Known external URLs");
15
15
  const SpotifyGetUserSTopTracks_SimplifiedArtistSchema = zod.z.object({
16
16
  id: zod.z.string().describe("The Spotify ID for the artist").nullable(),
17
17
  uri: zod.z.string().describe("The Spotify URI for the artist").nullable(),
@@ -19,8 +19,8 @@ const SpotifyGetUserSTopTracks_SimplifiedArtistSchema = zod.z.object({
19
19
  name: zod.z.string().describe("The name of the artist").nullable(),
20
20
  type: zod.z.string().describe("The object type: artist").nullable(),
21
21
  external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable()
22
- }).describe("Simplified artist object");
23
- const SpotifyGetUserSTopTracks_RestrictionsSchema = zod.z.object({ reason: zod.z.string().describe("The reason for the restriction: market, product, or explicit").nullable() }).describe("Content restriction object");
22
+ }).passthrough().describe("Simplified artist object");
23
+ const SpotifyGetUserSTopTracks_RestrictionsSchema = zod.z.object({ reason: zod.z.string().describe("The reason for the restriction: market, product, or explicit").nullable() }).passthrough().describe("Content restriction object");
24
24
  const SpotifyGetUserSTopTracks_SimplifiedAlbumSchema = zod.z.object({
25
25
  id: zod.z.string().describe("The Spotify ID for the album").nullable(),
26
26
  uri: zod.z.string().describe("The Spotify URI for the album").nullable(),
@@ -36,19 +36,19 @@ const SpotifyGetUserSTopTracks_SimplifiedAlbumSchema = zod.z.object({
36
36
  external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),
37
37
  available_markets: zod.z.array(zod.z.string()).describe("The markets in which the album is available (ISO 3166-1 alpha-2 country codes)"),
38
38
  release_date_precision: zod.z.string().describe("The precision with which release_date value is known: year, month, or day").nullable()
39
- }).describe("Simplified album object");
39
+ }).passthrough().describe("Simplified album object");
40
40
  const SpotifyGetUserSTopTracks_LinkedFromSchema = zod.z.object({
41
41
  id: zod.z.string().describe("The Spotify ID for the track").nullable().optional(),
42
42
  uri: zod.z.string().describe("The Spotify URI for the track").nullable().optional(),
43
43
  href: zod.z.string().describe("A link to the Web API endpoint providing full details").nullable().optional(),
44
44
  type: zod.z.string().describe("The object type: track").nullable().optional(),
45
45
  external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable().optional()
46
- }).describe("Information about the originally requested track when Track Relinking is applied");
46
+ }).passthrough().describe("Information about the originally requested track when Track Relinking is applied");
47
47
  const SpotifyGetUserSTopTracks_ExternalIdsSchema = zod.z.object({
48
48
  ean: zod.z.string().describe("International Article Number").nullable().optional(),
49
49
  upc: zod.z.string().describe("Universal Product Code").nullable().optional(),
50
50
  isrc: zod.z.string().describe("International Standard Recording Code").nullable().optional()
51
- }).describe("Known external IDs for the track");
51
+ }).passthrough().describe("Known external IDs for the track");
52
52
  const SpotifyGetUserSTopTracks_TrackSchema = zod.z.object({
53
53
  id: zod.z.string().describe("The Spotify ID for the track").nullable(),
54
54
  uri: zod.z.string().describe("The Spotify URI for the track").nullable(),
@@ -70,7 +70,7 @@ const SpotifyGetUserSTopTracks_TrackSchema = zod.z.object({
70
70
  track_number: zod.z.number().int().describe("The number of the track. If an album has several discs, the track number is the number on the specified disc").nullable(),
71
71
  external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),
72
72
  available_markets: zod.z.array(zod.z.string()).describe("A list of the countries in which the track can be played (ISO 3166-1 alpha-2 country codes)")
73
- }).describe("Track object");
73
+ }).passthrough().describe("Track object");
74
74
  const SpotifyGetUserSTopTracksOutput = zod.z.object({
75
75
  href: zod.z.string().describe("A link to the Web API endpoint returning the full result of the request").nullable(),
76
76
  next: zod.z.string().describe("URL to the next page of items (null if none)").nullable().optional(),
@@ -79,7 +79,7 @@ const SpotifyGetUserSTopTracksOutput = zod.z.object({
79
79
  total: zod.z.number().int().describe("The total number of items available to return").nullable(),
80
80
  offset: zod.z.number().int().describe("The offset of the items returned (as set in the query or by default)").nullable(),
81
81
  previous: zod.z.string().describe("URL to the previous page of items (null if none)").nullable().optional()
82
- }).describe("Response schema for `GetUserSTopTracks` - Paginated response containing user's top tracks");
82
+ }).passthrough().describe("Response schema for `GetUserSTopTracks` - Paginated response containing user's top tracks");
83
83
  const spotifyGetUserSTopTracks = require_action.action("SPOTIFY_GET_USER_S_TOP_TRACKS", {
84
84
  slug: "spotify-get-user-s-top-tracks",
85
85
  name: "Get User's Top Tracks",
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-s-top-tracks.cjs","names":["z","action"],"sources":["../../src/actions/get-user-s-top-tracks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetUserSTopTracksInput = z.object({\n limit: z.number().int().default(20).describe(\"Maximum number of tracks to return. Minimum: 1, Maximum: 50.\").optional(),\n offset: z.number().int().default(0).describe(\"The index of the first track to return. Use with limit to paginate through results. Default: 0 (first track).\").optional(),\n time_range: z.string().default(\"medium_term\").describe(\"Time period for computing affinity. Options: 'long_term' (calculated from ~1 year of data), 'medium_term' (approximately last 6 months), 'short_term' (approximately last 4 weeks).\").optional(),\n}).describe(\"Request schema for `GetUserSTopTracks`\");\nconst SpotifyGetUserSTopTracks_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().optional(),\n height: z.number().int().describe(\"The image height in pixels\").nullable().optional(),\n}).describe(\"Image object\");\nconst SpotifyGetUserSTopTracks_ExternalUrlsSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object\").nullable(),\n}).describe(\"Known external URLs\");\nconst SpotifyGetUserSTopTracks_SimplifiedArtistSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the artist\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the artist\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the artist\").nullable(),\n name: z.string().describe(\"The name of the artist\").nullable(),\n type: z.string().describe(\"The object type: artist\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n}).describe(\"Simplified artist object\");\nconst SpotifyGetUserSTopTracks_RestrictionsSchema = z.object({\n reason: z.string().describe(\"The reason for the restriction: market, product, or explicit\").nullable(),\n}).describe(\"Content restriction object\");\nconst SpotifyGetUserSTopTracks_SimplifiedAlbumSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the album\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the album\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the album\").nullable(),\n name: z.string().describe(\"The name of the album\").nullable(),\n type: z.string().describe(\"The object type: album\").nullable(),\n images: z.array(SpotifyGetUserSTopTracks_ImageSchema).describe(\"The cover art for the album in various sizes, widest first\"),\n artists: z.array(SpotifyGetUserSTopTracks_SimplifiedArtistSchema).describe(\"The artists of the album\"),\n album_type: z.string().describe(\"The type of the album: album, single, or compilation\").nullable(),\n release_date: z.string().describe(\"The date the album was first released\").nullable(),\n restrictions: SpotifyGetUserSTopTracks_RestrictionsSchema.nullable().optional(),\n total_tracks: z.number().int().describe(\"The number of tracks in the album\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n available_markets: z.array(z.string()).describe(\"The markets in which the album is available (ISO 3166-1 alpha-2 country codes)\"),\n release_date_precision: z.string().describe(\"The precision with which release_date value is known: year, month, or day\").nullable(),\n}).describe(\"Simplified album object\");\nconst SpotifyGetUserSTopTracks_LinkedFromSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the track\").nullable().optional(),\n uri: z.string().describe(\"The Spotify URI for the track\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details\").nullable().optional(),\n type: z.string().describe(\"The object type: track\").nullable().optional(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable().optional(),\n}).describe(\"Information about the originally requested track when Track Relinking is applied\");\nconst SpotifyGetUserSTopTracks_ExternalIdsSchema = z.object({\n ean: z.string().describe(\"International Article Number\").nullable().optional(),\n upc: z.string().describe(\"Universal Product Code\").nullable().optional(),\n isrc: z.string().describe(\"International Standard Recording Code\").nullable().optional(),\n}).describe(\"Known external IDs for the track\");\nconst SpotifyGetUserSTopTracks_TrackSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the track\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the track\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the track\").nullable(),\n name: z.string().describe(\"The name of the track\").nullable(),\n type: z.string().describe(\"The object type: track\").nullable(),\n album: SpotifyGetUserSTopTracks_SimplifiedAlbumSchema.nullable(),\n artists: z.array(SpotifyGetUserSTopTracks_SimplifiedArtistSchema).describe(\"The artists who performed the track\"),\n explicit: z.boolean().describe(\"Whether or not the track has explicit lyrics (true = yes it does; false = no it does not OR unknown)\").nullable(),\n is_local: z.boolean().describe(\"Whether or not the track is from a local file\").nullable(),\n popularity: z.number().int().describe(\"The popularity of the track. The value will be between 0 and 100, with 100 being the most popular\").nullable(),\n disc_number: z.number().int().describe(\"The disc number (usually 1 unless the album consists of more than one disc)\").nullable(),\n duration_ms: z.number().int().describe(\"The track length in milliseconds\").nullable(),\n is_playable: z.boolean().describe(\"Part of the response when Track Relinking is applied. If true, the track is playable in the given market. Otherwise false.\").nullable().optional(),\n linked_from: SpotifyGetUserSTopTracks_LinkedFromSchema.nullable().optional(),\n preview_url: z.string().describe(\"A link to a 30 second preview (MP3 format) of the track. Can be null\").nullable().optional(),\n external_ids: SpotifyGetUserSTopTracks_ExternalIdsSchema.nullable(),\n restrictions: SpotifyGetUserSTopTracks_RestrictionsSchema.nullable().optional(),\n track_number: z.number().int().describe(\"The number of the track. If an album has several discs, the track number is the number on the specified disc\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n available_markets: z.array(z.string()).describe(\"A list of the countries in which the track can be played (ISO 3166-1 alpha-2 country codes)\"),\n}).describe(\"Track object\");\nexport const SpotifyGetUserSTopTracksOutput = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result of the request\").nullable(),\n next: z.string().describe(\"URL to the next page of items (null if none)\").nullable().optional(),\n items: z.array(SpotifyGetUserSTopTracks_TrackSchema).describe(\"Array of track objects\"),\n limit: z.number().int().describe(\"The maximum number of items in the response (as set in the query or by default)\").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 (as set in the query or by default)\").nullable(),\n previous: z.string().describe(\"URL to the previous page of items (null if none)\").nullable().optional(),\n}).describe(\"Response schema for `GetUserSTopTracks` - Paginated response containing user's top tracks\");\n\nexport const spotifyGetUserSTopTracks = action(\"SPOTIFY_GET_USER_S_TOP_TRACKS\", {\n slug: \"spotify-get-user-s-top-tracks\",\n name: \"Get User's Top Tracks\",\n description: \"Get the current user's top tracks based on calculated affinity. Returns the user's most-played tracks over different time periods based on their listening history and calculated affinity. Required OAuth Scope: user-top-read Note: The Spotify API limits results to the top 50 tracks per time range. Returns detailed track information including artist names, album details, popularity scores, duration, and preview URLs. Useful for understanding user listening preferences and music taste.\",\n input: SpotifyGetUserSTopTracksInput,\n output: SpotifyGetUserSTopTracksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACvK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,qLAAqL,CAAC,CAAC,SAAS;AACzP,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,uCAAu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,CAAC,SAAS,wBAAwB;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC7H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAEvG,MAAa,2BAA2BC,eAAAA,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-s-top-tracks.cjs","names":["z","action"],"sources":["../../src/actions/get-user-s-top-tracks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetUserSTopTracksInput = z.object({\n limit: z.number().int().default(20).describe(\"Maximum number of tracks to return. Minimum: 1, Maximum: 50.\").optional(),\n offset: z.number().int().default(0).describe(\"The index of the first track to return. Use with limit to paginate through results. Default: 0 (first track).\").optional(),\n time_range: z.string().default(\"medium_term\").describe(\"Time period for computing affinity. Options: 'long_term' (calculated from ~1 year of data), 'medium_term' (approximately last 6 months), 'short_term' (approximately last 4 weeks).\").optional(),\n}).describe(\"Request schema for `GetUserSTopTracks`\");\nconst SpotifyGetUserSTopTracks_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().optional(),\n height: z.number().int().describe(\"The image height in pixels\").nullable().optional(),\n}).passthrough().describe(\"Image object\");\nconst SpotifyGetUserSTopTracks_ExternalUrlsSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object\").nullable(),\n}).passthrough().describe(\"Known external URLs\");\nconst SpotifyGetUserSTopTracks_SimplifiedArtistSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the artist\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the artist\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the artist\").nullable(),\n name: z.string().describe(\"The name of the artist\").nullable(),\n type: z.string().describe(\"The object type: artist\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n}).passthrough().describe(\"Simplified artist object\");\nconst SpotifyGetUserSTopTracks_RestrictionsSchema = z.object({\n reason: z.string().describe(\"The reason for the restriction: market, product, or explicit\").nullable(),\n}).passthrough().describe(\"Content restriction object\");\nconst SpotifyGetUserSTopTracks_SimplifiedAlbumSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the album\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the album\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the album\").nullable(),\n name: z.string().describe(\"The name of the album\").nullable(),\n type: z.string().describe(\"The object type: album\").nullable(),\n images: z.array(SpotifyGetUserSTopTracks_ImageSchema).describe(\"The cover art for the album in various sizes, widest first\"),\n artists: z.array(SpotifyGetUserSTopTracks_SimplifiedArtistSchema).describe(\"The artists of the album\"),\n album_type: z.string().describe(\"The type of the album: album, single, or compilation\").nullable(),\n release_date: z.string().describe(\"The date the album was first released\").nullable(),\n restrictions: SpotifyGetUserSTopTracks_RestrictionsSchema.nullable().optional(),\n total_tracks: z.number().int().describe(\"The number of tracks in the album\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n available_markets: z.array(z.string()).describe(\"The markets in which the album is available (ISO 3166-1 alpha-2 country codes)\"),\n release_date_precision: z.string().describe(\"The precision with which release_date value is known: year, month, or day\").nullable(),\n}).passthrough().describe(\"Simplified album object\");\nconst SpotifyGetUserSTopTracks_LinkedFromSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the track\").nullable().optional(),\n uri: z.string().describe(\"The Spotify URI for the track\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details\").nullable().optional(),\n type: z.string().describe(\"The object type: track\").nullable().optional(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about the originally requested track when Track Relinking is applied\");\nconst SpotifyGetUserSTopTracks_ExternalIdsSchema = z.object({\n ean: z.string().describe(\"International Article Number\").nullable().optional(),\n upc: z.string().describe(\"Universal Product Code\").nullable().optional(),\n isrc: z.string().describe(\"International Standard Recording Code\").nullable().optional(),\n}).passthrough().describe(\"Known external IDs for the track\");\nconst SpotifyGetUserSTopTracks_TrackSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the track\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the track\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the track\").nullable(),\n name: z.string().describe(\"The name of the track\").nullable(),\n type: z.string().describe(\"The object type: track\").nullable(),\n album: SpotifyGetUserSTopTracks_SimplifiedAlbumSchema.nullable(),\n artists: z.array(SpotifyGetUserSTopTracks_SimplifiedArtistSchema).describe(\"The artists who performed the track\"),\n explicit: z.boolean().describe(\"Whether or not the track has explicit lyrics (true = yes it does; false = no it does not OR unknown)\").nullable(),\n is_local: z.boolean().describe(\"Whether or not the track is from a local file\").nullable(),\n popularity: z.number().int().describe(\"The popularity of the track. The value will be between 0 and 100, with 100 being the most popular\").nullable(),\n disc_number: z.number().int().describe(\"The disc number (usually 1 unless the album consists of more than one disc)\").nullable(),\n duration_ms: z.number().int().describe(\"The track length in milliseconds\").nullable(),\n is_playable: z.boolean().describe(\"Part of the response when Track Relinking is applied. If true, the track is playable in the given market. Otherwise false.\").nullable().optional(),\n linked_from: SpotifyGetUserSTopTracks_LinkedFromSchema.nullable().optional(),\n preview_url: z.string().describe(\"A link to a 30 second preview (MP3 format) of the track. Can be null\").nullable().optional(),\n external_ids: SpotifyGetUserSTopTracks_ExternalIdsSchema.nullable(),\n restrictions: SpotifyGetUserSTopTracks_RestrictionsSchema.nullable().optional(),\n track_number: z.number().int().describe(\"The number of the track. If an album has several discs, the track number is the number on the specified disc\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n available_markets: z.array(z.string()).describe(\"A list of the countries in which the track can be played (ISO 3166-1 alpha-2 country codes)\"),\n}).passthrough().describe(\"Track object\");\nexport const SpotifyGetUserSTopTracksOutput = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result of the request\").nullable(),\n next: z.string().describe(\"URL to the next page of items (null if none)\").nullable().optional(),\n items: z.array(SpotifyGetUserSTopTracks_TrackSchema).describe(\"Array of track objects\"),\n limit: z.number().int().describe(\"The maximum number of items in the response (as set in the query or by default)\").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 (as set in the query or by default)\").nullable(),\n previous: z.string().describe(\"URL to the previous page of items (null if none)\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `GetUserSTopTracks` - Paginated response containing user's top tracks\");\n\nexport const spotifyGetUserSTopTracks = action(\"SPOTIFY_GET_USER_S_TOP_TRACKS\", {\n slug: \"spotify-get-user-s-top-tracks\",\n name: \"Get User's Top Tracks\",\n description: \"Get the current user's top tracks based on calculated affinity. Returns the user's most-played tracks over different time periods based on their listening history and calculated affinity. Required OAuth Scope: user-top-read Note: The Spotify API limits results to the top 50 tracks per time range. Returns detailed track information including artist names, album details, popularity scores, duration, and preview URLs. Useful for understanding user listening preferences and music taste.\",\n input: SpotifyGetUserSTopTracksInput,\n output: SpotifyGetUserSTopTracksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC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,4CAA4C,SAAS;CACpE,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,cAAc;AACxC,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC7H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAA2F;AAErH,MAAa,2BAA2BC,eAAAA,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -25,7 +25,7 @@ declare const SpotifyGetUserSTopTracksOutput: z.ZodObject<{
25
25
  url: z.ZodNullable<z.ZodString>;
26
26
  width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
27
  height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
- }, z.core.$strip>>;
28
+ }, z.core.$loose>>;
29
29
  artists: z.ZodArray<z.ZodObject<{
30
30
  id: z.ZodNullable<z.ZodString>;
31
31
  uri: z.ZodNullable<z.ZodString>;
@@ -34,20 +34,20 @@ declare const SpotifyGetUserSTopTracksOutput: z.ZodObject<{
34
34
  type: z.ZodNullable<z.ZodString>;
35
35
  external_urls: z.ZodNullable<z.ZodObject<{
36
36
  spotify: z.ZodNullable<z.ZodString>;
37
- }, z.core.$strip>>;
38
- }, z.core.$strip>>;
37
+ }, z.core.$loose>>;
38
+ }, z.core.$loose>>;
39
39
  album_type: z.ZodNullable<z.ZodString>;
40
40
  release_date: z.ZodNullable<z.ZodString>;
41
41
  restrictions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  reason: z.ZodNullable<z.ZodString>;
43
- }, z.core.$strip>>>;
43
+ }, z.core.$loose>>>;
44
44
  total_tracks: z.ZodNullable<z.ZodNumber>;
45
45
  external_urls: z.ZodNullable<z.ZodObject<{
46
46
  spotify: z.ZodNullable<z.ZodString>;
47
- }, z.core.$strip>>;
47
+ }, z.core.$loose>>;
48
48
  available_markets: z.ZodArray<z.ZodString>;
49
49
  release_date_precision: z.ZodNullable<z.ZodString>;
50
- }, z.core.$strip>>;
50
+ }, z.core.$loose>>;
51
51
  artists: z.ZodArray<z.ZodObject<{
52
52
  id: z.ZodNullable<z.ZodString>;
53
53
  uri: z.ZodNullable<z.ZodString>;
@@ -56,8 +56,8 @@ declare const SpotifyGetUserSTopTracksOutput: z.ZodObject<{
56
56
  type: z.ZodNullable<z.ZodString>;
57
57
  external_urls: z.ZodNullable<z.ZodObject<{
58
58
  spotify: z.ZodNullable<z.ZodString>;
59
- }, z.core.$strip>>;
60
- }, z.core.$strip>>;
59
+ }, z.core.$loose>>;
60
+ }, z.core.$loose>>;
61
61
  explicit: z.ZodNullable<z.ZodBoolean>;
62
62
  is_local: z.ZodNullable<z.ZodBoolean>;
63
63
  popularity: z.ZodNullable<z.ZodNumber>;
@@ -71,33 +71,45 @@ declare const SpotifyGetUserSTopTracksOutput: z.ZodObject<{
71
71
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  external_urls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
73
73
  spotify: z.ZodNullable<z.ZodString>;
74
- }, z.core.$strip>>>;
75
- }, z.core.$strip>>>;
74
+ }, z.core.$loose>>>;
75
+ }, z.core.$loose>>>;
76
76
  preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
77
  external_ids: z.ZodNullable<z.ZodObject<{
78
78
  ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
79
  upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
80
  isrc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
- }, z.core.$strip>>;
81
+ }, z.core.$loose>>;
82
82
  restrictions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
83
  reason: z.ZodNullable<z.ZodString>;
84
- }, z.core.$strip>>>;
84
+ }, z.core.$loose>>>;
85
85
  track_number: z.ZodNullable<z.ZodNumber>;
86
86
  external_urls: z.ZodNullable<z.ZodObject<{
87
87
  spotify: z.ZodNullable<z.ZodString>;
88
- }, z.core.$strip>>;
88
+ }, z.core.$loose>>;
89
89
  available_markets: z.ZodArray<z.ZodString>;
90
- }, z.core.$strip>>;
90
+ }, z.core.$loose>>;
91
91
  limit: z.ZodNullable<z.ZodNumber>;
92
92
  total: z.ZodNullable<z.ZodNumber>;
93
93
  offset: z.ZodNullable<z.ZodNumber>;
94
94
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
- }, z.core.$strip>;
95
+ }, z.core.$loose>;
96
96
  declare const spotifyGetUserSTopTracks: import("@keystrokehq/action").WorkflowActionDefinition<{
97
97
  limit?: number | undefined;
98
98
  offset?: number | undefined;
99
99
  time_range?: string | undefined;
100
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
100
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
101
+ connectionId: z.ZodString;
102
+ entityId: z.ZodString;
103
+ instanceId: z.ZodString;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ accessToken: z.ZodString;
106
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
107
+ connectionId: z.ZodString;
108
+ entityId: z.ZodString;
109
+ instanceId: z.ZodString;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ accessToken: z.ZodString;
112
+ }, z.core.$strip>>]>;
101
113
  //#endregion
102
114
  export { spotifyGetUserSTopTracks };
103
115
  //# sourceMappingURL=get-user-s-top-tracks.d.cts.map
@@ -25,7 +25,7 @@ declare const SpotifyGetUserSTopTracksOutput: z.ZodObject<{
25
25
  url: z.ZodNullable<z.ZodString>;
26
26
  width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
27
  height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
- }, z.core.$strip>>;
28
+ }, z.core.$loose>>;
29
29
  artists: z.ZodArray<z.ZodObject<{
30
30
  id: z.ZodNullable<z.ZodString>;
31
31
  uri: z.ZodNullable<z.ZodString>;
@@ -34,20 +34,20 @@ declare const SpotifyGetUserSTopTracksOutput: z.ZodObject<{
34
34
  type: z.ZodNullable<z.ZodString>;
35
35
  external_urls: z.ZodNullable<z.ZodObject<{
36
36
  spotify: z.ZodNullable<z.ZodString>;
37
- }, z.core.$strip>>;
38
- }, z.core.$strip>>;
37
+ }, z.core.$loose>>;
38
+ }, z.core.$loose>>;
39
39
  album_type: z.ZodNullable<z.ZodString>;
40
40
  release_date: z.ZodNullable<z.ZodString>;
41
41
  restrictions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
42
  reason: z.ZodNullable<z.ZodString>;
43
- }, z.core.$strip>>>;
43
+ }, z.core.$loose>>>;
44
44
  total_tracks: z.ZodNullable<z.ZodNumber>;
45
45
  external_urls: z.ZodNullable<z.ZodObject<{
46
46
  spotify: z.ZodNullable<z.ZodString>;
47
- }, z.core.$strip>>;
47
+ }, z.core.$loose>>;
48
48
  available_markets: z.ZodArray<z.ZodString>;
49
49
  release_date_precision: z.ZodNullable<z.ZodString>;
50
- }, z.core.$strip>>;
50
+ }, z.core.$loose>>;
51
51
  artists: z.ZodArray<z.ZodObject<{
52
52
  id: z.ZodNullable<z.ZodString>;
53
53
  uri: z.ZodNullable<z.ZodString>;
@@ -56,8 +56,8 @@ declare const SpotifyGetUserSTopTracksOutput: z.ZodObject<{
56
56
  type: z.ZodNullable<z.ZodString>;
57
57
  external_urls: z.ZodNullable<z.ZodObject<{
58
58
  spotify: z.ZodNullable<z.ZodString>;
59
- }, z.core.$strip>>;
60
- }, z.core.$strip>>;
59
+ }, z.core.$loose>>;
60
+ }, z.core.$loose>>;
61
61
  explicit: z.ZodNullable<z.ZodBoolean>;
62
62
  is_local: z.ZodNullable<z.ZodBoolean>;
63
63
  popularity: z.ZodNullable<z.ZodNumber>;
@@ -71,33 +71,45 @@ declare const SpotifyGetUserSTopTracksOutput: z.ZodObject<{
71
71
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
72
  external_urls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
73
73
  spotify: z.ZodNullable<z.ZodString>;
74
- }, z.core.$strip>>>;
75
- }, z.core.$strip>>>;
74
+ }, z.core.$loose>>>;
75
+ }, z.core.$loose>>>;
76
76
  preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
77
  external_ids: z.ZodNullable<z.ZodObject<{
78
78
  ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
79
  upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
80
  isrc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
- }, z.core.$strip>>;
81
+ }, z.core.$loose>>;
82
82
  restrictions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
83
  reason: z.ZodNullable<z.ZodString>;
84
- }, z.core.$strip>>>;
84
+ }, z.core.$loose>>>;
85
85
  track_number: z.ZodNullable<z.ZodNumber>;
86
86
  external_urls: z.ZodNullable<z.ZodObject<{
87
87
  spotify: z.ZodNullable<z.ZodString>;
88
- }, z.core.$strip>>;
88
+ }, z.core.$loose>>;
89
89
  available_markets: z.ZodArray<z.ZodString>;
90
- }, z.core.$strip>>;
90
+ }, z.core.$loose>>;
91
91
  limit: z.ZodNullable<z.ZodNumber>;
92
92
  total: z.ZodNullable<z.ZodNumber>;
93
93
  offset: z.ZodNullable<z.ZodNumber>;
94
94
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
- }, z.core.$strip>;
95
+ }, z.core.$loose>;
96
96
  declare const spotifyGetUserSTopTracks: import("@keystrokehq/action").WorkflowActionDefinition<{
97
97
  limit?: number | undefined;
98
98
  offset?: number | undefined;
99
99
  time_range?: string | undefined;
100
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
100
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
101
+ connectionId: z.ZodString;
102
+ entityId: z.ZodString;
103
+ instanceId: z.ZodString;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ accessToken: z.ZodString;
106
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
107
+ connectionId: z.ZodString;
108
+ entityId: z.ZodString;
109
+ instanceId: z.ZodString;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ accessToken: z.ZodString;
112
+ }, z.core.$strip>>]>;
101
113
  //#endregion
102
114
  export { spotifyGetUserSTopTracks };
103
115
  //# sourceMappingURL=get-user-s-top-tracks.d.mts.map
@@ -10,8 +10,8 @@ const SpotifyGetUserSTopTracks_ImageSchema = z.object({
10
10
  url: z.string().describe("The source URL of the image").nullable(),
11
11
  width: z.number().int().describe("The image width in pixels").nullable().optional(),
12
12
  height: z.number().int().describe("The image height in pixels").nullable().optional()
13
- }).describe("Image object");
14
- const SpotifyGetUserSTopTracks_ExternalUrlsSchema = z.object({ spotify: z.string().describe("The Spotify URL for the object").nullable() }).describe("Known external URLs");
13
+ }).passthrough().describe("Image object");
14
+ const SpotifyGetUserSTopTracks_ExternalUrlsSchema = z.object({ spotify: z.string().describe("The Spotify URL for the object").nullable() }).passthrough().describe("Known external URLs");
15
15
  const SpotifyGetUserSTopTracks_SimplifiedArtistSchema = z.object({
16
16
  id: z.string().describe("The Spotify ID for the artist").nullable(),
17
17
  uri: z.string().describe("The Spotify URI for the artist").nullable(),
@@ -19,8 +19,8 @@ const SpotifyGetUserSTopTracks_SimplifiedArtistSchema = z.object({
19
19
  name: z.string().describe("The name of the artist").nullable(),
20
20
  type: z.string().describe("The object type: artist").nullable(),
21
21
  external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable()
22
- }).describe("Simplified artist object");
23
- const SpotifyGetUserSTopTracks_RestrictionsSchema = z.object({ reason: z.string().describe("The reason for the restriction: market, product, or explicit").nullable() }).describe("Content restriction object");
22
+ }).passthrough().describe("Simplified artist object");
23
+ const SpotifyGetUserSTopTracks_RestrictionsSchema = z.object({ reason: z.string().describe("The reason for the restriction: market, product, or explicit").nullable() }).passthrough().describe("Content restriction object");
24
24
  const SpotifyGetUserSTopTracks_SimplifiedAlbumSchema = z.object({
25
25
  id: z.string().describe("The Spotify ID for the album").nullable(),
26
26
  uri: z.string().describe("The Spotify URI for the album").nullable(),
@@ -36,19 +36,19 @@ const SpotifyGetUserSTopTracks_SimplifiedAlbumSchema = z.object({
36
36
  external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),
37
37
  available_markets: z.array(z.string()).describe("The markets in which the album is available (ISO 3166-1 alpha-2 country codes)"),
38
38
  release_date_precision: z.string().describe("The precision with which release_date value is known: year, month, or day").nullable()
39
- }).describe("Simplified album object");
39
+ }).passthrough().describe("Simplified album object");
40
40
  const SpotifyGetUserSTopTracks_LinkedFromSchema = z.object({
41
41
  id: z.string().describe("The Spotify ID for the track").nullable().optional(),
42
42
  uri: z.string().describe("The Spotify URI for the track").nullable().optional(),
43
43
  href: z.string().describe("A link to the Web API endpoint providing full details").nullable().optional(),
44
44
  type: z.string().describe("The object type: track").nullable().optional(),
45
45
  external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable().optional()
46
- }).describe("Information about the originally requested track when Track Relinking is applied");
46
+ }).passthrough().describe("Information about the originally requested track when Track Relinking is applied");
47
47
  const SpotifyGetUserSTopTracks_ExternalIdsSchema = z.object({
48
48
  ean: z.string().describe("International Article Number").nullable().optional(),
49
49
  upc: z.string().describe("Universal Product Code").nullable().optional(),
50
50
  isrc: z.string().describe("International Standard Recording Code").nullable().optional()
51
- }).describe("Known external IDs for the track");
51
+ }).passthrough().describe("Known external IDs for the track");
52
52
  const SpotifyGetUserSTopTracks_TrackSchema = z.object({
53
53
  id: z.string().describe("The Spotify ID for the track").nullable(),
54
54
  uri: z.string().describe("The Spotify URI for the track").nullable(),
@@ -70,7 +70,7 @@ const SpotifyGetUserSTopTracks_TrackSchema = z.object({
70
70
  track_number: z.number().int().describe("The number of the track. If an album has several discs, the track number is the number on the specified disc").nullable(),
71
71
  external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),
72
72
  available_markets: z.array(z.string()).describe("A list of the countries in which the track can be played (ISO 3166-1 alpha-2 country codes)")
73
- }).describe("Track object");
73
+ }).passthrough().describe("Track object");
74
74
  const spotifyGetUserSTopTracks = action("SPOTIFY_GET_USER_S_TOP_TRACKS", {
75
75
  slug: "spotify-get-user-s-top-tracks",
76
76
  name: "Get User's Top Tracks",
@@ -84,7 +84,7 @@ const spotifyGetUserSTopTracks = action("SPOTIFY_GET_USER_S_TOP_TRACKS", {
84
84
  total: z.number().int().describe("The total number of items available to return").nullable(),
85
85
  offset: z.number().int().describe("The offset of the items returned (as set in the query or by default)").nullable(),
86
86
  previous: z.string().describe("URL to the previous page of items (null if none)").nullable().optional()
87
- }).describe("Response schema for `GetUserSTopTracks` - Paginated response containing user's top tracks")
87
+ }).passthrough().describe("Response schema for `GetUserSTopTracks` - Paginated response containing user's top tracks")
88
88
  });
89
89
  //#endregion
90
90
  export { spotifyGetUserSTopTracks };
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-s-top-tracks.mjs","names":[],"sources":["../../src/actions/get-user-s-top-tracks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetUserSTopTracksInput = z.object({\n limit: z.number().int().default(20).describe(\"Maximum number of tracks to return. Minimum: 1, Maximum: 50.\").optional(),\n offset: z.number().int().default(0).describe(\"The index of the first track to return. Use with limit to paginate through results. Default: 0 (first track).\").optional(),\n time_range: z.string().default(\"medium_term\").describe(\"Time period for computing affinity. Options: 'long_term' (calculated from ~1 year of data), 'medium_term' (approximately last 6 months), 'short_term' (approximately last 4 weeks).\").optional(),\n}).describe(\"Request schema for `GetUserSTopTracks`\");\nconst SpotifyGetUserSTopTracks_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().optional(),\n height: z.number().int().describe(\"The image height in pixels\").nullable().optional(),\n}).describe(\"Image object\");\nconst SpotifyGetUserSTopTracks_ExternalUrlsSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object\").nullable(),\n}).describe(\"Known external URLs\");\nconst SpotifyGetUserSTopTracks_SimplifiedArtistSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the artist\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the artist\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the artist\").nullable(),\n name: z.string().describe(\"The name of the artist\").nullable(),\n type: z.string().describe(\"The object type: artist\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n}).describe(\"Simplified artist object\");\nconst SpotifyGetUserSTopTracks_RestrictionsSchema = z.object({\n reason: z.string().describe(\"The reason for the restriction: market, product, or explicit\").nullable(),\n}).describe(\"Content restriction object\");\nconst SpotifyGetUserSTopTracks_SimplifiedAlbumSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the album\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the album\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the album\").nullable(),\n name: z.string().describe(\"The name of the album\").nullable(),\n type: z.string().describe(\"The object type: album\").nullable(),\n images: z.array(SpotifyGetUserSTopTracks_ImageSchema).describe(\"The cover art for the album in various sizes, widest first\"),\n artists: z.array(SpotifyGetUserSTopTracks_SimplifiedArtistSchema).describe(\"The artists of the album\"),\n album_type: z.string().describe(\"The type of the album: album, single, or compilation\").nullable(),\n release_date: z.string().describe(\"The date the album was first released\").nullable(),\n restrictions: SpotifyGetUserSTopTracks_RestrictionsSchema.nullable().optional(),\n total_tracks: z.number().int().describe(\"The number of tracks in the album\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n available_markets: z.array(z.string()).describe(\"The markets in which the album is available (ISO 3166-1 alpha-2 country codes)\"),\n release_date_precision: z.string().describe(\"The precision with which release_date value is known: year, month, or day\").nullable(),\n}).describe(\"Simplified album object\");\nconst SpotifyGetUserSTopTracks_LinkedFromSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the track\").nullable().optional(),\n uri: z.string().describe(\"The Spotify URI for the track\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details\").nullable().optional(),\n type: z.string().describe(\"The object type: track\").nullable().optional(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable().optional(),\n}).describe(\"Information about the originally requested track when Track Relinking is applied\");\nconst SpotifyGetUserSTopTracks_ExternalIdsSchema = z.object({\n ean: z.string().describe(\"International Article Number\").nullable().optional(),\n upc: z.string().describe(\"Universal Product Code\").nullable().optional(),\n isrc: z.string().describe(\"International Standard Recording Code\").nullable().optional(),\n}).describe(\"Known external IDs for the track\");\nconst SpotifyGetUserSTopTracks_TrackSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the track\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the track\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the track\").nullable(),\n name: z.string().describe(\"The name of the track\").nullable(),\n type: z.string().describe(\"The object type: track\").nullable(),\n album: SpotifyGetUserSTopTracks_SimplifiedAlbumSchema.nullable(),\n artists: z.array(SpotifyGetUserSTopTracks_SimplifiedArtistSchema).describe(\"The artists who performed the track\"),\n explicit: z.boolean().describe(\"Whether or not the track has explicit lyrics (true = yes it does; false = no it does not OR unknown)\").nullable(),\n is_local: z.boolean().describe(\"Whether or not the track is from a local file\").nullable(),\n popularity: z.number().int().describe(\"The popularity of the track. The value will be between 0 and 100, with 100 being the most popular\").nullable(),\n disc_number: z.number().int().describe(\"The disc number (usually 1 unless the album consists of more than one disc)\").nullable(),\n duration_ms: z.number().int().describe(\"The track length in milliseconds\").nullable(),\n is_playable: z.boolean().describe(\"Part of the response when Track Relinking is applied. If true, the track is playable in the given market. Otherwise false.\").nullable().optional(),\n linked_from: SpotifyGetUserSTopTracks_LinkedFromSchema.nullable().optional(),\n preview_url: z.string().describe(\"A link to a 30 second preview (MP3 format) of the track. Can be null\").nullable().optional(),\n external_ids: SpotifyGetUserSTopTracks_ExternalIdsSchema.nullable(),\n restrictions: SpotifyGetUserSTopTracks_RestrictionsSchema.nullable().optional(),\n track_number: z.number().int().describe(\"The number of the track. If an album has several discs, the track number is the number on the specified disc\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n available_markets: z.array(z.string()).describe(\"A list of the countries in which the track can be played (ISO 3166-1 alpha-2 country codes)\"),\n}).describe(\"Track object\");\nexport const SpotifyGetUserSTopTracksOutput = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result of the request\").nullable(),\n next: z.string().describe(\"URL to the next page of items (null if none)\").nullable().optional(),\n items: z.array(SpotifyGetUserSTopTracks_TrackSchema).describe(\"Array of track objects\"),\n limit: z.number().int().describe(\"The maximum number of items in the response (as set in the query or by default)\").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 (as set in the query or by default)\").nullable(),\n previous: z.string().describe(\"URL to the previous page of items (null if none)\").nullable().optional(),\n}).describe(\"Response schema for `GetUserSTopTracks` - Paginated response containing user's top tracks\");\n\nexport const spotifyGetUserSTopTracks = action(\"SPOTIFY_GET_USER_S_TOP_TRACKS\", {\n slug: \"spotify-get-user-s-top-tracks\",\n name: \"Get User's Top Tracks\",\n description: \"Get the current user's top tracks based on calculated affinity. Returns the user's most-played tracks over different time periods based on their listening history and calculated affinity. Required OAuth Scope: user-top-read Note: The Spotify API limits results to the top 50 tracks per time range. Returns detailed track information including artist names, album details, popularity scores, duration, and preview URLs. Useful for understanding user listening preferences and music taste.\",\n input: SpotifyGetUserSTopTracksInput,\n output: SpotifyGetUserSTopTracksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACvK,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,qLAAqL,CAAC,CAAC,SAAS;AACzP,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,uCAAuC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,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,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,cAAc,2CAA2C,SAAS;CAClE,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACjK,eAAe,4CAA4C,SAAS;CACpE,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAC/I,CAAC,CAAC,CAAC,SAAS,cAAc;AAW1B,MAAa,2BAA2B,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,2FAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-s-top-tracks.mjs","names":[],"sources":["../../src/actions/get-user-s-top-tracks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyGetUserSTopTracksInput = z.object({\n limit: z.number().int().default(20).describe(\"Maximum number of tracks to return. Minimum: 1, Maximum: 50.\").optional(),\n offset: z.number().int().default(0).describe(\"The index of the first track to return. Use with limit to paginate through results. Default: 0 (first track).\").optional(),\n time_range: z.string().default(\"medium_term\").describe(\"Time period for computing affinity. Options: 'long_term' (calculated from ~1 year of data), 'medium_term' (approximately last 6 months), 'short_term' (approximately last 4 weeks).\").optional(),\n}).describe(\"Request schema for `GetUserSTopTracks`\");\nconst SpotifyGetUserSTopTracks_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().optional(),\n height: z.number().int().describe(\"The image height in pixels\").nullable().optional(),\n}).passthrough().describe(\"Image object\");\nconst SpotifyGetUserSTopTracks_ExternalUrlsSchema = z.object({\n spotify: z.string().describe(\"The Spotify URL for the object\").nullable(),\n}).passthrough().describe(\"Known external URLs\");\nconst SpotifyGetUserSTopTracks_SimplifiedArtistSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the artist\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the artist\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the artist\").nullable(),\n name: z.string().describe(\"The name of the artist\").nullable(),\n type: z.string().describe(\"The object type: artist\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n}).passthrough().describe(\"Simplified artist object\");\nconst SpotifyGetUserSTopTracks_RestrictionsSchema = z.object({\n reason: z.string().describe(\"The reason for the restriction: market, product, or explicit\").nullable(),\n}).passthrough().describe(\"Content restriction object\");\nconst SpotifyGetUserSTopTracks_SimplifiedAlbumSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the album\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the album\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the album\").nullable(),\n name: z.string().describe(\"The name of the album\").nullable(),\n type: z.string().describe(\"The object type: album\").nullable(),\n images: z.array(SpotifyGetUserSTopTracks_ImageSchema).describe(\"The cover art for the album in various sizes, widest first\"),\n artists: z.array(SpotifyGetUserSTopTracks_SimplifiedArtistSchema).describe(\"The artists of the album\"),\n album_type: z.string().describe(\"The type of the album: album, single, or compilation\").nullable(),\n release_date: z.string().describe(\"The date the album was first released\").nullable(),\n restrictions: SpotifyGetUserSTopTracks_RestrictionsSchema.nullable().optional(),\n total_tracks: z.number().int().describe(\"The number of tracks in the album\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n available_markets: z.array(z.string()).describe(\"The markets in which the album is available (ISO 3166-1 alpha-2 country codes)\"),\n release_date_precision: z.string().describe(\"The precision with which release_date value is known: year, month, or day\").nullable(),\n}).passthrough().describe(\"Simplified album object\");\nconst SpotifyGetUserSTopTracks_LinkedFromSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the track\").nullable().optional(),\n uri: z.string().describe(\"The Spotify URI for the track\").nullable().optional(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details\").nullable().optional(),\n type: z.string().describe(\"The object type: track\").nullable().optional(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about the originally requested track when Track Relinking is applied\");\nconst SpotifyGetUserSTopTracks_ExternalIdsSchema = z.object({\n ean: z.string().describe(\"International Article Number\").nullable().optional(),\n upc: z.string().describe(\"Universal Product Code\").nullable().optional(),\n isrc: z.string().describe(\"International Standard Recording Code\").nullable().optional(),\n}).passthrough().describe(\"Known external IDs for the track\");\nconst SpotifyGetUserSTopTracks_TrackSchema = z.object({\n id: z.string().describe(\"The Spotify ID for the track\").nullable(),\n uri: z.string().describe(\"The Spotify URI for the track\").nullable(),\n href: z.string().describe(\"A link to the Web API endpoint providing full details of the track\").nullable(),\n name: z.string().describe(\"The name of the track\").nullable(),\n type: z.string().describe(\"The object type: track\").nullable(),\n album: SpotifyGetUserSTopTracks_SimplifiedAlbumSchema.nullable(),\n artists: z.array(SpotifyGetUserSTopTracks_SimplifiedArtistSchema).describe(\"The artists who performed the track\"),\n explicit: z.boolean().describe(\"Whether or not the track has explicit lyrics (true = yes it does; false = no it does not OR unknown)\").nullable(),\n is_local: z.boolean().describe(\"Whether or not the track is from a local file\").nullable(),\n popularity: z.number().int().describe(\"The popularity of the track. The value will be between 0 and 100, with 100 being the most popular\").nullable(),\n disc_number: z.number().int().describe(\"The disc number (usually 1 unless the album consists of more than one disc)\").nullable(),\n duration_ms: z.number().int().describe(\"The track length in milliseconds\").nullable(),\n is_playable: z.boolean().describe(\"Part of the response when Track Relinking is applied. If true, the track is playable in the given market. Otherwise false.\").nullable().optional(),\n linked_from: SpotifyGetUserSTopTracks_LinkedFromSchema.nullable().optional(),\n preview_url: z.string().describe(\"A link to a 30 second preview (MP3 format) of the track. Can be null\").nullable().optional(),\n external_ids: SpotifyGetUserSTopTracks_ExternalIdsSchema.nullable(),\n restrictions: SpotifyGetUserSTopTracks_RestrictionsSchema.nullable().optional(),\n track_number: z.number().int().describe(\"The number of the track. If an album has several discs, the track number is the number on the specified disc\").nullable(),\n external_urls: SpotifyGetUserSTopTracks_ExternalUrlsSchema.nullable(),\n available_markets: z.array(z.string()).describe(\"A list of the countries in which the track can be played (ISO 3166-1 alpha-2 country codes)\"),\n}).passthrough().describe(\"Track object\");\nexport const SpotifyGetUserSTopTracksOutput = z.object({\n href: z.string().describe(\"A link to the Web API endpoint returning the full result of the request\").nullable(),\n next: z.string().describe(\"URL to the next page of items (null if none)\").nullable().optional(),\n items: z.array(SpotifyGetUserSTopTracks_TrackSchema).describe(\"Array of track objects\"),\n limit: z.number().int().describe(\"The maximum number of items in the response (as set in the query or by default)\").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 (as set in the query or by default)\").nullable(),\n previous: z.string().describe(\"URL to the previous page of items (null if none)\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `GetUserSTopTracks` - Paginated response containing user's top tracks\");\n\nexport const spotifyGetUserSTopTracks = action(\"SPOTIFY_GET_USER_S_TOP_TRACKS\", {\n slug: \"spotify-get-user-s-top-tracks\",\n name: \"Get User's Top Tracks\",\n description: \"Get the current user's top tracks based on calculated affinity. Returns the user's most-played tracks over different time periods based on their listening history and calculated affinity. Required OAuth Scope: user-top-read Note: The Spotify API limits results to the top 50 tracks per time range. Returns detailed track information including artist names, album details, popularity scores, duration, and preview URLs. Useful for understanding user listening preferences and music taste.\",\n input: SpotifyGetUserSTopTracksInput,\n output: SpotifyGetUserSTopTracksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACvK,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,qLAAqL,CAAC,CAAC,SAAS;AACzP,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,uCAAuC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,cAAc;AACxC,MAAM,8CAA8C,EAAE,OAAO,EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,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8GAA8G,CAAC,CAAC,SAAS;CACjK,eAAe,4CAA4C,SAAS;CACpE,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,cAAc;AAWxC,MAAa,2BAA2B,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,wBAAwB;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/pause-playback.ts
4
4
  const SpotifyPausePlaybackInput = zod.z.object({ device_id: zod.z.string().describe("The ID of the device to pause playback on. If not provided, playback will be paused on the currently active device. Use the 'get_available_devices' action to retrieve device IDs.").optional() }).describe("Request schema for `PausePlayback`");
5
- const SpotifyPausePlaybackOutput = zod.z.object({ success: zod.z.boolean().default(true).nullable().optional() }).describe("Response schema for `PausePlayback`\n\nThe Spotify API returns HTTP 204 No Content on successful pause.\nThis response object will be empty when the action succeeds.");
5
+ const SpotifyPausePlaybackOutput = zod.z.object({ success: zod.z.boolean().default(true).nullable().optional() }).passthrough().describe("Response schema for `PausePlayback`\n\nThe Spotify API returns HTTP 204 No Content on successful pause.\nThis response object will be empty when the action succeeds.");
6
6
  const spotifyPausePlayback = require_action.action("SPOTIFY_PAUSE_PLAYBACK", {
7
7
  slug: "spotify-pause-playback",
8
8
  name: "Pause playback",
@@ -1 +1 @@
1
- {"version":3,"file":"pause-playback.cjs","names":["z","action"],"sources":["../../src/actions/pause-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyPausePlaybackInput = z.object({\n device_id: z.string().describe(\"The ID of the device to pause playback on. If not provided, playback will be paused on the currently active device. Use the 'get_available_devices' action to retrieve device IDs.\").optional(),\n}).describe(\"Request schema for `PausePlayback`\");\nexport const SpotifyPausePlaybackOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).describe(\"Response schema for `PausePlayback`\\n\\nThe Spotify API returns HTTP 204 No Content on successful pause.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifyPausePlayback = action(\"SPOTIFY_PAUSE_PLAYBACK\", {\n slug: \"spotify-pause-playback\",\n name: \"Pause playback\",\n description: \"Pause playback on the user's account. Pauses playback on the currently active device or on a specified device. Returns immediately with success when playback is paused. If no device is specified, the currently active device will be paused. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. If playback is already paused, this action will still succeed (idempotent). Common scenarios: - Pause current playback: Call with no parameters - Pause specific device: Provide device_id parameter Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifyPausePlaybackInput,\n output: SpotifyPausePlaybackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS,EAChO,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uKAAuK;AAEnL,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"pause-playback.cjs","names":["z","action"],"sources":["../../src/actions/pause-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyPausePlaybackInput = z.object({\n device_id: z.string().describe(\"The ID of the device to pause playback on. If not provided, playback will be paused on the currently active device. Use the 'get_available_devices' action to retrieve device IDs.\").optional(),\n}).describe(\"Request schema for `PausePlayback`\");\nexport const SpotifyPausePlaybackOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).passthrough().describe(\"Response schema for `PausePlayback`\\n\\nThe Spotify API returns HTTP 204 No Content on successful pause.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifyPausePlayback = action(\"SPOTIFY_PAUSE_PLAYBACK\", {\n slug: \"spotify-pause-playback\",\n name: \"Pause playback\",\n description: \"Pause playback on the user's account. Pauses playback on the currently active device or on a specified device. Returns immediately with success when playback is paused. If no device is specified, the currently active device will be paused. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. If playback is already paused, this action will still succeed (idempotent). Common scenarios: - Pause current playback: Call with no parameters - Pause specific device: Provide device_id parameter Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifyPausePlaybackInput,\n output: SpotifyPausePlaybackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS,EAChO,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uKAAuK;AAEjM,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,10 +6,22 @@ declare const SpotifyPausePlaybackInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const SpotifyPausePlaybackOutput: z.ZodObject<{
8
8
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const spotifyPausePlayback: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  device_id?: string | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ accessToken: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { spotifyPausePlayback };
15
27
  //# sourceMappingURL=pause-playback.d.cts.map
@@ -6,10 +6,22 @@ declare const SpotifyPausePlaybackInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const SpotifyPausePlaybackOutput: z.ZodObject<{
8
8
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const spotifyPausePlayback: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  device_id?: string | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ accessToken: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ accessToken: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { spotifyPausePlayback };
15
27
  //# sourceMappingURL=pause-playback.d.mts.map
@@ -5,7 +5,7 @@ const spotifyPausePlayback = action("SPOTIFY_PAUSE_PLAYBACK", {
5
5
  name: "Pause playback",
6
6
  description: "Pause playback on the user's account. Pauses playback on the currently active device or on a specified device. Returns immediately with success when playback is paused. If no device is specified, the currently active device will be paused. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. If playback is already paused, this action will still succeed (idempotent). Common scenarios: - Pause current playback: Call with no parameters - Pause specific device: Provide device_id parameter Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found",
7
7
  input: z.object({ device_id: z.string().describe("The ID of the device to pause playback on. If not provided, playback will be paused on the currently active device. Use the 'get_available_devices' action to retrieve device IDs.").optional() }).describe("Request schema for `PausePlayback`"),
8
- output: z.object({ success: z.boolean().default(true).nullable().optional() }).describe("Response schema for `PausePlayback`\n\nThe Spotify API returns HTTP 204 No Content on successful pause.\nThis response object will be empty when the action succeeds.")
8
+ output: z.object({ success: z.boolean().default(true).nullable().optional() }).passthrough().describe("Response schema for `PausePlayback`\n\nThe Spotify API returns HTTP 204 No Content on successful pause.\nThis response object will be empty when the action succeeds.")
9
9
  });
10
10
  //#endregion
11
11
  export { spotifyPausePlayback };
@@ -1 +1 @@
1
- {"version":3,"file":"pause-playback.mjs","names":[],"sources":["../../src/actions/pause-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyPausePlaybackInput = z.object({\n device_id: z.string().describe(\"The ID of the device to pause playback on. If not provided, playback will be paused on the currently active device. Use the 'get_available_devices' action to retrieve device IDs.\").optional(),\n}).describe(\"Request schema for `PausePlayback`\");\nexport const SpotifyPausePlaybackOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).describe(\"Response schema for `PausePlayback`\\n\\nThe Spotify API returns HTTP 204 No Content on successful pause.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifyPausePlayback = action(\"SPOTIFY_PAUSE_PLAYBACK\", {\n slug: \"spotify-pause-playback\",\n name: \"Pause playback\",\n description: \"Pause playback on the user's account. Pauses playback on the currently active device or on a specified device. Returns immediately with success when playback is paused. If no device is specified, the currently active device will be paused. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. If playback is already paused, this action will still succeed (idempotent). Common scenarios: - Pause current playback: Call with no parameters - Pause specific device: Provide device_id parameter Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifyPausePlaybackInput,\n output: SpotifyPausePlaybackOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuC,EAAE,OAAO,EAChD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS,EAChO,CAAC,CAAC,CAAC,SAAS,oCASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,SAAS,uKAOF;AACV,CAAC"}
1
+ {"version":3,"file":"pause-playback.mjs","names":[],"sources":["../../src/actions/pause-playback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpotifyPausePlaybackInput = z.object({\n device_id: z.string().describe(\"The ID of the device to pause playback on. If not provided, playback will be paused on the currently active device. Use the 'get_available_devices' action to retrieve device IDs.\").optional(),\n}).describe(\"Request schema for `PausePlayback`\");\nexport const SpotifyPausePlaybackOutput = z.object({\n success: z.boolean().default(true).nullable().optional(),\n}).passthrough().describe(\"Response schema for `PausePlayback`\\n\\nThe Spotify API returns HTTP 204 No Content on successful pause.\\nThis response object will be empty when the action succeeds.\");\n\nexport const spotifyPausePlayback = action(\"SPOTIFY_PAUSE_PLAYBACK\", {\n slug: \"spotify-pause-playback\",\n name: \"Pause playback\",\n description: \"Pause playback on the user's account. Pauses playback on the currently active device or on a specified device. Returns immediately with success when playback is paused. If no device is specified, the currently active device will be paused. Requirements: - Spotify Premium subscription - OAuth scope: user-modify-playback-state - Active playback session Note: The order of execution is not guaranteed when you use this API with other Player API endpoints. If playback is already paused, this action will still succeed (idempotent). Common scenarios: - Pause current playback: Call with no parameters - Pause specific device: Provide device_id parameter Error scenarios: - 403: User does not have Spotify Premium - 404: No active device found\",\n input: SpotifyPausePlaybackInput,\n output: SpotifyPausePlaybackOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuC,EAAE,OAAO,EAChD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS,EAChO,CAAC,CAAC,CAAC,SAAS,oCASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uKAOhB;AACV,CAAC"}
@@ -20,7 +20,19 @@ declare const spotifyRemovePlaylistItems: import("@keystrokehq/action").Workflow
20
20
  }[];
21
21
  playlist_id: string;
22
22
  snapshot_id?: string | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
24
+ connectionId: z.ZodString;
25
+ entityId: z.ZodString;
26
+ instanceId: z.ZodString;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ accessToken: z.ZodString;
29
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
30
+ connectionId: z.ZodString;
31
+ entityId: z.ZodString;
32
+ instanceId: z.ZodString;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ accessToken: z.ZodString;
35
+ }, z.core.$strip>>]>;
24
36
  //#endregion
25
37
  export { spotifyRemovePlaylistItems };
26
38
  //# sourceMappingURL=remove-playlist-items.d.cts.map
@@ -20,7 +20,19 @@ declare const spotifyRemovePlaylistItems: import("@keystrokehq/action").Workflow
20
20
  }[];
21
21
  playlist_id: string;
22
22
  snapshot_id?: string | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
24
+ connectionId: z.ZodString;
25
+ entityId: z.ZodString;
26
+ instanceId: z.ZodString;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ accessToken: z.ZodString;
29
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"spotify", z.ZodObject<{
30
+ connectionId: z.ZodString;
31
+ entityId: z.ZodString;
32
+ instanceId: z.ZodString;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ accessToken: z.ZodString;
35
+ }, z.core.$strip>>]>;
24
36
  //#endregion
25
37
  export { spotifyRemovePlaylistItems };
26
38
  //# sourceMappingURL=remove-playlist-items.d.mts.map