@authhero/kysely-adapter 0.7.11 → 0.8.0
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.
- package/dist/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +46 -543
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +971 -1180
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -1746,13 +1746,47 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
1746
1746
|
deleted_at?: string | undefined;
|
|
1747
1747
|
}>;
|
|
1748
1748
|
export type Session = z.infer<typeof sessionSchema>;
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1749
|
+
declare const signingKeySchema: z.ZodObject<{
|
|
1750
|
+
kid: z.ZodString;
|
|
1751
|
+
cert: z.ZodString;
|
|
1752
|
+
fingerprint: z.ZodString;
|
|
1753
|
+
thumbprint: z.ZodString;
|
|
1754
|
+
pkcs7: z.ZodOptional<z.ZodString>;
|
|
1755
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
1756
|
+
next: z.ZodOptional<z.ZodBoolean>;
|
|
1757
|
+
previous: z.ZodOptional<z.ZodBoolean>;
|
|
1758
|
+
current_since: z.ZodOptional<z.ZodString>;
|
|
1759
|
+
current_until: z.ZodOptional<z.ZodString>;
|
|
1760
|
+
revoked: z.ZodOptional<z.ZodBoolean>;
|
|
1761
|
+
revoked_at: z.ZodOptional<z.ZodString>;
|
|
1762
|
+
}, "strip", z.ZodTypeAny, {
|
|
1752
1763
|
kid: string;
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1764
|
+
cert: string;
|
|
1765
|
+
fingerprint: string;
|
|
1766
|
+
thumbprint: string;
|
|
1767
|
+
pkcs7?: string | undefined;
|
|
1768
|
+
current?: boolean | undefined;
|
|
1769
|
+
next?: boolean | undefined;
|
|
1770
|
+
previous?: boolean | undefined;
|
|
1771
|
+
current_since?: string | undefined;
|
|
1772
|
+
current_until?: string | undefined;
|
|
1773
|
+
revoked?: boolean | undefined;
|
|
1774
|
+
revoked_at?: string | undefined;
|
|
1775
|
+
}, {
|
|
1776
|
+
kid: string;
|
|
1777
|
+
cert: string;
|
|
1778
|
+
fingerprint: string;
|
|
1779
|
+
thumbprint: string;
|
|
1780
|
+
pkcs7?: string | undefined;
|
|
1781
|
+
current?: boolean | undefined;
|
|
1782
|
+
next?: boolean | undefined;
|
|
1783
|
+
previous?: boolean | undefined;
|
|
1784
|
+
current_since?: string | undefined;
|
|
1785
|
+
current_until?: string | undefined;
|
|
1786
|
+
revoked?: boolean | undefined;
|
|
1787
|
+
revoked_at?: string | undefined;
|
|
1788
|
+
}>;
|
|
1789
|
+
export type SigningKey = z.infer<typeof signingKeySchema>;
|
|
1756
1790
|
export interface Tenant {
|
|
1757
1791
|
id: string;
|
|
1758
1792
|
name: string;
|
|
@@ -2618,467 +2652,6 @@ export interface Ticket {
|
|
|
2618
2652
|
expires_at: Date;
|
|
2619
2653
|
used_at?: Date;
|
|
2620
2654
|
}
|
|
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
2655
|
export interface ListParams {
|
|
3083
2656
|
page: number;
|
|
3084
2657
|
per_page: number;
|
|
@@ -3098,11 +2671,6 @@ export interface CodesAdapter {
|
|
|
3098
2671
|
list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
|
|
3099
2672
|
remove: (tenant_id: string, code: string) => Promise<boolean>;
|
|
3100
2673
|
}
|
|
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
2674
|
export interface PasswordsAdapter {
|
|
3107
2675
|
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
3108
2676
|
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
@@ -3171,11 +2739,6 @@ export interface ApplicationsAdapter {
|
|
|
3171
2739
|
}>;
|
|
3172
2740
|
update(tenant_id: string, id: string, application: Partial<Application>): Promise<boolean>;
|
|
3173
2741
|
}
|
|
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
2742
|
export interface ListConnectionsResponse extends Totals {
|
|
3180
2743
|
connections: Connection[];
|
|
3181
2744
|
}
|
|
@@ -3194,18 +2757,14 @@ export interface DomainsAdapter {
|
|
|
3194
2757
|
list(tenant_id: string, params: ListParams): Promise<ListDomainsResponse>;
|
|
3195
2758
|
}
|
|
3196
2759
|
export interface KeysAdapter {
|
|
3197
|
-
create: (key:
|
|
3198
|
-
list: () => Promise<
|
|
3199
|
-
|
|
2760
|
+
create: (key: SigningKey) => Promise<void>;
|
|
2761
|
+
list: () => Promise<SigningKey[]>;
|
|
2762
|
+
update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
|
|
3200
2763
|
}
|
|
3201
2764
|
export interface BrandingAdapter {
|
|
3202
2765
|
set: (tenant_id: string, authCode: Branding) => Promise<void>;
|
|
3203
2766
|
get: (tenant_id: string) => Promise<Branding | null>;
|
|
3204
2767
|
}
|
|
3205
|
-
export interface AuthenticationCodesAdapter {
|
|
3206
|
-
create: (tenant_id: string, authCode: AuthenticationCode) => Promise<void>;
|
|
3207
|
-
get: (tenant_id: string, code: string) => Promise<AuthenticationCode>;
|
|
3208
|
-
}
|
|
3209
2768
|
export interface ListHooksResponse extends Totals {
|
|
3210
2769
|
hooks: Hook[];
|
|
3211
2770
|
}
|
|
@@ -3233,7 +2792,6 @@ export interface LoginsAdapter {
|
|
|
3233
2792
|
}
|
|
3234
2793
|
export interface DataAdapters {
|
|
3235
2794
|
applications: ApplicationsAdapter;
|
|
3236
|
-
authenticationCodes: AuthenticationCodesAdapter;
|
|
3237
2795
|
branding: BrandingAdapter;
|
|
3238
2796
|
clients: ClientsAdapter;
|
|
3239
2797
|
codes: CodesAdapter;
|
|
@@ -3243,30 +2801,13 @@ export interface DataAdapters {
|
|
|
3243
2801
|
keys: KeysAdapter;
|
|
3244
2802
|
logins: LoginsAdapter;
|
|
3245
2803
|
logs: LogsDataAdapter;
|
|
3246
|
-
OTP: OTPAdapter;
|
|
3247
2804
|
passwords: PasswordsAdapter;
|
|
3248
2805
|
sessions: SessionsAdapter;
|
|
3249
2806
|
tenants: TenantsDataAdapter;
|
|
3250
2807
|
themes: ThemesAdapter;
|
|
3251
2808
|
tickets: TicketsAdapter;
|
|
3252
|
-
universalLoginSessions: UniversalLoginSessionsAdapter;
|
|
3253
2809
|
users: UserDataAdapter;
|
|
3254
2810
|
}
|
|
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
2811
|
export interface SqlUser extends BaseUser {
|
|
3271
2812
|
user_id: string;
|
|
3272
2813
|
email_verified: number;
|
|
@@ -3280,23 +2821,6 @@ export interface SqlUser extends BaseUser {
|
|
|
3280
2821
|
created_at: string;
|
|
3281
2822
|
updated_at: string;
|
|
3282
2823
|
}
|
|
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
2824
|
export interface SqlTicket {
|
|
3301
2825
|
id: string;
|
|
3302
2826
|
tenant_id: string;
|
|
@@ -3312,26 +2836,6 @@ export interface SqlTicket {
|
|
|
3312
2836
|
expires_at: string;
|
|
3313
2837
|
used_at?: string;
|
|
3314
2838
|
}
|
|
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
2839
|
export interface SqlLog {
|
|
3336
2840
|
id: string;
|
|
3337
2841
|
tenant_id: string;
|
|
@@ -3425,7 +2929,6 @@ declare const sqlApplicationSchema: z.ZodObject<{
|
|
|
3425
2929
|
}>;
|
|
3426
2930
|
export interface Database {
|
|
3427
2931
|
applications: z.infer<typeof sqlApplicationSchema>;
|
|
3428
|
-
authentication_codes: SqlAuthenticationCode;
|
|
3429
2932
|
branding: SqlBranding;
|
|
3430
2933
|
codes: Code & {
|
|
3431
2934
|
tenant_id: string;
|
|
@@ -3439,10 +2942,11 @@ export interface Database {
|
|
|
3439
2942
|
hooks: Hook & {
|
|
3440
2943
|
tenant_id: string;
|
|
3441
2944
|
};
|
|
3442
|
-
keys:
|
|
2945
|
+
keys: SigningKey & {
|
|
2946
|
+
created_at: string;
|
|
2947
|
+
};
|
|
3443
2948
|
logins: SqlLogin;
|
|
3444
2949
|
logs: SqlLog;
|
|
3445
|
-
otps: SqlOTP;
|
|
3446
2950
|
passwords: Password & {
|
|
3447
2951
|
tenant_id: string;
|
|
3448
2952
|
};
|
|
@@ -3453,7 +2957,6 @@ export interface Database {
|
|
|
3453
2957
|
tenants: Tenant;
|
|
3454
2958
|
themes: SqlTheme;
|
|
3455
2959
|
tickets: SqlTicket;
|
|
3456
|
-
universal_login_sessions: SqlUniversalLoginSession;
|
|
3457
2960
|
}
|
|
3458
2961
|
declare function createAdapters(db: Kysely<Database>): DataAdapters;
|
|
3459
2962
|
|