spotted-ts 0.1.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +183 -3
- package/README.md +50 -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
|
@@ -15,7 +15,7 @@ export declare class Audiobooks extends APIResource {
|
|
|
15
15
|
* Spotify IDs. Audiobooks are only available within the US, UK, Canada, Ireland,
|
|
16
16
|
* New Zealand and Australia markets.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
bulkRetrieve(query: AudiobookBulkRetrieveParams, options?: RequestOptions): APIPromise<AudiobookBulkRetrieveResponse>;
|
|
19
19
|
/**
|
|
20
20
|
* Get Spotify catalog information about an audiobook's chapters. Audiobooks are
|
|
21
21
|
* only available within the US, UK, Canada, Ireland, New Zealand and Australia
|
|
@@ -105,6 +105,14 @@ export interface SimplifiedChapterObject {
|
|
|
105
105
|
* [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
|
|
106
106
|
*/
|
|
107
107
|
available_markets?: Array<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
110
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
111
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
112
|
+
* public/private status, see
|
|
113
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
114
|
+
*/
|
|
115
|
+
published?: boolean;
|
|
108
116
|
/**
|
|
109
117
|
* Included in the response when a content restriction is applied.
|
|
110
118
|
*/
|
|
@@ -130,7 +138,6 @@ export declare namespace AudiobookRetrieveResponse {
|
|
|
130
138
|
* A link to the Web API endpoint returning the full result of the request
|
|
131
139
|
*/
|
|
132
140
|
href: string;
|
|
133
|
-
items: Array<AudiobooksAPI.SimplifiedChapterObject>;
|
|
134
141
|
/**
|
|
135
142
|
* The maximum number of items in the response (as set in the query or by default).
|
|
136
143
|
*/
|
|
@@ -151,12 +158,21 @@ export declare namespace AudiobookRetrieveResponse {
|
|
|
151
158
|
* The total number of items available to return.
|
|
152
159
|
*/
|
|
153
160
|
total: number;
|
|
161
|
+
items?: Array<AudiobooksAPI.SimplifiedChapterObject>;
|
|
162
|
+
/**
|
|
163
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
164
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
165
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
166
|
+
* public/private status, see
|
|
167
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
168
|
+
*/
|
|
169
|
+
published?: boolean;
|
|
154
170
|
}
|
|
155
171
|
}
|
|
156
|
-
export interface
|
|
157
|
-
audiobooks: Array<
|
|
172
|
+
export interface AudiobookBulkRetrieveResponse {
|
|
173
|
+
audiobooks: Array<AudiobookBulkRetrieveResponse.Audiobook>;
|
|
158
174
|
}
|
|
159
|
-
export declare namespace
|
|
175
|
+
export declare namespace AudiobookBulkRetrieveResponse {
|
|
160
176
|
interface Audiobook extends Shared.AudiobookBase {
|
|
161
177
|
/**
|
|
162
178
|
* The chapters of the audiobook.
|
|
@@ -172,7 +188,6 @@ export declare namespace AudiobookListResponse {
|
|
|
172
188
|
* A link to the Web API endpoint returning the full result of the request
|
|
173
189
|
*/
|
|
174
190
|
href: string;
|
|
175
|
-
items: Array<AudiobooksAPI.SimplifiedChapterObject>;
|
|
176
191
|
/**
|
|
177
192
|
* The maximum number of items in the response (as set in the query or by default).
|
|
178
193
|
*/
|
|
@@ -193,6 +208,15 @@ export declare namespace AudiobookListResponse {
|
|
|
193
208
|
* The total number of items available to return.
|
|
194
209
|
*/
|
|
195
210
|
total: number;
|
|
211
|
+
items?: Array<AudiobooksAPI.SimplifiedChapterObject>;
|
|
212
|
+
/**
|
|
213
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
214
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
215
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
216
|
+
* public/private status, see
|
|
217
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
218
|
+
*/
|
|
219
|
+
published?: boolean;
|
|
196
220
|
}
|
|
197
221
|
}
|
|
198
222
|
}
|
|
@@ -210,7 +234,7 @@ export interface AudiobookRetrieveParams {
|
|
|
210
234
|
*/
|
|
211
235
|
market?: string;
|
|
212
236
|
}
|
|
213
|
-
export interface
|
|
237
|
+
export interface AudiobookBulkRetrieveParams {
|
|
214
238
|
/**
|
|
215
239
|
* A comma-separated list of the
|
|
216
240
|
* [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids). For example:
|
|
@@ -254,6 +278,6 @@ export interface AudiobookListChaptersParams {
|
|
|
254
278
|
offset?: number;
|
|
255
279
|
}
|
|
256
280
|
export declare namespace Audiobooks {
|
|
257
|
-
export { type SimplifiedChapterObject as SimplifiedChapterObject, type AudiobookRetrieveResponse as AudiobookRetrieveResponse, type
|
|
281
|
+
export { type SimplifiedChapterObject as SimplifiedChapterObject, type AudiobookRetrieveResponse as AudiobookRetrieveResponse, type AudiobookBulkRetrieveResponse as AudiobookBulkRetrieveResponse, type SimplifiedChapterObjectsCursorURLPage as SimplifiedChapterObjectsCursorURLPage, type AudiobookRetrieveParams as AudiobookRetrieveParams, type AudiobookBulkRetrieveParams as AudiobookBulkRetrieveParams, type AudiobookListChaptersParams as AudiobookListChaptersParams, };
|
|
258
282
|
}
|
|
259
283
|
//# sourceMappingURL=audiobooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audiobooks.d.mts","sourceRoot":"","sources":["../src/resources/audiobooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,uBAAuB,G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AAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -15,7 +15,7 @@ export declare class Audiobooks extends APIResource {
|
|
|
15
15
|
* Spotify IDs. Audiobooks are only available within the US, UK, Canada, Ireland,
|
|
16
16
|
* New Zealand and Australia markets.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
bulkRetrieve(query: AudiobookBulkRetrieveParams, options?: RequestOptions): APIPromise<AudiobookBulkRetrieveResponse>;
|
|
19
19
|
/**
|
|
20
20
|
* Get Spotify catalog information about an audiobook's chapters. Audiobooks are
|
|
21
21
|
* only available within the US, UK, Canada, Ireland, New Zealand and Australia
|
|
@@ -105,6 +105,14 @@ export interface SimplifiedChapterObject {
|
|
|
105
105
|
* [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
|
|
106
106
|
*/
|
|
107
107
|
available_markets?: Array<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
110
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
111
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
112
|
+
* public/private status, see
|
|
113
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
114
|
+
*/
|
|
115
|
+
published?: boolean;
|
|
108
116
|
/**
|
|
109
117
|
* Included in the response when a content restriction is applied.
|
|
110
118
|
*/
|
|
@@ -130,7 +138,6 @@ export declare namespace AudiobookRetrieveResponse {
|
|
|
130
138
|
* A link to the Web API endpoint returning the full result of the request
|
|
131
139
|
*/
|
|
132
140
|
href: string;
|
|
133
|
-
items: Array<AudiobooksAPI.SimplifiedChapterObject>;
|
|
134
141
|
/**
|
|
135
142
|
* The maximum number of items in the response (as set in the query or by default).
|
|
136
143
|
*/
|
|
@@ -151,12 +158,21 @@ export declare namespace AudiobookRetrieveResponse {
|
|
|
151
158
|
* The total number of items available to return.
|
|
152
159
|
*/
|
|
153
160
|
total: number;
|
|
161
|
+
items?: Array<AudiobooksAPI.SimplifiedChapterObject>;
|
|
162
|
+
/**
|
|
163
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
164
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
165
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
166
|
+
* public/private status, see
|
|
167
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
168
|
+
*/
|
|
169
|
+
published?: boolean;
|
|
154
170
|
}
|
|
155
171
|
}
|
|
156
|
-
export interface
|
|
157
|
-
audiobooks: Array<
|
|
172
|
+
export interface AudiobookBulkRetrieveResponse {
|
|
173
|
+
audiobooks: Array<AudiobookBulkRetrieveResponse.Audiobook>;
|
|
158
174
|
}
|
|
159
|
-
export declare namespace
|
|
175
|
+
export declare namespace AudiobookBulkRetrieveResponse {
|
|
160
176
|
interface Audiobook extends Shared.AudiobookBase {
|
|
161
177
|
/**
|
|
162
178
|
* The chapters of the audiobook.
|
|
@@ -172,7 +188,6 @@ export declare namespace AudiobookListResponse {
|
|
|
172
188
|
* A link to the Web API endpoint returning the full result of the request
|
|
173
189
|
*/
|
|
174
190
|
href: string;
|
|
175
|
-
items: Array<AudiobooksAPI.SimplifiedChapterObject>;
|
|
176
191
|
/**
|
|
177
192
|
* The maximum number of items in the response (as set in the query or by default).
|
|
178
193
|
*/
|
|
@@ -193,6 +208,15 @@ export declare namespace AudiobookListResponse {
|
|
|
193
208
|
* The total number of items available to return.
|
|
194
209
|
*/
|
|
195
210
|
total: number;
|
|
211
|
+
items?: Array<AudiobooksAPI.SimplifiedChapterObject>;
|
|
212
|
+
/**
|
|
213
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
214
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
215
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
216
|
+
* public/private status, see
|
|
217
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
218
|
+
*/
|
|
219
|
+
published?: boolean;
|
|
196
220
|
}
|
|
197
221
|
}
|
|
198
222
|
}
|
|
@@ -210,7 +234,7 @@ export interface AudiobookRetrieveParams {
|
|
|
210
234
|
*/
|
|
211
235
|
market?: string;
|
|
212
236
|
}
|
|
213
|
-
export interface
|
|
237
|
+
export interface AudiobookBulkRetrieveParams {
|
|
214
238
|
/**
|
|
215
239
|
* A comma-separated list of the
|
|
216
240
|
* [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids). For example:
|
|
@@ -254,6 +278,6 @@ export interface AudiobookListChaptersParams {
|
|
|
254
278
|
offset?: number;
|
|
255
279
|
}
|
|
256
280
|
export declare namespace Audiobooks {
|
|
257
|
-
export { type SimplifiedChapterObject as SimplifiedChapterObject, type AudiobookRetrieveResponse as AudiobookRetrieveResponse, type
|
|
281
|
+
export { type SimplifiedChapterObject as SimplifiedChapterObject, type AudiobookRetrieveResponse as AudiobookRetrieveResponse, type AudiobookBulkRetrieveResponse as AudiobookBulkRetrieveResponse, type SimplifiedChapterObjectsCursorURLPage as SimplifiedChapterObjectsCursorURLPage, type AudiobookRetrieveParams as AudiobookRetrieveParams, type AudiobookBulkRetrieveParams as AudiobookBulkRetrieveParams, type AudiobookListChaptersParams as AudiobookListChaptersParams, };
|
|
258
282
|
}
|
|
259
283
|
//# sourceMappingURL=audiobooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audiobooks.d.ts","sourceRoot":"","sources":["../src/resources/audiobooks.ts"],"names":[],"mappings":"OAEO,EAAE,W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,EAAE,MAAM,CAAC;IAEZ;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/resources/audiobooks.js
CHANGED
|
@@ -18,7 +18,7 @@ class Audiobooks extends resource_1.APIResource {
|
|
|
18
18
|
* Spotify IDs. Audiobooks are only available within the US, UK, Canada, Ireland,
|
|
19
19
|
* New Zealand and Australia markets.
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
bulkRetrieve(query, options) {
|
|
22
22
|
return this._client.get('/audiobooks', { query, ...options });
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audiobooks.js","sourceRoot":"","sources":["../src/resources/audiobooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"audiobooks.js","sourceRoot":"","sources":["../src/resources/audiobooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACH,YAAY,CACV,KAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACH,YAAY,CACV,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,WAAW,EAAE,CAAA,0BAAsC,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAxCD,gCAwCC"}
|
package/resources/audiobooks.mjs
CHANGED
|
@@ -15,7 +15,7 @@ export class Audiobooks extends APIResource {
|
|
|
15
15
|
* Spotify IDs. Audiobooks are only available within the US, UK, Canada, Ireland,
|
|
16
16
|
* New Zealand and Australia markets.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
bulkRetrieve(query, options) {
|
|
19
19
|
return this._client.get('/audiobooks', { query, ...options });
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audiobooks.mjs","sourceRoot":"","sources":["../src/resources/audiobooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"audiobooks.mjs","sourceRoot":"","sources":["../src/resources/audiobooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACH,YAAY,CACV,KAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACH,YAAY,CACV,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,eAAe,EAAE,WAAW,EAAE,CAAA,aAAsC,CAAA,EAAE;YACvG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../shared.mjs";
|
|
3
3
|
import * as CategoriesAPI from "./categories.mjs";
|
|
4
|
-
import { Categories, CategoryGetPlaylistsParams, CategoryGetPlaylistsResponse, CategoryListParams, CategoryListResponse, CategoryRetrieveParams, CategoryRetrieveResponse } from "./categories.mjs";
|
|
4
|
+
import { Categories, CategoryGetPlaylistsParams, CategoryGetPlaylistsResponse, CategoryListParams, CategoryListResponse, CategoryListResponsesCursorURLPage, CategoryRetrieveParams, CategoryRetrieveResponse } from "./categories.mjs";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
7
|
export declare class Browse extends APIResource {
|
|
@@ -25,6 +25,14 @@ export interface BrowseGetFeaturedPlaylistsResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
message?: string;
|
|
27
27
|
playlists?: Shared.PagingPlaylistObject;
|
|
28
|
+
/**
|
|
29
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
30
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
31
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
32
|
+
* public/private status, see
|
|
33
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
34
|
+
*/
|
|
35
|
+
published?: boolean;
|
|
28
36
|
}
|
|
29
37
|
export interface BrowseGetNewReleasesResponse {
|
|
30
38
|
albums: BrowseGetNewReleasesResponse.Albums;
|
|
@@ -35,7 +43,6 @@ export declare namespace BrowseGetNewReleasesResponse {
|
|
|
35
43
|
* A link to the Web API endpoint returning the full result of the request
|
|
36
44
|
*/
|
|
37
45
|
href: string;
|
|
38
|
-
items: Array<Albums.Item>;
|
|
39
46
|
/**
|
|
40
47
|
* The maximum number of items in the response (as set in the query or by default).
|
|
41
48
|
*/
|
|
@@ -56,6 +63,15 @@ export declare namespace BrowseGetNewReleasesResponse {
|
|
|
56
63
|
* The total number of items available to return.
|
|
57
64
|
*/
|
|
58
65
|
total: number;
|
|
66
|
+
items?: Array<Albums.Item>;
|
|
67
|
+
/**
|
|
68
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
69
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
70
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
71
|
+
* public/private status, see
|
|
72
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
73
|
+
*/
|
|
74
|
+
published?: boolean;
|
|
59
75
|
}
|
|
60
76
|
namespace Albums {
|
|
61
77
|
interface Item {
|
|
@@ -118,6 +134,14 @@ export declare namespace BrowseGetNewReleasesResponse {
|
|
|
118
134
|
* album.
|
|
119
135
|
*/
|
|
120
136
|
uri: string;
|
|
137
|
+
/**
|
|
138
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
139
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
140
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
141
|
+
* public/private status, see
|
|
142
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
143
|
+
*/
|
|
144
|
+
published?: boolean;
|
|
121
145
|
/**
|
|
122
146
|
* Included in the response when a content restriction is applied.
|
|
123
147
|
*/
|
|
@@ -160,6 +184,6 @@ export interface BrowseGetNewReleasesParams {
|
|
|
160
184
|
}
|
|
161
185
|
export declare namespace Browse {
|
|
162
186
|
export { type BrowseGetFeaturedPlaylistsResponse as BrowseGetFeaturedPlaylistsResponse, type BrowseGetNewReleasesResponse as BrowseGetNewReleasesResponse, type BrowseGetFeaturedPlaylistsParams as BrowseGetFeaturedPlaylistsParams, type BrowseGetNewReleasesParams as BrowseGetNewReleasesParams, };
|
|
163
|
-
export { Categories as Categories, type CategoryRetrieveResponse as CategoryRetrieveResponse, type CategoryListResponse as CategoryListResponse, type CategoryGetPlaylistsResponse as CategoryGetPlaylistsResponse, type CategoryRetrieveParams as CategoryRetrieveParams, type CategoryListParams as CategoryListParams, type CategoryGetPlaylistsParams as CategoryGetPlaylistsParams, };
|
|
187
|
+
export { Categories as Categories, type CategoryRetrieveResponse as CategoryRetrieveResponse, type CategoryListResponse as CategoryListResponse, type CategoryGetPlaylistsResponse as CategoryGetPlaylistsResponse, type CategoryListResponsesCursorURLPage as CategoryListResponsesCursorURLPage, type CategoryRetrieveParams as CategoryRetrieveParams, type CategoryListParams as CategoryListParams, type CategoryGetPlaylistsParams as CategoryGetPlaylistsParams, };
|
|
164
188
|
}
|
|
165
189
|
//# sourceMappingURL=browse.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browse.d.mts","sourceRoot":"","sources":["../../src/resources/browse/browse.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EACL,UAAU,EACV,0BAA0B,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACzB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAElF;;;;;OAKG;IACH,oBAAoB,CAClB,KAAK,GAAE,gCAAgC,GAAG,IAAI,GAAG,SAAc,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;;OAGG;IACH,cAAc,CACZ,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC;
|
|
1
|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ED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as Shared from "../shared.js";
|
|
3
3
|
import * as CategoriesAPI from "./categories.js";
|
|
4
|
-
import { Categories, CategoryGetPlaylistsParams, CategoryGetPlaylistsResponse, CategoryListParams, CategoryListResponse, CategoryRetrieveParams, CategoryRetrieveResponse } from "./categories.js";
|
|
4
|
+
import { Categories, CategoryGetPlaylistsParams, CategoryGetPlaylistsResponse, CategoryListParams, CategoryListResponse, CategoryListResponsesCursorURLPage, CategoryRetrieveParams, CategoryRetrieveResponse } from "./categories.js";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
7
|
export declare class Browse extends APIResource {
|
|
@@ -25,6 +25,14 @@ export interface BrowseGetFeaturedPlaylistsResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
message?: string;
|
|
27
27
|
playlists?: Shared.PagingPlaylistObject;
|
|
28
|
+
/**
|
|
29
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
30
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
31
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
32
|
+
* public/private status, see
|
|
33
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
34
|
+
*/
|
|
35
|
+
published?: boolean;
|
|
28
36
|
}
|
|
29
37
|
export interface BrowseGetNewReleasesResponse {
|
|
30
38
|
albums: BrowseGetNewReleasesResponse.Albums;
|
|
@@ -35,7 +43,6 @@ export declare namespace BrowseGetNewReleasesResponse {
|
|
|
35
43
|
* A link to the Web API endpoint returning the full result of the request
|
|
36
44
|
*/
|
|
37
45
|
href: string;
|
|
38
|
-
items: Array<Albums.Item>;
|
|
39
46
|
/**
|
|
40
47
|
* The maximum number of items in the response (as set in the query or by default).
|
|
41
48
|
*/
|
|
@@ -56,6 +63,15 @@ export declare namespace BrowseGetNewReleasesResponse {
|
|
|
56
63
|
* The total number of items available to return.
|
|
57
64
|
*/
|
|
58
65
|
total: number;
|
|
66
|
+
items?: Array<Albums.Item>;
|
|
67
|
+
/**
|
|
68
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
69
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
70
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
71
|
+
* public/private status, see
|
|
72
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
73
|
+
*/
|
|
74
|
+
published?: boolean;
|
|
59
75
|
}
|
|
60
76
|
namespace Albums {
|
|
61
77
|
interface Item {
|
|
@@ -118,6 +134,14 @@ export declare namespace BrowseGetNewReleasesResponse {
|
|
|
118
134
|
* album.
|
|
119
135
|
*/
|
|
120
136
|
uri: string;
|
|
137
|
+
/**
|
|
138
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
139
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
140
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
141
|
+
* public/private status, see
|
|
142
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
143
|
+
*/
|
|
144
|
+
published?: boolean;
|
|
121
145
|
/**
|
|
122
146
|
* Included in the response when a content restriction is applied.
|
|
123
147
|
*/
|
|
@@ -160,6 +184,6 @@ export interface BrowseGetNewReleasesParams {
|
|
|
160
184
|
}
|
|
161
185
|
export declare namespace Browse {
|
|
162
186
|
export { type BrowseGetFeaturedPlaylistsResponse as BrowseGetFeaturedPlaylistsResponse, type BrowseGetNewReleasesResponse as BrowseGetNewReleasesResponse, type BrowseGetFeaturedPlaylistsParams as BrowseGetFeaturedPlaylistsParams, type BrowseGetNewReleasesParams as BrowseGetNewReleasesParams, };
|
|
163
|
-
export { Categories as Categories, type CategoryRetrieveResponse as CategoryRetrieveResponse, type CategoryListResponse as CategoryListResponse, type CategoryGetPlaylistsResponse as CategoryGetPlaylistsResponse, type CategoryRetrieveParams as CategoryRetrieveParams, type CategoryListParams as CategoryListParams, type CategoryGetPlaylistsParams as CategoryGetPlaylistsParams, };
|
|
187
|
+
export { Categories as Categories, type CategoryRetrieveResponse as CategoryRetrieveResponse, type CategoryListResponse as CategoryListResponse, type CategoryGetPlaylistsResponse as CategoryGetPlaylistsResponse, type CategoryListResponsesCursorURLPage as CategoryListResponsesCursorURLPage, type CategoryRetrieveParams as CategoryRetrieveParams, type CategoryListParams as CategoryListParams, type CategoryGetPlaylistsParams as CategoryGetPlaylistsParams, };
|
|
164
188
|
}
|
|
165
189
|
//# sourceMappingURL=browse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browse.d.ts","sourceRoot":"","sources":["../../src/resources/browse/browse.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,EACL,UAAU,EACV,0BAA0B,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,EACp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@
|
|
|
1
|
-
{"version":3,"file":"browse.js","sourceRoot":"","sources":["../../src/resources/browse/browse.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,uEAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"browse.js","sourceRoot":"","sources":["../../src/resources/browse/browse.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,uEAA8C;AAC9C,gDASsB;AAItB,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyBpF,CAAC;IAvBC;;;;;OAKG;IACH,oBAAoB,CAClB,QAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,cAAc,CACZ,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA1BD,wBA0BC;AAqMD,MAAM,CAAC,UAAU,GAAG,uBAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browse.mjs","sourceRoot":"","sources":["../../src/resources/browse/browse.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,aAAa;OAClB,EACL,UAAU,
|
|
1
|
+
{"version":3,"file":"browse.mjs","sourceRoot":"","sources":["../../src/resources/browse/browse.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,aAAa;OAClB,EACL,UAAU,GAQX;AAID,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyBpF,CAAC;IAvBC;;;;;OAKG;IACH,oBAAoB,CAClB,QAA6D,EAAE,EAC/D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,cAAc,CACZ,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAqMD,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../shared.mjs";
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { CursorURLPage, PagePromise } from "../../core/pagination.mjs";
|
|
4
5
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
6
|
export declare class Categories extends APIResource {
|
|
6
7
|
/**
|
|
@@ -12,7 +13,7 @@ export declare class Categories extends APIResource {
|
|
|
12
13
|
* Get a list of categories used to tag items in Spotify (on, for example, the
|
|
13
14
|
* Spotify player’s “Browse” tab).
|
|
14
15
|
*/
|
|
15
|
-
list(query?: CategoryListParams | null | undefined, options?: RequestOptions):
|
|
16
|
+
list(query?: CategoryListParams | null | undefined, options?: RequestOptions): PagePromise<CategoryListResponsesCursorURLPage, CategoryListResponse>;
|
|
16
17
|
/**
|
|
17
18
|
* Get a list of Spotify playlists tagged with a particular category.
|
|
18
19
|
*
|
|
@@ -20,6 +21,7 @@ export declare class Categories extends APIResource {
|
|
|
20
21
|
*/
|
|
21
22
|
getPlaylists(categoryID: string, query?: CategoryGetPlaylistsParams | null | undefined, options?: RequestOptions): APIPromise<CategoryGetPlaylistsResponse>;
|
|
22
23
|
}
|
|
24
|
+
export type CategoryListResponsesCursorURLPage = CursorURLPage<CategoryListResponse>;
|
|
23
25
|
export interface CategoryRetrieveResponse {
|
|
24
26
|
/**
|
|
25
27
|
* The [Spotify category ID](/documentation/web-api/concepts/spotify-uris-ids) of
|
|
@@ -38,59 +40,41 @@ export interface CategoryRetrieveResponse {
|
|
|
38
40
|
* The name of the category.
|
|
39
41
|
*/
|
|
40
42
|
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
45
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
46
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
47
|
+
* public/private status, see
|
|
48
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
49
|
+
*/
|
|
50
|
+
published?: boolean;
|
|
41
51
|
}
|
|
42
52
|
export interface CategoryListResponse {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The total number of items available to return.
|
|
70
|
-
*/
|
|
71
|
-
total: number;
|
|
72
|
-
}
|
|
73
|
-
namespace Categories {
|
|
74
|
-
interface Item {
|
|
75
|
-
/**
|
|
76
|
-
* The [Spotify category ID](/documentation/web-api/concepts/spotify-uris-ids) of
|
|
77
|
-
* the category.
|
|
78
|
-
*/
|
|
79
|
-
id: string;
|
|
80
|
-
/**
|
|
81
|
-
* A link to the Web API endpoint returning full details of the category.
|
|
82
|
-
*/
|
|
83
|
-
href: string;
|
|
84
|
-
/**
|
|
85
|
-
* The category icon, in various sizes.
|
|
86
|
-
*/
|
|
87
|
-
icons: Array<Shared.ImageObject>;
|
|
88
|
-
/**
|
|
89
|
-
* The name of the category.
|
|
90
|
-
*/
|
|
91
|
-
name: string;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
53
|
+
/**
|
|
54
|
+
* The [Spotify category ID](/documentation/web-api/concepts/spotify-uris-ids) of
|
|
55
|
+
* the category.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
/**
|
|
59
|
+
* A link to the Web API endpoint returning full details of the category.
|
|
60
|
+
*/
|
|
61
|
+
href: string;
|
|
62
|
+
/**
|
|
63
|
+
* The category icon, in various sizes.
|
|
64
|
+
*/
|
|
65
|
+
icons: Array<Shared.ImageObject>;
|
|
66
|
+
/**
|
|
67
|
+
* The name of the category.
|
|
68
|
+
*/
|
|
69
|
+
name: string;
|
|
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;
|
|
94
78
|
}
|
|
95
79
|
export interface CategoryGetPlaylistsResponse {
|
|
96
80
|
/**
|
|
@@ -98,6 +82,14 @@ export interface CategoryGetPlaylistsResponse {
|
|
|
98
82
|
*/
|
|
99
83
|
message?: string;
|
|
100
84
|
playlists?: Shared.PagingPlaylistObject;
|
|
85
|
+
/**
|
|
86
|
+
* The playlist's public/private status (if it should be added to the user's
|
|
87
|
+
* profile or not): `true` the playlist will be public, `false` the playlist will
|
|
88
|
+
* be private, `null` the playlist status is not relevant. For more about
|
|
89
|
+
* public/private status, see
|
|
90
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
91
|
+
*/
|
|
92
|
+
published?: boolean;
|
|
101
93
|
}
|
|
102
94
|
export interface CategoryRetrieveParams {
|
|
103
95
|
/**
|
|
@@ -146,6 +138,6 @@ export interface CategoryGetPlaylistsParams {
|
|
|
146
138
|
offset?: number;
|
|
147
139
|
}
|
|
148
140
|
export declare namespace Categories {
|
|
149
|
-
export { type CategoryRetrieveResponse as CategoryRetrieveResponse, type CategoryListResponse as CategoryListResponse, type CategoryGetPlaylistsResponse as CategoryGetPlaylistsResponse, type CategoryRetrieveParams as CategoryRetrieveParams, type CategoryListParams as CategoryListParams, type CategoryGetPlaylistsParams as CategoryGetPlaylistsParams, };
|
|
141
|
+
export { type CategoryRetrieveResponse as CategoryRetrieveResponse, type CategoryListResponse as CategoryListResponse, type CategoryGetPlaylistsResponse as CategoryGetPlaylistsResponse, type CategoryListResponsesCursorURLPage as CategoryListResponsesCursorURLPage, type CategoryRetrieveParams as CategoryRetrieveParams, type CategoryListParams as CategoryListParams, type CategoryGetPlaylistsParams as CategoryGetPlaylistsParams, };
|
|
150
142
|
}
|
|
151
143
|
//# sourceMappingURL=categories.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categories.d.mts","sourceRoot":"","sources":["../../src/resources/browse/categories.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,
|
|
1
|
+
{"version":3,"file":"categories.d.mts","sourceR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