@keystrokehq/spotify 0.0.8 → 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 +1 -1
- package/dist/artists.d.mts +6 -6
- package/dist/artists.mjs +1 -1
- package/dist/audio-analysis.d.mts +2 -2
- package/dist/audio-analysis.mjs +1 -1
- package/dist/audio-features.d.mts +3 -3
- package/dist/audio-features.mjs +1 -1
- package/dist/audiobooks.d.mts +4 -4
- package/dist/audiobooks.mjs +1 -1
- package/dist/browse.d.mts +2 -2
- package/dist/browse.mjs +1 -1
- package/dist/categories.d.mts +4 -4
- package/dist/categories.mjs +1 -1
- package/dist/chapters.d.mts +3 -3
- package/dist/chapters.mjs +1 -1
- 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 +1 -1
- package/dist/factory-C9W7aXmR.mjs +7 -0
- package/dist/follow.d.mts +5 -5
- package/dist/follow.mjs +1 -1
- package/dist/genres.d.mts +2 -2
- package/dist/genres.mjs +1 -1
- 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 +1 -1
- package/dist/markets.d.mts +2 -2
- package/dist/markets.mjs +1 -1
- package/dist/me.d.mts +4 -4
- package/dist/me.mjs +1 -1
- package/dist/player.d.mts +18 -18
- package/dist/player.mjs +1 -1
- package/dist/playlists.d.mts +15 -15
- package/dist/playlists.mjs +1 -1
- package/dist/recommendations.d.mts +2 -2
- package/dist/recommendations.mjs +1 -1
- package/dist/schemas.d.mts +1 -1
- package/dist/search.d.mts +3 -3
- package/dist/search.mjs +1 -1
- package/dist/shows.d.mts +4 -4
- package/dist/shows.mjs +1 -1
- package/dist/tracks.d.mts +3 -3
- package/dist/tracks.mjs +1 -1
- package/dist/triggers.d.mts +2 -3
- package/dist/triggers.mjs +56 -7
- package/dist/users.d.mts +2 -2
- package/dist/users.mjs +1 -1
- package/package.json +4 -4
- package/dist/factory-C3uQLYXY.mjs +0 -8
- package/dist/integration-BK1PIn1V.mjs +0 -78
|
@@ -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
|
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,6 +1,6 @@
|
|
|
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
|
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;
|
package/dist/me.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyArtistPageSchema, spotifyTrackPageSchema, spotifyUserSchema } 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/me.ts
|
package/dist/player.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/player.d.ts
|
|
@@ -171,13 +171,13 @@ declare const getPlaybackState: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
171
171
|
shuffleState: z.ZodBoolean;
|
|
172
172
|
timestamp: z.ZodNumber;
|
|
173
173
|
currentlyPlayingType: z.ZodOptional<z.ZodEnum<{
|
|
174
|
-
track: "track";
|
|
175
174
|
unknown: "unknown";
|
|
175
|
+
track: "track";
|
|
176
176
|
episode: "episode";
|
|
177
177
|
ad: "ad";
|
|
178
178
|
}>>;
|
|
179
179
|
actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
180
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
180
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
181
181
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
182
182
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
183
183
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -187,7 +187,7 @@ declare const transferPlayback: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
187
187
|
play: z.ZodOptional<z.ZodBoolean>;
|
|
188
188
|
}, z.core.$strip>, z.ZodObject<{
|
|
189
189
|
success: z.ZodLiteral<true>;
|
|
190
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
190
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
191
191
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
192
192
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
193
193
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -203,7 +203,7 @@ declare const getAvailableDevices: _keystrokehq_core0.Operation<z.ZodObject<{},
|
|
|
203
203
|
volumePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
204
204
|
supportsVolume: z.ZodOptional<z.ZodBoolean>;
|
|
205
205
|
}, z.core.$strip>>;
|
|
206
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
206
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
207
207
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
208
208
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
209
209
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -380,13 +380,13 @@ declare const getCurrentlyPlaying: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
380
380
|
shuffleState: z.ZodBoolean;
|
|
381
381
|
timestamp: z.ZodNumber;
|
|
382
382
|
currentlyPlayingType: z.ZodOptional<z.ZodEnum<{
|
|
383
|
-
track: "track";
|
|
384
383
|
unknown: "unknown";
|
|
384
|
+
track: "track";
|
|
385
385
|
episode: "episode";
|
|
386
386
|
ad: "ad";
|
|
387
387
|
}>>;
|
|
388
388
|
actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
389
|
-
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
389
|
+
}, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
390
390
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
391
391
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
392
392
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -402,7 +402,7 @@ declare const startOrResumePlayback: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
402
402
|
positionMs: z.ZodOptional<z.ZodNumber>;
|
|
403
403
|
}, z.core.$strip>, z.ZodObject<{
|
|
404
404
|
success: z.ZodLiteral<true>;
|
|
405
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
405
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
406
406
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
407
407
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
408
408
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -411,7 +411,7 @@ declare const pausePlayback: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
411
411
|
deviceId: z.ZodOptional<z.ZodString>;
|
|
412
412
|
}, z.core.$strip>, z.ZodObject<{
|
|
413
413
|
success: z.ZodLiteral<true>;
|
|
414
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
414
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
415
415
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
416
416
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
417
417
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -420,7 +420,7 @@ declare const skipToNext: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
420
420
|
deviceId: z.ZodOptional<z.ZodString>;
|
|
421
421
|
}, z.core.$strip>, z.ZodObject<{
|
|
422
422
|
success: z.ZodLiteral<true>;
|
|
423
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
423
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
424
424
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
425
425
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
426
426
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -429,7 +429,7 @@ declare const skipToPrevious: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
429
429
|
deviceId: z.ZodOptional<z.ZodString>;
|
|
430
430
|
}, z.core.$strip>, z.ZodObject<{
|
|
431
431
|
success: z.ZodLiteral<true>;
|
|
432
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
432
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
433
433
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
434
434
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
435
435
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -439,7 +439,7 @@ declare const seekToPosition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
439
439
|
positionMs: z.ZodNumber;
|
|
440
440
|
}, z.core.$strip>, z.ZodObject<{
|
|
441
441
|
success: z.ZodLiteral<true>;
|
|
442
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
442
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
443
443
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
444
444
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
445
445
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -453,7 +453,7 @@ declare const setRepeatMode: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
453
453
|
}>;
|
|
454
454
|
}, z.core.$strip>, z.ZodObject<{
|
|
455
455
|
success: z.ZodLiteral<true>;
|
|
456
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
456
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
457
457
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
458
458
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
459
459
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -463,7 +463,7 @@ declare const setPlaybackVolume: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
463
463
|
volumePercent: z.ZodNumber;
|
|
464
464
|
}, z.core.$strip>, z.ZodObject<{
|
|
465
465
|
success: z.ZodLiteral<true>;
|
|
466
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
466
|
+
}, z.core.$strip>, 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;
|
|
@@ -473,7 +473,7 @@ declare const setShuffleMode: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
473
473
|
state: z.ZodBoolean;
|
|
474
474
|
}, z.core.$strip>, z.ZodObject<{
|
|
475
475
|
success: z.ZodLiteral<true>;
|
|
476
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
476
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
477
477
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
478
478
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
479
479
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -578,7 +578,7 @@ declare const getRecentlyPlayed: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
578
578
|
after: z.ZodOptional<z.ZodString>;
|
|
579
579
|
before: z.ZodOptional<z.ZodString>;
|
|
580
580
|
}, z.core.$strip>>;
|
|
581
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
581
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
582
582
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
583
583
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
584
584
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -588,7 +588,7 @@ declare const addToQueue: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
588
588
|
uri: z.ZodString;
|
|
589
589
|
}, z.core.$strip>, z.ZodObject<{
|
|
590
590
|
success: z.ZodLiteral<true>;
|
|
591
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
591
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
592
592
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
593
593
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
594
594
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -868,7 +868,7 @@ declare const getQueue: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$str
|
|
|
868
868
|
type: z.ZodLiteral<"episode">;
|
|
869
869
|
uri: z.ZodOptional<z.ZodString>;
|
|
870
870
|
}, z.core.$strip>], "type">>;
|
|
871
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
871
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
872
872
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
873
873
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
874
874
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/player.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyDeviceSchema, spotifyIdSchema, spotifyMarketSchema, spotifyMutationSuccessSchema, spotifyPlaybackStateSchema, spotifyQueueSchema, spotifyRecentlyPlayedPageSchema, spotifyUriSchema } 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/player.ts
|