@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
package/dist/genres.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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/genres.d.ts
|
|
6
6
|
declare const getAvailableGenreSeeds: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
7
7
|
genres: z.ZodArray<z.ZodString>;
|
|
8
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
8
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
9
9
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
10
10
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
11
11
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/genres.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createSpotifyClient } from "./client.mjs";
|
|
2
|
-
import { t as spotifyOperation } from "./factory-
|
|
2
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/genres.ts
|
|
6
6
|
const availableGenreSeedsResponseSchema = z.object({ genres: z.array(z.string().min(1)) });
|
|
7
7
|
const getAvailableGenreSeeds = spotifyOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "spotify.get-spotify-available-genre-seeds",
|
|
9
9
|
name: "Get Spotify Available Genre Seeds",
|
|
10
10
|
description: "List Spotify recommendation genre seeds. This endpoint is deprecated upstream by Spotify.",
|
|
11
11
|
input: z.object({}),
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { CredentialSet, Operation } from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region ../../packages/integration-authoring/dist/official/runtime.mjs
|
|
5
|
+
const REGISTRY_KEY = "__ks_official_integration_metadata_registry";
|
|
6
|
+
function getRegistry() {
|
|
7
|
+
const globalStore = globalThis;
|
|
8
|
+
if (!globalStore[REGISTRY_KEY]) globalStore[REGISTRY_KEY] = /* @__PURE__ */ new WeakMap();
|
|
9
|
+
return globalStore[REGISTRY_KEY];
|
|
10
|
+
}
|
|
11
|
+
function registerOfficialOperation(operation, metadata) {
|
|
12
|
+
getRegistry().set(operation, Object.freeze({ ...metadata }));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../../packages/integration-authoring/dist/official/index.mjs
|
|
17
|
+
const OFFICIAL_CREDENTIAL_SET_ID_PREFIX = "keystroke:";
|
|
18
|
+
function officialCredentialSetId(id) {
|
|
19
|
+
return `${OFFICIAL_CREDENTIAL_SET_ID_PREFIX}${id}`;
|
|
20
|
+
}
|
|
21
|
+
function stripOfficialCredentialSetIdPrefix(id) {
|
|
22
|
+
return id.startsWith(OFFICIAL_CREDENTIAL_SET_ID_PREFIX) ? id.slice(10) : id;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates a factory for Keystroke-official integration operations.
|
|
26
|
+
*
|
|
27
|
+
* It keeps the same flat `run(input, credentials)` ergonomics as the generic
|
|
28
|
+
* operation factory, while registering official metadata for builder/runtime
|
|
29
|
+
* operation metadata.
|
|
30
|
+
*/
|
|
31
|
+
function createOfficialOperationFactory(credentialSet) {
|
|
32
|
+
const integrationId = stripOfficialCredentialSetIdPrefix(credentialSet.id);
|
|
33
|
+
return (config) => {
|
|
34
|
+
const wrappedRun = async (input, ctx) => {
|
|
35
|
+
const creds = ctx.credentials[credentialSet.id];
|
|
36
|
+
return config.run(input, creds);
|
|
37
|
+
};
|
|
38
|
+
const operation = new Operation({
|
|
39
|
+
id: config.id,
|
|
40
|
+
name: config.name,
|
|
41
|
+
description: config.description,
|
|
42
|
+
input: config.input,
|
|
43
|
+
output: config.output,
|
|
44
|
+
credentialSets: [credentialSet],
|
|
45
|
+
...config.tags !== void 0 ? { tags: config.tags } : {},
|
|
46
|
+
...config.needsApproval !== void 0 ? { needsApproval: config.needsApproval } : {},
|
|
47
|
+
...config.requiredOAuthScopes !== void 0 ? { requiredOAuthScopes: config.requiredOAuthScopes } : {},
|
|
48
|
+
...config.retries !== void 0 ? { retries: config.retries } : {},
|
|
49
|
+
...config.timeout !== void 0 ? { timeout: config.timeout } : {},
|
|
50
|
+
...config.maxDurationMs !== void 0 ? { maxDurationMs: config.maxDurationMs } : {},
|
|
51
|
+
run: wrappedRun
|
|
52
|
+
});
|
|
53
|
+
registerOfficialOperation(operation, { integrationId });
|
|
54
|
+
return operation;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Creates an official integration bundle from a single config object.
|
|
59
|
+
*
|
|
60
|
+
* - Creates the public `CredentialSet` internally.
|
|
61
|
+
* - Accepts optional `internal` fields for Keystroke-owned platform credentials.
|
|
62
|
+
*/
|
|
63
|
+
function defineOfficialIntegration(config) {
|
|
64
|
+
const internalCredentialSets = config.internal ?? {};
|
|
65
|
+
const allInternalCredentialSets = [
|
|
66
|
+
...internalCredentialSets.providerApp ? [internalCredentialSets.providerApp] : [],
|
|
67
|
+
...internalCredentialSets.providerAppVariants ?? [],
|
|
68
|
+
...internalCredentialSets.webhookVerification ? [internalCredentialSets.webhookVerification] : [],
|
|
69
|
+
...internalCredentialSets.other ?? []
|
|
70
|
+
];
|
|
71
|
+
const credentialSet = new CredentialSet({
|
|
72
|
+
id: config.id,
|
|
73
|
+
name: config.name,
|
|
74
|
+
description: config.description,
|
|
75
|
+
auth: config.auth,
|
|
76
|
+
...config.connections ? { connections: config.connections } : {},
|
|
77
|
+
...config.proxy ? { proxy: config.proxy } : {},
|
|
78
|
+
...config.needsRawSecret === true ? { needsRawSecret: true } : {}
|
|
79
|
+
});
|
|
80
|
+
return Object.freeze({
|
|
81
|
+
integration: {
|
|
82
|
+
id: config.id,
|
|
83
|
+
name: config.name,
|
|
84
|
+
...config.description !== void 0 ? { description: config.description } : {},
|
|
85
|
+
auth: config.auth,
|
|
86
|
+
...config.proxy ? { proxy: config.proxy } : {},
|
|
87
|
+
...config.needsRawSecret === true ? { needsRawSecret: true } : {},
|
|
88
|
+
...config.connections ? { connections: config.connections } : {}
|
|
89
|
+
},
|
|
90
|
+
credentialSet,
|
|
91
|
+
internalCredentialSets,
|
|
92
|
+
allInternalCredentialSets
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/_official/provider-app.ts
|
|
98
|
+
const spotifyAppCredentialSet = new CredentialSet({
|
|
99
|
+
id: officialCredentialSetId("spotify-app"),
|
|
100
|
+
exposure: "platform-only",
|
|
101
|
+
name: "Spotify App",
|
|
102
|
+
auth: z.object({
|
|
103
|
+
clientId: z.string().min(1),
|
|
104
|
+
clientSecret: z.string().min(1)
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
const spotifyOfficialProviderSeed = {
|
|
108
|
+
provider: "spotify",
|
|
109
|
+
appRef: "spotify-platform",
|
|
110
|
+
displayName: "Spotify Platform",
|
|
111
|
+
credentialSetName: "Keystroke Spotify Platform App",
|
|
112
|
+
envShape: {
|
|
113
|
+
KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID: z.string().optional(),
|
|
114
|
+
KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET: z.string().optional()
|
|
115
|
+
},
|
|
116
|
+
requiredEnvKeys: ["KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID", "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET"],
|
|
117
|
+
externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID",
|
|
118
|
+
buildCredentials: (env) => ({
|
|
119
|
+
clientId: env.KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID,
|
|
120
|
+
clientSecret: env.KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET
|
|
121
|
+
})
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/integration.ts
|
|
126
|
+
const spotifyAuthSchema = z.object({ SPOTIFY_ACCESS_TOKEN: z.string().min(1) });
|
|
127
|
+
const spotifyScopes = [
|
|
128
|
+
"user-read-private",
|
|
129
|
+
"user-read-email",
|
|
130
|
+
"user-read-recently-played",
|
|
131
|
+
"user-top-read",
|
|
132
|
+
"user-library-read",
|
|
133
|
+
"user-library-modify",
|
|
134
|
+
"playlist-read-private",
|
|
135
|
+
"playlist-read-collaborative",
|
|
136
|
+
"playlist-modify-private",
|
|
137
|
+
"playlist-modify-public",
|
|
138
|
+
"user-read-currently-playing",
|
|
139
|
+
"user-modify-playback-state",
|
|
140
|
+
"user-read-playback-state",
|
|
141
|
+
"user-follow-read",
|
|
142
|
+
"user-follow-modify",
|
|
143
|
+
"user-read-playback-position",
|
|
144
|
+
"ugc-image-upload"
|
|
145
|
+
];
|
|
146
|
+
const spotifyOfficialIntegration = {
|
|
147
|
+
id: "spotify",
|
|
148
|
+
name: "Spotify",
|
|
149
|
+
description: "Spotify playback, catalog, playlists, library, and polling triggers for Keystroke workflows",
|
|
150
|
+
proxy: { hosts: ["api.spotify.com", "accounts.spotify.com"] },
|
|
151
|
+
auth: spotifyAuthSchema,
|
|
152
|
+
connections: [{
|
|
153
|
+
id: "oauth",
|
|
154
|
+
kind: "oauth",
|
|
155
|
+
tokenType: "refreshable",
|
|
156
|
+
authUrl: "https://accounts.spotify.com/authorize",
|
|
157
|
+
tokenUrl: "https://accounts.spotify.com/api/token",
|
|
158
|
+
revokeUrl: null,
|
|
159
|
+
scopes: [...spotifyScopes],
|
|
160
|
+
vault: { accessToken: "SPOTIFY_ACCESS_TOKEN" }
|
|
161
|
+
}]
|
|
162
|
+
};
|
|
163
|
+
const spotifyBundle = defineOfficialIntegration({
|
|
164
|
+
...spotifyOfficialIntegration,
|
|
165
|
+
internal: { providerApp: spotifyAppCredentialSet }
|
|
166
|
+
});
|
|
167
|
+
const spotify = spotifyBundle.credentialSet;
|
|
168
|
+
|
|
169
|
+
//#endregion
|
|
170
|
+
export { spotifyOfficialProviderSeed as a, spotifyAppCredentialSet as i, spotifyBundle as n, createOfficialOperationFactory as o, spotifyOfficialIntegration as r, spotify as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
|
|
2
|
-
import { z } from "zod";
|
|
3
1
|
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
+
import { z } from "zod";
|
|
4
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
5
4
|
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
6
5
|
|
|
@@ -28,10 +27,10 @@ declare const spotifyOfficialIntegration: {
|
|
|
28
27
|
};
|
|
29
28
|
}[];
|
|
30
29
|
};
|
|
31
|
-
declare const spotifyBundle:
|
|
30
|
+
declare const spotifyBundle: undefined<"spotify", z.ZodObject<{
|
|
32
31
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
33
32
|
}, z.core.$strip>>;
|
|
34
|
-
declare const spotify: _keystrokehq_core0.CredentialSet<"
|
|
33
|
+
declare const spotify: _keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
35
34
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
36
35
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
37
36
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/library.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/library.d.ts
|
|
@@ -65,7 +65,7 @@ declare const listSavedAlbums: _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;
|
|
@@ -74,7 +74,7 @@ declare const saveAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
74
74
|
ids: z.ZodArray<z.ZodString>;
|
|
75
75
|
}, z.core.$strip>, z.ZodObject<{
|
|
76
76
|
success: z.ZodLiteral<true>;
|
|
77
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
77
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
78
78
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
79
79
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
80
80
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -83,14 +83,14 @@ declare const removeSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
83
83
|
ids: z.ZodArray<z.ZodString>;
|
|
84
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
85
85
|
success: z.ZodLiteral<true>;
|
|
86
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
86
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
87
87
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
88
88
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
89
89
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
90
90
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
91
91
|
declare const checkSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
92
92
|
ids: z.ZodArray<z.ZodString>;
|
|
93
|
-
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
93
|
+
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
94
94
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
95
95
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
96
96
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -184,7 +184,7 @@ declare const listSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
184
184
|
offset: z.ZodNumber;
|
|
185
185
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
186
186
|
total: z.ZodOptional<z.ZodNumber>;
|
|
187
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
187
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
188
188
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
189
189
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
190
190
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -193,7 +193,7 @@ declare const saveTracks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
193
193
|
ids: z.ZodArray<z.ZodString>;
|
|
194
194
|
}, z.core.$strip>, z.ZodObject<{
|
|
195
195
|
success: z.ZodLiteral<true>;
|
|
196
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
196
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
197
197
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
198
198
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
199
199
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -202,14 +202,14 @@ declare const removeSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
202
202
|
ids: z.ZodArray<z.ZodString>;
|
|
203
203
|
}, z.core.$strip>, z.ZodObject<{
|
|
204
204
|
success: z.ZodLiteral<true>;
|
|
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;
|
|
209
209
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
210
210
|
declare const checkSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
211
211
|
ids: z.ZodArray<z.ZodString>;
|
|
212
|
-
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
212
|
+
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
213
213
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
214
214
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
215
215
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -255,7 +255,7 @@ declare const listSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
255
255
|
offset: z.ZodNumber;
|
|
256
256
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
257
257
|
total: z.ZodOptional<z.ZodNumber>;
|
|
258
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
258
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
259
259
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
260
260
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
261
261
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -264,7 +264,7 @@ declare const saveShows: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
264
264
|
ids: z.ZodArray<z.ZodString>;
|
|
265
265
|
}, z.core.$strip>, z.ZodObject<{
|
|
266
266
|
success: z.ZodLiteral<true>;
|
|
267
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
267
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
268
268
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
269
269
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
270
270
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -273,14 +273,14 @@ declare const removeSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
273
273
|
ids: z.ZodArray<z.ZodString>;
|
|
274
274
|
}, z.core.$strip>, z.ZodObject<{
|
|
275
275
|
success: z.ZodLiteral<true>;
|
|
276
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
276
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
277
277
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
278
278
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
279
279
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
280
280
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
281
281
|
declare const checkSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
282
282
|
ids: z.ZodArray<z.ZodString>;
|
|
283
|
-
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
283
|
+
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
284
284
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
285
285
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
286
286
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -362,7 +362,7 @@ declare const listSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
362
362
|
offset: z.ZodNumber;
|
|
363
363
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
364
364
|
total: z.ZodOptional<z.ZodNumber>;
|
|
365
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
365
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
366
366
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
367
367
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
368
368
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -371,7 +371,7 @@ declare const saveEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
371
371
|
ids: z.ZodArray<z.ZodString>;
|
|
372
372
|
}, z.core.$strip>, z.ZodObject<{
|
|
373
373
|
success: z.ZodLiteral<true>;
|
|
374
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
374
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
375
375
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
376
376
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
377
377
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -380,14 +380,14 @@ declare const removeSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
380
380
|
ids: z.ZodArray<z.ZodString>;
|
|
381
381
|
}, z.core.$strip>, z.ZodObject<{
|
|
382
382
|
success: z.ZodLiteral<true>;
|
|
383
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
383
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
384
384
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
385
385
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
386
386
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
387
387
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
388
388
|
declare const checkSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
389
389
|
ids: z.ZodArray<z.ZodString>;
|
|
390
|
-
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
390
|
+
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
391
391
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
392
392
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
393
393
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -438,7 +438,7 @@ declare const listSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
438
438
|
offset: z.ZodNumber;
|
|
439
439
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
440
440
|
total: z.ZodOptional<z.ZodNumber>;
|
|
441
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
441
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
442
442
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
443
443
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
444
444
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -447,7 +447,7 @@ declare const saveAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
447
447
|
ids: z.ZodArray<z.ZodString>;
|
|
448
448
|
}, z.core.$strip>, z.ZodObject<{
|
|
449
449
|
success: z.ZodLiteral<true>;
|
|
450
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
450
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
451
451
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
452
452
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
453
453
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -456,14 +456,14 @@ declare const removeSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
456
456
|
ids: z.ZodArray<z.ZodString>;
|
|
457
457
|
}, z.core.$strip>, z.ZodObject<{
|
|
458
458
|
success: z.ZodLiteral<true>;
|
|
459
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
459
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
460
460
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
461
461
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
462
462
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
463
463
|
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
464
464
|
declare const checkSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
465
465
|
ids: z.ZodArray<z.ZodString>;
|
|
466
|
-
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
466
|
+
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
467
467
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
468
468
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
469
469
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/library.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyBooleanListSchema, spotifyIdSchema, spotifyMarketSchema, spotifyMutationSuccessSchema, spotifySavedAlbumPageSchema, spotifySavedAudiobookPageSchema, spotifySavedEpisodePageSchema, spotifySavedShowPageSchema, spotifySavedTrackPageSchema } 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/library.ts
|
|
@@ -11,7 +11,7 @@ const offsetPaginationInputSchema = z.object({
|
|
|
11
11
|
const marketOffsetPaginationInputSchema = offsetPaginationInputSchema.extend({ market: spotifyMarketSchema.optional() });
|
|
12
12
|
const savedItemIdsInputSchema = z.object({ ids: z.array(spotifyIdSchema).min(1).max(50) });
|
|
13
13
|
const listSavedAlbums = spotifyOperation({
|
|
14
|
-
id: "
|
|
14
|
+
id: "spotify.list-saved-albums",
|
|
15
15
|
name: "List Saved Albums",
|
|
16
16
|
description: "List albums saved in the connected Spotify account library.",
|
|
17
17
|
input: marketOffsetPaginationInputSchema,
|
|
@@ -21,7 +21,7 @@ const listSavedAlbums = spotifyOperation({
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const saveAlbums = spotifyOperation({
|
|
24
|
-
id: "
|
|
24
|
+
id: "spotify.save-albums",
|
|
25
25
|
name: "Save Albums",
|
|
26
26
|
description: "Save albums to the connected Spotify account library.",
|
|
27
27
|
input: savedItemIdsInputSchema,
|
|
@@ -32,7 +32,7 @@ const saveAlbums = spotifyOperation({
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
const removeSavedAlbums = spotifyOperation({
|
|
35
|
-
id: "
|
|
35
|
+
id: "spotify.remove-saved-albums",
|
|
36
36
|
name: "Remove Saved Albums",
|
|
37
37
|
description: "Remove saved albums from the connected Spotify account library.",
|
|
38
38
|
input: savedItemIdsInputSchema,
|
|
@@ -43,7 +43,7 @@ const removeSavedAlbums = spotifyOperation({
|
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
const checkSavedAlbums = spotifyOperation({
|
|
46
|
-
id: "
|
|
46
|
+
id: "spotify.check-saved-albums",
|
|
47
47
|
name: "Check Saved Albums",
|
|
48
48
|
description: "Check whether albums are saved in the connected Spotify account library.",
|
|
49
49
|
input: savedItemIdsInputSchema,
|
|
@@ -53,7 +53,7 @@ const checkSavedAlbums = spotifyOperation({
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
const listSavedTracks = spotifyOperation({
|
|
56
|
-
id: "
|
|
56
|
+
id: "spotify.list-saved-tracks",
|
|
57
57
|
name: "List Saved Tracks",
|
|
58
58
|
description: "List tracks saved in the connected Spotify account library.",
|
|
59
59
|
input: marketOffsetPaginationInputSchema,
|
|
@@ -63,7 +63,7 @@ const listSavedTracks = spotifyOperation({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
const saveTracks = spotifyOperation({
|
|
66
|
-
id: "
|
|
66
|
+
id: "spotify.save-tracks",
|
|
67
67
|
name: "Save Tracks",
|
|
68
68
|
description: "Save tracks to the connected Spotify account library.",
|
|
69
69
|
input: savedItemIdsInputSchema,
|
|
@@ -74,7 +74,7 @@ const saveTracks = spotifyOperation({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
const removeSavedTracks = spotifyOperation({
|
|
77
|
-
id: "
|
|
77
|
+
id: "spotify.remove-saved-tracks",
|
|
78
78
|
name: "Remove Saved Tracks",
|
|
79
79
|
description: "Remove saved tracks from the connected Spotify account library.",
|
|
80
80
|
input: savedItemIdsInputSchema,
|
|
@@ -85,7 +85,7 @@ const removeSavedTracks = spotifyOperation({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
const checkSavedTracks = spotifyOperation({
|
|
88
|
-
id: "
|
|
88
|
+
id: "spotify.check-saved-tracks",
|
|
89
89
|
name: "Check Saved Tracks",
|
|
90
90
|
description: "Check whether tracks are saved in the connected Spotify account library.",
|
|
91
91
|
input: savedItemIdsInputSchema,
|
|
@@ -95,7 +95,7 @@ const checkSavedTracks = spotifyOperation({
|
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
const listSavedShows = spotifyOperation({
|
|
98
|
-
id: "
|
|
98
|
+
id: "spotify.list-saved-shows",
|
|
99
99
|
name: "List Saved Shows",
|
|
100
100
|
description: "List shows saved in the connected Spotify account library.",
|
|
101
101
|
input: offsetPaginationInputSchema,
|
|
@@ -105,7 +105,7 @@ const listSavedShows = spotifyOperation({
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
const saveShows = spotifyOperation({
|
|
108
|
-
id: "
|
|
108
|
+
id: "spotify.save-shows",
|
|
109
109
|
name: "Save Shows",
|
|
110
110
|
description: "Save shows to the connected Spotify account library.",
|
|
111
111
|
input: savedItemIdsInputSchema,
|
|
@@ -116,7 +116,7 @@ const saveShows = spotifyOperation({
|
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
const removeSavedShows = spotifyOperation({
|
|
119
|
-
id: "
|
|
119
|
+
id: "spotify.remove-saved-shows",
|
|
120
120
|
name: "Remove Saved Shows",
|
|
121
121
|
description: "Remove saved shows from the connected Spotify account library.",
|
|
122
122
|
input: savedItemIdsInputSchema,
|
|
@@ -127,7 +127,7 @@ const removeSavedShows = spotifyOperation({
|
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
const checkSavedShows = spotifyOperation({
|
|
130
|
-
id: "
|
|
130
|
+
id: "spotify.check-saved-shows",
|
|
131
131
|
name: "Check Saved Shows",
|
|
132
132
|
description: "Check whether shows are saved in the connected Spotify account library.",
|
|
133
133
|
input: savedItemIdsInputSchema,
|
|
@@ -137,7 +137,7 @@ const checkSavedShows = spotifyOperation({
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
const listSavedEpisodes = spotifyOperation({
|
|
140
|
-
id: "
|
|
140
|
+
id: "spotify.list-saved-episodes",
|
|
141
141
|
name: "List Saved Episodes",
|
|
142
142
|
description: "List episodes saved in the connected Spotify account library.",
|
|
143
143
|
input: marketOffsetPaginationInputSchema,
|
|
@@ -147,7 +147,7 @@ const listSavedEpisodes = spotifyOperation({
|
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
const saveEpisodes = spotifyOperation({
|
|
150
|
-
id: "
|
|
150
|
+
id: "spotify.save-episodes",
|
|
151
151
|
name: "Save Episodes",
|
|
152
152
|
description: "Save episodes to the connected Spotify account library.",
|
|
153
153
|
input: savedItemIdsInputSchema,
|
|
@@ -158,7 +158,7 @@ const saveEpisodes = spotifyOperation({
|
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
const removeSavedEpisodes = spotifyOperation({
|
|
161
|
-
id: "
|
|
161
|
+
id: "spotify.remove-saved-episodes",
|
|
162
162
|
name: "Remove Saved Episodes",
|
|
163
163
|
description: "Remove saved episodes from the connected Spotify account library.",
|
|
164
164
|
input: savedItemIdsInputSchema,
|
|
@@ -169,7 +169,7 @@ const removeSavedEpisodes = spotifyOperation({
|
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
const checkSavedEpisodes = spotifyOperation({
|
|
172
|
-
id: "
|
|
172
|
+
id: "spotify.check-saved-episodes",
|
|
173
173
|
name: "Check Saved Episodes",
|
|
174
174
|
description: "Check whether episodes are saved in the connected Spotify account library.",
|
|
175
175
|
input: savedItemIdsInputSchema,
|
|
@@ -179,7 +179,7 @@ const checkSavedEpisodes = spotifyOperation({
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
const listSavedAudiobooks = spotifyOperation({
|
|
182
|
-
id: "
|
|
182
|
+
id: "spotify.list-saved-audiobooks",
|
|
183
183
|
name: "List Saved Audiobooks",
|
|
184
184
|
description: "List audiobooks saved in the connected Spotify account library.",
|
|
185
185
|
input: offsetPaginationInputSchema,
|
|
@@ -189,7 +189,7 @@ const listSavedAudiobooks = spotifyOperation({
|
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
const saveAudiobooks = spotifyOperation({
|
|
192
|
-
id: "
|
|
192
|
+
id: "spotify.save-audiobooks",
|
|
193
193
|
name: "Save Audiobooks",
|
|
194
194
|
description: "Save audiobooks to the connected Spotify account library.",
|
|
195
195
|
input: savedItemIdsInputSchema,
|
|
@@ -200,7 +200,7 @@ const saveAudiobooks = spotifyOperation({
|
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
const removeSavedAudiobooks = spotifyOperation({
|
|
203
|
-
id: "
|
|
203
|
+
id: "spotify.remove-saved-audiobooks",
|
|
204
204
|
name: "Remove Saved Audiobooks",
|
|
205
205
|
description: "Remove saved audiobooks from the connected Spotify account library.",
|
|
206
206
|
input: savedItemIdsInputSchema,
|
|
@@ -211,7 +211,7 @@ const removeSavedAudiobooks = spotifyOperation({
|
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
const checkSavedAudiobooks = spotifyOperation({
|
|
214
|
-
id: "
|
|
214
|
+
id: "spotify.check-saved-audiobooks",
|
|
215
215
|
name: "Check Saved Audiobooks",
|
|
216
216
|
description: "Check whether audiobooks are saved in the connected Spotify account library.",
|
|
217
217
|
input: savedItemIdsInputSchema,
|
package/dist/markets.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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/markets.d.ts
|
|
6
6
|
declare const getAvailableMarkets: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
7
7
|
markets: z.ZodArray<z.ZodString>;
|
|
8
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
8
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
9
9
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
10
10
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
11
11
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/markets.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { 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/markets.ts
|
|
7
7
|
const availableMarketsResponseSchema = z.object({ markets: z.array(spotifyMarketSchema) });
|
|
8
8
|
const getAvailableMarkets = spotifyOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "spotify.get-spotify-available-markets",
|
|
10
10
|
name: "Get Spotify Available Markets",
|
|
11
11
|
description: "List the markets currently supported by Spotify.",
|
|
12
12
|
input: z.object({}),
|
package/dist/me.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/me.d.ts
|
|
@@ -24,7 +24,7 @@ declare const getMe: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>
|
|
|
24
24
|
height: z.ZodNullable<z.ZodNumber>;
|
|
25
25
|
width: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
}, z.core.$strip>>>;
|
|
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;
|
|
@@ -65,7 +65,7 @@ declare const getMyTopArtists: _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;
|
|
@@ -160,7 +160,7 @@ declare const getMyTopTracks: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
160
160
|
offset: z.ZodNumber;
|
|
161
161
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
162
162
|
total: z.ZodOptional<z.ZodNumber>;
|
|
163
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
163
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
164
164
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
165
165
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
166
166
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|