@authhero/kysely-adapter 10.12.0 → 10.14.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.
@@ -1718,41 +1718,41 @@ declare const formInsertSchema: z.ZodObject<{
1718
1718
  x: number;
1719
1719
  y: number;
1720
1720
  }>;
1721
- alias: z.ZodString;
1721
+ alias: z.ZodOptional<z.ZodString>;
1722
1722
  config: z.ZodObject<{
1723
1723
  flow_id: z.ZodString;
1724
- next_node: z.ZodArray<z.ZodString, "many">;
1724
+ next_node: z.ZodString;
1725
1725
  }, "strip", z.ZodTypeAny, {
1726
- next_node: string[];
1726
+ next_node: string;
1727
1727
  flow_id: string;
1728
1728
  }, {
1729
- next_node: string[];
1729
+ next_node: string;
1730
1730
  flow_id: string;
1731
1731
  }>;
1732
1732
  }, "strip", z.ZodTypeAny, {
1733
1733
  type: "FLOW";
1734
1734
  id: string;
1735
1735
  config: {
1736
- next_node: string[];
1736
+ next_node: string;
1737
1737
  flow_id: string;
1738
1738
  };
1739
1739
  coordinates: {
1740
1740
  x: number;
1741
1741
  y: number;
1742
1742
  };
1743
- alias: string;
1743
+ alias?: string | undefined;
1744
1744
  }, {
1745
1745
  type: "FLOW";
1746
1746
  id: string;
1747
1747
  config: {
1748
- next_node: string[];
1748
+ next_node: string;
1749
1749
  flow_id: string;
1750
1750
  };
1751
1751
  coordinates: {
1752
1752
  x: number;
1753
1753
  y: number;
1754
1754
  };
1755
- alias: string;
1755
+ alias?: string | undefined;
1756
1756
  }>,
1757
1757
  z.ZodObject<{
1758
1758
  id: z.ZodString;
@@ -1771,34 +1771,34 @@ declare const formInsertSchema: z.ZodObject<{
1771
1771
  config: z.ZodObject<{
1772
1772
  rules: z.ZodArray<z.ZodObject<{
1773
1773
  id: z.ZodString;
1774
- alias: z.ZodString;
1774
+ alias: z.ZodOptional<z.ZodString>;
1775
1775
  condition: z.ZodAny;
1776
- next_node: z.ZodArray<z.ZodString, "many">;
1776
+ next_node: z.ZodString;
1777
1777
  }, "strip", z.ZodTypeAny, {
1778
1778
  id: string;
1779
- alias: string;
1780
- next_node: string[];
1779
+ next_node: string;
1780
+ alias?: string | undefined;
1781
1781
  condition?: any;
1782
1782
  }, {
1783
1783
  id: string;
1784
- alias: string;
1785
- next_node: string[];
1784
+ next_node: string;
1785
+ alias?: string | undefined;
1786
1786
  condition?: any;
1787
1787
  }>, "many">;
1788
1788
  fallback: z.ZodArray<z.ZodString, "many">;
1789
1789
  }, "strip", z.ZodTypeAny, {
1790
1790
  rules: {
1791
1791
  id: string;
1792
- alias: string;
1793
- next_node: string[];
1792
+ next_node: string;
1793
+ alias?: string | undefined;
1794
1794
  condition?: any;
1795
1795
  }[];
1796
1796
  fallback: string[];
1797
1797
  }, {
1798
1798
  rules: {
1799
1799
  id: string;
1800
- alias: string;
1801
- next_node: string[];
1800
+ next_node: string;
1801
+ alias?: string | undefined;
1802
1802
  condition?: any;
1803
1803
  }[];
1804
1804
  fallback: string[];
@@ -1809,8 +1809,8 @@ declare const formInsertSchema: z.ZodObject<{
1809
1809
  config: {
1810
1810
  rules: {
1811
1811
  id: string;
1812
- alias: string;
1813
- next_node: string[];
1812
+ next_node: string;
1813
+ alias?: string | undefined;
1814
1814
  condition?: any;
1815
1815
  }[];
1816
1816
  fallback: string[];
@@ -1826,8 +1826,8 @@ declare const formInsertSchema: z.ZodObject<{
1826
1826
  config: {
1827
1827
  rules: {
1828
1828
  id: string;
1829
- alias: string;
1830
- next_node: string[];
1829
+ next_node: string;
1830
+ alias?: string | undefined;
1831
1831
  condition?: any;
1832
1832
  }[];
1833
1833
  fallback: string[];
@@ -1851,41 +1851,241 @@ declare const formInsertSchema: z.ZodObject<{
1851
1851
  x: number;
1852
1852
  y: number;
1853
1853
  }>;
1854
- alias: z.ZodString;
1854
+ alias: z.ZodOptional<z.ZodString>;
1855
1855
  config: z.ZodObject<{
1856
- components: z.ZodArray<z.ZodAny, "many">;
1857
- next_node: z.ZodArray<z.ZodString, "many">;
1856
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
1857
+ z.ZodObject<{
1858
+ id: z.ZodString;
1859
+ type: z.ZodLiteral<"RICH_TEXT">;
1860
+ config: z.ZodObject<{
1861
+ content: z.ZodString;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ content: string;
1864
+ }, {
1865
+ content: string;
1866
+ }>;
1867
+ order: z.ZodOptional<z.ZodNumber>;
1868
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ type: "RICH_TEXT";
1871
+ id: string;
1872
+ config: {
1873
+ content: string;
1874
+ };
1875
+ visible: boolean;
1876
+ order?: number | undefined;
1877
+ }, {
1878
+ type: "RICH_TEXT";
1879
+ id: string;
1880
+ config: {
1881
+ content: string;
1882
+ };
1883
+ order?: number | undefined;
1884
+ visible?: boolean | undefined;
1885
+ }>,
1886
+ z.ZodObject<{
1887
+ id: z.ZodString;
1888
+ type: z.ZodLiteral<"LEGAL">;
1889
+ config: z.ZodObject<{
1890
+ text: z.ZodString;
1891
+ html: z.ZodOptional<z.ZodBoolean>;
1892
+ }, "strip", z.ZodTypeAny, {
1893
+ text: string;
1894
+ html?: boolean | undefined;
1895
+ }, {
1896
+ text: string;
1897
+ html?: boolean | undefined;
1898
+ }>;
1899
+ required: z.ZodOptional<z.ZodBoolean>;
1900
+ order: z.ZodOptional<z.ZodNumber>;
1901
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1902
+ }, "strip", z.ZodTypeAny, {
1903
+ type: "LEGAL";
1904
+ id: string;
1905
+ config: {
1906
+ text: string;
1907
+ html?: boolean | undefined;
1908
+ };
1909
+ visible: boolean;
1910
+ required?: boolean | undefined;
1911
+ order?: number | undefined;
1912
+ }, {
1913
+ type: "LEGAL";
1914
+ id: string;
1915
+ config: {
1916
+ text: string;
1917
+ html?: boolean | undefined;
1918
+ };
1919
+ required?: boolean | undefined;
1920
+ order?: number | undefined;
1921
+ visible?: boolean | undefined;
1922
+ }>,
1923
+ z.ZodObject<{
1924
+ id: z.ZodString;
1925
+ type: z.ZodLiteral<"NEXT_BUTTON">;
1926
+ config: z.ZodObject<{
1927
+ text: z.ZodOptional<z.ZodString>;
1928
+ }, "strip", z.ZodTypeAny, {
1929
+ text?: string | undefined;
1930
+ }, {
1931
+ text?: string | undefined;
1932
+ }>;
1933
+ order: z.ZodOptional<z.ZodNumber>;
1934
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ type: "NEXT_BUTTON";
1937
+ id: string;
1938
+ config: {
1939
+ text?: string | undefined;
1940
+ };
1941
+ visible: boolean;
1942
+ order?: number | undefined;
1943
+ }, {
1944
+ type: "NEXT_BUTTON";
1945
+ id: string;
1946
+ config: {
1947
+ text?: string | undefined;
1948
+ };
1949
+ order?: number | undefined;
1950
+ visible?: boolean | undefined;
1951
+ }>
1952
+ ]>, "many">;
1953
+ next_node: z.ZodString;
1858
1954
  }, "strip", z.ZodTypeAny, {
1859
- components: any[];
1860
- next_node: string[];
1955
+ components: ({
1956
+ type: "RICH_TEXT";
1957
+ id: string;
1958
+ config: {
1959
+ content: string;
1960
+ };
1961
+ visible: boolean;
1962
+ order?: number | undefined;
1963
+ } | {
1964
+ type: "LEGAL";
1965
+ id: string;
1966
+ config: {
1967
+ text: string;
1968
+ html?: boolean | undefined;
1969
+ };
1970
+ visible: boolean;
1971
+ required?: boolean | undefined;
1972
+ order?: number | undefined;
1973
+ } | {
1974
+ type: "NEXT_BUTTON";
1975
+ id: string;
1976
+ config: {
1977
+ text?: string | undefined;
1978
+ };
1979
+ visible: boolean;
1980
+ order?: number | undefined;
1981
+ })[];
1982
+ next_node: string;
1861
1983
  }, {
1862
- components: any[];
1863
- next_node: string[];
1984
+ components: ({
1985
+ type: "RICH_TEXT";
1986
+ id: string;
1987
+ config: {
1988
+ content: string;
1989
+ };
1990
+ order?: number | undefined;
1991
+ visible?: boolean | undefined;
1992
+ } | {
1993
+ type: "LEGAL";
1994
+ id: string;
1995
+ config: {
1996
+ text: string;
1997
+ html?: boolean | undefined;
1998
+ };
1999
+ required?: boolean | undefined;
2000
+ order?: number | undefined;
2001
+ visible?: boolean | undefined;
2002
+ } | {
2003
+ type: "NEXT_BUTTON";
2004
+ id: string;
2005
+ config: {
2006
+ text?: string | undefined;
2007
+ };
2008
+ order?: number | undefined;
2009
+ visible?: boolean | undefined;
2010
+ })[];
2011
+ next_node: string;
1864
2012
  }>;
1865
2013
  }, "strip", z.ZodTypeAny, {
1866
2014
  type: "STEP";
1867
2015
  id: string;
1868
2016
  config: {
1869
- components: any[];
1870
- next_node: string[];
2017
+ components: ({
2018
+ type: "RICH_TEXT";
2019
+ id: string;
2020
+ config: {
2021
+ content: string;
2022
+ };
2023
+ visible: boolean;
2024
+ order?: number | undefined;
2025
+ } | {
2026
+ type: "LEGAL";
2027
+ id: string;
2028
+ config: {
2029
+ text: string;
2030
+ html?: boolean | undefined;
2031
+ };
2032
+ visible: boolean;
2033
+ required?: boolean | undefined;
2034
+ order?: number | undefined;
2035
+ } | {
2036
+ type: "NEXT_BUTTON";
2037
+ id: string;
2038
+ config: {
2039
+ text?: string | undefined;
2040
+ };
2041
+ visible: boolean;
2042
+ order?: number | undefined;
2043
+ })[];
2044
+ next_node: string;
1871
2045
  };
1872
2046
  coordinates: {
1873
2047
  x: number;
1874
2048
  y: number;
1875
2049
  };
1876
- alias: string;
2050
+ alias?: string | undefined;
1877
2051
  }, {
1878
2052
  type: "STEP";
1879
2053
  id: string;
1880
2054
  config: {
1881
- components: any[];
1882
- next_node: string[];
2055
+ components: ({
2056
+ type: "RICH_TEXT";
2057
+ id: string;
2058
+ config: {
2059
+ content: string;
2060
+ };
2061
+ order?: number | undefined;
2062
+ visible?: boolean | undefined;
2063
+ } | {
2064
+ type: "LEGAL";
2065
+ id: string;
2066
+ config: {
2067
+ text: string;
2068
+ html?: boolean | undefined;
2069
+ };
2070
+ required?: boolean | undefined;
2071
+ order?: number | undefined;
2072
+ visible?: boolean | undefined;
2073
+ } | {
2074
+ type: "NEXT_BUTTON";
2075
+ id: string;
2076
+ config: {
2077
+ text?: string | undefined;
2078
+ };
2079
+ order?: number | undefined;
2080
+ visible?: boolean | undefined;
2081
+ })[];
2082
+ next_node: string;
1883
2083
  };
1884
2084
  coordinates: {
1885
2085
  x: number;
1886
2086
  y: number;
1887
2087
  };
1888
- alias: string;
2088
+ alias?: string | undefined;
1889
2089
  }>
1890
2090
  ]>, "many">>;
1891
2091
  start: z.ZodOptional<z.ZodObject<{
@@ -1899,7 +2099,7 @@ declare const formInsertSchema: z.ZodObject<{
1899
2099
  value: string;
1900
2100
  key: string;
1901
2101
  }>, "many">>;
1902
- next_node: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2102
+ next_node: z.ZodOptional<z.ZodString>;
1903
2103
  coordinates: z.ZodOptional<z.ZodObject<{
1904
2104
  x: z.ZodNumber;
1905
2105
  y: z.ZodNumber;
@@ -1915,7 +2115,7 @@ declare const formInsertSchema: z.ZodObject<{
1915
2115
  x: number;
1916
2116
  y: number;
1917
2117
  } | undefined;
1918
- next_node?: string[] | undefined;
2118
+ next_node?: string | undefined;
1919
2119
  hidden_fields?: {
1920
2120
  value: string;
1921
2121
  key: string;
@@ -1925,7 +2125,7 @@ declare const formInsertSchema: z.ZodObject<{
1925
2125
  x: number;
1926
2126
  y: number;
1927
2127
  } | undefined;
1928
- next_node?: string[] | undefined;
2128
+ next_node?: string | undefined;
1929
2129
  hidden_fields?: {
1930
2130
  value: string;
1931
2131
  key: string;
@@ -2001,7 +2201,7 @@ declare const formInsertSchema: z.ZodObject<{
2001
2201
  x: number;
2002
2202
  y: number;
2003
2203
  } | undefined;
2004
- next_node?: string[] | undefined;
2204
+ next_node?: string | undefined;
2005
2205
  hidden_fields?: {
2006
2206
  value: string;
2007
2207
  key: string;
@@ -2018,22 +2218,22 @@ declare const formInsertSchema: z.ZodObject<{
2018
2218
  type: "FLOW";
2019
2219
  id: string;
2020
2220
  config: {
2021
- next_node: string[];
2221
+ next_node: string;
2022
2222
  flow_id: string;
2023
2223
  };
2024
2224
  coordinates: {
2025
2225
  x: number;
2026
2226
  y: number;
2027
2227
  };
2028
- alias: string;
2228
+ alias?: string | undefined;
2029
2229
  } | {
2030
2230
  type: "ROUTER";
2031
2231
  id: string;
2032
2232
  config: {
2033
2233
  rules: {
2034
2234
  id: string;
2035
- alias: string;
2036
- next_node: string[];
2235
+ next_node: string;
2236
+ alias?: string | undefined;
2037
2237
  condition?: any;
2038
2238
  }[];
2039
2239
  fallback: string[];
@@ -2047,14 +2247,40 @@ declare const formInsertSchema: z.ZodObject<{
2047
2247
  type: "STEP";
2048
2248
  id: string;
2049
2249
  config: {
2050
- components: any[];
2051
- next_node: string[];
2250
+ components: ({
2251
+ type: "RICH_TEXT";
2252
+ id: string;
2253
+ config: {
2254
+ content: string;
2255
+ };
2256
+ visible: boolean;
2257
+ order?: number | undefined;
2258
+ } | {
2259
+ type: "LEGAL";
2260
+ id: string;
2261
+ config: {
2262
+ text: string;
2263
+ html?: boolean | undefined;
2264
+ };
2265
+ visible: boolean;
2266
+ required?: boolean | undefined;
2267
+ order?: number | undefined;
2268
+ } | {
2269
+ type: "NEXT_BUTTON";
2270
+ id: string;
2271
+ config: {
2272
+ text?: string | undefined;
2273
+ };
2274
+ visible: boolean;
2275
+ order?: number | undefined;
2276
+ })[];
2277
+ next_node: string;
2052
2278
  };
2053
2279
  coordinates: {
2054
2280
  x: number;
2055
2281
  y: number;
2056
2282
  };
2057
- alias: string;
2283
+ alias?: string | undefined;
2058
2284
  })[] | undefined;
2059
2285
  ending?: {
2060
2286
  coordinates?: {
@@ -2082,7 +2308,7 @@ declare const formInsertSchema: z.ZodObject<{
2082
2308
  x: number;
2083
2309
  y: number;
2084
2310
  } | undefined;
2085
- next_node?: string[] | undefined;
2311
+ next_node?: string | undefined;
2086
2312
  hidden_fields?: {
2087
2313
  value: string;
2088
2314
  key: string;
@@ -2099,22 +2325,22 @@ declare const formInsertSchema: z.ZodObject<{
2099
2325
  type: "FLOW";
2100
2326
  id: string;
2101
2327
  config: {
2102
- next_node: string[];
2328
+ next_node: string;
2103
2329
  flow_id: string;
2104
2330
  };
2105
2331
  coordinates: {
2106
2332
  x: number;
2107
2333
  y: number;
2108
2334
  };
2109
- alias: string;
2335
+ alias?: string | undefined;
2110
2336
  } | {
2111
2337
  type: "ROUTER";
2112
2338
  id: string;
2113
2339
  config: {
2114
2340
  rules: {
2115
2341
  id: string;
2116
- alias: string;
2117
- next_node: string[];
2342
+ next_node: string;
2343
+ alias?: string | undefined;
2118
2344
  condition?: any;
2119
2345
  }[];
2120
2346
  fallback: string[];
@@ -2128,14 +2354,40 @@ declare const formInsertSchema: z.ZodObject<{
2128
2354
  type: "STEP";
2129
2355
  id: string;
2130
2356
  config: {
2131
- components: any[];
2132
- next_node: string[];
2357
+ components: ({
2358
+ type: "RICH_TEXT";
2359
+ id: string;
2360
+ config: {
2361
+ content: string;
2362
+ };
2363
+ order?: number | undefined;
2364
+ visible?: boolean | undefined;
2365
+ } | {
2366
+ type: "LEGAL";
2367
+ id: string;
2368
+ config: {
2369
+ text: string;
2370
+ html?: boolean | undefined;
2371
+ };
2372
+ required?: boolean | undefined;
2373
+ order?: number | undefined;
2374
+ visible?: boolean | undefined;
2375
+ } | {
2376
+ type: "NEXT_BUTTON";
2377
+ id: string;
2378
+ config: {
2379
+ text?: string | undefined;
2380
+ };
2381
+ order?: number | undefined;
2382
+ visible?: boolean | undefined;
2383
+ })[];
2384
+ next_node: string;
2133
2385
  };
2134
2386
  coordinates: {
2135
2387
  x: number;
2136
2388
  y: number;
2137
2389
  };
2138
- alias: string;
2390
+ alias?: string | undefined;
2139
2391
  })[] | undefined;
2140
2392
  ending?: {
2141
2393
  coordinates?: {
@@ -2196,41 +2448,41 @@ declare const formSchema: z.ZodObject<{
2196
2448
  x: number;
2197
2449
  y: number;
2198
2450
  }>;
2199
- alias: z.ZodString;
2451
+ alias: z.ZodOptional<z.ZodString>;
2200
2452
  config: z.ZodObject<{
2201
2453
  flow_id: z.ZodString;
2202
- next_node: z.ZodArray<z.ZodString, "many">;
2454
+ next_node: z.ZodString;
2203
2455
  }, "strip", z.ZodTypeAny, {
2204
- next_node: string[];
2456
+ next_node: string;
2205
2457
  flow_id: string;
2206
2458
  }, {
2207
- next_node: string[];
2459
+ next_node: string;
2208
2460
  flow_id: string;
2209
2461
  }>;
2210
2462
  }, "strip", z.ZodTypeAny, {
2211
2463
  type: "FLOW";
2212
2464
  id: string;
2213
2465
  config: {
2214
- next_node: string[];
2466
+ next_node: string;
2215
2467
  flow_id: string;
2216
2468
  };
2217
2469
  coordinates: {
2218
2470
  x: number;
2219
2471
  y: number;
2220
2472
  };
2221
- alias: string;
2473
+ alias?: string | undefined;
2222
2474
  }, {
2223
2475
  type: "FLOW";
2224
2476
  id: string;
2225
2477
  config: {
2226
- next_node: string[];
2478
+ next_node: string;
2227
2479
  flow_id: string;
2228
2480
  };
2229
2481
  coordinates: {
2230
2482
  x: number;
2231
2483
  y: number;
2232
2484
  };
2233
- alias: string;
2485
+ alias?: string | undefined;
2234
2486
  }>,
2235
2487
  z.ZodObject<{
2236
2488
  id: z.ZodString;
@@ -2249,34 +2501,34 @@ declare const formSchema: z.ZodObject<{
2249
2501
  config: z.ZodObject<{
2250
2502
  rules: z.ZodArray<z.ZodObject<{
2251
2503
  id: z.ZodString;
2252
- alias: z.ZodString;
2504
+ alias: z.ZodOptional<z.ZodString>;
2253
2505
  condition: z.ZodAny;
2254
- next_node: z.ZodArray<z.ZodString, "many">;
2506
+ next_node: z.ZodString;
2255
2507
  }, "strip", z.ZodTypeAny, {
2256
2508
  id: string;
2257
- alias: string;
2258
- next_node: string[];
2509
+ next_node: string;
2510
+ alias?: string | undefined;
2259
2511
  condition?: any;
2260
2512
  }, {
2261
2513
  id: string;
2262
- alias: string;
2263
- next_node: string[];
2514
+ next_node: string;
2515
+ alias?: string | undefined;
2264
2516
  condition?: any;
2265
2517
  }>, "many">;
2266
2518
  fallback: z.ZodArray<z.ZodString, "many">;
2267
2519
  }, "strip", z.ZodTypeAny, {
2268
2520
  rules: {
2269
2521
  id: string;
2270
- alias: string;
2271
- next_node: string[];
2522
+ next_node: string;
2523
+ alias?: string | undefined;
2272
2524
  condition?: any;
2273
2525
  }[];
2274
2526
  fallback: string[];
2275
2527
  }, {
2276
2528
  rules: {
2277
2529
  id: string;
2278
- alias: string;
2279
- next_node: string[];
2530
+ next_node: string;
2531
+ alias?: string | undefined;
2280
2532
  condition?: any;
2281
2533
  }[];
2282
2534
  fallback: string[];
@@ -2287,8 +2539,8 @@ declare const formSchema: z.ZodObject<{
2287
2539
  config: {
2288
2540
  rules: {
2289
2541
  id: string;
2290
- alias: string;
2291
- next_node: string[];
2542
+ next_node: string;
2543
+ alias?: string | undefined;
2292
2544
  condition?: any;
2293
2545
  }[];
2294
2546
  fallback: string[];
@@ -2304,8 +2556,8 @@ declare const formSchema: z.ZodObject<{
2304
2556
  config: {
2305
2557
  rules: {
2306
2558
  id: string;
2307
- alias: string;
2308
- next_node: string[];
2559
+ next_node: string;
2560
+ alias?: string | undefined;
2309
2561
  condition?: any;
2310
2562
  }[];
2311
2563
  fallback: string[];
@@ -2329,41 +2581,241 @@ declare const formSchema: z.ZodObject<{
2329
2581
  x: number;
2330
2582
  y: number;
2331
2583
  }>;
2332
- alias: z.ZodString;
2584
+ alias: z.ZodOptional<z.ZodString>;
2333
2585
  config: z.ZodObject<{
2334
- components: z.ZodArray<z.ZodAny, "many">;
2335
- next_node: z.ZodArray<z.ZodString, "many">;
2586
+ components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
2587
+ z.ZodObject<{
2588
+ id: z.ZodString;
2589
+ type: z.ZodLiteral<"RICH_TEXT">;
2590
+ config: z.ZodObject<{
2591
+ content: z.ZodString;
2592
+ }, "strip", z.ZodTypeAny, {
2593
+ content: string;
2594
+ }, {
2595
+ content: string;
2596
+ }>;
2597
+ order: z.ZodOptional<z.ZodNumber>;
2598
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2599
+ }, "strip", z.ZodTypeAny, {
2600
+ type: "RICH_TEXT";
2601
+ id: string;
2602
+ config: {
2603
+ content: string;
2604
+ };
2605
+ visible: boolean;
2606
+ order?: number | undefined;
2607
+ }, {
2608
+ type: "RICH_TEXT";
2609
+ id: string;
2610
+ config: {
2611
+ content: string;
2612
+ };
2613
+ order?: number | undefined;
2614
+ visible?: boolean | undefined;
2615
+ }>,
2616
+ z.ZodObject<{
2617
+ id: z.ZodString;
2618
+ type: z.ZodLiteral<"LEGAL">;
2619
+ config: z.ZodObject<{
2620
+ text: z.ZodString;
2621
+ html: z.ZodOptional<z.ZodBoolean>;
2622
+ }, "strip", z.ZodTypeAny, {
2623
+ text: string;
2624
+ html?: boolean | undefined;
2625
+ }, {
2626
+ text: string;
2627
+ html?: boolean | undefined;
2628
+ }>;
2629
+ required: z.ZodOptional<z.ZodBoolean>;
2630
+ order: z.ZodOptional<z.ZodNumber>;
2631
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2632
+ }, "strip", z.ZodTypeAny, {
2633
+ type: "LEGAL";
2634
+ id: string;
2635
+ config: {
2636
+ text: string;
2637
+ html?: boolean | undefined;
2638
+ };
2639
+ visible: boolean;
2640
+ required?: boolean | undefined;
2641
+ order?: number | undefined;
2642
+ }, {
2643
+ type: "LEGAL";
2644
+ id: string;
2645
+ config: {
2646
+ text: string;
2647
+ html?: boolean | undefined;
2648
+ };
2649
+ required?: boolean | undefined;
2650
+ order?: number | undefined;
2651
+ visible?: boolean | undefined;
2652
+ }>,
2653
+ z.ZodObject<{
2654
+ id: z.ZodString;
2655
+ type: z.ZodLiteral<"NEXT_BUTTON">;
2656
+ config: z.ZodObject<{
2657
+ text: z.ZodOptional<z.ZodString>;
2658
+ }, "strip", z.ZodTypeAny, {
2659
+ text?: string | undefined;
2660
+ }, {
2661
+ text?: string | undefined;
2662
+ }>;
2663
+ order: z.ZodOptional<z.ZodNumber>;
2664
+ visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2665
+ }, "strip", z.ZodTypeAny, {
2666
+ type: "NEXT_BUTTON";
2667
+ id: string;
2668
+ config: {
2669
+ text?: string | undefined;
2670
+ };
2671
+ visible: boolean;
2672
+ order?: number | undefined;
2673
+ }, {
2674
+ type: "NEXT_BUTTON";
2675
+ id: string;
2676
+ config: {
2677
+ text?: string | undefined;
2678
+ };
2679
+ order?: number | undefined;
2680
+ visible?: boolean | undefined;
2681
+ }>
2682
+ ]>, "many">;
2683
+ next_node: z.ZodString;
2336
2684
  }, "strip", z.ZodTypeAny, {
2337
- components: any[];
2338
- next_node: string[];
2685
+ components: ({
2686
+ type: "RICH_TEXT";
2687
+ id: string;
2688
+ config: {
2689
+ content: string;
2690
+ };
2691
+ visible: boolean;
2692
+ order?: number | undefined;
2693
+ } | {
2694
+ type: "LEGAL";
2695
+ id: string;
2696
+ config: {
2697
+ text: string;
2698
+ html?: boolean | undefined;
2699
+ };
2700
+ visible: boolean;
2701
+ required?: boolean | undefined;
2702
+ order?: number | undefined;
2703
+ } | {
2704
+ type: "NEXT_BUTTON";
2705
+ id: string;
2706
+ config: {
2707
+ text?: string | undefined;
2708
+ };
2709
+ visible: boolean;
2710
+ order?: number | undefined;
2711
+ })[];
2712
+ next_node: string;
2339
2713
  }, {
2340
- components: any[];
2341
- next_node: string[];
2714
+ components: ({
2715
+ type: "RICH_TEXT";
2716
+ id: string;
2717
+ config: {
2718
+ content: string;
2719
+ };
2720
+ order?: number | undefined;
2721
+ visible?: boolean | undefined;
2722
+ } | {
2723
+ type: "LEGAL";
2724
+ id: string;
2725
+ config: {
2726
+ text: string;
2727
+ html?: boolean | undefined;
2728
+ };
2729
+ required?: boolean | undefined;
2730
+ order?: number | undefined;
2731
+ visible?: boolean | undefined;
2732
+ } | {
2733
+ type: "NEXT_BUTTON";
2734
+ id: string;
2735
+ config: {
2736
+ text?: string | undefined;
2737
+ };
2738
+ order?: number | undefined;
2739
+ visible?: boolean | undefined;
2740
+ })[];
2741
+ next_node: string;
2342
2742
  }>;
2343
2743
  }, "strip", z.ZodTypeAny, {
2344
2744
  type: "STEP";
2345
2745
  id: string;
2346
2746
  config: {
2347
- components: any[];
2348
- next_node: string[];
2747
+ components: ({
2748
+ type: "RICH_TEXT";
2749
+ id: string;
2750
+ config: {
2751
+ content: string;
2752
+ };
2753
+ visible: boolean;
2754
+ order?: number | undefined;
2755
+ } | {
2756
+ type: "LEGAL";
2757
+ id: string;
2758
+ config: {
2759
+ text: string;
2760
+ html?: boolean | undefined;
2761
+ };
2762
+ visible: boolean;
2763
+ required?: boolean | undefined;
2764
+ order?: number | undefined;
2765
+ } | {
2766
+ type: "NEXT_BUTTON";
2767
+ id: string;
2768
+ config: {
2769
+ text?: string | undefined;
2770
+ };
2771
+ visible: boolean;
2772
+ order?: number | undefined;
2773
+ })[];
2774
+ next_node: string;
2349
2775
  };
2350
2776
  coordinates: {
2351
2777
  x: number;
2352
2778
  y: number;
2353
2779
  };
2354
- alias: string;
2780
+ alias?: string | undefined;
2355
2781
  }, {
2356
2782
  type: "STEP";
2357
2783
  id: string;
2358
2784
  config: {
2359
- components: any[];
2360
- next_node: string[];
2785
+ components: ({
2786
+ type: "RICH_TEXT";
2787
+ id: string;
2788
+ config: {
2789
+ content: string;
2790
+ };
2791
+ order?: number | undefined;
2792
+ visible?: boolean | undefined;
2793
+ } | {
2794
+ type: "LEGAL";
2795
+ id: string;
2796
+ config: {
2797
+ text: string;
2798
+ html?: boolean | undefined;
2799
+ };
2800
+ required?: boolean | undefined;
2801
+ order?: number | undefined;
2802
+ visible?: boolean | undefined;
2803
+ } | {
2804
+ type: "NEXT_BUTTON";
2805
+ id: string;
2806
+ config: {
2807
+ text?: string | undefined;
2808
+ };
2809
+ order?: number | undefined;
2810
+ visible?: boolean | undefined;
2811
+ })[];
2812
+ next_node: string;
2361
2813
  };
2362
2814
  coordinates: {
2363
2815
  x: number;
2364
2816
  y: number;
2365
2817
  };
2366
- alias: string;
2818
+ alias?: string | undefined;
2367
2819
  }>
2368
2820
  ]>, "many">>;
2369
2821
  start: z.ZodOptional<z.ZodObject<{
@@ -2377,7 +2829,7 @@ declare const formSchema: z.ZodObject<{
2377
2829
  value: string;
2378
2830
  key: string;
2379
2831
  }>, "many">>;
2380
- next_node: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2832
+ next_node: z.ZodOptional<z.ZodString>;
2381
2833
  coordinates: z.ZodOptional<z.ZodObject<{
2382
2834
  x: z.ZodNumber;
2383
2835
  y: z.ZodNumber;
@@ -2393,7 +2845,7 @@ declare const formSchema: z.ZodObject<{
2393
2845
  x: number;
2394
2846
  y: number;
2395
2847
  } | undefined;
2396
- next_node?: string[] | undefined;
2848
+ next_node?: string | undefined;
2397
2849
  hidden_fields?: {
2398
2850
  value: string;
2399
2851
  key: string;
@@ -2403,7 +2855,7 @@ declare const formSchema: z.ZodObject<{
2403
2855
  x: number;
2404
2856
  y: number;
2405
2857
  } | undefined;
2406
- next_node?: string[] | undefined;
2858
+ next_node?: string | undefined;
2407
2859
  hidden_fields?: {
2408
2860
  value: string;
2409
2861
  key: string;
@@ -2484,7 +2936,7 @@ declare const formSchema: z.ZodObject<{
2484
2936
  x: number;
2485
2937
  y: number;
2486
2938
  } | undefined;
2487
- next_node?: string[] | undefined;
2939
+ next_node?: string | undefined;
2488
2940
  hidden_fields?: {
2489
2941
  value: string;
2490
2942
  key: string;
@@ -2501,22 +2953,22 @@ declare const formSchema: z.ZodObject<{
2501
2953
  type: "FLOW";
2502
2954
  id: string;
2503
2955
  config: {
2504
- next_node: string[];
2956
+ next_node: string;
2505
2957
  flow_id: string;
2506
2958
  };
2507
2959
  coordinates: {
2508
2960
  x: number;
2509
2961
  y: number;
2510
2962
  };
2511
- alias: string;
2963
+ alias?: string | undefined;
2512
2964
  } | {
2513
2965
  type: "ROUTER";
2514
2966
  id: string;
2515
2967
  config: {
2516
2968
  rules: {
2517
2969
  id: string;
2518
- alias: string;
2519
- next_node: string[];
2970
+ next_node: string;
2971
+ alias?: string | undefined;
2520
2972
  condition?: any;
2521
2973
  }[];
2522
2974
  fallback: string[];
@@ -2530,14 +2982,40 @@ declare const formSchema: z.ZodObject<{
2530
2982
  type: "STEP";
2531
2983
  id: string;
2532
2984
  config: {
2533
- components: any[];
2534
- next_node: string[];
2985
+ components: ({
2986
+ type: "RICH_TEXT";
2987
+ id: string;
2988
+ config: {
2989
+ content: string;
2990
+ };
2991
+ visible: boolean;
2992
+ order?: number | undefined;
2993
+ } | {
2994
+ type: "LEGAL";
2995
+ id: string;
2996
+ config: {
2997
+ text: string;
2998
+ html?: boolean | undefined;
2999
+ };
3000
+ visible: boolean;
3001
+ required?: boolean | undefined;
3002
+ order?: number | undefined;
3003
+ } | {
3004
+ type: "NEXT_BUTTON";
3005
+ id: string;
3006
+ config: {
3007
+ text?: string | undefined;
3008
+ };
3009
+ visible: boolean;
3010
+ order?: number | undefined;
3011
+ })[];
3012
+ next_node: string;
2535
3013
  };
2536
3014
  coordinates: {
2537
3015
  x: number;
2538
3016
  y: number;
2539
3017
  };
2540
- alias: string;
3018
+ alias?: string | undefined;
2541
3019
  })[] | undefined;
2542
3020
  ending?: {
2543
3021
  coordinates?: {
@@ -2568,7 +3046,7 @@ declare const formSchema: z.ZodObject<{
2568
3046
  x: number;
2569
3047
  y: number;
2570
3048
  } | undefined;
2571
- next_node?: string[] | undefined;
3049
+ next_node?: string | undefined;
2572
3050
  hidden_fields?: {
2573
3051
  value: string;
2574
3052
  key: string;
@@ -2585,22 +3063,22 @@ declare const formSchema: z.ZodObject<{
2585
3063
  type: "FLOW";
2586
3064
  id: string;
2587
3065
  config: {
2588
- next_node: string[];
3066
+ next_node: string;
2589
3067
  flow_id: string;
2590
3068
  };
2591
3069
  coordinates: {
2592
3070
  x: number;
2593
3071
  y: number;
2594
3072
  };
2595
- alias: string;
3073
+ alias?: string | undefined;
2596
3074
  } | {
2597
3075
  type: "ROUTER";
2598
3076
  id: string;
2599
3077
  config: {
2600
3078
  rules: {
2601
3079
  id: string;
2602
- alias: string;
2603
- next_node: string[];
3080
+ next_node: string;
3081
+ alias?: string | undefined;
2604
3082
  condition?: any;
2605
3083
  }[];
2606
3084
  fallback: string[];
@@ -2614,14 +3092,40 @@ declare const formSchema: z.ZodObject<{
2614
3092
  type: "STEP";
2615
3093
  id: string;
2616
3094
  config: {
2617
- components: any[];
2618
- next_node: string[];
3095
+ components: ({
3096
+ type: "RICH_TEXT";
3097
+ id: string;
3098
+ config: {
3099
+ content: string;
3100
+ };
3101
+ order?: number | undefined;
3102
+ visible?: boolean | undefined;
3103
+ } | {
3104
+ type: "LEGAL";
3105
+ id: string;
3106
+ config: {
3107
+ text: string;
3108
+ html?: boolean | undefined;
3109
+ };
3110
+ required?: boolean | undefined;
3111
+ order?: number | undefined;
3112
+ visible?: boolean | undefined;
3113
+ } | {
3114
+ type: "NEXT_BUTTON";
3115
+ id: string;
3116
+ config: {
3117
+ text?: string | undefined;
3118
+ };
3119
+ order?: number | undefined;
3120
+ visible?: boolean | undefined;
3121
+ })[];
3122
+ next_node: string;
2619
3123
  };
2620
3124
  coordinates: {
2621
3125
  x: number;
2622
3126
  y: number;
2623
3127
  };
2624
- alias: string;
3128
+ alias?: string | undefined;
2625
3129
  })[] | undefined;
2626
3130
  ending?: {
2627
3131
  coordinates?: {