@opencrvs/toolkit 1.8.0-rc.fca3e39 → 1.8.0-rc.fd31705

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.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const BaseActionInput: z.ZodObject<{
3
3
  eventId: z.ZodString;
4
4
  transactionId: z.ZodString;
5
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6
6
  filename: z.ZodString;
7
7
  originalFilename: z.ZodString;
8
8
  type: z.ZodString;
@@ -85,7 +85,7 @@ export declare const BaseActionInput: z.ZodObject<{
85
85
  province: string;
86
86
  urbanOrRural: "RURAL";
87
87
  village?: string | null | undefined;
88
- }>, z.ZodObject<{
88
+ }>, z.ZodUndefined, z.ZodObject<{
89
89
  country: z.ZodString;
90
90
  addressType: z.ZodLiteral<"INTERNATIONAL">;
91
91
  state: z.ZodString;
@@ -116,7 +116,7 @@ export declare const BaseActionInput: z.ZodObject<{
116
116
  addressLine3?: string | null | undefined;
117
117
  postcodeOrZip?: string | null | undefined;
118
118
  }>]>>;
119
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
119
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
120
120
  filename: z.ZodString;
121
121
  originalFilename: z.ZodString;
122
122
  type: z.ZodString;
@@ -199,7 +199,7 @@ export declare const BaseActionInput: z.ZodObject<{
199
199
  province: string;
200
200
  urbanOrRural: "RURAL";
201
201
  village?: string | null | undefined;
202
- }>, z.ZodObject<{
202
+ }>, z.ZodUndefined, z.ZodObject<{
203
203
  country: z.ZodString;
204
204
  addressType: z.ZodLiteral<"INTERNATIONAL">;
205
205
  state: z.ZodString;
@@ -230,8 +230,9 @@ export declare const BaseActionInput: z.ZodObject<{
230
230
  addressLine3?: string | null | undefined;
231
231
  postcodeOrZip?: string | null | undefined;
232
232
  }>]>>>;
233
+ originalActionId: z.ZodOptional<z.ZodString>;
233
234
  }, "strip", z.ZodTypeAny, {
234
- data: Record<string, string | number | boolean | {
235
+ declaration: Record<string, string | number | boolean | {
235
236
  type: string;
236
237
  filename: string;
237
238
  originalFilename: string;
@@ -268,10 +269,10 @@ export declare const BaseActionInput: z.ZodObject<{
268
269
  option: string;
269
270
  filename: string;
270
271
  originalFilename: string;
271
- }[]>;
272
+ }[] | undefined>;
272
273
  eventId: string;
273
274
  transactionId: string;
274
- metadata?: Record<string, string | number | boolean | {
275
+ annotation?: Record<string, string | number | boolean | {
275
276
  type: string;
276
277
  filename: string;
277
278
  originalFilename: string;
@@ -308,9 +309,10 @@ export declare const BaseActionInput: z.ZodObject<{
308
309
  option: string;
309
310
  filename: string;
310
311
  originalFilename: string;
311
- }[]> | undefined;
312
+ }[] | undefined> | undefined;
313
+ originalActionId?: string | undefined;
312
314
  }, {
313
- data: Record<string, string | number | boolean | {
315
+ declaration: Record<string, string | number | boolean | {
314
316
  type: string;
315
317
  filename: string;
316
318
  originalFilename: string;
@@ -347,10 +349,10 @@ export declare const BaseActionInput: z.ZodObject<{
347
349
  option: string;
348
350
  filename: string;
349
351
  originalFilename: string;
350
- }[]>;
352
+ }[] | undefined>;
351
353
  eventId: string;
352
354
  transactionId: string;
353
- metadata?: Record<string, string | number | boolean | {
355
+ annotation?: Record<string, string | number | boolean | {
354
356
  type: string;
355
357
  filename: string;
356
358
  originalFilename: string;
@@ -387,12 +389,13 @@ export declare const BaseActionInput: z.ZodObject<{
387
389
  option: string;
388
390
  filename: string;
389
391
  originalFilename: string;
390
- }[]> | undefined;
392
+ }[] | undefined> | undefined;
393
+ originalActionId?: string | undefined;
391
394
  }>;
392
395
  export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
393
396
  eventId: z.ZodString;
394
397
  transactionId: z.ZodString;
395
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
398
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
396
399
  filename: z.ZodString;
397
400
  originalFilename: z.ZodString;
398
401
  type: z.ZodString;
@@ -475,7 +478,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
475
478
  province: string;
476
479
  urbanOrRural: "RURAL";
477
480
  village?: string | null | undefined;
478
- }>, z.ZodObject<{
481
+ }>, z.ZodUndefined, z.ZodObject<{
479
482
  country: z.ZodString;
480
483
  addressType: z.ZodLiteral<"INTERNATIONAL">;
481
484
  state: z.ZodString;
@@ -506,7 +509,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
506
509
  addressLine3?: string | null | undefined;
507
510
  postcodeOrZip?: string | null | undefined;
508
511
  }>]>>;
509
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
512
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
510
513
  filename: z.ZodString;
511
514
  originalFilename: z.ZodString;
512
515
  type: z.ZodString;
@@ -589,7 +592,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
589
592
  province: string;
590
593
  urbanOrRural: "RURAL";
591
594
  village?: string | null | undefined;
592
- }>, z.ZodObject<{
595
+ }>, z.ZodUndefined, z.ZodObject<{
593
596
  country: z.ZodString;
594
597
  addressType: z.ZodLiteral<"INTERNATIONAL">;
595
598
  state: z.ZodString;
@@ -620,21 +623,13 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
620
623
  addressLine3?: string | null | undefined;
621
624
  postcodeOrZip?: string | null | undefined;
622
625
  }>]>>>;
626
+ originalActionId: z.ZodOptional<z.ZodString>;
623
627
  }, {
624
628
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
625
- identifiers: z.ZodObject<{
626
- trackingId: z.ZodString;
627
- registrationNumber: z.ZodString;
628
- }, "strip", z.ZodTypeAny, {
629
- trackingId: string;
630
- registrationNumber: string;
631
- }, {
632
- trackingId: string;
633
- registrationNumber: string;
634
- }>;
629
+ registrationNumber: z.ZodOptional<z.ZodString>;
635
630
  }>, "strip", z.ZodTypeAny, {
636
631
  type: "REGISTER";
637
- data: Record<string, string | number | boolean | {
632
+ declaration: Record<string, string | number | boolean | {
638
633
  type: string;
639
634
  filename: string;
640
635
  originalFilename: string;
@@ -671,14 +666,10 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
671
666
  option: string;
672
667
  filename: string;
673
668
  originalFilename: string;
674
- }[]>;
675
- identifiers: {
676
- trackingId: string;
677
- registrationNumber: string;
678
- };
669
+ }[] | undefined>;
679
670
  eventId: string;
680
671
  transactionId: string;
681
- metadata?: Record<string, string | number | boolean | {
672
+ annotation?: Record<string, string | number | boolean | {
682
673
  type: string;
683
674
  filename: string;
684
675
  originalFilename: string;
@@ -715,9 +706,11 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
715
706
  option: string;
716
707
  filename: string;
717
708
  originalFilename: string;
718
- }[]> | undefined;
709
+ }[] | undefined> | undefined;
710
+ originalActionId?: string | undefined;
711
+ registrationNumber?: string | undefined;
719
712
  }, {
720
- data: Record<string, string | number | boolean | {
713
+ declaration: Record<string, string | number | boolean | {
721
714
  type: string;
722
715
  filename: string;
723
716
  originalFilename: string;
@@ -754,15 +747,11 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
754
747
  option: string;
755
748
  filename: string;
756
749
  originalFilename: string;
757
- }[]>;
758
- identifiers: {
759
- trackingId: string;
760
- registrationNumber: string;
761
- };
750
+ }[] | undefined>;
762
751
  eventId: string;
763
752
  transactionId: string;
764
753
  type?: "REGISTER" | undefined;
765
- metadata?: Record<string, string | number | boolean | {
754
+ annotation?: Record<string, string | number | boolean | {
766
755
  type: string;
767
756
  filename: string;
768
757
  originalFilename: string;
@@ -799,13 +788,15 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
799
788
  option: string;
800
789
  filename: string;
801
790
  originalFilename: string;
802
- }[]> | undefined;
791
+ }[] | undefined> | undefined;
792
+ originalActionId?: string | undefined;
793
+ registrationNumber?: string | undefined;
803
794
  }>;
804
795
  export type RegisterActionInput = z.infer<typeof RegisterActionInput>;
805
796
  export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
806
797
  eventId: z.ZodString;
807
798
  transactionId: z.ZodString;
808
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
799
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
809
800
  filename: z.ZodString;
810
801
  originalFilename: z.ZodString;
811
802
  type: z.ZodString;
@@ -888,7 +879,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
888
879
  province: string;
889
880
  urbanOrRural: "RURAL";
890
881
  village?: string | null | undefined;
891
- }>, z.ZodObject<{
882
+ }>, z.ZodUndefined, z.ZodObject<{
892
883
  country: z.ZodString;
893
884
  addressType: z.ZodLiteral<"INTERNATIONAL">;
894
885
  state: z.ZodString;
@@ -919,7 +910,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
919
910
  addressLine3?: string | null | undefined;
920
911
  postcodeOrZip?: string | null | undefined;
921
912
  }>]>>;
922
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
913
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
923
914
  filename: z.ZodString;
924
915
  originalFilename: z.ZodString;
925
916
  type: z.ZodString;
@@ -1002,7 +993,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1002
993
  province: string;
1003
994
  urbanOrRural: "RURAL";
1004
995
  village?: string | null | undefined;
1005
- }>, z.ZodObject<{
996
+ }>, z.ZodUndefined, z.ZodObject<{
1006
997
  country: z.ZodString;
1007
998
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1008
999
  state: z.ZodString;
@@ -1033,12 +1024,13 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1033
1024
  addressLine3?: string | null | undefined;
1034
1025
  postcodeOrZip?: string | null | undefined;
1035
1026
  }>]>>>;
1027
+ originalActionId: z.ZodOptional<z.ZodString>;
1036
1028
  }, {
1037
1029
  type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
1038
1030
  duplicates: z.ZodArray<z.ZodString, "many">;
1039
1031
  }>, "strip", z.ZodTypeAny, {
1040
1032
  type: "VALIDATE";
1041
- data: Record<string, string | number | boolean | {
1033
+ declaration: Record<string, string | number | boolean | {
1042
1034
  type: string;
1043
1035
  filename: string;
1044
1036
  originalFilename: string;
@@ -1075,11 +1067,11 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1075
1067
  option: string;
1076
1068
  filename: string;
1077
1069
  originalFilename: string;
1078
- }[]>;
1070
+ }[] | undefined>;
1079
1071
  eventId: string;
1080
1072
  transactionId: string;
1081
1073
  duplicates: string[];
1082
- metadata?: Record<string, string | number | boolean | {
1074
+ annotation?: Record<string, string | number | boolean | {
1083
1075
  type: string;
1084
1076
  filename: string;
1085
1077
  originalFilename: string;
@@ -1116,9 +1108,10 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1116
1108
  option: string;
1117
1109
  filename: string;
1118
1110
  originalFilename: string;
1119
- }[]> | undefined;
1111
+ }[] | undefined> | undefined;
1112
+ originalActionId?: string | undefined;
1120
1113
  }, {
1121
- data: Record<string, string | number | boolean | {
1114
+ declaration: Record<string, string | number | boolean | {
1122
1115
  type: string;
1123
1116
  filename: string;
1124
1117
  originalFilename: string;
@@ -1155,12 +1148,12 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1155
1148
  option: string;
1156
1149
  filename: string;
1157
1150
  originalFilename: string;
1158
- }[]>;
1151
+ }[] | undefined>;
1159
1152
  eventId: string;
1160
1153
  transactionId: string;
1161
1154
  duplicates: string[];
1162
1155
  type?: "VALIDATE" | undefined;
1163
- metadata?: Record<string, string | number | boolean | {
1156
+ annotation?: Record<string, string | number | boolean | {
1164
1157
  type: string;
1165
1158
  filename: string;
1166
1159
  originalFilename: string;
@@ -1197,13 +1190,14 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1197
1190
  option: string;
1198
1191
  filename: string;
1199
1192
  originalFilename: string;
1200
- }[]> | undefined;
1193
+ }[] | undefined> | undefined;
1194
+ originalActionId?: string | undefined;
1201
1195
  }>;
1202
1196
  export type ValidateActionInput = z.infer<typeof ValidateActionInput>;
1203
1197
  export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1204
1198
  eventId: z.ZodString;
1205
1199
  transactionId: z.ZodString;
1206
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1200
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1207
1201
  filename: z.ZodString;
1208
1202
  originalFilename: z.ZodString;
1209
1203
  type: z.ZodString;
@@ -1286,7 +1280,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1286
1280
  province: string;
1287
1281
  urbanOrRural: "RURAL";
1288
1282
  village?: string | null | undefined;
1289
- }>, z.ZodObject<{
1283
+ }>, z.ZodUndefined, z.ZodObject<{
1290
1284
  country: z.ZodString;
1291
1285
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1292
1286
  state: z.ZodString;
@@ -1317,7 +1311,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1317
1311
  addressLine3?: string | null | undefined;
1318
1312
  postcodeOrZip?: string | null | undefined;
1319
1313
  }>]>>;
1320
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1314
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1321
1315
  filename: z.ZodString;
1322
1316
  originalFilename: z.ZodString;
1323
1317
  type: z.ZodString;
@@ -1400,7 +1394,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1400
1394
  province: string;
1401
1395
  urbanOrRural: "RURAL";
1402
1396
  village?: string | null | undefined;
1403
- }>, z.ZodObject<{
1397
+ }>, z.ZodUndefined, z.ZodObject<{
1404
1398
  country: z.ZodString;
1405
1399
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1406
1400
  state: z.ZodString;
@@ -1431,11 +1425,12 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1431
1425
  addressLine3?: string | null | undefined;
1432
1426
  postcodeOrZip?: string | null | undefined;
1433
1427
  }>]>>>;
1428
+ originalActionId: z.ZodOptional<z.ZodString>;
1434
1429
  }, {
1435
1430
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
1436
1431
  }>, "strip", z.ZodTypeAny, {
1437
1432
  type: "NOTIFY";
1438
- data: Record<string, string | number | boolean | {
1433
+ declaration: Record<string, string | number | boolean | {
1439
1434
  type: string;
1440
1435
  filename: string;
1441
1436
  originalFilename: string;
@@ -1472,10 +1467,10 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1472
1467
  option: string;
1473
1468
  filename: string;
1474
1469
  originalFilename: string;
1475
- }[]>;
1470
+ }[] | undefined>;
1476
1471
  eventId: string;
1477
1472
  transactionId: string;
1478
- metadata?: Record<string, string | number | boolean | {
1473
+ annotation?: Record<string, string | number | boolean | {
1479
1474
  type: string;
1480
1475
  filename: string;
1481
1476
  originalFilename: string;
@@ -1512,9 +1507,10 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1512
1507
  option: string;
1513
1508
  filename: string;
1514
1509
  originalFilename: string;
1515
- }[]> | undefined;
1510
+ }[] | undefined> | undefined;
1511
+ originalActionId?: string | undefined;
1516
1512
  }, {
1517
- data: Record<string, string | number | boolean | {
1513
+ declaration: Record<string, string | number | boolean | {
1518
1514
  type: string;
1519
1515
  filename: string;
1520
1516
  originalFilename: string;
@@ -1551,11 +1547,11 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1551
1547
  option: string;
1552
1548
  filename: string;
1553
1549
  originalFilename: string;
1554
- }[]>;
1550
+ }[] | undefined>;
1555
1551
  eventId: string;
1556
1552
  transactionId: string;
1557
1553
  type?: "NOTIFY" | undefined;
1558
- metadata?: Record<string, string | number | boolean | {
1554
+ annotation?: Record<string, string | number | boolean | {
1559
1555
  type: string;
1560
1556
  filename: string;
1561
1557
  originalFilename: string;
@@ -1592,13 +1588,14 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1592
1588
  option: string;
1593
1589
  filename: string;
1594
1590
  originalFilename: string;
1595
- }[]> | undefined;
1591
+ }[] | undefined> | undefined;
1592
+ originalActionId?: string | undefined;
1596
1593
  }>;
1597
1594
  export type NotifyActionInput = z.infer<typeof NotifyActionInput>;
1598
1595
  export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1599
1596
  eventId: z.ZodString;
1600
1597
  transactionId: z.ZodString;
1601
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1598
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1602
1599
  filename: z.ZodString;
1603
1600
  originalFilename: z.ZodString;
1604
1601
  type: z.ZodString;
@@ -1681,7 +1678,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1681
1678
  province: string;
1682
1679
  urbanOrRural: "RURAL";
1683
1680
  village?: string | null | undefined;
1684
- }>, z.ZodObject<{
1681
+ }>, z.ZodUndefined, z.ZodObject<{
1685
1682
  country: z.ZodString;
1686
1683
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1687
1684
  state: z.ZodString;
@@ -1712,7 +1709,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1712
1709
  addressLine3?: string | null | undefined;
1713
1710
  postcodeOrZip?: string | null | undefined;
1714
1711
  }>]>>;
1715
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1712
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1716
1713
  filename: z.ZodString;
1717
1714
  originalFilename: z.ZodString;
1718
1715
  type: z.ZodString;
@@ -1795,7 +1792,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1795
1792
  province: string;
1796
1793
  urbanOrRural: "RURAL";
1797
1794
  village?: string | null | undefined;
1798
- }>, z.ZodObject<{
1795
+ }>, z.ZodUndefined, z.ZodObject<{
1799
1796
  country: z.ZodString;
1800
1797
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1801
1798
  state: z.ZodString;
@@ -1826,11 +1823,12 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1826
1823
  addressLine3?: string | null | undefined;
1827
1824
  postcodeOrZip?: string | null | undefined;
1828
1825
  }>]>>>;
1826
+ originalActionId: z.ZodOptional<z.ZodString>;
1829
1827
  }, {
1830
1828
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
1831
1829
  }>, "strip", z.ZodTypeAny, {
1832
1830
  type: "DECLARE";
1833
- data: Record<string, string | number | boolean | {
1831
+ declaration: Record<string, string | number | boolean | {
1834
1832
  type: string;
1835
1833
  filename: string;
1836
1834
  originalFilename: string;
@@ -1867,10 +1865,10 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1867
1865
  option: string;
1868
1866
  filename: string;
1869
1867
  originalFilename: string;
1870
- }[]>;
1868
+ }[] | undefined>;
1871
1869
  eventId: string;
1872
1870
  transactionId: string;
1873
- metadata?: Record<string, string | number | boolean | {
1871
+ annotation?: Record<string, string | number | boolean | {
1874
1872
  type: string;
1875
1873
  filename: string;
1876
1874
  originalFilename: string;
@@ -1907,9 +1905,10 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1907
1905
  option: string;
1908
1906
  filename: string;
1909
1907
  originalFilename: string;
1910
- }[]> | undefined;
1908
+ }[] | undefined> | undefined;
1909
+ originalActionId?: string | undefined;
1911
1910
  }, {
1912
- data: Record<string, string | number | boolean | {
1911
+ declaration: Record<string, string | number | boolean | {
1913
1912
  type: string;
1914
1913
  filename: string;
1915
1914
  originalFilename: string;
@@ -1946,11 +1945,11 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1946
1945
  option: string;
1947
1946
  filename: string;
1948
1947
  originalFilename: string;
1949
- }[]>;
1948
+ }[] | undefined>;
1950
1949
  eventId: string;
1951
1950
  transactionId: string;
1952
1951
  type?: "DECLARE" | undefined;
1953
- metadata?: Record<string, string | number | boolean | {
1952
+ annotation?: Record<string, string | number | boolean | {
1954
1953
  type: string;
1955
1954
  filename: string;
1956
1955
  originalFilename: string;
@@ -1987,12 +1986,13 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1987
1986
  option: string;
1988
1987
  filename: string;
1989
1988
  originalFilename: string;
1990
- }[]> | undefined;
1989
+ }[] | undefined> | undefined;
1990
+ originalActionId?: string | undefined;
1991
1991
  }>;
1992
1992
  export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1993
1993
  eventId: z.ZodString;
1994
1994
  transactionId: z.ZodString;
1995
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1995
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1996
1996
  filename: z.ZodString;
1997
1997
  originalFilename: z.ZodString;
1998
1998
  type: z.ZodString;
@@ -2075,7 +2075,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2075
2075
  province: string;
2076
2076
  urbanOrRural: "RURAL";
2077
2077
  village?: string | null | undefined;
2078
- }>, z.ZodObject<{
2078
+ }>, z.ZodUndefined, z.ZodObject<{
2079
2079
  country: z.ZodString;
2080
2080
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2081
2081
  state: z.ZodString;
@@ -2106,7 +2106,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2106
2106
  addressLine3?: string | null | undefined;
2107
2107
  postcodeOrZip?: string | null | undefined;
2108
2108
  }>]>>;
2109
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2109
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2110
2110
  filename: z.ZodString;
2111
2111
  originalFilename: z.ZodString;
2112
2112
  type: z.ZodString;
@@ -2189,7 +2189,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2189
2189
  province: string;
2190
2190
  urbanOrRural: "RURAL";
2191
2191
  village?: string | null | undefined;
2192
- }>, z.ZodObject<{
2192
+ }>, z.ZodUndefined, z.ZodObject<{
2193
2193
  country: z.ZodString;
2194
2194
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2195
2195
  state: z.ZodString;
@@ -2220,11 +2220,12 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2220
2220
  addressLine3?: string | null | undefined;
2221
2221
  postcodeOrZip?: string | null | undefined;
2222
2222
  }>]>>>;
2223
+ originalActionId: z.ZodOptional<z.ZodString>;
2223
2224
  }, {
2224
2225
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
2225
2226
  }>, "strip", z.ZodTypeAny, {
2226
2227
  type: "PRINT_CERTIFICATE";
2227
- data: Record<string, string | number | boolean | {
2228
+ declaration: Record<string, string | number | boolean | {
2228
2229
  type: string;
2229
2230
  filename: string;
2230
2231
  originalFilename: string;
@@ -2261,10 +2262,10 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2261
2262
  option: string;
2262
2263
  filename: string;
2263
2264
  originalFilename: string;
2264
- }[]>;
2265
+ }[] | undefined>;
2265
2266
  eventId: string;
2266
2267
  transactionId: string;
2267
- metadata?: Record<string, string | number | boolean | {
2268
+ annotation?: Record<string, string | number | boolean | {
2268
2269
  type: string;
2269
2270
  filename: string;
2270
2271
  originalFilename: string;
@@ -2301,9 +2302,10 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2301
2302
  option: string;
2302
2303
  filename: string;
2303
2304
  originalFilename: string;
2304
- }[]> | undefined;
2305
+ }[] | undefined> | undefined;
2306
+ originalActionId?: string | undefined;
2305
2307
  }, {
2306
- data: Record<string, string | number | boolean | {
2308
+ declaration: Record<string, string | number | boolean | {
2307
2309
  type: string;
2308
2310
  filename: string;
2309
2311
  originalFilename: string;
@@ -2340,11 +2342,11 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2340
2342
  option: string;
2341
2343
  filename: string;
2342
2344
  originalFilename: string;
2343
- }[]>;
2345
+ }[] | undefined>;
2344
2346
  eventId: string;
2345
2347
  transactionId: string;
2346
2348
  type?: "PRINT_CERTIFICATE" | undefined;
2347
- metadata?: Record<string, string | number | boolean | {
2349
+ annotation?: Record<string, string | number | boolean | {
2348
2350
  type: string;
2349
2351
  filename: string;
2350
2352
  originalFilename: string;
@@ -2381,13 +2383,14 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2381
2383
  option: string;
2382
2384
  filename: string;
2383
2385
  originalFilename: string;
2384
- }[]> | undefined;
2386
+ }[] | undefined> | undefined;
2387
+ originalActionId?: string | undefined;
2385
2388
  }>;
2386
2389
  export type DeclareActionInput = z.infer<typeof DeclareActionInput>;
2387
2390
  export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.extendShape<{
2388
2391
  eventId: z.ZodString;
2389
2392
  transactionId: z.ZodString;
2390
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2393
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2391
2394
  filename: z.ZodString;
2392
2395
  originalFilename: z.ZodString;
2393
2396
  type: z.ZodString;
@@ -2470,7 +2473,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2470
2473
  province: string;
2471
2474
  urbanOrRural: "RURAL";
2472
2475
  village?: string | null | undefined;
2473
- }>, z.ZodObject<{
2476
+ }>, z.ZodUndefined, z.ZodObject<{
2474
2477
  country: z.ZodString;
2475
2478
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2476
2479
  state: z.ZodString;
@@ -2501,7 +2504,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2501
2504
  addressLine3?: string | null | undefined;
2502
2505
  postcodeOrZip?: string | null | undefined;
2503
2506
  }>]>>;
2504
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2507
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2505
2508
  filename: z.ZodString;
2506
2509
  originalFilename: z.ZodString;
2507
2510
  type: z.ZodString;
@@ -2584,7 +2587,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2584
2587
  province: string;
2585
2588
  urbanOrRural: "RURAL";
2586
2589
  village?: string | null | undefined;
2587
- }>, z.ZodObject<{
2590
+ }>, z.ZodUndefined, z.ZodObject<{
2588
2591
  country: z.ZodString;
2589
2592
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2590
2593
  state: z.ZodString;
@@ -2615,11 +2618,12 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2615
2618
  addressLine3?: string | null | undefined;
2616
2619
  postcodeOrZip?: string | null | undefined;
2617
2620
  }>]>>>;
2621
+ originalActionId: z.ZodOptional<z.ZodString>;
2618
2622
  }, {
2619
2623
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
2620
2624
  }>, "strip", z.ZodTypeAny, {
2621
2625
  type: "REJECT";
2622
- data: Record<string, string | number | boolean | {
2626
+ declaration: Record<string, string | number | boolean | {
2623
2627
  type: string;
2624
2628
  filename: string;
2625
2629
  originalFilename: string;
@@ -2656,10 +2660,10 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2656
2660
  option: string;
2657
2661
  filename: string;
2658
2662
  originalFilename: string;
2659
- }[]>;
2663
+ }[] | undefined>;
2660
2664
  eventId: string;
2661
2665
  transactionId: string;
2662
- metadata?: Record<string, string | number | boolean | {
2666
+ annotation?: Record<string, string | number | boolean | {
2663
2667
  type: string;
2664
2668
  filename: string;
2665
2669
  originalFilename: string;
@@ -2696,9 +2700,10 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2696
2700
  option: string;
2697
2701
  filename: string;
2698
2702
  originalFilename: string;
2699
- }[]> | undefined;
2703
+ }[] | undefined> | undefined;
2704
+ originalActionId?: string | undefined;
2700
2705
  }, {
2701
- data: Record<string, string | number | boolean | {
2706
+ declaration: Record<string, string | number | boolean | {
2702
2707
  type: string;
2703
2708
  filename: string;
2704
2709
  originalFilename: string;
@@ -2735,11 +2740,11 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2735
2740
  option: string;
2736
2741
  filename: string;
2737
2742
  originalFilename: string;
2738
- }[]>;
2743
+ }[] | undefined>;
2739
2744
  eventId: string;
2740
2745
  transactionId: string;
2741
2746
  type?: "REJECT" | undefined;
2742
- metadata?: Record<string, string | number | boolean | {
2747
+ annotation?: Record<string, string | number | boolean | {
2743
2748
  type: string;
2744
2749
  filename: string;
2745
2750
  originalFilename: string;
@@ -2776,13 +2781,14 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2776
2781
  option: string;
2777
2782
  filename: string;
2778
2783
  originalFilename: string;
2779
- }[]> | undefined;
2784
+ }[] | undefined> | undefined;
2785
+ originalActionId?: string | undefined;
2780
2786
  }>;
2781
2787
  export type RejectDeclarationActionInput = z.infer<typeof RejectDeclarationActionInput>;
2782
2788
  export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.extendShape<{
2783
2789
  eventId: z.ZodString;
2784
2790
  transactionId: z.ZodString;
2785
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2791
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2786
2792
  filename: z.ZodString;
2787
2793
  originalFilename: z.ZodString;
2788
2794
  type: z.ZodString;
@@ -2865,7 +2871,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2865
2871
  province: string;
2866
2872
  urbanOrRural: "RURAL";
2867
2873
  village?: string | null | undefined;
2868
- }>, z.ZodObject<{
2874
+ }>, z.ZodUndefined, z.ZodObject<{
2869
2875
  country: z.ZodString;
2870
2876
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2871
2877
  state: z.ZodString;
@@ -2896,7 +2902,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2896
2902
  addressLine3?: string | null | undefined;
2897
2903
  postcodeOrZip?: string | null | undefined;
2898
2904
  }>]>>;
2899
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2905
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2900
2906
  filename: z.ZodString;
2901
2907
  originalFilename: z.ZodString;
2902
2908
  type: z.ZodString;
@@ -2979,7 +2985,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2979
2985
  province: string;
2980
2986
  urbanOrRural: "RURAL";
2981
2987
  village?: string | null | undefined;
2982
- }>, z.ZodObject<{
2988
+ }>, z.ZodUndefined, z.ZodObject<{
2983
2989
  country: z.ZodString;
2984
2990
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2985
2991
  state: z.ZodString;
@@ -3010,11 +3016,12 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3010
3016
  addressLine3?: string | null | undefined;
3011
3017
  postcodeOrZip?: string | null | undefined;
3012
3018
  }>]>>>;
3019
+ originalActionId: z.ZodOptional<z.ZodString>;
3013
3020
  }, {
3014
3021
  type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
3015
3022
  }>, "strip", z.ZodTypeAny, {
3016
3023
  type: "MARKED_AS_DUPLICATE";
3017
- data: Record<string, string | number | boolean | {
3024
+ declaration: Record<string, string | number | boolean | {
3018
3025
  type: string;
3019
3026
  filename: string;
3020
3027
  originalFilename: string;
@@ -3051,10 +3058,10 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3051
3058
  option: string;
3052
3059
  filename: string;
3053
3060
  originalFilename: string;
3054
- }[]>;
3061
+ }[] | undefined>;
3055
3062
  eventId: string;
3056
3063
  transactionId: string;
3057
- metadata?: Record<string, string | number | boolean | {
3064
+ annotation?: Record<string, string | number | boolean | {
3058
3065
  type: string;
3059
3066
  filename: string;
3060
3067
  originalFilename: string;
@@ -3091,9 +3098,10 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3091
3098
  option: string;
3092
3099
  filename: string;
3093
3100
  originalFilename: string;
3094
- }[]> | undefined;
3101
+ }[] | undefined> | undefined;
3102
+ originalActionId?: string | undefined;
3095
3103
  }, {
3096
- data: Record<string, string | number | boolean | {
3104
+ declaration: Record<string, string | number | boolean | {
3097
3105
  type: string;
3098
3106
  filename: string;
3099
3107
  originalFilename: string;
@@ -3130,11 +3138,11 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3130
3138
  option: string;
3131
3139
  filename: string;
3132
3140
  originalFilename: string;
3133
- }[]>;
3141
+ }[] | undefined>;
3134
3142
  eventId: string;
3135
3143
  transactionId: string;
3136
3144
  type?: "MARKED_AS_DUPLICATE" | undefined;
3137
- metadata?: Record<string, string | number | boolean | {
3145
+ annotation?: Record<string, string | number | boolean | {
3138
3146
  type: string;
3139
3147
  filename: string;
3140
3148
  originalFilename: string;
@@ -3171,13 +3179,14 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3171
3179
  option: string;
3172
3180
  filename: string;
3173
3181
  originalFilename: string;
3174
- }[]> | undefined;
3182
+ }[] | undefined> | undefined;
3183
+ originalActionId?: string | undefined;
3175
3184
  }>;
3176
3185
  export type MarkedAsDuplicateActionInput = z.infer<typeof MarkedAsDuplicateActionInput>;
3177
3186
  export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3178
3187
  eventId: z.ZodString;
3179
3188
  transactionId: z.ZodString;
3180
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3189
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3181
3190
  filename: z.ZodString;
3182
3191
  originalFilename: z.ZodString;
3183
3192
  type: z.ZodString;
@@ -3260,7 +3269,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3260
3269
  province: string;
3261
3270
  urbanOrRural: "RURAL";
3262
3271
  village?: string | null | undefined;
3263
- }>, z.ZodObject<{
3272
+ }>, z.ZodUndefined, z.ZodObject<{
3264
3273
  country: z.ZodString;
3265
3274
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3266
3275
  state: z.ZodString;
@@ -3291,7 +3300,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3291
3300
  addressLine3?: string | null | undefined;
3292
3301
  postcodeOrZip?: string | null | undefined;
3293
3302
  }>]>>;
3294
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3303
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3295
3304
  filename: z.ZodString;
3296
3305
  originalFilename: z.ZodString;
3297
3306
  type: z.ZodString;
@@ -3374,7 +3383,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3374
3383
  province: string;
3375
3384
  urbanOrRural: "RURAL";
3376
3385
  village?: string | null | undefined;
3377
- }>, z.ZodObject<{
3386
+ }>, z.ZodUndefined, z.ZodObject<{
3378
3387
  country: z.ZodString;
3379
3388
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3380
3389
  state: z.ZodString;
@@ -3405,11 +3414,12 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3405
3414
  addressLine3?: string | null | undefined;
3406
3415
  postcodeOrZip?: string | null | undefined;
3407
3416
  }>]>>>;
3417
+ originalActionId: z.ZodOptional<z.ZodString>;
3408
3418
  }, {
3409
3419
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
3410
3420
  }>, "strip", z.ZodTypeAny, {
3411
3421
  type: "ARCHIVE";
3412
- data: Record<string, string | number | boolean | {
3422
+ declaration: Record<string, string | number | boolean | {
3413
3423
  type: string;
3414
3424
  filename: string;
3415
3425
  originalFilename: string;
@@ -3446,10 +3456,10 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3446
3456
  option: string;
3447
3457
  filename: string;
3448
3458
  originalFilename: string;
3449
- }[]>;
3459
+ }[] | undefined>;
3450
3460
  eventId: string;
3451
3461
  transactionId: string;
3452
- metadata?: Record<string, string | number | boolean | {
3462
+ annotation?: Record<string, string | number | boolean | {
3453
3463
  type: string;
3454
3464
  filename: string;
3455
3465
  originalFilename: string;
@@ -3486,9 +3496,10 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3486
3496
  option: string;
3487
3497
  filename: string;
3488
3498
  originalFilename: string;
3489
- }[]> | undefined;
3499
+ }[] | undefined> | undefined;
3500
+ originalActionId?: string | undefined;
3490
3501
  }, {
3491
- data: Record<string, string | number | boolean | {
3502
+ declaration: Record<string, string | number | boolean | {
3492
3503
  type: string;
3493
3504
  filename: string;
3494
3505
  originalFilename: string;
@@ -3525,11 +3536,11 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3525
3536
  option: string;
3526
3537
  filename: string;
3527
3538
  originalFilename: string;
3528
- }[]>;
3539
+ }[] | undefined>;
3529
3540
  eventId: string;
3530
3541
  transactionId: string;
3531
3542
  type?: "ARCHIVE" | undefined;
3532
- metadata?: Record<string, string | number | boolean | {
3543
+ annotation?: Record<string, string | number | boolean | {
3533
3544
  type: string;
3534
3545
  filename: string;
3535
3546
  originalFilename: string;
@@ -3566,13 +3577,14 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3566
3577
  option: string;
3567
3578
  filename: string;
3568
3579
  originalFilename: string;
3569
- }[]> | undefined;
3580
+ }[] | undefined> | undefined;
3581
+ originalActionId?: string | undefined;
3570
3582
  }>;
3571
3583
  export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
3572
- export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
3584
+ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3573
3585
  eventId: z.ZodString;
3574
3586
  transactionId: z.ZodString;
3575
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3587
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3576
3588
  filename: z.ZodString;
3577
3589
  originalFilename: z.ZodString;
3578
3590
  type: z.ZodString;
@@ -3655,7 +3667,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3655
3667
  province: string;
3656
3668
  urbanOrRural: "RURAL";
3657
3669
  village?: string | null | undefined;
3658
- }>, z.ZodObject<{
3670
+ }>, z.ZodUndefined, z.ZodObject<{
3659
3671
  country: z.ZodString;
3660
3672
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3661
3673
  state: z.ZodString;
@@ -3686,7 +3698,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3686
3698
  addressLine3?: string | null | undefined;
3687
3699
  postcodeOrZip?: string | null | undefined;
3688
3700
  }>]>>;
3689
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3701
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3690
3702
  filename: z.ZodString;
3691
3703
  originalFilename: z.ZodString;
3692
3704
  type: z.ZodString;
@@ -3769,7 +3781,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3769
3781
  province: string;
3770
3782
  urbanOrRural: "RURAL";
3771
3783
  village?: string | null | undefined;
3772
- }>, z.ZodObject<{
3784
+ }>, z.ZodUndefined, z.ZodObject<{
3773
3785
  country: z.ZodString;
3774
3786
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3775
3787
  state: z.ZodString;
@@ -3800,11 +3812,13 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3800
3812
  addressLine3?: string | null | undefined;
3801
3813
  postcodeOrZip?: string | null | undefined;
3802
3814
  }>]>>>;
3815
+ originalActionId: z.ZodOptional<z.ZodString>;
3803
3816
  }, {
3804
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
3817
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
3818
+ assignedTo: z.ZodString;
3805
3819
  }>, "strip", z.ZodTypeAny, {
3806
- type: "REQUEST_CORRECTION";
3807
- data: Record<string, string | number | boolean | {
3820
+ type: "ASSIGN";
3821
+ declaration: Record<string, string | number | boolean | {
3808
3822
  type: string;
3809
3823
  filename: string;
3810
3824
  originalFilename: string;
@@ -3841,10 +3855,11 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3841
3855
  option: string;
3842
3856
  filename: string;
3843
3857
  originalFilename: string;
3844
- }[]>;
3858
+ }[] | undefined>;
3859
+ assignedTo: string;
3845
3860
  eventId: string;
3846
3861
  transactionId: string;
3847
- metadata?: Record<string, string | number | boolean | {
3862
+ annotation?: Record<string, string | number | boolean | {
3848
3863
  type: string;
3849
3864
  filename: string;
3850
3865
  originalFilename: string;
@@ -3881,9 +3896,10 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3881
3896
  option: string;
3882
3897
  filename: string;
3883
3898
  originalFilename: string;
3884
- }[]> | undefined;
3899
+ }[] | undefined> | undefined;
3900
+ originalActionId?: string | undefined;
3885
3901
  }, {
3886
- data: Record<string, string | number | boolean | {
3902
+ declaration: Record<string, string | number | boolean | {
3887
3903
  type: string;
3888
3904
  filename: string;
3889
3905
  originalFilename: string;
@@ -3920,11 +3936,12 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3920
3936
  option: string;
3921
3937
  filename: string;
3922
3938
  originalFilename: string;
3923
- }[]>;
3939
+ }[] | undefined>;
3940
+ assignedTo: string;
3924
3941
  eventId: string;
3925
3942
  transactionId: string;
3926
- type?: "REQUEST_CORRECTION" | undefined;
3927
- metadata?: Record<string, string | number | boolean | {
3943
+ type?: "ASSIGN" | undefined;
3944
+ annotation?: Record<string, string | number | boolean | {
3928
3945
  type: string;
3929
3946
  filename: string;
3930
3947
  originalFilename: string;
@@ -3961,13 +3978,14 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3961
3978
  option: string;
3962
3979
  filename: string;
3963
3980
  originalFilename: string;
3964
- }[]> | undefined;
3981
+ }[] | undefined> | undefined;
3982
+ originalActionId?: string | undefined;
3965
3983
  }>;
3966
- export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActionInput>;
3967
- export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
3984
+ export type AssignActionInput = z.infer<typeof AssignActionInput>;
3985
+ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3968
3986
  eventId: z.ZodString;
3969
3987
  transactionId: z.ZodString;
3970
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3988
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3971
3989
  filename: z.ZodString;
3972
3990
  originalFilename: z.ZodString;
3973
3991
  type: z.ZodString;
@@ -4050,7 +4068,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4050
4068
  province: string;
4051
4069
  urbanOrRural: "RURAL";
4052
4070
  village?: string | null | undefined;
4053
- }>, z.ZodObject<{
4071
+ }>, z.ZodUndefined, z.ZodObject<{
4054
4072
  country: z.ZodString;
4055
4073
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4056
4074
  state: z.ZodString;
@@ -4081,7 +4099,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4081
4099
  addressLine3?: string | null | undefined;
4082
4100
  postcodeOrZip?: string | null | undefined;
4083
4101
  }>]>>;
4084
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4102
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4085
4103
  filename: z.ZodString;
4086
4104
  originalFilename: z.ZodString;
4087
4105
  type: z.ZodString;
@@ -4164,7 +4182,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4164
4182
  province: string;
4165
4183
  urbanOrRural: "RURAL";
4166
4184
  village?: string | null | undefined;
4167
- }>, z.ZodObject<{
4185
+ }>, z.ZodUndefined, z.ZodObject<{
4168
4186
  country: z.ZodString;
4169
4187
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4170
4188
  state: z.ZodString;
@@ -4195,12 +4213,13 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4195
4213
  addressLine3?: string | null | undefined;
4196
4214
  postcodeOrZip?: string | null | undefined;
4197
4215
  }>]>>>;
4216
+ originalActionId: z.ZodOptional<z.ZodString>;
4198
4217
  }, {
4199
- requestId: z.ZodString;
4200
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
4218
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
4219
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
4201
4220
  }>, "strip", z.ZodTypeAny, {
4202
- type: "REJECT_CORRECTION";
4203
- data: Record<string, string | number | boolean | {
4221
+ type: "UNASSIGN";
4222
+ declaration: Record<string, string | number | boolean | {
4204
4223
  type: string;
4205
4224
  filename: string;
4206
4225
  originalFilename: string;
@@ -4237,11 +4256,11 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4237
4256
  option: string;
4238
4257
  filename: string;
4239
4258
  originalFilename: string;
4240
- }[]>;
4241
- requestId: string;
4259
+ }[] | undefined>;
4260
+ assignedTo: null;
4242
4261
  eventId: string;
4243
4262
  transactionId: string;
4244
- metadata?: Record<string, string | number | boolean | {
4263
+ annotation?: Record<string, string | number | boolean | {
4245
4264
  type: string;
4246
4265
  filename: string;
4247
4266
  originalFilename: string;
@@ -4278,9 +4297,10 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4278
4297
  option: string;
4279
4298
  filename: string;
4280
4299
  originalFilename: string;
4281
- }[]> | undefined;
4300
+ }[] | undefined> | undefined;
4301
+ originalActionId?: string | undefined;
4282
4302
  }, {
4283
- data: Record<string, string | number | boolean | {
4303
+ declaration: Record<string, string | number | boolean | {
4284
4304
  type: string;
4285
4305
  filename: string;
4286
4306
  originalFilename: string;
@@ -4317,12 +4337,11 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4317
4337
  option: string;
4318
4338
  filename: string;
4319
4339
  originalFilename: string;
4320
- }[]>;
4321
- requestId: string;
4340
+ }[] | undefined>;
4322
4341
  eventId: string;
4323
4342
  transactionId: string;
4324
- type?: "REJECT_CORRECTION" | undefined;
4325
- metadata?: Record<string, string | number | boolean | {
4343
+ type?: "UNASSIGN" | undefined;
4344
+ annotation?: Record<string, string | number | boolean | {
4326
4345
  type: string;
4327
4346
  filename: string;
4328
4347
  originalFilename: string;
@@ -4359,13 +4378,15 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4359
4378
  option: string;
4360
4379
  filename: string;
4361
4380
  originalFilename: string;
4362
- }[]> | undefined;
4381
+ }[] | undefined> | undefined;
4382
+ originalActionId?: string | undefined;
4383
+ assignedTo?: null | undefined;
4363
4384
  }>;
4364
- export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionInput>;
4365
- export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4385
+ export type UnassignActionInput = z.infer<typeof UnassignActionInput>;
4386
+ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4366
4387
  eventId: z.ZodString;
4367
4388
  transactionId: z.ZodString;
4368
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4389
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4369
4390
  filename: z.ZodString;
4370
4391
  originalFilename: z.ZodString;
4371
4392
  type: z.ZodString;
@@ -4448,7 +4469,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4448
4469
  province: string;
4449
4470
  urbanOrRural: "RURAL";
4450
4471
  village?: string | null | undefined;
4451
- }>, z.ZodObject<{
4472
+ }>, z.ZodUndefined, z.ZodObject<{
4452
4473
  country: z.ZodString;
4453
4474
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4454
4475
  state: z.ZodString;
@@ -4479,7 +4500,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4479
4500
  addressLine3?: string | null | undefined;
4480
4501
  postcodeOrZip?: string | null | undefined;
4481
4502
  }>]>>;
4482
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4503
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4483
4504
  filename: z.ZodString;
4484
4505
  originalFilename: z.ZodString;
4485
4506
  type: z.ZodString;
@@ -4562,7 +4583,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4562
4583
  province: string;
4563
4584
  urbanOrRural: "RURAL";
4564
4585
  village?: string | null | undefined;
4565
- }>, z.ZodObject<{
4586
+ }>, z.ZodUndefined, z.ZodObject<{
4566
4587
  country: z.ZodString;
4567
4588
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4568
4589
  state: z.ZodString;
@@ -4593,12 +4614,12 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4593
4614
  addressLine3?: string | null | undefined;
4594
4615
  postcodeOrZip?: string | null | undefined;
4595
4616
  }>]>>>;
4617
+ originalActionId: z.ZodOptional<z.ZodString>;
4596
4618
  }, {
4597
- requestId: z.ZodString;
4598
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
4619
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
4599
4620
  }>, "strip", z.ZodTypeAny, {
4600
- type: "APPROVE_CORRECTION";
4601
- data: Record<string, string | number | boolean | {
4621
+ type: "REQUEST_CORRECTION";
4622
+ declaration: Record<string, string | number | boolean | {
4602
4623
  type: string;
4603
4624
  filename: string;
4604
4625
  originalFilename: string;
@@ -4635,11 +4656,10 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4635
4656
  option: string;
4636
4657
  filename: string;
4637
4658
  originalFilename: string;
4638
- }[]>;
4639
- requestId: string;
4659
+ }[] | undefined>;
4640
4660
  eventId: string;
4641
4661
  transactionId: string;
4642
- metadata?: Record<string, string | number | boolean | {
4662
+ annotation?: Record<string, string | number | boolean | {
4643
4663
  type: string;
4644
4664
  filename: string;
4645
4665
  originalFilename: string;
@@ -4676,9 +4696,10 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4676
4696
  option: string;
4677
4697
  filename: string;
4678
4698
  originalFilename: string;
4679
- }[]> | undefined;
4699
+ }[] | undefined> | undefined;
4700
+ originalActionId?: string | undefined;
4680
4701
  }, {
4681
- data: Record<string, string | number | boolean | {
4702
+ declaration: Record<string, string | number | boolean | {
4682
4703
  type: string;
4683
4704
  filename: string;
4684
4705
  originalFilename: string;
@@ -4715,12 +4736,11 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4715
4736
  option: string;
4716
4737
  filename: string;
4717
4738
  originalFilename: string;
4718
- }[]>;
4719
- requestId: string;
4739
+ }[] | undefined>;
4720
4740
  eventId: string;
4721
4741
  transactionId: string;
4722
- type?: "APPROVE_CORRECTION" | undefined;
4723
- metadata?: Record<string, string | number | boolean | {
4742
+ type?: "REQUEST_CORRECTION" | undefined;
4743
+ annotation?: Record<string, string | number | boolean | {
4724
4744
  type: string;
4725
4745
  filename: string;
4726
4746
  originalFilename: string;
@@ -4757,21 +4777,14 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4757
4777
  option: string;
4758
4778
  filename: string;
4759
4779
  originalFilename: string;
4760
- }[]> | undefined;
4780
+ }[] | undefined> | undefined;
4781
+ originalActionId?: string | undefined;
4761
4782
  }>;
4762
- export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
4763
- /**
4764
- * ActionInput types are used to validate the input data for the action.
4765
- * In our use case, we use it directly with TRPC to validate the input data for the action.
4766
- * using z.literal(ActionType.ACTION).default(ActionType.ACTION) makes them more convenient to use
4767
- * without having to pass the type in the input data, when it's defined in the method.
4768
- *
4769
- * e.g. mutation.declare({createdAt: new Date()}) vs mutation.declare({createdAt: new Date(), type: 'DECLARE'})
4770
- */
4771
- export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
4783
+ export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActionInput>;
4784
+ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4772
4785
  eventId: z.ZodString;
4773
4786
  transactionId: z.ZodString;
4774
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4787
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4775
4788
  filename: z.ZodString;
4776
4789
  originalFilename: z.ZodString;
4777
4790
  type: z.ZodString;
@@ -4854,7 +4867,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4854
4867
  province: string;
4855
4868
  urbanOrRural: "RURAL";
4856
4869
  village?: string | null | undefined;
4857
- }>, z.ZodObject<{
4870
+ }>, z.ZodUndefined, z.ZodObject<{
4858
4871
  country: z.ZodString;
4859
4872
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4860
4873
  state: z.ZodString;
@@ -4885,7 +4898,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4885
4898
  addressLine3?: string | null | undefined;
4886
4899
  postcodeOrZip?: string | null | undefined;
4887
4900
  }>]>>;
4888
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4901
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4889
4902
  filename: z.ZodString;
4890
4903
  originalFilename: z.ZodString;
4891
4904
  type: z.ZodString;
@@ -4968,7 +4981,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4968
4981
  province: string;
4969
4982
  urbanOrRural: "RURAL";
4970
4983
  village?: string | null | undefined;
4971
- }>, z.ZodObject<{
4984
+ }>, z.ZodUndefined, z.ZodObject<{
4972
4985
  country: z.ZodString;
4973
4986
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4974
4987
  state: z.ZodString;
@@ -4999,12 +5012,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4999
5012
  addressLine3?: string | null | undefined;
5000
5013
  postcodeOrZip?: string | null | undefined;
5001
5014
  }>]>>>;
5015
+ originalActionId: z.ZodOptional<z.ZodString>;
5002
5016
  }, {
5003
- type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
5004
- createdAtLocation: z.ZodString;
5017
+ requestId: z.ZodString;
5018
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
5005
5019
  }>, "strip", z.ZodTypeAny, {
5006
- type: "CREATE";
5007
- data: Record<string, string | number | boolean | {
5020
+ type: "REJECT_CORRECTION";
5021
+ declaration: Record<string, string | number | boolean | {
5008
5022
  type: string;
5009
5023
  filename: string;
5010
5024
  originalFilename: string;
@@ -5041,11 +5055,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5041
5055
  option: string;
5042
5056
  filename: string;
5043
5057
  originalFilename: string;
5044
- }[]>;
5045
- createdAtLocation: string;
5058
+ }[] | undefined>;
5059
+ requestId: string;
5046
5060
  eventId: string;
5047
5061
  transactionId: string;
5048
- metadata?: Record<string, string | number | boolean | {
5062
+ annotation?: Record<string, string | number | boolean | {
5049
5063
  type: string;
5050
5064
  filename: string;
5051
5065
  originalFilename: string;
@@ -5082,9 +5096,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5082
5096
  option: string;
5083
5097
  filename: string;
5084
5098
  originalFilename: string;
5085
- }[]> | undefined;
5099
+ }[] | undefined> | undefined;
5100
+ originalActionId?: string | undefined;
5086
5101
  }, {
5087
- data: Record<string, string | number | boolean | {
5102
+ declaration: Record<string, string | number | boolean | {
5088
5103
  type: string;
5089
5104
  filename: string;
5090
5105
  originalFilename: string;
@@ -5121,12 +5136,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5121
5136
  option: string;
5122
5137
  filename: string;
5123
5138
  originalFilename: string;
5124
- }[]>;
5125
- createdAtLocation: string;
5139
+ }[] | undefined>;
5140
+ requestId: string;
5126
5141
  eventId: string;
5127
5142
  transactionId: string;
5128
- type?: "CREATE" | undefined;
5129
- metadata?: Record<string, string | number | boolean | {
5143
+ type?: "REJECT_CORRECTION" | undefined;
5144
+ annotation?: Record<string, string | number | boolean | {
5130
5145
  type: string;
5131
5146
  filename: string;
5132
5147
  originalFilename: string;
@@ -5163,11 +5178,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5163
5178
  option: string;
5164
5179
  filename: string;
5165
5180
  originalFilename: string;
5166
- }[]> | undefined;
5167
- }>, z.ZodObject<z.objectUtil.extendShape<{
5181
+ }[] | undefined> | undefined;
5182
+ originalActionId?: string | undefined;
5183
+ }>;
5184
+ export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionInput>;
5185
+ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
5168
5186
  eventId: z.ZodString;
5169
5187
  transactionId: z.ZodString;
5170
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5188
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5171
5189
  filename: z.ZodString;
5172
5190
  originalFilename: z.ZodString;
5173
5191
  type: z.ZodString;
@@ -5250,7 +5268,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5250
5268
  province: string;
5251
5269
  urbanOrRural: "RURAL";
5252
5270
  village?: string | null | undefined;
5253
- }>, z.ZodObject<{
5271
+ }>, z.ZodUndefined, z.ZodObject<{
5254
5272
  country: z.ZodString;
5255
5273
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5256
5274
  state: z.ZodString;
@@ -5281,7 +5299,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5281
5299
  addressLine3?: string | null | undefined;
5282
5300
  postcodeOrZip?: string | null | undefined;
5283
5301
  }>]>>;
5284
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5302
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5285
5303
  filename: z.ZodString;
5286
5304
  originalFilename: z.ZodString;
5287
5305
  type: z.ZodString;
@@ -5364,7 +5382,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5364
5382
  province: string;
5365
5383
  urbanOrRural: "RURAL";
5366
5384
  village?: string | null | undefined;
5367
- }>, z.ZodObject<{
5385
+ }>, z.ZodUndefined, z.ZodObject<{
5368
5386
  country: z.ZodString;
5369
5387
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5370
5388
  state: z.ZodString;
@@ -5395,12 +5413,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5395
5413
  addressLine3?: string | null | undefined;
5396
5414
  postcodeOrZip?: string | null | undefined;
5397
5415
  }>]>>>;
5416
+ originalActionId: z.ZodOptional<z.ZodString>;
5398
5417
  }, {
5399
- type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
5400
- duplicates: z.ZodArray<z.ZodString, "many">;
5418
+ requestId: z.ZodString;
5419
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
5401
5420
  }>, "strip", z.ZodTypeAny, {
5402
- type: "VALIDATE";
5403
- data: Record<string, string | number | boolean | {
5421
+ type: "APPROVE_CORRECTION";
5422
+ declaration: Record<string, string | number | boolean | {
5404
5423
  type: string;
5405
5424
  filename: string;
5406
5425
  originalFilename: string;
@@ -5437,11 +5456,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5437
5456
  option: string;
5438
5457
  filename: string;
5439
5458
  originalFilename: string;
5440
- }[]>;
5459
+ }[] | undefined>;
5460
+ requestId: string;
5441
5461
  eventId: string;
5442
5462
  transactionId: string;
5443
- duplicates: string[];
5444
- metadata?: Record<string, string | number | boolean | {
5463
+ annotation?: Record<string, string | number | boolean | {
5445
5464
  type: string;
5446
5465
  filename: string;
5447
5466
  originalFilename: string;
@@ -5478,9 +5497,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5478
5497
  option: string;
5479
5498
  filename: string;
5480
5499
  originalFilename: string;
5481
- }[]> | undefined;
5500
+ }[] | undefined> | undefined;
5501
+ originalActionId?: string | undefined;
5482
5502
  }, {
5483
- data: Record<string, string | number | boolean | {
5503
+ declaration: Record<string, string | number | boolean | {
5484
5504
  type: string;
5485
5505
  filename: string;
5486
5506
  originalFilename: string;
@@ -5517,12 +5537,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5517
5537
  option: string;
5518
5538
  filename: string;
5519
5539
  originalFilename: string;
5520
- }[]>;
5540
+ }[] | undefined>;
5541
+ requestId: string;
5521
5542
  eventId: string;
5522
5543
  transactionId: string;
5523
- duplicates: string[];
5524
- type?: "VALIDATE" | undefined;
5525
- metadata?: Record<string, string | number | boolean | {
5544
+ type?: "APPROVE_CORRECTION" | undefined;
5545
+ annotation?: Record<string, string | number | boolean | {
5526
5546
  type: string;
5527
5547
  filename: string;
5528
5548
  originalFilename: string;
@@ -5559,11 +5579,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5559
5579
  option: string;
5560
5580
  filename: string;
5561
5581
  originalFilename: string;
5562
- }[]> | undefined;
5563
- }>, z.ZodObject<z.objectUtil.extendShape<{
5582
+ }[] | undefined> | undefined;
5583
+ originalActionId?: string | undefined;
5584
+ }>;
5585
+ export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
5586
+ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5564
5587
  eventId: z.ZodString;
5565
5588
  transactionId: z.ZodString;
5566
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5589
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5567
5590
  filename: z.ZodString;
5568
5591
  originalFilename: z.ZodString;
5569
5592
  type: z.ZodString;
@@ -5646,7 +5669,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5646
5669
  province: string;
5647
5670
  urbanOrRural: "RURAL";
5648
5671
  village?: string | null | undefined;
5649
- }>, z.ZodObject<{
5672
+ }>, z.ZodUndefined, z.ZodObject<{
5650
5673
  country: z.ZodString;
5651
5674
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5652
5675
  state: z.ZodString;
@@ -5677,7 +5700,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5677
5700
  addressLine3?: string | null | undefined;
5678
5701
  postcodeOrZip?: string | null | undefined;
5679
5702
  }>]>>;
5680
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5703
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5681
5704
  filename: z.ZodString;
5682
5705
  originalFilename: z.ZodString;
5683
5706
  type: z.ZodString;
@@ -5760,7 +5783,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5760
5783
  province: string;
5761
5784
  urbanOrRural: "RURAL";
5762
5785
  village?: string | null | undefined;
5763
- }>, z.ZodObject<{
5786
+ }>, z.ZodUndefined, z.ZodObject<{
5764
5787
  country: z.ZodString;
5765
5788
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5766
5789
  state: z.ZodString;
@@ -5791,21 +5814,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5791
5814
  addressLine3?: string | null | undefined;
5792
5815
  postcodeOrZip?: string | null | undefined;
5793
5816
  }>]>>>;
5817
+ originalActionId: z.ZodOptional<z.ZodString>;
5794
5818
  }, {
5795
- type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
5796
- identifiers: z.ZodObject<{
5797
- trackingId: z.ZodString;
5798
- registrationNumber: z.ZodString;
5799
- }, "strip", z.ZodTypeAny, {
5800
- trackingId: string;
5801
- registrationNumber: string;
5802
- }, {
5803
- trackingId: string;
5804
- registrationNumber: string;
5805
- }>;
5819
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
5806
5820
  }>, "strip", z.ZodTypeAny, {
5807
- type: "REGISTER";
5808
- data: Record<string, string | number | boolean | {
5821
+ type: "READ";
5822
+ declaration: Record<string, string | number | boolean | {
5809
5823
  type: string;
5810
5824
  filename: string;
5811
5825
  originalFilename: string;
@@ -5842,14 +5856,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5842
5856
  option: string;
5843
5857
  filename: string;
5844
5858
  originalFilename: string;
5845
- }[]>;
5846
- identifiers: {
5847
- trackingId: string;
5848
- registrationNumber: string;
5849
- };
5859
+ }[] | undefined>;
5850
5860
  eventId: string;
5851
5861
  transactionId: string;
5852
- metadata?: Record<string, string | number | boolean | {
5862
+ annotation?: Record<string, string | number | boolean | {
5853
5863
  type: string;
5854
5864
  filename: string;
5855
5865
  originalFilename: string;
@@ -5886,9 +5896,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5886
5896
  option: string;
5887
5897
  filename: string;
5888
5898
  originalFilename: string;
5889
- }[]> | undefined;
5899
+ }[] | undefined> | undefined;
5900
+ originalActionId?: string | undefined;
5890
5901
  }, {
5891
- data: Record<string, string | number | boolean | {
5902
+ declaration: Record<string, string | number | boolean | {
5892
5903
  type: string;
5893
5904
  filename: string;
5894
5905
  originalFilename: string;
@@ -5925,15 +5936,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5925
5936
  option: string;
5926
5937
  filename: string;
5927
5938
  originalFilename: string;
5928
- }[]>;
5929
- identifiers: {
5930
- trackingId: string;
5931
- registrationNumber: string;
5932
- };
5939
+ }[] | undefined>;
5933
5940
  eventId: string;
5934
5941
  transactionId: string;
5935
- type?: "REGISTER" | undefined;
5936
- metadata?: Record<string, string | number | boolean | {
5942
+ type?: "READ" | undefined;
5943
+ annotation?: Record<string, string | number | boolean | {
5937
5944
  type: string;
5938
5945
  filename: string;
5939
5946
  originalFilename: string;
@@ -5970,11 +5977,22 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5970
5977
  option: string;
5971
5978
  filename: string;
5972
5979
  originalFilename: string;
5973
- }[]> | undefined;
5974
- }>, z.ZodObject<z.objectUtil.extendShape<{
5980
+ }[] | undefined> | undefined;
5981
+ originalActionId?: string | undefined;
5982
+ }>;
5983
+ export type ReadActionInput = z.infer<typeof ReadActionInput>;
5984
+ /**
5985
+ * ActionInput types are used to validate the input data for the action.
5986
+ * In our use case, we use it directly with TRPC to validate the input data for the action.
5987
+ * using z.literal(ActionType.ACTION).default(ActionType.ACTION) makes them more convenient to use
5988
+ * without having to pass the type in the input data, when it's defined in the method.
5989
+ *
5990
+ * e.g. mutation.declare({createdAt: new Date()}) vs mutation.declare({createdAt: new Date(), type: 'DECLARE'})
5991
+ */
5992
+ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
5975
5993
  eventId: z.ZodString;
5976
5994
  transactionId: z.ZodString;
5977
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5995
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5978
5996
  filename: z.ZodString;
5979
5997
  originalFilename: z.ZodString;
5980
5998
  type: z.ZodString;
@@ -6057,7 +6075,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6057
6075
  province: string;
6058
6076
  urbanOrRural: "RURAL";
6059
6077
  village?: string | null | undefined;
6060
- }>, z.ZodObject<{
6078
+ }>, z.ZodUndefined, z.ZodObject<{
6061
6079
  country: z.ZodString;
6062
6080
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6063
6081
  state: z.ZodString;
@@ -6088,7 +6106,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6088
6106
  addressLine3?: string | null | undefined;
6089
6107
  postcodeOrZip?: string | null | undefined;
6090
6108
  }>]>>;
6091
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6109
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6092
6110
  filename: z.ZodString;
6093
6111
  originalFilename: z.ZodString;
6094
6112
  type: z.ZodString;
@@ -6171,7 +6189,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6171
6189
  province: string;
6172
6190
  urbanOrRural: "RURAL";
6173
6191
  village?: string | null | undefined;
6174
- }>, z.ZodObject<{
6192
+ }>, z.ZodUndefined, z.ZodObject<{
6175
6193
  country: z.ZodString;
6176
6194
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6177
6195
  state: z.ZodString;
@@ -6202,11 +6220,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6202
6220
  addressLine3?: string | null | undefined;
6203
6221
  postcodeOrZip?: string | null | undefined;
6204
6222
  }>]>>>;
6223
+ originalActionId: z.ZodOptional<z.ZodString>;
6205
6224
  }, {
6206
- type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
6225
+ type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
6226
+ createdAtLocation: z.ZodString;
6207
6227
  }>, "strip", z.ZodTypeAny, {
6208
- type: "NOTIFY";
6209
- data: Record<string, string | number | boolean | {
6228
+ type: "CREATE";
6229
+ declaration: Record<string, string | number | boolean | {
6210
6230
  type: string;
6211
6231
  filename: string;
6212
6232
  originalFilename: string;
@@ -6243,10 +6263,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6243
6263
  option: string;
6244
6264
  filename: string;
6245
6265
  originalFilename: string;
6246
- }[]>;
6266
+ }[] | undefined>;
6267
+ createdAtLocation: string;
6247
6268
  eventId: string;
6248
6269
  transactionId: string;
6249
- metadata?: Record<string, string | number | boolean | {
6270
+ annotation?: Record<string, string | number | boolean | {
6250
6271
  type: string;
6251
6272
  filename: string;
6252
6273
  originalFilename: string;
@@ -6283,9 +6304,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6283
6304
  option: string;
6284
6305
  filename: string;
6285
6306
  originalFilename: string;
6286
- }[]> | undefined;
6307
+ }[] | undefined> | undefined;
6308
+ originalActionId?: string | undefined;
6287
6309
  }, {
6288
- data: Record<string, string | number | boolean | {
6310
+ declaration: Record<string, string | number | boolean | {
6289
6311
  type: string;
6290
6312
  filename: string;
6291
6313
  originalFilename: string;
@@ -6322,11 +6344,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6322
6344
  option: string;
6323
6345
  filename: string;
6324
6346
  originalFilename: string;
6325
- }[]>;
6347
+ }[] | undefined>;
6348
+ createdAtLocation: string;
6326
6349
  eventId: string;
6327
6350
  transactionId: string;
6328
- type?: "NOTIFY" | undefined;
6329
- metadata?: Record<string, string | number | boolean | {
6351
+ type?: "CREATE" | undefined;
6352
+ annotation?: Record<string, string | number | boolean | {
6330
6353
  type: string;
6331
6354
  filename: string;
6332
6355
  originalFilename: string;
@@ -6363,11 +6386,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6363
6386
  option: string;
6364
6387
  filename: string;
6365
6388
  originalFilename: string;
6366
- }[]> | undefined;
6389
+ }[] | undefined> | undefined;
6390
+ originalActionId?: string | undefined;
6367
6391
  }>, z.ZodObject<z.objectUtil.extendShape<{
6368
6392
  eventId: z.ZodString;
6369
6393
  transactionId: z.ZodString;
6370
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6394
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6371
6395
  filename: z.ZodString;
6372
6396
  originalFilename: z.ZodString;
6373
6397
  type: z.ZodString;
@@ -6450,7 +6474,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6450
6474
  province: string;
6451
6475
  urbanOrRural: "RURAL";
6452
6476
  village?: string | null | undefined;
6453
- }>, z.ZodObject<{
6477
+ }>, z.ZodUndefined, z.ZodObject<{
6454
6478
  country: z.ZodString;
6455
6479
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6456
6480
  state: z.ZodString;
@@ -6481,7 +6505,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6481
6505
  addressLine3?: string | null | undefined;
6482
6506
  postcodeOrZip?: string | null | undefined;
6483
6507
  }>]>>;
6484
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6508
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6485
6509
  filename: z.ZodString;
6486
6510
  originalFilename: z.ZodString;
6487
6511
  type: z.ZodString;
@@ -6564,7 +6588,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6564
6588
  province: string;
6565
6589
  urbanOrRural: "RURAL";
6566
6590
  village?: string | null | undefined;
6567
- }>, z.ZodObject<{
6591
+ }>, z.ZodUndefined, z.ZodObject<{
6568
6592
  country: z.ZodString;
6569
6593
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6570
6594
  state: z.ZodString;
@@ -6595,11 +6619,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6595
6619
  addressLine3?: string | null | undefined;
6596
6620
  postcodeOrZip?: string | null | undefined;
6597
6621
  }>]>>>;
6622
+ originalActionId: z.ZodOptional<z.ZodString>;
6598
6623
  }, {
6599
- type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
6624
+ type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
6625
+ duplicates: z.ZodArray<z.ZodString, "many">;
6600
6626
  }>, "strip", z.ZodTypeAny, {
6601
- type: "DECLARE";
6602
- data: Record<string, string | number | boolean | {
6627
+ type: "VALIDATE";
6628
+ declaration: Record<string, string | number | boolean | {
6603
6629
  type: string;
6604
6630
  filename: string;
6605
6631
  originalFilename: string;
@@ -6636,10 +6662,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6636
6662
  option: string;
6637
6663
  filename: string;
6638
6664
  originalFilename: string;
6639
- }[]>;
6665
+ }[] | undefined>;
6640
6666
  eventId: string;
6641
6667
  transactionId: string;
6642
- metadata?: Record<string, string | number | boolean | {
6668
+ duplicates: string[];
6669
+ annotation?: Record<string, string | number | boolean | {
6643
6670
  type: string;
6644
6671
  filename: string;
6645
6672
  originalFilename: string;
@@ -6676,9 +6703,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6676
6703
  option: string;
6677
6704
  filename: string;
6678
6705
  originalFilename: string;
6679
- }[]> | undefined;
6706
+ }[] | undefined> | undefined;
6707
+ originalActionId?: string | undefined;
6680
6708
  }, {
6681
- data: Record<string, string | number | boolean | {
6709
+ declaration: Record<string, string | number | boolean | {
6682
6710
  type: string;
6683
6711
  filename: string;
6684
6712
  originalFilename: string;
@@ -6715,11 +6743,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6715
6743
  option: string;
6716
6744
  filename: string;
6717
6745
  originalFilename: string;
6718
- }[]>;
6746
+ }[] | undefined>;
6719
6747
  eventId: string;
6720
6748
  transactionId: string;
6721
- type?: "DECLARE" | undefined;
6722
- metadata?: Record<string, string | number | boolean | {
6749
+ duplicates: string[];
6750
+ type?: "VALIDATE" | undefined;
6751
+ annotation?: Record<string, string | number | boolean | {
6723
6752
  type: string;
6724
6753
  filename: string;
6725
6754
  originalFilename: string;
@@ -6756,11 +6785,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6756
6785
  option: string;
6757
6786
  filename: string;
6758
6787
  originalFilename: string;
6759
- }[]> | undefined;
6788
+ }[] | undefined> | undefined;
6789
+ originalActionId?: string | undefined;
6760
6790
  }>, z.ZodObject<z.objectUtil.extendShape<{
6761
6791
  eventId: z.ZodString;
6762
6792
  transactionId: z.ZodString;
6763
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6793
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6764
6794
  filename: z.ZodString;
6765
6795
  originalFilename: z.ZodString;
6766
6796
  type: z.ZodString;
@@ -6843,7 +6873,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6843
6873
  province: string;
6844
6874
  urbanOrRural: "RURAL";
6845
6875
  village?: string | null | undefined;
6846
- }>, z.ZodObject<{
6876
+ }>, z.ZodUndefined, z.ZodObject<{
6847
6877
  country: z.ZodString;
6848
6878
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6849
6879
  state: z.ZodString;
@@ -6874,7 +6904,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6874
6904
  addressLine3?: string | null | undefined;
6875
6905
  postcodeOrZip?: string | null | undefined;
6876
6906
  }>]>>;
6877
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6907
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6878
6908
  filename: z.ZodString;
6879
6909
  originalFilename: z.ZodString;
6880
6910
  type: z.ZodString;
@@ -6957,7 +6987,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6957
6987
  province: string;
6958
6988
  urbanOrRural: "RURAL";
6959
6989
  village?: string | null | undefined;
6960
- }>, z.ZodObject<{
6990
+ }>, z.ZodUndefined, z.ZodObject<{
6961
6991
  country: z.ZodString;
6962
6992
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6963
6993
  state: z.ZodString;
@@ -6988,11 +7018,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6988
7018
  addressLine3?: string | null | undefined;
6989
7019
  postcodeOrZip?: string | null | undefined;
6990
7020
  }>]>>>;
7021
+ originalActionId: z.ZodOptional<z.ZodString>;
6991
7022
  }, {
6992
- type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
7023
+ type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
7024
+ registrationNumber: z.ZodOptional<z.ZodString>;
6993
7025
  }>, "strip", z.ZodTypeAny, {
6994
- type: "REJECT";
6995
- data: Record<string, string | number | boolean | {
7026
+ type: "REGISTER";
7027
+ declaration: Record<string, string | number | boolean | {
6996
7028
  type: string;
6997
7029
  filename: string;
6998
7030
  originalFilename: string;
@@ -7029,10 +7061,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7029
7061
  option: string;
7030
7062
  filename: string;
7031
7063
  originalFilename: string;
7032
- }[]>;
7064
+ }[] | undefined>;
7033
7065
  eventId: string;
7034
7066
  transactionId: string;
7035
- metadata?: Record<string, string | number | boolean | {
7067
+ annotation?: Record<string, string | number | boolean | {
7036
7068
  type: string;
7037
7069
  filename: string;
7038
7070
  originalFilename: string;
@@ -7069,9 +7101,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7069
7101
  option: string;
7070
7102
  filename: string;
7071
7103
  originalFilename: string;
7072
- }[]> | undefined;
7104
+ }[] | undefined> | undefined;
7105
+ originalActionId?: string | undefined;
7106
+ registrationNumber?: string | undefined;
7073
7107
  }, {
7074
- data: Record<string, string | number | boolean | {
7108
+ declaration: Record<string, string | number | boolean | {
7075
7109
  type: string;
7076
7110
  filename: string;
7077
7111
  originalFilename: string;
@@ -7108,11 +7142,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7108
7142
  option: string;
7109
7143
  filename: string;
7110
7144
  originalFilename: string;
7111
- }[]>;
7145
+ }[] | undefined>;
7112
7146
  eventId: string;
7113
7147
  transactionId: string;
7114
- type?: "REJECT" | undefined;
7115
- metadata?: Record<string, string | number | boolean | {
7148
+ type?: "REGISTER" | undefined;
7149
+ annotation?: Record<string, string | number | boolean | {
7116
7150
  type: string;
7117
7151
  filename: string;
7118
7152
  originalFilename: string;
@@ -7149,11 +7183,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7149
7183
  option: string;
7150
7184
  filename: string;
7151
7185
  originalFilename: string;
7152
- }[]> | undefined;
7186
+ }[] | undefined> | undefined;
7187
+ originalActionId?: string | undefined;
7188
+ registrationNumber?: string | undefined;
7153
7189
  }>, z.ZodObject<z.objectUtil.extendShape<{
7154
7190
  eventId: z.ZodString;
7155
7191
  transactionId: z.ZodString;
7156
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7192
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7157
7193
  filename: z.ZodString;
7158
7194
  originalFilename: z.ZodString;
7159
7195
  type: z.ZodString;
@@ -7236,7 +7272,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7236
7272
  province: string;
7237
7273
  urbanOrRural: "RURAL";
7238
7274
  village?: string | null | undefined;
7239
- }>, z.ZodObject<{
7275
+ }>, z.ZodUndefined, z.ZodObject<{
7240
7276
  country: z.ZodString;
7241
7277
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7242
7278
  state: z.ZodString;
@@ -7267,7 +7303,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7267
7303
  addressLine3?: string | null | undefined;
7268
7304
  postcodeOrZip?: string | null | undefined;
7269
7305
  }>]>>;
7270
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7306
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7271
7307
  filename: z.ZodString;
7272
7308
  originalFilename: z.ZodString;
7273
7309
  type: z.ZodString;
@@ -7350,7 +7386,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7350
7386
  province: string;
7351
7387
  urbanOrRural: "RURAL";
7352
7388
  village?: string | null | undefined;
7353
- }>, z.ZodObject<{
7389
+ }>, z.ZodUndefined, z.ZodObject<{
7354
7390
  country: z.ZodString;
7355
7391
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7356
7392
  state: z.ZodString;
@@ -7381,11 +7417,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7381
7417
  addressLine3?: string | null | undefined;
7382
7418
  postcodeOrZip?: string | null | undefined;
7383
7419
  }>]>>>;
7420
+ originalActionId: z.ZodOptional<z.ZodString>;
7384
7421
  }, {
7385
- type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
7422
+ type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
7386
7423
  }>, "strip", z.ZodTypeAny, {
7387
- type: "MARKED_AS_DUPLICATE";
7388
- data: Record<string, string | number | boolean | {
7424
+ type: "NOTIFY";
7425
+ declaration: Record<string, string | number | boolean | {
7389
7426
  type: string;
7390
7427
  filename: string;
7391
7428
  originalFilename: string;
@@ -7422,10 +7459,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7422
7459
  option: string;
7423
7460
  filename: string;
7424
7461
  originalFilename: string;
7425
- }[]>;
7462
+ }[] | undefined>;
7426
7463
  eventId: string;
7427
7464
  transactionId: string;
7428
- metadata?: Record<string, string | number | boolean | {
7465
+ annotation?: Record<string, string | number | boolean | {
7429
7466
  type: string;
7430
7467
  filename: string;
7431
7468
  originalFilename: string;
@@ -7462,9 +7499,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7462
7499
  option: string;
7463
7500
  filename: string;
7464
7501
  originalFilename: string;
7465
- }[]> | undefined;
7502
+ }[] | undefined> | undefined;
7503
+ originalActionId?: string | undefined;
7466
7504
  }, {
7467
- data: Record<string, string | number | boolean | {
7505
+ declaration: Record<string, string | number | boolean | {
7468
7506
  type: string;
7469
7507
  filename: string;
7470
7508
  originalFilename: string;
@@ -7501,11 +7539,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7501
7539
  option: string;
7502
7540
  filename: string;
7503
7541
  originalFilename: string;
7504
- }[]>;
7542
+ }[] | undefined>;
7505
7543
  eventId: string;
7506
7544
  transactionId: string;
7507
- type?: "MARKED_AS_DUPLICATE" | undefined;
7508
- metadata?: Record<string, string | number | boolean | {
7545
+ type?: "NOTIFY" | undefined;
7546
+ annotation?: Record<string, string | number | boolean | {
7509
7547
  type: string;
7510
7548
  filename: string;
7511
7549
  originalFilename: string;
@@ -7542,11 +7580,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7542
7580
  option: string;
7543
7581
  filename: string;
7544
7582
  originalFilename: string;
7545
- }[]> | undefined;
7583
+ }[] | undefined> | undefined;
7584
+ originalActionId?: string | undefined;
7546
7585
  }>, z.ZodObject<z.objectUtil.extendShape<{
7547
7586
  eventId: z.ZodString;
7548
7587
  transactionId: z.ZodString;
7549
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7588
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7550
7589
  filename: z.ZodString;
7551
7590
  originalFilename: z.ZodString;
7552
7591
  type: z.ZodString;
@@ -7629,7 +7668,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7629
7668
  province: string;
7630
7669
  urbanOrRural: "RURAL";
7631
7670
  village?: string | null | undefined;
7632
- }>, z.ZodObject<{
7671
+ }>, z.ZodUndefined, z.ZodObject<{
7633
7672
  country: z.ZodString;
7634
7673
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7635
7674
  state: z.ZodString;
@@ -7660,7 +7699,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7660
7699
  addressLine3?: string | null | undefined;
7661
7700
  postcodeOrZip?: string | null | undefined;
7662
7701
  }>]>>;
7663
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7702
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7664
7703
  filename: z.ZodString;
7665
7704
  originalFilename: z.ZodString;
7666
7705
  type: z.ZodString;
@@ -7743,7 +7782,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7743
7782
  province: string;
7744
7783
  urbanOrRural: "RURAL";
7745
7784
  village?: string | null | undefined;
7746
- }>, z.ZodObject<{
7785
+ }>, z.ZodUndefined, z.ZodObject<{
7747
7786
  country: z.ZodString;
7748
7787
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7749
7788
  state: z.ZodString;
@@ -7774,11 +7813,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7774
7813
  addressLine3?: string | null | undefined;
7775
7814
  postcodeOrZip?: string | null | undefined;
7776
7815
  }>]>>>;
7816
+ originalActionId: z.ZodOptional<z.ZodString>;
7777
7817
  }, {
7778
- type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
7818
+ type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
7779
7819
  }>, "strip", z.ZodTypeAny, {
7780
- type: "ARCHIVE";
7781
- data: Record<string, string | number | boolean | {
7820
+ type: "DECLARE";
7821
+ declaration: Record<string, string | number | boolean | {
7782
7822
  type: string;
7783
7823
  filename: string;
7784
7824
  originalFilename: string;
@@ -7815,10 +7855,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7815
7855
  option: string;
7816
7856
  filename: string;
7817
7857
  originalFilename: string;
7818
- }[]>;
7858
+ }[] | undefined>;
7819
7859
  eventId: string;
7820
7860
  transactionId: string;
7821
- metadata?: Record<string, string | number | boolean | {
7861
+ annotation?: Record<string, string | number | boolean | {
7822
7862
  type: string;
7823
7863
  filename: string;
7824
7864
  originalFilename: string;
@@ -7855,9 +7895,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7855
7895
  option: string;
7856
7896
  filename: string;
7857
7897
  originalFilename: string;
7858
- }[]> | undefined;
7898
+ }[] | undefined> | undefined;
7899
+ originalActionId?: string | undefined;
7859
7900
  }, {
7860
- data: Record<string, string | number | boolean | {
7901
+ declaration: Record<string, string | number | boolean | {
7861
7902
  type: string;
7862
7903
  filename: string;
7863
7904
  originalFilename: string;
@@ -7894,11 +7935,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7894
7935
  option: string;
7895
7936
  filename: string;
7896
7937
  originalFilename: string;
7897
- }[]>;
7938
+ }[] | undefined>;
7898
7939
  eventId: string;
7899
7940
  transactionId: string;
7900
- type?: "ARCHIVE" | undefined;
7901
- metadata?: Record<string, string | number | boolean | {
7941
+ type?: "DECLARE" | undefined;
7942
+ annotation?: Record<string, string | number | boolean | {
7902
7943
  type: string;
7903
7944
  filename: string;
7904
7945
  originalFilename: string;
@@ -7935,11 +7976,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7935
7976
  option: string;
7936
7977
  filename: string;
7937
7978
  originalFilename: string;
7938
- }[]> | undefined;
7979
+ }[] | undefined> | undefined;
7980
+ originalActionId?: string | undefined;
7939
7981
  }>, z.ZodObject<z.objectUtil.extendShape<{
7940
7982
  eventId: z.ZodString;
7941
7983
  transactionId: z.ZodString;
7942
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7984
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7943
7985
  filename: z.ZodString;
7944
7986
  originalFilename: z.ZodString;
7945
7987
  type: z.ZodString;
@@ -8022,7 +8064,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8022
8064
  province: string;
8023
8065
  urbanOrRural: "RURAL";
8024
8066
  village?: string | null | undefined;
8025
- }>, z.ZodObject<{
8067
+ }>, z.ZodUndefined, z.ZodObject<{
8026
8068
  country: z.ZodString;
8027
8069
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8028
8070
  state: z.ZodString;
@@ -8053,7 +8095,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8053
8095
  addressLine3?: string | null | undefined;
8054
8096
  postcodeOrZip?: string | null | undefined;
8055
8097
  }>]>>;
8056
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8098
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8057
8099
  filename: z.ZodString;
8058
8100
  originalFilename: z.ZodString;
8059
8101
  type: z.ZodString;
@@ -8136,7 +8178,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8136
8178
  province: string;
8137
8179
  urbanOrRural: "RURAL";
8138
8180
  village?: string | null | undefined;
8139
- }>, z.ZodObject<{
8181
+ }>, z.ZodUndefined, z.ZodObject<{
8140
8182
  country: z.ZodString;
8141
8183
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8142
8184
  state: z.ZodString;
@@ -8167,12 +8209,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8167
8209
  addressLine3?: string | null | undefined;
8168
8210
  postcodeOrZip?: string | null | undefined;
8169
8211
  }>]>>>;
8212
+ originalActionId: z.ZodOptional<z.ZodString>;
8170
8213
  }, {
8171
- type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
8172
- assignedTo: z.ZodString;
8214
+ type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
8173
8215
  }>, "strip", z.ZodTypeAny, {
8174
- type: "ASSIGN";
8175
- data: Record<string, string | number | boolean | {
8216
+ type: "REJECT";
8217
+ declaration: Record<string, string | number | boolean | {
8176
8218
  type: string;
8177
8219
  filename: string;
8178
8220
  originalFilename: string;
@@ -8209,11 +8251,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8209
8251
  option: string;
8210
8252
  filename: string;
8211
8253
  originalFilename: string;
8212
- }[]>;
8213
- assignedTo: string;
8254
+ }[] | undefined>;
8214
8255
  eventId: string;
8215
8256
  transactionId: string;
8216
- metadata?: Record<string, string | number | boolean | {
8257
+ annotation?: Record<string, string | number | boolean | {
8217
8258
  type: string;
8218
8259
  filename: string;
8219
8260
  originalFilename: string;
@@ -8250,9 +8291,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8250
8291
  option: string;
8251
8292
  filename: string;
8252
8293
  originalFilename: string;
8253
- }[]> | undefined;
8294
+ }[] | undefined> | undefined;
8295
+ originalActionId?: string | undefined;
8254
8296
  }, {
8255
- data: Record<string, string | number | boolean | {
8297
+ declaration: Record<string, string | number | boolean | {
8256
8298
  type: string;
8257
8299
  filename: string;
8258
8300
  originalFilename: string;
@@ -8289,12 +8331,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8289
8331
  option: string;
8290
8332
  filename: string;
8291
8333
  originalFilename: string;
8292
- }[]>;
8293
- assignedTo: string;
8334
+ }[] | undefined>;
8294
8335
  eventId: string;
8295
8336
  transactionId: string;
8296
- type?: "ASSIGN" | undefined;
8297
- metadata?: Record<string, string | number | boolean | {
8337
+ type?: "REJECT" | undefined;
8338
+ annotation?: Record<string, string | number | boolean | {
8298
8339
  type: string;
8299
8340
  filename: string;
8300
8341
  originalFilename: string;
@@ -8331,11 +8372,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8331
8372
  option: string;
8332
8373
  filename: string;
8333
8374
  originalFilename: string;
8334
- }[]> | undefined;
8375
+ }[] | undefined> | undefined;
8376
+ originalActionId?: string | undefined;
8335
8377
  }>, z.ZodObject<z.objectUtil.extendShape<{
8336
8378
  eventId: z.ZodString;
8337
8379
  transactionId: z.ZodString;
8338
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8380
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8339
8381
  filename: z.ZodString;
8340
8382
  originalFilename: z.ZodString;
8341
8383
  type: z.ZodString;
@@ -8418,7 +8460,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8418
8460
  province: string;
8419
8461
  urbanOrRural: "RURAL";
8420
8462
  village?: string | null | undefined;
8421
- }>, z.ZodObject<{
8463
+ }>, z.ZodUndefined, z.ZodObject<{
8422
8464
  country: z.ZodString;
8423
8465
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8424
8466
  state: z.ZodString;
@@ -8449,7 +8491,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8449
8491
  addressLine3?: string | null | undefined;
8450
8492
  postcodeOrZip?: string | null | undefined;
8451
8493
  }>]>>;
8452
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8494
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8453
8495
  filename: z.ZodString;
8454
8496
  originalFilename: z.ZodString;
8455
8497
  type: z.ZodString;
@@ -8532,7 +8574,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8532
8574
  province: string;
8533
8575
  urbanOrRural: "RURAL";
8534
8576
  village?: string | null | undefined;
8535
- }>, z.ZodObject<{
8577
+ }>, z.ZodUndefined, z.ZodObject<{
8536
8578
  country: z.ZodString;
8537
8579
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8538
8580
  state: z.ZodString;
@@ -8563,11 +8605,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8563
8605
  addressLine3?: string | null | undefined;
8564
8606
  postcodeOrZip?: string | null | undefined;
8565
8607
  }>]>>>;
8608
+ originalActionId: z.ZodOptional<z.ZodString>;
8566
8609
  }, {
8567
- type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
8610
+ type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
8568
8611
  }>, "strip", z.ZodTypeAny, {
8569
- type: "UNASSIGN";
8570
- data: Record<string, string | number | boolean | {
8612
+ type: "MARKED_AS_DUPLICATE";
8613
+ declaration: Record<string, string | number | boolean | {
8571
8614
  type: string;
8572
8615
  filename: string;
8573
8616
  originalFilename: string;
@@ -8604,10 +8647,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8604
8647
  option: string;
8605
8648
  filename: string;
8606
8649
  originalFilename: string;
8607
- }[]>;
8650
+ }[] | undefined>;
8608
8651
  eventId: string;
8609
8652
  transactionId: string;
8610
- metadata?: Record<string, string | number | boolean | {
8653
+ annotation?: Record<string, string | number | boolean | {
8611
8654
  type: string;
8612
8655
  filename: string;
8613
8656
  originalFilename: string;
@@ -8644,9 +8687,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8644
8687
  option: string;
8645
8688
  filename: string;
8646
8689
  originalFilename: string;
8647
- }[]> | undefined;
8690
+ }[] | undefined> | undefined;
8691
+ originalActionId?: string | undefined;
8648
8692
  }, {
8649
- data: Record<string, string | number | boolean | {
8693
+ declaration: Record<string, string | number | boolean | {
8650
8694
  type: string;
8651
8695
  filename: string;
8652
8696
  originalFilename: string;
@@ -8683,11 +8727,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8683
8727
  option: string;
8684
8728
  filename: string;
8685
8729
  originalFilename: string;
8686
- }[]>;
8730
+ }[] | undefined>;
8687
8731
  eventId: string;
8688
8732
  transactionId: string;
8689
- type?: "UNASSIGN" | undefined;
8690
- metadata?: Record<string, string | number | boolean | {
8733
+ type?: "MARKED_AS_DUPLICATE" | undefined;
8734
+ annotation?: Record<string, string | number | boolean | {
8691
8735
  type: string;
8692
8736
  filename: string;
8693
8737
  originalFilename: string;
@@ -8724,11 +8768,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8724
8768
  option: string;
8725
8769
  filename: string;
8726
8770
  originalFilename: string;
8727
- }[]> | undefined;
8771
+ }[] | undefined> | undefined;
8772
+ originalActionId?: string | undefined;
8728
8773
  }>, z.ZodObject<z.objectUtil.extendShape<{
8729
8774
  eventId: z.ZodString;
8730
8775
  transactionId: z.ZodString;
8731
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8776
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8732
8777
  filename: z.ZodString;
8733
8778
  originalFilename: z.ZodString;
8734
8779
  type: z.ZodString;
@@ -8811,7 +8856,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8811
8856
  province: string;
8812
8857
  urbanOrRural: "RURAL";
8813
8858
  village?: string | null | undefined;
8814
- }>, z.ZodObject<{
8859
+ }>, z.ZodUndefined, z.ZodObject<{
8815
8860
  country: z.ZodString;
8816
8861
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8817
8862
  state: z.ZodString;
@@ -8842,7 +8887,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8842
8887
  addressLine3?: string | null | undefined;
8843
8888
  postcodeOrZip?: string | null | undefined;
8844
8889
  }>]>>;
8845
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8890
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8846
8891
  filename: z.ZodString;
8847
8892
  originalFilename: z.ZodString;
8848
8893
  type: z.ZodString;
@@ -8925,7 +8970,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8925
8970
  province: string;
8926
8971
  urbanOrRural: "RURAL";
8927
8972
  village?: string | null | undefined;
8928
- }>, z.ZodObject<{
8973
+ }>, z.ZodUndefined, z.ZodObject<{
8929
8974
  country: z.ZodString;
8930
8975
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8931
8976
  state: z.ZodString;
@@ -8956,11 +9001,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8956
9001
  addressLine3?: string | null | undefined;
8957
9002
  postcodeOrZip?: string | null | undefined;
8958
9003
  }>]>>>;
9004
+ originalActionId: z.ZodOptional<z.ZodString>;
8959
9005
  }, {
8960
- type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
9006
+ type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
8961
9007
  }>, "strip", z.ZodTypeAny, {
8962
- type: "PRINT_CERTIFICATE";
8963
- data: Record<string, string | number | boolean | {
9008
+ type: "ARCHIVE";
9009
+ declaration: Record<string, string | number | boolean | {
8964
9010
  type: string;
8965
9011
  filename: string;
8966
9012
  originalFilename: string;
@@ -8997,10 +9043,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8997
9043
  option: string;
8998
9044
  filename: string;
8999
9045
  originalFilename: string;
9000
- }[]>;
9046
+ }[] | undefined>;
9001
9047
  eventId: string;
9002
9048
  transactionId: string;
9003
- metadata?: Record<string, string | number | boolean | {
9049
+ annotation?: Record<string, string | number | boolean | {
9004
9050
  type: string;
9005
9051
  filename: string;
9006
9052
  originalFilename: string;
@@ -9037,9 +9083,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9037
9083
  option: string;
9038
9084
  filename: string;
9039
9085
  originalFilename: string;
9040
- }[]> | undefined;
9086
+ }[] | undefined> | undefined;
9087
+ originalActionId?: string | undefined;
9041
9088
  }, {
9042
- data: Record<string, string | number | boolean | {
9089
+ declaration: Record<string, string | number | boolean | {
9043
9090
  type: string;
9044
9091
  filename: string;
9045
9092
  originalFilename: string;
@@ -9076,11 +9123,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9076
9123
  option: string;
9077
9124
  filename: string;
9078
9125
  originalFilename: string;
9079
- }[]>;
9126
+ }[] | undefined>;
9080
9127
  eventId: string;
9081
9128
  transactionId: string;
9082
- type?: "PRINT_CERTIFICATE" | undefined;
9083
- metadata?: Record<string, string | number | boolean | {
9129
+ type?: "ARCHIVE" | undefined;
9130
+ annotation?: Record<string, string | number | boolean | {
9084
9131
  type: string;
9085
9132
  filename: string;
9086
9133
  originalFilename: string;
@@ -9117,11 +9164,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9117
9164
  option: string;
9118
9165
  filename: string;
9119
9166
  originalFilename: string;
9120
- }[]> | undefined;
9167
+ }[] | undefined> | undefined;
9168
+ originalActionId?: string | undefined;
9121
9169
  }>, z.ZodObject<z.objectUtil.extendShape<{
9122
9170
  eventId: z.ZodString;
9123
9171
  transactionId: z.ZodString;
9124
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9172
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9125
9173
  filename: z.ZodString;
9126
9174
  originalFilename: z.ZodString;
9127
9175
  type: z.ZodString;
@@ -9204,7 +9252,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9204
9252
  province: string;
9205
9253
  urbanOrRural: "RURAL";
9206
9254
  village?: string | null | undefined;
9207
- }>, z.ZodObject<{
9255
+ }>, z.ZodUndefined, z.ZodObject<{
9208
9256
  country: z.ZodString;
9209
9257
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9210
9258
  state: z.ZodString;
@@ -9235,7 +9283,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9235
9283
  addressLine3?: string | null | undefined;
9236
9284
  postcodeOrZip?: string | null | undefined;
9237
9285
  }>]>>;
9238
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9286
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9239
9287
  filename: z.ZodString;
9240
9288
  originalFilename: z.ZodString;
9241
9289
  type: z.ZodString;
@@ -9318,7 +9366,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9318
9366
  province: string;
9319
9367
  urbanOrRural: "RURAL";
9320
9368
  village?: string | null | undefined;
9321
- }>, z.ZodObject<{
9369
+ }>, z.ZodUndefined, z.ZodObject<{
9322
9370
  country: z.ZodString;
9323
9371
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9324
9372
  state: z.ZodString;
@@ -9349,11 +9397,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9349
9397
  addressLine3?: string | null | undefined;
9350
9398
  postcodeOrZip?: string | null | undefined;
9351
9399
  }>]>>>;
9400
+ originalActionId: z.ZodOptional<z.ZodString>;
9352
9401
  }, {
9353
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
9402
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
9403
+ assignedTo: z.ZodString;
9354
9404
  }>, "strip", z.ZodTypeAny, {
9355
- type: "REQUEST_CORRECTION";
9356
- data: Record<string, string | number | boolean | {
9405
+ type: "ASSIGN";
9406
+ declaration: Record<string, string | number | boolean | {
9357
9407
  type: string;
9358
9408
  filename: string;
9359
9409
  originalFilename: string;
@@ -9390,10 +9440,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9390
9440
  option: string;
9391
9441
  filename: string;
9392
9442
  originalFilename: string;
9393
- }[]>;
9443
+ }[] | undefined>;
9444
+ assignedTo: string;
9394
9445
  eventId: string;
9395
9446
  transactionId: string;
9396
- metadata?: Record<string, string | number | boolean | {
9447
+ annotation?: Record<string, string | number | boolean | {
9397
9448
  type: string;
9398
9449
  filename: string;
9399
9450
  originalFilename: string;
@@ -9430,9 +9481,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9430
9481
  option: string;
9431
9482
  filename: string;
9432
9483
  originalFilename: string;
9433
- }[]> | undefined;
9484
+ }[] | undefined> | undefined;
9485
+ originalActionId?: string | undefined;
9434
9486
  }, {
9435
- data: Record<string, string | number | boolean | {
9487
+ declaration: Record<string, string | number | boolean | {
9436
9488
  type: string;
9437
9489
  filename: string;
9438
9490
  originalFilename: string;
@@ -9469,11 +9521,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9469
9521
  option: string;
9470
9522
  filename: string;
9471
9523
  originalFilename: string;
9472
- }[]>;
9524
+ }[] | undefined>;
9525
+ assignedTo: string;
9473
9526
  eventId: string;
9474
9527
  transactionId: string;
9475
- type?: "REQUEST_CORRECTION" | undefined;
9476
- metadata?: Record<string, string | number | boolean | {
9528
+ type?: "ASSIGN" | undefined;
9529
+ annotation?: Record<string, string | number | boolean | {
9477
9530
  type: string;
9478
9531
  filename: string;
9479
9532
  originalFilename: string;
@@ -9510,11 +9563,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9510
9563
  option: string;
9511
9564
  filename: string;
9512
9565
  originalFilename: string;
9513
- }[]> | undefined;
9566
+ }[] | undefined> | undefined;
9567
+ originalActionId?: string | undefined;
9514
9568
  }>, z.ZodObject<z.objectUtil.extendShape<{
9515
9569
  eventId: z.ZodString;
9516
9570
  transactionId: z.ZodString;
9517
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9571
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9518
9572
  filename: z.ZodString;
9519
9573
  originalFilename: z.ZodString;
9520
9574
  type: z.ZodString;
@@ -9597,7 +9651,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9597
9651
  province: string;
9598
9652
  urbanOrRural: "RURAL";
9599
9653
  village?: string | null | undefined;
9600
- }>, z.ZodObject<{
9654
+ }>, z.ZodUndefined, z.ZodObject<{
9601
9655
  country: z.ZodString;
9602
9656
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9603
9657
  state: z.ZodString;
@@ -9628,7 +9682,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9628
9682
  addressLine3?: string | null | undefined;
9629
9683
  postcodeOrZip?: string | null | undefined;
9630
9684
  }>]>>;
9631
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9685
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9632
9686
  filename: z.ZodString;
9633
9687
  originalFilename: z.ZodString;
9634
9688
  type: z.ZodString;
@@ -9711,7 +9765,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9711
9765
  province: string;
9712
9766
  urbanOrRural: "RURAL";
9713
9767
  village?: string | null | undefined;
9714
- }>, z.ZodObject<{
9768
+ }>, z.ZodUndefined, z.ZodObject<{
9715
9769
  country: z.ZodString;
9716
9770
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9717
9771
  state: z.ZodString;
@@ -9742,12 +9796,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9742
9796
  addressLine3?: string | null | undefined;
9743
9797
  postcodeOrZip?: string | null | undefined;
9744
9798
  }>]>>>;
9799
+ originalActionId: z.ZodOptional<z.ZodString>;
9745
9800
  }, {
9746
- requestId: z.ZodString;
9747
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
9801
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
9802
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
9748
9803
  }>, "strip", z.ZodTypeAny, {
9749
- type: "REJECT_CORRECTION";
9750
- data: Record<string, string | number | boolean | {
9804
+ type: "UNASSIGN";
9805
+ declaration: Record<string, string | number | boolean | {
9751
9806
  type: string;
9752
9807
  filename: string;
9753
9808
  originalFilename: string;
@@ -9784,11 +9839,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9784
9839
  option: string;
9785
9840
  filename: string;
9786
9841
  originalFilename: string;
9787
- }[]>;
9788
- requestId: string;
9842
+ }[] | undefined>;
9843
+ assignedTo: null;
9789
9844
  eventId: string;
9790
9845
  transactionId: string;
9791
- metadata?: Record<string, string | number | boolean | {
9846
+ annotation?: Record<string, string | number | boolean | {
9792
9847
  type: string;
9793
9848
  filename: string;
9794
9849
  originalFilename: string;
@@ -9825,9 +9880,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9825
9880
  option: string;
9826
9881
  filename: string;
9827
9882
  originalFilename: string;
9828
- }[]> | undefined;
9883
+ }[] | undefined> | undefined;
9884
+ originalActionId?: string | undefined;
9829
9885
  }, {
9830
- data: Record<string, string | number | boolean | {
9886
+ declaration: Record<string, string | number | boolean | {
9831
9887
  type: string;
9832
9888
  filename: string;
9833
9889
  originalFilename: string;
@@ -9864,12 +9920,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9864
9920
  option: string;
9865
9921
  filename: string;
9866
9922
  originalFilename: string;
9867
- }[]>;
9868
- requestId: string;
9923
+ }[] | undefined>;
9869
9924
  eventId: string;
9870
9925
  transactionId: string;
9871
- type?: "REJECT_CORRECTION" | undefined;
9872
- metadata?: Record<string, string | number | boolean | {
9926
+ type?: "UNASSIGN" | undefined;
9927
+ annotation?: Record<string, string | number | boolean | {
9873
9928
  type: string;
9874
9929
  filename: string;
9875
9930
  originalFilename: string;
@@ -9906,11 +9961,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9906
9961
  option: string;
9907
9962
  filename: string;
9908
9963
  originalFilename: string;
9909
- }[]> | undefined;
9964
+ }[] | undefined> | undefined;
9965
+ originalActionId?: string | undefined;
9966
+ assignedTo?: null | undefined;
9910
9967
  }>, z.ZodObject<z.objectUtil.extendShape<{
9911
9968
  eventId: z.ZodString;
9912
9969
  transactionId: z.ZodString;
9913
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9970
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9914
9971
  filename: z.ZodString;
9915
9972
  originalFilename: z.ZodString;
9916
9973
  type: z.ZodString;
@@ -9993,7 +10050,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9993
10050
  province: string;
9994
10051
  urbanOrRural: "RURAL";
9995
10052
  village?: string | null | undefined;
9996
- }>, z.ZodObject<{
10053
+ }>, z.ZodUndefined, z.ZodObject<{
9997
10054
  country: z.ZodString;
9998
10055
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9999
10056
  state: z.ZodString;
@@ -10024,7 +10081,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10024
10081
  addressLine3?: string | null | undefined;
10025
10082
  postcodeOrZip?: string | null | undefined;
10026
10083
  }>]>>;
10027
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10084
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10028
10085
  filename: z.ZodString;
10029
10086
  originalFilename: z.ZodString;
10030
10087
  type: z.ZodString;
@@ -10107,7 +10164,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10107
10164
  province: string;
10108
10165
  urbanOrRural: "RURAL";
10109
10166
  village?: string | null | undefined;
10110
- }>, z.ZodObject<{
10167
+ }>, z.ZodUndefined, z.ZodObject<{
10111
10168
  country: z.ZodString;
10112
10169
  addressType: z.ZodLiteral<"INTERNATIONAL">;
10113
10170
  state: z.ZodString;
@@ -10138,12 +10195,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10138
10195
  addressLine3?: string | null | undefined;
10139
10196
  postcodeOrZip?: string | null | undefined;
10140
10197
  }>]>>>;
10198
+ originalActionId: z.ZodOptional<z.ZodString>;
10141
10199
  }, {
10142
- requestId: z.ZodString;
10143
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
10200
+ type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
10144
10201
  }>, "strip", z.ZodTypeAny, {
10145
- type: "APPROVE_CORRECTION";
10146
- data: Record<string, string | number | boolean | {
10202
+ type: "PRINT_CERTIFICATE";
10203
+ declaration: Record<string, string | number | boolean | {
10147
10204
  type: string;
10148
10205
  filename: string;
10149
10206
  originalFilename: string;
@@ -10180,11 +10237,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10180
10237
  option: string;
10181
10238
  filename: string;
10182
10239
  originalFilename: string;
10183
- }[]>;
10184
- requestId: string;
10240
+ }[] | undefined>;
10185
10241
  eventId: string;
10186
10242
  transactionId: string;
10187
- metadata?: Record<string, string | number | boolean | {
10243
+ annotation?: Record<string, string | number | boolean | {
10188
10244
  type: string;
10189
10245
  filename: string;
10190
10246
  originalFilename: string;
@@ -10221,9 +10277,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10221
10277
  option: string;
10222
10278
  filename: string;
10223
10279
  originalFilename: string;
10224
- }[]> | undefined;
10280
+ }[] | undefined> | undefined;
10281
+ originalActionId?: string | undefined;
10225
10282
  }, {
10226
- data: Record<string, string | number | boolean | {
10283
+ declaration: Record<string, string | number | boolean | {
10227
10284
  type: string;
10228
10285
  filename: string;
10229
10286
  originalFilename: string;
@@ -10260,12 +10317,1601 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10260
10317
  option: string;
10261
10318
  filename: string;
10262
10319
  originalFilename: string;
10263
- }[]>;
10264
- requestId: string;
10320
+ }[] | undefined>;
10265
10321
  eventId: string;
10266
10322
  transactionId: string;
10267
- type?: "APPROVE_CORRECTION" | undefined;
10268
- metadata?: Record<string, string | number | boolean | {
10323
+ type?: "PRINT_CERTIFICATE" | undefined;
10324
+ annotation?: Record<string, string | number | boolean | {
10325
+ type: string;
10326
+ filename: string;
10327
+ originalFilename: string;
10328
+ } | {
10329
+ country: string;
10330
+ district: string;
10331
+ addressType: "DOMESTIC";
10332
+ province: string;
10333
+ urbanOrRural: "URBAN";
10334
+ number?: string | null | undefined;
10335
+ town?: string | null | undefined;
10336
+ residentialArea?: string | null | undefined;
10337
+ street?: string | null | undefined;
10338
+ zipCode?: string | null | undefined;
10339
+ } | {
10340
+ country: string;
10341
+ district: string;
10342
+ addressType: "DOMESTIC";
10343
+ province: string;
10344
+ urbanOrRural: "RURAL";
10345
+ village?: string | null | undefined;
10346
+ } | {
10347
+ country: string;
10348
+ state: string;
10349
+ addressType: "INTERNATIONAL";
10350
+ district2: string;
10351
+ cityOrTown?: string | null | undefined;
10352
+ addressLine1?: string | null | undefined;
10353
+ addressLine2?: string | null | undefined;
10354
+ addressLine3?: string | null | undefined;
10355
+ postcodeOrZip?: string | null | undefined;
10356
+ } | {
10357
+ type: string;
10358
+ option: string;
10359
+ filename: string;
10360
+ originalFilename: string;
10361
+ }[] | undefined> | undefined;
10362
+ originalActionId?: string | undefined;
10363
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10364
+ eventId: z.ZodString;
10365
+ transactionId: z.ZodString;
10366
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10367
+ filename: z.ZodString;
10368
+ originalFilename: z.ZodString;
10369
+ type: z.ZodString;
10370
+ }, "strip", z.ZodTypeAny, {
10371
+ type: string;
10372
+ filename: string;
10373
+ originalFilename: string;
10374
+ }, {
10375
+ type: string;
10376
+ filename: string;
10377
+ originalFilename: string;
10378
+ }>, z.ZodArray<z.ZodObject<{
10379
+ filename: z.ZodString;
10380
+ originalFilename: z.ZodString;
10381
+ type: z.ZodString;
10382
+ option: z.ZodString;
10383
+ }, "strip", z.ZodTypeAny, {
10384
+ type: string;
10385
+ option: string;
10386
+ filename: string;
10387
+ originalFilename: string;
10388
+ }, {
10389
+ type: string;
10390
+ option: string;
10391
+ filename: string;
10392
+ originalFilename: string;
10393
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
10394
+ country: z.ZodString;
10395
+ addressType: z.ZodLiteral<"DOMESTIC">;
10396
+ province: z.ZodString;
10397
+ district: z.ZodString;
10398
+ }, {
10399
+ urbanOrRural: z.ZodLiteral<"URBAN">;
10400
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10401
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10402
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10403
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10404
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10405
+ }>, "strip", z.ZodTypeAny, {
10406
+ country: string;
10407
+ district: string;
10408
+ addressType: "DOMESTIC";
10409
+ province: string;
10410
+ urbanOrRural: "URBAN";
10411
+ number?: string | null | undefined;
10412
+ town?: string | null | undefined;
10413
+ residentialArea?: string | null | undefined;
10414
+ street?: string | null | undefined;
10415
+ zipCode?: string | null | undefined;
10416
+ }, {
10417
+ country: string;
10418
+ district: string;
10419
+ addressType: "DOMESTIC";
10420
+ province: string;
10421
+ urbanOrRural: "URBAN";
10422
+ number?: string | null | undefined;
10423
+ town?: string | null | undefined;
10424
+ residentialArea?: string | null | undefined;
10425
+ street?: string | null | undefined;
10426
+ zipCode?: string | null | undefined;
10427
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10428
+ country: z.ZodString;
10429
+ addressType: z.ZodLiteral<"DOMESTIC">;
10430
+ province: z.ZodString;
10431
+ district: z.ZodString;
10432
+ }, {
10433
+ urbanOrRural: z.ZodLiteral<"RURAL">;
10434
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10435
+ }>, "strip", z.ZodTypeAny, {
10436
+ country: string;
10437
+ district: string;
10438
+ addressType: "DOMESTIC";
10439
+ province: string;
10440
+ urbanOrRural: "RURAL";
10441
+ village?: string | null | undefined;
10442
+ }, {
10443
+ country: string;
10444
+ district: string;
10445
+ addressType: "DOMESTIC";
10446
+ province: string;
10447
+ urbanOrRural: "RURAL";
10448
+ village?: string | null | undefined;
10449
+ }>, z.ZodUndefined, z.ZodObject<{
10450
+ country: z.ZodString;
10451
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
10452
+ state: z.ZodString;
10453
+ district2: z.ZodString;
10454
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10455
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10456
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10457
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10458
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10459
+ }, "strip", z.ZodTypeAny, {
10460
+ country: string;
10461
+ state: string;
10462
+ addressType: "INTERNATIONAL";
10463
+ district2: string;
10464
+ cityOrTown?: string | null | undefined;
10465
+ addressLine1?: string | null | undefined;
10466
+ addressLine2?: string | null | undefined;
10467
+ addressLine3?: string | null | undefined;
10468
+ postcodeOrZip?: string | null | undefined;
10469
+ }, {
10470
+ country: string;
10471
+ state: string;
10472
+ addressType: "INTERNATIONAL";
10473
+ district2: string;
10474
+ cityOrTown?: string | null | undefined;
10475
+ addressLine1?: string | null | undefined;
10476
+ addressLine2?: string | null | undefined;
10477
+ addressLine3?: string | null | undefined;
10478
+ postcodeOrZip?: string | null | undefined;
10479
+ }>]>>;
10480
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10481
+ filename: z.ZodString;
10482
+ originalFilename: z.ZodString;
10483
+ type: z.ZodString;
10484
+ }, "strip", z.ZodTypeAny, {
10485
+ type: string;
10486
+ filename: string;
10487
+ originalFilename: string;
10488
+ }, {
10489
+ type: string;
10490
+ filename: string;
10491
+ originalFilename: string;
10492
+ }>, z.ZodArray<z.ZodObject<{
10493
+ filename: z.ZodString;
10494
+ originalFilename: z.ZodString;
10495
+ type: z.ZodString;
10496
+ option: z.ZodString;
10497
+ }, "strip", z.ZodTypeAny, {
10498
+ type: string;
10499
+ option: string;
10500
+ filename: string;
10501
+ originalFilename: string;
10502
+ }, {
10503
+ type: string;
10504
+ option: string;
10505
+ filename: string;
10506
+ originalFilename: string;
10507
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
10508
+ country: z.ZodString;
10509
+ addressType: z.ZodLiteral<"DOMESTIC">;
10510
+ province: z.ZodString;
10511
+ district: z.ZodString;
10512
+ }, {
10513
+ urbanOrRural: z.ZodLiteral<"URBAN">;
10514
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10515
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10516
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10517
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10518
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10519
+ }>, "strip", z.ZodTypeAny, {
10520
+ country: string;
10521
+ district: string;
10522
+ addressType: "DOMESTIC";
10523
+ province: string;
10524
+ urbanOrRural: "URBAN";
10525
+ number?: string | null | undefined;
10526
+ town?: string | null | undefined;
10527
+ residentialArea?: string | null | undefined;
10528
+ street?: string | null | undefined;
10529
+ zipCode?: string | null | undefined;
10530
+ }, {
10531
+ country: string;
10532
+ district: string;
10533
+ addressType: "DOMESTIC";
10534
+ province: string;
10535
+ urbanOrRural: "URBAN";
10536
+ number?: string | null | undefined;
10537
+ town?: string | null | undefined;
10538
+ residentialArea?: string | null | undefined;
10539
+ street?: string | null | undefined;
10540
+ zipCode?: string | null | undefined;
10541
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10542
+ country: z.ZodString;
10543
+ addressType: z.ZodLiteral<"DOMESTIC">;
10544
+ province: z.ZodString;
10545
+ district: z.ZodString;
10546
+ }, {
10547
+ urbanOrRural: z.ZodLiteral<"RURAL">;
10548
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10549
+ }>, "strip", z.ZodTypeAny, {
10550
+ country: string;
10551
+ district: string;
10552
+ addressType: "DOMESTIC";
10553
+ province: string;
10554
+ urbanOrRural: "RURAL";
10555
+ village?: string | null | undefined;
10556
+ }, {
10557
+ country: string;
10558
+ district: string;
10559
+ addressType: "DOMESTIC";
10560
+ province: string;
10561
+ urbanOrRural: "RURAL";
10562
+ village?: string | null | undefined;
10563
+ }>, z.ZodUndefined, z.ZodObject<{
10564
+ country: z.ZodString;
10565
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
10566
+ state: z.ZodString;
10567
+ district2: z.ZodString;
10568
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10569
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10570
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10571
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10572
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10573
+ }, "strip", z.ZodTypeAny, {
10574
+ country: string;
10575
+ state: string;
10576
+ addressType: "INTERNATIONAL";
10577
+ district2: string;
10578
+ cityOrTown?: string | null | undefined;
10579
+ addressLine1?: string | null | undefined;
10580
+ addressLine2?: string | null | undefined;
10581
+ addressLine3?: string | null | undefined;
10582
+ postcodeOrZip?: string | null | undefined;
10583
+ }, {
10584
+ country: string;
10585
+ state: string;
10586
+ addressType: "INTERNATIONAL";
10587
+ district2: string;
10588
+ cityOrTown?: string | null | undefined;
10589
+ addressLine1?: string | null | undefined;
10590
+ addressLine2?: string | null | undefined;
10591
+ addressLine3?: string | null | undefined;
10592
+ postcodeOrZip?: string | null | undefined;
10593
+ }>]>>>;
10594
+ originalActionId: z.ZodOptional<z.ZodString>;
10595
+ }, {
10596
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
10597
+ }>, "strip", z.ZodTypeAny, {
10598
+ type: "REQUEST_CORRECTION";
10599
+ declaration: Record<string, string | number | boolean | {
10600
+ type: string;
10601
+ filename: string;
10602
+ originalFilename: string;
10603
+ } | {
10604
+ country: string;
10605
+ district: string;
10606
+ addressType: "DOMESTIC";
10607
+ province: string;
10608
+ urbanOrRural: "URBAN";
10609
+ number?: string | null | undefined;
10610
+ town?: string | null | undefined;
10611
+ residentialArea?: string | null | undefined;
10612
+ street?: string | null | undefined;
10613
+ zipCode?: string | null | undefined;
10614
+ } | {
10615
+ country: string;
10616
+ district: string;
10617
+ addressType: "DOMESTIC";
10618
+ province: string;
10619
+ urbanOrRural: "RURAL";
10620
+ village?: string | null | undefined;
10621
+ } | {
10622
+ country: string;
10623
+ state: string;
10624
+ addressType: "INTERNATIONAL";
10625
+ district2: string;
10626
+ cityOrTown?: string | null | undefined;
10627
+ addressLine1?: string | null | undefined;
10628
+ addressLine2?: string | null | undefined;
10629
+ addressLine3?: string | null | undefined;
10630
+ postcodeOrZip?: string | null | undefined;
10631
+ } | {
10632
+ type: string;
10633
+ option: string;
10634
+ filename: string;
10635
+ originalFilename: string;
10636
+ }[] | undefined>;
10637
+ eventId: string;
10638
+ transactionId: string;
10639
+ annotation?: Record<string, string | number | boolean | {
10640
+ type: string;
10641
+ filename: string;
10642
+ originalFilename: string;
10643
+ } | {
10644
+ country: string;
10645
+ district: string;
10646
+ addressType: "DOMESTIC";
10647
+ province: string;
10648
+ urbanOrRural: "URBAN";
10649
+ number?: string | null | undefined;
10650
+ town?: string | null | undefined;
10651
+ residentialArea?: string | null | undefined;
10652
+ street?: string | null | undefined;
10653
+ zipCode?: string | null | undefined;
10654
+ } | {
10655
+ country: string;
10656
+ district: string;
10657
+ addressType: "DOMESTIC";
10658
+ province: string;
10659
+ urbanOrRural: "RURAL";
10660
+ village?: string | null | undefined;
10661
+ } | {
10662
+ country: string;
10663
+ state: string;
10664
+ addressType: "INTERNATIONAL";
10665
+ district2: string;
10666
+ cityOrTown?: string | null | undefined;
10667
+ addressLine1?: string | null | undefined;
10668
+ addressLine2?: string | null | undefined;
10669
+ addressLine3?: string | null | undefined;
10670
+ postcodeOrZip?: string | null | undefined;
10671
+ } | {
10672
+ type: string;
10673
+ option: string;
10674
+ filename: string;
10675
+ originalFilename: string;
10676
+ }[] | undefined> | undefined;
10677
+ originalActionId?: string | undefined;
10678
+ }, {
10679
+ declaration: Record<string, string | number | boolean | {
10680
+ type: string;
10681
+ filename: string;
10682
+ originalFilename: string;
10683
+ } | {
10684
+ country: string;
10685
+ district: string;
10686
+ addressType: "DOMESTIC";
10687
+ province: string;
10688
+ urbanOrRural: "URBAN";
10689
+ number?: string | null | undefined;
10690
+ town?: string | null | undefined;
10691
+ residentialArea?: string | null | undefined;
10692
+ street?: string | null | undefined;
10693
+ zipCode?: string | null | undefined;
10694
+ } | {
10695
+ country: string;
10696
+ district: string;
10697
+ addressType: "DOMESTIC";
10698
+ province: string;
10699
+ urbanOrRural: "RURAL";
10700
+ village?: string | null | undefined;
10701
+ } | {
10702
+ country: string;
10703
+ state: string;
10704
+ addressType: "INTERNATIONAL";
10705
+ district2: string;
10706
+ cityOrTown?: string | null | undefined;
10707
+ addressLine1?: string | null | undefined;
10708
+ addressLine2?: string | null | undefined;
10709
+ addressLine3?: string | null | undefined;
10710
+ postcodeOrZip?: string | null | undefined;
10711
+ } | {
10712
+ type: string;
10713
+ option: string;
10714
+ filename: string;
10715
+ originalFilename: string;
10716
+ }[] | undefined>;
10717
+ eventId: string;
10718
+ transactionId: string;
10719
+ type?: "REQUEST_CORRECTION" | undefined;
10720
+ annotation?: Record<string, string | number | boolean | {
10721
+ type: string;
10722
+ filename: string;
10723
+ originalFilename: string;
10724
+ } | {
10725
+ country: string;
10726
+ district: string;
10727
+ addressType: "DOMESTIC";
10728
+ province: string;
10729
+ urbanOrRural: "URBAN";
10730
+ number?: string | null | undefined;
10731
+ town?: string | null | undefined;
10732
+ residentialArea?: string | null | undefined;
10733
+ street?: string | null | undefined;
10734
+ zipCode?: string | null | undefined;
10735
+ } | {
10736
+ country: string;
10737
+ district: string;
10738
+ addressType: "DOMESTIC";
10739
+ province: string;
10740
+ urbanOrRural: "RURAL";
10741
+ village?: string | null | undefined;
10742
+ } | {
10743
+ country: string;
10744
+ state: string;
10745
+ addressType: "INTERNATIONAL";
10746
+ district2: string;
10747
+ cityOrTown?: string | null | undefined;
10748
+ addressLine1?: string | null | undefined;
10749
+ addressLine2?: string | null | undefined;
10750
+ addressLine3?: string | null | undefined;
10751
+ postcodeOrZip?: string | null | undefined;
10752
+ } | {
10753
+ type: string;
10754
+ option: string;
10755
+ filename: string;
10756
+ originalFilename: string;
10757
+ }[] | undefined> | undefined;
10758
+ originalActionId?: string | undefined;
10759
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10760
+ eventId: z.ZodString;
10761
+ transactionId: z.ZodString;
10762
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10763
+ filename: z.ZodString;
10764
+ originalFilename: z.ZodString;
10765
+ type: z.ZodString;
10766
+ }, "strip", z.ZodTypeAny, {
10767
+ type: string;
10768
+ filename: string;
10769
+ originalFilename: string;
10770
+ }, {
10771
+ type: string;
10772
+ filename: string;
10773
+ originalFilename: string;
10774
+ }>, z.ZodArray<z.ZodObject<{
10775
+ filename: z.ZodString;
10776
+ originalFilename: z.ZodString;
10777
+ type: z.ZodString;
10778
+ option: z.ZodString;
10779
+ }, "strip", z.ZodTypeAny, {
10780
+ type: string;
10781
+ option: string;
10782
+ filename: string;
10783
+ originalFilename: string;
10784
+ }, {
10785
+ type: string;
10786
+ option: string;
10787
+ filename: string;
10788
+ originalFilename: string;
10789
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
10790
+ country: z.ZodString;
10791
+ addressType: z.ZodLiteral<"DOMESTIC">;
10792
+ province: z.ZodString;
10793
+ district: z.ZodString;
10794
+ }, {
10795
+ urbanOrRural: z.ZodLiteral<"URBAN">;
10796
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10797
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10798
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10799
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10800
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10801
+ }>, "strip", z.ZodTypeAny, {
10802
+ country: string;
10803
+ district: string;
10804
+ addressType: "DOMESTIC";
10805
+ province: string;
10806
+ urbanOrRural: "URBAN";
10807
+ number?: string | null | undefined;
10808
+ town?: string | null | undefined;
10809
+ residentialArea?: string | null | undefined;
10810
+ street?: string | null | undefined;
10811
+ zipCode?: string | null | undefined;
10812
+ }, {
10813
+ country: string;
10814
+ district: string;
10815
+ addressType: "DOMESTIC";
10816
+ province: string;
10817
+ urbanOrRural: "URBAN";
10818
+ number?: string | null | undefined;
10819
+ town?: string | null | undefined;
10820
+ residentialArea?: string | null | undefined;
10821
+ street?: string | null | undefined;
10822
+ zipCode?: string | null | undefined;
10823
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10824
+ country: z.ZodString;
10825
+ addressType: z.ZodLiteral<"DOMESTIC">;
10826
+ province: z.ZodString;
10827
+ district: z.ZodString;
10828
+ }, {
10829
+ urbanOrRural: z.ZodLiteral<"RURAL">;
10830
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10831
+ }>, "strip", z.ZodTypeAny, {
10832
+ country: string;
10833
+ district: string;
10834
+ addressType: "DOMESTIC";
10835
+ province: string;
10836
+ urbanOrRural: "RURAL";
10837
+ village?: string | null | undefined;
10838
+ }, {
10839
+ country: string;
10840
+ district: string;
10841
+ addressType: "DOMESTIC";
10842
+ province: string;
10843
+ urbanOrRural: "RURAL";
10844
+ village?: string | null | undefined;
10845
+ }>, z.ZodUndefined, z.ZodObject<{
10846
+ country: z.ZodString;
10847
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
10848
+ state: z.ZodString;
10849
+ district2: z.ZodString;
10850
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10851
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10852
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10853
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10854
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10855
+ }, "strip", z.ZodTypeAny, {
10856
+ country: string;
10857
+ state: string;
10858
+ addressType: "INTERNATIONAL";
10859
+ district2: string;
10860
+ cityOrTown?: string | null | undefined;
10861
+ addressLine1?: string | null | undefined;
10862
+ addressLine2?: string | null | undefined;
10863
+ addressLine3?: string | null | undefined;
10864
+ postcodeOrZip?: string | null | undefined;
10865
+ }, {
10866
+ country: string;
10867
+ state: string;
10868
+ addressType: "INTERNATIONAL";
10869
+ district2: string;
10870
+ cityOrTown?: string | null | undefined;
10871
+ addressLine1?: string | null | undefined;
10872
+ addressLine2?: string | null | undefined;
10873
+ addressLine3?: string | null | undefined;
10874
+ postcodeOrZip?: string | null | undefined;
10875
+ }>]>>;
10876
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10877
+ filename: z.ZodString;
10878
+ originalFilename: z.ZodString;
10879
+ type: z.ZodString;
10880
+ }, "strip", z.ZodTypeAny, {
10881
+ type: string;
10882
+ filename: string;
10883
+ originalFilename: string;
10884
+ }, {
10885
+ type: string;
10886
+ filename: string;
10887
+ originalFilename: string;
10888
+ }>, z.ZodArray<z.ZodObject<{
10889
+ filename: z.ZodString;
10890
+ originalFilename: z.ZodString;
10891
+ type: z.ZodString;
10892
+ option: z.ZodString;
10893
+ }, "strip", z.ZodTypeAny, {
10894
+ type: string;
10895
+ option: string;
10896
+ filename: string;
10897
+ originalFilename: string;
10898
+ }, {
10899
+ type: string;
10900
+ option: string;
10901
+ filename: string;
10902
+ originalFilename: string;
10903
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
10904
+ country: z.ZodString;
10905
+ addressType: z.ZodLiteral<"DOMESTIC">;
10906
+ province: z.ZodString;
10907
+ district: z.ZodString;
10908
+ }, {
10909
+ urbanOrRural: z.ZodLiteral<"URBAN">;
10910
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10911
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10912
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10913
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10914
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10915
+ }>, "strip", z.ZodTypeAny, {
10916
+ country: string;
10917
+ district: string;
10918
+ addressType: "DOMESTIC";
10919
+ province: string;
10920
+ urbanOrRural: "URBAN";
10921
+ number?: string | null | undefined;
10922
+ town?: string | null | undefined;
10923
+ residentialArea?: string | null | undefined;
10924
+ street?: string | null | undefined;
10925
+ zipCode?: string | null | undefined;
10926
+ }, {
10927
+ country: string;
10928
+ district: string;
10929
+ addressType: "DOMESTIC";
10930
+ province: string;
10931
+ urbanOrRural: "URBAN";
10932
+ number?: string | null | undefined;
10933
+ town?: string | null | undefined;
10934
+ residentialArea?: string | null | undefined;
10935
+ street?: string | null | undefined;
10936
+ zipCode?: string | null | undefined;
10937
+ }>, z.ZodObject<z.objectUtil.extendShape<{
10938
+ country: z.ZodString;
10939
+ addressType: z.ZodLiteral<"DOMESTIC">;
10940
+ province: z.ZodString;
10941
+ district: z.ZodString;
10942
+ }, {
10943
+ urbanOrRural: z.ZodLiteral<"RURAL">;
10944
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10945
+ }>, "strip", z.ZodTypeAny, {
10946
+ country: string;
10947
+ district: string;
10948
+ addressType: "DOMESTIC";
10949
+ province: string;
10950
+ urbanOrRural: "RURAL";
10951
+ village?: string | null | undefined;
10952
+ }, {
10953
+ country: string;
10954
+ district: string;
10955
+ addressType: "DOMESTIC";
10956
+ province: string;
10957
+ urbanOrRural: "RURAL";
10958
+ village?: string | null | undefined;
10959
+ }>, z.ZodUndefined, z.ZodObject<{
10960
+ country: z.ZodString;
10961
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
10962
+ state: z.ZodString;
10963
+ district2: z.ZodString;
10964
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10965
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10966
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10967
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10968
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10969
+ }, "strip", z.ZodTypeAny, {
10970
+ country: string;
10971
+ state: string;
10972
+ addressType: "INTERNATIONAL";
10973
+ district2: string;
10974
+ cityOrTown?: string | null | undefined;
10975
+ addressLine1?: string | null | undefined;
10976
+ addressLine2?: string | null | undefined;
10977
+ addressLine3?: string | null | undefined;
10978
+ postcodeOrZip?: string | null | undefined;
10979
+ }, {
10980
+ country: string;
10981
+ state: string;
10982
+ addressType: "INTERNATIONAL";
10983
+ district2: string;
10984
+ cityOrTown?: string | null | undefined;
10985
+ addressLine1?: string | null | undefined;
10986
+ addressLine2?: string | null | undefined;
10987
+ addressLine3?: string | null | undefined;
10988
+ postcodeOrZip?: string | null | undefined;
10989
+ }>]>>>;
10990
+ originalActionId: z.ZodOptional<z.ZodString>;
10991
+ }, {
10992
+ requestId: z.ZodString;
10993
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
10994
+ }>, "strip", z.ZodTypeAny, {
10995
+ type: "REJECT_CORRECTION";
10996
+ declaration: Record<string, string | number | boolean | {
10997
+ type: string;
10998
+ filename: string;
10999
+ originalFilename: string;
11000
+ } | {
11001
+ country: string;
11002
+ district: string;
11003
+ addressType: "DOMESTIC";
11004
+ province: string;
11005
+ urbanOrRural: "URBAN";
11006
+ number?: string | null | undefined;
11007
+ town?: string | null | undefined;
11008
+ residentialArea?: string | null | undefined;
11009
+ street?: string | null | undefined;
11010
+ zipCode?: string | null | undefined;
11011
+ } | {
11012
+ country: string;
11013
+ district: string;
11014
+ addressType: "DOMESTIC";
11015
+ province: string;
11016
+ urbanOrRural: "RURAL";
11017
+ village?: string | null | undefined;
11018
+ } | {
11019
+ country: string;
11020
+ state: string;
11021
+ addressType: "INTERNATIONAL";
11022
+ district2: string;
11023
+ cityOrTown?: string | null | undefined;
11024
+ addressLine1?: string | null | undefined;
11025
+ addressLine2?: string | null | undefined;
11026
+ addressLine3?: string | null | undefined;
11027
+ postcodeOrZip?: string | null | undefined;
11028
+ } | {
11029
+ type: string;
11030
+ option: string;
11031
+ filename: string;
11032
+ originalFilename: string;
11033
+ }[] | undefined>;
11034
+ requestId: string;
11035
+ eventId: string;
11036
+ transactionId: string;
11037
+ annotation?: Record<string, string | number | boolean | {
11038
+ type: string;
11039
+ filename: string;
11040
+ originalFilename: string;
11041
+ } | {
11042
+ country: string;
11043
+ district: string;
11044
+ addressType: "DOMESTIC";
11045
+ province: string;
11046
+ urbanOrRural: "URBAN";
11047
+ number?: string | null | undefined;
11048
+ town?: string | null | undefined;
11049
+ residentialArea?: string | null | undefined;
11050
+ street?: string | null | undefined;
11051
+ zipCode?: string | null | undefined;
11052
+ } | {
11053
+ country: string;
11054
+ district: string;
11055
+ addressType: "DOMESTIC";
11056
+ province: string;
11057
+ urbanOrRural: "RURAL";
11058
+ village?: string | null | undefined;
11059
+ } | {
11060
+ country: string;
11061
+ state: string;
11062
+ addressType: "INTERNATIONAL";
11063
+ district2: string;
11064
+ cityOrTown?: string | null | undefined;
11065
+ addressLine1?: string | null | undefined;
11066
+ addressLine2?: string | null | undefined;
11067
+ addressLine3?: string | null | undefined;
11068
+ postcodeOrZip?: string | null | undefined;
11069
+ } | {
11070
+ type: string;
11071
+ option: string;
11072
+ filename: string;
11073
+ originalFilename: string;
11074
+ }[] | undefined> | undefined;
11075
+ originalActionId?: string | undefined;
11076
+ }, {
11077
+ declaration: Record<string, string | number | boolean | {
11078
+ type: string;
11079
+ filename: string;
11080
+ originalFilename: string;
11081
+ } | {
11082
+ country: string;
11083
+ district: string;
11084
+ addressType: "DOMESTIC";
11085
+ province: string;
11086
+ urbanOrRural: "URBAN";
11087
+ number?: string | null | undefined;
11088
+ town?: string | null | undefined;
11089
+ residentialArea?: string | null | undefined;
11090
+ street?: string | null | undefined;
11091
+ zipCode?: string | null | undefined;
11092
+ } | {
11093
+ country: string;
11094
+ district: string;
11095
+ addressType: "DOMESTIC";
11096
+ province: string;
11097
+ urbanOrRural: "RURAL";
11098
+ village?: string | null | undefined;
11099
+ } | {
11100
+ country: string;
11101
+ state: string;
11102
+ addressType: "INTERNATIONAL";
11103
+ district2: string;
11104
+ cityOrTown?: string | null | undefined;
11105
+ addressLine1?: string | null | undefined;
11106
+ addressLine2?: string | null | undefined;
11107
+ addressLine3?: string | null | undefined;
11108
+ postcodeOrZip?: string | null | undefined;
11109
+ } | {
11110
+ type: string;
11111
+ option: string;
11112
+ filename: string;
11113
+ originalFilename: string;
11114
+ }[] | undefined>;
11115
+ requestId: string;
11116
+ eventId: string;
11117
+ transactionId: string;
11118
+ type?: "REJECT_CORRECTION" | undefined;
11119
+ annotation?: Record<string, string | number | boolean | {
11120
+ type: string;
11121
+ filename: string;
11122
+ originalFilename: string;
11123
+ } | {
11124
+ country: string;
11125
+ district: string;
11126
+ addressType: "DOMESTIC";
11127
+ province: string;
11128
+ urbanOrRural: "URBAN";
11129
+ number?: string | null | undefined;
11130
+ town?: string | null | undefined;
11131
+ residentialArea?: string | null | undefined;
11132
+ street?: string | null | undefined;
11133
+ zipCode?: string | null | undefined;
11134
+ } | {
11135
+ country: string;
11136
+ district: string;
11137
+ addressType: "DOMESTIC";
11138
+ province: string;
11139
+ urbanOrRural: "RURAL";
11140
+ village?: string | null | undefined;
11141
+ } | {
11142
+ country: string;
11143
+ state: string;
11144
+ addressType: "INTERNATIONAL";
11145
+ district2: string;
11146
+ cityOrTown?: string | null | undefined;
11147
+ addressLine1?: string | null | undefined;
11148
+ addressLine2?: string | null | undefined;
11149
+ addressLine3?: string | null | undefined;
11150
+ postcodeOrZip?: string | null | undefined;
11151
+ } | {
11152
+ type: string;
11153
+ option: string;
11154
+ filename: string;
11155
+ originalFilename: string;
11156
+ }[] | undefined> | undefined;
11157
+ originalActionId?: string | undefined;
11158
+ }>, z.ZodObject<z.objectUtil.extendShape<{
11159
+ eventId: z.ZodString;
11160
+ transactionId: z.ZodString;
11161
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11162
+ filename: z.ZodString;
11163
+ originalFilename: z.ZodString;
11164
+ type: z.ZodString;
11165
+ }, "strip", z.ZodTypeAny, {
11166
+ type: string;
11167
+ filename: string;
11168
+ originalFilename: string;
11169
+ }, {
11170
+ type: string;
11171
+ filename: string;
11172
+ originalFilename: string;
11173
+ }>, z.ZodArray<z.ZodObject<{
11174
+ filename: z.ZodString;
11175
+ originalFilename: z.ZodString;
11176
+ type: z.ZodString;
11177
+ option: z.ZodString;
11178
+ }, "strip", z.ZodTypeAny, {
11179
+ type: string;
11180
+ option: string;
11181
+ filename: string;
11182
+ originalFilename: string;
11183
+ }, {
11184
+ type: string;
11185
+ option: string;
11186
+ filename: string;
11187
+ originalFilename: string;
11188
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
11189
+ country: z.ZodString;
11190
+ addressType: z.ZodLiteral<"DOMESTIC">;
11191
+ province: z.ZodString;
11192
+ district: z.ZodString;
11193
+ }, {
11194
+ urbanOrRural: z.ZodLiteral<"URBAN">;
11195
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11196
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11197
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11198
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11199
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11200
+ }>, "strip", z.ZodTypeAny, {
11201
+ country: string;
11202
+ district: string;
11203
+ addressType: "DOMESTIC";
11204
+ province: string;
11205
+ urbanOrRural: "URBAN";
11206
+ number?: string | null | undefined;
11207
+ town?: string | null | undefined;
11208
+ residentialArea?: string | null | undefined;
11209
+ street?: string | null | undefined;
11210
+ zipCode?: string | null | undefined;
11211
+ }, {
11212
+ country: string;
11213
+ district: string;
11214
+ addressType: "DOMESTIC";
11215
+ province: string;
11216
+ urbanOrRural: "URBAN";
11217
+ number?: string | null | undefined;
11218
+ town?: string | null | undefined;
11219
+ residentialArea?: string | null | undefined;
11220
+ street?: string | null | undefined;
11221
+ zipCode?: string | null | undefined;
11222
+ }>, z.ZodObject<z.objectUtil.extendShape<{
11223
+ country: z.ZodString;
11224
+ addressType: z.ZodLiteral<"DOMESTIC">;
11225
+ province: z.ZodString;
11226
+ district: z.ZodString;
11227
+ }, {
11228
+ urbanOrRural: z.ZodLiteral<"RURAL">;
11229
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11230
+ }>, "strip", z.ZodTypeAny, {
11231
+ country: string;
11232
+ district: string;
11233
+ addressType: "DOMESTIC";
11234
+ province: string;
11235
+ urbanOrRural: "RURAL";
11236
+ village?: string | null | undefined;
11237
+ }, {
11238
+ country: string;
11239
+ district: string;
11240
+ addressType: "DOMESTIC";
11241
+ province: string;
11242
+ urbanOrRural: "RURAL";
11243
+ village?: string | null | undefined;
11244
+ }>, z.ZodUndefined, z.ZodObject<{
11245
+ country: z.ZodString;
11246
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
11247
+ state: z.ZodString;
11248
+ district2: z.ZodString;
11249
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11250
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11251
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11252
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11253
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11254
+ }, "strip", z.ZodTypeAny, {
11255
+ country: string;
11256
+ state: string;
11257
+ addressType: "INTERNATIONAL";
11258
+ district2: string;
11259
+ cityOrTown?: string | null | undefined;
11260
+ addressLine1?: string | null | undefined;
11261
+ addressLine2?: string | null | undefined;
11262
+ addressLine3?: string | null | undefined;
11263
+ postcodeOrZip?: string | null | undefined;
11264
+ }, {
11265
+ country: string;
11266
+ state: string;
11267
+ addressType: "INTERNATIONAL";
11268
+ district2: string;
11269
+ cityOrTown?: string | null | undefined;
11270
+ addressLine1?: string | null | undefined;
11271
+ addressLine2?: string | null | undefined;
11272
+ addressLine3?: string | null | undefined;
11273
+ postcodeOrZip?: string | null | undefined;
11274
+ }>]>>;
11275
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11276
+ filename: z.ZodString;
11277
+ originalFilename: z.ZodString;
11278
+ type: z.ZodString;
11279
+ }, "strip", z.ZodTypeAny, {
11280
+ type: string;
11281
+ filename: string;
11282
+ originalFilename: string;
11283
+ }, {
11284
+ type: string;
11285
+ filename: string;
11286
+ originalFilename: string;
11287
+ }>, z.ZodArray<z.ZodObject<{
11288
+ filename: z.ZodString;
11289
+ originalFilename: z.ZodString;
11290
+ type: z.ZodString;
11291
+ option: z.ZodString;
11292
+ }, "strip", z.ZodTypeAny, {
11293
+ type: string;
11294
+ option: string;
11295
+ filename: string;
11296
+ originalFilename: string;
11297
+ }, {
11298
+ type: string;
11299
+ option: string;
11300
+ filename: string;
11301
+ originalFilename: string;
11302
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
11303
+ country: z.ZodString;
11304
+ addressType: z.ZodLiteral<"DOMESTIC">;
11305
+ province: z.ZodString;
11306
+ district: z.ZodString;
11307
+ }, {
11308
+ urbanOrRural: z.ZodLiteral<"URBAN">;
11309
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11310
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11311
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11312
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11313
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11314
+ }>, "strip", z.ZodTypeAny, {
11315
+ country: string;
11316
+ district: string;
11317
+ addressType: "DOMESTIC";
11318
+ province: string;
11319
+ urbanOrRural: "URBAN";
11320
+ number?: string | null | undefined;
11321
+ town?: string | null | undefined;
11322
+ residentialArea?: string | null | undefined;
11323
+ street?: string | null | undefined;
11324
+ zipCode?: string | null | undefined;
11325
+ }, {
11326
+ country: string;
11327
+ district: string;
11328
+ addressType: "DOMESTIC";
11329
+ province: string;
11330
+ urbanOrRural: "URBAN";
11331
+ number?: string | null | undefined;
11332
+ town?: string | null | undefined;
11333
+ residentialArea?: string | null | undefined;
11334
+ street?: string | null | undefined;
11335
+ zipCode?: string | null | undefined;
11336
+ }>, z.ZodObject<z.objectUtil.extendShape<{
11337
+ country: z.ZodString;
11338
+ addressType: z.ZodLiteral<"DOMESTIC">;
11339
+ province: z.ZodString;
11340
+ district: z.ZodString;
11341
+ }, {
11342
+ urbanOrRural: z.ZodLiteral<"RURAL">;
11343
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11344
+ }>, "strip", z.ZodTypeAny, {
11345
+ country: string;
11346
+ district: string;
11347
+ addressType: "DOMESTIC";
11348
+ province: string;
11349
+ urbanOrRural: "RURAL";
11350
+ village?: string | null | undefined;
11351
+ }, {
11352
+ country: string;
11353
+ district: string;
11354
+ addressType: "DOMESTIC";
11355
+ province: string;
11356
+ urbanOrRural: "RURAL";
11357
+ village?: string | null | undefined;
11358
+ }>, z.ZodUndefined, z.ZodObject<{
11359
+ country: z.ZodString;
11360
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
11361
+ state: z.ZodString;
11362
+ district2: z.ZodString;
11363
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11364
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11365
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11366
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11367
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11368
+ }, "strip", z.ZodTypeAny, {
11369
+ country: string;
11370
+ state: string;
11371
+ addressType: "INTERNATIONAL";
11372
+ district2: string;
11373
+ cityOrTown?: string | null | undefined;
11374
+ addressLine1?: string | null | undefined;
11375
+ addressLine2?: string | null | undefined;
11376
+ addressLine3?: string | null | undefined;
11377
+ postcodeOrZip?: string | null | undefined;
11378
+ }, {
11379
+ country: string;
11380
+ state: string;
11381
+ addressType: "INTERNATIONAL";
11382
+ district2: string;
11383
+ cityOrTown?: string | null | undefined;
11384
+ addressLine1?: string | null | undefined;
11385
+ addressLine2?: string | null | undefined;
11386
+ addressLine3?: string | null | undefined;
11387
+ postcodeOrZip?: string | null | undefined;
11388
+ }>]>>>;
11389
+ originalActionId: z.ZodOptional<z.ZodString>;
11390
+ }, {
11391
+ requestId: z.ZodString;
11392
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
11393
+ }>, "strip", z.ZodTypeAny, {
11394
+ type: "APPROVE_CORRECTION";
11395
+ declaration: Record<string, string | number | boolean | {
11396
+ type: string;
11397
+ filename: string;
11398
+ originalFilename: string;
11399
+ } | {
11400
+ country: string;
11401
+ district: string;
11402
+ addressType: "DOMESTIC";
11403
+ province: string;
11404
+ urbanOrRural: "URBAN";
11405
+ number?: string | null | undefined;
11406
+ town?: string | null | undefined;
11407
+ residentialArea?: string | null | undefined;
11408
+ street?: string | null | undefined;
11409
+ zipCode?: string | null | undefined;
11410
+ } | {
11411
+ country: string;
11412
+ district: string;
11413
+ addressType: "DOMESTIC";
11414
+ province: string;
11415
+ urbanOrRural: "RURAL";
11416
+ village?: string | null | undefined;
11417
+ } | {
11418
+ country: string;
11419
+ state: string;
11420
+ addressType: "INTERNATIONAL";
11421
+ district2: string;
11422
+ cityOrTown?: string | null | undefined;
11423
+ addressLine1?: string | null | undefined;
11424
+ addressLine2?: string | null | undefined;
11425
+ addressLine3?: string | null | undefined;
11426
+ postcodeOrZip?: string | null | undefined;
11427
+ } | {
11428
+ type: string;
11429
+ option: string;
11430
+ filename: string;
11431
+ originalFilename: string;
11432
+ }[] | undefined>;
11433
+ requestId: string;
11434
+ eventId: string;
11435
+ transactionId: string;
11436
+ annotation?: Record<string, string | number | boolean | {
11437
+ type: string;
11438
+ filename: string;
11439
+ originalFilename: string;
11440
+ } | {
11441
+ country: string;
11442
+ district: string;
11443
+ addressType: "DOMESTIC";
11444
+ province: string;
11445
+ urbanOrRural: "URBAN";
11446
+ number?: string | null | undefined;
11447
+ town?: string | null | undefined;
11448
+ residentialArea?: string | null | undefined;
11449
+ street?: string | null | undefined;
11450
+ zipCode?: string | null | undefined;
11451
+ } | {
11452
+ country: string;
11453
+ district: string;
11454
+ addressType: "DOMESTIC";
11455
+ province: string;
11456
+ urbanOrRural: "RURAL";
11457
+ village?: string | null | undefined;
11458
+ } | {
11459
+ country: string;
11460
+ state: string;
11461
+ addressType: "INTERNATIONAL";
11462
+ district2: string;
11463
+ cityOrTown?: string | null | undefined;
11464
+ addressLine1?: string | null | undefined;
11465
+ addressLine2?: string | null | undefined;
11466
+ addressLine3?: string | null | undefined;
11467
+ postcodeOrZip?: string | null | undefined;
11468
+ } | {
11469
+ type: string;
11470
+ option: string;
11471
+ filename: string;
11472
+ originalFilename: string;
11473
+ }[] | undefined> | undefined;
11474
+ originalActionId?: string | undefined;
11475
+ }, {
11476
+ declaration: Record<string, string | number | boolean | {
11477
+ type: string;
11478
+ filename: string;
11479
+ originalFilename: string;
11480
+ } | {
11481
+ country: string;
11482
+ district: string;
11483
+ addressType: "DOMESTIC";
11484
+ province: string;
11485
+ urbanOrRural: "URBAN";
11486
+ number?: string | null | undefined;
11487
+ town?: string | null | undefined;
11488
+ residentialArea?: string | null | undefined;
11489
+ street?: string | null | undefined;
11490
+ zipCode?: string | null | undefined;
11491
+ } | {
11492
+ country: string;
11493
+ district: string;
11494
+ addressType: "DOMESTIC";
11495
+ province: string;
11496
+ urbanOrRural: "RURAL";
11497
+ village?: string | null | undefined;
11498
+ } | {
11499
+ country: string;
11500
+ state: string;
11501
+ addressType: "INTERNATIONAL";
11502
+ district2: string;
11503
+ cityOrTown?: string | null | undefined;
11504
+ addressLine1?: string | null | undefined;
11505
+ addressLine2?: string | null | undefined;
11506
+ addressLine3?: string | null | undefined;
11507
+ postcodeOrZip?: string | null | undefined;
11508
+ } | {
11509
+ type: string;
11510
+ option: string;
11511
+ filename: string;
11512
+ originalFilename: string;
11513
+ }[] | undefined>;
11514
+ requestId: string;
11515
+ eventId: string;
11516
+ transactionId: string;
11517
+ type?: "APPROVE_CORRECTION" | undefined;
11518
+ annotation?: Record<string, string | number | boolean | {
11519
+ type: string;
11520
+ filename: string;
11521
+ originalFilename: string;
11522
+ } | {
11523
+ country: string;
11524
+ district: string;
11525
+ addressType: "DOMESTIC";
11526
+ province: string;
11527
+ urbanOrRural: "URBAN";
11528
+ number?: string | null | undefined;
11529
+ town?: string | null | undefined;
11530
+ residentialArea?: string | null | undefined;
11531
+ street?: string | null | undefined;
11532
+ zipCode?: string | null | undefined;
11533
+ } | {
11534
+ country: string;
11535
+ district: string;
11536
+ addressType: "DOMESTIC";
11537
+ province: string;
11538
+ urbanOrRural: "RURAL";
11539
+ village?: string | null | undefined;
11540
+ } | {
11541
+ country: string;
11542
+ state: string;
11543
+ addressType: "INTERNATIONAL";
11544
+ district2: string;
11545
+ cityOrTown?: string | null | undefined;
11546
+ addressLine1?: string | null | undefined;
11547
+ addressLine2?: string | null | undefined;
11548
+ addressLine3?: string | null | undefined;
11549
+ postcodeOrZip?: string | null | undefined;
11550
+ } | {
11551
+ type: string;
11552
+ option: string;
11553
+ filename: string;
11554
+ originalFilename: string;
11555
+ }[] | undefined> | undefined;
11556
+ originalActionId?: string | undefined;
11557
+ }>, z.ZodObject<z.objectUtil.extendShape<{
11558
+ eventId: z.ZodString;
11559
+ transactionId: z.ZodString;
11560
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11561
+ filename: z.ZodString;
11562
+ originalFilename: z.ZodString;
11563
+ type: z.ZodString;
11564
+ }, "strip", z.ZodTypeAny, {
11565
+ type: string;
11566
+ filename: string;
11567
+ originalFilename: string;
11568
+ }, {
11569
+ type: string;
11570
+ filename: string;
11571
+ originalFilename: string;
11572
+ }>, z.ZodArray<z.ZodObject<{
11573
+ filename: z.ZodString;
11574
+ originalFilename: z.ZodString;
11575
+ type: z.ZodString;
11576
+ option: z.ZodString;
11577
+ }, "strip", z.ZodTypeAny, {
11578
+ type: string;
11579
+ option: string;
11580
+ filename: string;
11581
+ originalFilename: string;
11582
+ }, {
11583
+ type: string;
11584
+ option: string;
11585
+ filename: string;
11586
+ originalFilename: string;
11587
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
11588
+ country: z.ZodString;
11589
+ addressType: z.ZodLiteral<"DOMESTIC">;
11590
+ province: z.ZodString;
11591
+ district: z.ZodString;
11592
+ }, {
11593
+ urbanOrRural: z.ZodLiteral<"URBAN">;
11594
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11595
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11596
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11597
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11598
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11599
+ }>, "strip", z.ZodTypeAny, {
11600
+ country: string;
11601
+ district: string;
11602
+ addressType: "DOMESTIC";
11603
+ province: string;
11604
+ urbanOrRural: "URBAN";
11605
+ number?: string | null | undefined;
11606
+ town?: string | null | undefined;
11607
+ residentialArea?: string | null | undefined;
11608
+ street?: string | null | undefined;
11609
+ zipCode?: string | null | undefined;
11610
+ }, {
11611
+ country: string;
11612
+ district: string;
11613
+ addressType: "DOMESTIC";
11614
+ province: string;
11615
+ urbanOrRural: "URBAN";
11616
+ number?: string | null | undefined;
11617
+ town?: string | null | undefined;
11618
+ residentialArea?: string | null | undefined;
11619
+ street?: string | null | undefined;
11620
+ zipCode?: string | null | undefined;
11621
+ }>, z.ZodObject<z.objectUtil.extendShape<{
11622
+ country: z.ZodString;
11623
+ addressType: z.ZodLiteral<"DOMESTIC">;
11624
+ province: z.ZodString;
11625
+ district: z.ZodString;
11626
+ }, {
11627
+ urbanOrRural: z.ZodLiteral<"RURAL">;
11628
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11629
+ }>, "strip", z.ZodTypeAny, {
11630
+ country: string;
11631
+ district: string;
11632
+ addressType: "DOMESTIC";
11633
+ province: string;
11634
+ urbanOrRural: "RURAL";
11635
+ village?: string | null | undefined;
11636
+ }, {
11637
+ country: string;
11638
+ district: string;
11639
+ addressType: "DOMESTIC";
11640
+ province: string;
11641
+ urbanOrRural: "RURAL";
11642
+ village?: string | null | undefined;
11643
+ }>, z.ZodUndefined, z.ZodObject<{
11644
+ country: z.ZodString;
11645
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
11646
+ state: z.ZodString;
11647
+ district2: z.ZodString;
11648
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11649
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11650
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11651
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11652
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11653
+ }, "strip", z.ZodTypeAny, {
11654
+ country: string;
11655
+ state: string;
11656
+ addressType: "INTERNATIONAL";
11657
+ district2: string;
11658
+ cityOrTown?: string | null | undefined;
11659
+ addressLine1?: string | null | undefined;
11660
+ addressLine2?: string | null | undefined;
11661
+ addressLine3?: string | null | undefined;
11662
+ postcodeOrZip?: string | null | undefined;
11663
+ }, {
11664
+ country: string;
11665
+ state: string;
11666
+ addressType: "INTERNATIONAL";
11667
+ district2: string;
11668
+ cityOrTown?: string | null | undefined;
11669
+ addressLine1?: string | null | undefined;
11670
+ addressLine2?: string | null | undefined;
11671
+ addressLine3?: string | null | undefined;
11672
+ postcodeOrZip?: string | null | undefined;
11673
+ }>]>>;
11674
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11675
+ filename: z.ZodString;
11676
+ originalFilename: z.ZodString;
11677
+ type: z.ZodString;
11678
+ }, "strip", z.ZodTypeAny, {
11679
+ type: string;
11680
+ filename: string;
11681
+ originalFilename: string;
11682
+ }, {
11683
+ type: string;
11684
+ filename: string;
11685
+ originalFilename: string;
11686
+ }>, z.ZodArray<z.ZodObject<{
11687
+ filename: z.ZodString;
11688
+ originalFilename: z.ZodString;
11689
+ type: z.ZodString;
11690
+ option: z.ZodString;
11691
+ }, "strip", z.ZodTypeAny, {
11692
+ type: string;
11693
+ option: string;
11694
+ filename: string;
11695
+ originalFilename: string;
11696
+ }, {
11697
+ type: string;
11698
+ option: string;
11699
+ filename: string;
11700
+ originalFilename: string;
11701
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
11702
+ country: z.ZodString;
11703
+ addressType: z.ZodLiteral<"DOMESTIC">;
11704
+ province: z.ZodString;
11705
+ district: z.ZodString;
11706
+ }, {
11707
+ urbanOrRural: z.ZodLiteral<"URBAN">;
11708
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11709
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11710
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11711
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11712
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11713
+ }>, "strip", z.ZodTypeAny, {
11714
+ country: string;
11715
+ district: string;
11716
+ addressType: "DOMESTIC";
11717
+ province: string;
11718
+ urbanOrRural: "URBAN";
11719
+ number?: string | null | undefined;
11720
+ town?: string | null | undefined;
11721
+ residentialArea?: string | null | undefined;
11722
+ street?: string | null | undefined;
11723
+ zipCode?: string | null | undefined;
11724
+ }, {
11725
+ country: string;
11726
+ district: string;
11727
+ addressType: "DOMESTIC";
11728
+ province: string;
11729
+ urbanOrRural: "URBAN";
11730
+ number?: string | null | undefined;
11731
+ town?: string | null | undefined;
11732
+ residentialArea?: string | null | undefined;
11733
+ street?: string | null | undefined;
11734
+ zipCode?: string | null | undefined;
11735
+ }>, z.ZodObject<z.objectUtil.extendShape<{
11736
+ country: z.ZodString;
11737
+ addressType: z.ZodLiteral<"DOMESTIC">;
11738
+ province: z.ZodString;
11739
+ district: z.ZodString;
11740
+ }, {
11741
+ urbanOrRural: z.ZodLiteral<"RURAL">;
11742
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11743
+ }>, "strip", z.ZodTypeAny, {
11744
+ country: string;
11745
+ district: string;
11746
+ addressType: "DOMESTIC";
11747
+ province: string;
11748
+ urbanOrRural: "RURAL";
11749
+ village?: string | null | undefined;
11750
+ }, {
11751
+ country: string;
11752
+ district: string;
11753
+ addressType: "DOMESTIC";
11754
+ province: string;
11755
+ urbanOrRural: "RURAL";
11756
+ village?: string | null | undefined;
11757
+ }>, z.ZodUndefined, z.ZodObject<{
11758
+ country: z.ZodString;
11759
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
11760
+ state: z.ZodString;
11761
+ district2: z.ZodString;
11762
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11763
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11764
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11765
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11766
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11767
+ }, "strip", z.ZodTypeAny, {
11768
+ country: string;
11769
+ state: string;
11770
+ addressType: "INTERNATIONAL";
11771
+ district2: string;
11772
+ cityOrTown?: string | null | undefined;
11773
+ addressLine1?: string | null | undefined;
11774
+ addressLine2?: string | null | undefined;
11775
+ addressLine3?: string | null | undefined;
11776
+ postcodeOrZip?: string | null | undefined;
11777
+ }, {
11778
+ country: string;
11779
+ state: string;
11780
+ addressType: "INTERNATIONAL";
11781
+ district2: string;
11782
+ cityOrTown?: string | null | undefined;
11783
+ addressLine1?: string | null | undefined;
11784
+ addressLine2?: string | null | undefined;
11785
+ addressLine3?: string | null | undefined;
11786
+ postcodeOrZip?: string | null | undefined;
11787
+ }>]>>>;
11788
+ originalActionId: z.ZodOptional<z.ZodString>;
11789
+ }, {
11790
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
11791
+ }>, "strip", z.ZodTypeAny, {
11792
+ type: "READ";
11793
+ declaration: Record<string, string | number | boolean | {
11794
+ type: string;
11795
+ filename: string;
11796
+ originalFilename: string;
11797
+ } | {
11798
+ country: string;
11799
+ district: string;
11800
+ addressType: "DOMESTIC";
11801
+ province: string;
11802
+ urbanOrRural: "URBAN";
11803
+ number?: string | null | undefined;
11804
+ town?: string | null | undefined;
11805
+ residentialArea?: string | null | undefined;
11806
+ street?: string | null | undefined;
11807
+ zipCode?: string | null | undefined;
11808
+ } | {
11809
+ country: string;
11810
+ district: string;
11811
+ addressType: "DOMESTIC";
11812
+ province: string;
11813
+ urbanOrRural: "RURAL";
11814
+ village?: string | null | undefined;
11815
+ } | {
11816
+ country: string;
11817
+ state: string;
11818
+ addressType: "INTERNATIONAL";
11819
+ district2: string;
11820
+ cityOrTown?: string | null | undefined;
11821
+ addressLine1?: string | null | undefined;
11822
+ addressLine2?: string | null | undefined;
11823
+ addressLine3?: string | null | undefined;
11824
+ postcodeOrZip?: string | null | undefined;
11825
+ } | {
11826
+ type: string;
11827
+ option: string;
11828
+ filename: string;
11829
+ originalFilename: string;
11830
+ }[] | undefined>;
11831
+ eventId: string;
11832
+ transactionId: string;
11833
+ annotation?: Record<string, string | number | boolean | {
11834
+ type: string;
11835
+ filename: string;
11836
+ originalFilename: string;
11837
+ } | {
11838
+ country: string;
11839
+ district: string;
11840
+ addressType: "DOMESTIC";
11841
+ province: string;
11842
+ urbanOrRural: "URBAN";
11843
+ number?: string | null | undefined;
11844
+ town?: string | null | undefined;
11845
+ residentialArea?: string | null | undefined;
11846
+ street?: string | null | undefined;
11847
+ zipCode?: string | null | undefined;
11848
+ } | {
11849
+ country: string;
11850
+ district: string;
11851
+ addressType: "DOMESTIC";
11852
+ province: string;
11853
+ urbanOrRural: "RURAL";
11854
+ village?: string | null | undefined;
11855
+ } | {
11856
+ country: string;
11857
+ state: string;
11858
+ addressType: "INTERNATIONAL";
11859
+ district2: string;
11860
+ cityOrTown?: string | null | undefined;
11861
+ addressLine1?: string | null | undefined;
11862
+ addressLine2?: string | null | undefined;
11863
+ addressLine3?: string | null | undefined;
11864
+ postcodeOrZip?: string | null | undefined;
11865
+ } | {
11866
+ type: string;
11867
+ option: string;
11868
+ filename: string;
11869
+ originalFilename: string;
11870
+ }[] | undefined> | undefined;
11871
+ originalActionId?: string | undefined;
11872
+ }, {
11873
+ declaration: Record<string, string | number | boolean | {
11874
+ type: string;
11875
+ filename: string;
11876
+ originalFilename: string;
11877
+ } | {
11878
+ country: string;
11879
+ district: string;
11880
+ addressType: "DOMESTIC";
11881
+ province: string;
11882
+ urbanOrRural: "URBAN";
11883
+ number?: string | null | undefined;
11884
+ town?: string | null | undefined;
11885
+ residentialArea?: string | null | undefined;
11886
+ street?: string | null | undefined;
11887
+ zipCode?: string | null | undefined;
11888
+ } | {
11889
+ country: string;
11890
+ district: string;
11891
+ addressType: "DOMESTIC";
11892
+ province: string;
11893
+ urbanOrRural: "RURAL";
11894
+ village?: string | null | undefined;
11895
+ } | {
11896
+ country: string;
11897
+ state: string;
11898
+ addressType: "INTERNATIONAL";
11899
+ district2: string;
11900
+ cityOrTown?: string | null | undefined;
11901
+ addressLine1?: string | null | undefined;
11902
+ addressLine2?: string | null | undefined;
11903
+ addressLine3?: string | null | undefined;
11904
+ postcodeOrZip?: string | null | undefined;
11905
+ } | {
11906
+ type: string;
11907
+ option: string;
11908
+ filename: string;
11909
+ originalFilename: string;
11910
+ }[] | undefined>;
11911
+ eventId: string;
11912
+ transactionId: string;
11913
+ type?: "READ" | undefined;
11914
+ annotation?: Record<string, string | number | boolean | {
10269
11915
  type: string;
10270
11916
  filename: string;
10271
11917
  originalFilename: string;
@@ -10302,7 +11948,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10302
11948
  option: string;
10303
11949
  filename: string;
10304
11950
  originalFilename: string;
10305
- }[]> | undefined;
11951
+ }[] | undefined> | undefined;
11952
+ originalActionId?: string | undefined;
10306
11953
  }>]>;
10307
11954
  export type ActionInput = z.input<typeof ActionInput>;
10308
11955
  export type ActionInputWithType = z.infer<typeof ActionInput>;