@authhero/kysely-adapter 0.7.11 → 0.7.14

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.
@@ -1746,13 +1746,67 @@ declare const sessionSchema: z.ZodObject<{
1746
1746
  deleted_at?: string | undefined;
1747
1747
  }>;
1748
1748
  export type Session = z.infer<typeof sessionSchema>;
1749
- export interface Certificate {
1750
- private_key: string;
1751
- public_key: string;
1749
+ declare const certificateSchema: z.ZodObject<{
1750
+ private_key: z.ZodOptional<z.ZodString>;
1751
+ public_key: z.ZodOptional<z.ZodString>;
1752
+ kid: z.ZodString;
1753
+ created_at: z.ZodOptional<z.ZodString>;
1754
+ revoked_at: z.ZodOptional<z.ZodString>;
1755
+ }, "strip", z.ZodTypeAny, {
1752
1756
  kid: string;
1753
- created_at: string;
1754
- revoked_at?: string;
1755
- }
1757
+ created_at?: string | undefined;
1758
+ private_key?: string | undefined;
1759
+ public_key?: string | undefined;
1760
+ revoked_at?: string | undefined;
1761
+ }, {
1762
+ kid: string;
1763
+ created_at?: string | undefined;
1764
+ private_key?: string | undefined;
1765
+ public_key?: string | undefined;
1766
+ revoked_at?: string | undefined;
1767
+ }>;
1768
+ export type Certificate = z.infer<typeof certificateSchema>;
1769
+ declare const signingKeySchema: z.ZodObject<{
1770
+ kid: z.ZodString;
1771
+ cert: z.ZodString;
1772
+ fingerprint: z.ZodString;
1773
+ thumbprint: z.ZodString;
1774
+ pkcs7: z.ZodOptional<z.ZodString>;
1775
+ current: z.ZodOptional<z.ZodBoolean>;
1776
+ next: z.ZodOptional<z.ZodBoolean>;
1777
+ previous: z.ZodOptional<z.ZodBoolean>;
1778
+ current_since: z.ZodOptional<z.ZodString>;
1779
+ current_until: z.ZodOptional<z.ZodString>;
1780
+ revoked: z.ZodOptional<z.ZodBoolean>;
1781
+ revoked_at: z.ZodOptional<z.ZodString>;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ kid: string;
1784
+ cert: string;
1785
+ fingerprint: string;
1786
+ thumbprint: string;
1787
+ revoked_at?: string | undefined;
1788
+ pkcs7?: string | undefined;
1789
+ current?: boolean | undefined;
1790
+ next?: boolean | undefined;
1791
+ previous?: boolean | undefined;
1792
+ current_since?: string | undefined;
1793
+ current_until?: string | undefined;
1794
+ revoked?: boolean | undefined;
1795
+ }, {
1796
+ kid: string;
1797
+ cert: string;
1798
+ fingerprint: string;
1799
+ thumbprint: string;
1800
+ revoked_at?: string | undefined;
1801
+ pkcs7?: string | undefined;
1802
+ current?: boolean | undefined;
1803
+ next?: boolean | undefined;
1804
+ previous?: boolean | undefined;
1805
+ current_since?: string | undefined;
1806
+ current_until?: string | undefined;
1807
+ revoked?: boolean | undefined;
1808
+ }>;
1809
+ export type SigningKey = z.infer<typeof signingKeySchema>;
1756
1810
  export interface Tenant {
1757
1811
  id: string;
1758
1812
  name: string;
@@ -2618,467 +2672,6 @@ export interface Ticket {
2618
2672
  expires_at: Date;
2619
2673
  used_at?: Date;
2620
2674
  }
2621
- declare const universalLoginSessionInsertSchema: z.ZodObject<{
2622
- id: z.ZodString;
2623
- expires_at: z.ZodString;
2624
- auth0Client: z.ZodOptional<z.ZodString>;
2625
- authParams: z.ZodObject<{
2626
- client_id: z.ZodString;
2627
- vendor_id: z.ZodOptional<z.ZodString>;
2628
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2629
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2630
- redirect_uri: z.ZodOptional<z.ZodString>;
2631
- audience: z.ZodOptional<z.ZodString>;
2632
- state: z.ZodOptional<z.ZodString>;
2633
- nonce: z.ZodOptional<z.ZodString>;
2634
- scope: z.ZodOptional<z.ZodString>;
2635
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2636
- code_challenge: z.ZodOptional<z.ZodString>;
2637
- username: z.ZodOptional<z.ZodString>;
2638
- }, "strip", z.ZodTypeAny, {
2639
- client_id: string;
2640
- username?: string | undefined;
2641
- audience?: string | undefined;
2642
- vendor_id?: string | undefined;
2643
- response_type?: AuthorizationResponseType | undefined;
2644
- response_mode?: AuthorizationResponseMode | undefined;
2645
- redirect_uri?: string | undefined;
2646
- state?: string | undefined;
2647
- nonce?: string | undefined;
2648
- scope?: string | undefined;
2649
- code_challenge_method?: CodeChallengeMethod | undefined;
2650
- code_challenge?: string | undefined;
2651
- }, {
2652
- client_id: string;
2653
- username?: string | undefined;
2654
- audience?: string | undefined;
2655
- vendor_id?: string | undefined;
2656
- response_type?: AuthorizationResponseType | undefined;
2657
- response_mode?: AuthorizationResponseMode | undefined;
2658
- redirect_uri?: string | undefined;
2659
- state?: string | undefined;
2660
- nonce?: string | undefined;
2661
- scope?: string | undefined;
2662
- code_challenge_method?: CodeChallengeMethod | undefined;
2663
- code_challenge?: string | undefined;
2664
- }>;
2665
- }, "strip", z.ZodTypeAny, {
2666
- id: string;
2667
- expires_at: string;
2668
- authParams: {
2669
- client_id: string;
2670
- username?: string | undefined;
2671
- audience?: string | undefined;
2672
- vendor_id?: string | undefined;
2673
- response_type?: AuthorizationResponseType | undefined;
2674
- response_mode?: AuthorizationResponseMode | undefined;
2675
- redirect_uri?: string | undefined;
2676
- state?: string | undefined;
2677
- nonce?: string | undefined;
2678
- scope?: string | undefined;
2679
- code_challenge_method?: CodeChallengeMethod | undefined;
2680
- code_challenge?: string | undefined;
2681
- };
2682
- auth0Client?: string | undefined;
2683
- }, {
2684
- id: string;
2685
- expires_at: string;
2686
- authParams: {
2687
- client_id: string;
2688
- username?: string | undefined;
2689
- audience?: string | undefined;
2690
- vendor_id?: string | undefined;
2691
- response_type?: AuthorizationResponseType | undefined;
2692
- response_mode?: AuthorizationResponseMode | undefined;
2693
- redirect_uri?: string | undefined;
2694
- state?: string | undefined;
2695
- nonce?: string | undefined;
2696
- scope?: string | undefined;
2697
- code_challenge_method?: CodeChallengeMethod | undefined;
2698
- code_challenge?: string | undefined;
2699
- };
2700
- auth0Client?: string | undefined;
2701
- }>;
2702
- export type UniversalLoginSessionInsert = z.infer<typeof universalLoginSessionInsertSchema>;
2703
- declare const universalLoginSessionSchema: z.ZodObject<{
2704
- created_at: z.ZodString;
2705
- updated_at: z.ZodString;
2706
- id: z.ZodString;
2707
- expires_at: z.ZodString;
2708
- auth0Client: z.ZodOptional<z.ZodString>;
2709
- authParams: z.ZodObject<{
2710
- client_id: z.ZodString;
2711
- vendor_id: z.ZodOptional<z.ZodString>;
2712
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2713
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2714
- redirect_uri: z.ZodOptional<z.ZodString>;
2715
- audience: z.ZodOptional<z.ZodString>;
2716
- state: z.ZodOptional<z.ZodString>;
2717
- nonce: z.ZodOptional<z.ZodString>;
2718
- scope: z.ZodOptional<z.ZodString>;
2719
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2720
- code_challenge: z.ZodOptional<z.ZodString>;
2721
- username: z.ZodOptional<z.ZodString>;
2722
- }, "strip", z.ZodTypeAny, {
2723
- client_id: string;
2724
- username?: string | undefined;
2725
- audience?: string | undefined;
2726
- vendor_id?: string | undefined;
2727
- response_type?: AuthorizationResponseType | undefined;
2728
- response_mode?: AuthorizationResponseMode | undefined;
2729
- redirect_uri?: string | undefined;
2730
- state?: string | undefined;
2731
- nonce?: string | undefined;
2732
- scope?: string | undefined;
2733
- code_challenge_method?: CodeChallengeMethod | undefined;
2734
- code_challenge?: string | undefined;
2735
- }, {
2736
- client_id: string;
2737
- username?: string | undefined;
2738
- audience?: string | undefined;
2739
- vendor_id?: string | undefined;
2740
- response_type?: AuthorizationResponseType | undefined;
2741
- response_mode?: AuthorizationResponseMode | undefined;
2742
- redirect_uri?: string | undefined;
2743
- state?: string | undefined;
2744
- nonce?: string | undefined;
2745
- scope?: string | undefined;
2746
- code_challenge_method?: CodeChallengeMethod | undefined;
2747
- code_challenge?: string | undefined;
2748
- }>;
2749
- }, "strip", z.ZodTypeAny, {
2750
- created_at: string;
2751
- updated_at: string;
2752
- id: string;
2753
- expires_at: string;
2754
- authParams: {
2755
- client_id: string;
2756
- username?: string | undefined;
2757
- audience?: string | undefined;
2758
- vendor_id?: string | undefined;
2759
- response_type?: AuthorizationResponseType | undefined;
2760
- response_mode?: AuthorizationResponseMode | undefined;
2761
- redirect_uri?: string | undefined;
2762
- state?: string | undefined;
2763
- nonce?: string | undefined;
2764
- scope?: string | undefined;
2765
- code_challenge_method?: CodeChallengeMethod | undefined;
2766
- code_challenge?: string | undefined;
2767
- };
2768
- auth0Client?: string | undefined;
2769
- }, {
2770
- created_at: string;
2771
- updated_at: string;
2772
- id: string;
2773
- expires_at: string;
2774
- authParams: {
2775
- client_id: string;
2776
- username?: string | undefined;
2777
- audience?: string | undefined;
2778
- vendor_id?: string | undefined;
2779
- response_type?: AuthorizationResponseType | undefined;
2780
- response_mode?: AuthorizationResponseMode | undefined;
2781
- redirect_uri?: string | undefined;
2782
- state?: string | undefined;
2783
- nonce?: string | undefined;
2784
- scope?: string | undefined;
2785
- code_challenge_method?: CodeChallengeMethod | undefined;
2786
- code_challenge?: string | undefined;
2787
- };
2788
- auth0Client?: string | undefined;
2789
- }>;
2790
- export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
2791
- declare const otpInsertSchema: z.ZodObject<{
2792
- id: z.ZodString;
2793
- email: z.ZodString;
2794
- code: z.ZodString;
2795
- ip: z.ZodOptional<z.ZodString>;
2796
- send: z.ZodEnum<[
2797
- "code",
2798
- "link"
2799
- ]>;
2800
- authParams: z.ZodObject<{
2801
- client_id: z.ZodString;
2802
- vendor_id: z.ZodOptional<z.ZodString>;
2803
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2804
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2805
- redirect_uri: z.ZodOptional<z.ZodString>;
2806
- audience: z.ZodOptional<z.ZodString>;
2807
- state: z.ZodOptional<z.ZodString>;
2808
- nonce: z.ZodOptional<z.ZodString>;
2809
- scope: z.ZodOptional<z.ZodString>;
2810
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2811
- code_challenge: z.ZodOptional<z.ZodString>;
2812
- username: z.ZodOptional<z.ZodString>;
2813
- }, "strip", z.ZodTypeAny, {
2814
- client_id: string;
2815
- username?: string | undefined;
2816
- audience?: string | undefined;
2817
- vendor_id?: string | undefined;
2818
- response_type?: AuthorizationResponseType | undefined;
2819
- response_mode?: AuthorizationResponseMode | undefined;
2820
- redirect_uri?: string | undefined;
2821
- state?: string | undefined;
2822
- nonce?: string | undefined;
2823
- scope?: string | undefined;
2824
- code_challenge_method?: CodeChallengeMethod | undefined;
2825
- code_challenge?: string | undefined;
2826
- }, {
2827
- client_id: string;
2828
- username?: string | undefined;
2829
- audience?: string | undefined;
2830
- vendor_id?: string | undefined;
2831
- response_type?: AuthorizationResponseType | undefined;
2832
- response_mode?: AuthorizationResponseMode | undefined;
2833
- redirect_uri?: string | undefined;
2834
- state?: string | undefined;
2835
- nonce?: string | undefined;
2836
- scope?: string | undefined;
2837
- code_challenge_method?: CodeChallengeMethod | undefined;
2838
- code_challenge?: string | undefined;
2839
- }>;
2840
- expires_at: z.ZodString;
2841
- used_at: z.ZodOptional<z.ZodString>;
2842
- user_id: z.ZodOptional<z.ZodString>;
2843
- }, "strip", z.ZodTypeAny, {
2844
- code: string;
2845
- email: string;
2846
- id: string;
2847
- expires_at: string;
2848
- authParams: {
2849
- client_id: string;
2850
- username?: string | undefined;
2851
- audience?: string | undefined;
2852
- vendor_id?: string | undefined;
2853
- response_type?: AuthorizationResponseType | undefined;
2854
- response_mode?: AuthorizationResponseMode | undefined;
2855
- redirect_uri?: string | undefined;
2856
- state?: string | undefined;
2857
- nonce?: string | undefined;
2858
- scope?: string | undefined;
2859
- code_challenge_method?: CodeChallengeMethod | undefined;
2860
- code_challenge?: string | undefined;
2861
- };
2862
- send: "code" | "link";
2863
- user_id?: string | undefined;
2864
- used_at?: string | undefined;
2865
- ip?: string | undefined;
2866
- }, {
2867
- code: string;
2868
- email: string;
2869
- id: string;
2870
- expires_at: string;
2871
- authParams: {
2872
- client_id: string;
2873
- username?: string | undefined;
2874
- audience?: string | undefined;
2875
- vendor_id?: string | undefined;
2876
- response_type?: AuthorizationResponseType | undefined;
2877
- response_mode?: AuthorizationResponseMode | undefined;
2878
- redirect_uri?: string | undefined;
2879
- state?: string | undefined;
2880
- nonce?: string | undefined;
2881
- scope?: string | undefined;
2882
- code_challenge_method?: CodeChallengeMethod | undefined;
2883
- code_challenge?: string | undefined;
2884
- };
2885
- send: "code" | "link";
2886
- user_id?: string | undefined;
2887
- used_at?: string | undefined;
2888
- ip?: string | undefined;
2889
- }>;
2890
- export type OTPInsert = z.infer<typeof otpInsertSchema>;
2891
- declare const otpSchema: z.ZodObject<{
2892
- id: z.ZodString;
2893
- email: z.ZodString;
2894
- code: z.ZodString;
2895
- ip: z.ZodOptional<z.ZodString>;
2896
- send: z.ZodEnum<[
2897
- "code",
2898
- "link"
2899
- ]>;
2900
- authParams: z.ZodObject<{
2901
- client_id: z.ZodString;
2902
- vendor_id: z.ZodOptional<z.ZodString>;
2903
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2904
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2905
- redirect_uri: z.ZodOptional<z.ZodString>;
2906
- audience: z.ZodOptional<z.ZodString>;
2907
- state: z.ZodOptional<z.ZodString>;
2908
- nonce: z.ZodOptional<z.ZodString>;
2909
- scope: z.ZodOptional<z.ZodString>;
2910
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2911
- code_challenge: z.ZodOptional<z.ZodString>;
2912
- username: z.ZodOptional<z.ZodString>;
2913
- }, "strip", z.ZodTypeAny, {
2914
- client_id: string;
2915
- username?: string | undefined;
2916
- audience?: string | undefined;
2917
- vendor_id?: string | undefined;
2918
- response_type?: AuthorizationResponseType | undefined;
2919
- response_mode?: AuthorizationResponseMode | undefined;
2920
- redirect_uri?: string | undefined;
2921
- state?: string | undefined;
2922
- nonce?: string | undefined;
2923
- scope?: string | undefined;
2924
- code_challenge_method?: CodeChallengeMethod | undefined;
2925
- code_challenge?: string | undefined;
2926
- }, {
2927
- client_id: string;
2928
- username?: string | undefined;
2929
- audience?: string | undefined;
2930
- vendor_id?: string | undefined;
2931
- response_type?: AuthorizationResponseType | undefined;
2932
- response_mode?: AuthorizationResponseMode | undefined;
2933
- redirect_uri?: string | undefined;
2934
- state?: string | undefined;
2935
- nonce?: string | undefined;
2936
- scope?: string | undefined;
2937
- code_challenge_method?: CodeChallengeMethod | undefined;
2938
- code_challenge?: string | undefined;
2939
- }>;
2940
- expires_at: z.ZodString;
2941
- used_at: z.ZodOptional<z.ZodString>;
2942
- user_id: z.ZodOptional<z.ZodString>;
2943
- created_at: z.ZodString;
2944
- }, "strip", z.ZodTypeAny, {
2945
- code: string;
2946
- created_at: string;
2947
- email: string;
2948
- id: string;
2949
- expires_at: string;
2950
- authParams: {
2951
- client_id: string;
2952
- username?: string | undefined;
2953
- audience?: string | undefined;
2954
- vendor_id?: string | undefined;
2955
- response_type?: AuthorizationResponseType | undefined;
2956
- response_mode?: AuthorizationResponseMode | undefined;
2957
- redirect_uri?: string | undefined;
2958
- state?: string | undefined;
2959
- nonce?: string | undefined;
2960
- scope?: string | undefined;
2961
- code_challenge_method?: CodeChallengeMethod | undefined;
2962
- code_challenge?: string | undefined;
2963
- };
2964
- send: "code" | "link";
2965
- user_id?: string | undefined;
2966
- used_at?: string | undefined;
2967
- ip?: string | undefined;
2968
- }, {
2969
- code: string;
2970
- created_at: string;
2971
- email: string;
2972
- id: string;
2973
- expires_at: string;
2974
- authParams: {
2975
- client_id: string;
2976
- username?: string | undefined;
2977
- audience?: string | undefined;
2978
- vendor_id?: string | undefined;
2979
- response_type?: AuthorizationResponseType | undefined;
2980
- response_mode?: AuthorizationResponseMode | undefined;
2981
- redirect_uri?: string | undefined;
2982
- state?: string | undefined;
2983
- nonce?: string | undefined;
2984
- scope?: string | undefined;
2985
- code_challenge_method?: CodeChallengeMethod | undefined;
2986
- code_challenge?: string | undefined;
2987
- };
2988
- send: "code" | "link";
2989
- user_id?: string | undefined;
2990
- used_at?: string | undefined;
2991
- ip?: string | undefined;
2992
- }>;
2993
- export type OTP = z.infer<typeof otpSchema>;
2994
- declare const authenticationCodeSchema: z.ZodObject<{
2995
- created_at: z.ZodString;
2996
- authParams: z.ZodObject<{
2997
- client_id: z.ZodString;
2998
- vendor_id: z.ZodOptional<z.ZodString>;
2999
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3000
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3001
- redirect_uri: z.ZodOptional<z.ZodString>;
3002
- audience: z.ZodOptional<z.ZodString>;
3003
- state: z.ZodOptional<z.ZodString>;
3004
- nonce: z.ZodOptional<z.ZodString>;
3005
- scope: z.ZodOptional<z.ZodString>;
3006
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3007
- code_challenge: z.ZodOptional<z.ZodString>;
3008
- username: z.ZodOptional<z.ZodString>;
3009
- }, "strip", z.ZodTypeAny, {
3010
- client_id: string;
3011
- username?: string | undefined;
3012
- audience?: string | undefined;
3013
- vendor_id?: string | undefined;
3014
- response_type?: AuthorizationResponseType | undefined;
3015
- response_mode?: AuthorizationResponseMode | undefined;
3016
- redirect_uri?: string | undefined;
3017
- state?: string | undefined;
3018
- nonce?: string | undefined;
3019
- scope?: string | undefined;
3020
- code_challenge_method?: CodeChallengeMethod | undefined;
3021
- code_challenge?: string | undefined;
3022
- }, {
3023
- client_id: string;
3024
- username?: string | undefined;
3025
- audience?: string | undefined;
3026
- vendor_id?: string | undefined;
3027
- response_type?: AuthorizationResponseType | undefined;
3028
- response_mode?: AuthorizationResponseMode | undefined;
3029
- redirect_uri?: string | undefined;
3030
- state?: string | undefined;
3031
- nonce?: string | undefined;
3032
- scope?: string | undefined;
3033
- code_challenge_method?: CodeChallengeMethod | undefined;
3034
- code_challenge?: string | undefined;
3035
- }>;
3036
- code: z.ZodString;
3037
- user_id: z.ZodString;
3038
- expires_at: z.ZodString;
3039
- used_at: z.ZodOptional<z.ZodString>;
3040
- }, "strip", z.ZodTypeAny, {
3041
- code: string;
3042
- created_at: string;
3043
- user_id: string;
3044
- expires_at: string;
3045
- authParams: {
3046
- client_id: string;
3047
- username?: string | undefined;
3048
- audience?: string | undefined;
3049
- vendor_id?: string | undefined;
3050
- response_type?: AuthorizationResponseType | undefined;
3051
- response_mode?: AuthorizationResponseMode | undefined;
3052
- redirect_uri?: string | undefined;
3053
- state?: string | undefined;
3054
- nonce?: string | undefined;
3055
- scope?: string | undefined;
3056
- code_challenge_method?: CodeChallengeMethod | undefined;
3057
- code_challenge?: string | undefined;
3058
- };
3059
- used_at?: string | undefined;
3060
- }, {
3061
- code: string;
3062
- created_at: string;
3063
- user_id: string;
3064
- expires_at: string;
3065
- authParams: {
3066
- client_id: string;
3067
- username?: string | undefined;
3068
- audience?: string | undefined;
3069
- vendor_id?: string | undefined;
3070
- response_type?: AuthorizationResponseType | undefined;
3071
- response_mode?: AuthorizationResponseMode | undefined;
3072
- redirect_uri?: string | undefined;
3073
- state?: string | undefined;
3074
- nonce?: string | undefined;
3075
- scope?: string | undefined;
3076
- code_challenge_method?: CodeChallengeMethod | undefined;
3077
- code_challenge?: string | undefined;
3078
- };
3079
- used_at?: string | undefined;
3080
- }>;
3081
- export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
3082
2675
  export interface ListParams {
3083
2676
  page: number;
3084
2677
  per_page: number;
@@ -3098,11 +2691,6 @@ export interface CodesAdapter {
3098
2691
  list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
3099
2692
  remove: (tenant_id: string, code: string) => Promise<boolean>;
3100
2693
  }
3101
- export interface OTPAdapter {
3102
- create: (tenant_id: string, authCode: OTPInsert) => Promise<void>;
3103
- list: (tenant_id: string, email: string) => Promise<OTP[]>;
3104
- remove: (tenant_id: string, id: string) => Promise<boolean>;
3105
- }
3106
2694
  export interface PasswordsAdapter {
3107
2695
  create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
3108
2696
  update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
@@ -3171,11 +2759,6 @@ export interface ApplicationsAdapter {
3171
2759
  }>;
3172
2760
  update(tenant_id: string, id: string, application: Partial<Application>): Promise<boolean>;
3173
2761
  }
3174
- export interface UniversalLoginSessionsAdapter {
3175
- create: (tenant_id: string, session: UniversalLoginSessionInsert) => Promise<UniversalLoginSession>;
3176
- update: (tenant_id: string, id: string, session: UniversalLoginSession) => Promise<boolean>;
3177
- get: (id: string) => Promise<UniversalLoginSession | null>;
3178
- }
3179
2762
  export interface ListConnectionsResponse extends Totals {
3180
2763
  connections: Connection[];
3181
2764
  }
@@ -3194,18 +2777,14 @@ export interface DomainsAdapter {
3194
2777
  list(tenant_id: string, params: ListParams): Promise<ListDomainsResponse>;
3195
2778
  }
3196
2779
  export interface KeysAdapter {
3197
- create: (key: Certificate) => Promise<void>;
3198
- list: () => Promise<Certificate[]>;
2780
+ create: (key: SigningKey) => Promise<void>;
2781
+ list: () => Promise<(Certificate | SigningKey)[]>;
3199
2782
  revoke: (kid: string, revoke_at: Date) => Promise<boolean>;
3200
2783
  }
3201
2784
  export interface BrandingAdapter {
3202
2785
  set: (tenant_id: string, authCode: Branding) => Promise<void>;
3203
2786
  get: (tenant_id: string) => Promise<Branding | null>;
3204
2787
  }
3205
- export interface AuthenticationCodesAdapter {
3206
- create: (tenant_id: string, authCode: AuthenticationCode) => Promise<void>;
3207
- get: (tenant_id: string, code: string) => Promise<AuthenticationCode>;
3208
- }
3209
2788
  export interface ListHooksResponse extends Totals {
3210
2789
  hooks: Hook[];
3211
2790
  }
@@ -3233,7 +2812,6 @@ export interface LoginsAdapter {
3233
2812
  }
3234
2813
  export interface DataAdapters {
3235
2814
  applications: ApplicationsAdapter;
3236
- authenticationCodes: AuthenticationCodesAdapter;
3237
2815
  branding: BrandingAdapter;
3238
2816
  clients: ClientsAdapter;
3239
2817
  codes: CodesAdapter;
@@ -3243,30 +2821,13 @@ export interface DataAdapters {
3243
2821
  keys: KeysAdapter;
3244
2822
  logins: LoginsAdapter;
3245
2823
  logs: LogsDataAdapter;
3246
- OTP: OTPAdapter;
3247
2824
  passwords: PasswordsAdapter;
3248
2825
  sessions: SessionsAdapter;
3249
2826
  tenants: TenantsDataAdapter;
3250
2827
  themes: ThemesAdapter;
3251
2828
  tickets: TicketsAdapter;
3252
- universalLoginSessions: UniversalLoginSessionsAdapter;
3253
2829
  users: UserDataAdapter;
3254
2830
  }
3255
- export interface SqlAuthenticationCode {
3256
- code: string;
3257
- tenant_id: string;
3258
- client_id: string;
3259
- user_id: string;
3260
- nonce?: string;
3261
- state?: string;
3262
- scope?: string;
3263
- response_type?: AuthorizationResponseType;
3264
- response_mode?: AuthorizationResponseMode;
3265
- redirect_uri?: string;
3266
- created_at: string;
3267
- expires_at: string;
3268
- used_at?: string;
3269
- }
3270
2831
  export interface SqlUser extends BaseUser {
3271
2832
  user_id: string;
3272
2833
  email_verified: number;
@@ -3280,23 +2841,6 @@ export interface SqlUser extends BaseUser {
3280
2841
  created_at: string;
3281
2842
  updated_at: string;
3282
2843
  }
3283
- export interface SqlOTP {
3284
- id: string;
3285
- tenant_id: string;
3286
- client_id: string;
3287
- email: string;
3288
- code: string;
3289
- send: "link" | "code";
3290
- nonce?: string;
3291
- state?: string;
3292
- scope?: string;
3293
- response_type?: AuthorizationResponseType;
3294
- redirect_uri?: string;
3295
- created_at: string;
3296
- expires_at: string;
3297
- used_at?: string;
3298
- user_id?: string;
3299
- }
3300
2844
  export interface SqlTicket {
3301
2845
  id: string;
3302
2846
  tenant_id: string;
@@ -3312,26 +2856,6 @@ export interface SqlTicket {
3312
2856
  expires_at: string;
3313
2857
  used_at?: string;
3314
2858
  }
3315
- export interface SqlUniversalLoginSession {
3316
- id: string;
3317
- tenant_id: string;
3318
- client_id: string;
3319
- email?: string;
3320
- nonce?: string;
3321
- state?: string;
3322
- scope?: string;
3323
- response_type?: AuthorizationResponseType;
3324
- response_mode?: AuthorizationResponseMode;
3325
- redirect_uri?: string;
3326
- code_challenge_method?: string;
3327
- code_challenge?: string;
3328
- username?: string;
3329
- vendor_id?: string;
3330
- audience?: string;
3331
- created_at: string;
3332
- expires_at: string;
3333
- updated_at: string;
3334
- }
3335
2859
  export interface SqlLog {
3336
2860
  id: string;
3337
2861
  tenant_id: string;
@@ -3425,7 +2949,6 @@ declare const sqlApplicationSchema: z.ZodObject<{
3425
2949
  }>;
3426
2950
  export interface Database {
3427
2951
  applications: z.infer<typeof sqlApplicationSchema>;
3428
- authentication_codes: SqlAuthenticationCode;
3429
2952
  branding: SqlBranding;
3430
2953
  codes: Code & {
3431
2954
  tenant_id: string;
@@ -3439,10 +2962,11 @@ export interface Database {
3439
2962
  hooks: Hook & {
3440
2963
  tenant_id: string;
3441
2964
  };
3442
- keys: Certificate;
2965
+ keys: Certificate & SigningKey & {
2966
+ created_at: string;
2967
+ };
3443
2968
  logins: SqlLogin;
3444
2969
  logs: SqlLog;
3445
- otps: SqlOTP;
3446
2970
  passwords: Password & {
3447
2971
  tenant_id: string;
3448
2972
  };
@@ -3453,7 +2977,6 @@ export interface Database {
3453
2977
  tenants: Tenant;
3454
2978
  themes: SqlTheme;
3455
2979
  tickets: SqlTicket;
3456
- universal_login_sessions: SqlUniversalLoginSession;
3457
2980
  }
3458
2981
  declare function createAdapters(db: Kysely<Database>): DataAdapters;
3459
2982