@authhero/adapter-interfaces 0.147.0 → 0.149.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.
@@ -10368,6 +10368,7 @@ export declare const codeTypeSchema: z.ZodEnum<[
10368
10368
  "password_reset",
10369
10369
  "email_verification",
10370
10370
  "otp",
10371
+ "mfa_otp",
10371
10372
  "authorization_code",
10372
10373
  "oauth2_state",
10373
10374
  "ticket"
@@ -10381,6 +10382,7 @@ export declare const codeInsertSchema: z.ZodObject<{
10381
10382
  "password_reset",
10382
10383
  "email_verification",
10383
10384
  "otp",
10385
+ "mfa_otp",
10384
10386
  "authorization_code",
10385
10387
  "oauth2_state",
10386
10388
  "ticket"
@@ -10392,6 +10394,7 @@ export declare const codeInsertSchema: z.ZodObject<{
10392
10394
  "S256"
10393
10395
  ]>>;
10394
10396
  redirect_uri: z.ZodOptional<z.ZodString>;
10397
+ otp: z.ZodOptional<z.ZodString>;
10395
10398
  nonce: z.ZodOptional<z.ZodString>;
10396
10399
  state: z.ZodOptional<z.ZodString>;
10397
10400
  expires_at: z.ZodString;
@@ -10400,7 +10403,7 @@ export declare const codeInsertSchema: z.ZodObject<{
10400
10403
  }, "strip", z.ZodTypeAny, {
10401
10404
  code_id: string;
10402
10405
  login_id: string;
10403
- code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
10406
+ code_type: "password_reset" | "email_verification" | "otp" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket";
10404
10407
  expires_at: string;
10405
10408
  connection_id?: string | undefined;
10406
10409
  user_id?: string | undefined;
@@ -10409,12 +10412,13 @@ export declare const codeInsertSchema: z.ZodObject<{
10409
10412
  nonce?: string | undefined;
10410
10413
  code_challenge_method?: "S256" | "plain" | undefined;
10411
10414
  code_challenge?: string | undefined;
10415
+ otp?: string | undefined;
10412
10416
  code_verifier?: string | undefined;
10413
10417
  used_at?: string | undefined;
10414
10418
  }, {
10415
10419
  code_id: string;
10416
10420
  login_id: string;
10417
- code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
10421
+ code_type: "password_reset" | "email_verification" | "otp" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket";
10418
10422
  expires_at: string;
10419
10423
  connection_id?: string | undefined;
10420
10424
  user_id?: string | undefined;
@@ -10423,6 +10427,7 @@ export declare const codeInsertSchema: z.ZodObject<{
10423
10427
  nonce?: string | undefined;
10424
10428
  code_challenge_method?: "S256" | "plain" | undefined;
10425
10429
  code_challenge?: string | undefined;
10430
+ otp?: string | undefined;
10426
10431
  code_verifier?: string | undefined;
10427
10432
  used_at?: string | undefined;
10428
10433
  }>;
@@ -10436,6 +10441,7 @@ export declare const codeSchema: z.ZodObject<{
10436
10441
  "password_reset",
10437
10442
  "email_verification",
10438
10443
  "otp",
10444
+ "mfa_otp",
10439
10445
  "authorization_code",
10440
10446
  "oauth2_state",
10441
10447
  "ticket"
@@ -10447,6 +10453,7 @@ export declare const codeSchema: z.ZodObject<{
10447
10453
  "S256"
10448
10454
  ]>>;
10449
10455
  redirect_uri: z.ZodOptional<z.ZodString>;
10456
+ otp: z.ZodOptional<z.ZodString>;
10450
10457
  nonce: z.ZodOptional<z.ZodString>;
10451
10458
  state: z.ZodOptional<z.ZodString>;
10452
10459
  expires_at: z.ZodString;
@@ -10456,7 +10463,7 @@ export declare const codeSchema: z.ZodObject<{
10456
10463
  created_at: string;
10457
10464
  code_id: string;
10458
10465
  login_id: string;
10459
- code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
10466
+ code_type: "password_reset" | "email_verification" | "otp" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket";
10460
10467
  expires_at: string;
10461
10468
  connection_id?: string | undefined;
10462
10469
  user_id?: string | undefined;
@@ -10465,13 +10472,14 @@ export declare const codeSchema: z.ZodObject<{
10465
10472
  nonce?: string | undefined;
10466
10473
  code_challenge_method?: "S256" | "plain" | undefined;
10467
10474
  code_challenge?: string | undefined;
10475
+ otp?: string | undefined;
10468
10476
  code_verifier?: string | undefined;
10469
10477
  used_at?: string | undefined;
10470
10478
  }, {
10471
10479
  created_at: string;
10472
10480
  code_id: string;
10473
10481
  login_id: string;
10474
- code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
10482
+ code_type: "password_reset" | "email_verification" | "otp" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket";
10475
10483
  expires_at: string;
10476
10484
  connection_id?: string | undefined;
10477
10485
  user_id?: string | undefined;
@@ -10480,6 +10488,7 @@ export declare const codeSchema: z.ZodObject<{
10480
10488
  nonce?: string | undefined;
10481
10489
  code_challenge_method?: "S256" | "plain" | undefined;
10482
10490
  code_challenge?: string | undefined;
10491
+ otp?: string | undefined;
10483
10492
  code_verifier?: string | undefined;
10484
10493
  used_at?: string | undefined;
10485
10494
  }>;
@@ -14991,6 +15000,85 @@ declare const textField: z.ZodObject<{
14991
15000
  id?: number | undefined;
14992
15001
  }[] | undefined;
14993
15002
  }>;
15003
+ declare const countryField: z.ZodObject<{
15004
+ id: z.ZodString;
15005
+ order: z.ZodOptional<z.ZodNumber>;
15006
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15007
+ } & {
15008
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
15009
+ label: z.ZodOptional<z.ZodString>;
15010
+ hint: z.ZodOptional<z.ZodString>;
15011
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
15012
+ id: z.ZodOptional<z.ZodNumber>;
15013
+ text: z.ZodString;
15014
+ type: z.ZodEnum<[
15015
+ "info",
15016
+ "error",
15017
+ "success",
15018
+ "warning"
15019
+ ]>;
15020
+ }, "strip", z.ZodTypeAny, {
15021
+ type: "info" | "error" | "success" | "warning";
15022
+ text: string;
15023
+ id?: number | undefined;
15024
+ }, {
15025
+ type: "info" | "error" | "success" | "warning";
15026
+ text: string;
15027
+ id?: number | undefined;
15028
+ }>, "many">>;
15029
+ required: z.ZodOptional<z.ZodBoolean>;
15030
+ sensitive: z.ZodOptional<z.ZodBoolean>;
15031
+ } & {
15032
+ type: z.ZodLiteral<"COUNTRY">;
15033
+ config: z.ZodOptional<z.ZodObject<{
15034
+ placeholder: z.ZodOptional<z.ZodString>;
15035
+ default_value: z.ZodOptional<z.ZodString>;
15036
+ }, "strip", z.ZodTypeAny, {
15037
+ placeholder?: string | undefined;
15038
+ default_value?: string | undefined;
15039
+ }, {
15040
+ placeholder?: string | undefined;
15041
+ default_value?: string | undefined;
15042
+ }>>;
15043
+ }, "strip", z.ZodTypeAny, {
15044
+ type: "COUNTRY";
15045
+ id: string;
15046
+ visible: boolean;
15047
+ required?: boolean | undefined;
15048
+ category?: "FIELD" | undefined;
15049
+ config?: {
15050
+ placeholder?: string | undefined;
15051
+ default_value?: string | undefined;
15052
+ } | undefined;
15053
+ sensitive?: boolean | undefined;
15054
+ label?: string | undefined;
15055
+ order?: number | undefined;
15056
+ hint?: string | undefined;
15057
+ messages?: {
15058
+ type: "info" | "error" | "success" | "warning";
15059
+ text: string;
15060
+ id?: number | undefined;
15061
+ }[] | undefined;
15062
+ }, {
15063
+ type: "COUNTRY";
15064
+ id: string;
15065
+ required?: boolean | undefined;
15066
+ category?: "FIELD" | undefined;
15067
+ config?: {
15068
+ placeholder?: string | undefined;
15069
+ default_value?: string | undefined;
15070
+ } | undefined;
15071
+ sensitive?: boolean | undefined;
15072
+ label?: string | undefined;
15073
+ order?: number | undefined;
15074
+ visible?: boolean | undefined;
15075
+ hint?: string | undefined;
15076
+ messages?: {
15077
+ type: "info" | "error" | "success" | "warning";
15078
+ text: string;
15079
+ id?: number | undefined;
15080
+ }[] | undefined;
15081
+ }>;
14994
15082
  declare const urlField: z.ZodObject<{
14995
15083
  id: z.ZodString;
14996
15084
  order: z.ZodOptional<z.ZodNumber>;
@@ -15823,6 +15911,85 @@ declare const fieldComponentSchema$1: z.ZodDiscriminatedUnion<"type", [
15823
15911
  id?: number | undefined;
15824
15912
  }[] | undefined;
15825
15913
  }>,
15914
+ z.ZodObject<{
15915
+ id: z.ZodString;
15916
+ order: z.ZodOptional<z.ZodNumber>;
15917
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15918
+ } & {
15919
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
15920
+ label: z.ZodOptional<z.ZodString>;
15921
+ hint: z.ZodOptional<z.ZodString>;
15922
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
15923
+ id: z.ZodOptional<z.ZodNumber>;
15924
+ text: z.ZodString;
15925
+ type: z.ZodEnum<[
15926
+ "info",
15927
+ "error",
15928
+ "success",
15929
+ "warning"
15930
+ ]>;
15931
+ }, "strip", z.ZodTypeAny, {
15932
+ type: "info" | "error" | "success" | "warning";
15933
+ text: string;
15934
+ id?: number | undefined;
15935
+ }, {
15936
+ type: "info" | "error" | "success" | "warning";
15937
+ text: string;
15938
+ id?: number | undefined;
15939
+ }>, "many">>;
15940
+ required: z.ZodOptional<z.ZodBoolean>;
15941
+ sensitive: z.ZodOptional<z.ZodBoolean>;
15942
+ } & {
15943
+ type: z.ZodLiteral<"COUNTRY">;
15944
+ config: z.ZodOptional<z.ZodObject<{
15945
+ placeholder: z.ZodOptional<z.ZodString>;
15946
+ default_value: z.ZodOptional<z.ZodString>;
15947
+ }, "strip", z.ZodTypeAny, {
15948
+ placeholder?: string | undefined;
15949
+ default_value?: string | undefined;
15950
+ }, {
15951
+ placeholder?: string | undefined;
15952
+ default_value?: string | undefined;
15953
+ }>>;
15954
+ }, "strip", z.ZodTypeAny, {
15955
+ type: "COUNTRY";
15956
+ id: string;
15957
+ visible: boolean;
15958
+ required?: boolean | undefined;
15959
+ category?: "FIELD" | undefined;
15960
+ config?: {
15961
+ placeholder?: string | undefined;
15962
+ default_value?: string | undefined;
15963
+ } | undefined;
15964
+ sensitive?: boolean | undefined;
15965
+ label?: string | undefined;
15966
+ order?: number | undefined;
15967
+ hint?: string | undefined;
15968
+ messages?: {
15969
+ type: "info" | "error" | "success" | "warning";
15970
+ text: string;
15971
+ id?: number | undefined;
15972
+ }[] | undefined;
15973
+ }, {
15974
+ type: "COUNTRY";
15975
+ id: string;
15976
+ required?: boolean | undefined;
15977
+ category?: "FIELD" | undefined;
15978
+ config?: {
15979
+ placeholder?: string | undefined;
15980
+ default_value?: string | undefined;
15981
+ } | undefined;
15982
+ sensitive?: boolean | undefined;
15983
+ label?: string | undefined;
15984
+ order?: number | undefined;
15985
+ visible?: boolean | undefined;
15986
+ hint?: string | undefined;
15987
+ messages?: {
15988
+ type: "info" | "error" | "success" | "warning";
15989
+ text: string;
15990
+ id?: number | undefined;
15991
+ }[] | undefined;
15992
+ }>,
15826
15993
  z.ZodObject<{
15827
15994
  id: z.ZodString;
15828
15995
  order: z.ZodOptional<z.ZodNumber>;
@@ -17784,122 +17951,25 @@ export declare const formNodeComponentDefinition: z.ZodUnion<[
17784
17951
  required: z.ZodOptional<z.ZodBoolean>;
17785
17952
  sensitive: z.ZodOptional<z.ZodBoolean>;
17786
17953
  } & {
17787
- type: z.ZodLiteral<"CUSTOM">;
17788
- config: z.ZodObject<{
17789
- component: z.ZodOptional<z.ZodString>;
17790
- props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17791
- schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17792
- code: z.ZodOptional<z.ZodString>;
17793
- }, "strip", z.ZodTypeAny, {
17794
- code?: string | undefined;
17795
- schema?: Record<string, any> | undefined;
17796
- component?: string | undefined;
17797
- props?: Record<string, any> | undefined;
17798
- }, {
17799
- code?: string | undefined;
17800
- schema?: Record<string, any> | undefined;
17801
- component?: string | undefined;
17802
- props?: Record<string, any> | undefined;
17803
- }>;
17804
- }, "strip", z.ZodTypeAny, {
17805
- type: "CUSTOM";
17806
- id: string;
17807
- config: {
17808
- code?: string | undefined;
17809
- schema?: Record<string, any> | undefined;
17810
- component?: string | undefined;
17811
- props?: Record<string, any> | undefined;
17812
- };
17813
- visible: boolean;
17814
- required?: boolean | undefined;
17815
- category?: "FIELD" | undefined;
17816
- sensitive?: boolean | undefined;
17817
- label?: string | undefined;
17818
- order?: number | undefined;
17819
- hint?: string | undefined;
17820
- messages?: {
17821
- type: "info" | "error" | "success" | "warning";
17822
- text: string;
17823
- id?: number | undefined;
17824
- }[] | undefined;
17825
- }, {
17826
- type: "CUSTOM";
17827
- id: string;
17828
- config: {
17829
- code?: string | undefined;
17830
- schema?: Record<string, any> | undefined;
17831
- component?: string | undefined;
17832
- props?: Record<string, any> | undefined;
17833
- };
17834
- required?: boolean | undefined;
17835
- category?: "FIELD" | undefined;
17836
- sensitive?: boolean | undefined;
17837
- label?: string | undefined;
17838
- order?: number | undefined;
17839
- visible?: boolean | undefined;
17840
- hint?: string | undefined;
17841
- messages?: {
17842
- type: "info" | "error" | "success" | "warning";
17843
- text: string;
17844
- id?: number | undefined;
17845
- }[] | undefined;
17846
- }>,
17847
- z.ZodObject<{
17848
- id: z.ZodString;
17849
- order: z.ZodOptional<z.ZodNumber>;
17850
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
17851
- } & {
17852
- category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
17853
- label: z.ZodOptional<z.ZodString>;
17854
- hint: z.ZodOptional<z.ZodString>;
17855
- messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
17856
- id: z.ZodOptional<z.ZodNumber>;
17857
- text: z.ZodString;
17858
- type: z.ZodEnum<[
17859
- "info",
17860
- "error",
17861
- "success",
17862
- "warning"
17863
- ]>;
17864
- }, "strip", z.ZodTypeAny, {
17865
- type: "info" | "error" | "success" | "warning";
17866
- text: string;
17867
- id?: number | undefined;
17868
- }, {
17869
- type: "info" | "error" | "success" | "warning";
17870
- text: string;
17871
- id?: number | undefined;
17872
- }>, "many">>;
17873
- required: z.ZodOptional<z.ZodBoolean>;
17874
- sensitive: z.ZodOptional<z.ZodBoolean>;
17875
- } & {
17876
- type: z.ZodLiteral<"DATE">;
17954
+ type: z.ZodLiteral<"COUNTRY">;
17877
17955
  config: z.ZodOptional<z.ZodObject<{
17878
- format: z.ZodOptional<z.ZodString>;
17879
- min: z.ZodOptional<z.ZodString>;
17880
- max: z.ZodOptional<z.ZodString>;
17956
+ placeholder: z.ZodOptional<z.ZodString>;
17881
17957
  default_value: z.ZodOptional<z.ZodString>;
17882
17958
  }, "strip", z.ZodTypeAny, {
17883
- format?: string | undefined;
17884
- min?: string | undefined;
17885
- max?: string | undefined;
17959
+ placeholder?: string | undefined;
17886
17960
  default_value?: string | undefined;
17887
17961
  }, {
17888
- format?: string | undefined;
17889
- min?: string | undefined;
17890
- max?: string | undefined;
17962
+ placeholder?: string | undefined;
17891
17963
  default_value?: string | undefined;
17892
17964
  }>>;
17893
17965
  }, "strip", z.ZodTypeAny, {
17894
- type: "DATE";
17966
+ type: "COUNTRY";
17895
17967
  id: string;
17896
17968
  visible: boolean;
17897
17969
  required?: boolean | undefined;
17898
17970
  category?: "FIELD" | undefined;
17899
17971
  config?: {
17900
- format?: string | undefined;
17901
- min?: string | undefined;
17902
- max?: string | undefined;
17972
+ placeholder?: string | undefined;
17903
17973
  default_value?: string | undefined;
17904
17974
  } | undefined;
17905
17975
  sensitive?: boolean | undefined;
@@ -17912,14 +17982,190 @@ export declare const formNodeComponentDefinition: z.ZodUnion<[
17912
17982
  id?: number | undefined;
17913
17983
  }[] | undefined;
17914
17984
  }, {
17915
- type: "DATE";
17985
+ type: "COUNTRY";
17916
17986
  id: string;
17917
17987
  required?: boolean | undefined;
17918
17988
  category?: "FIELD" | undefined;
17919
17989
  config?: {
17920
- format?: string | undefined;
17921
- min?: string | undefined;
17922
- max?: string | undefined;
17990
+ placeholder?: string | undefined;
17991
+ default_value?: string | undefined;
17992
+ } | undefined;
17993
+ sensitive?: boolean | undefined;
17994
+ label?: string | undefined;
17995
+ order?: number | undefined;
17996
+ visible?: boolean | undefined;
17997
+ hint?: string | undefined;
17998
+ messages?: {
17999
+ type: "info" | "error" | "success" | "warning";
18000
+ text: string;
18001
+ id?: number | undefined;
18002
+ }[] | undefined;
18003
+ }>,
18004
+ z.ZodObject<{
18005
+ id: z.ZodString;
18006
+ order: z.ZodOptional<z.ZodNumber>;
18007
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18008
+ } & {
18009
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
18010
+ label: z.ZodOptional<z.ZodString>;
18011
+ hint: z.ZodOptional<z.ZodString>;
18012
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
18013
+ id: z.ZodOptional<z.ZodNumber>;
18014
+ text: z.ZodString;
18015
+ type: z.ZodEnum<[
18016
+ "info",
18017
+ "error",
18018
+ "success",
18019
+ "warning"
18020
+ ]>;
18021
+ }, "strip", z.ZodTypeAny, {
18022
+ type: "info" | "error" | "success" | "warning";
18023
+ text: string;
18024
+ id?: number | undefined;
18025
+ }, {
18026
+ type: "info" | "error" | "success" | "warning";
18027
+ text: string;
18028
+ id?: number | undefined;
18029
+ }>, "many">>;
18030
+ required: z.ZodOptional<z.ZodBoolean>;
18031
+ sensitive: z.ZodOptional<z.ZodBoolean>;
18032
+ } & {
18033
+ type: z.ZodLiteral<"CUSTOM">;
18034
+ config: z.ZodObject<{
18035
+ component: z.ZodOptional<z.ZodString>;
18036
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
18037
+ schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
18038
+ code: z.ZodOptional<z.ZodString>;
18039
+ }, "strip", z.ZodTypeAny, {
18040
+ code?: string | undefined;
18041
+ schema?: Record<string, any> | undefined;
18042
+ component?: string | undefined;
18043
+ props?: Record<string, any> | undefined;
18044
+ }, {
18045
+ code?: string | undefined;
18046
+ schema?: Record<string, any> | undefined;
18047
+ component?: string | undefined;
18048
+ props?: Record<string, any> | undefined;
18049
+ }>;
18050
+ }, "strip", z.ZodTypeAny, {
18051
+ type: "CUSTOM";
18052
+ id: string;
18053
+ config: {
18054
+ code?: string | undefined;
18055
+ schema?: Record<string, any> | undefined;
18056
+ component?: string | undefined;
18057
+ props?: Record<string, any> | undefined;
18058
+ };
18059
+ visible: boolean;
18060
+ required?: boolean | undefined;
18061
+ category?: "FIELD" | undefined;
18062
+ sensitive?: boolean | undefined;
18063
+ label?: string | undefined;
18064
+ order?: number | undefined;
18065
+ hint?: string | undefined;
18066
+ messages?: {
18067
+ type: "info" | "error" | "success" | "warning";
18068
+ text: string;
18069
+ id?: number | undefined;
18070
+ }[] | undefined;
18071
+ }, {
18072
+ type: "CUSTOM";
18073
+ id: string;
18074
+ config: {
18075
+ code?: string | undefined;
18076
+ schema?: Record<string, any> | undefined;
18077
+ component?: string | undefined;
18078
+ props?: Record<string, any> | undefined;
18079
+ };
18080
+ required?: boolean | undefined;
18081
+ category?: "FIELD" | undefined;
18082
+ sensitive?: boolean | undefined;
18083
+ label?: string | undefined;
18084
+ order?: number | undefined;
18085
+ visible?: boolean | undefined;
18086
+ hint?: string | undefined;
18087
+ messages?: {
18088
+ type: "info" | "error" | "success" | "warning";
18089
+ text: string;
18090
+ id?: number | undefined;
18091
+ }[] | undefined;
18092
+ }>,
18093
+ z.ZodObject<{
18094
+ id: z.ZodString;
18095
+ order: z.ZodOptional<z.ZodNumber>;
18096
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18097
+ } & {
18098
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
18099
+ label: z.ZodOptional<z.ZodString>;
18100
+ hint: z.ZodOptional<z.ZodString>;
18101
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
18102
+ id: z.ZodOptional<z.ZodNumber>;
18103
+ text: z.ZodString;
18104
+ type: z.ZodEnum<[
18105
+ "info",
18106
+ "error",
18107
+ "success",
18108
+ "warning"
18109
+ ]>;
18110
+ }, "strip", z.ZodTypeAny, {
18111
+ type: "info" | "error" | "success" | "warning";
18112
+ text: string;
18113
+ id?: number | undefined;
18114
+ }, {
18115
+ type: "info" | "error" | "success" | "warning";
18116
+ text: string;
18117
+ id?: number | undefined;
18118
+ }>, "many">>;
18119
+ required: z.ZodOptional<z.ZodBoolean>;
18120
+ sensitive: z.ZodOptional<z.ZodBoolean>;
18121
+ } & {
18122
+ type: z.ZodLiteral<"DATE">;
18123
+ config: z.ZodOptional<z.ZodObject<{
18124
+ format: z.ZodOptional<z.ZodString>;
18125
+ min: z.ZodOptional<z.ZodString>;
18126
+ max: z.ZodOptional<z.ZodString>;
18127
+ default_value: z.ZodOptional<z.ZodString>;
18128
+ }, "strip", z.ZodTypeAny, {
18129
+ format?: string | undefined;
18130
+ min?: string | undefined;
18131
+ max?: string | undefined;
18132
+ default_value?: string | undefined;
18133
+ }, {
18134
+ format?: string | undefined;
18135
+ min?: string | undefined;
18136
+ max?: string | undefined;
18137
+ default_value?: string | undefined;
18138
+ }>>;
18139
+ }, "strip", z.ZodTypeAny, {
18140
+ type: "DATE";
18141
+ id: string;
18142
+ visible: boolean;
18143
+ required?: boolean | undefined;
18144
+ category?: "FIELD" | undefined;
18145
+ config?: {
18146
+ format?: string | undefined;
18147
+ min?: string | undefined;
18148
+ max?: string | undefined;
18149
+ default_value?: string | undefined;
18150
+ } | undefined;
18151
+ sensitive?: boolean | undefined;
18152
+ label?: string | undefined;
18153
+ order?: number | undefined;
18154
+ hint?: string | undefined;
18155
+ messages?: {
18156
+ type: "info" | "error" | "success" | "warning";
18157
+ text: string;
18158
+ id?: number | undefined;
18159
+ }[] | undefined;
18160
+ }, {
18161
+ type: "DATE";
18162
+ id: string;
18163
+ required?: boolean | undefined;
18164
+ category?: "FIELD" | undefined;
18165
+ config?: {
18166
+ format?: string | undefined;
18167
+ min?: string | undefined;
18168
+ max?: string | undefined;
17923
18169
  default_value?: string | undefined;
17924
18170
  } | undefined;
17925
18171
  sensitive?: boolean | undefined;
@@ -18963,6 +19209,7 @@ export type RecaptchaWidget = z.infer<typeof recaptchaWidget>;
18963
19209
  export type BooleanField = z.infer<typeof booleanField>;
18964
19210
  export type CardsField = z.infer<typeof cardsField>;
18965
19211
  export type ChoiceField = z.infer<typeof choiceField>;
19212
+ export type CountryField = z.infer<typeof countryField>;
18966
19213
  export type CustomField = z.infer<typeof customField>;
18967
19214
  export type DateField = z.infer<typeof dateField>;
18968
19215
  export type DropdownField = z.infer<typeof dropdownField>;
@@ -19902,6 +20149,85 @@ declare const stepNodeSchema$1: z.ZodObject<{
19902
20149
  id?: number | undefined;
19903
20150
  }[] | undefined;
19904
20151
  }>,
20152
+ z.ZodObject<{
20153
+ id: z.ZodString;
20154
+ order: z.ZodOptional<z.ZodNumber>;
20155
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
20156
+ } & {
20157
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
20158
+ label: z.ZodOptional<z.ZodString>;
20159
+ hint: z.ZodOptional<z.ZodString>;
20160
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
20161
+ id: z.ZodOptional<z.ZodNumber>;
20162
+ text: z.ZodString;
20163
+ type: z.ZodEnum<[
20164
+ "info",
20165
+ "error",
20166
+ "success",
20167
+ "warning"
20168
+ ]>;
20169
+ }, "strip", z.ZodTypeAny, {
20170
+ type: "info" | "error" | "success" | "warning";
20171
+ text: string;
20172
+ id?: number | undefined;
20173
+ }, {
20174
+ type: "info" | "error" | "success" | "warning";
20175
+ text: string;
20176
+ id?: number | undefined;
20177
+ }>, "many">>;
20178
+ required: z.ZodOptional<z.ZodBoolean>;
20179
+ sensitive: z.ZodOptional<z.ZodBoolean>;
20180
+ } & {
20181
+ type: z.ZodLiteral<"COUNTRY">;
20182
+ config: z.ZodOptional<z.ZodObject<{
20183
+ placeholder: z.ZodOptional<z.ZodString>;
20184
+ default_value: z.ZodOptional<z.ZodString>;
20185
+ }, "strip", z.ZodTypeAny, {
20186
+ placeholder?: string | undefined;
20187
+ default_value?: string | undefined;
20188
+ }, {
20189
+ placeholder?: string | undefined;
20190
+ default_value?: string | undefined;
20191
+ }>>;
20192
+ }, "strip", z.ZodTypeAny, {
20193
+ type: "COUNTRY";
20194
+ id: string;
20195
+ visible: boolean;
20196
+ required?: boolean | undefined;
20197
+ category?: "FIELD" | undefined;
20198
+ config?: {
20199
+ placeholder?: string | undefined;
20200
+ default_value?: string | undefined;
20201
+ } | undefined;
20202
+ sensitive?: boolean | undefined;
20203
+ label?: string | undefined;
20204
+ order?: number | undefined;
20205
+ hint?: string | undefined;
20206
+ messages?: {
20207
+ type: "info" | "error" | "success" | "warning";
20208
+ text: string;
20209
+ id?: number | undefined;
20210
+ }[] | undefined;
20211
+ }, {
20212
+ type: "COUNTRY";
20213
+ id: string;
20214
+ required?: boolean | undefined;
20215
+ category?: "FIELD" | undefined;
20216
+ config?: {
20217
+ placeholder?: string | undefined;
20218
+ default_value?: string | undefined;
20219
+ } | undefined;
20220
+ sensitive?: boolean | undefined;
20221
+ label?: string | undefined;
20222
+ order?: number | undefined;
20223
+ visible?: boolean | undefined;
20224
+ hint?: string | undefined;
20225
+ messages?: {
20226
+ type: "info" | "error" | "success" | "warning";
20227
+ text: string;
20228
+ id?: number | undefined;
20229
+ }[] | undefined;
20230
+ }>,
19905
20231
  z.ZodObject<{
19906
20232
  id: z.ZodString;
19907
20233
  order: z.ZodOptional<z.ZodNumber>;
@@ -21526,6 +21852,25 @@ declare const stepNodeSchema$1: z.ZodObject<{
21526
21852
  text: string;
21527
21853
  id?: number | undefined;
21528
21854
  }[] | undefined;
21855
+ } | {
21856
+ type: "COUNTRY";
21857
+ id: string;
21858
+ visible: boolean;
21859
+ required?: boolean | undefined;
21860
+ category?: "FIELD" | undefined;
21861
+ config?: {
21862
+ placeholder?: string | undefined;
21863
+ default_value?: string | undefined;
21864
+ } | undefined;
21865
+ sensitive?: boolean | undefined;
21866
+ label?: string | undefined;
21867
+ order?: number | undefined;
21868
+ hint?: string | undefined;
21869
+ messages?: {
21870
+ type: "info" | "error" | "success" | "warning";
21871
+ text: string;
21872
+ id?: number | undefined;
21873
+ }[] | undefined;
21529
21874
  } | {
21530
21875
  type: "URL";
21531
21876
  id: string;
@@ -21985,6 +22330,25 @@ declare const stepNodeSchema$1: z.ZodObject<{
21985
22330
  text: string;
21986
22331
  id?: number | undefined;
21987
22332
  }[] | undefined;
22333
+ } | {
22334
+ type: "COUNTRY";
22335
+ id: string;
22336
+ required?: boolean | undefined;
22337
+ category?: "FIELD" | undefined;
22338
+ config?: {
22339
+ placeholder?: string | undefined;
22340
+ default_value?: string | undefined;
22341
+ } | undefined;
22342
+ sensitive?: boolean | undefined;
22343
+ label?: string | undefined;
22344
+ order?: number | undefined;
22345
+ visible?: boolean | undefined;
22346
+ hint?: string | undefined;
22347
+ messages?: {
22348
+ type: "info" | "error" | "success" | "warning";
22349
+ text: string;
22350
+ id?: number | undefined;
22351
+ }[] | undefined;
21988
22352
  } | {
21989
22353
  type: "URL";
21990
22354
  id: string;
@@ -22448,6 +22812,25 @@ declare const stepNodeSchema$1: z.ZodObject<{
22448
22812
  text: string;
22449
22813
  id?: number | undefined;
22450
22814
  }[] | undefined;
22815
+ } | {
22816
+ type: "COUNTRY";
22817
+ id: string;
22818
+ visible: boolean;
22819
+ required?: boolean | undefined;
22820
+ category?: "FIELD" | undefined;
22821
+ config?: {
22822
+ placeholder?: string | undefined;
22823
+ default_value?: string | undefined;
22824
+ } | undefined;
22825
+ sensitive?: boolean | undefined;
22826
+ label?: string | undefined;
22827
+ order?: number | undefined;
22828
+ hint?: string | undefined;
22829
+ messages?: {
22830
+ type: "info" | "error" | "success" | "warning";
22831
+ text: string;
22832
+ id?: number | undefined;
22833
+ }[] | undefined;
22451
22834
  } | {
22452
22835
  type: "URL";
22453
22836
  id: string;
@@ -22916,6 +23299,25 @@ declare const stepNodeSchema$1: z.ZodObject<{
22916
23299
  text: string;
22917
23300
  id?: number | undefined;
22918
23301
  }[] | undefined;
23302
+ } | {
23303
+ type: "COUNTRY";
23304
+ id: string;
23305
+ required?: boolean | undefined;
23306
+ category?: "FIELD" | undefined;
23307
+ config?: {
23308
+ placeholder?: string | undefined;
23309
+ default_value?: string | undefined;
23310
+ } | undefined;
23311
+ sensitive?: boolean | undefined;
23312
+ label?: string | undefined;
23313
+ order?: number | undefined;
23314
+ visible?: boolean | undefined;
23315
+ hint?: string | undefined;
23316
+ messages?: {
23317
+ type: "info" | "error" | "success" | "warning";
23318
+ text: string;
23319
+ id?: number | undefined;
23320
+ }[] | undefined;
22919
23321
  } | {
22920
23322
  type: "URL";
22921
23323
  id: string;
@@ -23838,6 +24240,85 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
23838
24240
  id?: number | undefined;
23839
24241
  }[] | undefined;
23840
24242
  }>,
24243
+ z.ZodObject<{
24244
+ id: z.ZodString;
24245
+ order: z.ZodOptional<z.ZodNumber>;
24246
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
24247
+ } & {
24248
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
24249
+ label: z.ZodOptional<z.ZodString>;
24250
+ hint: z.ZodOptional<z.ZodString>;
24251
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
24252
+ id: z.ZodOptional<z.ZodNumber>;
24253
+ text: z.ZodString;
24254
+ type: z.ZodEnum<[
24255
+ "info",
24256
+ "error",
24257
+ "success",
24258
+ "warning"
24259
+ ]>;
24260
+ }, "strip", z.ZodTypeAny, {
24261
+ type: "info" | "error" | "success" | "warning";
24262
+ text: string;
24263
+ id?: number | undefined;
24264
+ }, {
24265
+ type: "info" | "error" | "success" | "warning";
24266
+ text: string;
24267
+ id?: number | undefined;
24268
+ }>, "many">>;
24269
+ required: z.ZodOptional<z.ZodBoolean>;
24270
+ sensitive: z.ZodOptional<z.ZodBoolean>;
24271
+ } & {
24272
+ type: z.ZodLiteral<"COUNTRY">;
24273
+ config: z.ZodOptional<z.ZodObject<{
24274
+ placeholder: z.ZodOptional<z.ZodString>;
24275
+ default_value: z.ZodOptional<z.ZodString>;
24276
+ }, "strip", z.ZodTypeAny, {
24277
+ placeholder?: string | undefined;
24278
+ default_value?: string | undefined;
24279
+ }, {
24280
+ placeholder?: string | undefined;
24281
+ default_value?: string | undefined;
24282
+ }>>;
24283
+ }, "strip", z.ZodTypeAny, {
24284
+ type: "COUNTRY";
24285
+ id: string;
24286
+ visible: boolean;
24287
+ required?: boolean | undefined;
24288
+ category?: "FIELD" | undefined;
24289
+ config?: {
24290
+ placeholder?: string | undefined;
24291
+ default_value?: string | undefined;
24292
+ } | undefined;
24293
+ sensitive?: boolean | undefined;
24294
+ label?: string | undefined;
24295
+ order?: number | undefined;
24296
+ hint?: string | undefined;
24297
+ messages?: {
24298
+ type: "info" | "error" | "success" | "warning";
24299
+ text: string;
24300
+ id?: number | undefined;
24301
+ }[] | undefined;
24302
+ }, {
24303
+ type: "COUNTRY";
24304
+ id: string;
24305
+ required?: boolean | undefined;
24306
+ category?: "FIELD" | undefined;
24307
+ config?: {
24308
+ placeholder?: string | undefined;
24309
+ default_value?: string | undefined;
24310
+ } | undefined;
24311
+ sensitive?: boolean | undefined;
24312
+ label?: string | undefined;
24313
+ order?: number | undefined;
24314
+ visible?: boolean | undefined;
24315
+ hint?: string | undefined;
24316
+ messages?: {
24317
+ type: "info" | "error" | "success" | "warning";
24318
+ text: string;
24319
+ id?: number | undefined;
24320
+ }[] | undefined;
24321
+ }>,
23841
24322
  z.ZodObject<{
23842
24323
  id: z.ZodString;
23843
24324
  order: z.ZodOptional<z.ZodNumber>;
@@ -25462,6 +25943,25 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
25462
25943
  text: string;
25463
25944
  id?: number | undefined;
25464
25945
  }[] | undefined;
25946
+ } | {
25947
+ type: "COUNTRY";
25948
+ id: string;
25949
+ visible: boolean;
25950
+ required?: boolean | undefined;
25951
+ category?: "FIELD" | undefined;
25952
+ config?: {
25953
+ placeholder?: string | undefined;
25954
+ default_value?: string | undefined;
25955
+ } | undefined;
25956
+ sensitive?: boolean | undefined;
25957
+ label?: string | undefined;
25958
+ order?: number | undefined;
25959
+ hint?: string | undefined;
25960
+ messages?: {
25961
+ type: "info" | "error" | "success" | "warning";
25962
+ text: string;
25963
+ id?: number | undefined;
25964
+ }[] | undefined;
25465
25965
  } | {
25466
25966
  type: "URL";
25467
25967
  id: string;
@@ -25921,6 +26421,25 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
25921
26421
  text: string;
25922
26422
  id?: number | undefined;
25923
26423
  }[] | undefined;
26424
+ } | {
26425
+ type: "COUNTRY";
26426
+ id: string;
26427
+ required?: boolean | undefined;
26428
+ category?: "FIELD" | undefined;
26429
+ config?: {
26430
+ placeholder?: string | undefined;
26431
+ default_value?: string | undefined;
26432
+ } | undefined;
26433
+ sensitive?: boolean | undefined;
26434
+ label?: string | undefined;
26435
+ order?: number | undefined;
26436
+ visible?: boolean | undefined;
26437
+ hint?: string | undefined;
26438
+ messages?: {
26439
+ type: "info" | "error" | "success" | "warning";
26440
+ text: string;
26441
+ id?: number | undefined;
26442
+ }[] | undefined;
25924
26443
  } | {
25925
26444
  type: "URL";
25926
26445
  id: string;
@@ -26384,6 +26903,25 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
26384
26903
  text: string;
26385
26904
  id?: number | undefined;
26386
26905
  }[] | undefined;
26906
+ } | {
26907
+ type: "COUNTRY";
26908
+ id: string;
26909
+ visible: boolean;
26910
+ required?: boolean | undefined;
26911
+ category?: "FIELD" | undefined;
26912
+ config?: {
26913
+ placeholder?: string | undefined;
26914
+ default_value?: string | undefined;
26915
+ } | undefined;
26916
+ sensitive?: boolean | undefined;
26917
+ label?: string | undefined;
26918
+ order?: number | undefined;
26919
+ hint?: string | undefined;
26920
+ messages?: {
26921
+ type: "info" | "error" | "success" | "warning";
26922
+ text: string;
26923
+ id?: number | undefined;
26924
+ }[] | undefined;
26387
26925
  } | {
26388
26926
  type: "URL";
26389
26927
  id: string;
@@ -26852,6 +27390,25 @@ export declare const formNodeSchema: z.ZodDiscriminatedUnion<"type", [
26852
27390
  text: string;
26853
27391
  id?: number | undefined;
26854
27392
  }[] | undefined;
27393
+ } | {
27394
+ type: "COUNTRY";
27395
+ id: string;
27396
+ required?: boolean | undefined;
27397
+ category?: "FIELD" | undefined;
27398
+ config?: {
27399
+ placeholder?: string | undefined;
27400
+ default_value?: string | undefined;
27401
+ } | undefined;
27402
+ sensitive?: boolean | undefined;
27403
+ label?: string | undefined;
27404
+ order?: number | undefined;
27405
+ visible?: boolean | undefined;
27406
+ hint?: string | undefined;
27407
+ messages?: {
27408
+ type: "info" | "error" | "success" | "warning";
27409
+ text: string;
27410
+ id?: number | undefined;
27411
+ }[] | undefined;
26855
27412
  } | {
26856
27413
  type: "URL";
26857
27414
  id: string;
@@ -27805,6 +28362,85 @@ export declare const formInsertSchema: z.ZodObject<{
27805
28362
  id?: number | undefined;
27806
28363
  }[] | undefined;
27807
28364
  }>,
28365
+ z.ZodObject<{
28366
+ id: z.ZodString;
28367
+ order: z.ZodOptional<z.ZodNumber>;
28368
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
28369
+ } & {
28370
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
28371
+ label: z.ZodOptional<z.ZodString>;
28372
+ hint: z.ZodOptional<z.ZodString>;
28373
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
28374
+ id: z.ZodOptional<z.ZodNumber>;
28375
+ text: z.ZodString;
28376
+ type: z.ZodEnum<[
28377
+ "info",
28378
+ "error",
28379
+ "success",
28380
+ "warning"
28381
+ ]>;
28382
+ }, "strip", z.ZodTypeAny, {
28383
+ type: "info" | "error" | "success" | "warning";
28384
+ text: string;
28385
+ id?: number | undefined;
28386
+ }, {
28387
+ type: "info" | "error" | "success" | "warning";
28388
+ text: string;
28389
+ id?: number | undefined;
28390
+ }>, "many">>;
28391
+ required: z.ZodOptional<z.ZodBoolean>;
28392
+ sensitive: z.ZodOptional<z.ZodBoolean>;
28393
+ } & {
28394
+ type: z.ZodLiteral<"COUNTRY">;
28395
+ config: z.ZodOptional<z.ZodObject<{
28396
+ placeholder: z.ZodOptional<z.ZodString>;
28397
+ default_value: z.ZodOptional<z.ZodString>;
28398
+ }, "strip", z.ZodTypeAny, {
28399
+ placeholder?: string | undefined;
28400
+ default_value?: string | undefined;
28401
+ }, {
28402
+ placeholder?: string | undefined;
28403
+ default_value?: string | undefined;
28404
+ }>>;
28405
+ }, "strip", z.ZodTypeAny, {
28406
+ type: "COUNTRY";
28407
+ id: string;
28408
+ visible: boolean;
28409
+ required?: boolean | undefined;
28410
+ category?: "FIELD" | undefined;
28411
+ config?: {
28412
+ placeholder?: string | undefined;
28413
+ default_value?: string | undefined;
28414
+ } | undefined;
28415
+ sensitive?: boolean | undefined;
28416
+ label?: string | undefined;
28417
+ order?: number | undefined;
28418
+ hint?: string | undefined;
28419
+ messages?: {
28420
+ type: "info" | "error" | "success" | "warning";
28421
+ text: string;
28422
+ id?: number | undefined;
28423
+ }[] | undefined;
28424
+ }, {
28425
+ type: "COUNTRY";
28426
+ id: string;
28427
+ required?: boolean | undefined;
28428
+ category?: "FIELD" | undefined;
28429
+ config?: {
28430
+ placeholder?: string | undefined;
28431
+ default_value?: string | undefined;
28432
+ } | undefined;
28433
+ sensitive?: boolean | undefined;
28434
+ label?: string | undefined;
28435
+ order?: number | undefined;
28436
+ visible?: boolean | undefined;
28437
+ hint?: string | undefined;
28438
+ messages?: {
28439
+ type: "info" | "error" | "success" | "warning";
28440
+ text: string;
28441
+ id?: number | undefined;
28442
+ }[] | undefined;
28443
+ }>,
27808
28444
  z.ZodObject<{
27809
28445
  id: z.ZodString;
27810
28446
  order: z.ZodOptional<z.ZodNumber>;
@@ -29429,6 +30065,25 @@ export declare const formInsertSchema: z.ZodObject<{
29429
30065
  text: string;
29430
30066
  id?: number | undefined;
29431
30067
  }[] | undefined;
30068
+ } | {
30069
+ type: "COUNTRY";
30070
+ id: string;
30071
+ visible: boolean;
30072
+ required?: boolean | undefined;
30073
+ category?: "FIELD" | undefined;
30074
+ config?: {
30075
+ placeholder?: string | undefined;
30076
+ default_value?: string | undefined;
30077
+ } | undefined;
30078
+ sensitive?: boolean | undefined;
30079
+ label?: string | undefined;
30080
+ order?: number | undefined;
30081
+ hint?: string | undefined;
30082
+ messages?: {
30083
+ type: "info" | "error" | "success" | "warning";
30084
+ text: string;
30085
+ id?: number | undefined;
30086
+ }[] | undefined;
29432
30087
  } | {
29433
30088
  type: "URL";
29434
30089
  id: string;
@@ -29888,6 +30543,25 @@ export declare const formInsertSchema: z.ZodObject<{
29888
30543
  text: string;
29889
30544
  id?: number | undefined;
29890
30545
  }[] | undefined;
30546
+ } | {
30547
+ type: "COUNTRY";
30548
+ id: string;
30549
+ required?: boolean | undefined;
30550
+ category?: "FIELD" | undefined;
30551
+ config?: {
30552
+ placeholder?: string | undefined;
30553
+ default_value?: string | undefined;
30554
+ } | undefined;
30555
+ sensitive?: boolean | undefined;
30556
+ label?: string | undefined;
30557
+ order?: number | undefined;
30558
+ visible?: boolean | undefined;
30559
+ hint?: string | undefined;
30560
+ messages?: {
30561
+ type: "info" | "error" | "success" | "warning";
30562
+ text: string;
30563
+ id?: number | undefined;
30564
+ }[] | undefined;
29891
30565
  } | {
29892
30566
  type: "URL";
29893
30567
  id: string;
@@ -30351,6 +31025,25 @@ export declare const formInsertSchema: z.ZodObject<{
30351
31025
  text: string;
30352
31026
  id?: number | undefined;
30353
31027
  }[] | undefined;
31028
+ } | {
31029
+ type: "COUNTRY";
31030
+ id: string;
31031
+ visible: boolean;
31032
+ required?: boolean | undefined;
31033
+ category?: "FIELD" | undefined;
31034
+ config?: {
31035
+ placeholder?: string | undefined;
31036
+ default_value?: string | undefined;
31037
+ } | undefined;
31038
+ sensitive?: boolean | undefined;
31039
+ label?: string | undefined;
31040
+ order?: number | undefined;
31041
+ hint?: string | undefined;
31042
+ messages?: {
31043
+ type: "info" | "error" | "success" | "warning";
31044
+ text: string;
31045
+ id?: number | undefined;
31046
+ }[] | undefined;
30354
31047
  } | {
30355
31048
  type: "URL";
30356
31049
  id: string;
@@ -30819,6 +31512,25 @@ export declare const formInsertSchema: z.ZodObject<{
30819
31512
  text: string;
30820
31513
  id?: number | undefined;
30821
31514
  }[] | undefined;
31515
+ } | {
31516
+ type: "COUNTRY";
31517
+ id: string;
31518
+ required?: boolean | undefined;
31519
+ category?: "FIELD" | undefined;
31520
+ config?: {
31521
+ placeholder?: string | undefined;
31522
+ default_value?: string | undefined;
31523
+ } | undefined;
31524
+ sensitive?: boolean | undefined;
31525
+ label?: string | undefined;
31526
+ order?: number | undefined;
31527
+ visible?: boolean | undefined;
31528
+ hint?: string | undefined;
31529
+ messages?: {
31530
+ type: "info" | "error" | "success" | "warning";
31531
+ text: string;
31532
+ id?: number | undefined;
31533
+ }[] | undefined;
30822
31534
  } | {
30823
31535
  type: "URL";
30824
31536
  id: string;
@@ -31454,6 +32166,25 @@ export declare const formInsertSchema: z.ZodObject<{
31454
32166
  text: string;
31455
32167
  id?: number | undefined;
31456
32168
  }[] | undefined;
32169
+ } | {
32170
+ type: "COUNTRY";
32171
+ id: string;
32172
+ visible: boolean;
32173
+ required?: boolean | undefined;
32174
+ category?: "FIELD" | undefined;
32175
+ config?: {
32176
+ placeholder?: string | undefined;
32177
+ default_value?: string | undefined;
32178
+ } | undefined;
32179
+ sensitive?: boolean | undefined;
32180
+ label?: string | undefined;
32181
+ order?: number | undefined;
32182
+ hint?: string | undefined;
32183
+ messages?: {
32184
+ type: "info" | "error" | "success" | "warning";
32185
+ text: string;
32186
+ id?: number | undefined;
32187
+ }[] | undefined;
31457
32188
  } | {
31458
32189
  type: "URL";
31459
32190
  id: string;
@@ -31995,6 +32726,25 @@ export declare const formInsertSchema: z.ZodObject<{
31995
32726
  text: string;
31996
32727
  id?: number | undefined;
31997
32728
  }[] | undefined;
32729
+ } | {
32730
+ type: "COUNTRY";
32731
+ id: string;
32732
+ required?: boolean | undefined;
32733
+ category?: "FIELD" | undefined;
32734
+ config?: {
32735
+ placeholder?: string | undefined;
32736
+ default_value?: string | undefined;
32737
+ } | undefined;
32738
+ sensitive?: boolean | undefined;
32739
+ label?: string | undefined;
32740
+ order?: number | undefined;
32741
+ visible?: boolean | undefined;
32742
+ hint?: string | undefined;
32743
+ messages?: {
32744
+ type: "info" | "error" | "success" | "warning";
32745
+ text: string;
32746
+ id?: number | undefined;
32747
+ }[] | undefined;
31998
32748
  } | {
31999
32749
  type: "URL";
32000
32750
  id: string;
@@ -32969,6 +33719,85 @@ export declare const formSchema: z.ZodObject<{
32969
33719
  id?: number | undefined;
32970
33720
  }[] | undefined;
32971
33721
  }>,
33722
+ z.ZodObject<{
33723
+ id: z.ZodString;
33724
+ order: z.ZodOptional<z.ZodNumber>;
33725
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
33726
+ } & {
33727
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
33728
+ label: z.ZodOptional<z.ZodString>;
33729
+ hint: z.ZodOptional<z.ZodString>;
33730
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
33731
+ id: z.ZodOptional<z.ZodNumber>;
33732
+ text: z.ZodString;
33733
+ type: z.ZodEnum<[
33734
+ "info",
33735
+ "error",
33736
+ "success",
33737
+ "warning"
33738
+ ]>;
33739
+ }, "strip", z.ZodTypeAny, {
33740
+ type: "info" | "error" | "success" | "warning";
33741
+ text: string;
33742
+ id?: number | undefined;
33743
+ }, {
33744
+ type: "info" | "error" | "success" | "warning";
33745
+ text: string;
33746
+ id?: number | undefined;
33747
+ }>, "many">>;
33748
+ required: z.ZodOptional<z.ZodBoolean>;
33749
+ sensitive: z.ZodOptional<z.ZodBoolean>;
33750
+ } & {
33751
+ type: z.ZodLiteral<"COUNTRY">;
33752
+ config: z.ZodOptional<z.ZodObject<{
33753
+ placeholder: z.ZodOptional<z.ZodString>;
33754
+ default_value: z.ZodOptional<z.ZodString>;
33755
+ }, "strip", z.ZodTypeAny, {
33756
+ placeholder?: string | undefined;
33757
+ default_value?: string | undefined;
33758
+ }, {
33759
+ placeholder?: string | undefined;
33760
+ default_value?: string | undefined;
33761
+ }>>;
33762
+ }, "strip", z.ZodTypeAny, {
33763
+ type: "COUNTRY";
33764
+ id: string;
33765
+ visible: boolean;
33766
+ required?: boolean | undefined;
33767
+ category?: "FIELD" | undefined;
33768
+ config?: {
33769
+ placeholder?: string | undefined;
33770
+ default_value?: string | undefined;
33771
+ } | undefined;
33772
+ sensitive?: boolean | undefined;
33773
+ label?: string | undefined;
33774
+ order?: number | undefined;
33775
+ hint?: string | undefined;
33776
+ messages?: {
33777
+ type: "info" | "error" | "success" | "warning";
33778
+ text: string;
33779
+ id?: number | undefined;
33780
+ }[] | undefined;
33781
+ }, {
33782
+ type: "COUNTRY";
33783
+ id: string;
33784
+ required?: boolean | undefined;
33785
+ category?: "FIELD" | undefined;
33786
+ config?: {
33787
+ placeholder?: string | undefined;
33788
+ default_value?: string | undefined;
33789
+ } | undefined;
33790
+ sensitive?: boolean | undefined;
33791
+ label?: string | undefined;
33792
+ order?: number | undefined;
33793
+ visible?: boolean | undefined;
33794
+ hint?: string | undefined;
33795
+ messages?: {
33796
+ type: "info" | "error" | "success" | "warning";
33797
+ text: string;
33798
+ id?: number | undefined;
33799
+ }[] | undefined;
33800
+ }>,
32972
33801
  z.ZodObject<{
32973
33802
  id: z.ZodString;
32974
33803
  order: z.ZodOptional<z.ZodNumber>;
@@ -34593,6 +35422,25 @@ export declare const formSchema: z.ZodObject<{
34593
35422
  text: string;
34594
35423
  id?: number | undefined;
34595
35424
  }[] | undefined;
35425
+ } | {
35426
+ type: "COUNTRY";
35427
+ id: string;
35428
+ visible: boolean;
35429
+ required?: boolean | undefined;
35430
+ category?: "FIELD" | undefined;
35431
+ config?: {
35432
+ placeholder?: string | undefined;
35433
+ default_value?: string | undefined;
35434
+ } | undefined;
35435
+ sensitive?: boolean | undefined;
35436
+ label?: string | undefined;
35437
+ order?: number | undefined;
35438
+ hint?: string | undefined;
35439
+ messages?: {
35440
+ type: "info" | "error" | "success" | "warning";
35441
+ text: string;
35442
+ id?: number | undefined;
35443
+ }[] | undefined;
34596
35444
  } | {
34597
35445
  type: "URL";
34598
35446
  id: string;
@@ -35052,6 +35900,25 @@ export declare const formSchema: z.ZodObject<{
35052
35900
  text: string;
35053
35901
  id?: number | undefined;
35054
35902
  }[] | undefined;
35903
+ } | {
35904
+ type: "COUNTRY";
35905
+ id: string;
35906
+ required?: boolean | undefined;
35907
+ category?: "FIELD" | undefined;
35908
+ config?: {
35909
+ placeholder?: string | undefined;
35910
+ default_value?: string | undefined;
35911
+ } | undefined;
35912
+ sensitive?: boolean | undefined;
35913
+ label?: string | undefined;
35914
+ order?: number | undefined;
35915
+ visible?: boolean | undefined;
35916
+ hint?: string | undefined;
35917
+ messages?: {
35918
+ type: "info" | "error" | "success" | "warning";
35919
+ text: string;
35920
+ id?: number | undefined;
35921
+ }[] | undefined;
35055
35922
  } | {
35056
35923
  type: "URL";
35057
35924
  id: string;
@@ -35515,6 +36382,25 @@ export declare const formSchema: z.ZodObject<{
35515
36382
  text: string;
35516
36383
  id?: number | undefined;
35517
36384
  }[] | undefined;
36385
+ } | {
36386
+ type: "COUNTRY";
36387
+ id: string;
36388
+ visible: boolean;
36389
+ required?: boolean | undefined;
36390
+ category?: "FIELD" | undefined;
36391
+ config?: {
36392
+ placeholder?: string | undefined;
36393
+ default_value?: string | undefined;
36394
+ } | undefined;
36395
+ sensitive?: boolean | undefined;
36396
+ label?: string | undefined;
36397
+ order?: number | undefined;
36398
+ hint?: string | undefined;
36399
+ messages?: {
36400
+ type: "info" | "error" | "success" | "warning";
36401
+ text: string;
36402
+ id?: number | undefined;
36403
+ }[] | undefined;
35518
36404
  } | {
35519
36405
  type: "URL";
35520
36406
  id: string;
@@ -35983,6 +36869,25 @@ export declare const formSchema: z.ZodObject<{
35983
36869
  text: string;
35984
36870
  id?: number | undefined;
35985
36871
  }[] | undefined;
36872
+ } | {
36873
+ type: "COUNTRY";
36874
+ id: string;
36875
+ required?: boolean | undefined;
36876
+ category?: "FIELD" | undefined;
36877
+ config?: {
36878
+ placeholder?: string | undefined;
36879
+ default_value?: string | undefined;
36880
+ } | undefined;
36881
+ sensitive?: boolean | undefined;
36882
+ label?: string | undefined;
36883
+ order?: number | undefined;
36884
+ visible?: boolean | undefined;
36885
+ hint?: string | undefined;
36886
+ messages?: {
36887
+ type: "info" | "error" | "success" | "warning";
36888
+ text: string;
36889
+ id?: number | undefined;
36890
+ }[] | undefined;
35986
36891
  } | {
35987
36892
  type: "URL";
35988
36893
  id: string;
@@ -36623,6 +37528,25 @@ export declare const formSchema: z.ZodObject<{
36623
37528
  text: string;
36624
37529
  id?: number | undefined;
36625
37530
  }[] | undefined;
37531
+ } | {
37532
+ type: "COUNTRY";
37533
+ id: string;
37534
+ visible: boolean;
37535
+ required?: boolean | undefined;
37536
+ category?: "FIELD" | undefined;
37537
+ config?: {
37538
+ placeholder?: string | undefined;
37539
+ default_value?: string | undefined;
37540
+ } | undefined;
37541
+ sensitive?: boolean | undefined;
37542
+ label?: string | undefined;
37543
+ order?: number | undefined;
37544
+ hint?: string | undefined;
37545
+ messages?: {
37546
+ type: "info" | "error" | "success" | "warning";
37547
+ text: string;
37548
+ id?: number | undefined;
37549
+ }[] | undefined;
36626
37550
  } | {
36627
37551
  type: "URL";
36628
37552
  id: string;
@@ -37167,6 +38091,25 @@ export declare const formSchema: z.ZodObject<{
37167
38091
  text: string;
37168
38092
  id?: number | undefined;
37169
38093
  }[] | undefined;
38094
+ } | {
38095
+ type: "COUNTRY";
38096
+ id: string;
38097
+ required?: boolean | undefined;
38098
+ category?: "FIELD" | undefined;
38099
+ config?: {
38100
+ placeholder?: string | undefined;
38101
+ default_value?: string | undefined;
38102
+ } | undefined;
38103
+ sensitive?: boolean | undefined;
38104
+ label?: string | undefined;
38105
+ order?: number | undefined;
38106
+ visible?: boolean | undefined;
38107
+ hint?: string | undefined;
38108
+ messages?: {
38109
+ type: "info" | "error" | "success" | "warning";
38110
+ text: string;
38111
+ id?: number | undefined;
38112
+ }[] | undefined;
37170
38113
  } | {
37171
38114
  type: "URL";
37172
38115
  id: string;
@@ -38028,6 +38971,85 @@ export declare const uiScreenSchema: z.ZodObject<{
38028
38971
  id?: number | undefined;
38029
38972
  }[] | undefined;
38030
38973
  }>,
38974
+ z.ZodObject<{
38975
+ id: z.ZodString;
38976
+ order: z.ZodOptional<z.ZodNumber>;
38977
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38978
+ } & {
38979
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
38980
+ label: z.ZodOptional<z.ZodString>;
38981
+ hint: z.ZodOptional<z.ZodString>;
38982
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
38983
+ id: z.ZodOptional<z.ZodNumber>;
38984
+ text: z.ZodString;
38985
+ type: z.ZodEnum<[
38986
+ "info",
38987
+ "error",
38988
+ "success",
38989
+ "warning"
38990
+ ]>;
38991
+ }, "strip", z.ZodTypeAny, {
38992
+ type: "info" | "error" | "success" | "warning";
38993
+ text: string;
38994
+ id?: number | undefined;
38995
+ }, {
38996
+ type: "info" | "error" | "success" | "warning";
38997
+ text: string;
38998
+ id?: number | undefined;
38999
+ }>, "many">>;
39000
+ required: z.ZodOptional<z.ZodBoolean>;
39001
+ sensitive: z.ZodOptional<z.ZodBoolean>;
39002
+ } & {
39003
+ type: z.ZodLiteral<"COUNTRY">;
39004
+ config: z.ZodOptional<z.ZodObject<{
39005
+ placeholder: z.ZodOptional<z.ZodString>;
39006
+ default_value: z.ZodOptional<z.ZodString>;
39007
+ }, "strip", z.ZodTypeAny, {
39008
+ placeholder?: string | undefined;
39009
+ default_value?: string | undefined;
39010
+ }, {
39011
+ placeholder?: string | undefined;
39012
+ default_value?: string | undefined;
39013
+ }>>;
39014
+ }, "strip", z.ZodTypeAny, {
39015
+ type: "COUNTRY";
39016
+ id: string;
39017
+ visible: boolean;
39018
+ required?: boolean | undefined;
39019
+ category?: "FIELD" | undefined;
39020
+ config?: {
39021
+ placeholder?: string | undefined;
39022
+ default_value?: string | undefined;
39023
+ } | undefined;
39024
+ sensitive?: boolean | undefined;
39025
+ label?: string | undefined;
39026
+ order?: number | undefined;
39027
+ hint?: string | undefined;
39028
+ messages?: {
39029
+ type: "info" | "error" | "success" | "warning";
39030
+ text: string;
39031
+ id?: number | undefined;
39032
+ }[] | undefined;
39033
+ }, {
39034
+ type: "COUNTRY";
39035
+ id: string;
39036
+ required?: boolean | undefined;
39037
+ category?: "FIELD" | undefined;
39038
+ config?: {
39039
+ placeholder?: string | undefined;
39040
+ default_value?: string | undefined;
39041
+ } | undefined;
39042
+ sensitive?: boolean | undefined;
39043
+ label?: string | undefined;
39044
+ order?: number | undefined;
39045
+ visible?: boolean | undefined;
39046
+ hint?: string | undefined;
39047
+ messages?: {
39048
+ type: "info" | "error" | "success" | "warning";
39049
+ text: string;
39050
+ id?: number | undefined;
39051
+ }[] | undefined;
39052
+ }>,
38031
39053
  z.ZodObject<{
38032
39054
  id: z.ZodString;
38033
39055
  order: z.ZodOptional<z.ZodNumber>;
@@ -39688,6 +40710,25 @@ export declare const uiScreenSchema: z.ZodObject<{
39688
40710
  text: string;
39689
40711
  id?: number | undefined;
39690
40712
  }[] | undefined;
40713
+ } | {
40714
+ type: "COUNTRY";
40715
+ id: string;
40716
+ visible: boolean;
40717
+ required?: boolean | undefined;
40718
+ category?: "FIELD" | undefined;
40719
+ config?: {
40720
+ placeholder?: string | undefined;
40721
+ default_value?: string | undefined;
40722
+ } | undefined;
40723
+ sensitive?: boolean | undefined;
40724
+ label?: string | undefined;
40725
+ order?: number | undefined;
40726
+ hint?: string | undefined;
40727
+ messages?: {
40728
+ type: "info" | "error" | "success" | "warning";
40729
+ text: string;
40730
+ id?: number | undefined;
40731
+ }[] | undefined;
39691
40732
  } | {
39692
40733
  type: "URL";
39693
40734
  id: string;
@@ -40163,6 +41204,25 @@ export declare const uiScreenSchema: z.ZodObject<{
40163
41204
  text: string;
40164
41205
  id?: number | undefined;
40165
41206
  }[] | undefined;
41207
+ } | {
41208
+ type: "COUNTRY";
41209
+ id: string;
41210
+ required?: boolean | undefined;
41211
+ category?: "FIELD" | undefined;
41212
+ config?: {
41213
+ placeholder?: string | undefined;
41214
+ default_value?: string | undefined;
41215
+ } | undefined;
41216
+ sensitive?: boolean | undefined;
41217
+ label?: string | undefined;
41218
+ order?: number | undefined;
41219
+ visible?: boolean | undefined;
41220
+ hint?: string | undefined;
41221
+ messages?: {
41222
+ type: "info" | "error" | "success" | "warning";
41223
+ text: string;
41224
+ id?: number | undefined;
41225
+ }[] | undefined;
40166
41226
  } | {
40167
41227
  type: "URL";
40168
41228
  id: string;
@@ -40873,6 +41933,8 @@ export declare enum LoginSessionState {
40873
41933
  AUTHENTICATED = "authenticated",
40874
41934
  /** Waiting for email verification */
40875
41935
  AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification",
41936
+ /** Waiting for MFA verification */
41937
+ AWAITING_MFA = "awaiting_mfa",
40876
41938
  /** Waiting for hook/flow completion (form, page redirect) */
40877
41939
  AWAITING_HOOK = "awaiting_hook",
40878
41940
  /** Waiting for user to complete action on continuation page (change-email, account, etc.) */
@@ -42141,6 +43203,10 @@ export declare const tenantInsertSchema: z.ZodObject<{
42141
43203
  pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
42142
43204
  authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
42143
43205
  mfa: z.ZodOptional<z.ZodObject<{
43206
+ policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
43207
+ "never",
43208
+ "always"
43209
+ ]>>>;
42144
43210
  factors: z.ZodOptional<z.ZodObject<{
42145
43211
  sms: z.ZodDefault<z.ZodBoolean>;
42146
43212
  otp: z.ZodDefault<z.ZodBoolean>;
@@ -42205,6 +43271,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
42205
43271
  message?: string | undefined;
42206
43272
  }>>;
42207
43273
  }, "strip", z.ZodTypeAny, {
43274
+ policy?: "never" | "always" | undefined;
42208
43275
  factors?: {
42209
43276
  email: boolean;
42210
43277
  otp: boolean;
@@ -42228,6 +43295,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
42228
43295
  message?: string | undefined;
42229
43296
  } | undefined;
42230
43297
  }, {
43298
+ policy?: "never" | "always" | undefined;
42231
43299
  factors?: {
42232
43300
  email?: boolean | undefined;
42233
43301
  otp?: boolean | undefined;
@@ -42351,6 +43419,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
42351
43419
  pushed_authorization_requests_supported?: boolean | undefined;
42352
43420
  authorization_response_iss_parameter_supported?: boolean | undefined;
42353
43421
  mfa?: {
43422
+ policy?: "never" | "always" | undefined;
42354
43423
  factors?: {
42355
43424
  email: boolean;
42356
43425
  otp: boolean;
@@ -42474,6 +43543,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
42474
43543
  pushed_authorization_requests_supported?: boolean | undefined;
42475
43544
  authorization_response_iss_parameter_supported?: boolean | undefined;
42476
43545
  mfa?: {
43546
+ policy?: "never" | "always" | undefined;
42477
43547
  factors?: {
42478
43548
  email?: boolean | undefined;
42479
43549
  otp?: boolean | undefined;
@@ -42736,6 +43806,10 @@ export declare const tenantSchema: z.ZodObject<{
42736
43806
  pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
42737
43807
  authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
42738
43808
  mfa: z.ZodOptional<z.ZodObject<{
43809
+ policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
43810
+ "never",
43811
+ "always"
43812
+ ]>>>;
42739
43813
  factors: z.ZodOptional<z.ZodObject<{
42740
43814
  sms: z.ZodDefault<z.ZodBoolean>;
42741
43815
  otp: z.ZodDefault<z.ZodBoolean>;
@@ -42800,6 +43874,7 @@ export declare const tenantSchema: z.ZodObject<{
42800
43874
  message?: string | undefined;
42801
43875
  }>>;
42802
43876
  }, "strip", z.ZodTypeAny, {
43877
+ policy?: "never" | "always" | undefined;
42803
43878
  factors?: {
42804
43879
  email: boolean;
42805
43880
  otp: boolean;
@@ -42823,6 +43898,7 @@ export declare const tenantSchema: z.ZodObject<{
42823
43898
  message?: string | undefined;
42824
43899
  } | undefined;
42825
43900
  }, {
43901
+ policy?: "never" | "always" | undefined;
42826
43902
  factors?: {
42827
43903
  email?: boolean | undefined;
42828
43904
  otp?: boolean | undefined;
@@ -42950,6 +44026,7 @@ export declare const tenantSchema: z.ZodObject<{
42950
44026
  pushed_authorization_requests_supported?: boolean | undefined;
42951
44027
  authorization_response_iss_parameter_supported?: boolean | undefined;
42952
44028
  mfa?: {
44029
+ policy?: "never" | "always" | undefined;
42953
44030
  factors?: {
42954
44031
  email: boolean;
42955
44032
  otp: boolean;
@@ -43075,6 +44152,7 @@ export declare const tenantSchema: z.ZodObject<{
43075
44152
  pushed_authorization_requests_supported?: boolean | undefined;
43076
44153
  authorization_response_iss_parameter_supported?: boolean | undefined;
43077
44154
  mfa?: {
44155
+ policy?: "never" | "always" | undefined;
43078
44156
  factors?: {
43079
44157
  email?: boolean | undefined;
43080
44158
  otp?: boolean | undefined;
@@ -45824,6 +46902,10 @@ export declare const tenantSettingsSchema: z.ZodObject<{
45824
46902
  oidc_logout_prompt_enabled?: boolean | undefined;
45825
46903
  }>>;
45826
46904
  mfa: z.ZodOptional<z.ZodObject<{
46905
+ policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
46906
+ "never",
46907
+ "always"
46908
+ ]>>>;
45827
46909
  factors: z.ZodOptional<z.ZodObject<{
45828
46910
  sms: z.ZodDefault<z.ZodBoolean>;
45829
46911
  otp: z.ZodDefault<z.ZodBoolean>;
@@ -45888,6 +46970,7 @@ export declare const tenantSettingsSchema: z.ZodObject<{
45888
46970
  message?: string | undefined;
45889
46971
  }>>;
45890
46972
  }, "strip", z.ZodTypeAny, {
46973
+ policy?: "never" | "always" | undefined;
45891
46974
  factors?: {
45892
46975
  email: boolean;
45893
46976
  otp: boolean;
@@ -45911,6 +46994,7 @@ export declare const tenantSettingsSchema: z.ZodObject<{
45911
46994
  message?: string | undefined;
45912
46995
  } | undefined;
45913
46996
  }, {
46997
+ policy?: "never" | "always" | undefined;
45914
46998
  factors?: {
45915
46999
  email?: boolean | undefined;
45916
47000
  otp?: boolean | undefined;
@@ -45992,6 +47076,7 @@ export declare const tenantSettingsSchema: z.ZodObject<{
45992
47076
  oidc_logout_prompt_enabled?: boolean | undefined;
45993
47077
  } | undefined;
45994
47078
  mfa?: {
47079
+ policy?: "never" | "always" | undefined;
45995
47080
  factors?: {
45996
47081
  email: boolean;
45997
47082
  otp: boolean;
@@ -46073,6 +47158,7 @@ export declare const tenantSettingsSchema: z.ZodObject<{
46073
47158
  oidc_logout_prompt_enabled?: boolean | undefined;
46074
47159
  } | undefined;
46075
47160
  mfa?: {
47161
+ policy?: "never" | "always" | undefined;
46076
47162
  factors?: {
46077
47163
  email?: boolean | undefined;
46078
47164
  otp?: boolean | undefined;
@@ -46142,7 +47228,6 @@ export declare const promptScreenSchema: z.ZodEnum<[
46142
47228
  "mfa-voice",
46143
47229
  "mfa-phone",
46144
47230
  "mfa-webauthn",
46145
- "mfa-sms",
46146
47231
  "mfa-email",
46147
47232
  "mfa-recovery-code",
46148
47233
  "status",
@@ -46184,7 +47269,6 @@ export declare const customTextEntrySchema: z.ZodObject<{
46184
47269
  "mfa-voice",
46185
47270
  "mfa-phone",
46186
47271
  "mfa-webauthn",
46187
- "mfa-sms",
46188
47272
  "mfa-email",
46189
47273
  "mfa-recovery-code",
46190
47274
  "status",
@@ -46202,11 +47286,11 @@ export declare const customTextEntrySchema: z.ZodObject<{
46202
47286
  language: z.ZodString;
46203
47287
  custom_text: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
46204
47288
  }, "strip", z.ZodTypeAny, {
46205
- prompt: "status" | "signup" | "organizations" | "mfa" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-sms" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless";
47289
+ prompt: "status" | "signup" | "organizations" | "mfa" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless";
46206
47290
  language: string;
46207
47291
  custom_text: Record<string, Record<string, string>>;
46208
47292
  }, {
46209
- prompt: "status" | "signup" | "organizations" | "mfa" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-sms" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless";
47293
+ prompt: "status" | "signup" | "organizations" | "mfa" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless";
46210
47294
  language: string;
46211
47295
  custom_text: Record<string, Record<string, string>>;
46212
47296
  }>;
@@ -46232,6 +47316,105 @@ export declare const StrategyType: {
46232
47316
  readonly SOCIAL: "social";
46233
47317
  readonly PASSWORDLESS: "passwordless";
46234
47318
  };
47319
+ export declare const mfaEnrollmentTypeSchema: z.ZodEnum<[
47320
+ "phone",
47321
+ "totp",
47322
+ "email",
47323
+ "push",
47324
+ "webauthn"
47325
+ ]>;
47326
+ export type MfaEnrollmentType = z.infer<typeof mfaEnrollmentTypeSchema>;
47327
+ export declare const mfaEnrollmentInsertSchema: z.ZodEffects<z.ZodObject<{
47328
+ user_id: z.ZodString;
47329
+ type: z.ZodEnum<[
47330
+ "phone",
47331
+ "totp",
47332
+ "email",
47333
+ "push",
47334
+ "webauthn"
47335
+ ]>;
47336
+ phone_number: z.ZodOptional<z.ZodString>;
47337
+ totp_secret: z.ZodOptional<z.ZodString>;
47338
+ confirmed: z.ZodDefault<z.ZodBoolean>;
47339
+ }, "strip", z.ZodTypeAny, {
47340
+ type: "push" | "email" | "phone" | "totp" | "webauthn";
47341
+ user_id: string;
47342
+ confirmed: boolean;
47343
+ phone_number?: string | undefined;
47344
+ totp_secret?: string | undefined;
47345
+ }, {
47346
+ type: "push" | "email" | "phone" | "totp" | "webauthn";
47347
+ user_id: string;
47348
+ phone_number?: string | undefined;
47349
+ totp_secret?: string | undefined;
47350
+ confirmed?: boolean | undefined;
47351
+ }>, {
47352
+ type: "push" | "email" | "phone" | "totp" | "webauthn";
47353
+ user_id: string;
47354
+ confirmed: boolean;
47355
+ phone_number?: string | undefined;
47356
+ totp_secret?: string | undefined;
47357
+ }, {
47358
+ type: "push" | "email" | "phone" | "totp" | "webauthn";
47359
+ user_id: string;
47360
+ phone_number?: string | undefined;
47361
+ totp_secret?: string | undefined;
47362
+ confirmed?: boolean | undefined;
47363
+ }>;
47364
+ export type MfaEnrollmentInsert = z.infer<typeof mfaEnrollmentInsertSchema>;
47365
+ export declare const mfaEnrollmentSchema: z.ZodEffects<z.ZodObject<{
47366
+ id: z.ZodString;
47367
+ created_at: z.ZodString;
47368
+ updated_at: z.ZodString;
47369
+ user_id: z.ZodString;
47370
+ type: z.ZodEnum<[
47371
+ "phone",
47372
+ "totp",
47373
+ "email",
47374
+ "push",
47375
+ "webauthn"
47376
+ ]>;
47377
+ phone_number: z.ZodOptional<z.ZodString>;
47378
+ totp_secret: z.ZodOptional<z.ZodString>;
47379
+ confirmed: z.ZodDefault<z.ZodBoolean>;
47380
+ }, "strip", z.ZodTypeAny, {
47381
+ created_at: string;
47382
+ updated_at: string;
47383
+ type: "push" | "email" | "phone" | "totp" | "webauthn";
47384
+ id: string;
47385
+ user_id: string;
47386
+ confirmed: boolean;
47387
+ phone_number?: string | undefined;
47388
+ totp_secret?: string | undefined;
47389
+ }, {
47390
+ created_at: string;
47391
+ updated_at: string;
47392
+ type: "push" | "email" | "phone" | "totp" | "webauthn";
47393
+ id: string;
47394
+ user_id: string;
47395
+ phone_number?: string | undefined;
47396
+ totp_secret?: string | undefined;
47397
+ confirmed?: boolean | undefined;
47398
+ }>, {
47399
+ created_at: string;
47400
+ updated_at: string;
47401
+ type: "push" | "email" | "phone" | "totp" | "webauthn";
47402
+ id: string;
47403
+ user_id: string;
47404
+ confirmed: boolean;
47405
+ phone_number?: string | undefined;
47406
+ totp_secret?: string | undefined;
47407
+ }, {
47408
+ created_at: string;
47409
+ updated_at: string;
47410
+ type: "push" | "email" | "phone" | "totp" | "webauthn";
47411
+ id: string;
47412
+ user_id: string;
47413
+ phone_number?: string | undefined;
47414
+ totp_secret?: string | undefined;
47415
+ confirmed?: boolean | undefined;
47416
+ }>;
47417
+ export type MfaEnrollment = z.infer<typeof mfaEnrollmentSchema>;
46235
47418
  export declare function parseUserId(user_id: string): {
46236
47419
  connection: string;
46237
47420
  id: string;
@@ -46481,6 +47664,11 @@ export interface CodesAdapter {
46481
47664
  get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
46482
47665
  list: (tenant_id: string, params?: ListParams) => Promise<ListCodesResponse>;
46483
47666
  used: (tenant_id: string, code_id: string) => Promise<boolean>;
47667
+ /**
47668
+ * Atomically mark a code as used only if it has not been used yet.
47669
+ * Returns true if the code was successfully consumed (was unused), false otherwise.
47670
+ */
47671
+ consume: (tenant_id: string, code_id: string) => Promise<boolean>;
46484
47672
  remove: (tenant_id: string, code_id: string) => Promise<boolean>;
46485
47673
  }
46486
47674
  export interface PasswordsAdapter {
@@ -46717,6 +47905,13 @@ export interface GeoAdapter {
46717
47905
  */
46718
47906
  getGeoInfo(headers: Record<string, string>): Promise<GeoInfo | null>;
46719
47907
  }
47908
+ export interface MfaEnrollmentsAdapter {
47909
+ create: (tenant_id: string, enrollment: MfaEnrollmentInsert) => Promise<MfaEnrollment>;
47910
+ get: (tenant_id: string, enrollment_id: string) => Promise<MfaEnrollment | null>;
47911
+ list: (tenant_id: string, user_id: string) => Promise<MfaEnrollment[]>;
47912
+ update: (tenant_id: string, enrollment_id: string, data: Partial<MfaEnrollmentInsert>) => Promise<MfaEnrollment>;
47913
+ remove: (tenant_id: string, enrollment_id: string) => Promise<boolean>;
47914
+ }
46720
47915
  export interface StatsListParams {
46721
47916
  from?: string;
46722
47917
  to?: string;
@@ -46803,6 +47998,7 @@ export interface DataAdapters {
46803
47998
  users: UserDataAdapter;
46804
47999
  userRoles: UserRolesAdapter;
46805
48000
  organizations: OrganizationsAdapter;
48001
+ mfaEnrollments: MfaEnrollmentsAdapter;
46806
48002
  userOrganizations: UserOrganizationsAdapter;
46807
48003
  /**
46808
48004
  * Optional session cleanup function.