@authhero/adapter-interfaces 0.61.0 → 0.62.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;
@@ -2044,6 +2068,46 @@ export declare const flowNodeSchema: z.ZodObject<{
2044
2068
  y: number;
2045
2069
  };
2046
2070
  }>;
2071
+ export declare const genericNodeSchema: z.ZodObject<{
2072
+ id: z.ZodString;
2073
+ type: z.ZodString;
2074
+ coordinates: z.ZodObject<{
2075
+ x: z.ZodNumber;
2076
+ y: z.ZodNumber;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ x: number;
2079
+ y: number;
2080
+ }, {
2081
+ x: number;
2082
+ y: number;
2083
+ }>;
2084
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2085
+ id: z.ZodString;
2086
+ type: z.ZodString;
2087
+ coordinates: z.ZodObject<{
2088
+ x: z.ZodNumber;
2089
+ y: z.ZodNumber;
2090
+ }, "strip", z.ZodTypeAny, {
2091
+ x: number;
2092
+ y: number;
2093
+ }, {
2094
+ x: number;
2095
+ y: number;
2096
+ }>;
2097
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2098
+ id: z.ZodString;
2099
+ type: z.ZodString;
2100
+ coordinates: z.ZodObject<{
2101
+ x: z.ZodNumber;
2102
+ y: z.ZodNumber;
2103
+ }, "strip", z.ZodTypeAny, {
2104
+ x: number;
2105
+ y: number;
2106
+ }, {
2107
+ x: number;
2108
+ y: number;
2109
+ }>;
2110
+ }, z.ZodTypeAny, "passthrough">>;
2047
2111
  export declare const nodeSchema: z.ZodUnion<[
2048
2112
  z.ZodObject<{
2049
2113
  id: z.ZodString;
@@ -2216,7 +2280,20 @@ export declare const nodeSchema: z.ZodUnion<[
2216
2280
  };
2217
2281
  required?: boolean | undefined;
2218
2282
  sensitive?: boolean | undefined;
2219
- }>
2283
+ }>,
2284
+ z.ZodObject<{
2285
+ id: z.ZodString;
2286
+ category: z.ZodString;
2287
+ type: z.ZodString;
2288
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2289
+ id: z.ZodString;
2290
+ category: z.ZodString;
2291
+ type: z.ZodString;
2292
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2293
+ id: z.ZodString;
2294
+ category: z.ZodString;
2295
+ type: z.ZodString;
2296
+ }, z.ZodTypeAny, "passthrough">>
2220
2297
  ]>, "many">;
2221
2298
  next_node: z.ZodString;
2222
2299
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2376,7 +2453,20 @@ export declare const nodeSchema: z.ZodUnion<[
2376
2453
  };
2377
2454
  required?: boolean | undefined;
2378
2455
  sensitive?: boolean | undefined;
2379
- }>
2456
+ }>,
2457
+ z.ZodObject<{
2458
+ id: z.ZodString;
2459
+ category: z.ZodString;
2460
+ type: z.ZodString;
2461
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2462
+ id: z.ZodString;
2463
+ category: z.ZodString;
2464
+ type: z.ZodString;
2465
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2466
+ id: z.ZodString;
2467
+ category: z.ZodString;
2468
+ type: z.ZodString;
2469
+ }, z.ZodTypeAny, "passthrough">>
2380
2470
  ]>, "many">;
2381
2471
  next_node: z.ZodString;
2382
2472
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2536,7 +2626,20 @@ export declare const nodeSchema: z.ZodUnion<[
2536
2626
  };
2537
2627
  required?: boolean | undefined;
2538
2628
  sensitive?: boolean | undefined;
2539
- }>
2629
+ }>,
2630
+ z.ZodObject<{
2631
+ id: z.ZodString;
2632
+ category: z.ZodString;
2633
+ type: z.ZodString;
2634
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2635
+ id: z.ZodString;
2636
+ category: z.ZodString;
2637
+ type: z.ZodString;
2638
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2639
+ id: z.ZodString;
2640
+ category: z.ZodString;
2641
+ type: z.ZodString;
2642
+ }, z.ZodTypeAny, "passthrough">>
2540
2643
  ]>, "many">;
2541
2644
  next_node: z.ZodString;
2542
2645
  }, z.ZodTypeAny, "passthrough">>;
@@ -2585,7 +2688,11 @@ export declare const nodeSchema: z.ZodUnion<[
2585
2688
  };
2586
2689
  required?: boolean | undefined;
2587
2690
  sensitive?: boolean | undefined;
2588
- })[];
2691
+ } | z.objectOutputType<{
2692
+ id: z.ZodString;
2693
+ category: z.ZodString;
2694
+ type: z.ZodString;
2695
+ }, z.ZodTypeAny, "passthrough">)[];
2589
2696
  next_node: string;
2590
2697
  } & {
2591
2698
  [k: string]: unknown;
@@ -2640,7 +2747,11 @@ export declare const nodeSchema: z.ZodUnion<[
2640
2747
  };
2641
2748
  required?: boolean | undefined;
2642
2749
  sensitive?: boolean | undefined;
2643
- })[];
2750
+ } | z.objectInputType<{
2751
+ id: z.ZodString;
2752
+ category: z.ZodString;
2753
+ type: z.ZodString;
2754
+ }, z.ZodTypeAny, "passthrough">)[];
2644
2755
  next_node: string;
2645
2756
  } & {
2646
2757
  [k: string]: unknown;
@@ -2696,38 +2807,52 @@ export declare const nodeSchema: z.ZodUnion<[
2696
2807
  x: number;
2697
2808
  y: number;
2698
2809
  };
2699
- }>
2810
+ }>,
2811
+ z.ZodObject<{
2812
+ id: z.ZodString;
2813
+ type: z.ZodString;
2814
+ coordinates: z.ZodObject<{
2815
+ x: z.ZodNumber;
2816
+ y: z.ZodNumber;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ x: number;
2819
+ y: number;
2820
+ }, {
2821
+ x: number;
2822
+ y: number;
2823
+ }>;
2824
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2825
+ id: z.ZodString;
2826
+ type: z.ZodString;
2827
+ coordinates: z.ZodObject<{
2828
+ x: z.ZodNumber;
2829
+ y: z.ZodNumber;
2830
+ }, "strip", z.ZodTypeAny, {
2831
+ x: number;
2832
+ y: number;
2833
+ }, {
2834
+ x: number;
2835
+ y: number;
2836
+ }>;
2837
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2838
+ id: z.ZodString;
2839
+ type: z.ZodString;
2840
+ coordinates: z.ZodObject<{
2841
+ x: z.ZodNumber;
2842
+ y: z.ZodNumber;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ x: number;
2845
+ y: number;
2846
+ }, {
2847
+ x: number;
2848
+ y: number;
2849
+ }>;
2850
+ }, z.ZodTypeAny, "passthrough">>
2700
2851
  ]>;
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;
2852
+ export type StepNode = z.infer<typeof stepNodeSchema>;
2853
+ export type FlowNode = z.infer<typeof flowNodeSchema>;
2854
+ export type GenericNode = z.infer<typeof genericNodeSchema>;
2855
+ type Node$1 = z.infer<typeof nodeSchema>;
2731
2856
  export declare const startSchema: z.ZodObject<{
2732
2857
  next_node: z.ZodString;
2733
2858
  coordinates: z.ZodObject<{
@@ -2986,7 +3111,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
2986
3111
  };
2987
3112
  required?: boolean | undefined;
2988
3113
  sensitive?: boolean | undefined;
2989
- }>
3114
+ }>,
3115
+ z.ZodObject<{
3116
+ id: z.ZodString;
3117
+ category: z.ZodString;
3118
+ type: z.ZodString;
3119
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3120
+ id: z.ZodString;
3121
+ category: z.ZodString;
3122
+ type: z.ZodString;
3123
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3124
+ id: z.ZodString;
3125
+ category: z.ZodString;
3126
+ type: z.ZodString;
3127
+ }, z.ZodTypeAny, "passthrough">>
2990
3128
  ]>, "many">;
2991
3129
  next_node: z.ZodString;
2992
3130
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3146,7 +3284,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
3146
3284
  };
3147
3285
  required?: boolean | undefined;
3148
3286
  sensitive?: boolean | undefined;
3149
- }>
3287
+ }>,
3288
+ z.ZodObject<{
3289
+ id: z.ZodString;
3290
+ category: z.ZodString;
3291
+ type: z.ZodString;
3292
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3293
+ id: z.ZodString;
3294
+ category: z.ZodString;
3295
+ type: z.ZodString;
3296
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3297
+ id: z.ZodString;
3298
+ category: z.ZodString;
3299
+ type: z.ZodString;
3300
+ }, z.ZodTypeAny, "passthrough">>
3150
3301
  ]>, "many">;
3151
3302
  next_node: z.ZodString;
3152
3303
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3306,7 +3457,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
3306
3457
  };
3307
3458
  required?: boolean | undefined;
3308
3459
  sensitive?: boolean | undefined;
3309
- }>
3460
+ }>,
3461
+ z.ZodObject<{
3462
+ id: z.ZodString;
3463
+ category: z.ZodString;
3464
+ type: z.ZodString;
3465
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3466
+ id: z.ZodString;
3467
+ category: z.ZodString;
3468
+ type: z.ZodString;
3469
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3470
+ id: z.ZodString;
3471
+ category: z.ZodString;
3472
+ type: z.ZodString;
3473
+ }, z.ZodTypeAny, "passthrough">>
3310
3474
  ]>, "many">;
3311
3475
  next_node: z.ZodString;
3312
3476
  }, z.ZodTypeAny, "passthrough">>;
@@ -3355,7 +3519,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
3355
3519
  };
3356
3520
  required?: boolean | undefined;
3357
3521
  sensitive?: boolean | undefined;
3358
- })[];
3522
+ } | z.objectOutputType<{
3523
+ id: z.ZodString;
3524
+ category: z.ZodString;
3525
+ type: z.ZodString;
3526
+ }, z.ZodTypeAny, "passthrough">)[];
3359
3527
  next_node: string;
3360
3528
  } & {
3361
3529
  [k: string]: unknown;
@@ -3410,7 +3578,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
3410
3578
  };
3411
3579
  required?: boolean | undefined;
3412
3580
  sensitive?: boolean | undefined;
3413
- })[];
3581
+ } | z.objectInputType<{
3582
+ id: z.ZodString;
3583
+ category: z.ZodString;
3584
+ type: z.ZodString;
3585
+ }, z.ZodTypeAny, "passthrough">)[];
3414
3586
  next_node: string;
3415
3587
  } & {
3416
3588
  [k: string]: unknown;
@@ -3466,7 +3638,47 @@ export declare const auth0FlowSchema: z.ZodObject<{
3466
3638
  x: number;
3467
3639
  y: number;
3468
3640
  };
3469
- }>
3641
+ }>,
3642
+ z.ZodObject<{
3643
+ id: z.ZodString;
3644
+ type: z.ZodString;
3645
+ coordinates: z.ZodObject<{
3646
+ x: z.ZodNumber;
3647
+ y: z.ZodNumber;
3648
+ }, "strip", z.ZodTypeAny, {
3649
+ x: number;
3650
+ y: number;
3651
+ }, {
3652
+ x: number;
3653
+ y: number;
3654
+ }>;
3655
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3656
+ id: z.ZodString;
3657
+ type: z.ZodString;
3658
+ coordinates: z.ZodObject<{
3659
+ x: z.ZodNumber;
3660
+ y: z.ZodNumber;
3661
+ }, "strip", z.ZodTypeAny, {
3662
+ x: number;
3663
+ y: number;
3664
+ }, {
3665
+ x: number;
3666
+ y: number;
3667
+ }>;
3668
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3669
+ id: z.ZodString;
3670
+ type: z.ZodString;
3671
+ coordinates: z.ZodObject<{
3672
+ x: z.ZodNumber;
3673
+ y: z.ZodNumber;
3674
+ }, "strip", z.ZodTypeAny, {
3675
+ x: number;
3676
+ y: number;
3677
+ }, {
3678
+ x: number;
3679
+ y: number;
3680
+ }>;
3681
+ }, z.ZodTypeAny, "passthrough">>
3470
3682
  ]>, "many">;
3471
3683
  start: z.ZodObject<{
3472
3684
  next_node: z.ZodString;
@@ -3736,9 +3948,22 @@ export declare const auth0FlowSchema: z.ZodObject<{
3736
3948
  };
3737
3949
  required?: boolean | undefined;
3738
3950
  sensitive?: boolean | undefined;
3739
- }>
3740
- ]>, "many">;
3741
- next_node: z.ZodString;
3951
+ }>,
3952
+ z.ZodObject<{
3953
+ id: z.ZodString;
3954
+ category: z.ZodString;
3955
+ type: z.ZodString;
3956
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3957
+ id: z.ZodString;
3958
+ category: z.ZodString;
3959
+ type: z.ZodString;
3960
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3961
+ id: z.ZodString;
3962
+ category: z.ZodString;
3963
+ type: z.ZodString;
3964
+ }, z.ZodTypeAny, "passthrough">>
3965
+ ]>, "many">;
3966
+ next_node: z.ZodString;
3742
3967
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3743
3968
  components: z.ZodArray<z.ZodUnion<[
3744
3969
  z.ZodObject<{
@@ -3896,7 +4121,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
3896
4121
  };
3897
4122
  required?: boolean | undefined;
3898
4123
  sensitive?: boolean | undefined;
3899
- }>
4124
+ }>,
4125
+ z.ZodObject<{
4126
+ id: z.ZodString;
4127
+ category: z.ZodString;
4128
+ type: z.ZodString;
4129
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4130
+ id: z.ZodString;
4131
+ category: z.ZodString;
4132
+ type: z.ZodString;
4133
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4134
+ id: z.ZodString;
4135
+ category: z.ZodString;
4136
+ type: z.ZodString;
4137
+ }, z.ZodTypeAny, "passthrough">>
3900
4138
  ]>, "many">;
3901
4139
  next_node: z.ZodString;
3902
4140
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4056,7 +4294,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
4056
4294
  };
4057
4295
  required?: boolean | undefined;
4058
4296
  sensitive?: boolean | undefined;
4059
- }>
4297
+ }>,
4298
+ z.ZodObject<{
4299
+ id: z.ZodString;
4300
+ category: z.ZodString;
4301
+ type: z.ZodString;
4302
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4303
+ id: z.ZodString;
4304
+ category: z.ZodString;
4305
+ type: z.ZodString;
4306
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4307
+ id: z.ZodString;
4308
+ category: z.ZodString;
4309
+ type: z.ZodString;
4310
+ }, z.ZodTypeAny, "passthrough">>
4060
4311
  ]>, "many">;
4061
4312
  next_node: z.ZodString;
4062
4313
  }, z.ZodTypeAny, "passthrough">>;
@@ -4105,7 +4356,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
4105
4356
  };
4106
4357
  required?: boolean | undefined;
4107
4358
  sensitive?: boolean | undefined;
4108
- })[];
4359
+ } | z.objectOutputType<{
4360
+ id: z.ZodString;
4361
+ category: z.ZodString;
4362
+ type: z.ZodString;
4363
+ }, z.ZodTypeAny, "passthrough">)[];
4109
4364
  next_node: string;
4110
4365
  } & {
4111
4366
  [k: string]: unknown;
@@ -4160,7 +4415,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
4160
4415
  };
4161
4416
  required?: boolean | undefined;
4162
4417
  sensitive?: boolean | undefined;
4163
- })[];
4418
+ } | z.objectInputType<{
4419
+ id: z.ZodString;
4420
+ category: z.ZodString;
4421
+ type: z.ZodString;
4422
+ }, z.ZodTypeAny, "passthrough">)[];
4164
4423
  next_node: string;
4165
4424
  } & {
4166
4425
  [k: string]: unknown;
@@ -4216,7 +4475,47 @@ export declare const auth0FlowSchema: z.ZodObject<{
4216
4475
  x: number;
4217
4476
  y: number;
4218
4477
  };
4219
- }>
4478
+ }>,
4479
+ z.ZodObject<{
4480
+ id: z.ZodString;
4481
+ type: z.ZodString;
4482
+ coordinates: z.ZodObject<{
4483
+ x: z.ZodNumber;
4484
+ y: z.ZodNumber;
4485
+ }, "strip", z.ZodTypeAny, {
4486
+ x: number;
4487
+ y: number;
4488
+ }, {
4489
+ x: number;
4490
+ y: number;
4491
+ }>;
4492
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4493
+ id: z.ZodString;
4494
+ type: z.ZodString;
4495
+ coordinates: z.ZodObject<{
4496
+ x: z.ZodNumber;
4497
+ y: z.ZodNumber;
4498
+ }, "strip", z.ZodTypeAny, {
4499
+ x: number;
4500
+ y: number;
4501
+ }, {
4502
+ x: number;
4503
+ y: number;
4504
+ }>;
4505
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4506
+ id: z.ZodString;
4507
+ type: z.ZodString;
4508
+ coordinates: z.ZodObject<{
4509
+ x: z.ZodNumber;
4510
+ y: z.ZodNumber;
4511
+ }, "strip", z.ZodTypeAny, {
4512
+ x: number;
4513
+ y: number;
4514
+ }, {
4515
+ x: number;
4516
+ y: number;
4517
+ }>;
4518
+ }, z.ZodTypeAny, "passthrough">>
4220
4519
  ]>, "many">;
4221
4520
  start: z.ZodObject<{
4222
4521
  next_node: z.ZodString;
@@ -4486,7 +4785,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
4486
4785
  };
4487
4786
  required?: boolean | undefined;
4488
4787
  sensitive?: boolean | undefined;
4489
- }>
4788
+ }>,
4789
+ z.ZodObject<{
4790
+ id: z.ZodString;
4791
+ category: z.ZodString;
4792
+ type: z.ZodString;
4793
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4794
+ id: z.ZodString;
4795
+ category: z.ZodString;
4796
+ type: z.ZodString;
4797
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4798
+ id: z.ZodString;
4799
+ category: z.ZodString;
4800
+ type: z.ZodString;
4801
+ }, z.ZodTypeAny, "passthrough">>
4490
4802
  ]>, "many">;
4491
4803
  next_node: z.ZodString;
4492
4804
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4646,7 +4958,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
4646
4958
  };
4647
4959
  required?: boolean | undefined;
4648
4960
  sensitive?: boolean | undefined;
4649
- }>
4961
+ }>,
4962
+ z.ZodObject<{
4963
+ id: z.ZodString;
4964
+ category: z.ZodString;
4965
+ type: z.ZodString;
4966
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4967
+ id: z.ZodString;
4968
+ category: z.ZodString;
4969
+ type: z.ZodString;
4970
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4971
+ id: z.ZodString;
4972
+ category: z.ZodString;
4973
+ type: z.ZodString;
4974
+ }, z.ZodTypeAny, "passthrough">>
4650
4975
  ]>, "many">;
4651
4976
  next_node: z.ZodString;
4652
4977
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4806,7 +5131,20 @@ export declare const auth0FlowSchema: z.ZodObject<{
4806
5131
  };
4807
5132
  required?: boolean | undefined;
4808
5133
  sensitive?: boolean | undefined;
4809
- }>
5134
+ }>,
5135
+ z.ZodObject<{
5136
+ id: z.ZodString;
5137
+ category: z.ZodString;
5138
+ type: z.ZodString;
5139
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5140
+ id: z.ZodString;
5141
+ category: z.ZodString;
5142
+ type: z.ZodString;
5143
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5144
+ id: z.ZodString;
5145
+ category: z.ZodString;
5146
+ type: z.ZodString;
5147
+ }, z.ZodTypeAny, "passthrough">>
4810
5148
  ]>, "many">;
4811
5149
  next_node: z.ZodString;
4812
5150
  }, z.ZodTypeAny, "passthrough">>;
@@ -4855,7 +5193,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
4855
5193
  };
4856
5194
  required?: boolean | undefined;
4857
5195
  sensitive?: boolean | undefined;
4858
- })[];
5196
+ } | z.objectOutputType<{
5197
+ id: z.ZodString;
5198
+ category: z.ZodString;
5199
+ type: z.ZodString;
5200
+ }, z.ZodTypeAny, "passthrough">)[];
4859
5201
  next_node: string;
4860
5202
  } & {
4861
5203
  [k: string]: unknown;
@@ -4910,7 +5252,11 @@ export declare const auth0FlowSchema: z.ZodObject<{
4910
5252
  };
4911
5253
  required?: boolean | undefined;
4912
5254
  sensitive?: boolean | undefined;
4913
- })[];
5255
+ } | z.objectInputType<{
5256
+ id: z.ZodString;
5257
+ category: z.ZodString;
5258
+ type: z.ZodString;
5259
+ }, z.ZodTypeAny, "passthrough">)[];
4914
5260
  next_node: string;
4915
5261
  } & {
4916
5262
  [k: string]: unknown;
@@ -4966,7 +5312,47 @@ export declare const auth0FlowSchema: z.ZodObject<{
4966
5312
  x: number;
4967
5313
  y: number;
4968
5314
  };
4969
- }>
5315
+ }>,
5316
+ z.ZodObject<{
5317
+ id: z.ZodString;
5318
+ type: z.ZodString;
5319
+ coordinates: z.ZodObject<{
5320
+ x: z.ZodNumber;
5321
+ y: z.ZodNumber;
5322
+ }, "strip", z.ZodTypeAny, {
5323
+ x: number;
5324
+ y: number;
5325
+ }, {
5326
+ x: number;
5327
+ y: number;
5328
+ }>;
5329
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5330
+ id: z.ZodString;
5331
+ type: z.ZodString;
5332
+ coordinates: z.ZodObject<{
5333
+ x: z.ZodNumber;
5334
+ y: z.ZodNumber;
5335
+ }, "strip", z.ZodTypeAny, {
5336
+ x: number;
5337
+ y: number;
5338
+ }, {
5339
+ x: number;
5340
+ y: number;
5341
+ }>;
5342
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5343
+ id: z.ZodString;
5344
+ type: z.ZodString;
5345
+ coordinates: z.ZodObject<{
5346
+ x: z.ZodNumber;
5347
+ y: z.ZodNumber;
5348
+ }, "strip", z.ZodTypeAny, {
5349
+ x: number;
5350
+ y: number;
5351
+ }, {
5352
+ x: number;
5353
+ y: number;
5354
+ }>;
5355
+ }, z.ZodTypeAny, "passthrough">>
4970
5356
  ]>, "many">;
4971
5357
  start: z.ZodObject<{
4972
5358
  next_node: z.ZodString;
@@ -5238,7 +5624,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5238
5624
  };
5239
5625
  required?: boolean | undefined;
5240
5626
  sensitive?: boolean | undefined;
5241
- }>
5627
+ }>,
5628
+ z.ZodObject<{
5629
+ id: z.ZodString;
5630
+ category: z.ZodString;
5631
+ type: z.ZodString;
5632
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5633
+ id: z.ZodString;
5634
+ category: z.ZodString;
5635
+ type: z.ZodString;
5636
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5637
+ id: z.ZodString;
5638
+ category: z.ZodString;
5639
+ type: z.ZodString;
5640
+ }, z.ZodTypeAny, "passthrough">>
5242
5641
  ]>, "many">;
5243
5642
  next_node: z.ZodString;
5244
5643
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -5398,7 +5797,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5398
5797
  };
5399
5798
  required?: boolean | undefined;
5400
5799
  sensitive?: boolean | undefined;
5401
- }>
5800
+ }>,
5801
+ z.ZodObject<{
5802
+ id: z.ZodString;
5803
+ category: z.ZodString;
5804
+ type: z.ZodString;
5805
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5806
+ id: z.ZodString;
5807
+ category: z.ZodString;
5808
+ type: z.ZodString;
5809
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5810
+ id: z.ZodString;
5811
+ category: z.ZodString;
5812
+ type: z.ZodString;
5813
+ }, z.ZodTypeAny, "passthrough">>
5402
5814
  ]>, "many">;
5403
5815
  next_node: z.ZodString;
5404
5816
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -5558,7 +5970,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5558
5970
  };
5559
5971
  required?: boolean | undefined;
5560
5972
  sensitive?: boolean | undefined;
5561
- }>
5973
+ }>,
5974
+ z.ZodObject<{
5975
+ id: z.ZodString;
5976
+ category: z.ZodString;
5977
+ type: z.ZodString;
5978
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5979
+ id: z.ZodString;
5980
+ category: z.ZodString;
5981
+ type: z.ZodString;
5982
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5983
+ id: z.ZodString;
5984
+ category: z.ZodString;
5985
+ type: z.ZodString;
5986
+ }, z.ZodTypeAny, "passthrough">>
5562
5987
  ]>, "many">;
5563
5988
  next_node: z.ZodString;
5564
5989
  }, z.ZodTypeAny, "passthrough">>;
@@ -5607,7 +6032,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5607
6032
  };
5608
6033
  required?: boolean | undefined;
5609
6034
  sensitive?: boolean | undefined;
5610
- })[];
6035
+ } | z.objectOutputType<{
6036
+ id: z.ZodString;
6037
+ category: z.ZodString;
6038
+ type: z.ZodString;
6039
+ }, z.ZodTypeAny, "passthrough">)[];
5611
6040
  next_node: string;
5612
6041
  } & {
5613
6042
  [k: string]: unknown;
@@ -5662,7 +6091,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5662
6091
  };
5663
6092
  required?: boolean | undefined;
5664
6093
  sensitive?: boolean | undefined;
5665
- })[];
6094
+ } | z.objectInputType<{
6095
+ id: z.ZodString;
6096
+ category: z.ZodString;
6097
+ type: z.ZodString;
6098
+ }, z.ZodTypeAny, "passthrough">)[];
5666
6099
  next_node: string;
5667
6100
  } & {
5668
6101
  [k: string]: unknown;
@@ -5718,7 +6151,47 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5718
6151
  x: number;
5719
6152
  y: number;
5720
6153
  };
5721
- }>
6154
+ }>,
6155
+ z.ZodObject<{
6156
+ id: z.ZodString;
6157
+ type: z.ZodString;
6158
+ coordinates: z.ZodObject<{
6159
+ x: z.ZodNumber;
6160
+ y: z.ZodNumber;
6161
+ }, "strip", z.ZodTypeAny, {
6162
+ x: number;
6163
+ y: number;
6164
+ }, {
6165
+ x: number;
6166
+ y: number;
6167
+ }>;
6168
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6169
+ id: z.ZodString;
6170
+ type: z.ZodString;
6171
+ coordinates: z.ZodObject<{
6172
+ x: z.ZodNumber;
6173
+ y: z.ZodNumber;
6174
+ }, "strip", z.ZodTypeAny, {
6175
+ x: number;
6176
+ y: number;
6177
+ }, {
6178
+ x: number;
6179
+ y: number;
6180
+ }>;
6181
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6182
+ id: z.ZodString;
6183
+ type: z.ZodString;
6184
+ coordinates: z.ZodObject<{
6185
+ x: z.ZodNumber;
6186
+ y: z.ZodNumber;
6187
+ }, "strip", z.ZodTypeAny, {
6188
+ x: number;
6189
+ y: number;
6190
+ }, {
6191
+ x: number;
6192
+ y: number;
6193
+ }>;
6194
+ }, z.ZodTypeAny, "passthrough">>
5722
6195
  ]>, "many">;
5723
6196
  start: z.ZodObject<{
5724
6197
  next_node: z.ZodString;
@@ -5988,7 +6461,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
5988
6461
  };
5989
6462
  required?: boolean | undefined;
5990
6463
  sensitive?: boolean | undefined;
5991
- }>
6464
+ }>,
6465
+ z.ZodObject<{
6466
+ id: z.ZodString;
6467
+ category: z.ZodString;
6468
+ type: z.ZodString;
6469
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6470
+ id: z.ZodString;
6471
+ category: z.ZodString;
6472
+ type: z.ZodString;
6473
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6474
+ id: z.ZodString;
6475
+ category: z.ZodString;
6476
+ type: z.ZodString;
6477
+ }, z.ZodTypeAny, "passthrough">>
5992
6478
  ]>, "many">;
5993
6479
  next_node: z.ZodString;
5994
6480
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -6148,7 +6634,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6148
6634
  };
6149
6635
  required?: boolean | undefined;
6150
6636
  sensitive?: boolean | undefined;
6151
- }>
6637
+ }>,
6638
+ z.ZodObject<{
6639
+ id: z.ZodString;
6640
+ category: z.ZodString;
6641
+ type: z.ZodString;
6642
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6643
+ id: z.ZodString;
6644
+ category: z.ZodString;
6645
+ type: z.ZodString;
6646
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6647
+ id: z.ZodString;
6648
+ category: z.ZodString;
6649
+ type: z.ZodString;
6650
+ }, z.ZodTypeAny, "passthrough">>
6152
6651
  ]>, "many">;
6153
6652
  next_node: z.ZodString;
6154
6653
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -6308,7 +6807,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6308
6807
  };
6309
6808
  required?: boolean | undefined;
6310
6809
  sensitive?: boolean | undefined;
6311
- }>
6810
+ }>,
6811
+ z.ZodObject<{
6812
+ id: z.ZodString;
6813
+ category: z.ZodString;
6814
+ type: z.ZodString;
6815
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6816
+ id: z.ZodString;
6817
+ category: z.ZodString;
6818
+ type: z.ZodString;
6819
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6820
+ id: z.ZodString;
6821
+ category: z.ZodString;
6822
+ type: z.ZodString;
6823
+ }, z.ZodTypeAny, "passthrough">>
6312
6824
  ]>, "many">;
6313
6825
  next_node: z.ZodString;
6314
6826
  }, z.ZodTypeAny, "passthrough">>;
@@ -6357,7 +6869,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6357
6869
  };
6358
6870
  required?: boolean | undefined;
6359
6871
  sensitive?: boolean | undefined;
6360
- })[];
6872
+ } | z.objectOutputType<{
6873
+ id: z.ZodString;
6874
+ category: z.ZodString;
6875
+ type: z.ZodString;
6876
+ }, z.ZodTypeAny, "passthrough">)[];
6361
6877
  next_node: string;
6362
6878
  } & {
6363
6879
  [k: string]: unknown;
@@ -6412,7 +6928,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6412
6928
  };
6413
6929
  required?: boolean | undefined;
6414
6930
  sensitive?: boolean | undefined;
6415
- })[];
6931
+ } | z.objectInputType<{
6932
+ id: z.ZodString;
6933
+ category: z.ZodString;
6934
+ type: z.ZodString;
6935
+ }, z.ZodTypeAny, "passthrough">)[];
6416
6936
  next_node: string;
6417
6937
  } & {
6418
6938
  [k: string]: unknown;
@@ -6468,7 +6988,47 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6468
6988
  x: number;
6469
6989
  y: number;
6470
6990
  };
6471
- }>
6991
+ }>,
6992
+ z.ZodObject<{
6993
+ id: z.ZodString;
6994
+ type: z.ZodString;
6995
+ coordinates: z.ZodObject<{
6996
+ x: z.ZodNumber;
6997
+ y: z.ZodNumber;
6998
+ }, "strip", z.ZodTypeAny, {
6999
+ x: number;
7000
+ y: number;
7001
+ }, {
7002
+ x: number;
7003
+ y: number;
7004
+ }>;
7005
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7006
+ id: z.ZodString;
7007
+ type: z.ZodString;
7008
+ coordinates: z.ZodObject<{
7009
+ x: z.ZodNumber;
7010
+ y: z.ZodNumber;
7011
+ }, "strip", z.ZodTypeAny, {
7012
+ x: number;
7013
+ y: number;
7014
+ }, {
7015
+ x: number;
7016
+ y: number;
7017
+ }>;
7018
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7019
+ id: z.ZodString;
7020
+ type: z.ZodString;
7021
+ coordinates: z.ZodObject<{
7022
+ x: z.ZodNumber;
7023
+ y: z.ZodNumber;
7024
+ }, "strip", z.ZodTypeAny, {
7025
+ x: number;
7026
+ y: number;
7027
+ }, {
7028
+ x: number;
7029
+ y: number;
7030
+ }>;
7031
+ }, z.ZodTypeAny, "passthrough">>
6472
7032
  ]>, "many">;
6473
7033
  start: z.ZodObject<{
6474
7034
  next_node: z.ZodString;
@@ -6738,7 +7298,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6738
7298
  };
6739
7299
  required?: boolean | undefined;
6740
7300
  sensitive?: boolean | undefined;
6741
- }>
7301
+ }>,
7302
+ z.ZodObject<{
7303
+ id: z.ZodString;
7304
+ category: z.ZodString;
7305
+ type: z.ZodString;
7306
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7307
+ id: z.ZodString;
7308
+ category: z.ZodString;
7309
+ type: z.ZodString;
7310
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7311
+ id: z.ZodString;
7312
+ category: z.ZodString;
7313
+ type: z.ZodString;
7314
+ }, z.ZodTypeAny, "passthrough">>
6742
7315
  ]>, "many">;
6743
7316
  next_node: z.ZodString;
6744
7317
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -6898,10 +7471,23 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
6898
7471
  };
6899
7472
  required?: boolean | undefined;
6900
7473
  sensitive?: boolean | undefined;
6901
- }>
6902
- ]>, "many">;
6903
- next_node: z.ZodString;
6904
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7474
+ }>,
7475
+ z.ZodObject<{
7476
+ id: z.ZodString;
7477
+ category: z.ZodString;
7478
+ type: z.ZodString;
7479
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7480
+ id: z.ZodString;
7481
+ category: z.ZodString;
7482
+ type: z.ZodString;
7483
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7484
+ id: z.ZodString;
7485
+ category: z.ZodString;
7486
+ type: z.ZodString;
7487
+ }, z.ZodTypeAny, "passthrough">>
7488
+ ]>, "many">;
7489
+ next_node: z.ZodString;
7490
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6905
7491
  components: z.ZodArray<z.ZodUnion<[
6906
7492
  z.ZodObject<{
6907
7493
  id: z.ZodString;
@@ -7058,7 +7644,20 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7058
7644
  };
7059
7645
  required?: boolean | undefined;
7060
7646
  sensitive?: boolean | undefined;
7061
- }>
7647
+ }>,
7648
+ z.ZodObject<{
7649
+ id: z.ZodString;
7650
+ category: z.ZodString;
7651
+ type: z.ZodString;
7652
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7653
+ id: z.ZodString;
7654
+ category: z.ZodString;
7655
+ type: z.ZodString;
7656
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7657
+ id: z.ZodString;
7658
+ category: z.ZodString;
7659
+ type: z.ZodString;
7660
+ }, z.ZodTypeAny, "passthrough">>
7062
7661
  ]>, "many">;
7063
7662
  next_node: z.ZodString;
7064
7663
  }, z.ZodTypeAny, "passthrough">>;
@@ -7107,7 +7706,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7107
7706
  };
7108
7707
  required?: boolean | undefined;
7109
7708
  sensitive?: boolean | undefined;
7110
- })[];
7709
+ } | z.objectOutputType<{
7710
+ id: z.ZodString;
7711
+ category: z.ZodString;
7712
+ type: z.ZodString;
7713
+ }, z.ZodTypeAny, "passthrough">)[];
7111
7714
  next_node: string;
7112
7715
  } & {
7113
7716
  [k: string]: unknown;
@@ -7162,7 +7765,11 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7162
7765
  };
7163
7766
  required?: boolean | undefined;
7164
7767
  sensitive?: boolean | undefined;
7165
- })[];
7768
+ } | z.objectInputType<{
7769
+ id: z.ZodString;
7770
+ category: z.ZodString;
7771
+ type: z.ZodString;
7772
+ }, z.ZodTypeAny, "passthrough">)[];
7166
7773
  next_node: string;
7167
7774
  } & {
7168
7775
  [k: string]: unknown;
@@ -7218,7 +7825,47 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7218
7825
  x: number;
7219
7826
  y: number;
7220
7827
  };
7221
- }>
7828
+ }>,
7829
+ z.ZodObject<{
7830
+ id: z.ZodString;
7831
+ type: z.ZodString;
7832
+ coordinates: z.ZodObject<{
7833
+ x: z.ZodNumber;
7834
+ y: z.ZodNumber;
7835
+ }, "strip", z.ZodTypeAny, {
7836
+ x: number;
7837
+ y: number;
7838
+ }, {
7839
+ x: number;
7840
+ y: number;
7841
+ }>;
7842
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7843
+ id: z.ZodString;
7844
+ type: z.ZodString;
7845
+ coordinates: z.ZodObject<{
7846
+ x: z.ZodNumber;
7847
+ y: z.ZodNumber;
7848
+ }, "strip", z.ZodTypeAny, {
7849
+ x: number;
7850
+ y: number;
7851
+ }, {
7852
+ x: number;
7853
+ y: number;
7854
+ }>;
7855
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7856
+ id: z.ZodString;
7857
+ type: z.ZodString;
7858
+ coordinates: z.ZodObject<{
7859
+ x: z.ZodNumber;
7860
+ y: z.ZodNumber;
7861
+ }, "strip", z.ZodTypeAny, {
7862
+ x: number;
7863
+ y: number;
7864
+ }, {
7865
+ x: number;
7866
+ y: number;
7867
+ }>;
7868
+ }, z.ZodTypeAny, "passthrough">>
7222
7869
  ]>, "many">;
7223
7870
  start: z.ZodObject<{
7224
7871
  next_node: z.ZodString;
@@ -7307,7 +7954,22 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
7307
7954
  sdk_src: z.ZodOptional<z.ZodString>;
7308
7955
  }, z.ZodTypeAny, "passthrough">>;
7309
7956
  }, "created_at" | "updated_at" | "id">, z.ZodTypeAny, "passthrough">>;
7310
- export type Auth0FlowInsert = z.infer<typeof auth0FlowInsertSchema>;
7957
+ export interface Auth0FlowInsert {
7958
+ name: string;
7959
+ languages: {
7960
+ primary: string;
7961
+ [key: string]: any;
7962
+ };
7963
+ nodes: Node$1[];
7964
+ start: Start;
7965
+ ending: Ending;
7966
+ links?: {
7967
+ sdkSrc?: string;
7968
+ sdk_src?: string;
7969
+ [key: string]: any;
7970
+ };
7971
+ [key: string]: any;
7972
+ }
7311
7973
  export declare enum AuthorizationResponseType {
7312
7974
  TOKEN = "token",
7313
7975
  TOKEN_ID_TOKEN = "token id_token",
@@ -8498,204 +9160,6 @@ export declare const customDomainWithTenantIdSchema: z.ZodObject<{
8498
9160
  } | undefined;
8499
9161
  }>;
8500
9162
  export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
8501
- /**
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
8579
- */
8580
- export declare const formFieldSchema: z.ZodObject<{
8581
- id: z.ZodString;
8582
- name: z.ZodString;
8583
- type: z.ZodNativeEnum<typeof FormFieldType>;
8584
- label: z.ZodString;
8585
- placeholder: z.ZodOptional<z.ZodString>;
8586
- required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8587
- 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
- order: z.ZodOptional<z.ZodNumber>;
8637
- visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8638
- customizations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8639
- }, "strip", z.ZodTypeAny, {
8640
- type: FormFieldType;
8641
- readOnly: boolean;
8642
- required: boolean;
8643
- name: string;
8644
- id: string;
8645
- disabled: boolean;
8646
- label: string;
8647
- 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;
8666
- order?: number | undefined;
8667
- customizations?: Record<string, any> | undefined;
8668
- }, {
8669
- type: FormFieldType;
8670
- name: string;
8671
- id: string;
8672
- 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
- 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;
8694
- order?: number | undefined;
8695
- visible?: boolean | undefined;
8696
- customizations?: Record<string, any> | undefined;
8697
- }>;
8698
- export type FormField = z.infer<typeof formFieldSchema>;
8699
9163
  /**
8700
9164
  * Schema for form controls (like submit buttons)
8701
9165
  */
@@ -8714,610 +9178,987 @@ export declare const formControlSchema: z.ZodObject<{
8714
9178
  disabled: boolean;
8715
9179
  label: string;
8716
9180
  visible: boolean;
9181
+ className?: string | undefined;
8717
9182
  order?: number | undefined;
8718
9183
  customizations?: Record<string, any> | undefined;
8719
- className?: string | undefined;
8720
9184
  }, {
8721
9185
  type: "submit";
8722
9186
  id: string;
8723
9187
  label: string;
8724
9188
  disabled?: boolean | undefined;
9189
+ className?: string | undefined;
8725
9190
  order?: number | undefined;
8726
9191
  visible?: boolean | undefined;
8727
9192
  customizations?: Record<string, any> | undefined;
8728
- className?: string | undefined;
8729
9193
  }>;
8730
9194
  export type FormControl = z.infer<typeof formControlSchema>;
8731
9195
  /**
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
- }
8744
- /**
8745
- * Schema for forms
9196
+ * Schema for forms (flow-based, matches new JSON structure)
8746
9197
  */
8747
9198
  export declare const formInsertSchema: z.ZodObject<{
8748
9199
  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>;
8774
- }, "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;
8783
- }, {
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;
8795
- value: z.ZodString;
8796
- checked: z.ZodOptional<z.ZodBoolean>;
8797
- }, "strip", z.ZodTypeAny, {
8798
- value: string;
8799
- label: string;
8800
- checked?: boolean | undefined;
8801
- }, {
8802
- value: string;
8803
- label: string;
8804
- checked?: boolean | undefined;
8805
- }>, "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>>;
8810
- }, "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?: {
8820
- 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;
8836
- }[] | undefined;
8837
- order?: number | undefined;
8838
- customizations?: Record<string, any> | undefined;
8839
- }, {
8840
- type: FormFieldType;
8841
- name: string;
8842
- id: string;
8843
- label: string;
8844
- options?: {
8845
- 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;
8864
- }[] | 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>>;
9200
+ messages: z.ZodOptional<z.ZodObject<{
9201
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9202
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8878
9203
  }, "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;
9204
+ custom?: Record<string, any> | undefined;
9205
+ errors?: Record<string, any> | undefined;
8887
9206
  }, {
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>;
9207
+ custom?: Record<string, any> | undefined;
9208
+ errors?: Record<string, any> | undefined;
9209
+ }>>;
9210
+ languages: z.ZodOptional<z.ZodObject<{
9211
+ primary: z.ZodOptional<z.ZodString>;
9212
+ default: z.ZodOptional<z.ZodString>;
8908
9213
  }, "strip", z.ZodTypeAny, {
8909
- columns: number;
8910
- template?: string | undefined;
9214
+ default?: string | undefined;
9215
+ primary?: string | undefined;
8911
9216
  }, {
8912
- columns?: number | undefined;
8913
- template?: string | undefined;
9217
+ default?: string | undefined;
9218
+ primary?: string | undefined;
8914
9219
  }>>;
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>;
9060
- }, "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;
9069
- }, {
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>;
9220
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9221
+ nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
9222
+ z.ZodObject<{
9223
+ id: z.ZodString;
9224
+ type: z.ZodLiteral<"FLOW">;
9225
+ coordinates: z.ZodObject<{
9226
+ x: z.ZodNumber;
9227
+ y: z.ZodNumber;
9228
+ }, "strip", z.ZodTypeAny, {
9229
+ x: number;
9230
+ y: number;
9231
+ }, {
9232
+ x: number;
9233
+ y: number;
9234
+ }>;
9235
+ alias: z.ZodString;
9236
+ config: z.ZodObject<{
9237
+ flow_id: z.ZodString;
9238
+ next_node: z.ZodArray<z.ZodString, "many">;
9239
+ }, "strip", z.ZodTypeAny, {
9240
+ next_node: string[];
9241
+ flow_id: string;
9242
+ }, {
9243
+ next_node: string[];
9244
+ flow_id: string;
9245
+ }>;
9083
9246
  }, "strip", z.ZodTypeAny, {
9084
- value: string;
9085
- label: string;
9086
- checked?: boolean | undefined;
9247
+ type: "FLOW";
9248
+ id: string;
9249
+ config: {
9250
+ next_node: string[];
9251
+ flow_id: string;
9252
+ };
9253
+ coordinates: {
9254
+ x: number;
9255
+ y: number;
9256
+ };
9257
+ alias: string;
9087
9258
  }, {
9088
- value: string;
9089
- label: string;
9090
- checked?: boolean | undefined;
9259
+ type: "FLOW";
9260
+ id: string;
9261
+ config: {
9262
+ next_node: string[];
9263
+ flow_id: string;
9264
+ };
9265
+ coordinates: {
9266
+ x: number;
9267
+ y: number;
9268
+ };
9269
+ alias: string;
9270
+ }>,
9271
+ z.ZodObject<{
9272
+ id: z.ZodString;
9273
+ type: z.ZodLiteral<"ROUTER">;
9274
+ coordinates: z.ZodObject<{
9275
+ x: z.ZodNumber;
9276
+ y: z.ZodNumber;
9277
+ }, "strip", z.ZodTypeAny, {
9278
+ x: number;
9279
+ y: number;
9280
+ }, {
9281
+ x: number;
9282
+ y: number;
9283
+ }>;
9284
+ alias: z.ZodString;
9285
+ config: z.ZodObject<{
9286
+ rules: z.ZodArray<z.ZodObject<{
9287
+ id: z.ZodString;
9288
+ alias: z.ZodString;
9289
+ condition: z.ZodAny;
9290
+ next_node: z.ZodArray<z.ZodString, "many">;
9291
+ }, "strip", z.ZodTypeAny, {
9292
+ id: string;
9293
+ alias: string;
9294
+ next_node: string[];
9295
+ condition?: any;
9296
+ }, {
9297
+ id: string;
9298
+ alias: string;
9299
+ next_node: string[];
9300
+ condition?: any;
9301
+ }>, "many">;
9302
+ fallback: z.ZodArray<z.ZodString, "many">;
9303
+ }, "strip", z.ZodTypeAny, {
9304
+ rules: {
9305
+ id: string;
9306
+ alias: string;
9307
+ next_node: string[];
9308
+ condition?: any;
9309
+ }[];
9310
+ fallback: string[];
9311
+ }, {
9312
+ rules: {
9313
+ id: string;
9314
+ alias: string;
9315
+ next_node: string[];
9316
+ condition?: any;
9317
+ }[];
9318
+ fallback: string[];
9319
+ }>;
9320
+ }, "strip", z.ZodTypeAny, {
9321
+ type: "ROUTER";
9322
+ id: string;
9323
+ config: {
9324
+ rules: {
9325
+ id: string;
9326
+ alias: string;
9327
+ next_node: string[];
9328
+ condition?: any;
9329
+ }[];
9330
+ fallback: string[];
9331
+ };
9332
+ coordinates: {
9333
+ x: number;
9334
+ y: number;
9335
+ };
9336
+ alias: string;
9337
+ }, {
9338
+ type: "ROUTER";
9339
+ id: string;
9340
+ config: {
9341
+ rules: {
9342
+ id: string;
9343
+ alias: string;
9344
+ next_node: string[];
9345
+ condition?: any;
9346
+ }[];
9347
+ fallback: string[];
9348
+ };
9349
+ coordinates: {
9350
+ x: number;
9351
+ y: number;
9352
+ };
9353
+ alias: string;
9354
+ }>,
9355
+ z.ZodObject<{
9356
+ id: z.ZodString;
9357
+ type: z.ZodLiteral<"STEP">;
9358
+ coordinates: z.ZodObject<{
9359
+ x: z.ZodNumber;
9360
+ y: z.ZodNumber;
9361
+ }, "strip", z.ZodTypeAny, {
9362
+ x: number;
9363
+ y: number;
9364
+ }, {
9365
+ x: number;
9366
+ y: number;
9367
+ }>;
9368
+ alias: z.ZodString;
9369
+ config: z.ZodObject<{
9370
+ components: z.ZodArray<z.ZodAny, "many">;
9371
+ next_node: z.ZodArray<z.ZodString, "many">;
9372
+ }, "strip", z.ZodTypeAny, {
9373
+ components: any[];
9374
+ next_node: string[];
9375
+ }, {
9376
+ components: any[];
9377
+ next_node: string[];
9378
+ }>;
9379
+ }, "strip", z.ZodTypeAny, {
9380
+ type: "STEP";
9381
+ id: string;
9382
+ config: {
9383
+ components: any[];
9384
+ next_node: string[];
9385
+ };
9386
+ coordinates: {
9387
+ x: number;
9388
+ y: number;
9389
+ };
9390
+ alias: string;
9391
+ }, {
9392
+ type: "STEP";
9393
+ id: string;
9394
+ config: {
9395
+ components: any[];
9396
+ next_node: string[];
9397
+ };
9398
+ coordinates: {
9399
+ x: number;
9400
+ y: number;
9401
+ };
9402
+ alias: string;
9403
+ }>
9404
+ ]>, "many">>;
9405
+ start: z.ZodOptional<z.ZodObject<{
9406
+ hidden_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
9407
+ key: z.ZodString;
9408
+ value: z.ZodString;
9409
+ }, "strip", z.ZodTypeAny, {
9410
+ value: string;
9411
+ key: string;
9412
+ }, {
9413
+ value: string;
9414
+ key: string;
9091
9415
  }>, "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>>;
9416
+ next_node: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9417
+ coordinates: z.ZodOptional<z.ZodObject<{
9418
+ x: z.ZodNumber;
9419
+ y: z.ZodNumber;
9420
+ }, "strip", z.ZodTypeAny, {
9421
+ x: number;
9422
+ y: number;
9423
+ }, {
9424
+ x: number;
9425
+ y: number;
9426
+ }>>;
9096
9427
  }, "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?: {
9428
+ coordinates?: {
9429
+ x: number;
9430
+ y: number;
9431
+ } | undefined;
9432
+ next_node?: string[] | undefined;
9433
+ hidden_fields?: {
9106
9434
  value: string;
9107
- label: string;
9108
- checked?: boolean | undefined;
9435
+ key: string;
9109
9436
  }[] | 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;
9437
+ }, {
9438
+ coordinates?: {
9439
+ x: number;
9440
+ y: number;
9441
+ } | undefined;
9442
+ next_node?: string[] | undefined;
9443
+ hidden_fields?: {
9444
+ value: string;
9445
+ key: string;
9122
9446
  }[] | undefined;
9123
- order?: number | undefined;
9124
- customizations?: Record<string, any> | undefined;
9447
+ }>>;
9448
+ ending: z.ZodOptional<z.ZodObject<{
9449
+ redirection: z.ZodOptional<z.ZodObject<{
9450
+ delay: z.ZodOptional<z.ZodNumber>;
9451
+ target: z.ZodOptional<z.ZodString>;
9452
+ }, "strip", z.ZodTypeAny, {
9453
+ delay?: number | undefined;
9454
+ target?: string | undefined;
9455
+ }, {
9456
+ delay?: number | undefined;
9457
+ target?: string | undefined;
9458
+ }>>;
9459
+ after_submit: z.ZodOptional<z.ZodObject<{
9460
+ flow_id: z.ZodOptional<z.ZodString>;
9461
+ }, "strip", z.ZodTypeAny, {
9462
+ flow_id?: string | undefined;
9463
+ }, {
9464
+ flow_id?: string | undefined;
9465
+ }>>;
9466
+ coordinates: z.ZodOptional<z.ZodObject<{
9467
+ x: z.ZodNumber;
9468
+ y: z.ZodNumber;
9469
+ }, "strip", z.ZodTypeAny, {
9470
+ x: number;
9471
+ y: number;
9472
+ }, {
9473
+ x: number;
9474
+ y: number;
9475
+ }>>;
9476
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
9477
+ }, "strip", z.ZodTypeAny, {
9478
+ coordinates?: {
9479
+ x: number;
9480
+ y: number;
9481
+ } | undefined;
9482
+ resume_flow?: boolean | undefined;
9483
+ redirection?: {
9484
+ delay?: number | undefined;
9485
+ target?: string | undefined;
9486
+ } | undefined;
9487
+ after_submit?: {
9488
+ flow_id?: string | undefined;
9489
+ } | undefined;
9125
9490
  }, {
9126
- type: FormFieldType;
9127
- name: string;
9491
+ coordinates?: {
9492
+ x: number;
9493
+ y: number;
9494
+ } | undefined;
9495
+ resume_flow?: boolean | undefined;
9496
+ redirection?: {
9497
+ delay?: number | undefined;
9498
+ target?: string | undefined;
9499
+ } | undefined;
9500
+ after_submit?: {
9501
+ flow_id?: string | undefined;
9502
+ } | undefined;
9503
+ }>>;
9504
+ style: z.ZodOptional<z.ZodObject<{
9505
+ css: z.ZodOptional<z.ZodString>;
9506
+ }, "strip", z.ZodTypeAny, {
9507
+ css?: string | undefined;
9508
+ }, {
9509
+ css?: string | undefined;
9510
+ }>>;
9511
+ }, "strip", z.ZodTypeAny, {
9512
+ name: string;
9513
+ start?: {
9514
+ coordinates?: {
9515
+ x: number;
9516
+ y: number;
9517
+ } | undefined;
9518
+ next_node?: string[] | undefined;
9519
+ hidden_fields?: {
9520
+ value: string;
9521
+ key: string;
9522
+ }[] | undefined;
9523
+ } | undefined;
9524
+ style?: {
9525
+ css?: string | undefined;
9526
+ } | undefined;
9527
+ languages?: {
9528
+ default?: string | undefined;
9529
+ primary?: string | undefined;
9530
+ } | undefined;
9531
+ nodes?: ({
9532
+ type: "FLOW";
9128
9533
  id: string;
9129
- label: string;
9130
- options?: {
9534
+ config: {
9535
+ next_node: string[];
9536
+ flow_id: string;
9537
+ };
9538
+ coordinates: {
9539
+ x: number;
9540
+ y: number;
9541
+ };
9542
+ alias: string;
9543
+ } | {
9544
+ type: "ROUTER";
9545
+ id: string;
9546
+ config: {
9547
+ rules: {
9548
+ id: string;
9549
+ alias: string;
9550
+ next_node: string[];
9551
+ condition?: any;
9552
+ }[];
9553
+ fallback: string[];
9554
+ };
9555
+ coordinates: {
9556
+ x: number;
9557
+ y: number;
9558
+ };
9559
+ alias: string;
9560
+ } | {
9561
+ type: "STEP";
9562
+ id: string;
9563
+ config: {
9564
+ components: any[];
9565
+ next_node: string[];
9566
+ };
9567
+ coordinates: {
9568
+ x: number;
9569
+ y: number;
9570
+ };
9571
+ alias: string;
9572
+ })[] | undefined;
9573
+ ending?: {
9574
+ coordinates?: {
9575
+ x: number;
9576
+ y: number;
9577
+ } | undefined;
9578
+ resume_flow?: boolean | undefined;
9579
+ redirection?: {
9580
+ delay?: number | undefined;
9581
+ target?: string | undefined;
9582
+ } | undefined;
9583
+ after_submit?: {
9584
+ flow_id?: string | undefined;
9585
+ } | undefined;
9586
+ } | undefined;
9587
+ messages?: {
9588
+ custom?: Record<string, any> | undefined;
9589
+ errors?: Record<string, any> | undefined;
9590
+ } | undefined;
9591
+ translations?: Record<string, any> | undefined;
9592
+ }, {
9593
+ name: string;
9594
+ start?: {
9595
+ coordinates?: {
9596
+ x: number;
9597
+ y: number;
9598
+ } | undefined;
9599
+ next_node?: string[] | undefined;
9600
+ hidden_fields?: {
9131
9601
  value: string;
9132
- label: string;
9133
- checked?: boolean | undefined;
9602
+ key: string;
9134
9603
  }[] | 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;
9604
+ } | undefined;
9605
+ style?: {
9606
+ css?: string | undefined;
9607
+ } | undefined;
9608
+ languages?: {
9609
+ default?: string | undefined;
9610
+ primary?: string | undefined;
9611
+ } | undefined;
9612
+ nodes?: ({
9613
+ type: "FLOW";
9614
+ id: string;
9615
+ config: {
9616
+ next_node: string[];
9617
+ flow_id: string;
9618
+ };
9619
+ coordinates: {
9620
+ x: number;
9621
+ y: number;
9622
+ };
9623
+ alias: string;
9624
+ } | {
9625
+ type: "ROUTER";
9626
+ id: string;
9627
+ config: {
9628
+ rules: {
9629
+ id: string;
9630
+ alias: string;
9631
+ next_node: string[];
9632
+ condition?: any;
9633
+ }[];
9634
+ fallback: string[];
9635
+ };
9636
+ coordinates: {
9637
+ x: number;
9638
+ y: number;
9639
+ };
9640
+ alias: string;
9641
+ } | {
9642
+ type: "STEP";
9643
+ id: string;
9644
+ config: {
9645
+ components: any[];
9646
+ next_node: string[];
9647
+ };
9648
+ coordinates: {
9649
+ x: number;
9650
+ y: number;
9651
+ };
9652
+ alias: string;
9653
+ })[] | undefined;
9654
+ ending?: {
9655
+ coordinates?: {
9656
+ x: number;
9657
+ y: number;
9658
+ } | undefined;
9659
+ resume_flow?: boolean | undefined;
9660
+ redirection?: {
9661
+ delay?: number | undefined;
9662
+ target?: string | undefined;
9663
+ } | undefined;
9664
+ after_submit?: {
9665
+ flow_id?: string | undefined;
9666
+ } | undefined;
9667
+ } | undefined;
9668
+ messages?: {
9669
+ custom?: Record<string, any> | undefined;
9670
+ errors?: Record<string, any> | undefined;
9671
+ } | undefined;
9672
+ translations?: Record<string, any> | undefined;
9673
+ }>;
9674
+ export type FormInsert = z.input<typeof formInsertSchema>;
9675
+ /**
9676
+ * Schema for complete form with base entity properties
9677
+ */
9678
+ export declare const formSchema: z.ZodObject<{
9679
+ id: z.ZodString;
9680
+ name: z.ZodString;
9681
+ messages: z.ZodOptional<z.ZodObject<{
9682
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9683
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9684
+ }, "strip", z.ZodTypeAny, {
9685
+ custom?: Record<string, any> | undefined;
9686
+ errors?: Record<string, any> | undefined;
9687
+ }, {
9688
+ custom?: Record<string, any> | undefined;
9689
+ errors?: Record<string, any> | undefined;
9690
+ }>>;
9691
+ languages: z.ZodOptional<z.ZodObject<{
9692
+ primary: z.ZodOptional<z.ZodString>;
9693
+ default: z.ZodOptional<z.ZodString>;
9694
+ }, "strip", z.ZodTypeAny, {
9695
+ default?: string | undefined;
9696
+ primary?: string | undefined;
9697
+ }, {
9698
+ default?: string | undefined;
9699
+ primary?: string | undefined;
9700
+ }>>;
9701
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9702
+ nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
9703
+ z.ZodObject<{
9704
+ id: z.ZodString;
9705
+ type: z.ZodLiteral<"FLOW">;
9706
+ coordinates: z.ZodObject<{
9707
+ x: z.ZodNumber;
9708
+ y: z.ZodNumber;
9709
+ }, "strip", z.ZodTypeAny, {
9710
+ x: number;
9711
+ y: number;
9712
+ }, {
9713
+ x: number;
9714
+ y: number;
9715
+ }>;
9716
+ alias: z.ZodString;
9717
+ config: z.ZodObject<{
9718
+ flow_id: z.ZodString;
9719
+ next_node: z.ZodArray<z.ZodString, "many">;
9720
+ }, "strip", z.ZodTypeAny, {
9721
+ next_node: string[];
9722
+ flow_id: string;
9723
+ }, {
9724
+ next_node: string[];
9725
+ flow_id: string;
9726
+ }>;
9727
+ }, "strip", z.ZodTypeAny, {
9728
+ type: "FLOW";
9729
+ id: string;
9730
+ config: {
9731
+ next_node: string[];
9732
+ flow_id: string;
9733
+ };
9734
+ coordinates: {
9735
+ x: number;
9736
+ y: number;
9737
+ };
9738
+ alias: string;
9739
+ }, {
9740
+ type: "FLOW";
9741
+ id: string;
9742
+ config: {
9743
+ next_node: string[];
9744
+ flow_id: string;
9745
+ };
9746
+ coordinates: {
9747
+ x: number;
9748
+ y: number;
9749
+ };
9750
+ alias: string;
9751
+ }>,
9752
+ z.ZodObject<{
9753
+ id: z.ZodString;
9754
+ type: z.ZodLiteral<"ROUTER">;
9755
+ coordinates: z.ZodObject<{
9756
+ x: z.ZodNumber;
9757
+ y: z.ZodNumber;
9758
+ }, "strip", z.ZodTypeAny, {
9759
+ x: number;
9760
+ y: number;
9761
+ }, {
9762
+ x: number;
9763
+ y: number;
9764
+ }>;
9765
+ alias: z.ZodString;
9766
+ config: z.ZodObject<{
9767
+ rules: z.ZodArray<z.ZodObject<{
9768
+ id: z.ZodString;
9769
+ alias: z.ZodString;
9770
+ condition: z.ZodAny;
9771
+ next_node: z.ZodArray<z.ZodString, "many">;
9772
+ }, "strip", z.ZodTypeAny, {
9773
+ id: string;
9774
+ alias: string;
9775
+ next_node: string[];
9776
+ condition?: any;
9777
+ }, {
9778
+ id: string;
9779
+ alias: string;
9780
+ next_node: string[];
9781
+ condition?: any;
9782
+ }>, "many">;
9783
+ fallback: z.ZodArray<z.ZodString, "many">;
9784
+ }, "strip", z.ZodTypeAny, {
9785
+ rules: {
9786
+ id: string;
9787
+ alias: string;
9788
+ next_node: string[];
9789
+ condition?: any;
9790
+ }[];
9791
+ fallback: string[];
9792
+ }, {
9793
+ rules: {
9794
+ id: string;
9795
+ alias: string;
9796
+ next_node: string[];
9797
+ condition?: any;
9798
+ }[];
9799
+ fallback: string[];
9800
+ }>;
9801
+ }, "strip", z.ZodTypeAny, {
9802
+ type: "ROUTER";
9803
+ id: string;
9804
+ config: {
9805
+ rules: {
9806
+ id: string;
9807
+ alias: string;
9808
+ next_node: string[];
9809
+ condition?: any;
9810
+ }[];
9811
+ fallback: string[];
9812
+ };
9813
+ coordinates: {
9814
+ x: number;
9815
+ y: number;
9816
+ };
9817
+ alias: string;
9818
+ }, {
9819
+ type: "ROUTER";
9820
+ id: string;
9821
+ config: {
9822
+ rules: {
9823
+ id: string;
9824
+ alias: string;
9825
+ next_node: string[];
9826
+ condition?: any;
9827
+ }[];
9828
+ fallback: string[];
9829
+ };
9830
+ coordinates: {
9831
+ x: number;
9832
+ y: number;
9833
+ };
9834
+ alias: string;
9835
+ }>,
9836
+ z.ZodObject<{
9837
+ id: z.ZodString;
9838
+ type: z.ZodLiteral<"STEP">;
9839
+ coordinates: z.ZodObject<{
9840
+ x: z.ZodNumber;
9841
+ y: z.ZodNumber;
9842
+ }, "strip", z.ZodTypeAny, {
9843
+ x: number;
9844
+ y: number;
9845
+ }, {
9846
+ x: number;
9847
+ y: number;
9848
+ }>;
9849
+ alias: z.ZodString;
9850
+ config: z.ZodObject<{
9851
+ components: z.ZodArray<z.ZodAny, "many">;
9852
+ next_node: z.ZodArray<z.ZodString, "many">;
9853
+ }, "strip", z.ZodTypeAny, {
9854
+ components: any[];
9855
+ next_node: string[];
9856
+ }, {
9857
+ components: any[];
9858
+ next_node: string[];
9859
+ }>;
9860
+ }, "strip", z.ZodTypeAny, {
9861
+ type: "STEP";
9862
+ id: string;
9863
+ config: {
9864
+ components: any[];
9865
+ next_node: string[];
9866
+ };
9867
+ coordinates: {
9868
+ x: number;
9869
+ y: number;
9870
+ };
9871
+ alias: string;
9872
+ }, {
9873
+ type: "STEP";
9874
+ id: string;
9875
+ config: {
9876
+ components: any[];
9877
+ next_node: string[];
9878
+ };
9879
+ coordinates: {
9880
+ x: number;
9881
+ y: number;
9882
+ };
9883
+ alias: string;
9884
+ }>
9885
+ ]>, "many">>;
9886
+ start: z.ZodOptional<z.ZodObject<{
9887
+ hidden_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
9888
+ key: z.ZodString;
9889
+ value: z.ZodString;
9890
+ }, "strip", z.ZodTypeAny, {
9891
+ value: string;
9892
+ key: string;
9893
+ }, {
9894
+ value: string;
9895
+ key: string;
9896
+ }>, "many">>;
9897
+ next_node: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9898
+ coordinates: z.ZodOptional<z.ZodObject<{
9899
+ x: z.ZodNumber;
9900
+ y: z.ZodNumber;
9901
+ }, "strip", z.ZodTypeAny, {
9902
+ x: number;
9903
+ y: number;
9904
+ }, {
9905
+ x: number;
9906
+ y: number;
9907
+ }>>;
9908
+ }, "strip", z.ZodTypeAny, {
9909
+ coordinates?: {
9910
+ x: number;
9911
+ y: number;
9912
+ } | undefined;
9913
+ next_node?: string[] | undefined;
9914
+ hidden_fields?: {
9915
+ value: string;
9916
+ key: string;
9150
9917
  }[] | 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>>;
9918
+ }, {
9919
+ coordinates?: {
9920
+ x: number;
9921
+ y: number;
9922
+ } | undefined;
9923
+ next_node?: string[] | undefined;
9924
+ hidden_fields?: {
9925
+ value: string;
9926
+ key: string;
9927
+ }[] | undefined;
9928
+ }>>;
9929
+ ending: z.ZodOptional<z.ZodObject<{
9930
+ redirection: z.ZodOptional<z.ZodObject<{
9931
+ delay: z.ZodOptional<z.ZodNumber>;
9932
+ target: z.ZodOptional<z.ZodString>;
9933
+ }, "strip", z.ZodTypeAny, {
9934
+ delay?: number | undefined;
9935
+ target?: string | undefined;
9936
+ }, {
9937
+ delay?: number | undefined;
9938
+ target?: string | undefined;
9939
+ }>>;
9940
+ after_submit: z.ZodOptional<z.ZodObject<{
9941
+ flow_id: z.ZodOptional<z.ZodString>;
9942
+ }, "strip", z.ZodTypeAny, {
9943
+ flow_id?: string | undefined;
9944
+ }, {
9945
+ flow_id?: string | undefined;
9946
+ }>>;
9947
+ coordinates: z.ZodOptional<z.ZodObject<{
9948
+ x: z.ZodNumber;
9949
+ y: z.ZodNumber;
9950
+ }, "strip", z.ZodTypeAny, {
9951
+ x: number;
9952
+ y: number;
9953
+ }, {
9954
+ x: number;
9955
+ y: number;
9956
+ }>>;
9957
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
9164
9958
  }, "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;
9959
+ coordinates?: {
9960
+ x: number;
9961
+ y: number;
9962
+ } | undefined;
9963
+ resume_flow?: boolean | undefined;
9964
+ redirection?: {
9965
+ delay?: number | undefined;
9966
+ target?: string | undefined;
9967
+ } | undefined;
9968
+ after_submit?: {
9969
+ flow_id?: string | undefined;
9970
+ } | undefined;
9173
9971
  }, {
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>;
9972
+ coordinates?: {
9973
+ x: number;
9974
+ y: number;
9975
+ } | undefined;
9976
+ resume_flow?: boolean | undefined;
9977
+ redirection?: {
9978
+ delay?: number | undefined;
9979
+ target?: string | undefined;
9980
+ } | undefined;
9981
+ after_submit?: {
9982
+ flow_id?: string | undefined;
9983
+ } | undefined;
9984
+ }>>;
9985
+ style: z.ZodOptional<z.ZodObject<{
9986
+ css: z.ZodOptional<z.ZodString>;
9194
9987
  }, "strip", z.ZodTypeAny, {
9195
- columns: number;
9196
- template?: string | undefined;
9988
+ css?: string | undefined;
9197
9989
  }, {
9198
- columns?: number | undefined;
9199
- template?: string | undefined;
9990
+ css?: string | undefined;
9200
9991
  }>>;
9201
- css: z.ZodOptional<z.ZodString>;
9202
- javascript: z.ZodOptional<z.ZodString>;
9203
9992
  created_at: z.ZodString;
9204
9993
  updated_at: z.ZodString;
9205
9994
  }, "strip", z.ZodTypeAny, {
9206
- type: FormType;
9207
9995
  created_at: string;
9208
9996
  updated_at: string;
9209
9997
  name: string;
9210
9998
  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?: {
9999
+ start?: {
10000
+ coordinates?: {
10001
+ x: number;
10002
+ y: number;
10003
+ } | undefined;
10004
+ next_node?: string[] | undefined;
10005
+ hidden_fields?: {
9221
10006
  value: string;
9222
- label: string;
9223
- checked?: boolean | undefined;
10007
+ key: string;
9224
10008
  }[] | 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;
9237
- }[] | 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";
10009
+ } | undefined;
10010
+ style?: {
10011
+ css?: string | undefined;
10012
+ } | undefined;
10013
+ languages?: {
10014
+ default?: string | undefined;
10015
+ primary?: string | undefined;
10016
+ } | undefined;
10017
+ nodes?: ({
10018
+ type: "FLOW";
9247
10019
  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;
10020
+ config: {
10021
+ next_node: string[];
10022
+ flow_id: string;
10023
+ };
10024
+ coordinates: {
10025
+ x: number;
10026
+ y: number;
10027
+ };
10028
+ alias: string;
10029
+ } | {
10030
+ type: "ROUTER";
10031
+ id: string;
10032
+ config: {
10033
+ rules: {
10034
+ id: string;
10035
+ alias: string;
10036
+ next_node: string[];
10037
+ condition?: any;
10038
+ }[];
10039
+ fallback: string[];
10040
+ };
10041
+ coordinates: {
10042
+ x: number;
10043
+ y: number;
10044
+ };
10045
+ alias: string;
10046
+ } | {
10047
+ type: "STEP";
10048
+ id: string;
10049
+ config: {
10050
+ components: any[];
10051
+ next_node: string[];
10052
+ };
10053
+ coordinates: {
10054
+ x: number;
10055
+ y: number;
10056
+ };
10057
+ alias: string;
10058
+ })[] | undefined;
10059
+ ending?: {
10060
+ coordinates?: {
10061
+ x: number;
10062
+ y: number;
10063
+ } | undefined;
10064
+ resume_flow?: boolean | undefined;
10065
+ redirection?: {
10066
+ delay?: number | undefined;
10067
+ target?: string | undefined;
10068
+ } | undefined;
10069
+ after_submit?: {
10070
+ flow_id?: string | undefined;
10071
+ } | undefined;
10072
+ } | undefined;
10073
+ messages?: {
10074
+ custom?: Record<string, any> | undefined;
10075
+ errors?: Record<string, any> | undefined;
9260
10076
  } | undefined;
9261
- css?: string | undefined;
9262
- javascript?: string | undefined;
10077
+ translations?: Record<string, any> | undefined;
9263
10078
  }, {
9264
- type: FormType;
9265
10079
  created_at: string;
9266
10080
  updated_at: string;
9267
10081
  name: string;
9268
10082
  id: string;
9269
- fields: {
9270
- type: FormFieldType;
9271
- name: string;
9272
- id: string;
9273
- label: string;
9274
- options?: {
10083
+ start?: {
10084
+ coordinates?: {
10085
+ x: number;
10086
+ y: number;
10087
+ } | undefined;
10088
+ next_node?: string[] | undefined;
10089
+ hidden_fields?: {
9275
10090
  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;
10091
+ key: string;
9294
10092
  }[] | 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";
10093
+ } | undefined;
10094
+ style?: {
10095
+ css?: string | undefined;
10096
+ } | undefined;
10097
+ languages?: {
10098
+ default?: string | undefined;
10099
+ primary?: string | undefined;
10100
+ } | undefined;
10101
+ nodes?: ({
10102
+ type: "FLOW";
9304
10103
  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;
10104
+ config: {
10105
+ next_node: string[];
10106
+ flow_id: string;
10107
+ };
10108
+ coordinates: {
10109
+ x: number;
10110
+ y: number;
10111
+ };
10112
+ alias: string;
10113
+ } | {
10114
+ type: "ROUTER";
10115
+ id: string;
10116
+ config: {
10117
+ rules: {
10118
+ id: string;
10119
+ alias: string;
10120
+ next_node: string[];
10121
+ condition?: any;
10122
+ }[];
10123
+ fallback: string[];
10124
+ };
10125
+ coordinates: {
10126
+ x: number;
10127
+ y: number;
10128
+ };
10129
+ alias: string;
10130
+ } | {
10131
+ type: "STEP";
10132
+ id: string;
10133
+ config: {
10134
+ components: any[];
10135
+ next_node: string[];
10136
+ };
10137
+ coordinates: {
10138
+ x: number;
10139
+ y: number;
10140
+ };
10141
+ alias: string;
10142
+ })[] | undefined;
10143
+ ending?: {
10144
+ coordinates?: {
10145
+ x: number;
10146
+ y: number;
10147
+ } | undefined;
10148
+ resume_flow?: boolean | undefined;
10149
+ redirection?: {
10150
+ delay?: number | undefined;
10151
+ target?: string | undefined;
10152
+ } | undefined;
10153
+ after_submit?: {
10154
+ flow_id?: string | undefined;
10155
+ } | undefined;
10156
+ } | undefined;
10157
+ messages?: {
10158
+ custom?: Record<string, any> | undefined;
10159
+ errors?: Record<string, any> | undefined;
9318
10160
  } | undefined;
9319
- css?: string | undefined;
9320
- javascript?: string | undefined;
10161
+ translations?: Record<string, any> | undefined;
9321
10162
  }>;
9322
10163
  export type Form = z.infer<typeof formSchema>;
9323
10164
  export declare const hookInsertSchema: z.ZodObject<{