@authhero/kysely-adapter 10.63.1 → 10.64.1

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.
@@ -306,6 +306,7 @@ declare const clientInsertSchema: z.ZodObject<{
306
306
  web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
307
307
  client_aliases: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
308
308
  allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
309
+ connections: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
309
310
  allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
310
311
  session_transfer: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
311
312
  oidc_logout: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -378,6 +379,7 @@ declare const clientInsertSchema: z.ZodObject<{
378
379
  web_origins?: string[] | undefined;
379
380
  client_aliases?: string[] | undefined;
380
381
  allowed_clients?: string[] | undefined;
382
+ connections?: string[] | undefined;
381
383
  allowed_logout_urls?: string[] | undefined;
382
384
  session_transfer?: Record<string, any> | undefined;
383
385
  oidc_logout?: Record<string, any> | undefined;
@@ -419,6 +421,7 @@ declare const clientInsertSchema: z.ZodObject<{
419
421
  web_origins?: string[] | undefined;
420
422
  client_aliases?: string[] | undefined;
421
423
  allowed_clients?: string[] | undefined;
424
+ connections?: string[] | undefined;
422
425
  allowed_logout_urls?: string[] | undefined;
423
426
  session_transfer?: Record<string, any> | undefined;
424
427
  oidc_logout?: Record<string, any> | undefined;
@@ -493,6 +496,7 @@ declare const clientSchema: z.ZodObject<{
493
496
  web_origins: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
494
497
  client_aliases: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
495
498
  allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
499
+ connections: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
496
500
  allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
497
501
  session_transfer: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
498
502
  oidc_logout: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -569,6 +573,7 @@ declare const clientSchema: z.ZodObject<{
569
573
  web_origins?: string[] | undefined;
570
574
  client_aliases?: string[] | undefined;
571
575
  allowed_clients?: string[] | undefined;
576
+ connections?: string[] | undefined;
572
577
  allowed_logout_urls?: string[] | undefined;
573
578
  session_transfer?: Record<string, any> | undefined;
574
579
  oidc_logout?: Record<string, any> | undefined;
@@ -612,6 +617,7 @@ declare const clientSchema: z.ZodObject<{
612
617
  web_origins?: string[] | undefined;
613
618
  client_aliases?: string[] | undefined;
614
619
  allowed_clients?: string[] | undefined;
620
+ connections?: string[] | undefined;
615
621
  allowed_logout_urls?: string[] | undefined;
616
622
  session_transfer?: Record<string, any> | undefined;
617
623
  oidc_logout?: Record<string, any> | undefined;
@@ -1504,6 +1510,41 @@ declare const LegacyClientSchema: z.ZodObject<{
1504
1510
  global: boolean;
1505
1511
  is_first_party: boolean;
1506
1512
  oidc_conformant: boolean;
1513
+ connections: {
1514
+ options: {
1515
+ provider?: string | undefined;
1516
+ client_id?: string | undefined;
1517
+ client_secret?: string | undefined;
1518
+ scope?: string | undefined;
1519
+ kid?: string | undefined;
1520
+ team_id?: string | undefined;
1521
+ realms?: string | undefined;
1522
+ authentication_method?: string | undefined;
1523
+ app_secret?: string | undefined;
1524
+ authorization_endpoint?: string | undefined;
1525
+ token_endpoint?: string | undefined;
1526
+ userinfo_endpoint?: string | undefined;
1527
+ jwks_uri?: string | undefined;
1528
+ discovery_url?: string | undefined;
1529
+ issuer?: string | undefined;
1530
+ from?: string | undefined;
1531
+ twilio_sid?: string | undefined;
1532
+ twilio_token?: string | undefined;
1533
+ icon_url?: string | undefined;
1534
+ };
1535
+ created_at: string;
1536
+ updated_at: string;
1537
+ name: string;
1538
+ strategy: string;
1539
+ id?: string | undefined;
1540
+ response_type?: AuthorizationResponseType | undefined;
1541
+ response_mode?: AuthorizationResponseMode | undefined;
1542
+ display_name?: string | undefined;
1543
+ enabled_clients?: string[] | undefined;
1544
+ is_domain_connection?: boolean | undefined;
1545
+ show_as_button?: boolean | undefined;
1546
+ metadata?: Record<string, any> | undefined;
1547
+ }[];
1507
1548
  sso: boolean;
1508
1549
  sso_disabled: boolean;
1509
1550
  cross_origin_authentication: boolean;
@@ -1611,41 +1652,6 @@ declare const LegacyClientSchema: z.ZodObject<{
1611
1652
  pushed_authorization_requests_supported?: boolean | undefined;
1612
1653
  authorization_response_iss_parameter_supported?: boolean | undefined;
1613
1654
  };
1614
- connections: {
1615
- options: {
1616
- provider?: string | undefined;
1617
- client_id?: string | undefined;
1618
- client_secret?: string | undefined;
1619
- scope?: string | undefined;
1620
- kid?: string | undefined;
1621
- team_id?: string | undefined;
1622
- realms?: string | undefined;
1623
- authentication_method?: string | undefined;
1624
- app_secret?: string | undefined;
1625
- authorization_endpoint?: string | undefined;
1626
- token_endpoint?: string | undefined;
1627
- userinfo_endpoint?: string | undefined;
1628
- jwks_uri?: string | undefined;
1629
- discovery_url?: string | undefined;
1630
- issuer?: string | undefined;
1631
- from?: string | undefined;
1632
- twilio_sid?: string | undefined;
1633
- twilio_token?: string | undefined;
1634
- icon_url?: string | undefined;
1635
- };
1636
- created_at: string;
1637
- updated_at: string;
1638
- name: string;
1639
- strategy: string;
1640
- id?: string | undefined;
1641
- response_type?: AuthorizationResponseType | undefined;
1642
- response_mode?: AuthorizationResponseMode | undefined;
1643
- display_name?: string | undefined;
1644
- enabled_clients?: string[] | undefined;
1645
- is_domain_connection?: boolean | undefined;
1646
- show_as_button?: boolean | undefined;
1647
- metadata?: Record<string, any> | undefined;
1648
- }[];
1649
1655
  description?: string | undefined;
1650
1656
  refresh_token?: Record<string, any> | undefined;
1651
1657
  client_secret?: string | undefined;
@@ -1686,6 +1692,41 @@ declare const LegacyClientSchema: z.ZodObject<{
1686
1692
  updated_at: string;
1687
1693
  name: string;
1688
1694
  client_id: string;
1695
+ connections: {
1696
+ created_at: string;
1697
+ updated_at: string;
1698
+ name: string;
1699
+ strategy: string;
1700
+ options?: {
1701
+ provider?: string | undefined;
1702
+ client_id?: string | undefined;
1703
+ client_secret?: string | undefined;
1704
+ scope?: string | undefined;
1705
+ kid?: string | undefined;
1706
+ team_id?: string | undefined;
1707
+ realms?: string | undefined;
1708
+ authentication_method?: string | undefined;
1709
+ app_secret?: string | undefined;
1710
+ authorization_endpoint?: string | undefined;
1711
+ token_endpoint?: string | undefined;
1712
+ userinfo_endpoint?: string | undefined;
1713
+ jwks_uri?: string | undefined;
1714
+ discovery_url?: string | undefined;
1715
+ issuer?: string | undefined;
1716
+ from?: string | undefined;
1717
+ twilio_sid?: string | undefined;
1718
+ twilio_token?: string | undefined;
1719
+ icon_url?: string | undefined;
1720
+ } | undefined;
1721
+ id?: string | undefined;
1722
+ response_type?: AuthorizationResponseType | undefined;
1723
+ response_mode?: AuthorizationResponseMode | undefined;
1724
+ display_name?: string | undefined;
1725
+ enabled_clients?: string[] | undefined;
1726
+ is_domain_connection?: boolean | undefined;
1727
+ show_as_button?: boolean | undefined;
1728
+ metadata?: Record<string, any> | undefined;
1729
+ }[];
1689
1730
  tenant: {
1690
1731
  created_at: string | null;
1691
1732
  updated_at: string | null;
@@ -1787,41 +1828,6 @@ declare const LegacyClientSchema: z.ZodObject<{
1787
1828
  pushed_authorization_requests_supported?: boolean | undefined;
1788
1829
  authorization_response_iss_parameter_supported?: boolean | undefined;
1789
1830
  };
1790
- connections: {
1791
- created_at: string;
1792
- updated_at: string;
1793
- name: string;
1794
- strategy: string;
1795
- options?: {
1796
- provider?: string | undefined;
1797
- client_id?: string | undefined;
1798
- client_secret?: string | undefined;
1799
- scope?: string | undefined;
1800
- kid?: string | undefined;
1801
- team_id?: string | undefined;
1802
- realms?: string | undefined;
1803
- authentication_method?: string | undefined;
1804
- app_secret?: string | undefined;
1805
- authorization_endpoint?: string | undefined;
1806
- token_endpoint?: string | undefined;
1807
- userinfo_endpoint?: string | undefined;
1808
- jwks_uri?: string | undefined;
1809
- discovery_url?: string | undefined;
1810
- issuer?: string | undefined;
1811
- from?: string | undefined;
1812
- twilio_sid?: string | undefined;
1813
- twilio_token?: string | undefined;
1814
- icon_url?: string | undefined;
1815
- } | undefined;
1816
- id?: string | undefined;
1817
- response_type?: AuthorizationResponseType | undefined;
1818
- response_mode?: AuthorizationResponseMode | undefined;
1819
- display_name?: string | undefined;
1820
- enabled_clients?: string[] | undefined;
1821
- is_domain_connection?: boolean | undefined;
1822
- show_as_button?: boolean | undefined;
1823
- metadata?: Record<string, any> | undefined;
1824
- }[];
1825
1831
  description?: string | undefined;
1826
1832
  refresh_token?: Record<string, any> | undefined;
1827
1833
  global?: boolean | undefined;
@@ -2673,7 +2679,11 @@ declare const formInsertSchema: z.ZodObject<{
2673
2679
  components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
2674
2680
  z.ZodObject<{
2675
2681
  id: z.ZodString;
2682
+ order: z.ZodOptional<z.ZodNumber>;
2683
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2684
+ } & {
2676
2685
  category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
2686
+ } & {
2677
2687
  type: z.ZodLiteral<"RICH_TEXT">;
2678
2688
  config: z.ZodObject<{
2679
2689
  content: z.ZodString;
@@ -2682,8 +2692,6 @@ declare const formInsertSchema: z.ZodObject<{
2682
2692
  }, {
2683
2693
  content: string;
2684
2694
  }>;
2685
- order: z.ZodOptional<z.ZodNumber>;
2686
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2687
2695
  }, "strip", z.ZodTypeAny, {
2688
2696
  type: "RICH_TEXT";
2689
2697
  id: string;
@@ -2703,9 +2711,15 @@ declare const formInsertSchema: z.ZodObject<{
2703
2711
  order?: number | undefined;
2704
2712
  visible?: boolean | undefined;
2705
2713
  }>,
2706
- z.ZodObject<{
2714
+ z.ZodObject<Omit<{
2707
2715
  id: z.ZodString;
2716
+ order: z.ZodOptional<z.ZodNumber>;
2717
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2718
+ } & {
2708
2719
  category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
2720
+ required: z.ZodOptional<z.ZodBoolean>;
2721
+ sensitive: z.ZodOptional<z.ZodBoolean>;
2722
+ }, "sensitive"> & {
2709
2723
  type: z.ZodLiteral<"LEGAL">;
2710
2724
  config: z.ZodObject<{
2711
2725
  text: z.ZodString;
@@ -2717,9 +2731,6 @@ declare const formInsertSchema: z.ZodObject<{
2717
2731
  text: string;
2718
2732
  html?: boolean | undefined;
2719
2733
  }>;
2720
- required: z.ZodOptional<z.ZodBoolean>;
2721
- order: z.ZodOptional<z.ZodNumber>;
2722
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2723
2734
  }, "strip", z.ZodTypeAny, {
2724
2735
  type: "LEGAL";
2725
2736
  id: string;
@@ -2745,7 +2756,13 @@ declare const formInsertSchema: z.ZodObject<{
2745
2756
  }>,
2746
2757
  z.ZodObject<{
2747
2758
  id: z.ZodString;
2759
+ order: z.ZodOptional<z.ZodNumber>;
2760
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2761
+ } & {
2748
2762
  category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
2763
+ required: z.ZodOptional<z.ZodBoolean>;
2764
+ sensitive: z.ZodOptional<z.ZodBoolean>;
2765
+ } & {
2749
2766
  type: z.ZodLiteral<"TEXT">;
2750
2767
  config: z.ZodObject<{
2751
2768
  placeholder: z.ZodOptional<z.ZodString>;
@@ -2757,10 +2774,6 @@ declare const formInsertSchema: z.ZodObject<{
2757
2774
  placeholder?: string | undefined;
2758
2775
  multiline?: boolean | undefined;
2759
2776
  }>;
2760
- required: z.ZodOptional<z.ZodBoolean>;
2761
- sensitive: z.ZodOptional<z.ZodBoolean>;
2762
- order: z.ZodOptional<z.ZodNumber>;
2763
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2764
2777
  }, "strip", z.ZodTypeAny, {
2765
2778
  type: "TEXT";
2766
2779
  id: string;
@@ -2788,7 +2801,11 @@ declare const formInsertSchema: z.ZodObject<{
2788
2801
  }>,
2789
2802
  z.ZodObject<{
2790
2803
  id: z.ZodString;
2804
+ order: z.ZodOptional<z.ZodNumber>;
2805
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2806
+ } & {
2791
2807
  category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
2808
+ } & {
2792
2809
  type: z.ZodLiteral<"NEXT_BUTTON">;
2793
2810
  config: z.ZodObject<{
2794
2811
  text: z.ZodOptional<z.ZodString>;
@@ -2797,8 +2814,6 @@ declare const formInsertSchema: z.ZodObject<{
2797
2814
  }, {
2798
2815
  text?: string | undefined;
2799
2816
  }>;
2800
- order: z.ZodOptional<z.ZodNumber>;
2801
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2802
2817
  }, "strip", z.ZodTypeAny, {
2803
2818
  type: "NEXT_BUTTON";
2804
2819
  id: string;
@@ -2817,98 +2832,305 @@ declare const formInsertSchema: z.ZodObject<{
2817
2832
  category?: "BLOCK" | undefined;
2818
2833
  order?: number | undefined;
2819
2834
  visible?: boolean | undefined;
2820
- }>
2821
- ]>, "many">;
2822
- next_node: z.ZodOptional<z.ZodString>;
2823
- }, "strip", z.ZodTypeAny, {
2824
- components: ({
2825
- type: "RICH_TEXT";
2826
- id: string;
2827
- config: {
2828
- content: string;
2829
- };
2830
- visible: boolean;
2831
- category?: "BLOCK" | undefined;
2832
- order?: number | undefined;
2833
- } | {
2834
- type: "LEGAL";
2835
- id: string;
2836
- config: {
2837
- text: string;
2838
- html?: boolean | undefined;
2839
- };
2840
- visible: boolean;
2841
- required?: boolean | undefined;
2842
- category?: "FIELD" | undefined;
2843
- order?: number | undefined;
2844
- } | {
2845
- type: "TEXT";
2846
- id: string;
2847
- config: {
2848
- placeholder?: string | undefined;
2849
- multiline?: boolean | undefined;
2850
- };
2851
- visible: boolean;
2852
- required?: boolean | undefined;
2853
- category?: "FIELD" | undefined;
2854
- sensitive?: boolean | undefined;
2855
- order?: number | undefined;
2856
- } | {
2857
- type: "NEXT_BUTTON";
2858
- id: string;
2859
- config: {
2860
- text?: string | undefined;
2861
- };
2862
- visible: boolean;
2863
- category?: "BLOCK" | undefined;
2864
- order?: number | undefined;
2865
- })[];
2866
- next_node?: string | undefined;
2867
- }, {
2868
- components: ({
2869
- type: "RICH_TEXT";
2870
- id: string;
2871
- config: {
2872
- content: string;
2873
- };
2874
- category?: "BLOCK" | undefined;
2875
- order?: number | undefined;
2876
- visible?: boolean | undefined;
2877
- } | {
2878
- type: "LEGAL";
2879
- id: string;
2880
- config: {
2881
- text: string;
2882
- html?: boolean | undefined;
2883
- };
2884
- required?: boolean | undefined;
2885
- category?: "FIELD" | undefined;
2886
- order?: number | undefined;
2887
- visible?: boolean | undefined;
2888
- } | {
2889
- type: "TEXT";
2890
- id: string;
2891
- config: {
2892
- placeholder?: string | undefined;
2893
- multiline?: boolean | undefined;
2894
- };
2895
- required?: boolean | undefined;
2896
- category?: "FIELD" | undefined;
2897
- sensitive?: boolean | undefined;
2898
- order?: number | undefined;
2899
- visible?: boolean | undefined;
2900
- } | {
2901
- type: "NEXT_BUTTON";
2902
- id: string;
2903
- config: {
2904
- text?: string | undefined;
2905
- };
2906
- category?: "BLOCK" | undefined;
2907
- order?: number | undefined;
2908
- visible?: boolean | undefined;
2909
- })[];
2910
- next_node?: string | undefined;
2911
- }>;
2835
+ }>,
2836
+ z.ZodObject<{
2837
+ id: z.ZodString;
2838
+ order: z.ZodOptional<z.ZodNumber>;
2839
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2840
+ } & {
2841
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
2842
+ required: z.ZodOptional<z.ZodBoolean>;
2843
+ sensitive: z.ZodOptional<z.ZodBoolean>;
2844
+ } & {
2845
+ type: z.ZodLiteral<"EMAIL">;
2846
+ config: z.ZodObject<{
2847
+ label: z.ZodOptional<z.ZodString>;
2848
+ placeholder: z.ZodOptional<z.ZodString>;
2849
+ }, "strip", z.ZodTypeAny, {
2850
+ label?: string | undefined;
2851
+ placeholder?: string | undefined;
2852
+ }, {
2853
+ label?: string | undefined;
2854
+ placeholder?: string | undefined;
2855
+ }>;
2856
+ }, "strip", z.ZodTypeAny, {
2857
+ type: "EMAIL";
2858
+ id: string;
2859
+ config: {
2860
+ label?: string | undefined;
2861
+ placeholder?: string | undefined;
2862
+ };
2863
+ visible: boolean;
2864
+ required?: boolean | undefined;
2865
+ category?: "FIELD" | undefined;
2866
+ sensitive?: boolean | undefined;
2867
+ order?: number | undefined;
2868
+ }, {
2869
+ type: "EMAIL";
2870
+ id: string;
2871
+ config: {
2872
+ label?: string | undefined;
2873
+ placeholder?: string | undefined;
2874
+ };
2875
+ required?: boolean | undefined;
2876
+ category?: "FIELD" | undefined;
2877
+ sensitive?: boolean | undefined;
2878
+ order?: number | undefined;
2879
+ visible?: boolean | undefined;
2880
+ }>,
2881
+ z.ZodObject<{
2882
+ id: z.ZodString;
2883
+ order: z.ZodOptional<z.ZodNumber>;
2884
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2885
+ } & {
2886
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
2887
+ required: z.ZodOptional<z.ZodBoolean>;
2888
+ sensitive: z.ZodOptional<z.ZodBoolean>;
2889
+ } & {
2890
+ type: z.ZodLiteral<"NUMBER">;
2891
+ config: z.ZodObject<{
2892
+ label: z.ZodOptional<z.ZodString>;
2893
+ placeholder: z.ZodOptional<z.ZodString>;
2894
+ }, "strip", z.ZodTypeAny, {
2895
+ label?: string | undefined;
2896
+ placeholder?: string | undefined;
2897
+ }, {
2898
+ label?: string | undefined;
2899
+ placeholder?: string | undefined;
2900
+ }>;
2901
+ }, "strip", z.ZodTypeAny, {
2902
+ type: "NUMBER";
2903
+ id: string;
2904
+ config: {
2905
+ label?: string | undefined;
2906
+ placeholder?: string | undefined;
2907
+ };
2908
+ visible: boolean;
2909
+ required?: boolean | undefined;
2910
+ category?: "FIELD" | undefined;
2911
+ sensitive?: boolean | undefined;
2912
+ order?: number | undefined;
2913
+ }, {
2914
+ type: "NUMBER";
2915
+ id: string;
2916
+ config: {
2917
+ label?: string | undefined;
2918
+ placeholder?: string | undefined;
2919
+ };
2920
+ required?: boolean | undefined;
2921
+ category?: "FIELD" | undefined;
2922
+ sensitive?: boolean | undefined;
2923
+ order?: number | undefined;
2924
+ visible?: boolean | undefined;
2925
+ }>,
2926
+ z.ZodObject<{
2927
+ id: z.ZodString;
2928
+ order: z.ZodOptional<z.ZodNumber>;
2929
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2930
+ } & {
2931
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
2932
+ required: z.ZodOptional<z.ZodBoolean>;
2933
+ sensitive: z.ZodOptional<z.ZodBoolean>;
2934
+ } & {
2935
+ type: z.ZodLiteral<"PHONE">;
2936
+ config: z.ZodObject<{
2937
+ label: z.ZodOptional<z.ZodString>;
2938
+ placeholder: z.ZodOptional<z.ZodString>;
2939
+ }, "strip", z.ZodTypeAny, {
2940
+ label?: string | undefined;
2941
+ placeholder?: string | undefined;
2942
+ }, {
2943
+ label?: string | undefined;
2944
+ placeholder?: string | undefined;
2945
+ }>;
2946
+ }, "strip", z.ZodTypeAny, {
2947
+ type: "PHONE";
2948
+ id: string;
2949
+ config: {
2950
+ label?: string | undefined;
2951
+ placeholder?: string | undefined;
2952
+ };
2953
+ visible: boolean;
2954
+ required?: boolean | undefined;
2955
+ category?: "FIELD" | undefined;
2956
+ sensitive?: boolean | undefined;
2957
+ order?: number | undefined;
2958
+ }, {
2959
+ type: "PHONE";
2960
+ id: string;
2961
+ config: {
2962
+ label?: string | undefined;
2963
+ placeholder?: string | undefined;
2964
+ };
2965
+ required?: boolean | undefined;
2966
+ category?: "FIELD" | undefined;
2967
+ sensitive?: boolean | undefined;
2968
+ order?: number | undefined;
2969
+ visible?: boolean | undefined;
2970
+ }>
2971
+ ]>, "many">;
2972
+ next_node: z.ZodOptional<z.ZodString>;
2973
+ }, "strip", z.ZodTypeAny, {
2974
+ components: ({
2975
+ type: "RICH_TEXT";
2976
+ id: string;
2977
+ config: {
2978
+ content: string;
2979
+ };
2980
+ visible: boolean;
2981
+ category?: "BLOCK" | undefined;
2982
+ order?: number | undefined;
2983
+ } | {
2984
+ type: "LEGAL";
2985
+ id: string;
2986
+ config: {
2987
+ text: string;
2988
+ html?: boolean | undefined;
2989
+ };
2990
+ visible: boolean;
2991
+ required?: boolean | undefined;
2992
+ category?: "FIELD" | undefined;
2993
+ order?: number | undefined;
2994
+ } | {
2995
+ type: "TEXT";
2996
+ id: string;
2997
+ config: {
2998
+ placeholder?: string | undefined;
2999
+ multiline?: boolean | undefined;
3000
+ };
3001
+ visible: boolean;
3002
+ required?: boolean | undefined;
3003
+ category?: "FIELD" | undefined;
3004
+ sensitive?: boolean | undefined;
3005
+ order?: number | undefined;
3006
+ } | {
3007
+ type: "NEXT_BUTTON";
3008
+ id: string;
3009
+ config: {
3010
+ text?: string | undefined;
3011
+ };
3012
+ visible: boolean;
3013
+ category?: "BLOCK" | undefined;
3014
+ order?: number | undefined;
3015
+ } | {
3016
+ type: "EMAIL";
3017
+ id: string;
3018
+ config: {
3019
+ label?: string | undefined;
3020
+ placeholder?: string | undefined;
3021
+ };
3022
+ visible: boolean;
3023
+ required?: boolean | undefined;
3024
+ category?: "FIELD" | undefined;
3025
+ sensitive?: boolean | undefined;
3026
+ order?: number | undefined;
3027
+ } | {
3028
+ type: "NUMBER";
3029
+ id: string;
3030
+ config: {
3031
+ label?: string | undefined;
3032
+ placeholder?: string | undefined;
3033
+ };
3034
+ visible: boolean;
3035
+ required?: boolean | undefined;
3036
+ category?: "FIELD" | undefined;
3037
+ sensitive?: boolean | undefined;
3038
+ order?: number | undefined;
3039
+ } | {
3040
+ type: "PHONE";
3041
+ id: string;
3042
+ config: {
3043
+ label?: string | undefined;
3044
+ placeholder?: string | undefined;
3045
+ };
3046
+ visible: boolean;
3047
+ required?: boolean | undefined;
3048
+ category?: "FIELD" | undefined;
3049
+ sensitive?: boolean | undefined;
3050
+ order?: number | undefined;
3051
+ })[];
3052
+ next_node?: string | undefined;
3053
+ }, {
3054
+ components: ({
3055
+ type: "RICH_TEXT";
3056
+ id: string;
3057
+ config: {
3058
+ content: string;
3059
+ };
3060
+ category?: "BLOCK" | undefined;
3061
+ order?: number | undefined;
3062
+ visible?: boolean | undefined;
3063
+ } | {
3064
+ type: "LEGAL";
3065
+ id: string;
3066
+ config: {
3067
+ text: string;
3068
+ html?: boolean | undefined;
3069
+ };
3070
+ required?: boolean | undefined;
3071
+ category?: "FIELD" | undefined;
3072
+ order?: number | undefined;
3073
+ visible?: boolean | undefined;
3074
+ } | {
3075
+ type: "TEXT";
3076
+ id: string;
3077
+ config: {
3078
+ placeholder?: string | undefined;
3079
+ multiline?: boolean | undefined;
3080
+ };
3081
+ required?: boolean | undefined;
3082
+ category?: "FIELD" | undefined;
3083
+ sensitive?: boolean | undefined;
3084
+ order?: number | undefined;
3085
+ visible?: boolean | undefined;
3086
+ } | {
3087
+ type: "NEXT_BUTTON";
3088
+ id: string;
3089
+ config: {
3090
+ text?: string | undefined;
3091
+ };
3092
+ category?: "BLOCK" | undefined;
3093
+ order?: number | undefined;
3094
+ visible?: boolean | undefined;
3095
+ } | {
3096
+ type: "EMAIL";
3097
+ id: string;
3098
+ config: {
3099
+ label?: string | undefined;
3100
+ placeholder?: string | undefined;
3101
+ };
3102
+ required?: boolean | undefined;
3103
+ category?: "FIELD" | undefined;
3104
+ sensitive?: boolean | undefined;
3105
+ order?: number | undefined;
3106
+ visible?: boolean | undefined;
3107
+ } | {
3108
+ type: "NUMBER";
3109
+ id: string;
3110
+ config: {
3111
+ label?: string | undefined;
3112
+ placeholder?: string | undefined;
3113
+ };
3114
+ required?: boolean | undefined;
3115
+ category?: "FIELD" | undefined;
3116
+ sensitive?: boolean | undefined;
3117
+ order?: number | undefined;
3118
+ visible?: boolean | undefined;
3119
+ } | {
3120
+ type: "PHONE";
3121
+ id: string;
3122
+ config: {
3123
+ label?: string | undefined;
3124
+ placeholder?: string | undefined;
3125
+ };
3126
+ required?: boolean | undefined;
3127
+ category?: "FIELD" | undefined;
3128
+ sensitive?: boolean | undefined;
3129
+ order?: number | undefined;
3130
+ visible?: boolean | undefined;
3131
+ })[];
3132
+ next_node?: string | undefined;
3133
+ }>;
2912
3134
  }, "strip", z.ZodTypeAny, {
2913
3135
  type: "STEP";
2914
3136
  id: string;
@@ -2954,6 +3176,42 @@ declare const formInsertSchema: z.ZodObject<{
2954
3176
  visible: boolean;
2955
3177
  category?: "BLOCK" | undefined;
2956
3178
  order?: number | undefined;
3179
+ } | {
3180
+ type: "EMAIL";
3181
+ id: string;
3182
+ config: {
3183
+ label?: string | undefined;
3184
+ placeholder?: string | undefined;
3185
+ };
3186
+ visible: boolean;
3187
+ required?: boolean | undefined;
3188
+ category?: "FIELD" | undefined;
3189
+ sensitive?: boolean | undefined;
3190
+ order?: number | undefined;
3191
+ } | {
3192
+ type: "NUMBER";
3193
+ id: string;
3194
+ config: {
3195
+ label?: string | undefined;
3196
+ placeholder?: string | undefined;
3197
+ };
3198
+ visible: boolean;
3199
+ required?: boolean | undefined;
3200
+ category?: "FIELD" | undefined;
3201
+ sensitive?: boolean | undefined;
3202
+ order?: number | undefined;
3203
+ } | {
3204
+ type: "PHONE";
3205
+ id: string;
3206
+ config: {
3207
+ label?: string | undefined;
3208
+ placeholder?: string | undefined;
3209
+ };
3210
+ visible: boolean;
3211
+ required?: boolean | undefined;
3212
+ category?: "FIELD" | undefined;
3213
+ sensitive?: boolean | undefined;
3214
+ order?: number | undefined;
2957
3215
  })[];
2958
3216
  next_node?: string | undefined;
2959
3217
  };
@@ -3007,6 +3265,42 @@ declare const formInsertSchema: z.ZodObject<{
3007
3265
  category?: "BLOCK" | undefined;
3008
3266
  order?: number | undefined;
3009
3267
  visible?: boolean | undefined;
3268
+ } | {
3269
+ type: "EMAIL";
3270
+ id: string;
3271
+ config: {
3272
+ label?: string | undefined;
3273
+ placeholder?: string | undefined;
3274
+ };
3275
+ required?: boolean | undefined;
3276
+ category?: "FIELD" | undefined;
3277
+ sensitive?: boolean | undefined;
3278
+ order?: number | undefined;
3279
+ visible?: boolean | undefined;
3280
+ } | {
3281
+ type: "NUMBER";
3282
+ id: string;
3283
+ config: {
3284
+ label?: string | undefined;
3285
+ placeholder?: string | undefined;
3286
+ };
3287
+ required?: boolean | undefined;
3288
+ category?: "FIELD" | undefined;
3289
+ sensitive?: boolean | undefined;
3290
+ order?: number | undefined;
3291
+ visible?: boolean | undefined;
3292
+ } | {
3293
+ type: "PHONE";
3294
+ id: string;
3295
+ config: {
3296
+ label?: string | undefined;
3297
+ placeholder?: string | undefined;
3298
+ };
3299
+ required?: boolean | undefined;
3300
+ category?: "FIELD" | undefined;
3301
+ sensitive?: boolean | undefined;
3302
+ order?: number | undefined;
3303
+ visible?: boolean | undefined;
3010
3304
  })[];
3011
3305
  next_node?: string | undefined;
3012
3306
  };
@@ -3217,6 +3511,42 @@ declare const formInsertSchema: z.ZodObject<{
3217
3511
  visible: boolean;
3218
3512
  category?: "BLOCK" | undefined;
3219
3513
  order?: number | undefined;
3514
+ } | {
3515
+ type: "EMAIL";
3516
+ id: string;
3517
+ config: {
3518
+ label?: string | undefined;
3519
+ placeholder?: string | undefined;
3520
+ };
3521
+ visible: boolean;
3522
+ required?: boolean | undefined;
3523
+ category?: "FIELD" | undefined;
3524
+ sensitive?: boolean | undefined;
3525
+ order?: number | undefined;
3526
+ } | {
3527
+ type: "NUMBER";
3528
+ id: string;
3529
+ config: {
3530
+ label?: string | undefined;
3531
+ placeholder?: string | undefined;
3532
+ };
3533
+ visible: boolean;
3534
+ required?: boolean | undefined;
3535
+ category?: "FIELD" | undefined;
3536
+ sensitive?: boolean | undefined;
3537
+ order?: number | undefined;
3538
+ } | {
3539
+ type: "PHONE";
3540
+ id: string;
3541
+ config: {
3542
+ label?: string | undefined;
3543
+ placeholder?: string | undefined;
3544
+ };
3545
+ visible: boolean;
3546
+ required?: boolean | undefined;
3547
+ category?: "FIELD" | undefined;
3548
+ sensitive?: boolean | undefined;
3549
+ order?: number | undefined;
3220
3550
  })[];
3221
3551
  next_node?: string | undefined;
3222
3552
  };
@@ -3339,6 +3669,42 @@ declare const formInsertSchema: z.ZodObject<{
3339
3669
  category?: "BLOCK" | undefined;
3340
3670
  order?: number | undefined;
3341
3671
  visible?: boolean | undefined;
3672
+ } | {
3673
+ type: "EMAIL";
3674
+ id: string;
3675
+ config: {
3676
+ label?: string | undefined;
3677
+ placeholder?: string | undefined;
3678
+ };
3679
+ required?: boolean | undefined;
3680
+ category?: "FIELD" | undefined;
3681
+ sensitive?: boolean | undefined;
3682
+ order?: number | undefined;
3683
+ visible?: boolean | undefined;
3684
+ } | {
3685
+ type: "NUMBER";
3686
+ id: string;
3687
+ config: {
3688
+ label?: string | undefined;
3689
+ placeholder?: string | undefined;
3690
+ };
3691
+ required?: boolean | undefined;
3692
+ category?: "FIELD" | undefined;
3693
+ sensitive?: boolean | undefined;
3694
+ order?: number | undefined;
3695
+ visible?: boolean | undefined;
3696
+ } | {
3697
+ type: "PHONE";
3698
+ id: string;
3699
+ config: {
3700
+ label?: string | undefined;
3701
+ placeholder?: string | undefined;
3702
+ };
3703
+ required?: boolean | undefined;
3704
+ category?: "FIELD" | undefined;
3705
+ sensitive?: boolean | undefined;
3706
+ order?: number | undefined;
3707
+ visible?: boolean | undefined;
3342
3708
  })[];
3343
3709
  next_node?: string | undefined;
3344
3710
  };
@@ -3545,7 +3911,11 @@ declare const formSchema: z.ZodObject<{
3545
3911
  components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
3546
3912
  z.ZodObject<{
3547
3913
  id: z.ZodString;
3914
+ order: z.ZodOptional<z.ZodNumber>;
3915
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3916
+ } & {
3548
3917
  category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
3918
+ } & {
3549
3919
  type: z.ZodLiteral<"RICH_TEXT">;
3550
3920
  config: z.ZodObject<{
3551
3921
  content: z.ZodString;
@@ -3554,8 +3924,6 @@ declare const formSchema: z.ZodObject<{
3554
3924
  }, {
3555
3925
  content: string;
3556
3926
  }>;
3557
- order: z.ZodOptional<z.ZodNumber>;
3558
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3559
3927
  }, "strip", z.ZodTypeAny, {
3560
3928
  type: "RICH_TEXT";
3561
3929
  id: string;
@@ -3575,70 +3943,199 @@ declare const formSchema: z.ZodObject<{
3575
3943
  order?: number | undefined;
3576
3944
  visible?: boolean | undefined;
3577
3945
  }>,
3578
- z.ZodObject<{
3946
+ z.ZodObject<Omit<{
3579
3947
  id: z.ZodString;
3948
+ order: z.ZodOptional<z.ZodNumber>;
3949
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3950
+ } & {
3580
3951
  category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
3952
+ required: z.ZodOptional<z.ZodBoolean>;
3953
+ sensitive: z.ZodOptional<z.ZodBoolean>;
3954
+ }, "sensitive"> & {
3581
3955
  type: z.ZodLiteral<"LEGAL">;
3582
3956
  config: z.ZodObject<{
3583
3957
  text: z.ZodString;
3584
3958
  html: z.ZodOptional<z.ZodBoolean>;
3585
3959
  }, "strip", z.ZodTypeAny, {
3586
- text: string;
3587
- html?: boolean | undefined;
3960
+ text: string;
3961
+ html?: boolean | undefined;
3962
+ }, {
3963
+ text: string;
3964
+ html?: boolean | undefined;
3965
+ }>;
3966
+ }, "strip", z.ZodTypeAny, {
3967
+ type: "LEGAL";
3968
+ id: string;
3969
+ config: {
3970
+ text: string;
3971
+ html?: boolean | undefined;
3972
+ };
3973
+ visible: boolean;
3974
+ required?: boolean | undefined;
3975
+ category?: "FIELD" | undefined;
3976
+ order?: number | undefined;
3977
+ }, {
3978
+ type: "LEGAL";
3979
+ id: string;
3980
+ config: {
3981
+ text: string;
3982
+ html?: boolean | undefined;
3983
+ };
3984
+ required?: boolean | undefined;
3985
+ category?: "FIELD" | undefined;
3986
+ order?: number | undefined;
3987
+ visible?: boolean | undefined;
3988
+ }>,
3989
+ z.ZodObject<{
3990
+ id: z.ZodString;
3991
+ order: z.ZodOptional<z.ZodNumber>;
3992
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3993
+ } & {
3994
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
3995
+ required: z.ZodOptional<z.ZodBoolean>;
3996
+ sensitive: z.ZodOptional<z.ZodBoolean>;
3997
+ } & {
3998
+ type: z.ZodLiteral<"TEXT">;
3999
+ config: z.ZodObject<{
4000
+ placeholder: z.ZodOptional<z.ZodString>;
4001
+ multiline: z.ZodOptional<z.ZodBoolean>;
4002
+ }, "strip", z.ZodTypeAny, {
4003
+ placeholder?: string | undefined;
4004
+ multiline?: boolean | undefined;
4005
+ }, {
4006
+ placeholder?: string | undefined;
4007
+ multiline?: boolean | undefined;
4008
+ }>;
4009
+ }, "strip", z.ZodTypeAny, {
4010
+ type: "TEXT";
4011
+ id: string;
4012
+ config: {
4013
+ placeholder?: string | undefined;
4014
+ multiline?: boolean | undefined;
4015
+ };
4016
+ visible: boolean;
4017
+ required?: boolean | undefined;
4018
+ category?: "FIELD" | undefined;
4019
+ sensitive?: boolean | undefined;
4020
+ order?: number | undefined;
4021
+ }, {
4022
+ type: "TEXT";
4023
+ id: string;
4024
+ config: {
4025
+ placeholder?: string | undefined;
4026
+ multiline?: boolean | undefined;
4027
+ };
4028
+ required?: boolean | undefined;
4029
+ category?: "FIELD" | undefined;
4030
+ sensitive?: boolean | undefined;
4031
+ order?: number | undefined;
4032
+ visible?: boolean | undefined;
4033
+ }>,
4034
+ z.ZodObject<{
4035
+ id: z.ZodString;
4036
+ order: z.ZodOptional<z.ZodNumber>;
4037
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4038
+ } & {
4039
+ category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
4040
+ } & {
4041
+ type: z.ZodLiteral<"NEXT_BUTTON">;
4042
+ config: z.ZodObject<{
4043
+ text: z.ZodOptional<z.ZodString>;
4044
+ }, "strip", z.ZodTypeAny, {
4045
+ text?: string | undefined;
4046
+ }, {
4047
+ text?: string | undefined;
4048
+ }>;
4049
+ }, "strip", z.ZodTypeAny, {
4050
+ type: "NEXT_BUTTON";
4051
+ id: string;
4052
+ config: {
4053
+ text?: string | undefined;
4054
+ };
4055
+ visible: boolean;
4056
+ category?: "BLOCK" | undefined;
4057
+ order?: number | undefined;
4058
+ }, {
4059
+ type: "NEXT_BUTTON";
4060
+ id: string;
4061
+ config: {
4062
+ text?: string | undefined;
4063
+ };
4064
+ category?: "BLOCK" | undefined;
4065
+ order?: number | undefined;
4066
+ visible?: boolean | undefined;
4067
+ }>,
4068
+ z.ZodObject<{
4069
+ id: z.ZodString;
4070
+ order: z.ZodOptional<z.ZodNumber>;
4071
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4072
+ } & {
4073
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
4074
+ required: z.ZodOptional<z.ZodBoolean>;
4075
+ sensitive: z.ZodOptional<z.ZodBoolean>;
4076
+ } & {
4077
+ type: z.ZodLiteral<"EMAIL">;
4078
+ config: z.ZodObject<{
4079
+ label: z.ZodOptional<z.ZodString>;
4080
+ placeholder: z.ZodOptional<z.ZodString>;
4081
+ }, "strip", z.ZodTypeAny, {
4082
+ label?: string | undefined;
4083
+ placeholder?: string | undefined;
3588
4084
  }, {
3589
- text: string;
3590
- html?: boolean | undefined;
4085
+ label?: string | undefined;
4086
+ placeholder?: string | undefined;
3591
4087
  }>;
3592
- required: z.ZodOptional<z.ZodBoolean>;
3593
- order: z.ZodOptional<z.ZodNumber>;
3594
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3595
4088
  }, "strip", z.ZodTypeAny, {
3596
- type: "LEGAL";
4089
+ type: "EMAIL";
3597
4090
  id: string;
3598
4091
  config: {
3599
- text: string;
3600
- html?: boolean | undefined;
4092
+ label?: string | undefined;
4093
+ placeholder?: string | undefined;
3601
4094
  };
3602
4095
  visible: boolean;
3603
4096
  required?: boolean | undefined;
3604
4097
  category?: "FIELD" | undefined;
4098
+ sensitive?: boolean | undefined;
3605
4099
  order?: number | undefined;
3606
4100
  }, {
3607
- type: "LEGAL";
4101
+ type: "EMAIL";
3608
4102
  id: string;
3609
4103
  config: {
3610
- text: string;
3611
- html?: boolean | undefined;
4104
+ label?: string | undefined;
4105
+ placeholder?: string | undefined;
3612
4106
  };
3613
4107
  required?: boolean | undefined;
3614
4108
  category?: "FIELD" | undefined;
4109
+ sensitive?: boolean | undefined;
3615
4110
  order?: number | undefined;
3616
4111
  visible?: boolean | undefined;
3617
4112
  }>,
3618
4113
  z.ZodObject<{
3619
4114
  id: z.ZodString;
4115
+ order: z.ZodOptional<z.ZodNumber>;
4116
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4117
+ } & {
3620
4118
  category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
3621
- type: z.ZodLiteral<"TEXT">;
4119
+ required: z.ZodOptional<z.ZodBoolean>;
4120
+ sensitive: z.ZodOptional<z.ZodBoolean>;
4121
+ } & {
4122
+ type: z.ZodLiteral<"NUMBER">;
3622
4123
  config: z.ZodObject<{
4124
+ label: z.ZodOptional<z.ZodString>;
3623
4125
  placeholder: z.ZodOptional<z.ZodString>;
3624
- multiline: z.ZodOptional<z.ZodBoolean>;
3625
4126
  }, "strip", z.ZodTypeAny, {
4127
+ label?: string | undefined;
3626
4128
  placeholder?: string | undefined;
3627
- multiline?: boolean | undefined;
3628
4129
  }, {
4130
+ label?: string | undefined;
3629
4131
  placeholder?: string | undefined;
3630
- multiline?: boolean | undefined;
3631
4132
  }>;
3632
- required: z.ZodOptional<z.ZodBoolean>;
3633
- sensitive: z.ZodOptional<z.ZodBoolean>;
3634
- order: z.ZodOptional<z.ZodNumber>;
3635
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3636
4133
  }, "strip", z.ZodTypeAny, {
3637
- type: "TEXT";
4134
+ type: "NUMBER";
3638
4135
  id: string;
3639
4136
  config: {
4137
+ label?: string | undefined;
3640
4138
  placeholder?: string | undefined;
3641
- multiline?: boolean | undefined;
3642
4139
  };
3643
4140
  visible: boolean;
3644
4141
  required?: boolean | undefined;
@@ -3646,11 +4143,11 @@ declare const formSchema: z.ZodObject<{
3646
4143
  sensitive?: boolean | undefined;
3647
4144
  order?: number | undefined;
3648
4145
  }, {
3649
- type: "TEXT";
4146
+ type: "NUMBER";
3650
4147
  id: string;
3651
4148
  config: {
4149
+ label?: string | undefined;
3652
4150
  placeholder?: string | undefined;
3653
- multiline?: boolean | undefined;
3654
4151
  };
3655
4152
  required?: boolean | undefined;
3656
4153
  category?: "FIELD" | undefined;
@@ -3660,33 +4157,46 @@ declare const formSchema: z.ZodObject<{
3660
4157
  }>,
3661
4158
  z.ZodObject<{
3662
4159
  id: z.ZodString;
3663
- category: z.ZodOptional<z.ZodLiteral<"BLOCK">>;
3664
- type: z.ZodLiteral<"NEXT_BUTTON">;
4160
+ order: z.ZodOptional<z.ZodNumber>;
4161
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4162
+ } & {
4163
+ category: z.ZodOptional<z.ZodLiteral<"FIELD">>;
4164
+ required: z.ZodOptional<z.ZodBoolean>;
4165
+ sensitive: z.ZodOptional<z.ZodBoolean>;
4166
+ } & {
4167
+ type: z.ZodLiteral<"PHONE">;
3665
4168
  config: z.ZodObject<{
3666
- text: z.ZodOptional<z.ZodString>;
4169
+ label: z.ZodOptional<z.ZodString>;
4170
+ placeholder: z.ZodOptional<z.ZodString>;
3667
4171
  }, "strip", z.ZodTypeAny, {
3668
- text?: string | undefined;
4172
+ label?: string | undefined;
4173
+ placeholder?: string | undefined;
3669
4174
  }, {
3670
- text?: string | undefined;
4175
+ label?: string | undefined;
4176
+ placeholder?: string | undefined;
3671
4177
  }>;
3672
- order: z.ZodOptional<z.ZodNumber>;
3673
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3674
4178
  }, "strip", z.ZodTypeAny, {
3675
- type: "NEXT_BUTTON";
4179
+ type: "PHONE";
3676
4180
  id: string;
3677
4181
  config: {
3678
- text?: string | undefined;
4182
+ label?: string | undefined;
4183
+ placeholder?: string | undefined;
3679
4184
  };
3680
4185
  visible: boolean;
3681
- category?: "BLOCK" | undefined;
4186
+ required?: boolean | undefined;
4187
+ category?: "FIELD" | undefined;
4188
+ sensitive?: boolean | undefined;
3682
4189
  order?: number | undefined;
3683
4190
  }, {
3684
- type: "NEXT_BUTTON";
4191
+ type: "PHONE";
3685
4192
  id: string;
3686
4193
  config: {
3687
- text?: string | undefined;
4194
+ label?: string | undefined;
4195
+ placeholder?: string | undefined;
3688
4196
  };
3689
- category?: "BLOCK" | undefined;
4197
+ required?: boolean | undefined;
4198
+ category?: "FIELD" | undefined;
4199
+ sensitive?: boolean | undefined;
3690
4200
  order?: number | undefined;
3691
4201
  visible?: boolean | undefined;
3692
4202
  }>
@@ -3734,6 +4244,42 @@ declare const formSchema: z.ZodObject<{
3734
4244
  visible: boolean;
3735
4245
  category?: "BLOCK" | undefined;
3736
4246
  order?: number | undefined;
4247
+ } | {
4248
+ type: "EMAIL";
4249
+ id: string;
4250
+ config: {
4251
+ label?: string | undefined;
4252
+ placeholder?: string | undefined;
4253
+ };
4254
+ visible: boolean;
4255
+ required?: boolean | undefined;
4256
+ category?: "FIELD" | undefined;
4257
+ sensitive?: boolean | undefined;
4258
+ order?: number | undefined;
4259
+ } | {
4260
+ type: "NUMBER";
4261
+ id: string;
4262
+ config: {
4263
+ label?: string | undefined;
4264
+ placeholder?: string | undefined;
4265
+ };
4266
+ visible: boolean;
4267
+ required?: boolean | undefined;
4268
+ category?: "FIELD" | undefined;
4269
+ sensitive?: boolean | undefined;
4270
+ order?: number | undefined;
4271
+ } | {
4272
+ type: "PHONE";
4273
+ id: string;
4274
+ config: {
4275
+ label?: string | undefined;
4276
+ placeholder?: string | undefined;
4277
+ };
4278
+ visible: boolean;
4279
+ required?: boolean | undefined;
4280
+ category?: "FIELD" | undefined;
4281
+ sensitive?: boolean | undefined;
4282
+ order?: number | undefined;
3737
4283
  })[];
3738
4284
  next_node?: string | undefined;
3739
4285
  }, {
@@ -3778,6 +4324,42 @@ declare const formSchema: z.ZodObject<{
3778
4324
  category?: "BLOCK" | undefined;
3779
4325
  order?: number | undefined;
3780
4326
  visible?: boolean | undefined;
4327
+ } | {
4328
+ type: "EMAIL";
4329
+ id: string;
4330
+ config: {
4331
+ label?: string | undefined;
4332
+ placeholder?: string | undefined;
4333
+ };
4334
+ required?: boolean | undefined;
4335
+ category?: "FIELD" | undefined;
4336
+ sensitive?: boolean | undefined;
4337
+ order?: number | undefined;
4338
+ visible?: boolean | undefined;
4339
+ } | {
4340
+ type: "NUMBER";
4341
+ id: string;
4342
+ config: {
4343
+ label?: string | undefined;
4344
+ placeholder?: string | undefined;
4345
+ };
4346
+ required?: boolean | undefined;
4347
+ category?: "FIELD" | undefined;
4348
+ sensitive?: boolean | undefined;
4349
+ order?: number | undefined;
4350
+ visible?: boolean | undefined;
4351
+ } | {
4352
+ type: "PHONE";
4353
+ id: string;
4354
+ config: {
4355
+ label?: string | undefined;
4356
+ placeholder?: string | undefined;
4357
+ };
4358
+ required?: boolean | undefined;
4359
+ category?: "FIELD" | undefined;
4360
+ sensitive?: boolean | undefined;
4361
+ order?: number | undefined;
4362
+ visible?: boolean | undefined;
3781
4363
  })[];
3782
4364
  next_node?: string | undefined;
3783
4365
  }>;
@@ -3826,6 +4408,42 @@ declare const formSchema: z.ZodObject<{
3826
4408
  visible: boolean;
3827
4409
  category?: "BLOCK" | undefined;
3828
4410
  order?: number | undefined;
4411
+ } | {
4412
+ type: "EMAIL";
4413
+ id: string;
4414
+ config: {
4415
+ label?: string | undefined;
4416
+ placeholder?: string | undefined;
4417
+ };
4418
+ visible: boolean;
4419
+ required?: boolean | undefined;
4420
+ category?: "FIELD" | undefined;
4421
+ sensitive?: boolean | undefined;
4422
+ order?: number | undefined;
4423
+ } | {
4424
+ type: "NUMBER";
4425
+ id: string;
4426
+ config: {
4427
+ label?: string | undefined;
4428
+ placeholder?: string | undefined;
4429
+ };
4430
+ visible: boolean;
4431
+ required?: boolean | undefined;
4432
+ category?: "FIELD" | undefined;
4433
+ sensitive?: boolean | undefined;
4434
+ order?: number | undefined;
4435
+ } | {
4436
+ type: "PHONE";
4437
+ id: string;
4438
+ config: {
4439
+ label?: string | undefined;
4440
+ placeholder?: string | undefined;
4441
+ };
4442
+ visible: boolean;
4443
+ required?: boolean | undefined;
4444
+ category?: "FIELD" | undefined;
4445
+ sensitive?: boolean | undefined;
4446
+ order?: number | undefined;
3829
4447
  })[];
3830
4448
  next_node?: string | undefined;
3831
4449
  };
@@ -3879,6 +4497,42 @@ declare const formSchema: z.ZodObject<{
3879
4497
  category?: "BLOCK" | undefined;
3880
4498
  order?: number | undefined;
3881
4499
  visible?: boolean | undefined;
4500
+ } | {
4501
+ type: "EMAIL";
4502
+ id: string;
4503
+ config: {
4504
+ label?: string | undefined;
4505
+ placeholder?: string | undefined;
4506
+ };
4507
+ required?: boolean | undefined;
4508
+ category?: "FIELD" | undefined;
4509
+ sensitive?: boolean | undefined;
4510
+ order?: number | undefined;
4511
+ visible?: boolean | undefined;
4512
+ } | {
4513
+ type: "NUMBER";
4514
+ id: string;
4515
+ config: {
4516
+ label?: string | undefined;
4517
+ placeholder?: string | undefined;
4518
+ };
4519
+ required?: boolean | undefined;
4520
+ category?: "FIELD" | undefined;
4521
+ sensitive?: boolean | undefined;
4522
+ order?: number | undefined;
4523
+ visible?: boolean | undefined;
4524
+ } | {
4525
+ type: "PHONE";
4526
+ id: string;
4527
+ config: {
4528
+ label?: string | undefined;
4529
+ placeholder?: string | undefined;
4530
+ };
4531
+ required?: boolean | undefined;
4532
+ category?: "FIELD" | undefined;
4533
+ sensitive?: boolean | undefined;
4534
+ order?: number | undefined;
4535
+ visible?: boolean | undefined;
3882
4536
  })[];
3883
4537
  next_node?: string | undefined;
3884
4538
  };
@@ -4094,6 +4748,42 @@ declare const formSchema: z.ZodObject<{
4094
4748
  visible: boolean;
4095
4749
  category?: "BLOCK" | undefined;
4096
4750
  order?: number | undefined;
4751
+ } | {
4752
+ type: "EMAIL";
4753
+ id: string;
4754
+ config: {
4755
+ label?: string | undefined;
4756
+ placeholder?: string | undefined;
4757
+ };
4758
+ visible: boolean;
4759
+ required?: boolean | undefined;
4760
+ category?: "FIELD" | undefined;
4761
+ sensitive?: boolean | undefined;
4762
+ order?: number | undefined;
4763
+ } | {
4764
+ type: "NUMBER";
4765
+ id: string;
4766
+ config: {
4767
+ label?: string | undefined;
4768
+ placeholder?: string | undefined;
4769
+ };
4770
+ visible: boolean;
4771
+ required?: boolean | undefined;
4772
+ category?: "FIELD" | undefined;
4773
+ sensitive?: boolean | undefined;
4774
+ order?: number | undefined;
4775
+ } | {
4776
+ type: "PHONE";
4777
+ id: string;
4778
+ config: {
4779
+ label?: string | undefined;
4780
+ placeholder?: string | undefined;
4781
+ };
4782
+ visible: boolean;
4783
+ required?: boolean | undefined;
4784
+ category?: "FIELD" | undefined;
4785
+ sensitive?: boolean | undefined;
4786
+ order?: number | undefined;
4097
4787
  })[];
4098
4788
  next_node?: string | undefined;
4099
4789
  };
@@ -4219,6 +4909,42 @@ declare const formSchema: z.ZodObject<{
4219
4909
  category?: "BLOCK" | undefined;
4220
4910
  order?: number | undefined;
4221
4911
  visible?: boolean | undefined;
4912
+ } | {
4913
+ type: "EMAIL";
4914
+ id: string;
4915
+ config: {
4916
+ label?: string | undefined;
4917
+ placeholder?: string | undefined;
4918
+ };
4919
+ required?: boolean | undefined;
4920
+ category?: "FIELD" | undefined;
4921
+ sensitive?: boolean | undefined;
4922
+ order?: number | undefined;
4923
+ visible?: boolean | undefined;
4924
+ } | {
4925
+ type: "NUMBER";
4926
+ id: string;
4927
+ config: {
4928
+ label?: string | undefined;
4929
+ placeholder?: string | undefined;
4930
+ };
4931
+ required?: boolean | undefined;
4932
+ category?: "FIELD" | undefined;
4933
+ sensitive?: boolean | undefined;
4934
+ order?: number | undefined;
4935
+ visible?: boolean | undefined;
4936
+ } | {
4937
+ type: "PHONE";
4938
+ id: string;
4939
+ config: {
4940
+ label?: string | undefined;
4941
+ placeholder?: string | undefined;
4942
+ };
4943
+ required?: boolean | undefined;
4944
+ category?: "FIELD" | undefined;
4945
+ sensitive?: boolean | undefined;
4946
+ order?: number | undefined;
4947
+ visible?: boolean | undefined;
4222
4948
  })[];
4223
4949
  next_node?: string | undefined;
4224
4950
  };
@@ -7561,6 +8287,31 @@ export interface ClientsAdapter {
7561
8287
  }>;
7562
8288
  update(tenant_id: string, client_id: string, client: Partial<Client>): Promise<boolean>;
7563
8289
  }
8290
+ export interface ClientConnectionsAdapter {
8291
+ /**
8292
+ * Get all connections enabled for a specific client
8293
+ * Returns connections in the order they were stored
8294
+ */
8295
+ listByClient(tenant_id: string, client_id: string): Promise<Connection[]>;
8296
+ /**
8297
+ * Update the connections for a client
8298
+ * The connection_ids array determines both which connections are enabled
8299
+ * and their display order on the login page
8300
+ */
8301
+ updateByClient(tenant_id: string, client_id: string, connection_ids: string[]): Promise<boolean>;
8302
+ /**
8303
+ * Get all clients that have a specific connection enabled
8304
+ */
8305
+ listByConnection(tenant_id: string, connection_id: string): Promise<string[]>;
8306
+ /**
8307
+ * Add a client to a connection (add client_id to the list of clients using this connection)
8308
+ */
8309
+ addClientToConnection(tenant_id: string, connection_id: string, client_id: string): Promise<boolean>;
8310
+ /**
8311
+ * Remove a client from a connection
8312
+ */
8313
+ removeClientFromConnection(tenant_id: string, connection_id: string, client_id: string): Promise<boolean>;
8314
+ }
7564
8315
  export interface ListClientGrantsResponse extends Totals {
7565
8316
  client_grants: ClientGrant[];
7566
8317
  }
@@ -7815,6 +8566,7 @@ export interface DataAdapters {
7815
8566
  branding: BrandingAdapter;
7816
8567
  cache?: CacheAdapter;
7817
8568
  clients: ClientsAdapter;
8569
+ clientConnections: ClientConnectionsAdapter;
7818
8570
  clientGrants: ClientGrantsAdapter;
7819
8571
  legacyClients: LegacyClientsAdapter;
7820
8572
  codes: CodesAdapter;
@@ -9323,6 +10075,7 @@ declare const sqlClientSchema: z.ZodObject<{
9323
10075
  web_origins: z.ZodString;
9324
10076
  client_aliases: z.ZodString;
9325
10077
  allowed_clients: z.ZodString;
10078
+ connections: z.ZodString;
9326
10079
  allowed_logout_urls: z.ZodString;
9327
10080
  session_transfer: z.ZodString;
9328
10081
  oidc_logout: z.ZodString;
@@ -9425,6 +10178,7 @@ declare const sqlClientSchema: z.ZodObject<{
9425
10178
  web_origins: string;
9426
10179
  client_aliases: string;
9427
10180
  allowed_clients: string;
10181
+ connections: string;
9428
10182
  session_transfer: string;
9429
10183
  grant_types: string;
9430
10184
  jwt_configuration: string;
@@ -9475,6 +10229,7 @@ declare const sqlClientSchema: z.ZodObject<{
9475
10229
  web_origins: string;
9476
10230
  client_aliases: string;
9477
10231
  allowed_clients: string;
10232
+ connections: string;
9478
10233
  session_transfer: string;
9479
10234
  grant_types: string;
9480
10235
  jwt_configuration: string;