spotted-ts 0.1.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 +47 -0
- package/LICENSE +201 -0
- package/README.md +354 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +261 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +261 -0
- package/client.d.ts.map +1 -0
- package/client.js +553 -0
- package/client.js.map +1 -0
- package/client.mjs +549 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +50 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +50 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +104 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +98 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +148 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/albums.d.mts +333 -0
- package/resources/albums.d.mts.map +1 -0
- package/resources/albums.d.ts +333 -0
- package/resources/albums.d.ts.map +1 -0
- package/resources/albums.js +34 -0
- package/resources/albums.js.map +1 -0
- package/resources/albums.mjs +30 -0
- package/resources/albums.mjs.map +1 -0
- package/resources/artists.d.mts +166 -0
- package/resources/artists.d.mts.map +1 -0
- package/resources/artists.d.ts +166 -0
- package/resources/artists.d.ts.map +1 -0
- package/resources/artists.js +48 -0
- package/resources/artists.js.map +1 -0
- package/resources/artists.mjs +44 -0
- package/resources/artists.mjs.map +1 -0
- package/resources/audio-analysis.d.mts +365 -0
- package/resources/audio-analysis.d.mts.map +1 -0
- package/resources/audio-analysis.d.ts +365 -0
- package/resources/audio-analysis.d.ts.map +1 -0
- package/resources/audio-analysis.js +20 -0
- package/resources/audio-analysis.js.map +1 -0
- package/resources/audio-analysis.mjs +16 -0
- package/resources/audio-analysis.mjs.map +1 -0
- package/resources/audio-features.d.mts +253 -0
- package/resources/audio-features.d.mts.map +1 -0
- package/resources/audio-features.d.ts +253 -0
- package/resources/audio-features.d.ts.map +1 -0
- package/resources/audio-features.js +27 -0
- package/resources/audio-features.js.map +1 -0
- package/resources/audio-features.mjs +23 -0
- package/resources/audio-features.mjs.map +1 -0
- package/resources/audiobooks.d.mts +259 -0
- package/resources/audiobooks.d.mts.map +1 -0
- package/resources/audiobooks.d.ts +259 -0
- package/resources/audiobooks.d.ts.map +1 -0
- package/resources/audiobooks.js +37 -0
- package/resources/audiobooks.js.map +1 -0
- package/resources/audiobooks.mjs +33 -0
- package/resources/audiobooks.mjs.map +1 -0
- package/resources/browse/browse.d.mts +165 -0
- package/resources/browse/browse.d.mts.map +1 -0
- package/resources/browse/browse.d.ts +165 -0
- package/resources/browse/browse.d.ts.map +1 -0
- package/resources/browse/browse.js +33 -0
- package/resources/browse/browse.js.map +1 -0
- package/resources/browse/browse.mjs +28 -0
- package/resources/browse/browse.mjs.map +1 -0
- package/resources/browse/categories.d.mts +151 -0
- package/resources/browse/categories.d.mts.map +1 -0
- package/resources/browse/categories.d.ts +151 -0
- package/resources/browse/categories.d.ts.map +1 -0
- package/resources/browse/categories.js +32 -0
- package/resources/browse/categories.js.map +1 -0
- package/resources/browse/categories.mjs +28 -0
- package/resources/browse/categories.mjs.map +1 -0
- package/resources/browse/index.d.mts +3 -0
- package/resources/browse/index.d.mts.map +1 -0
- package/resources/browse/index.d.ts +3 -0
- package/resources/browse/index.d.ts.map +1 -0
- package/resources/browse/index.js +9 -0
- package/resources/browse/index.js.map +1 -0
- package/resources/browse/index.mjs +4 -0
- package/resources/browse/index.mjs.map +1 -0
- package/resources/browse.d.mts +2 -0
- package/resources/browse.d.mts.map +1 -0
- package/resources/browse.d.ts +2 -0
- package/resources/browse.d.ts.map +1 -0
- package/resources/browse.js +6 -0
- package/resources/browse.js.map +1 -0
- package/resources/browse.mjs +3 -0
- package/resources/browse.mjs.map +1 -0
- package/resources/chapters.d.mts +251 -0
- package/resources/chapters.d.mts.map +1 -0
- package/resources/chapters.d.ts +251 -0
- package/resources/chapters.d.ts.map +1 -0
- package/resources/chapters.js +26 -0
- package/resources/chapters.js.map +1 -0
- package/resources/chapters.mjs +22 -0
- package/resources/chapters.mjs.map +1 -0
- package/resources/episodes.d.mts +56 -0
- package/resources/episodes.d.mts.map +1 -0
- package/resources/episodes.d.ts +56 -0
- package/resources/episodes.d.ts.map +1 -0
- package/resources/episodes.js +23 -0
- package/resources/episodes.js.map +1 -0
- package/resources/episodes.mjs +19 -0
- package/resources/episodes.mjs.map +1 -0
- package/resources/index.d.mts +18 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +18 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +39 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +19 -0
- package/resources/index.mjs.map +1 -0
- package/resources/markets.d.mts +16 -0
- package/resources/markets.d.mts.map +1 -0
- package/resources/markets.d.ts +16 -0
- package/resources/markets.d.ts.map +1 -0
- package/resources/markets.js +15 -0
- package/resources/markets.js.map +1 -0
- package/resources/markets.mjs +11 -0
- package/resources/markets.mjs.map +1 -0
- package/resources/me/albums.d.mts +250 -0
- package/resources/me/albums.d.mts.map +1 -0
- package/resources/me/albums.d.ts +250 -0
- package/resources/me/albums.d.ts.map +1 -0
- package/resources/me/albums.js +70 -0
- package/resources/me/albums.js.map +1 -0
- package/resources/me/albums.mjs +66 -0
- package/resources/me/albums.mjs.map +1 -0
- package/resources/me/audiobooks.d.mts +153 -0
- package/resources/me/audiobooks.d.mts.map +1 -0
- package/resources/me/audiobooks.d.ts +153 -0
- package/resources/me/audiobooks.d.ts.map +1 -0
- package/resources/me/audiobooks.js +79 -0
- package/resources/me/audiobooks.js.map +1 -0
- package/resources/me/audiobooks.mjs +75 -0
- package/resources/me/audiobooks.mjs.map +1 -0
- package/resources/me/episodes.d.mts +132 -0
- package/resources/me/episodes.d.mts.map +1 -0
- package/resources/me/episodes.d.ts +132 -0
- package/resources/me/episodes.d.ts.map +1 -0
- package/resources/me/episodes.js +81 -0
- package/resources/me/episodes.js.map +1 -0
- package/resources/me/episodes.mjs +77 -0
- package/resources/me/episodes.mjs.map +1 -0
- package/resources/me/following.d.mts +147 -0
- package/resources/me/following.d.mts.map +1 -0
- package/resources/me/following.d.ts +147 -0
- package/resources/me/following.d.ts.map +1 -0
- package/resources/me/following.js +70 -0
- package/resources/me/following.js.map +1 -0
- package/resources/me/following.mjs +66 -0
- package/resources/me/following.mjs.map +1 -0
- package/resources/me/index.d.mts +11 -0
- package/resources/me/index.d.mts.map +1 -0
- package/resources/me/index.d.ts +11 -0
- package/resources/me/index.d.ts.map +1 -0
- package/resources/me/index.js +25 -0
- package/resources/me/index.js.map +1 -0
- package/resources/me/index.mjs +12 -0
- package/resources/me/index.mjs.map +1 -0
- package/resources/me/me.d.mts +143 -0
- package/resources/me/me.d.mts.map +1 -0
- package/resources/me/me.d.ts +143 -0
- package/resources/me/me.d.ts.map +1 -0
- package/resources/me/me.js +61 -0
- package/resources/me/me.js.map +1 -0
- package/resources/me/me.mjs +56 -0
- package/resources/me/me.mjs.map +1 -0
- package/resources/me/player/index.d.mts +3 -0
- package/resources/me/player/index.d.mts.map +1 -0
- package/resources/me/player/index.d.ts +3 -0
- package/resources/me/player/index.d.ts.map +1 -0
- package/resources/me/player/index.js +9 -0
- package/resources/me/player/index.js.map +1 -0
- package/resources/me/player/index.mjs +4 -0
- package/resources/me/player/index.mjs.map +1 -0
- package/resources/me/player/player.d.mts +595 -0
- package/resources/me/player/player.d.mts.map +1 -0
- package/resources/me/player/player.d.ts +595 -0
- package/resources/me/player/player.d.ts.map +1 -0
- package/resources/me/player/player.js +236 -0
- package/resources/me/player/player.js.map +1 -0
- package/resources/me/player/player.mjs +231 -0
- package/resources/me/player/player.mjs.map +1 -0
- package/resources/me/player/queue.d.mts +53 -0
- package/resources/me/player/queue.d.mts.map +1 -0
- package/resources/me/player/queue.d.ts +53 -0
- package/resources/me/player/queue.d.ts.map +1 -0
- package/resources/me/player/queue.js +41 -0
- package/resources/me/player/queue.js.map +1 -0
- package/resources/me/player/queue.mjs +37 -0
- package/resources/me/player/queue.mjs.map +1 -0
- package/resources/me/player.d.mts +2 -0
- package/resources/me/player.d.mts.map +1 -0
- package/resources/me/player.d.ts +2 -0
- package/resources/me/player.d.ts.map +1 -0
- package/resources/me/player.js +6 -0
- package/resources/me/player.js.map +1 -0
- package/resources/me/player.mjs +3 -0
- package/resources/me/player.mjs.map +1 -0
- package/resources/me/playlists.d.mts +35 -0
- package/resources/me/playlists.d.mts.map +1 -0
- package/resources/me/playlists.d.ts +35 -0
- package/resources/me/playlists.d.ts.map +1 -0
- package/resources/me/playlists.js +27 -0
- package/resources/me/playlists.js.map +1 -0
- package/resources/me/playlists.mjs +23 -0
- package/resources/me/playlists.mjs.map +1 -0
- package/resources/me/shows.d.mts +109 -0
- package/resources/me/shows.d.mts.map +1 -0
- package/resources/me/shows.d.ts +109 -0
- package/resources/me/shows.d.ts.map +1 -0
- package/resources/me/shows.js +70 -0
- package/resources/me/shows.js.map +1 -0
- package/resources/me/shows.mjs +66 -0
- package/resources/me/shows.mjs.map +1 -0
- package/resources/me/top.d.mts +72 -0
- package/resources/me/top.d.mts.map +1 -0
- package/resources/me/top.d.ts +72 -0
- package/resources/me/top.d.ts.map +1 -0
- package/resources/me/top.js +44 -0
- package/resources/me/top.js.map +1 -0
- package/resources/me/top.mjs +40 -0
- package/resources/me/top.mjs.map +1 -0
- package/resources/me/tracks.d.mts +151 -0
- package/resources/me/tracks.d.mts.map +1 -0
- package/resources/me/tracks.d.ts +151 -0
- package/resources/me/tracks.d.ts.map +1 -0
- package/resources/me/tracks.js +70 -0
- package/resources/me/tracks.js.map +1 -0
- package/resources/me/tracks.mjs +66 -0
- package/resources/me/tracks.mjs.map +1 -0
- package/resources/me.d.mts +2 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +2 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +6 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +3 -0
- package/resources/me.mjs.map +1 -0
- package/resources/playlists/followers.d.mts +61 -0
- package/resources/playlists/followers.d.mts.map +1 -0
- package/resources/playlists/followers.d.ts +61 -0
- package/resources/playlists/followers.d.ts.map +1 -0
- package/resources/playlists/followers.js +57 -0
- package/resources/playlists/followers.js.map +1 -0
- package/resources/playlists/followers.mjs +53 -0
- package/resources/playlists/followers.mjs.map +1 -0
- package/resources/playlists/images.d.mts +42 -0
- package/resources/playlists/images.d.mts.map +1 -0
- package/resources/playlists/images.d.ts +42 -0
- package/resources/playlists/images.d.ts.map +1 -0
- package/resources/playlists/images.js +45 -0
- package/resources/playlists/images.js.map +1 -0
- package/resources/playlists/images.mjs +41 -0
- package/resources/playlists/images.mjs.map +1 -0
- package/resources/playlists/index.d.mts +5 -0
- package/resources/playlists/index.d.mts.map +1 -0
- package/resources/playlists/index.d.ts +5 -0
- package/resources/playlists/index.d.ts.map +1 -0
- package/resources/playlists/index.js +13 -0
- package/resources/playlists/index.js.map +1 -0
- package/resources/playlists/index.mjs +6 -0
- package/resources/playlists/index.mjs.map +1 -0
- package/resources/playlists/playlists.d.mts +215 -0
- package/resources/playlists/playlists.d.mts.map +1 -0
- package/resources/playlists/playlists.d.ts +215 -0
- package/resources/playlists/playlists.d.ts.map +1 -0
- package/resources/playlists/playlists.js +56 -0
- package/resources/playlists/playlists.js.map +1 -0
- package/resources/playlists/playlists.mjs +51 -0
- package/resources/playlists/playlists.mjs.map +1 -0
- package/resources/playlists/tracks.d.mts +197 -0
- package/resources/playlists/tracks.d.mts.map +1 -0
- package/resources/playlists/tracks.d.ts +197 -0
- package/resources/playlists/tracks.d.ts.map +1 -0
- package/resources/playlists/tracks.js +75 -0
- package/resources/playlists/tracks.js.map +1 -0
- package/resources/playlists/tracks.mjs +71 -0
- package/resources/playlists/tracks.mjs.map +1 -0
- package/resources/playlists.d.mts +2 -0
- package/resources/playlists.d.mts.map +1 -0
- package/resources/playlists.d.ts +2 -0
- package/resources/playlists.d.ts.map +1 -0
- package/resources/playlists.js +6 -0
- package/resources/playlists.js.map +1 -0
- package/resources/playlists.mjs +3 -0
- package/resources/playlists.mjs.map +1 -0
- package/resources/recommendations.d.mts +420 -0
- package/resources/recommendations.d.mts.map +1 -0
- package/resources/recommendations.d.ts +420 -0
- package/resources/recommendations.d.ts.map +1 -0
- package/resources/recommendations.js +32 -0
- package/resources/recommendations.js.map +1 -0
- package/resources/recommendations.mjs +28 -0
- package/resources/recommendations.mjs.map +1 -0
- package/resources/search.d.mts +309 -0
- package/resources/search.d.mts.map +1 -0
- package/resources/search.d.ts +309 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +17 -0
- package/resources/search.js.map +1 -0
- package/resources/search.mjs +13 -0
- package/resources/search.mjs.map +1 -0
- package/resources/shared.d.mts +1010 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +1010 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/shows.d.mts +125 -0
- package/resources/shows.d.mts.map +1 -0
- package/resources/shows.d.ts +125 -0
- package/resources/shows.d.ts.map +1 -0
- package/resources/shows.js +31 -0
- package/resources/shows.js.map +1 -0
- package/resources/shows.mjs +27 -0
- package/resources/shows.mjs.map +1 -0
- package/resources/tracks.d.mts +56 -0
- package/resources/tracks.d.mts.map +1 -0
- package/resources/tracks.d.ts +56 -0
- package/resources/tracks.d.ts.map +1 -0
- package/resources/tracks.js +23 -0
- package/resources/tracks.js.map +1 -0
- package/resources/tracks.mjs +19 -0
- package/resources/tracks.mjs.map +1 -0
- package/resources/users/index.d.mts +3 -0
- package/resources/users/index.d.mts.map +1 -0
- package/resources/users/index.d.ts +3 -0
- package/resources/users/index.d.ts.map +1 -0
- package/resources/users/index.js +9 -0
- package/resources/users/index.js.map +1 -0
- package/resources/users/index.mjs +4 -0
- package/resources/users/index.mjs.map +1 -0
- package/resources/users/playlists.d.mts +194 -0
- package/resources/users/playlists.d.mts.map +1 -0
- package/resources/users/playlists.d.ts +194 -0
- package/resources/users/playlists.d.ts.map +1 -0
- package/resources/users/playlists.js +43 -0
- package/resources/users/playlists.js.map +1 -0
- package/resources/users/playlists.mjs +39 -0
- package/resources/users/playlists.mjs.map +1 -0
- package/resources/users/users.d.mts +61 -0
- package/resources/users/users.d.mts.map +1 -0
- package/resources/users/users.d.ts +61 -0
- package/resources/users/users.d.ts.map +1 -0
- package/resources/users/users.js +31 -0
- package/resources/users/users.js.map +1 -0
- package/resources/users/users.mjs +26 -0
- package/resources/users/users.mjs.map +1 -0
- package/resources/users.d.mts +2 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +6 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1070 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +155 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/albums.ts +427 -0
- package/src/resources/artists.ts +229 -0
- package/src/resources/audio-analysis.ts +438 -0
- package/src/resources/audio-features.ts +304 -0
- package/src/resources/audiobooks.ts +334 -0
- package/src/resources/browse/browse.ts +233 -0
- package/src/resources/browse/categories.ts +205 -0
- package/src/resources/browse/index.ts +18 -0
- package/src/resources/browse.ts +3 -0
- package/src/resources/chapters.ts +315 -0
- package/src/resources/episodes.ts +77 -0
- package/src/resources/index.ts +84 -0
- package/src/resources/markets.ts +22 -0
- package/src/resources/me/albums.ts +323 -0
- package/src/resources/me/audiobooks.ts +209 -0
- package/src/resources/me/episodes.ts +178 -0
- package/src/resources/me/following.ts +199 -0
- package/src/resources/me/index.ts +86 -0
- package/src/resources/me/me.ts +334 -0
- package/src/resources/me/player/index.ts +25 -0
- package/src/resources/me/player/player.ts +807 -0
- package/src/resources/me/player/queue.ts +71 -0
- package/src/resources/me/player.ts +3 -0
- package/src/resources/me/playlists.ts +49 -0
- package/src/resources/me/shows.ts +152 -0
- package/src/resources/me/top.ts +102 -0
- package/src/resources/me/tracks.ts +200 -0
- package/src/resources/me.ts +3 -0
- package/src/resources/playlists/followers.ts +97 -0
- package/src/resources/playlists/images.ts +59 -0
- package/src/resources/playlists/index.ts +25 -0
- package/src/resources/playlists/playlists.ts +306 -0
- package/src/resources/playlists/tracks.ts +261 -0
- package/src/resources/playlists.ts +3 -0
- package/src/resources/recommendations.ts +493 -0
- package/src/resources/search.ts +386 -0
- package/src/resources/shared.ts +1217 -0
- package/src/resources/shows.ts +171 -0
- package/src/resources/tracks.ts +77 -0
- package/src/resources/users/index.ts +9 -0
- package/src/resources/users/playlists.ts +249 -0
- package/src/resources/users/users.ts +84 -0
- package/src/resources/users.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,1010 @@
|
|
|
1
|
+
import * as Shared from "./shared.js";
|
|
2
|
+
import { CursorURLPage } from "../core/pagination.js";
|
|
3
|
+
export interface AlbumRestrictionObject {
|
|
4
|
+
/**
|
|
5
|
+
* The reason for the restriction. Albums may be restricted if the content is not
|
|
6
|
+
* available in a given market, to the user's subscription type, or when the user's
|
|
7
|
+
* account is set to not play explicit content. Additional reasons may be added in
|
|
8
|
+
* the future.
|
|
9
|
+
*/
|
|
10
|
+
reason?: 'market' | 'product' | 'explicit';
|
|
11
|
+
}
|
|
12
|
+
export interface ArtistObject {
|
|
13
|
+
/**
|
|
14
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
15
|
+
* artist.
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Known external URLs for this artist.
|
|
20
|
+
*/
|
|
21
|
+
external_urls?: ExternalURLObject;
|
|
22
|
+
/**
|
|
23
|
+
* Information about the followers of the artist.
|
|
24
|
+
*/
|
|
25
|
+
followers?: FollowersObject;
|
|
26
|
+
/**
|
|
27
|
+
* A list of the genres the artist is associated with. If not yet classified, the
|
|
28
|
+
* array is empty.
|
|
29
|
+
*/
|
|
30
|
+
genres?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* A link to the Web API endpoint providing full details of the artist.
|
|
33
|
+
*/
|
|
34
|
+
href?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Images of the artist in various sizes, widest first.
|
|
37
|
+
*/
|
|
38
|
+
images?: Array<ImageObject>;
|
|
39
|
+
/**
|
|
40
|
+
* The name of the artist.
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The popularity of the artist. The value will be between 0 and 100, with 100
|
|
45
|
+
* being the most popular. The artist's popularity is calculated from the
|
|
46
|
+
* popularity of all the artist's tracks.
|
|
47
|
+
*/
|
|
48
|
+
popularity?: number;
|
|
49
|
+
/**
|
|
50
|
+
* The object type.
|
|
51
|
+
*/
|
|
52
|
+
type?: 'artist';
|
|
53
|
+
/**
|
|
54
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
55
|
+
* artist.
|
|
56
|
+
*/
|
|
57
|
+
uri?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface AudiobookBase {
|
|
60
|
+
/**
|
|
61
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
62
|
+
* audiobook.
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
/**
|
|
66
|
+
* The author(s) for the audiobook.
|
|
67
|
+
*/
|
|
68
|
+
authors: Array<AuthorObject>;
|
|
69
|
+
/**
|
|
70
|
+
* A list of the countries in which the audiobook can be played, identified by
|
|
71
|
+
* their [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
|
72
|
+
* code.
|
|
73
|
+
*/
|
|
74
|
+
available_markets: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The copyright statements of the audiobook.
|
|
77
|
+
*/
|
|
78
|
+
copyrights: Array<CopyrightObject>;
|
|
79
|
+
/**
|
|
80
|
+
* A description of the audiobook. HTML tags are stripped away from this field, use
|
|
81
|
+
* `html_description` field in case HTML tags are needed.
|
|
82
|
+
*/
|
|
83
|
+
description: string;
|
|
84
|
+
/**
|
|
85
|
+
* Whether or not the audiobook has explicit content (true = yes it does; false =
|
|
86
|
+
* no it does not OR unknown).
|
|
87
|
+
*/
|
|
88
|
+
explicit: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* External URLs for this audiobook.
|
|
91
|
+
*/
|
|
92
|
+
external_urls: ExternalURLObject;
|
|
93
|
+
/**
|
|
94
|
+
* A link to the Web API endpoint providing full details of the audiobook.
|
|
95
|
+
*/
|
|
96
|
+
href: string;
|
|
97
|
+
/**
|
|
98
|
+
* A description of the audiobook. This field may contain HTML tags.
|
|
99
|
+
*/
|
|
100
|
+
html_description: string;
|
|
101
|
+
/**
|
|
102
|
+
* The cover art for the audiobook in various sizes, widest first.
|
|
103
|
+
*/
|
|
104
|
+
images: Array<ImageObject>;
|
|
105
|
+
/**
|
|
106
|
+
* A list of the languages used in the audiobook, identified by their
|
|
107
|
+
* [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
108
|
+
*/
|
|
109
|
+
languages: Array<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The media type of the audiobook.
|
|
112
|
+
*/
|
|
113
|
+
media_type: string;
|
|
114
|
+
/**
|
|
115
|
+
* The name of the audiobook.
|
|
116
|
+
*/
|
|
117
|
+
name: string;
|
|
118
|
+
/**
|
|
119
|
+
* The narrator(s) for the audiobook.
|
|
120
|
+
*/
|
|
121
|
+
narrators: Array<NarratorObject>;
|
|
122
|
+
/**
|
|
123
|
+
* The publisher of the audiobook.
|
|
124
|
+
*/
|
|
125
|
+
publisher: string;
|
|
126
|
+
/**
|
|
127
|
+
* The number of chapters in this audiobook.
|
|
128
|
+
*/
|
|
129
|
+
total_chapters: number;
|
|
130
|
+
/**
|
|
131
|
+
* The object type.
|
|
132
|
+
*/
|
|
133
|
+
type: 'audiobook';
|
|
134
|
+
/**
|
|
135
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
136
|
+
* audiobook.
|
|
137
|
+
*/
|
|
138
|
+
uri: string;
|
|
139
|
+
/**
|
|
140
|
+
* The edition of the audiobook.
|
|
141
|
+
*/
|
|
142
|
+
edition?: string;
|
|
143
|
+
}
|
|
144
|
+
export interface AuthorObject {
|
|
145
|
+
/**
|
|
146
|
+
* The name of the author.
|
|
147
|
+
*/
|
|
148
|
+
name?: string;
|
|
149
|
+
}
|
|
150
|
+
export interface ChapterRestrictionObject {
|
|
151
|
+
/**
|
|
152
|
+
* The reason for the restriction. Supported values:
|
|
153
|
+
*
|
|
154
|
+
* - `market` - The content item is not available in the given market.
|
|
155
|
+
* - `product` - The content item is not available for the user's subscription
|
|
156
|
+
* type.
|
|
157
|
+
* - `explicit` - The content item is explicit and the user's account is set to not
|
|
158
|
+
* play explicit content.
|
|
159
|
+
* - `payment_required` - Payment is required to play the content item.
|
|
160
|
+
*
|
|
161
|
+
* Additional reasons may be added in the future. **Note**: If you use this field,
|
|
162
|
+
* make sure that your application safely handles unknown values.
|
|
163
|
+
*/
|
|
164
|
+
reason?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface CopyrightObject {
|
|
167
|
+
/**
|
|
168
|
+
* The copyright text for this content.
|
|
169
|
+
*/
|
|
170
|
+
text?: string;
|
|
171
|
+
/**
|
|
172
|
+
* The type of copyright: `C` = the copyright, `P` = the sound recording
|
|
173
|
+
* (performance) copyright.
|
|
174
|
+
*/
|
|
175
|
+
type?: string;
|
|
176
|
+
}
|
|
177
|
+
export interface EpisodeObject {
|
|
178
|
+
/**
|
|
179
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
180
|
+
* episode.
|
|
181
|
+
*/
|
|
182
|
+
id: string;
|
|
183
|
+
/**
|
|
184
|
+
* @deprecated A URL to a 30 second preview (MP3 format) of the episode. `null` if
|
|
185
|
+
* not available.
|
|
186
|
+
*/
|
|
187
|
+
audio_preview_url: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* A description of the episode. HTML tags are stripped away from this field, use
|
|
190
|
+
* `html_description` field in case HTML tags are needed.
|
|
191
|
+
*/
|
|
192
|
+
description: string;
|
|
193
|
+
/**
|
|
194
|
+
* The episode length in milliseconds.
|
|
195
|
+
*/
|
|
196
|
+
duration_ms: number;
|
|
197
|
+
/**
|
|
198
|
+
* Whether or not the episode has explicit content (true = yes it does; false = no
|
|
199
|
+
* it does not OR unknown).
|
|
200
|
+
*/
|
|
201
|
+
explicit: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* External URLs for this episode.
|
|
204
|
+
*/
|
|
205
|
+
external_urls: ExternalURLObject;
|
|
206
|
+
/**
|
|
207
|
+
* A link to the Web API endpoint providing full details of the episode.
|
|
208
|
+
*/
|
|
209
|
+
href: string;
|
|
210
|
+
/**
|
|
211
|
+
* A description of the episode. This field may contain HTML tags.
|
|
212
|
+
*/
|
|
213
|
+
html_description: string;
|
|
214
|
+
/**
|
|
215
|
+
* The cover art for the episode in various sizes, widest first.
|
|
216
|
+
*/
|
|
217
|
+
images: Array<ImageObject>;
|
|
218
|
+
/**
|
|
219
|
+
* True if the episode is hosted outside of Spotify's CDN.
|
|
220
|
+
*/
|
|
221
|
+
is_externally_hosted: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* True if the episode is playable in the given market. Otherwise false.
|
|
224
|
+
*/
|
|
225
|
+
is_playable: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* A list of the languages used in the episode, identified by their
|
|
228
|
+
* [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
229
|
+
*/
|
|
230
|
+
languages: Array<string>;
|
|
231
|
+
/**
|
|
232
|
+
* The name of the episode.
|
|
233
|
+
*/
|
|
234
|
+
name: string;
|
|
235
|
+
/**
|
|
236
|
+
* The date the episode was first released, for example `"1981-12-15"`. Depending
|
|
237
|
+
* on the precision, it might be shown as `"1981"` or `"1981-12"`.
|
|
238
|
+
*/
|
|
239
|
+
release_date: string;
|
|
240
|
+
/**
|
|
241
|
+
* The precision with which `release_date` value is known.
|
|
242
|
+
*/
|
|
243
|
+
release_date_precision: 'year' | 'month' | 'day';
|
|
244
|
+
/**
|
|
245
|
+
* The show on which the episode belongs.
|
|
246
|
+
*/
|
|
247
|
+
show: ShowBase;
|
|
248
|
+
/**
|
|
249
|
+
* The object type.
|
|
250
|
+
*/
|
|
251
|
+
type: 'episode';
|
|
252
|
+
/**
|
|
253
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
254
|
+
* episode.
|
|
255
|
+
*/
|
|
256
|
+
uri: string;
|
|
257
|
+
/**
|
|
258
|
+
* @deprecated The language used in the episode, identified by a
|
|
259
|
+
* [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code. This field is deprecated
|
|
260
|
+
* and might be removed in the future. Please use the `languages` field instead.
|
|
261
|
+
*/
|
|
262
|
+
language?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Included in the response when a content restriction is applied.
|
|
265
|
+
*/
|
|
266
|
+
restrictions?: EpisodeRestrictionObject;
|
|
267
|
+
/**
|
|
268
|
+
* The user's most recent position in the episode. Set if the supplied access token
|
|
269
|
+
* is a user token and has the scope 'user-read-playback-position'.
|
|
270
|
+
*/
|
|
271
|
+
resume_point?: ResumePointObject;
|
|
272
|
+
}
|
|
273
|
+
export interface EpisodeRestrictionObject {
|
|
274
|
+
/**
|
|
275
|
+
* The reason for the restriction. Supported values:
|
|
276
|
+
*
|
|
277
|
+
* - `market` - The content item is not available in the given market.
|
|
278
|
+
* - `product` - The content item is not available for the user's subscription
|
|
279
|
+
* type.
|
|
280
|
+
* - `explicit` - The content item is explicit and the user's account is set to not
|
|
281
|
+
* play explicit content.
|
|
282
|
+
*
|
|
283
|
+
* Additional reasons may be added in the future. **Note**: If you use this field,
|
|
284
|
+
* make sure that your application safely handles unknown values.
|
|
285
|
+
*/
|
|
286
|
+
reason?: string;
|
|
287
|
+
}
|
|
288
|
+
export interface ExternalIDObject {
|
|
289
|
+
/**
|
|
290
|
+
* [International Article Number](http://en.wikipedia.org/wiki/International_Article_Number_%28EAN%29)
|
|
291
|
+
*/
|
|
292
|
+
ean?: string;
|
|
293
|
+
/**
|
|
294
|
+
* [International Standard Recording Code](http://en.wikipedia.org/wiki/International_Standard_Recording_Code)
|
|
295
|
+
*/
|
|
296
|
+
isrc?: string;
|
|
297
|
+
/**
|
|
298
|
+
* [Universal Product Code](http://en.wikipedia.org/wiki/Universal_Product_Code)
|
|
299
|
+
*/
|
|
300
|
+
upc?: string;
|
|
301
|
+
}
|
|
302
|
+
export interface ExternalURLObject {
|
|
303
|
+
/**
|
|
304
|
+
* The [Spotify URL](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
305
|
+
* object.
|
|
306
|
+
*/
|
|
307
|
+
spotify?: string;
|
|
308
|
+
}
|
|
309
|
+
export interface FollowersObject {
|
|
310
|
+
/**
|
|
311
|
+
* This will always be set to null, as the Web API does not support it at the
|
|
312
|
+
* moment.
|
|
313
|
+
*/
|
|
314
|
+
href?: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* The total number of followers.
|
|
317
|
+
*/
|
|
318
|
+
total?: number;
|
|
319
|
+
}
|
|
320
|
+
export interface ImageObject {
|
|
321
|
+
/**
|
|
322
|
+
* The image height in pixels.
|
|
323
|
+
*/
|
|
324
|
+
height: number | null;
|
|
325
|
+
/**
|
|
326
|
+
* The source URL of the image.
|
|
327
|
+
*/
|
|
328
|
+
url: string;
|
|
329
|
+
/**
|
|
330
|
+
* The image width in pixels.
|
|
331
|
+
*/
|
|
332
|
+
width: number | null;
|
|
333
|
+
}
|
|
334
|
+
export interface LinkedTrackObject {
|
|
335
|
+
/**
|
|
336
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
337
|
+
* track.
|
|
338
|
+
*/
|
|
339
|
+
id?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Known external URLs for this track.
|
|
342
|
+
*/
|
|
343
|
+
external_urls?: ExternalURLObject;
|
|
344
|
+
/**
|
|
345
|
+
* A link to the Web API endpoint providing full details of the track.
|
|
346
|
+
*/
|
|
347
|
+
href?: string;
|
|
348
|
+
/**
|
|
349
|
+
* The object type: "track".
|
|
350
|
+
*/
|
|
351
|
+
type?: string;
|
|
352
|
+
/**
|
|
353
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
354
|
+
* track.
|
|
355
|
+
*/
|
|
356
|
+
uri?: string;
|
|
357
|
+
}
|
|
358
|
+
export interface NarratorObject {
|
|
359
|
+
/**
|
|
360
|
+
* The name of the Narrator.
|
|
361
|
+
*/
|
|
362
|
+
name?: string;
|
|
363
|
+
}
|
|
364
|
+
export interface PagingPlaylistObject {
|
|
365
|
+
/**
|
|
366
|
+
* A link to the Web API endpoint returning the full result of the request
|
|
367
|
+
*/
|
|
368
|
+
href: string;
|
|
369
|
+
items: Array<SimplifiedPlaylistObject>;
|
|
370
|
+
/**
|
|
371
|
+
* The maximum number of items in the response (as set in the query or by default).
|
|
372
|
+
*/
|
|
373
|
+
limit: number;
|
|
374
|
+
/**
|
|
375
|
+
* URL to the next page of items. ( `null` if none)
|
|
376
|
+
*/
|
|
377
|
+
next: string | null;
|
|
378
|
+
/**
|
|
379
|
+
* The offset of the items returned (as set in the query or by default)
|
|
380
|
+
*/
|
|
381
|
+
offset: number;
|
|
382
|
+
/**
|
|
383
|
+
* URL to the previous page of items. ( `null` if none)
|
|
384
|
+
*/
|
|
385
|
+
previous: string | null;
|
|
386
|
+
/**
|
|
387
|
+
* The total number of items available to return.
|
|
388
|
+
*/
|
|
389
|
+
total: number;
|
|
390
|
+
}
|
|
391
|
+
export interface PlaylistTrackObject {
|
|
392
|
+
/**
|
|
393
|
+
* The date and time the track or episode was added. _**Note**: some very old
|
|
394
|
+
* playlists may return `null` in this field._
|
|
395
|
+
*/
|
|
396
|
+
added_at?: string;
|
|
397
|
+
/**
|
|
398
|
+
* The Spotify user who added the track or episode. _**Note**: some very old
|
|
399
|
+
* playlists may return `null` in this field._
|
|
400
|
+
*/
|
|
401
|
+
added_by?: PlaylistUserObject;
|
|
402
|
+
/**
|
|
403
|
+
* Whether this track or episode is a
|
|
404
|
+
* [local file](/documentation/web-api/concepts/playlists/#local-files) or not.
|
|
405
|
+
*/
|
|
406
|
+
is_local?: boolean;
|
|
407
|
+
/**
|
|
408
|
+
* Information about the track or episode.
|
|
409
|
+
*/
|
|
410
|
+
track?: TrackObject | EpisodeObject;
|
|
411
|
+
}
|
|
412
|
+
export interface PlaylistTracksRefObject {
|
|
413
|
+
/**
|
|
414
|
+
* A link to the Web API endpoint where full details of the playlist's tracks can
|
|
415
|
+
* be retrieved.
|
|
416
|
+
*/
|
|
417
|
+
href?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Number of tracks in the playlist.
|
|
420
|
+
*/
|
|
421
|
+
total?: number;
|
|
422
|
+
}
|
|
423
|
+
export interface PlaylistUserObject {
|
|
424
|
+
/**
|
|
425
|
+
* The [Spotify user ID](/documentation/web-api/concepts/spotify-uris-ids) for this
|
|
426
|
+
* user.
|
|
427
|
+
*/
|
|
428
|
+
id?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Known public external URLs for this user.
|
|
431
|
+
*/
|
|
432
|
+
external_urls?: ExternalURLObject;
|
|
433
|
+
/**
|
|
434
|
+
* A link to the Web API endpoint for this user.
|
|
435
|
+
*/
|
|
436
|
+
href?: string;
|
|
437
|
+
/**
|
|
438
|
+
* The object type.
|
|
439
|
+
*/
|
|
440
|
+
type?: 'user';
|
|
441
|
+
/**
|
|
442
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for this
|
|
443
|
+
* user.
|
|
444
|
+
*/
|
|
445
|
+
uri?: string;
|
|
446
|
+
}
|
|
447
|
+
export interface ResumePointObject {
|
|
448
|
+
/**
|
|
449
|
+
* Whether or not the episode has been fully played by the user.
|
|
450
|
+
*/
|
|
451
|
+
fully_played?: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* The user's most recent position in the episode in milliseconds.
|
|
454
|
+
*/
|
|
455
|
+
resume_position_ms?: number;
|
|
456
|
+
}
|
|
457
|
+
export interface ShowBase {
|
|
458
|
+
/**
|
|
459
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the show.
|
|
460
|
+
*/
|
|
461
|
+
id: string;
|
|
462
|
+
/**
|
|
463
|
+
* A list of the countries in which the show can be played, identified by their
|
|
464
|
+
* [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
|
|
465
|
+
*/
|
|
466
|
+
available_markets: Array<string>;
|
|
467
|
+
/**
|
|
468
|
+
* The copyright statements of the show.
|
|
469
|
+
*/
|
|
470
|
+
copyrights: Array<CopyrightObject>;
|
|
471
|
+
/**
|
|
472
|
+
* A description of the show. HTML tags are stripped away from this field, use
|
|
473
|
+
* `html_description` field in case HTML tags are needed.
|
|
474
|
+
*/
|
|
475
|
+
description: string;
|
|
476
|
+
/**
|
|
477
|
+
* Whether or not the show has explicit content (true = yes it does; false = no it
|
|
478
|
+
* does not OR unknown).
|
|
479
|
+
*/
|
|
480
|
+
explicit: boolean;
|
|
481
|
+
/**
|
|
482
|
+
* External URLs for this show.
|
|
483
|
+
*/
|
|
484
|
+
external_urls: ExternalURLObject;
|
|
485
|
+
/**
|
|
486
|
+
* A link to the Web API endpoint providing full details of the show.
|
|
487
|
+
*/
|
|
488
|
+
href: string;
|
|
489
|
+
/**
|
|
490
|
+
* A description of the show. This field may contain HTML tags.
|
|
491
|
+
*/
|
|
492
|
+
html_description: string;
|
|
493
|
+
/**
|
|
494
|
+
* The cover art for the show in various sizes, widest first.
|
|
495
|
+
*/
|
|
496
|
+
images: Array<ImageObject>;
|
|
497
|
+
/**
|
|
498
|
+
* True if all of the shows episodes are hosted outside of Spotify's CDN. This
|
|
499
|
+
* field might be `null` in some cases.
|
|
500
|
+
*/
|
|
501
|
+
is_externally_hosted: boolean;
|
|
502
|
+
/**
|
|
503
|
+
* A list of the languages used in the show, identified by their
|
|
504
|
+
* [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
505
|
+
*/
|
|
506
|
+
languages: Array<string>;
|
|
507
|
+
/**
|
|
508
|
+
* The media type of the show.
|
|
509
|
+
*/
|
|
510
|
+
media_type: string;
|
|
511
|
+
/**
|
|
512
|
+
* The name of the episode.
|
|
513
|
+
*/
|
|
514
|
+
name: string;
|
|
515
|
+
/**
|
|
516
|
+
* The publisher of the show.
|
|
517
|
+
*/
|
|
518
|
+
publisher: string;
|
|
519
|
+
/**
|
|
520
|
+
* The total number of episodes in the show.
|
|
521
|
+
*/
|
|
522
|
+
total_episodes: number;
|
|
523
|
+
/**
|
|
524
|
+
* The object type.
|
|
525
|
+
*/
|
|
526
|
+
type: 'show';
|
|
527
|
+
/**
|
|
528
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
529
|
+
* show.
|
|
530
|
+
*/
|
|
531
|
+
uri: string;
|
|
532
|
+
}
|
|
533
|
+
export interface SimplifiedArtistObject {
|
|
534
|
+
/**
|
|
535
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
536
|
+
* artist.
|
|
537
|
+
*/
|
|
538
|
+
id?: string;
|
|
539
|
+
/**
|
|
540
|
+
* Known external URLs for this artist.
|
|
541
|
+
*/
|
|
542
|
+
external_urls?: ExternalURLObject;
|
|
543
|
+
/**
|
|
544
|
+
* A link to the Web API endpoint providing full details of the artist.
|
|
545
|
+
*/
|
|
546
|
+
href?: string;
|
|
547
|
+
/**
|
|
548
|
+
* The name of the artist.
|
|
549
|
+
*/
|
|
550
|
+
name?: string;
|
|
551
|
+
/**
|
|
552
|
+
* The object type.
|
|
553
|
+
*/
|
|
554
|
+
type?: 'artist';
|
|
555
|
+
/**
|
|
556
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
557
|
+
* artist.
|
|
558
|
+
*/
|
|
559
|
+
uri?: string;
|
|
560
|
+
}
|
|
561
|
+
export interface SimplifiedEpisodeObject {
|
|
562
|
+
/**
|
|
563
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
564
|
+
* episode.
|
|
565
|
+
*/
|
|
566
|
+
id: string;
|
|
567
|
+
/**
|
|
568
|
+
* @deprecated A URL to a 30 second preview (MP3 format) of the episode. `null` if
|
|
569
|
+
* not available.
|
|
570
|
+
*/
|
|
571
|
+
audio_preview_url: string | null;
|
|
572
|
+
/**
|
|
573
|
+
* A description of the episode. HTML tags are stripped away from this field, use
|
|
574
|
+
* `html_description` field in case HTML tags are needed.
|
|
575
|
+
*/
|
|
576
|
+
description: string;
|
|
577
|
+
/**
|
|
578
|
+
* The episode length in milliseconds.
|
|
579
|
+
*/
|
|
580
|
+
duration_ms: number;
|
|
581
|
+
/**
|
|
582
|
+
* Whether or not the episode has explicit content (true = yes it does; false = no
|
|
583
|
+
* it does not OR unknown).
|
|
584
|
+
*/
|
|
585
|
+
explicit: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* External URLs for this episode.
|
|
588
|
+
*/
|
|
589
|
+
external_urls: ExternalURLObject;
|
|
590
|
+
/**
|
|
591
|
+
* A link to the Web API endpoint providing full details of the episode.
|
|
592
|
+
*/
|
|
593
|
+
href: string;
|
|
594
|
+
/**
|
|
595
|
+
* A description of the episode. This field may contain HTML tags.
|
|
596
|
+
*/
|
|
597
|
+
html_description: string;
|
|
598
|
+
/**
|
|
599
|
+
* The cover art for the episode in various sizes, widest first.
|
|
600
|
+
*/
|
|
601
|
+
images: Array<ImageObject>;
|
|
602
|
+
/**
|
|
603
|
+
* True if the episode is hosted outside of Spotify's CDN.
|
|
604
|
+
*/
|
|
605
|
+
is_externally_hosted: boolean;
|
|
606
|
+
/**
|
|
607
|
+
* True if the episode is playable in the given market. Otherwise false.
|
|
608
|
+
*/
|
|
609
|
+
is_playable: boolean;
|
|
610
|
+
/**
|
|
611
|
+
* A list of the languages used in the episode, identified by their
|
|
612
|
+
* [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
613
|
+
*/
|
|
614
|
+
languages: Array<string>;
|
|
615
|
+
/**
|
|
616
|
+
* The name of the episode.
|
|
617
|
+
*/
|
|
618
|
+
name: string;
|
|
619
|
+
/**
|
|
620
|
+
* The date the episode was first released, for example `"1981-12-15"`. Depending
|
|
621
|
+
* on the precision, it might be shown as `"1981"` or `"1981-12"`.
|
|
622
|
+
*/
|
|
623
|
+
release_date: string;
|
|
624
|
+
/**
|
|
625
|
+
* The precision with which `release_date` value is known.
|
|
626
|
+
*/
|
|
627
|
+
release_date_precision: 'year' | 'month' | 'day';
|
|
628
|
+
/**
|
|
629
|
+
* The object type.
|
|
630
|
+
*/
|
|
631
|
+
type: 'episode';
|
|
632
|
+
/**
|
|
633
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
634
|
+
* episode.
|
|
635
|
+
*/
|
|
636
|
+
uri: string;
|
|
637
|
+
/**
|
|
638
|
+
* @deprecated The language used in the episode, identified by a
|
|
639
|
+
* [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code. This field is deprecated
|
|
640
|
+
* and might be removed in the future. Please use the `languages` field instead.
|
|
641
|
+
*/
|
|
642
|
+
language?: string;
|
|
643
|
+
/**
|
|
644
|
+
* Included in the response when a content restriction is applied.
|
|
645
|
+
*/
|
|
646
|
+
restrictions?: EpisodeRestrictionObject;
|
|
647
|
+
/**
|
|
648
|
+
* The user's most recent position in the episode. Set if the supplied access token
|
|
649
|
+
* is a user token and has the scope 'user-read-playback-position'.
|
|
650
|
+
*/
|
|
651
|
+
resume_point?: ResumePointObject;
|
|
652
|
+
}
|
|
653
|
+
export interface SimplifiedPlaylistObject {
|
|
654
|
+
/**
|
|
655
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
656
|
+
* playlist.
|
|
657
|
+
*/
|
|
658
|
+
id?: string;
|
|
659
|
+
/**
|
|
660
|
+
* `true` if the owner allows other users to modify the playlist.
|
|
661
|
+
*/
|
|
662
|
+
collaborative?: boolean;
|
|
663
|
+
/**
|
|
664
|
+
* The playlist description. _Only returned for modified, verified playlists,
|
|
665
|
+
* otherwise_ `null`.
|
|
666
|
+
*/
|
|
667
|
+
description?: string;
|
|
668
|
+
/**
|
|
669
|
+
* Known external URLs for this playlist.
|
|
670
|
+
*/
|
|
671
|
+
external_urls?: ExternalURLObject;
|
|
672
|
+
/**
|
|
673
|
+
* A link to the Web API endpoint providing full details of the playlist.
|
|
674
|
+
*/
|
|
675
|
+
href?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Images for the playlist. The array may be empty or contain up to three images.
|
|
678
|
+
* The images are returned by size in descending order. See
|
|
679
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists). _**Note**:
|
|
680
|
+
* If returned, the source URL for the image (`url`) is temporary and will expire
|
|
681
|
+
* in less than a day._
|
|
682
|
+
*/
|
|
683
|
+
images?: Array<ImageObject>;
|
|
684
|
+
/**
|
|
685
|
+
* The name of the playlist.
|
|
686
|
+
*/
|
|
687
|
+
name?: string;
|
|
688
|
+
/**
|
|
689
|
+
* The user who owns the playlist
|
|
690
|
+
*/
|
|
691
|
+
owner?: SimplifiedPlaylistObject.Owner;
|
|
692
|
+
/**
|
|
693
|
+
* The playlist's public/private status (if it is added to the user's profile):
|
|
694
|
+
* `true` the playlist is public, `false` the playlist is private, `null` the
|
|
695
|
+
* playlist status is not relevant. For more about public/private status, see
|
|
696
|
+
* [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
697
|
+
*/
|
|
698
|
+
public?: boolean;
|
|
699
|
+
/**
|
|
700
|
+
* The version identifier for the current playlist. Can be supplied in other
|
|
701
|
+
* requests to target a specific playlist version
|
|
702
|
+
*/
|
|
703
|
+
snapshot_id?: string;
|
|
704
|
+
/**
|
|
705
|
+
* A collection containing a link ( `href` ) to the Web API endpoint where full
|
|
706
|
+
* details of the playlist's tracks can be retrieved, along with the `total` number
|
|
707
|
+
* of tracks in the playlist. Note, a track object may be `null`. This can happen
|
|
708
|
+
* if a track is no longer available.
|
|
709
|
+
*/
|
|
710
|
+
tracks?: PlaylistTracksRefObject;
|
|
711
|
+
/**
|
|
712
|
+
* The object type: "playlist"
|
|
713
|
+
*/
|
|
714
|
+
type?: string;
|
|
715
|
+
/**
|
|
716
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
717
|
+
* playlist.
|
|
718
|
+
*/
|
|
719
|
+
uri?: string;
|
|
720
|
+
}
|
|
721
|
+
export declare namespace SimplifiedPlaylistObject {
|
|
722
|
+
/**
|
|
723
|
+
* The user who owns the playlist
|
|
724
|
+
*/
|
|
725
|
+
interface Owner extends Shared.PlaylistUserObject {
|
|
726
|
+
/**
|
|
727
|
+
* The name displayed on the user's profile. `null` if not available.
|
|
728
|
+
*/
|
|
729
|
+
display_name?: string | null;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
export interface SimplifiedTrackObject {
|
|
733
|
+
/**
|
|
734
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
735
|
+
* track.
|
|
736
|
+
*/
|
|
737
|
+
id?: string;
|
|
738
|
+
/**
|
|
739
|
+
* The artists who performed the track. Each artist object includes a link in
|
|
740
|
+
* `href` to more detailed information about the artist.
|
|
741
|
+
*/
|
|
742
|
+
artists?: Array<SimplifiedArtistObject>;
|
|
743
|
+
/**
|
|
744
|
+
* A list of the countries in which the track can be played, identified by their
|
|
745
|
+
* [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
|
|
746
|
+
*/
|
|
747
|
+
available_markets?: Array<string>;
|
|
748
|
+
/**
|
|
749
|
+
* The disc number (usually `1` unless the album consists of more than one disc).
|
|
750
|
+
*/
|
|
751
|
+
disc_number?: number;
|
|
752
|
+
/**
|
|
753
|
+
* The track length in milliseconds.
|
|
754
|
+
*/
|
|
755
|
+
duration_ms?: number;
|
|
756
|
+
/**
|
|
757
|
+
* Whether or not the track has explicit lyrics ( `true` = yes it does; `false` =
|
|
758
|
+
* no it does not OR unknown).
|
|
759
|
+
*/
|
|
760
|
+
explicit?: boolean;
|
|
761
|
+
/**
|
|
762
|
+
* External URLs for this track.
|
|
763
|
+
*/
|
|
764
|
+
external_urls?: ExternalURLObject;
|
|
765
|
+
/**
|
|
766
|
+
* A link to the Web API endpoint providing full details of the track.
|
|
767
|
+
*/
|
|
768
|
+
href?: string;
|
|
769
|
+
/**
|
|
770
|
+
* Whether or not the track is from a local file.
|
|
771
|
+
*/
|
|
772
|
+
is_local?: boolean;
|
|
773
|
+
/**
|
|
774
|
+
* Part of the response when
|
|
775
|
+
* [Track Relinking](/documentation/web-api/concepts/track-relinking/) is applied.
|
|
776
|
+
* If `true`, the track is playable in the given market. Otherwise `false`.
|
|
777
|
+
*/
|
|
778
|
+
is_playable?: boolean;
|
|
779
|
+
/**
|
|
780
|
+
* Part of the response when
|
|
781
|
+
* [Track Relinking](/documentation/web-api/concepts/track-relinking/) is applied
|
|
782
|
+
* and is only part of the response if the track linking, in fact, exists. The
|
|
783
|
+
* requested track has been replaced with a different track. The track in the
|
|
784
|
+
* `linked_from` object contains information about the originally requested track.
|
|
785
|
+
*/
|
|
786
|
+
linked_from?: LinkedTrackObject;
|
|
787
|
+
/**
|
|
788
|
+
* The name of the track.
|
|
789
|
+
*/
|
|
790
|
+
name?: string;
|
|
791
|
+
/**
|
|
792
|
+
* @deprecated A URL to a 30 second preview (MP3 format) of the track.
|
|
793
|
+
*/
|
|
794
|
+
preview_url?: string | null;
|
|
795
|
+
/**
|
|
796
|
+
* Included in the response when a content restriction is applied.
|
|
797
|
+
*/
|
|
798
|
+
restrictions?: TrackRestrictionObject;
|
|
799
|
+
/**
|
|
800
|
+
* The number of the track. If an album has several discs, the track number is the
|
|
801
|
+
* number on the specified disc.
|
|
802
|
+
*/
|
|
803
|
+
track_number?: number;
|
|
804
|
+
/**
|
|
805
|
+
* The object type: "track".
|
|
806
|
+
*/
|
|
807
|
+
type?: string;
|
|
808
|
+
/**
|
|
809
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
810
|
+
* track.
|
|
811
|
+
*/
|
|
812
|
+
uri?: string;
|
|
813
|
+
}
|
|
814
|
+
export interface TrackObject {
|
|
815
|
+
/**
|
|
816
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
817
|
+
* track.
|
|
818
|
+
*/
|
|
819
|
+
id?: string;
|
|
820
|
+
/**
|
|
821
|
+
* The album on which the track appears. The album object includes a link in `href`
|
|
822
|
+
* to full information about the album.
|
|
823
|
+
*/
|
|
824
|
+
album?: TrackObject.Album;
|
|
825
|
+
/**
|
|
826
|
+
* The artists who performed the track. Each artist object includes a link in
|
|
827
|
+
* `href` to more detailed information about the artist.
|
|
828
|
+
*/
|
|
829
|
+
artists?: Array<SimplifiedArtistObject>;
|
|
830
|
+
/**
|
|
831
|
+
* A list of the countries in which the track can be played, identified by their
|
|
832
|
+
* [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
|
|
833
|
+
*/
|
|
834
|
+
available_markets?: Array<string>;
|
|
835
|
+
/**
|
|
836
|
+
* The disc number (usually `1` unless the album consists of more than one disc).
|
|
837
|
+
*/
|
|
838
|
+
disc_number?: number;
|
|
839
|
+
/**
|
|
840
|
+
* The track length in milliseconds.
|
|
841
|
+
*/
|
|
842
|
+
duration_ms?: number;
|
|
843
|
+
/**
|
|
844
|
+
* Whether or not the track has explicit lyrics ( `true` = yes it does; `false` =
|
|
845
|
+
* no it does not OR unknown).
|
|
846
|
+
*/
|
|
847
|
+
explicit?: boolean;
|
|
848
|
+
/**
|
|
849
|
+
* Known external IDs for the track.
|
|
850
|
+
*/
|
|
851
|
+
external_ids?: ExternalIDObject;
|
|
852
|
+
/**
|
|
853
|
+
* Known external URLs for this track.
|
|
854
|
+
*/
|
|
855
|
+
external_urls?: ExternalURLObject;
|
|
856
|
+
/**
|
|
857
|
+
* A link to the Web API endpoint providing full details of the track.
|
|
858
|
+
*/
|
|
859
|
+
href?: string;
|
|
860
|
+
/**
|
|
861
|
+
* Whether or not the track is from a local file.
|
|
862
|
+
*/
|
|
863
|
+
is_local?: boolean;
|
|
864
|
+
/**
|
|
865
|
+
* Part of the response when
|
|
866
|
+
* [Track Relinking](/documentation/web-api/concepts/track-relinking) is applied.
|
|
867
|
+
* If `true`, the track is playable in the given market. Otherwise `false`.
|
|
868
|
+
*/
|
|
869
|
+
is_playable?: boolean;
|
|
870
|
+
/**
|
|
871
|
+
* Part of the response when
|
|
872
|
+
* [Track Relinking](/documentation/web-api/concepts/track-relinking) is applied,
|
|
873
|
+
* and the requested track has been replaced with different track. The track in the
|
|
874
|
+
* `linked_from` object contains information about the originally requested track.
|
|
875
|
+
*/
|
|
876
|
+
linked_from?: LinkedTrackObject;
|
|
877
|
+
/**
|
|
878
|
+
* The name of the track.
|
|
879
|
+
*/
|
|
880
|
+
name?: string;
|
|
881
|
+
/**
|
|
882
|
+
* The popularity of the track. The value will be between 0 and 100, with 100 being
|
|
883
|
+
* the most popular.<br/>The popularity of a track is a value between 0 and 100,
|
|
884
|
+
* with 100 being the most popular. The popularity is calculated by algorithm and
|
|
885
|
+
* is based, in the most part, on the total number of plays the track has had and
|
|
886
|
+
* how recent those plays are.<br/>Generally speaking, songs that are being played
|
|
887
|
+
* a lot now will have a higher popularity than songs that were played a lot in the
|
|
888
|
+
* past. Duplicate tracks (e.g. the same track from a single and an album) are
|
|
889
|
+
* rated independently. Artist and album popularity is derived mathematically from
|
|
890
|
+
* track popularity. _**Note**: the popularity value may lag actual popularity by a
|
|
891
|
+
* few days: the value is not updated in real time._
|
|
892
|
+
*/
|
|
893
|
+
popularity?: number;
|
|
894
|
+
/**
|
|
895
|
+
* @deprecated A link to a 30 second preview (MP3 format) of the track. Can be
|
|
896
|
+
* `null`
|
|
897
|
+
*/
|
|
898
|
+
preview_url?: string | null;
|
|
899
|
+
/**
|
|
900
|
+
* Included in the response when a content restriction is applied.
|
|
901
|
+
*/
|
|
902
|
+
restrictions?: TrackRestrictionObject;
|
|
903
|
+
/**
|
|
904
|
+
* The number of the track. If an album has several discs, the track number is the
|
|
905
|
+
* number on the specified disc.
|
|
906
|
+
*/
|
|
907
|
+
track_number?: number;
|
|
908
|
+
/**
|
|
909
|
+
* The object type: "track".
|
|
910
|
+
*/
|
|
911
|
+
type?: 'track';
|
|
912
|
+
/**
|
|
913
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
914
|
+
* track.
|
|
915
|
+
*/
|
|
916
|
+
uri?: string;
|
|
917
|
+
}
|
|
918
|
+
export declare namespace TrackObject {
|
|
919
|
+
/**
|
|
920
|
+
* The album on which the track appears. The album object includes a link in `href`
|
|
921
|
+
* to full information about the album.
|
|
922
|
+
*/
|
|
923
|
+
interface Album {
|
|
924
|
+
/**
|
|
925
|
+
* The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
926
|
+
* album.
|
|
927
|
+
*/
|
|
928
|
+
id: string;
|
|
929
|
+
/**
|
|
930
|
+
* The type of the album.
|
|
931
|
+
*/
|
|
932
|
+
album_type: 'album' | 'single' | 'compilation';
|
|
933
|
+
/**
|
|
934
|
+
* The artists of the album. Each artist object includes a link in `href` to more
|
|
935
|
+
* detailed information about the artist.
|
|
936
|
+
*/
|
|
937
|
+
artists: Array<Shared.SimplifiedArtistObject>;
|
|
938
|
+
/**
|
|
939
|
+
* The markets in which the album is available:
|
|
940
|
+
* [ISO 3166-1 alpha-2 country codes](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
|
|
941
|
+
* _**NOTE**: an album is considered available in a market when at least 1 of its
|
|
942
|
+
* tracks is available in that market._
|
|
943
|
+
*/
|
|
944
|
+
available_markets: Array<string>;
|
|
945
|
+
/**
|
|
946
|
+
* Known external URLs for this album.
|
|
947
|
+
*/
|
|
948
|
+
external_urls: Shared.ExternalURLObject;
|
|
949
|
+
/**
|
|
950
|
+
* A link to the Web API endpoint providing full details of the album.
|
|
951
|
+
*/
|
|
952
|
+
href: string;
|
|
953
|
+
/**
|
|
954
|
+
* The cover art for the album in various sizes, widest first.
|
|
955
|
+
*/
|
|
956
|
+
images: Array<Shared.ImageObject>;
|
|
957
|
+
/**
|
|
958
|
+
* The name of the album. In case of an album takedown, the value may be an empty
|
|
959
|
+
* string.
|
|
960
|
+
*/
|
|
961
|
+
name: string;
|
|
962
|
+
/**
|
|
963
|
+
* The date the album was first released.
|
|
964
|
+
*/
|
|
965
|
+
release_date: string;
|
|
966
|
+
/**
|
|
967
|
+
* The precision with which `release_date` value is known.
|
|
968
|
+
*/
|
|
969
|
+
release_date_precision: 'year' | 'month' | 'day';
|
|
970
|
+
/**
|
|
971
|
+
* The number of tracks in the album.
|
|
972
|
+
*/
|
|
973
|
+
total_tracks: number;
|
|
974
|
+
/**
|
|
975
|
+
* The object type.
|
|
976
|
+
*/
|
|
977
|
+
type: 'album';
|
|
978
|
+
/**
|
|
979
|
+
* The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
980
|
+
* album.
|
|
981
|
+
*/
|
|
982
|
+
uri: string;
|
|
983
|
+
/**
|
|
984
|
+
* Included in the response when a content restriction is applied.
|
|
985
|
+
*/
|
|
986
|
+
restrictions?: Shared.AlbumRestrictionObject;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
export interface TrackRestrictionObject {
|
|
990
|
+
/**
|
|
991
|
+
* The reason for the restriction. Supported values:
|
|
992
|
+
*
|
|
993
|
+
* - `market` - The content item is not available in the given market.
|
|
994
|
+
* - `product` - The content item is not available for the user's subscription
|
|
995
|
+
* type.
|
|
996
|
+
* - `explicit` - The content item is explicit and the user's account is set to not
|
|
997
|
+
* play explicit content.
|
|
998
|
+
*
|
|
999
|
+
* Additional reasons may be added in the future. **Note**: If you use this field,
|
|
1000
|
+
* make sure that your application safely handles unknown values.
|
|
1001
|
+
*/
|
|
1002
|
+
reason?: string;
|
|
1003
|
+
}
|
|
1004
|
+
export type SimplifiedTrackObjectsCursorURLPage = CursorURLPage<SimplifiedTrackObject>;
|
|
1005
|
+
export type SimplifiedEpisodeObjectsCursorURLPage = CursorURLPage<SimplifiedEpisodeObject>;
|
|
1006
|
+
export type SimplifiedPlaylistObjectsCursorURLPage = CursorURLPage<SimplifiedPlaylistObject>;
|
|
1007
|
+
export type ArtistObjectsCursorURLPage = CursorURLPage<ArtistObject>;
|
|
1008
|
+
export type TrackObjectsCursorURLPage = CursorURLPage<TrackObject>;
|
|
1009
|
+
export type PlaylistTrackObjectsCursorURLPage = CursorURLPage<PlaylistTrackObject>;
|
|
1010
|
+
//# sourceMappingURL=shared.d.ts.map
|