@keystrokehq/spotify 0.0.7 → 0.0.8

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/albums.mjs CHANGED
@@ -11,7 +11,7 @@ const pagingSchema = z.object({
11
11
  });
12
12
  const severalAlbumsResponseSchema = z.object({ albums: z.array(spotifyAlbumSchema) });
13
13
  const getAlbum = spotifyOperation({
14
- id: "get_spotify_album",
14
+ id: "spotify.get-spotify-album",
15
15
  name: "Get Spotify Album",
16
16
  description: "Fetch a Spotify album by its ID.",
17
17
  input: z.object({
@@ -24,7 +24,7 @@ const getAlbum = spotifyOperation({
24
24
  }
25
25
  });
26
26
  const getAlbumTracks = spotifyOperation({
27
- id: "get_spotify_album_tracks",
27
+ id: "spotify.get-spotify-album-tracks",
28
28
  name: "Get Spotify Album Tracks",
29
29
  description: "List tracks for a Spotify album.",
30
30
  input: pagingSchema.extend({
@@ -41,7 +41,7 @@ const getAlbumTracks = spotifyOperation({
41
41
  }
42
42
  });
43
43
  const getSeveralAlbums = spotifyOperation({
44
- id: "get_spotify_several_albums",
44
+ id: "spotify.get-spotify-several-albums",
45
45
  name: "Get Several Spotify Albums",
46
46
  description: "Fetch multiple Spotify albums in one request.",
47
47
  input: z.object({
@@ -54,7 +54,7 @@ const getSeveralAlbums = spotifyOperation({
54
54
  }
55
55
  });
56
56
  const getNewReleases = spotifyOperation({
57
- id: "get_spotify_new_releases",
57
+ id: "spotify.get-spotify-new-releases",
58
58
  name: "Get Spotify New Releases",
59
59
  description: "List Spotify new-release albums for a market.",
60
60
  input: pagingSchema.extend({ country: spotifyMarketSchema.optional() }),
package/dist/artists.mjs CHANGED
@@ -18,7 +18,7 @@ const pagingSchema = z.object({
18
18
  const severalArtistsResponseSchema = z.object({ artists: z.array(spotifyArtistSchema) });
19
19
  const artistTopTracksResponseSchema = z.object({ tracks: z.array(spotifyTrackSchema) });
20
20
  const getArtist = spotifyOperation({
21
- id: "get_spotify_artist",
21
+ id: "spotify.get-spotify-artist",
22
22
  name: "Get Spotify Artist",
23
23
  description: "Fetch a Spotify artist by its ID.",
24
24
  input: z.object({ id: spotifyIdSchema }),
@@ -28,7 +28,7 @@ const getArtist = spotifyOperation({
28
28
  }
29
29
  });
30
30
  const getArtistAlbums = spotifyOperation({
31
- id: "get_spotify_artist_albums",
31
+ id: "spotify.get-spotify-artist-albums",
32
32
  name: "Get Spotify Artist Albums",
33
33
  description: "List albums released by a Spotify artist.",
34
34
  input: pagingSchema.extend({
@@ -47,7 +47,7 @@ const getArtistAlbums = spotifyOperation({
47
47
  }
48
48
  });
49
49
  const getArtistTopTracks = spotifyOperation({
50
- id: "get_spotify_artist_top_tracks",
50
+ id: "spotify.get-spotify-artist-top-tracks",
51
51
  name: "Get Spotify Artist Top Tracks",
52
52
  description: "Fetch the top tracks for a Spotify artist in a market.",
53
53
  input: z.object({
@@ -60,7 +60,7 @@ const getArtistTopTracks = spotifyOperation({
60
60
  }
61
61
  });
62
62
  const getArtistRelatedArtists = spotifyOperation({
63
- id: "get_spotify_artist_related_artists",
63
+ id: "spotify.get-spotify-artist-related-artists",
64
64
  name: "Get Spotify Artist Related Artists",
65
65
  description: "Fetch artists related to a Spotify artist. Deprecated upstream by Spotify.",
66
66
  input: z.object({ id: spotifyIdSchema }),
@@ -70,7 +70,7 @@ const getArtistRelatedArtists = spotifyOperation({
70
70
  }
71
71
  });
72
72
  const getSeveralArtists = spotifyOperation({
73
- id: "get_spotify_several_artists",
73
+ id: "spotify.get-spotify-several-artists",
74
74
  name: "Get Several Spotify Artists",
75
75
  description: "Fetch multiple Spotify artists in one request.",
76
76
  input: z.object({ ids: artistIdListSchema }),
@@ -5,7 +5,7 @@ import { z } from "zod";
5
5
 
6
6
  //#region src/audio-analysis.ts
7
7
  const getAudioAnalysis = spotifyOperation({
8
- id: "get_spotify_audio_analysis",
8
+ id: "spotify.get-spotify-audio-analysis",
9
9
  name: "Get Spotify Audio Analysis",
10
10
  description: "Fetch the detailed Spotify audio analysis for a track.",
11
11
  input: z.object({ id: spotifyIdSchema }),
@@ -7,7 +7,7 @@ import { z } from "zod";
7
7
  const trackIdListSchema = z.array(spotifyIdSchema).min(1).max(100);
8
8
  const severalAudioFeaturesResponseSchema = z.object({ audioFeatures: z.array(spotifyAudioFeaturesSchema.nullable()) });
9
9
  const getAudioFeatures = spotifyOperation({
10
- id: "get_spotify_audio_features",
10
+ id: "spotify.get-spotify-audio-features",
11
11
  name: "Get Spotify Audio Features",
12
12
  description: "Fetch Spotify audio features for a track.",
13
13
  input: z.object({ id: spotifyIdSchema }),
@@ -17,7 +17,7 @@ const getAudioFeatures = spotifyOperation({
17
17
  }
18
18
  });
19
19
  const getSeveralAudioFeatures = spotifyOperation({
20
- id: "get_spotify_several_audio_features",
20
+ id: "spotify.get-spotify-several-audio-features",
21
21
  name: "Get Several Spotify Audio Features",
22
22
  description: "Fetch Spotify audio features for multiple tracks.",
23
23
  input: z.object({ ids: trackIdListSchema }),
@@ -21,7 +21,7 @@ const audiobookChaptersInputSchema = z.object({
21
21
  offset: z.number().int().nonnegative().optional()
22
22
  });
23
23
  const getAudiobook = spotifyOperation({
24
- id: "get_spotify_audiobook",
24
+ id: "spotify.get-spotify-audiobook",
25
25
  name: "Get Spotify Audiobook",
26
26
  description: "Fetch a single Spotify audiobook by ID.",
27
27
  input: audiobookLookupInputSchema,
@@ -31,7 +31,7 @@ const getAudiobook = spotifyOperation({
31
31
  }
32
32
  });
33
33
  const getSeveralAudiobooks = spotifyOperation({
34
- id: "get_spotify_several_audiobooks",
34
+ id: "spotify.get-spotify-several-audiobooks",
35
35
  name: "Get Several Spotify Audiobooks",
36
36
  description: "Fetch multiple Spotify audiobooks in a single request.",
37
37
  input: severalAudiobooksInputSchema,
@@ -41,7 +41,7 @@ const getSeveralAudiobooks = spotifyOperation({
41
41
  }
42
42
  });
43
43
  const getAudiobookChapters = spotifyOperation({
44
- id: "get_spotify_audiobook_chapters",
44
+ id: "spotify.get-spotify-audiobook-chapters",
45
45
  name: "Get Spotify Audiobook Chapters",
46
46
  description: "List chapters for a Spotify audiobook.",
47
47
  input: audiobookChaptersInputSchema,
package/dist/browse.mjs CHANGED
@@ -5,7 +5,7 @@ import { z } from "zod";
5
5
 
6
6
  //#region src/browse.ts
7
7
  const getFeaturedPlaylists = spotifyOperation({
8
- id: "get_spotify_featured_playlists",
8
+ id: "spotify.get-spotify-featured-playlists",
9
9
  name: "Get Spotify Featured Playlists",
10
10
  description: "List featured Spotify playlists for a market. This endpoint is deprecated upstream by Spotify.",
11
11
  input: z.object({
@@ -10,7 +10,7 @@ const categoryPagingSchema = z.object({
10
10
  offset: z.number().int().nonnegative().optional()
11
11
  });
12
12
  const getBrowseCategories = spotifyOperation({
13
- id: "get_spotify_browse_categories",
13
+ id: "spotify.get-spotify-browse-categories",
14
14
  name: "Get Spotify Browse Categories",
15
15
  description: "List Spotify browse categories.",
16
16
  input: categoryPagingSchema.extend({
@@ -28,7 +28,7 @@ const getBrowseCategories = spotifyOperation({
28
28
  }
29
29
  });
30
30
  const getBrowseCategory = spotifyOperation({
31
- id: "get_spotify_browse_category",
31
+ id: "spotify.get-spotify-browse-category",
32
32
  name: "Get Spotify Browse Category",
33
33
  description: "Fetch a single Spotify browse category.",
34
34
  input: z.object({
@@ -45,7 +45,7 @@ const getBrowseCategory = spotifyOperation({
45
45
  }
46
46
  });
47
47
  const getCategoryPlaylists = spotifyOperation({
48
- id: "get_spotify_category_playlists",
48
+ id: "spotify.get-spotify-category-playlists",
49
49
  name: "Get Spotify Category Playlists",
50
50
  description: "List playlists for a Spotify browse category. This endpoint is deprecated upstream by Spotify.",
51
51
  input: categoryPagingSchema.extend({
package/dist/chapters.mjs CHANGED
@@ -15,7 +15,7 @@ const severalChaptersInputSchema = z.object({
15
15
  });
16
16
  const severalChaptersOutputSchema = z.object({ chapters: z.array(spotifyChapterSchema) });
17
17
  const getChapter = spotifyOperation({
18
- id: "get_spotify_chapter",
18
+ id: "spotify.get-spotify-chapter",
19
19
  name: "Get Spotify Chapter",
20
20
  description: "Fetch a single Spotify chapter by ID.",
21
21
  input: chapterLookupInputSchema,
@@ -25,7 +25,7 @@ const getChapter = spotifyOperation({
25
25
  }
26
26
  });
27
27
  const getSeveralChapters = spotifyOperation({
28
- id: "get_spotify_several_chapters",
28
+ id: "spotify.get-spotify-several-chapters",
29
29
  name: "Get Several Spotify Chapters",
30
30
  description: "Fetch multiple Spotify chapters in a single request.",
31
31
  input: severalChaptersInputSchema,
package/dist/episodes.mjs CHANGED
@@ -15,7 +15,7 @@ const severalEpisodesInputSchema = z.object({
15
15
  });
16
16
  const severalEpisodesOutputSchema = z.object({ episodes: z.array(spotifyEpisodeSchema) });
17
17
  const getEpisode = spotifyOperation({
18
- id: "get_spotify_episode",
18
+ id: "spotify.get-spotify-episode",
19
19
  name: "Get Spotify Episode",
20
20
  description: "Fetch a single Spotify episode by ID.",
21
21
  input: episodeLookupInputSchema,
@@ -25,7 +25,7 @@ const getEpisode = spotifyOperation({
25
25
  }
26
26
  });
27
27
  const getSeveralEpisodes = spotifyOperation({
28
- id: "get_spotify_several_episodes",
28
+ id: "spotify.get-spotify-several-episodes",
29
29
  name: "Get Several Spotify Episodes",
30
30
  description: "Fetch multiple Spotify episodes in a single request.",
31
31
  input: severalEpisodesInputSchema,
package/dist/follow.mjs CHANGED
@@ -16,7 +16,7 @@ const followMutationInputSchema = z.object({
16
16
  ids: followIdsSchema
17
17
  });
18
18
  const getFollowedArtists = spotifyOperation({
19
- id: "get_spotify_followed_artists",
19
+ id: "spotify.get-spotify-followed-artists",
20
20
  name: "Get Followed Spotify Artists",
21
21
  description: "List the artists followed by the current Spotify user.",
22
22
  input: followedArtistsInputSchema,
@@ -29,7 +29,7 @@ const getFollowedArtists = spotifyOperation({
29
29
  }
30
30
  });
31
31
  const followArtistsOrUsers = spotifyOperation({
32
- id: "follow_spotify_artists_or_users",
32
+ id: "spotify.follow-spotify-artists-or-users",
33
33
  name: "Follow Spotify Artists Or Users",
34
34
  description: "Follow Spotify artists or users for the current account.",
35
35
  needsApproval: true,
@@ -40,7 +40,7 @@ const followArtistsOrUsers = spotifyOperation({
40
40
  }
41
41
  });
42
42
  const unfollowArtistsOrUsers = spotifyOperation({
43
- id: "unfollow_spotify_artists_or_users",
43
+ id: "spotify.unfollow-spotify-artists-or-users",
44
44
  name: "Unfollow Spotify Artists Or Users",
45
45
  description: "Unfollow Spotify artists or users for the current account.",
46
46
  needsApproval: true,
@@ -51,7 +51,7 @@ const unfollowArtistsOrUsers = spotifyOperation({
51
51
  }
52
52
  });
53
53
  const checkFollowingArtistsOrUsers = spotifyOperation({
54
- id: "check_spotify_following_artists_or_users",
54
+ id: "spotify.check-spotify-following-artists-or-users",
55
55
  name: "Check Following Spotify Artists Or Users",
56
56
  description: "Check whether the current Spotify user follows the given artists or users.",
57
57
  input: followMutationInputSchema,
package/dist/genres.mjs CHANGED
@@ -5,7 +5,7 @@ import { z } from "zod";
5
5
  //#region src/genres.ts
6
6
  const availableGenreSeedsResponseSchema = z.object({ genres: z.array(z.string().min(1)) });
7
7
  const getAvailableGenreSeeds = spotifyOperation({
8
- id: "get_spotify_available_genre_seeds",
8
+ id: "spotify.get-spotify-available-genre-seeds",
9
9
  name: "Get Spotify Available Genre Seeds",
10
10
  description: "List Spotify recommendation genre seeds. This endpoint is deprecated upstream by Spotify.",
11
11
  input: z.object({}),
package/dist/library.mjs CHANGED
@@ -11,7 +11,7 @@ const offsetPaginationInputSchema = z.object({
11
11
  const marketOffsetPaginationInputSchema = offsetPaginationInputSchema.extend({ market: spotifyMarketSchema.optional() });
12
12
  const savedItemIdsInputSchema = z.object({ ids: z.array(spotifyIdSchema).min(1).max(50) });
13
13
  const listSavedAlbums = spotifyOperation({
14
- id: "list_saved_albums",
14
+ id: "spotify.list-saved-albums",
15
15
  name: "List Saved Albums",
16
16
  description: "List albums saved in the connected Spotify account library.",
17
17
  input: marketOffsetPaginationInputSchema,
@@ -21,7 +21,7 @@ const listSavedAlbums = spotifyOperation({
21
21
  }
22
22
  });
23
23
  const saveAlbums = spotifyOperation({
24
- id: "save_albums",
24
+ id: "spotify.save-albums",
25
25
  name: "Save Albums",
26
26
  description: "Save albums to the connected Spotify account library.",
27
27
  input: savedItemIdsInputSchema,
@@ -32,7 +32,7 @@ const saveAlbums = spotifyOperation({
32
32
  }
33
33
  });
34
34
  const removeSavedAlbums = spotifyOperation({
35
- id: "remove_saved_albums",
35
+ id: "spotify.remove-saved-albums",
36
36
  name: "Remove Saved Albums",
37
37
  description: "Remove saved albums from the connected Spotify account library.",
38
38
  input: savedItemIdsInputSchema,
@@ -43,7 +43,7 @@ const removeSavedAlbums = spotifyOperation({
43
43
  }
44
44
  });
45
45
  const checkSavedAlbums = spotifyOperation({
46
- id: "check_saved_albums",
46
+ id: "spotify.check-saved-albums",
47
47
  name: "Check Saved Albums",
48
48
  description: "Check whether albums are saved in the connected Spotify account library.",
49
49
  input: savedItemIdsInputSchema,
@@ -53,7 +53,7 @@ const checkSavedAlbums = spotifyOperation({
53
53
  }
54
54
  });
55
55
  const listSavedTracks = spotifyOperation({
56
- id: "list_saved_tracks",
56
+ id: "spotify.list-saved-tracks",
57
57
  name: "List Saved Tracks",
58
58
  description: "List tracks saved in the connected Spotify account library.",
59
59
  input: marketOffsetPaginationInputSchema,
@@ -63,7 +63,7 @@ const listSavedTracks = spotifyOperation({
63
63
  }
64
64
  });
65
65
  const saveTracks = spotifyOperation({
66
- id: "save_tracks",
66
+ id: "spotify.save-tracks",
67
67
  name: "Save Tracks",
68
68
  description: "Save tracks to the connected Spotify account library.",
69
69
  input: savedItemIdsInputSchema,
@@ -74,7 +74,7 @@ const saveTracks = spotifyOperation({
74
74
  }
75
75
  });
76
76
  const removeSavedTracks = spotifyOperation({
77
- id: "remove_saved_tracks",
77
+ id: "spotify.remove-saved-tracks",
78
78
  name: "Remove Saved Tracks",
79
79
  description: "Remove saved tracks from the connected Spotify account library.",
80
80
  input: savedItemIdsInputSchema,
@@ -85,7 +85,7 @@ const removeSavedTracks = spotifyOperation({
85
85
  }
86
86
  });
87
87
  const checkSavedTracks = spotifyOperation({
88
- id: "check_saved_tracks",
88
+ id: "spotify.check-saved-tracks",
89
89
  name: "Check Saved Tracks",
90
90
  description: "Check whether tracks are saved in the connected Spotify account library.",
91
91
  input: savedItemIdsInputSchema,
@@ -95,7 +95,7 @@ const checkSavedTracks = spotifyOperation({
95
95
  }
96
96
  });
97
97
  const listSavedShows = spotifyOperation({
98
- id: "list_saved_shows",
98
+ id: "spotify.list-saved-shows",
99
99
  name: "List Saved Shows",
100
100
  description: "List shows saved in the connected Spotify account library.",
101
101
  input: offsetPaginationInputSchema,
@@ -105,7 +105,7 @@ const listSavedShows = spotifyOperation({
105
105
  }
106
106
  });
107
107
  const saveShows = spotifyOperation({
108
- id: "save_shows",
108
+ id: "spotify.save-shows",
109
109
  name: "Save Shows",
110
110
  description: "Save shows to the connected Spotify account library.",
111
111
  input: savedItemIdsInputSchema,
@@ -116,7 +116,7 @@ const saveShows = spotifyOperation({
116
116
  }
117
117
  });
118
118
  const removeSavedShows = spotifyOperation({
119
- id: "remove_saved_shows",
119
+ id: "spotify.remove-saved-shows",
120
120
  name: "Remove Saved Shows",
121
121
  description: "Remove saved shows from the connected Spotify account library.",
122
122
  input: savedItemIdsInputSchema,
@@ -127,7 +127,7 @@ const removeSavedShows = spotifyOperation({
127
127
  }
128
128
  });
129
129
  const checkSavedShows = spotifyOperation({
130
- id: "check_saved_shows",
130
+ id: "spotify.check-saved-shows",
131
131
  name: "Check Saved Shows",
132
132
  description: "Check whether shows are saved in the connected Spotify account library.",
133
133
  input: savedItemIdsInputSchema,
@@ -137,7 +137,7 @@ const checkSavedShows = spotifyOperation({
137
137
  }
138
138
  });
139
139
  const listSavedEpisodes = spotifyOperation({
140
- id: "list_saved_episodes",
140
+ id: "spotify.list-saved-episodes",
141
141
  name: "List Saved Episodes",
142
142
  description: "List episodes saved in the connected Spotify account library.",
143
143
  input: marketOffsetPaginationInputSchema,
@@ -147,7 +147,7 @@ const listSavedEpisodes = spotifyOperation({
147
147
  }
148
148
  });
149
149
  const saveEpisodes = spotifyOperation({
150
- id: "save_episodes",
150
+ id: "spotify.save-episodes",
151
151
  name: "Save Episodes",
152
152
  description: "Save episodes to the connected Spotify account library.",
153
153
  input: savedItemIdsInputSchema,
@@ -158,7 +158,7 @@ const saveEpisodes = spotifyOperation({
158
158
  }
159
159
  });
160
160
  const removeSavedEpisodes = spotifyOperation({
161
- id: "remove_saved_episodes",
161
+ id: "spotify.remove-saved-episodes",
162
162
  name: "Remove Saved Episodes",
163
163
  description: "Remove saved episodes from the connected Spotify account library.",
164
164
  input: savedItemIdsInputSchema,
@@ -169,7 +169,7 @@ const removeSavedEpisodes = spotifyOperation({
169
169
  }
170
170
  });
171
171
  const checkSavedEpisodes = spotifyOperation({
172
- id: "check_saved_episodes",
172
+ id: "spotify.check-saved-episodes",
173
173
  name: "Check Saved Episodes",
174
174
  description: "Check whether episodes are saved in the connected Spotify account library.",
175
175
  input: savedItemIdsInputSchema,
@@ -179,7 +179,7 @@ const checkSavedEpisodes = spotifyOperation({
179
179
  }
180
180
  });
181
181
  const listSavedAudiobooks = spotifyOperation({
182
- id: "list_saved_audiobooks",
182
+ id: "spotify.list-saved-audiobooks",
183
183
  name: "List Saved Audiobooks",
184
184
  description: "List audiobooks saved in the connected Spotify account library.",
185
185
  input: offsetPaginationInputSchema,
@@ -189,7 +189,7 @@ const listSavedAudiobooks = spotifyOperation({
189
189
  }
190
190
  });
191
191
  const saveAudiobooks = spotifyOperation({
192
- id: "save_audiobooks",
192
+ id: "spotify.save-audiobooks",
193
193
  name: "Save Audiobooks",
194
194
  description: "Save audiobooks to the connected Spotify account library.",
195
195
  input: savedItemIdsInputSchema,
@@ -200,7 +200,7 @@ const saveAudiobooks = spotifyOperation({
200
200
  }
201
201
  });
202
202
  const removeSavedAudiobooks = spotifyOperation({
203
- id: "remove_saved_audiobooks",
203
+ id: "spotify.remove-saved-audiobooks",
204
204
  name: "Remove Saved Audiobooks",
205
205
  description: "Remove saved audiobooks from the connected Spotify account library.",
206
206
  input: savedItemIdsInputSchema,
@@ -211,7 +211,7 @@ const removeSavedAudiobooks = spotifyOperation({
211
211
  }
212
212
  });
213
213
  const checkSavedAudiobooks = spotifyOperation({
214
- id: "check_saved_audiobooks",
214
+ id: "spotify.check-saved-audiobooks",
215
215
  name: "Check Saved Audiobooks",
216
216
  description: "Check whether audiobooks are saved in the connected Spotify account library.",
217
217
  input: savedItemIdsInputSchema,
package/dist/markets.mjs CHANGED
@@ -6,7 +6,7 @@ import { z } from "zod";
6
6
  //#region src/markets.ts
7
7
  const availableMarketsResponseSchema = z.object({ markets: z.array(spotifyMarketSchema) });
8
8
  const getAvailableMarkets = spotifyOperation({
9
- id: "get_spotify_available_markets",
9
+ id: "spotify.get-spotify-available-markets",
10
10
  name: "Get Spotify Available Markets",
11
11
  description: "List the markets currently supported by Spotify.",
12
12
  input: z.object({}),
package/dist/me.mjs CHANGED
@@ -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: "get_spotify_me",
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: "get_spotify_my_top_artists",
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: "get_spotify_my_top_tracks",
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.mjs CHANGED
@@ -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: "get_playback_state",
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: "transfer_playback",
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: "get_available_devices",
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: "get_currently_playing",
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: "start_or_resume_playback",
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: "pause_playback",
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: "skip_to_next",
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: "skip_to_previous",
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: "seek_to_position",
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: "set_repeat_mode",
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: "set_playback_volume",
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: "set_shuffle_mode",
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: "get_recently_played",
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: "add_to_queue",
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: "get_queue",
209
+ id: "spotify.get-queue",
210
210
  name: "Get Queue",
211
211
  description: "Fetch the current Spotify playback queue.",
212
212
  input: emptyInputSchema,
@@ -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: "create_playlist",
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: "get_playlist",
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: "update_playlist_details",
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: "get_playlist_items",
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: "get_playlist_cover_image",
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: "add_items_to_playlist",
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: "reorder_or_replace_playlist_items",
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: "remove_items_from_playlist",
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: "list_my_playlists",
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: "list_user_playlists",
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: "follow_playlist",
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: "unfollow_playlist",
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: "check_users_follow_playlist",
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: "upload_playlist_cover_image",
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,
@@ -75,7 +75,7 @@ const recommendationInputSchema = z.object({
75
75
  });
76
76
  });
77
77
  const getRecommendations = spotifyOperation({
78
- id: "get_spotify_recommendations",
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/search.mjs CHANGED
@@ -14,7 +14,7 @@ const spotifySearchTypeSchema = z.enum([
14
14
  "audiobook"
15
15
  ]);
16
16
  const search = spotifyOperation({
17
- id: "search_spotify_catalog",
17
+ id: "spotify.search-spotify-catalog",
18
18
  name: "Search Spotify Catalog",
19
19
  description: "Search the Spotify catalog across one or more resource types.",
20
20
  input: z.object({
package/dist/shows.mjs CHANGED
@@ -21,7 +21,7 @@ const showEpisodesInputSchema = z.object({
21
21
  offset: z.number().int().nonnegative().optional()
22
22
  });
23
23
  const getShow = spotifyOperation({
24
- id: "get_spotify_show",
24
+ id: "spotify.get-spotify-show",
25
25
  name: "Get Spotify Show",
26
26
  description: "Fetch a single Spotify show by ID.",
27
27
  input: showLookupInputSchema,
@@ -31,7 +31,7 @@ const getShow = spotifyOperation({
31
31
  }
32
32
  });
33
33
  const getSeveralShows = spotifyOperation({
34
- id: "get_spotify_several_shows",
34
+ id: "spotify.get-spotify-several-shows",
35
35
  name: "Get Several Spotify Shows",
36
36
  description: "Fetch multiple Spotify shows in a single request.",
37
37
  input: severalShowsInputSchema,
@@ -41,7 +41,7 @@ const getSeveralShows = spotifyOperation({
41
41
  }
42
42
  });
43
43
  const getShowEpisodes = spotifyOperation({
44
- id: "get_spotify_show_episodes",
44
+ id: "spotify.get-spotify-show-episodes",
45
45
  name: "Get Spotify Show Episodes",
46
46
  description: "List episodes for a Spotify show.",
47
47
  input: showEpisodesInputSchema,
package/dist/tracks.mjs CHANGED
@@ -7,7 +7,7 @@ import { z } from "zod";
7
7
  const trackIdListSchema = z.array(spotifyIdSchema).min(1).max(50);
8
8
  const severalTracksResponseSchema = z.object({ tracks: z.array(spotifyTrackSchema) });
9
9
  const getTrack = spotifyOperation({
10
- id: "get_spotify_track",
10
+ id: "spotify.get-spotify-track",
11
11
  name: "Get Spotify Track",
12
12
  description: "Fetch a Spotify track by its ID.",
13
13
  input: z.object({
@@ -20,7 +20,7 @@ const getTrack = spotifyOperation({
20
20
  }
21
21
  });
22
22
  const getSeveralTracks = spotifyOperation({
23
- id: "get_spotify_several_tracks",
23
+ id: "spotify.get-spotify-several-tracks",
24
24
  name: "Get Several Spotify Tracks",
25
25
  description: "Fetch multiple Spotify tracks in one request.",
26
26
  input: z.object({
package/dist/users.mjs CHANGED
@@ -6,7 +6,7 @@ import { z } from "zod";
6
6
  //#region src/users.ts
7
7
  const userLookupInputSchema = z.object({ id: spotifyIdSchema });
8
8
  const getUser = spotifyOperation({
9
- id: "get_spotify_user",
9
+ id: "spotify.get-spotify-user",
10
10
  name: "Get Spotify User",
11
11
  description: "Fetch a Spotify user profile by user ID.",
12
12
  input: userLookupInputSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/spotify",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -144,7 +144,7 @@
144
144
  "LICENSE"
145
145
  ],
146
146
  "dependencies": {
147
- "@keystrokehq/integration-authoring": "^0.0.7",
147
+ "@keystrokehq/integration-authoring": "^0.0.8",
148
148
  "zod": "^4.3.6"
149
149
  },
150
150
  "peerDependencies": {