@authhero/adapter-interfaces 0.61.0 → 0.63.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.
@@ -994,10 +994,7 @@ export declare const coordinatesSchema: z.ZodObject<{
994
994
  x: number;
995
995
  y: number;
996
996
  }>;
997
- export type Coordinates = {
998
- x: number;
999
- y: number;
1000
- };
997
+ export type Coordinates = z.infer<typeof coordinatesSchema>;
1001
998
  export declare enum ComponentType {
1002
999
  RICH_TEXT = "RICH_TEXT",
1003
1000
  NEXT_BUTTON = "NEXT_BUTTON",
@@ -1176,6 +1173,19 @@ export declare const fieldComponentSchema: z.ZodObject<{
1176
1173
  required?: boolean | undefined;
1177
1174
  sensitive?: boolean | undefined;
1178
1175
  }>;
1176
+ export declare const genericComponentSchema: z.ZodObject<{
1177
+ id: z.ZodString;
1178
+ category: z.ZodString;
1179
+ type: z.ZodString;
1180
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1181
+ id: z.ZodString;
1182
+ category: z.ZodString;
1183
+ type: z.ZodString;
1184
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1185
+ id: z.ZodString;
1186
+ category: z.ZodString;
1187
+ type: z.ZodString;
1188
+ }, z.ZodTypeAny, "passthrough">>;
1179
1189
  export declare const componentSchema: z.ZodUnion<[
1180
1190
  z.ZodObject<{
1181
1191
  id: z.ZodString;
@@ -1332,60 +1342,27 @@ export declare const componentSchema: z.ZodUnion<[
1332
1342
  };
1333
1343
  required?: boolean | undefined;
1334
1344
  sensitive?: boolean | undefined;
1335
- }>
1345
+ }>,
1346
+ z.ZodObject<{
1347
+ id: z.ZodString;
1348
+ category: z.ZodString;
1349
+ type: z.ZodString;
1350
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1351
+ id: z.ZodString;
1352
+ category: z.ZodString;
1353
+ type: z.ZodString;
1354
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1355
+ id: z.ZodString;
1356
+ category: z.ZodString;
1357
+ type: z.ZodString;
1358
+ }, z.ZodTypeAny, "passthrough">>
1336
1359
  ]>;
1337
- export interface RichTextComponent {
1338
- id: string;
1339
- category: ComponentCategory.BLOCK;
1340
- type: ComponentType.RICH_TEXT;
1341
- config: {
1342
- content: string;
1343
- [key: string]: any;
1344
- };
1345
- [key: string]: any;
1346
- }
1347
- export interface ButtonComponent {
1348
- id: string;
1349
- category: ComponentCategory.BLOCK;
1350
- type: ComponentType.NEXT_BUTTON | ComponentType.BACK_BUTTON | ComponentType.SUBMIT_BUTTON;
1351
- config: {
1352
- text: string;
1353
- [key: string]: any;
1354
- };
1355
- [key: string]: any;
1356
- }
1357
- export interface LegalComponent {
1358
- id: string;
1359
- category: ComponentCategory.FIELD;
1360
- type: ComponentType.LEGAL;
1361
- required?: boolean;
1362
- sensitive?: boolean;
1363
- config: {
1364
- text: string;
1365
- [key: string]: any;
1366
- };
1367
- [key: string]: any;
1368
- }
1369
- export interface FieldComponent {
1370
- id: string;
1371
- category: ComponentCategory.FIELD;
1372
- type: ComponentType.TEXT | ComponentType.EMAIL | ComponentType.PASSWORD | ComponentType.NUMBER | ComponentType.PHONE | ComponentType.DATE | ComponentType.CHECKBOX | ComponentType.RADIO | ComponentType.SELECT | ComponentType.HIDDEN;
1373
- required?: boolean;
1374
- sensitive?: boolean;
1375
- config: {
1376
- label?: string;
1377
- placeholder?: string;
1378
- [key: string]: any;
1379
- };
1380
- [key: string]: any;
1381
- }
1382
- export interface GenericComponent {
1383
- id: string;
1384
- category: string;
1385
- type: string;
1386
- [key: string]: any;
1387
- }
1388
- export type Component = RichTextComponent | ButtonComponent | LegalComponent | FieldComponent | GenericComponent;
1360
+ export type RichTextComponent = z.infer<typeof richTextComponentSchema>;
1361
+ export type ButtonComponent = z.infer<typeof buttonComponentSchema>;
1362
+ export type LegalComponent = z.infer<typeof legalComponentSchema>;
1363
+ export type FieldComponent = z.infer<typeof fieldComponentSchema>;
1364
+ export type GenericComponent = z.infer<typeof genericComponentSchema>;
1365
+ export type Component = z.infer<typeof componentSchema>;
1389
1366
  export declare enum NodeType {
1390
1367
  STEP = "STEP",
1391
1368
  FLOW = "FLOW",
@@ -1563,7 +1540,20 @@ export declare const stepNodeSchema: z.ZodObject<{
1563
1540
  };
1564
1541
  required?: boolean | undefined;
1565
1542
  sensitive?: boolean | undefined;
1566
- }>
1543
+ }>,
1544
+ z.ZodObject<{
1545
+ id: z.ZodString;
1546
+ category: z.ZodString;
1547
+ type: z.ZodString;
1548
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1549
+ id: z.ZodString;
1550
+ category: z.ZodString;
1551
+ type: z.ZodString;
1552
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1553
+ id: z.ZodString;
1554
+ category: z.ZodString;
1555
+ type: z.ZodString;
1556
+ }, z.ZodTypeAny, "passthrough">>
1567
1557
  ]>, "many">;
1568
1558
  next_node: z.ZodString;
1569
1559
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1723,7 +1713,20 @@ export declare const stepNodeSchema: z.ZodObject<{
1723
1713
  };
1724
1714
  required?: boolean | undefined;
1725
1715
  sensitive?: boolean | undefined;
1726
- }>
1716
+ }>,
1717
+ z.ZodObject<{
1718
+ id: z.ZodString;
1719
+ category: z.ZodString;
1720
+ type: z.ZodString;
1721
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1722
+ id: z.ZodString;
1723
+ category: z.ZodString;
1724
+ type: z.ZodString;
1725
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1726
+ id: z.ZodString;
1727
+ category: z.ZodString;
1728
+ type: z.ZodString;
1729
+ }, z.ZodTypeAny, "passthrough">>
1727
1730
  ]>, "many">;
1728
1731
  next_node: z.ZodString;
1729
1732
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1883,7 +1886,20 @@ export declare const stepNodeSchema: z.ZodObject<{
1883
1886
  };
1884
1887
  required?: boolean | undefined;
1885
1888
  sensitive?: boolean | undefined;
1886
- }>
1889
+ }>,
1890
+ z.ZodObject<{
1891
+ id: z.ZodString;
1892
+ category: z.ZodString;
1893
+ type: z.ZodString;
1894
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1895
+ id: z.ZodString;
1896
+ category: z.ZodString;
1897
+ type: z.ZodString;
1898
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1899
+ id: z.ZodString;
1900
+ category: z.ZodString;
1901
+ type: z.ZodString;
1902
+ }, z.ZodTypeAny, "passthrough">>
1887
1903
  ]>, "many">;
1888
1904
  next_node: z.ZodString;
1889
1905
  }, z.ZodTypeAny, "passthrough">>;
@@ -1932,7 +1948,11 @@ export declare const stepNodeSchema: z.ZodObject<{
1932
1948
  };
1933
1949
  required?: boolean | undefined;
1934
1950
  sensitive?: boolean | undefined;
1935
- })[];
1951
+ } | z.objectOutputType<{
1952
+ id: z.ZodString;
1953
+ category: z.ZodString;
1954
+ type: z.ZodString;
1955
+ }, z.ZodTypeAny, "passthrough">)[];
1936
1956
  next_node: string;
1937
1957
  } & {
1938
1958
  [k: string]: unknown;
@@ -1987,7 +2007,11 @@ export declare const stepNodeSchema: z.ZodObject<{
1987
2007
  };
1988
2008
  required?: boolean | undefined;
1989
2009
  sensitive?: boolean | undefined;
1990
- })[];
2010
+ } | z.objectInputType<{
2011
+ id: z.ZodString;
2012
+ category: z.ZodString;
2013
+ type: z.ZodString;
2014
+ }, z.ZodTypeAny, "passthrough">)[];
1991
2015
  next_node: string;
1992
2016
  } & {
1993
2017
  [k: string]: unknown;
@@ -2011,6 +2035,7 @@ export declare const flowNodeSchema: z.ZodObject<{
2011
2035
  x: number;
2012
2036
  y: number;
2013
2037
  }>;
2038
+ alias: z.ZodOptional<z.ZodString>;
2014
2039
  config: z.ZodObject<{
2015
2040
  flow_id: z.ZodString;
2016
2041
  next_node: z.ZodString;
@@ -2032,6 +2057,7 @@ export declare const flowNodeSchema: z.ZodObject<{
2032
2057
  x: number;
2033
2058
  y: number;
2034
2059
  };
2060
+ alias?: string | undefined;
2035
2061
  }, {
2036
2062
  type: NodeType.FLOW;
2037
2063
  id: string;
@@ -2043,7 +2069,48 @@ export declare const flowNodeSchema: z.ZodObject<{
2043
2069
  x: number;
2044
2070
  y: number;
2045
2071
  };
2072
+ alias?: string | undefined;
2046
2073
  }>;
2074
+ export declare const genericNodeSchema: z.ZodObject<{
2075
+ id: z.ZodString;
2076
+ type: z.ZodString;
2077
+ coordinates: z.ZodObject<{
2078
+ x: z.ZodNumber;
2079
+ y: z.ZodNumber;
2080
+ }, "strip", z.ZodTypeAny, {
2081
+ x: number;
2082
+ y: number;
2083
+ }, {
2084
+ x: number;
2085
+ y: number;
2086
+ }>;
2087
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2088
+ id: z.ZodString;
2089
+ type: z.ZodString;
2090
+ coordinates: z.ZodObject<{
2091
+ x: z.ZodNumber;
2092
+ y: z.ZodNumber;
2093
+ }, "strip", z.ZodTypeAny, {
2094
+ x: number;
2095
+ y: number;
2096
+ }, {
2097
+ x: number;
2098
+ y: number;
2099
+ }>;
2100
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2101
+ id: z.ZodString;
2102
+ type: z.ZodString;
2103
+ coordinates: z.ZodObject<{
2104
+ x: z.ZodNumber;
2105
+ y: z.ZodNumber;
2106
+ }, "strip", z.ZodTypeAny, {
2107
+ x: number;
2108
+ y: number;
2109
+ }, {
2110
+ x: number;
2111
+ y: number;
2112
+ }>;
2113
+ }, z.ZodTypeAny, "passthrough">>;
2047
2114
  export declare const nodeSchema: z.ZodUnion<[
2048
2115
  z.ZodObject<{
2049
2116
  id: z.ZodString;
@@ -2216,7 +2283,20 @@ export declare const nodeSchema: z.ZodUnion<[
2216
2283
  };
2217
2284
  required?: boolean | undefined;
2218
2285
  sensitive?: boolean | undefined;
2219
- }>
2286
+ }>,
2287
+ z.ZodObject<{
2288
+ id: z.ZodString;
2289
+ category: z.ZodString;
2290
+ type: z.ZodString;
2291
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2292
+ id: z.ZodString;
2293
+ category: z.ZodString;
2294
+ type: z.ZodString;
2295
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2296
+ id: z.ZodString;
2297
+ category: z.ZodString;
2298
+ type: z.ZodString;
2299
+ }, z.ZodTypeAny, "passthrough">>
2220
2300
  ]>, "many">;
2221
2301
  next_node: z.ZodString;
2222
2302
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2376,7 +2456,20 @@ export declare const nodeSchema: z.ZodUnion<[
2376
2456
  };
2377
2457
  required?: boolean | undefined;
2378
2458
  sensitive?: boolean | undefined;
2379
- }>
2459
+ }>,
2460
+ z.ZodObject<{
2461
+ id: z.ZodString;
2462
+ category: z.ZodString;
2463
+ type: z.ZodString;
2464
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2465
+ id: z.ZodString;
2466
+ category: z.ZodString;
2467
+ type: z.ZodString;
2468
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2469
+ id: z.ZodString;
2470
+ category: z.ZodString;
2471
+ type: z.ZodString;
2472
+ }, z.ZodTypeAny, "passthrough">>
2380
2473
  ]>, "many">;
2381
2474
  next_node: z.ZodString;
2382
2475
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2536,7 +2629,20 @@ export declare const nodeSchema: z.ZodUnion<[
2536
2629
  };
2537
2630
  required?: boolean | undefined;
2538
2631
  sensitive?: boolean | undefined;
2539
- }>
2632
+ }>,
2633
+ z.ZodObject<{
2634
+ id: z.ZodString;
2635
+ category: z.ZodString;
2636
+ type: z.ZodString;
2637
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2638
+ id: z.ZodString;
2639
+ category: z.ZodString;
2640
+ type: z.ZodString;
2641
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2642
+ id: z.ZodString;
2643
+ category: z.ZodString;
2644
+ type: z.ZodString;
2645
+ }, z.ZodTypeAny, "passthrough">>
2540
2646
  ]>, "many">;
2541
2647
  next_node: z.ZodString;
2542
2648
  }, z.ZodTypeAny, "passthrough">>;
@@ -2585,7 +2691,11 @@ export declare const nodeSchema: z.ZodUnion<[
2585
2691
  };
2586
2692
  required?: boolean | undefined;
2587
2693
  sensitive?: boolean | undefined;
2588
- })[];
2694
+ } | z.objectOutputType<{
2695
+ id: z.ZodString;
2696
+ category: z.ZodString;
2697
+ type: z.ZodString;
2698
+ }, z.ZodTypeAny, "passthrough">)[];
2589
2699
  next_node: string;
2590
2700
  } & {
2591
2701
  [k: string]: unknown;
@@ -2640,7 +2750,11 @@ export declare const nodeSchema: z.ZodUnion<[
2640
2750
  };
2641
2751
  required?: boolean | undefined;
2642
2752
  sensitive?: boolean | undefined;
2643
- })[];
2753
+ } | z.objectInputType<{
2754
+ id: z.ZodString;
2755
+ category: z.ZodString;
2756
+ type: z.ZodString;
2757
+ }, z.ZodTypeAny, "passthrough">)[];
2644
2758
  next_node: string;
2645
2759
  } & {
2646
2760
  [k: string]: unknown;
@@ -2664,6 +2778,7 @@ export declare const nodeSchema: z.ZodUnion<[
2664
2778
  x: number;
2665
2779
  y: number;
2666
2780
  }>;
2781
+ alias: z.ZodOptional<z.ZodString>;
2667
2782
  config: z.ZodObject<{
2668
2783
  flow_id: z.ZodString;
2669
2784
  next_node: z.ZodString;
@@ -2685,6 +2800,7 @@ export declare const nodeSchema: z.ZodUnion<[
2685
2800
  x: number;
2686
2801
  y: number;
2687
2802
  };
2803
+ alias?: string | undefined;
2688
2804
  }, {
2689
2805
  type: NodeType.FLOW;
2690
2806
  id: string;
@@ -2696,38 +2812,53 @@ export declare const nodeSchema: z.ZodUnion<[
2696
2812
  x: number;
2697
2813
  y: number;
2698
2814
  };
2699
- }>
2815
+ alias?: string | undefined;
2816
+ }>,
2817
+ z.ZodObject<{
2818
+ id: z.ZodString;
2819
+ type: z.ZodString;
2820
+ coordinates: z.ZodObject<{
2821
+ x: z.ZodNumber;
2822
+ y: z.ZodNumber;
2823
+ }, "strip", z.ZodTypeAny, {
2824
+ x: number;
2825
+ y: number;
2826
+ }, {
2827
+ x: number;
2828
+ y: number;
2829
+ }>;
2830
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2831
+ id: z.ZodString;
2832
+ type: z.ZodString;
2833
+ coordinates: z.ZodObject<{
2834
+ x: z.ZodNumber;
2835
+ y: z.ZodNumber;
2836
+ }, "strip", z.ZodTypeAny, {
2837
+ x: number;
2838
+ y: number;
2839
+ }, {
2840
+ x: number;
2841
+ y: number;
2842
+ }>;
2843
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2844
+ id: z.ZodString;
2845
+ type: z.ZodString;
2846
+ coordinates: z.ZodObject<{
2847
+ x: z.ZodNumber;
2848
+ y: z.ZodNumber;
2849
+ }, "strip", z.ZodTypeAny, {
2850
+ x: number;
2851
+ y: number;
2852
+ }, {
2853
+ x: number;
2854
+ y: number;
2855
+ }>;
2856
+ }, z.ZodTypeAny, "passthrough">>
2700
2857
  ]>;
2701
- export interface StepNode {
2702
- id: string;
2703
- type: NodeType.STEP;
2704
- coordinates: Coordinates;
2705
- alias?: string;
2706
- config: {
2707
- components: Component[];
2708
- next_node: string;
2709
- [key: string]: any;
2710
- };
2711
- [key: string]: any;
2712
- }
2713
- export interface FlowNode {
2714
- id: string;
2715
- type: NodeType.FLOW;
2716
- coordinates: Coordinates;
2717
- config: {
2718
- flow_id: string;
2719
- next_node: string;
2720
- [key: string]: any;
2721
- };
2722
- [key: string]: any;
2723
- }
2724
- export interface GenericNode {
2725
- id: string;
2726
- type: string;
2727
- coordinates: Coordinates;
2728
- [key: string]: any;
2729
- }
2730
- type Node$1 = StepNode | FlowNode | GenericNode;
2858
+ export type StepNode = z.infer<typeof stepNodeSchema>;
2859
+ export type FlowNode = z.infer<typeof flowNodeSchema>;
2860
+ export type GenericNode = z.infer<typeof genericNodeSchema>;
2861
+ type Node$1 = z.infer<typeof nodeSchema>;
2731
2862
  export declare const startSchema: z.ZodObject<{
2732
2863
  next_node: z.ZodString;
2733
2864
  coordinates: z.ZodObject<{
@@ -2986,7 +3117,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
2986
3117
  };
2987
3118
  required?: boolean | undefined;
2988
3119
  sensitive?: boolean | undefined;
2989
- }>
3120
+ }>,
3121
+ z.ZodObject<{
3122
+ id: z.ZodString;
3123
+ category: z.ZodString;
3124
+ type: z.ZodString;
3125
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3126
+ id: z.ZodString;
3127
+ category: z.ZodString;
3128
+ type: z.ZodString;
3129
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3130
+ id: z.ZodString;
3131
+ category: z.ZodString;
3132
+ type: z.ZodString;
3133
+ }, z.ZodTypeAny, "passthrough">>
2990
3134
  ]>, "many">;
2991
3135
  next_node: z.ZodString;
2992
3136
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3146,7 +3290,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
3146
3290
  };
3147
3291
  required?: boolean | undefined;
3148
3292
  sensitive?: boolean | undefined;
3149
- }>
3293
+ }>,
3294
+ z.ZodObject<{
3295
+ id: z.ZodString;
3296
+ category: z.ZodString;
3297
+ type: z.ZodString;
3298
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3299
+ id: z.ZodString;
3300
+ category: z.ZodString;
3301
+ type: z.ZodString;
3302
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3303
+ id: z.ZodString;
3304
+ category: z.ZodString;
3305
+ type: z.ZodString;
3306
+ }, z.ZodTypeAny, "passthrough">>
3150
3307
  ]>, "many">;
3151
3308
  next_node: z.ZodString;
3152
3309
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3306,7 +3463,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
3306
3463
  };
3307
3464
  required?: boolean | undefined;
3308
3465
  sensitive?: boolean | undefined;
3309
- }>
3466
+ }>,
3467
+ z.ZodObject<{
3468
+ id: z.ZodString;
3469
+ category: z.ZodString;
3470
+ type: z.ZodString;
3471
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3472
+ id: z.ZodString;
3473
+ category: z.ZodString;
3474
+ type: z.ZodString;
3475
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3476
+ id: z.ZodString;
3477
+ category: z.ZodString;
3478
+ type: z.ZodString;
3479
+ }, z.ZodTypeAny, "passthrough">>
3310
3480
  ]>, "many">;
3311
3481
  next_node: z.ZodString;
3312
3482
  }, z.ZodTypeAny, "passthrough">>;
@@ -3355,7 +3525,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
3355
3525
  };
3356
3526
  required?: boolean | undefined;
3357
3527
  sensitive?: boolean | undefined;
3358
- })[];
3528
+ } | z.objectOutputType<{
3529
+ id: z.ZodString;
3530
+ category: z.ZodString;
3531
+ type: z.ZodString;
3532
+ }, z.ZodTypeAny, "passthrough">)[];
3359
3533
  next_node: string;
3360
3534
  } & {
3361
3535
  [k: string]: unknown;
@@ -3410,7 +3584,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
3410
3584
  };
3411
3585
  required?: boolean | undefined;
3412
3586
  sensitive?: boolean | undefined;
3413
- })[];
3587
+ } | z.objectInputType<{
3588
+ id: z.ZodString;
3589
+ category: z.ZodString;
3590
+ type: z.ZodString;
3591
+ }, z.ZodTypeAny, "passthrough">)[];
3414
3592
  next_node: string;
3415
3593
  } & {
3416
3594
  [k: string]: unknown;
@@ -3434,6 +3612,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
3434
3612
  x: number;
3435
3613
  y: number;
3436
3614
  }>;
3615
+ alias: z.ZodOptional<z.ZodString>;
3437
3616
  config: z.ZodObject<{
3438
3617
  flow_id: z.ZodString;
3439
3618
  next_node: z.ZodString;
@@ -3455,6 +3634,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
3455
3634
  x: number;
3456
3635
  y: number;
3457
3636
  };
3637
+ alias?: string | undefined;
3458
3638
  }, {
3459
3639
  type: NodeType.FLOW;
3460
3640
  id: string;
@@ -3466,38 +3646,79 @@ export declare const auth0FlowSchema: z.ZodObject<{
3466
3646
  x: number;
3467
3647
  y: number;
3468
3648
  };
3469
- }>
3470
- ]>, "many">;
3471
- start: z.ZodObject<{
3472
- next_node: z.ZodString;
3473
- coordinates: z.ZodObject<{
3474
- x: z.ZodNumber;
3475
- y: z.ZodNumber;
3476
- }, "strip", z.ZodTypeAny, {
3477
- x: number;
3478
- y: number;
3479
- }, {
3480
- x: number;
3481
- y: number;
3482
- }>;
3483
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3484
- next_node: z.ZodString;
3485
- coordinates: z.ZodObject<{
3486
- x: z.ZodNumber;
3487
- y: z.ZodNumber;
3488
- }, "strip", z.ZodTypeAny, {
3489
- x: number;
3490
- y: number;
3491
- }, {
3492
- x: number;
3493
- y: number;
3494
- }>;
3495
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3496
- next_node: z.ZodString;
3497
- coordinates: z.ZodObject<{
3498
- x: z.ZodNumber;
3499
- y: z.ZodNumber;
3500
- }, "strip", z.ZodTypeAny, {
3649
+ alias?: string | undefined;
3650
+ }>,
3651
+ z.ZodObject<{
3652
+ id: z.ZodString;
3653
+ type: z.ZodString;
3654
+ coordinates: z.ZodObject<{
3655
+ x: z.ZodNumber;
3656
+ y: z.ZodNumber;
3657
+ }, "strip", z.ZodTypeAny, {
3658
+ x: number;
3659
+ y: number;
3660
+ }, {
3661
+ x: number;
3662
+ y: number;
3663
+ }>;
3664
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3665
+ id: z.ZodString;
3666
+ type: z.ZodString;
3667
+ coordinates: z.ZodObject<{
3668
+ x: z.ZodNumber;
3669
+ y: z.ZodNumber;
3670
+ }, "strip", z.ZodTypeAny, {
3671
+ x: number;
3672
+ y: number;
3673
+ }, {
3674
+ x: number;
3675
+ y: number;
3676
+ }>;
3677
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3678
+ id: z.ZodString;
3679
+ type: z.ZodString;
3680
+ coordinates: z.ZodObject<{
3681
+ x: z.ZodNumber;
3682
+ y: z.ZodNumber;
3683
+ }, "strip", z.ZodTypeAny, {
3684
+ x: number;
3685
+ y: number;
3686
+ }, {
3687
+ x: number;
3688
+ y: number;
3689
+ }>;
3690
+ }, z.ZodTypeAny, "passthrough">>
3691
+ ]>, "many">;
3692
+ start: z.ZodObject<{
3693
+ next_node: z.ZodString;
3694
+ coordinates: z.ZodObject<{
3695
+ x: z.ZodNumber;
3696
+ y: z.ZodNumber;
3697
+ }, "strip", z.ZodTypeAny, {
3698
+ x: number;
3699
+ y: number;
3700
+ }, {
3701
+ x: number;
3702
+ y: number;
3703
+ }>;
3704
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3705
+ next_node: z.ZodString;
3706
+ coordinates: z.ZodObject<{
3707
+ x: z.ZodNumber;
3708
+ y: z.ZodNumber;
3709
+ }, "strip", z.ZodTypeAny, {
3710
+ x: number;
3711
+ y: number;
3712
+ }, {
3713
+ x: number;
3714
+ y: number;
3715
+ }>;
3716
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3717
+ next_node: z.ZodString;
3718
+ coordinates: z.ZodObject<{
3719
+ x: z.ZodNumber;
3720
+ y: z.ZodNumber;
3721
+ }, "strip", z.ZodTypeAny, {
3501
3722
  x: number;
3502
3723
  y: number;
3503
3724
  }, {
@@ -3736,7 +3957,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
3736
3957
  };
3737
3958
  required?: boolean | undefined;
3738
3959
  sensitive?: boolean | undefined;
3739
- }>
3960
+ }>,
3961
+ z.ZodObject<{
3962
+ id: z.ZodString;
3963
+ category: z.ZodString;
3964
+ type: z.ZodString;
3965
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3966
+ id: z.ZodString;
3967
+ category: z.ZodString;
3968
+ type: z.ZodString;
3969
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3970
+ id: z.ZodString;
3971
+ category: z.ZodString;
3972
+ type: z.ZodString;
3973
+ }, z.ZodTypeAny, "passthrough">>
3740
3974
  ]>, "many">;
3741
3975
  next_node: z.ZodString;
3742
3976
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3896,7 +4130,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
3896
4130
  };
3897
4131
  required?: boolean | undefined;
3898
4132
  sensitive?: boolean | undefined;
3899
- }>
4133
+ }>,
4134
+ z.ZodObject<{
4135
+ id: z.ZodString;
4136
+ category: z.ZodString;
4137
+ type: z.ZodString;
4138
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4139
+ id: z.ZodString;
4140
+ category: z.ZodString;
4141
+ type: z.ZodString;
4142
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4143
+ id: z.ZodString;
4144
+ category: z.ZodString;
4145
+ type: z.ZodString;
4146
+ }, z.ZodTypeAny, "passthrough">>
3900
4147
  ]>, "many">;
3901
4148
  next_node: z.ZodString;
3902
4149
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4056,7 +4303,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
4056
4303
  };
4057
4304
  required?: boolean | undefined;
4058
4305
  sensitive?: boolean | undefined;
4059
- }>
4306
+ }>,
4307
+ z.ZodObject<{
4308
+ id: z.ZodString;
4309
+ category: z.ZodString;
4310
+ type: z.ZodString;
4311
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4312
+ id: z.ZodString;
4313
+ category: z.ZodString;
4314
+ type: z.ZodString;
4315
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4316
+ id: z.ZodString;
4317
+ category: z.ZodString;
4318
+ type: z.ZodString;
4319
+ }, z.ZodTypeAny, "passthrough">>
4060
4320
  ]>, "many">;
4061
4321
  next_node: z.ZodString;
4062
4322
  }, z.ZodTypeAny, "passthrough">>;
@@ -4105,7 +4365,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
4105
4365
  };
4106
4366
  required?: boolean | undefined;
4107
4367
  sensitive?: boolean | undefined;
4108
- })[];
4368
+ } | z.objectOutputType<{
4369
+ id: z.ZodString;
4370
+ category: z.ZodString;
4371
+ type: z.ZodString;
4372
+ }, z.ZodTypeAny, "passthrough">)[];
4109
4373
  next_node: string;
4110
4374
  } & {
4111
4375
  [k: string]: unknown;
@@ -4160,7 +4424,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
4160
4424
  };
4161
4425
  required?: boolean | undefined;
4162
4426
  sensitive?: boolean | undefined;
4163
- })[];
4427
+ } | z.objectInputType<{
4428
+ id: z.ZodString;
4429
+ category: z.ZodString;
4430
+ type: z.ZodString;
4431
+ }, z.ZodTypeAny, "passthrough">)[];
4164
4432
  next_node: string;
4165
4433
  } & {
4166
4434
  [k: string]: unknown;
@@ -4184,6 +4452,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
4184
4452
  x: number;
4185
4453
  y: number;
4186
4454
  }>;
4455
+ alias: z.ZodOptional<z.ZodString>;
4187
4456
  config: z.ZodObject<{
4188
4457
  flow_id: z.ZodString;
4189
4458
  next_node: z.ZodString;
@@ -4205,6 +4474,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
4205
4474
  x: number;
4206
4475
  y: number;
4207
4476
  };
4477
+ alias?: string | undefined;
4208
4478
  }, {
4209
4479
  type: NodeType.FLOW;
4210
4480
  id: string;
@@ -4216,7 +4486,48 @@ export declare const auth0FlowSchema: z.ZodObject<{
4216
4486
  x: number;
4217
4487
  y: number;
4218
4488
  };
4219
- }>
4489
+ alias?: string | undefined;
4490
+ }>,
4491
+ z.ZodObject<{
4492
+ id: z.ZodString;
4493
+ type: z.ZodString;
4494
+ coordinates: z.ZodObject<{
4495
+ x: z.ZodNumber;
4496
+ y: z.ZodNumber;
4497
+ }, "strip", z.ZodTypeAny, {
4498
+ x: number;
4499
+ y: number;
4500
+ }, {
4501
+ x: number;
4502
+ y: number;
4503
+ }>;
4504
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4505
+ id: z.ZodString;
4506
+ type: z.ZodString;
4507
+ coordinates: z.ZodObject<{
4508
+ x: z.ZodNumber;
4509
+ y: z.ZodNumber;
4510
+ }, "strip", z.ZodTypeAny, {
4511
+ x: number;
4512
+ y: number;
4513
+ }, {
4514
+ x: number;
4515
+ y: number;
4516
+ }>;
4517
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4518
+ id: z.ZodString;
4519
+ type: z.ZodString;
4520
+ coordinates: z.ZodObject<{
4521
+ x: z.ZodNumber;
4522
+ y: z.ZodNumber;
4523
+ }, "strip", z.ZodTypeAny, {
4524
+ x: number;
4525
+ y: number;
4526
+ }, {
4527
+ x: number;
4528
+ y: number;
4529
+ }>;
4530
+ }, z.ZodTypeAny, "passthrough">>
4220
4531
  ]>, "many">;
4221
4532
  start: z.ZodObject<{
4222
4533
  next_node: z.ZodString;
@@ -4486,7 +4797,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
4486
4797
  };
4487
4798
  required?: boolean | undefined;
4488
4799
  sensitive?: boolean | undefined;
4489
- }>
4800
+ }>,
4801
+ z.ZodObject<{
4802
+ id: z.ZodString;
4803
+ category: z.ZodString;
4804
+ type: z.ZodString;
4805
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4806
+ id: z.ZodString;
4807
+ category: z.ZodString;
4808
+ type: z.ZodString;
4809
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4810
+ id: z.ZodString;
4811
+ category: z.ZodString;
4812
+ type: z.ZodString;
4813
+ }, z.ZodTypeAny, "passthrough">>
4490
4814
  ]>, "many">;
4491
4815
  next_node: z.ZodString;
4492
4816
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4646,7 +4970,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
4646
4970
  };
4647
4971
  required?: boolean | undefined;
4648
4972
  sensitive?: boolean | undefined;
4649
- }>
4973
+ }>,
4974
+ z.ZodObject<{
4975
+ id: z.ZodString;
4976
+ category: z.ZodString;
4977
+ type: z.ZodString;
4978
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4979
+ id: z.ZodString;
4980
+ category: z.ZodString;
4981
+ type: z.ZodString;
4982
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4983
+ id: z.ZodString;
4984
+ category: z.ZodString;
4985
+ type: z.ZodString;
4986
+ }, z.ZodTypeAny, "passthrough">>
4650
4987
  ]>, "many">;
4651
4988
  next_node: z.ZodString;
4652
4989
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4806,7 +5143,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
4806
5143
  };
4807
5144
  required?: boolean | undefined;
4808
5145
  sensitive?: boolean | undefined;
4809
- }>
5146
+ }>,
5147
+ z.ZodObject<{
5148
+ id: z.ZodString;
5149
+ category: z.ZodString;
5150
+ type: z.ZodString;
5151
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5152
+ id: z.ZodString;
5153
+ category: z.ZodString;
5154
+ type: z.ZodString;
5155
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5156
+ id: z.ZodString;
5157
+ category: z.ZodString;
5158
+ type: z.ZodString;
5159
+ }, z.ZodTypeAny, "passthrough">>
4810
5160
  ]>, "many">;
4811
5161
  next_node: z.ZodString;
4812
5162
  }, z.ZodTypeAny, "passthrough">>;
@@ -4855,7 +5205,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
4855
5205
  };
4856
5206
  required?: boolean | undefined;
4857
5207
  sensitive?: boolean | undefined;
4858
- })[];
5208
+ } | z.objectOutputType<{
5209
+ id: z.ZodString;
5210
+ category: z.ZodString;
5211
+ type: z.ZodString;
5212
+ }, z.ZodTypeAny, "passthrough">)[];
4859
5213
  next_node: string;
4860
5214
  } & {
4861
5215
  [k: string]: unknown;
@@ -4910,7 +5264,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
4910
5264
  };
4911
5265
  required?: boolean | undefined;
4912
5266
  sensitive?: boolean | undefined;
4913
- })[];
5267
+ } | z.objectInputType<{
5268
+ id: z.ZodString;
5269
+ category: z.ZodString;
5270
+ type: z.ZodString;
5271
+ }, z.ZodTypeAny, "passthrough">)[];
4914
5272
  next_node: string;
4915
5273
  } & {
4916
5274
  [k: string]: unknown;
@@ -4934,6 +5292,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
4934
5292
  x: number;
4935
5293
  y: number;
4936
5294
  }>;
5295
+ alias: z.ZodOptional<z.ZodString>;
4937
5296
  config: z.ZodObject<{
4938
5297
  flow_id: z.ZodString;
4939
5298
  next_node: z.ZodString;
@@ -4955,6 +5314,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
4955
5314
  x: number;
4956
5315
  y: number;
4957
5316
  };
5317
+ alias?: string | undefined;
4958
5318
  }, {
4959
5319
  type: NodeType.FLOW;
4960
5320
  id: string;
@@ -4966,7 +5326,48 @@ export declare const auth0FlowSchema: z.ZodObject<{
4966
5326
  x: number;
4967
5327
  y: number;
4968
5328
  };
4969
- }>
5329
+ alias?: string | undefined;
5330
+ }>,
5331
+ z.ZodObject<{
5332
+ id: z.ZodString;
5333
+ type: z.ZodString;
5334
+ coordinates: z.ZodObject<{
5335
+ x: z.ZodNumber;
5336
+ y: z.ZodNumber;
5337
+ }, "strip", z.ZodTypeAny, {
5338
+ x: number;
5339
+ y: number;
5340
+ }, {
5341
+ x: number;
5342
+ y: number;
5343
+ }>;
5344
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5345
+ id: z.ZodString;
5346
+ type: z.ZodString;
5347
+ coordinates: z.ZodObject<{
5348
+ x: z.ZodNumber;
5349
+ y: z.ZodNumber;
5350
+ }, "strip", z.ZodTypeAny, {
5351
+ x: number;
5352
+ y: number;
5353
+ }, {
5354
+ x: number;
5355
+ y: number;
5356
+ }>;
5357
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5358
+ id: z.ZodString;
5359
+ type: z.ZodString;
5360
+ coordinates: z.ZodObject<{
5361
+ x: z.ZodNumber;
5362
+ y: z.ZodNumber;
5363
+ }, "strip", z.ZodTypeAny, {
5364
+ x: number;
5365
+ y: number;
5366
+ }, {
5367
+ x: number;
5368
+ y: number;
5369
+ }>;
5370
+ }, z.ZodTypeAny, "passthrough">>
4970
5371
  ]>, "many">;
4971
5372
  start: z.ZodObject<{
4972
5373
  next_node: z.ZodString;
@@ -5238,7 +5639,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5238
5639
  };
5239
5640
  required?: boolean | undefined;
5240
5641
  sensitive?: boolean | undefined;
5241
- }>
5642
+ }>,
5643
+ z.ZodObject<{
5644
+ id: z.ZodString;
5645
+ category: z.ZodString;
5646
+ type: z.ZodString;
5647
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5648
+ id: z.ZodString;
5649
+ category: z.ZodString;
5650
+ type: z.ZodString;
5651
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5652
+ id: z.ZodString;
5653
+ category: z.ZodString;
5654
+ type: z.ZodString;
5655
+ }, z.ZodTypeAny, "passthrough">>
5242
5656
  ]>, "many">;
5243
5657
  next_node: z.ZodString;
5244
5658
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5398,7 +5812,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5398
5812
  };
5399
5813
  required?: boolean | undefined;
5400
5814
  sensitive?: boolean | undefined;
5401
- }>
5815
+ }>,
5816
+ z.ZodObject<{
5817
+ id: z.ZodString;
5818
+ category: z.ZodString;
5819
+ type: z.ZodString;
5820
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5821
+ id: z.ZodString;
5822
+ category: z.ZodString;
5823
+ type: z.ZodString;
5824
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5825
+ id: z.ZodString;
5826
+ category: z.ZodString;
5827
+ type: z.ZodString;
5828
+ }, z.ZodTypeAny, "passthrough">>
5402
5829
  ]>, "many">;
5403
5830
  next_node: z.ZodString;
5404
5831
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5558,7 +5985,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5558
5985
  };
5559
5986
  required?: boolean | undefined;
5560
5987
  sensitive?: boolean | undefined;
5561
- }>
5988
+ }>,
5989
+ z.ZodObject<{
5990
+ id: z.ZodString;
5991
+ category: z.ZodString;
5992
+ type: z.ZodString;
5993
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5994
+ id: z.ZodString;
5995
+ category: z.ZodString;
5996
+ type: z.ZodString;
5997
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5998
+ id: z.ZodString;
5999
+ category: z.ZodString;
6000
+ type: z.ZodString;
6001
+ }, z.ZodTypeAny, "passthrough">>
5562
6002
  ]>, "many">;
5563
6003
  next_node: z.ZodString;
5564
6004
  }, z.ZodTypeAny, "passthrough">>;
@@ -5607,7 +6047,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5607
6047
  };
5608
6048
  required?: boolean | undefined;
5609
6049
  sensitive?: boolean | undefined;
5610
- })[];
6050
+ } | z.objectOutputType<{
6051
+ id: z.ZodString;
6052
+ category: z.ZodString;
6053
+ type: z.ZodString;
6054
+ }, z.ZodTypeAny, "passthrough">)[];
5611
6055
  next_node: string;
5612
6056
  } & {
5613
6057
  [k: string]: unknown;
@@ -5662,7 +6106,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5662
6106
  };
5663
6107
  required?: boolean | undefined;
5664
6108
  sensitive?: boolean | undefined;
5665
- })[];
6109
+ } | z.objectInputType<{
6110
+ id: z.ZodString;
6111
+ category: z.ZodString;
6112
+ type: z.ZodString;
6113
+ }, z.ZodTypeAny, "passthrough">)[];
5666
6114
  next_node: string;
5667
6115
  } & {
5668
6116
  [k: string]: unknown;
@@ -5686,6 +6134,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5686
6134
  x: number;
5687
6135
  y: number;
5688
6136
  }>;
6137
+ alias: z.ZodOptional<z.ZodString>;
5689
6138
  config: z.ZodObject<{
5690
6139
  flow_id: z.ZodString;
5691
6140
  next_node: z.ZodString;
@@ -5707,6 +6156,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5707
6156
  x: number;
5708
6157
  y: number;
5709
6158
  };
6159
+ alias?: string | undefined;
5710
6160
  }, {
5711
6161
  type: NodeType.FLOW;
5712
6162
  id: string;
@@ -5718,40 +6168,81 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5718
6168
  x: number;
5719
6169
  y: number;
5720
6170
  };
5721
- }>
5722
- ]>, "many">;
5723
- start: z.ZodObject<{
5724
- next_node: z.ZodString;
5725
- coordinates: z.ZodObject<{
5726
- x: z.ZodNumber;
5727
- y: z.ZodNumber;
5728
- }, "strip", z.ZodTypeAny, {
5729
- x: number;
5730
- y: number;
5731
- }, {
5732
- x: number;
5733
- y: number;
5734
- }>;
5735
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5736
- next_node: z.ZodString;
5737
- coordinates: z.ZodObject<{
5738
- x: z.ZodNumber;
5739
- y: z.ZodNumber;
5740
- }, "strip", z.ZodTypeAny, {
5741
- x: number;
5742
- y: number;
5743
- }, {
5744
- x: number;
5745
- y: number;
5746
- }>;
5747
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5748
- next_node: z.ZodString;
5749
- coordinates: z.ZodObject<{
5750
- x: z.ZodNumber;
5751
- y: z.ZodNumber;
5752
- }, "strip", z.ZodTypeAny, {
5753
- x: number;
5754
- y: number;
6171
+ alias?: string | undefined;
6172
+ }>,
6173
+ z.ZodObject<{
6174
+ id: z.ZodString;
6175
+ type: z.ZodString;
6176
+ coordinates: z.ZodObject<{
6177
+ x: z.ZodNumber;
6178
+ y: z.ZodNumber;
6179
+ }, "strip", z.ZodTypeAny, {
6180
+ x: number;
6181
+ y: number;
6182
+ }, {
6183
+ x: number;
6184
+ y: number;
6185
+ }>;
6186
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6187
+ id: z.ZodString;
6188
+ type: z.ZodString;
6189
+ coordinates: z.ZodObject<{
6190
+ x: z.ZodNumber;
6191
+ y: z.ZodNumber;
6192
+ }, "strip", z.ZodTypeAny, {
6193
+ x: number;
6194
+ y: number;
6195
+ }, {
6196
+ x: number;
6197
+ y: number;
6198
+ }>;
6199
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6200
+ id: z.ZodString;
6201
+ type: z.ZodString;
6202
+ coordinates: z.ZodObject<{
6203
+ x: z.ZodNumber;
6204
+ y: z.ZodNumber;
6205
+ }, "strip", z.ZodTypeAny, {
6206
+ x: number;
6207
+ y: number;
6208
+ }, {
6209
+ x: number;
6210
+ y: number;
6211
+ }>;
6212
+ }, z.ZodTypeAny, "passthrough">>
6213
+ ]>, "many">;
6214
+ start: z.ZodObject<{
6215
+ next_node: z.ZodString;
6216
+ coordinates: z.ZodObject<{
6217
+ x: z.ZodNumber;
6218
+ y: z.ZodNumber;
6219
+ }, "strip", z.ZodTypeAny, {
6220
+ x: number;
6221
+ y: number;
6222
+ }, {
6223
+ x: number;
6224
+ y: number;
6225
+ }>;
6226
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6227
+ next_node: z.ZodString;
6228
+ coordinates: z.ZodObject<{
6229
+ x: z.ZodNumber;
6230
+ y: z.ZodNumber;
6231
+ }, "strip", z.ZodTypeAny, {
6232
+ x: number;
6233
+ y: number;
6234
+ }, {
6235
+ x: number;
6236
+ y: number;
6237
+ }>;
6238
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6239
+ next_node: z.ZodString;
6240
+ coordinates: z.ZodObject<{
6241
+ x: z.ZodNumber;
6242
+ y: z.ZodNumber;
6243
+ }, "strip", z.ZodTypeAny, {
6244
+ x: number;
6245
+ y: number;
5755
6246
  }, {
5756
6247
  x: number;
5757
6248
  y: number;
@@ -5988,7 +6479,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5988
6479
  };
5989
6480
  required?: boolean | undefined;
5990
6481
  sensitive?: boolean | undefined;
5991
- }>
6482
+ }>,
6483
+ z.ZodObject<{
6484
+ id: z.ZodString;
6485
+ category: z.ZodString;
6486
+ type: z.ZodString;
6487
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6488
+ id: z.ZodString;
6489
+ category: z.ZodString;
6490
+ type: z.ZodString;
6491
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6492
+ id: z.ZodString;
6493
+ category: z.ZodString;
6494
+ type: z.ZodString;
6495
+ }, z.ZodTypeAny, "passthrough">>
5992
6496
  ]>, "many">;
5993
6497
  next_node: z.ZodString;
5994
6498
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -6148,7 +6652,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6148
6652
  };
6149
6653
  required?: boolean | undefined;
6150
6654
  sensitive?: boolean | undefined;
6151
- }>
6655
+ }>,
6656
+ z.ZodObject<{
6657
+ id: z.ZodString;
6658
+ category: z.ZodString;
6659
+ type: z.ZodString;
6660
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6661
+ id: z.ZodString;
6662
+ category: z.ZodString;
6663
+ type: z.ZodString;
6664
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6665
+ id: z.ZodString;
6666
+ category: z.ZodString;
6667
+ type: z.ZodString;
6668
+ }, z.ZodTypeAny, "passthrough">>
6152
6669
  ]>, "many">;
6153
6670
  next_node: z.ZodString;
6154
6671
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -6308,7 +6825,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6308
6825
  };
6309
6826
  required?: boolean | undefined;
6310
6827
  sensitive?: boolean | undefined;
6311
- }>
6828
+ }>,
6829
+ z.ZodObject<{
6830
+ id: z.ZodString;
6831
+ category: z.ZodString;
6832
+ type: z.ZodString;
6833
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6834
+ id: z.ZodString;
6835
+ category: z.ZodString;
6836
+ type: z.ZodString;
6837
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6838
+ id: z.ZodString;
6839
+ category: z.ZodString;
6840
+ type: z.ZodString;
6841
+ }, z.ZodTypeAny, "passthrough">>
6312
6842
  ]>, "many">;
6313
6843
  next_node: z.ZodString;
6314
6844
  }, z.ZodTypeAny, "passthrough">>;
@@ -6357,7 +6887,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6357
6887
  };
6358
6888
  required?: boolean | undefined;
6359
6889
  sensitive?: boolean | undefined;
6360
- })[];
6890
+ } | z.objectOutputType<{
6891
+ id: z.ZodString;
6892
+ category: z.ZodString;
6893
+ type: z.ZodString;
6894
+ }, z.ZodTypeAny, "passthrough">)[];
6361
6895
  next_node: string;
6362
6896
  } & {
6363
6897
  [k: string]: unknown;
@@ -6412,7 +6946,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6412
6946
  };
6413
6947
  required?: boolean | undefined;
6414
6948
  sensitive?: boolean | undefined;
6415
- })[];
6949
+ } | z.objectInputType<{
6950
+ id: z.ZodString;
6951
+ category: z.ZodString;
6952
+ type: z.ZodString;
6953
+ }, z.ZodTypeAny, "passthrough">)[];
6416
6954
  next_node: string;
6417
6955
  } & {
6418
6956
  [k: string]: unknown;
@@ -6436,6 +6974,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6436
6974
  x: number;
6437
6975
  y: number;
6438
6976
  }>;
6977
+ alias: z.ZodOptional<z.ZodString>;
6439
6978
  config: z.ZodObject<{
6440
6979
  flow_id: z.ZodString;
6441
6980
  next_node: z.ZodString;
@@ -6457,6 +6996,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6457
6996
  x: number;
6458
6997
  y: number;
6459
6998
  };
6999
+ alias?: string | undefined;
6460
7000
  }, {
6461
7001
  type: NodeType.FLOW;
6462
7002
  id: string;
@@ -6468,7 +7008,48 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6468
7008
  x: number;
6469
7009
  y: number;
6470
7010
  };
6471
- }>
7011
+ alias?: string | undefined;
7012
+ }>,
7013
+ z.ZodObject<{
7014
+ id: z.ZodString;
7015
+ type: z.ZodString;
7016
+ coordinates: z.ZodObject<{
7017
+ x: z.ZodNumber;
7018
+ y: z.ZodNumber;
7019
+ }, "strip", z.ZodTypeAny, {
7020
+ x: number;
7021
+ y: number;
7022
+ }, {
7023
+ x: number;
7024
+ y: number;
7025
+ }>;
7026
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7027
+ id: z.ZodString;
7028
+ type: z.ZodString;
7029
+ coordinates: z.ZodObject<{
7030
+ x: z.ZodNumber;
7031
+ y: z.ZodNumber;
7032
+ }, "strip", z.ZodTypeAny, {
7033
+ x: number;
7034
+ y: number;
7035
+ }, {
7036
+ x: number;
7037
+ y: number;
7038
+ }>;
7039
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7040
+ id: z.ZodString;
7041
+ type: z.ZodString;
7042
+ coordinates: z.ZodObject<{
7043
+ x: z.ZodNumber;
7044
+ y: z.ZodNumber;
7045
+ }, "strip", z.ZodTypeAny, {
7046
+ x: number;
7047
+ y: number;
7048
+ }, {
7049
+ x: number;
7050
+ y: number;
7051
+ }>;
7052
+ }, z.ZodTypeAny, "passthrough">>
6472
7053
  ]>, "many">;
6473
7054
  start: z.ZodObject<{
6474
7055
  next_node: z.ZodString;
@@ -6738,7 +7319,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6738
7319
  };
6739
7320
  required?: boolean | undefined;
6740
7321
  sensitive?: boolean | undefined;
6741
- }>
7322
+ }>,
7323
+ z.ZodObject<{
7324
+ id: z.ZodString;
7325
+ category: z.ZodString;
7326
+ type: z.ZodString;
7327
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7328
+ id: z.ZodString;
7329
+ category: z.ZodString;
7330
+ type: z.ZodString;
7331
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7332
+ id: z.ZodString;
7333
+ category: z.ZodString;
7334
+ type: z.ZodString;
7335
+ }, z.ZodTypeAny, "passthrough">>
6742
7336
  ]>, "many">;
6743
7337
  next_node: z.ZodString;
6744
7338
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -6898,7 +7492,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6898
7492
  };
6899
7493
  required?: boolean | undefined;
6900
7494
  sensitive?: boolean | undefined;
6901
- }>
7495
+ }>,
7496
+ z.ZodObject<{
7497
+ id: z.ZodString;
7498
+ category: z.ZodString;
7499
+ type: z.ZodString;
7500
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7501
+ id: z.ZodString;
7502
+ category: z.ZodString;
7503
+ type: z.ZodString;
7504
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7505
+ id: z.ZodString;
7506
+ category: z.ZodString;
7507
+ type: z.ZodString;
7508
+ }, z.ZodTypeAny, "passthrough">>
6902
7509
  ]>, "many">;
6903
7510
  next_node: z.ZodString;
6904
7511
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -7058,7 +7665,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7058
7665
  };
7059
7666
  required?: boolean | undefined;
7060
7667
  sensitive?: boolean | undefined;
7061
- }>
7668
+ }>,
7669
+ z.ZodObject<{
7670
+ id: z.ZodString;
7671
+ category: z.ZodString;
7672
+ type: z.ZodString;
7673
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7674
+ id: z.ZodString;
7675
+ category: z.ZodString;
7676
+ type: z.ZodString;
7677
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7678
+ id: z.ZodString;
7679
+ category: z.ZodString;
7680
+ type: z.ZodString;
7681
+ }, z.ZodTypeAny, "passthrough">>
7062
7682
  ]>, "many">;
7063
7683
  next_node: z.ZodString;
7064
7684
  }, z.ZodTypeAny, "passthrough">>;
@@ -7107,7 +7727,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7107
7727
  };
7108
7728
  required?: boolean | undefined;
7109
7729
  sensitive?: boolean | undefined;
7110
- })[];
7730
+ } | z.objectOutputType<{
7731
+ id: z.ZodString;
7732
+ category: z.ZodString;
7733
+ type: z.ZodString;
7734
+ }, z.ZodTypeAny, "passthrough">)[];
7111
7735
  next_node: string;
7112
7736
  } & {
7113
7737
  [k: string]: unknown;
@@ -7162,7 +7786,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7162
7786
  };
7163
7787
  required?: boolean | undefined;
7164
7788
  sensitive?: boolean | undefined;
7165
- })[];
7789
+ } | z.objectInputType<{
7790
+ id: z.ZodString;
7791
+ category: z.ZodString;
7792
+ type: z.ZodString;
7793
+ }, z.ZodTypeAny, "passthrough">)[];
7166
7794
  next_node: string;
7167
7795
  } & {
7168
7796
  [k: string]: unknown;
@@ -7186,6 +7814,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7186
7814
  x: number;
7187
7815
  y: number;
7188
7816
  }>;
7817
+ alias: z.ZodOptional<z.ZodString>;
7189
7818
  config: z.ZodObject<{
7190
7819
  flow_id: z.ZodString;
7191
7820
  next_node: z.ZodString;
@@ -7207,6 +7836,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7207
7836
  x: number;
7208
7837
  y: number;
7209
7838
  };
7839
+ alias?: string | undefined;
7210
7840
  }, {
7211
7841
  type: NodeType.FLOW;
7212
7842
  id: string;
@@ -7218,7 +7848,48 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7218
7848
  x: number;
7219
7849
  y: number;
7220
7850
  };
7221
- }>
7851
+ alias?: string | undefined;
7852
+ }>,
7853
+ z.ZodObject<{
7854
+ id: z.ZodString;
7855
+ type: z.ZodString;
7856
+ coordinates: z.ZodObject<{
7857
+ x: z.ZodNumber;
7858
+ y: z.ZodNumber;
7859
+ }, "strip", z.ZodTypeAny, {
7860
+ x: number;
7861
+ y: number;
7862
+ }, {
7863
+ x: number;
7864
+ y: number;
7865
+ }>;
7866
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7867
+ id: z.ZodString;
7868
+ type: z.ZodString;
7869
+ coordinates: z.ZodObject<{
7870
+ x: z.ZodNumber;
7871
+ y: z.ZodNumber;
7872
+ }, "strip", z.ZodTypeAny, {
7873
+ x: number;
7874
+ y: number;
7875
+ }, {
7876
+ x: number;
7877
+ y: number;
7878
+ }>;
7879
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7880
+ id: z.ZodString;
7881
+ type: z.ZodString;
7882
+ coordinates: z.ZodObject<{
7883
+ x: z.ZodNumber;
7884
+ y: z.ZodNumber;
7885
+ }, "strip", z.ZodTypeAny, {
7886
+ x: number;
7887
+ y: number;
7888
+ }, {
7889
+ x: number;
7890
+ y: number;
7891
+ }>;
7892
+ }, z.ZodTypeAny, "passthrough">>
7222
7893
  ]>, "many">;
7223
7894
  start: z.ZodObject<{
7224
7895
  next_node: z.ZodString;
@@ -7307,7 +7978,22 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7307
7978
  sdk_src: z.ZodOptional<z.ZodString>;
7308
7979
  }, z.ZodTypeAny, "passthrough">>;
7309
7980
  }, "created_at" | "updated_at" | "id">, z.ZodTypeAny, "passthrough">>;
7310
- export type Auth0FlowInsert = z.infer<typeof auth0FlowInsertSchema>;
7981
+ export interface Auth0FlowInsert {
7982
+ name: string;
7983
+ languages: {
7984
+ primary: string;
7985
+ [key: string]: any;
7986
+ };
7987
+ nodes: Node$1[];
7988
+ start: Start;
7989
+ ending: Ending;
7990
+ links?: {
7991
+ sdkSrc?: string;
7992
+ sdk_src?: string;
7993
+ [key: string]: any;
7994
+ };
7995
+ [key: string]: any;
7996
+ }
7311
7997
  export declare enum AuthorizationResponseType {
7312
7998
  TOKEN = "token",
7313
7999
  TOKEN_ID_TOKEN = "token id_token",
@@ -8499,825 +9185,1004 @@ export declare const customDomainWithTenantIdSchema: z.ZodObject<{
8499
9185
  }>;
8500
9186
  export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
8501
9187
  /**
8502
- * Form field types supported by Auth0
8503
- */
8504
- export declare enum FormFieldType {
8505
- TEXT = "text",
8506
- EMAIL = "email",
8507
- PASSWORD = "password",
8508
- NUMBER = "number",
8509
- PHONE = "phone",
8510
- DATE = "date",
8511
- CHECKBOX = "checkbox",
8512
- RADIO = "radio",
8513
- SELECT = "select",
8514
- HIDDEN = "hidden"
8515
- }
8516
- /**
8517
- * Form field validation types
8518
- */
8519
- export declare enum ValidationErrorType {
8520
- REQUIRED = "required",
8521
- FORMAT = "format",
8522
- MIN_LENGTH = "min_length",
8523
- MAX_LENGTH = "max_length",
8524
- MIN = "min",
8525
- MAX = "max",
8526
- MATCHING_PATTERN = "matching_pattern"
8527
- }
8528
- /**
8529
- * Validation schema for form fields
8530
- */
8531
- export declare const formFieldValidationSchema: z.ZodObject<{
8532
- type: z.ZodNativeEnum<typeof ValidationErrorType>;
8533
- message: z.ZodString;
8534
- min_length: z.ZodOptional<z.ZodNumber>;
8535
- max_length: z.ZodOptional<z.ZodNumber>;
8536
- min: z.ZodOptional<z.ZodNumber>;
8537
- max: z.ZodOptional<z.ZodNumber>;
8538
- pattern: z.ZodOptional<z.ZodString>;
8539
- format: z.ZodOptional<z.ZodString>;
8540
- }, "strip", z.ZodTypeAny, {
8541
- message: string;
8542
- type: ValidationErrorType;
8543
- format?: string | undefined;
8544
- pattern?: string | undefined;
8545
- min_length?: number | undefined;
8546
- max_length?: number | undefined;
8547
- min?: number | undefined;
8548
- max?: number | undefined;
8549
- }, {
8550
- message: string;
8551
- type: ValidationErrorType;
8552
- format?: string | undefined;
8553
- pattern?: string | undefined;
8554
- min_length?: number | undefined;
8555
- max_length?: number | undefined;
8556
- min?: number | undefined;
8557
- max?: number | undefined;
8558
- }>;
8559
- export type FormFieldValidation = z.infer<typeof formFieldValidationSchema>;
8560
- /**
8561
- * Options for select, radio, and checkbox fields
8562
- */
8563
- export declare const formFieldOptionSchema: z.ZodObject<{
8564
- label: z.ZodString;
8565
- value: z.ZodString;
8566
- checked: z.ZodOptional<z.ZodBoolean>;
8567
- }, "strip", z.ZodTypeAny, {
8568
- value: string;
8569
- label: string;
8570
- checked?: boolean | undefined;
8571
- }, {
8572
- value: string;
8573
- label: string;
8574
- checked?: boolean | undefined;
8575
- }>;
8576
- export type FormFieldOption = z.infer<typeof formFieldOptionSchema>;
8577
- /**
8578
- * Schema for form fields
9188
+ * Schema for form controls (like submit buttons)
8579
9189
  */
8580
- export declare const formFieldSchema: z.ZodObject<{
9190
+ export declare const formControlSchema: z.ZodObject<{
8581
9191
  id: z.ZodString;
8582
- name: z.ZodString;
8583
- type: z.ZodNativeEnum<typeof FormFieldType>;
9192
+ type: z.ZodLiteral<"submit">;
8584
9193
  label: z.ZodString;
8585
- placeholder: z.ZodOptional<z.ZodString>;
8586
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9194
+ className: z.ZodOptional<z.ZodString>;
8587
9195
  disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8588
- readOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8589
- defaultValue: z.ZodOptional<z.ZodUnion<[
8590
- z.ZodString,
8591
- z.ZodNumber,
8592
- z.ZodBoolean
8593
- ]>>;
8594
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
8595
- type: z.ZodNativeEnum<typeof ValidationErrorType>;
8596
- message: z.ZodString;
8597
- min_length: z.ZodOptional<z.ZodNumber>;
8598
- max_length: z.ZodOptional<z.ZodNumber>;
8599
- min: z.ZodOptional<z.ZodNumber>;
8600
- max: z.ZodOptional<z.ZodNumber>;
8601
- pattern: z.ZodOptional<z.ZodString>;
8602
- format: z.ZodOptional<z.ZodString>;
8603
- }, "strip", z.ZodTypeAny, {
8604
- message: string;
8605
- type: ValidationErrorType;
8606
- format?: string | undefined;
8607
- pattern?: string | undefined;
8608
- min_length?: number | undefined;
8609
- max_length?: number | undefined;
8610
- min?: number | undefined;
8611
- max?: number | undefined;
8612
- }, {
8613
- message: string;
8614
- type: ValidationErrorType;
8615
- format?: string | undefined;
8616
- pattern?: string | undefined;
8617
- min_length?: number | undefined;
8618
- max_length?: number | undefined;
8619
- min?: number | undefined;
8620
- max?: number | undefined;
8621
- }>, "many">>;
8622
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
8623
- label: z.ZodString;
8624
- value: z.ZodString;
8625
- checked: z.ZodOptional<z.ZodBoolean>;
8626
- }, "strip", z.ZodTypeAny, {
8627
- value: string;
8628
- label: string;
8629
- checked?: boolean | undefined;
8630
- }, {
8631
- value: string;
8632
- label: string;
8633
- checked?: boolean | undefined;
8634
- }>, "many">>;
8635
- description: z.ZodOptional<z.ZodString>;
8636
9196
  order: z.ZodOptional<z.ZodNumber>;
8637
9197
  visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8638
9198
  customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8639
9199
  }, "strip", z.ZodTypeAny, {
8640
- type: FormFieldType;
8641
- readOnly: boolean;
8642
- required: boolean;
8643
- name: string;
9200
+ type: "submit";
8644
9201
  id: string;
8645
9202
  disabled: boolean;
8646
9203
  label: string;
8647
9204
  visible: boolean;
8648
- options?: {
8649
- value: string;
8650
- label: string;
8651
- checked?: boolean | undefined;
8652
- }[] | undefined;
8653
- description?: string | undefined;
8654
- placeholder?: string | undefined;
8655
- defaultValue?: string | number | boolean | undefined;
8656
- validations?: {
8657
- message: string;
8658
- type: ValidationErrorType;
8659
- format?: string | undefined;
8660
- pattern?: string | undefined;
8661
- min_length?: number | undefined;
8662
- max_length?: number | undefined;
8663
- min?: number | undefined;
8664
- max?: number | undefined;
8665
- }[] | undefined;
9205
+ className?: string | undefined;
8666
9206
  order?: number | undefined;
8667
9207
  customizations?: Record<string, any> | undefined;
8668
9208
  }, {
8669
- type: FormFieldType;
8670
- name: string;
9209
+ type: "submit";
8671
9210
  id: string;
8672
9211
  label: string;
8673
- options?: {
8674
- value: string;
8675
- label: string;
8676
- checked?: boolean | undefined;
8677
- }[] | undefined;
8678
- readOnly?: boolean | undefined;
8679
- description?: string | undefined;
8680
- required?: boolean | undefined;
8681
9212
  disabled?: boolean | undefined;
8682
- placeholder?: string | undefined;
8683
- defaultValue?: string | number | boolean | undefined;
8684
- validations?: {
8685
- message: string;
8686
- type: ValidationErrorType;
8687
- format?: string | undefined;
8688
- pattern?: string | undefined;
8689
- min_length?: number | undefined;
8690
- max_length?: number | undefined;
8691
- min?: number | undefined;
8692
- max?: number | undefined;
8693
- }[] | undefined;
9213
+ className?: string | undefined;
8694
9214
  order?: number | undefined;
8695
9215
  visible?: boolean | undefined;
8696
9216
  customizations?: Record<string, any> | undefined;
8697
9217
  }>;
8698
- export type FormField = z.infer<typeof formFieldSchema>;
9218
+ export type FormControl = z.infer<typeof formControlSchema>;
8699
9219
  /**
8700
- * Schema for form controls (like submit buttons)
9220
+ * Schema for forms (flow-based, matches new JSON structure)
8701
9221
  */
8702
- export declare const formControlSchema: z.ZodObject<{
8703
- id: z.ZodString;
8704
- type: z.ZodLiteral<"submit">;
8705
- label: z.ZodString;
8706
- className: z.ZodOptional<z.ZodString>;
8707
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8708
- order: z.ZodOptional<z.ZodNumber>;
8709
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8710
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9222
+ export declare const formInsertSchema: z.ZodObject<{
9223
+ name: z.ZodString;
9224
+ messages: z.ZodOptional<z.ZodObject<{
9225
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9226
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9227
+ }, "strip", z.ZodTypeAny, {
9228
+ custom?: Record<string, any> | undefined;
9229
+ errors?: Record<string, any> | undefined;
9230
+ }, {
9231
+ custom?: Record<string, any> | undefined;
9232
+ errors?: Record<string, any> | undefined;
9233
+ }>>;
9234
+ languages: z.ZodOptional<z.ZodObject<{
9235
+ primary: z.ZodOptional<z.ZodString>;
9236
+ default: z.ZodOptional<z.ZodString>;
9237
+ }, "strip", z.ZodTypeAny, {
9238
+ default?: string | undefined;
9239
+ primary?: string | undefined;
9240
+ }, {
9241
+ default?: string | undefined;
9242
+ primary?: string | undefined;
9243
+ }>>;
9244
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9245
+ nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
9246
+ z.ZodObject<{
9247
+ id: z.ZodString;
9248
+ type: z.ZodLiteral<"FLOW">;
9249
+ coordinates: z.ZodObject<{
9250
+ x: z.ZodNumber;
9251
+ y: z.ZodNumber;
9252
+ }, "strip", z.ZodTypeAny, {
9253
+ x: number;
9254
+ y: number;
9255
+ }, {
9256
+ x: number;
9257
+ y: number;
9258
+ }>;
9259
+ alias: z.ZodOptional<z.ZodString>;
9260
+ config: z.ZodObject<{
9261
+ flow_id: z.ZodString;
9262
+ next_node: z.ZodString;
9263
+ }, "strip", z.ZodTypeAny, {
9264
+ next_node: string;
9265
+ flow_id: string;
9266
+ }, {
9267
+ next_node: string;
9268
+ flow_id: string;
9269
+ }>;
9270
+ }, "strip", z.ZodTypeAny, {
9271
+ type: "FLOW";
9272
+ id: string;
9273
+ config: {
9274
+ next_node: string;
9275
+ flow_id: string;
9276
+ };
9277
+ coordinates: {
9278
+ x: number;
9279
+ y: number;
9280
+ };
9281
+ alias?: string | undefined;
9282
+ }, {
9283
+ type: "FLOW";
9284
+ id: string;
9285
+ config: {
9286
+ next_node: string;
9287
+ flow_id: string;
9288
+ };
9289
+ coordinates: {
9290
+ x: number;
9291
+ y: number;
9292
+ };
9293
+ alias?: string | undefined;
9294
+ }>,
9295
+ z.ZodObject<{
9296
+ id: z.ZodString;
9297
+ type: z.ZodLiteral<"ROUTER">;
9298
+ coordinates: z.ZodObject<{
9299
+ x: z.ZodNumber;
9300
+ y: z.ZodNumber;
9301
+ }, "strip", z.ZodTypeAny, {
9302
+ x: number;
9303
+ y: number;
9304
+ }, {
9305
+ x: number;
9306
+ y: number;
9307
+ }>;
9308
+ alias: z.ZodString;
9309
+ config: z.ZodObject<{
9310
+ rules: z.ZodArray<z.ZodObject<{
9311
+ id: z.ZodString;
9312
+ alias: z.ZodOptional<z.ZodString>;
9313
+ condition: z.ZodAny;
9314
+ next_node: z.ZodString;
9315
+ }, "strip", z.ZodTypeAny, {
9316
+ id: string;
9317
+ next_node: string;
9318
+ alias?: string | undefined;
9319
+ condition?: any;
9320
+ }, {
9321
+ id: string;
9322
+ next_node: string;
9323
+ alias?: string | undefined;
9324
+ condition?: any;
9325
+ }>, "many">;
9326
+ fallback: z.ZodArray<z.ZodString, "many">;
9327
+ }, "strip", z.ZodTypeAny, {
9328
+ rules: {
9329
+ id: string;
9330
+ next_node: string;
9331
+ alias?: string | undefined;
9332
+ condition?: any;
9333
+ }[];
9334
+ fallback: string[];
9335
+ }, {
9336
+ rules: {
9337
+ id: string;
9338
+ next_node: string;
9339
+ alias?: string | undefined;
9340
+ condition?: any;
9341
+ }[];
9342
+ fallback: string[];
9343
+ }>;
9344
+ }, "strip", z.ZodTypeAny, {
9345
+ type: "ROUTER";
9346
+ id: string;
9347
+ config: {
9348
+ rules: {
9349
+ id: string;
9350
+ next_node: string;
9351
+ alias?: string | undefined;
9352
+ condition?: any;
9353
+ }[];
9354
+ fallback: string[];
9355
+ };
9356
+ coordinates: {
9357
+ x: number;
9358
+ y: number;
9359
+ };
9360
+ alias: string;
9361
+ }, {
9362
+ type: "ROUTER";
9363
+ id: string;
9364
+ config: {
9365
+ rules: {
9366
+ id: string;
9367
+ next_node: string;
9368
+ alias?: string | undefined;
9369
+ condition?: any;
9370
+ }[];
9371
+ fallback: string[];
9372
+ };
9373
+ coordinates: {
9374
+ x: number;
9375
+ y: number;
9376
+ };
9377
+ alias: string;
9378
+ }>,
9379
+ z.ZodObject<{
9380
+ id: z.ZodString;
9381
+ type: z.ZodLiteral<"STEP">;
9382
+ coordinates: z.ZodObject<{
9383
+ x: z.ZodNumber;
9384
+ y: z.ZodNumber;
9385
+ }, "strip", z.ZodTypeAny, {
9386
+ x: number;
9387
+ y: number;
9388
+ }, {
9389
+ x: number;
9390
+ y: number;
9391
+ }>;
9392
+ alias: z.ZodOptional<z.ZodString>;
9393
+ config: z.ZodObject<{
9394
+ components: z.ZodArray<z.ZodAny, "many">;
9395
+ next_node: z.ZodString;
9396
+ }, "strip", z.ZodTypeAny, {
9397
+ components: any[];
9398
+ next_node: string;
9399
+ }, {
9400
+ components: any[];
9401
+ next_node: string;
9402
+ }>;
9403
+ }, "strip", z.ZodTypeAny, {
9404
+ type: "STEP";
9405
+ id: string;
9406
+ config: {
9407
+ components: any[];
9408
+ next_node: string;
9409
+ };
9410
+ coordinates: {
9411
+ x: number;
9412
+ y: number;
9413
+ };
9414
+ alias?: string | undefined;
9415
+ }, {
9416
+ type: "STEP";
9417
+ id: string;
9418
+ config: {
9419
+ components: any[];
9420
+ next_node: string;
9421
+ };
9422
+ coordinates: {
9423
+ x: number;
9424
+ y: number;
9425
+ };
9426
+ alias?: string | undefined;
9427
+ }>
9428
+ ]>, "many">>;
9429
+ start: z.ZodOptional<z.ZodObject<{
9430
+ hidden_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
9431
+ key: z.ZodString;
9432
+ value: z.ZodString;
9433
+ }, "strip", z.ZodTypeAny, {
9434
+ value: string;
9435
+ key: string;
9436
+ }, {
9437
+ value: string;
9438
+ key: string;
9439
+ }>, "many">>;
9440
+ next_node: z.ZodOptional<z.ZodString>;
9441
+ coordinates: z.ZodOptional<z.ZodObject<{
9442
+ x: z.ZodNumber;
9443
+ y: z.ZodNumber;
9444
+ }, "strip", z.ZodTypeAny, {
9445
+ x: number;
9446
+ y: number;
9447
+ }, {
9448
+ x: number;
9449
+ y: number;
9450
+ }>>;
9451
+ }, "strip", z.ZodTypeAny, {
9452
+ coordinates?: {
9453
+ x: number;
9454
+ y: number;
9455
+ } | undefined;
9456
+ next_node?: string | undefined;
9457
+ hidden_fields?: {
9458
+ value: string;
9459
+ key: string;
9460
+ }[] | undefined;
9461
+ }, {
9462
+ coordinates?: {
9463
+ x: number;
9464
+ y: number;
9465
+ } | undefined;
9466
+ next_node?: string | undefined;
9467
+ hidden_fields?: {
9468
+ value: string;
9469
+ key: string;
9470
+ }[] | undefined;
9471
+ }>>;
9472
+ ending: z.ZodOptional<z.ZodObject<{
9473
+ redirection: z.ZodOptional<z.ZodObject<{
9474
+ delay: z.ZodOptional<z.ZodNumber>;
9475
+ target: z.ZodOptional<z.ZodString>;
9476
+ }, "strip", z.ZodTypeAny, {
9477
+ delay?: number | undefined;
9478
+ target?: string | undefined;
9479
+ }, {
9480
+ delay?: number | undefined;
9481
+ target?: string | undefined;
9482
+ }>>;
9483
+ after_submit: z.ZodOptional<z.ZodObject<{
9484
+ flow_id: z.ZodOptional<z.ZodString>;
9485
+ }, "strip", z.ZodTypeAny, {
9486
+ flow_id?: string | undefined;
9487
+ }, {
9488
+ flow_id?: string | undefined;
9489
+ }>>;
9490
+ coordinates: z.ZodOptional<z.ZodObject<{
9491
+ x: z.ZodNumber;
9492
+ y: z.ZodNumber;
9493
+ }, "strip", z.ZodTypeAny, {
9494
+ x: number;
9495
+ y: number;
9496
+ }, {
9497
+ x: number;
9498
+ y: number;
9499
+ }>>;
9500
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
9501
+ }, "strip", z.ZodTypeAny, {
9502
+ coordinates?: {
9503
+ x: number;
9504
+ y: number;
9505
+ } | undefined;
9506
+ resume_flow?: boolean | undefined;
9507
+ redirection?: {
9508
+ delay?: number | undefined;
9509
+ target?: string | undefined;
9510
+ } | undefined;
9511
+ after_submit?: {
9512
+ flow_id?: string | undefined;
9513
+ } | undefined;
9514
+ }, {
9515
+ coordinates?: {
9516
+ x: number;
9517
+ y: number;
9518
+ } | undefined;
9519
+ resume_flow?: boolean | undefined;
9520
+ redirection?: {
9521
+ delay?: number | undefined;
9522
+ target?: string | undefined;
9523
+ } | undefined;
9524
+ after_submit?: {
9525
+ flow_id?: string | undefined;
9526
+ } | undefined;
9527
+ }>>;
9528
+ style: z.ZodOptional<z.ZodObject<{
9529
+ css: z.ZodOptional<z.ZodString>;
9530
+ }, "strip", z.ZodTypeAny, {
9531
+ css?: string | undefined;
9532
+ }, {
9533
+ css?: string | undefined;
9534
+ }>>;
8711
9535
  }, "strip", z.ZodTypeAny, {
8712
- type: "submit";
8713
- id: string;
8714
- disabled: boolean;
8715
- label: string;
8716
- visible: boolean;
8717
- order?: number | undefined;
8718
- customizations?: Record<string, any> | undefined;
8719
- className?: string | undefined;
9536
+ name: string;
9537
+ start?: {
9538
+ coordinates?: {
9539
+ x: number;
9540
+ y: number;
9541
+ } | undefined;
9542
+ next_node?: string | undefined;
9543
+ hidden_fields?: {
9544
+ value: string;
9545
+ key: string;
9546
+ }[] | undefined;
9547
+ } | undefined;
9548
+ style?: {
9549
+ css?: string | undefined;
9550
+ } | undefined;
9551
+ languages?: {
9552
+ default?: string | undefined;
9553
+ primary?: string | undefined;
9554
+ } | undefined;
9555
+ nodes?: ({
9556
+ type: "FLOW";
9557
+ id: string;
9558
+ config: {
9559
+ next_node: string;
9560
+ flow_id: string;
9561
+ };
9562
+ coordinates: {
9563
+ x: number;
9564
+ y: number;
9565
+ };
9566
+ alias?: string | undefined;
9567
+ } | {
9568
+ type: "ROUTER";
9569
+ id: string;
9570
+ config: {
9571
+ rules: {
9572
+ id: string;
9573
+ next_node: string;
9574
+ alias?: string | undefined;
9575
+ condition?: any;
9576
+ }[];
9577
+ fallback: string[];
9578
+ };
9579
+ coordinates: {
9580
+ x: number;
9581
+ y: number;
9582
+ };
9583
+ alias: string;
9584
+ } | {
9585
+ type: "STEP";
9586
+ id: string;
9587
+ config: {
9588
+ components: any[];
9589
+ next_node: string;
9590
+ };
9591
+ coordinates: {
9592
+ x: number;
9593
+ y: number;
9594
+ };
9595
+ alias?: string | undefined;
9596
+ })[] | undefined;
9597
+ ending?: {
9598
+ coordinates?: {
9599
+ x: number;
9600
+ y: number;
9601
+ } | undefined;
9602
+ resume_flow?: boolean | undefined;
9603
+ redirection?: {
9604
+ delay?: number | undefined;
9605
+ target?: string | undefined;
9606
+ } | undefined;
9607
+ after_submit?: {
9608
+ flow_id?: string | undefined;
9609
+ } | undefined;
9610
+ } | undefined;
9611
+ messages?: {
9612
+ custom?: Record<string, any> | undefined;
9613
+ errors?: Record<string, any> | undefined;
9614
+ } | undefined;
9615
+ translations?: Record<string, any> | undefined;
8720
9616
  }, {
8721
- type: "submit";
8722
- id: string;
8723
- label: string;
8724
- disabled?: boolean | undefined;
8725
- order?: number | undefined;
8726
- visible?: boolean | undefined;
8727
- customizations?: Record<string, any> | undefined;
8728
- className?: string | undefined;
9617
+ name: string;
9618
+ start?: {
9619
+ coordinates?: {
9620
+ x: number;
9621
+ y: number;
9622
+ } | undefined;
9623
+ next_node?: string | undefined;
9624
+ hidden_fields?: {
9625
+ value: string;
9626
+ key: string;
9627
+ }[] | undefined;
9628
+ } | undefined;
9629
+ style?: {
9630
+ css?: string | undefined;
9631
+ } | undefined;
9632
+ languages?: {
9633
+ default?: string | undefined;
9634
+ primary?: string | undefined;
9635
+ } | undefined;
9636
+ nodes?: ({
9637
+ type: "FLOW";
9638
+ id: string;
9639
+ config: {
9640
+ next_node: string;
9641
+ flow_id: string;
9642
+ };
9643
+ coordinates: {
9644
+ x: number;
9645
+ y: number;
9646
+ };
9647
+ alias?: string | undefined;
9648
+ } | {
9649
+ type: "ROUTER";
9650
+ id: string;
9651
+ config: {
9652
+ rules: {
9653
+ id: string;
9654
+ next_node: string;
9655
+ alias?: string | undefined;
9656
+ condition?: any;
9657
+ }[];
9658
+ fallback: string[];
9659
+ };
9660
+ coordinates: {
9661
+ x: number;
9662
+ y: number;
9663
+ };
9664
+ alias: string;
9665
+ } | {
9666
+ type: "STEP";
9667
+ id: string;
9668
+ config: {
9669
+ components: any[];
9670
+ next_node: string;
9671
+ };
9672
+ coordinates: {
9673
+ x: number;
9674
+ y: number;
9675
+ };
9676
+ alias?: string | undefined;
9677
+ })[] | undefined;
9678
+ ending?: {
9679
+ coordinates?: {
9680
+ x: number;
9681
+ y: number;
9682
+ } | undefined;
9683
+ resume_flow?: boolean | undefined;
9684
+ redirection?: {
9685
+ delay?: number | undefined;
9686
+ target?: string | undefined;
9687
+ } | undefined;
9688
+ after_submit?: {
9689
+ flow_id?: string | undefined;
9690
+ } | undefined;
9691
+ } | undefined;
9692
+ messages?: {
9693
+ custom?: Record<string, any> | undefined;
9694
+ errors?: Record<string, any> | undefined;
9695
+ } | undefined;
9696
+ translations?: Record<string, any> | undefined;
8729
9697
  }>;
8730
- export type FormControl = z.infer<typeof formControlSchema>;
8731
- /**
8732
- * Supported form types
8733
- */
8734
- export declare enum FormType {
8735
- LOGIN = "login",
8736
- SIGNUP = "signup",
8737
- RESET_PASSWORD = "reset-password",
8738
- MFA = "mfa",
8739
- MFA_ENROLLMENT = "mfa-enrollment",
8740
- VERIFICATION_CODE = "verification-code",
8741
- INVITATION = "invitation",
8742
- CUSTOM = "custom"
8743
- }
9698
+ export type FormInsert = z.input<typeof formInsertSchema>;
8744
9699
  /**
8745
- * Schema for forms
9700
+ * Schema for complete form with base entity properties
8746
9701
  */
8747
- export declare const formInsertSchema: z.ZodObject<{
9702
+ export declare const formSchema: z.ZodObject<{
9703
+ id: z.ZodString;
8748
9704
  name: z.ZodString;
8749
- type: z.ZodNativeEnum<typeof FormType>;
8750
- client_id: z.ZodOptional<z.ZodString>;
8751
- fields: z.ZodArray<z.ZodObject<{
8752
- id: z.ZodString;
8753
- name: z.ZodString;
8754
- type: z.ZodNativeEnum<typeof FormFieldType>;
8755
- label: z.ZodString;
8756
- placeholder: z.ZodOptional<z.ZodString>;
8757
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8758
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8759
- readOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8760
- defaultValue: z.ZodOptional<z.ZodUnion<[
8761
- z.ZodString,
8762
- z.ZodNumber,
8763
- z.ZodBoolean
8764
- ]>>;
8765
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
8766
- type: z.ZodNativeEnum<typeof ValidationErrorType>;
8767
- message: z.ZodString;
8768
- min_length: z.ZodOptional<z.ZodNumber>;
8769
- max_length: z.ZodOptional<z.ZodNumber>;
8770
- min: z.ZodOptional<z.ZodNumber>;
8771
- max: z.ZodOptional<z.ZodNumber>;
8772
- pattern: z.ZodOptional<z.ZodString>;
8773
- format: z.ZodOptional<z.ZodString>;
9705
+ messages: z.ZodOptional<z.ZodObject<{
9706
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9707
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9708
+ }, "strip", z.ZodTypeAny, {
9709
+ custom?: Record<string, any> | undefined;
9710
+ errors?: Record<string, any> | undefined;
9711
+ }, {
9712
+ custom?: Record<string, any> | undefined;
9713
+ errors?: Record<string, any> | undefined;
9714
+ }>>;
9715
+ languages: z.ZodOptional<z.ZodObject<{
9716
+ primary: z.ZodOptional<z.ZodString>;
9717
+ default: z.ZodOptional<z.ZodString>;
9718
+ }, "strip", z.ZodTypeAny, {
9719
+ default?: string | undefined;
9720
+ primary?: string | undefined;
9721
+ }, {
9722
+ default?: string | undefined;
9723
+ primary?: string | undefined;
9724
+ }>>;
9725
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9726
+ nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
9727
+ z.ZodObject<{
9728
+ id: z.ZodString;
9729
+ type: z.ZodLiteral<"FLOW">;
9730
+ coordinates: z.ZodObject<{
9731
+ x: z.ZodNumber;
9732
+ y: z.ZodNumber;
9733
+ }, "strip", z.ZodTypeAny, {
9734
+ x: number;
9735
+ y: number;
9736
+ }, {
9737
+ x: number;
9738
+ y: number;
9739
+ }>;
9740
+ alias: z.ZodOptional<z.ZodString>;
9741
+ config: z.ZodObject<{
9742
+ flow_id: z.ZodString;
9743
+ next_node: z.ZodString;
9744
+ }, "strip", z.ZodTypeAny, {
9745
+ next_node: string;
9746
+ flow_id: string;
9747
+ }, {
9748
+ next_node: string;
9749
+ flow_id: string;
9750
+ }>;
9751
+ }, "strip", z.ZodTypeAny, {
9752
+ type: "FLOW";
9753
+ id: string;
9754
+ config: {
9755
+ next_node: string;
9756
+ flow_id: string;
9757
+ };
9758
+ coordinates: {
9759
+ x: number;
9760
+ y: number;
9761
+ };
9762
+ alias?: string | undefined;
9763
+ }, {
9764
+ type: "FLOW";
9765
+ id: string;
9766
+ config: {
9767
+ next_node: string;
9768
+ flow_id: string;
9769
+ };
9770
+ coordinates: {
9771
+ x: number;
9772
+ y: number;
9773
+ };
9774
+ alias?: string | undefined;
9775
+ }>,
9776
+ z.ZodObject<{
9777
+ id: z.ZodString;
9778
+ type: z.ZodLiteral<"ROUTER">;
9779
+ coordinates: z.ZodObject<{
9780
+ x: z.ZodNumber;
9781
+ y: z.ZodNumber;
9782
+ }, "strip", z.ZodTypeAny, {
9783
+ x: number;
9784
+ y: number;
9785
+ }, {
9786
+ x: number;
9787
+ y: number;
9788
+ }>;
9789
+ alias: z.ZodString;
9790
+ config: z.ZodObject<{
9791
+ rules: z.ZodArray<z.ZodObject<{
9792
+ id: z.ZodString;
9793
+ alias: z.ZodOptional<z.ZodString>;
9794
+ condition: z.ZodAny;
9795
+ next_node: z.ZodString;
9796
+ }, "strip", z.ZodTypeAny, {
9797
+ id: string;
9798
+ next_node: string;
9799
+ alias?: string | undefined;
9800
+ condition?: any;
9801
+ }, {
9802
+ id: string;
9803
+ next_node: string;
9804
+ alias?: string | undefined;
9805
+ condition?: any;
9806
+ }>, "many">;
9807
+ fallback: z.ZodArray<z.ZodString, "many">;
9808
+ }, "strip", z.ZodTypeAny, {
9809
+ rules: {
9810
+ id: string;
9811
+ next_node: string;
9812
+ alias?: string | undefined;
9813
+ condition?: any;
9814
+ }[];
9815
+ fallback: string[];
9816
+ }, {
9817
+ rules: {
9818
+ id: string;
9819
+ next_node: string;
9820
+ alias?: string | undefined;
9821
+ condition?: any;
9822
+ }[];
9823
+ fallback: string[];
9824
+ }>;
9825
+ }, "strip", z.ZodTypeAny, {
9826
+ type: "ROUTER";
9827
+ id: string;
9828
+ config: {
9829
+ rules: {
9830
+ id: string;
9831
+ next_node: string;
9832
+ alias?: string | undefined;
9833
+ condition?: any;
9834
+ }[];
9835
+ fallback: string[];
9836
+ };
9837
+ coordinates: {
9838
+ x: number;
9839
+ y: number;
9840
+ };
9841
+ alias: string;
9842
+ }, {
9843
+ type: "ROUTER";
9844
+ id: string;
9845
+ config: {
9846
+ rules: {
9847
+ id: string;
9848
+ next_node: string;
9849
+ alias?: string | undefined;
9850
+ condition?: any;
9851
+ }[];
9852
+ fallback: string[];
9853
+ };
9854
+ coordinates: {
9855
+ x: number;
9856
+ y: number;
9857
+ };
9858
+ alias: string;
9859
+ }>,
9860
+ z.ZodObject<{
9861
+ id: z.ZodString;
9862
+ type: z.ZodLiteral<"STEP">;
9863
+ coordinates: z.ZodObject<{
9864
+ x: z.ZodNumber;
9865
+ y: z.ZodNumber;
9866
+ }, "strip", z.ZodTypeAny, {
9867
+ x: number;
9868
+ y: number;
9869
+ }, {
9870
+ x: number;
9871
+ y: number;
9872
+ }>;
9873
+ alias: z.ZodOptional<z.ZodString>;
9874
+ config: z.ZodObject<{
9875
+ components: z.ZodArray<z.ZodAny, "many">;
9876
+ next_node: z.ZodString;
9877
+ }, "strip", z.ZodTypeAny, {
9878
+ components: any[];
9879
+ next_node: string;
9880
+ }, {
9881
+ components: any[];
9882
+ next_node: string;
9883
+ }>;
8774
9884
  }, "strip", z.ZodTypeAny, {
8775
- message: string;
8776
- type: ValidationErrorType;
8777
- format?: string | undefined;
8778
- pattern?: string | undefined;
8779
- min_length?: number | undefined;
8780
- max_length?: number | undefined;
8781
- min?: number | undefined;
8782
- max?: number | undefined;
9885
+ type: "STEP";
9886
+ id: string;
9887
+ config: {
9888
+ components: any[];
9889
+ next_node: string;
9890
+ };
9891
+ coordinates: {
9892
+ x: number;
9893
+ y: number;
9894
+ };
9895
+ alias?: string | undefined;
8783
9896
  }, {
8784
- message: string;
8785
- type: ValidationErrorType;
8786
- format?: string | undefined;
8787
- pattern?: string | undefined;
8788
- min_length?: number | undefined;
8789
- max_length?: number | undefined;
8790
- min?: number | undefined;
8791
- max?: number | undefined;
8792
- }>, "many">>;
8793
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
8794
- label: z.ZodString;
9897
+ type: "STEP";
9898
+ id: string;
9899
+ config: {
9900
+ components: any[];
9901
+ next_node: string;
9902
+ };
9903
+ coordinates: {
9904
+ x: number;
9905
+ y: number;
9906
+ };
9907
+ alias?: string | undefined;
9908
+ }>
9909
+ ]>, "many">>;
9910
+ start: z.ZodOptional<z.ZodObject<{
9911
+ hidden_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
9912
+ key: z.ZodString;
8795
9913
  value: z.ZodString;
8796
- checked: z.ZodOptional<z.ZodBoolean>;
8797
9914
  }, "strip", z.ZodTypeAny, {
8798
9915
  value: string;
8799
- label: string;
8800
- checked?: boolean | undefined;
9916
+ key: string;
8801
9917
  }, {
8802
9918
  value: string;
8803
- label: string;
8804
- checked?: boolean | undefined;
9919
+ key: string;
8805
9920
  }>, "many">>;
8806
- description: z.ZodOptional<z.ZodString>;
8807
- order: z.ZodOptional<z.ZodNumber>;
8808
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8809
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9921
+ next_node: z.ZodOptional<z.ZodString>;
9922
+ coordinates: z.ZodOptional<z.ZodObject<{
9923
+ x: z.ZodNumber;
9924
+ y: z.ZodNumber;
9925
+ }, "strip", z.ZodTypeAny, {
9926
+ x: number;
9927
+ y: number;
9928
+ }, {
9929
+ x: number;
9930
+ y: number;
9931
+ }>>;
8810
9932
  }, "strip", z.ZodTypeAny, {
8811
- type: FormFieldType;
8812
- readOnly: boolean;
8813
- required: boolean;
8814
- name: string;
8815
- id: string;
8816
- disabled: boolean;
8817
- label: string;
8818
- visible: boolean;
8819
- options?: {
9933
+ coordinates?: {
9934
+ x: number;
9935
+ y: number;
9936
+ } | undefined;
9937
+ next_node?: string | undefined;
9938
+ hidden_fields?: {
8820
9939
  value: string;
8821
- label: string;
8822
- checked?: boolean | undefined;
8823
- }[] | undefined;
8824
- description?: string | undefined;
8825
- placeholder?: string | undefined;
8826
- defaultValue?: string | number | boolean | undefined;
8827
- validations?: {
8828
- message: string;
8829
- type: ValidationErrorType;
8830
- format?: string | undefined;
8831
- pattern?: string | undefined;
8832
- min_length?: number | undefined;
8833
- max_length?: number | undefined;
8834
- min?: number | undefined;
8835
- max?: number | undefined;
9940
+ key: string;
8836
9941
  }[] | undefined;
8837
- order?: number | undefined;
8838
- customizations?: Record<string, any> | undefined;
8839
9942
  }, {
8840
- type: FormFieldType;
8841
- name: string;
8842
- id: string;
8843
- label: string;
8844
- options?: {
9943
+ coordinates?: {
9944
+ x: number;
9945
+ y: number;
9946
+ } | undefined;
9947
+ next_node?: string | undefined;
9948
+ hidden_fields?: {
8845
9949
  value: string;
8846
- label: string;
8847
- checked?: boolean | undefined;
8848
- }[] | undefined;
8849
- readOnly?: boolean | undefined;
8850
- description?: string | undefined;
8851
- required?: boolean | undefined;
8852
- disabled?: boolean | undefined;
8853
- placeholder?: string | undefined;
8854
- defaultValue?: string | number | boolean | undefined;
8855
- validations?: {
8856
- message: string;
8857
- type: ValidationErrorType;
8858
- format?: string | undefined;
8859
- pattern?: string | undefined;
8860
- min_length?: number | undefined;
8861
- max_length?: number | undefined;
8862
- min?: number | undefined;
8863
- max?: number | undefined;
9950
+ key: string;
8864
9951
  }[] | undefined;
8865
- order?: number | undefined;
8866
- visible?: boolean | undefined;
8867
- customizations?: Record<string, any> | undefined;
8868
- }>, "many">;
8869
- controls: z.ZodOptional<z.ZodArray<z.ZodObject<{
8870
- id: z.ZodString;
8871
- type: z.ZodLiteral<"submit">;
8872
- label: z.ZodString;
8873
- className: z.ZodOptional<z.ZodString>;
8874
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8875
- order: z.ZodOptional<z.ZodNumber>;
8876
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8877
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8878
- }, "strip", z.ZodTypeAny, {
8879
- type: "submit";
8880
- id: string;
8881
- disabled: boolean;
8882
- label: string;
8883
- visible: boolean;
8884
- order?: number | undefined;
8885
- customizations?: Record<string, any> | undefined;
8886
- className?: string | undefined;
8887
- }, {
8888
- type: "submit";
8889
- id: string;
8890
- label: string;
8891
- disabled?: boolean | undefined;
8892
- order?: number | undefined;
8893
- visible?: boolean | undefined;
8894
- customizations?: Record<string, any> | undefined;
8895
- className?: string | undefined;
8896
- }>, "many">>;
8897
- redirect_uri: z.ZodOptional<z.ZodString>;
8898
- post_submit_action: z.ZodOptional<z.ZodEnum<[
8899
- "redirect",
8900
- "message"
8901
- ]>>;
8902
- success_message: z.ZodOptional<z.ZodString>;
8903
- language: z.ZodOptional<z.ZodString>;
8904
- active: z.ZodDefault<z.ZodBoolean>;
8905
- layout: z.ZodOptional<z.ZodObject<{
8906
- columns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8907
- template: z.ZodOptional<z.ZodString>;
8908
- }, "strip", z.ZodTypeAny, {
8909
- columns: number;
8910
- template?: string | undefined;
8911
- }, {
8912
- columns?: number | undefined;
8913
- template?: string | undefined;
8914
9952
  }>>;
8915
- css: z.ZodOptional<z.ZodString>;
8916
- javascript: z.ZodOptional<z.ZodString>;
8917
- }, "strip", z.ZodTypeAny, {
8918
- type: FormType;
8919
- name: string;
8920
- fields: {
8921
- type: FormFieldType;
8922
- readOnly: boolean;
8923
- required: boolean;
8924
- name: string;
8925
- id: string;
8926
- disabled: boolean;
8927
- label: string;
8928
- visible: boolean;
8929
- options?: {
8930
- value: string;
8931
- label: string;
8932
- checked?: boolean | undefined;
8933
- }[] | undefined;
8934
- description?: string | undefined;
8935
- placeholder?: string | undefined;
8936
- defaultValue?: string | number | boolean | undefined;
8937
- validations?: {
8938
- message: string;
8939
- type: ValidationErrorType;
8940
- format?: string | undefined;
8941
- pattern?: string | undefined;
8942
- min_length?: number | undefined;
8943
- max_length?: number | undefined;
8944
- min?: number | undefined;
8945
- max?: number | undefined;
8946
- }[] | undefined;
8947
- order?: number | undefined;
8948
- customizations?: Record<string, any> | undefined;
8949
- }[];
8950
- active: boolean;
8951
- client_id?: string | undefined;
8952
- redirect_uri?: string | undefined;
8953
- language?: string | undefined;
8954
- controls?: {
8955
- type: "submit";
8956
- id: string;
8957
- disabled: boolean;
8958
- label: string;
8959
- visible: boolean;
8960
- order?: number | undefined;
8961
- customizations?: Record<string, any> | undefined;
8962
- className?: string | undefined;
8963
- }[] | undefined;
8964
- post_submit_action?: "message" | "redirect" | undefined;
8965
- success_message?: string | undefined;
8966
- layout?: {
8967
- columns: number;
8968
- template?: string | undefined;
8969
- } | undefined;
8970
- css?: string | undefined;
8971
- javascript?: string | undefined;
8972
- }, {
8973
- type: FormType;
8974
- name: string;
8975
- fields: {
8976
- type: FormFieldType;
8977
- name: string;
8978
- id: string;
8979
- label: string;
8980
- options?: {
8981
- value: string;
8982
- label: string;
8983
- checked?: boolean | undefined;
8984
- }[] | undefined;
8985
- readOnly?: boolean | undefined;
8986
- description?: string | undefined;
8987
- required?: boolean | undefined;
8988
- disabled?: boolean | undefined;
8989
- placeholder?: string | undefined;
8990
- defaultValue?: string | number | boolean | undefined;
8991
- validations?: {
8992
- message: string;
8993
- type: ValidationErrorType;
8994
- format?: string | undefined;
8995
- pattern?: string | undefined;
8996
- min_length?: number | undefined;
8997
- max_length?: number | undefined;
8998
- min?: number | undefined;
8999
- max?: number | undefined;
9000
- }[] | undefined;
9001
- order?: number | undefined;
9002
- visible?: boolean | undefined;
9003
- customizations?: Record<string, any> | undefined;
9004
- }[];
9005
- client_id?: string | undefined;
9006
- redirect_uri?: string | undefined;
9007
- language?: string | undefined;
9008
- controls?: {
9009
- type: "submit";
9010
- id: string;
9011
- label: string;
9012
- disabled?: boolean | undefined;
9013
- order?: number | undefined;
9014
- visible?: boolean | undefined;
9015
- customizations?: Record<string, any> | undefined;
9016
- className?: string | undefined;
9017
- }[] | undefined;
9018
- post_submit_action?: "message" | "redirect" | undefined;
9019
- success_message?: string | undefined;
9020
- active?: boolean | undefined;
9021
- layout?: {
9022
- columns?: number | undefined;
9023
- template?: string | undefined;
9024
- } | undefined;
9025
- css?: string | undefined;
9026
- javascript?: string | undefined;
9027
- }>;
9028
- export type FormInsert = z.input<typeof formInsertSchema>;
9029
- /**
9030
- * Schema for complete form with base entity properties
9031
- */
9032
- export declare const formSchema: z.ZodObject<{
9033
- id: z.ZodString;
9034
- name: z.ZodString;
9035
- type: z.ZodNativeEnum<typeof FormType>;
9036
- client_id: z.ZodOptional<z.ZodString>;
9037
- fields: z.ZodArray<z.ZodObject<{
9038
- id: z.ZodString;
9039
- name: z.ZodString;
9040
- type: z.ZodNativeEnum<typeof FormFieldType>;
9041
- label: z.ZodString;
9042
- placeholder: z.ZodOptional<z.ZodString>;
9043
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9044
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9045
- readOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9046
- defaultValue: z.ZodOptional<z.ZodUnion<[
9047
- z.ZodString,
9048
- z.ZodNumber,
9049
- z.ZodBoolean
9050
- ]>>;
9051
- validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
9052
- type: z.ZodNativeEnum<typeof ValidationErrorType>;
9053
- message: z.ZodString;
9054
- min_length: z.ZodOptional<z.ZodNumber>;
9055
- max_length: z.ZodOptional<z.ZodNumber>;
9056
- min: z.ZodOptional<z.ZodNumber>;
9057
- max: z.ZodOptional<z.ZodNumber>;
9058
- pattern: z.ZodOptional<z.ZodString>;
9059
- format: z.ZodOptional<z.ZodString>;
9953
+ ending: z.ZodOptional<z.ZodObject<{
9954
+ redirection: z.ZodOptional<z.ZodObject<{
9955
+ delay: z.ZodOptional<z.ZodNumber>;
9956
+ target: z.ZodOptional<z.ZodString>;
9060
9957
  }, "strip", z.ZodTypeAny, {
9061
- message: string;
9062
- type: ValidationErrorType;
9063
- format?: string | undefined;
9064
- pattern?: string | undefined;
9065
- min_length?: number | undefined;
9066
- max_length?: number | undefined;
9067
- min?: number | undefined;
9068
- max?: number | undefined;
9958
+ delay?: number | undefined;
9959
+ target?: string | undefined;
9069
9960
  }, {
9070
- message: string;
9071
- type: ValidationErrorType;
9072
- format?: string | undefined;
9073
- pattern?: string | undefined;
9074
- min_length?: number | undefined;
9075
- max_length?: number | undefined;
9076
- min?: number | undefined;
9077
- max?: number | undefined;
9078
- }>, "many">>;
9079
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
9080
- label: z.ZodString;
9081
- value: z.ZodString;
9082
- checked: z.ZodOptional<z.ZodBoolean>;
9961
+ delay?: number | undefined;
9962
+ target?: string | undefined;
9963
+ }>>;
9964
+ after_submit: z.ZodOptional<z.ZodObject<{
9965
+ flow_id: z.ZodOptional<z.ZodString>;
9083
9966
  }, "strip", z.ZodTypeAny, {
9084
- value: string;
9085
- label: string;
9086
- checked?: boolean | undefined;
9967
+ flow_id?: string | undefined;
9087
9968
  }, {
9088
- value: string;
9089
- label: string;
9090
- checked?: boolean | undefined;
9091
- }>, "many">>;
9092
- description: z.ZodOptional<z.ZodString>;
9093
- order: z.ZodOptional<z.ZodNumber>;
9094
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9095
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9096
- }, "strip", z.ZodTypeAny, {
9097
- type: FormFieldType;
9098
- readOnly: boolean;
9099
- required: boolean;
9100
- name: string;
9101
- id: string;
9102
- disabled: boolean;
9103
- label: string;
9104
- visible: boolean;
9105
- options?: {
9106
- value: string;
9107
- label: string;
9108
- checked?: boolean | undefined;
9109
- }[] | undefined;
9110
- description?: string | undefined;
9111
- placeholder?: string | undefined;
9112
- defaultValue?: string | number | boolean | undefined;
9113
- validations?: {
9114
- message: string;
9115
- type: ValidationErrorType;
9116
- format?: string | undefined;
9117
- pattern?: string | undefined;
9118
- min_length?: number | undefined;
9119
- max_length?: number | undefined;
9120
- min?: number | undefined;
9121
- max?: number | undefined;
9122
- }[] | undefined;
9123
- order?: number | undefined;
9124
- customizations?: Record<string, any> | undefined;
9125
- }, {
9126
- type: FormFieldType;
9127
- name: string;
9128
- id: string;
9129
- label: string;
9130
- options?: {
9131
- value: string;
9132
- label: string;
9133
- checked?: boolean | undefined;
9134
- }[] | undefined;
9135
- readOnly?: boolean | undefined;
9136
- description?: string | undefined;
9137
- required?: boolean | undefined;
9138
- disabled?: boolean | undefined;
9139
- placeholder?: string | undefined;
9140
- defaultValue?: string | number | boolean | undefined;
9141
- validations?: {
9142
- message: string;
9143
- type: ValidationErrorType;
9144
- format?: string | undefined;
9145
- pattern?: string | undefined;
9146
- min_length?: number | undefined;
9147
- max_length?: number | undefined;
9148
- min?: number | undefined;
9149
- max?: number | undefined;
9150
- }[] | undefined;
9151
- order?: number | undefined;
9152
- visible?: boolean | undefined;
9153
- customizations?: Record<string, any> | undefined;
9154
- }>, "many">;
9155
- controls: z.ZodOptional<z.ZodArray<z.ZodObject<{
9156
- id: z.ZodString;
9157
- type: z.ZodLiteral<"submit">;
9158
- label: z.ZodString;
9159
- className: z.ZodOptional<z.ZodString>;
9160
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9161
- order: z.ZodOptional<z.ZodNumber>;
9162
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9163
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9969
+ flow_id?: string | undefined;
9970
+ }>>;
9971
+ coordinates: z.ZodOptional<z.ZodObject<{
9972
+ x: z.ZodNumber;
9973
+ y: z.ZodNumber;
9974
+ }, "strip", z.ZodTypeAny, {
9975
+ x: number;
9976
+ y: number;
9977
+ }, {
9978
+ x: number;
9979
+ y: number;
9980
+ }>>;
9981
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
9164
9982
  }, "strip", z.ZodTypeAny, {
9165
- type: "submit";
9166
- id: string;
9167
- disabled: boolean;
9168
- label: string;
9169
- visible: boolean;
9170
- order?: number | undefined;
9171
- customizations?: Record<string, any> | undefined;
9172
- className?: string | undefined;
9983
+ coordinates?: {
9984
+ x: number;
9985
+ y: number;
9986
+ } | undefined;
9987
+ resume_flow?: boolean | undefined;
9988
+ redirection?: {
9989
+ delay?: number | undefined;
9990
+ target?: string | undefined;
9991
+ } | undefined;
9992
+ after_submit?: {
9993
+ flow_id?: string | undefined;
9994
+ } | undefined;
9173
9995
  }, {
9174
- type: "submit";
9175
- id: string;
9176
- label: string;
9177
- disabled?: boolean | undefined;
9178
- order?: number | undefined;
9179
- visible?: boolean | undefined;
9180
- customizations?: Record<string, any> | undefined;
9181
- className?: string | undefined;
9182
- }>, "many">>;
9183
- redirect_uri: z.ZodOptional<z.ZodString>;
9184
- post_submit_action: z.ZodOptional<z.ZodEnum<[
9185
- "redirect",
9186
- "message"
9187
- ]>>;
9188
- success_message: z.ZodOptional<z.ZodString>;
9189
- language: z.ZodOptional<z.ZodString>;
9190
- active: z.ZodDefault<z.ZodBoolean>;
9191
- layout: z.ZodOptional<z.ZodObject<{
9192
- columns: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9193
- template: z.ZodOptional<z.ZodString>;
9996
+ coordinates?: {
9997
+ x: number;
9998
+ y: number;
9999
+ } | undefined;
10000
+ resume_flow?: boolean | undefined;
10001
+ redirection?: {
10002
+ delay?: number | undefined;
10003
+ target?: string | undefined;
10004
+ } | undefined;
10005
+ after_submit?: {
10006
+ flow_id?: string | undefined;
10007
+ } | undefined;
10008
+ }>>;
10009
+ style: z.ZodOptional<z.ZodObject<{
10010
+ css: z.ZodOptional<z.ZodString>;
9194
10011
  }, "strip", z.ZodTypeAny, {
9195
- columns: number;
9196
- template?: string | undefined;
10012
+ css?: string | undefined;
9197
10013
  }, {
9198
- columns?: number | undefined;
9199
- template?: string | undefined;
10014
+ css?: string | undefined;
9200
10015
  }>>;
9201
- css: z.ZodOptional<z.ZodString>;
9202
- javascript: z.ZodOptional<z.ZodString>;
9203
10016
  created_at: z.ZodString;
9204
10017
  updated_at: z.ZodString;
9205
10018
  }, "strip", z.ZodTypeAny, {
9206
- type: FormType;
9207
10019
  created_at: string;
9208
10020
  updated_at: string;
9209
10021
  name: string;
9210
10022
  id: string;
9211
- fields: {
9212
- type: FormFieldType;
9213
- readOnly: boolean;
9214
- required: boolean;
9215
- name: string;
9216
- id: string;
9217
- disabled: boolean;
9218
- label: string;
9219
- visible: boolean;
9220
- options?: {
10023
+ start?: {
10024
+ coordinates?: {
10025
+ x: number;
10026
+ y: number;
10027
+ } | undefined;
10028
+ next_node?: string | undefined;
10029
+ hidden_fields?: {
9221
10030
  value: string;
9222
- label: string;
9223
- checked?: boolean | undefined;
9224
- }[] | undefined;
9225
- description?: string | undefined;
9226
- placeholder?: string | undefined;
9227
- defaultValue?: string | number | boolean | undefined;
9228
- validations?: {
9229
- message: string;
9230
- type: ValidationErrorType;
9231
- format?: string | undefined;
9232
- pattern?: string | undefined;
9233
- min_length?: number | undefined;
9234
- max_length?: number | undefined;
9235
- min?: number | undefined;
9236
- max?: number | undefined;
10031
+ key: string;
9237
10032
  }[] | undefined;
9238
- order?: number | undefined;
9239
- customizations?: Record<string, any> | undefined;
9240
- }[];
9241
- active: boolean;
9242
- client_id?: string | undefined;
9243
- redirect_uri?: string | undefined;
9244
- language?: string | undefined;
9245
- controls?: {
9246
- type: "submit";
10033
+ } | undefined;
10034
+ style?: {
10035
+ css?: string | undefined;
10036
+ } | undefined;
10037
+ languages?: {
10038
+ default?: string | undefined;
10039
+ primary?: string | undefined;
10040
+ } | undefined;
10041
+ nodes?: ({
10042
+ type: "FLOW";
9247
10043
  id: string;
9248
- disabled: boolean;
9249
- label: string;
9250
- visible: boolean;
9251
- order?: number | undefined;
9252
- customizations?: Record<string, any> | undefined;
9253
- className?: string | undefined;
9254
- }[] | undefined;
9255
- post_submit_action?: "message" | "redirect" | undefined;
9256
- success_message?: string | undefined;
9257
- layout?: {
9258
- columns: number;
9259
- template?: string | undefined;
10044
+ config: {
10045
+ next_node: string;
10046
+ flow_id: string;
10047
+ };
10048
+ coordinates: {
10049
+ x: number;
10050
+ y: number;
10051
+ };
10052
+ alias?: string | undefined;
10053
+ } | {
10054
+ type: "ROUTER";
10055
+ id: string;
10056
+ config: {
10057
+ rules: {
10058
+ id: string;
10059
+ next_node: string;
10060
+ alias?: string | undefined;
10061
+ condition?: any;
10062
+ }[];
10063
+ fallback: string[];
10064
+ };
10065
+ coordinates: {
10066
+ x: number;
10067
+ y: number;
10068
+ };
10069
+ alias: string;
10070
+ } | {
10071
+ type: "STEP";
10072
+ id: string;
10073
+ config: {
10074
+ components: any[];
10075
+ next_node: string;
10076
+ };
10077
+ coordinates: {
10078
+ x: number;
10079
+ y: number;
10080
+ };
10081
+ alias?: string | undefined;
10082
+ })[] | undefined;
10083
+ ending?: {
10084
+ coordinates?: {
10085
+ x: number;
10086
+ y: number;
10087
+ } | undefined;
10088
+ resume_flow?: boolean | undefined;
10089
+ redirection?: {
10090
+ delay?: number | undefined;
10091
+ target?: string | undefined;
10092
+ } | undefined;
10093
+ after_submit?: {
10094
+ flow_id?: string | undefined;
10095
+ } | undefined;
10096
+ } | undefined;
10097
+ messages?: {
10098
+ custom?: Record<string, any> | undefined;
10099
+ errors?: Record<string, any> | undefined;
9260
10100
  } | undefined;
9261
- css?: string | undefined;
9262
- javascript?: string | undefined;
10101
+ translations?: Record<string, any> | undefined;
9263
10102
  }, {
9264
- type: FormType;
9265
10103
  created_at: string;
9266
10104
  updated_at: string;
9267
10105
  name: string;
9268
10106
  id: string;
9269
- fields: {
9270
- type: FormFieldType;
9271
- name: string;
9272
- id: string;
9273
- label: string;
9274
- options?: {
10107
+ start?: {
10108
+ coordinates?: {
10109
+ x: number;
10110
+ y: number;
10111
+ } | undefined;
10112
+ next_node?: string | undefined;
10113
+ hidden_fields?: {
9275
10114
  value: string;
9276
- label: string;
9277
- checked?: boolean | undefined;
9278
- }[] | undefined;
9279
- readOnly?: boolean | undefined;
9280
- description?: string | undefined;
9281
- required?: boolean | undefined;
9282
- disabled?: boolean | undefined;
9283
- placeholder?: string | undefined;
9284
- defaultValue?: string | number | boolean | undefined;
9285
- validations?: {
9286
- message: string;
9287
- type: ValidationErrorType;
9288
- format?: string | undefined;
9289
- pattern?: string | undefined;
9290
- min_length?: number | undefined;
9291
- max_length?: number | undefined;
9292
- min?: number | undefined;
9293
- max?: number | undefined;
10115
+ key: string;
9294
10116
  }[] | undefined;
9295
- order?: number | undefined;
9296
- visible?: boolean | undefined;
9297
- customizations?: Record<string, any> | undefined;
9298
- }[];
9299
- client_id?: string | undefined;
9300
- redirect_uri?: string | undefined;
9301
- language?: string | undefined;
9302
- controls?: {
9303
- type: "submit";
10117
+ } | undefined;
10118
+ style?: {
10119
+ css?: string | undefined;
10120
+ } | undefined;
10121
+ languages?: {
10122
+ default?: string | undefined;
10123
+ primary?: string | undefined;
10124
+ } | undefined;
10125
+ nodes?: ({
10126
+ type: "FLOW";
9304
10127
  id: string;
9305
- label: string;
9306
- disabled?: boolean | undefined;
9307
- order?: number | undefined;
9308
- visible?: boolean | undefined;
9309
- customizations?: Record<string, any> | undefined;
9310
- className?: string | undefined;
9311
- }[] | undefined;
9312
- post_submit_action?: "message" | "redirect" | undefined;
9313
- success_message?: string | undefined;
9314
- active?: boolean | undefined;
9315
- layout?: {
9316
- columns?: number | undefined;
9317
- template?: string | undefined;
10128
+ config: {
10129
+ next_node: string;
10130
+ flow_id: string;
10131
+ };
10132
+ coordinates: {
10133
+ x: number;
10134
+ y: number;
10135
+ };
10136
+ alias?: string | undefined;
10137
+ } | {
10138
+ type: "ROUTER";
10139
+ id: string;
10140
+ config: {
10141
+ rules: {
10142
+ id: string;
10143
+ next_node: string;
10144
+ alias?: string | undefined;
10145
+ condition?: any;
10146
+ }[];
10147
+ fallback: string[];
10148
+ };
10149
+ coordinates: {
10150
+ x: number;
10151
+ y: number;
10152
+ };
10153
+ alias: string;
10154
+ } | {
10155
+ type: "STEP";
10156
+ id: string;
10157
+ config: {
10158
+ components: any[];
10159
+ next_node: string;
10160
+ };
10161
+ coordinates: {
10162
+ x: number;
10163
+ y: number;
10164
+ };
10165
+ alias?: string | undefined;
10166
+ })[] | undefined;
10167
+ ending?: {
10168
+ coordinates?: {
10169
+ x: number;
10170
+ y: number;
10171
+ } | undefined;
10172
+ resume_flow?: boolean | undefined;
10173
+ redirection?: {
10174
+ delay?: number | undefined;
10175
+ target?: string | undefined;
10176
+ } | undefined;
10177
+ after_submit?: {
10178
+ flow_id?: string | undefined;
10179
+ } | undefined;
10180
+ } | undefined;
10181
+ messages?: {
10182
+ custom?: Record<string, any> | undefined;
10183
+ errors?: Record<string, any> | undefined;
9318
10184
  } | undefined;
9319
- css?: string | undefined;
9320
- javascript?: string | undefined;
10185
+ translations?: Record<string, any> | undefined;
9321
10186
  }>;
9322
10187
  export type Form = z.infer<typeof formSchema>;
9323
10188
  export declare const hookInsertSchema: z.ZodObject<{