@keystrokehq/spotify 0.0.15 → 0.0.16-integration-id-canonicalization.0

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 (81) hide show
  1. package/README.md +22 -53
  2. package/dist/{schemas.mjs → browse-BaBol4IR.mjs} +87 -72
  3. package/dist/credential-sets/index.d.mts +2 -0
  4. package/dist/credential-sets/index.mjs +4 -0
  5. package/dist/index.d.mts +4 -1
  6. package/dist/index.mjs +6 -1
  7. package/dist/operations/index.d.mts +2 -0
  8. package/dist/operations/index.mjs +3 -0
  9. package/dist/{schemas.d.mts → schemas/index.d.mts} +408 -398
  10. package/dist/schemas/index.mjs +3 -0
  11. package/dist/spotify-app.credential-set-DT2fivE7.d.mts +34 -0
  12. package/dist/spotify-app.credential-set-O5UKOpLR.mjs +16 -0
  13. package/dist/spotify.credential-set-CS3lCW-x.mjs +44 -0
  14. package/dist/upload-playlist-cover-image.operation-CnyIlv11.mjs +4247 -0
  15. package/dist/upload-playlist-cover-image.operation-Cqbmylzz.d.mts +5246 -0
  16. package/package.json +12 -128
  17. package/dist/_official/index.d.mts +0 -28
  18. package/dist/_official/index.mjs +0 -3
  19. package/dist/_runtime/index.d.mts +0 -1
  20. package/dist/_runtime/index.mjs +0 -1
  21. package/dist/albums.d.mts +0 -256
  22. package/dist/albums.mjs +0 -72
  23. package/dist/artists.d.mts +0 -226
  24. package/dist/artists.mjs +0 -84
  25. package/dist/audio-analysis.d.mts +0 -88
  26. package/dist/audio-analysis.mjs +0 -19
  27. package/dist/audio-features.d.mts +0 -56
  28. package/dist/audio-features.mjs +0 -31
  29. package/dist/audiobooks.d.mts +0 -169
  30. package/dist/audiobooks.mjs +0 -59
  31. package/dist/browse.d.mts +0 -71
  32. package/dist/browse.mjs +0 -31
  33. package/dist/categories.d.mts +0 -111
  34. package/dist/categories.mjs +0 -66
  35. package/dist/chapters.d.mts +0 -158
  36. package/dist/chapters.mjs +0 -39
  37. package/dist/client.d.mts +0 -3486
  38. package/dist/client.mjs +0 -758
  39. package/dist/connection.d.mts +0 -2
  40. package/dist/connection.mjs +0 -3
  41. package/dist/episodes.d.mts +0 -144
  42. package/dist/episodes.mjs +0 -39
  43. package/dist/errors.d.mts +0 -34
  44. package/dist/errors.mjs +0 -89
  45. package/dist/events.d.mts +0 -613
  46. package/dist/events.mjs +0 -55
  47. package/dist/factory-DMprpzS1.mjs +0 -8
  48. package/dist/follow.d.mts +0 -74
  49. package/dist/follow.mjs +0 -65
  50. package/dist/genres.d.mts +0 -11
  51. package/dist/genres.mjs +0 -19
  52. package/dist/integration-B5oEi2sg.d.mts +0 -27
  53. package/dist/integration-D9ABjTOP.mjs +0 -51
  54. package/dist/library.d.mts +0 -431
  55. package/dist/library.mjs +0 -225
  56. package/dist/markets.d.mts +0 -11
  57. package/dist/markets.mjs +0 -20
  58. package/dist/me.d.mts +0 -162
  59. package/dist/me.mjs +0 -58
  60. package/dist/messaging.d.mts +0 -1
  61. package/dist/messaging.mjs +0 -1
  62. package/dist/operations.d.mts +0 -6
  63. package/dist/operations.mjs +0 -237
  64. package/dist/player.d.mts +0 -846
  65. package/dist/player.mjs +0 -220
  66. package/dist/playlists.d.mts +0 -517
  67. package/dist/playlists.mjs +0 -243
  68. package/dist/recommendations.d.mts +0 -141
  69. package/dist/recommendations.mjs +0 -137
  70. package/dist/search.d.mts +0 -386
  71. package/dist/search.mjs +0 -42
  72. package/dist/shows.d.mts +0 -152
  73. package/dist/shows.mjs +0 -59
  74. package/dist/tracks.d.mts +0 -168
  75. package/dist/tracks.mjs +0 -37
  76. package/dist/triggers.d.mts +0 -45
  77. package/dist/triggers.mjs +0 -186
  78. package/dist/users.d.mts +0 -32
  79. package/dist/users.mjs +0 -20
  80. package/dist/verification.d.mts +0 -1
  81. package/dist/verification.mjs +0 -1
@@ -0,0 +1,3 @@
1
+ import { $ as spotifyExternalIdsSchema, A as spotifyRecentlyPlayedItemSchema, B as spotifyAudiobookSchema, C as spotifyPlaylistImageSchema, D as spotifyPlaybackContextSchema, E as spotifyDeviceSchema, F as spotifySavedTrackItemSchema, G as spotifyShowSummarySchema, H as spotifyChapterSchema, I as spotifyAlbumSchema, J as spotifyUserSchema, K as spotifyTrackOrEpisodeSchema, L as spotifyAlbumSummarySchema, M as spotifySavedAudiobookItemSchema, N as spotifySavedEpisodeItemSchema, O as spotifyPlaybackStateSchema, P as spotifySavedShowItemSchema, Q as spotifyCopyrightSchema, R as spotifyArtistSchema, S as spotifyTrackPageSchema, T as spotifyPlaylistSchema, U as spotifyEpisodeSchema, V as spotifyAudiobookSummarySchema, W as spotifyShowSchema, X as createSpotifyOffsetPageSchema, Y as createSpotifyCursorPageSchema, Z as spotifyBooleanListSchema, _ as spotifySavedEpisodePageSchema, a as spotifyAudiobookPageSchema, at as spotifyMutationSuccessSchema, b as spotifySearchResultSchema, c as spotifyChapterPageSchema, ct as spotifyResumePointSchema, d as spotifyPlaylistPageSchema, dt as spotifyUriSchema, et as spotifyExternalUrlsSchema, f as spotifyRecentlyPlayedPageSchema, g as spotifySavedAudiobookPageSchema, h as spotifySavedAlbumPageSchema, i as spotifyAudioFeaturesSchema, it as spotifyMarketSchema, j as spotifySavedAlbumItemSchema, k as spotifyQueueSchema, l as spotifyEpisodePageSchema, lt as spotifySnapshotResponseSchema, m as spotifyRecommendationsSchema, n as spotifyArtistPageSchema, nt as spotifyIdSchema, o as spotifyCategoryPageSchema, ot as spotifyNamedReferenceSchema, p as spotifyRecommendationSeedSchema, q as spotifyTrackSchema, r as spotifyAudioAnalysisSchema, rt as spotifyImageSchema, s as spotifyCategorySchema, st as spotifyRestrictionsSchema, t as spotifyAlbumPageSchema, tt as spotifyFollowersSchema, u as spotifyPlaylistItemPageSchema, ut as spotifyTimestampSchema, v as spotifySavedShowPageSchema, w as spotifyPlaylistItemSchema, x as spotifyShowPageSchema, y as spotifySavedTrackPageSchema, z as spotifyArtistSummarySchema } from "../browse-BaBol4IR.mjs";
2
+
3
+ export { createSpotifyCursorPageSchema, createSpotifyOffsetPageSchema, spotifyAlbumPageSchema, spotifyAlbumSchema, spotifyAlbumSummarySchema, spotifyArtistPageSchema, spotifyArtistSchema, spotifyArtistSummarySchema, spotifyAudioAnalysisSchema, spotifyAudioFeaturesSchema, spotifyAudiobookPageSchema, spotifyAudiobookSchema, spotifyAudiobookSummarySchema, spotifyBooleanListSchema, spotifyCategoryPageSchema, spotifyCategorySchema, spotifyChapterPageSchema, spotifyChapterSchema, spotifyCopyrightSchema, spotifyDeviceSchema, spotifyEpisodePageSchema, spotifyEpisodeSchema, spotifyExternalIdsSchema, spotifyExternalUrlsSchema, spotifyFollowersSchema, spotifyIdSchema, spotifyImageSchema, spotifyMarketSchema, spotifyMutationSuccessSchema, spotifyNamedReferenceSchema, spotifyPlaybackContextSchema, spotifyPlaybackStateSchema, spotifyPlaylistImageSchema, spotifyPlaylistItemPageSchema, spotifyPlaylistItemSchema, spotifyPlaylistPageSchema, spotifyPlaylistSchema, spotifyQueueSchema, spotifyRecentlyPlayedItemSchema, spotifyRecentlyPlayedPageSchema, spotifyRecommendationSeedSchema, spotifyRecommendationsSchema, spotifyRestrictionsSchema, spotifyResumePointSchema, spotifySavedAlbumItemSchema, spotifySavedAlbumPageSchema, spotifySavedAudiobookItemSchema, spotifySavedAudiobookPageSchema, spotifySavedEpisodeItemSchema, spotifySavedEpisodePageSchema, spotifySavedShowItemSchema, spotifySavedShowPageSchema, spotifySavedTrackItemSchema, spotifySavedTrackPageSchema, spotifySearchResultSchema, spotifyShowPageSchema, spotifyShowSchema, spotifyShowSummarySchema, spotifySnapshotResponseSchema, spotifyTimestampSchema, spotifyTrackOrEpisodeSchema, spotifyTrackPageSchema, spotifyTrackSchema, spotifyUriSchema, spotifyUserSchema };
@@ -0,0 +1,34 @@
1
+ import { CredentialSet } from "@keystrokehq/core";
2
+ import { z } from "zod";
3
+ import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
+ import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
+
6
+ //#region src/credential-sets/spotify.credential-set.d.ts
7
+ declare const SPOTIFY_OAUTH_SCOPES: readonly ["user-read-private", "user-read-email", "user-read-recently-played", "user-top-read", "user-library-read", "user-library-modify", "playlist-read-private", "playlist-read-collaborative", "playlist-modify-private", "playlist-modify-public", "user-read-currently-playing", "user-modify-playback-state", "user-read-playback-state", "user-follow-read", "user-follow-modify", "user-read-playback-position", "ugc-image-upload"];
8
+ declare const spotifyCredentialSet: CredentialSet<"spotify", z.ZodObject<{
9
+ SPOTIFY_ACCESS_TOKEN: z.ZodString;
10
+ }, z.core.$strip>, {
11
+ id: string;
12
+ kind: "oauth";
13
+ tokenType: "refreshable";
14
+ authUrl: string;
15
+ tokenUrl: string;
16
+ revokeUrl: null;
17
+ scopes: ("user-read-private" | "user-read-email" | "user-read-recently-played" | "user-top-read" | "user-library-read" | "user-library-modify" | "playlist-read-private" | "playlist-read-collaborative" | "playlist-modify-private" | "playlist-modify-public" | "user-read-currently-playing" | "user-modify-playback-state" | "user-read-playback-state" | "user-follow-read" | "user-follow-modify" | "user-read-playback-position" | "ugc-image-upload")[];
18
+ vault: {
19
+ accessToken: "SPOTIFY_ACCESS_TOKEN";
20
+ };
21
+ }[]>;
22
+ type SpotifyCredentials = InferCredentialSetAuth<typeof spotifyCredentialSet>;
23
+ //#endregion
24
+ //#region src/credential-sets/spotify-app.credential-set.d.ts
25
+ declare const spotifyAppCredentialSet: CredentialSet<"spotify-app", z.ZodObject<{
26
+ clientId: z.ZodString;
27
+ clientSecret: z.ZodString;
28
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
29
+ clientId: z.ZodString;
30
+ clientSecret: z.ZodString;
31
+ }, z.core.$strip>>[] | undefined>;
32
+ type SpotifyAppCredentials = z.infer<typeof spotifyAppCredentialSet.auth>;
33
+ //#endregion
34
+ export { spotifyCredentialSet as a, SpotifyCredentials as i, spotifyAppCredentialSet as n, SPOTIFY_OAUTH_SCOPES as r, SpotifyAppCredentials as t };
@@ -0,0 +1,16 @@
1
+ import { CredentialSet } from "@keystrokehq/core";
2
+ import { z } from "zod";
3
+
4
+ //#region src/credential-sets/spotify-app.credential-set.ts
5
+ const spotifyAppCredentialSet = new CredentialSet({
6
+ id: "spotify-app",
7
+ exposure: "platform-only",
8
+ name: "Spotify App",
9
+ auth: z.object({
10
+ clientId: z.string().min(1),
11
+ clientSecret: z.string().min(1)
12
+ })
13
+ });
14
+
15
+ //#endregion
16
+ export { spotifyAppCredentialSet as t };
@@ -0,0 +1,44 @@
1
+ import { CredentialSet } from "@keystrokehq/core";
2
+ import { z } from "zod";
3
+
4
+ //#region src/credential-sets/spotify.credential-set.ts
5
+ const SPOTIFY_OAUTH_SCOPES = [
6
+ "user-read-private",
7
+ "user-read-email",
8
+ "user-read-recently-played",
9
+ "user-top-read",
10
+ "user-library-read",
11
+ "user-library-modify",
12
+ "playlist-read-private",
13
+ "playlist-read-collaborative",
14
+ "playlist-modify-private",
15
+ "playlist-modify-public",
16
+ "user-read-currently-playing",
17
+ "user-modify-playback-state",
18
+ "user-read-playback-state",
19
+ "user-follow-read",
20
+ "user-follow-modify",
21
+ "user-read-playback-position",
22
+ "ugc-image-upload"
23
+ ];
24
+ const spotifyAuthSchema = z.object({ SPOTIFY_ACCESS_TOKEN: z.string().min(1) });
25
+ const spotifyCredentialSet = new CredentialSet({
26
+ id: "spotify",
27
+ name: "Spotify",
28
+ description: "Spotify playback, catalog, playlists, library, and polling triggers for Keystroke workflows",
29
+ auth: spotifyAuthSchema,
30
+ proxy: { hosts: ["api.spotify.com", "accounts.spotify.com"] },
31
+ connections: [{
32
+ id: "oauth",
33
+ kind: "oauth",
34
+ tokenType: "refreshable",
35
+ authUrl: "https://accounts.spotify.com/authorize",
36
+ tokenUrl: "https://accounts.spotify.com/api/token",
37
+ revokeUrl: null,
38
+ scopes: [...SPOTIFY_OAUTH_SCOPES],
39
+ vault: { accessToken: "SPOTIFY_ACCESS_TOKEN" }
40
+ }]
41
+ });
42
+
43
+ //#endregion
44
+ export { spotifyCredentialSet as n, SPOTIFY_OAUTH_SCOPES as t };