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.
- package/CHANGELOG.md +206 -3
- package/README.md +53 -4
- package/client.d.mts +33 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -25
- package/client.d.ts.map +1 -1
- package/client.js +16 -9
- package/client.js.map +1 -1
- package/client.mjs +17 -10
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/albums.d.mts +34 -2
- package/resources/albums.d.mts.map +1 -1
- package/resources/albums.d.ts +34 -2
- package/resources/albums.d.ts.map +1 -1
- package/resources/artists.d.mts +15 -7
- package/resources/artists.d.mts.map +1 -1
- package/resources/artists.d.ts +15 -7
- package/resources/artists.d.ts.map +1 -1
- package/resources/artists.js +2 -2
- package/resources/artists.js.map +1 -1
- package/resources/artists.mjs +2 -2
- package/resources/artists.mjs.map +1 -1
- package/resources/audio-analysis.d.mts +32 -0
- package/resources/audio-analysis.d.mts.map +1 -1
- package/resources/audio-analysis.d.ts +32 -0
- package/resources/audio-analysis.d.ts.map +1 -1
- package/resources/audio-features.d.mts +22 -6
- package/resources/audio-features.d.mts.map +1 -1
- package/resources/audio-features.d.ts +22 -6
- package/resources/audio-features.d.ts.map +1 -1
- package/resources/audio-features.js +1 -1
- package/resources/audio-features.js.map +1 -1
- package/resources/audio-features.mjs +1 -1
- package/resources/audio-features.mjs.map +1 -1
- package/resources/audiobooks.d.mts +32 -8
- package/resources/audiobooks.d.mts.map +1 -1
- package/resources/audiobooks.d.ts +32 -8
- package/resources/audiobooks.d.ts.map +1 -1
- package/resources/audiobooks.js +1 -1
- package/resources/audiobooks.js.map +1 -1
- package/resources/audiobooks.mjs +1 -1
- package/resources/audiobooks.mjs.map +1 -1
- package/resources/browse/browse.d.mts +27 -3
- package/resources/browse/browse.d.mts.map +1 -1
- package/resources/browse/browse.d.ts +27 -3
- package/resources/browse/browse.d.ts.map +1 -1
- package/resources/browse/browse.js.map +1 -1
- package/resources/browse/browse.mjs.map +1 -1
- package/resources/browse/categories.d.mts +45 -53
- package/resources/browse/categories.d.mts.map +1 -1
- package/resources/browse/categories.d.ts +45 -53
- package/resources/browse/categories.d.ts.map +1 -1
- package/resources/browse/categories.js +5 -1
- package/resources/browse/categories.js.map +1 -1
- package/resources/browse/categories.mjs +5 -1
- package/resources/browse/categories.mjs.map +1 -1
- package/resources/browse/index.d.mts +1 -1
- package/resources/browse/index.d.mts.map +1 -1
- package/resources/browse/index.d.ts +1 -1
- package/resources/browse/index.d.ts.map +1 -1
- package/resources/browse/index.js.map +1 -1
- package/resources/browse/index.mjs.map +1 -1
- package/resources/chapters.d.mts +22 -6
- package/resources/chapters.d.mts.map +1 -1
- package/resources/chapters.d.ts +22 -6
- package/resources/chapters.d.ts.map +1 -1
- package/resources/chapters.js +1 -1
- package/resources/chapters.js.map +1 -1
- package/resources/chapters.mjs +1 -1
- package/resources/chapters.mjs.map +1 -1
- package/resources/episodes.d.mts +4 -4
- package/resources/episodes.d.mts.map +1 -1
- package/resources/episodes.d.ts +4 -4
- package/resources/episodes.d.ts.map +1 -1
- package/resources/episodes.js +1 -1
- package/resources/episodes.js.map +1 -1
- package/resources/episodes.mjs +1 -1
- package/resources/episodes.mjs.map +1 -1
- package/resources/index.d.mts +8 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me/albums.d.mts +41 -1
- package/resources/me/albums.d.mts.map +1 -1
- package/resources/me/albums.d.ts +41 -1
- package/resources/me/albums.d.ts.map +1 -1
- package/resources/me/audiobooks.d.mts +17 -1
- package/resources/me/audiobooks.d.mts.map +1 -1
- package/resources/me/audiobooks.d.ts +17 -1
- package/resources/me/audiobooks.d.ts.map +1 -1
- package/resources/me/episodes.d.mts +24 -0
- package/resources/me/episodes.d.mts.map +1 -1
- package/resources/me/episodes.d.ts +24 -0
- package/resources/me/episodes.d.ts.map +1 -1
- package/resources/me/following.d.mts +39 -7
- package/resources/me/following.d.mts.map +1 -1
- package/resources/me/following.d.ts +39 -7
- package/resources/me/following.d.ts.map +1 -1
- package/resources/me/following.js +2 -2
- package/resources/me/following.js.map +1 -1
- package/resources/me/following.mjs +2 -2
- package/resources/me/following.mjs.map +1 -1
- package/resources/me/index.d.mts +1 -1
- package/resources/me/index.d.mts.map +1 -1
- package/resources/me/index.d.ts +1 -1
- package/resources/me/index.d.ts.map +1 -1
- package/resources/me/me.d.mts +18 -2
- package/resources/me/me.d.mts.map +1 -1
- package/resources/me/me.d.ts +18 -2
- package/resources/me/me.d.ts.map +1 -1
- package/resources/me/me.js.map +1 -1
- package/resources/me/me.mjs.map +1 -1
- package/resources/me/player/player.d.mts +72 -0
- package/resources/me/player/player.d.mts.map +1 -1
- package/resources/me/player/player.d.ts +72 -0
- package/resources/me/player/player.d.ts.map +1 -1
- package/resources/me/player/player.js.map +1 -1
- package/resources/me/player/player.mjs.map +1 -1
- package/resources/me/player/queue.d.mts +8 -0
- package/resources/me/player/queue.d.mts.map +1 -1
- package/resources/me/player/queue.d.ts +8 -0
- package/resources/me/player/queue.d.ts.map +1 -1
- package/resources/me/shows.d.mts +24 -0
- package/resources/me/shows.d.mts.map +1 -1
- package/resources/me/shows.d.ts +24 -0
- package/resources/me/shows.d.ts.map +1 -1
- package/resources/me/tracks.d.mts +24 -0
- package/resources/me/tracks.d.mts.map +1 -1
- package/resources/me/tracks.d.ts +24 -0
- package/resources/me/tracks.d.ts.map +1 -1
- package/resources/playlists/followers.d.mts +4 -3
- package/resources/playlists/followers.d.mts.map +1 -1
- package/resources/playlists/followers.d.ts +4 -3
- package/resources/playlists/followers.d.ts.map +1 -1
- package/resources/playlists/images.d.mts +7 -12
- package/resources/playlists/images.d.mts.map +1 -1
- package/resources/playlists/images.d.ts +7 -12
- package/resources/playlists/images.d.ts.map +1 -1
- package/resources/playlists/images.js +11 -7
- package/resources/playlists/images.js.map +1 -1
- package/resources/playlists/images.mjs +11 -7
- package/resources/playlists/images.mjs.map +1 -1
- package/resources/playlists/index.d.mts +1 -1
- package/resources/playlists/index.d.mts.map +1 -1
- package/resources/playlists/index.d.ts +1 -1
- package/resources/playlists/index.d.ts.map +1 -1
- package/resources/playlists/index.js.map +1 -1
- package/resources/playlists/index.mjs.map +1 -1
- package/resources/playlists/playlists.d.mts +17 -8
- package/resources/playlists/playlists.d.mts.map +1 -1
- package/resources/playlists/playlists.d.ts +17 -8
- package/resources/playlists/playlists.d.ts.map +1 -1
- package/resources/playlists/playlists.js.map +1 -1
- package/resources/playlists/playlists.mjs.map +1 -1
- package/resources/playlists/tracks.d.mts +24 -0
- package/resources/playlists/tracks.d.mts.map +1 -1
- package/resources/playlists/tracks.d.ts +24 -0
- package/resources/playlists/tracks.d.ts.map +1 -1
- package/resources/recommendations.d.mts +16 -0
- package/resources/recommendations.d.mts.map +1 -1
- package/resources/recommendations.d.ts +16 -0
- package/resources/recommendations.d.ts.map +1 -1
- package/resources/search.d.mts +73 -17
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +73 -17
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +1 -1
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +1 -1
- package/resources/search.mjs.map +1 -1
- package/resources/shared.d.mts +214 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +214 -5
- package/resources/shared.d.ts.map +1 -1
- package/resources/shows.d.mts +13 -5
- package/resources/shows.d.mts.map +1 -1
- package/resources/shows.d.ts +13 -5
- package/resources/shows.d.ts.map +1 -1
- package/resources/shows.js +1 -1
- package/resources/shows.js.map +1 -1
- package/resources/shows.mjs +1 -1
- package/resources/shows.mjs.map +1 -1
- package/resources/tracks.d.mts +4 -4
- package/resources/tracks.d.mts.map +1 -1
- package/resources/tracks.d.ts +4 -4
- package/resources/tracks.d.ts.map +1 -1
- package/resources/tracks.js +1 -1
- package/resources/tracks.js.map +1 -1
- package/resources/tracks.mjs +1 -1
- package/resources/tracks.mjs.map +1 -1
- package/resources/users/playlists.d.mts +18 -11
- package/resources/users/playlists.d.mts.map +1 -1
- package/resources/users/playlists.d.ts +18 -11
- package/resources/users/playlists.d.ts.map +1 -1
- package/resources/users/users.d.mts +8 -0
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +8 -0
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/src/client.ts +71 -55
- package/src/resources/albums.ts +40 -4
- package/src/resources/artists.ts +24 -12
- package/src/resources/audio-analysis.ts +36 -0
- package/src/resources/audio-features.ts +28 -7
- package/src/resources/audiobooks.ts +41 -11
- package/src/resources/browse/browse.ts +31 -2
- package/src/resources/browse/categories.ts +54 -62
- package/src/resources/browse/index.ts +1 -0
- package/src/resources/chapters.ts +28 -7
- package/src/resources/episodes.ts +8 -5
- package/src/resources/index.ts +21 -16
- package/src/resources/me/albums.ts +47 -2
- package/src/resources/me/audiobooks.ts +20 -2
- package/src/resources/me/episodes.ts +27 -0
- package/src/resources/me/following.ts +47 -8
- package/src/resources/me/index.ts +2 -2
- package/src/resources/me/me.ts +22 -4
- package/src/resources/me/player/player.ts +81 -0
- package/src/resources/me/player/queue.ts +9 -0
- package/src/resources/me/shows.ts +27 -0
- package/src/resources/me/tracks.ts +27 -0
- package/src/resources/playlists/followers.ts +4 -3
- package/src/resources/playlists/images.ts +16 -15
- package/src/resources/playlists/index.ts +1 -1
- package/src/resources/playlists/playlists.ts +19 -13
- package/src/resources/playlists/tracks.ts +27 -0
- package/src/resources/recommendations.ts +18 -0
- package/src/resources/search.ts +86 -26
- package/src/resources/shared.ts +241 -6
- package/src/resources/shows.ts +19 -7
- package/src/resources/tracks.ts +8 -5
- package/src/resources/users/playlists.ts +20 -12
- package/src/resources/users/users.ts +9 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- 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
|
-
*
|
|
82
|
-
*
|
|
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
|
-
|
|
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(
|
|
25
|
-
|
|
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([
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
124
|
-
* `true` the playlist
|
|
125
|
-
* playlist status is not relevant. For more about
|
|
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
|
-
|
|
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
|
-
|
|
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
|
*/
|