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
@@ -11,36 +11,34 @@ export class Search extends APIResource {
11
11
  * episodes or audiobooks that match a keyword string. Audiobooks are only
12
12
  * available within the US, UK, Canada, Ireland, New Zealand and Australia markets.
13
13
  */
14
- retrieve(query: SearchRetrieveParams, options?: RequestOptions): APIPromise<SearchRetrieveResponse> {
14
+ query(query: SearchQueryParams, options?: RequestOptions): APIPromise<SearchQueryResponse> {
15
15
  return this._client.get('/search', { query, ...options });
16
16
  }
17
17
  }
18
18
 
19
- export interface SearchRetrieveResponse {
20
- albums?: SearchRetrieveResponse.Albums;
19
+ export interface SearchQueryResponse {
20
+ albums?: SearchQueryResponse.Albums;
21
21
 
22
- artists?: SearchRetrieveResponse.Artists;
22
+ artists?: SearchQueryResponse.Artists;
23
23
 
24
- audiobooks?: SearchRetrieveResponse.Audiobooks;
24
+ audiobooks?: SearchQueryResponse.Audiobooks;
25
25
 
26
- episodes?: SearchRetrieveResponse.Episodes;
26
+ episodes?: SearchQueryResponse.Episodes;
27
27
 
28
28
  playlists?: Shared.PagingPlaylistObject;
29
29
 
30
- shows?: SearchRetrieveResponse.Shows;
30
+ shows?: SearchQueryResponse.Shows;
31
31
 
32
- tracks?: SearchRetrieveResponse.Tracks;
32
+ tracks?: SearchQueryResponse.Tracks;
33
33
  }
34
34
 
35
- export namespace SearchRetrieveResponse {
35
+ export namespace SearchQueryResponse {
36
36
  export interface Albums {
37
37
  /**
38
38
  * A link to the Web API endpoint returning the full result of the request
39
39
  */
40
40
  href: string;
41
41
 
42
- items: Array<Albums.Item>;
43
-
44
42
  /**
45
43
  * The maximum number of items in the response (as set in the query or by default).
46
44
  */
@@ -65,6 +63,17 @@ export namespace SearchRetrieveResponse {
65
63
  * The total number of items available to return.
66
64
  */
67
65
  total: number;
66
+
67
+ items?: Array<Albums.Item>;
68
+
69
+ /**
70
+ * The playlist's public/private status (if it should be added to the user's
71
+ * profile or not): `true` the playlist will be public, `false` the playlist will
72
+ * be private, `null` the playlist status is not relevant. For more about
73
+ * public/private status, see
74
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
75
+ */
76
+ published?: boolean;
68
77
  }
69
78
 
70
79
  export namespace Albums {
@@ -141,6 +150,15 @@ export namespace SearchRetrieveResponse {
141
150
  */
142
151
  uri: string;
143
152
 
153
+ /**
154
+ * The playlist's public/private status (if it should be added to the user's
155
+ * profile or not): `true` the playlist will be public, `false` the playlist will
156
+ * be private, `null` the playlist status is not relevant. For more about
157
+ * public/private status, see
158
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
159
+ */
160
+ published?: boolean;
161
+
144
162
  /**
145
163
  * Included in the response when a content restriction is applied.
146
164
  */
@@ -154,8 +172,6 @@ export namespace SearchRetrieveResponse {
154
172
  */
155
173
  href: string;
156
174
 
157
- items: Array<Shared.ArtistObject>;
158
-
159
175
  /**
160
176
  * The maximum number of items in the response (as set in the query or by default).
161
177
  */
@@ -180,6 +196,17 @@ export namespace SearchRetrieveResponse {
180
196
  * The total number of items available to return.
181
197
  */
182
198
  total: number;
199
+
200
+ items?: Array<Shared.ArtistObject>;
201
+
202
+ /**
203
+ * The playlist's public/private status (if it should be added to the user's
204
+ * profile or not): `true` the playlist will be public, `false` the playlist will
205
+ * be private, `null` the playlist status is not relevant. For more about
206
+ * public/private status, see
207
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
208
+ */
209
+ published?: boolean;
183
210
  }
184
211
 
185
212
  export interface Audiobooks {
@@ -188,8 +215,6 @@ export namespace SearchRetrieveResponse {
188
215
  */
189
216
  href: string;
190
217
 
191
- items: Array<Shared.AudiobookBase>;
192
-
193
218
  /**
194
219
  * The maximum number of items in the response (as set in the query or by default).
195
220
  */
@@ -214,6 +239,17 @@ export namespace SearchRetrieveResponse {
214
239
  * The total number of items available to return.
215
240
  */
216
241
  total: number;
242
+
243
+ items?: Array<Shared.AudiobookBase>;
244
+
245
+ /**
246
+ * The playlist's public/private status (if it should be added to the user's
247
+ * profile or not): `true` the playlist will be public, `false` the playlist will
248
+ * be private, `null` the playlist status is not relevant. For more about
249
+ * public/private status, see
250
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
251
+ */
252
+ published?: boolean;
217
253
  }
218
254
 
219
255
  export interface Episodes {
@@ -222,8 +258,6 @@ export namespace SearchRetrieveResponse {
222
258
  */
223
259
  href: string;
224
260
 
225
- items: Array<Shared.SimplifiedEpisodeObject>;
226
-
227
261
  /**
228
262
  * The maximum number of items in the response (as set in the query or by default).
229
263
  */
@@ -248,6 +282,17 @@ export namespace SearchRetrieveResponse {
248
282
  * The total number of items available to return.
249
283
  */
250
284
  total: number;
285
+
286
+ items?: Array<Shared.SimplifiedEpisodeObject>;
287
+
288
+ /**
289
+ * The playlist's public/private status (if it should be added to the user's
290
+ * profile or not): `true` the playlist will be public, `false` the playlist will
291
+ * be private, `null` the playlist status is not relevant. For more about
292
+ * public/private status, see
293
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
294
+ */
295
+ published?: boolean;
251
296
  }
252
297
 
253
298
  export interface Shows {
@@ -256,8 +301,6 @@ export namespace SearchRetrieveResponse {
256
301
  */
257
302
  href: string;
258
303
 
259
- items: Array<Shared.ShowBase>;
260
-
261
304
  /**
262
305
  * The maximum number of items in the response (as set in the query or by default).
263
306
  */
@@ -282,6 +325,17 @@ export namespace SearchRetrieveResponse {
282
325
  * The total number of items available to return.
283
326
  */
284
327
  total: number;
328
+
329
+ items?: Array<Shared.ShowBase>;
330
+
331
+ /**
332
+ * The playlist's public/private status (if it should be added to the user's
333
+ * profile or not): `true` the playlist will be public, `false` the playlist will
334
+ * be private, `null` the playlist status is not relevant. For more about
335
+ * public/private status, see
336
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
337
+ */
338
+ published?: boolean;
285
339
  }
286
340
 
287
341
  export interface Tracks {
@@ -290,8 +344,6 @@ export namespace SearchRetrieveResponse {
290
344
  */
291
345
  href: string;
292
346
 
293
- items: Array<Shared.TrackObject>;
294
-
295
347
  /**
296
348
  * The maximum number of items in the response (as set in the query or by default).
297
349
  */
@@ -316,10 +368,21 @@ export namespace SearchRetrieveResponse {
316
368
  * The total number of items available to return.
317
369
  */
318
370
  total: number;
371
+
372
+ items?: Array<Shared.TrackObject>;
373
+
374
+ /**
375
+ * The playlist's public/private status (if it should be added to the user's
376
+ * profile or not): `true` the playlist will be public, `false` the playlist will
377
+ * be private, `null` the playlist status is not relevant. For more about
378
+ * public/private status, see
379
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
380
+ */
381
+ published?: boolean;
319
382
  }
320
383
  }
321
384
 
322
- export interface SearchRetrieveParams {
385
+ export interface SearchQueryParams {
323
386
  /**
324
387
  * Your search query.
325
388
  *
@@ -379,8 +442,5 @@ export interface SearchRetrieveParams {
379
442
  }
380
443
 
381
444
  export declare namespace Search {
382
- export {
383
- type SearchRetrieveResponse as SearchRetrieveResponse,
384
- type SearchRetrieveParams as SearchRetrieveParams,
385
- };
445
+ export { type SearchQueryResponse as SearchQueryResponse, type SearchQueryParams as SearchQueryParams };
386
446
  }
@@ -4,6 +4,15 @@ import * as Shared from './shared';
4
4
  import { CursorURLPage } from '../core/pagination';
5
5
 
6
6
  export interface AlbumRestrictionObject {
7
+ /**
8
+ * The playlist's public/private status (if it should be added to the user's
9
+ * profile or not): `true` the playlist will be public, `false` the playlist will
10
+ * be private, `null` the playlist status is not relevant. For more about
11
+ * public/private status, see
12
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
13
+ */
14
+ published?: boolean;
15
+
7
16
  /**
8
17
  * The reason for the restriction. Albums may be restricted if the content is not
9
18
  * available in a given market, to the user's subscription type, or when the user's
@@ -58,6 +67,15 @@ export interface ArtistObject {
58
67
  */
59
68
  popularity?: number;
60
69
 
70
+ /**
71
+ * The playlist's public/private status (if it should be added to the user's
72
+ * profile or not): `true` the playlist will be public, `false` the playlist will
73
+ * be private, `null` the playlist status is not relevant. For more about
74
+ * public/private status, see
75
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
76
+ */
77
+ published?: boolean;
78
+
61
79
  /**
62
80
  * The object type.
63
81
  */
@@ -172,6 +190,15 @@ export interface AudiobookBase {
172
190
  * The edition of the audiobook.
173
191
  */
174
192
  edition?: string;
193
+
194
+ /**
195
+ * The playlist's public/private status (if it should be added to the user's
196
+ * profile or not): `true` the playlist will be public, `false` the playlist will
197
+ * be private, `null` the playlist status is not relevant. For more about
198
+ * public/private status, see
199
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
200
+ */
201
+ published?: boolean;
175
202
  }
176
203
 
177
204
  export interface AuthorObject {
@@ -179,9 +206,27 @@ export interface AuthorObject {
179
206
  * The name of the author.
180
207
  */
181
208
  name?: string;
209
+
210
+ /**
211
+ * The playlist's public/private status (if it should be added to the user's
212
+ * profile or not): `true` the playlist will be public, `false` the playlist will
213
+ * be private, `null` the playlist status is not relevant. For more about
214
+ * public/private status, see
215
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
216
+ */
217
+ published?: boolean;
182
218
  }
183
219
 
184
220
  export interface ChapterRestrictionObject {
221
+ /**
222
+ * The playlist's public/private status (if it should be added to the user's
223
+ * profile or not): `true` the playlist will be public, `false` the playlist will
224
+ * be private, `null` the playlist status is not relevant. For more about
225
+ * public/private status, see
226
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
227
+ */
228
+ published?: boolean;
229
+
185
230
  /**
186
231
  * The reason for the restriction. Supported values:
187
232
  *
@@ -199,6 +244,15 @@ export interface ChapterRestrictionObject {
199
244
  }
200
245
 
201
246
  export interface CopyrightObject {
247
+ /**
248
+ * The playlist's public/private status (if it should be added to the user's
249
+ * profile or not): `true` the playlist will be public, `false` the playlist will
250
+ * be private, `null` the playlist status is not relevant. For more about
251
+ * public/private status, see
252
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
253
+ */
254
+ published?: boolean;
255
+
202
256
  /**
203
257
  * The copyright text for this content.
204
258
  */
@@ -316,6 +370,15 @@ export interface EpisodeObject {
316
370
  */
317
371
  language?: string;
318
372
 
373
+ /**
374
+ * The playlist's public/private status (if it should be added to the user's
375
+ * profile or not): `true` the playlist will be public, `false` the playlist will
376
+ * be private, `null` the playlist status is not relevant. For more about
377
+ * public/private status, see
378
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
379
+ */
380
+ published?: boolean;
381
+
319
382
  /**
320
383
  * Included in the response when a content restriction is applied.
321
384
  */
@@ -329,6 +392,15 @@ export interface EpisodeObject {
329
392
  }
330
393
 
331
394
  export interface EpisodeRestrictionObject {
395
+ /**
396
+ * The playlist's public/private status (if it should be added to the user's
397
+ * profile or not): `true` the playlist will be public, `false` the playlist will
398
+ * be private, `null` the playlist status is not relevant. For more about
399
+ * public/private status, see
400
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
401
+ */
402
+ published?: boolean;
403
+
332
404
  /**
333
405
  * The reason for the restriction. Supported values:
334
406
  *
@@ -355,6 +427,15 @@ export interface ExternalIDObject {
355
427
  */
356
428
  isrc?: string;
357
429
 
430
+ /**
431
+ * The playlist's public/private status (if it should be added to the user's
432
+ * profile or not): `true` the playlist will be public, `false` the playlist will
433
+ * be private, `null` the playlist status is not relevant. For more about
434
+ * public/private status, see
435
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
436
+ */
437
+ published?: boolean;
438
+
358
439
  /**
359
440
  * [Universal Product Code](http://en.wikipedia.org/wiki/Universal_Product_Code)
360
441
  */
@@ -362,6 +443,15 @@ export interface ExternalIDObject {
362
443
  }
363
444
 
364
445
  export interface ExternalURLObject {
446
+ /**
447
+ * The playlist's public/private status (if it should be added to the user's
448
+ * profile or not): `true` the playlist will be public, `false` the playlist will
449
+ * be private, `null` the playlist status is not relevant. For more about
450
+ * public/private status, see
451
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
452
+ */
453
+ published?: boolean;
454
+
365
455
  /**
366
456
  * The [Spotify URL](/documentation/web-api/concepts/spotify-uris-ids) for the
367
457
  * object.
@@ -376,6 +466,15 @@ export interface FollowersObject {
376
466
  */
377
467
  href?: string | null;
378
468
 
469
+ /**
470
+ * The playlist's public/private status (if it should be added to the user's
471
+ * profile or not): `true` the playlist will be public, `false` the playlist will
472
+ * be private, `null` the playlist status is not relevant. For more about
473
+ * public/private status, see
474
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
475
+ */
476
+ published?: boolean;
477
+
379
478
  /**
380
479
  * The total number of followers.
381
480
  */
@@ -397,6 +496,15 @@ export interface ImageObject {
397
496
  * The image width in pixels.
398
497
  */
399
498
  width: number | null;
499
+
500
+ /**
501
+ * The playlist's public/private status (if it should be added to the user's
502
+ * profile or not): `true` the playlist will be public, `false` the playlist will
503
+ * be private, `null` the playlist status is not relevant. For more about
504
+ * public/private status, see
505
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
506
+ */
507
+ published?: boolean;
400
508
  }
401
509
 
402
510
  export interface LinkedTrackObject {
@@ -416,6 +524,15 @@ export interface LinkedTrackObject {
416
524
  */
417
525
  href?: string;
418
526
 
527
+ /**
528
+ * The playlist's public/private status (if it should be added to the user's
529
+ * profile or not): `true` the playlist will be public, `false` the playlist will
530
+ * be private, `null` the playlist status is not relevant. For more about
531
+ * public/private status, see
532
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
533
+ */
534
+ published?: boolean;
535
+
419
536
  /**
420
537
  * The object type: "track".
421
538
  */
@@ -433,6 +550,15 @@ export interface NarratorObject {
433
550
  * The name of the Narrator.
434
551
  */
435
552
  name?: string;
553
+
554
+ /**
555
+ * The playlist's public/private status (if it should be added to the user's
556
+ * profile or not): `true` the playlist will be public, `false` the playlist will
557
+ * be private, `null` the playlist status is not relevant. For more about
558
+ * public/private status, see
559
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
560
+ */
561
+ published?: boolean;
436
562
  }
437
563
 
438
564
  export interface PagingPlaylistObject {
@@ -441,8 +567,6 @@ export interface PagingPlaylistObject {
441
567
  */
442
568
  href: string;
443
569
 
444
- items: Array<SimplifiedPlaylistObject>;
445
-
446
570
  /**
447
571
  * The maximum number of items in the response (as set in the query or by default).
448
572
  */
@@ -467,6 +591,17 @@ export interface PagingPlaylistObject {
467
591
  * The total number of items available to return.
468
592
  */
469
593
  total: number;
594
+
595
+ items?: Array<SimplifiedPlaylistObject>;
596
+
597
+ /**
598
+ * The playlist's public/private status (if it should be added to the user's
599
+ * profile or not): `true` the playlist will be public, `false` the playlist will
600
+ * be private, `null` the playlist status is not relevant. For more about
601
+ * public/private status, see
602
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
603
+ */
604
+ published?: boolean;
470
605
  }
471
606
 
472
607
  export interface PlaylistTrackObject {
@@ -488,6 +623,15 @@ export interface PlaylistTrackObject {
488
623
  */
489
624
  is_local?: boolean;
490
625
 
626
+ /**
627
+ * The playlist's public/private status (if it should be added to the user's
628
+ * profile or not): `true` the playlist will be public, `false` the playlist will
629
+ * be private, `null` the playlist status is not relevant. For more about
630
+ * public/private status, see
631
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
632
+ */
633
+ published?: boolean;
634
+
491
635
  /**
492
636
  * Information about the track or episode.
493
637
  */
@@ -501,6 +645,15 @@ export interface PlaylistTracksRefObject {
501
645
  */
502
646
  href?: string;
503
647
 
648
+ /**
649
+ * The playlist's public/private status (if it should be added to the user's
650
+ * profile or not): `true` the playlist will be public, `false` the playlist will
651
+ * be private, `null` the playlist status is not relevant. For more about
652
+ * public/private status, see
653
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
654
+ */
655
+ published?: boolean;
656
+
504
657
  /**
505
658
  * Number of tracks in the playlist.
506
659
  */
@@ -524,6 +677,15 @@ export interface PlaylistUserObject {
524
677
  */
525
678
  href?: string;
526
679
 
680
+ /**
681
+ * The playlist's public/private status (if it should be added to the user's
682
+ * profile or not): `true` the playlist will be public, `false` the playlist will
683
+ * be private, `null` the playlist status is not relevant. For more about
684
+ * public/private status, see
685
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
686
+ */
687
+ published?: boolean;
688
+
527
689
  /**
528
690
  * The object type.
529
691
  */
@@ -542,6 +704,15 @@ export interface ResumePointObject {
542
704
  */
543
705
  fully_played?: boolean;
544
706
 
707
+ /**
708
+ * The playlist's public/private status (if it should be added to the user's
709
+ * profile or not): `true` the playlist will be public, `false` the playlist will
710
+ * be private, `null` the playlist status is not relevant. For more about
711
+ * public/private status, see
712
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
713
+ */
714
+ published?: boolean;
715
+
545
716
  /**
546
717
  * The user's most recent position in the episode in milliseconds.
547
718
  */
@@ -639,6 +810,15 @@ export interface ShowBase {
639
810
  * show.
640
811
  */
641
812
  uri: string;
813
+
814
+ /**
815
+ * The playlist's public/private status (if it should be added to the user's
816
+ * profile or not): `true` the playlist will be public, `false` the playlist will
817
+ * be private, `null` the playlist status is not relevant. For more about
818
+ * public/private status, see
819
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
820
+ */
821
+ published?: boolean;
642
822
  }
643
823
 
644
824
  export interface SimplifiedArtistObject {
@@ -663,6 +843,15 @@ export interface SimplifiedArtistObject {
663
843
  */
664
844
  name?: string;
665
845
 
846
+ /**
847
+ * The playlist's public/private status (if it should be added to the user's
848
+ * profile or not): `true` the playlist will be public, `false` the playlist will
849
+ * be private, `null` the playlist status is not relevant. For more about
850
+ * public/private status, see
851
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
852
+ */
853
+ published?: boolean;
854
+
666
855
  /**
667
856
  * The object type.
668
857
  */
@@ -775,6 +964,15 @@ export interface SimplifiedEpisodeObject {
775
964
  */
776
965
  language?: string;
777
966
 
967
+ /**
968
+ * The playlist's public/private status (if it should be added to the user's
969
+ * profile or not): `true` the playlist will be public, `false` the playlist will
970
+ * be private, `null` the playlist status is not relevant. For more about
971
+ * public/private status, see
972
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
973
+ */
974
+ published?: boolean;
975
+
778
976
  /**
779
977
  * Included in the response when a content restriction is applied.
780
978
  */
@@ -835,12 +1033,13 @@ export interface SimplifiedPlaylistObject {
835
1033
  owner?: SimplifiedPlaylistObject.Owner;
836
1034
 
837
1035
  /**
838
- * The playlist's public/private status (if it is added to the user's profile):
839
- * `true` the playlist is public, `false` the playlist is private, `null` the
840
- * playlist status is not relevant. For more about public/private status, see
1036
+ * The playlist's public/private status (if it should be added to the user's
1037
+ * profile or not): `true` the playlist will be public, `false` the playlist will
1038
+ * be private, `null` the playlist status is not relevant. For more about
1039
+ * public/private status, see
841
1040
  * [Working with Playlists](/documentation/web-api/concepts/playlists)
842
1041
  */
843
- public?: boolean;
1042
+ published?: boolean;
844
1043
 
845
1044
  /**
846
1045
  * The version identifier for the current playlist. Can be supplied in other
@@ -956,6 +1155,15 @@ export interface SimplifiedTrackObject {
956
1155
  */
957
1156
  preview_url?: string | null;
958
1157
 
1158
+ /**
1159
+ * The playlist's public/private status (if it should be added to the user's
1160
+ * profile or not): `true` the playlist will be public, `false` the playlist will
1161
+ * be private, `null` the playlist status is not relevant. For more about
1162
+ * public/private status, see
1163
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
1164
+ */
1165
+ published?: boolean;
1166
+
959
1167
  /**
960
1168
  * Included in the response when a content restriction is applied.
961
1169
  */
@@ -1080,6 +1288,15 @@ export interface TrackObject {
1080
1288
  */
1081
1289
  preview_url?: string | null;
1082
1290
 
1291
+ /**
1292
+ * The playlist's public/private status (if it should be added to the user's
1293
+ * profile or not): `true` the playlist will be public, `false` the playlist will
1294
+ * be private, `null` the playlist status is not relevant. For more about
1295
+ * public/private status, see
1296
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
1297
+ */
1298
+ published?: boolean;
1299
+
1083
1300
  /**
1084
1301
  * Included in the response when a content restriction is applied.
1085
1302
  */
@@ -1181,6 +1398,15 @@ export namespace TrackObject {
1181
1398
  */
1182
1399
  uri: string;
1183
1400
 
1401
+ /**
1402
+ * The playlist's public/private status (if it should be added to the user's
1403
+ * profile or not): `true` the playlist will be public, `false` the playlist will
1404
+ * be private, `null` the playlist status is not relevant. For more about
1405
+ * public/private status, see
1406
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
1407
+ */
1408
+ published?: boolean;
1409
+
1184
1410
  /**
1185
1411
  * Included in the response when a content restriction is applied.
1186
1412
  */
@@ -1189,6 +1415,15 @@ export namespace TrackObject {
1189
1415
  }
1190
1416
 
1191
1417
  export interface TrackRestrictionObject {
1418
+ /**
1419
+ * The playlist's public/private status (if it should be added to the user's
1420
+ * profile or not): `true` the playlist will be public, `false` the playlist will
1421
+ * be private, `null` the playlist status is not relevant. For more about
1422
+ * public/private status, see
1423
+ * [Working with Playlists](/documentation/web-api/concepts/playlists)
1424
+ */
1425
+ published?: boolean;
1426
+
1192
1427
  /**
1193
1428
  * The reason for the restriction. Supported values:
1194
1429
  *