@keystrokehq/spotify 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +2 -2
- package/dist/_official/index.mjs +1 -1
- package/dist/albums.d.mts +5 -5
- package/dist/albums.mjs +5 -5
- package/dist/artists.d.mts +6 -6
- package/dist/artists.mjs +6 -6
- package/dist/audio-analysis.d.mts +2 -2
- package/dist/audio-analysis.mjs +2 -2
- package/dist/audio-features.d.mts +3 -3
- package/dist/audio-features.mjs +3 -3
- package/dist/audiobooks.d.mts +4 -4
- package/dist/audiobooks.mjs +4 -4
- package/dist/browse.d.mts +2 -2
- package/dist/browse.mjs +2 -2
- package/dist/categories.d.mts +4 -4
- package/dist/categories.mjs +4 -4
- package/dist/chapters.d.mts +3 -3
- package/dist/chapters.mjs +3 -3
- package/dist/client.d.mts +230 -230
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/episodes.d.mts +3 -3
- package/dist/episodes.mjs +3 -3
- package/dist/factory-C9W7aXmR.mjs +7 -0
- package/dist/follow.d.mts +5 -5
- package/dist/follow.mjs +5 -5
- package/dist/genres.d.mts +2 -2
- package/dist/genres.mjs +2 -2
- package/dist/integration-CrkQTg9q.mjs +170 -0
- package/dist/{integration-Dzf1u4u-.d.mts → integration-DXXNe4_j.d.mts} +3 -4
- package/dist/library.d.mts +21 -21
- package/dist/library.mjs +21 -21
- package/dist/markets.d.mts +2 -2
- package/dist/markets.mjs +2 -2
- package/dist/me.d.mts +4 -4
- package/dist/me.mjs +4 -4
- package/dist/player.d.mts +18 -18
- package/dist/player.mjs +16 -16
- package/dist/playlists.d.mts +15 -15
- package/dist/playlists.mjs +15 -15
- package/dist/recommendations.d.mts +2 -2
- package/dist/recommendations.mjs +2 -2
- package/dist/schemas.d.mts +1 -1
- package/dist/search.d.mts +3 -3
- package/dist/search.mjs +2 -2
- package/dist/shows.d.mts +4 -4
- package/dist/shows.mjs +4 -4
- package/dist/tracks.d.mts +3 -3
- package/dist/tracks.mjs +3 -3
- package/dist/triggers.d.mts +2 -3
- package/dist/triggers.mjs +56 -7
- package/dist/users.d.mts +2 -2
- package/dist/users.mjs +2 -2
- package/package.json +4 -4
- package/dist/factory-C3uQLYXY.mjs +0 -8
- package/dist/integration-BK1PIn1V.mjs +0 -78
package/dist/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
|
|
@@ -16,7 +16,7 @@ const topItemsInputSchema = z.object({
|
|
|
16
16
|
offset: z.number().int().nonnegative().optional()
|
|
17
17
|
});
|
|
18
18
|
const getMe = spotifyOperation({
|
|
19
|
-
id: "
|
|
19
|
+
id: "spotify.get-spotify-me",
|
|
20
20
|
name: "Get Spotify Me",
|
|
21
21
|
description: "Fetch the current Spotify user profile.",
|
|
22
22
|
input: emptyInputSchema,
|
|
@@ -26,7 +26,7 @@ const getMe = spotifyOperation({
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
const getMyTopArtists = spotifyOperation({
|
|
29
|
-
id: "
|
|
29
|
+
id: "spotify.get-spotify-my-top-artists",
|
|
30
30
|
name: "Get My Top Spotify Artists",
|
|
31
31
|
description: "List the current user's top Spotify artists.",
|
|
32
32
|
input: topItemsInputSchema,
|
|
@@ -40,7 +40,7 @@ const getMyTopArtists = spotifyOperation({
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
const getMyTopTracks = spotifyOperation({
|
|
43
|
-
id: "
|
|
43
|
+
id: "spotify.get-spotify-my-top-tracks",
|
|
44
44
|
name: "Get My Top Spotify Tracks",
|
|
45
45
|
description: "List the current user's top Spotify tracks.",
|
|
46
46
|
input: topItemsInputSchema,
|
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
|
|
@@ -46,7 +46,7 @@ function hasPlaybackBody(input) {
|
|
|
46
46
|
return input.contextUri !== void 0 || input.uris !== void 0 || input.offset !== void 0 || input.positionMs !== void 0;
|
|
47
47
|
}
|
|
48
48
|
const getPlaybackState = spotifyOperation({
|
|
49
|
-
id: "
|
|
49
|
+
id: "spotify.get-playback-state",
|
|
50
50
|
name: "Get Playback State",
|
|
51
51
|
description: "Fetch the current Spotify playback state for the connected account.",
|
|
52
52
|
input: z.object({ market: spotifyMarketSchema.optional() }),
|
|
@@ -56,7 +56,7 @@ const getPlaybackState = spotifyOperation({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
const transferPlayback = spotifyOperation({
|
|
59
|
-
id: "
|
|
59
|
+
id: "spotify.transfer-playback",
|
|
60
60
|
name: "Transfer Playback",
|
|
61
61
|
description: "Transfer Spotify playback to another available device.",
|
|
62
62
|
input: transferPlaybackInputSchema,
|
|
@@ -67,7 +67,7 @@ const transferPlayback = spotifyOperation({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
const getAvailableDevices = spotifyOperation({
|
|
70
|
-
id: "
|
|
70
|
+
id: "spotify.get-available-devices",
|
|
71
71
|
name: "Get Available Devices",
|
|
72
72
|
description: "List Spotify devices available for playback.",
|
|
73
73
|
input: emptyInputSchema,
|
|
@@ -77,7 +77,7 @@ const getAvailableDevices = spotifyOperation({
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
const getCurrentlyPlaying = spotifyOperation({
|
|
80
|
-
id: "
|
|
80
|
+
id: "spotify.get-currently-playing",
|
|
81
81
|
name: "Get Currently Playing",
|
|
82
82
|
description: "Fetch the currently playing Spotify track or episode, if any.",
|
|
83
83
|
input: currentlyPlayingInputSchema,
|
|
@@ -90,7 +90,7 @@ const getCurrentlyPlaying = spotifyOperation({
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
const startOrResumePlayback = spotifyOperation({
|
|
93
|
-
id: "
|
|
93
|
+
id: "spotify.start-or-resume-playback",
|
|
94
94
|
name: "Start Or Resume Playback",
|
|
95
95
|
description: "Start or resume Spotify playback on an active or selected device.",
|
|
96
96
|
input: startOrResumePlaybackInputSchema,
|
|
@@ -108,7 +108,7 @@ const startOrResumePlayback = spotifyOperation({
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
const pausePlayback = spotifyOperation({
|
|
111
|
-
id: "
|
|
111
|
+
id: "spotify.pause-playback",
|
|
112
112
|
name: "Pause Playback",
|
|
113
113
|
description: "Pause Spotify playback on the current or selected device.",
|
|
114
114
|
input: withOptionalDeviceIdSchema,
|
|
@@ -119,7 +119,7 @@ const pausePlayback = spotifyOperation({
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
const skipToNext = spotifyOperation({
|
|
122
|
-
id: "
|
|
122
|
+
id: "spotify.skip-to-next",
|
|
123
123
|
name: "Skip To Next",
|
|
124
124
|
description: "Skip to the next Spotify item in the active queue.",
|
|
125
125
|
input: withOptionalDeviceIdSchema,
|
|
@@ -130,7 +130,7 @@ const skipToNext = spotifyOperation({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
const skipToPrevious = spotifyOperation({
|
|
133
|
-
id: "
|
|
133
|
+
id: "spotify.skip-to-previous",
|
|
134
134
|
name: "Skip To Previous",
|
|
135
135
|
description: "Skip to the previous Spotify item in the active queue.",
|
|
136
136
|
input: withOptionalDeviceIdSchema,
|
|
@@ -141,7 +141,7 @@ const skipToPrevious = spotifyOperation({
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
const seekToPosition = spotifyOperation({
|
|
144
|
-
id: "
|
|
144
|
+
id: "spotify.seek-to-position",
|
|
145
145
|
name: "Seek To Position",
|
|
146
146
|
description: "Seek the currently playing Spotify item to a new playback position.",
|
|
147
147
|
input: seekToPositionInputSchema,
|
|
@@ -152,7 +152,7 @@ const seekToPosition = spotifyOperation({
|
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
const setRepeatMode = spotifyOperation({
|
|
155
|
-
id: "
|
|
155
|
+
id: "spotify.set-repeat-mode",
|
|
156
156
|
name: "Set Repeat Mode",
|
|
157
157
|
description: "Set Spotify repeat mode for the current or selected device.",
|
|
158
158
|
input: repeatModeInputSchema,
|
|
@@ -163,7 +163,7 @@ const setRepeatMode = spotifyOperation({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
const setPlaybackVolume = spotifyOperation({
|
|
166
|
-
id: "
|
|
166
|
+
id: "spotify.set-playback-volume",
|
|
167
167
|
name: "Set Playback Volume",
|
|
168
168
|
description: "Set Spotify playback volume on the current or selected device.",
|
|
169
169
|
input: playbackVolumeInputSchema,
|
|
@@ -174,7 +174,7 @@ const setPlaybackVolume = spotifyOperation({
|
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
176
|
const setShuffleMode = spotifyOperation({
|
|
177
|
-
id: "
|
|
177
|
+
id: "spotify.set-shuffle-mode",
|
|
178
178
|
name: "Set Shuffle Mode",
|
|
179
179
|
description: "Enable or disable Spotify shuffle mode.",
|
|
180
180
|
input: shuffleModeInputSchema,
|
|
@@ -185,7 +185,7 @@ const setShuffleMode = spotifyOperation({
|
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
const getRecentlyPlayed = spotifyOperation({
|
|
188
|
-
id: "
|
|
188
|
+
id: "spotify.get-recently-played",
|
|
189
189
|
name: "Get Recently Played",
|
|
190
190
|
description: "List recently played Spotify tracks for the connected account.",
|
|
191
191
|
input: getRecentlyPlayedInputSchema,
|
|
@@ -195,7 +195,7 @@ const getRecentlyPlayed = spotifyOperation({
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
const addToQueue = spotifyOperation({
|
|
198
|
-
id: "
|
|
198
|
+
id: "spotify.add-to-queue",
|
|
199
199
|
name: "Add To Queue",
|
|
200
200
|
description: "Add a track or episode to the Spotify playback queue.",
|
|
201
201
|
input: addToQueueInputSchema,
|
|
@@ -206,7 +206,7 @@ const addToQueue = spotifyOperation({
|
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
const getQueue = spotifyOperation({
|
|
209
|
-
id: "
|
|
209
|
+
id: "spotify.get-queue",
|
|
210
210
|
name: "Get Queue",
|
|
211
211
|
description: "Fetch the current Spotify playback queue.",
|
|
212
212
|
input: emptyInputSchema,
|
package/dist/playlists.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/playlists.d.ts
|
|
@@ -56,7 +56,7 @@ declare const createPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
57
|
type: z.ZodLiteral<"playlist">;
|
|
58
58
|
uri: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
59
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
60
60
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
61
61
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
62
62
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -117,7 +117,7 @@ declare const getPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
117
117
|
}, z.core.$strip>>;
|
|
118
118
|
type: z.ZodLiteral<"playlist">;
|
|
119
119
|
uri: z.ZodOptional<z.ZodString>;
|
|
120
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
120
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
121
121
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
122
122
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
123
123
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -130,7 +130,7 @@ declare const updatePlaylistDetails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
130
130
|
description: z.ZodOptional<z.ZodString>;
|
|
131
131
|
}, z.core.$strip>, z.ZodObject<{
|
|
132
132
|
success: z.ZodLiteral<true>;
|
|
133
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
133
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
134
134
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
135
135
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
136
136
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -315,7 +315,7 @@ declare const getPlaylistItems: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
315
315
|
offset: z.ZodNumber;
|
|
316
316
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
317
317
|
total: z.ZodOptional<z.ZodNumber>;
|
|
318
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
318
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
319
319
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
320
320
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
321
321
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -328,7 +328,7 @@ declare const getPlaylistCoverImage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
328
328
|
height: z.ZodNullable<z.ZodNumber>;
|
|
329
329
|
width: z.ZodNullable<z.ZodNumber>;
|
|
330
330
|
}, z.core.$strip>>;
|
|
331
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
331
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
332
332
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
333
333
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
334
334
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -339,7 +339,7 @@ declare const addItemsToPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
339
339
|
position: z.ZodOptional<z.ZodNumber>;
|
|
340
340
|
}, z.core.$strip>, z.ZodObject<{
|
|
341
341
|
snapshotId: z.ZodString;
|
|
342
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
342
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
343
343
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
344
344
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
345
345
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -357,7 +357,7 @@ declare const reorderOrReplacePlaylistItems: _keystrokehq_core0.Operation<z.ZodD
|
|
|
357
357
|
uris: z.ZodArray<z.ZodString>;
|
|
358
358
|
}, z.core.$strip>], "mode">, z.ZodObject<{
|
|
359
359
|
snapshotId: z.ZodString;
|
|
360
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
360
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
361
361
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
362
362
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
363
363
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -371,7 +371,7 @@ declare const removeItemsFromPlaylist: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
371
371
|
snapshotId: z.ZodOptional<z.ZodString>;
|
|
372
372
|
}, z.core.$strip>, z.ZodObject<{
|
|
373
373
|
snapshotId: z.ZodString;
|
|
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;
|
|
@@ -435,7 +435,7 @@ declare const listMyPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
435
435
|
offset: z.ZodNumber;
|
|
436
436
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
437
437
|
total: z.ZodOptional<z.ZodNumber>;
|
|
438
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
438
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
439
439
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
440
440
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
441
441
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -500,7 +500,7 @@ declare const listUserPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
500
500
|
offset: z.ZodNumber;
|
|
501
501
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
502
502
|
total: z.ZodOptional<z.ZodNumber>;
|
|
503
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
503
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
504
504
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
505
505
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
506
506
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -510,7 +510,7 @@ declare const followPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
510
510
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
511
511
|
}, z.core.$strip>, z.ZodObject<{
|
|
512
512
|
success: z.ZodLiteral<true>;
|
|
513
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
513
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
514
514
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
515
515
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
516
516
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -519,7 +519,7 @@ declare const unfollowPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
519
519
|
playlistId: z.ZodString;
|
|
520
520
|
}, z.core.$strip>, z.ZodObject<{
|
|
521
521
|
success: z.ZodLiteral<true>;
|
|
522
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
522
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
523
523
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
524
524
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
525
525
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -527,7 +527,7 @@ declare const unfollowPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
527
527
|
declare const checkUsersFollowPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
528
528
|
playlistId: z.ZodString;
|
|
529
529
|
userIds: z.ZodArray<z.ZodString>;
|
|
530
|
-
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
530
|
+
}, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
531
531
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
532
532
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
533
533
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
@@ -537,7 +537,7 @@ declare const uploadPlaylistCoverImage: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
537
537
|
imageBase64: z.ZodString;
|
|
538
538
|
}, z.core.$strip>, z.ZodObject<{
|
|
539
539
|
success: z.ZodLiteral<true>;
|
|
540
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
540
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
541
541
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
542
542
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
543
543
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/playlists.mjs
CHANGED
|
@@ -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-
|
|
3
|
+
import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/playlists.ts
|
|
@@ -60,7 +60,7 @@ const checkUsersFollowPlaylistInputSchema = playlistIdInputSchema.extend({ userI
|
|
|
60
60
|
const uploadPlaylistCoverImageInputSchema = playlistIdInputSchema.extend({ imageBase64: z.string().trim().min(1) });
|
|
61
61
|
const playlistCoverImageResponseSchema = z.object({ images: z.array(spotifyPlaylistImageSchema) });
|
|
62
62
|
const createPlaylist = spotifyOperation({
|
|
63
|
-
id: "
|
|
63
|
+
id: "spotify.create-playlist",
|
|
64
64
|
name: "Create Playlist",
|
|
65
65
|
description: "Create a Spotify playlist for the connected account.",
|
|
66
66
|
input: createPlaylistInputSchema,
|
|
@@ -71,7 +71,7 @@ const createPlaylist = spotifyOperation({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
const getPlaylist = spotifyOperation({
|
|
74
|
-
id: "
|
|
74
|
+
id: "spotify.get-playlist",
|
|
75
75
|
name: "Get Playlist",
|
|
76
76
|
description: "Fetch a Spotify playlist by ID.",
|
|
77
77
|
input: getPlaylistInputSchema,
|
|
@@ -85,7 +85,7 @@ const getPlaylist = spotifyOperation({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
const updatePlaylistDetails = spotifyOperation({
|
|
88
|
-
id: "
|
|
88
|
+
id: "spotify.update-playlist-details",
|
|
89
89
|
name: "Update Playlist Details",
|
|
90
90
|
description: "Update a Spotify playlist name, privacy, collaboration, or description.",
|
|
91
91
|
input: updatePlaylistDetailsInputSchema,
|
|
@@ -101,7 +101,7 @@ const updatePlaylistDetails = spotifyOperation({
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
const getPlaylistItems = spotifyOperation({
|
|
104
|
-
id: "
|
|
104
|
+
id: "spotify.get-playlist-items",
|
|
105
105
|
name: "Get Playlist Items",
|
|
106
106
|
description: "List tracks and episodes in a Spotify playlist.",
|
|
107
107
|
input: getPlaylistItemsInputSchema,
|
|
@@ -117,7 +117,7 @@ const getPlaylistItems = spotifyOperation({
|
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
const getPlaylistCoverImage = spotifyOperation({
|
|
120
|
-
id: "
|
|
120
|
+
id: "spotify.get-playlist-cover-image",
|
|
121
121
|
name: "Get Playlist Cover Image",
|
|
122
122
|
description: "Fetch cover images for a Spotify playlist.",
|
|
123
123
|
input: playlistIdInputSchema,
|
|
@@ -127,7 +127,7 @@ const getPlaylistCoverImage = spotifyOperation({
|
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
const addItemsToPlaylist = spotifyOperation({
|
|
130
|
-
id: "
|
|
130
|
+
id: "spotify.add-items-to-playlist",
|
|
131
131
|
name: "Add Items To Playlist",
|
|
132
132
|
description: "Add tracks or episodes to a Spotify playlist.",
|
|
133
133
|
input: addItemsToPlaylistInputSchema,
|
|
@@ -141,7 +141,7 @@ const addItemsToPlaylist = spotifyOperation({
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
const reorderOrReplacePlaylistItems = spotifyOperation({
|
|
144
|
-
id: "
|
|
144
|
+
id: "spotify.reorder-or-replace-playlist-items",
|
|
145
145
|
name: "Reorder Or Replace Playlist Items",
|
|
146
146
|
description: "Reorder existing playlist items or replace the full playlist contents.",
|
|
147
147
|
input: z.discriminatedUnion("mode", [reorderPlaylistItemsInputSchema, replacePlaylistItemsInputSchema]),
|
|
@@ -159,7 +159,7 @@ const reorderOrReplacePlaylistItems = spotifyOperation({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
const removeItemsFromPlaylist = spotifyOperation({
|
|
162
|
-
id: "
|
|
162
|
+
id: "spotify.remove-items-from-playlist",
|
|
163
163
|
name: "Remove Items From Playlist",
|
|
164
164
|
description: "Remove specific tracks or episodes from a Spotify playlist.",
|
|
165
165
|
input: removeItemsFromPlaylistInputSchema,
|
|
@@ -173,7 +173,7 @@ const removeItemsFromPlaylist = spotifyOperation({
|
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
const listMyPlaylists = spotifyOperation({
|
|
176
|
-
id: "
|
|
176
|
+
id: "spotify.list-my-playlists",
|
|
177
177
|
name: "List My Playlists",
|
|
178
178
|
description: "List Spotify playlists owned or followed by the connected account.",
|
|
179
179
|
input: playlistPaginationInputSchema,
|
|
@@ -183,7 +183,7 @@ const listMyPlaylists = spotifyOperation({
|
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
const listUserPlaylists = spotifyOperation({
|
|
186
|
-
id: "
|
|
186
|
+
id: "spotify.list-user-playlists",
|
|
187
187
|
name: "List User Playlists",
|
|
188
188
|
description: "List public Spotify playlists for a given user.",
|
|
189
189
|
input: listUserPlaylistsInputSchema,
|
|
@@ -196,7 +196,7 @@ const listUserPlaylists = spotifyOperation({
|
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
198
|
const followPlaylist = spotifyOperation({
|
|
199
|
-
id: "
|
|
199
|
+
id: "spotify.follow-playlist",
|
|
200
200
|
name: "Follow Playlist",
|
|
201
201
|
description: "Follow a Spotify playlist for the connected account.",
|
|
202
202
|
input: followPlaylistInputSchema,
|
|
@@ -207,7 +207,7 @@ const followPlaylist = spotifyOperation({
|
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
const unfollowPlaylist = spotifyOperation({
|
|
210
|
-
id: "
|
|
210
|
+
id: "spotify.unfollow-playlist",
|
|
211
211
|
name: "Unfollow Playlist",
|
|
212
212
|
description: "Unfollow a Spotify playlist for the connected account.",
|
|
213
213
|
input: playlistIdInputSchema,
|
|
@@ -218,7 +218,7 @@ const unfollowPlaylist = spotifyOperation({
|
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
220
|
const checkUsersFollowPlaylist = spotifyOperation({
|
|
221
|
-
id: "
|
|
221
|
+
id: "spotify.check-users-follow-playlist",
|
|
222
222
|
name: "Check Users Follow Playlist",
|
|
223
223
|
description: "Check whether specific Spotify users follow a playlist.",
|
|
224
224
|
input: checkUsersFollowPlaylistInputSchema,
|
|
@@ -228,7 +228,7 @@ const checkUsersFollowPlaylist = spotifyOperation({
|
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
const uploadPlaylistCoverImage = spotifyOperation({
|
|
231
|
-
id: "
|
|
231
|
+
id: "spotify.upload-playlist-cover-image",
|
|
232
232
|
name: "Upload Playlist Cover Image",
|
|
233
233
|
description: "Replace the cover image for a Spotify playlist.",
|
|
234
234
|
input: uploadPlaylistCoverImageInputSchema,
|
|
@@ -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/recommendations.d.ts
|
|
@@ -135,7 +135,7 @@ declare const getRecommendations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
135
135
|
type: z.ZodLiteral<"track">;
|
|
136
136
|
uri: z.ZodOptional<z.ZodString>;
|
|
137
137
|
}, z.core.$strip>>;
|
|
138
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
138
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
|
|
139
139
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
|
140
140
|
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
141
141
|
SPOTIFY_ACCESS_TOKEN: z.ZodString;
|
package/dist/recommendations.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spotifyIdSchema, spotifyMarketSchema, spotifyRecommendationsSchema } 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/recommendations.ts
|
|
@@ -75,7 +75,7 @@ const recommendationInputSchema = z.object({
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
const getRecommendations = spotifyOperation({
|
|
78
|
-
id: "
|
|
78
|
+
id: "spotify.get-spotify-recommendations",
|
|
79
79
|
name: "Get Spotify Recommendations",
|
|
80
80
|
description: "Generate Spotify track recommendations from seeds and tunable audio targets.",
|
|
81
81
|
input: recommendationInputSchema,
|
package/dist/schemas.d.mts
CHANGED
|
@@ -1041,8 +1041,8 @@ declare const spotifyPlaybackStateSchema: z.ZodObject<{
|
|
|
1041
1041
|
shuffleState: z.ZodBoolean;
|
|
1042
1042
|
timestamp: z.ZodNumber;
|
|
1043
1043
|
currentlyPlayingType: z.ZodOptional<z.ZodEnum<{
|
|
1044
|
-
track: "track";
|
|
1045
1044
|
unknown: "unknown";
|
|
1045
|
+
track: "track";
|
|
1046
1046
|
episode: "episode";
|
|
1047
1047
|
ad: "ad";
|
|
1048
1048
|
}>>;
|
package/dist/search.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/search.d.ts
|
|
@@ -8,11 +8,11 @@ declare const search: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
8
8
|
types: z.ZodArray<z.ZodEnum<{
|
|
9
9
|
artist: "artist";
|
|
10
10
|
track: "track";
|
|
11
|
+
playlist: "playlist";
|
|
11
12
|
album: "album";
|
|
12
13
|
show: "show";
|
|
13
14
|
episode: "episode";
|
|
14
15
|
audiobook: "audiobook";
|
|
15
|
-
playlist: "playlist";
|
|
16
16
|
}>>;
|
|
17
17
|
market: z.ZodOptional<z.ZodString>;
|
|
18
18
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -380,7 +380,7 @@ declare const search: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
380
380
|
previousPageToken: z.ZodOptional<z.ZodString>;
|
|
381
381
|
total: z.ZodOptional<z.ZodNumber>;
|
|
382
382
|
}, z.core.$strip>>;
|
|
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;
|