@keystrokehq/spotify 0.0.5 → 0.0.6-rename-t1.1

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.
@@ -11,17 +11,17 @@ declare const spotifyAppCredentialSet: CredentialSet<"keystroke:spotify-app", z.
11
11
  clientId: z.ZodString;
12
12
  clientSecret: z.ZodString;
13
13
  }, z.core.$strip>>[] | undefined>;
14
- declare const spotifyPlatformProviderSeed: {
14
+ declare const spotifyOfficialProviderSeed: {
15
15
  readonly provider: "spotify";
16
16
  readonly appRef: "spotify-platform";
17
17
  readonly displayName: "Spotify Platform";
18
18
  readonly credentialSetName: "Keystroke Spotify Platform App";
19
19
  readonly envShape: {
20
- readonly KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_ID: z.ZodOptional<z.ZodString>;
21
- readonly KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
20
+ readonly KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID: z.ZodOptional<z.ZodString>;
21
+ readonly KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
22
22
  };
23
- readonly requiredEnvKeys: readonly ["KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_ID", "KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_SECRET"];
24
- readonly externalAppIdEnvKey: "KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_ID";
23
+ readonly requiredEnvKeys: readonly ["KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID", "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET"];
24
+ readonly externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID";
25
25
  readonly buildCredentials: (env: Record<string, string | undefined>) => {
26
26
  clientId: string | undefined;
27
27
  clientSecret: string | undefined;
@@ -29,4 +29,4 @@ declare const spotifyPlatformProviderSeed: {
29
29
  };
30
30
  type SpotifyAppCredentials = z.infer<typeof spotifyAppCredentialSet.auth>;
31
31
  //#endregion
32
- export { SpotifyAppCredentials, spotifyAppCredentialSet, spotifyBundle, spotifyOfficialIntegration, spotifyPlatformProviderSeed };
32
+ export { SpotifyAppCredentials, spotifyAppCredentialSet, spotifyBundle, spotifyOfficialIntegration, spotifyOfficialProviderSeed };
@@ -1,3 +1,3 @@
1
- import { a as spotifyPlatformProviderSeed, i as spotifyAppCredentialSet, n as spotifyBundle, r as spotifyOfficialIntegration } from "../integration-C5PGWTYs.mjs";
1
+ import { a as spotifyOfficialProviderSeed, i as spotifyAppCredentialSet, n as spotifyBundle, r as spotifyOfficialIntegration } from "../integration-BK1PIn1V.mjs";
2
2
 
3
- export { spotifyAppCredentialSet, spotifyBundle, spotifyOfficialIntegration, spotifyPlatformProviderSeed };
3
+ export { spotifyAppCredentialSet, spotifyBundle, spotifyOfficialIntegration, spotifyOfficialProviderSeed };
package/dist/albums.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyAlbumPageSchema, spotifyAlbumSchema, spotifyIdSchema, spotifyMarketSchema, spotifyTrackPageSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/albums.ts
package/dist/artists.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyAlbumPageSchema, spotifyArtistSchema, spotifyIdSchema, spotifyMarketSchema, spotifyTrackSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/artists.ts
@@ -1,6 +1,6 @@
1
1
  import { spotifyAudioAnalysisSchema, spotifyIdSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/audio-analysis.ts
@@ -1,6 +1,6 @@
1
1
  import { spotifyAudioFeaturesSchema, spotifyIdSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/audio-features.ts
@@ -1,6 +1,6 @@
1
1
  import { spotifyAudiobookSchema, spotifyChapterPageSchema, spotifyIdSchema, spotifyMarketSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/audiobooks.ts
package/dist/browse.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyMarketSchema, spotifyPlaylistPageSchema, spotifyTimestampSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/browse.ts
@@ -1,6 +1,6 @@
1
1
  import { spotifyCategoryPageSchema, spotifyCategorySchema, spotifyMarketSchema, spotifyPlaylistPageSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/categories.ts
package/dist/chapters.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyChapterSchema, spotifyIdSchema, spotifyMarketSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/chapters.ts
package/dist/client.d.mts CHANGED
@@ -2586,7 +2586,7 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2586
2586
  } | undefined;
2587
2587
  uri?: string | undefined;
2588
2588
  } | null | undefined;
2589
- currentlyPlayingType?: "track" | "unknown" | "episode" | "ad" | undefined;
2589
+ currentlyPlayingType?: "unknown" | "track" | "episode" | "ad" | undefined;
2590
2590
  actions?: Record<string, boolean> | undefined;
2591
2591
  } | null>;
2592
2592
  readonly transferPlayback: (body: {
@@ -2759,7 +2759,7 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2759
2759
  } | undefined;
2760
2760
  uri?: string | undefined;
2761
2761
  } | null | undefined;
2762
- currentlyPlayingType?: "track" | "unknown" | "episode" | "ad" | undefined;
2762
+ currentlyPlayingType?: "unknown" | "track" | "episode" | "ad" | undefined;
2763
2763
  actions?: Record<string, boolean> | undefined;
2764
2764
  } | null>;
2765
2765
  readonly startOrResumePlayback: (body?: {
@@ -1,3 +1,3 @@
1
- import { r as spotifyOfficialIntegration, t as spotify } from "./integration-C5PGWTYs.mjs";
1
+ import { r as spotifyOfficialIntegration, t as spotify } from "./integration-BK1PIn1V.mjs";
2
2
 
3
3
  export { spotify, spotifyOfficialIntegration };
package/dist/episodes.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyEpisodeSchema, spotifyIdSchema, spotifyMarketSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/episodes.ts
package/dist/events.d.mts CHANGED
@@ -341,8 +341,8 @@ declare const spotifySavedItemAddedEventSchema: z.ZodObject<{
341
341
  itemType: z.ZodEnum<{
342
342
  track: "track";
343
343
  album: "album";
344
- show: "show";
345
344
  episode: "episode";
345
+ show: "show";
346
346
  audiobook: "audiobook";
347
347
  }>;
348
348
  item: z.ZodUnion<readonly [z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { t as spotify } from "./integration-C5PGWTYs.mjs";
1
+ import { t as spotify } from "./integration-BK1PIn1V.mjs";
2
2
  import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
3
 
4
4
  //#region src/factory.ts
package/dist/follow.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createSpotifyCursorPageSchema, spotifyArtistSchema, spotifyBooleanListSchema, spotifyIdSchema, spotifyMutationSuccessSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/follow.ts
package/dist/genres.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createSpotifyClient } from "./client.mjs";
2
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
2
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/genres.ts
@@ -12,20 +12,20 @@ const spotifyAppCredentialSet = new CredentialSet({
12
12
  clientSecret: z.string().min(1)
13
13
  })
14
14
  });
15
- const spotifyPlatformProviderSeed = {
15
+ const spotifyOfficialProviderSeed = {
16
16
  provider: "spotify",
17
17
  appRef: "spotify-platform",
18
18
  displayName: "Spotify Platform",
19
19
  credentialSetName: "Keystroke Spotify Platform App",
20
20
  envShape: {
21
- KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_ID: z.string().optional(),
22
- KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_SECRET: z.string().optional()
21
+ KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID: z.string().optional(),
22
+ KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET: z.string().optional()
23
23
  },
24
- requiredEnvKeys: ["KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_ID", "KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_SECRET"],
25
- externalAppIdEnvKey: "KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_ID",
24
+ requiredEnvKeys: ["KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID", "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET"],
25
+ externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID",
26
26
  buildCredentials: (env) => ({
27
- clientId: env.KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_ID,
28
- clientSecret: env.KEYSTROKE_PLATFORM_SPOTIFY_CLIENT_SECRET
27
+ clientId: env.KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_ID,
28
+ clientSecret: env.KEYSTROKE_OFFICIAL_SPOTIFY_CLIENT_SECRET
29
29
  })
30
30
  };
31
31
 
@@ -75,4 +75,4 @@ const spotifyBundle = defineOfficialIntegration({
75
75
  const spotify = spotifyBundle.credentialSet;
76
76
 
77
77
  //#endregion
78
- export { spotifyPlatformProviderSeed as a, spotifyAppCredentialSet as i, spotifyBundle as n, spotifyOfficialIntegration as r, spotify as t };
78
+ export { spotifyOfficialProviderSeed as a, spotifyAppCredentialSet as i, spotifyBundle as n, spotifyOfficialIntegration as r, spotify as t };
package/dist/library.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyBooleanListSchema, spotifyIdSchema, spotifyMarketSchema, spotifyMutationSuccessSchema, spotifySavedAlbumPageSchema, spotifySavedAudiobookPageSchema, spotifySavedEpisodePageSchema, spotifySavedShowPageSchema, spotifySavedTrackPageSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/library.ts
package/dist/markets.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyMarketSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/markets.ts
package/dist/me.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyArtistPageSchema, spotifyTrackPageSchema, spotifyUserSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/me.ts
package/dist/player.d.mts CHANGED
@@ -171,8 +171,8 @@ declare const getPlaybackState: _keystrokehq_core0.Operation<z.ZodObject<{
171
171
  shuffleState: z.ZodBoolean;
172
172
  timestamp: z.ZodNumber;
173
173
  currentlyPlayingType: z.ZodOptional<z.ZodEnum<{
174
- track: "track";
175
174
  unknown: "unknown";
175
+ track: "track";
176
176
  episode: "episode";
177
177
  ad: "ad";
178
178
  }>>;
@@ -380,8 +380,8 @@ declare const getCurrentlyPlaying: _keystrokehq_core0.Operation<z.ZodObject<{
380
380
  shuffleState: z.ZodBoolean;
381
381
  timestamp: z.ZodNumber;
382
382
  currentlyPlayingType: z.ZodOptional<z.ZodEnum<{
383
- track: "track";
384
383
  unknown: "unknown";
384
+ track: "track";
385
385
  episode: "episode";
386
386
  ad: "ad";
387
387
  }>>;
package/dist/player.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyDeviceSchema, spotifyIdSchema, spotifyMarketSchema, spotifyMutationSuccessSchema, spotifyPlaybackStateSchema, spotifyQueueSchema, spotifyRecentlyPlayedPageSchema, spotifyUriSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/player.ts
@@ -1,6 +1,6 @@
1
1
  import { spotifyBooleanListSchema, spotifyIdSchema, spotifyMarketSchema, spotifyMutationSuccessSchema, spotifyPlaylistImageSchema, spotifyPlaylistItemPageSchema, spotifyPlaylistPageSchema, spotifyPlaylistSchema, spotifySnapshotResponseSchema, spotifyUriSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/playlists.ts
@@ -1,6 +1,6 @@
1
1
  import { spotifyIdSchema, spotifyMarketSchema, spotifyRecommendationsSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/recommendations.ts
@@ -1041,8 +1041,8 @@ declare const spotifyPlaybackStateSchema: z.ZodObject<{
1041
1041
  shuffleState: z.ZodBoolean;
1042
1042
  timestamp: z.ZodNumber;
1043
1043
  currentlyPlayingType: z.ZodOptional<z.ZodEnum<{
1044
- track: "track";
1045
1044
  unknown: "unknown";
1045
+ track: "track";
1046
1046
  episode: "episode";
1047
1047
  ad: "ad";
1048
1048
  }>>;
package/dist/search.d.mts CHANGED
@@ -8,11 +8,11 @@ declare const search: _keystrokehq_core0.Operation<z.ZodObject<{
8
8
  types: z.ZodArray<z.ZodEnum<{
9
9
  artist: "artist";
10
10
  track: "track";
11
+ playlist: "playlist";
11
12
  album: "album";
12
- show: "show";
13
13
  episode: "episode";
14
+ show: "show";
14
15
  audiobook: "audiobook";
15
- playlist: "playlist";
16
16
  }>>;
17
17
  market: z.ZodOptional<z.ZodString>;
18
18
  limit: z.ZodOptional<z.ZodNumber>;
package/dist/search.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyMarketSchema, spotifySearchResultSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/search.ts
package/dist/shows.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyEpisodePageSchema, spotifyIdSchema, spotifyMarketSchema, spotifyShowSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/shows.ts
package/dist/tracks.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyIdSchema, spotifyMarketSchema, spotifyTrackSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/tracks.ts
package/dist/triggers.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as spotify } from "./integration-C5PGWTYs.mjs";
1
+ import { t as spotify } from "./integration-BK1PIn1V.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
3
  import { spotifyNewDeviceAddedEventSchema, spotifyPlaylistItemsChangedEventSchema, spotifyRecentlyPlayedTrackAddedEventSchema, spotifySavedItemAddedEventSchema, spotifyUserPlaylistsChangedEventSchema } from "./events.mjs";
4
4
  import { z } from "zod";
package/dist/users.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spotifyIdSchema, spotifyUserSchema } from "./schemas.mjs";
2
2
  import { createSpotifyClient } from "./client.mjs";
3
- import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
+ import { t as spotifyOperation } from "./factory-C3uQLYXY.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/users.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/spotify",
3
- "version": "0.0.5",
3
+ "version": "0.0.6-rename-t1.1",
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.5",
147
+ "@keystrokehq/integration-authoring": "^0.0.6-rename-t1.0",
148
148
  "zod": "^4.3.6"
149
149
  },
150
150
  "peerDependencies": {
@@ -156,8 +156,8 @@
156
156
  "typescript": "^5.9.3",
157
157
  "vitest": "^4.0.18",
158
158
  "@keystrokehq/core": "^0.0.7",
159
- "@keystrokehq/test-utils": "0.0.0",
160
- "@keystrokehq/typescript-config": "0.0.0"
159
+ "@keystrokehq/typescript-config": "0.0.0",
160
+ "@keystrokehq/test-utils": "0.0.0"
161
161
  },
162
162
  "keywords": [
163
163
  "spotify",