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

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.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +6911 -14585
  3. package/dist/commons/conditionals/conditionals.d.ts +25 -3
  4. package/dist/commons/conditionals/validate.d.ts +12 -11
  5. package/dist/commons/events/ActionConfig.d.ts +1123 -2056
  6. package/dist/commons/events/ActionDocument.d.ts +7441 -347
  7. package/dist/commons/events/ActionInput.d.ts +2169 -522
  8. package/dist/commons/events/ActionType.d.ts +24 -16
  9. package/dist/commons/events/Conditional.d.ts +21 -5
  10. package/dist/commons/events/Draft.d.ts +64 -52
  11. package/dist/commons/events/EventConfig.d.ts +551 -1206
  12. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  13. package/dist/commons/events/EventDocument.d.ts +845 -454
  14. package/dist/commons/events/EventIndex.d.ts +6 -3
  15. package/dist/commons/events/EventMetadata.d.ts +3 -0
  16. package/dist/commons/events/FieldConfig.d.ts +465 -73
  17. package/dist/commons/events/FieldType.d.ts +2 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +23 -2
  19. package/dist/commons/events/FieldValue.d.ts +6 -4
  20. package/dist/commons/events/FormConfig.d.ts +633 -48
  21. package/dist/commons/events/PageConfig.d.ts +335 -0
  22. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  23. package/dist/commons/events/User.d.ts +1 -0
  24. package/dist/commons/events/defineConfig.d.ts +91 -216
  25. package/dist/commons/events/index.d.ts +2 -1
  26. package/dist/commons/events/test.utils.d.ts +69 -286
  27. package/dist/commons/events/utils.d.ts +81 -83
  28. package/dist/conditionals/index.js +161 -93
  29. package/dist/events/index.js +1169 -756
  30. package/package.json +1 -1
@@ -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.ZodDefault<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;
@@ -115,8 +115,8 @@ export declare const BaseActionInput: z.ZodObject<{
115
115
  addressLine2?: string | null | undefined;
116
116
  addressLine3?: string | null | undefined;
117
117
  postcodeOrZip?: string | null | undefined;
118
- }>]>>;
119
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
118
+ }>]>>>;
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,12 @@ 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
+ eventId: string;
316
+ transactionId: string;
317
+ declaration?: Record<string, string | number | boolean | {
314
318
  type: string;
315
319
  filename: string;
316
320
  originalFilename: string;
@@ -347,10 +351,8 @@ export declare const BaseActionInput: z.ZodObject<{
347
351
  option: string;
348
352
  filename: string;
349
353
  originalFilename: string;
350
- }[]>;
351
- eventId: string;
352
- transactionId: string;
353
- metadata?: Record<string, string | number | boolean | {
354
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -505,8 +508,8 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
505
508
  addressLine2?: string | null | undefined;
506
509
  addressLine3?: string | null | undefined;
507
510
  postcodeOrZip?: string | null | undefined;
508
- }>]>>;
509
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
511
+ }>]>>>;
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,14 @@ 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
+ eventId: string;
714
+ transactionId: string;
715
+ type?: "REGISTER" | undefined;
716
+ declaration?: Record<string, string | number | boolean | {
721
717
  type: string;
722
718
  filename: string;
723
719
  originalFilename: string;
@@ -754,15 +750,8 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
754
750
  option: string;
755
751
  filename: string;
756
752
  originalFilename: string;
757
- }[]>;
758
- identifiers: {
759
- trackingId: string;
760
- registrationNumber: string;
761
- };
762
- eventId: string;
763
- transactionId: string;
764
- type?: "REGISTER" | undefined;
765
- metadata?: Record<string, string | number | boolean | {
753
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -918,8 +909,8 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
918
909
  addressLine2?: string | null | undefined;
919
910
  addressLine3?: string | null | undefined;
920
911
  postcodeOrZip?: string | null | undefined;
921
- }>]>>;
922
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
912
+ }>]>>>;
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,14 @@ 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
+ eventId: string;
1115
+ transactionId: string;
1116
+ duplicates: string[];
1117
+ type?: "VALIDATE" | undefined;
1118
+ declaration?: Record<string, string | number | boolean | {
1122
1119
  type: string;
1123
1120
  filename: string;
1124
1121
  originalFilename: string;
@@ -1155,12 +1152,8 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1155
1152
  option: string;
1156
1153
  filename: string;
1157
1154
  originalFilename: string;
1158
- }[]>;
1159
- eventId: string;
1160
- transactionId: string;
1161
- duplicates: string[];
1162
- type?: "VALIDATE" | undefined;
1163
- metadata?: Record<string, string | number | boolean | {
1155
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -1316,8 +1310,8 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1316
1310
  addressLine2?: string | null | undefined;
1317
1311
  addressLine3?: string | null | undefined;
1318
1312
  postcodeOrZip?: string | null | undefined;
1319
- }>]>>;
1320
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1313
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
1514
+ transactionId: string;
1515
+ type?: "NOTIFY" | undefined;
1516
+ declaration?: Record<string, string | number | boolean | {
1518
1517
  type: string;
1519
1518
  filename: string;
1520
1519
  originalFilename: string;
@@ -1551,11 +1550,8 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1551
1550
  option: string;
1552
1551
  filename: string;
1553
1552
  originalFilename: string;
1554
- }[]>;
1555
- eventId: string;
1556
- transactionId: string;
1557
- type?: "NOTIFY" | undefined;
1558
- metadata?: Record<string, string | number | boolean | {
1553
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -1711,8 +1708,8 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1711
1708
  addressLine2?: string | null | undefined;
1712
1709
  addressLine3?: string | null | undefined;
1713
1710
  postcodeOrZip?: string | null | undefined;
1714
- }>]>>;
1715
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1711
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
1912
+ transactionId: string;
1913
+ type?: "DECLARE" | undefined;
1914
+ declaration?: Record<string, string | number | boolean | {
1913
1915
  type: string;
1914
1916
  filename: string;
1915
1917
  originalFilename: string;
@@ -1946,11 +1948,8 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1946
1948
  option: string;
1947
1949
  filename: string;
1948
1950
  originalFilename: string;
1949
- }[]>;
1950
- eventId: string;
1951
- transactionId: string;
1952
- type?: "DECLARE" | undefined;
1953
- metadata?: Record<string, string | number | boolean | {
1951
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -2105,8 +2105,8 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2105
2105
  addressLine2?: string | null | undefined;
2106
2106
  addressLine3?: string | null | undefined;
2107
2107
  postcodeOrZip?: string | null | undefined;
2108
- }>]>>;
2109
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2108
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
2309
+ transactionId: string;
2310
+ type?: "PRINT_CERTIFICATE" | undefined;
2311
+ declaration?: Record<string, string | number | boolean | {
2307
2312
  type: string;
2308
2313
  filename: string;
2309
2314
  originalFilename: string;
@@ -2340,11 +2345,8 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2340
2345
  option: string;
2341
2346
  filename: string;
2342
2347
  originalFilename: string;
2343
- }[]>;
2344
- eventId: string;
2345
- transactionId: string;
2346
- type?: "PRINT_CERTIFICATE" | undefined;
2347
- metadata?: Record<string, string | number | boolean | {
2348
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -2500,8 +2503,8 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2500
2503
  addressLine2?: string | null | undefined;
2501
2504
  addressLine3?: string | null | undefined;
2502
2505
  postcodeOrZip?: string | null | undefined;
2503
- }>]>>;
2504
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2506
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
2707
+ transactionId: string;
2708
+ type?: "REJECT" | undefined;
2709
+ declaration?: Record<string, string | number | boolean | {
2702
2710
  type: string;
2703
2711
  filename: string;
2704
2712
  originalFilename: string;
@@ -2735,11 +2743,8 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2735
2743
  option: string;
2736
2744
  filename: string;
2737
2745
  originalFilename: string;
2738
- }[]>;
2739
- eventId: string;
2740
- transactionId: string;
2741
- type?: "REJECT" | undefined;
2742
- metadata?: Record<string, string | number | boolean | {
2746
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -2895,8 +2901,8 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2895
2901
  addressLine2?: string | null | undefined;
2896
2902
  addressLine3?: string | null | undefined;
2897
2903
  postcodeOrZip?: string | null | undefined;
2898
- }>]>>;
2899
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2904
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
3105
+ transactionId: string;
3106
+ type?: "MARKED_AS_DUPLICATE" | undefined;
3107
+ declaration?: Record<string, string | number | boolean | {
3097
3108
  type: string;
3098
3109
  filename: string;
3099
3110
  originalFilename: string;
@@ -3130,11 +3141,8 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3130
3141
  option: string;
3131
3142
  filename: string;
3132
3143
  originalFilename: string;
3133
- }[]>;
3134
- eventId: string;
3135
- transactionId: string;
3136
- type?: "MARKED_AS_DUPLICATE" | undefined;
3137
- metadata?: Record<string, string | number | boolean | {
3144
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -3290,8 +3299,8 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3290
3299
  addressLine2?: string | null | undefined;
3291
3300
  addressLine3?: string | null | undefined;
3292
3301
  postcodeOrZip?: string | null | undefined;
3293
- }>]>>;
3294
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3302
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
3503
+ transactionId: string;
3504
+ type?: "ARCHIVE" | undefined;
3505
+ declaration?: Record<string, string | number | boolean | {
3492
3506
  type: string;
3493
3507
  filename: string;
3494
3508
  originalFilename: string;
@@ -3525,11 +3539,8 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3525
3539
  option: string;
3526
3540
  filename: string;
3527
3541
  originalFilename: string;
3528
- }[]>;
3529
- eventId: string;
3530
- transactionId: string;
3531
- type?: "ARCHIVE" | undefined;
3532
- metadata?: Record<string, string | number | boolean | {
3542
+ }[] | undefined> | undefined;
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.ZodDefault<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;
@@ -3685,8 +3697,8 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3685
3697
  addressLine2?: string | null | undefined;
3686
3698
  addressLine3?: string | null | undefined;
3687
3699
  postcodeOrZip?: string | null | undefined;
3688
- }>]>>;
3689
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3700
+ }>]>>>;
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,14 @@ 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
+ assignedTo: string;
3903
+ eventId: string;
3904
+ transactionId: string;
3905
+ type?: "ASSIGN" | undefined;
3906
+ declaration?: Record<string, string | number | boolean | {
3887
3907
  type: string;
3888
3908
  filename: string;
3889
3909
  originalFilename: string;
@@ -3920,11 +3940,8 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3920
3940
  option: string;
3921
3941
  filename: string;
3922
3942
  originalFilename: string;
3923
- }[]>;
3924
- eventId: string;
3925
- transactionId: string;
3926
- type?: "REQUEST_CORRECTION" | undefined;
3927
- metadata?: Record<string, string | number | boolean | {
3943
+ }[] | undefined> | 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.ZodDefault<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;
@@ -4080,8 +4098,8 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4080
4098
  addressLine2?: string | null | undefined;
4081
4099
  addressLine3?: string | null | undefined;
4082
4100
  postcodeOrZip?: string | null | undefined;
4083
- }>]>>;
4084
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4101
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
4304
+ transactionId: string;
4305
+ type?: "UNASSIGN" | undefined;
4306
+ declaration?: Record<string, string | number | boolean | {
4284
4307
  type: string;
4285
4308
  filename: string;
4286
4309
  originalFilename: string;
@@ -4317,12 +4340,8 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4317
4340
  option: string;
4318
4341
  filename: string;
4319
4342
  originalFilename: string;
4320
- }[]>;
4321
- requestId: string;
4322
- eventId: string;
4323
- transactionId: string;
4324
- type?: "REJECT_CORRECTION" | undefined;
4325
- metadata?: Record<string, string | number | boolean | {
4343
+ }[] | undefined> | 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.ZodDefault<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;
@@ -4478,8 +4499,8 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4478
4499
  addressLine2?: string | null | undefined;
4479
4500
  addressLine3?: string | null | undefined;
4480
4501
  postcodeOrZip?: string | null | undefined;
4481
- }>]>>;
4482
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4502
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
4703
+ transactionId: string;
4704
+ type?: "REQUEST_CORRECTION" | undefined;
4705
+ declaration?: Record<string, string | number | boolean | {
4682
4706
  type: string;
4683
4707
  filename: string;
4684
4708
  originalFilename: string;
@@ -4715,12 +4739,8 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4715
4739
  option: string;
4716
4740
  filename: string;
4717
4741
  originalFilename: string;
4718
- }[]>;
4719
- requestId: string;
4720
- eventId: string;
4721
- transactionId: string;
4722
- type?: "APPROVE_CORRECTION" | undefined;
4723
- metadata?: Record<string, string | number | boolean | {
4742
+ }[] | undefined> | 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.ZodDefault<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;
@@ -4884,8 +4897,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4884
4897
  addressLine2?: string | null | undefined;
4885
4898
  addressLine3?: string | null | undefined;
4886
4899
  postcodeOrZip?: string | null | undefined;
4887
- }>]>>;
4888
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4900
+ }>]>>>;
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,14 @@ 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
+ requestId: string;
5103
+ eventId: string;
5104
+ transactionId: string;
5105
+ type?: "REJECT_CORRECTION" | undefined;
5106
+ declaration?: Record<string, string | number | boolean | {
5088
5107
  type: string;
5089
5108
  filename: string;
5090
5109
  originalFilename: string;
@@ -5121,12 +5140,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5121
5140
  option: string;
5122
5141
  filename: string;
5123
5142
  originalFilename: string;
5124
- }[]>;
5125
- createdAtLocation: string;
5126
- eventId: string;
5127
- transactionId: string;
5128
- type?: "CREATE" | undefined;
5129
- metadata?: Record<string, string | number | boolean | {
5143
+ }[] | undefined> | 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.ZodDefault<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;
@@ -5280,8 +5298,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5280
5298
  addressLine2?: string | null | undefined;
5281
5299
  addressLine3?: string | null | undefined;
5282
5300
  postcodeOrZip?: string | null | undefined;
5283
- }>]>>;
5284
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5301
+ }>]>>>;
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,14 @@ 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
+ requestId: string;
5504
+ eventId: string;
5505
+ transactionId: string;
5506
+ type?: "APPROVE_CORRECTION" | undefined;
5507
+ declaration?: Record<string, string | number | boolean | {
5484
5508
  type: string;
5485
5509
  filename: string;
5486
5510
  originalFilename: string;
@@ -5517,12 +5541,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5517
5541
  option: string;
5518
5542
  filename: string;
5519
5543
  originalFilename: string;
5520
- }[]>;
5521
- eventId: string;
5522
- transactionId: string;
5523
- duplicates: string[];
5524
- type?: "VALIDATE" | undefined;
5525
- metadata?: Record<string, string | number | boolean | {
5544
+ }[] | undefined> | 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.ZodDefault<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;
@@ -5676,8 +5699,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5676
5699
  addressLine2?: string | null | undefined;
5677
5700
  addressLine3?: string | null | undefined;
5678
5701
  postcodeOrZip?: string | null | undefined;
5679
- }>]>>;
5680
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5702
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
5903
+ transactionId: string;
5904
+ type?: "READ" | undefined;
5905
+ declaration?: Record<string, string | number | boolean | {
5892
5906
  type: string;
5893
5907
  filename: string;
5894
5908
  originalFilename: string;
@@ -5925,15 +5939,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5925
5939
  option: string;
5926
5940
  filename: string;
5927
5941
  originalFilename: string;
5928
- }[]>;
5929
- identifiers: {
5930
- trackingId: string;
5931
- registrationNumber: string;
5932
- };
5933
- eventId: string;
5934
- transactionId: string;
5935
- type?: "REGISTER" | undefined;
5936
- metadata?: Record<string, string | number | boolean | {
5942
+ }[] | undefined> | 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.ZodDefault<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;
@@ -6087,8 +6105,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6087
6105
  addressLine2?: string | null | undefined;
6088
6106
  addressLine3?: string | null | undefined;
6089
6107
  postcodeOrZip?: string | null | undefined;
6090
- }>]>>;
6091
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6108
+ }>]>>>;
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,14 @@ 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
+ createdAtLocation: string;
6311
+ eventId: string;
6312
+ transactionId: string;
6313
+ type?: "CREATE" | undefined;
6314
+ declaration?: Record<string, string | number | boolean | {
6289
6315
  type: string;
6290
6316
  filename: string;
6291
6317
  originalFilename: string;
@@ -6322,11 +6348,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6322
6348
  option: string;
6323
6349
  filename: string;
6324
6350
  originalFilename: string;
6325
- }[]>;
6326
- eventId: string;
6327
- transactionId: string;
6328
- type?: "NOTIFY" | undefined;
6329
- metadata?: Record<string, string | number | boolean | {
6351
+ }[] | undefined> | 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.ZodDefault<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;
@@ -6480,8 +6504,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6480
6504
  addressLine2?: string | null | undefined;
6481
6505
  addressLine3?: string | null | undefined;
6482
6506
  postcodeOrZip?: string | null | undefined;
6483
- }>]>>;
6484
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6507
+ }>]>>>;
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,14 @@ 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
+ eventId: string;
6710
+ transactionId: string;
6711
+ duplicates: string[];
6712
+ type?: "VALIDATE" | undefined;
6713
+ declaration?: Record<string, string | number | boolean | {
6682
6714
  type: string;
6683
6715
  filename: string;
6684
6716
  originalFilename: string;
@@ -6715,11 +6747,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6715
6747
  option: string;
6716
6748
  filename: string;
6717
6749
  originalFilename: string;
6718
- }[]>;
6719
- eventId: string;
6720
- transactionId: string;
6721
- type?: "DECLARE" | undefined;
6722
- metadata?: Record<string, string | number | boolean | {
6750
+ }[] | undefined> | 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.ZodDefault<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;
@@ -6873,8 +6903,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6873
6903
  addressLine2?: string | null | undefined;
6874
6904
  addressLine3?: string | null | undefined;
6875
6905
  postcodeOrZip?: string | null | undefined;
6876
- }>]>>;
6877
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6906
+ }>]>>>;
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,14 @@ 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
+ eventId: string;
7109
+ transactionId: string;
7110
+ type?: "REGISTER" | undefined;
7111
+ declaration?: Record<string, string | number | boolean | {
7075
7112
  type: string;
7076
7113
  filename: string;
7077
7114
  originalFilename: string;
@@ -7108,11 +7145,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7108
7145
  option: string;
7109
7146
  filename: string;
7110
7147
  originalFilename: string;
7111
- }[]>;
7112
- eventId: string;
7113
- transactionId: string;
7114
- type?: "REJECT" | undefined;
7115
- metadata?: Record<string, string | number | boolean | {
7148
+ }[] | undefined> | 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.ZodDefault<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;
@@ -7266,8 +7302,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7266
7302
  addressLine2?: string | null | undefined;
7267
7303
  addressLine3?: string | null | undefined;
7268
7304
  postcodeOrZip?: string | null | undefined;
7269
- }>]>>;
7270
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7305
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
7506
+ transactionId: string;
7507
+ type?: "NOTIFY" | undefined;
7508
+ declaration?: Record<string, string | number | boolean | {
7468
7509
  type: string;
7469
7510
  filename: string;
7470
7511
  originalFilename: string;
@@ -7501,11 +7542,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7501
7542
  option: string;
7502
7543
  filename: string;
7503
7544
  originalFilename: string;
7504
- }[]>;
7505
- eventId: string;
7506
- transactionId: string;
7507
- type?: "MARKED_AS_DUPLICATE" | undefined;
7508
- metadata?: Record<string, string | number | boolean | {
7545
+ }[] | undefined> | 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.ZodDefault<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;
@@ -7659,8 +7698,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7659
7698
  addressLine2?: string | null | undefined;
7660
7699
  addressLine3?: string | null | undefined;
7661
7700
  postcodeOrZip?: string | null | undefined;
7662
- }>]>>;
7663
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7701
+ }>]>>>;
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,13 @@ 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
+ eventId: string;
7902
+ transactionId: string;
7903
+ type?: "DECLARE" | undefined;
7904
+ declaration?: Record<string, string | number | boolean | {
7861
7905
  type: string;
7862
7906
  filename: string;
7863
7907
  originalFilename: string;
@@ -7894,11 +7938,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7894
7938
  option: string;
7895
7939
  filename: string;
7896
7940
  originalFilename: string;
7897
- }[]>;
7898
- eventId: string;
7899
- transactionId: string;
7900
- type?: "ARCHIVE" | undefined;
7901
- metadata?: Record<string, string | number | boolean | {
7941
+ }[] | undefined> | 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.ZodDefault<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;
@@ -8052,8 +8094,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8052
8094
  addressLine2?: string | null | undefined;
8053
8095
  addressLine3?: string | null | undefined;
8054
8096
  postcodeOrZip?: string | null | undefined;
8055
- }>]>>;
8056
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8097
+ }>]>>>;
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,10 +8291,1519 @@ 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 | {
8256
- type: string;
8297
+ eventId: string;
8298
+ transactionId: string;
8299
+ type?: "REJECT" | undefined;
8300
+ declaration?: Record<string, string | number | boolean | {
8301
+ type: string;
8302
+ filename: string;
8303
+ originalFilename: string;
8304
+ } | {
8305
+ country: string;
8306
+ district: string;
8307
+ addressType: "DOMESTIC";
8308
+ province: string;
8309
+ urbanOrRural: "URBAN";
8310
+ number?: string | null | undefined;
8311
+ town?: string | null | undefined;
8312
+ residentialArea?: string | null | undefined;
8313
+ street?: string | null | undefined;
8314
+ zipCode?: string | null | undefined;
8315
+ } | {
8316
+ country: string;
8317
+ district: string;
8318
+ addressType: "DOMESTIC";
8319
+ province: string;
8320
+ urbanOrRural: "RURAL";
8321
+ village?: string | null | undefined;
8322
+ } | {
8323
+ country: string;
8324
+ state: string;
8325
+ addressType: "INTERNATIONAL";
8326
+ district2: string;
8327
+ cityOrTown?: string | null | undefined;
8328
+ addressLine1?: string | null | undefined;
8329
+ addressLine2?: string | null | undefined;
8330
+ addressLine3?: string | null | undefined;
8331
+ postcodeOrZip?: string | null | undefined;
8332
+ } | {
8333
+ type: string;
8334
+ option: string;
8335
+ filename: string;
8336
+ originalFilename: string;
8337
+ }[] | undefined> | undefined;
8338
+ annotation?: Record<string, string | number | boolean | {
8339
+ type: string;
8340
+ filename: string;
8341
+ originalFilename: string;
8342
+ } | {
8343
+ country: string;
8344
+ district: string;
8345
+ addressType: "DOMESTIC";
8346
+ province: string;
8347
+ urbanOrRural: "URBAN";
8348
+ number?: string | null | undefined;
8349
+ town?: string | null | undefined;
8350
+ residentialArea?: string | null | undefined;
8351
+ street?: string | null | undefined;
8352
+ zipCode?: string | null | undefined;
8353
+ } | {
8354
+ country: string;
8355
+ district: string;
8356
+ addressType: "DOMESTIC";
8357
+ province: string;
8358
+ urbanOrRural: "RURAL";
8359
+ village?: string | null | undefined;
8360
+ } | {
8361
+ country: string;
8362
+ state: string;
8363
+ addressType: "INTERNATIONAL";
8364
+ district2: string;
8365
+ cityOrTown?: string | null | undefined;
8366
+ addressLine1?: string | null | undefined;
8367
+ addressLine2?: string | null | undefined;
8368
+ addressLine3?: string | null | undefined;
8369
+ postcodeOrZip?: string | null | undefined;
8370
+ } | {
8371
+ type: string;
8372
+ option: string;
8373
+ filename: string;
8374
+ originalFilename: string;
8375
+ }[] | undefined> | undefined;
8376
+ originalActionId?: string | undefined;
8377
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8378
+ eventId: z.ZodString;
8379
+ transactionId: z.ZodString;
8380
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8381
+ filename: z.ZodString;
8382
+ originalFilename: z.ZodString;
8383
+ type: z.ZodString;
8384
+ }, "strip", z.ZodTypeAny, {
8385
+ type: string;
8386
+ filename: string;
8387
+ originalFilename: string;
8388
+ }, {
8389
+ type: string;
8390
+ filename: string;
8391
+ originalFilename: string;
8392
+ }>, z.ZodArray<z.ZodObject<{
8393
+ filename: z.ZodString;
8394
+ originalFilename: z.ZodString;
8395
+ type: z.ZodString;
8396
+ option: z.ZodString;
8397
+ }, "strip", z.ZodTypeAny, {
8398
+ type: string;
8399
+ option: string;
8400
+ filename: string;
8401
+ originalFilename: string;
8402
+ }, {
8403
+ type: string;
8404
+ option: string;
8405
+ filename: string;
8406
+ originalFilename: string;
8407
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8408
+ country: z.ZodString;
8409
+ addressType: z.ZodLiteral<"DOMESTIC">;
8410
+ province: z.ZodString;
8411
+ district: z.ZodString;
8412
+ }, {
8413
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8414
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8415
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8416
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8417
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8418
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8419
+ }>, "strip", z.ZodTypeAny, {
8420
+ country: string;
8421
+ district: string;
8422
+ addressType: "DOMESTIC";
8423
+ province: string;
8424
+ urbanOrRural: "URBAN";
8425
+ number?: string | null | undefined;
8426
+ town?: string | null | undefined;
8427
+ residentialArea?: string | null | undefined;
8428
+ street?: string | null | undefined;
8429
+ zipCode?: string | null | undefined;
8430
+ }, {
8431
+ country: string;
8432
+ district: string;
8433
+ addressType: "DOMESTIC";
8434
+ province: string;
8435
+ urbanOrRural: "URBAN";
8436
+ number?: string | null | undefined;
8437
+ town?: string | null | undefined;
8438
+ residentialArea?: string | null | undefined;
8439
+ street?: string | null | undefined;
8440
+ zipCode?: string | null | undefined;
8441
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8442
+ country: z.ZodString;
8443
+ addressType: z.ZodLiteral<"DOMESTIC">;
8444
+ province: z.ZodString;
8445
+ district: z.ZodString;
8446
+ }, {
8447
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8448
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8449
+ }>, "strip", z.ZodTypeAny, {
8450
+ country: string;
8451
+ district: string;
8452
+ addressType: "DOMESTIC";
8453
+ province: string;
8454
+ urbanOrRural: "RURAL";
8455
+ village?: string | null | undefined;
8456
+ }, {
8457
+ country: string;
8458
+ district: string;
8459
+ addressType: "DOMESTIC";
8460
+ province: string;
8461
+ urbanOrRural: "RURAL";
8462
+ village?: string | null | undefined;
8463
+ }>, z.ZodUndefined, z.ZodObject<{
8464
+ country: z.ZodString;
8465
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8466
+ state: z.ZodString;
8467
+ district2: z.ZodString;
8468
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8469
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8470
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8471
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8472
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8473
+ }, "strip", z.ZodTypeAny, {
8474
+ country: string;
8475
+ state: string;
8476
+ addressType: "INTERNATIONAL";
8477
+ district2: string;
8478
+ cityOrTown?: string | null | undefined;
8479
+ addressLine1?: string | null | undefined;
8480
+ addressLine2?: string | null | undefined;
8481
+ addressLine3?: string | null | undefined;
8482
+ postcodeOrZip?: string | null | undefined;
8483
+ }, {
8484
+ country: string;
8485
+ state: string;
8486
+ addressType: "INTERNATIONAL";
8487
+ district2: string;
8488
+ cityOrTown?: string | null | undefined;
8489
+ addressLine1?: string | null | undefined;
8490
+ addressLine2?: string | null | undefined;
8491
+ addressLine3?: string | null | undefined;
8492
+ postcodeOrZip?: string | null | undefined;
8493
+ }>]>>>;
8494
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8495
+ filename: z.ZodString;
8496
+ originalFilename: z.ZodString;
8497
+ type: z.ZodString;
8498
+ }, "strip", z.ZodTypeAny, {
8499
+ type: string;
8500
+ filename: string;
8501
+ originalFilename: string;
8502
+ }, {
8503
+ type: string;
8504
+ filename: string;
8505
+ originalFilename: string;
8506
+ }>, z.ZodArray<z.ZodObject<{
8507
+ filename: z.ZodString;
8508
+ originalFilename: z.ZodString;
8509
+ type: z.ZodString;
8510
+ option: z.ZodString;
8511
+ }, "strip", z.ZodTypeAny, {
8512
+ type: string;
8513
+ option: string;
8514
+ filename: string;
8515
+ originalFilename: string;
8516
+ }, {
8517
+ type: string;
8518
+ option: string;
8519
+ filename: string;
8520
+ originalFilename: string;
8521
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8522
+ country: z.ZodString;
8523
+ addressType: z.ZodLiteral<"DOMESTIC">;
8524
+ province: z.ZodString;
8525
+ district: z.ZodString;
8526
+ }, {
8527
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8528
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8529
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8530
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8531
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8532
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8533
+ }>, "strip", z.ZodTypeAny, {
8534
+ country: string;
8535
+ district: string;
8536
+ addressType: "DOMESTIC";
8537
+ province: string;
8538
+ urbanOrRural: "URBAN";
8539
+ number?: string | null | undefined;
8540
+ town?: string | null | undefined;
8541
+ residentialArea?: string | null | undefined;
8542
+ street?: string | null | undefined;
8543
+ zipCode?: string | null | undefined;
8544
+ }, {
8545
+ country: string;
8546
+ district: string;
8547
+ addressType: "DOMESTIC";
8548
+ province: string;
8549
+ urbanOrRural: "URBAN";
8550
+ number?: string | null | undefined;
8551
+ town?: string | null | undefined;
8552
+ residentialArea?: string | null | undefined;
8553
+ street?: string | null | undefined;
8554
+ zipCode?: string | null | undefined;
8555
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8556
+ country: z.ZodString;
8557
+ addressType: z.ZodLiteral<"DOMESTIC">;
8558
+ province: z.ZodString;
8559
+ district: z.ZodString;
8560
+ }, {
8561
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8562
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8563
+ }>, "strip", z.ZodTypeAny, {
8564
+ country: string;
8565
+ district: string;
8566
+ addressType: "DOMESTIC";
8567
+ province: string;
8568
+ urbanOrRural: "RURAL";
8569
+ village?: string | null | undefined;
8570
+ }, {
8571
+ country: string;
8572
+ district: string;
8573
+ addressType: "DOMESTIC";
8574
+ province: string;
8575
+ urbanOrRural: "RURAL";
8576
+ village?: string | null | undefined;
8577
+ }>, z.ZodUndefined, z.ZodObject<{
8578
+ country: z.ZodString;
8579
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8580
+ state: z.ZodString;
8581
+ district2: z.ZodString;
8582
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8583
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8584
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8585
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8586
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8587
+ }, "strip", z.ZodTypeAny, {
8588
+ country: string;
8589
+ state: string;
8590
+ addressType: "INTERNATIONAL";
8591
+ district2: string;
8592
+ cityOrTown?: string | null | undefined;
8593
+ addressLine1?: string | null | undefined;
8594
+ addressLine2?: string | null | undefined;
8595
+ addressLine3?: string | null | undefined;
8596
+ postcodeOrZip?: string | null | undefined;
8597
+ }, {
8598
+ country: string;
8599
+ state: string;
8600
+ addressType: "INTERNATIONAL";
8601
+ district2: string;
8602
+ cityOrTown?: string | null | undefined;
8603
+ addressLine1?: string | null | undefined;
8604
+ addressLine2?: string | null | undefined;
8605
+ addressLine3?: string | null | undefined;
8606
+ postcodeOrZip?: string | null | undefined;
8607
+ }>]>>>;
8608
+ originalActionId: z.ZodOptional<z.ZodString>;
8609
+ }, {
8610
+ type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
8611
+ }>, "strip", z.ZodTypeAny, {
8612
+ type: "MARKED_AS_DUPLICATE";
8613
+ declaration: Record<string, string | number | boolean | {
8614
+ type: string;
8615
+ filename: string;
8616
+ originalFilename: string;
8617
+ } | {
8618
+ country: string;
8619
+ district: string;
8620
+ addressType: "DOMESTIC";
8621
+ province: string;
8622
+ urbanOrRural: "URBAN";
8623
+ number?: string | null | undefined;
8624
+ town?: string | null | undefined;
8625
+ residentialArea?: string | null | undefined;
8626
+ street?: string | null | undefined;
8627
+ zipCode?: string | null | undefined;
8628
+ } | {
8629
+ country: string;
8630
+ district: string;
8631
+ addressType: "DOMESTIC";
8632
+ province: string;
8633
+ urbanOrRural: "RURAL";
8634
+ village?: string | null | undefined;
8635
+ } | {
8636
+ country: string;
8637
+ state: string;
8638
+ addressType: "INTERNATIONAL";
8639
+ district2: string;
8640
+ cityOrTown?: string | null | undefined;
8641
+ addressLine1?: string | null | undefined;
8642
+ addressLine2?: string | null | undefined;
8643
+ addressLine3?: string | null | undefined;
8644
+ postcodeOrZip?: string | null | undefined;
8645
+ } | {
8646
+ type: string;
8647
+ option: string;
8648
+ filename: string;
8649
+ originalFilename: string;
8650
+ }[] | undefined>;
8651
+ eventId: string;
8652
+ transactionId: string;
8653
+ annotation?: Record<string, string | number | boolean | {
8654
+ type: string;
8655
+ filename: string;
8656
+ originalFilename: string;
8657
+ } | {
8658
+ country: string;
8659
+ district: string;
8660
+ addressType: "DOMESTIC";
8661
+ province: string;
8662
+ urbanOrRural: "URBAN";
8663
+ number?: string | null | undefined;
8664
+ town?: string | null | undefined;
8665
+ residentialArea?: string | null | undefined;
8666
+ street?: string | null | undefined;
8667
+ zipCode?: string | null | undefined;
8668
+ } | {
8669
+ country: string;
8670
+ district: string;
8671
+ addressType: "DOMESTIC";
8672
+ province: string;
8673
+ urbanOrRural: "RURAL";
8674
+ village?: string | null | undefined;
8675
+ } | {
8676
+ country: string;
8677
+ state: string;
8678
+ addressType: "INTERNATIONAL";
8679
+ district2: string;
8680
+ cityOrTown?: string | null | undefined;
8681
+ addressLine1?: string | null | undefined;
8682
+ addressLine2?: string | null | undefined;
8683
+ addressLine3?: string | null | undefined;
8684
+ postcodeOrZip?: string | null | undefined;
8685
+ } | {
8686
+ type: string;
8687
+ option: string;
8688
+ filename: string;
8689
+ originalFilename: string;
8690
+ }[] | undefined> | undefined;
8691
+ originalActionId?: string | undefined;
8692
+ }, {
8693
+ eventId: string;
8694
+ transactionId: string;
8695
+ type?: "MARKED_AS_DUPLICATE" | undefined;
8696
+ declaration?: Record<string, string | number | boolean | {
8697
+ type: string;
8698
+ filename: string;
8699
+ originalFilename: string;
8700
+ } | {
8701
+ country: string;
8702
+ district: string;
8703
+ addressType: "DOMESTIC";
8704
+ province: string;
8705
+ urbanOrRural: "URBAN";
8706
+ number?: string | null | undefined;
8707
+ town?: string | null | undefined;
8708
+ residentialArea?: string | null | undefined;
8709
+ street?: string | null | undefined;
8710
+ zipCode?: string | null | undefined;
8711
+ } | {
8712
+ country: string;
8713
+ district: string;
8714
+ addressType: "DOMESTIC";
8715
+ province: string;
8716
+ urbanOrRural: "RURAL";
8717
+ village?: string | null | undefined;
8718
+ } | {
8719
+ country: string;
8720
+ state: string;
8721
+ addressType: "INTERNATIONAL";
8722
+ district2: string;
8723
+ cityOrTown?: string | null | undefined;
8724
+ addressLine1?: string | null | undefined;
8725
+ addressLine2?: string | null | undefined;
8726
+ addressLine3?: string | null | undefined;
8727
+ postcodeOrZip?: string | null | undefined;
8728
+ } | {
8729
+ type: string;
8730
+ option: string;
8731
+ filename: string;
8732
+ originalFilename: string;
8733
+ }[] | undefined> | undefined;
8734
+ annotation?: Record<string, string | number | boolean | {
8735
+ type: string;
8736
+ filename: string;
8737
+ originalFilename: string;
8738
+ } | {
8739
+ country: string;
8740
+ district: string;
8741
+ addressType: "DOMESTIC";
8742
+ province: string;
8743
+ urbanOrRural: "URBAN";
8744
+ number?: string | null | undefined;
8745
+ town?: string | null | undefined;
8746
+ residentialArea?: string | null | undefined;
8747
+ street?: string | null | undefined;
8748
+ zipCode?: string | null | undefined;
8749
+ } | {
8750
+ country: string;
8751
+ district: string;
8752
+ addressType: "DOMESTIC";
8753
+ province: string;
8754
+ urbanOrRural: "RURAL";
8755
+ village?: string | null | undefined;
8756
+ } | {
8757
+ country: string;
8758
+ state: string;
8759
+ addressType: "INTERNATIONAL";
8760
+ district2: string;
8761
+ cityOrTown?: string | null | undefined;
8762
+ addressLine1?: string | null | undefined;
8763
+ addressLine2?: string | null | undefined;
8764
+ addressLine3?: string | null | undefined;
8765
+ postcodeOrZip?: string | null | undefined;
8766
+ } | {
8767
+ type: string;
8768
+ option: string;
8769
+ filename: string;
8770
+ originalFilename: string;
8771
+ }[] | undefined> | undefined;
8772
+ originalActionId?: string | undefined;
8773
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8774
+ eventId: z.ZodString;
8775
+ transactionId: z.ZodString;
8776
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8777
+ filename: z.ZodString;
8778
+ originalFilename: z.ZodString;
8779
+ type: z.ZodString;
8780
+ }, "strip", z.ZodTypeAny, {
8781
+ type: string;
8782
+ filename: string;
8783
+ originalFilename: string;
8784
+ }, {
8785
+ type: string;
8786
+ filename: string;
8787
+ originalFilename: string;
8788
+ }>, z.ZodArray<z.ZodObject<{
8789
+ filename: z.ZodString;
8790
+ originalFilename: z.ZodString;
8791
+ type: z.ZodString;
8792
+ option: z.ZodString;
8793
+ }, "strip", z.ZodTypeAny, {
8794
+ type: string;
8795
+ option: string;
8796
+ filename: string;
8797
+ originalFilename: string;
8798
+ }, {
8799
+ type: string;
8800
+ option: string;
8801
+ filename: string;
8802
+ originalFilename: string;
8803
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8804
+ country: z.ZodString;
8805
+ addressType: z.ZodLiteral<"DOMESTIC">;
8806
+ province: z.ZodString;
8807
+ district: z.ZodString;
8808
+ }, {
8809
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8810
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8811
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8812
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8813
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8814
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8815
+ }>, "strip", z.ZodTypeAny, {
8816
+ country: string;
8817
+ district: string;
8818
+ addressType: "DOMESTIC";
8819
+ province: string;
8820
+ urbanOrRural: "URBAN";
8821
+ number?: string | null | undefined;
8822
+ town?: string | null | undefined;
8823
+ residentialArea?: string | null | undefined;
8824
+ street?: string | null | undefined;
8825
+ zipCode?: string | null | undefined;
8826
+ }, {
8827
+ country: string;
8828
+ district: string;
8829
+ addressType: "DOMESTIC";
8830
+ province: string;
8831
+ urbanOrRural: "URBAN";
8832
+ number?: string | null | undefined;
8833
+ town?: string | null | undefined;
8834
+ residentialArea?: string | null | undefined;
8835
+ street?: string | null | undefined;
8836
+ zipCode?: string | null | undefined;
8837
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8838
+ country: z.ZodString;
8839
+ addressType: z.ZodLiteral<"DOMESTIC">;
8840
+ province: z.ZodString;
8841
+ district: z.ZodString;
8842
+ }, {
8843
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8844
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8845
+ }>, "strip", z.ZodTypeAny, {
8846
+ country: string;
8847
+ district: string;
8848
+ addressType: "DOMESTIC";
8849
+ province: string;
8850
+ urbanOrRural: "RURAL";
8851
+ village?: string | null | undefined;
8852
+ }, {
8853
+ country: string;
8854
+ district: string;
8855
+ addressType: "DOMESTIC";
8856
+ province: string;
8857
+ urbanOrRural: "RURAL";
8858
+ village?: string | null | undefined;
8859
+ }>, z.ZodUndefined, z.ZodObject<{
8860
+ country: z.ZodString;
8861
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8862
+ state: z.ZodString;
8863
+ district2: z.ZodString;
8864
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8865
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8866
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8867
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8868
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8869
+ }, "strip", z.ZodTypeAny, {
8870
+ country: string;
8871
+ state: string;
8872
+ addressType: "INTERNATIONAL";
8873
+ district2: string;
8874
+ cityOrTown?: string | null | undefined;
8875
+ addressLine1?: string | null | undefined;
8876
+ addressLine2?: string | null | undefined;
8877
+ addressLine3?: string | null | undefined;
8878
+ postcodeOrZip?: string | null | undefined;
8879
+ }, {
8880
+ country: string;
8881
+ state: string;
8882
+ addressType: "INTERNATIONAL";
8883
+ district2: string;
8884
+ cityOrTown?: string | null | undefined;
8885
+ addressLine1?: string | null | undefined;
8886
+ addressLine2?: string | null | undefined;
8887
+ addressLine3?: string | null | undefined;
8888
+ postcodeOrZip?: string | null | undefined;
8889
+ }>]>>>;
8890
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8891
+ filename: z.ZodString;
8892
+ originalFilename: z.ZodString;
8893
+ type: z.ZodString;
8894
+ }, "strip", z.ZodTypeAny, {
8895
+ type: string;
8896
+ filename: string;
8897
+ originalFilename: string;
8898
+ }, {
8899
+ type: string;
8900
+ filename: string;
8901
+ originalFilename: string;
8902
+ }>, z.ZodArray<z.ZodObject<{
8903
+ filename: z.ZodString;
8904
+ originalFilename: z.ZodString;
8905
+ type: z.ZodString;
8906
+ option: z.ZodString;
8907
+ }, "strip", z.ZodTypeAny, {
8908
+ type: string;
8909
+ option: string;
8910
+ filename: string;
8911
+ originalFilename: string;
8912
+ }, {
8913
+ type: string;
8914
+ option: string;
8915
+ filename: string;
8916
+ originalFilename: string;
8917
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8918
+ country: z.ZodString;
8919
+ addressType: z.ZodLiteral<"DOMESTIC">;
8920
+ province: z.ZodString;
8921
+ district: z.ZodString;
8922
+ }, {
8923
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8924
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8925
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8926
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8927
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8928
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8929
+ }>, "strip", z.ZodTypeAny, {
8930
+ country: string;
8931
+ district: string;
8932
+ addressType: "DOMESTIC";
8933
+ province: string;
8934
+ urbanOrRural: "URBAN";
8935
+ number?: string | null | undefined;
8936
+ town?: string | null | undefined;
8937
+ residentialArea?: string | null | undefined;
8938
+ street?: string | null | undefined;
8939
+ zipCode?: string | null | undefined;
8940
+ }, {
8941
+ country: string;
8942
+ district: string;
8943
+ addressType: "DOMESTIC";
8944
+ province: string;
8945
+ urbanOrRural: "URBAN";
8946
+ number?: string | null | undefined;
8947
+ town?: string | null | undefined;
8948
+ residentialArea?: string | null | undefined;
8949
+ street?: string | null | undefined;
8950
+ zipCode?: string | null | undefined;
8951
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8952
+ country: z.ZodString;
8953
+ addressType: z.ZodLiteral<"DOMESTIC">;
8954
+ province: z.ZodString;
8955
+ district: z.ZodString;
8956
+ }, {
8957
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8958
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8959
+ }>, "strip", z.ZodTypeAny, {
8960
+ country: string;
8961
+ district: string;
8962
+ addressType: "DOMESTIC";
8963
+ province: string;
8964
+ urbanOrRural: "RURAL";
8965
+ village?: string | null | undefined;
8966
+ }, {
8967
+ country: string;
8968
+ district: string;
8969
+ addressType: "DOMESTIC";
8970
+ province: string;
8971
+ urbanOrRural: "RURAL";
8972
+ village?: string | null | undefined;
8973
+ }>, z.ZodUndefined, z.ZodObject<{
8974
+ country: z.ZodString;
8975
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8976
+ state: z.ZodString;
8977
+ district2: z.ZodString;
8978
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8979
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8980
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8981
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8982
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8983
+ }, "strip", z.ZodTypeAny, {
8984
+ country: string;
8985
+ state: string;
8986
+ addressType: "INTERNATIONAL";
8987
+ district2: string;
8988
+ cityOrTown?: string | null | undefined;
8989
+ addressLine1?: string | null | undefined;
8990
+ addressLine2?: string | null | undefined;
8991
+ addressLine3?: string | null | undefined;
8992
+ postcodeOrZip?: string | null | undefined;
8993
+ }, {
8994
+ country: string;
8995
+ state: string;
8996
+ addressType: "INTERNATIONAL";
8997
+ district2: string;
8998
+ cityOrTown?: string | null | undefined;
8999
+ addressLine1?: string | null | undefined;
9000
+ addressLine2?: string | null | undefined;
9001
+ addressLine3?: string | null | undefined;
9002
+ postcodeOrZip?: string | null | undefined;
9003
+ }>]>>>;
9004
+ originalActionId: z.ZodOptional<z.ZodString>;
9005
+ }, {
9006
+ type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
9007
+ }>, "strip", z.ZodTypeAny, {
9008
+ type: "ARCHIVE";
9009
+ declaration: Record<string, string | number | boolean | {
9010
+ type: string;
9011
+ filename: string;
9012
+ originalFilename: string;
9013
+ } | {
9014
+ country: string;
9015
+ district: string;
9016
+ addressType: "DOMESTIC";
9017
+ province: string;
9018
+ urbanOrRural: "URBAN";
9019
+ number?: string | null | undefined;
9020
+ town?: string | null | undefined;
9021
+ residentialArea?: string | null | undefined;
9022
+ street?: string | null | undefined;
9023
+ zipCode?: string | null | undefined;
9024
+ } | {
9025
+ country: string;
9026
+ district: string;
9027
+ addressType: "DOMESTIC";
9028
+ province: string;
9029
+ urbanOrRural: "RURAL";
9030
+ village?: string | null | undefined;
9031
+ } | {
9032
+ country: string;
9033
+ state: string;
9034
+ addressType: "INTERNATIONAL";
9035
+ district2: string;
9036
+ cityOrTown?: string | null | undefined;
9037
+ addressLine1?: string | null | undefined;
9038
+ addressLine2?: string | null | undefined;
9039
+ addressLine3?: string | null | undefined;
9040
+ postcodeOrZip?: string | null | undefined;
9041
+ } | {
9042
+ type: string;
9043
+ option: string;
9044
+ filename: string;
9045
+ originalFilename: string;
9046
+ }[] | undefined>;
9047
+ eventId: string;
9048
+ transactionId: string;
9049
+ annotation?: Record<string, string | number | boolean | {
9050
+ type: string;
9051
+ filename: string;
9052
+ originalFilename: string;
9053
+ } | {
9054
+ country: string;
9055
+ district: string;
9056
+ addressType: "DOMESTIC";
9057
+ province: string;
9058
+ urbanOrRural: "URBAN";
9059
+ number?: string | null | undefined;
9060
+ town?: string | null | undefined;
9061
+ residentialArea?: string | null | undefined;
9062
+ street?: string | null | undefined;
9063
+ zipCode?: string | null | undefined;
9064
+ } | {
9065
+ country: string;
9066
+ district: string;
9067
+ addressType: "DOMESTIC";
9068
+ province: string;
9069
+ urbanOrRural: "RURAL";
9070
+ village?: string | null | undefined;
9071
+ } | {
9072
+ country: string;
9073
+ state: string;
9074
+ addressType: "INTERNATIONAL";
9075
+ district2: string;
9076
+ cityOrTown?: string | null | undefined;
9077
+ addressLine1?: string | null | undefined;
9078
+ addressLine2?: string | null | undefined;
9079
+ addressLine3?: string | null | undefined;
9080
+ postcodeOrZip?: string | null | undefined;
9081
+ } | {
9082
+ type: string;
9083
+ option: string;
9084
+ filename: string;
9085
+ originalFilename: string;
9086
+ }[] | undefined> | undefined;
9087
+ originalActionId?: string | undefined;
9088
+ }, {
9089
+ eventId: string;
9090
+ transactionId: string;
9091
+ type?: "ARCHIVE" | undefined;
9092
+ declaration?: Record<string, string | number | boolean | {
9093
+ type: string;
9094
+ filename: string;
9095
+ originalFilename: string;
9096
+ } | {
9097
+ country: string;
9098
+ district: string;
9099
+ addressType: "DOMESTIC";
9100
+ province: string;
9101
+ urbanOrRural: "URBAN";
9102
+ number?: string | null | undefined;
9103
+ town?: string | null | undefined;
9104
+ residentialArea?: string | null | undefined;
9105
+ street?: string | null | undefined;
9106
+ zipCode?: string | null | undefined;
9107
+ } | {
9108
+ country: string;
9109
+ district: string;
9110
+ addressType: "DOMESTIC";
9111
+ province: string;
9112
+ urbanOrRural: "RURAL";
9113
+ village?: string | null | undefined;
9114
+ } | {
9115
+ country: string;
9116
+ state: string;
9117
+ addressType: "INTERNATIONAL";
9118
+ district2: string;
9119
+ cityOrTown?: string | null | undefined;
9120
+ addressLine1?: string | null | undefined;
9121
+ addressLine2?: string | null | undefined;
9122
+ addressLine3?: string | null | undefined;
9123
+ postcodeOrZip?: string | null | undefined;
9124
+ } | {
9125
+ type: string;
9126
+ option: string;
9127
+ filename: string;
9128
+ originalFilename: string;
9129
+ }[] | undefined> | undefined;
9130
+ annotation?: Record<string, string | number | boolean | {
9131
+ type: string;
9132
+ filename: string;
9133
+ originalFilename: string;
9134
+ } | {
9135
+ country: string;
9136
+ district: string;
9137
+ addressType: "DOMESTIC";
9138
+ province: string;
9139
+ urbanOrRural: "URBAN";
9140
+ number?: string | null | undefined;
9141
+ town?: string | null | undefined;
9142
+ residentialArea?: string | null | undefined;
9143
+ street?: string | null | undefined;
9144
+ zipCode?: string | null | undefined;
9145
+ } | {
9146
+ country: string;
9147
+ district: string;
9148
+ addressType: "DOMESTIC";
9149
+ province: string;
9150
+ urbanOrRural: "RURAL";
9151
+ village?: string | null | undefined;
9152
+ } | {
9153
+ country: string;
9154
+ state: string;
9155
+ addressType: "INTERNATIONAL";
9156
+ district2: string;
9157
+ cityOrTown?: string | null | undefined;
9158
+ addressLine1?: string | null | undefined;
9159
+ addressLine2?: string | null | undefined;
9160
+ addressLine3?: string | null | undefined;
9161
+ postcodeOrZip?: string | null | undefined;
9162
+ } | {
9163
+ type: string;
9164
+ option: string;
9165
+ filename: string;
9166
+ originalFilename: string;
9167
+ }[] | undefined> | undefined;
9168
+ originalActionId?: string | undefined;
9169
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9170
+ eventId: z.ZodString;
9171
+ transactionId: z.ZodString;
9172
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9173
+ filename: z.ZodString;
9174
+ originalFilename: z.ZodString;
9175
+ type: z.ZodString;
9176
+ }, "strip", z.ZodTypeAny, {
9177
+ type: string;
9178
+ filename: string;
9179
+ originalFilename: string;
9180
+ }, {
9181
+ type: string;
9182
+ filename: string;
9183
+ originalFilename: string;
9184
+ }>, z.ZodArray<z.ZodObject<{
9185
+ filename: z.ZodString;
9186
+ originalFilename: z.ZodString;
9187
+ type: z.ZodString;
9188
+ option: z.ZodString;
9189
+ }, "strip", z.ZodTypeAny, {
9190
+ type: string;
9191
+ option: string;
9192
+ filename: string;
9193
+ originalFilename: string;
9194
+ }, {
9195
+ type: string;
9196
+ option: string;
9197
+ filename: string;
9198
+ originalFilename: string;
9199
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
9200
+ country: z.ZodString;
9201
+ addressType: z.ZodLiteral<"DOMESTIC">;
9202
+ province: z.ZodString;
9203
+ district: z.ZodString;
9204
+ }, {
9205
+ urbanOrRural: z.ZodLiteral<"URBAN">;
9206
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9207
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9208
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9209
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9210
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9211
+ }>, "strip", z.ZodTypeAny, {
9212
+ country: string;
9213
+ district: string;
9214
+ addressType: "DOMESTIC";
9215
+ province: string;
9216
+ urbanOrRural: "URBAN";
9217
+ number?: string | null | undefined;
9218
+ town?: string | null | undefined;
9219
+ residentialArea?: string | null | undefined;
9220
+ street?: string | null | undefined;
9221
+ zipCode?: string | null | undefined;
9222
+ }, {
9223
+ country: string;
9224
+ district: string;
9225
+ addressType: "DOMESTIC";
9226
+ province: string;
9227
+ urbanOrRural: "URBAN";
9228
+ number?: string | null | undefined;
9229
+ town?: string | null | undefined;
9230
+ residentialArea?: string | null | undefined;
9231
+ street?: string | null | undefined;
9232
+ zipCode?: string | null | undefined;
9233
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9234
+ country: z.ZodString;
9235
+ addressType: z.ZodLiteral<"DOMESTIC">;
9236
+ province: z.ZodString;
9237
+ district: z.ZodString;
9238
+ }, {
9239
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9240
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9241
+ }>, "strip", z.ZodTypeAny, {
9242
+ country: string;
9243
+ district: string;
9244
+ addressType: "DOMESTIC";
9245
+ province: string;
9246
+ urbanOrRural: "RURAL";
9247
+ village?: string | null | undefined;
9248
+ }, {
9249
+ country: string;
9250
+ district: string;
9251
+ addressType: "DOMESTIC";
9252
+ province: string;
9253
+ urbanOrRural: "RURAL";
9254
+ village?: string | null | undefined;
9255
+ }>, z.ZodUndefined, z.ZodObject<{
9256
+ country: z.ZodString;
9257
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9258
+ state: z.ZodString;
9259
+ district2: z.ZodString;
9260
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9261
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9262
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9263
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9264
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9265
+ }, "strip", z.ZodTypeAny, {
9266
+ country: string;
9267
+ state: string;
9268
+ addressType: "INTERNATIONAL";
9269
+ district2: string;
9270
+ cityOrTown?: string | null | undefined;
9271
+ addressLine1?: string | null | undefined;
9272
+ addressLine2?: string | null | undefined;
9273
+ addressLine3?: string | null | undefined;
9274
+ postcodeOrZip?: string | null | undefined;
9275
+ }, {
9276
+ country: string;
9277
+ state: string;
9278
+ addressType: "INTERNATIONAL";
9279
+ district2: string;
9280
+ cityOrTown?: string | null | undefined;
9281
+ addressLine1?: string | null | undefined;
9282
+ addressLine2?: string | null | undefined;
9283
+ addressLine3?: string | null | undefined;
9284
+ postcodeOrZip?: string | null | undefined;
9285
+ }>]>>>;
9286
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9287
+ filename: z.ZodString;
9288
+ originalFilename: z.ZodString;
9289
+ type: z.ZodString;
9290
+ }, "strip", z.ZodTypeAny, {
9291
+ type: string;
9292
+ filename: string;
9293
+ originalFilename: string;
9294
+ }, {
9295
+ type: string;
9296
+ filename: string;
9297
+ originalFilename: string;
9298
+ }>, z.ZodArray<z.ZodObject<{
9299
+ filename: z.ZodString;
9300
+ originalFilename: z.ZodString;
9301
+ type: z.ZodString;
9302
+ option: z.ZodString;
9303
+ }, "strip", z.ZodTypeAny, {
9304
+ type: string;
9305
+ option: string;
9306
+ filename: string;
9307
+ originalFilename: string;
9308
+ }, {
9309
+ type: string;
9310
+ option: string;
9311
+ filename: string;
9312
+ originalFilename: string;
9313
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
9314
+ country: z.ZodString;
9315
+ addressType: z.ZodLiteral<"DOMESTIC">;
9316
+ province: z.ZodString;
9317
+ district: z.ZodString;
9318
+ }, {
9319
+ urbanOrRural: z.ZodLiteral<"URBAN">;
9320
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9321
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9322
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9323
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9324
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9325
+ }>, "strip", z.ZodTypeAny, {
9326
+ country: string;
9327
+ district: string;
9328
+ addressType: "DOMESTIC";
9329
+ province: string;
9330
+ urbanOrRural: "URBAN";
9331
+ number?: string | null | undefined;
9332
+ town?: string | null | undefined;
9333
+ residentialArea?: string | null | undefined;
9334
+ street?: string | null | undefined;
9335
+ zipCode?: string | null | undefined;
9336
+ }, {
9337
+ country: string;
9338
+ district: string;
9339
+ addressType: "DOMESTIC";
9340
+ province: string;
9341
+ urbanOrRural: "URBAN";
9342
+ number?: string | null | undefined;
9343
+ town?: string | null | undefined;
9344
+ residentialArea?: string | null | undefined;
9345
+ street?: string | null | undefined;
9346
+ zipCode?: string | null | undefined;
9347
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9348
+ country: z.ZodString;
9349
+ addressType: z.ZodLiteral<"DOMESTIC">;
9350
+ province: z.ZodString;
9351
+ district: z.ZodString;
9352
+ }, {
9353
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9354
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9355
+ }>, "strip", z.ZodTypeAny, {
9356
+ country: string;
9357
+ district: string;
9358
+ addressType: "DOMESTIC";
9359
+ province: string;
9360
+ urbanOrRural: "RURAL";
9361
+ village?: string | null | undefined;
9362
+ }, {
9363
+ country: string;
9364
+ district: string;
9365
+ addressType: "DOMESTIC";
9366
+ province: string;
9367
+ urbanOrRural: "RURAL";
9368
+ village?: string | null | undefined;
9369
+ }>, z.ZodUndefined, z.ZodObject<{
9370
+ country: z.ZodString;
9371
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9372
+ state: z.ZodString;
9373
+ district2: z.ZodString;
9374
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9375
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9376
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9377
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9378
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9379
+ }, "strip", z.ZodTypeAny, {
9380
+ country: string;
9381
+ state: string;
9382
+ addressType: "INTERNATIONAL";
9383
+ district2: string;
9384
+ cityOrTown?: string | null | undefined;
9385
+ addressLine1?: string | null | undefined;
9386
+ addressLine2?: string | null | undefined;
9387
+ addressLine3?: string | null | undefined;
9388
+ postcodeOrZip?: string | null | undefined;
9389
+ }, {
9390
+ country: string;
9391
+ state: string;
9392
+ addressType: "INTERNATIONAL";
9393
+ district2: string;
9394
+ cityOrTown?: string | null | undefined;
9395
+ addressLine1?: string | null | undefined;
9396
+ addressLine2?: string | null | undefined;
9397
+ addressLine3?: string | null | undefined;
9398
+ postcodeOrZip?: string | null | undefined;
9399
+ }>]>>>;
9400
+ originalActionId: z.ZodOptional<z.ZodString>;
9401
+ }, {
9402
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
9403
+ assignedTo: z.ZodString;
9404
+ }>, "strip", z.ZodTypeAny, {
9405
+ type: "ASSIGN";
9406
+ declaration: Record<string, string | number | boolean | {
9407
+ type: string;
9408
+ filename: string;
9409
+ originalFilename: string;
9410
+ } | {
9411
+ country: string;
9412
+ district: string;
9413
+ addressType: "DOMESTIC";
9414
+ province: string;
9415
+ urbanOrRural: "URBAN";
9416
+ number?: string | null | undefined;
9417
+ town?: string | null | undefined;
9418
+ residentialArea?: string | null | undefined;
9419
+ street?: string | null | undefined;
9420
+ zipCode?: string | null | undefined;
9421
+ } | {
9422
+ country: string;
9423
+ district: string;
9424
+ addressType: "DOMESTIC";
9425
+ province: string;
9426
+ urbanOrRural: "RURAL";
9427
+ village?: string | null | undefined;
9428
+ } | {
9429
+ country: string;
9430
+ state: string;
9431
+ addressType: "INTERNATIONAL";
9432
+ district2: string;
9433
+ cityOrTown?: string | null | undefined;
9434
+ addressLine1?: string | null | undefined;
9435
+ addressLine2?: string | null | undefined;
9436
+ addressLine3?: string | null | undefined;
9437
+ postcodeOrZip?: string | null | undefined;
9438
+ } | {
9439
+ type: string;
9440
+ option: string;
9441
+ filename: string;
9442
+ originalFilename: string;
9443
+ }[] | undefined>;
9444
+ assignedTo: string;
9445
+ eventId: string;
9446
+ transactionId: string;
9447
+ annotation?: Record<string, string | number | boolean | {
9448
+ type: string;
9449
+ filename: string;
9450
+ originalFilename: string;
9451
+ } | {
9452
+ country: string;
9453
+ district: string;
9454
+ addressType: "DOMESTIC";
9455
+ province: string;
9456
+ urbanOrRural: "URBAN";
9457
+ number?: string | null | undefined;
9458
+ town?: string | null | undefined;
9459
+ residentialArea?: string | null | undefined;
9460
+ street?: string | null | undefined;
9461
+ zipCode?: string | null | undefined;
9462
+ } | {
9463
+ country: string;
9464
+ district: string;
9465
+ addressType: "DOMESTIC";
9466
+ province: string;
9467
+ urbanOrRural: "RURAL";
9468
+ village?: string | null | undefined;
9469
+ } | {
9470
+ country: string;
9471
+ state: string;
9472
+ addressType: "INTERNATIONAL";
9473
+ district2: string;
9474
+ cityOrTown?: string | null | undefined;
9475
+ addressLine1?: string | null | undefined;
9476
+ addressLine2?: string | null | undefined;
9477
+ addressLine3?: string | null | undefined;
9478
+ postcodeOrZip?: string | null | undefined;
9479
+ } | {
9480
+ type: string;
9481
+ option: string;
9482
+ filename: string;
9483
+ originalFilename: string;
9484
+ }[] | undefined> | undefined;
9485
+ originalActionId?: string | undefined;
9486
+ }, {
9487
+ assignedTo: string;
9488
+ eventId: string;
9489
+ transactionId: string;
9490
+ type?: "ASSIGN" | undefined;
9491
+ declaration?: Record<string, string | number | boolean | {
9492
+ type: string;
9493
+ filename: string;
9494
+ originalFilename: string;
9495
+ } | {
9496
+ country: string;
9497
+ district: string;
9498
+ addressType: "DOMESTIC";
9499
+ province: string;
9500
+ urbanOrRural: "URBAN";
9501
+ number?: string | null | undefined;
9502
+ town?: string | null | undefined;
9503
+ residentialArea?: string | null | undefined;
9504
+ street?: string | null | undefined;
9505
+ zipCode?: string | null | undefined;
9506
+ } | {
9507
+ country: string;
9508
+ district: string;
9509
+ addressType: "DOMESTIC";
9510
+ province: string;
9511
+ urbanOrRural: "RURAL";
9512
+ village?: string | null | undefined;
9513
+ } | {
9514
+ country: string;
9515
+ state: string;
9516
+ addressType: "INTERNATIONAL";
9517
+ district2: string;
9518
+ cityOrTown?: string | null | undefined;
9519
+ addressLine1?: string | null | undefined;
9520
+ addressLine2?: string | null | undefined;
9521
+ addressLine3?: string | null | undefined;
9522
+ postcodeOrZip?: string | null | undefined;
9523
+ } | {
9524
+ type: string;
9525
+ option: string;
9526
+ filename: string;
9527
+ originalFilename: string;
9528
+ }[] | undefined> | undefined;
9529
+ annotation?: Record<string, string | number | boolean | {
9530
+ type: string;
9531
+ filename: string;
9532
+ originalFilename: string;
9533
+ } | {
9534
+ country: string;
9535
+ district: string;
9536
+ addressType: "DOMESTIC";
9537
+ province: string;
9538
+ urbanOrRural: "URBAN";
9539
+ number?: string | null | undefined;
9540
+ town?: string | null | undefined;
9541
+ residentialArea?: string | null | undefined;
9542
+ street?: string | null | undefined;
9543
+ zipCode?: string | null | undefined;
9544
+ } | {
9545
+ country: string;
9546
+ district: string;
9547
+ addressType: "DOMESTIC";
9548
+ province: string;
9549
+ urbanOrRural: "RURAL";
9550
+ village?: string | null | undefined;
9551
+ } | {
9552
+ country: string;
9553
+ state: string;
9554
+ addressType: "INTERNATIONAL";
9555
+ district2: string;
9556
+ cityOrTown?: string | null | undefined;
9557
+ addressLine1?: string | null | undefined;
9558
+ addressLine2?: string | null | undefined;
9559
+ addressLine3?: string | null | undefined;
9560
+ postcodeOrZip?: string | null | undefined;
9561
+ } | {
9562
+ type: string;
9563
+ option: string;
9564
+ filename: string;
9565
+ originalFilename: string;
9566
+ }[] | undefined> | undefined;
9567
+ originalActionId?: string | undefined;
9568
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9569
+ eventId: z.ZodString;
9570
+ transactionId: z.ZodString;
9571
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9572
+ filename: z.ZodString;
9573
+ originalFilename: z.ZodString;
9574
+ type: z.ZodString;
9575
+ }, "strip", z.ZodTypeAny, {
9576
+ type: string;
9577
+ filename: string;
9578
+ originalFilename: string;
9579
+ }, {
9580
+ type: string;
9581
+ filename: string;
9582
+ originalFilename: string;
9583
+ }>, z.ZodArray<z.ZodObject<{
9584
+ filename: z.ZodString;
9585
+ originalFilename: z.ZodString;
9586
+ type: z.ZodString;
9587
+ option: z.ZodString;
9588
+ }, "strip", z.ZodTypeAny, {
9589
+ type: string;
9590
+ option: string;
9591
+ filename: string;
9592
+ originalFilename: string;
9593
+ }, {
9594
+ type: string;
9595
+ option: string;
9596
+ filename: string;
9597
+ originalFilename: string;
9598
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
9599
+ country: z.ZodString;
9600
+ addressType: z.ZodLiteral<"DOMESTIC">;
9601
+ province: z.ZodString;
9602
+ district: z.ZodString;
9603
+ }, {
9604
+ urbanOrRural: z.ZodLiteral<"URBAN">;
9605
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9606
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9607
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9608
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9609
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9610
+ }>, "strip", z.ZodTypeAny, {
9611
+ country: string;
9612
+ district: string;
9613
+ addressType: "DOMESTIC";
9614
+ province: string;
9615
+ urbanOrRural: "URBAN";
9616
+ number?: string | null | undefined;
9617
+ town?: string | null | undefined;
9618
+ residentialArea?: string | null | undefined;
9619
+ street?: string | null | undefined;
9620
+ zipCode?: string | null | undefined;
9621
+ }, {
9622
+ country: string;
9623
+ district: string;
9624
+ addressType: "DOMESTIC";
9625
+ province: string;
9626
+ urbanOrRural: "URBAN";
9627
+ number?: string | null | undefined;
9628
+ town?: string | null | undefined;
9629
+ residentialArea?: string | null | undefined;
9630
+ street?: string | null | undefined;
9631
+ zipCode?: string | null | undefined;
9632
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9633
+ country: z.ZodString;
9634
+ addressType: z.ZodLiteral<"DOMESTIC">;
9635
+ province: z.ZodString;
9636
+ district: z.ZodString;
9637
+ }, {
9638
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9639
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9640
+ }>, "strip", z.ZodTypeAny, {
9641
+ country: string;
9642
+ district: string;
9643
+ addressType: "DOMESTIC";
9644
+ province: string;
9645
+ urbanOrRural: "RURAL";
9646
+ village?: string | null | undefined;
9647
+ }, {
9648
+ country: string;
9649
+ district: string;
9650
+ addressType: "DOMESTIC";
9651
+ province: string;
9652
+ urbanOrRural: "RURAL";
9653
+ village?: string | null | undefined;
9654
+ }>, z.ZodUndefined, z.ZodObject<{
9655
+ country: z.ZodString;
9656
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9657
+ state: z.ZodString;
9658
+ district2: z.ZodString;
9659
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9660
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9661
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9662
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9663
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9664
+ }, "strip", z.ZodTypeAny, {
9665
+ country: string;
9666
+ state: string;
9667
+ addressType: "INTERNATIONAL";
9668
+ district2: string;
9669
+ cityOrTown?: string | null | undefined;
9670
+ addressLine1?: string | null | undefined;
9671
+ addressLine2?: string | null | undefined;
9672
+ addressLine3?: string | null | undefined;
9673
+ postcodeOrZip?: string | null | undefined;
9674
+ }, {
9675
+ country: string;
9676
+ state: string;
9677
+ addressType: "INTERNATIONAL";
9678
+ district2: string;
9679
+ cityOrTown?: string | null | undefined;
9680
+ addressLine1?: string | null | undefined;
9681
+ addressLine2?: string | null | undefined;
9682
+ addressLine3?: string | null | undefined;
9683
+ postcodeOrZip?: string | null | undefined;
9684
+ }>]>>>;
9685
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9686
+ filename: z.ZodString;
9687
+ originalFilename: z.ZodString;
9688
+ type: z.ZodString;
9689
+ }, "strip", z.ZodTypeAny, {
9690
+ type: string;
9691
+ filename: string;
9692
+ originalFilename: string;
9693
+ }, {
9694
+ type: string;
9695
+ filename: string;
9696
+ originalFilename: string;
9697
+ }>, z.ZodArray<z.ZodObject<{
9698
+ filename: z.ZodString;
9699
+ originalFilename: z.ZodString;
9700
+ type: z.ZodString;
9701
+ option: z.ZodString;
9702
+ }, "strip", z.ZodTypeAny, {
9703
+ type: string;
9704
+ option: string;
9705
+ filename: string;
9706
+ originalFilename: string;
9707
+ }, {
9708
+ type: string;
9709
+ option: string;
9710
+ filename: string;
9711
+ originalFilename: string;
9712
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
9713
+ country: z.ZodString;
9714
+ addressType: z.ZodLiteral<"DOMESTIC">;
9715
+ province: z.ZodString;
9716
+ district: z.ZodString;
9717
+ }, {
9718
+ urbanOrRural: z.ZodLiteral<"URBAN">;
9719
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9720
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9721
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9722
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9723
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9724
+ }>, "strip", z.ZodTypeAny, {
9725
+ country: string;
9726
+ district: string;
9727
+ addressType: "DOMESTIC";
9728
+ province: string;
9729
+ urbanOrRural: "URBAN";
9730
+ number?: string | null | undefined;
9731
+ town?: string | null | undefined;
9732
+ residentialArea?: string | null | undefined;
9733
+ street?: string | null | undefined;
9734
+ zipCode?: string | null | undefined;
9735
+ }, {
9736
+ country: string;
9737
+ district: string;
9738
+ addressType: "DOMESTIC";
9739
+ province: string;
9740
+ urbanOrRural: "URBAN";
9741
+ number?: string | null | undefined;
9742
+ town?: string | null | undefined;
9743
+ residentialArea?: string | null | undefined;
9744
+ street?: string | null | undefined;
9745
+ zipCode?: string | null | undefined;
9746
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9747
+ country: z.ZodString;
9748
+ addressType: z.ZodLiteral<"DOMESTIC">;
9749
+ province: z.ZodString;
9750
+ district: z.ZodString;
9751
+ }, {
9752
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9753
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9754
+ }>, "strip", z.ZodTypeAny, {
9755
+ country: string;
9756
+ district: string;
9757
+ addressType: "DOMESTIC";
9758
+ province: string;
9759
+ urbanOrRural: "RURAL";
9760
+ village?: string | null | undefined;
9761
+ }, {
9762
+ country: string;
9763
+ district: string;
9764
+ addressType: "DOMESTIC";
9765
+ province: string;
9766
+ urbanOrRural: "RURAL";
9767
+ village?: string | null | undefined;
9768
+ }>, z.ZodUndefined, z.ZodObject<{
9769
+ country: z.ZodString;
9770
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9771
+ state: z.ZodString;
9772
+ district2: z.ZodString;
9773
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9774
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9775
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9776
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9777
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9778
+ }, "strip", z.ZodTypeAny, {
9779
+ country: string;
9780
+ state: string;
9781
+ addressType: "INTERNATIONAL";
9782
+ district2: string;
9783
+ cityOrTown?: string | null | undefined;
9784
+ addressLine1?: string | null | undefined;
9785
+ addressLine2?: string | null | undefined;
9786
+ addressLine3?: string | null | undefined;
9787
+ postcodeOrZip?: string | null | undefined;
9788
+ }, {
9789
+ country: string;
9790
+ state: string;
9791
+ addressType: "INTERNATIONAL";
9792
+ district2: string;
9793
+ cityOrTown?: string | null | undefined;
9794
+ addressLine1?: string | null | undefined;
9795
+ addressLine2?: string | null | undefined;
9796
+ addressLine3?: string | null | undefined;
9797
+ postcodeOrZip?: string | null | undefined;
9798
+ }>]>>>;
9799
+ originalActionId: z.ZodOptional<z.ZodString>;
9800
+ }, {
9801
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
9802
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
9803
+ }>, "strip", z.ZodTypeAny, {
9804
+ type: "UNASSIGN";
9805
+ declaration: Record<string, string | number | boolean | {
9806
+ type: string;
8257
9807
  filename: string;
8258
9808
  originalFilename: string;
8259
9809
  } | {
@@ -8289,12 +9839,92 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8289
9839
  option: string;
8290
9840
  filename: string;
8291
9841
  originalFilename: string;
8292
- }[]>;
8293
- assignedTo: string;
9842
+ }[] | undefined>;
9843
+ assignedTo: null;
8294
9844
  eventId: string;
8295
9845
  transactionId: string;
8296
- type?: "ASSIGN" | undefined;
8297
- metadata?: Record<string, string | number | boolean | {
9846
+ annotation?: Record<string, string | number | boolean | {
9847
+ type: string;
9848
+ filename: string;
9849
+ originalFilename: string;
9850
+ } | {
9851
+ country: string;
9852
+ district: string;
9853
+ addressType: "DOMESTIC";
9854
+ province: string;
9855
+ urbanOrRural: "URBAN";
9856
+ number?: string | null | undefined;
9857
+ town?: string | null | undefined;
9858
+ residentialArea?: string | null | undefined;
9859
+ street?: string | null | undefined;
9860
+ zipCode?: string | null | undefined;
9861
+ } | {
9862
+ country: string;
9863
+ district: string;
9864
+ addressType: "DOMESTIC";
9865
+ province: string;
9866
+ urbanOrRural: "RURAL";
9867
+ village?: string | null | undefined;
9868
+ } | {
9869
+ country: string;
9870
+ state: string;
9871
+ addressType: "INTERNATIONAL";
9872
+ district2: string;
9873
+ cityOrTown?: string | null | undefined;
9874
+ addressLine1?: string | null | undefined;
9875
+ addressLine2?: string | null | undefined;
9876
+ addressLine3?: string | null | undefined;
9877
+ postcodeOrZip?: string | null | undefined;
9878
+ } | {
9879
+ type: string;
9880
+ option: string;
9881
+ filename: string;
9882
+ originalFilename: string;
9883
+ }[] | undefined> | undefined;
9884
+ originalActionId?: string | undefined;
9885
+ }, {
9886
+ eventId: string;
9887
+ transactionId: string;
9888
+ type?: "UNASSIGN" | undefined;
9889
+ declaration?: Record<string, string | number | boolean | {
9890
+ type: string;
9891
+ filename: string;
9892
+ originalFilename: string;
9893
+ } | {
9894
+ country: string;
9895
+ district: string;
9896
+ addressType: "DOMESTIC";
9897
+ province: string;
9898
+ urbanOrRural: "URBAN";
9899
+ number?: string | null | undefined;
9900
+ town?: string | null | undefined;
9901
+ residentialArea?: string | null | undefined;
9902
+ street?: string | null | undefined;
9903
+ zipCode?: string | null | undefined;
9904
+ } | {
9905
+ country: string;
9906
+ district: string;
9907
+ addressType: "DOMESTIC";
9908
+ province: string;
9909
+ urbanOrRural: "RURAL";
9910
+ village?: string | null | undefined;
9911
+ } | {
9912
+ country: string;
9913
+ state: string;
9914
+ addressType: "INTERNATIONAL";
9915
+ district2: string;
9916
+ cityOrTown?: string | null | undefined;
9917
+ addressLine1?: string | null | undefined;
9918
+ addressLine2?: string | null | undefined;
9919
+ addressLine3?: string | null | undefined;
9920
+ postcodeOrZip?: string | null | undefined;
9921
+ } | {
9922
+ type: string;
9923
+ option: string;
9924
+ filename: string;
9925
+ originalFilename: string;
9926
+ }[] | undefined> | undefined;
9927
+ annotation?: Record<string, string | number | boolean | {
8298
9928
  type: string;
8299
9929
  filename: string;
8300
9930
  originalFilename: string;
@@ -8331,11 +9961,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8331
9961
  option: string;
8332
9962
  filename: string;
8333
9963
  originalFilename: string;
8334
- }[]> | undefined;
9964
+ }[] | undefined> | undefined;
9965
+ originalActionId?: string | undefined;
9966
+ assignedTo?: null | undefined;
8335
9967
  }>, z.ZodObject<z.objectUtil.extendShape<{
8336
9968
  eventId: z.ZodString;
8337
9969
  transactionId: z.ZodString;
8338
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9970
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8339
9971
  filename: z.ZodString;
8340
9972
  originalFilename: z.ZodString;
8341
9973
  type: z.ZodString;
@@ -8418,7 +10050,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8418
10050
  province: string;
8419
10051
  urbanOrRural: "RURAL";
8420
10052
  village?: string | null | undefined;
8421
- }>, z.ZodObject<{
10053
+ }>, z.ZodUndefined, z.ZodObject<{
8422
10054
  country: z.ZodString;
8423
10055
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8424
10056
  state: z.ZodString;
@@ -8448,8 +10080,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8448
10080
  addressLine2?: string | null | undefined;
8449
10081
  addressLine3?: string | null | undefined;
8450
10082
  postcodeOrZip?: string | null | undefined;
8451
- }>]>>;
8452
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10083
+ }>]>>>;
10084
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8453
10085
  filename: z.ZodString;
8454
10086
  originalFilename: z.ZodString;
8455
10087
  type: z.ZodString;
@@ -8532,7 +10164,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8532
10164
  province: string;
8533
10165
  urbanOrRural: "RURAL";
8534
10166
  village?: string | null | undefined;
8535
- }>, z.ZodObject<{
10167
+ }>, z.ZodUndefined, z.ZodObject<{
8536
10168
  country: z.ZodString;
8537
10169
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8538
10170
  state: z.ZodString;
@@ -8563,11 +10195,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8563
10195
  addressLine3?: string | null | undefined;
8564
10196
  postcodeOrZip?: string | null | undefined;
8565
10197
  }>]>>>;
10198
+ originalActionId: z.ZodOptional<z.ZodString>;
8566
10199
  }, {
8567
- type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
10200
+ type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
8568
10201
  }>, "strip", z.ZodTypeAny, {
8569
- type: "UNASSIGN";
8570
- data: Record<string, string | number | boolean | {
10202
+ type: "PRINT_CERTIFICATE";
10203
+ declaration: Record<string, string | number | boolean | {
8571
10204
  type: string;
8572
10205
  filename: string;
8573
10206
  originalFilename: string;
@@ -8604,10 +10237,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8604
10237
  option: string;
8605
10238
  filename: string;
8606
10239
  originalFilename: string;
8607
- }[]>;
10240
+ }[] | undefined>;
8608
10241
  eventId: string;
8609
10242
  transactionId: string;
8610
- metadata?: Record<string, string | number | boolean | {
10243
+ annotation?: Record<string, string | number | boolean | {
8611
10244
  type: string;
8612
10245
  filename: string;
8613
10246
  originalFilename: string;
@@ -8644,9 +10277,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8644
10277
  option: string;
8645
10278
  filename: string;
8646
10279
  originalFilename: string;
8647
- }[]> | undefined;
10280
+ }[] | undefined> | undefined;
10281
+ originalActionId?: string | undefined;
8648
10282
  }, {
8649
- data: Record<string, string | number | boolean | {
10283
+ eventId: string;
10284
+ transactionId: string;
10285
+ type?: "PRINT_CERTIFICATE" | undefined;
10286
+ declaration?: Record<string, string | number | boolean | {
8650
10287
  type: string;
8651
10288
  filename: string;
8652
10289
  originalFilename: string;
@@ -8683,11 +10320,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8683
10320
  option: string;
8684
10321
  filename: string;
8685
10322
  originalFilename: string;
8686
- }[]>;
8687
- eventId: string;
8688
- transactionId: string;
8689
- type?: "UNASSIGN" | undefined;
8690
- metadata?: Record<string, string | number | boolean | {
10323
+ }[] | undefined> | undefined;
10324
+ annotation?: Record<string, string | number | boolean | {
8691
10325
  type: string;
8692
10326
  filename: string;
8693
10327
  originalFilename: string;
@@ -8724,11 +10358,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8724
10358
  option: string;
8725
10359
  filename: string;
8726
10360
  originalFilename: string;
8727
- }[]> | undefined;
10361
+ }[] | undefined> | undefined;
10362
+ originalActionId?: string | undefined;
8728
10363
  }>, z.ZodObject<z.objectUtil.extendShape<{
8729
10364
  eventId: z.ZodString;
8730
10365
  transactionId: z.ZodString;
8731
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10366
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8732
10367
  filename: z.ZodString;
8733
10368
  originalFilename: z.ZodString;
8734
10369
  type: z.ZodString;
@@ -8811,7 +10446,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8811
10446
  province: string;
8812
10447
  urbanOrRural: "RURAL";
8813
10448
  village?: string | null | undefined;
8814
- }>, z.ZodObject<{
10449
+ }>, z.ZodUndefined, z.ZodObject<{
8815
10450
  country: z.ZodString;
8816
10451
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8817
10452
  state: z.ZodString;
@@ -8841,8 +10476,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8841
10476
  addressLine2?: string | null | undefined;
8842
10477
  addressLine3?: string | null | undefined;
8843
10478
  postcodeOrZip?: string | null | undefined;
8844
- }>]>>;
8845
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10479
+ }>]>>>;
10480
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8846
10481
  filename: z.ZodString;
8847
10482
  originalFilename: z.ZodString;
8848
10483
  type: z.ZodString;
@@ -8925,7 +10560,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8925
10560
  province: string;
8926
10561
  urbanOrRural: "RURAL";
8927
10562
  village?: string | null | undefined;
8928
- }>, z.ZodObject<{
10563
+ }>, z.ZodUndefined, z.ZodObject<{
8929
10564
  country: z.ZodString;
8930
10565
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8931
10566
  state: z.ZodString;
@@ -8956,11 +10591,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8956
10591
  addressLine3?: string | null | undefined;
8957
10592
  postcodeOrZip?: string | null | undefined;
8958
10593
  }>]>>>;
10594
+ originalActionId: z.ZodOptional<z.ZodString>;
8959
10595
  }, {
8960
- type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
10596
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
8961
10597
  }>, "strip", z.ZodTypeAny, {
8962
- type: "PRINT_CERTIFICATE";
8963
- data: Record<string, string | number | boolean | {
10598
+ type: "REQUEST_CORRECTION";
10599
+ declaration: Record<string, string | number | boolean | {
8964
10600
  type: string;
8965
10601
  filename: string;
8966
10602
  originalFilename: string;
@@ -8997,10 +10633,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8997
10633
  option: string;
8998
10634
  filename: string;
8999
10635
  originalFilename: string;
9000
- }[]>;
10636
+ }[] | undefined>;
9001
10637
  eventId: string;
9002
10638
  transactionId: string;
9003
- metadata?: Record<string, string | number | boolean | {
10639
+ annotation?: Record<string, string | number | boolean | {
9004
10640
  type: string;
9005
10641
  filename: string;
9006
10642
  originalFilename: string;
@@ -9037,9 +10673,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9037
10673
  option: string;
9038
10674
  filename: string;
9039
10675
  originalFilename: string;
9040
- }[]> | undefined;
10676
+ }[] | undefined> | undefined;
10677
+ originalActionId?: string | undefined;
9041
10678
  }, {
9042
- data: Record<string, string | number | boolean | {
10679
+ eventId: string;
10680
+ transactionId: string;
10681
+ type?: "REQUEST_CORRECTION" | undefined;
10682
+ declaration?: Record<string, string | number | boolean | {
9043
10683
  type: string;
9044
10684
  filename: string;
9045
10685
  originalFilename: string;
@@ -9076,11 +10716,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9076
10716
  option: string;
9077
10717
  filename: string;
9078
10718
  originalFilename: string;
9079
- }[]>;
9080
- eventId: string;
9081
- transactionId: string;
9082
- type?: "PRINT_CERTIFICATE" | undefined;
9083
- metadata?: Record<string, string | number | boolean | {
10719
+ }[] | undefined> | undefined;
10720
+ annotation?: Record<string, string | number | boolean | {
9084
10721
  type: string;
9085
10722
  filename: string;
9086
10723
  originalFilename: string;
@@ -9117,11 +10754,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9117
10754
  option: string;
9118
10755
  filename: string;
9119
10756
  originalFilename: string;
9120
- }[]> | undefined;
10757
+ }[] | undefined> | undefined;
10758
+ originalActionId?: string | undefined;
9121
10759
  }>, z.ZodObject<z.objectUtil.extendShape<{
9122
10760
  eventId: z.ZodString;
9123
10761
  transactionId: z.ZodString;
9124
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10762
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9125
10763
  filename: z.ZodString;
9126
10764
  originalFilename: z.ZodString;
9127
10765
  type: z.ZodString;
@@ -9204,7 +10842,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9204
10842
  province: string;
9205
10843
  urbanOrRural: "RURAL";
9206
10844
  village?: string | null | undefined;
9207
- }>, z.ZodObject<{
10845
+ }>, z.ZodUndefined, z.ZodObject<{
9208
10846
  country: z.ZodString;
9209
10847
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9210
10848
  state: z.ZodString;
@@ -9234,8 +10872,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9234
10872
  addressLine2?: string | null | undefined;
9235
10873
  addressLine3?: string | null | undefined;
9236
10874
  postcodeOrZip?: string | null | undefined;
9237
- }>]>>;
9238
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10875
+ }>]>>>;
10876
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9239
10877
  filename: z.ZodString;
9240
10878
  originalFilename: z.ZodString;
9241
10879
  type: z.ZodString;
@@ -9318,7 +10956,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9318
10956
  province: string;
9319
10957
  urbanOrRural: "RURAL";
9320
10958
  village?: string | null | undefined;
9321
- }>, z.ZodObject<{
10959
+ }>, z.ZodUndefined, z.ZodObject<{
9322
10960
  country: z.ZodString;
9323
10961
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9324
10962
  state: z.ZodString;
@@ -9349,11 +10987,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9349
10987
  addressLine3?: string | null | undefined;
9350
10988
  postcodeOrZip?: string | null | undefined;
9351
10989
  }>]>>>;
10990
+ originalActionId: z.ZodOptional<z.ZodString>;
9352
10991
  }, {
9353
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
10992
+ requestId: z.ZodString;
10993
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
9354
10994
  }>, "strip", z.ZodTypeAny, {
9355
- type: "REQUEST_CORRECTION";
9356
- data: Record<string, string | number | boolean | {
10995
+ type: "REJECT_CORRECTION";
10996
+ declaration: Record<string, string | number | boolean | {
9357
10997
  type: string;
9358
10998
  filename: string;
9359
10999
  originalFilename: string;
@@ -9390,10 +11030,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9390
11030
  option: string;
9391
11031
  filename: string;
9392
11032
  originalFilename: string;
9393
- }[]>;
11033
+ }[] | undefined>;
11034
+ requestId: string;
9394
11035
  eventId: string;
9395
11036
  transactionId: string;
9396
- metadata?: Record<string, string | number | boolean | {
11037
+ annotation?: Record<string, string | number | boolean | {
9397
11038
  type: string;
9398
11039
  filename: string;
9399
11040
  originalFilename: string;
@@ -9430,9 +11071,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9430
11071
  option: string;
9431
11072
  filename: string;
9432
11073
  originalFilename: string;
9433
- }[]> | undefined;
11074
+ }[] | undefined> | undefined;
11075
+ originalActionId?: string | undefined;
9434
11076
  }, {
9435
- data: Record<string, string | number | boolean | {
11077
+ requestId: string;
11078
+ eventId: string;
11079
+ transactionId: string;
11080
+ type?: "REJECT_CORRECTION" | undefined;
11081
+ declaration?: Record<string, string | number | boolean | {
9436
11082
  type: string;
9437
11083
  filename: string;
9438
11084
  originalFilename: string;
@@ -9469,11 +11115,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9469
11115
  option: string;
9470
11116
  filename: string;
9471
11117
  originalFilename: string;
9472
- }[]>;
9473
- eventId: string;
9474
- transactionId: string;
9475
- type?: "REQUEST_CORRECTION" | undefined;
9476
- metadata?: Record<string, string | number | boolean | {
11118
+ }[] | undefined> | undefined;
11119
+ annotation?: Record<string, string | number | boolean | {
9477
11120
  type: string;
9478
11121
  filename: string;
9479
11122
  originalFilename: string;
@@ -9510,11 +11153,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9510
11153
  option: string;
9511
11154
  filename: string;
9512
11155
  originalFilename: string;
9513
- }[]> | undefined;
11156
+ }[] | undefined> | undefined;
11157
+ originalActionId?: string | undefined;
9514
11158
  }>, z.ZodObject<z.objectUtil.extendShape<{
9515
11159
  eventId: z.ZodString;
9516
11160
  transactionId: z.ZodString;
9517
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11161
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9518
11162
  filename: z.ZodString;
9519
11163
  originalFilename: z.ZodString;
9520
11164
  type: z.ZodString;
@@ -9597,7 +11241,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9597
11241
  province: string;
9598
11242
  urbanOrRural: "RURAL";
9599
11243
  village?: string | null | undefined;
9600
- }>, z.ZodObject<{
11244
+ }>, z.ZodUndefined, z.ZodObject<{
9601
11245
  country: z.ZodString;
9602
11246
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9603
11247
  state: z.ZodString;
@@ -9627,8 +11271,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9627
11271
  addressLine2?: string | null | undefined;
9628
11272
  addressLine3?: string | null | undefined;
9629
11273
  postcodeOrZip?: string | null | undefined;
9630
- }>]>>;
9631
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11274
+ }>]>>>;
11275
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9632
11276
  filename: z.ZodString;
9633
11277
  originalFilename: z.ZodString;
9634
11278
  type: z.ZodString;
@@ -9711,7 +11355,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9711
11355
  province: string;
9712
11356
  urbanOrRural: "RURAL";
9713
11357
  village?: string | null | undefined;
9714
- }>, z.ZodObject<{
11358
+ }>, z.ZodUndefined, z.ZodObject<{
9715
11359
  country: z.ZodString;
9716
11360
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9717
11361
  state: z.ZodString;
@@ -9742,12 +11386,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9742
11386
  addressLine3?: string | null | undefined;
9743
11387
  postcodeOrZip?: string | null | undefined;
9744
11388
  }>]>>>;
11389
+ originalActionId: z.ZodOptional<z.ZodString>;
9745
11390
  }, {
9746
11391
  requestId: z.ZodString;
9747
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
11392
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
9748
11393
  }>, "strip", z.ZodTypeAny, {
9749
- type: "REJECT_CORRECTION";
9750
- data: Record<string, string | number | boolean | {
11394
+ type: "APPROVE_CORRECTION";
11395
+ declaration: Record<string, string | number | boolean | {
9751
11396
  type: string;
9752
11397
  filename: string;
9753
11398
  originalFilename: string;
@@ -9784,11 +11429,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9784
11429
  option: string;
9785
11430
  filename: string;
9786
11431
  originalFilename: string;
9787
- }[]>;
11432
+ }[] | undefined>;
9788
11433
  requestId: string;
9789
11434
  eventId: string;
9790
11435
  transactionId: string;
9791
- metadata?: Record<string, string | number | boolean | {
11436
+ annotation?: Record<string, string | number | boolean | {
9792
11437
  type: string;
9793
11438
  filename: string;
9794
11439
  originalFilename: string;
@@ -9825,9 +11470,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9825
11470
  option: string;
9826
11471
  filename: string;
9827
11472
  originalFilename: string;
9828
- }[]> | undefined;
11473
+ }[] | undefined> | undefined;
11474
+ originalActionId?: string | undefined;
9829
11475
  }, {
9830
- data: Record<string, string | number | boolean | {
11476
+ requestId: string;
11477
+ eventId: string;
11478
+ transactionId: string;
11479
+ type?: "APPROVE_CORRECTION" | undefined;
11480
+ declaration?: Record<string, string | number | boolean | {
9831
11481
  type: string;
9832
11482
  filename: string;
9833
11483
  originalFilename: string;
@@ -9864,12 +11514,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9864
11514
  option: string;
9865
11515
  filename: string;
9866
11516
  originalFilename: string;
9867
- }[]>;
9868
- requestId: string;
9869
- eventId: string;
9870
- transactionId: string;
9871
- type?: "REJECT_CORRECTION" | undefined;
9872
- metadata?: Record<string, string | number | boolean | {
11517
+ }[] | undefined> | undefined;
11518
+ annotation?: Record<string, string | number | boolean | {
9873
11519
  type: string;
9874
11520
  filename: string;
9875
11521
  originalFilename: string;
@@ -9906,11 +11552,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9906
11552
  option: string;
9907
11553
  filename: string;
9908
11554
  originalFilename: string;
9909
- }[]> | undefined;
11555
+ }[] | undefined> | undefined;
11556
+ originalActionId?: string | undefined;
9910
11557
  }>, z.ZodObject<z.objectUtil.extendShape<{
9911
11558
  eventId: z.ZodString;
9912
11559
  transactionId: z.ZodString;
9913
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11560
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9914
11561
  filename: z.ZodString;
9915
11562
  originalFilename: z.ZodString;
9916
11563
  type: z.ZodString;
@@ -9993,7 +11640,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9993
11640
  province: string;
9994
11641
  urbanOrRural: "RURAL";
9995
11642
  village?: string | null | undefined;
9996
- }>, z.ZodObject<{
11643
+ }>, z.ZodUndefined, z.ZodObject<{
9997
11644
  country: z.ZodString;
9998
11645
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9999
11646
  state: z.ZodString;
@@ -10023,8 +11670,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10023
11670
  addressLine2?: string | null | undefined;
10024
11671
  addressLine3?: string | null | undefined;
10025
11672
  postcodeOrZip?: string | null | undefined;
10026
- }>]>>;
10027
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11673
+ }>]>>>;
11674
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10028
11675
  filename: z.ZodString;
10029
11676
  originalFilename: z.ZodString;
10030
11677
  type: z.ZodString;
@@ -10107,7 +11754,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10107
11754
  province: string;
10108
11755
  urbanOrRural: "RURAL";
10109
11756
  village?: string | null | undefined;
10110
- }>, z.ZodObject<{
11757
+ }>, z.ZodUndefined, z.ZodObject<{
10111
11758
  country: z.ZodString;
10112
11759
  addressType: z.ZodLiteral<"INTERNATIONAL">;
10113
11760
  state: z.ZodString;
@@ -10138,12 +11785,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10138
11785
  addressLine3?: string | null | undefined;
10139
11786
  postcodeOrZip?: string | null | undefined;
10140
11787
  }>]>>>;
11788
+ originalActionId: z.ZodOptional<z.ZodString>;
10141
11789
  }, {
10142
- requestId: z.ZodString;
10143
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
11790
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
10144
11791
  }>, "strip", z.ZodTypeAny, {
10145
- type: "APPROVE_CORRECTION";
10146
- data: Record<string, string | number | boolean | {
11792
+ type: "READ";
11793
+ declaration: Record<string, string | number | boolean | {
10147
11794
  type: string;
10148
11795
  filename: string;
10149
11796
  originalFilename: string;
@@ -10180,11 +11827,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10180
11827
  option: string;
10181
11828
  filename: string;
10182
11829
  originalFilename: string;
10183
- }[]>;
10184
- requestId: string;
11830
+ }[] | undefined>;
10185
11831
  eventId: string;
10186
11832
  transactionId: string;
10187
- metadata?: Record<string, string | number | boolean | {
11833
+ annotation?: Record<string, string | number | boolean | {
10188
11834
  type: string;
10189
11835
  filename: string;
10190
11836
  originalFilename: string;
@@ -10221,9 +11867,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10221
11867
  option: string;
10222
11868
  filename: string;
10223
11869
  originalFilename: string;
10224
- }[]> | undefined;
11870
+ }[] | undefined> | undefined;
11871
+ originalActionId?: string | undefined;
10225
11872
  }, {
10226
- data: Record<string, string | number | boolean | {
11873
+ eventId: string;
11874
+ transactionId: string;
11875
+ type?: "READ" | undefined;
11876
+ declaration?: Record<string, string | number | boolean | {
10227
11877
  type: string;
10228
11878
  filename: string;
10229
11879
  originalFilename: string;
@@ -10260,12 +11910,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10260
11910
  option: string;
10261
11911
  filename: string;
10262
11912
  originalFilename: string;
10263
- }[]>;
10264
- requestId: string;
10265
- eventId: string;
10266
- transactionId: string;
10267
- type?: "APPROVE_CORRECTION" | undefined;
10268
- metadata?: Record<string, string | number | boolean | {
11913
+ }[] | undefined> | 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>;