authhero 4.42.0 → 4.43.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.
@@ -10541,6 +10541,12 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10541
10541
  }, {
10542
10542
  allowed?: boolean | undefined;
10543
10543
  }>>;
10544
+ unique: z.ZodOptional<z.ZodBoolean>;
10545
+ profile_required: z.ZodOptional<z.ZodBoolean>;
10546
+ verification_method: z.ZodOptional<z.ZodEnum<[
10547
+ "link",
10548
+ "code"
10549
+ ]>>;
10544
10550
  }, "strip", z.ZodTypeAny, {
10545
10551
  validation?: {
10546
10552
  allowed?: boolean | undefined;
@@ -10554,6 +10560,9 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10554
10560
  active?: boolean | undefined;
10555
10561
  } | undefined;
10556
10562
  } | undefined;
10563
+ unique?: boolean | undefined;
10564
+ profile_required?: boolean | undefined;
10565
+ verification_method?: "code" | "link" | undefined;
10557
10566
  }, {
10558
10567
  validation?: {
10559
10568
  allowed?: boolean | undefined;
@@ -10567,6 +10576,9 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10567
10576
  active?: boolean | undefined;
10568
10577
  } | undefined;
10569
10578
  } | undefined;
10579
+ unique?: boolean | undefined;
10580
+ profile_required?: boolean | undefined;
10581
+ verification_method?: "code" | "link" | undefined;
10570
10582
  }>>;
10571
10583
  username: z.ZodOptional<z.ZodObject<{
10572
10584
  identifier: z.ZodOptional<z.ZodObject<{
@@ -10615,6 +10627,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10615
10627
  phone_number?: boolean | undefined;
10616
10628
  } | undefined;
10617
10629
  }>>;
10630
+ profile_required: z.ZodOptional<z.ZodBoolean>;
10618
10631
  }, "strip", z.ZodTypeAny, {
10619
10632
  validation?: {
10620
10633
  min_length?: number | undefined;
@@ -10630,6 +10643,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10630
10643
  signup?: {
10631
10644
  status?: "required" | "optional" | "disabled" | undefined;
10632
10645
  } | undefined;
10646
+ profile_required?: boolean | undefined;
10633
10647
  }, {
10634
10648
  validation?: {
10635
10649
  min_length?: number | undefined;
@@ -10645,6 +10659,41 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10645
10659
  signup?: {
10646
10660
  status?: "required" | "optional" | "disabled" | undefined;
10647
10661
  } | undefined;
10662
+ profile_required?: boolean | undefined;
10663
+ }>>;
10664
+ phone_number: z.ZodOptional<z.ZodObject<{
10665
+ identifier: z.ZodOptional<z.ZodObject<{
10666
+ active: z.ZodOptional<z.ZodBoolean>;
10667
+ }, "strip", z.ZodTypeAny, {
10668
+ active?: boolean | undefined;
10669
+ }, {
10670
+ active?: boolean | undefined;
10671
+ }>>;
10672
+ signup: z.ZodOptional<z.ZodObject<{
10673
+ status: z.ZodOptional<z.ZodEnum<[
10674
+ "required",
10675
+ "optional",
10676
+ "disabled"
10677
+ ]>>;
10678
+ }, "strip", z.ZodTypeAny, {
10679
+ status?: "required" | "optional" | "disabled" | undefined;
10680
+ }, {
10681
+ status?: "required" | "optional" | "disabled" | undefined;
10682
+ }>>;
10683
+ }, "strip", z.ZodTypeAny, {
10684
+ identifier?: {
10685
+ active?: boolean | undefined;
10686
+ } | undefined;
10687
+ signup?: {
10688
+ status?: "required" | "optional" | "disabled" | undefined;
10689
+ } | undefined;
10690
+ }, {
10691
+ identifier?: {
10692
+ active?: boolean | undefined;
10693
+ } | undefined;
10694
+ signup?: {
10695
+ status?: "required" | "optional" | "disabled" | undefined;
10696
+ } | undefined;
10648
10697
  }>>;
10649
10698
  }, "strip", z.ZodTypeAny, {
10650
10699
  email?: {
@@ -10660,6 +10709,9 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10660
10709
  active?: boolean | undefined;
10661
10710
  } | undefined;
10662
10711
  } | undefined;
10712
+ unique?: boolean | undefined;
10713
+ profile_required?: boolean | undefined;
10714
+ verification_method?: "code" | "link" | undefined;
10663
10715
  } | undefined;
10664
10716
  username?: {
10665
10717
  validation?: {
@@ -10676,6 +10728,15 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10676
10728
  signup?: {
10677
10729
  status?: "required" | "optional" | "disabled" | undefined;
10678
10730
  } | undefined;
10731
+ profile_required?: boolean | undefined;
10732
+ } | undefined;
10733
+ phone_number?: {
10734
+ identifier?: {
10735
+ active?: boolean | undefined;
10736
+ } | undefined;
10737
+ signup?: {
10738
+ status?: "required" | "optional" | "disabled" | undefined;
10739
+ } | undefined;
10679
10740
  } | undefined;
10680
10741
  }, {
10681
10742
  email?: {
@@ -10691,6 +10752,9 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10691
10752
  active?: boolean | undefined;
10692
10753
  } | undefined;
10693
10754
  } | undefined;
10755
+ unique?: boolean | undefined;
10756
+ profile_required?: boolean | undefined;
10757
+ verification_method?: "code" | "link" | undefined;
10694
10758
  } | undefined;
10695
10759
  username?: {
10696
10760
  validation?: {
@@ -10707,8 +10771,64 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10707
10771
  signup?: {
10708
10772
  status?: "required" | "optional" | "disabled" | undefined;
10709
10773
  } | undefined;
10774
+ profile_required?: boolean | undefined;
10775
+ } | undefined;
10776
+ phone_number?: {
10777
+ identifier?: {
10778
+ active?: boolean | undefined;
10779
+ } | undefined;
10780
+ signup?: {
10781
+ status?: "required" | "optional" | "disabled" | undefined;
10782
+ } | undefined;
10710
10783
  } | undefined;
10711
10784
  }>>;
10785
+ authentication_methods: z.ZodOptional<z.ZodObject<{
10786
+ password: z.ZodOptional<z.ZodObject<{
10787
+ enabled: z.ZodOptional<z.ZodBoolean>;
10788
+ }, "strip", z.ZodTypeAny, {
10789
+ enabled?: boolean | undefined;
10790
+ }, {
10791
+ enabled?: boolean | undefined;
10792
+ }>>;
10793
+ passkey: z.ZodOptional<z.ZodObject<{
10794
+ enabled: z.ZodOptional<z.ZodBoolean>;
10795
+ }, "strip", z.ZodTypeAny, {
10796
+ enabled?: boolean | undefined;
10797
+ }, {
10798
+ enabled?: boolean | undefined;
10799
+ }>>;
10800
+ }, "strip", z.ZodTypeAny, {
10801
+ password?: {
10802
+ enabled?: boolean | undefined;
10803
+ } | undefined;
10804
+ passkey?: {
10805
+ enabled?: boolean | undefined;
10806
+ } | undefined;
10807
+ }, {
10808
+ password?: {
10809
+ enabled?: boolean | undefined;
10810
+ } | undefined;
10811
+ passkey?: {
10812
+ enabled?: boolean | undefined;
10813
+ } | undefined;
10814
+ }>>;
10815
+ passkey_options: z.ZodOptional<z.ZodObject<{
10816
+ challenge_ui: z.ZodOptional<z.ZodEnum<[
10817
+ "both",
10818
+ "autofill",
10819
+ "button"
10820
+ ]>>;
10821
+ local_enrollment_enabled: z.ZodOptional<z.ZodBoolean>;
10822
+ progressive_enrollment_enabled: z.ZodOptional<z.ZodBoolean>;
10823
+ }, "strip", z.ZodTypeAny, {
10824
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
10825
+ local_enrollment_enabled?: boolean | undefined;
10826
+ progressive_enrollment_enabled?: boolean | undefined;
10827
+ }, {
10828
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
10829
+ local_enrollment_enabled?: boolean | undefined;
10830
+ progressive_enrollment_enabled?: boolean | undefined;
10831
+ }>>;
10712
10832
  requires_username: z.ZodOptional<z.ZodBoolean>;
10713
10833
  validation: z.ZodOptional<z.ZodObject<{
10714
10834
  username: z.ZodOptional<z.ZodObject<{
@@ -10790,6 +10910,9 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10790
10910
  active?: boolean | undefined;
10791
10911
  } | undefined;
10792
10912
  } | undefined;
10913
+ unique?: boolean | undefined;
10914
+ profile_required?: boolean | undefined;
10915
+ verification_method?: "code" | "link" | undefined;
10793
10916
  } | undefined;
10794
10917
  username?: {
10795
10918
  validation?: {
@@ -10806,8 +10929,30 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10806
10929
  signup?: {
10807
10930
  status?: "required" | "optional" | "disabled" | undefined;
10808
10931
  } | undefined;
10932
+ profile_required?: boolean | undefined;
10933
+ } | undefined;
10934
+ phone_number?: {
10935
+ identifier?: {
10936
+ active?: boolean | undefined;
10937
+ } | undefined;
10938
+ signup?: {
10939
+ status?: "required" | "optional" | "disabled" | undefined;
10940
+ } | undefined;
10809
10941
  } | undefined;
10810
10942
  } | undefined;
10943
+ authentication_methods?: {
10944
+ password?: {
10945
+ enabled?: boolean | undefined;
10946
+ } | undefined;
10947
+ passkey?: {
10948
+ enabled?: boolean | undefined;
10949
+ } | undefined;
10950
+ } | undefined;
10951
+ passkey_options?: {
10952
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
10953
+ local_enrollment_enabled?: boolean | undefined;
10954
+ progressive_enrollment_enabled?: boolean | undefined;
10955
+ } | undefined;
10811
10956
  requires_username?: boolean | undefined;
10812
10957
  }, {
10813
10958
  validation?: {
@@ -10867,6 +11012,9 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10867
11012
  active?: boolean | undefined;
10868
11013
  } | undefined;
10869
11014
  } | undefined;
11015
+ unique?: boolean | undefined;
11016
+ profile_required?: boolean | undefined;
11017
+ verification_method?: "code" | "link" | undefined;
10870
11018
  } | undefined;
10871
11019
  username?: {
10872
11020
  validation?: {
@@ -10883,8 +11031,30 @@ export declare const connectionOptionsSchema: z.ZodObject<{
10883
11031
  signup?: {
10884
11032
  status?: "required" | "optional" | "disabled" | undefined;
10885
11033
  } | undefined;
11034
+ profile_required?: boolean | undefined;
11035
+ } | undefined;
11036
+ phone_number?: {
11037
+ identifier?: {
11038
+ active?: boolean | undefined;
11039
+ } | undefined;
11040
+ signup?: {
11041
+ status?: "required" | "optional" | "disabled" | undefined;
11042
+ } | undefined;
10886
11043
  } | undefined;
10887
11044
  } | undefined;
11045
+ authentication_methods?: {
11046
+ password?: {
11047
+ enabled?: boolean | undefined;
11048
+ } | undefined;
11049
+ passkey?: {
11050
+ enabled?: boolean | undefined;
11051
+ } | undefined;
11052
+ } | undefined;
11053
+ passkey_options?: {
11054
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
11055
+ local_enrollment_enabled?: boolean | undefined;
11056
+ progressive_enrollment_enabled?: boolean | undefined;
11057
+ } | undefined;
10888
11058
  requires_username?: boolean | undefined;
10889
11059
  }>;
10890
11060
  export declare const connectionInsertSchema: z.ZodObject<{
@@ -10996,6 +11166,12 @@ export declare const connectionInsertSchema: z.ZodObject<{
10996
11166
  }, {
10997
11167
  allowed?: boolean | undefined;
10998
11168
  }>>;
11169
+ unique: z.ZodOptional<z.ZodBoolean>;
11170
+ profile_required: z.ZodOptional<z.ZodBoolean>;
11171
+ verification_method: z.ZodOptional<z.ZodEnum<[
11172
+ "link",
11173
+ "code"
11174
+ ]>>;
10999
11175
  }, "strip", z.ZodTypeAny, {
11000
11176
  validation?: {
11001
11177
  allowed?: boolean | undefined;
@@ -11009,6 +11185,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
11009
11185
  active?: boolean | undefined;
11010
11186
  } | undefined;
11011
11187
  } | undefined;
11188
+ unique?: boolean | undefined;
11189
+ profile_required?: boolean | undefined;
11190
+ verification_method?: "code" | "link" | undefined;
11012
11191
  }, {
11013
11192
  validation?: {
11014
11193
  allowed?: boolean | undefined;
@@ -11022,6 +11201,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
11022
11201
  active?: boolean | undefined;
11023
11202
  } | undefined;
11024
11203
  } | undefined;
11204
+ unique?: boolean | undefined;
11205
+ profile_required?: boolean | undefined;
11206
+ verification_method?: "code" | "link" | undefined;
11025
11207
  }>>;
11026
11208
  username: z.ZodOptional<z.ZodObject<{
11027
11209
  identifier: z.ZodOptional<z.ZodObject<{
@@ -11070,6 +11252,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
11070
11252
  phone_number?: boolean | undefined;
11071
11253
  } | undefined;
11072
11254
  }>>;
11255
+ profile_required: z.ZodOptional<z.ZodBoolean>;
11073
11256
  }, "strip", z.ZodTypeAny, {
11074
11257
  validation?: {
11075
11258
  min_length?: number | undefined;
@@ -11085,6 +11268,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
11085
11268
  signup?: {
11086
11269
  status?: "required" | "optional" | "disabled" | undefined;
11087
11270
  } | undefined;
11271
+ profile_required?: boolean | undefined;
11088
11272
  }, {
11089
11273
  validation?: {
11090
11274
  min_length?: number | undefined;
@@ -11100,6 +11284,41 @@ export declare const connectionInsertSchema: z.ZodObject<{
11100
11284
  signup?: {
11101
11285
  status?: "required" | "optional" | "disabled" | undefined;
11102
11286
  } | undefined;
11287
+ profile_required?: boolean | undefined;
11288
+ }>>;
11289
+ phone_number: z.ZodOptional<z.ZodObject<{
11290
+ identifier: z.ZodOptional<z.ZodObject<{
11291
+ active: z.ZodOptional<z.ZodBoolean>;
11292
+ }, "strip", z.ZodTypeAny, {
11293
+ active?: boolean | undefined;
11294
+ }, {
11295
+ active?: boolean | undefined;
11296
+ }>>;
11297
+ signup: z.ZodOptional<z.ZodObject<{
11298
+ status: z.ZodOptional<z.ZodEnum<[
11299
+ "required",
11300
+ "optional",
11301
+ "disabled"
11302
+ ]>>;
11303
+ }, "strip", z.ZodTypeAny, {
11304
+ status?: "required" | "optional" | "disabled" | undefined;
11305
+ }, {
11306
+ status?: "required" | "optional" | "disabled" | undefined;
11307
+ }>>;
11308
+ }, "strip", z.ZodTypeAny, {
11309
+ identifier?: {
11310
+ active?: boolean | undefined;
11311
+ } | undefined;
11312
+ signup?: {
11313
+ status?: "required" | "optional" | "disabled" | undefined;
11314
+ } | undefined;
11315
+ }, {
11316
+ identifier?: {
11317
+ active?: boolean | undefined;
11318
+ } | undefined;
11319
+ signup?: {
11320
+ status?: "required" | "optional" | "disabled" | undefined;
11321
+ } | undefined;
11103
11322
  }>>;
11104
11323
  }, "strip", z.ZodTypeAny, {
11105
11324
  email?: {
@@ -11115,6 +11334,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
11115
11334
  active?: boolean | undefined;
11116
11335
  } | undefined;
11117
11336
  } | undefined;
11337
+ unique?: boolean | undefined;
11338
+ profile_required?: boolean | undefined;
11339
+ verification_method?: "code" | "link" | undefined;
11118
11340
  } | undefined;
11119
11341
  username?: {
11120
11342
  validation?: {
@@ -11131,6 +11353,15 @@ export declare const connectionInsertSchema: z.ZodObject<{
11131
11353
  signup?: {
11132
11354
  status?: "required" | "optional" | "disabled" | undefined;
11133
11355
  } | undefined;
11356
+ profile_required?: boolean | undefined;
11357
+ } | undefined;
11358
+ phone_number?: {
11359
+ identifier?: {
11360
+ active?: boolean | undefined;
11361
+ } | undefined;
11362
+ signup?: {
11363
+ status?: "required" | "optional" | "disabled" | undefined;
11364
+ } | undefined;
11134
11365
  } | undefined;
11135
11366
  }, {
11136
11367
  email?: {
@@ -11146,6 +11377,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
11146
11377
  active?: boolean | undefined;
11147
11378
  } | undefined;
11148
11379
  } | undefined;
11380
+ unique?: boolean | undefined;
11381
+ profile_required?: boolean | undefined;
11382
+ verification_method?: "code" | "link" | undefined;
11149
11383
  } | undefined;
11150
11384
  username?: {
11151
11385
  validation?: {
@@ -11162,7 +11396,63 @@ export declare const connectionInsertSchema: z.ZodObject<{
11162
11396
  signup?: {
11163
11397
  status?: "required" | "optional" | "disabled" | undefined;
11164
11398
  } | undefined;
11399
+ profile_required?: boolean | undefined;
11165
11400
  } | undefined;
11401
+ phone_number?: {
11402
+ identifier?: {
11403
+ active?: boolean | undefined;
11404
+ } | undefined;
11405
+ signup?: {
11406
+ status?: "required" | "optional" | "disabled" | undefined;
11407
+ } | undefined;
11408
+ } | undefined;
11409
+ }>>;
11410
+ authentication_methods: z.ZodOptional<z.ZodObject<{
11411
+ password: z.ZodOptional<z.ZodObject<{
11412
+ enabled: z.ZodOptional<z.ZodBoolean>;
11413
+ }, "strip", z.ZodTypeAny, {
11414
+ enabled?: boolean | undefined;
11415
+ }, {
11416
+ enabled?: boolean | undefined;
11417
+ }>>;
11418
+ passkey: z.ZodOptional<z.ZodObject<{
11419
+ enabled: z.ZodOptional<z.ZodBoolean>;
11420
+ }, "strip", z.ZodTypeAny, {
11421
+ enabled?: boolean | undefined;
11422
+ }, {
11423
+ enabled?: boolean | undefined;
11424
+ }>>;
11425
+ }, "strip", z.ZodTypeAny, {
11426
+ password?: {
11427
+ enabled?: boolean | undefined;
11428
+ } | undefined;
11429
+ passkey?: {
11430
+ enabled?: boolean | undefined;
11431
+ } | undefined;
11432
+ }, {
11433
+ password?: {
11434
+ enabled?: boolean | undefined;
11435
+ } | undefined;
11436
+ passkey?: {
11437
+ enabled?: boolean | undefined;
11438
+ } | undefined;
11439
+ }>>;
11440
+ passkey_options: z.ZodOptional<z.ZodObject<{
11441
+ challenge_ui: z.ZodOptional<z.ZodEnum<[
11442
+ "both",
11443
+ "autofill",
11444
+ "button"
11445
+ ]>>;
11446
+ local_enrollment_enabled: z.ZodOptional<z.ZodBoolean>;
11447
+ progressive_enrollment_enabled: z.ZodOptional<z.ZodBoolean>;
11448
+ }, "strip", z.ZodTypeAny, {
11449
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
11450
+ local_enrollment_enabled?: boolean | undefined;
11451
+ progressive_enrollment_enabled?: boolean | undefined;
11452
+ }, {
11453
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
11454
+ local_enrollment_enabled?: boolean | undefined;
11455
+ progressive_enrollment_enabled?: boolean | undefined;
11166
11456
  }>>;
11167
11457
  requires_username: z.ZodOptional<z.ZodBoolean>;
11168
11458
  validation: z.ZodOptional<z.ZodObject<{
@@ -11245,6 +11535,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
11245
11535
  active?: boolean | undefined;
11246
11536
  } | undefined;
11247
11537
  } | undefined;
11538
+ unique?: boolean | undefined;
11539
+ profile_required?: boolean | undefined;
11540
+ verification_method?: "code" | "link" | undefined;
11248
11541
  } | undefined;
11249
11542
  username?: {
11250
11543
  validation?: {
@@ -11261,8 +11554,30 @@ export declare const connectionInsertSchema: z.ZodObject<{
11261
11554
  signup?: {
11262
11555
  status?: "required" | "optional" | "disabled" | undefined;
11263
11556
  } | undefined;
11557
+ profile_required?: boolean | undefined;
11558
+ } | undefined;
11559
+ phone_number?: {
11560
+ identifier?: {
11561
+ active?: boolean | undefined;
11562
+ } | undefined;
11563
+ signup?: {
11564
+ status?: "required" | "optional" | "disabled" | undefined;
11565
+ } | undefined;
11264
11566
  } | undefined;
11265
11567
  } | undefined;
11568
+ authentication_methods?: {
11569
+ password?: {
11570
+ enabled?: boolean | undefined;
11571
+ } | undefined;
11572
+ passkey?: {
11573
+ enabled?: boolean | undefined;
11574
+ } | undefined;
11575
+ } | undefined;
11576
+ passkey_options?: {
11577
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
11578
+ local_enrollment_enabled?: boolean | undefined;
11579
+ progressive_enrollment_enabled?: boolean | undefined;
11580
+ } | undefined;
11266
11581
  requires_username?: boolean | undefined;
11267
11582
  }, {
11268
11583
  validation?: {
@@ -11322,6 +11637,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
11322
11637
  active?: boolean | undefined;
11323
11638
  } | undefined;
11324
11639
  } | undefined;
11640
+ unique?: boolean | undefined;
11641
+ profile_required?: boolean | undefined;
11642
+ verification_method?: "code" | "link" | undefined;
11325
11643
  } | undefined;
11326
11644
  username?: {
11327
11645
  validation?: {
@@ -11338,8 +11656,30 @@ export declare const connectionInsertSchema: z.ZodObject<{
11338
11656
  signup?: {
11339
11657
  status?: "required" | "optional" | "disabled" | undefined;
11340
11658
  } | undefined;
11659
+ profile_required?: boolean | undefined;
11660
+ } | undefined;
11661
+ phone_number?: {
11662
+ identifier?: {
11663
+ active?: boolean | undefined;
11664
+ } | undefined;
11665
+ signup?: {
11666
+ status?: "required" | "optional" | "disabled" | undefined;
11667
+ } | undefined;
11668
+ } | undefined;
11669
+ } | undefined;
11670
+ authentication_methods?: {
11671
+ password?: {
11672
+ enabled?: boolean | undefined;
11673
+ } | undefined;
11674
+ passkey?: {
11675
+ enabled?: boolean | undefined;
11341
11676
  } | undefined;
11342
11677
  } | undefined;
11678
+ passkey_options?: {
11679
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
11680
+ local_enrollment_enabled?: boolean | undefined;
11681
+ progressive_enrollment_enabled?: boolean | undefined;
11682
+ } | undefined;
11343
11683
  requires_username?: boolean | undefined;
11344
11684
  }>>;
11345
11685
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
@@ -11408,6 +11748,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
11408
11748
  active?: boolean | undefined;
11409
11749
  } | undefined;
11410
11750
  } | undefined;
11751
+ unique?: boolean | undefined;
11752
+ profile_required?: boolean | undefined;
11753
+ verification_method?: "code" | "link" | undefined;
11411
11754
  } | undefined;
11412
11755
  username?: {
11413
11756
  validation?: {
@@ -11424,8 +11767,30 @@ export declare const connectionInsertSchema: z.ZodObject<{
11424
11767
  signup?: {
11425
11768
  status?: "required" | "optional" | "disabled" | undefined;
11426
11769
  } | undefined;
11770
+ profile_required?: boolean | undefined;
11771
+ } | undefined;
11772
+ phone_number?: {
11773
+ identifier?: {
11774
+ active?: boolean | undefined;
11775
+ } | undefined;
11776
+ signup?: {
11777
+ status?: "required" | "optional" | "disabled" | undefined;
11778
+ } | undefined;
11427
11779
  } | undefined;
11428
11780
  } | undefined;
11781
+ authentication_methods?: {
11782
+ password?: {
11783
+ enabled?: boolean | undefined;
11784
+ } | undefined;
11785
+ passkey?: {
11786
+ enabled?: boolean | undefined;
11787
+ } | undefined;
11788
+ } | undefined;
11789
+ passkey_options?: {
11790
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
11791
+ local_enrollment_enabled?: boolean | undefined;
11792
+ progressive_enrollment_enabled?: boolean | undefined;
11793
+ } | undefined;
11429
11794
  requires_username?: boolean | undefined;
11430
11795
  };
11431
11796
  name: string;
@@ -11500,6 +11865,9 @@ export declare const connectionInsertSchema: z.ZodObject<{
11500
11865
  active?: boolean | undefined;
11501
11866
  } | undefined;
11502
11867
  } | undefined;
11868
+ unique?: boolean | undefined;
11869
+ profile_required?: boolean | undefined;
11870
+ verification_method?: "code" | "link" | undefined;
11503
11871
  } | undefined;
11504
11872
  username?: {
11505
11873
  validation?: {
@@ -11516,8 +11884,30 @@ export declare const connectionInsertSchema: z.ZodObject<{
11516
11884
  signup?: {
11517
11885
  status?: "required" | "optional" | "disabled" | undefined;
11518
11886
  } | undefined;
11887
+ profile_required?: boolean | undefined;
11888
+ } | undefined;
11889
+ phone_number?: {
11890
+ identifier?: {
11891
+ active?: boolean | undefined;
11892
+ } | undefined;
11893
+ signup?: {
11894
+ status?: "required" | "optional" | "disabled" | undefined;
11895
+ } | undefined;
11519
11896
  } | undefined;
11520
11897
  } | undefined;
11898
+ authentication_methods?: {
11899
+ password?: {
11900
+ enabled?: boolean | undefined;
11901
+ } | undefined;
11902
+ passkey?: {
11903
+ enabled?: boolean | undefined;
11904
+ } | undefined;
11905
+ } | undefined;
11906
+ passkey_options?: {
11907
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
11908
+ local_enrollment_enabled?: boolean | undefined;
11909
+ progressive_enrollment_enabled?: boolean | undefined;
11910
+ } | undefined;
11521
11911
  requires_username?: boolean | undefined;
11522
11912
  } | undefined;
11523
11913
  id?: string | undefined;
@@ -11643,6 +12033,12 @@ export declare const connectionSchema: z.ZodObject<{
11643
12033
  }, {
11644
12034
  allowed?: boolean | undefined;
11645
12035
  }>>;
12036
+ unique: z.ZodOptional<z.ZodBoolean>;
12037
+ profile_required: z.ZodOptional<z.ZodBoolean>;
12038
+ verification_method: z.ZodOptional<z.ZodEnum<[
12039
+ "link",
12040
+ "code"
12041
+ ]>>;
11646
12042
  }, "strip", z.ZodTypeAny, {
11647
12043
  validation?: {
11648
12044
  allowed?: boolean | undefined;
@@ -11656,6 +12052,9 @@ export declare const connectionSchema: z.ZodObject<{
11656
12052
  active?: boolean | undefined;
11657
12053
  } | undefined;
11658
12054
  } | undefined;
12055
+ unique?: boolean | undefined;
12056
+ profile_required?: boolean | undefined;
12057
+ verification_method?: "code" | "link" | undefined;
11659
12058
  }, {
11660
12059
  validation?: {
11661
12060
  allowed?: boolean | undefined;
@@ -11669,6 +12068,9 @@ export declare const connectionSchema: z.ZodObject<{
11669
12068
  active?: boolean | undefined;
11670
12069
  } | undefined;
11671
12070
  } | undefined;
12071
+ unique?: boolean | undefined;
12072
+ profile_required?: boolean | undefined;
12073
+ verification_method?: "code" | "link" | undefined;
11672
12074
  }>>;
11673
12075
  username: z.ZodOptional<z.ZodObject<{
11674
12076
  identifier: z.ZodOptional<z.ZodObject<{
@@ -11717,6 +12119,7 @@ export declare const connectionSchema: z.ZodObject<{
11717
12119
  phone_number?: boolean | undefined;
11718
12120
  } | undefined;
11719
12121
  }>>;
12122
+ profile_required: z.ZodOptional<z.ZodBoolean>;
11720
12123
  }, "strip", z.ZodTypeAny, {
11721
12124
  validation?: {
11722
12125
  min_length?: number | undefined;
@@ -11732,6 +12135,7 @@ export declare const connectionSchema: z.ZodObject<{
11732
12135
  signup?: {
11733
12136
  status?: "required" | "optional" | "disabled" | undefined;
11734
12137
  } | undefined;
12138
+ profile_required?: boolean | undefined;
11735
12139
  }, {
11736
12140
  validation?: {
11737
12141
  min_length?: number | undefined;
@@ -11747,6 +12151,41 @@ export declare const connectionSchema: z.ZodObject<{
11747
12151
  signup?: {
11748
12152
  status?: "required" | "optional" | "disabled" | undefined;
11749
12153
  } | undefined;
12154
+ profile_required?: boolean | undefined;
12155
+ }>>;
12156
+ phone_number: z.ZodOptional<z.ZodObject<{
12157
+ identifier: z.ZodOptional<z.ZodObject<{
12158
+ active: z.ZodOptional<z.ZodBoolean>;
12159
+ }, "strip", z.ZodTypeAny, {
12160
+ active?: boolean | undefined;
12161
+ }, {
12162
+ active?: boolean | undefined;
12163
+ }>>;
12164
+ signup: z.ZodOptional<z.ZodObject<{
12165
+ status: z.ZodOptional<z.ZodEnum<[
12166
+ "required",
12167
+ "optional",
12168
+ "disabled"
12169
+ ]>>;
12170
+ }, "strip", z.ZodTypeAny, {
12171
+ status?: "required" | "optional" | "disabled" | undefined;
12172
+ }, {
12173
+ status?: "required" | "optional" | "disabled" | undefined;
12174
+ }>>;
12175
+ }, "strip", z.ZodTypeAny, {
12176
+ identifier?: {
12177
+ active?: boolean | undefined;
12178
+ } | undefined;
12179
+ signup?: {
12180
+ status?: "required" | "optional" | "disabled" | undefined;
12181
+ } | undefined;
12182
+ }, {
12183
+ identifier?: {
12184
+ active?: boolean | undefined;
12185
+ } | undefined;
12186
+ signup?: {
12187
+ status?: "required" | "optional" | "disabled" | undefined;
12188
+ } | undefined;
11750
12189
  }>>;
11751
12190
  }, "strip", z.ZodTypeAny, {
11752
12191
  email?: {
@@ -11762,6 +12201,9 @@ export declare const connectionSchema: z.ZodObject<{
11762
12201
  active?: boolean | undefined;
11763
12202
  } | undefined;
11764
12203
  } | undefined;
12204
+ unique?: boolean | undefined;
12205
+ profile_required?: boolean | undefined;
12206
+ verification_method?: "code" | "link" | undefined;
11765
12207
  } | undefined;
11766
12208
  username?: {
11767
12209
  validation?: {
@@ -11778,6 +12220,15 @@ export declare const connectionSchema: z.ZodObject<{
11778
12220
  signup?: {
11779
12221
  status?: "required" | "optional" | "disabled" | undefined;
11780
12222
  } | undefined;
12223
+ profile_required?: boolean | undefined;
12224
+ } | undefined;
12225
+ phone_number?: {
12226
+ identifier?: {
12227
+ active?: boolean | undefined;
12228
+ } | undefined;
12229
+ signup?: {
12230
+ status?: "required" | "optional" | "disabled" | undefined;
12231
+ } | undefined;
11781
12232
  } | undefined;
11782
12233
  }, {
11783
12234
  email?: {
@@ -11793,6 +12244,9 @@ export declare const connectionSchema: z.ZodObject<{
11793
12244
  active?: boolean | undefined;
11794
12245
  } | undefined;
11795
12246
  } | undefined;
12247
+ unique?: boolean | undefined;
12248
+ profile_required?: boolean | undefined;
12249
+ verification_method?: "code" | "link" | undefined;
11796
12250
  } | undefined;
11797
12251
  username?: {
11798
12252
  validation?: {
@@ -11809,8 +12263,64 @@ export declare const connectionSchema: z.ZodObject<{
11809
12263
  signup?: {
11810
12264
  status?: "required" | "optional" | "disabled" | undefined;
11811
12265
  } | undefined;
12266
+ profile_required?: boolean | undefined;
12267
+ } | undefined;
12268
+ phone_number?: {
12269
+ identifier?: {
12270
+ active?: boolean | undefined;
12271
+ } | undefined;
12272
+ signup?: {
12273
+ status?: "required" | "optional" | "disabled" | undefined;
12274
+ } | undefined;
11812
12275
  } | undefined;
11813
12276
  }>>;
12277
+ authentication_methods: z.ZodOptional<z.ZodObject<{
12278
+ password: z.ZodOptional<z.ZodObject<{
12279
+ enabled: z.ZodOptional<z.ZodBoolean>;
12280
+ }, "strip", z.ZodTypeAny, {
12281
+ enabled?: boolean | undefined;
12282
+ }, {
12283
+ enabled?: boolean | undefined;
12284
+ }>>;
12285
+ passkey: z.ZodOptional<z.ZodObject<{
12286
+ enabled: z.ZodOptional<z.ZodBoolean>;
12287
+ }, "strip", z.ZodTypeAny, {
12288
+ enabled?: boolean | undefined;
12289
+ }, {
12290
+ enabled?: boolean | undefined;
12291
+ }>>;
12292
+ }, "strip", z.ZodTypeAny, {
12293
+ password?: {
12294
+ enabled?: boolean | undefined;
12295
+ } | undefined;
12296
+ passkey?: {
12297
+ enabled?: boolean | undefined;
12298
+ } | undefined;
12299
+ }, {
12300
+ password?: {
12301
+ enabled?: boolean | undefined;
12302
+ } | undefined;
12303
+ passkey?: {
12304
+ enabled?: boolean | undefined;
12305
+ } | undefined;
12306
+ }>>;
12307
+ passkey_options: z.ZodOptional<z.ZodObject<{
12308
+ challenge_ui: z.ZodOptional<z.ZodEnum<[
12309
+ "both",
12310
+ "autofill",
12311
+ "button"
12312
+ ]>>;
12313
+ local_enrollment_enabled: z.ZodOptional<z.ZodBoolean>;
12314
+ progressive_enrollment_enabled: z.ZodOptional<z.ZodBoolean>;
12315
+ }, "strip", z.ZodTypeAny, {
12316
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
12317
+ local_enrollment_enabled?: boolean | undefined;
12318
+ progressive_enrollment_enabled?: boolean | undefined;
12319
+ }, {
12320
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
12321
+ local_enrollment_enabled?: boolean | undefined;
12322
+ progressive_enrollment_enabled?: boolean | undefined;
12323
+ }>>;
11814
12324
  requires_username: z.ZodOptional<z.ZodBoolean>;
11815
12325
  validation: z.ZodOptional<z.ZodObject<{
11816
12326
  username: z.ZodOptional<z.ZodObject<{
@@ -11892,6 +12402,9 @@ export declare const connectionSchema: z.ZodObject<{
11892
12402
  active?: boolean | undefined;
11893
12403
  } | undefined;
11894
12404
  } | undefined;
12405
+ unique?: boolean | undefined;
12406
+ profile_required?: boolean | undefined;
12407
+ verification_method?: "code" | "link" | undefined;
11895
12408
  } | undefined;
11896
12409
  username?: {
11897
12410
  validation?: {
@@ -11908,8 +12421,30 @@ export declare const connectionSchema: z.ZodObject<{
11908
12421
  signup?: {
11909
12422
  status?: "required" | "optional" | "disabled" | undefined;
11910
12423
  } | undefined;
12424
+ profile_required?: boolean | undefined;
12425
+ } | undefined;
12426
+ phone_number?: {
12427
+ identifier?: {
12428
+ active?: boolean | undefined;
12429
+ } | undefined;
12430
+ signup?: {
12431
+ status?: "required" | "optional" | "disabled" | undefined;
12432
+ } | undefined;
12433
+ } | undefined;
12434
+ } | undefined;
12435
+ authentication_methods?: {
12436
+ password?: {
12437
+ enabled?: boolean | undefined;
12438
+ } | undefined;
12439
+ passkey?: {
12440
+ enabled?: boolean | undefined;
11911
12441
  } | undefined;
11912
12442
  } | undefined;
12443
+ passkey_options?: {
12444
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
12445
+ local_enrollment_enabled?: boolean | undefined;
12446
+ progressive_enrollment_enabled?: boolean | undefined;
12447
+ } | undefined;
11913
12448
  requires_username?: boolean | undefined;
11914
12449
  }, {
11915
12450
  validation?: {
@@ -11969,6 +12504,9 @@ export declare const connectionSchema: z.ZodObject<{
11969
12504
  active?: boolean | undefined;
11970
12505
  } | undefined;
11971
12506
  } | undefined;
12507
+ unique?: boolean | undefined;
12508
+ profile_required?: boolean | undefined;
12509
+ verification_method?: "code" | "link" | undefined;
11972
12510
  } | undefined;
11973
12511
  username?: {
11974
12512
  validation?: {
@@ -11985,7 +12523,29 @@ export declare const connectionSchema: z.ZodObject<{
11985
12523
  signup?: {
11986
12524
  status?: "required" | "optional" | "disabled" | undefined;
11987
12525
  } | undefined;
12526
+ profile_required?: boolean | undefined;
12527
+ } | undefined;
12528
+ phone_number?: {
12529
+ identifier?: {
12530
+ active?: boolean | undefined;
12531
+ } | undefined;
12532
+ signup?: {
12533
+ status?: "required" | "optional" | "disabled" | undefined;
12534
+ } | undefined;
12535
+ } | undefined;
12536
+ } | undefined;
12537
+ authentication_methods?: {
12538
+ password?: {
12539
+ enabled?: boolean | undefined;
11988
12540
  } | undefined;
12541
+ passkey?: {
12542
+ enabled?: boolean | undefined;
12543
+ } | undefined;
12544
+ } | undefined;
12545
+ passkey_options?: {
12546
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
12547
+ local_enrollment_enabled?: boolean | undefined;
12548
+ progressive_enrollment_enabled?: boolean | undefined;
11989
12549
  } | undefined;
11990
12550
  requires_username?: boolean | undefined;
11991
12551
  }>>;
@@ -12057,6 +12617,9 @@ export declare const connectionSchema: z.ZodObject<{
12057
12617
  active?: boolean | undefined;
12058
12618
  } | undefined;
12059
12619
  } | undefined;
12620
+ unique?: boolean | undefined;
12621
+ profile_required?: boolean | undefined;
12622
+ verification_method?: "code" | "link" | undefined;
12060
12623
  } | undefined;
12061
12624
  username?: {
12062
12625
  validation?: {
@@ -12073,8 +12636,30 @@ export declare const connectionSchema: z.ZodObject<{
12073
12636
  signup?: {
12074
12637
  status?: "required" | "optional" | "disabled" | undefined;
12075
12638
  } | undefined;
12639
+ profile_required?: boolean | undefined;
12640
+ } | undefined;
12641
+ phone_number?: {
12642
+ identifier?: {
12643
+ active?: boolean | undefined;
12644
+ } | undefined;
12645
+ signup?: {
12646
+ status?: "required" | "optional" | "disabled" | undefined;
12647
+ } | undefined;
12076
12648
  } | undefined;
12077
12649
  } | undefined;
12650
+ authentication_methods?: {
12651
+ password?: {
12652
+ enabled?: boolean | undefined;
12653
+ } | undefined;
12654
+ passkey?: {
12655
+ enabled?: boolean | undefined;
12656
+ } | undefined;
12657
+ } | undefined;
12658
+ passkey_options?: {
12659
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
12660
+ local_enrollment_enabled?: boolean | undefined;
12661
+ progressive_enrollment_enabled?: boolean | undefined;
12662
+ } | undefined;
12078
12663
  requires_username?: boolean | undefined;
12079
12664
  };
12080
12665
  name: string;
@@ -12151,6 +12736,9 @@ export declare const connectionSchema: z.ZodObject<{
12151
12736
  active?: boolean | undefined;
12152
12737
  } | undefined;
12153
12738
  } | undefined;
12739
+ unique?: boolean | undefined;
12740
+ profile_required?: boolean | undefined;
12741
+ verification_method?: "code" | "link" | undefined;
12154
12742
  } | undefined;
12155
12743
  username?: {
12156
12744
  validation?: {
@@ -12167,8 +12755,30 @@ export declare const connectionSchema: z.ZodObject<{
12167
12755
  signup?: {
12168
12756
  status?: "required" | "optional" | "disabled" | undefined;
12169
12757
  } | undefined;
12758
+ profile_required?: boolean | undefined;
12759
+ } | undefined;
12760
+ phone_number?: {
12761
+ identifier?: {
12762
+ active?: boolean | undefined;
12763
+ } | undefined;
12764
+ signup?: {
12765
+ status?: "required" | "optional" | "disabled" | undefined;
12766
+ } | undefined;
12767
+ } | undefined;
12768
+ } | undefined;
12769
+ authentication_methods?: {
12770
+ password?: {
12771
+ enabled?: boolean | undefined;
12772
+ } | undefined;
12773
+ passkey?: {
12774
+ enabled?: boolean | undefined;
12170
12775
  } | undefined;
12171
12776
  } | undefined;
12777
+ passkey_options?: {
12778
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
12779
+ local_enrollment_enabled?: boolean | undefined;
12780
+ progressive_enrollment_enabled?: boolean | undefined;
12781
+ } | undefined;
12172
12782
  requires_username?: boolean | undefined;
12173
12783
  } | undefined;
12174
12784
  id?: string | undefined;
@@ -12206,16 +12816,16 @@ export declare const customDomainInsertSchema: z.ZodObject<{
12206
12816
  }, "strip", z.ZodTypeAny, {
12207
12817
  type: "auth0_managed_certs" | "self_managed_certs";
12208
12818
  domain: string;
12209
- custom_domain_id?: string | undefined;
12210
12819
  verification_method?: "txt" | undefined;
12820
+ custom_domain_id?: string | undefined;
12211
12821
  tls_policy?: "recommended" | undefined;
12212
12822
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
12213
12823
  domain_metadata?: Record<string, string> | undefined;
12214
12824
  }, {
12215
12825
  type: "auth0_managed_certs" | "self_managed_certs";
12216
12826
  domain: string;
12217
- custom_domain_id?: string | undefined;
12218
12827
  verification_method?: "txt" | undefined;
12828
+ custom_domain_id?: string | undefined;
12219
12829
  tls_policy?: "recommended" | undefined;
12220
12830
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
12221
12831
  domain_metadata?: Record<string, string> | undefined;
@@ -33837,6 +34447,20 @@ export type UiScreen = z.infer<typeof uiScreenSchema>;
33837
34447
  export declare function isBlockComponent(component: FormNodeComponent): component is BlockComponent;
33838
34448
  export declare function isWidgetComponent(component: FormNodeComponent): component is WidgetComponent;
33839
34449
  export declare function isFieldComponent(component: FormNodeComponent): component is FieldComponent$1;
34450
+ export declare const hookTemplateId: z.ZodEnum<[
34451
+ "ensure-username",
34452
+ "set-preferred-username"
34453
+ ]>;
34454
+ export type HookTemplateId = z.infer<typeof hookTemplateId>;
34455
+ /**
34456
+ * Registry of available hook templates.
34457
+ * Maps template IDs to their metadata and allowed triggers.
34458
+ */
34459
+ export declare const hookTemplates: Record<HookTemplateId, {
34460
+ name: string;
34461
+ description: string;
34462
+ trigger_id: string;
34463
+ }>;
33840
34464
  export declare const hookInsertSchema: z.ZodUnion<[
33841
34465
  z.ZodObject<{
33842
34466
  trigger_id: z.ZodEnum<[
@@ -33854,8 +34478,8 @@ export declare const hookInsertSchema: z.ZodUnion<[
33854
34478
  hook_id: z.ZodOptional<z.ZodString>;
33855
34479
  }, "strip", z.ZodTypeAny, {
33856
34480
  url: string;
33857
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
33858
34481
  enabled: boolean;
34482
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
33859
34483
  synchronous: boolean;
33860
34484
  priority?: number | undefined;
33861
34485
  hook_id?: string | undefined;
@@ -33882,8 +34506,8 @@ export declare const hookInsertSchema: z.ZodUnion<[
33882
34506
  priority: z.ZodOptional<z.ZodNumber>;
33883
34507
  hook_id: z.ZodOptional<z.ZodString>;
33884
34508
  }, "strip", z.ZodTypeAny, {
33885
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
33886
34509
  enabled: boolean;
34510
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
33887
34511
  synchronous: boolean;
33888
34512
  form_id: string;
33889
34513
  priority?: number | undefined;
@@ -33895,6 +34519,34 @@ export declare const hookInsertSchema: z.ZodUnion<[
33895
34519
  synchronous?: boolean | undefined;
33896
34520
  priority?: number | undefined;
33897
34521
  hook_id?: string | undefined;
34522
+ }>,
34523
+ z.ZodObject<{
34524
+ trigger_id: z.ZodEnum<[
34525
+ "post-user-login",
34526
+ "credentials-exchange"
34527
+ ]>;
34528
+ template_id: z.ZodEnum<[
34529
+ "ensure-username",
34530
+ "set-preferred-username"
34531
+ ]>;
34532
+ enabled: z.ZodDefault<z.ZodBoolean>;
34533
+ synchronous: z.ZodDefault<z.ZodBoolean>;
34534
+ priority: z.ZodOptional<z.ZodNumber>;
34535
+ hook_id: z.ZodOptional<z.ZodString>;
34536
+ }, "strip", z.ZodTypeAny, {
34537
+ enabled: boolean;
34538
+ trigger_id: "post-user-login" | "credentials-exchange";
34539
+ synchronous: boolean;
34540
+ template_id: "ensure-username" | "set-preferred-username";
34541
+ priority?: number | undefined;
34542
+ hook_id?: string | undefined;
34543
+ }, {
34544
+ trigger_id: "post-user-login" | "credentials-exchange";
34545
+ template_id: "ensure-username" | "set-preferred-username";
34546
+ enabled?: boolean | undefined;
34547
+ synchronous?: boolean | undefined;
34548
+ priority?: number | undefined;
34549
+ hook_id?: string | undefined;
33898
34550
  }>
33899
34551
  ]>;
33900
34552
  export type HookInsert = z.infer<typeof hookInsertSchema>;
@@ -33919,8 +34571,8 @@ export declare const hookSchema: z.ZodUnion<[
33919
34571
  created_at: string;
33920
34572
  updated_at: string;
33921
34573
  url: string;
33922
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
33923
34574
  enabled: boolean;
34575
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
33924
34576
  synchronous: boolean;
33925
34577
  hook_id: string;
33926
34578
  priority?: number | undefined;
@@ -33953,8 +34605,8 @@ export declare const hookSchema: z.ZodUnion<[
33953
34605
  }, "strip", z.ZodTypeAny, {
33954
34606
  created_at: string;
33955
34607
  updated_at: string;
33956
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
33957
34608
  enabled: boolean;
34609
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
33958
34610
  synchronous: boolean;
33959
34611
  hook_id: string;
33960
34612
  form_id: string;
@@ -33968,6 +34620,40 @@ export declare const hookSchema: z.ZodUnion<[
33968
34620
  enabled?: boolean | undefined;
33969
34621
  synchronous?: boolean | undefined;
33970
34622
  priority?: number | undefined;
34623
+ }>,
34624
+ z.ZodObject<{
34625
+ hook_id: z.ZodString;
34626
+ template_id: z.ZodEnum<[
34627
+ "ensure-username",
34628
+ "set-preferred-username"
34629
+ ]>;
34630
+ created_at: z.ZodString;
34631
+ updated_at: z.ZodString;
34632
+ trigger_id: z.ZodEnum<[
34633
+ "post-user-login",
34634
+ "credentials-exchange"
34635
+ ]>;
34636
+ enabled: z.ZodDefault<z.ZodBoolean>;
34637
+ synchronous: z.ZodDefault<z.ZodBoolean>;
34638
+ priority: z.ZodOptional<z.ZodNumber>;
34639
+ }, "strip", z.ZodTypeAny, {
34640
+ created_at: string;
34641
+ updated_at: string;
34642
+ enabled: boolean;
34643
+ trigger_id: "post-user-login" | "credentials-exchange";
34644
+ synchronous: boolean;
34645
+ hook_id: string;
34646
+ template_id: "ensure-username" | "set-preferred-username";
34647
+ priority?: number | undefined;
34648
+ }, {
34649
+ created_at: string;
34650
+ updated_at: string;
34651
+ trigger_id: "post-user-login" | "credentials-exchange";
34652
+ hook_id: string;
34653
+ template_id: "ensure-username" | "set-preferred-username";
34654
+ enabled?: boolean | undefined;
34655
+ synchronous?: boolean | undefined;
34656
+ priority?: number | undefined;
33971
34657
  }>
33972
34658
  ]>;
33973
34659
  export type Hook = z.infer<typeof hookSchema>;
@@ -35589,21 +36275,21 @@ export declare const tenantInsertSchema: z.ZodObject<{
35589
36275
  enabled: z.ZodOptional<z.ZodBoolean>;
35590
36276
  html: z.ZodOptional<z.ZodString>;
35591
36277
  }, "strip", z.ZodTypeAny, {
35592
- html?: string | undefined;
35593
36278
  enabled?: boolean | undefined;
35594
- }, {
35595
36279
  html?: string | undefined;
36280
+ }, {
35596
36281
  enabled?: boolean | undefined;
36282
+ html?: string | undefined;
35597
36283
  }>>;
35598
36284
  guardian_mfa_page: z.ZodOptional<z.ZodObject<{
35599
36285
  enabled: z.ZodOptional<z.ZodBoolean>;
35600
36286
  html: z.ZodOptional<z.ZodString>;
35601
36287
  }, "strip", z.ZodTypeAny, {
35602
- html?: string | undefined;
35603
36288
  enabled?: boolean | undefined;
35604
- }, {
35605
36289
  html?: string | undefined;
36290
+ }, {
35606
36291
  enabled?: boolean | undefined;
36292
+ html?: string | undefined;
35607
36293
  }>>;
35608
36294
  device_flow: z.ZodOptional<z.ZodObject<{
35609
36295
  charset: z.ZodOptional<z.ZodEnum<[
@@ -35855,12 +36541,12 @@ export declare const tenantInsertSchema: z.ZodObject<{
35855
36541
  legacy_sandbox_version?: string | undefined;
35856
36542
  sandbox_versions_available?: string[] | undefined;
35857
36543
  change_password?: {
35858
- html?: string | undefined;
35859
36544
  enabled?: boolean | undefined;
36545
+ html?: string | undefined;
35860
36546
  } | undefined;
35861
36547
  guardian_mfa_page?: {
35862
- html?: string | undefined;
35863
36548
  enabled?: boolean | undefined;
36549
+ html?: string | undefined;
35864
36550
  } | undefined;
35865
36551
  device_flow?: {
35866
36552
  charset?: "base20" | "digits" | undefined;
@@ -35978,12 +36664,12 @@ export declare const tenantInsertSchema: z.ZodObject<{
35978
36664
  legacy_sandbox_version?: string | undefined;
35979
36665
  sandbox_versions_available?: string[] | undefined;
35980
36666
  change_password?: {
35981
- html?: string | undefined;
35982
36667
  enabled?: boolean | undefined;
36668
+ html?: string | undefined;
35983
36669
  } | undefined;
35984
36670
  guardian_mfa_page?: {
35985
- html?: string | undefined;
35986
36671
  enabled?: boolean | undefined;
36672
+ html?: string | undefined;
35987
36673
  } | undefined;
35988
36674
  device_flow?: {
35989
36675
  charset?: "base20" | "digits" | undefined;
@@ -36184,21 +36870,21 @@ export declare const tenantSchema: z.ZodObject<{
36184
36870
  enabled: z.ZodOptional<z.ZodBoolean>;
36185
36871
  html: z.ZodOptional<z.ZodString>;
36186
36872
  }, "strip", z.ZodTypeAny, {
36187
- html?: string | undefined;
36188
36873
  enabled?: boolean | undefined;
36189
- }, {
36190
36874
  html?: string | undefined;
36875
+ }, {
36191
36876
  enabled?: boolean | undefined;
36877
+ html?: string | undefined;
36192
36878
  }>>;
36193
36879
  guardian_mfa_page: z.ZodOptional<z.ZodObject<{
36194
36880
  enabled: z.ZodOptional<z.ZodBoolean>;
36195
36881
  html: z.ZodOptional<z.ZodString>;
36196
36882
  }, "strip", z.ZodTypeAny, {
36197
- html?: string | undefined;
36198
36883
  enabled?: boolean | undefined;
36199
- }, {
36200
36884
  html?: string | undefined;
36885
+ }, {
36201
36886
  enabled?: boolean | undefined;
36887
+ html?: string | undefined;
36202
36888
  }>>;
36203
36889
  device_flow: z.ZodOptional<z.ZodObject<{
36204
36890
  charset: z.ZodOptional<z.ZodEnum<[
@@ -36454,12 +37140,12 @@ export declare const tenantSchema: z.ZodObject<{
36454
37140
  legacy_sandbox_version?: string | undefined;
36455
37141
  sandbox_versions_available?: string[] | undefined;
36456
37142
  change_password?: {
36457
- html?: string | undefined;
36458
37143
  enabled?: boolean | undefined;
37144
+ html?: string | undefined;
36459
37145
  } | undefined;
36460
37146
  guardian_mfa_page?: {
36461
- html?: string | undefined;
36462
37147
  enabled?: boolean | undefined;
37148
+ html?: string | undefined;
36463
37149
  } | undefined;
36464
37150
  device_flow?: {
36465
37151
  charset?: "base20" | "digits" | undefined;
@@ -36579,12 +37265,12 @@ export declare const tenantSchema: z.ZodObject<{
36579
37265
  legacy_sandbox_version?: string | undefined;
36580
37266
  sandbox_versions_available?: string[] | undefined;
36581
37267
  change_password?: {
36582
- html?: string | undefined;
36583
37268
  enabled?: boolean | undefined;
37269
+ html?: string | undefined;
36584
37270
  } | undefined;
36585
37271
  guardian_mfa_page?: {
36586
- html?: string | undefined;
36587
37272
  enabled?: boolean | undefined;
37273
+ html?: string | undefined;
36588
37274
  } | undefined;
36589
37275
  device_flow?: {
36590
37276
  charset?: "base20" | "digits" | undefined;
@@ -39334,21 +40020,21 @@ export declare const tenantSettingsSchema: z.ZodObject<{
39334
40020
  enabled: z.ZodBoolean;
39335
40021
  html: z.ZodString;
39336
40022
  }, "strip", z.ZodTypeAny, {
39337
- html: string;
39338
40023
  enabled: boolean;
39339
- }, {
39340
40024
  html: string;
40025
+ }, {
39341
40026
  enabled: boolean;
40027
+ html: string;
39342
40028
  }>>;
39343
40029
  guardian_mfa_page: z.ZodOptional<z.ZodObject<{
39344
40030
  enabled: z.ZodBoolean;
39345
40031
  html: z.ZodString;
39346
40032
  }, "strip", z.ZodTypeAny, {
39347
- html: string;
39348
40033
  enabled: boolean;
39349
- }, {
39350
40034
  html: string;
40035
+ }, {
39351
40036
  enabled: boolean;
40037
+ html: string;
39352
40038
  }>>;
39353
40039
  default_audience: z.ZodOptional<z.ZodString>;
39354
40040
  default_organization: z.ZodOptional<z.ZodString>;
@@ -39516,12 +40202,12 @@ export declare const tenantSettingsSchema: z.ZodObject<{
39516
40202
  sandbox_version?: string | undefined;
39517
40203
  sandbox_versions_available?: string[] | undefined;
39518
40204
  change_password?: {
39519
- html: string;
39520
40205
  enabled: boolean;
40206
+ html: string;
39521
40207
  } | undefined;
39522
40208
  guardian_mfa_page?: {
39523
- html: string;
39524
40209
  enabled: boolean;
40210
+ html: string;
39525
40211
  } | undefined;
39526
40212
  default_audience?: string | undefined;
39527
40213
  sessions?: {
@@ -39597,12 +40283,12 @@ export declare const tenantSettingsSchema: z.ZodObject<{
39597
40283
  sandbox_version?: string | undefined;
39598
40284
  sandbox_versions_available?: string[] | undefined;
39599
40285
  change_password?: {
39600
- html: string;
39601
40286
  enabled: boolean;
40287
+ html: string;
39602
40288
  } | undefined;
39603
40289
  guardian_mfa_page?: {
39604
- html: string;
39605
40290
  enabled: boolean;
40291
+ html: string;
39606
40292
  } | undefined;
39607
40293
  default_audience?: string | undefined;
39608
40294
  sessions?: {
@@ -40555,21 +41241,21 @@ declare const enrichedClientSchema: z.ZodObject<{
40555
41241
  enabled: z.ZodOptional<z.ZodBoolean>;
40556
41242
  html: z.ZodOptional<z.ZodString>;
40557
41243
  }, "strip", z.ZodTypeAny, {
40558
- html?: string | undefined;
40559
41244
  enabled?: boolean | undefined;
40560
- }, {
40561
41245
  html?: string | undefined;
41246
+ }, {
40562
41247
  enabled?: boolean | undefined;
41248
+ html?: string | undefined;
40563
41249
  }>>;
40564
41250
  guardian_mfa_page: z.ZodOptional<z.ZodObject<{
40565
41251
  enabled: z.ZodOptional<z.ZodBoolean>;
40566
41252
  html: z.ZodOptional<z.ZodString>;
40567
41253
  }, "strip", z.ZodTypeAny, {
40568
- html?: string | undefined;
40569
41254
  enabled?: boolean | undefined;
40570
- }, {
40571
41255
  html?: string | undefined;
41256
+ }, {
40572
41257
  enabled?: boolean | undefined;
41258
+ html?: string | undefined;
40573
41259
  }>>;
40574
41260
  device_flow: z.ZodOptional<z.ZodObject<{
40575
41261
  charset: z.ZodOptional<z.ZodEnum<[
@@ -40825,12 +41511,12 @@ declare const enrichedClientSchema: z.ZodObject<{
40825
41511
  legacy_sandbox_version?: string | undefined;
40826
41512
  sandbox_versions_available?: string[] | undefined;
40827
41513
  change_password?: {
40828
- html?: string | undefined;
40829
41514
  enabled?: boolean | undefined;
41515
+ html?: string | undefined;
40830
41516
  } | undefined;
40831
41517
  guardian_mfa_page?: {
40832
- html?: string | undefined;
40833
41518
  enabled?: boolean | undefined;
41519
+ html?: string | undefined;
40834
41520
  } | undefined;
40835
41521
  device_flow?: {
40836
41522
  charset?: "base20" | "digits" | undefined;
@@ -40950,12 +41636,12 @@ declare const enrichedClientSchema: z.ZodObject<{
40950
41636
  legacy_sandbox_version?: string | undefined;
40951
41637
  sandbox_versions_available?: string[] | undefined;
40952
41638
  change_password?: {
40953
- html?: string | undefined;
40954
41639
  enabled?: boolean | undefined;
41640
+ html?: string | undefined;
40955
41641
  } | undefined;
40956
41642
  guardian_mfa_page?: {
40957
- html?: string | undefined;
40958
41643
  enabled?: boolean | undefined;
41644
+ html?: string | undefined;
40959
41645
  } | undefined;
40960
41646
  device_flow?: {
40961
41647
  charset?: "base20" | "digits" | undefined;
@@ -41118,6 +41804,12 @@ declare const enrichedClientSchema: z.ZodObject<{
41118
41804
  }, {
41119
41805
  allowed?: boolean | undefined;
41120
41806
  }>>;
41807
+ unique: z.ZodOptional<z.ZodBoolean>;
41808
+ profile_required: z.ZodOptional<z.ZodBoolean>;
41809
+ verification_method: z.ZodOptional<z.ZodEnum<[
41810
+ "link",
41811
+ "code"
41812
+ ]>>;
41121
41813
  }, "strip", z.ZodTypeAny, {
41122
41814
  validation?: {
41123
41815
  allowed?: boolean | undefined;
@@ -41131,6 +41823,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41131
41823
  active?: boolean | undefined;
41132
41824
  } | undefined;
41133
41825
  } | undefined;
41826
+ unique?: boolean | undefined;
41827
+ profile_required?: boolean | undefined;
41828
+ verification_method?: "code" | "link" | undefined;
41134
41829
  }, {
41135
41830
  validation?: {
41136
41831
  allowed?: boolean | undefined;
@@ -41144,6 +41839,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41144
41839
  active?: boolean | undefined;
41145
41840
  } | undefined;
41146
41841
  } | undefined;
41842
+ unique?: boolean | undefined;
41843
+ profile_required?: boolean | undefined;
41844
+ verification_method?: "code" | "link" | undefined;
41147
41845
  }>>;
41148
41846
  username: z.ZodOptional<z.ZodObject<{
41149
41847
  identifier: z.ZodOptional<z.ZodObject<{
@@ -41192,6 +41890,7 @@ declare const enrichedClientSchema: z.ZodObject<{
41192
41890
  phone_number?: boolean | undefined;
41193
41891
  } | undefined;
41194
41892
  }>>;
41893
+ profile_required: z.ZodOptional<z.ZodBoolean>;
41195
41894
  }, "strip", z.ZodTypeAny, {
41196
41895
  validation?: {
41197
41896
  min_length?: number | undefined;
@@ -41207,6 +41906,7 @@ declare const enrichedClientSchema: z.ZodObject<{
41207
41906
  signup?: {
41208
41907
  status?: "required" | "optional" | "disabled" | undefined;
41209
41908
  } | undefined;
41909
+ profile_required?: boolean | undefined;
41210
41910
  }, {
41211
41911
  validation?: {
41212
41912
  min_length?: number | undefined;
@@ -41222,6 +41922,41 @@ declare const enrichedClientSchema: z.ZodObject<{
41222
41922
  signup?: {
41223
41923
  status?: "required" | "optional" | "disabled" | undefined;
41224
41924
  } | undefined;
41925
+ profile_required?: boolean | undefined;
41926
+ }>>;
41927
+ phone_number: z.ZodOptional<z.ZodObject<{
41928
+ identifier: z.ZodOptional<z.ZodObject<{
41929
+ active: z.ZodOptional<z.ZodBoolean>;
41930
+ }, "strip", z.ZodTypeAny, {
41931
+ active?: boolean | undefined;
41932
+ }, {
41933
+ active?: boolean | undefined;
41934
+ }>>;
41935
+ signup: z.ZodOptional<z.ZodObject<{
41936
+ status: z.ZodOptional<z.ZodEnum<[
41937
+ "required",
41938
+ "optional",
41939
+ "disabled"
41940
+ ]>>;
41941
+ }, "strip", z.ZodTypeAny, {
41942
+ status?: "required" | "optional" | "disabled" | undefined;
41943
+ }, {
41944
+ status?: "required" | "optional" | "disabled" | undefined;
41945
+ }>>;
41946
+ }, "strip", z.ZodTypeAny, {
41947
+ identifier?: {
41948
+ active?: boolean | undefined;
41949
+ } | undefined;
41950
+ signup?: {
41951
+ status?: "required" | "optional" | "disabled" | undefined;
41952
+ } | undefined;
41953
+ }, {
41954
+ identifier?: {
41955
+ active?: boolean | undefined;
41956
+ } | undefined;
41957
+ signup?: {
41958
+ status?: "required" | "optional" | "disabled" | undefined;
41959
+ } | undefined;
41225
41960
  }>>;
41226
41961
  }, "strip", z.ZodTypeAny, {
41227
41962
  email?: {
@@ -41237,6 +41972,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41237
41972
  active?: boolean | undefined;
41238
41973
  } | undefined;
41239
41974
  } | undefined;
41975
+ unique?: boolean | undefined;
41976
+ profile_required?: boolean | undefined;
41977
+ verification_method?: "code" | "link" | undefined;
41240
41978
  } | undefined;
41241
41979
  username?: {
41242
41980
  validation?: {
@@ -41253,6 +41991,15 @@ declare const enrichedClientSchema: z.ZodObject<{
41253
41991
  signup?: {
41254
41992
  status?: "required" | "optional" | "disabled" | undefined;
41255
41993
  } | undefined;
41994
+ profile_required?: boolean | undefined;
41995
+ } | undefined;
41996
+ phone_number?: {
41997
+ identifier?: {
41998
+ active?: boolean | undefined;
41999
+ } | undefined;
42000
+ signup?: {
42001
+ status?: "required" | "optional" | "disabled" | undefined;
42002
+ } | undefined;
41256
42003
  } | undefined;
41257
42004
  }, {
41258
42005
  email?: {
@@ -41268,6 +42015,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41268
42015
  active?: boolean | undefined;
41269
42016
  } | undefined;
41270
42017
  } | undefined;
42018
+ unique?: boolean | undefined;
42019
+ profile_required?: boolean | undefined;
42020
+ verification_method?: "code" | "link" | undefined;
41271
42021
  } | undefined;
41272
42022
  username?: {
41273
42023
  validation?: {
@@ -41284,7 +42034,63 @@ declare const enrichedClientSchema: z.ZodObject<{
41284
42034
  signup?: {
41285
42035
  status?: "required" | "optional" | "disabled" | undefined;
41286
42036
  } | undefined;
42037
+ profile_required?: boolean | undefined;
41287
42038
  } | undefined;
42039
+ phone_number?: {
42040
+ identifier?: {
42041
+ active?: boolean | undefined;
42042
+ } | undefined;
42043
+ signup?: {
42044
+ status?: "required" | "optional" | "disabled" | undefined;
42045
+ } | undefined;
42046
+ } | undefined;
42047
+ }>>;
42048
+ authentication_methods: z.ZodOptional<z.ZodObject<{
42049
+ password: z.ZodOptional<z.ZodObject<{
42050
+ enabled: z.ZodOptional<z.ZodBoolean>;
42051
+ }, "strip", z.ZodTypeAny, {
42052
+ enabled?: boolean | undefined;
42053
+ }, {
42054
+ enabled?: boolean | undefined;
42055
+ }>>;
42056
+ passkey: z.ZodOptional<z.ZodObject<{
42057
+ enabled: z.ZodOptional<z.ZodBoolean>;
42058
+ }, "strip", z.ZodTypeAny, {
42059
+ enabled?: boolean | undefined;
42060
+ }, {
42061
+ enabled?: boolean | undefined;
42062
+ }>>;
42063
+ }, "strip", z.ZodTypeAny, {
42064
+ password?: {
42065
+ enabled?: boolean | undefined;
42066
+ } | undefined;
42067
+ passkey?: {
42068
+ enabled?: boolean | undefined;
42069
+ } | undefined;
42070
+ }, {
42071
+ password?: {
42072
+ enabled?: boolean | undefined;
42073
+ } | undefined;
42074
+ passkey?: {
42075
+ enabled?: boolean | undefined;
42076
+ } | undefined;
42077
+ }>>;
42078
+ passkey_options: z.ZodOptional<z.ZodObject<{
42079
+ challenge_ui: z.ZodOptional<z.ZodEnum<[
42080
+ "both",
42081
+ "autofill",
42082
+ "button"
42083
+ ]>>;
42084
+ local_enrollment_enabled: z.ZodOptional<z.ZodBoolean>;
42085
+ progressive_enrollment_enabled: z.ZodOptional<z.ZodBoolean>;
42086
+ }, "strip", z.ZodTypeAny, {
42087
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
42088
+ local_enrollment_enabled?: boolean | undefined;
42089
+ progressive_enrollment_enabled?: boolean | undefined;
42090
+ }, {
42091
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
42092
+ local_enrollment_enabled?: boolean | undefined;
42093
+ progressive_enrollment_enabled?: boolean | undefined;
41288
42094
  }>>;
41289
42095
  requires_username: z.ZodOptional<z.ZodBoolean>;
41290
42096
  validation: z.ZodOptional<z.ZodObject<{
@@ -41367,6 +42173,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41367
42173
  active?: boolean | undefined;
41368
42174
  } | undefined;
41369
42175
  } | undefined;
42176
+ unique?: boolean | undefined;
42177
+ profile_required?: boolean | undefined;
42178
+ verification_method?: "code" | "link" | undefined;
41370
42179
  } | undefined;
41371
42180
  username?: {
41372
42181
  validation?: {
@@ -41383,8 +42192,30 @@ declare const enrichedClientSchema: z.ZodObject<{
41383
42192
  signup?: {
41384
42193
  status?: "required" | "optional" | "disabled" | undefined;
41385
42194
  } | undefined;
42195
+ profile_required?: boolean | undefined;
42196
+ } | undefined;
42197
+ phone_number?: {
42198
+ identifier?: {
42199
+ active?: boolean | undefined;
42200
+ } | undefined;
42201
+ signup?: {
42202
+ status?: "required" | "optional" | "disabled" | undefined;
42203
+ } | undefined;
41386
42204
  } | undefined;
41387
42205
  } | undefined;
42206
+ authentication_methods?: {
42207
+ password?: {
42208
+ enabled?: boolean | undefined;
42209
+ } | undefined;
42210
+ passkey?: {
42211
+ enabled?: boolean | undefined;
42212
+ } | undefined;
42213
+ } | undefined;
42214
+ passkey_options?: {
42215
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
42216
+ local_enrollment_enabled?: boolean | undefined;
42217
+ progressive_enrollment_enabled?: boolean | undefined;
42218
+ } | undefined;
41388
42219
  requires_username?: boolean | undefined;
41389
42220
  }, {
41390
42221
  validation?: {
@@ -41444,6 +42275,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41444
42275
  active?: boolean | undefined;
41445
42276
  } | undefined;
41446
42277
  } | undefined;
42278
+ unique?: boolean | undefined;
42279
+ profile_required?: boolean | undefined;
42280
+ verification_method?: "code" | "link" | undefined;
41447
42281
  } | undefined;
41448
42282
  username?: {
41449
42283
  validation?: {
@@ -41460,8 +42294,30 @@ declare const enrichedClientSchema: z.ZodObject<{
41460
42294
  signup?: {
41461
42295
  status?: "required" | "optional" | "disabled" | undefined;
41462
42296
  } | undefined;
42297
+ profile_required?: boolean | undefined;
42298
+ } | undefined;
42299
+ phone_number?: {
42300
+ identifier?: {
42301
+ active?: boolean | undefined;
42302
+ } | undefined;
42303
+ signup?: {
42304
+ status?: "required" | "optional" | "disabled" | undefined;
42305
+ } | undefined;
41463
42306
  } | undefined;
41464
42307
  } | undefined;
42308
+ authentication_methods?: {
42309
+ password?: {
42310
+ enabled?: boolean | undefined;
42311
+ } | undefined;
42312
+ passkey?: {
42313
+ enabled?: boolean | undefined;
42314
+ } | undefined;
42315
+ } | undefined;
42316
+ passkey_options?: {
42317
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
42318
+ local_enrollment_enabled?: boolean | undefined;
42319
+ progressive_enrollment_enabled?: boolean | undefined;
42320
+ } | undefined;
41465
42321
  requires_username?: boolean | undefined;
41466
42322
  }>>;
41467
42323
  enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
@@ -41532,6 +42388,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41532
42388
  active?: boolean | undefined;
41533
42389
  } | undefined;
41534
42390
  } | undefined;
42391
+ unique?: boolean | undefined;
42392
+ profile_required?: boolean | undefined;
42393
+ verification_method?: "code" | "link" | undefined;
41535
42394
  } | undefined;
41536
42395
  username?: {
41537
42396
  validation?: {
@@ -41548,7 +42407,29 @@ declare const enrichedClientSchema: z.ZodObject<{
41548
42407
  signup?: {
41549
42408
  status?: "required" | "optional" | "disabled" | undefined;
41550
42409
  } | undefined;
42410
+ profile_required?: boolean | undefined;
42411
+ } | undefined;
42412
+ phone_number?: {
42413
+ identifier?: {
42414
+ active?: boolean | undefined;
42415
+ } | undefined;
42416
+ signup?: {
42417
+ status?: "required" | "optional" | "disabled" | undefined;
42418
+ } | undefined;
42419
+ } | undefined;
42420
+ } | undefined;
42421
+ authentication_methods?: {
42422
+ password?: {
42423
+ enabled?: boolean | undefined;
41551
42424
  } | undefined;
42425
+ passkey?: {
42426
+ enabled?: boolean | undefined;
42427
+ } | undefined;
42428
+ } | undefined;
42429
+ passkey_options?: {
42430
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
42431
+ local_enrollment_enabled?: boolean | undefined;
42432
+ progressive_enrollment_enabled?: boolean | undefined;
41552
42433
  } | undefined;
41553
42434
  requires_username?: boolean | undefined;
41554
42435
  };
@@ -41626,6 +42507,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41626
42507
  active?: boolean | undefined;
41627
42508
  } | undefined;
41628
42509
  } | undefined;
42510
+ unique?: boolean | undefined;
42511
+ profile_required?: boolean | undefined;
42512
+ verification_method?: "code" | "link" | undefined;
41629
42513
  } | undefined;
41630
42514
  username?: {
41631
42515
  validation?: {
@@ -41642,8 +42526,30 @@ declare const enrichedClientSchema: z.ZodObject<{
41642
42526
  signup?: {
41643
42527
  status?: "required" | "optional" | "disabled" | undefined;
41644
42528
  } | undefined;
42529
+ profile_required?: boolean | undefined;
42530
+ } | undefined;
42531
+ phone_number?: {
42532
+ identifier?: {
42533
+ active?: boolean | undefined;
42534
+ } | undefined;
42535
+ signup?: {
42536
+ status?: "required" | "optional" | "disabled" | undefined;
42537
+ } | undefined;
42538
+ } | undefined;
42539
+ } | undefined;
42540
+ authentication_methods?: {
42541
+ password?: {
42542
+ enabled?: boolean | undefined;
42543
+ } | undefined;
42544
+ passkey?: {
42545
+ enabled?: boolean | undefined;
41645
42546
  } | undefined;
41646
42547
  } | undefined;
42548
+ passkey_options?: {
42549
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
42550
+ local_enrollment_enabled?: boolean | undefined;
42551
+ progressive_enrollment_enabled?: boolean | undefined;
42552
+ } | undefined;
41647
42553
  requires_username?: boolean | undefined;
41648
42554
  } | undefined;
41649
42555
  id?: string | undefined;
@@ -41821,12 +42727,12 @@ declare const enrichedClientSchema: z.ZodObject<{
41821
42727
  legacy_sandbox_version?: string | undefined;
41822
42728
  sandbox_versions_available?: string[] | undefined;
41823
42729
  change_password?: {
41824
- html?: string | undefined;
41825
42730
  enabled?: boolean | undefined;
42731
+ html?: string | undefined;
41826
42732
  } | undefined;
41827
42733
  guardian_mfa_page?: {
41828
- html?: string | undefined;
41829
42734
  enabled?: boolean | undefined;
42735
+ html?: string | undefined;
41830
42736
  } | undefined;
41831
42737
  device_flow?: {
41832
42738
  charset?: "base20" | "digits" | undefined;
@@ -41938,6 +42844,9 @@ declare const enrichedClientSchema: z.ZodObject<{
41938
42844
  active?: boolean | undefined;
41939
42845
  } | undefined;
41940
42846
  } | undefined;
42847
+ unique?: boolean | undefined;
42848
+ profile_required?: boolean | undefined;
42849
+ verification_method?: "code" | "link" | undefined;
41941
42850
  } | undefined;
41942
42851
  username?: {
41943
42852
  validation?: {
@@ -41954,8 +42863,30 @@ declare const enrichedClientSchema: z.ZodObject<{
41954
42863
  signup?: {
41955
42864
  status?: "required" | "optional" | "disabled" | undefined;
41956
42865
  } | undefined;
42866
+ profile_required?: boolean | undefined;
42867
+ } | undefined;
42868
+ phone_number?: {
42869
+ identifier?: {
42870
+ active?: boolean | undefined;
42871
+ } | undefined;
42872
+ signup?: {
42873
+ status?: "required" | "optional" | "disabled" | undefined;
42874
+ } | undefined;
42875
+ } | undefined;
42876
+ } | undefined;
42877
+ authentication_methods?: {
42878
+ password?: {
42879
+ enabled?: boolean | undefined;
42880
+ } | undefined;
42881
+ passkey?: {
42882
+ enabled?: boolean | undefined;
41957
42883
  } | undefined;
41958
42884
  } | undefined;
42885
+ passkey_options?: {
42886
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
42887
+ local_enrollment_enabled?: boolean | undefined;
42888
+ progressive_enrollment_enabled?: boolean | undefined;
42889
+ } | undefined;
41959
42890
  requires_username?: boolean | undefined;
41960
42891
  };
41961
42892
  name: string;
@@ -42090,12 +43021,12 @@ declare const enrichedClientSchema: z.ZodObject<{
42090
43021
  legacy_sandbox_version?: string | undefined;
42091
43022
  sandbox_versions_available?: string[] | undefined;
42092
43023
  change_password?: {
42093
- html?: string | undefined;
42094
43024
  enabled?: boolean | undefined;
43025
+ html?: string | undefined;
42095
43026
  } | undefined;
42096
43027
  guardian_mfa_page?: {
42097
- html?: string | undefined;
42098
43028
  enabled?: boolean | undefined;
43029
+ html?: string | undefined;
42099
43030
  } | undefined;
42100
43031
  device_flow?: {
42101
43032
  charset?: "base20" | "digits" | undefined;
@@ -42209,6 +43140,9 @@ declare const enrichedClientSchema: z.ZodObject<{
42209
43140
  active?: boolean | undefined;
42210
43141
  } | undefined;
42211
43142
  } | undefined;
43143
+ unique?: boolean | undefined;
43144
+ profile_required?: boolean | undefined;
43145
+ verification_method?: "code" | "link" | undefined;
42212
43146
  } | undefined;
42213
43147
  username?: {
42214
43148
  validation?: {
@@ -42225,8 +43159,30 @@ declare const enrichedClientSchema: z.ZodObject<{
42225
43159
  signup?: {
42226
43160
  status?: "required" | "optional" | "disabled" | undefined;
42227
43161
  } | undefined;
43162
+ profile_required?: boolean | undefined;
43163
+ } | undefined;
43164
+ phone_number?: {
43165
+ identifier?: {
43166
+ active?: boolean | undefined;
43167
+ } | undefined;
43168
+ signup?: {
43169
+ status?: "required" | "optional" | "disabled" | undefined;
43170
+ } | undefined;
42228
43171
  } | undefined;
42229
43172
  } | undefined;
43173
+ authentication_methods?: {
43174
+ password?: {
43175
+ enabled?: boolean | undefined;
43176
+ } | undefined;
43177
+ passkey?: {
43178
+ enabled?: boolean | undefined;
43179
+ } | undefined;
43180
+ } | undefined;
43181
+ passkey_options?: {
43182
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
43183
+ local_enrollment_enabled?: boolean | undefined;
43184
+ progressive_enrollment_enabled?: boolean | undefined;
43185
+ } | undefined;
42230
43186
  requires_username?: boolean | undefined;
42231
43187
  } | undefined;
42232
43188
  id?: string | undefined;
@@ -43304,6 +44260,25 @@ export interface FetchAllOptions {
43304
44260
  * ```
43305
44261
  */
43306
44262
  export declare function fetchAll<T>(listFn: (params: ListParams) => Promise<any>, itemsKey: string, options?: FetchAllOptions): Promise<T[]>;
44263
+ export interface EnsureUsernameOptions {
44264
+ /**
44265
+ * The connection name used for username accounts.
44266
+ * @default "Username-Password-Authentication"
44267
+ */
44268
+ connection?: string;
44269
+ /**
44270
+ * The provider used for username accounts.
44271
+ * @default "auth2"
44272
+ */
44273
+ provider?: string;
44274
+ /**
44275
+ * Maximum number of attempts to find a unique username before giving up.
44276
+ * @default 10
44277
+ */
44278
+ maxRetries?: number;
44279
+ }
44280
+ declare function ensureUsername(options?: EnsureUsernameOptions): OnExecutePostLogin;
44281
+ declare function setPreferredUsername(): OnExecuteCredentialsExchange;
43307
44282
  export declare function init(config: AuthHeroConfig): {
43308
44283
  app: OpenAPIHono<{
43309
44284
  Bindings: Bindings;
@@ -48892,6 +49867,9 @@ export declare function init(config: AuthHeroConfig): {
48892
49867
  active?: boolean | undefined | undefined;
48893
49868
  } | undefined;
48894
49869
  } | undefined;
49870
+ unique?: boolean | undefined | undefined;
49871
+ profile_required?: boolean | undefined | undefined;
49872
+ verification_method?: "code" | "link" | undefined | undefined;
48895
49873
  } | undefined;
48896
49874
  username?: {
48897
49875
  validation?: {
@@ -48908,7 +49886,29 @@ export declare function init(config: AuthHeroConfig): {
48908
49886
  signup?: {
48909
49887
  status?: "required" | "optional" | "disabled" | undefined | undefined;
48910
49888
  } | undefined;
49889
+ profile_required?: boolean | undefined | undefined;
48911
49890
  } | undefined;
49891
+ phone_number?: {
49892
+ identifier?: {
49893
+ active?: boolean | undefined | undefined;
49894
+ } | undefined;
49895
+ signup?: {
49896
+ status?: "required" | "optional" | "disabled" | undefined | undefined;
49897
+ } | undefined;
49898
+ } | undefined;
49899
+ } | undefined;
49900
+ authentication_methods?: {
49901
+ password?: {
49902
+ enabled?: boolean | undefined | undefined;
49903
+ } | undefined;
49904
+ passkey?: {
49905
+ enabled?: boolean | undefined | undefined;
49906
+ } | undefined;
49907
+ } | undefined;
49908
+ passkey_options?: {
49909
+ challenge_ui?: "both" | "autofill" | "button" | undefined | undefined;
49910
+ local_enrollment_enabled?: boolean | undefined | undefined;
49911
+ progressive_enrollment_enabled?: boolean | undefined | undefined;
48912
49912
  } | undefined;
48913
49913
  requires_username?: boolean | undefined | undefined;
48914
49914
  };
@@ -48988,6 +49988,9 @@ export declare function init(config: AuthHeroConfig): {
48988
49988
  active?: boolean | undefined | undefined;
48989
49989
  } | undefined;
48990
49990
  } | undefined;
49991
+ unique?: boolean | undefined | undefined;
49992
+ profile_required?: boolean | undefined | undefined;
49993
+ verification_method?: "code" | "link" | undefined | undefined;
48991
49994
  } | undefined;
48992
49995
  username?: {
48993
49996
  validation?: {
@@ -49004,8 +50007,30 @@ export declare function init(config: AuthHeroConfig): {
49004
50007
  signup?: {
49005
50008
  status?: "required" | "optional" | "disabled" | undefined | undefined;
49006
50009
  } | undefined;
50010
+ profile_required?: boolean | undefined | undefined;
50011
+ } | undefined;
50012
+ phone_number?: {
50013
+ identifier?: {
50014
+ active?: boolean | undefined | undefined;
50015
+ } | undefined;
50016
+ signup?: {
50017
+ status?: "required" | "optional" | "disabled" | undefined | undefined;
50018
+ } | undefined;
50019
+ } | undefined;
50020
+ } | undefined;
50021
+ authentication_methods?: {
50022
+ password?: {
50023
+ enabled?: boolean | undefined | undefined;
50024
+ } | undefined;
50025
+ passkey?: {
50026
+ enabled?: boolean | undefined | undefined;
49007
50027
  } | undefined;
49008
50028
  } | undefined;
50029
+ passkey_options?: {
50030
+ challenge_ui?: "both" | "autofill" | "button" | undefined | undefined;
50031
+ local_enrollment_enabled?: boolean | undefined | undefined;
50032
+ progressive_enrollment_enabled?: boolean | undefined | undefined;
50033
+ } | undefined;
49009
50034
  requires_username?: boolean | undefined | undefined;
49010
50035
  };
49011
50036
  name: string;
@@ -49103,6 +50128,9 @@ export declare function init(config: AuthHeroConfig): {
49103
50128
  active?: boolean | undefined | undefined;
49104
50129
  } | undefined;
49105
50130
  } | undefined;
50131
+ unique?: boolean | undefined | undefined;
50132
+ profile_required?: boolean | undefined | undefined;
50133
+ verification_method?: "code" | "link" | undefined | undefined;
49106
50134
  } | undefined;
49107
50135
  username?: {
49108
50136
  validation?: {
@@ -49119,8 +50147,30 @@ export declare function init(config: AuthHeroConfig): {
49119
50147
  signup?: {
49120
50148
  status?: "required" | "optional" | "disabled" | undefined | undefined;
49121
50149
  } | undefined;
50150
+ profile_required?: boolean | undefined | undefined;
50151
+ } | undefined;
50152
+ phone_number?: {
50153
+ identifier?: {
50154
+ active?: boolean | undefined | undefined;
50155
+ } | undefined;
50156
+ signup?: {
50157
+ status?: "required" | "optional" | "disabled" | undefined | undefined;
50158
+ } | undefined;
49122
50159
  } | undefined;
49123
50160
  } | undefined;
50161
+ authentication_methods?: {
50162
+ password?: {
50163
+ enabled?: boolean | undefined | undefined;
50164
+ } | undefined;
50165
+ passkey?: {
50166
+ enabled?: boolean | undefined | undefined;
50167
+ } | undefined;
50168
+ } | undefined;
50169
+ passkey_options?: {
50170
+ challenge_ui?: "both" | "autofill" | "button" | undefined | undefined;
50171
+ local_enrollment_enabled?: boolean | undefined | undefined;
50172
+ progressive_enrollment_enabled?: boolean | undefined | undefined;
50173
+ } | undefined;
49124
50174
  requires_username?: boolean | undefined | undefined;
49125
50175
  };
49126
50176
  name: string;
@@ -49230,6 +50280,9 @@ export declare function init(config: AuthHeroConfig): {
49230
50280
  active?: boolean | undefined;
49231
50281
  } | undefined;
49232
50282
  } | undefined;
50283
+ unique?: boolean | undefined;
50284
+ profile_required?: boolean | undefined;
50285
+ verification_method?: "code" | "link" | undefined;
49233
50286
  } | undefined;
49234
50287
  username?: {
49235
50288
  validation?: {
@@ -49246,7 +50299,29 @@ export declare function init(config: AuthHeroConfig): {
49246
50299
  signup?: {
49247
50300
  status?: "required" | "optional" | "disabled" | undefined;
49248
50301
  } | undefined;
50302
+ profile_required?: boolean | undefined;
49249
50303
  } | undefined;
50304
+ phone_number?: {
50305
+ identifier?: {
50306
+ active?: boolean | undefined;
50307
+ } | undefined;
50308
+ signup?: {
50309
+ status?: "required" | "optional" | "disabled" | undefined;
50310
+ } | undefined;
50311
+ } | undefined;
50312
+ } | undefined;
50313
+ authentication_methods?: {
50314
+ password?: {
50315
+ enabled?: boolean | undefined;
50316
+ } | undefined;
50317
+ passkey?: {
50318
+ enabled?: boolean | undefined;
50319
+ } | undefined;
50320
+ } | undefined;
50321
+ passkey_options?: {
50322
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
50323
+ local_enrollment_enabled?: boolean | undefined;
50324
+ progressive_enrollment_enabled?: boolean | undefined;
49250
50325
  } | undefined;
49251
50326
  requires_username?: boolean | undefined;
49252
50327
  } | undefined;
@@ -49323,6 +50398,9 @@ export declare function init(config: AuthHeroConfig): {
49323
50398
  active?: boolean | undefined | undefined;
49324
50399
  } | undefined;
49325
50400
  } | undefined;
50401
+ unique?: boolean | undefined | undefined;
50402
+ profile_required?: boolean | undefined | undefined;
50403
+ verification_method?: "code" | "link" | undefined | undefined;
49326
50404
  } | undefined;
49327
50405
  username?: {
49328
50406
  validation?: {
@@ -49339,8 +50417,30 @@ export declare function init(config: AuthHeroConfig): {
49339
50417
  signup?: {
49340
50418
  status?: "required" | "optional" | "disabled" | undefined | undefined;
49341
50419
  } | undefined;
50420
+ profile_required?: boolean | undefined | undefined;
50421
+ } | undefined;
50422
+ phone_number?: {
50423
+ identifier?: {
50424
+ active?: boolean | undefined | undefined;
50425
+ } | undefined;
50426
+ signup?: {
50427
+ status?: "required" | "optional" | "disabled" | undefined | undefined;
50428
+ } | undefined;
50429
+ } | undefined;
50430
+ } | undefined;
50431
+ authentication_methods?: {
50432
+ password?: {
50433
+ enabled?: boolean | undefined | undefined;
50434
+ } | undefined;
50435
+ passkey?: {
50436
+ enabled?: boolean | undefined | undefined;
49342
50437
  } | undefined;
49343
50438
  } | undefined;
50439
+ passkey_options?: {
50440
+ challenge_ui?: "both" | "autofill" | "button" | undefined | undefined;
50441
+ local_enrollment_enabled?: boolean | undefined | undefined;
50442
+ progressive_enrollment_enabled?: boolean | undefined | undefined;
50443
+ } | undefined;
49344
50444
  requires_username?: boolean | undefined | undefined;
49345
50445
  };
49346
50446
  name: string;
@@ -49430,6 +50530,9 @@ export declare function init(config: AuthHeroConfig): {
49430
50530
  active?: boolean | undefined;
49431
50531
  } | undefined;
49432
50532
  } | undefined;
50533
+ unique?: boolean | undefined;
50534
+ profile_required?: boolean | undefined;
50535
+ verification_method?: "code" | "link" | undefined;
49433
50536
  } | undefined;
49434
50537
  username?: {
49435
50538
  validation?: {
@@ -49446,8 +50549,30 @@ export declare function init(config: AuthHeroConfig): {
49446
50549
  signup?: {
49447
50550
  status?: "required" | "optional" | "disabled" | undefined;
49448
50551
  } | undefined;
50552
+ profile_required?: boolean | undefined;
50553
+ } | undefined;
50554
+ phone_number?: {
50555
+ identifier?: {
50556
+ active?: boolean | undefined;
50557
+ } | undefined;
50558
+ signup?: {
50559
+ status?: "required" | "optional" | "disabled" | undefined;
50560
+ } | undefined;
49449
50561
  } | undefined;
49450
50562
  } | undefined;
50563
+ authentication_methods?: {
50564
+ password?: {
50565
+ enabled?: boolean | undefined;
50566
+ } | undefined;
50567
+ passkey?: {
50568
+ enabled?: boolean | undefined;
50569
+ } | undefined;
50570
+ } | undefined;
50571
+ passkey_options?: {
50572
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
50573
+ local_enrollment_enabled?: boolean | undefined;
50574
+ progressive_enrollment_enabled?: boolean | undefined;
50575
+ } | undefined;
49451
50576
  requires_username?: boolean | undefined;
49452
50577
  } | undefined;
49453
50578
  response_mode?: AuthorizationResponseMode | undefined;
@@ -49522,6 +50647,9 @@ export declare function init(config: AuthHeroConfig): {
49522
50647
  active?: boolean | undefined | undefined;
49523
50648
  } | undefined;
49524
50649
  } | undefined;
50650
+ unique?: boolean | undefined | undefined;
50651
+ profile_required?: boolean | undefined | undefined;
50652
+ verification_method?: "code" | "link" | undefined | undefined;
49525
50653
  } | undefined;
49526
50654
  username?: {
49527
50655
  validation?: {
@@ -49538,7 +50666,29 @@ export declare function init(config: AuthHeroConfig): {
49538
50666
  signup?: {
49539
50667
  status?: "required" | "optional" | "disabled" | undefined | undefined;
49540
50668
  } | undefined;
50669
+ profile_required?: boolean | undefined | undefined;
49541
50670
  } | undefined;
50671
+ phone_number?: {
50672
+ identifier?: {
50673
+ active?: boolean | undefined | undefined;
50674
+ } | undefined;
50675
+ signup?: {
50676
+ status?: "required" | "optional" | "disabled" | undefined | undefined;
50677
+ } | undefined;
50678
+ } | undefined;
50679
+ } | undefined;
50680
+ authentication_methods?: {
50681
+ password?: {
50682
+ enabled?: boolean | undefined | undefined;
50683
+ } | undefined;
50684
+ passkey?: {
50685
+ enabled?: boolean | undefined | undefined;
50686
+ } | undefined;
50687
+ } | undefined;
50688
+ passkey_options?: {
50689
+ challenge_ui?: "both" | "autofill" | "button" | undefined | undefined;
50690
+ local_enrollment_enabled?: boolean | undefined | undefined;
50691
+ progressive_enrollment_enabled?: boolean | undefined | undefined;
49542
50692
  } | undefined;
49543
50693
  requires_username?: boolean | undefined | undefined;
49544
50694
  };
@@ -49626,20 +50776,29 @@ export declare function init(config: AuthHeroConfig): {
49626
50776
  created_at: string;
49627
50777
  updated_at: string;
49628
50778
  url: string;
49629
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49630
50779
  enabled: boolean;
50780
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49631
50781
  synchronous: boolean;
49632
50782
  hook_id: string;
49633
50783
  priority?: number | undefined | undefined;
49634
50784
  } | {
49635
50785
  created_at: string;
49636
50786
  updated_at: string;
49637
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49638
50787
  enabled: boolean;
50788
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49639
50789
  synchronous: boolean;
49640
50790
  hook_id: string;
49641
50791
  form_id: string;
49642
50792
  priority?: number | undefined | undefined;
50793
+ } | {
50794
+ created_at: string;
50795
+ updated_at: string;
50796
+ enabled: boolean;
50797
+ trigger_id: "post-user-login" | "credentials-exchange";
50798
+ synchronous: boolean;
50799
+ hook_id: string;
50800
+ template_id: "ensure-username" | "set-preferred-username";
50801
+ priority?: number | undefined | undefined;
49643
50802
  })[] | {
49644
50803
  length: number;
49645
50804
  start: number;
@@ -49648,20 +50807,29 @@ export declare function init(config: AuthHeroConfig): {
49648
50807
  created_at: string;
49649
50808
  updated_at: string;
49650
50809
  url: string;
49651
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49652
50810
  enabled: boolean;
50811
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49653
50812
  synchronous: boolean;
49654
50813
  hook_id: string;
49655
50814
  priority?: number | undefined | undefined;
49656
50815
  } | {
49657
50816
  created_at: string;
49658
50817
  updated_at: string;
49659
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49660
50818
  enabled: boolean;
50819
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49661
50820
  synchronous: boolean;
49662
50821
  hook_id: string;
49663
50822
  form_id: string;
49664
50823
  priority?: number | undefined | undefined;
50824
+ } | {
50825
+ created_at: string;
50826
+ updated_at: string;
50827
+ enabled: boolean;
50828
+ trigger_id: "post-user-login" | "credentials-exchange";
50829
+ synchronous: boolean;
50830
+ hook_id: string;
50831
+ template_id: "ensure-username" | "set-preferred-username";
50832
+ priority?: number | undefined | undefined;
49665
50833
  })[];
49666
50834
  total?: number | undefined;
49667
50835
  };
@@ -49691,26 +50859,42 @@ export declare function init(config: AuthHeroConfig): {
49691
50859
  synchronous?: boolean | undefined;
49692
50860
  priority?: number | undefined;
49693
50861
  hook_id?: string | undefined;
50862
+ } | {
50863
+ trigger_id: "post-user-login" | "credentials-exchange";
50864
+ template_id: "ensure-username" | "set-preferred-username";
50865
+ enabled?: boolean | undefined;
50866
+ synchronous?: boolean | undefined;
50867
+ priority?: number | undefined;
50868
+ hook_id?: string | undefined;
49694
50869
  };
49695
50870
  };
49696
50871
  output: {
49697
50872
  created_at: string;
49698
50873
  updated_at: string;
49699
50874
  url: string;
49700
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49701
50875
  enabled: boolean;
50876
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49702
50877
  synchronous: boolean;
49703
50878
  hook_id: string;
49704
50879
  priority?: number | undefined | undefined;
49705
50880
  } | {
49706
50881
  created_at: string;
49707
50882
  updated_at: string;
49708
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49709
50883
  enabled: boolean;
50884
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49710
50885
  synchronous: boolean;
49711
50886
  hook_id: string;
49712
50887
  form_id: string;
49713
50888
  priority?: number | undefined | undefined;
50889
+ } | {
50890
+ created_at: string;
50891
+ updated_at: string;
50892
+ enabled: boolean;
50893
+ trigger_id: "post-user-login" | "credentials-exchange";
50894
+ synchronous: boolean;
50895
+ hook_id: string;
50896
+ template_id: "ensure-username" | "set-preferred-username";
50897
+ priority?: number | undefined | undefined;
49714
50898
  };
49715
50899
  outputFormat: "json";
49716
50900
  status: 201;
@@ -49728,19 +50912,7 @@ export declare function init(config: AuthHeroConfig): {
49728
50912
  "tenant-id"?: string | undefined;
49729
50913
  };
49730
50914
  } & {
49731
- json: {
49732
- url?: string | undefined;
49733
- priority?: number | undefined;
49734
- enabled?: boolean | undefined;
49735
- trigger_id?: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion" | undefined;
49736
- synchronous?: boolean | undefined;
49737
- } | {
49738
- priority?: number | undefined;
49739
- enabled?: boolean | undefined;
49740
- trigger_id?: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion" | undefined;
49741
- synchronous?: boolean | undefined;
49742
- form_id?: string | undefined;
49743
- };
50915
+ json: any;
49744
50916
  };
49745
50917
  output: {};
49746
50918
  outputFormat: string;
@@ -49755,38 +50927,35 @@ export declare function init(config: AuthHeroConfig): {
49755
50927
  "tenant-id"?: string | undefined;
49756
50928
  };
49757
50929
  } & {
49758
- json: {
49759
- url?: string | undefined;
49760
- priority?: number | undefined;
49761
- enabled?: boolean | undefined;
49762
- trigger_id?: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion" | undefined;
49763
- synchronous?: boolean | undefined;
49764
- } | {
49765
- priority?: number | undefined;
49766
- enabled?: boolean | undefined;
49767
- trigger_id?: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion" | undefined;
49768
- synchronous?: boolean | undefined;
49769
- form_id?: string | undefined;
49770
- };
50930
+ json: any;
49771
50931
  };
49772
50932
  output: {
49773
50933
  created_at: string;
49774
50934
  updated_at: string;
49775
50935
  url: string;
49776
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49777
50936
  enabled: boolean;
50937
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49778
50938
  synchronous: boolean;
49779
50939
  hook_id: string;
49780
50940
  priority?: number | undefined | undefined;
49781
50941
  } | {
49782
50942
  created_at: string;
49783
50943
  updated_at: string;
49784
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49785
50944
  enabled: boolean;
50945
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49786
50946
  synchronous: boolean;
49787
50947
  hook_id: string;
49788
50948
  form_id: string;
49789
50949
  priority?: number | undefined | undefined;
50950
+ } | {
50951
+ created_at: string;
50952
+ updated_at: string;
50953
+ enabled: boolean;
50954
+ trigger_id: "post-user-login" | "credentials-exchange";
50955
+ synchronous: boolean;
50956
+ hook_id: string;
50957
+ template_id: "ensure-username" | "set-preferred-username";
50958
+ priority?: number | undefined | undefined;
49790
50959
  };
49791
50960
  outputFormat: "json";
49792
50961
  status: 200;
@@ -49821,20 +50990,29 @@ export declare function init(config: AuthHeroConfig): {
49821
50990
  created_at: string;
49822
50991
  updated_at: string;
49823
50992
  url: string;
49824
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49825
50993
  enabled: boolean;
50994
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49826
50995
  synchronous: boolean;
49827
50996
  hook_id: string;
49828
50997
  priority?: number | undefined | undefined;
49829
50998
  } | {
49830
50999
  created_at: string;
49831
51000
  updated_at: string;
49832
- trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49833
51001
  enabled: boolean;
51002
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
49834
51003
  synchronous: boolean;
49835
51004
  hook_id: string;
49836
51005
  form_id: string;
49837
51006
  priority?: number | undefined | undefined;
51007
+ } | {
51008
+ created_at: string;
51009
+ updated_at: string;
51010
+ enabled: boolean;
51011
+ trigger_id: "post-user-login" | "credentials-exchange";
51012
+ synchronous: boolean;
51013
+ hook_id: string;
51014
+ template_id: "ensure-username" | "set-preferred-username";
51015
+ priority?: number | undefined | undefined;
49838
51016
  };
49839
51017
  outputFormat: "json";
49840
51018
  status: 200;
@@ -50086,12 +51264,12 @@ export declare function init(config: AuthHeroConfig): {
50086
51264
  legacy_sandbox_version?: string | undefined | undefined;
50087
51265
  sandbox_versions_available?: string[] | undefined | undefined;
50088
51266
  change_password?: {
50089
- html?: string | undefined | undefined;
50090
51267
  enabled?: boolean | undefined | undefined;
51268
+ html?: string | undefined | undefined;
50091
51269
  } | undefined;
50092
51270
  guardian_mfa_page?: {
50093
- html?: string | undefined | undefined;
50094
51271
  enabled?: boolean | undefined | undefined;
51272
+ html?: string | undefined | undefined;
50095
51273
  } | undefined;
50096
51274
  device_flow?: {
50097
51275
  charset?: "base20" | "digits" | undefined | undefined;
@@ -50229,12 +51407,12 @@ export declare function init(config: AuthHeroConfig): {
50229
51407
  legacy_sandbox_version?: string | undefined;
50230
51408
  sandbox_versions_available?: string[] | undefined;
50231
51409
  change_password?: {
50232
- html?: string | undefined;
50233
51410
  enabled?: boolean | undefined;
51411
+ html?: string | undefined;
50234
51412
  } | undefined;
50235
51413
  guardian_mfa_page?: {
50236
- html?: string | undefined;
50237
51414
  enabled?: boolean | undefined;
51415
+ html?: string | undefined;
50238
51416
  } | undefined;
50239
51417
  device_flow?: {
50240
51418
  charset?: "base20" | "digits" | undefined;
@@ -50353,12 +51531,12 @@ export declare function init(config: AuthHeroConfig): {
50353
51531
  legacy_sandbox_version?: string | undefined | undefined;
50354
51532
  sandbox_versions_available?: string[] | undefined | undefined;
50355
51533
  change_password?: {
50356
- html?: string | undefined | undefined;
50357
51534
  enabled?: boolean | undefined | undefined;
51535
+ html?: string | undefined | undefined;
50358
51536
  } | undefined;
50359
51537
  guardian_mfa_page?: {
50360
- html?: string | undefined | undefined;
50361
51538
  enabled?: boolean | undefined | undefined;
51539
+ html?: string | undefined | undefined;
50362
51540
  } | undefined;
50363
51541
  device_flow?: {
50364
51542
  charset?: "base20" | "digits" | undefined | undefined;
@@ -51260,6 +52438,9 @@ export declare function init(config: AuthHeroConfig): {
51260
52438
  active?: boolean | undefined | undefined;
51261
52439
  } | undefined;
51262
52440
  } | undefined;
52441
+ unique?: boolean | undefined | undefined;
52442
+ profile_required?: boolean | undefined | undefined;
52443
+ verification_method?: "code" | "link" | undefined | undefined;
51263
52444
  } | undefined;
51264
52445
  username?: {
51265
52446
  validation?: {
@@ -51276,8 +52457,30 @@ export declare function init(config: AuthHeroConfig): {
51276
52457
  signup?: {
51277
52458
  status?: "required" | "optional" | "disabled" | undefined | undefined;
51278
52459
  } | undefined;
52460
+ profile_required?: boolean | undefined | undefined;
52461
+ } | undefined;
52462
+ phone_number?: {
52463
+ identifier?: {
52464
+ active?: boolean | undefined | undefined;
52465
+ } | undefined;
52466
+ signup?: {
52467
+ status?: "required" | "optional" | "disabled" | undefined | undefined;
52468
+ } | undefined;
52469
+ } | undefined;
52470
+ } | undefined;
52471
+ authentication_methods?: {
52472
+ password?: {
52473
+ enabled?: boolean | undefined | undefined;
52474
+ } | undefined;
52475
+ passkey?: {
52476
+ enabled?: boolean | undefined | undefined;
51279
52477
  } | undefined;
51280
52478
  } | undefined;
52479
+ passkey_options?: {
52480
+ challenge_ui?: "both" | "autofill" | "button" | undefined | undefined;
52481
+ local_enrollment_enabled?: boolean | undefined | undefined;
52482
+ progressive_enrollment_enabled?: boolean | undefined | undefined;
52483
+ } | undefined;
51281
52484
  requires_username?: boolean | undefined | undefined;
51282
52485
  };
51283
52486
  name: string;
@@ -51378,6 +52581,9 @@ export declare function init(config: AuthHeroConfig): {
51378
52581
  active?: boolean | undefined | undefined;
51379
52582
  } | undefined;
51380
52583
  } | undefined;
52584
+ unique?: boolean | undefined | undefined;
52585
+ profile_required?: boolean | undefined | undefined;
52586
+ verification_method?: "code" | "link" | undefined | undefined;
51381
52587
  } | undefined;
51382
52588
  username?: {
51383
52589
  validation?: {
@@ -51394,7 +52600,29 @@ export declare function init(config: AuthHeroConfig): {
51394
52600
  signup?: {
51395
52601
  status?: "required" | "optional" | "disabled" | undefined | undefined;
51396
52602
  } | undefined;
52603
+ profile_required?: boolean | undefined | undefined;
51397
52604
  } | undefined;
52605
+ phone_number?: {
52606
+ identifier?: {
52607
+ active?: boolean | undefined | undefined;
52608
+ } | undefined;
52609
+ signup?: {
52610
+ status?: "required" | "optional" | "disabled" | undefined | undefined;
52611
+ } | undefined;
52612
+ } | undefined;
52613
+ } | undefined;
52614
+ authentication_methods?: {
52615
+ password?: {
52616
+ enabled?: boolean | undefined | undefined;
52617
+ } | undefined;
52618
+ passkey?: {
52619
+ enabled?: boolean | undefined | undefined;
52620
+ } | undefined;
52621
+ } | undefined;
52622
+ passkey_options?: {
52623
+ challenge_ui?: "both" | "autofill" | "button" | undefined | undefined;
52624
+ local_enrollment_enabled?: boolean | undefined | undefined;
52625
+ progressive_enrollment_enabled?: boolean | undefined | undefined;
51398
52626
  } | undefined;
51399
52627
  requires_username?: boolean | undefined | undefined;
51400
52628
  };
@@ -54892,8 +56120,8 @@ export declare function init(config: AuthHeroConfig): {
54892
56120
  form: {
54893
56121
  action: "unlink_account";
54894
56122
  user_id?: string | undefined;
54895
- csrf_token?: string | undefined;
54896
56123
  provider?: string | undefined;
56124
+ csrf_token?: string | undefined;
54897
56125
  };
54898
56126
  };
54899
56127
  output: Response;
@@ -54908,8 +56136,8 @@ export declare function init(config: AuthHeroConfig): {
54908
56136
  form: {
54909
56137
  action: "unlink_account";
54910
56138
  user_id?: string | undefined;
54911
- csrf_token?: string | undefined;
54912
56139
  provider?: string | undefined;
56140
+ csrf_token?: string | undefined;
54913
56141
  };
54914
56142
  };
54915
56143
  output: {};
@@ -55312,6 +56540,10 @@ export declare function init(config: AuthHeroConfig): {
55312
56540
  createX509Certificate: typeof createX509Certificate;
55313
56541
  };
55314
56542
 
56543
+ declare namespace preDefinedHooks {
56544
+ export { EnsureUsernameOptions, ensureUsername, setPreferredUsername };
56545
+ }
56546
+
55315
56547
  export {
55316
56548
  Button$1 as ButtonUI,
55317
56549
  Card as CardUI,
@@ -55333,6 +56565,7 @@ export {
55333
56565
  fieldComponentSchema as flowsFieldComponentSchema,
55334
56566
  fieldComponentSchema$1 as fieldComponentSchema,
55335
56567
  flowNodeSchema as flowsFlowNodeSchema,
56568
+ preDefinedHooks,
55336
56569
  stepNodeSchema as flowsStepNodeSchema,
55337
56570
  };
55338
56571