@keystrokehq/spotify 0.0.7 → 0.0.9
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/dist/_official/index.d.mts +2 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/albums.d.mts +5 -5
- package/dist/albums.mjs +5 -5
- package/dist/artists.d.mts +6 -6
- package/dist/artists.mjs +6 -6
- package/dist/audio-analysis.d.mts +2 -2
- package/dist/audio-analysis.mjs +2 -2
- package/dist/audio-features.d.mts +3 -3
- package/dist/audio-features.mjs +3 -3
- package/dist/audiobooks.d.mts +4 -4
- package/dist/audiobooks.mjs +4 -4
- package/dist/browse.d.mts +2 -2
- package/dist/browse.mjs +2 -2
- package/dist/categories.d.mts +4 -4
- package/dist/categories.mjs +4 -4
- package/dist/chapters.d.mts +3 -3
- package/dist/chapters.mjs +3 -3
- package/dist/client.d.mts +230 -230
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/episodes.d.mts +3 -3
- package/dist/episodes.mjs +3 -3
- package/dist/factory-C9W7aXmR.mjs +7 -0
- package/dist/follow.d.mts +5 -5
- package/dist/follow.mjs +5 -5
- package/dist/genres.d.mts +2 -2
- package/dist/genres.mjs +2 -2
- package/dist/integration-CrkQTg9q.mjs +170 -0
- package/dist/{integration-Dzf1u4u-.d.mts → integration-DXXNe4_j.d.mts} +3 -4
- package/dist/library.d.mts +21 -21
- package/dist/library.mjs +21 -21
- package/dist/markets.d.mts +2 -2
- package/dist/markets.mjs +2 -2
- package/dist/me.d.mts +4 -4
- package/dist/me.mjs +4 -4
- package/dist/player.d.mts +18 -18
- package/dist/player.mjs +16 -16
- package/dist/playlists.d.mts +15 -15
- package/dist/playlists.mjs +15 -15
- package/dist/recommendations.d.mts +2 -2
- package/dist/recommendations.mjs +2 -2
- package/dist/schemas.d.mts +1 -1
- package/dist/search.d.mts +3 -3
- package/dist/search.mjs +2 -2
- package/dist/shows.d.mts +4 -4
- package/dist/shows.mjs +4 -4
- package/dist/tracks.d.mts +3 -3
- package/dist/tracks.mjs +3 -3
- package/dist/triggers.d.mts +2 -3
- package/dist/triggers.mjs +56 -7
- package/dist/users.d.mts +2 -2
- package/dist/users.mjs +2 -2
- package/package.json +4 -4
- package/dist/factory-C3uQLYXY.mjs +0 -8
- package/dist/integration-BK1PIn1V.mjs +0 -78
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as spotifyOfficialIntegration, r as spotifyBundle } from "../integration-
|
|
2
|
-
import { z } from "zod";
|
|
1
|
+
import { i as spotifyOfficialIntegration, r as spotifyBundle } from "../integration-DXXNe4_j.mjs";
|
|
3
2
|
import { CredentialSet } from "@keystrokehq/core";
|
|
3
|
+
import { z } from "zod";
|
|
4
4
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
5
5
|
|
|
6
6
|
//#region src/_official/provider-app.d.ts
|
package/dist/_official/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as spotifyOfficialProviderSeed, i as spotifyAppCredentialSet, n as spotifyBundle, r as spotifyOfficialIntegration } from "../integration-
|
|
1
|
+
import { a as spotifyOfficialProviderSeed, i as spotifyAppCredentialSet, n as spotifyBundle, r as spotifyOfficialIntegration } from "../integration-CrkQTg9q.mjs";
|
|
2
2
|
|
|
3
3
|
export { spotifyAppCredentialSet, spotifyBundle, spotifyOfficialIntegration, spotifyOfficialProviderSeed };
|
package/dist/albums.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/albums.d.ts
|
|
@@ -53,7 +53,7 @@ declare const getAlbum: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
53
53
|
restrictions: z.ZodOptional<z.ZodObject<{
|
|
54
54
|
reason: z.ZodString;
|
|
55
55
|
}, z.core.$strip>>;
|
|
56
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
56
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
57
57
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
58
58
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
59
59
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -145,7 +145,7 @@ declare const getAlbumTracks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
145
145
|
offset: z.ZodNumber;
|
|
146
146
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
147
147
|
total: z.ZodOptional<z.ZodNumber>;
|
|
148
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
148
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
149
149
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
150
150
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
151
151
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -202,7 +202,7 @@ declare const getSeveralAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
202
202
|
reason: z.ZodString;
|
|
203
203
|
}, z.core.$strip>>;
|
|
204
204
|
}, z.core.$strip>>;
|
|
205
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
205
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
206
206
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
207
207
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
208
208
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -256,7 +256,7 @@ declare const getNewReleases: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
256
256
|
offset: z.ZodNumber;
|
|
257
257
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
258
258
|
total: z.ZodOptional<z.ZodNumber>;
|
|
259
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
259
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
260
260
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
261
261
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
262
262
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/albums.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyAlbumPageSchema, spotifyAlbumSchema, spotifyIdSchema, spotifyMarketSchema, spotifyTrackPageSchema } from "./schemas.mjs";
|
|
2
2
|
import { createSpotifyClient } from "./client.mjs";
|
|
3
|
-
import { t as spotifyOperation } from "./factory-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/albums.ts
|
|
@@ -11,7 +11,7 @@ const pagingSchema = z.object({
|
|
|
11
11
|
});
|
|
12
12
|
const severalAlbumsResponseSchema = z.object({ albums: z.array(spotifyAlbumSchema) });
|
|
13
13
|
const getAlbum = spotifyOperation({
|
|
14
|
-
id: "
|
|
14
|
+
id: "spotify.get-spotify-album",
|
|
15
15
|
name: "Get Spotify Album",
|
|
16
16
|
description: "Fetch a Spotify album by its ID.",
|
|
17
17
|
input: z.object({
|
|
@@ -24,7 +24,7 @@ const getAlbum = spotifyOperation({
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
const getAlbumTracks = spotifyOperation({
|
|
27
|
-
id: "
|
|
27
|
+
id: "spotify.get-spotify-album-tracks",
|
|
28
28
|
name: "Get Spotify Album Tracks",
|
|
29
29
|
description: "List tracks for a Spotify album.",
|
|
30
30
|
input: pagingSchema.extend({
|
|
@@ -41,7 +41,7 @@ const getAlbumTracks = spotifyOperation({
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
const getSeveralAlbums = spotifyOperation({
|
|
44
|
-
id: "
|
|
44
|
+
id: "spotify.get-spotify-several-albums",
|
|
45
45
|
name: "Get Several Spotify Albums",
|
|
46
46
|
description: "Fetch multiple Spotify albums in one request.",
|
|
47
47
|
input: z.object({
|
|
@@ -54,7 +54,7 @@ const getSeveralAlbums = spotifyOperation({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
const getNewReleases = spotifyOperation({
|
|
57
|
-
id: "
|
|
57
|
+
id: "spotify.get-spotify-new-releases",
|
|
58
58
|
name: "Get Spotify New Releases",
|
|
59
59
|
description: "List Spotify new-release albums for a market.",
|
|
60
60
|
input: pagingSchema.extend({ country: spotifyMarketSchema.optional() }),
|
package/dist/artists.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/artists.d.ts
|
|
@@ -25,7 +25,7 @@ declare const getArtist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
25
25
|
width: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
}, z.core.$strip>>>;
|
|
27
27
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
28
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
29
29
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
30
30
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
31
31
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -86,7 +86,7 @@ declare const getArtistAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
86
86
|
offset: z.ZodNumber;
|
|
87
87
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
88
88
|
total: z.ZodOptional<z.ZodNumber>;
|
|
89
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
89
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
90
90
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
91
91
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
92
92
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -170,7 +170,7 @@ declare const getArtistTopTracks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
170
170
|
type: z.ZodLiteral<"track">;
|
|
171
171
|
uri: z.ZodOptional<z.ZodString>;
|
|
172
172
|
}, z.core.$strip>>;
|
|
173
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
173
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
174
174
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
175
175
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
176
176
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -199,7 +199,7 @@ declare const getArtistRelatedArtists: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
199
199
|
}, z.core.$strip>>>;
|
|
200
200
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
201
201
|
}, z.core.$strip>>;
|
|
202
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
202
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
203
203
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
204
204
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
205
205
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -228,7 +228,7 @@ declare const getSeveralArtists: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
228
228
|
}, z.core.$strip>>>;
|
|
229
229
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
230
230
|
}, z.core.$strip>>;
|
|
231
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
231
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
232
232
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
233
233
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
234
234
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/artists.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyAlbumPageSchema, spotifyArtistSchema, spotifyIdSchema, spotifyMarketSchema, spotifyTrackSchema } from "./schemas.mjs";
|
|
2
2
|
import { createSpotifyClient } from "./client.mjs";
|
|
3
|
-
import { t as spotifyOperation } from "./factory-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/artists.ts
|
|
@@ -18,7 +18,7 @@ const pagingSchema = z.object({
|
|
|
18
18
|
const severalArtistsResponseSchema = z.object({ artists: z.array(spotifyArtistSchema) });
|
|
19
19
|
const artistTopTracksResponseSchema = z.object({ tracks: z.array(spotifyTrackSchema) });
|
|
20
20
|
const getArtist = spotifyOperation({
|
|
21
|
-
id: "
|
|
21
|
+
id: "spotify.get-spotify-artist",
|
|
22
22
|
name: "Get Spotify Artist",
|
|
23
23
|
description: "Fetch a Spotify artist by its ID.",
|
|
24
24
|
input: z.object({ id: spotifyIdSchema }),
|
|
@@ -28,7 +28,7 @@ const getArtist = spotifyOperation({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
const getArtistAlbums = spotifyOperation({
|
|
31
|
-
id: "
|
|
31
|
+
id: "spotify.get-spotify-artist-albums",
|
|
32
32
|
name: "Get Spotify Artist Albums",
|
|
33
33
|
description: "List albums released by a Spotify artist.",
|
|
34
34
|
input: pagingSchema.extend({
|
|
@@ -47,7 +47,7 @@ const getArtistAlbums = spotifyOperation({
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
const getArtistTopTracks = spotifyOperation({
|
|
50
|
-
id: "
|
|
50
|
+
id: "spotify.get-spotify-artist-top-tracks",
|
|
51
51
|
name: "Get Spotify Artist Top Tracks",
|
|
52
52
|
description: "Fetch the top tracks for a Spotify artist in a market.",
|
|
53
53
|
input: z.object({
|
|
@@ -60,7 +60,7 @@ const getArtistTopTracks = spotifyOperation({
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
const getArtistRelatedArtists = spotifyOperation({
|
|
63
|
-
id: "
|
|
63
|
+
id: "spotify.get-spotify-artist-related-artists",
|
|
64
64
|
name: "Get Spotify Artist Related Artists",
|
|
65
65
|
description: "Fetch artists related to a Spotify artist. Deprecated upstream by Spotify.",
|
|
66
66
|
input: z.object({ id: spotifyIdSchema }),
|
|
@@ -70,7 +70,7 @@ const getArtistRelatedArtists = spotifyOperation({
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
const getSeveralArtists = spotifyOperation({
|
|
73
|
-
id: "
|
|
73
|
+
id: "spotify.get-spotify-several-artists",
|
|
74
74
|
name: "Get Several Spotify Artists",
|
|
75
75
|
description: "Fetch multiple Spotify artists in one request.",
|
|
76
76
|
input: z.object({ ids: artistIdListSchema }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/audio-analysis.d.ts
|
|
@@ -82,7 +82,7 @@ declare const getAudioAnalysis: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
82
82
|
rhythmstring: z.ZodOptional<z.ZodString>;
|
|
83
83
|
rhythmVersion: z.ZodOptional<z.ZodNumber>;
|
|
84
84
|
}, z.core.$strip>>;
|
|
85
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
85
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
86
86
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
87
87
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
88
88
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/audio-analysis.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { spotifyAudioAnalysisSchema, spotifyIdSchema } from "./schemas.mjs";
|
|
2
2
|
import { createSpotifyClient } from "./client.mjs";
|
|
3
|
-
import { t as spotifyOperation } from "./factory-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/audio-analysis.ts
|
|
7
7
|
const getAudioAnalysis = spotifyOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "spotify.get-spotify-audio-analysis",
|
|
9
9
|
name: "Get Spotify Audio Analysis",
|
|
10
10
|
description: "Fetch the detailed Spotify audio analysis for a track.",
|
|
11
11
|
input: z.object({ id: spotifyIdSchema }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/audio-features.d.ts
|
|
@@ -24,7 +24,7 @@ declare const getAudioFeatures: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
24
24
|
type: z.ZodLiteral<"audio_features">;
|
|
25
25
|
uri: z.ZodOptional<z.ZodString>;
|
|
26
26
|
valence: z.ZodNumber;
|
|
27
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
27
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
28
28
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
29
29
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
30
30
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -52,7 +52,7 @@ declare const getSeveralAudioFeatures: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
52
52
|
uri: z.ZodOptional<z.ZodString>;
|
|
53
53
|
valence: z.ZodNumber;
|
|
54
54
|
}, z.core.$strip>>>;
|
|
55
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
55
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
56
56
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
57
57
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
58
58
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/audio-features.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { spotifyAudioFeaturesSchema, spotifyIdSchema } from "./schemas.mjs";
|
|
2
2
|
import { createSpotifyClient } from "./client.mjs";
|
|
3
|
-
import { t as spotifyOperation } from "./factory-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/audio-features.ts
|
|
7
7
|
const trackIdListSchema = z.array(spotifyIdSchema).min(1).max(100);
|
|
8
8
|
const severalAudioFeaturesResponseSchema = z.object({ audioFeatures: z.array(spotifyAudioFeaturesSchema.nullable()) });
|
|
9
9
|
const getAudioFeatures = spotifyOperation({
|
|
10
|
-
id: "
|
|
10
|
+
id: "spotify.get-spotify-audio-features",
|
|
11
11
|
name: "Get Spotify Audio Features",
|
|
12
12
|
description: "Fetch Spotify audio features for a track.",
|
|
13
13
|
input: z.object({ id: spotifyIdSchema }),
|
|
@@ -17,7 +17,7 @@ const getAudioFeatures = spotifyOperation({
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
const getSeveralAudioFeatures = spotifyOperation({
|
|
20
|
-
id: "
|
|
20
|
+
id: "spotify.get-spotify-several-audio-features",
|
|
21
21
|
name: "Get Several Spotify Audio Features",
|
|
22
22
|
description: "Fetch Spotify audio features for multiple tracks.",
|
|
23
23
|
input: z.object({ ids: trackIdListSchema }),
|
package/dist/audiobooks.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/audiobooks.d.ts
|
|
@@ -38,7 +38,7 @@ declare const getAudiobook: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
38
38
|
totalChapters: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
type: z.ZodLiteral<"audiobook">;
|
|
40
40
|
uri: z.ZodOptional<z.ZodString>;
|
|
41
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
41
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
42
42
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
43
43
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
44
44
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -80,7 +80,7 @@ declare const getSeveralAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
80
80
|
type: z.ZodLiteral<"audiobook">;
|
|
81
81
|
uri: z.ZodOptional<z.ZodString>;
|
|
82
82
|
}, z.core.$strip>>;
|
|
83
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
83
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
84
84
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
85
85
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
86
86
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -167,7 +167,7 @@ declare const getAudiobookChapters: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
167
167
|
offset: z.ZodNumber;
|
|
168
168
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
169
169
|
total: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
170
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
171
171
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
172
172
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
173
173
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/audiobooks.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyAudiobookSchema, spotifyChapterPageSchema, spotifyIdSchema, spotifyMarketSchema } from "./schemas.mjs";
|
|
2
2
|
import { createSpotifyClient } from "./client.mjs";
|
|
3
|
-
import { t as spotifyOperation } from "./factory-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/audiobooks.ts
|
|
@@ -21,7 +21,7 @@ const audiobookChaptersInputSchema = z.object({
|
|
|
21
21
|
offset: z.number().int().nonnegative().optional()
|
|
22
22
|
});
|
|
23
23
|
const getAudiobook = spotifyOperation({
|
|
24
|
-
id: "
|
|
24
|
+
id: "spotify.get-spotify-audiobook",
|
|
25
25
|
name: "Get Spotify Audiobook",
|
|
26
26
|
description: "Fetch a single Spotify audiobook by ID.",
|
|
27
27
|
input: audiobookLookupInputSchema,
|
|
@@ -31,7 +31,7 @@ const getAudiobook = spotifyOperation({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const getSeveralAudiobooks = spotifyOperation({
|
|
34
|
-
id: "
|
|
34
|
+
id: "spotify.get-spotify-several-audiobooks",
|
|
35
35
|
name: "Get Several Spotify Audiobooks",
|
|
36
36
|
description: "Fetch multiple Spotify audiobooks in a single request.",
|
|
37
37
|
input: severalAudiobooksInputSchema,
|
|
@@ -41,7 +41,7 @@ const getSeveralAudiobooks = spotifyOperation({
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
const getAudiobookChapters = spotifyOperation({
|
|
44
|
-
id: "
|
|
44
|
+
id: "spotify.get-spotify-audiobook-chapters",
|
|
45
45
|
name: "Get Spotify Audiobook Chapters",
|
|
46
46
|
description: "List chapters for a Spotify audiobook.",
|
|
47
47
|
input: audiobookChaptersInputSchema,
|
package/dist/browse.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/browse.d.ts
|
|
@@ -65,7 +65,7 @@ declare const getFeaturedPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
65
65
|
offset: z.ZodNumber;
|
|
66
66
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
67
67
|
total: z.ZodOptional<z.ZodNumber>;
|
|
68
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
68
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
69
69
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
70
70
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
71
71
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/browse.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { spotifyMarketSchema, spotifyPlaylistPageSchema, spotifyTimestampSchema } from "./schemas.mjs";
|
|
2
2
|
import { createSpotifyClient } from "./client.mjs";
|
|
3
|
-
import { t as spotifyOperation } from "./factory-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/browse.ts
|
|
7
7
|
const getFeaturedPlaylists = spotifyOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "spotify.get-spotify-featured-playlists",
|
|
9
9
|
name: "Get Spotify Featured Playlists",
|
|
10
10
|
description: "List featured Spotify playlists for a market. This endpoint is deprecated upstream by Spotify.",
|
|
11
11
|
input: z.object({
|
package/dist/categories.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/categories.d.ts
|
|
@@ -25,7 +25,7 @@ declare const getBrowseCategories: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
25
25
|
offset: z.ZodNumber;
|
|
26
26
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
27
27
|
total: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
28
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
29
29
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
30
30
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
31
31
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -43,7 +43,7 @@ declare const getBrowseCategory: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>>;
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
name: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
46
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
47
47
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
48
48
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
49
49
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -109,7 +109,7 @@ declare const getCategoryPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
109
109
|
offset: z.ZodNumber;
|
|
110
110
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
111
111
|
total: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
112
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
113
113
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
114
114
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
115
115
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/categories.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyCategoryPageSchema, spotifyCategorySchema, spotifyMarketSchema, spotifyPlaylistPageSchema } from "./schemas.mjs";
|
|
2
2
|
import { createSpotifyClient } from "./client.mjs";
|
|
3
|
-
import { t as spotifyOperation } from "./factory-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/categories.ts
|
|
@@ -10,7 +10,7 @@ const categoryPagingSchema = z.object({
|
|
|
10
10
|
offset: z.number().int().nonnegative().optional()
|
|
11
11
|
});
|
|
12
12
|
const getBrowseCategories = spotifyOperation({
|
|
13
|
-
id: "
|
|
13
|
+
id: "spotify.get-spotify-browse-categories",
|
|
14
14
|
name: "Get Spotify Browse Categories",
|
|
15
15
|
description: "List Spotify browse categories.",
|
|
16
16
|
input: categoryPagingSchema.extend({
|
|
@@ -28,7 +28,7 @@ const getBrowseCategories = spotifyOperation({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
const getBrowseCategory = spotifyOperation({
|
|
31
|
-
id: "
|
|
31
|
+
id: "spotify.get-spotify-browse-category",
|
|
32
32
|
name: "Get Spotify Browse Category",
|
|
33
33
|
description: "Fetch a single Spotify browse category.",
|
|
34
34
|
input: z.object({
|
|
@@ -45,7 +45,7 @@ const getBrowseCategory = spotifyOperation({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
const getCategoryPlaylists = spotifyOperation({
|
|
48
|
-
id: "
|
|
48
|
+
id: "spotify.get-spotify-category-playlists",
|
|
49
49
|
name: "Get Spotify Category Playlists",
|
|
50
50
|
description: "List playlists for a Spotify browse category. This endpoint is deprecated upstream by Spotify.",
|
|
51
51
|
input: categoryPagingSchema.extend({
|
package/dist/chapters.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
4
|
|
|
5
5
|
//#region src/chapters.d.ts
|
|
@@ -75,7 +75,7 @@ declare const getChapter: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
type: z.ZodLiteral<"chapter">;
|
|
77
77
|
uri: z.ZodOptional<z.ZodString>;
|
|
78
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
78
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
79
79
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
80
80
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
81
81
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -154,7 +154,7 @@ declare const getSeveralChapters: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
154
154
|
type: z.ZodLiteral<"chapter">;
|
|
155
155
|
uri: z.ZodOptional<z.ZodString>;
|
|
156
156
|
}, z.core.$strip>>;
|
|
157
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
157
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
158
158
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
159
159
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
160
160
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/chapters.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyChapterSchema, spotifyIdSchema, spotifyMarketSchema } from "./schemas.mjs";
|
|
2
2
|
import { createSpotifyClient } from "./client.mjs";
|
|
3
|
-
import { t as spotifyOperation } from "./factory-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/chapters.ts
|
|
@@ -15,7 +15,7 @@ const severalChaptersInputSchema = z.object({
|
|
|
15
15
|
});
|
|
16
16
|
const severalChaptersOutputSchema = z.object({ chapters: z.array(spotifyChapterSchema) });
|
|
17
17
|
const getChapter = spotifyOperation({
|
|
18
|
-
id: "
|
|
18
|
+
id: "spotify.get-spotify-chapter",
|
|
19
19
|
name: "Get Spotify Chapter",
|
|
20
20
|
description: "Fetch a single Spotify chapter by ID.",
|
|
21
21
|
input: chapterLookupInputSchema,
|
|
@@ -25,7 +25,7 @@ const getChapter = spotifyOperation({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
const getSeveralChapters = spotifyOperation({
|
|
28
|
-
id: "
|
|
28
|
+
id: "spotify.get-spotify-several-chapters",
|
|
29
29
|
name: "Get Several Spotify Chapters",
|
|
30
30
|
description: "Fetch multiple Spotify chapters in a single request.",
|
|
31
31
|
input: severalChaptersInputSchema,
|