authhero 3.3.0 → 3.4.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/authhero.cjs +44 -44
- package/dist/authhero.d.ts +108 -1
- package/dist/authhero.mjs +5910 -5726
- package/dist/stats.html +1 -1
- package/package.json +4 -4
package/dist/authhero.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import { OpenAPIHono, z } from '@hono/zod-openapi';
|
|
4
|
-
import { Context, MiddlewareHandler, Next } from 'hono';
|
|
4
|
+
import { Context, Handler, MiddlewareHandler, Next } from 'hono';
|
|
5
5
|
import { FC, JSXNode, PropsWithChildren } from 'hono/jsx';
|
|
6
6
|
import { CountryCode } from 'libphonenumber-js';
|
|
7
7
|
|
|
@@ -12706,14 +12706,17 @@ declare const passwordField: z.ZodObject<{
|
|
|
12706
12706
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
12707
12707
|
min_length: z.ZodOptional<z.ZodNumber>;
|
|
12708
12708
|
show_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
12709
|
+
forgot_password_link: z.ZodOptional<z.ZodString>;
|
|
12709
12710
|
}, "strip", z.ZodTypeAny, {
|
|
12710
12711
|
placeholder?: string | undefined;
|
|
12711
12712
|
min_length?: number | undefined;
|
|
12712
12713
|
show_toggle?: boolean | undefined;
|
|
12714
|
+
forgot_password_link?: string | undefined;
|
|
12713
12715
|
}, {
|
|
12714
12716
|
placeholder?: string | undefined;
|
|
12715
12717
|
min_length?: number | undefined;
|
|
12716
12718
|
show_toggle?: boolean | undefined;
|
|
12719
|
+
forgot_password_link?: string | undefined;
|
|
12717
12720
|
}>>;
|
|
12718
12721
|
}, "strip", z.ZodTypeAny, {
|
|
12719
12722
|
type: "PASSWORD";
|
|
@@ -12725,6 +12728,7 @@ declare const passwordField: z.ZodObject<{
|
|
|
12725
12728
|
placeholder?: string | undefined;
|
|
12726
12729
|
min_length?: number | undefined;
|
|
12727
12730
|
show_toggle?: boolean | undefined;
|
|
12731
|
+
forgot_password_link?: string | undefined;
|
|
12728
12732
|
} | undefined;
|
|
12729
12733
|
sensitive?: boolean | undefined;
|
|
12730
12734
|
label?: string | undefined;
|
|
@@ -12739,6 +12743,7 @@ declare const passwordField: z.ZodObject<{
|
|
|
12739
12743
|
placeholder?: string | undefined;
|
|
12740
12744
|
min_length?: number | undefined;
|
|
12741
12745
|
show_toggle?: boolean | undefined;
|
|
12746
|
+
forgot_password_link?: string | undefined;
|
|
12742
12747
|
} | undefined;
|
|
12743
12748
|
sensitive?: boolean | undefined;
|
|
12744
12749
|
label?: string | undefined;
|
|
@@ -14056,14 +14061,17 @@ declare const fieldComponentSchema$1: z.ZodDiscriminatedUnion<"type", [
|
|
|
14056
14061
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
14057
14062
|
min_length: z.ZodOptional<z.ZodNumber>;
|
|
14058
14063
|
show_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
14064
|
+
forgot_password_link: z.ZodOptional<z.ZodString>;
|
|
14059
14065
|
}, "strip", z.ZodTypeAny, {
|
|
14060
14066
|
placeholder?: string | undefined;
|
|
14061
14067
|
min_length?: number | undefined;
|
|
14062
14068
|
show_toggle?: boolean | undefined;
|
|
14069
|
+
forgot_password_link?: string | undefined;
|
|
14063
14070
|
}, {
|
|
14064
14071
|
placeholder?: string | undefined;
|
|
14065
14072
|
min_length?: number | undefined;
|
|
14066
14073
|
show_toggle?: boolean | undefined;
|
|
14074
|
+
forgot_password_link?: string | undefined;
|
|
14067
14075
|
}>>;
|
|
14068
14076
|
}, "strip", z.ZodTypeAny, {
|
|
14069
14077
|
type: "PASSWORD";
|
|
@@ -14075,6 +14083,7 @@ declare const fieldComponentSchema$1: z.ZodDiscriminatedUnion<"type", [
|
|
|
14075
14083
|
placeholder?: string | undefined;
|
|
14076
14084
|
min_length?: number | undefined;
|
|
14077
14085
|
show_toggle?: boolean | undefined;
|
|
14086
|
+
forgot_password_link?: string | undefined;
|
|
14078
14087
|
} | undefined;
|
|
14079
14088
|
sensitive?: boolean | undefined;
|
|
14080
14089
|
label?: string | undefined;
|
|
@@ -14089,6 +14098,7 @@ declare const fieldComponentSchema$1: z.ZodDiscriminatedUnion<"type", [
|
|
|
14089
14098
|
placeholder?: string | undefined;
|
|
14090
14099
|
min_length?: number | undefined;
|
|
14091
14100
|
show_toggle?: boolean | undefined;
|
|
14101
|
+
forgot_password_link?: string | undefined;
|
|
14092
14102
|
} | undefined;
|
|
14093
14103
|
sensitive?: boolean | undefined;
|
|
14094
14104
|
label?: string | undefined;
|
|
@@ -15402,14 +15412,17 @@ export declare const formNodeComponentDefinition: z.ZodUnion<[
|
|
|
15402
15412
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
15403
15413
|
min_length: z.ZodOptional<z.ZodNumber>;
|
|
15404
15414
|
show_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
15415
|
+
forgot_password_link: z.ZodOptional<z.ZodString>;
|
|
15405
15416
|
}, "strip", z.ZodTypeAny, {
|
|
15406
15417
|
placeholder?: string | undefined;
|
|
15407
15418
|
min_length?: number | undefined;
|
|
15408
15419
|
show_toggle?: boolean | undefined;
|
|
15420
|
+
forgot_password_link?: string | undefined;
|
|
15409
15421
|
}, {
|
|
15410
15422
|
placeholder?: string | undefined;
|
|
15411
15423
|
min_length?: number | undefined;
|
|
15412
15424
|
show_toggle?: boolean | undefined;
|
|
15425
|
+
forgot_password_link?: string | undefined;
|
|
15413
15426
|
}>>;
|
|
15414
15427
|
}, "strip", z.ZodTypeAny, {
|
|
15415
15428
|
type: "PASSWORD";
|
|
@@ -15421,6 +15434,7 @@ export declare const formNodeComponentDefinition: z.ZodUnion<[
|
|
|
15421
15434
|
placeholder?: string | undefined;
|
|
15422
15435
|
min_length?: number | undefined;
|
|
15423
15436
|
show_toggle?: boolean | undefined;
|
|
15437
|
+
forgot_password_link?: string | undefined;
|
|
15424
15438
|
} | undefined;
|
|
15425
15439
|
sensitive?: boolean | undefined;
|
|
15426
15440
|
label?: string | undefined;
|
|
@@ -15435,6 +15449,7 @@ export declare const formNodeComponentDefinition: z.ZodUnion<[
|
|
|
15435
15449
|
placeholder?: string | undefined;
|
|
15436
15450
|
min_length?: number | undefined;
|
|
15437
15451
|
show_toggle?: boolean | undefined;
|
|
15452
|
+
forgot_password_link?: string | undefined;
|
|
15438
15453
|
} | undefined;
|
|
15439
15454
|
sensitive?: boolean | undefined;
|
|
15440
15455
|
label?: string | undefined;
|
|
@@ -16957,14 +16972,17 @@ declare const stepNodeSchema$1: z.ZodObject<{
|
|
|
16957
16972
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
16958
16973
|
min_length: z.ZodOptional<z.ZodNumber>;
|
|
16959
16974
|
show_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
16975
|
+
forgot_password_link: z.ZodOptional<z.ZodString>;
|
|
16960
16976
|
}, "strip", z.ZodTypeAny, {
|
|
16961
16977
|
placeholder?: string | undefined;
|
|
16962
16978
|
min_length?: number | undefined;
|
|
16963
16979
|
show_toggle?: boolean | undefined;
|
|
16980
|
+
forgot_password_link?: string | undefined;
|
|
16964
16981
|
}, {
|
|
16965
16982
|
placeholder?: string | undefined;
|
|
16966
16983
|
min_length?: number | undefined;
|
|
16967
16984
|
show_toggle?: boolean | undefined;
|
|
16985
|
+
forgot_password_link?: string | undefined;
|
|
16968
16986
|
}>>;
|
|
16969
16987
|
}, "strip", z.ZodTypeAny, {
|
|
16970
16988
|
type: "PASSWORD";
|
|
@@ -16976,6 +16994,7 @@ declare const stepNodeSchema$1: z.ZodObject<{
|
|
|
16976
16994
|
placeholder?: string | undefined;
|
|
16977
16995
|
min_length?: number | undefined;
|
|
16978
16996
|
show_toggle?: boolean | undefined;
|
|
16997
|
+
forgot_password_link?: string | undefined;
|
|
16979
16998
|
} | undefined;
|
|
16980
16999
|
sensitive?: boolean | undefined;
|
|
16981
17000
|
label?: string | undefined;
|
|
@@ -16990,6 +17009,7 @@ declare const stepNodeSchema$1: z.ZodObject<{
|
|
|
16990
17009
|
placeholder?: string | undefined;
|
|
16991
17010
|
min_length?: number | undefined;
|
|
16992
17011
|
show_toggle?: boolean | undefined;
|
|
17012
|
+
forgot_password_link?: string | undefined;
|
|
16993
17013
|
} | undefined;
|
|
16994
17014
|
sensitive?: boolean | undefined;
|
|
16995
17015
|
label?: string | undefined;
|
|
@@ -17529,6 +17549,7 @@ declare const stepNodeSchema$1: z.ZodObject<{
|
|
|
17529
17549
|
placeholder?: string | undefined;
|
|
17530
17550
|
min_length?: number | undefined;
|
|
17531
17551
|
show_toggle?: boolean | undefined;
|
|
17552
|
+
forgot_password_link?: string | undefined;
|
|
17532
17553
|
} | undefined;
|
|
17533
17554
|
sensitive?: boolean | undefined;
|
|
17534
17555
|
label?: string | undefined;
|
|
@@ -17883,6 +17904,7 @@ declare const stepNodeSchema$1: z.ZodObject<{
|
|
|
17883
17904
|
placeholder?: string | undefined;
|
|
17884
17905
|
min_length?: number | undefined;
|
|
17885
17906
|
show_toggle?: boolean | undefined;
|
|
17907
|
+
forgot_password_link?: string | undefined;
|
|
17886
17908
|
} | undefined;
|
|
17887
17909
|
sensitive?: boolean | undefined;
|
|
17888
17910
|
label?: string | undefined;
|
|
@@ -18243,6 +18265,7 @@ declare const stepNodeSchema$1: z.ZodObject<{
|
|
|
18243
18265
|
placeholder?: string | undefined;
|
|
18244
18266
|
min_length?: number | undefined;
|
|
18245
18267
|
show_toggle?: boolean | undefined;
|
|
18268
|
+
forgot_password_link?: string | undefined;
|
|
18246
18269
|
} | undefined;
|
|
18247
18270
|
sensitive?: boolean | undefined;
|
|
18248
18271
|
label?: string | undefined;
|
|
@@ -18606,6 +18629,7 @@ declare const stepNodeSchema$1: z.ZodObject<{
|
|
|
18606
18629
|
placeholder?: string | undefined;
|
|
18607
18630
|
min_length?: number | undefined;
|
|
18608
18631
|
show_toggle?: boolean | undefined;
|
|
18632
|
+
forgot_password_link?: string | undefined;
|
|
18609
18633
|
} | undefined;
|
|
18610
18634
|
sensitive?: boolean | undefined;
|
|
18611
18635
|
label?: string | undefined;
|
|
@@ -19891,14 +19915,17 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
19891
19915
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
19892
19916
|
min_length: z.ZodOptional<z.ZodNumber>;
|
|
19893
19917
|
show_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
19918
|
+
forgot_password_link: z.ZodOptional<z.ZodString>;
|
|
19894
19919
|
}, "strip", z.ZodTypeAny, {
|
|
19895
19920
|
placeholder?: string | undefined;
|
|
19896
19921
|
min_length?: number | undefined;
|
|
19897
19922
|
show_toggle?: boolean | undefined;
|
|
19923
|
+
forgot_password_link?: string | undefined;
|
|
19898
19924
|
}, {
|
|
19899
19925
|
placeholder?: string | undefined;
|
|
19900
19926
|
min_length?: number | undefined;
|
|
19901
19927
|
show_toggle?: boolean | undefined;
|
|
19928
|
+
forgot_password_link?: string | undefined;
|
|
19902
19929
|
}>>;
|
|
19903
19930
|
}, "strip", z.ZodTypeAny, {
|
|
19904
19931
|
type: "PASSWORD";
|
|
@@ -19910,6 +19937,7 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
19910
19937
|
placeholder?: string | undefined;
|
|
19911
19938
|
min_length?: number | undefined;
|
|
19912
19939
|
show_toggle?: boolean | undefined;
|
|
19940
|
+
forgot_password_link?: string | undefined;
|
|
19913
19941
|
} | undefined;
|
|
19914
19942
|
sensitive?: boolean | undefined;
|
|
19915
19943
|
label?: string | undefined;
|
|
@@ -19924,6 +19952,7 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
19924
19952
|
placeholder?: string | undefined;
|
|
19925
19953
|
min_length?: number | undefined;
|
|
19926
19954
|
show_toggle?: boolean | undefined;
|
|
19955
|
+
forgot_password_link?: string | undefined;
|
|
19927
19956
|
} | undefined;
|
|
19928
19957
|
sensitive?: boolean | undefined;
|
|
19929
19958
|
label?: string | undefined;
|
|
@@ -20463,6 +20492,7 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
20463
20492
|
placeholder?: string | undefined;
|
|
20464
20493
|
min_length?: number | undefined;
|
|
20465
20494
|
show_toggle?: boolean | undefined;
|
|
20495
|
+
forgot_password_link?: string | undefined;
|
|
20466
20496
|
} | undefined;
|
|
20467
20497
|
sensitive?: boolean | undefined;
|
|
20468
20498
|
label?: string | undefined;
|
|
@@ -20817,6 +20847,7 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
20817
20847
|
placeholder?: string | undefined;
|
|
20818
20848
|
min_length?: number | undefined;
|
|
20819
20849
|
show_toggle?: boolean | undefined;
|
|
20850
|
+
forgot_password_link?: string | undefined;
|
|
20820
20851
|
} | undefined;
|
|
20821
20852
|
sensitive?: boolean | undefined;
|
|
20822
20853
|
label?: string | undefined;
|
|
@@ -21177,6 +21208,7 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
21177
21208
|
placeholder?: string | undefined;
|
|
21178
21209
|
min_length?: number | undefined;
|
|
21179
21210
|
show_toggle?: boolean | undefined;
|
|
21211
|
+
forgot_password_link?: string | undefined;
|
|
21180
21212
|
} | undefined;
|
|
21181
21213
|
sensitive?: boolean | undefined;
|
|
21182
21214
|
label?: string | undefined;
|
|
@@ -21540,6 +21572,7 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
21540
21572
|
placeholder?: string | undefined;
|
|
21541
21573
|
min_length?: number | undefined;
|
|
21542
21574
|
show_toggle?: boolean | undefined;
|
|
21575
|
+
forgot_password_link?: string | undefined;
|
|
21543
21576
|
} | undefined;
|
|
21544
21577
|
sensitive?: boolean | undefined;
|
|
21545
21578
|
label?: string | undefined;
|
|
@@ -22856,14 +22889,17 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
22856
22889
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
22857
22890
|
min_length: z.ZodOptional<z.ZodNumber>;
|
|
22858
22891
|
show_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
22892
|
+
forgot_password_link: z.ZodOptional<z.ZodString>;
|
|
22859
22893
|
}, "strip", z.ZodTypeAny, {
|
|
22860
22894
|
placeholder?: string | undefined;
|
|
22861
22895
|
min_length?: number | undefined;
|
|
22862
22896
|
show_toggle?: boolean | undefined;
|
|
22897
|
+
forgot_password_link?: string | undefined;
|
|
22863
22898
|
}, {
|
|
22864
22899
|
placeholder?: string | undefined;
|
|
22865
22900
|
min_length?: number | undefined;
|
|
22866
22901
|
show_toggle?: boolean | undefined;
|
|
22902
|
+
forgot_password_link?: string | undefined;
|
|
22867
22903
|
}>>;
|
|
22868
22904
|
}, "strip", z.ZodTypeAny, {
|
|
22869
22905
|
type: "PASSWORD";
|
|
@@ -22875,6 +22911,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
22875
22911
|
placeholder?: string | undefined;
|
|
22876
22912
|
min_length?: number | undefined;
|
|
22877
22913
|
show_toggle?: boolean | undefined;
|
|
22914
|
+
forgot_password_link?: string | undefined;
|
|
22878
22915
|
} | undefined;
|
|
22879
22916
|
sensitive?: boolean | undefined;
|
|
22880
22917
|
label?: string | undefined;
|
|
@@ -22889,6 +22926,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
22889
22926
|
placeholder?: string | undefined;
|
|
22890
22927
|
min_length?: number | undefined;
|
|
22891
22928
|
show_toggle?: boolean | undefined;
|
|
22929
|
+
forgot_password_link?: string | undefined;
|
|
22892
22930
|
} | undefined;
|
|
22893
22931
|
sensitive?: boolean | undefined;
|
|
22894
22932
|
label?: string | undefined;
|
|
@@ -23428,6 +23466,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
23428
23466
|
placeholder?: string | undefined;
|
|
23429
23467
|
min_length?: number | undefined;
|
|
23430
23468
|
show_toggle?: boolean | undefined;
|
|
23469
|
+
forgot_password_link?: string | undefined;
|
|
23431
23470
|
} | undefined;
|
|
23432
23471
|
sensitive?: boolean | undefined;
|
|
23433
23472
|
label?: string | undefined;
|
|
@@ -23782,6 +23821,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
23782
23821
|
placeholder?: string | undefined;
|
|
23783
23822
|
min_length?: number | undefined;
|
|
23784
23823
|
show_toggle?: boolean | undefined;
|
|
23824
|
+
forgot_password_link?: string | undefined;
|
|
23785
23825
|
} | undefined;
|
|
23786
23826
|
sensitive?: boolean | undefined;
|
|
23787
23827
|
label?: string | undefined;
|
|
@@ -24142,6 +24182,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
24142
24182
|
placeholder?: string | undefined;
|
|
24143
24183
|
min_length?: number | undefined;
|
|
24144
24184
|
show_toggle?: boolean | undefined;
|
|
24185
|
+
forgot_password_link?: string | undefined;
|
|
24145
24186
|
} | undefined;
|
|
24146
24187
|
sensitive?: boolean | undefined;
|
|
24147
24188
|
label?: string | undefined;
|
|
@@ -24505,6 +24546,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
24505
24546
|
placeholder?: string | undefined;
|
|
24506
24547
|
min_length?: number | undefined;
|
|
24507
24548
|
show_toggle?: boolean | undefined;
|
|
24549
|
+
forgot_password_link?: string | undefined;
|
|
24508
24550
|
} | undefined;
|
|
24509
24551
|
sensitive?: boolean | undefined;
|
|
24510
24552
|
label?: string | undefined;
|
|
@@ -25027,6 +25069,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
25027
25069
|
placeholder?: string | undefined;
|
|
25028
25070
|
min_length?: number | undefined;
|
|
25029
25071
|
show_toggle?: boolean | undefined;
|
|
25072
|
+
forgot_password_link?: string | undefined;
|
|
25030
25073
|
} | undefined;
|
|
25031
25074
|
sensitive?: boolean | undefined;
|
|
25032
25075
|
label?: string | undefined;
|
|
@@ -25459,6 +25502,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
25459
25502
|
placeholder?: string | undefined;
|
|
25460
25503
|
min_length?: number | undefined;
|
|
25461
25504
|
show_toggle?: boolean | undefined;
|
|
25505
|
+
forgot_password_link?: string | undefined;
|
|
25462
25506
|
} | undefined;
|
|
25463
25507
|
sensitive?: boolean | undefined;
|
|
25464
25508
|
label?: string | undefined;
|
|
@@ -26792,14 +26836,17 @@ export declare const formSchema: z.ZodObject<{
|
|
|
26792
26836
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
26793
26837
|
min_length: z.ZodOptional<z.ZodNumber>;
|
|
26794
26838
|
show_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
26839
|
+
forgot_password_link: z.ZodOptional<z.ZodString>;
|
|
26795
26840
|
}, "strip", z.ZodTypeAny, {
|
|
26796
26841
|
placeholder?: string | undefined;
|
|
26797
26842
|
min_length?: number | undefined;
|
|
26798
26843
|
show_toggle?: boolean | undefined;
|
|
26844
|
+
forgot_password_link?: string | undefined;
|
|
26799
26845
|
}, {
|
|
26800
26846
|
placeholder?: string | undefined;
|
|
26801
26847
|
min_length?: number | undefined;
|
|
26802
26848
|
show_toggle?: boolean | undefined;
|
|
26849
|
+
forgot_password_link?: string | undefined;
|
|
26803
26850
|
}>>;
|
|
26804
26851
|
}, "strip", z.ZodTypeAny, {
|
|
26805
26852
|
type: "PASSWORD";
|
|
@@ -26811,6 +26858,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
26811
26858
|
placeholder?: string | undefined;
|
|
26812
26859
|
min_length?: number | undefined;
|
|
26813
26860
|
show_toggle?: boolean | undefined;
|
|
26861
|
+
forgot_password_link?: string | undefined;
|
|
26814
26862
|
} | undefined;
|
|
26815
26863
|
sensitive?: boolean | undefined;
|
|
26816
26864
|
label?: string | undefined;
|
|
@@ -26825,6 +26873,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
26825
26873
|
placeholder?: string | undefined;
|
|
26826
26874
|
min_length?: number | undefined;
|
|
26827
26875
|
show_toggle?: boolean | undefined;
|
|
26876
|
+
forgot_password_link?: string | undefined;
|
|
26828
26877
|
} | undefined;
|
|
26829
26878
|
sensitive?: boolean | undefined;
|
|
26830
26879
|
label?: string | undefined;
|
|
@@ -27364,6 +27413,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
27364
27413
|
placeholder?: string | undefined;
|
|
27365
27414
|
min_length?: number | undefined;
|
|
27366
27415
|
show_toggle?: boolean | undefined;
|
|
27416
|
+
forgot_password_link?: string | undefined;
|
|
27367
27417
|
} | undefined;
|
|
27368
27418
|
sensitive?: boolean | undefined;
|
|
27369
27419
|
label?: string | undefined;
|
|
@@ -27718,6 +27768,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
27718
27768
|
placeholder?: string | undefined;
|
|
27719
27769
|
min_length?: number | undefined;
|
|
27720
27770
|
show_toggle?: boolean | undefined;
|
|
27771
|
+
forgot_password_link?: string | undefined;
|
|
27721
27772
|
} | undefined;
|
|
27722
27773
|
sensitive?: boolean | undefined;
|
|
27723
27774
|
label?: string | undefined;
|
|
@@ -28078,6 +28129,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
28078
28129
|
placeholder?: string | undefined;
|
|
28079
28130
|
min_length?: number | undefined;
|
|
28080
28131
|
show_toggle?: boolean | undefined;
|
|
28132
|
+
forgot_password_link?: string | undefined;
|
|
28081
28133
|
} | undefined;
|
|
28082
28134
|
sensitive?: boolean | undefined;
|
|
28083
28135
|
label?: string | undefined;
|
|
@@ -28441,6 +28493,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
28441
28493
|
placeholder?: string | undefined;
|
|
28442
28494
|
min_length?: number | undefined;
|
|
28443
28495
|
show_toggle?: boolean | undefined;
|
|
28496
|
+
forgot_password_link?: string | undefined;
|
|
28444
28497
|
} | undefined;
|
|
28445
28498
|
sensitive?: boolean | undefined;
|
|
28446
28499
|
label?: string | undefined;
|
|
@@ -28968,6 +29021,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
28968
29021
|
placeholder?: string | undefined;
|
|
28969
29022
|
min_length?: number | undefined;
|
|
28970
29023
|
show_toggle?: boolean | undefined;
|
|
29024
|
+
forgot_password_link?: string | undefined;
|
|
28971
29025
|
} | undefined;
|
|
28972
29026
|
sensitive?: boolean | undefined;
|
|
28973
29027
|
label?: string | undefined;
|
|
@@ -29403,6 +29457,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
29403
29457
|
placeholder?: string | undefined;
|
|
29404
29458
|
min_length?: number | undefined;
|
|
29405
29459
|
show_toggle?: boolean | undefined;
|
|
29460
|
+
forgot_password_link?: string | undefined;
|
|
29406
29461
|
} | undefined;
|
|
29407
29462
|
sensitive?: boolean | undefined;
|
|
29408
29463
|
label?: string | undefined;
|
|
@@ -30621,14 +30676,17 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
30621
30676
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
30622
30677
|
min_length: z.ZodOptional<z.ZodNumber>;
|
|
30623
30678
|
show_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
30679
|
+
forgot_password_link: z.ZodOptional<z.ZodString>;
|
|
30624
30680
|
}, "strip", z.ZodTypeAny, {
|
|
30625
30681
|
placeholder?: string | undefined;
|
|
30626
30682
|
min_length?: number | undefined;
|
|
30627
30683
|
show_toggle?: boolean | undefined;
|
|
30684
|
+
forgot_password_link?: string | undefined;
|
|
30628
30685
|
}, {
|
|
30629
30686
|
placeholder?: string | undefined;
|
|
30630
30687
|
min_length?: number | undefined;
|
|
30631
30688
|
show_toggle?: boolean | undefined;
|
|
30689
|
+
forgot_password_link?: string | undefined;
|
|
30632
30690
|
}>>;
|
|
30633
30691
|
}, "strip", z.ZodTypeAny, {
|
|
30634
30692
|
type: "PASSWORD";
|
|
@@ -30640,6 +30698,7 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
30640
30698
|
placeholder?: string | undefined;
|
|
30641
30699
|
min_length?: number | undefined;
|
|
30642
30700
|
show_toggle?: boolean | undefined;
|
|
30701
|
+
forgot_password_link?: string | undefined;
|
|
30643
30702
|
} | undefined;
|
|
30644
30703
|
sensitive?: boolean | undefined;
|
|
30645
30704
|
label?: string | undefined;
|
|
@@ -30654,6 +30713,7 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
30654
30713
|
placeholder?: string | undefined;
|
|
30655
30714
|
min_length?: number | undefined;
|
|
30656
30715
|
show_toggle?: boolean | undefined;
|
|
30716
|
+
forgot_password_link?: string | undefined;
|
|
30657
30717
|
} | undefined;
|
|
30658
30718
|
sensitive?: boolean | undefined;
|
|
30659
30719
|
label?: string | undefined;
|
|
@@ -31227,6 +31287,7 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
31227
31287
|
placeholder?: string | undefined;
|
|
31228
31288
|
min_length?: number | undefined;
|
|
31229
31289
|
show_toggle?: boolean | undefined;
|
|
31290
|
+
forgot_password_link?: string | undefined;
|
|
31230
31291
|
} | undefined;
|
|
31231
31292
|
sensitive?: boolean | undefined;
|
|
31232
31293
|
label?: string | undefined;
|
|
@@ -31595,6 +31656,7 @@ export declare const uiScreenSchema: z.ZodObject<{
|
|
|
31595
31656
|
placeholder?: string | undefined;
|
|
31596
31657
|
min_length?: number | undefined;
|
|
31597
31658
|
show_toggle?: boolean | undefined;
|
|
31659
|
+
forgot_password_link?: string | undefined;
|
|
31598
31660
|
} | undefined;
|
|
31599
31661
|
sensitive?: boolean | undefined;
|
|
31600
31662
|
label?: string | undefined;
|
|
@@ -37788,6 +37850,44 @@ export interface AuthHeroConfig {
|
|
|
37788
37850
|
* Use these to implement cross-tenant sync, audit logging, webhooks, etc.
|
|
37789
37851
|
*/
|
|
37790
37852
|
entityHooks?: EntityHooksConfig;
|
|
37853
|
+
/**
|
|
37854
|
+
* Handler for serving widget static files at /u/widget/*.
|
|
37855
|
+
*
|
|
37856
|
+
* The widget files are served from @authhero/widget package.
|
|
37857
|
+
* This must be a platform-specific static file handler.
|
|
37858
|
+
*
|
|
37859
|
+
* @example Node.js with @hono/node-server:
|
|
37860
|
+
* ```typescript
|
|
37861
|
+
* import { serveStatic } from "@hono/node-server/serve-static";
|
|
37862
|
+
* import path from "path";
|
|
37863
|
+
* import { fileURLToPath } from "url";
|
|
37864
|
+
*
|
|
37865
|
+
* const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
37866
|
+
* const widgetPath = path.resolve(__dirname, "../node_modules/@authhero/widget/dist/authhero-widget");
|
|
37867
|
+
*
|
|
37868
|
+
* const { app } = init({
|
|
37869
|
+
* dataAdapter,
|
|
37870
|
+
* widgetHandler: serveStatic({
|
|
37871
|
+
* root: widgetPath,
|
|
37872
|
+
* rewriteRequestPath: (p) => p.replace("/u/widget", ""),
|
|
37873
|
+
* }),
|
|
37874
|
+
* });
|
|
37875
|
+
* ```
|
|
37876
|
+
*
|
|
37877
|
+
* @example Bun:
|
|
37878
|
+
* ```typescript
|
|
37879
|
+
* import { serveStatic } from "hono/bun";
|
|
37880
|
+
*
|
|
37881
|
+
* const { app } = init({
|
|
37882
|
+
* dataAdapter,
|
|
37883
|
+
* widgetHandler: serveStatic({
|
|
37884
|
+
* root: "./node_modules/@authhero/widget/dist/authhero-widget",
|
|
37885
|
+
* rewriteRequestPath: (p) => p.replace("/u/widget", ""),
|
|
37886
|
+
* }),
|
|
37887
|
+
* });
|
|
37888
|
+
* ```
|
|
37889
|
+
*/
|
|
37890
|
+
widgetHandler?: Handler<any>;
|
|
37791
37891
|
/**
|
|
37792
37892
|
* Additional routes to mount on the management API.
|
|
37793
37893
|
*
|
|
@@ -40525,6 +40625,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
40525
40625
|
placeholder?: string | undefined | undefined;
|
|
40526
40626
|
min_length?: number | undefined | undefined;
|
|
40527
40627
|
show_toggle?: boolean | undefined | undefined;
|
|
40628
|
+
forgot_password_link?: string | undefined | undefined;
|
|
40528
40629
|
} | undefined;
|
|
40529
40630
|
sensitive?: boolean | undefined | undefined;
|
|
40530
40631
|
label?: string | undefined | undefined;
|
|
@@ -40973,6 +41074,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
40973
41074
|
placeholder?: string | undefined | undefined;
|
|
40974
41075
|
min_length?: number | undefined | undefined;
|
|
40975
41076
|
show_toggle?: boolean | undefined | undefined;
|
|
41077
|
+
forgot_password_link?: string | undefined | undefined;
|
|
40976
41078
|
} | undefined;
|
|
40977
41079
|
sensitive?: boolean | undefined | undefined;
|
|
40978
41080
|
label?: string | undefined | undefined;
|
|
@@ -41436,6 +41538,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
41436
41538
|
placeholder?: string | undefined | undefined;
|
|
41437
41539
|
min_length?: number | undefined | undefined;
|
|
41438
41540
|
show_toggle?: boolean | undefined | undefined;
|
|
41541
|
+
forgot_password_link?: string | undefined | undefined;
|
|
41439
41542
|
} | undefined;
|
|
41440
41543
|
sensitive?: boolean | undefined | undefined;
|
|
41441
41544
|
label?: string | undefined | undefined;
|
|
@@ -41904,6 +42007,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
41904
42007
|
placeholder?: string | undefined;
|
|
41905
42008
|
min_length?: number | undefined;
|
|
41906
42009
|
show_toggle?: boolean | undefined;
|
|
42010
|
+
forgot_password_link?: string | undefined;
|
|
41907
42011
|
} | undefined;
|
|
41908
42012
|
sensitive?: boolean | undefined;
|
|
41909
42013
|
label?: string | undefined;
|
|
@@ -42349,6 +42453,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
42349
42453
|
placeholder?: string | undefined | undefined;
|
|
42350
42454
|
min_length?: number | undefined | undefined;
|
|
42351
42455
|
show_toggle?: boolean | undefined | undefined;
|
|
42456
|
+
forgot_password_link?: string | undefined | undefined;
|
|
42352
42457
|
} | undefined;
|
|
42353
42458
|
sensitive?: boolean | undefined | undefined;
|
|
42354
42459
|
label?: string | undefined | undefined;
|
|
@@ -42796,6 +42901,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
42796
42901
|
placeholder?: string | undefined;
|
|
42797
42902
|
min_length?: number | undefined;
|
|
42798
42903
|
show_toggle?: boolean | undefined;
|
|
42904
|
+
forgot_password_link?: string | undefined;
|
|
42799
42905
|
} | undefined;
|
|
42800
42906
|
sensitive?: boolean | undefined;
|
|
42801
42907
|
label?: string | undefined;
|
|
@@ -43241,6 +43347,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
43241
43347
|
placeholder?: string | undefined | undefined;
|
|
43242
43348
|
min_length?: number | undefined | undefined;
|
|
43243
43349
|
show_toggle?: boolean | undefined | undefined;
|
|
43350
|
+
forgot_password_link?: string | undefined | undefined;
|
|
43244
43351
|
} | undefined;
|
|
43245
43352
|
sensitive?: boolean | undefined | undefined;
|
|
43246
43353
|
label?: string | undefined | undefined;
|