@keystrokehq/spotify 0.0.8 → 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 (53) hide show
  1. package/dist/_official/index.d.mts +2 -6
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/albums.d.mts +4 -13
  4. package/dist/albums.mjs +1 -1
  5. package/dist/artists.d.mts +5 -16
  6. package/dist/artists.mjs +1 -1
  7. package/dist/audio-analysis.d.mts +1 -4
  8. package/dist/audio-analysis.mjs +1 -1
  9. package/dist/audio-features.d.mts +2 -7
  10. package/dist/audio-features.mjs +1 -1
  11. package/dist/audiobooks.d.mts +3 -10
  12. package/dist/audiobooks.mjs +1 -1
  13. package/dist/browse.d.mts +1 -4
  14. package/dist/browse.mjs +1 -1
  15. package/dist/categories.d.mts +3 -10
  16. package/dist/categories.mjs +1 -1
  17. package/dist/chapters.d.mts +2 -7
  18. package/dist/chapters.mjs +1 -1
  19. package/dist/client.d.mts +1 -1
  20. package/dist/connection.d.mts +1 -1
  21. package/dist/connection.mjs +1 -1
  22. package/dist/episodes.d.mts +2 -7
  23. package/dist/episodes.mjs +1 -1
  24. package/dist/{factory-C3uQLYXY.mjs → factory-DMprpzS1.mjs} +1 -1
  25. package/dist/follow.d.mts +4 -13
  26. package/dist/follow.mjs +1 -1
  27. package/dist/genres.d.mts +1 -4
  28. package/dist/genres.mjs +1 -1
  29. package/dist/{integration-Dzf1u4u-.d.mts → integration-B5oEi2sg.d.mts} +2 -16
  30. package/dist/{integration-BK1PIn1V.mjs → integration-D9ABjTOP.mjs} +3 -30
  31. package/dist/library.d.mts +20 -61
  32. package/dist/library.mjs +1 -1
  33. package/dist/markets.d.mts +1 -4
  34. package/dist/markets.mjs +1 -1
  35. package/dist/me.d.mts +3 -10
  36. package/dist/me.mjs +1 -1
  37. package/dist/player.d.mts +15 -46
  38. package/dist/player.mjs +1 -1
  39. package/dist/playlists.d.mts +14 -43
  40. package/dist/playlists.mjs +1 -1
  41. package/dist/recommendations.d.mts +1 -4
  42. package/dist/recommendations.mjs +1 -1
  43. package/dist/search.d.mts +1 -4
  44. package/dist/search.mjs +1 -1
  45. package/dist/shows.d.mts +3 -10
  46. package/dist/shows.mjs +1 -1
  47. package/dist/tracks.d.mts +2 -7
  48. package/dist/tracks.mjs +1 -1
  49. package/dist/triggers.d.mts +1 -1
  50. package/dist/triggers.mjs +1 -1
  51. package/dist/users.d.mts +1 -4
  52. package/dist/users.mjs +1 -1
  53. package/package.json +4 -4
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/library.d.ts
6
5
  declare const listSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -67,34 +66,26 @@ declare const listSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
67
66
  total: z.ZodOptional<z.ZodNumber>;
68
67
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
69
68
  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>;
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
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
81
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
87
82
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
88
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
89
- 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
86
  }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
94
87
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
95
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
96
- 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>;
@@ -186,34 +177,26 @@ declare const listSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
186
177
  total: z.ZodOptional<z.ZodNumber>;
187
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
185
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
197
186
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
198
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
199
- 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
192
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
206
193
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
207
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
208
- 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
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>;
@@ -257,34 +240,26 @@ declare const listSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
257
240
  total: z.ZodOptional<z.ZodNumber>;
258
241
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
259
242
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
260
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
261
- 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
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
255
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
277
256
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
278
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
279
- 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
260
  }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
284
261
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
285
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
286
- 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>;
@@ -364,34 +339,26 @@ declare const listSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
364
339
  total: z.ZodOptional<z.ZodNumber>;
365
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
347
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
375
348
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
376
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
377
- 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
354
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
384
355
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
385
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
386
- 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
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>;
@@ -440,33 +407,25 @@ declare const listSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
440
407
  total: z.ZodOptional<z.ZodNumber>;
441
408
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
442
409
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
443
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
444
- 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
415
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
451
416
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
452
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
453
- 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
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
427
  }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
467
428
  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>;
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-C3uQLYXY.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
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
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
7
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
9
8
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
10
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
11
- 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-C3uQLYXY.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
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/me.d.ts
6
5
  declare const getMe: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
@@ -26,9 +25,7 @@ declare const getMe: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>
26
25
  }, z.core.$strip>>>;
27
26
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
28
27
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
29
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
30
- 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";
@@ -67,9 +64,7 @@ declare const getMyTopArtists: _keystrokehq_core0.Operation<z.ZodObject<{
67
64
  total: z.ZodOptional<z.ZodNumber>;
68
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";
@@ -162,8 +157,6 @@ declare const getMyTopTracks: _keystrokehq_core0.Operation<z.ZodObject<{
162
157
  total: z.ZodOptional<z.ZodNumber>;
163
158
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
164
159
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
165
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
166
- 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-C3uQLYXY.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
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/player.d.ts
6
5
  declare const getPlaybackState: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -179,9 +178,7 @@ declare const getPlaybackState: _keystrokehq_core0.Operation<z.ZodObject<{
179
178
  actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
180
179
  }, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
181
180
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
182
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
183
- 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>;
@@ -189,9 +186,7 @@ declare const transferPlayback: _keystrokehq_core0.Operation<z.ZodObject<{
189
186
  success: z.ZodLiteral<true>;
190
187
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
191
188
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
192
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
193
- 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>>;
@@ -205,9 +200,7 @@ declare const getAvailableDevices: _keystrokehq_core0.Operation<z.ZodObject<{},
205
200
  }, z.core.$strip>>;
206
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<{
@@ -388,9 +381,7 @@ declare const getCurrentlyPlaying: _keystrokehq_core0.Operation<z.ZodObject<{
388
381
  actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
389
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>;
@@ -404,36 +395,28 @@ declare const startOrResumePlayback: _keystrokehq_core0.Operation<z.ZodObject<{
404
395
  success: z.ZodLiteral<true>;
405
396
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
406
397
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
407
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
408
- 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
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
410
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
424
411
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
425
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
426
- 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
417
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
433
418
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
434
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
435
- 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;
@@ -441,9 +424,7 @@ declare const seekToPosition: _keystrokehq_core0.Operation<z.ZodObject<{
441
424
  success: z.ZodLiteral<true>;
442
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<{
@@ -455,9 +436,7 @@ declare const setRepeatMode: _keystrokehq_core0.Operation<z.ZodObject<{
455
436
  success: z.ZodLiteral<true>;
456
437
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
457
438
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
458
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
459
- 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;
@@ -465,9 +444,7 @@ declare const setPlaybackVolume: _keystrokehq_core0.Operation<z.ZodObject<{
465
444
  success: z.ZodLiteral<true>;
466
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;
@@ -475,9 +452,7 @@ declare const setShuffleMode: _keystrokehq_core0.Operation<z.ZodObject<{
475
452
  success: z.ZodLiteral<true>;
476
453
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
477
454
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
478
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
479
- 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>;
@@ -580,9 +555,7 @@ declare const getRecentlyPlayed: _keystrokehq_core0.Operation<z.ZodObject<{
580
555
  }, z.core.$strip>>;
581
556
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
582
557
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
583
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
584
- 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;
@@ -590,9 +563,7 @@ declare const addToQueue: _keystrokehq_core0.Operation<z.ZodObject<{
590
563
  success: z.ZodLiteral<true>;
591
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<{
@@ -870,8 +841,6 @@ declare const getQueue: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$str
870
841
  }, z.core.$strip>], "type">>;
871
842
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
872
843
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
873
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
874
- 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-C3uQLYXY.mjs";
3
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/player.ts
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/playlists.d.ts
6
5
  declare const createPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -58,9 +57,7 @@ declare const createPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
58
57
  uri: z.ZodOptional<z.ZodString>;
59
58
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
60
59
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
61
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
62
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
63
- }, z.core.$strip>>[] | undefined>], undefined>;
60
+ }, z.core.$strip>>], undefined>;
64
61
  declare const getPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
65
62
  playlistId: z.ZodString;
66
63
  market: z.ZodOptional<z.ZodString>;
@@ -119,9 +116,7 @@ declare const getPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
119
116
  uri: z.ZodOptional<z.ZodString>;
120
117
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
121
118
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
122
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
123
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
124
- }, z.core.$strip>>[] | undefined>], undefined>;
119
+ }, z.core.$strip>>], undefined>;
125
120
  declare const updatePlaylistDetails: _keystrokehq_core0.Operation<z.ZodObject<{
126
121
  playlistId: z.ZodString;
127
122
  name: z.ZodOptional<z.ZodString>;
@@ -132,9 +127,7 @@ declare const updatePlaylistDetails: _keystrokehq_core0.Operation<z.ZodObject<{
132
127
  success: z.ZodLiteral<true>;
133
128
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
134
129
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
135
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
136
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
137
- }, z.core.$strip>>[] | undefined>], undefined>;
130
+ }, z.core.$strip>>], undefined>;
138
131
  declare const getPlaylistItems: _keystrokehq_core0.Operation<z.ZodObject<{
139
132
  playlistId: z.ZodString;
140
133
  market: z.ZodOptional<z.ZodString>;
@@ -317,9 +310,7 @@ declare const getPlaylistItems: _keystrokehq_core0.Operation<z.ZodObject<{
317
310
  total: z.ZodOptional<z.ZodNumber>;
318
311
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
319
312
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
320
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
321
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
322
- }, z.core.$strip>>[] | undefined>], undefined>;
313
+ }, z.core.$strip>>], undefined>;
323
314
  declare const getPlaylistCoverImage: _keystrokehq_core0.Operation<z.ZodObject<{
324
315
  playlistId: z.ZodString;
325
316
  }, z.core.$strip>, z.ZodObject<{
@@ -330,9 +321,7 @@ declare const getPlaylistCoverImage: _keystrokehq_core0.Operation<z.ZodObject<{
330
321
  }, z.core.$strip>>;
331
322
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
332
323
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
333
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
334
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
335
- }, z.core.$strip>>[] | undefined>], undefined>;
324
+ }, z.core.$strip>>], undefined>;
336
325
  declare const addItemsToPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
337
326
  playlistId: z.ZodString;
338
327
  uris: z.ZodArray<z.ZodString>;
@@ -341,9 +330,7 @@ declare const addItemsToPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
341
330
  snapshotId: z.ZodString;
342
331
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
343
332
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
344
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
345
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
346
- }, z.core.$strip>>[] | undefined>], undefined>;
333
+ }, z.core.$strip>>], undefined>;
347
334
  declare const reorderOrReplacePlaylistItems: _keystrokehq_core0.Operation<z.ZodDiscriminatedUnion<[z.ZodObject<{
348
335
  playlistId: z.ZodString;
349
336
  mode: z.ZodLiteral<"reorder">;
@@ -359,9 +346,7 @@ declare const reorderOrReplacePlaylistItems: _keystrokehq_core0.Operation<z.ZodD
359
346
  snapshotId: z.ZodString;
360
347
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
361
348
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
362
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
363
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
364
- }, z.core.$strip>>[] | undefined>], undefined>;
349
+ }, z.core.$strip>>], undefined>;
365
350
  declare const removeItemsFromPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
366
351
  playlistId: z.ZodString;
367
352
  tracks: z.ZodArray<z.ZodObject<{
@@ -373,9 +358,7 @@ declare const removeItemsFromPlaylist: _keystrokehq_core0.Operation<z.ZodObject<
373
358
  snapshotId: z.ZodString;
374
359
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
375
360
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
376
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
377
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
378
- }, z.core.$strip>>[] | undefined>], undefined>;
361
+ }, z.core.$strip>>], undefined>;
379
362
  declare const listMyPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
380
363
  limit: z.ZodOptional<z.ZodNumber>;
381
364
  offset: z.ZodOptional<z.ZodNumber>;
@@ -437,9 +420,7 @@ declare const listMyPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
437
420
  total: z.ZodOptional<z.ZodNumber>;
438
421
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
439
422
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
440
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
441
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
442
- }, z.core.$strip>>[] | undefined>], undefined>;
423
+ }, z.core.$strip>>], undefined>;
443
424
  declare const listUserPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
444
425
  limit: z.ZodOptional<z.ZodNumber>;
445
426
  offset: z.ZodOptional<z.ZodNumber>;
@@ -502,9 +483,7 @@ declare const listUserPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
502
483
  total: z.ZodOptional<z.ZodNumber>;
503
484
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
504
485
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
505
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
506
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
507
- }, z.core.$strip>>[] | undefined>], undefined>;
486
+ }, z.core.$strip>>], undefined>;
508
487
  declare const followPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
509
488
  playlistId: z.ZodString;
510
489
  public: z.ZodOptional<z.ZodBoolean>;
@@ -512,26 +491,20 @@ declare const followPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
512
491
  success: z.ZodLiteral<true>;
513
492
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
514
493
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
515
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
516
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
517
- }, z.core.$strip>>[] | undefined>], undefined>;
494
+ }, z.core.$strip>>], undefined>;
518
495
  declare const unfollowPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
519
496
  playlistId: z.ZodString;
520
497
  }, z.core.$strip>, z.ZodObject<{
521
498
  success: z.ZodLiteral<true>;
522
499
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
523
500
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
524
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
525
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
526
- }, z.core.$strip>>[] | undefined>], undefined>;
501
+ }, z.core.$strip>>], undefined>;
527
502
  declare const checkUsersFollowPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
528
503
  playlistId: z.ZodString;
529
504
  userIds: z.ZodArray<z.ZodString>;
530
505
  }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
531
506
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
532
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
533
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
534
- }, z.core.$strip>>[] | undefined>], undefined>;
507
+ }, z.core.$strip>>], undefined>;
535
508
  declare const uploadPlaylistCoverImage: _keystrokehq_core0.Operation<z.ZodObject<{
536
509
  playlistId: z.ZodString;
537
510
  imageBase64: z.ZodString;
@@ -539,8 +512,6 @@ declare const uploadPlaylistCoverImage: _keystrokehq_core0.Operation<z.ZodObject
539
512
  success: z.ZodLiteral<true>;
540
513
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
541
514
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
542
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
543
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
544
- }, z.core.$strip>>[] | undefined>], undefined>;
515
+ }, z.core.$strip>>], undefined>;
545
516
  //#endregion
546
517
  export { addItemsToPlaylist, checkUsersFollowPlaylist, createPlaylist, followPlaylist, getPlaylist, getPlaylistCoverImage, getPlaylistItems, listMyPlaylists, listUserPlaylists, removeItemsFromPlaylist, reorderOrReplacePlaylistItems, unfollowPlaylist, updatePlaylistDetails, uploadPlaylistCoverImage };
@@ -1,6 +1,6 @@
1
1
  import { spotifyBooleanListSchema, spotifyIdSchema, spotifyMarketSchema, spotifyMutationSuccessSchema, spotifyPlaylistImageSchema, spotifyPlaylistItemPageSchema, spotifyPlaylistPageSchema, spotifyPlaylistSchema, spotifySnapshotResponseSchema, spotifyUriSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
3
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/playlists.ts
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
3
 
5
4
  //#region src/recommendations.d.ts
6
5
  declare const getRecommendations: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -137,8 +136,6 @@ declare const getRecommendations: _keystrokehq_core0.Operation<z.ZodObject<{
137
136
  }, z.core.$strip>>;
138
137
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
139
138
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
140
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
141
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
142
- }, z.core.$strip>>[] | undefined>], undefined>;
139
+ }, z.core.$strip>>], undefined>;
143
140
  //#endregion
144
141
  export { getRecommendations };