@keystrokehq/spotify 0.0.9 → 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.
- package/README.md +22 -53
- package/dist/{schemas.mjs → browse-BaBol4IR.mjs} +87 -72
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/{schemas.d.mts → schemas/index.d.mts} +407 -397
- package/dist/schemas/index.mjs +3 -0
- package/dist/spotify-app.credential-set-DT2fivE7.d.mts +34 -0
- package/dist/spotify-app.credential-set-O5UKOpLR.mjs +16 -0
- package/dist/spotify.credential-set-CS3lCW-x.mjs +44 -0
- package/dist/upload-playlist-cover-image.operation-CnyIlv11.mjs +4247 -0
- package/dist/upload-playlist-cover-image.operation-Cqbmylzz.d.mts +5246 -0
- package/package.json +11 -127
- package/dist/_official/index.d.mts +0 -32
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -1
- package/dist/_runtime/index.mjs +0 -1
- package/dist/albums.d.mts +0 -265
- package/dist/albums.mjs +0 -72
- package/dist/artists.d.mts +0 -237
- package/dist/artists.mjs +0 -84
- package/dist/audio-analysis.d.mts +0 -91
- package/dist/audio-analysis.mjs +0 -19
- package/dist/audio-features.d.mts +0 -61
- package/dist/audio-features.mjs +0 -31
- package/dist/audiobooks.d.mts +0 -176
- package/dist/audiobooks.mjs +0 -59
- package/dist/browse.d.mts +0 -74
- package/dist/browse.mjs +0 -31
- package/dist/categories.d.mts +0 -118
- package/dist/categories.mjs +0 -66
- package/dist/chapters.d.mts +0 -163
- package/dist/chapters.mjs +0 -39
- package/dist/client.d.mts +0 -3486
- package/dist/client.mjs +0 -758
- package/dist/connection.d.mts +0 -2
- package/dist/connection.mjs +0 -3
- package/dist/episodes.d.mts +0 -149
- package/dist/episodes.mjs +0 -39
- package/dist/errors.d.mts +0 -34
- package/dist/errors.mjs +0 -89
- package/dist/events.d.mts +0 -613
- package/dist/events.mjs +0 -55
- package/dist/factory-C9W7aXmR.mjs +0 -7
- package/dist/follow.d.mts +0 -83
- package/dist/follow.mjs +0 -65
- package/dist/genres.d.mts +0 -14
- package/dist/genres.mjs +0 -19
- package/dist/integration-CrkQTg9q.mjs +0 -170
- package/dist/integration-DXXNe4_j.d.mts +0 -40
- package/dist/library.d.mts +0 -472
- package/dist/library.mjs +0 -225
- package/dist/markets.d.mts +0 -14
- package/dist/markets.mjs +0 -20
- package/dist/me.d.mts +0 -169
- package/dist/me.mjs +0 -58
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/operations.d.mts +0 -6
- package/dist/operations.mjs +0 -237
- package/dist/player.d.mts +0 -877
- package/dist/player.mjs +0 -220
- package/dist/playlists.d.mts +0 -546
- package/dist/playlists.mjs +0 -243
- package/dist/recommendations.d.mts +0 -144
- package/dist/recommendations.mjs +0 -137
- package/dist/search.d.mts +0 -389
- package/dist/search.mjs +0 -42
- package/dist/shows.d.mts +0 -159
- package/dist/shows.mjs +0 -59
- package/dist/tracks.d.mts +0 -173
- package/dist/tracks.mjs +0 -37
- package/dist/triggers.d.mts +0 -44
- package/dist/triggers.mjs +0 -235
- package/dist/users.d.mts +0 -35
- package/dist/users.mjs +0 -20
- package/dist/verification.d.mts +0 -1
- 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 };
|