@authhero/adapter-interfaces 0.62.0 → 0.64.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.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +737 -108
- package/dist/adapter-interfaces.mjs +163 -133
- package/package.json +1 -1
|
@@ -2035,6 +2035,7 @@ export declare const flowNodeSchema: z.ZodObject<{
|
|
|
2035
2035
|
x: number;
|
|
2036
2036
|
y: number;
|
|
2037
2037
|
}>;
|
|
2038
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
2038
2039
|
config: z.ZodObject<{
|
|
2039
2040
|
flow_id: z.ZodString;
|
|
2040
2041
|
next_node: z.ZodString;
|
|
@@ -2056,6 +2057,7 @@ export declare const flowNodeSchema: z.ZodObject<{
|
|
|
2056
2057
|
x: number;
|
|
2057
2058
|
y: number;
|
|
2058
2059
|
};
|
|
2060
|
+
alias?: string | undefined;
|
|
2059
2061
|
}, {
|
|
2060
2062
|
type: NodeType.FLOW;
|
|
2061
2063
|
id: string;
|
|
@@ -2067,6 +2069,7 @@ export declare const flowNodeSchema: z.ZodObject<{
|
|
|
2067
2069
|
x: number;
|
|
2068
2070
|
y: number;
|
|
2069
2071
|
};
|
|
2072
|
+
alias?: string | undefined;
|
|
2070
2073
|
}>;
|
|
2071
2074
|
export declare const genericNodeSchema: z.ZodObject<{
|
|
2072
2075
|
id: z.ZodString;
|
|
@@ -2775,6 +2778,7 @@ export declare const nodeSchema: z.ZodUnion<[
|
|
|
2775
2778
|
x: number;
|
|
2776
2779
|
y: number;
|
|
2777
2780
|
}>;
|
|
2781
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
2778
2782
|
config: z.ZodObject<{
|
|
2779
2783
|
flow_id: z.ZodString;
|
|
2780
2784
|
next_node: z.ZodString;
|
|
@@ -2796,6 +2800,7 @@ export declare const nodeSchema: z.ZodUnion<[
|
|
|
2796
2800
|
x: number;
|
|
2797
2801
|
y: number;
|
|
2798
2802
|
};
|
|
2803
|
+
alias?: string | undefined;
|
|
2799
2804
|
}, {
|
|
2800
2805
|
type: NodeType.FLOW;
|
|
2801
2806
|
id: string;
|
|
@@ -2807,6 +2812,7 @@ export declare const nodeSchema: z.ZodUnion<[
|
|
|
2807
2812
|
x: number;
|
|
2808
2813
|
y: number;
|
|
2809
2814
|
};
|
|
2815
|
+
alias?: string | undefined;
|
|
2810
2816
|
}>,
|
|
2811
2817
|
z.ZodObject<{
|
|
2812
2818
|
id: z.ZodString;
|
|
@@ -3606,6 +3612,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
3606
3612
|
x: number;
|
|
3607
3613
|
y: number;
|
|
3608
3614
|
}>;
|
|
3615
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
3609
3616
|
config: z.ZodObject<{
|
|
3610
3617
|
flow_id: z.ZodString;
|
|
3611
3618
|
next_node: z.ZodString;
|
|
@@ -3627,6 +3634,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
3627
3634
|
x: number;
|
|
3628
3635
|
y: number;
|
|
3629
3636
|
};
|
|
3637
|
+
alias?: string | undefined;
|
|
3630
3638
|
}, {
|
|
3631
3639
|
type: NodeType.FLOW;
|
|
3632
3640
|
id: string;
|
|
@@ -3638,6 +3646,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
3638
3646
|
x: number;
|
|
3639
3647
|
y: number;
|
|
3640
3648
|
};
|
|
3649
|
+
alias?: string | undefined;
|
|
3641
3650
|
}>,
|
|
3642
3651
|
z.ZodObject<{
|
|
3643
3652
|
id: z.ZodString;
|
|
@@ -4443,6 +4452,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
4443
4452
|
x: number;
|
|
4444
4453
|
y: number;
|
|
4445
4454
|
}>;
|
|
4455
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
4446
4456
|
config: z.ZodObject<{
|
|
4447
4457
|
flow_id: z.ZodString;
|
|
4448
4458
|
next_node: z.ZodString;
|
|
@@ -4464,6 +4474,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
4464
4474
|
x: number;
|
|
4465
4475
|
y: number;
|
|
4466
4476
|
};
|
|
4477
|
+
alias?: string | undefined;
|
|
4467
4478
|
}, {
|
|
4468
4479
|
type: NodeType.FLOW;
|
|
4469
4480
|
id: string;
|
|
@@ -4475,6 +4486,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
4475
4486
|
x: number;
|
|
4476
4487
|
y: number;
|
|
4477
4488
|
};
|
|
4489
|
+
alias?: string | undefined;
|
|
4478
4490
|
}>,
|
|
4479
4491
|
z.ZodObject<{
|
|
4480
4492
|
id: z.ZodString;
|
|
@@ -5280,6 +5292,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
5280
5292
|
x: number;
|
|
5281
5293
|
y: number;
|
|
5282
5294
|
}>;
|
|
5295
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
5283
5296
|
config: z.ZodObject<{
|
|
5284
5297
|
flow_id: z.ZodString;
|
|
5285
5298
|
next_node: z.ZodString;
|
|
@@ -5301,6 +5314,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
5301
5314
|
x: number;
|
|
5302
5315
|
y: number;
|
|
5303
5316
|
};
|
|
5317
|
+
alias?: string | undefined;
|
|
5304
5318
|
}, {
|
|
5305
5319
|
type: NodeType.FLOW;
|
|
5306
5320
|
id: string;
|
|
@@ -5312,6 +5326,7 @@ export declare const auth0FlowSchema: z.ZodObject<{
|
|
|
5312
5326
|
x: number;
|
|
5313
5327
|
y: number;
|
|
5314
5328
|
};
|
|
5329
|
+
alias?: string | undefined;
|
|
5315
5330
|
}>,
|
|
5316
5331
|
z.ZodObject<{
|
|
5317
5332
|
id: z.ZodString;
|
|
@@ -6119,6 +6134,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6119
6134
|
x: number;
|
|
6120
6135
|
y: number;
|
|
6121
6136
|
}>;
|
|
6137
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
6122
6138
|
config: z.ZodObject<{
|
|
6123
6139
|
flow_id: z.ZodString;
|
|
6124
6140
|
next_node: z.ZodString;
|
|
@@ -6140,6 +6156,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6140
6156
|
x: number;
|
|
6141
6157
|
y: number;
|
|
6142
6158
|
};
|
|
6159
|
+
alias?: string | undefined;
|
|
6143
6160
|
}, {
|
|
6144
6161
|
type: NodeType.FLOW;
|
|
6145
6162
|
id: string;
|
|
@@ -6151,6 +6168,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6151
6168
|
x: number;
|
|
6152
6169
|
y: number;
|
|
6153
6170
|
};
|
|
6171
|
+
alias?: string | undefined;
|
|
6154
6172
|
}>,
|
|
6155
6173
|
z.ZodObject<{
|
|
6156
6174
|
id: z.ZodString;
|
|
@@ -6956,6 +6974,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6956
6974
|
x: number;
|
|
6957
6975
|
y: number;
|
|
6958
6976
|
}>;
|
|
6977
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
6959
6978
|
config: z.ZodObject<{
|
|
6960
6979
|
flow_id: z.ZodString;
|
|
6961
6980
|
next_node: z.ZodString;
|
|
@@ -6977,6 +6996,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6977
6996
|
x: number;
|
|
6978
6997
|
y: number;
|
|
6979
6998
|
};
|
|
6999
|
+
alias?: string | undefined;
|
|
6980
7000
|
}, {
|
|
6981
7001
|
type: NodeType.FLOW;
|
|
6982
7002
|
id: string;
|
|
@@ -6988,6 +7008,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
6988
7008
|
x: number;
|
|
6989
7009
|
y: number;
|
|
6990
7010
|
};
|
|
7011
|
+
alias?: string | undefined;
|
|
6991
7012
|
}>,
|
|
6992
7013
|
z.ZodObject<{
|
|
6993
7014
|
id: z.ZodString;
|
|
@@ -7793,6 +7814,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
7793
7814
|
x: number;
|
|
7794
7815
|
y: number;
|
|
7795
7816
|
}>;
|
|
7817
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
7796
7818
|
config: z.ZodObject<{
|
|
7797
7819
|
flow_id: z.ZodString;
|
|
7798
7820
|
next_node: z.ZodString;
|
|
@@ -7814,6 +7836,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
7814
7836
|
x: number;
|
|
7815
7837
|
y: number;
|
|
7816
7838
|
};
|
|
7839
|
+
alias?: string | undefined;
|
|
7817
7840
|
}, {
|
|
7818
7841
|
type: NodeType.FLOW;
|
|
7819
7842
|
id: string;
|
|
@@ -7825,6 +7848,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
|
|
|
7825
7848
|
x: number;
|
|
7826
7849
|
y: number;
|
|
7827
7850
|
};
|
|
7851
|
+
alias?: string | undefined;
|
|
7828
7852
|
}>,
|
|
7829
7853
|
z.ZodObject<{
|
|
7830
7854
|
id: z.ZodString;
|
|
@@ -9192,6 +9216,107 @@ export declare const formControlSchema: z.ZodObject<{
|
|
|
9192
9216
|
customizations?: Record<string, any> | undefined;
|
|
9193
9217
|
}>;
|
|
9194
9218
|
export type FormControl = z.infer<typeof formControlSchema>;
|
|
9219
|
+
/**
|
|
9220
|
+
* Schema for form components (fields, text, buttons, etc)
|
|
9221
|
+
*/
|
|
9222
|
+
export declare const formNodeComponentDefinition: z.ZodDiscriminatedUnion<"type", [
|
|
9223
|
+
z.ZodObject<{
|
|
9224
|
+
id: z.ZodString;
|
|
9225
|
+
type: z.ZodLiteral<"RICH_TEXT">;
|
|
9226
|
+
config: z.ZodObject<{
|
|
9227
|
+
content: z.ZodString;
|
|
9228
|
+
}, "strip", z.ZodTypeAny, {
|
|
9229
|
+
content: string;
|
|
9230
|
+
}, {
|
|
9231
|
+
content: string;
|
|
9232
|
+
}>;
|
|
9233
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9234
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9235
|
+
}, "strip", z.ZodTypeAny, {
|
|
9236
|
+
type: "RICH_TEXT";
|
|
9237
|
+
id: string;
|
|
9238
|
+
config: {
|
|
9239
|
+
content: string;
|
|
9240
|
+
};
|
|
9241
|
+
visible: boolean;
|
|
9242
|
+
order?: number | undefined;
|
|
9243
|
+
}, {
|
|
9244
|
+
type: "RICH_TEXT";
|
|
9245
|
+
id: string;
|
|
9246
|
+
config: {
|
|
9247
|
+
content: string;
|
|
9248
|
+
};
|
|
9249
|
+
order?: number | undefined;
|
|
9250
|
+
visible?: boolean | undefined;
|
|
9251
|
+
}>,
|
|
9252
|
+
z.ZodObject<{
|
|
9253
|
+
id: z.ZodString;
|
|
9254
|
+
type: z.ZodLiteral<"LEGAL">;
|
|
9255
|
+
config: z.ZodObject<{
|
|
9256
|
+
text: z.ZodString;
|
|
9257
|
+
html: z.ZodOptional<z.ZodBoolean>;
|
|
9258
|
+
}, "strip", z.ZodTypeAny, {
|
|
9259
|
+
text: string;
|
|
9260
|
+
html?: boolean | undefined;
|
|
9261
|
+
}, {
|
|
9262
|
+
text: string;
|
|
9263
|
+
html?: boolean | undefined;
|
|
9264
|
+
}>;
|
|
9265
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
9266
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9267
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9268
|
+
}, "strip", z.ZodTypeAny, {
|
|
9269
|
+
type: "LEGAL";
|
|
9270
|
+
id: string;
|
|
9271
|
+
config: {
|
|
9272
|
+
text: string;
|
|
9273
|
+
html?: boolean | undefined;
|
|
9274
|
+
};
|
|
9275
|
+
visible: boolean;
|
|
9276
|
+
required?: boolean | undefined;
|
|
9277
|
+
order?: number | undefined;
|
|
9278
|
+
}, {
|
|
9279
|
+
type: "LEGAL";
|
|
9280
|
+
id: string;
|
|
9281
|
+
config: {
|
|
9282
|
+
text: string;
|
|
9283
|
+
html?: boolean | undefined;
|
|
9284
|
+
};
|
|
9285
|
+
required?: boolean | undefined;
|
|
9286
|
+
order?: number | undefined;
|
|
9287
|
+
visible?: boolean | undefined;
|
|
9288
|
+
}>,
|
|
9289
|
+
z.ZodObject<{
|
|
9290
|
+
id: z.ZodString;
|
|
9291
|
+
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
9292
|
+
config: z.ZodObject<{
|
|
9293
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9294
|
+
}, "strip", z.ZodTypeAny, {
|
|
9295
|
+
text?: string | undefined;
|
|
9296
|
+
}, {
|
|
9297
|
+
text?: string | undefined;
|
|
9298
|
+
}>;
|
|
9299
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9300
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9301
|
+
}, "strip", z.ZodTypeAny, {
|
|
9302
|
+
type: "NEXT_BUTTON";
|
|
9303
|
+
id: string;
|
|
9304
|
+
config: {
|
|
9305
|
+
text?: string | undefined;
|
|
9306
|
+
};
|
|
9307
|
+
visible: boolean;
|
|
9308
|
+
order?: number | undefined;
|
|
9309
|
+
}, {
|
|
9310
|
+
type: "NEXT_BUTTON";
|
|
9311
|
+
id: string;
|
|
9312
|
+
config: {
|
|
9313
|
+
text?: string | undefined;
|
|
9314
|
+
};
|
|
9315
|
+
order?: number | undefined;
|
|
9316
|
+
visible?: boolean | undefined;
|
|
9317
|
+
}>
|
|
9318
|
+
]>;
|
|
9319
|
+
export type FormNodeComponent = z.infer<typeof formNodeComponentDefinition>;
|
|
9195
9320
|
/**
|
|
9196
9321
|
* Schema for forms (flow-based, matches new JSON structure)
|
|
9197
9322
|
*/
|
|
@@ -9232,41 +9357,41 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9232
9357
|
x: number;
|
|
9233
9358
|
y: number;
|
|
9234
9359
|
}>;
|
|
9235
|
-
alias: z.ZodString
|
|
9360
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9236
9361
|
config: z.ZodObject<{
|
|
9237
9362
|
flow_id: z.ZodString;
|
|
9238
|
-
next_node: z.
|
|
9363
|
+
next_node: z.ZodString;
|
|
9239
9364
|
}, "strip", z.ZodTypeAny, {
|
|
9240
|
-
next_node: string
|
|
9365
|
+
next_node: string;
|
|
9241
9366
|
flow_id: string;
|
|
9242
9367
|
}, {
|
|
9243
|
-
next_node: string
|
|
9368
|
+
next_node: string;
|
|
9244
9369
|
flow_id: string;
|
|
9245
9370
|
}>;
|
|
9246
9371
|
}, "strip", z.ZodTypeAny, {
|
|
9247
9372
|
type: "FLOW";
|
|
9248
9373
|
id: string;
|
|
9249
9374
|
config: {
|
|
9250
|
-
next_node: string
|
|
9375
|
+
next_node: string;
|
|
9251
9376
|
flow_id: string;
|
|
9252
9377
|
};
|
|
9253
9378
|
coordinates: {
|
|
9254
9379
|
x: number;
|
|
9255
9380
|
y: number;
|
|
9256
9381
|
};
|
|
9257
|
-
alias
|
|
9382
|
+
alias?: string | undefined;
|
|
9258
9383
|
}, {
|
|
9259
9384
|
type: "FLOW";
|
|
9260
9385
|
id: string;
|
|
9261
9386
|
config: {
|
|
9262
|
-
next_node: string
|
|
9387
|
+
next_node: string;
|
|
9263
9388
|
flow_id: string;
|
|
9264
9389
|
};
|
|
9265
9390
|
coordinates: {
|
|
9266
9391
|
x: number;
|
|
9267
9392
|
y: number;
|
|
9268
9393
|
};
|
|
9269
|
-
alias
|
|
9394
|
+
alias?: string | undefined;
|
|
9270
9395
|
}>,
|
|
9271
9396
|
z.ZodObject<{
|
|
9272
9397
|
id: z.ZodString;
|
|
@@ -9285,34 +9410,34 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9285
9410
|
config: z.ZodObject<{
|
|
9286
9411
|
rules: z.ZodArray<z.ZodObject<{
|
|
9287
9412
|
id: z.ZodString;
|
|
9288
|
-
alias: z.ZodString
|
|
9413
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9289
9414
|
condition: z.ZodAny;
|
|
9290
|
-
next_node: z.
|
|
9415
|
+
next_node: z.ZodString;
|
|
9291
9416
|
}, "strip", z.ZodTypeAny, {
|
|
9292
9417
|
id: string;
|
|
9293
|
-
|
|
9294
|
-
|
|
9418
|
+
next_node: string;
|
|
9419
|
+
alias?: string | undefined;
|
|
9295
9420
|
condition?: any;
|
|
9296
9421
|
}, {
|
|
9297
9422
|
id: string;
|
|
9298
|
-
|
|
9299
|
-
|
|
9423
|
+
next_node: string;
|
|
9424
|
+
alias?: string | undefined;
|
|
9300
9425
|
condition?: any;
|
|
9301
9426
|
}>, "many">;
|
|
9302
9427
|
fallback: z.ZodArray<z.ZodString, "many">;
|
|
9303
9428
|
}, "strip", z.ZodTypeAny, {
|
|
9304
9429
|
rules: {
|
|
9305
9430
|
id: string;
|
|
9306
|
-
|
|
9307
|
-
|
|
9431
|
+
next_node: string;
|
|
9432
|
+
alias?: string | undefined;
|
|
9308
9433
|
condition?: any;
|
|
9309
9434
|
}[];
|
|
9310
9435
|
fallback: string[];
|
|
9311
9436
|
}, {
|
|
9312
9437
|
rules: {
|
|
9313
9438
|
id: string;
|
|
9314
|
-
|
|
9315
|
-
|
|
9439
|
+
next_node: string;
|
|
9440
|
+
alias?: string | undefined;
|
|
9316
9441
|
condition?: any;
|
|
9317
9442
|
}[];
|
|
9318
9443
|
fallback: string[];
|
|
@@ -9323,8 +9448,8 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9323
9448
|
config: {
|
|
9324
9449
|
rules: {
|
|
9325
9450
|
id: string;
|
|
9326
|
-
|
|
9327
|
-
|
|
9451
|
+
next_node: string;
|
|
9452
|
+
alias?: string | undefined;
|
|
9328
9453
|
condition?: any;
|
|
9329
9454
|
}[];
|
|
9330
9455
|
fallback: string[];
|
|
@@ -9340,8 +9465,8 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9340
9465
|
config: {
|
|
9341
9466
|
rules: {
|
|
9342
9467
|
id: string;
|
|
9343
|
-
|
|
9344
|
-
|
|
9468
|
+
next_node: string;
|
|
9469
|
+
alias?: string | undefined;
|
|
9345
9470
|
condition?: any;
|
|
9346
9471
|
}[];
|
|
9347
9472
|
fallback: string[];
|
|
@@ -9365,41 +9490,241 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9365
9490
|
x: number;
|
|
9366
9491
|
y: number;
|
|
9367
9492
|
}>;
|
|
9368
|
-
alias: z.ZodString
|
|
9493
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9369
9494
|
config: z.ZodObject<{
|
|
9370
|
-
components: z.ZodArray<z.
|
|
9371
|
-
|
|
9495
|
+
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
9496
|
+
z.ZodObject<{
|
|
9497
|
+
id: z.ZodString;
|
|
9498
|
+
type: z.ZodLiteral<"RICH_TEXT">;
|
|
9499
|
+
config: z.ZodObject<{
|
|
9500
|
+
content: z.ZodString;
|
|
9501
|
+
}, "strip", z.ZodTypeAny, {
|
|
9502
|
+
content: string;
|
|
9503
|
+
}, {
|
|
9504
|
+
content: string;
|
|
9505
|
+
}>;
|
|
9506
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9507
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9508
|
+
}, "strip", z.ZodTypeAny, {
|
|
9509
|
+
type: "RICH_TEXT";
|
|
9510
|
+
id: string;
|
|
9511
|
+
config: {
|
|
9512
|
+
content: string;
|
|
9513
|
+
};
|
|
9514
|
+
visible: boolean;
|
|
9515
|
+
order?: number | undefined;
|
|
9516
|
+
}, {
|
|
9517
|
+
type: "RICH_TEXT";
|
|
9518
|
+
id: string;
|
|
9519
|
+
config: {
|
|
9520
|
+
content: string;
|
|
9521
|
+
};
|
|
9522
|
+
order?: number | undefined;
|
|
9523
|
+
visible?: boolean | undefined;
|
|
9524
|
+
}>,
|
|
9525
|
+
z.ZodObject<{
|
|
9526
|
+
id: z.ZodString;
|
|
9527
|
+
type: z.ZodLiteral<"LEGAL">;
|
|
9528
|
+
config: z.ZodObject<{
|
|
9529
|
+
text: z.ZodString;
|
|
9530
|
+
html: z.ZodOptional<z.ZodBoolean>;
|
|
9531
|
+
}, "strip", z.ZodTypeAny, {
|
|
9532
|
+
text: string;
|
|
9533
|
+
html?: boolean | undefined;
|
|
9534
|
+
}, {
|
|
9535
|
+
text: string;
|
|
9536
|
+
html?: boolean | undefined;
|
|
9537
|
+
}>;
|
|
9538
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
9539
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9540
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9541
|
+
}, "strip", z.ZodTypeAny, {
|
|
9542
|
+
type: "LEGAL";
|
|
9543
|
+
id: string;
|
|
9544
|
+
config: {
|
|
9545
|
+
text: string;
|
|
9546
|
+
html?: boolean | undefined;
|
|
9547
|
+
};
|
|
9548
|
+
visible: boolean;
|
|
9549
|
+
required?: boolean | undefined;
|
|
9550
|
+
order?: number | undefined;
|
|
9551
|
+
}, {
|
|
9552
|
+
type: "LEGAL";
|
|
9553
|
+
id: string;
|
|
9554
|
+
config: {
|
|
9555
|
+
text: string;
|
|
9556
|
+
html?: boolean | undefined;
|
|
9557
|
+
};
|
|
9558
|
+
required?: boolean | undefined;
|
|
9559
|
+
order?: number | undefined;
|
|
9560
|
+
visible?: boolean | undefined;
|
|
9561
|
+
}>,
|
|
9562
|
+
z.ZodObject<{
|
|
9563
|
+
id: z.ZodString;
|
|
9564
|
+
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
9565
|
+
config: z.ZodObject<{
|
|
9566
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9567
|
+
}, "strip", z.ZodTypeAny, {
|
|
9568
|
+
text?: string | undefined;
|
|
9569
|
+
}, {
|
|
9570
|
+
text?: string | undefined;
|
|
9571
|
+
}>;
|
|
9572
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9573
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9574
|
+
}, "strip", z.ZodTypeAny, {
|
|
9575
|
+
type: "NEXT_BUTTON";
|
|
9576
|
+
id: string;
|
|
9577
|
+
config: {
|
|
9578
|
+
text?: string | undefined;
|
|
9579
|
+
};
|
|
9580
|
+
visible: boolean;
|
|
9581
|
+
order?: number | undefined;
|
|
9582
|
+
}, {
|
|
9583
|
+
type: "NEXT_BUTTON";
|
|
9584
|
+
id: string;
|
|
9585
|
+
config: {
|
|
9586
|
+
text?: string | undefined;
|
|
9587
|
+
};
|
|
9588
|
+
order?: number | undefined;
|
|
9589
|
+
visible?: boolean | undefined;
|
|
9590
|
+
}>
|
|
9591
|
+
]>, "many">;
|
|
9592
|
+
next_node: z.ZodString;
|
|
9372
9593
|
}, "strip", z.ZodTypeAny, {
|
|
9373
|
-
components:
|
|
9374
|
-
|
|
9594
|
+
components: ({
|
|
9595
|
+
type: "RICH_TEXT";
|
|
9596
|
+
id: string;
|
|
9597
|
+
config: {
|
|
9598
|
+
content: string;
|
|
9599
|
+
};
|
|
9600
|
+
visible: boolean;
|
|
9601
|
+
order?: number | undefined;
|
|
9602
|
+
} | {
|
|
9603
|
+
type: "LEGAL";
|
|
9604
|
+
id: string;
|
|
9605
|
+
config: {
|
|
9606
|
+
text: string;
|
|
9607
|
+
html?: boolean | undefined;
|
|
9608
|
+
};
|
|
9609
|
+
visible: boolean;
|
|
9610
|
+
required?: boolean | undefined;
|
|
9611
|
+
order?: number | undefined;
|
|
9612
|
+
} | {
|
|
9613
|
+
type: "NEXT_BUTTON";
|
|
9614
|
+
id: string;
|
|
9615
|
+
config: {
|
|
9616
|
+
text?: string | undefined;
|
|
9617
|
+
};
|
|
9618
|
+
visible: boolean;
|
|
9619
|
+
order?: number | undefined;
|
|
9620
|
+
})[];
|
|
9621
|
+
next_node: string;
|
|
9375
9622
|
}, {
|
|
9376
|
-
components:
|
|
9377
|
-
|
|
9623
|
+
components: ({
|
|
9624
|
+
type: "RICH_TEXT";
|
|
9625
|
+
id: string;
|
|
9626
|
+
config: {
|
|
9627
|
+
content: string;
|
|
9628
|
+
};
|
|
9629
|
+
order?: number | undefined;
|
|
9630
|
+
visible?: boolean | undefined;
|
|
9631
|
+
} | {
|
|
9632
|
+
type: "LEGAL";
|
|
9633
|
+
id: string;
|
|
9634
|
+
config: {
|
|
9635
|
+
text: string;
|
|
9636
|
+
html?: boolean | undefined;
|
|
9637
|
+
};
|
|
9638
|
+
required?: boolean | undefined;
|
|
9639
|
+
order?: number | undefined;
|
|
9640
|
+
visible?: boolean | undefined;
|
|
9641
|
+
} | {
|
|
9642
|
+
type: "NEXT_BUTTON";
|
|
9643
|
+
id: string;
|
|
9644
|
+
config: {
|
|
9645
|
+
text?: string | undefined;
|
|
9646
|
+
};
|
|
9647
|
+
order?: number | undefined;
|
|
9648
|
+
visible?: boolean | undefined;
|
|
9649
|
+
})[];
|
|
9650
|
+
next_node: string;
|
|
9378
9651
|
}>;
|
|
9379
9652
|
}, "strip", z.ZodTypeAny, {
|
|
9380
9653
|
type: "STEP";
|
|
9381
9654
|
id: string;
|
|
9382
9655
|
config: {
|
|
9383
|
-
components:
|
|
9384
|
-
|
|
9656
|
+
components: ({
|
|
9657
|
+
type: "RICH_TEXT";
|
|
9658
|
+
id: string;
|
|
9659
|
+
config: {
|
|
9660
|
+
content: string;
|
|
9661
|
+
};
|
|
9662
|
+
visible: boolean;
|
|
9663
|
+
order?: number | undefined;
|
|
9664
|
+
} | {
|
|
9665
|
+
type: "LEGAL";
|
|
9666
|
+
id: string;
|
|
9667
|
+
config: {
|
|
9668
|
+
text: string;
|
|
9669
|
+
html?: boolean | undefined;
|
|
9670
|
+
};
|
|
9671
|
+
visible: boolean;
|
|
9672
|
+
required?: boolean | undefined;
|
|
9673
|
+
order?: number | undefined;
|
|
9674
|
+
} | {
|
|
9675
|
+
type: "NEXT_BUTTON";
|
|
9676
|
+
id: string;
|
|
9677
|
+
config: {
|
|
9678
|
+
text?: string | undefined;
|
|
9679
|
+
};
|
|
9680
|
+
visible: boolean;
|
|
9681
|
+
order?: number | undefined;
|
|
9682
|
+
})[];
|
|
9683
|
+
next_node: string;
|
|
9385
9684
|
};
|
|
9386
9685
|
coordinates: {
|
|
9387
9686
|
x: number;
|
|
9388
9687
|
y: number;
|
|
9389
9688
|
};
|
|
9390
|
-
alias
|
|
9689
|
+
alias?: string | undefined;
|
|
9391
9690
|
}, {
|
|
9392
9691
|
type: "STEP";
|
|
9393
9692
|
id: string;
|
|
9394
9693
|
config: {
|
|
9395
|
-
components:
|
|
9396
|
-
|
|
9694
|
+
components: ({
|
|
9695
|
+
type: "RICH_TEXT";
|
|
9696
|
+
id: string;
|
|
9697
|
+
config: {
|
|
9698
|
+
content: string;
|
|
9699
|
+
};
|
|
9700
|
+
order?: number | undefined;
|
|
9701
|
+
visible?: boolean | undefined;
|
|
9702
|
+
} | {
|
|
9703
|
+
type: "LEGAL";
|
|
9704
|
+
id: string;
|
|
9705
|
+
config: {
|
|
9706
|
+
text: string;
|
|
9707
|
+
html?: boolean | undefined;
|
|
9708
|
+
};
|
|
9709
|
+
required?: boolean | undefined;
|
|
9710
|
+
order?: number | undefined;
|
|
9711
|
+
visible?: boolean | undefined;
|
|
9712
|
+
} | {
|
|
9713
|
+
type: "NEXT_BUTTON";
|
|
9714
|
+
id: string;
|
|
9715
|
+
config: {
|
|
9716
|
+
text?: string | undefined;
|
|
9717
|
+
};
|
|
9718
|
+
order?: number | undefined;
|
|
9719
|
+
visible?: boolean | undefined;
|
|
9720
|
+
})[];
|
|
9721
|
+
next_node: string;
|
|
9397
9722
|
};
|
|
9398
9723
|
coordinates: {
|
|
9399
9724
|
x: number;
|
|
9400
9725
|
y: number;
|
|
9401
9726
|
};
|
|
9402
|
-
alias
|
|
9727
|
+
alias?: string | undefined;
|
|
9403
9728
|
}>
|
|
9404
9729
|
]>, "many">>;
|
|
9405
9730
|
start: z.ZodOptional<z.ZodObject<{
|
|
@@ -9413,7 +9738,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9413
9738
|
value: string;
|
|
9414
9739
|
key: string;
|
|
9415
9740
|
}>, "many">>;
|
|
9416
|
-
next_node: z.ZodOptional<z.
|
|
9741
|
+
next_node: z.ZodOptional<z.ZodString>;
|
|
9417
9742
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
9418
9743
|
x: z.ZodNumber;
|
|
9419
9744
|
y: z.ZodNumber;
|
|
@@ -9429,7 +9754,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9429
9754
|
x: number;
|
|
9430
9755
|
y: number;
|
|
9431
9756
|
} | undefined;
|
|
9432
|
-
next_node?: string
|
|
9757
|
+
next_node?: string | undefined;
|
|
9433
9758
|
hidden_fields?: {
|
|
9434
9759
|
value: string;
|
|
9435
9760
|
key: string;
|
|
@@ -9439,7 +9764,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9439
9764
|
x: number;
|
|
9440
9765
|
y: number;
|
|
9441
9766
|
} | undefined;
|
|
9442
|
-
next_node?: string
|
|
9767
|
+
next_node?: string | undefined;
|
|
9443
9768
|
hidden_fields?: {
|
|
9444
9769
|
value: string;
|
|
9445
9770
|
key: string;
|
|
@@ -9515,7 +9840,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9515
9840
|
x: number;
|
|
9516
9841
|
y: number;
|
|
9517
9842
|
} | undefined;
|
|
9518
|
-
next_node?: string
|
|
9843
|
+
next_node?: string | undefined;
|
|
9519
9844
|
hidden_fields?: {
|
|
9520
9845
|
value: string;
|
|
9521
9846
|
key: string;
|
|
@@ -9532,22 +9857,22 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9532
9857
|
type: "FLOW";
|
|
9533
9858
|
id: string;
|
|
9534
9859
|
config: {
|
|
9535
|
-
next_node: string
|
|
9860
|
+
next_node: string;
|
|
9536
9861
|
flow_id: string;
|
|
9537
9862
|
};
|
|
9538
9863
|
coordinates: {
|
|
9539
9864
|
x: number;
|
|
9540
9865
|
y: number;
|
|
9541
9866
|
};
|
|
9542
|
-
alias
|
|
9867
|
+
alias?: string | undefined;
|
|
9543
9868
|
} | {
|
|
9544
9869
|
type: "ROUTER";
|
|
9545
9870
|
id: string;
|
|
9546
9871
|
config: {
|
|
9547
9872
|
rules: {
|
|
9548
9873
|
id: string;
|
|
9549
|
-
|
|
9550
|
-
|
|
9874
|
+
next_node: string;
|
|
9875
|
+
alias?: string | undefined;
|
|
9551
9876
|
condition?: any;
|
|
9552
9877
|
}[];
|
|
9553
9878
|
fallback: string[];
|
|
@@ -9561,14 +9886,40 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9561
9886
|
type: "STEP";
|
|
9562
9887
|
id: string;
|
|
9563
9888
|
config: {
|
|
9564
|
-
components:
|
|
9565
|
-
|
|
9889
|
+
components: ({
|
|
9890
|
+
type: "RICH_TEXT";
|
|
9891
|
+
id: string;
|
|
9892
|
+
config: {
|
|
9893
|
+
content: string;
|
|
9894
|
+
};
|
|
9895
|
+
visible: boolean;
|
|
9896
|
+
order?: number | undefined;
|
|
9897
|
+
} | {
|
|
9898
|
+
type: "LEGAL";
|
|
9899
|
+
id: string;
|
|
9900
|
+
config: {
|
|
9901
|
+
text: string;
|
|
9902
|
+
html?: boolean | undefined;
|
|
9903
|
+
};
|
|
9904
|
+
visible: boolean;
|
|
9905
|
+
required?: boolean | undefined;
|
|
9906
|
+
order?: number | undefined;
|
|
9907
|
+
} | {
|
|
9908
|
+
type: "NEXT_BUTTON";
|
|
9909
|
+
id: string;
|
|
9910
|
+
config: {
|
|
9911
|
+
text?: string | undefined;
|
|
9912
|
+
};
|
|
9913
|
+
visible: boolean;
|
|
9914
|
+
order?: number | undefined;
|
|
9915
|
+
})[];
|
|
9916
|
+
next_node: string;
|
|
9566
9917
|
};
|
|
9567
9918
|
coordinates: {
|
|
9568
9919
|
x: number;
|
|
9569
9920
|
y: number;
|
|
9570
9921
|
};
|
|
9571
|
-
alias
|
|
9922
|
+
alias?: string | undefined;
|
|
9572
9923
|
})[] | undefined;
|
|
9573
9924
|
ending?: {
|
|
9574
9925
|
coordinates?: {
|
|
@@ -9596,7 +9947,7 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9596
9947
|
x: number;
|
|
9597
9948
|
y: number;
|
|
9598
9949
|
} | undefined;
|
|
9599
|
-
next_node?: string
|
|
9950
|
+
next_node?: string | undefined;
|
|
9600
9951
|
hidden_fields?: {
|
|
9601
9952
|
value: string;
|
|
9602
9953
|
key: string;
|
|
@@ -9613,22 +9964,22 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9613
9964
|
type: "FLOW";
|
|
9614
9965
|
id: string;
|
|
9615
9966
|
config: {
|
|
9616
|
-
next_node: string
|
|
9967
|
+
next_node: string;
|
|
9617
9968
|
flow_id: string;
|
|
9618
9969
|
};
|
|
9619
9970
|
coordinates: {
|
|
9620
9971
|
x: number;
|
|
9621
9972
|
y: number;
|
|
9622
9973
|
};
|
|
9623
|
-
alias
|
|
9974
|
+
alias?: string | undefined;
|
|
9624
9975
|
} | {
|
|
9625
9976
|
type: "ROUTER";
|
|
9626
9977
|
id: string;
|
|
9627
9978
|
config: {
|
|
9628
9979
|
rules: {
|
|
9629
9980
|
id: string;
|
|
9630
|
-
|
|
9631
|
-
|
|
9981
|
+
next_node: string;
|
|
9982
|
+
alias?: string | undefined;
|
|
9632
9983
|
condition?: any;
|
|
9633
9984
|
}[];
|
|
9634
9985
|
fallback: string[];
|
|
@@ -9642,14 +9993,40 @@ export declare const formInsertSchema: z.ZodObject<{
|
|
|
9642
9993
|
type: "STEP";
|
|
9643
9994
|
id: string;
|
|
9644
9995
|
config: {
|
|
9645
|
-
components:
|
|
9646
|
-
|
|
9996
|
+
components: ({
|
|
9997
|
+
type: "RICH_TEXT";
|
|
9998
|
+
id: string;
|
|
9999
|
+
config: {
|
|
10000
|
+
content: string;
|
|
10001
|
+
};
|
|
10002
|
+
order?: number | undefined;
|
|
10003
|
+
visible?: boolean | undefined;
|
|
10004
|
+
} | {
|
|
10005
|
+
type: "LEGAL";
|
|
10006
|
+
id: string;
|
|
10007
|
+
config: {
|
|
10008
|
+
text: string;
|
|
10009
|
+
html?: boolean | undefined;
|
|
10010
|
+
};
|
|
10011
|
+
required?: boolean | undefined;
|
|
10012
|
+
order?: number | undefined;
|
|
10013
|
+
visible?: boolean | undefined;
|
|
10014
|
+
} | {
|
|
10015
|
+
type: "NEXT_BUTTON";
|
|
10016
|
+
id: string;
|
|
10017
|
+
config: {
|
|
10018
|
+
text?: string | undefined;
|
|
10019
|
+
};
|
|
10020
|
+
order?: number | undefined;
|
|
10021
|
+
visible?: boolean | undefined;
|
|
10022
|
+
})[];
|
|
10023
|
+
next_node: string;
|
|
9647
10024
|
};
|
|
9648
10025
|
coordinates: {
|
|
9649
10026
|
x: number;
|
|
9650
10027
|
y: number;
|
|
9651
10028
|
};
|
|
9652
|
-
alias
|
|
10029
|
+
alias?: string | undefined;
|
|
9653
10030
|
})[] | undefined;
|
|
9654
10031
|
ending?: {
|
|
9655
10032
|
coordinates?: {
|
|
@@ -9713,41 +10090,41 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9713
10090
|
x: number;
|
|
9714
10091
|
y: number;
|
|
9715
10092
|
}>;
|
|
9716
|
-
alias: z.ZodString
|
|
10093
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9717
10094
|
config: z.ZodObject<{
|
|
9718
10095
|
flow_id: z.ZodString;
|
|
9719
|
-
next_node: z.
|
|
10096
|
+
next_node: z.ZodString;
|
|
9720
10097
|
}, "strip", z.ZodTypeAny, {
|
|
9721
|
-
next_node: string
|
|
10098
|
+
next_node: string;
|
|
9722
10099
|
flow_id: string;
|
|
9723
10100
|
}, {
|
|
9724
|
-
next_node: string
|
|
10101
|
+
next_node: string;
|
|
9725
10102
|
flow_id: string;
|
|
9726
10103
|
}>;
|
|
9727
10104
|
}, "strip", z.ZodTypeAny, {
|
|
9728
10105
|
type: "FLOW";
|
|
9729
10106
|
id: string;
|
|
9730
10107
|
config: {
|
|
9731
|
-
next_node: string
|
|
10108
|
+
next_node: string;
|
|
9732
10109
|
flow_id: string;
|
|
9733
10110
|
};
|
|
9734
10111
|
coordinates: {
|
|
9735
10112
|
x: number;
|
|
9736
10113
|
y: number;
|
|
9737
10114
|
};
|
|
9738
|
-
alias
|
|
10115
|
+
alias?: string | undefined;
|
|
9739
10116
|
}, {
|
|
9740
10117
|
type: "FLOW";
|
|
9741
10118
|
id: string;
|
|
9742
10119
|
config: {
|
|
9743
|
-
next_node: string
|
|
10120
|
+
next_node: string;
|
|
9744
10121
|
flow_id: string;
|
|
9745
10122
|
};
|
|
9746
10123
|
coordinates: {
|
|
9747
10124
|
x: number;
|
|
9748
10125
|
y: number;
|
|
9749
10126
|
};
|
|
9750
|
-
alias
|
|
10127
|
+
alias?: string | undefined;
|
|
9751
10128
|
}>,
|
|
9752
10129
|
z.ZodObject<{
|
|
9753
10130
|
id: z.ZodString;
|
|
@@ -9766,34 +10143,34 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9766
10143
|
config: z.ZodObject<{
|
|
9767
10144
|
rules: z.ZodArray<z.ZodObject<{
|
|
9768
10145
|
id: z.ZodString;
|
|
9769
|
-
alias: z.ZodString
|
|
10146
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9770
10147
|
condition: z.ZodAny;
|
|
9771
|
-
next_node: z.
|
|
10148
|
+
next_node: z.ZodString;
|
|
9772
10149
|
}, "strip", z.ZodTypeAny, {
|
|
9773
10150
|
id: string;
|
|
9774
|
-
|
|
9775
|
-
|
|
10151
|
+
next_node: string;
|
|
10152
|
+
alias?: string | undefined;
|
|
9776
10153
|
condition?: any;
|
|
9777
10154
|
}, {
|
|
9778
10155
|
id: string;
|
|
9779
|
-
|
|
9780
|
-
|
|
10156
|
+
next_node: string;
|
|
10157
|
+
alias?: string | undefined;
|
|
9781
10158
|
condition?: any;
|
|
9782
10159
|
}>, "many">;
|
|
9783
10160
|
fallback: z.ZodArray<z.ZodString, "many">;
|
|
9784
10161
|
}, "strip", z.ZodTypeAny, {
|
|
9785
10162
|
rules: {
|
|
9786
10163
|
id: string;
|
|
9787
|
-
|
|
9788
|
-
|
|
10164
|
+
next_node: string;
|
|
10165
|
+
alias?: string | undefined;
|
|
9789
10166
|
condition?: any;
|
|
9790
10167
|
}[];
|
|
9791
10168
|
fallback: string[];
|
|
9792
10169
|
}, {
|
|
9793
10170
|
rules: {
|
|
9794
10171
|
id: string;
|
|
9795
|
-
|
|
9796
|
-
|
|
10172
|
+
next_node: string;
|
|
10173
|
+
alias?: string | undefined;
|
|
9797
10174
|
condition?: any;
|
|
9798
10175
|
}[];
|
|
9799
10176
|
fallback: string[];
|
|
@@ -9804,8 +10181,8 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9804
10181
|
config: {
|
|
9805
10182
|
rules: {
|
|
9806
10183
|
id: string;
|
|
9807
|
-
|
|
9808
|
-
|
|
10184
|
+
next_node: string;
|
|
10185
|
+
alias?: string | undefined;
|
|
9809
10186
|
condition?: any;
|
|
9810
10187
|
}[];
|
|
9811
10188
|
fallback: string[];
|
|
@@ -9821,8 +10198,8 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9821
10198
|
config: {
|
|
9822
10199
|
rules: {
|
|
9823
10200
|
id: string;
|
|
9824
|
-
|
|
9825
|
-
|
|
10201
|
+
next_node: string;
|
|
10202
|
+
alias?: string | undefined;
|
|
9826
10203
|
condition?: any;
|
|
9827
10204
|
}[];
|
|
9828
10205
|
fallback: string[];
|
|
@@ -9846,41 +10223,241 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9846
10223
|
x: number;
|
|
9847
10224
|
y: number;
|
|
9848
10225
|
}>;
|
|
9849
|
-
alias: z.ZodString
|
|
10226
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
9850
10227
|
config: z.ZodObject<{
|
|
9851
|
-
components: z.ZodArray<z.
|
|
9852
|
-
|
|
10228
|
+
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
10229
|
+
z.ZodObject<{
|
|
10230
|
+
id: z.ZodString;
|
|
10231
|
+
type: z.ZodLiteral<"RICH_TEXT">;
|
|
10232
|
+
config: z.ZodObject<{
|
|
10233
|
+
content: z.ZodString;
|
|
10234
|
+
}, "strip", z.ZodTypeAny, {
|
|
10235
|
+
content: string;
|
|
10236
|
+
}, {
|
|
10237
|
+
content: string;
|
|
10238
|
+
}>;
|
|
10239
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10240
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10241
|
+
}, "strip", z.ZodTypeAny, {
|
|
10242
|
+
type: "RICH_TEXT";
|
|
10243
|
+
id: string;
|
|
10244
|
+
config: {
|
|
10245
|
+
content: string;
|
|
10246
|
+
};
|
|
10247
|
+
visible: boolean;
|
|
10248
|
+
order?: number | undefined;
|
|
10249
|
+
}, {
|
|
10250
|
+
type: "RICH_TEXT";
|
|
10251
|
+
id: string;
|
|
10252
|
+
config: {
|
|
10253
|
+
content: string;
|
|
10254
|
+
};
|
|
10255
|
+
order?: number | undefined;
|
|
10256
|
+
visible?: boolean | undefined;
|
|
10257
|
+
}>,
|
|
10258
|
+
z.ZodObject<{
|
|
10259
|
+
id: z.ZodString;
|
|
10260
|
+
type: z.ZodLiteral<"LEGAL">;
|
|
10261
|
+
config: z.ZodObject<{
|
|
10262
|
+
text: z.ZodString;
|
|
10263
|
+
html: z.ZodOptional<z.ZodBoolean>;
|
|
10264
|
+
}, "strip", z.ZodTypeAny, {
|
|
10265
|
+
text: string;
|
|
10266
|
+
html?: boolean | undefined;
|
|
10267
|
+
}, {
|
|
10268
|
+
text: string;
|
|
10269
|
+
html?: boolean | undefined;
|
|
10270
|
+
}>;
|
|
10271
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
10272
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10273
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10274
|
+
}, "strip", z.ZodTypeAny, {
|
|
10275
|
+
type: "LEGAL";
|
|
10276
|
+
id: string;
|
|
10277
|
+
config: {
|
|
10278
|
+
text: string;
|
|
10279
|
+
html?: boolean | undefined;
|
|
10280
|
+
};
|
|
10281
|
+
visible: boolean;
|
|
10282
|
+
required?: boolean | undefined;
|
|
10283
|
+
order?: number | undefined;
|
|
10284
|
+
}, {
|
|
10285
|
+
type: "LEGAL";
|
|
10286
|
+
id: string;
|
|
10287
|
+
config: {
|
|
10288
|
+
text: string;
|
|
10289
|
+
html?: boolean | undefined;
|
|
10290
|
+
};
|
|
10291
|
+
required?: boolean | undefined;
|
|
10292
|
+
order?: number | undefined;
|
|
10293
|
+
visible?: boolean | undefined;
|
|
10294
|
+
}>,
|
|
10295
|
+
z.ZodObject<{
|
|
10296
|
+
id: z.ZodString;
|
|
10297
|
+
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
10298
|
+
config: z.ZodObject<{
|
|
10299
|
+
text: z.ZodOptional<z.ZodString>;
|
|
10300
|
+
}, "strip", z.ZodTypeAny, {
|
|
10301
|
+
text?: string | undefined;
|
|
10302
|
+
}, {
|
|
10303
|
+
text?: string | undefined;
|
|
10304
|
+
}>;
|
|
10305
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
10306
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10307
|
+
}, "strip", z.ZodTypeAny, {
|
|
10308
|
+
type: "NEXT_BUTTON";
|
|
10309
|
+
id: string;
|
|
10310
|
+
config: {
|
|
10311
|
+
text?: string | undefined;
|
|
10312
|
+
};
|
|
10313
|
+
visible: boolean;
|
|
10314
|
+
order?: number | undefined;
|
|
10315
|
+
}, {
|
|
10316
|
+
type: "NEXT_BUTTON";
|
|
10317
|
+
id: string;
|
|
10318
|
+
config: {
|
|
10319
|
+
text?: string | undefined;
|
|
10320
|
+
};
|
|
10321
|
+
order?: number | undefined;
|
|
10322
|
+
visible?: boolean | undefined;
|
|
10323
|
+
}>
|
|
10324
|
+
]>, "many">;
|
|
10325
|
+
next_node: z.ZodString;
|
|
9853
10326
|
}, "strip", z.ZodTypeAny, {
|
|
9854
|
-
components:
|
|
9855
|
-
|
|
10327
|
+
components: ({
|
|
10328
|
+
type: "RICH_TEXT";
|
|
10329
|
+
id: string;
|
|
10330
|
+
config: {
|
|
10331
|
+
content: string;
|
|
10332
|
+
};
|
|
10333
|
+
visible: boolean;
|
|
10334
|
+
order?: number | undefined;
|
|
10335
|
+
} | {
|
|
10336
|
+
type: "LEGAL";
|
|
10337
|
+
id: string;
|
|
10338
|
+
config: {
|
|
10339
|
+
text: string;
|
|
10340
|
+
html?: boolean | undefined;
|
|
10341
|
+
};
|
|
10342
|
+
visible: boolean;
|
|
10343
|
+
required?: boolean | undefined;
|
|
10344
|
+
order?: number | undefined;
|
|
10345
|
+
} | {
|
|
10346
|
+
type: "NEXT_BUTTON";
|
|
10347
|
+
id: string;
|
|
10348
|
+
config: {
|
|
10349
|
+
text?: string | undefined;
|
|
10350
|
+
};
|
|
10351
|
+
visible: boolean;
|
|
10352
|
+
order?: number | undefined;
|
|
10353
|
+
})[];
|
|
10354
|
+
next_node: string;
|
|
9856
10355
|
}, {
|
|
9857
|
-
components:
|
|
9858
|
-
|
|
10356
|
+
components: ({
|
|
10357
|
+
type: "RICH_TEXT";
|
|
10358
|
+
id: string;
|
|
10359
|
+
config: {
|
|
10360
|
+
content: string;
|
|
10361
|
+
};
|
|
10362
|
+
order?: number | undefined;
|
|
10363
|
+
visible?: boolean | undefined;
|
|
10364
|
+
} | {
|
|
10365
|
+
type: "LEGAL";
|
|
10366
|
+
id: string;
|
|
10367
|
+
config: {
|
|
10368
|
+
text: string;
|
|
10369
|
+
html?: boolean | undefined;
|
|
10370
|
+
};
|
|
10371
|
+
required?: boolean | undefined;
|
|
10372
|
+
order?: number | undefined;
|
|
10373
|
+
visible?: boolean | undefined;
|
|
10374
|
+
} | {
|
|
10375
|
+
type: "NEXT_BUTTON";
|
|
10376
|
+
id: string;
|
|
10377
|
+
config: {
|
|
10378
|
+
text?: string | undefined;
|
|
10379
|
+
};
|
|
10380
|
+
order?: number | undefined;
|
|
10381
|
+
visible?: boolean | undefined;
|
|
10382
|
+
})[];
|
|
10383
|
+
next_node: string;
|
|
9859
10384
|
}>;
|
|
9860
10385
|
}, "strip", z.ZodTypeAny, {
|
|
9861
10386
|
type: "STEP";
|
|
9862
10387
|
id: string;
|
|
9863
10388
|
config: {
|
|
9864
|
-
components:
|
|
9865
|
-
|
|
10389
|
+
components: ({
|
|
10390
|
+
type: "RICH_TEXT";
|
|
10391
|
+
id: string;
|
|
10392
|
+
config: {
|
|
10393
|
+
content: string;
|
|
10394
|
+
};
|
|
10395
|
+
visible: boolean;
|
|
10396
|
+
order?: number | undefined;
|
|
10397
|
+
} | {
|
|
10398
|
+
type: "LEGAL";
|
|
10399
|
+
id: string;
|
|
10400
|
+
config: {
|
|
10401
|
+
text: string;
|
|
10402
|
+
html?: boolean | undefined;
|
|
10403
|
+
};
|
|
10404
|
+
visible: boolean;
|
|
10405
|
+
required?: boolean | undefined;
|
|
10406
|
+
order?: number | undefined;
|
|
10407
|
+
} | {
|
|
10408
|
+
type: "NEXT_BUTTON";
|
|
10409
|
+
id: string;
|
|
10410
|
+
config: {
|
|
10411
|
+
text?: string | undefined;
|
|
10412
|
+
};
|
|
10413
|
+
visible: boolean;
|
|
10414
|
+
order?: number | undefined;
|
|
10415
|
+
})[];
|
|
10416
|
+
next_node: string;
|
|
9866
10417
|
};
|
|
9867
10418
|
coordinates: {
|
|
9868
10419
|
x: number;
|
|
9869
10420
|
y: number;
|
|
9870
10421
|
};
|
|
9871
|
-
alias
|
|
10422
|
+
alias?: string | undefined;
|
|
9872
10423
|
}, {
|
|
9873
10424
|
type: "STEP";
|
|
9874
10425
|
id: string;
|
|
9875
10426
|
config: {
|
|
9876
|
-
components:
|
|
9877
|
-
|
|
10427
|
+
components: ({
|
|
10428
|
+
type: "RICH_TEXT";
|
|
10429
|
+
id: string;
|
|
10430
|
+
config: {
|
|
10431
|
+
content: string;
|
|
10432
|
+
};
|
|
10433
|
+
order?: number | undefined;
|
|
10434
|
+
visible?: boolean | undefined;
|
|
10435
|
+
} | {
|
|
10436
|
+
type: "LEGAL";
|
|
10437
|
+
id: string;
|
|
10438
|
+
config: {
|
|
10439
|
+
text: string;
|
|
10440
|
+
html?: boolean | undefined;
|
|
10441
|
+
};
|
|
10442
|
+
required?: boolean | undefined;
|
|
10443
|
+
order?: number | undefined;
|
|
10444
|
+
visible?: boolean | undefined;
|
|
10445
|
+
} | {
|
|
10446
|
+
type: "NEXT_BUTTON";
|
|
10447
|
+
id: string;
|
|
10448
|
+
config: {
|
|
10449
|
+
text?: string | undefined;
|
|
10450
|
+
};
|
|
10451
|
+
order?: number | undefined;
|
|
10452
|
+
visible?: boolean | undefined;
|
|
10453
|
+
})[];
|
|
10454
|
+
next_node: string;
|
|
9878
10455
|
};
|
|
9879
10456
|
coordinates: {
|
|
9880
10457
|
x: number;
|
|
9881
10458
|
y: number;
|
|
9882
10459
|
};
|
|
9883
|
-
alias
|
|
10460
|
+
alias?: string | undefined;
|
|
9884
10461
|
}>
|
|
9885
10462
|
]>, "many">>;
|
|
9886
10463
|
start: z.ZodOptional<z.ZodObject<{
|
|
@@ -9894,7 +10471,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9894
10471
|
value: string;
|
|
9895
10472
|
key: string;
|
|
9896
10473
|
}>, "many">>;
|
|
9897
|
-
next_node: z.ZodOptional<z.
|
|
10474
|
+
next_node: z.ZodOptional<z.ZodString>;
|
|
9898
10475
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
9899
10476
|
x: z.ZodNumber;
|
|
9900
10477
|
y: z.ZodNumber;
|
|
@@ -9910,7 +10487,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9910
10487
|
x: number;
|
|
9911
10488
|
y: number;
|
|
9912
10489
|
} | undefined;
|
|
9913
|
-
next_node?: string
|
|
10490
|
+
next_node?: string | undefined;
|
|
9914
10491
|
hidden_fields?: {
|
|
9915
10492
|
value: string;
|
|
9916
10493
|
key: string;
|
|
@@ -9920,7 +10497,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
9920
10497
|
x: number;
|
|
9921
10498
|
y: number;
|
|
9922
10499
|
} | undefined;
|
|
9923
|
-
next_node?: string
|
|
10500
|
+
next_node?: string | undefined;
|
|
9924
10501
|
hidden_fields?: {
|
|
9925
10502
|
value: string;
|
|
9926
10503
|
key: string;
|
|
@@ -10001,7 +10578,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10001
10578
|
x: number;
|
|
10002
10579
|
y: number;
|
|
10003
10580
|
} | undefined;
|
|
10004
|
-
next_node?: string
|
|
10581
|
+
next_node?: string | undefined;
|
|
10005
10582
|
hidden_fields?: {
|
|
10006
10583
|
value: string;
|
|
10007
10584
|
key: string;
|
|
@@ -10018,22 +10595,22 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10018
10595
|
type: "FLOW";
|
|
10019
10596
|
id: string;
|
|
10020
10597
|
config: {
|
|
10021
|
-
next_node: string
|
|
10598
|
+
next_node: string;
|
|
10022
10599
|
flow_id: string;
|
|
10023
10600
|
};
|
|
10024
10601
|
coordinates: {
|
|
10025
10602
|
x: number;
|
|
10026
10603
|
y: number;
|
|
10027
10604
|
};
|
|
10028
|
-
alias
|
|
10605
|
+
alias?: string | undefined;
|
|
10029
10606
|
} | {
|
|
10030
10607
|
type: "ROUTER";
|
|
10031
10608
|
id: string;
|
|
10032
10609
|
config: {
|
|
10033
10610
|
rules: {
|
|
10034
10611
|
id: string;
|
|
10035
|
-
|
|
10036
|
-
|
|
10612
|
+
next_node: string;
|
|
10613
|
+
alias?: string | undefined;
|
|
10037
10614
|
condition?: any;
|
|
10038
10615
|
}[];
|
|
10039
10616
|
fallback: string[];
|
|
@@ -10047,14 +10624,40 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10047
10624
|
type: "STEP";
|
|
10048
10625
|
id: string;
|
|
10049
10626
|
config: {
|
|
10050
|
-
components:
|
|
10051
|
-
|
|
10627
|
+
components: ({
|
|
10628
|
+
type: "RICH_TEXT";
|
|
10629
|
+
id: string;
|
|
10630
|
+
config: {
|
|
10631
|
+
content: string;
|
|
10632
|
+
};
|
|
10633
|
+
visible: boolean;
|
|
10634
|
+
order?: number | undefined;
|
|
10635
|
+
} | {
|
|
10636
|
+
type: "LEGAL";
|
|
10637
|
+
id: string;
|
|
10638
|
+
config: {
|
|
10639
|
+
text: string;
|
|
10640
|
+
html?: boolean | undefined;
|
|
10641
|
+
};
|
|
10642
|
+
visible: boolean;
|
|
10643
|
+
required?: boolean | undefined;
|
|
10644
|
+
order?: number | undefined;
|
|
10645
|
+
} | {
|
|
10646
|
+
type: "NEXT_BUTTON";
|
|
10647
|
+
id: string;
|
|
10648
|
+
config: {
|
|
10649
|
+
text?: string | undefined;
|
|
10650
|
+
};
|
|
10651
|
+
visible: boolean;
|
|
10652
|
+
order?: number | undefined;
|
|
10653
|
+
})[];
|
|
10654
|
+
next_node: string;
|
|
10052
10655
|
};
|
|
10053
10656
|
coordinates: {
|
|
10054
10657
|
x: number;
|
|
10055
10658
|
y: number;
|
|
10056
10659
|
};
|
|
10057
|
-
alias
|
|
10660
|
+
alias?: string | undefined;
|
|
10058
10661
|
})[] | undefined;
|
|
10059
10662
|
ending?: {
|
|
10060
10663
|
coordinates?: {
|
|
@@ -10085,7 +10688,7 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10085
10688
|
x: number;
|
|
10086
10689
|
y: number;
|
|
10087
10690
|
} | undefined;
|
|
10088
|
-
next_node?: string
|
|
10691
|
+
next_node?: string | undefined;
|
|
10089
10692
|
hidden_fields?: {
|
|
10090
10693
|
value: string;
|
|
10091
10694
|
key: string;
|
|
@@ -10102,22 +10705,22 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10102
10705
|
type: "FLOW";
|
|
10103
10706
|
id: string;
|
|
10104
10707
|
config: {
|
|
10105
|
-
next_node: string
|
|
10708
|
+
next_node: string;
|
|
10106
10709
|
flow_id: string;
|
|
10107
10710
|
};
|
|
10108
10711
|
coordinates: {
|
|
10109
10712
|
x: number;
|
|
10110
10713
|
y: number;
|
|
10111
10714
|
};
|
|
10112
|
-
alias
|
|
10715
|
+
alias?: string | undefined;
|
|
10113
10716
|
} | {
|
|
10114
10717
|
type: "ROUTER";
|
|
10115
10718
|
id: string;
|
|
10116
10719
|
config: {
|
|
10117
10720
|
rules: {
|
|
10118
10721
|
id: string;
|
|
10119
|
-
|
|
10120
|
-
|
|
10722
|
+
next_node: string;
|
|
10723
|
+
alias?: string | undefined;
|
|
10121
10724
|
condition?: any;
|
|
10122
10725
|
}[];
|
|
10123
10726
|
fallback: string[];
|
|
@@ -10131,14 +10734,40 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10131
10734
|
type: "STEP";
|
|
10132
10735
|
id: string;
|
|
10133
10736
|
config: {
|
|
10134
|
-
components:
|
|
10135
|
-
|
|
10737
|
+
components: ({
|
|
10738
|
+
type: "RICH_TEXT";
|
|
10739
|
+
id: string;
|
|
10740
|
+
config: {
|
|
10741
|
+
content: string;
|
|
10742
|
+
};
|
|
10743
|
+
order?: number | undefined;
|
|
10744
|
+
visible?: boolean | undefined;
|
|
10745
|
+
} | {
|
|
10746
|
+
type: "LEGAL";
|
|
10747
|
+
id: string;
|
|
10748
|
+
config: {
|
|
10749
|
+
text: string;
|
|
10750
|
+
html?: boolean | undefined;
|
|
10751
|
+
};
|
|
10752
|
+
required?: boolean | undefined;
|
|
10753
|
+
order?: number | undefined;
|
|
10754
|
+
visible?: boolean | undefined;
|
|
10755
|
+
} | {
|
|
10756
|
+
type: "NEXT_BUTTON";
|
|
10757
|
+
id: string;
|
|
10758
|
+
config: {
|
|
10759
|
+
text?: string | undefined;
|
|
10760
|
+
};
|
|
10761
|
+
order?: number | undefined;
|
|
10762
|
+
visible?: boolean | undefined;
|
|
10763
|
+
})[];
|
|
10764
|
+
next_node: string;
|
|
10136
10765
|
};
|
|
10137
10766
|
coordinates: {
|
|
10138
10767
|
x: number;
|
|
10139
10768
|
y: number;
|
|
10140
10769
|
};
|
|
10141
|
-
alias
|
|
10770
|
+
alias?: string | undefined;
|
|
10142
10771
|
})[] | undefined;
|
|
10143
10772
|
ending?: {
|
|
10144
10773
|
coordinates?: {
|