@opencrvs/toolkit 1.8.0-rc.f8f3eb3 → 1.8.0-rc.faeb298

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.
@@ -51,27 +51,7 @@ export declare const ActionConfigBase: z.ZodObject<{
51
51
  };
52
52
  }>;
53
53
  active: z.ZodDefault<z.ZodBoolean>;
54
- pages: z.ZodArray<z.ZodObject<{
55
- id: z.ZodString;
56
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
57
- id: string;
58
- description: string;
59
- defaultMessage: string;
60
- }>;
61
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
62
- }, "strip", z.ZodTypeAny, {
63
- id: string;
64
- title: TranslationConfig;
65
- fields: import("./FieldConfig").Inferred[];
66
- }, {
67
- id: string;
68
- title: {
69
- id: string;
70
- description: string;
71
- defaultMessage: string;
72
- };
73
- fields: import("./FieldConfig").Inferred[];
74
- }>, "many">;
54
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
75
55
  review: z.ZodObject<{
76
56
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
77
57
  id: string;
@@ -97,11 +77,29 @@ export declare const ActionConfigBase: z.ZodObject<{
97
77
  label: TranslationConfig;
98
78
  };
99
79
  label: TranslationConfig;
100
- pages: {
80
+ pages: ({
81
+ id: string;
82
+ title: TranslationConfig;
83
+ fields: import("./FieldConfig").Inferred[];
84
+ type?: "FORM" | undefined;
85
+ } | {
86
+ type: "VERIFICATION";
101
87
  id: string;
102
88
  title: TranslationConfig;
89
+ actions: {
90
+ verify: {
91
+ label: TranslationConfig;
92
+ };
93
+ cancel: {
94
+ label: TranslationConfig;
95
+ confirmation: {
96
+ title: TranslationConfig;
97
+ body: TranslationConfig;
98
+ };
99
+ };
100
+ };
103
101
  fields: import("./FieldConfig").Inferred[];
104
- }[];
102
+ })[];
105
103
  review: {
106
104
  title: TranslationConfig;
107
105
  fields: import("./FieldConfig").Inferred[];
@@ -120,15 +118,53 @@ export declare const ActionConfigBase: z.ZodObject<{
120
118
  description: string;
121
119
  defaultMessage: string;
122
120
  };
123
- pages: {
121
+ pages: ({
122
+ id: string;
123
+ title: {
124
+ id: string;
125
+ description: string;
126
+ defaultMessage: string;
127
+ };
128
+ fields: import("./FieldConfig").Inferred[];
129
+ type?: "FORM" | undefined;
130
+ } | {
131
+ type: "VERIFICATION";
124
132
  id: string;
125
133
  title: {
126
134
  id: string;
127
135
  description: string;
128
136
  defaultMessage: string;
129
137
  };
138
+ actions: {
139
+ verify: {
140
+ label: {
141
+ id: string;
142
+ description: string;
143
+ defaultMessage: string;
144
+ };
145
+ };
146
+ cancel: {
147
+ label: {
148
+ id: string;
149
+ description: string;
150
+ defaultMessage: string;
151
+ };
152
+ confirmation: {
153
+ title: {
154
+ id: string;
155
+ description: string;
156
+ defaultMessage: string;
157
+ };
158
+ body: {
159
+ id: string;
160
+ description: string;
161
+ defaultMessage: string;
162
+ };
163
+ };
164
+ };
165
+ };
130
166
  fields: import("./FieldConfig").Inferred[];
131
- }[];
167
+ })[];
132
168
  review: {
133
169
  title: {
134
170
  id: string;
@@ -155,11 +191,29 @@ export declare const ActionConfigBase: z.ZodObject<{
155
191
  label: TranslationConfig;
156
192
  };
157
193
  label: TranslationConfig;
158
- pages: {
194
+ pages: ({
159
195
  id: string;
160
196
  title: TranslationConfig;
161
197
  fields: import("./FieldConfig").Inferred[];
162
- }[];
198
+ type?: "FORM" | undefined;
199
+ } | {
200
+ type: "VERIFICATION";
201
+ id: string;
202
+ title: TranslationConfig;
203
+ actions: {
204
+ verify: {
205
+ label: TranslationConfig;
206
+ };
207
+ cancel: {
208
+ label: TranslationConfig;
209
+ confirmation: {
210
+ title: TranslationConfig;
211
+ body: TranslationConfig;
212
+ };
213
+ };
214
+ };
215
+ fields: import("./FieldConfig").Inferred[];
216
+ })[];
163
217
  review: {
164
218
  title: TranslationConfig;
165
219
  fields: import("./FieldConfig").Inferred[];
@@ -186,15 +240,53 @@ export declare const ActionConfigBase: z.ZodObject<{
186
240
  description: string;
187
241
  defaultMessage: string;
188
242
  };
189
- pages: {
243
+ pages: ({
244
+ id: string;
245
+ title: {
246
+ id: string;
247
+ description: string;
248
+ defaultMessage: string;
249
+ };
250
+ fields: import("./FieldConfig").Inferred[];
251
+ type?: "FORM" | undefined;
252
+ } | {
253
+ type: "VERIFICATION";
190
254
  id: string;
191
255
  title: {
192
256
  id: string;
193
257
  description: string;
194
258
  defaultMessage: string;
195
259
  };
260
+ actions: {
261
+ verify: {
262
+ label: {
263
+ id: string;
264
+ description: string;
265
+ defaultMessage: string;
266
+ };
267
+ };
268
+ cancel: {
269
+ label: {
270
+ id: string;
271
+ description: string;
272
+ defaultMessage: string;
273
+ };
274
+ confirmation: {
275
+ title: {
276
+ id: string;
277
+ description: string;
278
+ defaultMessage: string;
279
+ };
280
+ body: {
281
+ id: string;
282
+ description: string;
283
+ defaultMessage: string;
284
+ };
285
+ };
286
+ };
287
+ };
196
288
  fields: import("./FieldConfig").Inferred[];
197
- }[];
289
+ })[];
198
290
  review: {
199
291
  title: {
200
292
  id: string;
@@ -265,27 +357,7 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
265
357
  };
266
358
  }>;
267
359
  active: z.ZodDefault<z.ZodBoolean>;
268
- pages: z.ZodArray<z.ZodObject<{
269
- id: z.ZodString;
270
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
271
- id: string;
272
- description: string;
273
- defaultMessage: string;
274
- }>;
275
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
276
- }, "strip", z.ZodTypeAny, {
277
- id: string;
278
- title: TranslationConfig;
279
- fields: import("./FieldConfig").Inferred[];
280
- }, {
281
- id: string;
282
- title: {
283
- id: string;
284
- description: string;
285
- defaultMessage: string;
286
- };
287
- fields: import("./FieldConfig").Inferred[];
288
- }>, "many">;
360
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
289
361
  review: z.ZodObject<{
290
362
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
291
363
  id: string;
@@ -311,11 +383,29 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
311
383
  label: TranslationConfig;
312
384
  };
313
385
  label: TranslationConfig;
314
- pages: {
386
+ pages: ({
387
+ id: string;
388
+ title: TranslationConfig;
389
+ fields: import("./FieldConfig").Inferred[];
390
+ type?: "FORM" | undefined;
391
+ } | {
392
+ type: "VERIFICATION";
315
393
  id: string;
316
394
  title: TranslationConfig;
395
+ actions: {
396
+ verify: {
397
+ label: TranslationConfig;
398
+ };
399
+ cancel: {
400
+ label: TranslationConfig;
401
+ confirmation: {
402
+ title: TranslationConfig;
403
+ body: TranslationConfig;
404
+ };
405
+ };
406
+ };
317
407
  fields: import("./FieldConfig").Inferred[];
318
- }[];
408
+ })[];
319
409
  review: {
320
410
  title: TranslationConfig;
321
411
  fields: import("./FieldConfig").Inferred[];
@@ -334,15 +424,53 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
334
424
  description: string;
335
425
  defaultMessage: string;
336
426
  };
337
- pages: {
427
+ pages: ({
428
+ id: string;
429
+ title: {
430
+ id: string;
431
+ description: string;
432
+ defaultMessage: string;
433
+ };
434
+ fields: import("./FieldConfig").Inferred[];
435
+ type?: "FORM" | undefined;
436
+ } | {
437
+ type: "VERIFICATION";
338
438
  id: string;
339
439
  title: {
340
440
  id: string;
341
441
  description: string;
342
442
  defaultMessage: string;
343
443
  };
444
+ actions: {
445
+ verify: {
446
+ label: {
447
+ id: string;
448
+ description: string;
449
+ defaultMessage: string;
450
+ };
451
+ };
452
+ cancel: {
453
+ label: {
454
+ id: string;
455
+ description: string;
456
+ defaultMessage: string;
457
+ };
458
+ confirmation: {
459
+ title: {
460
+ id: string;
461
+ description: string;
462
+ defaultMessage: string;
463
+ };
464
+ body: {
465
+ id: string;
466
+ description: string;
467
+ defaultMessage: string;
468
+ };
469
+ };
470
+ };
471
+ };
344
472
  fields: import("./FieldConfig").Inferred[];
345
- }[];
473
+ })[];
346
474
  review: {
347
475
  title: {
348
476
  id: string;
@@ -372,11 +500,29 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
372
500
  label: TranslationConfig;
373
501
  };
374
502
  label: TranslationConfig;
375
- pages: {
503
+ pages: ({
504
+ id: string;
505
+ title: TranslationConfig;
506
+ fields: import("./FieldConfig").Inferred[];
507
+ type?: "FORM" | undefined;
508
+ } | {
509
+ type: "VERIFICATION";
376
510
  id: string;
377
511
  title: TranslationConfig;
512
+ actions: {
513
+ verify: {
514
+ label: TranslationConfig;
515
+ };
516
+ cancel: {
517
+ label: TranslationConfig;
518
+ confirmation: {
519
+ title: TranslationConfig;
520
+ body: TranslationConfig;
521
+ };
522
+ };
523
+ };
378
524
  fields: import("./FieldConfig").Inferred[];
379
- }[];
525
+ })[];
380
526
  review: {
381
527
  title: TranslationConfig;
382
528
  fields: import("./FieldConfig").Inferred[];
@@ -404,15 +550,53 @@ declare const DeclareConfig: z.ZodObject<z.objectUtil.extendShape<{
404
550
  description: string;
405
551
  defaultMessage: string;
406
552
  };
407
- pages: {
553
+ pages: ({
554
+ id: string;
555
+ title: {
556
+ id: string;
557
+ description: string;
558
+ defaultMessage: string;
559
+ };
560
+ fields: import("./FieldConfig").Inferred[];
561
+ type?: "FORM" | undefined;
562
+ } | {
563
+ type: "VERIFICATION";
408
564
  id: string;
409
565
  title: {
410
566
  id: string;
411
567
  description: string;
412
568
  defaultMessage: string;
413
569
  };
570
+ actions: {
571
+ verify: {
572
+ label: {
573
+ id: string;
574
+ description: string;
575
+ defaultMessage: string;
576
+ };
577
+ };
578
+ cancel: {
579
+ label: {
580
+ id: string;
581
+ description: string;
582
+ defaultMessage: string;
583
+ };
584
+ confirmation: {
585
+ title: {
586
+ id: string;
587
+ description: string;
588
+ defaultMessage: string;
589
+ };
590
+ body: {
591
+ id: string;
592
+ description: string;
593
+ defaultMessage: string;
594
+ };
595
+ };
596
+ };
597
+ };
414
598
  fields: import("./FieldConfig").Inferred[];
415
- }[];
599
+ })[];
416
600
  review: {
417
601
  title: {
418
602
  id: string;
@@ -483,27 +667,7 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
483
667
  };
484
668
  }>;
485
669
  active: z.ZodDefault<z.ZodBoolean>;
486
- pages: z.ZodArray<z.ZodObject<{
487
- id: z.ZodString;
488
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
489
- id: string;
490
- description: string;
491
- defaultMessage: string;
492
- }>;
493
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
494
- }, "strip", z.ZodTypeAny, {
495
- id: string;
496
- title: TranslationConfig;
497
- fields: import("./FieldConfig").Inferred[];
498
- }, {
499
- id: string;
500
- title: {
501
- id: string;
502
- description: string;
503
- defaultMessage: string;
504
- };
505
- fields: import("./FieldConfig").Inferred[];
506
- }>, "many">;
670
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
507
671
  review: z.ZodObject<{
508
672
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
509
673
  id: string;
@@ -529,11 +693,29 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
529
693
  label: TranslationConfig;
530
694
  };
531
695
  label: TranslationConfig;
532
- pages: {
696
+ pages: ({
533
697
  id: string;
534
698
  title: TranslationConfig;
535
699
  fields: import("./FieldConfig").Inferred[];
536
- }[];
700
+ type?: "FORM" | undefined;
701
+ } | {
702
+ type: "VERIFICATION";
703
+ id: string;
704
+ title: TranslationConfig;
705
+ actions: {
706
+ verify: {
707
+ label: TranslationConfig;
708
+ };
709
+ cancel: {
710
+ label: TranslationConfig;
711
+ confirmation: {
712
+ title: TranslationConfig;
713
+ body: TranslationConfig;
714
+ };
715
+ };
716
+ };
717
+ fields: import("./FieldConfig").Inferred[];
718
+ })[];
537
719
  review: {
538
720
  title: TranslationConfig;
539
721
  fields: import("./FieldConfig").Inferred[];
@@ -552,15 +734,53 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
552
734
  description: string;
553
735
  defaultMessage: string;
554
736
  };
555
- pages: {
737
+ pages: ({
738
+ id: string;
739
+ title: {
740
+ id: string;
741
+ description: string;
742
+ defaultMessage: string;
743
+ };
744
+ fields: import("./FieldConfig").Inferred[];
745
+ type?: "FORM" | undefined;
746
+ } | {
747
+ type: "VERIFICATION";
556
748
  id: string;
557
749
  title: {
558
750
  id: string;
559
751
  description: string;
560
752
  defaultMessage: string;
561
753
  };
754
+ actions: {
755
+ verify: {
756
+ label: {
757
+ id: string;
758
+ description: string;
759
+ defaultMessage: string;
760
+ };
761
+ };
762
+ cancel: {
763
+ label: {
764
+ id: string;
765
+ description: string;
766
+ defaultMessage: string;
767
+ };
768
+ confirmation: {
769
+ title: {
770
+ id: string;
771
+ description: string;
772
+ defaultMessage: string;
773
+ };
774
+ body: {
775
+ id: string;
776
+ description: string;
777
+ defaultMessage: string;
778
+ };
779
+ };
780
+ };
781
+ };
562
782
  fields: import("./FieldConfig").Inferred[];
563
- }[];
783
+ })[];
564
784
  review: {
565
785
  title: {
566
786
  id: string;
@@ -590,11 +810,29 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
590
810
  label: TranslationConfig;
591
811
  };
592
812
  label: TranslationConfig;
593
- pages: {
813
+ pages: ({
814
+ id: string;
815
+ title: TranslationConfig;
816
+ fields: import("./FieldConfig").Inferred[];
817
+ type?: "FORM" | undefined;
818
+ } | {
819
+ type: "VERIFICATION";
594
820
  id: string;
595
821
  title: TranslationConfig;
822
+ actions: {
823
+ verify: {
824
+ label: TranslationConfig;
825
+ };
826
+ cancel: {
827
+ label: TranslationConfig;
828
+ confirmation: {
829
+ title: TranslationConfig;
830
+ body: TranslationConfig;
831
+ };
832
+ };
833
+ };
596
834
  fields: import("./FieldConfig").Inferred[];
597
- }[];
835
+ })[];
598
836
  review: {
599
837
  title: TranslationConfig;
600
838
  fields: import("./FieldConfig").Inferred[];
@@ -622,15 +860,53 @@ declare const ValidateConfig: z.ZodObject<z.objectUtil.extendShape<{
622
860
  description: string;
623
861
  defaultMessage: string;
624
862
  };
625
- pages: {
863
+ pages: ({
864
+ id: string;
865
+ title: {
866
+ id: string;
867
+ description: string;
868
+ defaultMessage: string;
869
+ };
870
+ fields: import("./FieldConfig").Inferred[];
871
+ type?: "FORM" | undefined;
872
+ } | {
873
+ type: "VERIFICATION";
626
874
  id: string;
627
875
  title: {
628
876
  id: string;
629
877
  description: string;
630
878
  defaultMessage: string;
631
879
  };
880
+ actions: {
881
+ verify: {
882
+ label: {
883
+ id: string;
884
+ description: string;
885
+ defaultMessage: string;
886
+ };
887
+ };
888
+ cancel: {
889
+ label: {
890
+ id: string;
891
+ description: string;
892
+ defaultMessage: string;
893
+ };
894
+ confirmation: {
895
+ title: {
896
+ id: string;
897
+ description: string;
898
+ defaultMessage: string;
899
+ };
900
+ body: {
901
+ id: string;
902
+ description: string;
903
+ defaultMessage: string;
904
+ };
905
+ };
906
+ };
907
+ };
632
908
  fields: import("./FieldConfig").Inferred[];
633
- }[];
909
+ })[];
634
910
  review: {
635
911
  title: {
636
912
  id: string;
@@ -701,27 +977,7 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
701
977
  };
702
978
  }>;
703
979
  active: z.ZodDefault<z.ZodBoolean>;
704
- pages: z.ZodArray<z.ZodObject<{
705
- id: z.ZodString;
706
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
707
- id: string;
708
- description: string;
709
- defaultMessage: string;
710
- }>;
711
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
712
- }, "strip", z.ZodTypeAny, {
713
- id: string;
714
- title: TranslationConfig;
715
- fields: import("./FieldConfig").Inferred[];
716
- }, {
717
- id: string;
718
- title: {
719
- id: string;
720
- description: string;
721
- defaultMessage: string;
722
- };
723
- fields: import("./FieldConfig").Inferred[];
724
- }>, "many">;
980
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
725
981
  review: z.ZodObject<{
726
982
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
727
983
  id: string;
@@ -747,11 +1003,29 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
747
1003
  label: TranslationConfig;
748
1004
  };
749
1005
  label: TranslationConfig;
750
- pages: {
1006
+ pages: ({
1007
+ id: string;
1008
+ title: TranslationConfig;
1009
+ fields: import("./FieldConfig").Inferred[];
1010
+ type?: "FORM" | undefined;
1011
+ } | {
1012
+ type: "VERIFICATION";
751
1013
  id: string;
752
1014
  title: TranslationConfig;
1015
+ actions: {
1016
+ verify: {
1017
+ label: TranslationConfig;
1018
+ };
1019
+ cancel: {
1020
+ label: TranslationConfig;
1021
+ confirmation: {
1022
+ title: TranslationConfig;
1023
+ body: TranslationConfig;
1024
+ };
1025
+ };
1026
+ };
753
1027
  fields: import("./FieldConfig").Inferred[];
754
- }[];
1028
+ })[];
755
1029
  review: {
756
1030
  title: TranslationConfig;
757
1031
  fields: import("./FieldConfig").Inferred[];
@@ -770,15 +1044,53 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
770
1044
  description: string;
771
1045
  defaultMessage: string;
772
1046
  };
773
- pages: {
1047
+ pages: ({
1048
+ id: string;
1049
+ title: {
1050
+ id: string;
1051
+ description: string;
1052
+ defaultMessage: string;
1053
+ };
1054
+ fields: import("./FieldConfig").Inferred[];
1055
+ type?: "FORM" | undefined;
1056
+ } | {
1057
+ type: "VERIFICATION";
774
1058
  id: string;
775
1059
  title: {
776
1060
  id: string;
777
1061
  description: string;
778
1062
  defaultMessage: string;
779
1063
  };
1064
+ actions: {
1065
+ verify: {
1066
+ label: {
1067
+ id: string;
1068
+ description: string;
1069
+ defaultMessage: string;
1070
+ };
1071
+ };
1072
+ cancel: {
1073
+ label: {
1074
+ id: string;
1075
+ description: string;
1076
+ defaultMessage: string;
1077
+ };
1078
+ confirmation: {
1079
+ title: {
1080
+ id: string;
1081
+ description: string;
1082
+ defaultMessage: string;
1083
+ };
1084
+ body: {
1085
+ id: string;
1086
+ description: string;
1087
+ defaultMessage: string;
1088
+ };
1089
+ };
1090
+ };
1091
+ };
780
1092
  fields: import("./FieldConfig").Inferred[];
781
- }[];
1093
+ })[];
782
1094
  review: {
783
1095
  title: {
784
1096
  id: string;
@@ -811,11 +1123,29 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
811
1123
  label: TranslationConfig;
812
1124
  };
813
1125
  label: TranslationConfig;
814
- pages: {
1126
+ pages: ({
815
1127
  id: string;
816
1128
  title: TranslationConfig;
817
1129
  fields: import("./FieldConfig").Inferred[];
818
- }[];
1130
+ type?: "FORM" | undefined;
1131
+ } | {
1132
+ type: "VERIFICATION";
1133
+ id: string;
1134
+ title: TranslationConfig;
1135
+ actions: {
1136
+ verify: {
1137
+ label: TranslationConfig;
1138
+ };
1139
+ cancel: {
1140
+ label: TranslationConfig;
1141
+ confirmation: {
1142
+ title: TranslationConfig;
1143
+ body: TranslationConfig;
1144
+ };
1145
+ };
1146
+ };
1147
+ fields: import("./FieldConfig").Inferred[];
1148
+ })[];
819
1149
  review: {
820
1150
  title: TranslationConfig;
821
1151
  fields: import("./FieldConfig").Inferred[];
@@ -845,15 +1175,53 @@ declare const RejectDeclarationConfig: z.ZodObject<z.objectUtil.extendShape<{
845
1175
  description: string;
846
1176
  defaultMessage: string;
847
1177
  };
848
- pages: {
1178
+ pages: ({
1179
+ id: string;
1180
+ title: {
1181
+ id: string;
1182
+ description: string;
1183
+ defaultMessage: string;
1184
+ };
1185
+ fields: import("./FieldConfig").Inferred[];
1186
+ type?: "FORM" | undefined;
1187
+ } | {
1188
+ type: "VERIFICATION";
849
1189
  id: string;
850
1190
  title: {
851
1191
  id: string;
852
1192
  description: string;
853
1193
  defaultMessage: string;
854
1194
  };
1195
+ actions: {
1196
+ verify: {
1197
+ label: {
1198
+ id: string;
1199
+ description: string;
1200
+ defaultMessage: string;
1201
+ };
1202
+ };
1203
+ cancel: {
1204
+ label: {
1205
+ id: string;
1206
+ description: string;
1207
+ defaultMessage: string;
1208
+ };
1209
+ confirmation: {
1210
+ title: {
1211
+ id: string;
1212
+ description: string;
1213
+ defaultMessage: string;
1214
+ };
1215
+ body: {
1216
+ id: string;
1217
+ description: string;
1218
+ defaultMessage: string;
1219
+ };
1220
+ };
1221
+ };
1222
+ };
855
1223
  fields: import("./FieldConfig").Inferred[];
856
- }[];
1224
+ })[];
857
1225
  review: {
858
1226
  title: {
859
1227
  id: string;
@@ -925,27 +1293,7 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
925
1293
  };
926
1294
  }>;
927
1295
  active: z.ZodDefault<z.ZodBoolean>;
928
- pages: z.ZodArray<z.ZodObject<{
929
- id: z.ZodString;
930
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
931
- id: string;
932
- description: string;
933
- defaultMessage: string;
934
- }>;
935
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
936
- }, "strip", z.ZodTypeAny, {
937
- id: string;
938
- title: TranslationConfig;
939
- fields: import("./FieldConfig").Inferred[];
940
- }, {
941
- id: string;
942
- title: {
943
- id: string;
944
- description: string;
945
- defaultMessage: string;
946
- };
947
- fields: import("./FieldConfig").Inferred[];
948
- }>, "many">;
1296
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
949
1297
  review: z.ZodObject<{
950
1298
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
951
1299
  id: string;
@@ -971,11 +1319,29 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
971
1319
  label: TranslationConfig;
972
1320
  };
973
1321
  label: TranslationConfig;
974
- pages: {
1322
+ pages: ({
975
1323
  id: string;
976
1324
  title: TranslationConfig;
977
1325
  fields: import("./FieldConfig").Inferred[];
978
- }[];
1326
+ type?: "FORM" | undefined;
1327
+ } | {
1328
+ type: "VERIFICATION";
1329
+ id: string;
1330
+ title: TranslationConfig;
1331
+ actions: {
1332
+ verify: {
1333
+ label: TranslationConfig;
1334
+ };
1335
+ cancel: {
1336
+ label: TranslationConfig;
1337
+ confirmation: {
1338
+ title: TranslationConfig;
1339
+ body: TranslationConfig;
1340
+ };
1341
+ };
1342
+ };
1343
+ fields: import("./FieldConfig").Inferred[];
1344
+ })[];
979
1345
  review: {
980
1346
  title: TranslationConfig;
981
1347
  fields: import("./FieldConfig").Inferred[];
@@ -994,15 +1360,53 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
994
1360
  description: string;
995
1361
  defaultMessage: string;
996
1362
  };
997
- pages: {
1363
+ pages: ({
1364
+ id: string;
1365
+ title: {
1366
+ id: string;
1367
+ description: string;
1368
+ defaultMessage: string;
1369
+ };
1370
+ fields: import("./FieldConfig").Inferred[];
1371
+ type?: "FORM" | undefined;
1372
+ } | {
1373
+ type: "VERIFICATION";
998
1374
  id: string;
999
1375
  title: {
1000
1376
  id: string;
1001
1377
  description: string;
1002
1378
  defaultMessage: string;
1003
1379
  };
1380
+ actions: {
1381
+ verify: {
1382
+ label: {
1383
+ id: string;
1384
+ description: string;
1385
+ defaultMessage: string;
1386
+ };
1387
+ };
1388
+ cancel: {
1389
+ label: {
1390
+ id: string;
1391
+ description: string;
1392
+ defaultMessage: string;
1393
+ };
1394
+ confirmation: {
1395
+ title: {
1396
+ id: string;
1397
+ description: string;
1398
+ defaultMessage: string;
1399
+ };
1400
+ body: {
1401
+ id: string;
1402
+ description: string;
1403
+ defaultMessage: string;
1404
+ };
1405
+ };
1406
+ };
1407
+ };
1004
1408
  fields: import("./FieldConfig").Inferred[];
1005
- }[];
1409
+ })[];
1006
1410
  review: {
1007
1411
  title: {
1008
1412
  id: string;
@@ -1035,11 +1439,29 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1035
1439
  label: TranslationConfig;
1036
1440
  };
1037
1441
  label: TranslationConfig;
1038
- pages: {
1442
+ pages: ({
1443
+ id: string;
1444
+ title: TranslationConfig;
1445
+ fields: import("./FieldConfig").Inferred[];
1446
+ type?: "FORM" | undefined;
1447
+ } | {
1448
+ type: "VERIFICATION";
1039
1449
  id: string;
1040
1450
  title: TranslationConfig;
1451
+ actions: {
1452
+ verify: {
1453
+ label: TranslationConfig;
1454
+ };
1455
+ cancel: {
1456
+ label: TranslationConfig;
1457
+ confirmation: {
1458
+ title: TranslationConfig;
1459
+ body: TranslationConfig;
1460
+ };
1461
+ };
1462
+ };
1041
1463
  fields: import("./FieldConfig").Inferred[];
1042
- }[];
1464
+ })[];
1043
1465
  review: {
1044
1466
  title: TranslationConfig;
1045
1467
  fields: import("./FieldConfig").Inferred[];
@@ -1069,15 +1491,53 @@ declare const MarkedAsDuplicateConfig: z.ZodObject<z.objectUtil.extendShape<{
1069
1491
  description: string;
1070
1492
  defaultMessage: string;
1071
1493
  };
1072
- pages: {
1494
+ pages: ({
1495
+ id: string;
1496
+ title: {
1497
+ id: string;
1498
+ description: string;
1499
+ defaultMessage: string;
1500
+ };
1501
+ fields: import("./FieldConfig").Inferred[];
1502
+ type?: "FORM" | undefined;
1503
+ } | {
1504
+ type: "VERIFICATION";
1073
1505
  id: string;
1074
1506
  title: {
1075
1507
  id: string;
1076
1508
  description: string;
1077
1509
  defaultMessage: string;
1078
1510
  };
1511
+ actions: {
1512
+ verify: {
1513
+ label: {
1514
+ id: string;
1515
+ description: string;
1516
+ defaultMessage: string;
1517
+ };
1518
+ };
1519
+ cancel: {
1520
+ label: {
1521
+ id: string;
1522
+ description: string;
1523
+ defaultMessage: string;
1524
+ };
1525
+ confirmation: {
1526
+ title: {
1527
+ id: string;
1528
+ description: string;
1529
+ defaultMessage: string;
1530
+ };
1531
+ body: {
1532
+ id: string;
1533
+ description: string;
1534
+ defaultMessage: string;
1535
+ };
1536
+ };
1537
+ };
1538
+ };
1079
1539
  fields: import("./FieldConfig").Inferred[];
1080
- }[];
1540
+ })[];
1081
1541
  review: {
1082
1542
  title: {
1083
1543
  id: string;
@@ -1149,27 +1609,7 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
1149
1609
  };
1150
1610
  }>;
1151
1611
  active: z.ZodDefault<z.ZodBoolean>;
1152
- pages: z.ZodArray<z.ZodObject<{
1153
- id: z.ZodString;
1154
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1155
- id: string;
1156
- description: string;
1157
- defaultMessage: string;
1158
- }>;
1159
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1160
- }, "strip", z.ZodTypeAny, {
1161
- id: string;
1162
- title: TranslationConfig;
1163
- fields: import("./FieldConfig").Inferred[];
1164
- }, {
1165
- id: string;
1166
- title: {
1167
- id: string;
1168
- description: string;
1169
- defaultMessage: string;
1170
- };
1171
- fields: import("./FieldConfig").Inferred[];
1172
- }>, "many">;
1612
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
1173
1613
  review: z.ZodObject<{
1174
1614
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1175
1615
  id: string;
@@ -1195,11 +1635,29 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
1195
1635
  label: TranslationConfig;
1196
1636
  };
1197
1637
  label: TranslationConfig;
1198
- pages: {
1638
+ pages: ({
1639
+ id: string;
1640
+ title: TranslationConfig;
1641
+ fields: import("./FieldConfig").Inferred[];
1642
+ type?: "FORM" | undefined;
1643
+ } | {
1644
+ type: "VERIFICATION";
1199
1645
  id: string;
1200
1646
  title: TranslationConfig;
1647
+ actions: {
1648
+ verify: {
1649
+ label: TranslationConfig;
1650
+ };
1651
+ cancel: {
1652
+ label: TranslationConfig;
1653
+ confirmation: {
1654
+ title: TranslationConfig;
1655
+ body: TranslationConfig;
1656
+ };
1657
+ };
1658
+ };
1201
1659
  fields: import("./FieldConfig").Inferred[];
1202
- }[];
1660
+ })[];
1203
1661
  review: {
1204
1662
  title: TranslationConfig;
1205
1663
  fields: import("./FieldConfig").Inferred[];
@@ -1218,7 +1676,7 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
1218
1676
  description: string;
1219
1677
  defaultMessage: string;
1220
1678
  };
1221
- pages: {
1679
+ pages: ({
1222
1680
  id: string;
1223
1681
  title: {
1224
1682
  id: string;
@@ -1226,7 +1684,45 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
1226
1684
  defaultMessage: string;
1227
1685
  };
1228
1686
  fields: import("./FieldConfig").Inferred[];
1229
- }[];
1687
+ type?: "FORM" | undefined;
1688
+ } | {
1689
+ type: "VERIFICATION";
1690
+ id: string;
1691
+ title: {
1692
+ id: string;
1693
+ description: string;
1694
+ defaultMessage: string;
1695
+ };
1696
+ actions: {
1697
+ verify: {
1698
+ label: {
1699
+ id: string;
1700
+ description: string;
1701
+ defaultMessage: string;
1702
+ };
1703
+ };
1704
+ cancel: {
1705
+ label: {
1706
+ id: string;
1707
+ description: string;
1708
+ defaultMessage: string;
1709
+ };
1710
+ confirmation: {
1711
+ title: {
1712
+ id: string;
1713
+ description: string;
1714
+ defaultMessage: string;
1715
+ };
1716
+ body: {
1717
+ id: string;
1718
+ description: string;
1719
+ defaultMessage: string;
1720
+ };
1721
+ };
1722
+ };
1723
+ };
1724
+ fields: import("./FieldConfig").Inferred[];
1725
+ })[];
1230
1726
  review: {
1231
1727
  title: {
1232
1728
  id: string;
@@ -1259,11 +1755,29 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
1259
1755
  label: TranslationConfig;
1260
1756
  };
1261
1757
  label: TranslationConfig;
1262
- pages: {
1758
+ pages: ({
1263
1759
  id: string;
1264
1760
  title: TranslationConfig;
1265
1761
  fields: import("./FieldConfig").Inferred[];
1266
- }[];
1762
+ type?: "FORM" | undefined;
1763
+ } | {
1764
+ type: "VERIFICATION";
1765
+ id: string;
1766
+ title: TranslationConfig;
1767
+ actions: {
1768
+ verify: {
1769
+ label: TranslationConfig;
1770
+ };
1771
+ cancel: {
1772
+ label: TranslationConfig;
1773
+ confirmation: {
1774
+ title: TranslationConfig;
1775
+ body: TranslationConfig;
1776
+ };
1777
+ };
1778
+ };
1779
+ fields: import("./FieldConfig").Inferred[];
1780
+ })[];
1267
1781
  review: {
1268
1782
  title: TranslationConfig;
1269
1783
  fields: import("./FieldConfig").Inferred[];
@@ -1293,7 +1807,7 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
1293
1807
  description: string;
1294
1808
  defaultMessage: string;
1295
1809
  };
1296
- pages: {
1810
+ pages: ({
1297
1811
  id: string;
1298
1812
  title: {
1299
1813
  id: string;
@@ -1301,7 +1815,45 @@ declare const ArchivedConfig: z.ZodObject<z.objectUtil.extendShape<{
1301
1815
  defaultMessage: string;
1302
1816
  };
1303
1817
  fields: import("./FieldConfig").Inferred[];
1304
- }[];
1818
+ type?: "FORM" | undefined;
1819
+ } | {
1820
+ type: "VERIFICATION";
1821
+ id: string;
1822
+ title: {
1823
+ id: string;
1824
+ description: string;
1825
+ defaultMessage: string;
1826
+ };
1827
+ actions: {
1828
+ verify: {
1829
+ label: {
1830
+ id: string;
1831
+ description: string;
1832
+ defaultMessage: string;
1833
+ };
1834
+ };
1835
+ cancel: {
1836
+ label: {
1837
+ id: string;
1838
+ description: string;
1839
+ defaultMessage: string;
1840
+ };
1841
+ confirmation: {
1842
+ title: {
1843
+ id: string;
1844
+ description: string;
1845
+ defaultMessage: string;
1846
+ };
1847
+ body: {
1848
+ id: string;
1849
+ description: string;
1850
+ defaultMessage: string;
1851
+ };
1852
+ };
1853
+ };
1854
+ };
1855
+ fields: import("./FieldConfig").Inferred[];
1856
+ })[];
1305
1857
  review: {
1306
1858
  title: {
1307
1859
  id: string;
@@ -1373,27 +1925,7 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1373
1925
  };
1374
1926
  }>;
1375
1927
  active: z.ZodDefault<z.ZodBoolean>;
1376
- pages: z.ZodArray<z.ZodObject<{
1377
- id: z.ZodString;
1378
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1379
- id: string;
1380
- description: string;
1381
- defaultMessage: string;
1382
- }>;
1383
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1384
- }, "strip", z.ZodTypeAny, {
1385
- id: string;
1386
- title: TranslationConfig;
1387
- fields: import("./FieldConfig").Inferred[];
1388
- }, {
1389
- id: string;
1390
- title: {
1391
- id: string;
1392
- description: string;
1393
- defaultMessage: string;
1394
- };
1395
- fields: import("./FieldConfig").Inferred[];
1396
- }>, "many">;
1928
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
1397
1929
  review: z.ZodObject<{
1398
1930
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1399
1931
  id: string;
@@ -1419,11 +1951,29 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1419
1951
  label: TranslationConfig;
1420
1952
  };
1421
1953
  label: TranslationConfig;
1422
- pages: {
1954
+ pages: ({
1423
1955
  id: string;
1424
1956
  title: TranslationConfig;
1425
1957
  fields: import("./FieldConfig").Inferred[];
1426
- }[];
1958
+ type?: "FORM" | undefined;
1959
+ } | {
1960
+ type: "VERIFICATION";
1961
+ id: string;
1962
+ title: TranslationConfig;
1963
+ actions: {
1964
+ verify: {
1965
+ label: TranslationConfig;
1966
+ };
1967
+ cancel: {
1968
+ label: TranslationConfig;
1969
+ confirmation: {
1970
+ title: TranslationConfig;
1971
+ body: TranslationConfig;
1972
+ };
1973
+ };
1974
+ };
1975
+ fields: import("./FieldConfig").Inferred[];
1976
+ })[];
1427
1977
  review: {
1428
1978
  title: TranslationConfig;
1429
1979
  fields: import("./FieldConfig").Inferred[];
@@ -1442,15 +1992,53 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1442
1992
  description: string;
1443
1993
  defaultMessage: string;
1444
1994
  };
1445
- pages: {
1995
+ pages: ({
1996
+ id: string;
1997
+ title: {
1998
+ id: string;
1999
+ description: string;
2000
+ defaultMessage: string;
2001
+ };
2002
+ fields: import("./FieldConfig").Inferred[];
2003
+ type?: "FORM" | undefined;
2004
+ } | {
2005
+ type: "VERIFICATION";
1446
2006
  id: string;
1447
2007
  title: {
1448
2008
  id: string;
1449
2009
  description: string;
1450
2010
  defaultMessage: string;
1451
2011
  };
2012
+ actions: {
2013
+ verify: {
2014
+ label: {
2015
+ id: string;
2016
+ description: string;
2017
+ defaultMessage: string;
2018
+ };
2019
+ };
2020
+ cancel: {
2021
+ label: {
2022
+ id: string;
2023
+ description: string;
2024
+ defaultMessage: string;
2025
+ };
2026
+ confirmation: {
2027
+ title: {
2028
+ id: string;
2029
+ description: string;
2030
+ defaultMessage: string;
2031
+ };
2032
+ body: {
2033
+ id: string;
2034
+ description: string;
2035
+ defaultMessage: string;
2036
+ };
2037
+ };
2038
+ };
2039
+ };
1452
2040
  fields: import("./FieldConfig").Inferred[];
1453
- }[];
2041
+ })[];
1454
2042
  review: {
1455
2043
  title: {
1456
2044
  id: string;
@@ -1480,11 +2068,29 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1480
2068
  label: TranslationConfig;
1481
2069
  };
1482
2070
  label: TranslationConfig;
1483
- pages: {
2071
+ pages: ({
2072
+ id: string;
2073
+ title: TranslationConfig;
2074
+ fields: import("./FieldConfig").Inferred[];
2075
+ type?: "FORM" | undefined;
2076
+ } | {
2077
+ type: "VERIFICATION";
1484
2078
  id: string;
1485
2079
  title: TranslationConfig;
2080
+ actions: {
2081
+ verify: {
2082
+ label: TranslationConfig;
2083
+ };
2084
+ cancel: {
2085
+ label: TranslationConfig;
2086
+ confirmation: {
2087
+ title: TranslationConfig;
2088
+ body: TranslationConfig;
2089
+ };
2090
+ };
2091
+ };
1486
2092
  fields: import("./FieldConfig").Inferred[];
1487
- }[];
2093
+ })[];
1488
2094
  review: {
1489
2095
  title: TranslationConfig;
1490
2096
  fields: import("./FieldConfig").Inferred[];
@@ -1512,7 +2118,7 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1512
2118
  description: string;
1513
2119
  defaultMessage: string;
1514
2120
  };
1515
- pages: {
2121
+ pages: ({
1516
2122
  id: string;
1517
2123
  title: {
1518
2124
  id: string;
@@ -1520,7 +2126,45 @@ declare const RegisterConfig: z.ZodObject<z.objectUtil.extendShape<{
1520
2126
  defaultMessage: string;
1521
2127
  };
1522
2128
  fields: import("./FieldConfig").Inferred[];
1523
- }[];
2129
+ type?: "FORM" | undefined;
2130
+ } | {
2131
+ type: "VERIFICATION";
2132
+ id: string;
2133
+ title: {
2134
+ id: string;
2135
+ description: string;
2136
+ defaultMessage: string;
2137
+ };
2138
+ actions: {
2139
+ verify: {
2140
+ label: {
2141
+ id: string;
2142
+ description: string;
2143
+ defaultMessage: string;
2144
+ };
2145
+ };
2146
+ cancel: {
2147
+ label: {
2148
+ id: string;
2149
+ description: string;
2150
+ defaultMessage: string;
2151
+ };
2152
+ confirmation: {
2153
+ title: {
2154
+ id: string;
2155
+ description: string;
2156
+ defaultMessage: string;
2157
+ };
2158
+ body: {
2159
+ id: string;
2160
+ description: string;
2161
+ defaultMessage: string;
2162
+ };
2163
+ };
2164
+ };
2165
+ };
2166
+ fields: import("./FieldConfig").Inferred[];
2167
+ })[];
1524
2168
  review: {
1525
2169
  title: {
1526
2170
  id: string;
@@ -1572,46 +2216,26 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1572
2216
  description: string;
1573
2217
  defaultMessage: string;
1574
2218
  }>;
1575
- version: z.ZodObject<{
1576
- id: z.ZodString;
1577
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1578
- id: string;
1579
- description: string;
1580
- defaultMessage: string;
1581
- }>;
1582
- }, "strip", z.ZodTypeAny, {
1583
- id: string;
1584
- label: TranslationConfig;
1585
- }, {
1586
- id: string;
1587
- label: {
1588
- id: string;
1589
- description: string;
1590
- defaultMessage: string;
1591
- };
1592
- }>;
1593
- active: z.ZodDefault<z.ZodBoolean>;
1594
- pages: z.ZodArray<z.ZodObject<{
2219
+ version: z.ZodObject<{
1595
2220
  id: z.ZodString;
1596
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2221
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1597
2222
  id: string;
1598
2223
  description: string;
1599
2224
  defaultMessage: string;
1600
2225
  }>;
1601
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1602
2226
  }, "strip", z.ZodTypeAny, {
1603
2227
  id: string;
1604
- title: TranslationConfig;
1605
- fields: import("./FieldConfig").Inferred[];
2228
+ label: TranslationConfig;
1606
2229
  }, {
1607
2230
  id: string;
1608
- title: {
2231
+ label: {
1609
2232
  id: string;
1610
2233
  description: string;
1611
2234
  defaultMessage: string;
1612
2235
  };
1613
- fields: import("./FieldConfig").Inferred[];
1614
- }>, "many">;
2236
+ }>;
2237
+ active: z.ZodDefault<z.ZodBoolean>;
2238
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
1615
2239
  review: z.ZodObject<{
1616
2240
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1617
2241
  id: string;
@@ -1637,11 +2261,29 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1637
2261
  label: TranslationConfig;
1638
2262
  };
1639
2263
  label: TranslationConfig;
1640
- pages: {
2264
+ pages: ({
2265
+ id: string;
2266
+ title: TranslationConfig;
2267
+ fields: import("./FieldConfig").Inferred[];
2268
+ type?: "FORM" | undefined;
2269
+ } | {
2270
+ type: "VERIFICATION";
1641
2271
  id: string;
1642
2272
  title: TranslationConfig;
2273
+ actions: {
2274
+ verify: {
2275
+ label: TranslationConfig;
2276
+ };
2277
+ cancel: {
2278
+ label: TranslationConfig;
2279
+ confirmation: {
2280
+ title: TranslationConfig;
2281
+ body: TranslationConfig;
2282
+ };
2283
+ };
2284
+ };
1643
2285
  fields: import("./FieldConfig").Inferred[];
1644
- }[];
2286
+ })[];
1645
2287
  review: {
1646
2288
  title: TranslationConfig;
1647
2289
  fields: import("./FieldConfig").Inferred[];
@@ -1660,15 +2302,53 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1660
2302
  description: string;
1661
2303
  defaultMessage: string;
1662
2304
  };
1663
- pages: {
2305
+ pages: ({
2306
+ id: string;
2307
+ title: {
2308
+ id: string;
2309
+ description: string;
2310
+ defaultMessage: string;
2311
+ };
2312
+ fields: import("./FieldConfig").Inferred[];
2313
+ type?: "FORM" | undefined;
2314
+ } | {
2315
+ type: "VERIFICATION";
1664
2316
  id: string;
1665
2317
  title: {
1666
2318
  id: string;
1667
2319
  description: string;
1668
2320
  defaultMessage: string;
1669
2321
  };
2322
+ actions: {
2323
+ verify: {
2324
+ label: {
2325
+ id: string;
2326
+ description: string;
2327
+ defaultMessage: string;
2328
+ };
2329
+ };
2330
+ cancel: {
2331
+ label: {
2332
+ id: string;
2333
+ description: string;
2334
+ defaultMessage: string;
2335
+ };
2336
+ confirmation: {
2337
+ title: {
2338
+ id: string;
2339
+ description: string;
2340
+ defaultMessage: string;
2341
+ };
2342
+ body: {
2343
+ id: string;
2344
+ description: string;
2345
+ defaultMessage: string;
2346
+ };
2347
+ };
2348
+ };
2349
+ };
1670
2350
  fields: import("./FieldConfig").Inferred[];
1671
- }[];
2351
+ })[];
1672
2352
  review: {
1673
2353
  title: {
1674
2354
  id: string;
@@ -1698,11 +2378,29 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1698
2378
  label: TranslationConfig;
1699
2379
  };
1700
2380
  label: TranslationConfig;
1701
- pages: {
2381
+ pages: ({
2382
+ id: string;
2383
+ title: TranslationConfig;
2384
+ fields: import("./FieldConfig").Inferred[];
2385
+ type?: "FORM" | undefined;
2386
+ } | {
2387
+ type: "VERIFICATION";
1702
2388
  id: string;
1703
2389
  title: TranslationConfig;
2390
+ actions: {
2391
+ verify: {
2392
+ label: TranslationConfig;
2393
+ };
2394
+ cancel: {
2395
+ label: TranslationConfig;
2396
+ confirmation: {
2397
+ title: TranslationConfig;
2398
+ body: TranslationConfig;
2399
+ };
2400
+ };
2401
+ };
1704
2402
  fields: import("./FieldConfig").Inferred[];
1705
- }[];
2403
+ })[];
1706
2404
  review: {
1707
2405
  title: TranslationConfig;
1708
2406
  fields: import("./FieldConfig").Inferred[];
@@ -1730,15 +2428,53 @@ declare const DeleteConfig: z.ZodObject<z.objectUtil.extendShape<{
1730
2428
  description: string;
1731
2429
  defaultMessage: string;
1732
2430
  };
1733
- pages: {
2431
+ pages: ({
2432
+ id: string;
2433
+ title: {
2434
+ id: string;
2435
+ description: string;
2436
+ defaultMessage: string;
2437
+ };
2438
+ fields: import("./FieldConfig").Inferred[];
2439
+ type?: "FORM" | undefined;
2440
+ } | {
2441
+ type: "VERIFICATION";
1734
2442
  id: string;
1735
2443
  title: {
1736
2444
  id: string;
1737
2445
  description: string;
1738
2446
  defaultMessage: string;
1739
2447
  };
2448
+ actions: {
2449
+ verify: {
2450
+ label: {
2451
+ id: string;
2452
+ description: string;
2453
+ defaultMessage: string;
2454
+ };
2455
+ };
2456
+ cancel: {
2457
+ label: {
2458
+ id: string;
2459
+ description: string;
2460
+ defaultMessage: string;
2461
+ };
2462
+ confirmation: {
2463
+ title: {
2464
+ id: string;
2465
+ description: string;
2466
+ defaultMessage: string;
2467
+ };
2468
+ body: {
2469
+ id: string;
2470
+ description: string;
2471
+ defaultMessage: string;
2472
+ };
2473
+ };
2474
+ };
2475
+ };
1740
2476
  fields: import("./FieldConfig").Inferred[];
1741
- }[];
2477
+ })[];
1742
2478
  review: {
1743
2479
  title: {
1744
2480
  id: string;
@@ -1809,27 +2545,7 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1809
2545
  };
1810
2546
  }>;
1811
2547
  active: z.ZodDefault<z.ZodBoolean>;
1812
- pages: z.ZodArray<z.ZodObject<{
1813
- id: z.ZodString;
1814
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1815
- id: string;
1816
- description: string;
1817
- defaultMessage: string;
1818
- }>;
1819
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
1820
- }, "strip", z.ZodTypeAny, {
1821
- id: string;
1822
- title: TranslationConfig;
1823
- fields: import("./FieldConfig").Inferred[];
1824
- }, {
1825
- id: string;
1826
- title: {
1827
- id: string;
1828
- description: string;
1829
- defaultMessage: string;
1830
- };
1831
- fields: import("./FieldConfig").Inferred[];
1832
- }>, "many">;
2548
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
1833
2549
  review: z.ZodObject<{
1834
2550
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
1835
2551
  id: string;
@@ -1855,11 +2571,29 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1855
2571
  label: TranslationConfig;
1856
2572
  };
1857
2573
  label: TranslationConfig;
1858
- pages: {
2574
+ pages: ({
1859
2575
  id: string;
1860
2576
  title: TranslationConfig;
1861
2577
  fields: import("./FieldConfig").Inferred[];
1862
- }[];
2578
+ type?: "FORM" | undefined;
2579
+ } | {
2580
+ type: "VERIFICATION";
2581
+ id: string;
2582
+ title: TranslationConfig;
2583
+ actions: {
2584
+ verify: {
2585
+ label: TranslationConfig;
2586
+ };
2587
+ cancel: {
2588
+ label: TranslationConfig;
2589
+ confirmation: {
2590
+ title: TranslationConfig;
2591
+ body: TranslationConfig;
2592
+ };
2593
+ };
2594
+ };
2595
+ fields: import("./FieldConfig").Inferred[];
2596
+ })[];
1863
2597
  review: {
1864
2598
  title: TranslationConfig;
1865
2599
  fields: import("./FieldConfig").Inferred[];
@@ -1878,15 +2612,53 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1878
2612
  description: string;
1879
2613
  defaultMessage: string;
1880
2614
  };
1881
- pages: {
2615
+ pages: ({
2616
+ id: string;
2617
+ title: {
2618
+ id: string;
2619
+ description: string;
2620
+ defaultMessage: string;
2621
+ };
2622
+ fields: import("./FieldConfig").Inferred[];
2623
+ type?: "FORM" | undefined;
2624
+ } | {
2625
+ type: "VERIFICATION";
1882
2626
  id: string;
1883
2627
  title: {
1884
2628
  id: string;
1885
2629
  description: string;
1886
2630
  defaultMessage: string;
1887
2631
  };
2632
+ actions: {
2633
+ verify: {
2634
+ label: {
2635
+ id: string;
2636
+ description: string;
2637
+ defaultMessage: string;
2638
+ };
2639
+ };
2640
+ cancel: {
2641
+ label: {
2642
+ id: string;
2643
+ description: string;
2644
+ defaultMessage: string;
2645
+ };
2646
+ confirmation: {
2647
+ title: {
2648
+ id: string;
2649
+ description: string;
2650
+ defaultMessage: string;
2651
+ };
2652
+ body: {
2653
+ id: string;
2654
+ description: string;
2655
+ defaultMessage: string;
2656
+ };
2657
+ };
2658
+ };
2659
+ };
1888
2660
  fields: import("./FieldConfig").Inferred[];
1889
- }[];
2661
+ })[];
1890
2662
  review: {
1891
2663
  title: {
1892
2664
  id: string;
@@ -1916,11 +2688,29 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1916
2688
  label: TranslationConfig;
1917
2689
  };
1918
2690
  label: TranslationConfig;
1919
- pages: {
2691
+ pages: ({
1920
2692
  id: string;
1921
2693
  title: TranslationConfig;
1922
2694
  fields: import("./FieldConfig").Inferred[];
1923
- }[];
2695
+ type?: "FORM" | undefined;
2696
+ } | {
2697
+ type: "VERIFICATION";
2698
+ id: string;
2699
+ title: TranslationConfig;
2700
+ actions: {
2701
+ verify: {
2702
+ label: TranslationConfig;
2703
+ };
2704
+ cancel: {
2705
+ label: TranslationConfig;
2706
+ confirmation: {
2707
+ title: TranslationConfig;
2708
+ body: TranslationConfig;
2709
+ };
2710
+ };
2711
+ };
2712
+ fields: import("./FieldConfig").Inferred[];
2713
+ })[];
1924
2714
  review: {
1925
2715
  title: TranslationConfig;
1926
2716
  fields: import("./FieldConfig").Inferred[];
@@ -1948,7 +2738,7 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1948
2738
  description: string;
1949
2739
  defaultMessage: string;
1950
2740
  };
1951
- pages: {
2741
+ pages: ({
1952
2742
  id: string;
1953
2743
  title: {
1954
2744
  id: string;
@@ -1956,7 +2746,45 @@ declare const PrintCertificateActionConfig: z.ZodObject<z.objectUtil.extendShape
1956
2746
  defaultMessage: string;
1957
2747
  };
1958
2748
  fields: import("./FieldConfig").Inferred[];
1959
- }[];
2749
+ type?: "FORM" | undefined;
2750
+ } | {
2751
+ type: "VERIFICATION";
2752
+ id: string;
2753
+ title: {
2754
+ id: string;
2755
+ description: string;
2756
+ defaultMessage: string;
2757
+ };
2758
+ actions: {
2759
+ verify: {
2760
+ label: {
2761
+ id: string;
2762
+ description: string;
2763
+ defaultMessage: string;
2764
+ };
2765
+ };
2766
+ cancel: {
2767
+ label: {
2768
+ id: string;
2769
+ description: string;
2770
+ defaultMessage: string;
2771
+ };
2772
+ confirmation: {
2773
+ title: {
2774
+ id: string;
2775
+ description: string;
2776
+ defaultMessage: string;
2777
+ };
2778
+ body: {
2779
+ id: string;
2780
+ description: string;
2781
+ defaultMessage: string;
2782
+ };
2783
+ };
2784
+ };
2785
+ };
2786
+ fields: import("./FieldConfig").Inferred[];
2787
+ })[];
1960
2788
  review: {
1961
2789
  title: {
1962
2790
  id: string;
@@ -2027,27 +2855,7 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2027
2855
  };
2028
2856
  }>;
2029
2857
  active: z.ZodDefault<z.ZodBoolean>;
2030
- pages: z.ZodArray<z.ZodObject<{
2031
- id: z.ZodString;
2032
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2033
- id: string;
2034
- description: string;
2035
- defaultMessage: string;
2036
- }>;
2037
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2038
- }, "strip", z.ZodTypeAny, {
2039
- id: string;
2040
- title: TranslationConfig;
2041
- fields: import("./FieldConfig").Inferred[];
2042
- }, {
2043
- id: string;
2044
- title: {
2045
- id: string;
2046
- description: string;
2047
- defaultMessage: string;
2048
- };
2049
- fields: import("./FieldConfig").Inferred[];
2050
- }>, "many">;
2858
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
2051
2859
  review: z.ZodObject<{
2052
2860
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2053
2861
  id: string;
@@ -2073,11 +2881,29 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2073
2881
  label: TranslationConfig;
2074
2882
  };
2075
2883
  label: TranslationConfig;
2076
- pages: {
2884
+ pages: ({
2885
+ id: string;
2886
+ title: TranslationConfig;
2887
+ fields: import("./FieldConfig").Inferred[];
2888
+ type?: "FORM" | undefined;
2889
+ } | {
2890
+ type: "VERIFICATION";
2077
2891
  id: string;
2078
2892
  title: TranslationConfig;
2893
+ actions: {
2894
+ verify: {
2895
+ label: TranslationConfig;
2896
+ };
2897
+ cancel: {
2898
+ label: TranslationConfig;
2899
+ confirmation: {
2900
+ title: TranslationConfig;
2901
+ body: TranslationConfig;
2902
+ };
2903
+ };
2904
+ };
2079
2905
  fields: import("./FieldConfig").Inferred[];
2080
- }[];
2906
+ })[];
2081
2907
  review: {
2082
2908
  title: TranslationConfig;
2083
2909
  fields: import("./FieldConfig").Inferred[];
@@ -2096,15 +2922,53 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2096
2922
  description: string;
2097
2923
  defaultMessage: string;
2098
2924
  };
2099
- pages: {
2925
+ pages: ({
2926
+ id: string;
2927
+ title: {
2928
+ id: string;
2929
+ description: string;
2930
+ defaultMessage: string;
2931
+ };
2932
+ fields: import("./FieldConfig").Inferred[];
2933
+ type?: "FORM" | undefined;
2934
+ } | {
2935
+ type: "VERIFICATION";
2100
2936
  id: string;
2101
2937
  title: {
2102
2938
  id: string;
2103
2939
  description: string;
2104
2940
  defaultMessage: string;
2105
2941
  };
2942
+ actions: {
2943
+ verify: {
2944
+ label: {
2945
+ id: string;
2946
+ description: string;
2947
+ defaultMessage: string;
2948
+ };
2949
+ };
2950
+ cancel: {
2951
+ label: {
2952
+ id: string;
2953
+ description: string;
2954
+ defaultMessage: string;
2955
+ };
2956
+ confirmation: {
2957
+ title: {
2958
+ id: string;
2959
+ description: string;
2960
+ defaultMessage: string;
2961
+ };
2962
+ body: {
2963
+ id: string;
2964
+ description: string;
2965
+ defaultMessage: string;
2966
+ };
2967
+ };
2968
+ };
2969
+ };
2106
2970
  fields: import("./FieldConfig").Inferred[];
2107
- }[];
2971
+ })[];
2108
2972
  review: {
2109
2973
  title: {
2110
2974
  id: string;
@@ -2117,7 +2981,7 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2117
2981
  }>, "many">;
2118
2982
  }, {
2119
2983
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
2120
- onboardingForm: z.ZodArray<z.ZodObject<{
2984
+ onboardingForm: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2121
2985
  id: z.ZodString;
2122
2986
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2123
2987
  id: string;
@@ -2125,10 +2989,14 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2125
2989
  defaultMessage: string;
2126
2990
  }>;
2127
2991
  fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2128
- }, "strip", z.ZodTypeAny, {
2992
+ type: z.ZodDefault<z.ZodEnum<["FORM", "VERIFICATION"]>>;
2993
+ }, {
2994
+ type: z.ZodOptional<z.ZodLiteral<"FORM">>;
2995
+ }>, "strip", z.ZodTypeAny, {
2129
2996
  id: string;
2130
2997
  title: TranslationConfig;
2131
2998
  fields: import("./FieldConfig").Inferred[];
2999
+ type?: "FORM" | undefined;
2132
3000
  }, {
2133
3001
  id: string;
2134
3002
  title: {
@@ -2137,8 +3005,9 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2137
3005
  defaultMessage: string;
2138
3006
  };
2139
3007
  fields: import("./FieldConfig").Inferred[];
3008
+ type?: "FORM" | undefined;
2140
3009
  }>, "many">;
2141
- additionalDetailsForm: z.ZodArray<z.ZodObject<{
3010
+ additionalDetailsForm: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2142
3011
  id: z.ZodString;
2143
3012
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2144
3013
  id: string;
@@ -2146,10 +3015,14 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2146
3015
  defaultMessage: string;
2147
3016
  }>;
2148
3017
  fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2149
- }, "strip", z.ZodTypeAny, {
3018
+ type: z.ZodDefault<z.ZodEnum<["FORM", "VERIFICATION"]>>;
3019
+ }, {
3020
+ type: z.ZodOptional<z.ZodLiteral<"FORM">>;
3021
+ }>, "strip", z.ZodTypeAny, {
2150
3022
  id: string;
2151
3023
  title: TranslationConfig;
2152
3024
  fields: import("./FieldConfig").Inferred[];
3025
+ type?: "FORM" | undefined;
2153
3026
  }, {
2154
3027
  id: string;
2155
3028
  title: {
@@ -2158,6 +3031,7 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2158
3031
  defaultMessage: string;
2159
3032
  };
2160
3033
  fields: import("./FieldConfig").Inferred[];
3034
+ type?: "FORM" | undefined;
2161
3035
  }>, "many">;
2162
3036
  }>, "strip", z.ZodTypeAny, {
2163
3037
  type: "REQUEST_CORRECTION";
@@ -2176,11 +3050,29 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2176
3050
  label: TranslationConfig;
2177
3051
  };
2178
3052
  label: TranslationConfig;
2179
- pages: {
3053
+ pages: ({
3054
+ id: string;
3055
+ title: TranslationConfig;
3056
+ fields: import("./FieldConfig").Inferred[];
3057
+ type?: "FORM" | undefined;
3058
+ } | {
3059
+ type: "VERIFICATION";
2180
3060
  id: string;
2181
3061
  title: TranslationConfig;
3062
+ actions: {
3063
+ verify: {
3064
+ label: TranslationConfig;
3065
+ };
3066
+ cancel: {
3067
+ label: TranslationConfig;
3068
+ confirmation: {
3069
+ title: TranslationConfig;
3070
+ body: TranslationConfig;
3071
+ };
3072
+ };
3073
+ };
2182
3074
  fields: import("./FieldConfig").Inferred[];
2183
- }[];
3075
+ })[];
2184
3076
  review: {
2185
3077
  title: TranslationConfig;
2186
3078
  fields: import("./FieldConfig").Inferred[];
@@ -2190,11 +3082,13 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2190
3082
  id: string;
2191
3083
  title: TranslationConfig;
2192
3084
  fields: import("./FieldConfig").Inferred[];
3085
+ type?: "FORM" | undefined;
2193
3086
  }[];
2194
3087
  additionalDetailsForm: {
2195
3088
  id: string;
2196
3089
  title: TranslationConfig;
2197
3090
  fields: import("./FieldConfig").Inferred[];
3091
+ type?: "FORM" | undefined;
2198
3092
  }[];
2199
3093
  draft?: boolean | undefined;
2200
3094
  }, {
@@ -2218,15 +3112,53 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2218
3112
  description: string;
2219
3113
  defaultMessage: string;
2220
3114
  };
2221
- pages: {
3115
+ pages: ({
3116
+ id: string;
3117
+ title: {
3118
+ id: string;
3119
+ description: string;
3120
+ defaultMessage: string;
3121
+ };
3122
+ fields: import("./FieldConfig").Inferred[];
3123
+ type?: "FORM" | undefined;
3124
+ } | {
3125
+ type: "VERIFICATION";
2222
3126
  id: string;
2223
3127
  title: {
2224
3128
  id: string;
2225
3129
  description: string;
2226
3130
  defaultMessage: string;
2227
3131
  };
3132
+ actions: {
3133
+ verify: {
3134
+ label: {
3135
+ id: string;
3136
+ description: string;
3137
+ defaultMessage: string;
3138
+ };
3139
+ };
3140
+ cancel: {
3141
+ label: {
3142
+ id: string;
3143
+ description: string;
3144
+ defaultMessage: string;
3145
+ };
3146
+ confirmation: {
3147
+ title: {
3148
+ id: string;
3149
+ description: string;
3150
+ defaultMessage: string;
3151
+ };
3152
+ body: {
3153
+ id: string;
3154
+ description: string;
3155
+ defaultMessage: string;
3156
+ };
3157
+ };
3158
+ };
3159
+ };
2228
3160
  fields: import("./FieldConfig").Inferred[];
2229
- }[];
3161
+ })[];
2230
3162
  review: {
2231
3163
  title: {
2232
3164
  id: string;
@@ -2245,6 +3177,7 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2245
3177
  defaultMessage: string;
2246
3178
  };
2247
3179
  fields: import("./FieldConfig").Inferred[];
3180
+ type?: "FORM" | undefined;
2248
3181
  }[];
2249
3182
  additionalDetailsForm: {
2250
3183
  id: string;
@@ -2254,6 +3187,7 @@ declare const RequestCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2254
3187
  defaultMessage: string;
2255
3188
  };
2256
3189
  fields: import("./FieldConfig").Inferred[];
3190
+ type?: "FORM" | undefined;
2257
3191
  }[];
2258
3192
  draft?: boolean | undefined;
2259
3193
  conditionals?: ({
@@ -2315,27 +3249,7 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2315
3249
  };
2316
3250
  }>;
2317
3251
  active: z.ZodDefault<z.ZodBoolean>;
2318
- pages: z.ZodArray<z.ZodObject<{
2319
- id: z.ZodString;
2320
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2321
- id: string;
2322
- description: string;
2323
- defaultMessage: string;
2324
- }>;
2325
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2326
- }, "strip", z.ZodTypeAny, {
2327
- id: string;
2328
- title: TranslationConfig;
2329
- fields: import("./FieldConfig").Inferred[];
2330
- }, {
2331
- id: string;
2332
- title: {
2333
- id: string;
2334
- description: string;
2335
- defaultMessage: string;
2336
- };
2337
- fields: import("./FieldConfig").Inferred[];
2338
- }>, "many">;
3252
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
2339
3253
  review: z.ZodObject<{
2340
3254
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2341
3255
  id: string;
@@ -2361,11 +3275,29 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2361
3275
  label: TranslationConfig;
2362
3276
  };
2363
3277
  label: TranslationConfig;
2364
- pages: {
3278
+ pages: ({
3279
+ id: string;
3280
+ title: TranslationConfig;
3281
+ fields: import("./FieldConfig").Inferred[];
3282
+ type?: "FORM" | undefined;
3283
+ } | {
3284
+ type: "VERIFICATION";
2365
3285
  id: string;
2366
3286
  title: TranslationConfig;
3287
+ actions: {
3288
+ verify: {
3289
+ label: TranslationConfig;
3290
+ };
3291
+ cancel: {
3292
+ label: TranslationConfig;
3293
+ confirmation: {
3294
+ title: TranslationConfig;
3295
+ body: TranslationConfig;
3296
+ };
3297
+ };
3298
+ };
2367
3299
  fields: import("./FieldConfig").Inferred[];
2368
- }[];
3300
+ })[];
2369
3301
  review: {
2370
3302
  title: TranslationConfig;
2371
3303
  fields: import("./FieldConfig").Inferred[];
@@ -2384,15 +3316,53 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2384
3316
  description: string;
2385
3317
  defaultMessage: string;
2386
3318
  };
2387
- pages: {
3319
+ pages: ({
3320
+ id: string;
3321
+ title: {
3322
+ id: string;
3323
+ description: string;
3324
+ defaultMessage: string;
3325
+ };
3326
+ fields: import("./FieldConfig").Inferred[];
3327
+ type?: "FORM" | undefined;
3328
+ } | {
3329
+ type: "VERIFICATION";
2388
3330
  id: string;
2389
3331
  title: {
2390
3332
  id: string;
2391
3333
  description: string;
2392
3334
  defaultMessage: string;
2393
3335
  };
3336
+ actions: {
3337
+ verify: {
3338
+ label: {
3339
+ id: string;
3340
+ description: string;
3341
+ defaultMessage: string;
3342
+ };
3343
+ };
3344
+ cancel: {
3345
+ label: {
3346
+ id: string;
3347
+ description: string;
3348
+ defaultMessage: string;
3349
+ };
3350
+ confirmation: {
3351
+ title: {
3352
+ id: string;
3353
+ description: string;
3354
+ defaultMessage: string;
3355
+ };
3356
+ body: {
3357
+ id: string;
3358
+ description: string;
3359
+ defaultMessage: string;
3360
+ };
3361
+ };
3362
+ };
3363
+ };
2394
3364
  fields: import("./FieldConfig").Inferred[];
2395
- }[];
3365
+ })[];
2396
3366
  review: {
2397
3367
  title: {
2398
3368
  id: string;
@@ -2422,11 +3392,29 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2422
3392
  label: TranslationConfig;
2423
3393
  };
2424
3394
  label: TranslationConfig;
2425
- pages: {
3395
+ pages: ({
3396
+ id: string;
3397
+ title: TranslationConfig;
3398
+ fields: import("./FieldConfig").Inferred[];
3399
+ type?: "FORM" | undefined;
3400
+ } | {
3401
+ type: "VERIFICATION";
2426
3402
  id: string;
2427
3403
  title: TranslationConfig;
3404
+ actions: {
3405
+ verify: {
3406
+ label: TranslationConfig;
3407
+ };
3408
+ cancel: {
3409
+ label: TranslationConfig;
3410
+ confirmation: {
3411
+ title: TranslationConfig;
3412
+ body: TranslationConfig;
3413
+ };
3414
+ };
3415
+ };
2428
3416
  fields: import("./FieldConfig").Inferred[];
2429
- }[];
3417
+ })[];
2430
3418
  review: {
2431
3419
  title: TranslationConfig;
2432
3420
  fields: import("./FieldConfig").Inferred[];
@@ -2454,15 +3442,53 @@ declare const RejectCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2454
3442
  description: string;
2455
3443
  defaultMessage: string;
2456
3444
  };
2457
- pages: {
3445
+ pages: ({
3446
+ id: string;
3447
+ title: {
3448
+ id: string;
3449
+ description: string;
3450
+ defaultMessage: string;
3451
+ };
3452
+ fields: import("./FieldConfig").Inferred[];
3453
+ type?: "FORM" | undefined;
3454
+ } | {
3455
+ type: "VERIFICATION";
2458
3456
  id: string;
2459
3457
  title: {
2460
3458
  id: string;
2461
3459
  description: string;
2462
3460
  defaultMessage: string;
2463
3461
  };
3462
+ actions: {
3463
+ verify: {
3464
+ label: {
3465
+ id: string;
3466
+ description: string;
3467
+ defaultMessage: string;
3468
+ };
3469
+ };
3470
+ cancel: {
3471
+ label: {
3472
+ id: string;
3473
+ description: string;
3474
+ defaultMessage: string;
3475
+ };
3476
+ confirmation: {
3477
+ title: {
3478
+ id: string;
3479
+ description: string;
3480
+ defaultMessage: string;
3481
+ };
3482
+ body: {
3483
+ id: string;
3484
+ description: string;
3485
+ defaultMessage: string;
3486
+ };
3487
+ };
3488
+ };
3489
+ };
2464
3490
  fields: import("./FieldConfig").Inferred[];
2465
- }[];
3491
+ })[];
2466
3492
  review: {
2467
3493
  title: {
2468
3494
  id: string;
@@ -2533,27 +3559,7 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2533
3559
  };
2534
3560
  }>;
2535
3561
  active: z.ZodDefault<z.ZodBoolean>;
2536
- pages: z.ZodArray<z.ZodObject<{
2537
- id: z.ZodString;
2538
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2539
- id: string;
2540
- description: string;
2541
- defaultMessage: string;
2542
- }>;
2543
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2544
- }, "strip", z.ZodTypeAny, {
2545
- id: string;
2546
- title: TranslationConfig;
2547
- fields: import("./FieldConfig").Inferred[];
2548
- }, {
2549
- id: string;
2550
- title: {
2551
- id: string;
2552
- description: string;
2553
- defaultMessage: string;
2554
- };
2555
- fields: import("./FieldConfig").Inferred[];
2556
- }>, "many">;
3562
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
2557
3563
  review: z.ZodObject<{
2558
3564
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2559
3565
  id: string;
@@ -2579,11 +3585,29 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2579
3585
  label: TranslationConfig;
2580
3586
  };
2581
3587
  label: TranslationConfig;
2582
- pages: {
3588
+ pages: ({
3589
+ id: string;
3590
+ title: TranslationConfig;
3591
+ fields: import("./FieldConfig").Inferred[];
3592
+ type?: "FORM" | undefined;
3593
+ } | {
3594
+ type: "VERIFICATION";
2583
3595
  id: string;
2584
3596
  title: TranslationConfig;
3597
+ actions: {
3598
+ verify: {
3599
+ label: TranslationConfig;
3600
+ };
3601
+ cancel: {
3602
+ label: TranslationConfig;
3603
+ confirmation: {
3604
+ title: TranslationConfig;
3605
+ body: TranslationConfig;
3606
+ };
3607
+ };
3608
+ };
2585
3609
  fields: import("./FieldConfig").Inferred[];
2586
- }[];
3610
+ })[];
2587
3611
  review: {
2588
3612
  title: TranslationConfig;
2589
3613
  fields: import("./FieldConfig").Inferred[];
@@ -2602,15 +3626,53 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2602
3626
  description: string;
2603
3627
  defaultMessage: string;
2604
3628
  };
2605
- pages: {
3629
+ pages: ({
3630
+ id: string;
3631
+ title: {
3632
+ id: string;
3633
+ description: string;
3634
+ defaultMessage: string;
3635
+ };
3636
+ fields: import("./FieldConfig").Inferred[];
3637
+ type?: "FORM" | undefined;
3638
+ } | {
3639
+ type: "VERIFICATION";
2606
3640
  id: string;
2607
3641
  title: {
2608
3642
  id: string;
2609
3643
  description: string;
2610
3644
  defaultMessage: string;
2611
3645
  };
3646
+ actions: {
3647
+ verify: {
3648
+ label: {
3649
+ id: string;
3650
+ description: string;
3651
+ defaultMessage: string;
3652
+ };
3653
+ };
3654
+ cancel: {
3655
+ label: {
3656
+ id: string;
3657
+ description: string;
3658
+ defaultMessage: string;
3659
+ };
3660
+ confirmation: {
3661
+ title: {
3662
+ id: string;
3663
+ description: string;
3664
+ defaultMessage: string;
3665
+ };
3666
+ body: {
3667
+ id: string;
3668
+ description: string;
3669
+ defaultMessage: string;
3670
+ };
3671
+ };
3672
+ };
3673
+ };
2612
3674
  fields: import("./FieldConfig").Inferred[];
2613
- }[];
3675
+ })[];
2614
3676
  review: {
2615
3677
  title: {
2616
3678
  id: string;
@@ -2640,11 +3702,29 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2640
3702
  label: TranslationConfig;
2641
3703
  };
2642
3704
  label: TranslationConfig;
2643
- pages: {
3705
+ pages: ({
3706
+ id: string;
3707
+ title: TranslationConfig;
3708
+ fields: import("./FieldConfig").Inferred[];
3709
+ type?: "FORM" | undefined;
3710
+ } | {
3711
+ type: "VERIFICATION";
2644
3712
  id: string;
2645
3713
  title: TranslationConfig;
3714
+ actions: {
3715
+ verify: {
3716
+ label: TranslationConfig;
3717
+ };
3718
+ cancel: {
3719
+ label: TranslationConfig;
3720
+ confirmation: {
3721
+ title: TranslationConfig;
3722
+ body: TranslationConfig;
3723
+ };
3724
+ };
3725
+ };
2646
3726
  fields: import("./FieldConfig").Inferred[];
2647
- }[];
3727
+ })[];
2648
3728
  review: {
2649
3729
  title: TranslationConfig;
2650
3730
  fields: import("./FieldConfig").Inferred[];
@@ -2672,15 +3752,53 @@ declare const ApproveCorrectionConfig: z.ZodObject<z.objectUtil.extendShape<{
2672
3752
  description: string;
2673
3753
  defaultMessage: string;
2674
3754
  };
2675
- pages: {
3755
+ pages: ({
3756
+ id: string;
3757
+ title: {
3758
+ id: string;
3759
+ description: string;
3760
+ defaultMessage: string;
3761
+ };
3762
+ fields: import("./FieldConfig").Inferred[];
3763
+ type?: "FORM" | undefined;
3764
+ } | {
3765
+ type: "VERIFICATION";
2676
3766
  id: string;
2677
3767
  title: {
2678
3768
  id: string;
2679
3769
  description: string;
2680
3770
  defaultMessage: string;
2681
3771
  };
3772
+ actions: {
3773
+ verify: {
3774
+ label: {
3775
+ id: string;
3776
+ description: string;
3777
+ defaultMessage: string;
3778
+ };
3779
+ };
3780
+ cancel: {
3781
+ label: {
3782
+ id: string;
3783
+ description: string;
3784
+ defaultMessage: string;
3785
+ };
3786
+ confirmation: {
3787
+ title: {
3788
+ id: string;
3789
+ description: string;
3790
+ defaultMessage: string;
3791
+ };
3792
+ body: {
3793
+ id: string;
3794
+ description: string;
3795
+ defaultMessage: string;
3796
+ };
3797
+ };
3798
+ };
3799
+ };
2682
3800
  fields: import("./FieldConfig").Inferred[];
2683
- }[];
3801
+ })[];
2684
3802
  review: {
2685
3803
  title: {
2686
3804
  id: string;
@@ -2751,27 +3869,7 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2751
3869
  };
2752
3870
  }>;
2753
3871
  active: z.ZodDefault<z.ZodBoolean>;
2754
- pages: z.ZodArray<z.ZodObject<{
2755
- id: z.ZodString;
2756
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2757
- id: string;
2758
- description: string;
2759
- defaultMessage: string;
2760
- }>;
2761
- fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">;
2762
- }, "strip", z.ZodTypeAny, {
2763
- id: string;
2764
- title: TranslationConfig;
2765
- fields: import("./FieldConfig").Inferred[];
2766
- }, {
2767
- id: string;
2768
- title: {
2769
- id: string;
2770
- description: string;
2771
- defaultMessage: string;
2772
- };
2773
- fields: import("./FieldConfig").Inferred[];
2774
- }>, "many">;
3872
+ pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", import("./FormConfig").AllPageConfigs[]>, "many">;
2775
3873
  review: z.ZodObject<{
2776
3874
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
2777
3875
  id: string;
@@ -2797,11 +3895,29 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2797
3895
  label: TranslationConfig;
2798
3896
  };
2799
3897
  label: TranslationConfig;
2800
- pages: {
3898
+ pages: ({
2801
3899
  id: string;
2802
3900
  title: TranslationConfig;
2803
3901
  fields: import("./FieldConfig").Inferred[];
2804
- }[];
3902
+ type?: "FORM" | undefined;
3903
+ } | {
3904
+ type: "VERIFICATION";
3905
+ id: string;
3906
+ title: TranslationConfig;
3907
+ actions: {
3908
+ verify: {
3909
+ label: TranslationConfig;
3910
+ };
3911
+ cancel: {
3912
+ label: TranslationConfig;
3913
+ confirmation: {
3914
+ title: TranslationConfig;
3915
+ body: TranslationConfig;
3916
+ };
3917
+ };
3918
+ };
3919
+ fields: import("./FieldConfig").Inferred[];
3920
+ })[];
2805
3921
  review: {
2806
3922
  title: TranslationConfig;
2807
3923
  fields: import("./FieldConfig").Inferred[];
@@ -2820,15 +3936,53 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2820
3936
  description: string;
2821
3937
  defaultMessage: string;
2822
3938
  };
2823
- pages: {
3939
+ pages: ({
3940
+ id: string;
3941
+ title: {
3942
+ id: string;
3943
+ description: string;
3944
+ defaultMessage: string;
3945
+ };
3946
+ fields: import("./FieldConfig").Inferred[];
3947
+ type?: "FORM" | undefined;
3948
+ } | {
3949
+ type: "VERIFICATION";
2824
3950
  id: string;
2825
3951
  title: {
2826
3952
  id: string;
2827
3953
  description: string;
2828
3954
  defaultMessage: string;
2829
3955
  };
3956
+ actions: {
3957
+ verify: {
3958
+ label: {
3959
+ id: string;
3960
+ description: string;
3961
+ defaultMessage: string;
3962
+ };
3963
+ };
3964
+ cancel: {
3965
+ label: {
3966
+ id: string;
3967
+ description: string;
3968
+ defaultMessage: string;
3969
+ };
3970
+ confirmation: {
3971
+ title: {
3972
+ id: string;
3973
+ description: string;
3974
+ defaultMessage: string;
3975
+ };
3976
+ body: {
3977
+ id: string;
3978
+ description: string;
3979
+ defaultMessage: string;
3980
+ };
3981
+ };
3982
+ };
3983
+ };
2830
3984
  fields: import("./FieldConfig").Inferred[];
2831
- }[];
3985
+ })[];
2832
3986
  review: {
2833
3987
  title: {
2834
3988
  id: string;
@@ -2858,11 +4012,29 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2858
4012
  label: TranslationConfig;
2859
4013
  };
2860
4014
  label: TranslationConfig;
2861
- pages: {
4015
+ pages: ({
2862
4016
  id: string;
2863
4017
  title: TranslationConfig;
2864
4018
  fields: import("./FieldConfig").Inferred[];
2865
- }[];
4019
+ type?: "FORM" | undefined;
4020
+ } | {
4021
+ type: "VERIFICATION";
4022
+ id: string;
4023
+ title: TranslationConfig;
4024
+ actions: {
4025
+ verify: {
4026
+ label: TranslationConfig;
4027
+ };
4028
+ cancel: {
4029
+ label: TranslationConfig;
4030
+ confirmation: {
4031
+ title: TranslationConfig;
4032
+ body: TranslationConfig;
4033
+ };
4034
+ };
4035
+ };
4036
+ fields: import("./FieldConfig").Inferred[];
4037
+ })[];
2866
4038
  review: {
2867
4039
  title: TranslationConfig;
2868
4040
  fields: import("./FieldConfig").Inferred[];
@@ -2890,7 +4062,7 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2890
4062
  description: string;
2891
4063
  defaultMessage: string;
2892
4064
  };
2893
- pages: {
4065
+ pages: ({
2894
4066
  id: string;
2895
4067
  title: {
2896
4068
  id: string;
@@ -2898,7 +4070,45 @@ declare const CustomConfig: z.ZodObject<z.objectUtil.extendShape<{
2898
4070
  defaultMessage: string;
2899
4071
  };
2900
4072
  fields: import("./FieldConfig").Inferred[];
2901
- }[];
4073
+ type?: "FORM" | undefined;
4074
+ } | {
4075
+ type: "VERIFICATION";
4076
+ id: string;
4077
+ title: {
4078
+ id: string;
4079
+ description: string;
4080
+ defaultMessage: string;
4081
+ };
4082
+ actions: {
4083
+ verify: {
4084
+ label: {
4085
+ id: string;
4086
+ description: string;
4087
+ defaultMessage: string;
4088
+ };
4089
+ };
4090
+ cancel: {
4091
+ label: {
4092
+ id: string;
4093
+ description: string;
4094
+ defaultMessage: string;
4095
+ };
4096
+ confirmation: {
4097
+ title: {
4098
+ id: string;
4099
+ description: string;
4100
+ defaultMessage: string;
4101
+ };
4102
+ body: {
4103
+ id: string;
4104
+ description: string;
4105
+ defaultMessage: string;
4106
+ };
4107
+ };
4108
+ };
4109
+ };
4110
+ fields: import("./FieldConfig").Inferred[];
4111
+ })[];
2902
4112
  review: {
2903
4113
  title: {
2904
4114
  id: string;