spotted-ts 0.1.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +206 -3
- package/README.md +53 -4
- package/client.d.mts +33 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -25
- package/client.d.ts.map +1 -1
- package/client.js +16 -9
- package/client.js.map +1 -1
- package/client.mjs +17 -10
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/albums.d.mts +34 -2
- package/resources/albums.d.mts.map +1 -1
- package/resources/albums.d.ts +34 -2
- package/resources/albums.d.ts.map +1 -1
- package/resources/artists.d.mts +15 -7
- package/resources/artists.d.mts.map +1 -1
- package/resources/artists.d.ts +15 -7
- package/resources/artists.d.ts.map +1 -1
- package/resources/artists.js +2 -2
- package/resources/artists.js.map +1 -1
- package/resources/artists.mjs +2 -2
- package/resources/artists.mjs.map +1 -1
- package/resources/audio-analysis.d.mts +32 -0
- package/resources/audio-analysis.d.mts.map +1 -1
- package/resources/audio-analysis.d.ts +32 -0
- package/resources/audio-analysis.d.ts.map +1 -1
- package/resources/audio-features.d.mts +22 -6
- package/resources/audio-features.d.mts.map +1 -1
- package/resources/audio-features.d.ts +22 -6
- package/resources/audio-features.d.ts.map +1 -1
- package/resources/audio-features.js +1 -1
- package/resources/audio-features.js.map +1 -1
- package/resources/audio-features.mjs +1 -1
- package/resources/audio-features.mjs.map +1 -1
- package/resources/audiobooks.d.mts +32 -8
- package/resources/audiobooks.d.mts.map +1 -1
- package/resources/audiobooks.d.ts +32 -8
- package/resources/audiobooks.d.ts.map +1 -1
- package/resources/audiobooks.js +1 -1
- package/resources/audiobooks.js.map +1 -1
- package/resources/audiobooks.mjs +1 -1
- package/resources/audiobooks.mjs.map +1 -1
- package/resources/browse/browse.d.mts +27 -3
- package/resources/browse/browse.d.mts.map +1 -1
- package/resources/browse/browse.d.ts +27 -3
- package/resources/browse/browse.d.ts.map +1 -1
- package/resources/browse/browse.js.map +1 -1
- package/resources/browse/browse.mjs.map +1 -1
- package/resources/browse/categories.d.mts +45 -53
- package/resources/browse/categories.d.mts.map +1 -1
- package/resources/browse/categories.d.ts +45 -53
- package/resources/browse/categories.d.ts.map +1 -1
- package/resources/browse/categories.js +5 -1
- package/resources/browse/categories.js.map +1 -1
- package/resources/browse/categories.mjs +5 -1
- package/resources/browse/categories.mjs.map +1 -1
- package/resources/browse/index.d.mts +1 -1
- package/resources/browse/index.d.mts.map +1 -1
- package/resources/browse/index.d.ts +1 -1
- package/resources/browse/index.d.ts.map +1 -1
- package/resources/browse/index.js.map +1 -1
- package/resources/browse/index.mjs.map +1 -1
- package/resources/chapters.d.mts +22 -6
- package/resources/chapters.d.mts.map +1 -1
- package/resources/chapters.d.ts +22 -6
- package/resources/chapters.d.ts.map +1 -1
- package/resources/chapters.js +1 -1
- package/resources/chapters.js.map +1 -1
- package/resources/chapters.mjs +1 -1
- package/resources/chapters.mjs.map +1 -1
- package/resources/episodes.d.mts +4 -4
- package/resources/episodes.d.mts.map +1 -1
- package/resources/episodes.d.ts +4 -4
- package/resources/episodes.d.ts.map +1 -1
- package/resources/episodes.js +1 -1
- package/resources/episodes.js.map +1 -1
- package/resources/episodes.mjs +1 -1
- package/resources/episodes.mjs.map +1 -1
- package/resources/index.d.mts +8 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me/albums.d.mts +41 -1
- package/resources/me/albums.d.mts.map +1 -1
- package/resources/me/albums.d.ts +41 -1
- package/resources/me/albums.d.ts.map +1 -1
- package/resources/me/audiobooks.d.mts +17 -1
- package/resources/me/audiobooks.d.mts.map +1 -1
- package/resources/me/audiobooks.d.ts +17 -1
- package/resources/me/audiobooks.d.ts.map +1 -1
- package/resources/me/episodes.d.mts +24 -0
- package/resources/me/episodes.d.mts.map +1 -1
- package/resources/me/episodes.d.ts +24 -0
- package/resources/me/episodes.d.ts.map +1 -1
- package/resources/me/following.d.mts +39 -7
- package/resources/me/following.d.mts.map +1 -1
- package/resources/me/following.d.ts +39 -7
- package/resources/me/following.d.ts.map +1 -1
- package/resources/me/following.js +2 -2
- package/resources/me/following.js.map +1 -1
- package/resources/me/following.mjs +2 -2
- package/resources/me/following.mjs.map +1 -1
- package/resources/me/index.d.mts +1 -1
- package/resources/me/index.d.mts.map +1 -1
- package/resources/me/index.d.ts +1 -1
- package/resources/me/index.d.ts.map +1 -1
- package/resources/me/me.d.mts +18 -2
- package/resources/me/me.d.mts.map +1 -1
- package/resources/me/me.d.ts +18 -2
- package/resources/me/me.d.ts.map +1 -1
- package/resources/me/me.js.map +1 -1
- package/resources/me/me.mjs.map +1 -1
- package/resources/me/player/player.d.mts +72 -0
- package/resources/me/player/player.d.mts.map +1 -1
- package/resources/me/player/player.d.ts +72 -0
- package/resources/me/player/player.d.ts.map +1 -1
- package/resources/me/player/player.js.map +1 -1
- package/resources/me/player/player.mjs.map +1 -1
- package/resources/me/player/queue.d.mts +8 -0
- package/resources/me/player/queue.d.mts.map +1 -1
- package/resources/me/player/queue.d.ts +8 -0
- package/resources/me/player/queue.d.ts.map +1 -1
- package/resources/me/shows.d.mts +24 -0
- package/resources/me/shows.d.mts.map +1 -1
- package/resources/me/shows.d.ts +24 -0
- package/resources/me/shows.d.ts.map +1 -1
- package/resources/me/tracks.d.mts +24 -0
- package/resources/me/tracks.d.mts.map +1 -1
- package/resources/me/tracks.d.ts +24 -0
- package/resources/me/tracks.d.ts.map +1 -1
- package/resources/playlists/followers.d.mts +4 -3
- package/resources/playlists/followers.d.mts.map +1 -1
- package/resources/playlists/followers.d.ts +4 -3
- package/resources/playlists/followers.d.ts.map +1 -1
- package/resources/playlists/images.d.mts +7 -12
- package/resources/playlists/images.d.mts.map +1 -1
- package/resources/playlists/images.d.ts +7 -12
- package/resources/playlists/images.d.ts.map +1 -1
- package/resources/playlists/images.js +11 -7
- package/resources/playlists/images.js.map +1 -1
- package/resources/playlists/images.mjs +11 -7
- package/resources/playlists/images.mjs.map +1 -1
- package/resources/playlists/index.d.mts +1 -1
- package/resources/playlists/index.d.mts.map +1 -1
- package/resources/playlists/index.d.ts +1 -1
- package/resources/playlists/index.d.ts.map +1 -1
- package/resources/playlists/index.js.map +1 -1
- package/resources/playlists/index.mjs.map +1 -1
- package/resources/playlists/playlists.d.mts +17 -8
- package/resources/playlists/playlists.d.mts.map +1 -1
- package/resources/playlists/playlists.d.ts +17 -8
- package/resources/playlists/playlists.d.ts.map +1 -1
- package/resources/playlists/playlists.js.map +1 -1
- package/resources/playlists/playlists.mjs.map +1 -1
- package/resources/playlists/tracks.d.mts +24 -0
- package/resources/playlists/tracks.d.mts.map +1 -1
- package/resources/playlists/tracks.d.ts +24 -0
- package/resources/playlists/tracks.d.ts.map +1 -1
- package/resources/recommendations.d.mts +16 -0
- package/resources/recommendations.d.mts.map +1 -1
- package/resources/recommendations.d.ts +16 -0
- package/resources/recommendations.d.ts.map +1 -1
- package/resources/search.d.mts +73 -17
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +73 -17
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +1 -1
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +1 -1
- package/resources/search.mjs.map +1 -1
- package/resources/shared.d.mts +214 -5
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +214 -5
- package/resources/shared.d.ts.map +1 -1
- package/resources/shows.d.mts +13 -5
- package/resources/shows.d.mts.map +1 -1
- package/resources/shows.d.ts +13 -5
- package/resources/shows.d.ts.map +1 -1
- package/resources/shows.js +1 -1
- package/resources/shows.js.map +1 -1
- package/resources/shows.mjs +1 -1
- package/resources/shows.mjs.map +1 -1
- package/resources/tracks.d.mts +4 -4
- package/resources/tracks.d.mts.map +1 -1
- package/resources/tracks.d.ts +4 -4
- package/resources/tracks.d.ts.map +1 -1
- package/resources/tracks.js +1 -1
- package/resources/tracks.js.map +1 -1
- package/resources/tracks.mjs +1 -1
- package/resources/tracks.mjs.map +1 -1
- package/resources/users/playlists.d.mts +18 -11
- package/resources/users/playlists.d.mts.map +1 -1
- package/resources/users/playlists.d.ts +18 -11
- package/resources/users/playlists.d.ts.map +1 -1
- package/resources/users/users.d.mts +8 -0
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +8 -0
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/src/client.ts +71 -55
- package/src/resources/albums.ts +40 -4
- package/src/resources/artists.ts +24 -12
- package/src/resources/audio-analysis.ts +36 -0
- package/src/resources/audio-features.ts +28 -7
- package/src/resources/audiobooks.ts +41 -11
- package/src/resources/browse/browse.ts +31 -2
- package/src/resources/browse/categories.ts +54 -62
- package/src/resources/browse/index.ts +1 -0
- package/src/resources/chapters.ts +28 -7
- package/src/resources/episodes.ts +8 -5
- package/src/resources/index.ts +21 -16
- package/src/resources/me/albums.ts +47 -2
- package/src/resources/me/audiobooks.ts +20 -2
- package/src/resources/me/episodes.ts +27 -0
- package/src/resources/me/following.ts +47 -8
- package/src/resources/me/index.ts +2 -2
- package/src/resources/me/me.ts +22 -4
- package/src/resources/me/player/player.ts +81 -0
- package/src/resources/me/player/queue.ts +9 -0
- package/src/resources/me/shows.ts +27 -0
- package/src/resources/me/tracks.ts +27 -0
- package/src/resources/playlists/followers.ts +4 -3
- package/src/resources/playlists/images.ts +16 -15
- package/src/resources/playlists/index.ts +1 -1
- package/src/resources/playlists/playlists.ts +19 -13
- package/src/resources/playlists/tracks.ts +27 -0
- package/src/resources/recommendations.ts +18 -0
- package/src/resources/search.ts +86 -26
- package/src/resources/shared.ts +241 -6
- package/src/resources/shows.ts +19 -7
- package/src/resources/tracks.ts +8 -5
- package/src/resources/users/playlists.ts +20 -12
- package/src/resources/users/users.ts +9 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,211 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.14.0 (2025-12-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.13.0...v0.14.0](https://github.com/cjavdev/spotted-ts/compare/v0.13.0...v0.14.0)
|
|
6
|
+
|
|
7
|
+
### ⚠ BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
* **mcp:** remove deprecated tool schemes
|
|
10
|
+
* **mcp:** **Migration:** To migrate, simply modify the command used to invoke the MCP server. Currently, the only supported tool scheme is code mode. Now, starting the server with just `node /path/to/mcp/server` or `npx package-name` will invoke code tools: changing your command to one of these is likely all you will need to do.
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **api:** manual updates ([f3e043d](https://github.com/cjavdev/spotted-ts/commit/f3e043d7aa031d80788ce0e88ed61891e99e1011))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **publish-npm:** set npm registry explicitly for publishing ([6e46b49](https://github.com/cjavdev/spotted-ts/commit/6e46b49306efed2e43f8332bd8a39558f9e2c9a5))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
|
|
24
|
+
* **mcp:** remove deprecated tool schemes ([e289832](https://github.com/cjavdev/spotted-ts/commit/e289832afd694b242ee97d127841646ce0443f9f))
|
|
25
|
+
|
|
26
|
+
## 0.13.0 (2025-12-18)
|
|
27
|
+
|
|
28
|
+
Full Changelog: [v0.12.0...v0.13.0](https://github.com/cjavdev/spotted-ts/compare/v0.12.0...v0.13.0)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* **api:** manual updates ([189101a](https://github.com/cjavdev/spotted-ts/commit/189101ae58de41ca92f2c97d728337446e63d6be))
|
|
33
|
+
|
|
34
|
+
## 0.12.0 (2025-12-18)
|
|
35
|
+
|
|
36
|
+
Full Changelog: [v0.11.0...v0.12.0](https://github.com/cjavdev/spotted-ts/compare/v0.11.0...v0.12.0)
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* **api:** release to npm again ([76b6f2c](https://github.com/cjavdev/spotted-ts/commit/76b6f2cae10d8e0f4407c5e2a4d257ce5da85314))
|
|
41
|
+
|
|
42
|
+
## 0.11.0 (2025-12-18)
|
|
43
|
+
|
|
44
|
+
Full Changelog: [v0.10.0...v0.11.0](https://github.com/cjavdev/spotted-ts/compare/v0.10.0...v0.11.0)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* **api:** manual updates ([5ae4fd5](https://github.com/cjavdev/spotted-ts/commit/5ae4fd5c1826bbcd56bd302f5186f8d70782d394))
|
|
49
|
+
* **api:** manual updates ([d2c63cc](https://github.com/cjavdev/spotted-ts/commit/d2c63cc58e4beb2e5852fee7887e990d8d29f46c))
|
|
50
|
+
* **api:** manual updates ([bb5a654](https://github.com/cjavdev/spotted-ts/commit/bb5a654c435a5afbc0d27c996b27dcc129d55816))
|
|
51
|
+
* **api:** manual updates ([76c1031](https://github.com/cjavdev/spotted-ts/commit/76c1031152658ec6a51eccf389c15b034d6911a6))
|
|
52
|
+
* **api:** manual updates ([c75d209](https://github.com/cjavdev/spotted-ts/commit/c75d20953089e150a4e56bda9ea73961f820d50b))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* **mcp:** add client instantiation options to code tool ([7a7db44](https://github.com/cjavdev/spotted-ts/commit/7a7db4465e3b4b7f0a639acb7016f214fde0623e))
|
|
58
|
+
* **mcp:** pass base url to code tool ([395efa3](https://github.com/cjavdev/spotted-ts/commit/395efa3ed685bcf43358357558c0c9cd5fca2b1f))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Chores
|
|
62
|
+
|
|
63
|
+
* **mcp:** update lockfile ([910e948](https://github.com/cjavdev/spotted-ts/commit/910e9485d1c3b388123c408b589c2f6142df94d6))
|
|
64
|
+
|
|
65
|
+
## 0.10.0 (2025-12-10)
|
|
66
|
+
|
|
67
|
+
Full Changelog: [v0.9.0...v0.10.0](https://github.com/cjavdev/spotted-ts/compare/v0.9.0...v0.10.0)
|
|
68
|
+
|
|
69
|
+
### Features
|
|
70
|
+
|
|
71
|
+
* **api:** manual updates ([0d08e85](https://github.com/cjavdev/spotted-ts/commit/0d08e85c5a9cbd2adc2c258d996273f5c1cb4686))
|
|
72
|
+
|
|
73
|
+
## 0.9.0 (2025-12-10)
|
|
74
|
+
|
|
75
|
+
Full Changelog: [v0.8.1...v0.9.0](https://github.com/cjavdev/spotted-ts/compare/v0.8.1...v0.9.0)
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
* **api:** manual updates ([d79c271](https://github.com/cjavdev/spotted-ts/commit/d79c27125df9bb9fb14c03ee7942d98f891fe654))
|
|
80
|
+
|
|
81
|
+
## 0.8.1 (2025-12-06)
|
|
82
|
+
|
|
83
|
+
Full Changelog: [v0.8.0...v0.8.1](https://github.com/cjavdev/spotted-ts/compare/v0.8.0...v0.8.1)
|
|
84
|
+
|
|
85
|
+
### Bug Fixes
|
|
86
|
+
|
|
87
|
+
* **mcp:** correct code tool API endpoint ([089ba2b](https://github.com/cjavdev/spotted-ts/commit/089ba2bb69fd6dbdda2c58abca26ec66331c57a7))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Chores
|
|
91
|
+
|
|
92
|
+
* **internal:** codegen related update ([47bb429](https://github.com/cjavdev/spotted-ts/commit/47bb4295cb8dd890d3251b3316ac716bfbb74d86))
|
|
93
|
+
|
|
94
|
+
## 0.8.0 (2025-12-06)
|
|
95
|
+
|
|
96
|
+
Full Changelog: [v0.7.1...v0.8.0](https://github.com/cjavdev/spotted-ts/compare/v0.7.1...v0.8.0)
|
|
97
|
+
|
|
98
|
+
### Features
|
|
99
|
+
|
|
100
|
+
* **mcp:** handle code mode calls in the Stainless API ([5eb8ef6](https://github.com/cjavdev/spotted-ts/commit/5eb8ef6254839b44e69536b656b41fca03d9d031))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Bug Fixes
|
|
104
|
+
|
|
105
|
+
* **mcp:** return correct lines on typescript errors ([c67c3a2](https://github.com/cjavdev/spotted-ts/commit/c67c3a2f5e88912ff677c05ac4cf33f427e29b3f))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Chores
|
|
109
|
+
|
|
110
|
+
* **internal:** codegen related update ([5a47a19](https://github.com/cjavdev/spotted-ts/commit/5a47a192e623290bbfe9aa21dd11bda1a56831f1))
|
|
111
|
+
|
|
112
|
+
## 0.7.1 (2025-12-05)
|
|
113
|
+
|
|
114
|
+
Full Changelog: [v0.7.0...v0.7.1](https://github.com/cjavdev/spotted-ts/compare/v0.7.0...v0.7.1)
|
|
115
|
+
|
|
116
|
+
## 0.7.0 (2025-12-05)
|
|
117
|
+
|
|
118
|
+
Full Changelog: [v0.6.0...v0.7.0](https://github.com/cjavdev/spotted-ts/compare/v0.6.0...v0.7.0)
|
|
119
|
+
|
|
120
|
+
### Features
|
|
121
|
+
|
|
122
|
+
* **api:** manual updates ([a971049](https://github.com/cjavdev/spotted-ts/commit/a971049da614ea3a49e68aa2b81929f62ad898d4))
|
|
123
|
+
* **api:** manual updates ([78d664d](https://github.com/cjavdev/spotted-ts/commit/78d664d17a3034cca8fd74fe85671ce013eef7cf))
|
|
124
|
+
* **api:** manual updates ([33d023a](https://github.com/cjavdev/spotted-ts/commit/33d023a8e0ab3c3de8297628488ea81f20d0763d))
|
|
125
|
+
|
|
126
|
+
## 0.6.0 (2025-12-05)
|
|
127
|
+
|
|
128
|
+
Full Changelog: [v0.5.0...v0.6.0](https://github.com/cjavdev/spotted-ts/compare/v0.5.0...v0.6.0)
|
|
129
|
+
|
|
130
|
+
### Features
|
|
131
|
+
|
|
132
|
+
* **api:** Update readme titles. ([58d0973](https://github.com/cjavdev/spotted-ts/commit/58d0973596a6ff3468c42316b7152131ebdf7b0a))
|
|
133
|
+
|
|
134
|
+
## 0.5.0 (2025-12-05)
|
|
135
|
+
|
|
136
|
+
Full Changelog: [v0.4.1...v0.5.0](https://github.com/cjavdev/spotted-ts/compare/v0.4.1...v0.5.0)
|
|
137
|
+
|
|
138
|
+
### Features
|
|
139
|
+
|
|
140
|
+
* **mcp:** add typescript check to code execution tool ([a15991f](https://github.com/cjavdev/spotted-ts/commit/a15991f17b277f49ca37345d214e2547fd396de8))
|
|
141
|
+
* **mcp:** return logs on code tool errors ([6d7038b](https://github.com/cjavdev/spotted-ts/commit/6d7038bee2ab8ae2da42e5572210b3207241ca85))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Chores
|
|
145
|
+
|
|
146
|
+
* **internal:** upgrade eslint ([6bd6c86](https://github.com/cjavdev/spotted-ts/commit/6bd6c86a2f2e36fc3a8ca59885974842ebdb31ec))
|
|
147
|
+
* use latest @modelcontextprotocol/sdk ([38e7c22](https://github.com/cjavdev/spotted-ts/commit/38e7c22639a1c25a2da13060fb10491c447db3be))
|
|
148
|
+
|
|
149
|
+
## 0.4.1 (2025-12-02)
|
|
150
|
+
|
|
151
|
+
Full Changelog: [v0.4.0...v0.4.1](https://github.com/cjavdev/spotted-ts/compare/v0.4.0...v0.4.1)
|
|
152
|
+
|
|
153
|
+
### Bug Fixes
|
|
154
|
+
|
|
155
|
+
* **mcp:** return tool execution error on api error ([d5e8a31](https://github.com/cjavdev/spotted-ts/commit/d5e8a31bc7a41fd420f78acd4b059db11a151687))
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Chores
|
|
159
|
+
|
|
160
|
+
* **client:** fix logger property type ([d923c67](https://github.com/cjavdev/spotted-ts/commit/d923c679de528e603cafa78fa70b178782fa4def))
|
|
161
|
+
|
|
162
|
+
## 0.4.0 (2025-11-26)
|
|
163
|
+
|
|
164
|
+
Full Changelog: [v0.3.0...v0.4.0](https://github.com/cjavdev/spotted-ts/compare/v0.3.0...v0.4.0)
|
|
165
|
+
|
|
166
|
+
### Features
|
|
167
|
+
|
|
168
|
+
* **api:** manual updates ([022e96a](https://github.com/cjavdev/spotted-ts/commit/022e96a326f59c13dc1b99f1fea3dff8e6818848))
|
|
169
|
+
|
|
170
|
+
## 0.3.0 (2025-11-26)
|
|
171
|
+
|
|
172
|
+
Full Changelog: [v0.2.1...v0.3.0](https://github.com/cjavdev/spotted-ts/compare/v0.2.1...v0.3.0)
|
|
173
|
+
|
|
174
|
+
### Features
|
|
175
|
+
|
|
176
|
+
* **api:** manual updates ([45c91c1](https://github.com/cjavdev/spotted-ts/commit/45c91c1d689dba68834cff2efab5f5c424ecfa91))
|
|
177
|
+
* **mcp:** add detail field to docs search tool ([b696c29](https://github.com/cjavdev/spotted-ts/commit/b696c290aab355821efbd5cab7cc4851bb1a9ba3))
|
|
178
|
+
|
|
179
|
+
## 0.2.1 (2025-11-18)
|
|
180
|
+
|
|
181
|
+
Full Changelog: [v0.1.0...v0.2.1](https://github.com/cjavdev/spotted-ts/compare/v0.1.0...v0.2.1)
|
|
182
|
+
|
|
183
|
+
### Features
|
|
184
|
+
|
|
185
|
+
* **api:** add mode constants ([d5397d7](https://github.com/cjavdev/spotted-ts/commit/d5397d77e8d4ea90df6f31409f7cb941ffbf5c9b))
|
|
186
|
+
* **api:** manual updates ([57223b2](https://github.com/cjavdev/spotted-ts/commit/57223b26c5593cf79b6a8f2c18b23bd9b9e9879c))
|
|
187
|
+
* **api:** manual updates ([edb39df](https://github.com/cjavdev/spotted-ts/commit/edb39dfdbbf84cad59c5f8b16f5d35bbbea108fd))
|
|
188
|
+
* **api:** manual updates ([4a66e3d](https://github.com/cjavdev/spotted-ts/commit/4a66e3d07575eca73ba093033a370b037f23f512))
|
|
189
|
+
* **api:** manual updates ([7be7d20](https://github.com/cjavdev/spotted-ts/commit/7be7d20f0eea32db29a069a545c90a561da28d46))
|
|
190
|
+
* **api:** manual updates ([11058c3](https://github.com/cjavdev/spotted-ts/commit/11058c3618718c727f14ad8e1c3098dd8ff92158))
|
|
191
|
+
* **api:** manual updates ([b475c9a](https://github.com/cjavdev/spotted-ts/commit/b475c9a2396e1b299e73ed5cbfdcb28d69655ec9))
|
|
192
|
+
* **api:** manual updates ([4acacab](https://github.com/cjavdev/spotted-ts/commit/4acacab8532531ff267bb531dda97cf57c009479))
|
|
193
|
+
* **api:** manual updates ([59bd362](https://github.com/cjavdev/spotted-ts/commit/59bd36288c0700dea4c8d9002b16b8b5ac9629e2))
|
|
194
|
+
* **api:** manual updates ([60575a0](https://github.com/cjavdev/spotted-ts/commit/60575a05854f8189fca754352887e1478f875c58))
|
|
195
|
+
* **api:** manual updates ([509e286](https://github.com/cjavdev/spotted-ts/commit/509e28612d490ec5c5816860f054fd50c77565f8))
|
|
196
|
+
* **api:** manual updates ([14253d0](https://github.com/cjavdev/spotted-ts/commit/14253d0516fe121fd0458884bcc13dfab5e08a1a))
|
|
197
|
+
* **api:** manual updates ([38dc01e](https://github.com/cjavdev/spotted-ts/commit/38dc01ecc1268c6d4c35f79bfd1d31644fc5bffc))
|
|
198
|
+
* **api:** manual updates ([d7e727b](https://github.com/cjavdev/spotted-ts/commit/d7e727b8c36db75feaba90a5b253664aeef88a4b))
|
|
199
|
+
|
|
200
|
+
### Bug Fixes
|
|
201
|
+
|
|
202
|
+
* **mcp:** return tool execution error on jq failure ([d2949ba](https://github.com/cjavdev/spotted-ts/commit/d2949ba11d9816649ae784237f6bc7c096572dd7))
|
|
203
|
+
|
|
204
|
+
### Chores
|
|
205
|
+
|
|
206
|
+
* **mcp:** clarify http auth error ([d712c39](https://github.com/cjavdev/spotted-ts/commit/d712c3904a06572caecc2ff5de80dc667510694d))
|
|
207
|
+
* **mcp:** upgrade jq-web ([e0779f2](https://github.com/cjavdev/spotted-ts/commit/e0779f2186faa20509478b79202930b9822f947b))
|
|
208
|
+
|
|
3
209
|
## 0.1.0 (2025-11-08)
|
|
4
210
|
|
|
5
211
|
Full Changelog: [v0.0.1...v0.1.0](https://github.com/cjavdev/spotted-ts/compare/v0.0.1...v0.1.0)
|
|
@@ -20,12 +226,10 @@ Full Changelog: [v0.0.1...v0.1.0](https://github.com/cjavdev/spotted-ts/compare/
|
|
|
20
226
|
* **api:** manual updates ([3541b08](https://github.com/cjavdev/spotted-ts/commit/3541b084e9dc52171c995e8e1c2cc91066cd52bc))
|
|
21
227
|
* **mcp:** enable optional code execution tool on http mcp servers ([cfdecd6](https://github.com/cjavdev/spotted-ts/commit/cfdecd6e2ed9bab084b115528fcc4224a93c2d0c))
|
|
22
228
|
|
|
23
|
-
|
|
24
229
|
### Bug Fixes
|
|
25
230
|
|
|
26
231
|
* **mcpb:** pin @anthropic-ai/mcpb version ([dd56c1b](https://github.com/cjavdev/spotted-ts/commit/dd56c1b5336fa87595939b2a2ca38ab192f035fe))
|
|
27
232
|
|
|
28
|
-
|
|
29
233
|
### Chores
|
|
30
234
|
|
|
31
235
|
* configure new SDK language ([5620e41](https://github.com/cjavdev/spotted-ts/commit/5620e41bc5353164285c802930c8ab5d23388c4c))
|
|
@@ -40,7 +244,6 @@ Full Changelog: [v0.0.1...v0.1.0](https://github.com/cjavdev/spotted-ts/compare/
|
|
|
40
244
|
* update SDK settings ([99fab32](https://github.com/cjavdev/spotted-ts/commit/99fab320b35ebc86e194d04376a9e227c41439a3))
|
|
41
245
|
* use structured error when code execution tool errors ([0626eeb](https://github.com/cjavdev/spotted-ts/commit/0626eebaa3a40773b5a4d2cc3a06f6e6be0b016f))
|
|
42
246
|
|
|
43
|
-
|
|
44
247
|
### Documentation
|
|
45
248
|
|
|
46
249
|
* **mcp:** add a README button for one-click add to Cursor ([5d6688e](https://github.com/cjavdev/spotted-ts/commit/5d6688eb58f89ceb27d930780aee512658986416))
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Unofficial Spotify API Library
|
|
2
2
|
|
|
3
|
-
[>)](https://npmjs.org/package/spotted-ts) 
|
|
3
|
+
[>)](https://npmjs.org/package/spotted-ts)  [](https://jsr.io/@cjavdev/spotted-ts)
|
|
4
4
|
|
|
5
|
-
This library provides convenient access to the
|
|
5
|
+
This library provides convenient access to the Spotify Web API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
7
7
|
The REST API documentation can be found on [spotted.stldocs.com](https://spotted.stldocs.com). The full API of this library can be found in [api.md](api.md).
|
|
8
8
|
|
|
@@ -14,6 +14,21 @@ It is generated with [Stainless](https://www.stainless.com/).
|
|
|
14
14
|
npm install spotted-ts
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
### Installation from JSR
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
deno add jsr:@cjavdev/spotted-ts
|
|
21
|
+
npx jsr add @cjavdev/spotted-ts
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
These commands will make the module importable from the `@cjavdev/spotted-ts` scope:
|
|
25
|
+
|
|
26
|
+
You can also [import directly from JSR](https://jsr.io/docs/using-packages#importing-with-jsr-specifiers) without an install step if you're using the Deno JavaScript runtime:
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import Spotted from 'jsr:@cjavdev/spotted-ts';
|
|
30
|
+
```
|
|
31
|
+
|
|
17
32
|
## Usage
|
|
18
33
|
|
|
19
34
|
The full API of this library can be found in [api.md](api.md).
|
|
@@ -118,6 +133,40 @@ On timeout, an `APIConnectionTimeoutError` is thrown.
|
|
|
118
133
|
|
|
119
134
|
Note that requests which time out will be [retried twice by default](#retries).
|
|
120
135
|
|
|
136
|
+
## Auto-pagination
|
|
137
|
+
|
|
138
|
+
List methods in the Spotted API are paginated.
|
|
139
|
+
You can use the `for await … of` syntax to iterate through items across all pages:
|
|
140
|
+
|
|
141
|
+
```ts
|
|
142
|
+
async function fetchAllSimplifiedEpisodeObjects(params) {
|
|
143
|
+
const allSimplifiedEpisodeObjects = [];
|
|
144
|
+
// Automatically fetches more pages as needed.
|
|
145
|
+
for await (const simplifiedEpisodeObject of client.shows.listEpisodes('showid', {
|
|
146
|
+
limit: 10,
|
|
147
|
+
offset: 20,
|
|
148
|
+
})) {
|
|
149
|
+
allSimplifiedEpisodeObjects.push(simplifiedEpisodeObject);
|
|
150
|
+
}
|
|
151
|
+
return allSimplifiedEpisodeObjects;
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Alternatively, you can request a single page at a time:
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
let page = await client.shows.listEpisodes('showid', { limit: 10, offset: 20 });
|
|
159
|
+
for (const simplifiedEpisodeObject of page.items) {
|
|
160
|
+
console.log(simplifiedEpisodeObject);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Convenience methods are provided for manually paginating:
|
|
164
|
+
while (page.hasNextPage()) {
|
|
165
|
+
page = await page.getNextPage();
|
|
166
|
+
// ...
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
121
170
|
## Advanced Usage
|
|
122
171
|
|
|
123
172
|
### Accessing raw Response data (e.g., headers)
|
|
@@ -306,7 +355,7 @@ const client = new Spotted({
|
|
|
306
355
|
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
|
|
307
356
|
|
|
308
357
|
```ts
|
|
309
|
-
import Spotted from '
|
|
358
|
+
import Spotted from 'jsr:@cjavdev/spotted-ts';
|
|
310
359
|
|
|
311
360
|
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
|
|
312
361
|
const client = new Spotted({
|
package/client.d.mts
CHANGED
|
@@ -9,17 +9,17 @@ import * as Uploads from "./core/uploads.mjs";
|
|
|
9
9
|
import * as API from "./resources/index.mjs";
|
|
10
10
|
import { APIPromise } from "./core/api-promise.mjs";
|
|
11
11
|
import { AlbumBulkRetrieveParams, AlbumBulkRetrieveResponse, AlbumListTracksParams, AlbumRetrieveParams, AlbumRetrieveResponse, Albums } from "./resources/albums.mjs";
|
|
12
|
-
import { ArtistListAlbumsParams, ArtistListAlbumsResponse, ArtistListAlbumsResponsesCursorURLPage,
|
|
12
|
+
import { ArtistBulkRetrieveParams, ArtistBulkRetrieveResponse, ArtistListAlbumsParams, ArtistListAlbumsResponse, ArtistListAlbumsResponsesCursorURLPage, ArtistListRelatedArtistsResponse, ArtistTopTracksParams, ArtistTopTracksResponse, Artists } from "./resources/artists.mjs";
|
|
13
13
|
import { AudioAnalysis, AudioAnalysisRetrieveResponse, TimeIntervalObject } from "./resources/audio-analysis.mjs";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { AudioFeatureBulkRetrieveParams, AudioFeatureBulkRetrieveResponse, AudioFeatureRetrieveResponse, AudioFeatures } from "./resources/audio-features.mjs";
|
|
15
|
+
import { AudiobookBulkRetrieveParams, AudiobookBulkRetrieveResponse, AudiobookListChaptersParams, AudiobookRetrieveParams, AudiobookRetrieveResponse, Audiobooks, SimplifiedChapterObject, SimplifiedChapterObjectsCursorURLPage } from "./resources/audiobooks.mjs";
|
|
16
|
+
import { ChapterBulkRetrieveParams, ChapterBulkRetrieveResponse, ChapterRetrieveParams, ChapterRetrieveResponse, Chapters } from "./resources/chapters.mjs";
|
|
17
|
+
import { EpisodeBulkRetrieveParams, EpisodeBulkRetrieveResponse, EpisodeRetrieveParams, Episodes } from "./resources/episodes.mjs";
|
|
18
18
|
import { MarketListResponse, Markets } from "./resources/markets.mjs";
|
|
19
19
|
import { RecommendationGetParams, RecommendationGetResponse, RecommendationListAvailableGenreSeedsResponse, Recommendations } from "./resources/recommendations.mjs";
|
|
20
|
-
import { Search,
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
20
|
+
import { Search, SearchQueryParams, SearchQueryResponse } from "./resources/search.mjs";
|
|
21
|
+
import { ShowBulkRetrieveParams, ShowBulkRetrieveResponse, ShowListEpisodesParams, ShowRetrieveParams, ShowRetrieveResponse, Shows } from "./resources/shows.mjs";
|
|
22
|
+
import { TrackBulkRetrieveParams, TrackBulkRetrieveResponse, TrackRetrieveParams, Tracks } from "./resources/tracks.mjs";
|
|
23
23
|
import { Browse, BrowseGetFeaturedPlaylistsParams, BrowseGetFeaturedPlaylistsResponse, BrowseGetNewReleasesParams, BrowseGetNewReleasesResponse } from "./resources/browse/browse.mjs";
|
|
24
24
|
import { Me, MeRetrieveResponse } from "./resources/me/me.mjs";
|
|
25
25
|
import { PlaylistRetrieveParams, PlaylistRetrieveResponse, PlaylistUpdateParams, Playlists } from "./resources/playlists/playlists.mjs";
|
|
@@ -32,11 +32,15 @@ export interface ClientOptions {
|
|
|
32
32
|
/**
|
|
33
33
|
* Defaults to process.env['SPOTIFY_CLIENT_ID'].
|
|
34
34
|
*/
|
|
35
|
-
clientID?: string | undefined;
|
|
35
|
+
clientID?: string | null | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Defaults to process.env['SPOTIFY_CLIENT_SECRET'].
|
|
38
38
|
*/
|
|
39
|
-
clientSecret?: string | undefined;
|
|
39
|
+
clientSecret?: string | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Defaults to process.env['SPOTIFY_ACCESS_TOKEN'].
|
|
42
|
+
*/
|
|
43
|
+
accessToken?: string | null | undefined;
|
|
40
44
|
/**
|
|
41
45
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
42
46
|
*
|
|
@@ -103,12 +107,13 @@ export interface ClientOptions {
|
|
|
103
107
|
*/
|
|
104
108
|
export declare class Spotted {
|
|
105
109
|
#private;
|
|
106
|
-
clientID: string;
|
|
107
|
-
clientSecret: string;
|
|
110
|
+
clientID: string | null;
|
|
111
|
+
clientSecret: string | null;
|
|
112
|
+
accessToken: string | null;
|
|
108
113
|
baseURL: string;
|
|
109
114
|
maxRetries: number;
|
|
110
115
|
timeout: number;
|
|
111
|
-
logger: Logger
|
|
116
|
+
logger: Logger;
|
|
112
117
|
logLevel: LogLevel | undefined;
|
|
113
118
|
fetchOptions: MergedRequestInit | undefined;
|
|
114
119
|
private fetch;
|
|
@@ -117,8 +122,9 @@ export declare class Spotted {
|
|
|
117
122
|
/**
|
|
118
123
|
* API Client for interfacing with the Spotted API.
|
|
119
124
|
*
|
|
120
|
-
* @param {string | undefined} [opts.clientID=process.env['SPOTIFY_CLIENT_ID'] ??
|
|
121
|
-
* @param {string | undefined} [opts.clientSecret=process.env['SPOTIFY_CLIENT_SECRET'] ??
|
|
125
|
+
* @param {string | null | undefined} [opts.clientID=process.env['SPOTIFY_CLIENT_ID'] ?? null]
|
|
126
|
+
* @param {string | null | undefined} [opts.clientSecret=process.env['SPOTIFY_CLIENT_SECRET'] ?? null]
|
|
127
|
+
* @param {string | null | undefined} [opts.accessToken=process.env['SPOTIFY_ACCESS_TOKEN'] ?? null]
|
|
122
128
|
* @param {string} [opts.baseURL=process.env['SPOTTED_BASE_URL'] ?? https://api.spotify.com/v1] - Override the default base URL for the API.
|
|
123
129
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
124
130
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
@@ -127,15 +133,17 @@ export declare class Spotted {
|
|
|
127
133
|
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
128
134
|
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
129
135
|
*/
|
|
130
|
-
constructor({ baseURL, clientID, clientSecret, ...opts }?: ClientOptions);
|
|
136
|
+
constructor({ baseURL, clientID, clientSecret, accessToken, ...opts }?: ClientOptions);
|
|
131
137
|
/**
|
|
132
138
|
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
133
139
|
*/
|
|
134
140
|
withOptions(options: Partial<ClientOptions>): this;
|
|
135
141
|
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
136
142
|
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
137
|
-
private oauth2_0AuthState;
|
|
138
143
|
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
144
|
+
protected bearerAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
145
|
+
private oauth2_0AuthState;
|
|
146
|
+
protected oauth2_0Auth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
139
147
|
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
140
148
|
private getUserAgent;
|
|
141
149
|
protected defaultIdempotencyKey(): string;
|
|
@@ -216,18 +224,18 @@ export declare namespace Spotted {
|
|
|
216
224
|
export import CursorURLPage = Pagination.CursorURLPage;
|
|
217
225
|
export { type CursorURLPageResponse as CursorURLPageResponse };
|
|
218
226
|
export { Albums as Albums, type AlbumRetrieveResponse as AlbumRetrieveResponse, type AlbumBulkRetrieveResponse as AlbumBulkRetrieveResponse, type AlbumRetrieveParams as AlbumRetrieveParams, type AlbumBulkRetrieveParams as AlbumBulkRetrieveParams, type AlbumListTracksParams as AlbumListTracksParams, };
|
|
219
|
-
export { Artists as Artists, type
|
|
220
|
-
export { Shows as Shows, type ShowRetrieveResponse as ShowRetrieveResponse, type
|
|
221
|
-
export { Episodes as Episodes, type
|
|
222
|
-
export { Audiobooks as Audiobooks, type SimplifiedChapterObject as SimplifiedChapterObject, type AudiobookRetrieveResponse as AudiobookRetrieveResponse, type
|
|
227
|
+
export { Artists as Artists, type ArtistBulkRetrieveResponse as ArtistBulkRetrieveResponse, type ArtistListAlbumsResponse as ArtistListAlbumsResponse, type ArtistListRelatedArtistsResponse as ArtistListRelatedArtistsResponse, type ArtistTopTracksResponse as ArtistTopTracksResponse, type ArtistListAlbumsResponsesCursorURLPage as ArtistListAlbumsResponsesCursorURLPage, type ArtistBulkRetrieveParams as ArtistBulkRetrieveParams, type ArtistListAlbumsParams as ArtistListAlbumsParams, type ArtistTopTracksParams as ArtistTopTracksParams, };
|
|
228
|
+
export { Shows as Shows, type ShowRetrieveResponse as ShowRetrieveResponse, type ShowBulkRetrieveResponse as ShowBulkRetrieveResponse, type ShowRetrieveParams as ShowRetrieveParams, type ShowBulkRetrieveParams as ShowBulkRetrieveParams, type ShowListEpisodesParams as ShowListEpisodesParams, };
|
|
229
|
+
export { Episodes as Episodes, type EpisodeBulkRetrieveResponse as EpisodeBulkRetrieveResponse, type EpisodeRetrieveParams as EpisodeRetrieveParams, type EpisodeBulkRetrieveParams as EpisodeBulkRetrieveParams, };
|
|
230
|
+
export { Audiobooks as Audiobooks, 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, };
|
|
223
231
|
export { Me as Me, type MeRetrieveResponse as MeRetrieveResponse };
|
|
224
|
-
export { Chapters as Chapters, type ChapterRetrieveResponse as ChapterRetrieveResponse, type
|
|
225
|
-
export { Tracks as Tracks, type
|
|
226
|
-
export { Search as Search, type
|
|
232
|
+
export { Chapters as Chapters, type ChapterRetrieveResponse as ChapterRetrieveResponse, type ChapterBulkRetrieveResponse as ChapterBulkRetrieveResponse, type ChapterRetrieveParams as ChapterRetrieveParams, type ChapterBulkRetrieveParams as ChapterBulkRetrieveParams, };
|
|
233
|
+
export { Tracks as Tracks, type TrackBulkRetrieveResponse as TrackBulkRetrieveResponse, type TrackRetrieveParams as TrackRetrieveParams, type TrackBulkRetrieveParams as TrackBulkRetrieveParams, };
|
|
234
|
+
export { Search as Search, type SearchQueryResponse as SearchQueryResponse, type SearchQueryParams as SearchQueryParams, };
|
|
227
235
|
export { Playlists as Playlists, type PlaylistRetrieveResponse as PlaylistRetrieveResponse, type PlaylistRetrieveParams as PlaylistRetrieveParams, type PlaylistUpdateParams as PlaylistUpdateParams, };
|
|
228
236
|
export { Users as Users, type UserRetrieveProfileResponse as UserRetrieveProfileResponse };
|
|
229
237
|
export { Browse as Browse, type BrowseGetFeaturedPlaylistsResponse as BrowseGetFeaturedPlaylistsResponse, type BrowseGetNewReleasesResponse as BrowseGetNewReleasesResponse, type BrowseGetFeaturedPlaylistsParams as BrowseGetFeaturedPlaylistsParams, type BrowseGetNewReleasesParams as BrowseGetNewReleasesParams, };
|
|
230
|
-
export { AudioFeatures as AudioFeatures, type AudioFeatureRetrieveResponse as AudioFeatureRetrieveResponse, type
|
|
238
|
+
export { AudioFeatures as AudioFeatures, type AudioFeatureRetrieveResponse as AudioFeatureRetrieveResponse, type AudioFeatureBulkRetrieveResponse as AudioFeatureBulkRetrieveResponse, type AudioFeatureBulkRetrieveParams as AudioFeatureBulkRetrieveParams, };
|
|
231
239
|
export { AudioAnalysis as AudioAnalysis, type TimeIntervalObject as TimeIntervalObject, type AudioAnalysisRetrieveResponse as AudioAnalysisRetrieveResponse, };
|
|
232
240
|
export { Recommendations as Recommendations, type RecommendationGetResponse as RecommendationGetResponse, type RecommendationListAvailableGenreSeedsResponse as RecommendationListAvailableGenreSeedsResponse, type RecommendationGetParams as RecommendationGetParams, };
|
|
233
241
|
export { Markets as Markets, type MarketListResponse as MarketListResponse };
|
package/client.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UA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,WAAW,CAAC;IAC1C,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,sBAAsB,CAAC;CACjE"}
|
package/client.d.ts
CHANGED
|
@@ -9,17 +9,17 @@ import * as Uploads from "./core/uploads.js";
|
|
|
9
9
|
import * as API from "./resources/index.js";
|
|
10
10
|
import { APIPromise } from "./core/api-promise.js";
|
|
11
11
|
import { AlbumBulkRetrieveParams, AlbumBulkRetrieveResponse, AlbumListTracksParams, AlbumRetrieveParams, AlbumRetrieveResponse, Albums } from "./resources/albums.js";
|
|
12
|
-
import { ArtistListAlbumsParams, ArtistListAlbumsResponse, ArtistListAlbumsResponsesCursorURLPage,
|
|
12
|
+
import { ArtistBulkRetrieveParams, ArtistBulkRetrieveResponse, ArtistListAlbumsParams, ArtistListAlbumsResponse, ArtistListAlbumsResponsesCursorURLPage, ArtistListRelatedArtistsResponse, ArtistTopTracksParams, ArtistTopTracksResponse, Artists } from "./resources/artists.js";
|
|
13
13
|
import { AudioAnalysis, AudioAnalysisRetrieveResponse, TimeIntervalObject } from "./resources/audio-analysis.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { AudioFeatureBulkRetrieveParams, AudioFeatureBulkRetrieveResponse, AudioFeatureRetrieveResponse, AudioFeatures } from "./resources/audio-features.js";
|
|
15
|
+
import { AudiobookBulkRetrieveParams, AudiobookBulkRetrieveResponse, AudiobookListChaptersParams, AudiobookRetrieveParams, AudiobookRetrieveResponse, Audiobooks, SimplifiedChapterObject, SimplifiedChapterObjectsCursorURLPage } from "./resources/audiobooks.js";
|
|
16
|
+
import { ChapterBulkRetrieveParams, ChapterBulkRetrieveResponse, ChapterRetrieveParams, ChapterRetrieveResponse, Chapters } from "./resources/chapters.js";
|
|
17
|
+
import { EpisodeBulkRetrieveParams, EpisodeBulkRetrieveResponse, EpisodeRetrieveParams, Episodes } from "./resources/episodes.js";
|
|
18
18
|
import { MarketListResponse, Markets } from "./resources/markets.js";
|
|
19
19
|
import { RecommendationGetParams, RecommendationGetResponse, RecommendationListAvailableGenreSeedsResponse, Recommendations } from "./resources/recommendations.js";
|
|
20
|
-
import { Search,
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
20
|
+
import { Search, SearchQueryParams, SearchQueryResponse } from "./resources/search.js";
|
|
21
|
+
import { ShowBulkRetrieveParams, ShowBulkRetrieveResponse, ShowListEpisodesParams, ShowRetrieveParams, ShowRetrieveResponse, Shows } from "./resources/shows.js";
|
|
22
|
+
import { TrackBulkRetrieveParams, TrackBulkRetrieveResponse, TrackRetrieveParams, Tracks } from "./resources/tracks.js";
|
|
23
23
|
import { Browse, BrowseGetFeaturedPlaylistsParams, BrowseGetFeaturedPlaylistsResponse, BrowseGetNewReleasesParams, BrowseGetNewReleasesResponse } from "./resources/browse/browse.js";
|
|
24
24
|
import { Me, MeRetrieveResponse } from "./resources/me/me.js";
|
|
25
25
|
import { PlaylistRetrieveParams, PlaylistRetrieveResponse, PlaylistUpdateParams, Playlists } from "./resources/playlists/playlists.js";
|
|
@@ -32,11 +32,15 @@ export interface ClientOptions {
|
|
|
32
32
|
/**
|
|
33
33
|
* Defaults to process.env['SPOTIFY_CLIENT_ID'].
|
|
34
34
|
*/
|
|
35
|
-
clientID?: string | undefined;
|
|
35
|
+
clientID?: string | null | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Defaults to process.env['SPOTIFY_CLIENT_SECRET'].
|
|
38
38
|
*/
|
|
39
|
-
clientSecret?: string | undefined;
|
|
39
|
+
clientSecret?: string | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Defaults to process.env['SPOTIFY_ACCESS_TOKEN'].
|
|
42
|
+
*/
|
|
43
|
+
accessToken?: string | null | undefined;
|
|
40
44
|
/**
|
|
41
45
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
42
46
|
*
|
|
@@ -103,12 +107,13 @@ export interface ClientOptions {
|
|
|
103
107
|
*/
|
|
104
108
|
export declare class Spotted {
|
|
105
109
|
#private;
|
|
106
|
-
clientID: string;
|
|
107
|
-
clientSecret: string;
|
|
110
|
+
clientID: string | null;
|
|
111
|
+
clientSecret: string | null;
|
|
112
|
+
accessToken: string | null;
|
|
108
113
|
baseURL: string;
|
|
109
114
|
maxRetries: number;
|
|
110
115
|
timeout: number;
|
|
111
|
-
logger: Logger
|
|
116
|
+
logger: Logger;
|
|
112
117
|
logLevel: LogLevel | undefined;
|
|
113
118
|
fetchOptions: MergedRequestInit | undefined;
|
|
114
119
|
private fetch;
|
|
@@ -117,8 +122,9 @@ export declare class Spotted {
|
|
|
117
122
|
/**
|
|
118
123
|
* API Client for interfacing with the Spotted API.
|
|
119
124
|
*
|
|
120
|
-
* @param {string | undefined} [opts.clientID=process.env['SPOTIFY_CLIENT_ID'] ??
|
|
121
|
-
* @param {string | undefined} [opts.clientSecret=process.env['SPOTIFY_CLIENT_SECRET'] ??
|
|
125
|
+
* @param {string | null | undefined} [opts.clientID=process.env['SPOTIFY_CLIENT_ID'] ?? null]
|
|
126
|
+
* @param {string | null | undefined} [opts.clientSecret=process.env['SPOTIFY_CLIENT_SECRET'] ?? null]
|
|
127
|
+
* @param {string | null | undefined} [opts.accessToken=process.env['SPOTIFY_ACCESS_TOKEN'] ?? null]
|
|
122
128
|
* @param {string} [opts.baseURL=process.env['SPOTTED_BASE_URL'] ?? https://api.spotify.com/v1] - Override the default base URL for the API.
|
|
123
129
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
124
130
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
@@ -127,15 +133,17 @@ export declare class Spotted {
|
|
|
127
133
|
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
128
134
|
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
129
135
|
*/
|
|
130
|
-
constructor({ baseURL, clientID, clientSecret, ...opts }?: ClientOptions);
|
|
136
|
+
constructor({ baseURL, clientID, clientSecret, accessToken, ...opts }?: ClientOptions);
|
|
131
137
|
/**
|
|
132
138
|
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
133
139
|
*/
|
|
134
140
|
withOptions(options: Partial<ClientOptions>): this;
|
|
135
141
|
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
136
142
|
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
137
|
-
private oauth2_0AuthState;
|
|
138
143
|
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
144
|
+
protected bearerAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
145
|
+
private oauth2_0AuthState;
|
|
146
|
+
protected oauth2_0Auth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
139
147
|
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
140
148
|
private getUserAgent;
|
|
141
149
|
protected defaultIdempotencyKey(): string;
|
|
@@ -216,18 +224,18 @@ export declare namespace Spotted {
|
|
|
216
224
|
export import CursorURLPage = Pagination.CursorURLPage;
|
|
217
225
|
export { type CursorURLPageResponse as CursorURLPageResponse };
|
|
218
226
|
export { Albums as Albums, type AlbumRetrieveResponse as AlbumRetrieveResponse, type AlbumBulkRetrieveResponse as AlbumBulkRetrieveResponse, type AlbumRetrieveParams as AlbumRetrieveParams, type AlbumBulkRetrieveParams as AlbumBulkRetrieveParams, type AlbumListTracksParams as AlbumListTracksParams, };
|
|
219
|
-
export { Artists as Artists, type
|
|
220
|
-
export { Shows as Shows, type ShowRetrieveResponse as ShowRetrieveResponse, type
|
|
221
|
-
export { Episodes as Episodes, type
|
|
222
|
-
export { Audiobooks as Audiobooks, type SimplifiedChapterObject as SimplifiedChapterObject, type AudiobookRetrieveResponse as AudiobookRetrieveResponse, type
|
|
227
|
+
export { Artists as Artists, type ArtistBulkRetrieveResponse as ArtistBulkRetrieveResponse, type ArtistListAlbumsResponse as ArtistListAlbumsResponse, type ArtistListRelatedArtistsResponse as ArtistListRelatedArtistsResponse, type ArtistTopTracksResponse as ArtistTopTracksResponse, type ArtistListAlbumsResponsesCursorURLPage as ArtistListAlbumsResponsesCursorURLPage, type ArtistBulkRetrieveParams as ArtistBulkRetrieveParams, type ArtistListAlbumsParams as ArtistListAlbumsParams, type ArtistTopTracksParams as ArtistTopTracksParams, };
|
|
228
|
+
export { Shows as Shows, type ShowRetrieveResponse as ShowRetrieveResponse, type ShowBulkRetrieveResponse as ShowBulkRetrieveResponse, type ShowRetrieveParams as ShowRetrieveParams, type ShowBulkRetrieveParams as ShowBulkRetrieveParams, type ShowListEpisodesParams as ShowListEpisodesParams, };
|
|
229
|
+
export { Episodes as Episodes, type EpisodeBulkRetrieveResponse as EpisodeBulkRetrieveResponse, type EpisodeRetrieveParams as EpisodeRetrieveParams, type EpisodeBulkRetrieveParams as EpisodeBulkRetrieveParams, };
|
|
230
|
+
export { Audiobooks as Audiobooks, 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, };
|
|
223
231
|
export { Me as Me, type MeRetrieveResponse as MeRetrieveResponse };
|
|
224
|
-
export { Chapters as Chapters, type ChapterRetrieveResponse as ChapterRetrieveResponse, type
|
|
225
|
-
export { Tracks as Tracks, type
|
|
226
|
-
export { Search as Search, type
|
|
232
|
+
export { Chapters as Chapters, type ChapterRetrieveResponse as ChapterRetrieveResponse, type ChapterBulkRetrieveResponse as ChapterBulkRetrieveResponse, type ChapterRetrieveParams as ChapterRetrieveParams, type ChapterBulkRetrieveParams as ChapterBulkRetrieveParams, };
|
|
233
|
+
export { Tracks as Tracks, type TrackBulkRetrieveResponse as TrackBulkRetrieveResponse, type TrackRetrieveParams as TrackRetrieveParams, type TrackBulkRetrieveParams as TrackBulkRetrieveParams, };
|
|
234
|
+
export { Search as Search, type SearchQueryResponse as SearchQueryResponse, type SearchQueryParams as SearchQueryParams, };
|
|
227
235
|
export { Playlists as Playlists, type PlaylistRetrieveResponse as PlaylistRetrieveResponse, type PlaylistRetrieveParams as PlaylistRetrieveParams, type PlaylistUpdateParams as PlaylistUpdateParams, };
|
|
228
236
|
export { Users as Users, type UserRetrieveProfileResponse as UserRetrieveProfileResponse };
|
|
229
237
|
export { Browse as Browse, type BrowseGetFeaturedPlaylistsResponse as BrowseGetFeaturedPlaylistsResponse, type BrowseGetNewReleasesResponse as BrowseGetNewReleasesResponse, type BrowseGetFeaturedPlaylistsParams as BrowseGetFeaturedPlaylistsParams, type BrowseGetNewReleasesParams as BrowseGetNewReleasesParams, };
|
|
230
|
-
export { AudioFeatures as AudioFeatures, type AudioFeatureRetrieveResponse as AudioFeatureRetrieveResponse, type
|
|
238
|
+
export { AudioFeatures as AudioFeatures, type AudioFeatureRetrieveResponse as AudioFeatureRetrieveResponse, type AudioFeatureBulkRetrieveResponse as AudioFeatureBulkRetrieveResponse, type AudioFeatureBulkRetrieveParams as AudioFeatureBulkRetrieveParams, };
|
|
231
239
|
export { AudioAnalysis as AudioAnalysis, type TimeIntervalObject as TimeIntervalObject, type AudioAnalysisRetrieveResponse as AudioAnalysisRetrieveResponse, };
|
|
232
240
|
export { Recommendations as Recommendations, type RecommendationGetResponse as RecommendationGetResponse, type RecommendationListAvailableGenreSeedsResponse as RecommendationListAvailableGenreSeedsResponse, type RecommendationGetParams as RecommendationGetParams, };
|
|
233
241
|
export { Markets as Markets, type MarketListResponse as MarketListResponse };
|