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
|
@@ -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
|
-
|
|
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
|
|
150
|
-
chapters: Array<
|
|
161
|
+
export interface ChapterBulkRetrieveResponse {
|
|
162
|
+
chapters: Array<ChapterBulkRetrieveResponse.Chapter>;
|
|
151
163
|
}
|
|
152
164
|
|
|
153
|
-
export namespace
|
|
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
|
|
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
|
|
332
|
+
type ChapterBulkRetrieveResponse as ChapterBulkRetrieveResponse,
|
|
312
333
|
type ChapterRetrieveParams as ChapterRetrieveParams,
|
|
313
|
-
type
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
76
|
+
type EpisodeBulkRetrieveResponse as EpisodeBulkRetrieveResponse,
|
|
74
77
|
type EpisodeRetrieveParams as EpisodeRetrieveParams,
|
|
75
|
-
type
|
|
78
|
+
type EpisodeBulkRetrieveParams as EpisodeBulkRetrieveParams,
|
|
76
79
|
};
|
|
77
80
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -11,29 +11,29 @@ export {
|
|
|
11
11
|
} from './albums';
|
|
12
12
|
export {
|
|
13
13
|
Artists,
|
|
14
|
-
type
|
|
14
|
+
type ArtistBulkRetrieveResponse,
|
|
15
15
|
type ArtistListAlbumsResponse,
|
|
16
16
|
type ArtistListRelatedArtistsResponse,
|
|
17
|
-
type
|
|
18
|
-
type
|
|
17
|
+
type ArtistTopTracksResponse,
|
|
18
|
+
type ArtistBulkRetrieveParams,
|
|
19
19
|
type ArtistListAlbumsParams,
|
|
20
|
-
type
|
|
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
|
|
28
|
-
type
|
|
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
|
|
34
|
+
type AudiobookBulkRetrieveResponse,
|
|
35
35
|
type AudiobookRetrieveParams,
|
|
36
|
-
type
|
|
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
|
|
50
|
+
type ChapterBulkRetrieveResponse,
|
|
51
51
|
type ChapterRetrieveParams,
|
|
52
|
-
type
|
|
52
|
+
type ChapterBulkRetrieveParams,
|
|
53
53
|
} from './chapters';
|
|
54
54
|
export {
|
|
55
55
|
Episodes,
|
|
56
|
-
type
|
|
56
|
+
type EpisodeBulkRetrieveResponse,
|
|
57
57
|
type EpisodeRetrieveParams,
|
|
58
|
-
type
|
|
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
|
|
74
|
+
export { Search, type SearchQueryResponse, type SearchQueryParams } from './search';
|
|
75
75
|
export {
|
|
76
76
|
Shows,
|
|
77
77
|
type ShowRetrieveResponse,
|
|
78
|
-
type
|
|
78
|
+
type ShowBulkRetrieveResponse,
|
|
79
79
|
type ShowRetrieveParams,
|
|
80
|
-
type
|
|
80
|
+
type ShowBulkRetrieveParams,
|
|
81
81
|
type ShowListEpisodesParams,
|
|
82
82
|
} from './shows';
|
|
83
|
-
export {
|
|
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
|
|
15
|
+
* const response = await client.me.following.bulkRetrieve({
|
|
16
16
|
* type: 'artist',
|
|
17
17
|
* });
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
|
|
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
|
|
79
|
-
artists:
|
|
81
|
+
export interface FollowingBulkRetrieveResponse {
|
|
82
|
+
artists: FollowingBulkRetrieveResponse.Artists;
|
|
80
83
|
}
|
|
81
84
|
|
|
82
|
-
export namespace
|
|
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
|
|
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
|
|
231
|
+
type FollowingBulkRetrieveResponse as FollowingBulkRetrieveResponse,
|
|
193
232
|
type FollowingCheckResponse as FollowingCheckResponse,
|
|
194
|
-
type
|
|
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
|
|
35
|
+
type FollowingBulkRetrieveResponse,
|
|
36
36
|
type FollowingCheckResponse,
|
|
37
|
-
type
|
|
37
|
+
type FollowingBulkRetrieveParams,
|
|
38
38
|
type FollowingCheckParams,
|
|
39
39
|
type FollowingFollowParams,
|
|
40
40
|
type FollowingUnfollowParams,
|
package/src/resources/me/me.ts
CHANGED
|
@@ -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
|
|
322
|
+
type FollowingBulkRetrieveResponse as FollowingBulkRetrieveResponse,
|
|
305
323
|
type FollowingCheckResponse as FollowingCheckResponse,
|
|
306
|
-
type
|
|
324
|
+
type FollowingBulkRetrieveParams as FollowingBulkRetrieveParams,
|
|
307
325
|
type FollowingCheckParams as FollowingCheckParams,
|
|
308
326
|
type FollowingFollowParams as FollowingFollowParams,
|
|
309
327
|
type FollowingUnfollowParams as FollowingUnfollowParams,
|