spotted-ts 0.1.0 → 0.14.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 +206 -3
  2. package/README.md +53 -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
@@ -25,7 +25,10 @@ export class Chapters extends APIResource {
25
25
  * their Spotify IDs. Chapters are only available within the US, UK, Canada,
26
26
  * Ireland, New Zealand and Australia markets.
27
27
  */
28
- list(query: ChapterListParams, options?: RequestOptions): APIPromise<ChapterListResponse> {
28
+ bulkRetrieve(
29
+ query: ChapterBulkRetrieveParams,
30
+ options?: RequestOptions,
31
+ ): APIPromise<ChapterBulkRetrieveResponse> {
29
32
  return this._client.get('/chapters', { query, ...options });
30
33
  }
31
34
  }
@@ -134,6 +137,15 @@ export interface ChapterRetrieveResponse {
134
137
  */
135
138
  available_markets?: Array<string>;
136
139
 
140
+ /**
141
+ * The playlist's public/private status (if it should be added to the user's
142
+ * profile or not): `true` the playlist will be public, `false` the playlist will
143
+ * be private, `null` the playlist status is not relevant. For more about
144
+ * public/private status, see
145
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
146
+ */
147
+ published?: boolean;
148
+
137
149
  /**
138
150
  * Included in the response when a content restriction is applied.
139
151
  */
@@ -146,11 +158,11 @@ export interface ChapterRetrieveResponse {
146
158
  resume_point?: Shared.ResumePointObject;
147
159
  }
148
160
 
149
- export interface ChapterListResponse {
150
- chapters: Array<ChapterListResponse.Chapter>;
161
+ export interface ChapterBulkRetrieveResponse {
162
+ chapters: Array<ChapterBulkRetrieveResponse.Chapter>;
151
163
  }
152
164
 
153
- export namespace ChapterListResponse {
165
+ export namespace ChapterBulkRetrieveResponse {
154
166
  export interface Chapter {
155
167
  /**
156
168
  * The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
@@ -255,6 +267,15 @@ export namespace ChapterListResponse {
255
267
  */
256
268
  available_markets?: Array<string>;
257
269
 
270
+ /**
271
+ * The playlist's public/private status (if it should be added to the user's
272
+ * profile or not): `true` the playlist will be public, `false` the playlist will
273
+ * be private, `null` the playlist status is not relevant. For more about
274
+ * public/private status, see
275
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
276
+ */
277
+ published?: boolean;
278
+
258
279
  /**
259
280
  * Included in the response when a content restriction is applied.
260
281
  */
@@ -283,7 +304,7 @@ export interface ChapterRetrieveParams {
283
304
  market?: string;
284
305
  }
285
306
 
286
- export interface ChapterListParams {
307
+ export interface ChapterBulkRetrieveParams {
287
308
  /**
288
309
  * A comma-separated list of the
289
310
  * [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids). For example:
@@ -308,8 +329,8 @@ export interface ChapterListParams {
308
329
  export declare namespace Chapters {
309
330
  export {
310
331
  type ChapterRetrieveResponse as ChapterRetrieveResponse,
311
- type ChapterListResponse as ChapterListResponse,
332
+ type ChapterBulkRetrieveResponse as ChapterBulkRetrieveResponse,
312
333
  type ChapterRetrieveParams as ChapterRetrieveParams,
313
- type ChapterListParams as ChapterListParams,
334
+ type ChapterBulkRetrieveParams as ChapterBulkRetrieveParams,
314
335
  };
315
336
  }
@@ -22,12 +22,15 @@ export class Episodes extends APIResource {
22
22
  /**
23
23
  * Get Spotify catalog information for several episodes based on their Spotify IDs.
24
24
  */
25
- list(query: EpisodeListParams, options?: RequestOptions): APIPromise<EpisodeListResponse> {
25
+ bulkRetrieve(
26
+ query: EpisodeBulkRetrieveParams,
27
+ options?: RequestOptions,
28
+ ): APIPromise<EpisodeBulkRetrieveResponse> {
26
29
  return this._client.get('/episodes', { query, ...options });
27
30
  }
28
31
  }
29
32
 
30
- export interface EpisodeListResponse {
33
+ export interface EpisodeBulkRetrieveResponse {
31
34
  episodes: Array<Shared.EpisodeObject>;
32
35
  }
33
36
 
@@ -46,7 +49,7 @@ export interface EpisodeRetrieveParams {
46
49
  market?: string;
47
50
  }
48
51
 
49
- export interface EpisodeListParams {
52
+ export interface EpisodeBulkRetrieveParams {
50
53
  /**
51
54
  * A comma-separated list of the
52
55
  * [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids) for the
@@ -70,8 +73,8 @@ export interface EpisodeListParams {
70
73
 
71
74
  export declare namespace Episodes {
72
75
  export {
73
- type EpisodeListResponse as EpisodeListResponse,
76
+ type EpisodeBulkRetrieveResponse as EpisodeBulkRetrieveResponse,
74
77
  type EpisodeRetrieveParams as EpisodeRetrieveParams,
75
- type EpisodeListParams as EpisodeListParams,
78
+ type EpisodeBulkRetrieveParams as EpisodeBulkRetrieveParams,
76
79
  };
77
80
  }
@@ -11,29 +11,29 @@ export {
11
11
  } from './albums';
12
12
  export {
13
13
  Artists,
14
- type ArtistListResponse,
14
+ type ArtistBulkRetrieveResponse,
15
15
  type ArtistListAlbumsResponse,
16
16
  type ArtistListRelatedArtistsResponse,
17
- type ArtistListTopTracksResponse,
18
- type ArtistListParams,
17
+ type ArtistTopTracksResponse,
18
+ type ArtistBulkRetrieveParams,
19
19
  type ArtistListAlbumsParams,
20
- type ArtistListTopTracksParams,
20
+ type ArtistTopTracksParams,
21
21
  type ArtistListAlbumsResponsesCursorURLPage,
22
22
  } from './artists';
23
23
  export { AudioAnalysis, type TimeIntervalObject, type AudioAnalysisRetrieveResponse } from './audio-analysis';
24
24
  export {
25
25
  AudioFeatures,
26
26
  type AudioFeatureRetrieveResponse,
27
- type AudioFeatureListResponse,
28
- type AudioFeatureListParams,
27
+ type AudioFeatureBulkRetrieveResponse,
28
+ type AudioFeatureBulkRetrieveParams,
29
29
  } from './audio-features';
30
30
  export {
31
31
  Audiobooks,
32
32
  type SimplifiedChapterObject,
33
33
  type AudiobookRetrieveResponse,
34
- type AudiobookListResponse,
34
+ type AudiobookBulkRetrieveResponse,
35
35
  type AudiobookRetrieveParams,
36
- type AudiobookListParams,
36
+ type AudiobookBulkRetrieveParams,
37
37
  type AudiobookListChaptersParams,
38
38
  type SimplifiedChapterObjectsCursorURLPage,
39
39
  } from './audiobooks';
@@ -47,15 +47,15 @@ export {
47
47
  export {
48
48
  Chapters,
49
49
  type ChapterRetrieveResponse,
50
- type ChapterListResponse,
50
+ type ChapterBulkRetrieveResponse,
51
51
  type ChapterRetrieveParams,
52
- type ChapterListParams,
52
+ type ChapterBulkRetrieveParams,
53
53
  } from './chapters';
54
54
  export {
55
55
  Episodes,
56
- type EpisodeListResponse,
56
+ type EpisodeBulkRetrieveResponse,
57
57
  type EpisodeRetrieveParams,
58
- type EpisodeListParams,
58
+ type EpisodeBulkRetrieveParams,
59
59
  } from './episodes';
60
60
  export { Markets, type MarketListResponse } from './markets';
61
61
  export { Me, type MeRetrieveResponse } from './me/me';
@@ -71,14 +71,19 @@ export {
71
71
  type RecommendationListAvailableGenreSeedsResponse,
72
72
  type RecommendationGetParams,
73
73
  } from './recommendations';
74
- export { Search, type SearchRetrieveResponse, type SearchRetrieveParams } from './search';
74
+ export { Search, type SearchQueryResponse, type SearchQueryParams } from './search';
75
75
  export {
76
76
  Shows,
77
77
  type ShowRetrieveResponse,
78
- type ShowListResponse,
78
+ type ShowBulkRetrieveResponse,
79
79
  type ShowRetrieveParams,
80
- type ShowListParams,
80
+ type ShowBulkRetrieveParams,
81
81
  type ShowListEpisodesParams,
82
82
  } from './shows';
83
- export { Tracks, type TrackListResponse, type TrackRetrieveParams, type TrackListParams } from './tracks';
83
+ export {
84
+ Tracks,
85
+ type TrackBulkRetrieveResponse,
86
+ type TrackRetrieveParams,
87
+ type TrackBulkRetrieveParams,
88
+ } from './tracks';
84
89
  export { Users, type UserRetrieveProfileResponse } from './users/users';
@@ -91,6 +91,15 @@ export interface AlbumListResponse {
91
91
  * Information about the album.
92
92
  */
93
93
  album?: AlbumListResponse.Album;
94
+
95
+ /**
96
+ * The playlist's public/private status (if it should be added to the user's
97
+ * profile or not): `true` the playlist will be public, `false` the playlist will
98
+ * be private, `null` the playlist status is not relevant. For more about
99
+ * public/private status, see
100
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
101
+ */
102
+ published?: boolean;
94
103
  }
95
104
 
96
105
  export namespace AlbumListResponse {
@@ -196,6 +205,15 @@ export namespace AlbumListResponse {
196
205
  */
197
206
  popularity?: number;
198
207
 
208
+ /**
209
+ * The playlist's public/private status (if it should be added to the user's
210
+ * profile or not): `true` the playlist will be public, `false` the playlist will
211
+ * be private, `null` the playlist status is not relevant. For more about
212
+ * public/private status, see
213
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
214
+ */
215
+ published?: boolean;
216
+
199
217
  /**
200
218
  * Included in the response when a content restriction is applied.
201
219
  */
@@ -217,8 +235,6 @@ export namespace AlbumListResponse {
217
235
  */
218
236
  href: string;
219
237
 
220
- items: Array<Shared.SimplifiedTrackObject>;
221
-
222
238
  /**
223
239
  * The maximum number of items in the response (as set in the query or by default).
224
240
  */
@@ -243,6 +259,17 @@ export namespace AlbumListResponse {
243
259
  * The total number of items available to return.
244
260
  */
245
261
  total: number;
262
+
263
+ items?: Array<Shared.SimplifiedTrackObject>;
264
+
265
+ /**
266
+ * The playlist's public/private status (if it should be added to the user's
267
+ * profile or not): `true` the playlist will be public, `false` the playlist will
268
+ * be private, `null` the playlist status is not relevant. For more about
269
+ * public/private status, see
270
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
271
+ */
272
+ published?: boolean;
246
273
  }
247
274
  }
248
275
  }
@@ -294,6 +321,15 @@ export interface AlbumRemoveParams {
294
321
  */
295
322
  ids?: Array<string>;
296
323
 
324
+ /**
325
+ * The playlist's public/private status (if it should be added to the user's
326
+ * profile or not): `true` the playlist will be public, `false` the playlist will
327
+ * be private, `null` the playlist status is not relevant. For more about
328
+ * public/private status, see
329
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
330
+ */
331
+ published?: boolean;
332
+
297
333
  [k: string]: unknown;
298
334
  }
299
335
 
@@ -307,6 +343,15 @@ export interface AlbumSaveParams {
307
343
  */
308
344
  ids?: Array<string>;
309
345
 
346
+ /**
347
+ * The playlist's public/private status (if it should be added to the user's
348
+ * profile or not): `true` the playlist will be public, `false` the playlist will
349
+ * be private, `null` the playlist status is not relevant. For more about
350
+ * public/private status, see
351
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
352
+ */
353
+ published?: boolean;
354
+
310
355
  [k: string]: unknown;
311
356
  }
312
357
 
@@ -101,6 +101,15 @@ export interface AudiobookListResponse {
101
101
  * Information about the audiobook.
102
102
  */
103
103
  audiobook?: AudiobookListResponse.Audiobook;
104
+
105
+ /**
106
+ * The playlist's public/private status (if it should be added to the user's
107
+ * profile or not): `true` the playlist will be public, `false` the playlist will
108
+ * be private, `null` the playlist status is not relevant. For more about
109
+ * public/private status, see
110
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
111
+ */
112
+ published?: boolean;
104
113
  }
105
114
 
106
115
  export namespace AudiobookListResponse {
@@ -124,8 +133,6 @@ export namespace AudiobookListResponse {
124
133
  */
125
134
  href: string;
126
135
 
127
- items: Array<AudiobooksAPI.SimplifiedChapterObject>;
128
-
129
136
  /**
130
137
  * The maximum number of items in the response (as set in the query or by default).
131
138
  */
@@ -150,6 +157,17 @@ export namespace AudiobookListResponse {
150
157
  * The total number of items available to return.
151
158
  */
152
159
  total: number;
160
+
161
+ items?: Array<AudiobooksAPI.SimplifiedChapterObject>;
162
+
163
+ /**
164
+ * The playlist's public/private status (if it should be added to the user's
165
+ * profile or not): `true` the playlist will be public, `false` the playlist will
166
+ * be private, `null` the playlist status is not relevant. For more about
167
+ * public/private status, see
168
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
169
+ */
170
+ published?: boolean;
153
171
  }
154
172
  }
155
173
  }
@@ -100,6 +100,15 @@ export interface EpisodeListResponse {
100
100
  * Information about the episode.
101
101
  */
102
102
  episode?: Shared.EpisodeObject;
103
+
104
+ /**
105
+ * The playlist's public/private status (if it should be added to the user's
106
+ * profile or not): `true` the playlist will be public, `false` the playlist will
107
+ * be private, `null` the playlist status is not relevant. For more about
108
+ * public/private status, see
109
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
110
+ */
111
+ published?: boolean;
103
112
  }
104
113
 
105
114
  export type EpisodeCheckResponse = Array<boolean>;
@@ -149,6 +158,15 @@ export interface EpisodeRemoveParams {
149
158
  */
150
159
  ids?: Array<string>;
151
160
 
161
+ /**
162
+ * The playlist's public/private status (if it should be added to the user's
163
+ * profile or not): `true` the playlist will be public, `false` the playlist will
164
+ * be private, `null` the playlist status is not relevant. For more about
165
+ * public/private status, see
166
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
167
+ */
168
+ published?: boolean;
169
+
152
170
  [k: string]: unknown;
153
171
  }
154
172
 
@@ -162,6 +180,15 @@ export interface EpisodeSaveParams {
162
180
  */
163
181
  ids: Array<string>;
164
182
 
183
+ /**
184
+ * The playlist's public/private status (if it should be added to the user's
185
+ * profile or not): `true` the playlist will be public, `false` the playlist will
186
+ * be private, `null` the playlist status is not relevant. For more about
187
+ * public/private status, see
188
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
189
+ */
190
+ published?: boolean;
191
+
165
192
  [k: string]: unknown;
166
193
  }
167
194
 
@@ -12,12 +12,15 @@ export class Following extends APIResource {
12
12
  *
13
13
  * @example
14
14
  * ```ts
15
- * const followings = await client.me.following.list({
15
+ * const response = await client.me.following.bulkRetrieve({
16
16
  * type: 'artist',
17
17
  * });
18
18
  * ```
19
19
  */
20
- list(query: FollowingListParams, options?: RequestOptions): APIPromise<FollowingListResponse> {
20
+ bulkRetrieve(
21
+ query: FollowingBulkRetrieveParams,
22
+ options?: RequestOptions,
23
+ ): APIPromise<FollowingBulkRetrieveResponse> {
21
24
  return this._client.get('/me/following', { query, ...options });
22
25
  }
23
26
 
@@ -75,11 +78,11 @@ export class Following extends APIResource {
75
78
  }
76
79
  }
77
80
 
78
- export interface FollowingListResponse {
79
- artists: FollowingListResponse.Artists;
81
+ export interface FollowingBulkRetrieveResponse {
82
+ artists: FollowingBulkRetrieveResponse.Artists;
80
83
  }
81
84
 
82
- export namespace FollowingListResponse {
85
+ export namespace FollowingBulkRetrieveResponse {
83
86
  export interface Artists {
84
87
  /**
85
88
  * The cursors used to find the next set of items.
@@ -103,6 +106,15 @@ export namespace FollowingListResponse {
103
106
  */
104
107
  next?: string;
105
108
 
109
+ /**
110
+ * The playlist's public/private status (if it should be added to the user's
111
+ * profile or not): `true` the playlist will be public, `false` the playlist will
112
+ * be private, `null` the playlist status is not relevant. For more about
113
+ * public/private status, see
114
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
115
+ */
116
+ published?: boolean;
117
+
106
118
  /**
107
119
  * The total number of items available to return.
108
120
  */
@@ -123,13 +135,22 @@ export namespace FollowingListResponse {
123
135
  * The cursor to use as key to find the previous page of items.
124
136
  */
125
137
  before?: 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;
126
147
  }
127
148
  }
128
149
  }
129
150
 
130
151
  export type FollowingCheckResponse = Array<boolean>;
131
152
 
132
- export interface FollowingListParams {
153
+ export interface FollowingBulkRetrieveParams {
133
154
  /**
134
155
  * The ID type: currently only `artist` is supported.
135
156
  */
@@ -171,6 +192,15 @@ export interface FollowingFollowParams {
171
192
  */
172
193
  ids: Array<string>;
173
194
 
195
+ /**
196
+ * The playlist's public/private status (if it should be added to the user's
197
+ * profile or not): `true` the playlist will be public, `false` the playlist will
198
+ * be private, `null` the playlist status is not relevant. For more about
199
+ * public/private status, see
200
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
201
+ */
202
+ published?: boolean;
203
+
174
204
  [k: string]: unknown;
175
205
  }
176
206
 
@@ -184,14 +214,23 @@ export interface FollowingUnfollowParams {
184
214
  */
185
215
  ids?: Array<string>;
186
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
+
187
226
  [k: string]: unknown;
188
227
  }
189
228
 
190
229
  export declare namespace Following {
191
230
  export {
192
- type FollowingListResponse as FollowingListResponse,
231
+ type FollowingBulkRetrieveResponse as FollowingBulkRetrieveResponse,
193
232
  type FollowingCheckResponse as FollowingCheckResponse,
194
- type FollowingListParams as FollowingListParams,
233
+ type FollowingBulkRetrieveParams as FollowingBulkRetrieveParams,
195
234
  type FollowingCheckParams as FollowingCheckParams,
196
235
  type FollowingFollowParams as FollowingFollowParams,
197
236
  type FollowingUnfollowParams as FollowingUnfollowParams,
@@ -32,9 +32,9 @@ export {
32
32
  } from './episodes';
33
33
  export {
34
34
  Following,
35
- type FollowingListResponse,
35
+ type FollowingBulkRetrieveResponse,
36
36
  type FollowingCheckResponse,
37
- type FollowingListParams,
37
+ type FollowingBulkRetrieveParams,
38
38
  type FollowingCheckParams,
39
39
  type FollowingFollowParams,
40
40
  type FollowingUnfollowParams,
@@ -38,11 +38,11 @@ import {
38
38
  import * as FollowingAPI from './following';
39
39
  import {
40
40
  Following,
41
+ FollowingBulkRetrieveParams,
42
+ FollowingBulkRetrieveResponse,
41
43
  FollowingCheckParams,
42
44
  FollowingCheckResponse,
43
45
  FollowingFollowParams,
44
- FollowingListParams,
45
- FollowingListResponse,
46
46
  FollowingUnfollowParams,
47
47
  } from './following';
48
48
  import * as PlaylistsAPI from './playlists';
@@ -190,6 +190,15 @@ export interface MeRetrieveResponse {
190
190
  */
191
191
  product?: string;
192
192
 
193
+ /**
194
+ * The playlist's public/private status (if it should be added to the user's
195
+ * profile or not): `true` the playlist will be public, `false` the playlist will
196
+ * be private, `null` the playlist status is not relevant. For more about
197
+ * public/private status, see
198
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
199
+ */
200
+ published?: boolean;
201
+
193
202
  /**
194
203
  * The object type: "user"
195
204
  */
@@ -220,6 +229,15 @@ export namespace MeRetrieveResponse {
220
229
  * changed by the user.
221
230
  */
222
231
  filter_locked?: boolean;
232
+
233
+ /**
234
+ * The playlist's public/private status (if it should be added to the user's
235
+ * profile or not): `true` the playlist will be public, `false` the playlist will
236
+ * be private, `null` the playlist status is not relevant. For more about
237
+ * public/private status, see
238
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
239
+ */
240
+ published?: boolean;
223
241
  }
224
242
  }
225
243
 
@@ -301,9 +319,9 @@ export declare namespace Me {
301
319
 
302
320
  export {
303
321
  Following as Following,
304
- type FollowingListResponse as FollowingListResponse,
322
+ type FollowingBulkRetrieveResponse as FollowingBulkRetrieveResponse,
305
323
  type FollowingCheckResponse as FollowingCheckResponse,
306
- type FollowingListParams as FollowingListParams,
324
+ type FollowingBulkRetrieveParams as FollowingBulkRetrieveParams,
307
325
  type FollowingCheckParams as FollowingCheckParams,
308
326
  type FollowingFollowParams as FollowingFollowParams,
309
327
  type FollowingUnfollowParams as FollowingUnfollowParams,