spotted-ts 0.1.0 → 0.13.0

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 (247) hide show
  1. package/CHANGELOG.md +183 -3
  2. package/README.md +50 -4
  3. package/client.d.mts +33 -25
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +33 -25
  6. package/client.d.ts.map +1 -1
  7. package/client.js +16 -9
  8. package/client.js.map +1 -1
  9. package/client.mjs +17 -10
  10. package/client.mjs.map +1 -1
  11. package/package.json +2 -2
  12. package/resources/albums.d.mts +34 -2
  13. package/resources/albums.d.mts.map +1 -1
  14. package/resources/albums.d.ts +34 -2
  15. package/resources/albums.d.ts.map +1 -1
  16. package/resources/artists.d.mts +15 -7
  17. package/resources/artists.d.mts.map +1 -1
  18. package/resources/artists.d.ts +15 -7
  19. package/resources/artists.d.ts.map +1 -1
  20. package/resources/artists.js +2 -2
  21. package/resources/artists.js.map +1 -1
  22. package/resources/artists.mjs +2 -2
  23. package/resources/artists.mjs.map +1 -1
  24. package/resources/audio-analysis.d.mts +32 -0
  25. package/resources/audio-analysis.d.mts.map +1 -1
  26. package/resources/audio-analysis.d.ts +32 -0
  27. package/resources/audio-analysis.d.ts.map +1 -1
  28. package/resources/audio-features.d.mts +22 -6
  29. package/resources/audio-features.d.mts.map +1 -1
  30. package/resources/audio-features.d.ts +22 -6
  31. package/resources/audio-features.d.ts.map +1 -1
  32. package/resources/audio-features.js +1 -1
  33. package/resources/audio-features.js.map +1 -1
  34. package/resources/audio-features.mjs +1 -1
  35. package/resources/audio-features.mjs.map +1 -1
  36. package/resources/audiobooks.d.mts +32 -8
  37. package/resources/audiobooks.d.mts.map +1 -1
  38. package/resources/audiobooks.d.ts +32 -8
  39. package/resources/audiobooks.d.ts.map +1 -1
  40. package/resources/audiobooks.js +1 -1
  41. package/resources/audiobooks.js.map +1 -1
  42. package/resources/audiobooks.mjs +1 -1
  43. package/resources/audiobooks.mjs.map +1 -1
  44. package/resources/browse/browse.d.mts +27 -3
  45. package/resources/browse/browse.d.mts.map +1 -1
  46. package/resources/browse/browse.d.ts +27 -3
  47. package/resources/browse/browse.d.ts.map +1 -1
  48. package/resources/browse/browse.js.map +1 -1
  49. package/resources/browse/browse.mjs.map +1 -1
  50. package/resources/browse/categories.d.mts +45 -53
  51. package/resources/browse/categories.d.mts.map +1 -1
  52. package/resources/browse/categories.d.ts +45 -53
  53. package/resources/browse/categories.d.ts.map +1 -1
  54. package/resources/browse/categories.js +5 -1
  55. package/resources/browse/categories.js.map +1 -1
  56. package/resources/browse/categories.mjs +5 -1
  57. package/resources/browse/categories.mjs.map +1 -1
  58. package/resources/browse/index.d.mts +1 -1
  59. package/resources/browse/index.d.mts.map +1 -1
  60. package/resources/browse/index.d.ts +1 -1
  61. package/resources/browse/index.d.ts.map +1 -1
  62. package/resources/browse/index.js.map +1 -1
  63. package/resources/browse/index.mjs.map +1 -1
  64. package/resources/chapters.d.mts +22 -6
  65. package/resources/chapters.d.mts.map +1 -1
  66. package/resources/chapters.d.ts +22 -6
  67. package/resources/chapters.d.ts.map +1 -1
  68. package/resources/chapters.js +1 -1
  69. package/resources/chapters.js.map +1 -1
  70. package/resources/chapters.mjs +1 -1
  71. package/resources/chapters.mjs.map +1 -1
  72. package/resources/episodes.d.mts +4 -4
  73. package/resources/episodes.d.mts.map +1 -1
  74. package/resources/episodes.d.ts +4 -4
  75. package/resources/episodes.d.ts.map +1 -1
  76. package/resources/episodes.js +1 -1
  77. package/resources/episodes.js.map +1 -1
  78. package/resources/episodes.mjs +1 -1
  79. package/resources/episodes.mjs.map +1 -1
  80. package/resources/index.d.mts +8 -8
  81. package/resources/index.d.mts.map +1 -1
  82. package/resources/index.d.ts +8 -8
  83. package/resources/index.d.ts.map +1 -1
  84. package/resources/index.js.map +1 -1
  85. package/resources/index.mjs +1 -1
  86. package/resources/index.mjs.map +1 -1
  87. package/resources/me/albums.d.mts +41 -1
  88. package/resources/me/albums.d.mts.map +1 -1
  89. package/resources/me/albums.d.ts +41 -1
  90. package/resources/me/albums.d.ts.map +1 -1
  91. package/resources/me/audiobooks.d.mts +17 -1
  92. package/resources/me/audiobooks.d.mts.map +1 -1
  93. package/resources/me/audiobooks.d.ts +17 -1
  94. package/resources/me/audiobooks.d.ts.map +1 -1
  95. package/resources/me/episodes.d.mts +24 -0
  96. package/resources/me/episodes.d.mts.map +1 -1
  97. package/resources/me/episodes.d.ts +24 -0
  98. package/resources/me/episodes.d.ts.map +1 -1
  99. package/resources/me/following.d.mts +39 -7
  100. package/resources/me/following.d.mts.map +1 -1
  101. package/resources/me/following.d.ts +39 -7
  102. package/resources/me/following.d.ts.map +1 -1
  103. package/resources/me/following.js +2 -2
  104. package/resources/me/following.js.map +1 -1
  105. package/resources/me/following.mjs +2 -2
  106. package/resources/me/following.mjs.map +1 -1
  107. package/resources/me/index.d.mts +1 -1
  108. package/resources/me/index.d.mts.map +1 -1
  109. package/resources/me/index.d.ts +1 -1
  110. package/resources/me/index.d.ts.map +1 -1
  111. package/resources/me/me.d.mts +18 -2
  112. package/resources/me/me.d.mts.map +1 -1
  113. package/resources/me/me.d.ts +18 -2
  114. package/resources/me/me.d.ts.map +1 -1
  115. package/resources/me/me.js.map +1 -1
  116. package/resources/me/me.mjs.map +1 -1
  117. package/resources/me/player/player.d.mts +72 -0
  118. package/resources/me/player/player.d.mts.map +1 -1
  119. package/resources/me/player/player.d.ts +72 -0
  120. package/resources/me/player/player.d.ts.map +1 -1
  121. package/resources/me/player/player.js.map +1 -1
  122. package/resources/me/player/player.mjs.map +1 -1
  123. package/resources/me/player/queue.d.mts +8 -0
  124. package/resources/me/player/queue.d.mts.map +1 -1
  125. package/resources/me/player/queue.d.ts +8 -0
  126. package/resources/me/player/queue.d.ts.map +1 -1
  127. package/resources/me/shows.d.mts +24 -0
  128. package/resources/me/shows.d.mts.map +1 -1
  129. package/resources/me/shows.d.ts +24 -0
  130. package/resources/me/shows.d.ts.map +1 -1
  131. package/resources/me/tracks.d.mts +24 -0
  132. package/resources/me/tracks.d.mts.map +1 -1
  133. package/resources/me/tracks.d.ts +24 -0
  134. package/resources/me/tracks.d.ts.map +1 -1
  135. package/resources/playlists/followers.d.mts +4 -3
  136. package/resources/playlists/followers.d.mts.map +1 -1
  137. package/resources/playlists/followers.d.ts +4 -3
  138. package/resources/playlists/followers.d.ts.map +1 -1
  139. package/resources/playlists/images.d.mts +7 -12
  140. package/resources/playlists/images.d.mts.map +1 -1
  141. package/resources/playlists/images.d.ts +7 -12
  142. package/resources/playlists/images.d.ts.map +1 -1
  143. package/resources/playlists/images.js +11 -7
  144. package/resources/playlists/images.js.map +1 -1
  145. package/resources/playlists/images.mjs +11 -7
  146. package/resources/playlists/images.mjs.map +1 -1
  147. package/resources/playlists/index.d.mts +1 -1
  148. package/resources/playlists/index.d.mts.map +1 -1
  149. package/resources/playlists/index.d.ts +1 -1
  150. package/resources/playlists/index.d.ts.map +1 -1
  151. package/resources/playlists/index.js.map +1 -1
  152. package/resources/playlists/index.mjs.map +1 -1
  153. package/resources/playlists/playlists.d.mts +17 -8
  154. package/resources/playlists/playlists.d.mts.map +1 -1
  155. package/resources/playlists/playlists.d.ts +17 -8
  156. package/resources/playlists/playlists.d.ts.map +1 -1
  157. package/resources/playlists/playlists.js.map +1 -1
  158. package/resources/playlists/playlists.mjs.map +1 -1
  159. package/resources/playlists/tracks.d.mts +24 -0
  160. package/resources/playlists/tracks.d.mts.map +1 -1
  161. package/resources/playlists/tracks.d.ts +24 -0
  162. package/resources/playlists/tracks.d.ts.map +1 -1
  163. package/resources/recommendations.d.mts +16 -0
  164. package/resources/recommendations.d.mts.map +1 -1
  165. package/resources/recommendations.d.ts +16 -0
  166. package/resources/recommendations.d.ts.map +1 -1
  167. package/resources/search.d.mts +73 -17
  168. package/resources/search.d.mts.map +1 -1
  169. package/resources/search.d.ts +73 -17
  170. package/resources/search.d.ts.map +1 -1
  171. package/resources/search.js +1 -1
  172. package/resources/search.js.map +1 -1
  173. package/resources/search.mjs +1 -1
  174. package/resources/search.mjs.map +1 -1
  175. package/resources/shared.d.mts +214 -5
  176. package/resources/shared.d.mts.map +1 -1
  177. package/resources/shared.d.ts +214 -5
  178. package/resources/shared.d.ts.map +1 -1
  179. package/resources/shows.d.mts +13 -5
  180. package/resources/shows.d.mts.map +1 -1
  181. package/resources/shows.d.ts +13 -5
  182. package/resources/shows.d.ts.map +1 -1
  183. package/resources/shows.js +1 -1
  184. package/resources/shows.js.map +1 -1
  185. package/resources/shows.mjs +1 -1
  186. package/resources/shows.mjs.map +1 -1
  187. package/resources/tracks.d.mts +4 -4
  188. package/resources/tracks.d.mts.map +1 -1
  189. package/resources/tracks.d.ts +4 -4
  190. package/resources/tracks.d.ts.map +1 -1
  191. package/resources/tracks.js +1 -1
  192. package/resources/tracks.js.map +1 -1
  193. package/resources/tracks.mjs +1 -1
  194. package/resources/tracks.mjs.map +1 -1
  195. package/resources/users/playlists.d.mts +18 -11
  196. package/resources/users/playlists.d.mts.map +1 -1
  197. package/resources/users/playlists.d.ts +18 -11
  198. package/resources/users/playlists.d.ts.map +1 -1
  199. package/resources/users/users.d.mts +8 -0
  200. package/resources/users/users.d.mts.map +1 -1
  201. package/resources/users/users.d.ts +8 -0
  202. package/resources/users/users.d.ts.map +1 -1
  203. package/resources/users/users.js.map +1 -1
  204. package/resources/users/users.mjs.map +1 -1
  205. package/src/client.ts +71 -55
  206. package/src/resources/albums.ts +40 -4
  207. package/src/resources/artists.ts +24 -12
  208. package/src/resources/audio-analysis.ts +36 -0
  209. package/src/resources/audio-features.ts +28 -7
  210. package/src/resources/audiobooks.ts +41 -11
  211. package/src/resources/browse/browse.ts +31 -2
  212. package/src/resources/browse/categories.ts +54 -62
  213. package/src/resources/browse/index.ts +1 -0
  214. package/src/resources/chapters.ts +28 -7
  215. package/src/resources/episodes.ts +8 -5
  216. package/src/resources/index.ts +21 -16
  217. package/src/resources/me/albums.ts +47 -2
  218. package/src/resources/me/audiobooks.ts +20 -2
  219. package/src/resources/me/episodes.ts +27 -0
  220. package/src/resources/me/following.ts +47 -8
  221. package/src/resources/me/index.ts +2 -2
  222. package/src/resources/me/me.ts +22 -4
  223. package/src/resources/me/player/player.ts +81 -0
  224. package/src/resources/me/player/queue.ts +9 -0
  225. package/src/resources/me/shows.ts +27 -0
  226. package/src/resources/me/tracks.ts +27 -0
  227. package/src/resources/playlists/followers.ts +4 -3
  228. package/src/resources/playlists/images.ts +16 -15
  229. package/src/resources/playlists/index.ts +1 -1
  230. package/src/resources/playlists/playlists.ts +19 -13
  231. package/src/resources/playlists/tracks.ts +27 -0
  232. package/src/resources/recommendations.ts +18 -0
  233. package/src/resources/search.ts +86 -26
  234. package/src/resources/shared.ts +241 -6
  235. package/src/resources/shows.ts +19 -7
  236. package/src/resources/tracks.ts +8 -5
  237. package/src/resources/users/playlists.ts +20 -12
  238. package/src/resources/users/users.ts +9 -0
  239. package/src/version.ts +1 -1
  240. package/version.d.mts +1 -1
  241. package/version.d.mts.map +1 -1
  242. package/version.d.ts +1 -1
  243. package/version.d.ts.map +1 -1
  244. package/version.js +1 -1
  245. package/version.js.map +1 -1
  246. package/version.mjs +1 -1
  247. package/version.mjs.map +1 -1
@@ -278,6 +278,15 @@ export interface ContextObject {
278
278
  */
279
279
  href?: string;
280
280
 
281
+ /**
282
+ * The playlist's public/private status (if it should be added to the user's
283
+ * profile or not): `true` the playlist will be public, `false` the playlist will
284
+ * be private, `null` the playlist status is not relevant. For more about
285
+ * public/private status, see
286
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
287
+ */
288
+ published?: boolean;
289
+
281
290
  /**
282
291
  * The object type, e.g. "artist", "playlist", "album", "show".
283
292
  */
@@ -321,6 +330,15 @@ export interface DeviceObject {
321
330
  */
322
331
  name?: string;
323
332
 
333
+ /**
334
+ * The playlist's public/private status (if it should be added to the user's
335
+ * profile or not): `true` the playlist will be public, `false` the playlist will
336
+ * be private, `null` the playlist status is not relevant. For more about
337
+ * public/private status, see
338
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
339
+ */
340
+ published?: boolean;
341
+
324
342
  /**
325
343
  * If this device can be used to set the volume.
326
344
  */
@@ -370,6 +388,15 @@ export interface PlayerGetCurrentlyPlayingResponse {
370
388
  */
371
389
  progress_ms?: number;
372
390
 
391
+ /**
392
+ * The playlist's public/private status (if it should be added to the user's
393
+ * profile or not): `true` the playlist will be public, `false` the playlist will
394
+ * be private, `null` the playlist status is not relevant. For more about
395
+ * public/private status, see
396
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
397
+ */
398
+ published?: boolean;
399
+
373
400
  /**
374
401
  * Unix Millisecond Timestamp when data was fetched
375
402
  */
@@ -392,6 +419,15 @@ export namespace PlayerGetCurrentlyPlayingResponse {
392
419
  */
393
420
  pausing?: boolean;
394
421
 
422
+ /**
423
+ * The playlist's public/private status (if it should be added to the user's
424
+ * profile or not): `true` the playlist will be public, `false` the playlist will
425
+ * be private, `null` the playlist status is not relevant. For more about
426
+ * public/private status, see
427
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
428
+ */
429
+ published?: boolean;
430
+
395
431
  /**
396
432
  * Resuming. Optional field.
397
433
  */
@@ -476,6 +512,15 @@ export interface PlayerGetStateResponse {
476
512
  */
477
513
  progress_ms?: number;
478
514
 
515
+ /**
516
+ * The playlist's public/private status (if it should be added to the user's
517
+ * profile or not): `true` the playlist will be public, `false` the playlist will
518
+ * be private, `null` the playlist status is not relevant. For more about
519
+ * public/private status, see
520
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
521
+ */
522
+ published?: boolean;
523
+
479
524
  /**
480
525
  * off, track, context
481
526
  */
@@ -509,6 +554,15 @@ export namespace PlayerGetStateResponse {
509
554
  */
510
555
  pausing?: boolean;
511
556
 
557
+ /**
558
+ * The playlist's public/private status (if it should be added to the user's
559
+ * profile or not): `true` the playlist will be public, `false` the playlist will
560
+ * be private, `null` the playlist status is not relevant. For more about
561
+ * public/private status, see
562
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
563
+ */
564
+ published?: boolean;
565
+
512
566
  /**
513
567
  * Resuming. Optional field.
514
568
  */
@@ -562,6 +616,15 @@ export interface PlayerListRecentlyPlayedResponse {
562
616
  */
563
617
  played_at?: string;
564
618
 
619
+ /**
620
+ * The playlist's public/private status (if it should be added to the user's
621
+ * profile or not): `true` the playlist will be public, `false` the playlist will
622
+ * be private, `null` the playlist status is not relevant. For more about
623
+ * public/private status, see
624
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
625
+ */
626
+ published?: boolean;
627
+
565
628
  /**
566
629
  * The track the user listened to.
567
630
  */
@@ -735,6 +798,15 @@ export interface PlayerStartPlaybackParams {
735
798
  */
736
799
  position_ms?: number;
737
800
 
801
+ /**
802
+ * Body param: The playlist's public/private status (if it should be added to the
803
+ * user's profile or not): `true` the playlist will be public, `false` the playlist
804
+ * will be private, `null` the playlist status is not relevant. For more about
805
+ * public/private status, see
806
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
807
+ */
808
+ published?: boolean;
809
+
738
810
  /**
739
811
  * Body param: Optional. A JSON array of the Spotify track URIs to play. For
740
812
  * example:
@@ -775,6 +847,15 @@ export interface PlayerTransferParams {
775
847
  */
776
848
  play?: boolean;
777
849
 
850
+ /**
851
+ * The playlist's public/private status (if it should be added to the user's
852
+ * profile or not): `true` the playlist will be public, `false` the playlist will
853
+ * be private, `null` the playlist status is not relevant. For more about
854
+ * public/private status, see
855
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
856
+ */
857
+ published?: boolean;
858
+
778
859
  [k: string]: unknown;
779
860
  }
780
861
 
@@ -47,6 +47,15 @@ export interface QueueGetResponse {
47
47
  */
48
48
  currently_playing?: Shared.TrackObject | Shared.EpisodeObject;
49
49
 
50
+ /**
51
+ * The playlist's public/private status (if it should be added to the user's
52
+ * profile or not): `true` the playlist will be public, `false` the playlist will
53
+ * be private, `null` the playlist status is not relevant. For more about
54
+ * public/private status, see
55
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
56
+ */
57
+ published?: boolean;
58
+
50
59
  /**
51
60
  * The tracks or episodes in the queue. Can be empty.
52
61
  */
@@ -87,6 +87,15 @@ export interface ShowListResponse {
87
87
  */
88
88
  added_at?: string;
89
89
 
90
+ /**
91
+ * The playlist's public/private status (if it should be added to the user's
92
+ * profile or not): `true` the playlist will be public, `false` the playlist will
93
+ * be private, `null` the playlist status is not relevant. For more about
94
+ * public/private status, see
95
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
96
+ */
97
+ published?: boolean;
98
+
90
99
  /**
91
100
  * Information about the show.
92
101
  */
@@ -126,6 +135,15 @@ export interface ShowRemoveParams {
126
135
  * be ignored._
127
136
  */
128
137
  ids?: Array<string>;
138
+
139
+ /**
140
+ * The playlist's public/private status (if it should be added to the user's
141
+ * profile or not): `true` the playlist will be public, `false` the playlist will
142
+ * be private, `null` the playlist status is not relevant. For more about
143
+ * public/private status, see
144
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
145
+ */
146
+ published?: boolean;
129
147
  }
130
148
 
131
149
  export interface ShowSaveParams {
@@ -137,6 +155,15 @@ export interface ShowSaveParams {
137
155
  * be ignored._
138
156
  */
139
157
  ids?: Array<string>;
158
+
159
+ /**
160
+ * The playlist's public/private status (if it should be added to the user's
161
+ * profile or not): `true` the playlist will be public, `false` the playlist will
162
+ * be private, `null` the playlist status is not relevant. For more about
163
+ * public/private status, see
164
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
165
+ */
166
+ published?: boolean;
140
167
  }
141
168
 
142
169
  export declare namespace Shows {
@@ -87,6 +87,15 @@ export interface TrackListResponse {
87
87
  */
88
88
  added_at?: string;
89
89
 
90
+ /**
91
+ * The playlist's public/private status (if it should be added to the user's
92
+ * profile or not): `true` the playlist will be public, `false` the playlist will
93
+ * be private, `null` the playlist status is not relevant. For more about
94
+ * public/private status, see
95
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
96
+ */
97
+ published?: boolean;
98
+
90
99
  /**
91
100
  * Information about the track.
92
101
  */
@@ -140,6 +149,15 @@ export interface TrackRemoveParams {
140
149
  */
141
150
  ids?: Array<string>;
142
151
 
152
+ /**
153
+ * The playlist's public/private status (if it should be added to the user's
154
+ * profile or not): `true` the playlist will be public, `false` the playlist will
155
+ * be private, `null` the playlist status is not relevant. For more about
156
+ * public/private status, see
157
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
158
+ */
159
+ published?: boolean;
160
+
143
161
  [k: string]: unknown;
144
162
  }
145
163
 
@@ -154,6 +172,15 @@ export interface TrackSaveParams {
154
172
  */
155
173
  ids: Array<string>;
156
174
 
175
+ /**
176
+ * The playlist's public/private status (if it should be added to the user's
177
+ * profile or not): `true` the playlist will be public, `false` the playlist will
178
+ * be private, `null` the playlist status is not relevant. For more about
179
+ * public/private status, see
180
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
181
+ */
182
+ published?: boolean;
183
+
157
184
  /**
158
185
  * A JSON array of objects containing track IDs with their corresponding
159
186
  * timestamps. Each object must include a track ID and an `added_at` timestamp.
@@ -78,12 +78,13 @@ export interface FollowerCheckParams {
78
78
 
79
79
  export interface FollowerFollowParams {
80
80
  /**
81
- * Defaults to `true`. If `true` the playlist will be included in user's public
82
- * playlists (added to profile), if `false` it will remain private. For more about
81
+ * The playlist's public/private status (if it should be added to the user's
82
+ * profile or not): `true` the playlist will be public, `false` the playlist will
83
+ * be private, `null` the playlist status is not relevant. For more about
83
84
  * public/private status, see
84
85
  * [Working with Playlists](/documentation/web-api/concepts/playlists)
85
86
  */
86
- public?: boolean;
87
+ published?: boolean;
87
88
 
88
89
  [k: string]: unknown;
89
90
  }
@@ -13,20 +13,28 @@ export class Images extends APIResource {
13
13
  *
14
14
  * @example
15
15
  * ```ts
16
- * await client.playlists.images.update(
16
+ * const image = await client.playlists.images.update(
17
17
  * '3cEYpjA9oz9GiPac4AsH4n',
18
- * {
19
- * body: '/9j/2wCEABoZGSccJz4lJT5CLy8vQkc9Ozs9R0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0cBHCcnMyYzPSYmPUc9Mj1HR0dEREdHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR//dAAQAAf/uAA5BZG9iZQBkwAAAAAH/wAARCAABAAEDACIAAREBAhEB/8QASwABAQAAAAAAAAAAAAAAAAAAAAYBAQAAAAAAAAAAAAAAAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAARAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwAAARECEQA/AJgAH//Z',
20
- * },
18
+ * fs.createReadStream('path/to/file'),
21
19
  * );
20
+ *
21
+ * const content = await image.blob();
22
+ * console.log(content);
22
23
  * ```
23
24
  */
24
- update(playlistID: string, params: ImageUpdateParams, options?: RequestOptions): APIPromise<void> {
25
- const { body } = params;
25
+ update(
26
+ playlistID: string,
27
+ body: string | ArrayBuffer | ArrayBufferView | Blob | DataView,
28
+ options?: RequestOptions,
29
+ ): APIPromise<Response> {
26
30
  return this._client.put(path`/playlists/${playlistID}/images`, {
27
31
  body: body,
28
32
  ...options,
29
- headers: buildHeaders([{ 'Content-Type': 'image/jpeg', Accept: '*/*' }, options?.headers]),
33
+ headers: buildHeaders([
34
+ { 'Content-Type': 'image/jpeg', Accept: 'application/binary' },
35
+ options?.headers,
36
+ ]),
37
+ __binaryResponse: true,
30
38
  });
31
39
  }
32
40
 
@@ -47,13 +55,6 @@ export class Images extends APIResource {
47
55
 
48
56
  export type ImageListResponse = Array<Shared.ImageObject>;
49
57
 
50
- export interface ImageUpdateParams {
51
- /**
52
- * Base64 encoded JPEG image data, maximum payload size is 256 KB.
53
- */
54
- body: string;
55
- }
56
-
57
58
  export declare namespace Images {
58
- export { type ImageListResponse as ImageListResponse, type ImageUpdateParams as ImageUpdateParams };
59
+ export { type ImageListResponse as ImageListResponse };
59
60
  }
@@ -6,7 +6,7 @@ export {
6
6
  type FollowerCheckParams,
7
7
  type FollowerFollowParams,
8
8
  } from './followers';
9
- export { Images, type ImageListResponse, type ImageUpdateParams } from './images';
9
+ export { Images, type ImageListResponse } from './images';
10
10
  export {
11
11
  Playlists,
12
12
  type PlaylistRetrieveResponse,
@@ -5,7 +5,7 @@ import * as Shared from '../shared';
5
5
  import * as FollowersAPI from './followers';
6
6
  import { FollowerCheckParams, FollowerCheckResponse, FollowerFollowParams, Followers } from './followers';
7
7
  import * as ImagesAPI from './images';
8
- import { ImageListResponse, ImageUpdateParams, Images } from './images';
8
+ import { ImageListResponse, Images } from './images';
9
9
  import * as TracksAPI from './tracks';
10
10
  import {
11
11
  TrackAddParams,
@@ -120,12 +120,13 @@ export interface PlaylistRetrieveResponse {
120
120
  owner?: PlaylistRetrieveResponse.Owner;
121
121
 
122
122
  /**
123
- * The playlist's public/private status (if it is added to the user's profile):
124
- * `true` the playlist is public, `false` the playlist is private, `null` the
125
- * playlist status is not relevant. For more about public/private status, see
123
+ * The playlist's public/private status (if it should be added to the user's
124
+ * profile or not): `true` the playlist will be public, `false` the playlist will
125
+ * be private, `null` the playlist status is not relevant. For more about
126
+ * public/private status, see
126
127
  * [Working with Playlists](/documentation/web-api/concepts/playlists)
127
128
  */
128
- public?: boolean;
129
+ published?: boolean;
129
130
 
130
131
  /**
131
132
  * The version identifier for the current playlist. Can be supplied in other
@@ -170,8 +171,6 @@ export namespace PlaylistRetrieveResponse {
170
171
  */
171
172
  href: string;
172
173
 
173
- items: Array<Shared.PlaylistTrackObject>;
174
-
175
174
  /**
176
175
  * The maximum number of items in the response (as set in the query or by default).
177
176
  */
@@ -196,6 +195,17 @@ export namespace PlaylistRetrieveResponse {
196
195
  * The total number of items available to return.
197
196
  */
198
197
  total: number;
198
+
199
+ items?: Array<Shared.PlaylistTrackObject>;
200
+
201
+ /**
202
+ * The playlist's public/private status (if it should be added to the user's
203
+ * profile or not): `true` the playlist will be public, `false` the playlist will
204
+ * be private, `null` the playlist status is not relevant. For more about
205
+ * public/private status, see
206
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
207
+ */
208
+ published?: boolean;
199
209
  }
200
210
  }
201
211
 
@@ -264,7 +274,7 @@ export interface PlaylistUpdateParams {
264
274
  * public/private status, see
265
275
  * [Working with Playlists](/documentation/web-api/concepts/playlists)
266
276
  */
267
- public?: boolean;
277
+ published?: boolean;
268
278
 
269
279
  [k: string]: unknown;
270
280
  }
@@ -298,9 +308,5 @@ export declare namespace Playlists {
298
308
  type FollowerFollowParams as FollowerFollowParams,
299
309
  };
300
310
 
301
- export {
302
- Images as Images,
303
- type ImageListResponse as ImageListResponse,
304
- type ImageUpdateParams as ImageUpdateParams,
305
- };
311
+ export { Images as Images, type ImageListResponse as ImageListResponse };
306
312
  }
@@ -121,6 +121,15 @@ export interface TrackUpdateParams {
121
121
  */
122
122
  insert_before?: number;
123
123
 
124
+ /**
125
+ * The playlist's public/private status (if it should be added to the user's
126
+ * profile or not): `true` the playlist will be public, `false` the playlist will
127
+ * be private, `null` the playlist status is not relevant. For more about
128
+ * public/private status, see
129
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
130
+ */
131
+ published?: boolean;
132
+
124
133
  /**
125
134
  * The amount of items to be reordered. Defaults to 1 if not set.<br/>The range of
126
135
  * items to be reordered begins from the _range_start_ position, and includes the
@@ -205,6 +214,15 @@ export interface TrackAddParams {
205
214
  */
206
215
  position?: number;
207
216
 
217
+ /**
218
+ * The playlist's public/private status (if it should be added to the user's
219
+ * profile or not): `true` the playlist will be public, `false` the playlist will
220
+ * be private, `null` the playlist status is not relevant. For more about
221
+ * public/private status, see
222
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
223
+ */
224
+ published?: boolean;
225
+
208
226
  /**
209
227
  * A JSON array of the
210
228
  * [Spotify URIs](/documentation/web-api/concepts/spotify-uris-ids) to add. For
@@ -229,6 +247,15 @@ export interface TrackRemoveParams {
229
247
  */
230
248
  tracks: Array<TrackRemoveParams.Track>;
231
249
 
250
+ /**
251
+ * The playlist's public/private status (if it should be added to the user's
252
+ * profile or not): `true` the playlist will be public, `false` the playlist will
253
+ * be private, `null` the playlist status is not relevant. For more about
254
+ * public/private status, see
255
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
256
+ */
257
+ published?: boolean;
258
+
232
259
  /**
233
260
  * The playlist's snapshot ID against which you want to make the changes. The API
234
261
  * will validate that the specified items exist and in the specified positions and
@@ -47,6 +47,15 @@ export interface RecommendationGetResponse {
47
47
  * An array of track objects ordered according to the parameters supplied.
48
48
  */
49
49
  tracks: Array<Shared.TrackObject>;
50
+
51
+ /**
52
+ * The playlist's public/private status (if it should be added to the user's
53
+ * profile or not): `true` the playlist will be public, `false` the playlist will
54
+ * be private, `null` the playlist status is not relevant. For more about
55
+ * public/private status, see
56
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
57
+ */
58
+ published?: boolean;
50
59
  }
51
60
 
52
61
  export namespace RecommendationGetResponse {
@@ -80,6 +89,15 @@ export namespace RecommendationGetResponse {
80
89
  */
81
90
  initialPoolSize?: number;
82
91
 
92
+ /**
93
+ * The playlist's public/private status (if it should be added to the user's
94
+ * profile or not): `true` the playlist will be public, `false` the playlist will
95
+ * be private, `null` the playlist status is not relevant. For more about
96
+ * public/private status, see
97
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
98
+ */
99
+ published?: boolean;
100
+
83
101
  /**
84
102
  * The entity type of this seed. One of `artist`, `track` or `genre`.
85
103
  */