@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
package/dist/follow.d.mts DELETED
@@ -1,74 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_core0 from "@keystrokehq/core";
3
-
4
- //#region src/follow.d.ts
5
- declare const getFollowedArtists: _keystrokehq_core0.Operation<z.ZodObject<{
6
- after: z.ZodOptional<z.ZodString>;
7
- limit: z.ZodOptional<z.ZodNumber>;
8
- }, z.core.$strip>, z.ZodObject<{
9
- href: z.ZodOptional<z.ZodURL>;
10
- items: z.ZodArray<z.ZodObject<{
11
- externalUrls: z.ZodOptional<z.ZodObject<{
12
- spotify: z.ZodOptional<z.ZodURL>;
13
- }, z.core.$strip>>;
14
- href: z.ZodOptional<z.ZodURL>;
15
- id: z.ZodString;
16
- name: z.ZodString;
17
- type: z.ZodLiteral<"artist">;
18
- uri: z.ZodOptional<z.ZodString>;
19
- followers: z.ZodOptional<z.ZodObject<{
20
- href: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
21
- total: z.ZodNumber;
22
- }, z.core.$strip>>;
23
- genres: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
- images: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
- url: z.ZodURL;
26
- height: z.ZodNullable<z.ZodNumber>;
27
- width: z.ZodNullable<z.ZodNumber>;
28
- }, z.core.$strip>>>;
29
- popularity: z.ZodOptional<z.ZodNumber>;
30
- }, z.core.$strip>>;
31
- limit: z.ZodNumber;
32
- nextPageToken: z.ZodOptional<z.ZodString>;
33
- previousPageToken: z.ZodOptional<z.ZodString>;
34
- total: z.ZodOptional<z.ZodNumber>;
35
- cursors: z.ZodOptional<z.ZodObject<{
36
- after: z.ZodOptional<z.ZodString>;
37
- before: z.ZodOptional<z.ZodString>;
38
- }, z.core.$strip>>;
39
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
40
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
41
- }, z.core.$strip>>], undefined>;
42
- declare const followArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
43
- type: z.ZodEnum<{
44
- artist: "artist";
45
- user: "user";
46
- }>;
47
- ids: z.ZodArray<z.ZodString>;
48
- }, z.core.$strip>, z.ZodObject<{
49
- success: z.ZodLiteral<true>;
50
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
51
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
52
- }, z.core.$strip>>], undefined>;
53
- declare const unfollowArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
54
- type: z.ZodEnum<{
55
- artist: "artist";
56
- user: "user";
57
- }>;
58
- ids: z.ZodArray<z.ZodString>;
59
- }, z.core.$strip>, z.ZodObject<{
60
- success: z.ZodLiteral<true>;
61
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
62
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
63
- }, z.core.$strip>>], undefined>;
64
- declare const checkFollowingArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
65
- type: z.ZodEnum<{
66
- artist: "artist";
67
- user: "user";
68
- }>;
69
- ids: z.ZodArray<z.ZodString>;
70
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
71
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
72
- }, z.core.$strip>>], undefined>;
73
- //#endregion
74
- export { checkFollowingArtistsOrUsers, followArtistsOrUsers, getFollowedArtists, unfollowArtistsOrUsers };
package/dist/follow.mjs DELETED
@@ -1,65 +0,0 @@
1
- import { createSpotifyCursorPageSchema, spotifyArtistSchema, spotifyBooleanListSchema, spotifyIdSchema, spotifyMutationSuccessSchema } from "./schemas.mjs";
2
- import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
- import { z } from "zod";
5
-
6
- //#region src/follow.ts
7
- const followTypeSchema = z.enum(["artist", "user"]);
8
- const followIdsSchema = z.array(spotifyIdSchema).min(1).max(50);
9
- const followedArtistsPageSchema = createSpotifyCursorPageSchema(spotifyArtistSchema);
10
- const followedArtistsInputSchema = z.object({
11
- after: z.string().min(1).optional(),
12
- limit: z.number().int().min(1).max(50).optional()
13
- });
14
- const followMutationInputSchema = z.object({
15
- type: followTypeSchema,
16
- ids: followIdsSchema
17
- });
18
- const getFollowedArtists = spotifyOperation({
19
- id: "spotify.get-spotify-followed-artists",
20
- name: "Get Followed Spotify Artists",
21
- description: "List the artists followed by the current Spotify user.",
22
- input: followedArtistsInputSchema,
23
- output: followedArtistsPageSchema,
24
- run: async (input, credentials) => {
25
- return createSpotifyClient(credentials).follow.getFollowedArtists({
26
- after: input.after,
27
- limit: input.limit
28
- });
29
- }
30
- });
31
- const followArtistsOrUsers = spotifyOperation({
32
- id: "spotify.follow-spotify-artists-or-users",
33
- name: "Follow Spotify Artists Or Users",
34
- description: "Follow Spotify artists or users for the current account.",
35
- needsApproval: true,
36
- input: followMutationInputSchema,
37
- output: spotifyMutationSuccessSchema,
38
- run: async (input, credentials) => {
39
- return createSpotifyClient(credentials).follow.followArtistsOrUsers(input.type, input.ids);
40
- }
41
- });
42
- const unfollowArtistsOrUsers = spotifyOperation({
43
- id: "spotify.unfollow-spotify-artists-or-users",
44
- name: "Unfollow Spotify Artists Or Users",
45
- description: "Unfollow Spotify artists or users for the current account.",
46
- needsApproval: true,
47
- input: followMutationInputSchema,
48
- output: spotifyMutationSuccessSchema,
49
- run: async (input, credentials) => {
50
- return createSpotifyClient(credentials).follow.unfollowArtistsOrUsers(input.type, input.ids);
51
- }
52
- });
53
- const checkFollowingArtistsOrUsers = spotifyOperation({
54
- id: "spotify.check-spotify-following-artists-or-users",
55
- name: "Check Following Spotify Artists Or Users",
56
- description: "Check whether the current Spotify user follows the given artists or users.",
57
- input: followMutationInputSchema,
58
- output: spotifyBooleanListSchema,
59
- run: async (input, credentials) => {
60
- return createSpotifyClient(credentials).follow.checkFollowingArtistsOrUsers(input.type, input.ids);
61
- }
62
- });
63
-
64
- //#endregion
65
- export { checkFollowingArtistsOrUsers, followArtistsOrUsers, getFollowedArtists, unfollowArtistsOrUsers };
package/dist/genres.d.mts DELETED
@@ -1,11 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_core0 from "@keystrokehq/core";
3
-
4
- //#region src/genres.d.ts
5
- declare const getAvailableGenreSeeds: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
6
- genres: z.ZodArray<z.ZodString>;
7
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
8
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
9
- }, z.core.$strip>>], undefined>;
10
- //#endregion
11
- export { getAvailableGenreSeeds };
package/dist/genres.mjs DELETED
@@ -1,19 +0,0 @@
1
- import { createSpotifyClient } from "./client.mjs";
2
- import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/genres.ts
6
- const availableGenreSeedsResponseSchema = z.object({ genres: z.array(z.string().min(1)) });
7
- const getAvailableGenreSeeds = spotifyOperation({
8
- id: "spotify.get-spotify-available-genre-seeds",
9
- name: "Get Spotify Available Genre Seeds",
10
- description: "List Spotify recommendation genre seeds. This endpoint is deprecated upstream by Spotify.",
11
- input: z.object({}),
12
- output: availableGenreSeedsResponseSchema,
13
- run: async (_input, credentials) => {
14
- return createSpotifyClient(credentials).discovery.getAvailableGenreSeeds();
15
- }
16
- });
17
-
18
- //#endregion
19
- export { getAvailableGenreSeeds };
@@ -1,27 +0,0 @@
1
- import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core0 from "@keystrokehq/core";
4
- import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
-
6
- //#region src/integration.d.ts
7
- declare const spotifyOfficialIntegration: {
8
- id: "spotify";
9
- name: string;
10
- description: string;
11
- credentialType: "oauth";
12
- proxy: {
13
- hosts: string[];
14
- };
15
- auth: z.ZodObject<{
16
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
17
- }, z.core.$strip>;
18
- };
19
- declare const spotifyBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"spotify", z.ZodObject<{
20
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
21
- }, z.core.$strip>>;
22
- declare const spotify: _keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
23
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
24
- }, z.core.$strip>>;
25
- type SpotifyCredentials = InferCredentialSetAuth<typeof spotify>;
26
- //#endregion
27
- export { spotifyOfficialIntegration as i, spotify as n, spotifyBundle as r, SpotifyCredentials as t };
@@ -1,51 +0,0 @@
1
- import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
2
- import { z } from "zod";
3
- import { CredentialSet } from "@keystrokehq/core";
4
-
5
- //#region src/_official/provider-app.ts
6
- const spotifyAppCredentialSet = new CredentialSet({
7
- id: officialCredentialSetId("spotify-app"),
8
- credentialType: "manual",
9
- exposure: "platform-only",
10
- name: "Spotify App",
11
- auth: z.object({
12
- clientId: z.string().min(1),
13
- clientSecret: z.string().min(1)
14
- })
15
- });
16
- const spotifyOfficialProviderSeed = {
17
- provider: "spotify",
18
- appRef: "spotify-platform",
19
- displayName: "Spotify Platform",
20
- credentialSetName: "Keystroke Spotify Platform App",
21
- envShape: {
22
- KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID: z.string().optional(),
23
- KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET: z.string().optional()
24
- },
25
- requiredEnvKeys: ["KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID", "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET"],
26
- externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID",
27
- buildCredentials: (env) => ({
28
- clientId: env.KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID,
29
- clientSecret: env.KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET
30
- })
31
- };
32
-
33
- //#endregion
34
- //#region src/integration.ts
35
- const spotifyAuthSchema = z.object({ SPOTIFY_ACCESS_TOKEN: z.string().min(1) });
36
- const spotifyOfficialIntegration = {
37
- id: "spotify",
38
- name: "Spotify",
39
- description: "Spotify playback, catalog, playlists, library, and polling triggers for Keystroke workflows",
40
- credentialType: "oauth",
41
- proxy: { hosts: ["api.spotify.com", "accounts.spotify.com"] },
42
- auth: spotifyAuthSchema
43
- };
44
- const spotifyBundle = defineOfficialIntegration({
45
- ...spotifyOfficialIntegration,
46
- internal: { providerApp: spotifyAppCredentialSet }
47
- });
48
- const spotify = spotifyBundle.credentialSet;
49
-
50
- //#endregion
51
- export { spotifyOfficialProviderSeed as a, spotifyAppCredentialSet as i, spotifyBundle as n, spotifyOfficialIntegration as r, spotify as t };
@@ -1,431 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_core0 from "@keystrokehq/core";
3
-
4
- //#region src/library.d.ts
5
- declare const listSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
6
- limit: z.ZodOptional<z.ZodNumber>;
7
- offset: z.ZodOptional<z.ZodNumber>;
8
- market: z.ZodOptional<z.ZodString>;
9
- }, z.core.$strip>, z.ZodObject<{
10
- href: z.ZodOptional<z.ZodURL>;
11
- items: z.ZodArray<z.ZodObject<{
12
- addedAt: z.ZodISODateTime;
13
- album: z.ZodObject<{
14
- albumType: z.ZodOptional<z.ZodEnum<{
15
- album: "album";
16
- single: "single";
17
- compilation: "compilation";
18
- }>>;
19
- artists: z.ZodArray<z.ZodObject<{
20
- externalUrls: z.ZodOptional<z.ZodObject<{
21
- spotify: z.ZodOptional<z.ZodURL>;
22
- }, z.core.$strip>>;
23
- href: z.ZodOptional<z.ZodURL>;
24
- id: z.ZodString;
25
- name: z.ZodString;
26
- type: z.ZodLiteral<"artist">;
27
- uri: z.ZodOptional<z.ZodString>;
28
- }, z.core.$strip>>;
29
- availableMarkets: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
- externalUrls: z.ZodOptional<z.ZodObject<{
31
- spotify: z.ZodOptional<z.ZodURL>;
32
- }, z.core.$strip>>;
33
- href: z.ZodOptional<z.ZodURL>;
34
- id: z.ZodString;
35
- images: z.ZodArray<z.ZodObject<{
36
- url: z.ZodURL;
37
- height: z.ZodNullable<z.ZodNumber>;
38
- width: z.ZodNullable<z.ZodNumber>;
39
- }, z.core.$strip>>;
40
- name: z.ZodString;
41
- releaseDate: z.ZodOptional<z.ZodString>;
42
- releaseDatePrecision: z.ZodOptional<z.ZodEnum<{
43
- year: "year";
44
- month: "month";
45
- day: "day";
46
- }>>;
47
- totalTracks: z.ZodOptional<z.ZodNumber>;
48
- type: z.ZodLiteral<"album">;
49
- uri: z.ZodOptional<z.ZodString>;
50
- copyrights: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
- text: z.ZodString;
52
- type: z.ZodString;
53
- }, z.core.$strip>>>;
54
- genres: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
- label: z.ZodOptional<z.ZodString>;
56
- popularity: z.ZodOptional<z.ZodNumber>;
57
- restrictions: z.ZodOptional<z.ZodObject<{
58
- reason: z.ZodString;
59
- }, z.core.$strip>>;
60
- }, z.core.$strip>;
61
- }, z.core.$strip>>;
62
- limit: z.ZodNumber;
63
- nextPageToken: z.ZodOptional<z.ZodString>;
64
- offset: z.ZodNumber;
65
- previousPageToken: z.ZodOptional<z.ZodString>;
66
- total: z.ZodOptional<z.ZodNumber>;
67
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
68
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
69
- }, z.core.$strip>>], undefined>;
70
- declare const saveAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
71
- ids: z.ZodArray<z.ZodString>;
72
- }, z.core.$strip>, z.ZodObject<{
73
- success: z.ZodLiteral<true>;
74
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
75
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
76
- }, z.core.$strip>>], undefined>;
77
- declare const removeSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
78
- ids: z.ZodArray<z.ZodString>;
79
- }, z.core.$strip>, z.ZodObject<{
80
- success: z.ZodLiteral<true>;
81
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
82
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
83
- }, z.core.$strip>>], undefined>;
84
- declare const checkSavedAlbums: _keystrokehq_core0.Operation<z.ZodObject<{
85
- ids: z.ZodArray<z.ZodString>;
86
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
87
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
88
- }, z.core.$strip>>], undefined>;
89
- declare const listSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
90
- limit: z.ZodOptional<z.ZodNumber>;
91
- offset: z.ZodOptional<z.ZodNumber>;
92
- market: z.ZodOptional<z.ZodString>;
93
- }, z.core.$strip>, z.ZodObject<{
94
- href: z.ZodOptional<z.ZodURL>;
95
- items: z.ZodArray<z.ZodObject<{
96
- addedAt: z.ZodISODateTime;
97
- track: z.ZodObject<{
98
- album: z.ZodOptional<z.ZodObject<{
99
- albumType: z.ZodOptional<z.ZodEnum<{
100
- album: "album";
101
- single: "single";
102
- compilation: "compilation";
103
- }>>;
104
- artists: z.ZodArray<z.ZodObject<{
105
- externalUrls: z.ZodOptional<z.ZodObject<{
106
- spotify: z.ZodOptional<z.ZodURL>;
107
- }, z.core.$strip>>;
108
- href: z.ZodOptional<z.ZodURL>;
109
- id: z.ZodString;
110
- name: z.ZodString;
111
- type: z.ZodLiteral<"artist">;
112
- uri: z.ZodOptional<z.ZodString>;
113
- }, z.core.$strip>>;
114
- availableMarkets: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
- externalUrls: z.ZodOptional<z.ZodObject<{
116
- spotify: z.ZodOptional<z.ZodURL>;
117
- }, z.core.$strip>>;
118
- href: z.ZodOptional<z.ZodURL>;
119
- id: z.ZodString;
120
- images: z.ZodArray<z.ZodObject<{
121
- url: z.ZodURL;
122
- height: z.ZodNullable<z.ZodNumber>;
123
- width: z.ZodNullable<z.ZodNumber>;
124
- }, z.core.$strip>>;
125
- name: z.ZodString;
126
- releaseDate: z.ZodOptional<z.ZodString>;
127
- releaseDatePrecision: z.ZodOptional<z.ZodEnum<{
128
- year: "year";
129
- month: "month";
130
- day: "day";
131
- }>>;
132
- totalTracks: z.ZodOptional<z.ZodNumber>;
133
- type: z.ZodLiteral<"album">;
134
- uri: z.ZodOptional<z.ZodString>;
135
- }, z.core.$strip>>;
136
- artists: z.ZodArray<z.ZodObject<{
137
- externalUrls: z.ZodOptional<z.ZodObject<{
138
- spotify: z.ZodOptional<z.ZodURL>;
139
- }, z.core.$strip>>;
140
- href: z.ZodOptional<z.ZodURL>;
141
- id: z.ZodString;
142
- name: z.ZodString;
143
- type: z.ZodLiteral<"artist">;
144
- uri: z.ZodOptional<z.ZodString>;
145
- }, z.core.$strip>>;
146
- availableMarkets: z.ZodOptional<z.ZodArray<z.ZodString>>;
147
- discNumber: z.ZodOptional<z.ZodNumber>;
148
- durationMs: z.ZodNumber;
149
- explicit: z.ZodBoolean;
150
- externalIds: z.ZodOptional<z.ZodObject<{
151
- isrc: z.ZodOptional<z.ZodString>;
152
- ean: z.ZodOptional<z.ZodString>;
153
- upc: z.ZodOptional<z.ZodString>;
154
- }, z.core.$strip>>;
155
- externalUrls: z.ZodOptional<z.ZodObject<{
156
- spotify: z.ZodOptional<z.ZodURL>;
157
- }, z.core.$strip>>;
158
- href: z.ZodOptional<z.ZodURL>;
159
- id: z.ZodString;
160
- isLocal: z.ZodOptional<z.ZodBoolean>;
161
- isPlayable: z.ZodOptional<z.ZodBoolean>;
162
- name: z.ZodString;
163
- popularity: z.ZodOptional<z.ZodNumber>;
164
- previewUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodNull]>>;
165
- restrictions: z.ZodOptional<z.ZodObject<{
166
- reason: z.ZodString;
167
- }, z.core.$strip>>;
168
- trackNumber: z.ZodOptional<z.ZodNumber>;
169
- type: z.ZodLiteral<"track">;
170
- uri: z.ZodOptional<z.ZodString>;
171
- }, z.core.$strip>;
172
- }, z.core.$strip>>;
173
- limit: z.ZodNumber;
174
- nextPageToken: z.ZodOptional<z.ZodString>;
175
- offset: z.ZodNumber;
176
- previousPageToken: z.ZodOptional<z.ZodString>;
177
- total: z.ZodOptional<z.ZodNumber>;
178
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
179
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
180
- }, z.core.$strip>>], undefined>;
181
- declare const saveTracks: _keystrokehq_core0.Operation<z.ZodObject<{
182
- ids: z.ZodArray<z.ZodString>;
183
- }, z.core.$strip>, z.ZodObject<{
184
- success: z.ZodLiteral<true>;
185
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
186
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
187
- }, z.core.$strip>>], undefined>;
188
- declare const removeSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
189
- ids: z.ZodArray<z.ZodString>;
190
- }, z.core.$strip>, z.ZodObject<{
191
- success: z.ZodLiteral<true>;
192
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
193
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
194
- }, z.core.$strip>>], undefined>;
195
- declare const checkSavedTracks: _keystrokehq_core0.Operation<z.ZodObject<{
196
- ids: z.ZodArray<z.ZodString>;
197
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
198
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
199
- }, z.core.$strip>>], undefined>;
200
- declare const listSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
201
- limit: z.ZodOptional<z.ZodNumber>;
202
- offset: z.ZodOptional<z.ZodNumber>;
203
- }, z.core.$strip>, z.ZodObject<{
204
- href: z.ZodOptional<z.ZodURL>;
205
- items: z.ZodArray<z.ZodObject<{
206
- addedAt: z.ZodISODateTime;
207
- show: z.ZodObject<{
208
- availableMarkets: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
- copyrights: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
- text: z.ZodString;
211
- type: z.ZodString;
212
- }, z.core.$strip>>>;
213
- description: z.ZodOptional<z.ZodString>;
214
- explicit: z.ZodOptional<z.ZodBoolean>;
215
- externalUrls: z.ZodOptional<z.ZodObject<{
216
- spotify: z.ZodOptional<z.ZodURL>;
217
- }, z.core.$strip>>;
218
- href: z.ZodOptional<z.ZodURL>;
219
- id: z.ZodString;
220
- images: z.ZodArray<z.ZodObject<{
221
- url: z.ZodURL;
222
- height: z.ZodNullable<z.ZodNumber>;
223
- width: z.ZodNullable<z.ZodNumber>;
224
- }, z.core.$strip>>;
225
- languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
226
- mediaType: z.ZodOptional<z.ZodString>;
227
- name: z.ZodString;
228
- publisher: z.ZodOptional<z.ZodString>;
229
- totalEpisodes: z.ZodOptional<z.ZodNumber>;
230
- type: z.ZodLiteral<"show">;
231
- uri: z.ZodOptional<z.ZodString>;
232
- htmlDescription: z.ZodOptional<z.ZodString>;
233
- isExternallyHosted: z.ZodOptional<z.ZodBoolean>;
234
- }, z.core.$strip>;
235
- }, z.core.$strip>>;
236
- limit: z.ZodNumber;
237
- nextPageToken: z.ZodOptional<z.ZodString>;
238
- offset: z.ZodNumber;
239
- previousPageToken: z.ZodOptional<z.ZodString>;
240
- total: z.ZodOptional<z.ZodNumber>;
241
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
242
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
243
- }, z.core.$strip>>], undefined>;
244
- declare const saveShows: _keystrokehq_core0.Operation<z.ZodObject<{
245
- ids: z.ZodArray<z.ZodString>;
246
- }, z.core.$strip>, z.ZodObject<{
247
- success: z.ZodLiteral<true>;
248
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
249
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
250
- }, z.core.$strip>>], undefined>;
251
- declare const removeSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
252
- ids: z.ZodArray<z.ZodString>;
253
- }, z.core.$strip>, z.ZodObject<{
254
- success: z.ZodLiteral<true>;
255
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
256
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
257
- }, z.core.$strip>>], undefined>;
258
- declare const checkSavedShows: _keystrokehq_core0.Operation<z.ZodObject<{
259
- ids: z.ZodArray<z.ZodString>;
260
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
261
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
262
- }, z.core.$strip>>], undefined>;
263
- declare const listSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
264
- limit: z.ZodOptional<z.ZodNumber>;
265
- offset: z.ZodOptional<z.ZodNumber>;
266
- market: z.ZodOptional<z.ZodString>;
267
- }, z.core.$strip>, z.ZodObject<{
268
- href: z.ZodOptional<z.ZodURL>;
269
- items: z.ZodArray<z.ZodObject<{
270
- addedAt: z.ZodISODateTime;
271
- episode: z.ZodObject<{
272
- audioPreviewUrl: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodNull]>>;
273
- description: z.ZodOptional<z.ZodString>;
274
- durationMs: z.ZodNumber;
275
- explicit: z.ZodBoolean;
276
- externalUrls: z.ZodOptional<z.ZodObject<{
277
- spotify: z.ZodOptional<z.ZodURL>;
278
- }, z.core.$strip>>;
279
- href: z.ZodOptional<z.ZodURL>;
280
- htmlDescription: z.ZodOptional<z.ZodString>;
281
- id: z.ZodString;
282
- images: z.ZodArray<z.ZodObject<{
283
- url: z.ZodURL;
284
- height: z.ZodNullable<z.ZodNumber>;
285
- width: z.ZodNullable<z.ZodNumber>;
286
- }, z.core.$strip>>;
287
- isExternallyHosted: z.ZodOptional<z.ZodBoolean>;
288
- isPlayable: z.ZodOptional<z.ZodBoolean>;
289
- language: z.ZodOptional<z.ZodString>;
290
- languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
291
- name: z.ZodString;
292
- releaseDate: z.ZodOptional<z.ZodString>;
293
- releaseDatePrecision: z.ZodOptional<z.ZodEnum<{
294
- year: "year";
295
- month: "month";
296
- day: "day";
297
- }>>;
298
- resumePoint: z.ZodOptional<z.ZodObject<{
299
- fullyPlayed: z.ZodBoolean;
300
- resumePositionMs: z.ZodNumber;
301
- }, z.core.$strip>>;
302
- restrictions: z.ZodOptional<z.ZodObject<{
303
- reason: z.ZodString;
304
- }, z.core.$strip>>;
305
- show: z.ZodOptional<z.ZodObject<{
306
- availableMarkets: z.ZodOptional<z.ZodArray<z.ZodString>>;
307
- copyrights: z.ZodOptional<z.ZodArray<z.ZodObject<{
308
- text: z.ZodString;
309
- type: z.ZodString;
310
- }, z.core.$strip>>>;
311
- description: z.ZodOptional<z.ZodString>;
312
- explicit: z.ZodOptional<z.ZodBoolean>;
313
- externalUrls: z.ZodOptional<z.ZodObject<{
314
- spotify: z.ZodOptional<z.ZodURL>;
315
- }, z.core.$strip>>;
316
- href: z.ZodOptional<z.ZodURL>;
317
- id: z.ZodString;
318
- images: z.ZodArray<z.ZodObject<{
319
- url: z.ZodURL;
320
- height: z.ZodNullable<z.ZodNumber>;
321
- width: z.ZodNullable<z.ZodNumber>;
322
- }, z.core.$strip>>;
323
- languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
324
- mediaType: z.ZodOptional<z.ZodString>;
325
- name: z.ZodString;
326
- publisher: z.ZodOptional<z.ZodString>;
327
- totalEpisodes: z.ZodOptional<z.ZodNumber>;
328
- type: z.ZodLiteral<"show">;
329
- uri: z.ZodOptional<z.ZodString>;
330
- }, z.core.$strip>>;
331
- type: z.ZodLiteral<"episode">;
332
- uri: z.ZodOptional<z.ZodString>;
333
- }, z.core.$strip>;
334
- }, z.core.$strip>>;
335
- limit: z.ZodNumber;
336
- nextPageToken: z.ZodOptional<z.ZodString>;
337
- offset: z.ZodNumber;
338
- previousPageToken: z.ZodOptional<z.ZodString>;
339
- total: z.ZodOptional<z.ZodNumber>;
340
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
341
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
342
- }, z.core.$strip>>], undefined>;
343
- declare const saveEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
344
- ids: z.ZodArray<z.ZodString>;
345
- }, z.core.$strip>, z.ZodObject<{
346
- success: z.ZodLiteral<true>;
347
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
348
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
349
- }, z.core.$strip>>], undefined>;
350
- declare const removeSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
351
- ids: z.ZodArray<z.ZodString>;
352
- }, z.core.$strip>, z.ZodObject<{
353
- success: z.ZodLiteral<true>;
354
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
355
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
356
- }, z.core.$strip>>], undefined>;
357
- declare const checkSavedEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
358
- ids: z.ZodArray<z.ZodString>;
359
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
360
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
361
- }, z.core.$strip>>], undefined>;
362
- declare const listSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
363
- limit: z.ZodOptional<z.ZodNumber>;
364
- offset: z.ZodOptional<z.ZodNumber>;
365
- }, z.core.$strip>, z.ZodObject<{
366
- href: z.ZodOptional<z.ZodURL>;
367
- items: z.ZodArray<z.ZodObject<{
368
- addedAt: z.ZodISODateTime;
369
- audiobook: z.ZodObject<{
370
- authors: z.ZodOptional<z.ZodArray<z.ZodObject<{
371
- name: z.ZodString;
372
- }, z.core.$strip>>>;
373
- availableMarkets: z.ZodOptional<z.ZodArray<z.ZodString>>;
374
- copyrights: z.ZodOptional<z.ZodArray<z.ZodObject<{
375
- text: z.ZodString;
376
- type: z.ZodString;
377
- }, z.core.$strip>>>;
378
- description: z.ZodOptional<z.ZodString>;
379
- explicit: z.ZodOptional<z.ZodBoolean>;
380
- externalUrls: z.ZodOptional<z.ZodObject<{
381
- spotify: z.ZodOptional<z.ZodURL>;
382
- }, z.core.$strip>>;
383
- href: z.ZodOptional<z.ZodURL>;
384
- htmlDescription: z.ZodOptional<z.ZodString>;
385
- id: z.ZodString;
386
- images: z.ZodArray<z.ZodObject<{
387
- url: z.ZodURL;
388
- height: z.ZodNullable<z.ZodNumber>;
389
- width: z.ZodNullable<z.ZodNumber>;
390
- }, z.core.$strip>>;
391
- languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
392
- mediaType: z.ZodOptional<z.ZodString>;
393
- name: z.ZodString;
394
- narrators: z.ZodOptional<z.ZodArray<z.ZodObject<{
395
- name: z.ZodString;
396
- }, z.core.$strip>>>;
397
- publisher: z.ZodOptional<z.ZodString>;
398
- totalChapters: z.ZodOptional<z.ZodNumber>;
399
- type: z.ZodLiteral<"audiobook">;
400
- uri: z.ZodOptional<z.ZodString>;
401
- }, z.core.$strip>;
402
- }, z.core.$strip>>;
403
- limit: z.ZodNumber;
404
- nextPageToken: z.ZodOptional<z.ZodString>;
405
- offset: z.ZodNumber;
406
- previousPageToken: z.ZodOptional<z.ZodString>;
407
- total: z.ZodOptional<z.ZodNumber>;
408
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
409
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
410
- }, z.core.$strip>>], undefined>;
411
- declare const saveAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
412
- ids: z.ZodArray<z.ZodString>;
413
- }, z.core.$strip>, z.ZodObject<{
414
- success: z.ZodLiteral<true>;
415
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
416
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
417
- }, z.core.$strip>>], undefined>;
418
- declare const removeSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
419
- ids: z.ZodArray<z.ZodString>;
420
- }, z.core.$strip>, z.ZodObject<{
421
- success: z.ZodLiteral<true>;
422
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
423
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
424
- }, z.core.$strip>>], undefined>;
425
- declare const checkSavedAudiobooks: _keystrokehq_core0.Operation<z.ZodObject<{
426
- ids: z.ZodArray<z.ZodString>;
427
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
428
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
429
- }, z.core.$strip>>], undefined>;
430
- //#endregion
431
- export { checkSavedAlbums, checkSavedAudiobooks, checkSavedEpisodes, checkSavedShows, checkSavedTracks, listSavedAlbums, listSavedAudiobooks, listSavedEpisodes, listSavedShows, listSavedTracks, removeSavedAlbums, removeSavedAudiobooks, removeSavedEpisodes, removeSavedShows, removeSavedTracks, saveAlbums, saveAudiobooks, saveEpisodes, saveShows, saveTracks };