@keystrokehq/spotify 0.0.1 → 0.0.4

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 (55) hide show
  1. package/dist/_official/index.d.mts +2 -2
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/albums.d.mts +4 -4
  4. package/dist/albums.mjs +1 -1
  5. package/dist/artists.d.mts +5 -5
  6. package/dist/artists.mjs +1 -1
  7. package/dist/audio-analysis.d.mts +1 -1
  8. package/dist/audio-analysis.mjs +1 -1
  9. package/dist/audio-features.d.mts +2 -2
  10. package/dist/audio-features.mjs +1 -1
  11. package/dist/audiobooks.d.mts +3 -3
  12. package/dist/audiobooks.mjs +1 -1
  13. package/dist/browse.d.mts +1 -1
  14. package/dist/browse.mjs +1 -1
  15. package/dist/categories.d.mts +3 -3
  16. package/dist/categories.mjs +1 -1
  17. package/dist/chapters.d.mts +2 -2
  18. package/dist/chapters.mjs +1 -1
  19. package/dist/client.d.mts +230 -230
  20. package/dist/connection.d.mts +1 -1
  21. package/dist/connection.mjs +1 -1
  22. package/dist/episodes.d.mts +2 -2
  23. package/dist/episodes.mjs +1 -1
  24. package/dist/events.d.mts +2 -2
  25. package/dist/{factory-tZba6Hij.mjs → factory-CunabgAr.mjs} +1 -1
  26. package/dist/follow.d.mts +4 -4
  27. package/dist/follow.mjs +1 -1
  28. package/dist/genres.d.mts +1 -1
  29. package/dist/genres.mjs +1 -1
  30. package/dist/{integration-ykoImsCq.mjs → integration-C5PGWTYs.mjs} +2 -2
  31. package/dist/{integration-DQ5Egd4f.d.mts → integration-Dzf1u4u-.d.mts} +1 -1
  32. package/dist/library.d.mts +20 -20
  33. package/dist/library.mjs +1 -1
  34. package/dist/markets.d.mts +1 -1
  35. package/dist/markets.mjs +1 -1
  36. package/dist/me.d.mts +3 -3
  37. package/dist/me.mjs +1 -1
  38. package/dist/player.d.mts +17 -17
  39. package/dist/player.mjs +1 -1
  40. package/dist/playlists.d.mts +14 -14
  41. package/dist/playlists.mjs +1 -1
  42. package/dist/recommendations.d.mts +1 -1
  43. package/dist/recommendations.mjs +1 -1
  44. package/dist/schemas.d.mts +1 -1
  45. package/dist/search.d.mts +4 -4
  46. package/dist/search.mjs +1 -1
  47. package/dist/shows.d.mts +3 -3
  48. package/dist/shows.mjs +1 -1
  49. package/dist/tracks.d.mts +2 -2
  50. package/dist/tracks.mjs +1 -1
  51. package/dist/triggers.d.mts +3 -3
  52. package/dist/triggers.mjs +31 -46
  53. package/dist/users.d.mts +1 -1
  54. package/dist/users.mjs +1 -1
  55. package/package.json +18 -19
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as SpotifyCredentials } from "./integration-DQ5Egd4f.mjs";
1
+ import { t as SpotifyCredentials } from "./integration-Dzf1u4u-.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  type FetchLike = typeof fetch;
@@ -1934,64 +1934,6 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
1934
1934
  }[] | undefined;
1935
1935
  } | undefined;
1936
1936
  track?: {
1937
- durationMs: number;
1938
- explicit: boolean;
1939
- id: string;
1940
- images: {
1941
- url: string;
1942
- height: number | null;
1943
- width: number | null;
1944
- }[];
1945
- name: string;
1946
- type: "episode";
1947
- audioPreviewUrl?: string | null | undefined;
1948
- description?: string | undefined;
1949
- externalUrls?: {
1950
- spotify?: string | undefined;
1951
- } | undefined;
1952
- href?: string | undefined;
1953
- htmlDescription?: string | undefined;
1954
- isExternallyHosted?: boolean | undefined;
1955
- isPlayable?: boolean | undefined;
1956
- language?: string | undefined;
1957
- languages?: string[] | undefined;
1958
- releaseDate?: string | undefined;
1959
- releaseDatePrecision?: "year" | "month" | "day" | undefined;
1960
- resumePoint?: {
1961
- fullyPlayed: boolean;
1962
- resumePositionMs: number;
1963
- } | undefined;
1964
- restrictions?: {
1965
- reason: string;
1966
- } | undefined;
1967
- show?: {
1968
- id: string;
1969
- images: {
1970
- url: string;
1971
- height: number | null;
1972
- width: number | null;
1973
- }[];
1974
- name: string;
1975
- type: "show";
1976
- availableMarkets?: string[] | undefined;
1977
- copyrights?: {
1978
- text: string;
1979
- type: string;
1980
- }[] | undefined;
1981
- description?: string | undefined;
1982
- explicit?: boolean | undefined;
1983
- externalUrls?: {
1984
- spotify?: string | undefined;
1985
- } | undefined;
1986
- href?: string | undefined;
1987
- languages?: string[] | undefined;
1988
- mediaType?: string | undefined;
1989
- publisher?: string | undefined;
1990
- totalEpisodes?: number | undefined;
1991
- uri?: string | undefined;
1992
- } | undefined;
1993
- uri?: string | undefined;
1994
- } | {
1995
1937
  artists: {
1996
1938
  id: string;
1997
1939
  name: string;
@@ -2057,6 +1999,64 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2057
1999
  } | undefined;
2058
2000
  trackNumber?: number | undefined;
2059
2001
  uri?: string | undefined;
2002
+ } | {
2003
+ durationMs: number;
2004
+ explicit: boolean;
2005
+ id: string;
2006
+ images: {
2007
+ url: string;
2008
+ height: number | null;
2009
+ width: number | null;
2010
+ }[];
2011
+ name: string;
2012
+ type: "episode";
2013
+ audioPreviewUrl?: string | null | undefined;
2014
+ description?: string | undefined;
2015
+ externalUrls?: {
2016
+ spotify?: string | undefined;
2017
+ } | undefined;
2018
+ href?: string | undefined;
2019
+ htmlDescription?: string | undefined;
2020
+ isExternallyHosted?: boolean | undefined;
2021
+ isPlayable?: boolean | undefined;
2022
+ language?: string | undefined;
2023
+ languages?: string[] | undefined;
2024
+ releaseDate?: string | undefined;
2025
+ releaseDatePrecision?: "year" | "month" | "day" | undefined;
2026
+ resumePoint?: {
2027
+ fullyPlayed: boolean;
2028
+ resumePositionMs: number;
2029
+ } | undefined;
2030
+ restrictions?: {
2031
+ reason: string;
2032
+ } | undefined;
2033
+ show?: {
2034
+ id: string;
2035
+ images: {
2036
+ url: string;
2037
+ height: number | null;
2038
+ width: number | null;
2039
+ }[];
2040
+ name: string;
2041
+ type: "show";
2042
+ availableMarkets?: string[] | undefined;
2043
+ copyrights?: {
2044
+ text: string;
2045
+ type: string;
2046
+ }[] | undefined;
2047
+ description?: string | undefined;
2048
+ explicit?: boolean | undefined;
2049
+ externalUrls?: {
2050
+ spotify?: string | undefined;
2051
+ } | undefined;
2052
+ href?: string | undefined;
2053
+ languages?: string[] | undefined;
2054
+ mediaType?: string | undefined;
2055
+ publisher?: string | undefined;
2056
+ totalEpisodes?: number | undefined;
2057
+ uri?: string | undefined;
2058
+ } | undefined;
2059
+ uri?: string | undefined;
2060
2060
  } | null | undefined;
2061
2061
  }[];
2062
2062
  limit: number;
@@ -2462,64 +2462,6 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2462
2462
  uri?: string | undefined;
2463
2463
  } | null | undefined;
2464
2464
  item?: {
2465
- durationMs: number;
2466
- explicit: boolean;
2467
- id: string;
2468
- images: {
2469
- url: string;
2470
- height: number | null;
2471
- width: number | null;
2472
- }[];
2473
- name: string;
2474
- type: "episode";
2475
- audioPreviewUrl?: string | null | undefined;
2476
- description?: string | undefined;
2477
- externalUrls?: {
2478
- spotify?: string | undefined;
2479
- } | undefined;
2480
- href?: string | undefined;
2481
- htmlDescription?: string | undefined;
2482
- isExternallyHosted?: boolean | undefined;
2483
- isPlayable?: boolean | undefined;
2484
- language?: string | undefined;
2485
- languages?: string[] | undefined;
2486
- releaseDate?: string | undefined;
2487
- releaseDatePrecision?: "year" | "month" | "day" | undefined;
2488
- resumePoint?: {
2489
- fullyPlayed: boolean;
2490
- resumePositionMs: number;
2491
- } | undefined;
2492
- restrictions?: {
2493
- reason: string;
2494
- } | undefined;
2495
- show?: {
2496
- id: string;
2497
- images: {
2498
- url: string;
2499
- height: number | null;
2500
- width: number | null;
2501
- }[];
2502
- name: string;
2503
- type: "show";
2504
- availableMarkets?: string[] | undefined;
2505
- copyrights?: {
2506
- text: string;
2507
- type: string;
2508
- }[] | undefined;
2509
- description?: string | undefined;
2510
- explicit?: boolean | undefined;
2511
- externalUrls?: {
2512
- spotify?: string | undefined;
2513
- } | undefined;
2514
- href?: string | undefined;
2515
- languages?: string[] | undefined;
2516
- mediaType?: string | undefined;
2517
- publisher?: string | undefined;
2518
- totalEpisodes?: number | undefined;
2519
- uri?: string | undefined;
2520
- } | undefined;
2521
- uri?: string | undefined;
2522
- } | {
2523
2465
  artists: {
2524
2466
  id: string;
2525
2467
  name: string;
@@ -2585,56 +2527,7 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2585
2527
  } | undefined;
2586
2528
  trackNumber?: number | undefined;
2587
2529
  uri?: string | undefined;
2588
- } | null | undefined;
2589
- currentlyPlayingType?: "unknown" | "track" | "episode" | "ad" | undefined;
2590
- actions?: Record<string, boolean> | undefined;
2591
- } | null>;
2592
- readonly transferPlayback: (body: {
2593
- deviceIds: readonly string[];
2594
- play?: boolean;
2595
- }) => Promise<{
2596
- success: true;
2597
- }>;
2598
- readonly getAvailableDevices: () => Promise<{
2599
- devices: {
2600
- isActive: boolean;
2601
- isPrivateSession: boolean;
2602
- isRestricted: boolean;
2603
- name: string;
2604
- type: string;
2605
- id?: string | null | undefined;
2606
- volumePercent?: number | null | undefined;
2607
- supportsVolume?: boolean | undefined;
2608
- }[];
2609
- }>;
2610
- readonly getCurrentlyPlaying: (query?: {
2611
- market?: string;
2612
- additional_types?: readonly string[];
2613
- }) => Promise<{
2614
- device: {
2615
- isActive: boolean;
2616
- isPrivateSession: boolean;
2617
- isRestricted: boolean;
2618
- name: string;
2619
- type: string;
2620
- id?: string | null | undefined;
2621
- volumePercent?: number | null | undefined;
2622
- supportsVolume?: boolean | undefined;
2623
- };
2624
- isPlaying: boolean;
2625
- progressMs: number | null;
2626
- repeatState: "track" | "context" | "off";
2627
- shuffleState: boolean;
2628
- timestamp: number;
2629
- context?: {
2630
- type: string;
2631
- externalUrls?: {
2632
- spotify?: string | undefined;
2633
- } | undefined;
2634
- href?: string | undefined;
2635
- uri?: string | undefined;
2636
- } | null | undefined;
2637
- item?: {
2530
+ } | {
2638
2531
  durationMs: number;
2639
2532
  explicit: boolean;
2640
2533
  id: string;
@@ -2692,7 +2585,56 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2692
2585
  uri?: string | undefined;
2693
2586
  } | undefined;
2694
2587
  uri?: string | undefined;
2695
- } | {
2588
+ } | null | undefined;
2589
+ currentlyPlayingType?: "track" | "unknown" | "episode" | "ad" | undefined;
2590
+ actions?: Record<string, boolean> | undefined;
2591
+ } | null>;
2592
+ readonly transferPlayback: (body: {
2593
+ deviceIds: readonly string[];
2594
+ play?: boolean;
2595
+ }) => Promise<{
2596
+ success: true;
2597
+ }>;
2598
+ readonly getAvailableDevices: () => Promise<{
2599
+ devices: {
2600
+ isActive: boolean;
2601
+ isPrivateSession: boolean;
2602
+ isRestricted: boolean;
2603
+ name: string;
2604
+ type: string;
2605
+ id?: string | null | undefined;
2606
+ volumePercent?: number | null | undefined;
2607
+ supportsVolume?: boolean | undefined;
2608
+ }[];
2609
+ }>;
2610
+ readonly getCurrentlyPlaying: (query?: {
2611
+ market?: string;
2612
+ additional_types?: readonly string[];
2613
+ }) => Promise<{
2614
+ device: {
2615
+ isActive: boolean;
2616
+ isPrivateSession: boolean;
2617
+ isRestricted: boolean;
2618
+ name: string;
2619
+ type: string;
2620
+ id?: string | null | undefined;
2621
+ volumePercent?: number | null | undefined;
2622
+ supportsVolume?: boolean | undefined;
2623
+ };
2624
+ isPlaying: boolean;
2625
+ progressMs: number | null;
2626
+ repeatState: "track" | "context" | "off";
2627
+ shuffleState: boolean;
2628
+ timestamp: number;
2629
+ context?: {
2630
+ type: string;
2631
+ externalUrls?: {
2632
+ spotify?: string | undefined;
2633
+ } | undefined;
2634
+ href?: string | undefined;
2635
+ uri?: string | undefined;
2636
+ } | null | undefined;
2637
+ item?: {
2696
2638
  artists: {
2697
2639
  id: string;
2698
2640
  name: string;
@@ -2758,8 +2700,66 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2758
2700
  } | undefined;
2759
2701
  trackNumber?: number | undefined;
2760
2702
  uri?: string | undefined;
2703
+ } | {
2704
+ durationMs: number;
2705
+ explicit: boolean;
2706
+ id: string;
2707
+ images: {
2708
+ url: string;
2709
+ height: number | null;
2710
+ width: number | null;
2711
+ }[];
2712
+ name: string;
2713
+ type: "episode";
2714
+ audioPreviewUrl?: string | null | undefined;
2715
+ description?: string | undefined;
2716
+ externalUrls?: {
2717
+ spotify?: string | undefined;
2718
+ } | undefined;
2719
+ href?: string | undefined;
2720
+ htmlDescription?: string | undefined;
2721
+ isExternallyHosted?: boolean | undefined;
2722
+ isPlayable?: boolean | undefined;
2723
+ language?: string | undefined;
2724
+ languages?: string[] | undefined;
2725
+ releaseDate?: string | undefined;
2726
+ releaseDatePrecision?: "year" | "month" | "day" | undefined;
2727
+ resumePoint?: {
2728
+ fullyPlayed: boolean;
2729
+ resumePositionMs: number;
2730
+ } | undefined;
2731
+ restrictions?: {
2732
+ reason: string;
2733
+ } | undefined;
2734
+ show?: {
2735
+ id: string;
2736
+ images: {
2737
+ url: string;
2738
+ height: number | null;
2739
+ width: number | null;
2740
+ }[];
2741
+ name: string;
2742
+ type: "show";
2743
+ availableMarkets?: string[] | undefined;
2744
+ copyrights?: {
2745
+ text: string;
2746
+ type: string;
2747
+ }[] | undefined;
2748
+ description?: string | undefined;
2749
+ explicit?: boolean | undefined;
2750
+ externalUrls?: {
2751
+ spotify?: string | undefined;
2752
+ } | undefined;
2753
+ href?: string | undefined;
2754
+ languages?: string[] | undefined;
2755
+ mediaType?: string | undefined;
2756
+ publisher?: string | undefined;
2757
+ totalEpisodes?: number | undefined;
2758
+ uri?: string | undefined;
2759
+ } | undefined;
2760
+ uri?: string | undefined;
2761
2761
  } | null | undefined;
2762
- currentlyPlayingType?: "unknown" | "track" | "episode" | "ad" | undefined;
2762
+ currentlyPlayingType?: "track" | "unknown" | "episode" | "ad" | undefined;
2763
2763
  actions?: Record<string, boolean> | undefined;
2764
2764
  } | null>;
2765
2765
  readonly startOrResumePlayback: (body?: {
@@ -2892,64 +2892,6 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2892
2892
  }>;
2893
2893
  readonly getQueue: () => Promise<{
2894
2894
  queue: ({
2895
- durationMs: number;
2896
- explicit: boolean;
2897
- id: string;
2898
- images: {
2899
- url: string;
2900
- height: number | null;
2901
- width: number | null;
2902
- }[];
2903
- name: string;
2904
- type: "episode";
2905
- audioPreviewUrl?: string | null | undefined;
2906
- description?: string | undefined;
2907
- externalUrls?: {
2908
- spotify?: string | undefined;
2909
- } | undefined;
2910
- href?: string | undefined;
2911
- htmlDescription?: string | undefined;
2912
- isExternallyHosted?: boolean | undefined;
2913
- isPlayable?: boolean | undefined;
2914
- language?: string | undefined;
2915
- languages?: string[] | undefined;
2916
- releaseDate?: string | undefined;
2917
- releaseDatePrecision?: "year" | "month" | "day" | undefined;
2918
- resumePoint?: {
2919
- fullyPlayed: boolean;
2920
- resumePositionMs: number;
2921
- } | undefined;
2922
- restrictions?: {
2923
- reason: string;
2924
- } | undefined;
2925
- show?: {
2926
- id: string;
2927
- images: {
2928
- url: string;
2929
- height: number | null;
2930
- width: number | null;
2931
- }[];
2932
- name: string;
2933
- type: "show";
2934
- availableMarkets?: string[] | undefined;
2935
- copyrights?: {
2936
- text: string;
2937
- type: string;
2938
- }[] | undefined;
2939
- description?: string | undefined;
2940
- explicit?: boolean | undefined;
2941
- externalUrls?: {
2942
- spotify?: string | undefined;
2943
- } | undefined;
2944
- href?: string | undefined;
2945
- languages?: string[] | undefined;
2946
- mediaType?: string | undefined;
2947
- publisher?: string | undefined;
2948
- totalEpisodes?: number | undefined;
2949
- uri?: string | undefined;
2950
- } | undefined;
2951
- uri?: string | undefined;
2952
- } | {
2953
2895
  artists: {
2954
2896
  id: string;
2955
2897
  name: string;
@@ -3015,8 +2957,7 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
3015
2957
  } | undefined;
3016
2958
  trackNumber?: number | undefined;
3017
2959
  uri?: string | undefined;
3018
- })[];
3019
- currentlyPlaying?: {
2960
+ } | {
3020
2961
  durationMs: number;
3021
2962
  explicit: boolean;
3022
2963
  id: string;
@@ -3074,7 +3015,8 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
3074
3015
  uri?: string | undefined;
3075
3016
  } | undefined;
3076
3017
  uri?: string | undefined;
3077
- } | {
3018
+ })[];
3019
+ currentlyPlaying?: {
3078
3020
  artists: {
3079
3021
  id: string;
3080
3022
  name: string;
@@ -3140,6 +3082,64 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
3140
3082
  } | undefined;
3141
3083
  trackNumber?: number | undefined;
3142
3084
  uri?: string | undefined;
3085
+ } | {
3086
+ durationMs: number;
3087
+ explicit: boolean;
3088
+ id: string;
3089
+ images: {
3090
+ url: string;
3091
+ height: number | null;
3092
+ width: number | null;
3093
+ }[];
3094
+ name: string;
3095
+ type: "episode";
3096
+ audioPreviewUrl?: string | null | undefined;
3097
+ description?: string | undefined;
3098
+ externalUrls?: {
3099
+ spotify?: string | undefined;
3100
+ } | undefined;
3101
+ href?: string | undefined;
3102
+ htmlDescription?: string | undefined;
3103
+ isExternallyHosted?: boolean | undefined;
3104
+ isPlayable?: boolean | undefined;
3105
+ language?: string | undefined;
3106
+ languages?: string[] | undefined;
3107
+ releaseDate?: string | undefined;
3108
+ releaseDatePrecision?: "year" | "month" | "day" | undefined;
3109
+ resumePoint?: {
3110
+ fullyPlayed: boolean;
3111
+ resumePositionMs: number;
3112
+ } | undefined;
3113
+ restrictions?: {
3114
+ reason: string;
3115
+ } | undefined;
3116
+ show?: {
3117
+ id: string;
3118
+ images: {
3119
+ url: string;
3120
+ height: number | null;
3121
+ width: number | null;
3122
+ }[];
3123
+ name: string;
3124
+ type: "show";
3125
+ availableMarkets?: string[] | undefined;
3126
+ copyrights?: {
3127
+ text: string;
3128
+ type: string;
3129
+ }[] | undefined;
3130
+ description?: string | undefined;
3131
+ explicit?: boolean | undefined;
3132
+ externalUrls?: {
3133
+ spotify?: string | undefined;
3134
+ } | undefined;
3135
+ href?: string | undefined;
3136
+ languages?: string[] | undefined;
3137
+ mediaType?: string | undefined;
3138
+ publisher?: string | undefined;
3139
+ totalEpisodes?: number | undefined;
3140
+ uri?: string | undefined;
3141
+ } | undefined;
3142
+ uri?: string | undefined;
3143
3143
  } | null | undefined;
3144
3144
  }>;
3145
3145
  };
@@ -1,2 +1,2 @@
1
- import { i as spotifyOfficialIntegration, n as spotify, t as SpotifyCredentials } from "./integration-DQ5Egd4f.mjs";
1
+ import { i as spotifyOfficialIntegration, n as spotify, t as SpotifyCredentials } from "./integration-Dzf1u4u-.mjs";
2
2
  export { type SpotifyCredentials, spotify, spotifyOfficialIntegration };
@@ -1,3 +1,3 @@
1
- import { r as spotifyOfficialIntegration, t as spotify } from "./integration-ykoImsCq.mjs";
1
+ import { r as spotifyOfficialIntegration, t as spotify } from "./integration-C5PGWTYs.mjs";
2
2
 
3
3
  export { spotify, spotifyOfficialIntegration };
@@ -68,7 +68,7 @@ declare const getEpisode: _keystrokehq_core0.Operation<z.ZodObject<{
68
68
  }, z.core.$strip>>;
69
69
  type: z.ZodLiteral<"episode">;
70
70
  uri: z.ZodOptional<z.ZodString>;
71
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
71
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
72
72
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
73
73
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
74
74
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
@@ -140,7 +140,7 @@ declare const getSeveralEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
140
140
  type: z.ZodLiteral<"episode">;
141
141
  uri: z.ZodOptional<z.ZodString>;
142
142
  }, z.core.$strip>>;
143
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
143
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
144
144
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
145
145
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
146
146
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
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-tZba6Hij.mjs";
3
+ import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/episodes.ts
package/dist/events.d.mts CHANGED
@@ -339,10 +339,10 @@ declare const spotifySavedItemAddedEventSchema: z.ZodObject<{
339
339
  eventId: z.ZodString;
340
340
  type: z.ZodLiteral<"library.saved_item_added">;
341
341
  itemType: z.ZodEnum<{
342
- show: "show";
343
342
  track: "track";
344
- episode: "episode";
345
343
  album: "album";
344
+ show: "show";
345
+ episode: "episode";
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-ykoImsCq.mjs";
1
+ import { t as spotify } from "./integration-C5PGWTYs.mjs";
2
2
  import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
3
 
4
4
  //#region src/factory.ts
package/dist/follow.d.mts CHANGED
@@ -37,7 +37,7 @@ declare const getFollowedArtists: _keystrokehq_core0.Operation<z.ZodObject<{
37
37
  after: z.ZodOptional<z.ZodString>;
38
38
  before: z.ZodOptional<z.ZodString>;
39
39
  }, z.core.$strip>>;
40
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
40
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
41
41
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
42
42
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
43
43
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
@@ -50,7 +50,7 @@ declare const followArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
50
50
  ids: z.ZodArray<z.ZodString>;
51
51
  }, z.core.$strip>, z.ZodObject<{
52
52
  success: z.ZodLiteral<true>;
53
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
53
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
54
54
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
55
55
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
56
56
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
@@ -63,7 +63,7 @@ declare const unfollowArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
63
63
  ids: z.ZodArray<z.ZodString>;
64
64
  }, z.core.$strip>, z.ZodObject<{
65
65
  success: z.ZodLiteral<true>;
66
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
66
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
67
67
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
68
68
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
69
69
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
@@ -74,7 +74,7 @@ declare const checkFollowingArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodOb
74
74
  user: "user";
75
75
  }>;
76
76
  ids: z.ZodArray<z.ZodString>;
77
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
77
+ }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
78
78
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
79
79
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
80
80
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
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-tZba6Hij.mjs";
3
+ import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/follow.ts
package/dist/genres.d.mts CHANGED
@@ -5,7 +5,7 @@ import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential
5
5
  //#region src/genres.d.ts
6
6
  declare const getAvailableGenreSeeds: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
7
7
  genres: z.ZodArray<z.ZodString>;
8
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
8
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
9
9
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
10
10
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
11
11
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
package/dist/genres.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createSpotifyClient } from "./client.mjs";
2
- import { t as spotifyOperation } from "./factory-tZba6Hij.mjs";
2
+ import { t as spotifyOperation } from "./factory-CunabgAr.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/genres.ts
@@ -1,10 +1,10 @@
1
- import { defineOfficialIntegration } from "@keystrokehq/integration-authoring/official";
1
+ import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
2
2
  import { z } from "zod";
3
3
  import { CredentialSet } from "@keystrokehq/core";
4
4
 
5
5
  //#region src/_official/provider-app.ts
6
6
  const spotifyAppCredentialSet = new CredentialSet({
7
- id: "spotify-app",
7
+ id: officialCredentialSetId("spotify-app"),
8
8
  exposure: "platform-only",
9
9
  name: "Spotify App",
10
10
  auth: z.object({
@@ -31,7 +31,7 @@ declare const spotifyOfficialIntegration: {
31
31
  declare const spotifyBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"spotify", z.ZodObject<{
32
32
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
33
33
  }, z.core.$strip>>;
34
- declare const spotify: _keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
34
+ declare const spotify: _keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
35
35
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
36
36
  }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
37
37
  SPOTIFY_ACCESS_TOKEN: z.ZodString;