@keystrokehq/spotify 0.0.9 → 0.0.15

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 (57) hide show
  1. package/dist/_official/index.d.mts +3 -7
  2. package/dist/_official/index.mjs +1 -1
  3. package/dist/albums.d.mts +9 -18
  4. package/dist/albums.mjs +1 -1
  5. package/dist/artists.d.mts +11 -22
  6. package/dist/artists.mjs +1 -1
  7. package/dist/audio-analysis.d.mts +3 -6
  8. package/dist/audio-analysis.mjs +1 -1
  9. package/dist/audio-features.d.mts +5 -10
  10. package/dist/audio-features.mjs +1 -1
  11. package/dist/audiobooks.d.mts +7 -14
  12. package/dist/audiobooks.mjs +1 -1
  13. package/dist/browse.d.mts +3 -6
  14. package/dist/browse.mjs +1 -1
  15. package/dist/categories.d.mts +7 -14
  16. package/dist/categories.mjs +1 -1
  17. package/dist/chapters.d.mts +5 -10
  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 +5 -10
  23. package/dist/episodes.mjs +1 -1
  24. package/dist/factory-DMprpzS1.mjs +8 -0
  25. package/dist/follow.d.mts +9 -18
  26. package/dist/follow.mjs +1 -1
  27. package/dist/genres.d.mts +3 -6
  28. package/dist/genres.mjs +1 -1
  29. package/dist/integration-B5oEi2sg.d.mts +27 -0
  30. package/dist/integration-D9ABjTOP.mjs +51 -0
  31. package/dist/library.d.mts +41 -82
  32. package/dist/library.mjs +1 -1
  33. package/dist/markets.d.mts +3 -6
  34. package/dist/markets.mjs +1 -1
  35. package/dist/me.d.mts +7 -14
  36. package/dist/me.mjs +1 -1
  37. package/dist/player.d.mts +33 -64
  38. package/dist/player.mjs +1 -1
  39. package/dist/playlists.d.mts +29 -58
  40. package/dist/playlists.mjs +1 -1
  41. package/dist/recommendations.d.mts +3 -6
  42. package/dist/recommendations.mjs +1 -1
  43. package/dist/schemas.d.mts +1 -1
  44. package/dist/search.d.mts +4 -7
  45. package/dist/search.mjs +1 -1
  46. package/dist/shows.d.mts +7 -14
  47. package/dist/shows.mjs +1 -1
  48. package/dist/tracks.d.mts +5 -10
  49. package/dist/tracks.mjs +1 -1
  50. package/dist/triggers.d.mts +3 -2
  51. package/dist/triggers.mjs +7 -56
  52. package/dist/users.d.mts +3 -6
  53. package/dist/users.mjs +1 -1
  54. package/package.json +5 -5
  55. package/dist/factory-C9W7aXmR.mjs +0 -7
  56. package/dist/integration-CrkQTg9q.mjs +0 -170
  57. package/dist/integration-DXXNe4_j.d.mts +0 -40
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as SpotifyCredentials } from "./integration-DXXNe4_j.mjs";
1
+ import { t as SpotifyCredentials } from "./integration-B5oEi2sg.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-DXXNe4_j.mjs";
1
+ import { i as spotifyOfficialIntegration, n as spotify, t as SpotifyCredentials } from "./integration-B5oEi2sg.mjs";
2
2
  export { type SpotifyCredentials, spotify, spotifyOfficialIntegration };
@@ -1,3 +1,3 @@
1
- import { r as spotifyOfficialIntegration, t as spotify } from "./integration-CrkQTg9q.mjs";
1
+ import { r as spotifyOfficialIntegration, t as spotify } from "./integration-D9ABjTOP.mjs";
2
2
 
3
3
  export { spotify, spotifyOfficialIntegration };
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/episodes.d.ts
6
5
  declare const getEpisode: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -68,11 +67,9 @@ declare const getEpisode: _keystrokehq_core0.Operation<z.ZodObject<{
68
67
  }, z.core.$strip>>;
69
68
  type: z.ZodLiteral<"episode">;
70
69
  uri: z.ZodOptional<z.ZodString>;
71
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
70
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
72
71
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
73
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
74
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
75
- }, z.core.$strip>>[] | undefined>], undefined>;
72
+ }, z.core.$strip>>], undefined>;
76
73
  declare const getSeveralEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
77
74
  ids: z.ZodArray<z.ZodString>;
78
75
  market: z.ZodOptional<z.ZodString>;
@@ -140,10 +137,8 @@ declare const getSeveralEpisodes: _keystrokehq_core0.Operation<z.ZodObject<{
140
137
  type: z.ZodLiteral<"episode">;
141
138
  uri: z.ZodOptional<z.ZodString>;
142
139
  }, z.core.$strip>>;
143
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
144
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
145
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
140
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
146
141
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
147
- }, z.core.$strip>>[] | undefined>], undefined>;
142
+ }, z.core.$strip>>], undefined>;
148
143
  //#endregion
149
144
  export { getEpisode, getSeveralEpisodes };
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-C9W7aXmR.mjs";
3
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/episodes.ts
@@ -0,0 +1,8 @@
1
+ import { t as spotify } from "./integration-D9ABjTOP.mjs";
2
+ import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
+
4
+ //#region src/factory.ts
5
+ const spotifyOperation = createOfficialOperationFactory(spotify);
6
+
7
+ //#endregion
8
+ export { spotifyOperation as t };
package/dist/follow.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/follow.d.ts
6
5
  declare const getFollowedArtists: _keystrokehq_core0.Operation<z.ZodObject<{
@@ -37,11 +36,9 @@ declare const getFollowedArtists: _keystrokehq_core0.Operation<z.ZodObject<{
37
36
  after: z.ZodOptional<z.ZodString>;
38
37
  before: z.ZodOptional<z.ZodString>;
39
38
  }, z.core.$strip>>;
40
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
41
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
42
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
39
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
43
40
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
44
- }, z.core.$strip>>[] | undefined>], undefined>;
41
+ }, z.core.$strip>>], undefined>;
45
42
  declare const followArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
46
43
  type: z.ZodEnum<{
47
44
  artist: "artist";
@@ -50,11 +47,9 @@ declare const followArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
50
47
  ids: z.ZodArray<z.ZodString>;
51
48
  }, z.core.$strip>, z.ZodObject<{
52
49
  success: z.ZodLiteral<true>;
53
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
50
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
54
51
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
55
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
56
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
57
- }, z.core.$strip>>[] | undefined>], undefined>;
52
+ }, z.core.$strip>>], undefined>;
58
53
  declare const unfollowArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
59
54
  type: z.ZodEnum<{
60
55
  artist: "artist";
@@ -63,21 +58,17 @@ declare const unfollowArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
63
58
  ids: z.ZodArray<z.ZodString>;
64
59
  }, z.core.$strip>, z.ZodObject<{
65
60
  success: z.ZodLiteral<true>;
66
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
67
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
68
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
61
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
69
62
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
70
- }, z.core.$strip>>[] | undefined>], undefined>;
63
+ }, z.core.$strip>>], undefined>;
71
64
  declare const checkFollowingArtistsOrUsers: _keystrokehq_core0.Operation<z.ZodObject<{
72
65
  type: z.ZodEnum<{
73
66
  artist: "artist";
74
67
  user: "user";
75
68
  }>;
76
69
  ids: z.ZodArray<z.ZodString>;
77
- }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
78
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
79
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
70
+ }, z.core.$strip>, z.ZodArray<z.ZodBoolean>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
80
71
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
81
- }, z.core.$strip>>[] | undefined>], undefined>;
72
+ }, z.core.$strip>>], undefined>;
82
73
  //#endregion
83
74
  export { checkFollowingArtistsOrUsers, followArtistsOrUsers, getFollowedArtists, unfollowArtistsOrUsers };
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-C9W7aXmR.mjs";
3
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/follow.ts
package/dist/genres.d.mts CHANGED
@@ -1,14 +1,11 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
1
  import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/genres.d.ts
6
5
  declare const getAvailableGenreSeeds: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
7
6
  genres: z.ZodArray<z.ZodString>;
8
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"spotify", z.ZodObject<{
9
- SPOTIFY_ACCESS_TOKEN: z.ZodString;
10
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
7
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:spotify", z.ZodObject<{
11
8
  SPOTIFY_ACCESS_TOKEN: z.ZodString;
12
- }, z.core.$strip>>[] | undefined>], undefined>;
9
+ }, z.core.$strip>>], undefined>;
13
10
  //#endregion
14
11
  export { getAvailableGenreSeeds };
package/dist/genres.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createSpotifyClient } from "./client.mjs";
2
- import { t as spotifyOperation } from "./factory-C9W7aXmR.mjs";
2
+ import { t as spotifyOperation } from "./factory-DMprpzS1.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/genres.ts