@keystrokehq/spotify 0.0.9 → 0.0.15

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.
Files changed (57) hide show
  1. package/dist/_official/index.d.mts +3 -7
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/albums.d.mts +9 -18
  4. package/dist/albums.mjs +1 -1
  5. package/dist/artists.d.mts +11 -22
  6. package/dist/artists.mjs +1 -1
  7. package/dist/audio-analysis.d.mts +3 -6
  8. package/dist/audio-analysis.mjs +1 -1
  9. package/dist/audio-features.d.mts +5 -10
  10. package/dist/audio-features.mjs +1 -1
  11. package/dist/audiobooks.d.mts +7 -14
  12. package/dist/audiobooks.mjs +1 -1
  13. package/dist/browse.d.mts +3 -6
  14. package/dist/browse.mjs +1 -1
  15. package/dist/categories.d.mts +7 -14
  16. package/dist/categories.mjs +1 -1
  17. package/dist/chapters.d.mts +5 -10
  18. package/dist/chapters.mjs +1 -1
  19. package/dist/client.d.mts +230 -230
  20. package/dist/connection.d.mts +1 -1
  21. package/dist/connection.mjs +1 -1
  22. package/dist/episodes.d.mts +5 -10
  23. package/dist/episodes.mjs +1 -1
  24. package/dist/factory-DMprpzS1.mjs +8 -0
  25. package/dist/follow.d.mts +9 -18
  26. package/dist/follow.mjs +1 -1
  27. package/dist/genres.d.mts +3 -6
  28. package/dist/genres.mjs +1 -1
  29. package/dist/integration-B5oEi2sg.d.mts +27 -0
  30. package/dist/integration-D9ABjTOP.mjs +51 -0
  31. package/dist/library.d.mts +41 -82
  32. package/dist/library.mjs +1 -1
  33. package/dist/markets.d.mts +3 -6
  34. package/dist/markets.mjs +1 -1
  35. package/dist/me.d.mts +7 -14
  36. package/dist/me.mjs +1 -1
  37. package/dist/player.d.mts +33 -64
  38. package/dist/player.mjs +1 -1
  39. package/dist/playlists.d.mts +29 -58
  40. package/dist/playlists.mjs +1 -1
  41. package/dist/recommendations.d.mts +3 -6
  42. package/dist/recommendations.mjs +1 -1
  43. package/dist/schemas.d.mts +1 -1
  44. package/dist/search.d.mts +4 -7
  45. package/dist/search.mjs +1 -1
  46. package/dist/shows.d.mts +7 -14
  47. package/dist/shows.mjs +1 -1
  48. package/dist/tracks.d.mts +5 -10
  49. package/dist/tracks.mjs +1 -1
  50. package/dist/triggers.d.mts +3 -2
  51. package/dist/triggers.mjs +7 -56
  52. package/dist/users.d.mts +3 -6
  53. package/dist/users.mjs +1 -1
  54. package/package.json +5 -5
  55. package/dist/factory-C9W7aXmR.mjs +0 -7
  56. package/dist/integration-CrkQTg9q.mjs +0 -170
  57. package/dist/integration-DXXNe4_j.d.mts +0 -40
@@ -0,0 +1,27 @@
1
+ import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
+ import { z } from "zod";
3
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
+ import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
+
6
+ //#region src/integration.d.ts
7
+ declare const spotifyOfficialIntegration: {
8
+ id: "spotify";
9
+ name: string;
10
+ description: string;
11
+ credentialType: "oauth";
12
+ proxy: {
13
+ hosts: string[];
14
+ };
15
+ auth: z.ZodObject<{
16
+ SPOTIFY_ACCESS_TOKEN: z.ZodString;
17
+ }, z.core.$strip>;
18
+ };
19
+ declare const spotifyBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"spotify", z.ZodObject<{
20
+ SPOTIFY_ACCESS_TOKEN: z.ZodString;
21
+ }, z.core.$strip>>;
22
+ declare const spotify: _keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
23
+ SPOTIFY_ACCESS_TOKEN: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ type SpotifyCredentials = InferCredentialSetAuth<typeof spotify>;
26
+ //#endregion
27
+ export { spotifyOfficialIntegration as i, spotify as n, spotifyBundle as r, SpotifyCredentials as t };
@@ -0,0 +1,51 @@
1
+ import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
2
+ import { z } from "zod";
3
+ import { CredentialSet } from "@keystrokehq/core";
4
+
5
+ //#region src/_official/provider-app.ts
6
+ const spotifyAppCredentialSet = new CredentialSet({
7
+ id: officialCredentialSetId("spotify-app"),
8
+ credentialType: "manual",
9
+ exposure: "platform-only",
10
+ name: "Spotify App",
11
+ auth: z.object({
12
+ clientId: z.string().min(1),
13
+ clientSecret: z.string().min(1)
14
+ })
15
+ });
16
+ const spotifyOfficialProviderSeed = {
17
+ provider: "spotify",
18
+ appRef: "spotify-platform",
19
+ displayName: "Spotify Platform",
20
+ credentialSetName: "Keystroke Spotify Platform App",
21
+ envShape: {
22
+ KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID: z.string().optional(),
23
+ KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET: z.string().optional()
24
+ },
25
+ requiredEnvKeys: ["KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID", "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET"],
26
+ externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID",
27
+ buildCredentials: (env) => ({
28
+ clientId: env.KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID,
29
+ clientSecret: env.KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET
30
+ })
31
+ };
32
+
33
+ //#endregion
34
+ //#region src/integration.ts
35
+ const spotifyAuthSchema = z.object({ SPOTIFY_ACCESS_TOKEN: z.string().min(1) });
36
+ const spotifyOfficialIntegration = {
37
+ id: "spotify",
38
+ name: "Spotify",
39
+ description: "Spotify playback, catalog, playlists, library, and polling triggers for Keystroke workflows",
40
+ credentialType: "oauth",
41
+ proxy: { hosts: ["api.spotify.com", "accounts.spotify.com"] },
42
+ auth: spotifyAuthSchema
43
+ };
44
+ const spotifyBundle = defineOfficialIntegration({
45
+ ...spotifyOfficialIntegration,
46
+ internal: { providerApp: spotifyAppCredentialSet }
47
+ });
48
+ const spotify = spotifyBundle.credentialSet;
49
+
50
+ //#endregion
51
+ export { spotifyOfficialProviderSeed as a, spotifyAppCredentialSet as i, spotifyBundle as n, spotifyOfficialIntegration as r, spotify as t };
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/library.d.ts
6
5
  declare const listSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -65,36 +64,28 @@ declare const listSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
65
64
  offset: z.ZodNumber;
66
65
  previousPageToken: z.ZodOptional<z.ZodString>;
67
66
  total: z.ZodOptional<z.ZodNumber>;
68
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
69
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
70
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
67
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
71
68
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
72
- }, z.core.$strip>>[] | undefined>], undefined>;
69
+ }, z.core.$strip>>], undefined>;
73
70
  declare const saveAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
74
71
  ids: z.ZodArray<z.ZodString>;
75
72
  }, z.core.$strip>, z.ZodObject<{
76
73
  success: z.ZodLiteral<true>;
77
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
74
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
78
75
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
79
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
80
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
81
- }, z.core.$strip>>[] | undefined>], undefined>;
76
+ }, z.core.$strip>>], undefined>;
82
77
  declare const removeSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
83
78
  ids: z.ZodArray<z.ZodString>;
84
79
  }, z.core.$strip>, z.ZodObject<{
85
80
  success: z.ZodLiteral<true>;
86
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
87
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
88
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
81
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
89
82
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
90
- }, z.core.$strip>>[] | undefined>], undefined>;
83
+ }, z.core.$strip>>], undefined>;
91
84
  declare const checkSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
92
85
  ids: z.ZodArray<z.ZodString>;
93
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
94
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
95
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
86
+ }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
96
87
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
97
- }, z.core.$strip>>[] | undefined>], undefined>;
88
+ }, z.core.$strip>>], undefined>;
98
89
  declare const listSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
99
90
  limit: z.ZodOptional<z.ZodNumber>;
100
91
  offset: z.ZodOptional<z.ZodNumber>;
@@ -184,36 +175,28 @@ declare const listSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
184
175
  offset: z.ZodNumber;
185
176
  previousPageToken: z.ZodOptional<z.ZodString>;
186
177
  total: z.ZodOptional<z.ZodNumber>;
187
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
178
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
188
179
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
189
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
190
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
191
- }, z.core.$strip>>[] | undefined>], undefined>;
180
+ }, z.core.$strip>>], undefined>;
192
181
  declare const saveTracks: _keystrokehq_core0.Operation<z.ZodObject<{
193
182
  ids: z.ZodArray<z.ZodString>;
194
183
  }, z.core.$strip>, z.ZodObject<{
195
184
  success: z.ZodLiteral<true>;
196
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
197
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
198
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
185
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
199
186
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
200
- }, z.core.$strip>>[] | undefined>], undefined>;
187
+ }, z.core.$strip>>], undefined>;
201
188
  declare const removeSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
202
189
  ids: z.ZodArray<z.ZodString>;
203
190
  }, z.core.$strip>, z.ZodObject<{
204
191
  success: z.ZodLiteral<true>;
205
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
206
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
207
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
192
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
208
193
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
209
- }, z.core.$strip>>[] | undefined>], undefined>;
194
+ }, z.core.$strip>>], undefined>;
210
195
  declare const checkSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
211
196
  ids: z.ZodArray<z.ZodString>;
212
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
197
+ }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
213
198
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
214
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
215
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
216
- }, z.core.$strip>>[] | undefined>], undefined>;
199
+ }, z.core.$strip>>], undefined>;
217
200
  declare const listSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
218
201
  limit: z.ZodOptional<z.ZodNumber>;
219
202
  offset: z.ZodOptional<z.ZodNumber>;
@@ -255,36 +238,28 @@ declare const listSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
255
238
  offset: z.ZodNumber;
256
239
  previousPageToken: z.ZodOptional<z.ZodString>;
257
240
  total: z.ZodOptional<z.ZodNumber>;
258
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
259
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
260
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
241
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
261
242
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
262
- }, z.core.$strip>>[] | undefined>], undefined>;
243
+ }, z.core.$strip>>], undefined>;
263
244
  declare const saveShows: _keystrokehq_core0.Operation<z.ZodObject<{
264
245
  ids: z.ZodArray<z.ZodString>;
265
246
  }, z.core.$strip>, z.ZodObject<{
266
247
  success: z.ZodLiteral<true>;
267
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
248
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
268
249
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
269
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
270
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
271
- }, z.core.$strip>>[] | undefined>], undefined>;
250
+ }, z.core.$strip>>], undefined>;
272
251
  declare const removeSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
273
252
  ids: z.ZodArray<z.ZodString>;
274
253
  }, z.core.$strip>, z.ZodObject<{
275
254
  success: z.ZodLiteral<true>;
276
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
277
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
278
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
255
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
279
256
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
280
- }, z.core.$strip>>[] | undefined>], undefined>;
257
+ }, z.core.$strip>>], undefined>;
281
258
  declare const checkSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
282
259
  ids: z.ZodArray<z.ZodString>;
283
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
284
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
285
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
260
+ }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
286
261
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
287
- }, z.core.$strip>>[] | undefined>], undefined>;
262
+ }, z.core.$strip>>], undefined>;
288
263
  declare const listSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
289
264
  limit: z.ZodOptional<z.ZodNumber>;
290
265
  offset: z.ZodOptional<z.ZodNumber>;
@@ -362,36 +337,28 @@ declare const listSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
362
337
  offset: z.ZodNumber;
363
338
  previousPageToken: z.ZodOptional<z.ZodString>;
364
339
  total: z.ZodOptional<z.ZodNumber>;
365
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
340
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
366
341
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
367
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
368
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
369
- }, z.core.$strip>>[] | undefined>], undefined>;
342
+ }, z.core.$strip>>], undefined>;
370
343
  declare const saveEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
371
344
  ids: z.ZodArray<z.ZodString>;
372
345
  }, z.core.$strip>, z.ZodObject<{
373
346
  success: z.ZodLiteral<true>;
374
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
375
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
376
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
347
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
377
348
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
378
- }, z.core.$strip>>[] | undefined>], undefined>;
349
+ }, z.core.$strip>>], undefined>;
379
350
  declare const removeSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
380
351
  ids: z.ZodArray<z.ZodString>;
381
352
  }, z.core.$strip>, z.ZodObject<{
382
353
  success: z.ZodLiteral<true>;
383
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
384
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
385
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
354
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
386
355
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
387
- }, z.core.$strip>>[] | undefined>], undefined>;
356
+ }, z.core.$strip>>], undefined>;
388
357
  declare const checkSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
389
358
  ids: z.ZodArray<z.ZodString>;
390
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
359
+ }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
391
360
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
392
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
393
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
394
- }, z.core.$strip>>[] | undefined>], undefined>;
361
+ }, z.core.$strip>>], undefined>;
395
362
  declare const listSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
396
363
  limit: z.ZodOptional<z.ZodNumber>;
397
364
  offset: z.ZodOptional<z.ZodNumber>;
@@ -438,35 +405,27 @@ declare const listSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
438
405
  offset: z.ZodNumber;
439
406
  previousPageToken: z.ZodOptional<z.ZodString>;
440
407
  total: z.ZodOptional<z.ZodNumber>;
441
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
442
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
443
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
408
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
444
409
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
445
- }, z.core.$strip>>[] | undefined>], undefined>;
410
+ }, z.core.$strip>>], undefined>;
446
411
  declare const saveAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
447
412
  ids: z.ZodArray<z.ZodString>;
448
413
  }, z.core.$strip>, z.ZodObject<{
449
414
  success: z.ZodLiteral<true>;
450
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
451
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
452
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
415
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
453
416
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
454
- }, z.core.$strip>>[] | undefined>], undefined>;
417
+ }, z.core.$strip>>], undefined>;
455
418
  declare const removeSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
456
419
  ids: z.ZodArray<z.ZodString>;
457
420
  }, z.core.$strip>, z.ZodObject<{
458
421
  success: z.ZodLiteral<true>;
459
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
422
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
460
423
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
461
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
462
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
463
- }, z.core.$strip>>[] | undefined>], undefined>;
424
+ }, z.core.$strip>>], undefined>;
464
425
  declare const checkSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
465
426
  ids: z.ZodArray<z.ZodString>;
466
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
467
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
468
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
427
+ }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
469
428
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
470
- }, z.core.$strip>>[] | undefined>], undefined>;
429
+ }, z.core.$strip>>], undefined>;
471
430
  //#endregion
472
431
  export { checkSavedAlbums, checkSavedAudiobooks, checkSavedEpisodes, checkSavedShows, checkSavedTracks, listSavedAlbums, listSavedAudiobooks, listSavedEpisodes, listSavedShows, listSavedTracks, removeSavedAlbums, removeSavedAudiobooks, removeSavedEpisodes, removeSavedShows, removeSavedTracks, saveAlbums, saveAudiobooks, saveEpisodes, saveShows, saveTracks };
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-C9W7aXmR.mjs";
3
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/library.ts
@@ -1,14 +1,11 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/markets.d.ts
6
5
  declare const getAvailableMarkets: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
7
6
  markets: z.ZodArray<z.ZodString>;
8
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
9
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
10
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
7
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
11
8
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
12
- }, z.core.$strip>>[] | undefined>], undefined>;
9
+ }, z.core.$strip>>], undefined>;
13
10
  //#endregion
14
11
  export { getAvailableMarkets };
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-C9W7aXmR.mjs";
3
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/markets.ts
package/dist/me.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/me.d.ts
6
5
  declare const getMe: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
@@ -24,11 +23,9 @@ declare const getMe: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>
24
23
  height: z.ZodNullable<z.ZodNumber>;
25
24
  width: z.ZodNullable<z.ZodNumber>;
26
25
  }, z.core.$strip>>>;
27
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
28
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
29
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
26
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
30
27
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
31
- }, z.core.$strip>>[] | undefined>], undefined>;
28
+ }, z.core.$strip>>], undefined>;
32
29
  declare const getMyTopArtists: _keystrokehq_core0.Operation<z.ZodObject<{
33
30
  timeRange: z.ZodOptional<z.ZodEnum<{
34
31
  short_term: "short_term";
@@ -65,11 +62,9 @@ declare const getMyTopArtists: _keystrokehq_core0.Operation<z.ZodObject<{
65
62
  offset: z.ZodNumber;
66
63
  previousPageToken: z.ZodOptional<z.ZodString>;
67
64
  total: z.ZodOptional<z.ZodNumber>;
68
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
65
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
69
66
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
70
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
71
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
72
- }, z.core.$strip>>[] | undefined>], undefined>;
67
+ }, z.core.$strip>>], undefined>;
73
68
  declare const getMyTopTracks: _keystrokehq_core0.Operation<z.ZodObject<{
74
69
  timeRange: z.ZodOptional<z.ZodEnum<{
75
70
  short_term: "short_term";
@@ -160,10 +155,8 @@ declare const getMyTopTracks: _keystrokehq_core0.Operation<z.ZodObject<{
160
155
  offset: z.ZodNumber;
161
156
  previousPageToken: z.ZodOptional<z.ZodString>;
162
157
  total: z.ZodOptional<z.ZodNumber>;
163
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
164
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
165
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
158
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
166
159
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
167
- }, z.core.$strip>>[] | undefined>], undefined>;
160
+ }, z.core.$strip>>], undefined>;
168
161
  //#endregion
169
162
  export { getMe, getMyTopArtists, getMyTopTracks };
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-C9W7aXmR.mjs";
3
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/me.ts
package/dist/player.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/player.d.ts
6
5
  declare const getPlaybackState: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -171,27 +170,23 @@ declare const getPlaybackState: _keystrokehq_core0.Operation<z.ZodObject<{
171
170
  shuffleState: z.ZodBoolean;
172
171
  timestamp: z.ZodNumber;
173
172
  currentlyPlayingType: z.ZodOptional<z.ZodEnum<{
174
- unknown: "unknown";
175
173
  track: "track";
174
+ unknown: "unknown";
176
175
  episode: "episode";
177
176
  ad: "ad";
178
177
  }>>;
179
178
  actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
180
- }, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
181
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
182
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
179
+ }, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
183
180
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
184
- }, z.core.$strip>>[] | undefined>], undefined>;
181
+ }, z.core.$strip>>], undefined>;
185
182
  declare const transferPlayback: _keystrokehq_core0.Operation<z.ZodObject<{
186
183
  deviceIds: z.ZodArray<z.ZodString>;
187
184
  play: z.ZodOptional<z.ZodBoolean>;
188
185
  }, z.core.$strip>, z.ZodObject<{
189
186
  success: z.ZodLiteral<true>;
190
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
191
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
192
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
187
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
193
188
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
194
- }, z.core.$strip>>[] | undefined>], undefined>;
189
+ }, z.core.$strip>>], undefined>;
195
190
  declare const getAvailableDevices: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
196
191
  devices: z.ZodArray<z.ZodObject<{
197
192
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -203,11 +198,9 @@ declare const getAvailableDevices: _keystrokehq_core0.Operation<z.ZodObject<{},
203
198
  volumePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
204
199
  supportsVolume: z.ZodOptional<z.ZodBoolean>;
205
200
  }, z.core.$strip>>;
206
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
201
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
207
202
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
208
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
209
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
210
- }, z.core.$strip>>[] | undefined>], undefined>;
203
+ }, z.core.$strip>>], undefined>;
211
204
  declare const getCurrentlyPlaying: _keystrokehq_core0.Operation<z.ZodObject<{
212
205
  market: z.ZodOptional<z.ZodString>;
213
206
  additionalTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -380,17 +373,15 @@ declare const getCurrentlyPlaying: _keystrokehq_core0.Operation<z.ZodObject<{
380
373
  shuffleState: z.ZodBoolean;
381
374
  timestamp: z.ZodNumber;
382
375
  currentlyPlayingType: z.ZodOptional<z.ZodEnum<{
383
- unknown: "unknown";
384
376
  track: "track";
377
+ unknown: "unknown";
385
378
  episode: "episode";
386
379
  ad: "ad";
387
380
  }>>;
388
381
  actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
389
- }, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
382
+ }, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
390
383
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
391
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
392
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
393
- }, z.core.$strip>>[] | undefined>], undefined>;
384
+ }, z.core.$strip>>], undefined>;
394
385
  declare const startOrResumePlayback: _keystrokehq_core0.Operation<z.ZodObject<{
395
386
  deviceId: z.ZodOptional<z.ZodString>;
396
387
  contextUri: z.ZodOptional<z.ZodString>;
@@ -402,48 +393,38 @@ declare const startOrResumePlayback: _keystrokehq_core0.Operation<z.ZodObject<{
402
393
  positionMs: z.ZodOptional<z.ZodNumber>;
403
394
  }, z.core.$strip>, z.ZodObject<{
404
395
  success: z.ZodLiteral<true>;
405
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
406
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
407
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
396
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
408
397
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
409
- }, z.core.$strip>>[] | undefined>], undefined>;
398
+ }, z.core.$strip>>], undefined>;
410
399
  declare const pausePlayback: _keystrokehq_core0.Operation<z.ZodObject<{
411
400
  deviceId: z.ZodOptional<z.ZodString>;
412
401
  }, z.core.$strip>, z.ZodObject<{
413
402
  success: z.ZodLiteral<true>;
414
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
403
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
415
404
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
416
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
417
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
418
- }, z.core.$strip>>[] | undefined>], undefined>;
405
+ }, z.core.$strip>>], undefined>;
419
406
  declare const skipToNext: _keystrokehq_core0.Operation<z.ZodObject<{
420
407
  deviceId: z.ZodOptional<z.ZodString>;
421
408
  }, z.core.$strip>, z.ZodObject<{
422
409
  success: z.ZodLiteral<true>;
423
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
424
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
425
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
410
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
426
411
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
427
- }, z.core.$strip>>[] | undefined>], undefined>;
412
+ }, z.core.$strip>>], undefined>;
428
413
  declare const skipToPrevious: _keystrokehq_core0.Operation<z.ZodObject<{
429
414
  deviceId: z.ZodOptional<z.ZodString>;
430
415
  }, z.core.$strip>, z.ZodObject<{
431
416
  success: z.ZodLiteral<true>;
432
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
433
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
434
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
417
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
435
418
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
436
- }, z.core.$strip>>[] | undefined>], undefined>;
419
+ }, z.core.$strip>>], undefined>;
437
420
  declare const seekToPosition: _keystrokehq_core0.Operation<z.ZodObject<{
438
421
  deviceId: z.ZodOptional<z.ZodString>;
439
422
  positionMs: z.ZodNumber;
440
423
  }, z.core.$strip>, z.ZodObject<{
441
424
  success: z.ZodLiteral<true>;
442
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
425
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
443
426
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
444
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
445
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
446
- }, z.core.$strip>>[] | undefined>], undefined>;
427
+ }, z.core.$strip>>], undefined>;
447
428
  declare const setRepeatMode: _keystrokehq_core0.Operation<z.ZodObject<{
448
429
  deviceId: z.ZodOptional<z.ZodString>;
449
430
  state: z.ZodEnum<{
@@ -453,31 +434,25 @@ declare const setRepeatMode: _keystrokehq_core0.Operation<z.ZodObject<{
453
434
  }>;
454
435
  }, z.core.$strip>, z.ZodObject<{
455
436
  success: z.ZodLiteral<true>;
456
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
457
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
458
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
437
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
459
438
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
460
- }, z.core.$strip>>[] | undefined>], undefined>;
439
+ }, z.core.$strip>>], undefined>;
461
440
  declare const setPlaybackVolume: _keystrokehq_core0.Operation<z.ZodObject<{
462
441
  deviceId: z.ZodOptional<z.ZodString>;
463
442
  volumePercent: z.ZodNumber;
464
443
  }, z.core.$strip>, z.ZodObject<{
465
444
  success: z.ZodLiteral<true>;
466
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
445
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
467
446
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
468
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
469
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
470
- }, z.core.$strip>>[] | undefined>], undefined>;
447
+ }, z.core.$strip>>], undefined>;
471
448
  declare const setShuffleMode: _keystrokehq_core0.Operation<z.ZodObject<{
472
449
  deviceId: z.ZodOptional<z.ZodString>;
473
450
  state: z.ZodBoolean;
474
451
  }, z.core.$strip>, z.ZodObject<{
475
452
  success: z.ZodLiteral<true>;
476
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
477
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
478
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
453
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
479
454
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
480
- }, z.core.$strip>>[] | undefined>], undefined>;
455
+ }, z.core.$strip>>], undefined>;
481
456
  declare const getRecentlyPlayed: _keystrokehq_core0.Operation<z.ZodObject<{
482
457
  limit: z.ZodOptional<z.ZodNumber>;
483
458
  after: z.ZodOptional<z.ZodNumber>;
@@ -578,21 +553,17 @@ declare const getRecentlyPlayed: _keystrokehq_core0.Operation<z.ZodObject<{
578
553
  after: z.ZodOptional<z.ZodString>;
579
554
  before: z.ZodOptional<z.ZodString>;
580
555
  }, z.core.$strip>>;
581
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
582
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
583
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
556
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
584
557
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
585
- }, z.core.$strip>>[] | undefined>], undefined>;
558
+ }, z.core.$strip>>], undefined>;
586
559
  declare const addToQueue: _keystrokehq_core0.Operation<z.ZodObject<{
587
560
  deviceId: z.ZodOptional<z.ZodString>;
588
561
  uri: z.ZodString;
589
562
  }, z.core.$strip>, z.ZodObject<{
590
563
  success: z.ZodLiteral<true>;
591
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
564
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
592
565
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
593
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
594
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
595
- }, z.core.$strip>>[] | undefined>], undefined>;
566
+ }, z.core.$strip>>], undefined>;
596
567
  declare const getQueue: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
597
568
  currentlyPlaying: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
598
569
  album: z.ZodOptional<z.ZodObject<{
@@ -868,10 +839,8 @@ declare const getQueue: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$str
868
839
  type: z.ZodLiteral<"episode">;
869
840
  uri: z.ZodOptional<z.ZodString>;
870
841
  }, z.core.$strip>], "type">>;
871
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
872
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
873
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
842
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
874
843
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
875
- }, z.core.$strip>>[] | undefined>], undefined>;
844
+ }, z.core.$strip>>], undefined>;
876
845
  //#endregion
877
846
  export { addToQueue, getAvailableDevices, getCurrentlyPlaying, getPlaybackState, getQueue, getRecentlyPlayed, pausePlayback, seekToPosition, setPlaybackVolume, setRepeatMode, setShuffleMode, skipToNext, skipToPrevious, startOrResumePlayback, transferPlayback };
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-C9W7aXmR.mjs";
3
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/player.ts