@keystrokehq/spotify 0.0.8 → 0.0.9

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 (56) 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 +5 -5
  4. package/dist/albums.mjs +1 -1
  5. package/dist/artists.d.mts +6 -6
  6. package/dist/artists.mjs +1 -1
  7. package/dist/audio-analysis.d.mts +2 -2
  8. package/dist/audio-analysis.mjs +1 -1
  9. package/dist/audio-features.d.mts +3 -3
  10. package/dist/audio-features.mjs +1 -1
  11. package/dist/audiobooks.d.mts +4 -4
  12. package/dist/audiobooks.mjs +1 -1
  13. package/dist/browse.d.mts +2 -2
  14. package/dist/browse.mjs +1 -1
  15. package/dist/categories.d.mts +4 -4
  16. package/dist/categories.mjs +1 -1
  17. package/dist/chapters.d.mts +3 -3
  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 +3 -3
  23. package/dist/episodes.mjs +1 -1
  24. package/dist/factory-C9W7aXmR.mjs +7 -0
  25. package/dist/follow.d.mts +5 -5
  26. package/dist/follow.mjs +1 -1
  27. package/dist/genres.d.mts +2 -2
  28. package/dist/genres.mjs +1 -1
  29. package/dist/integration-CrkQTg9q.mjs +170 -0
  30. package/dist/{integration-Dzf1u4u-.d.mts → integration-DXXNe4_j.d.mts} +3 -4
  31. package/dist/library.d.mts +21 -21
  32. package/dist/library.mjs +1 -1
  33. package/dist/markets.d.mts +2 -2
  34. package/dist/markets.mjs +1 -1
  35. package/dist/me.d.mts +4 -4
  36. package/dist/me.mjs +1 -1
  37. package/dist/player.d.mts +18 -18
  38. package/dist/player.mjs +1 -1
  39. package/dist/playlists.d.mts +15 -15
  40. package/dist/playlists.mjs +1 -1
  41. package/dist/recommendations.d.mts +2 -2
  42. package/dist/recommendations.mjs +1 -1
  43. package/dist/schemas.d.mts +1 -1
  44. package/dist/search.d.mts +3 -3
  45. package/dist/search.mjs +1 -1
  46. package/dist/shows.d.mts +4 -4
  47. package/dist/shows.mjs +1 -1
  48. package/dist/tracks.d.mts +3 -3
  49. package/dist/tracks.mjs +1 -1
  50. package/dist/triggers.d.mts +2 -3
  51. package/dist/triggers.mjs +56 -7
  52. package/dist/users.d.mts +2 -2
  53. package/dist/users.mjs +1 -1
  54. package/package.json +4 -4
  55. package/dist/factory-C3uQLYXY.mjs +0 -8
  56. package/dist/integration-BK1PIn1V.mjs +0 -78
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as SpotifyCredentials } from "./integration-Dzf1u4u-.mjs";
1
+ import { t as SpotifyCredentials } from "./integration-DXXNe4_j.mjs";
2
2
 
3
3
  //#region src/client.d.ts
4
4
  type FetchLike = typeof fetch;
@@ -1934,6 +1934,64 @@ 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
+ } | {
1937
1995
  artists: {
1938
1996
  id: string;
1939
1997
  name: string;
@@ -1999,64 +2057,6 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
1999
2057
  } | undefined;
2000
2058
  trackNumber?: number | undefined;
2001
2059
  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,6 +2462,64 @@ 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
+ } | {
2465
2523
  artists: {
2466
2524
  id: string;
2467
2525
  name: string;
@@ -2527,7 +2585,56 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2527
2585
  } | undefined;
2528
2586
  trackNumber?: number | undefined;
2529
2587
  uri?: string | undefined;
2530
- } | {
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?: {
2531
2638
  durationMs: number;
2532
2639
  explicit: boolean;
2533
2640
  id: string;
@@ -2585,56 +2692,7 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2585
2692
  uri?: string | undefined;
2586
2693
  } | undefined;
2587
2694
  uri?: string | undefined;
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?: {
2695
+ } | {
2638
2696
  artists: {
2639
2697
  id: string;
2640
2698
  name: string;
@@ -2700,66 +2758,8 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2700
2758
  } | undefined;
2701
2759
  trackNumber?: number | undefined;
2702
2760
  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?: "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?: {
@@ -2892,6 +2892,64 @@ 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
+ } | {
2895
2953
  artists: {
2896
2954
  id: string;
2897
2955
  name: string;
@@ -2957,7 +3015,8 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
2957
3015
  } | undefined;
2958
3016
  trackNumber?: number | undefined;
2959
3017
  uri?: string | undefined;
2960
- } | {
3018
+ })[];
3019
+ currentlyPlaying?: {
2961
3020
  durationMs: number;
2962
3021
  explicit: boolean;
2963
3022
  id: string;
@@ -3015,8 +3074,7 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
3015
3074
  uri?: string | undefined;
3016
3075
  } | undefined;
3017
3076
  uri?: string | undefined;
3018
- })[];
3019
- currentlyPlaying?: {
3077
+ } | {
3020
3078
  artists: {
3021
3079
  id: string;
3022
3080
  name: string;
@@ -3082,64 +3140,6 @@ declare function createSpotifyClient(credentials: SpotifyCredentials, config?: S
3082
3140
  } | undefined;
3083
3141
  trackNumber?: number | undefined;
3084
3142
  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-Dzf1u4u-.mjs";
1
+ import { i as spotifyOfficialIntegration, n as spotify, t as SpotifyCredentials } from "./integration-DXXNe4_j.mjs";
2
2
  export { type SpotifyCredentials, spotify, spotifyOfficialIntegration };
@@ -1,3 +1,3 @@
1
- import { r as spotifyOfficialIntegration, t as spotify } from "./integration-BK1PIn1V.mjs";
1
+ import { r as spotifyOfficialIntegration, t as spotify } from "./integration-CrkQTg9q.mjs";
2
2
 
3
3
  export { spotify, spotifyOfficialIntegration };
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/episodes.d.ts
@@ -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<"keystroke:spotify", z.ZodObject<{
71
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"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<"keystroke:spotify", z.ZodObject<{
143
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"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-C3uQLYXY.mjs";
3
+ import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/episodes.ts
@@ -0,0 +1,7 @@
1
+ import { o as createOfficialOperationFactory, t as spotify } from "./integration-CrkQTg9q.mjs";
2
+
3
+ //#region src/factory.ts
4
+ const spotifyOperation = createOfficialOperationFactory(spotify);
5
+
6
+ //#endregion
7
+ export { spotifyOperation as t };
package/dist/follow.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
5
5
  //#region src/follow.d.ts
@@ -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<"keystroke:spotify", z.ZodObject<{
40
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"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<"keystroke:spotify", z.ZodObject<{
53
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"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<"keystroke:spotify", z.ZodObject<{
66
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"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<"keystroke:spotify", z.ZodObject<{
77
+ }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"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-C3uQLYXY.mjs";
3
+ import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/follow.ts
package/dist/genres.d.mts CHANGED
@@ -1,11 +1,11 @@
1
- import { z } from "zod";
2
1
  import * as _keystrokehq_core0 from "@keystrokehq/core";
2
+ import { z } from "zod";
3
3
  import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
4
 
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<"keystroke:spotify", z.ZodObject<{
8
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"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-C3uQLYXY.mjs";
2
+ import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/genres.ts