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

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 +6922 -14585
  3. package/dist/commons/conditionals/conditionals.d.ts +25 -3
  4. package/dist/commons/conditionals/validate.d.ts +14 -17
  5. package/dist/commons/events/ActionConfig.d.ts +1123 -2056
  6. package/dist/commons/events/ActionDocument.d.ts +7447 -347
  7. package/dist/commons/events/ActionInput.d.ts +2259 -522
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/Conditional.d.ts +21 -5
  10. package/dist/commons/events/Draft.d.ts +67 -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 +850 -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/defineConfig.d.ts +91 -216
  24. package/dist/commons/events/index.d.ts +2 -1
  25. package/dist/commons/events/test.utils.d.ts +70 -287
  26. package/dist/commons/events/utils.d.ts +89 -83
  27. package/dist/commons/events/utils.test.d.ts +2 -0
  28. package/dist/conditionals/index.js +161 -93
  29. package/dist/events/index.js +1264 -781
  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,10 @@ 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>;
234
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
233
235
  }, "strip", z.ZodTypeAny, {
234
- data: Record<string, string | number | boolean | {
236
+ declaration: Record<string, string | number | boolean | {
235
237
  type: string;
236
238
  filename: string;
237
239
  originalFilename: string;
@@ -268,10 +270,10 @@ export declare const BaseActionInput: z.ZodObject<{
268
270
  option: string;
269
271
  filename: string;
270
272
  originalFilename: string;
271
- }[]>;
273
+ }[] | undefined>;
272
274
  eventId: string;
273
275
  transactionId: string;
274
- metadata?: Record<string, string | number | boolean | {
276
+ annotation?: Record<string, string | number | boolean | {
275
277
  type: string;
276
278
  filename: string;
277
279
  originalFilename: string;
@@ -308,9 +310,13 @@ export declare const BaseActionInput: z.ZodObject<{
308
310
  option: string;
309
311
  filename: string;
310
312
  originalFilename: string;
311
- }[]> | undefined;
313
+ }[] | undefined> | undefined;
314
+ originalActionId?: string | undefined;
315
+ keepAssignment?: boolean | undefined;
312
316
  }, {
313
- data: Record<string, string | number | boolean | {
317
+ eventId: string;
318
+ transactionId: string;
319
+ declaration?: Record<string, string | number | boolean | {
314
320
  type: string;
315
321
  filename: string;
316
322
  originalFilename: string;
@@ -347,10 +353,8 @@ export declare const BaseActionInput: z.ZodObject<{
347
353
  option: string;
348
354
  filename: string;
349
355
  originalFilename: string;
350
- }[]>;
351
- eventId: string;
352
- transactionId: string;
353
- metadata?: Record<string, string | number | boolean | {
356
+ }[] | undefined> | undefined;
357
+ annotation?: Record<string, string | number | boolean | {
354
358
  type: string;
355
359
  filename: string;
356
360
  originalFilename: string;
@@ -387,12 +391,14 @@ export declare const BaseActionInput: z.ZodObject<{
387
391
  option: string;
388
392
  filename: string;
389
393
  originalFilename: string;
390
- }[]> | undefined;
394
+ }[] | undefined> | undefined;
395
+ originalActionId?: string | undefined;
396
+ keepAssignment?: boolean | undefined;
391
397
  }>;
392
398
  export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
393
399
  eventId: z.ZodString;
394
400
  transactionId: z.ZodString;
395
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
401
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
396
402
  filename: z.ZodString;
397
403
  originalFilename: z.ZodString;
398
404
  type: z.ZodString;
@@ -475,7 +481,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
475
481
  province: string;
476
482
  urbanOrRural: "RURAL";
477
483
  village?: string | null | undefined;
478
- }>, z.ZodObject<{
484
+ }>, z.ZodUndefined, z.ZodObject<{
479
485
  country: z.ZodString;
480
486
  addressType: z.ZodLiteral<"INTERNATIONAL">;
481
487
  state: z.ZodString;
@@ -505,8 +511,8 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
505
511
  addressLine2?: string | null | undefined;
506
512
  addressLine3?: string | null | undefined;
507
513
  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<{
514
+ }>]>>>;
515
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
510
516
  filename: z.ZodString;
511
517
  originalFilename: z.ZodString;
512
518
  type: z.ZodString;
@@ -589,7 +595,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
589
595
  province: string;
590
596
  urbanOrRural: "RURAL";
591
597
  village?: string | null | undefined;
592
- }>, z.ZodObject<{
598
+ }>, z.ZodUndefined, z.ZodObject<{
593
599
  country: z.ZodString;
594
600
  addressType: z.ZodLiteral<"INTERNATIONAL">;
595
601
  state: z.ZodString;
@@ -620,21 +626,14 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
620
626
  addressLine3?: string | null | undefined;
621
627
  postcodeOrZip?: string | null | undefined;
622
628
  }>]>>>;
629
+ originalActionId: z.ZodOptional<z.ZodString>;
630
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
623
631
  }, {
624
632
  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
- }>;
633
+ registrationNumber: z.ZodOptional<z.ZodString>;
635
634
  }>, "strip", z.ZodTypeAny, {
636
635
  type: "REGISTER";
637
- data: Record<string, string | number | boolean | {
636
+ declaration: Record<string, string | number | boolean | {
638
637
  type: string;
639
638
  filename: string;
640
639
  originalFilename: string;
@@ -671,14 +670,10 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
671
670
  option: string;
672
671
  filename: string;
673
672
  originalFilename: string;
674
- }[]>;
675
- identifiers: {
676
- trackingId: string;
677
- registrationNumber: string;
678
- };
673
+ }[] | undefined>;
679
674
  eventId: string;
680
675
  transactionId: string;
681
- metadata?: Record<string, string | number | boolean | {
676
+ annotation?: Record<string, string | number | boolean | {
682
677
  type: string;
683
678
  filename: string;
684
679
  originalFilename: string;
@@ -715,9 +710,15 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
715
710
  option: string;
716
711
  filename: string;
717
712
  originalFilename: string;
718
- }[]> | undefined;
713
+ }[] | undefined> | undefined;
714
+ originalActionId?: string | undefined;
715
+ registrationNumber?: string | undefined;
716
+ keepAssignment?: boolean | undefined;
719
717
  }, {
720
- data: Record<string, string | number | boolean | {
718
+ eventId: string;
719
+ transactionId: string;
720
+ type?: "REGISTER" | undefined;
721
+ declaration?: Record<string, string | number | boolean | {
721
722
  type: string;
722
723
  filename: string;
723
724
  originalFilename: string;
@@ -754,15 +755,8 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
754
755
  option: string;
755
756
  filename: string;
756
757
  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 | {
758
+ }[] | undefined> | undefined;
759
+ annotation?: Record<string, string | number | boolean | {
766
760
  type: string;
767
761
  filename: string;
768
762
  originalFilename: string;
@@ -799,13 +793,16 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
799
793
  option: string;
800
794
  filename: string;
801
795
  originalFilename: string;
802
- }[]> | undefined;
796
+ }[] | undefined> | undefined;
797
+ originalActionId?: string | undefined;
798
+ registrationNumber?: string | undefined;
799
+ keepAssignment?: boolean | undefined;
803
800
  }>;
804
801
  export type RegisterActionInput = z.infer<typeof RegisterActionInput>;
805
802
  export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
806
803
  eventId: z.ZodString;
807
804
  transactionId: z.ZodString;
808
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
805
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
809
806
  filename: z.ZodString;
810
807
  originalFilename: z.ZodString;
811
808
  type: z.ZodString;
@@ -888,7 +885,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
888
885
  province: string;
889
886
  urbanOrRural: "RURAL";
890
887
  village?: string | null | undefined;
891
- }>, z.ZodObject<{
888
+ }>, z.ZodUndefined, z.ZodObject<{
892
889
  country: z.ZodString;
893
890
  addressType: z.ZodLiteral<"INTERNATIONAL">;
894
891
  state: z.ZodString;
@@ -918,8 +915,8 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
918
915
  addressLine2?: string | null | undefined;
919
916
  addressLine3?: string | null | undefined;
920
917
  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<{
918
+ }>]>>>;
919
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
923
920
  filename: z.ZodString;
924
921
  originalFilename: z.ZodString;
925
922
  type: z.ZodString;
@@ -1002,7 +999,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1002
999
  province: string;
1003
1000
  urbanOrRural: "RURAL";
1004
1001
  village?: string | null | undefined;
1005
- }>, z.ZodObject<{
1002
+ }>, z.ZodUndefined, z.ZodObject<{
1006
1003
  country: z.ZodString;
1007
1004
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1008
1005
  state: z.ZodString;
@@ -1033,12 +1030,14 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1033
1030
  addressLine3?: string | null | undefined;
1034
1031
  postcodeOrZip?: string | null | undefined;
1035
1032
  }>]>>>;
1033
+ originalActionId: z.ZodOptional<z.ZodString>;
1034
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1036
1035
  }, {
1037
1036
  type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
1038
1037
  duplicates: z.ZodArray<z.ZodString, "many">;
1039
1038
  }>, "strip", z.ZodTypeAny, {
1040
1039
  type: "VALIDATE";
1041
- data: Record<string, string | number | boolean | {
1040
+ declaration: Record<string, string | number | boolean | {
1042
1041
  type: string;
1043
1042
  filename: string;
1044
1043
  originalFilename: string;
@@ -1075,11 +1074,11 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1075
1074
  option: string;
1076
1075
  filename: string;
1077
1076
  originalFilename: string;
1078
- }[]>;
1077
+ }[] | undefined>;
1079
1078
  eventId: string;
1080
1079
  transactionId: string;
1081
1080
  duplicates: string[];
1082
- metadata?: Record<string, string | number | boolean | {
1081
+ annotation?: Record<string, string | number | boolean | {
1083
1082
  type: string;
1084
1083
  filename: string;
1085
1084
  originalFilename: string;
@@ -1116,9 +1115,15 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1116
1115
  option: string;
1117
1116
  filename: string;
1118
1117
  originalFilename: string;
1119
- }[]> | undefined;
1118
+ }[] | undefined> | undefined;
1119
+ originalActionId?: string | undefined;
1120
+ keepAssignment?: boolean | undefined;
1120
1121
  }, {
1121
- data: Record<string, string | number | boolean | {
1122
+ eventId: string;
1123
+ transactionId: string;
1124
+ duplicates: string[];
1125
+ type?: "VALIDATE" | undefined;
1126
+ declaration?: Record<string, string | number | boolean | {
1122
1127
  type: string;
1123
1128
  filename: string;
1124
1129
  originalFilename: string;
@@ -1155,12 +1160,8 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1155
1160
  option: string;
1156
1161
  filename: string;
1157
1162
  originalFilename: string;
1158
- }[]>;
1159
- eventId: string;
1160
- transactionId: string;
1161
- duplicates: string[];
1162
- type?: "VALIDATE" | undefined;
1163
- metadata?: Record<string, string | number | boolean | {
1163
+ }[] | undefined> | undefined;
1164
+ annotation?: Record<string, string | number | boolean | {
1164
1165
  type: string;
1165
1166
  filename: string;
1166
1167
  originalFilename: string;
@@ -1197,13 +1198,15 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1197
1198
  option: string;
1198
1199
  filename: string;
1199
1200
  originalFilename: string;
1200
- }[]> | undefined;
1201
+ }[] | undefined> | undefined;
1202
+ originalActionId?: string | undefined;
1203
+ keepAssignment?: boolean | undefined;
1201
1204
  }>;
1202
1205
  export type ValidateActionInput = z.infer<typeof ValidateActionInput>;
1203
1206
  export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1204
1207
  eventId: z.ZodString;
1205
1208
  transactionId: z.ZodString;
1206
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1209
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1207
1210
  filename: z.ZodString;
1208
1211
  originalFilename: z.ZodString;
1209
1212
  type: z.ZodString;
@@ -1286,7 +1289,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1286
1289
  province: string;
1287
1290
  urbanOrRural: "RURAL";
1288
1291
  village?: string | null | undefined;
1289
- }>, z.ZodObject<{
1292
+ }>, z.ZodUndefined, z.ZodObject<{
1290
1293
  country: z.ZodString;
1291
1294
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1292
1295
  state: z.ZodString;
@@ -1316,8 +1319,8 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1316
1319
  addressLine2?: string | null | undefined;
1317
1320
  addressLine3?: string | null | undefined;
1318
1321
  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<{
1322
+ }>]>>>;
1323
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1321
1324
  filename: z.ZodString;
1322
1325
  originalFilename: z.ZodString;
1323
1326
  type: z.ZodString;
@@ -1400,7 +1403,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1400
1403
  province: string;
1401
1404
  urbanOrRural: "RURAL";
1402
1405
  village?: string | null | undefined;
1403
- }>, z.ZodObject<{
1406
+ }>, z.ZodUndefined, z.ZodObject<{
1404
1407
  country: z.ZodString;
1405
1408
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1406
1409
  state: z.ZodString;
@@ -1431,11 +1434,13 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1431
1434
  addressLine3?: string | null | undefined;
1432
1435
  postcodeOrZip?: string | null | undefined;
1433
1436
  }>]>>>;
1437
+ originalActionId: z.ZodOptional<z.ZodString>;
1438
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1434
1439
  }, {
1435
1440
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
1436
1441
  }>, "strip", z.ZodTypeAny, {
1437
1442
  type: "NOTIFY";
1438
- data: Record<string, string | number | boolean | {
1443
+ declaration: Record<string, string | number | boolean | {
1439
1444
  type: string;
1440
1445
  filename: string;
1441
1446
  originalFilename: string;
@@ -1472,10 +1477,10 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1472
1477
  option: string;
1473
1478
  filename: string;
1474
1479
  originalFilename: string;
1475
- }[]>;
1480
+ }[] | undefined>;
1476
1481
  eventId: string;
1477
1482
  transactionId: string;
1478
- metadata?: Record<string, string | number | boolean | {
1483
+ annotation?: Record<string, string | number | boolean | {
1479
1484
  type: string;
1480
1485
  filename: string;
1481
1486
  originalFilename: string;
@@ -1512,9 +1517,14 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1512
1517
  option: string;
1513
1518
  filename: string;
1514
1519
  originalFilename: string;
1515
- }[]> | undefined;
1520
+ }[] | undefined> | undefined;
1521
+ originalActionId?: string | undefined;
1522
+ keepAssignment?: boolean | undefined;
1516
1523
  }, {
1517
- data: Record<string, string | number | boolean | {
1524
+ eventId: string;
1525
+ transactionId: string;
1526
+ type?: "NOTIFY" | undefined;
1527
+ declaration?: Record<string, string | number | boolean | {
1518
1528
  type: string;
1519
1529
  filename: string;
1520
1530
  originalFilename: string;
@@ -1551,11 +1561,8 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1551
1561
  option: string;
1552
1562
  filename: string;
1553
1563
  originalFilename: string;
1554
- }[]>;
1555
- eventId: string;
1556
- transactionId: string;
1557
- type?: "NOTIFY" | undefined;
1558
- metadata?: Record<string, string | number | boolean | {
1564
+ }[] | undefined> | undefined;
1565
+ annotation?: Record<string, string | number | boolean | {
1559
1566
  type: string;
1560
1567
  filename: string;
1561
1568
  originalFilename: string;
@@ -1592,13 +1599,15 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1592
1599
  option: string;
1593
1600
  filename: string;
1594
1601
  originalFilename: string;
1595
- }[]> | undefined;
1602
+ }[] | undefined> | undefined;
1603
+ originalActionId?: string | undefined;
1604
+ keepAssignment?: boolean | undefined;
1596
1605
  }>;
1597
1606
  export type NotifyActionInput = z.infer<typeof NotifyActionInput>;
1598
1607
  export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1599
1608
  eventId: z.ZodString;
1600
1609
  transactionId: z.ZodString;
1601
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1610
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1602
1611
  filename: z.ZodString;
1603
1612
  originalFilename: z.ZodString;
1604
1613
  type: z.ZodString;
@@ -1681,7 +1690,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1681
1690
  province: string;
1682
1691
  urbanOrRural: "RURAL";
1683
1692
  village?: string | null | undefined;
1684
- }>, z.ZodObject<{
1693
+ }>, z.ZodUndefined, z.ZodObject<{
1685
1694
  country: z.ZodString;
1686
1695
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1687
1696
  state: z.ZodString;
@@ -1711,8 +1720,8 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1711
1720
  addressLine2?: string | null | undefined;
1712
1721
  addressLine3?: string | null | undefined;
1713
1722
  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<{
1723
+ }>]>>>;
1724
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1716
1725
  filename: z.ZodString;
1717
1726
  originalFilename: z.ZodString;
1718
1727
  type: z.ZodString;
@@ -1795,7 +1804,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1795
1804
  province: string;
1796
1805
  urbanOrRural: "RURAL";
1797
1806
  village?: string | null | undefined;
1798
- }>, z.ZodObject<{
1807
+ }>, z.ZodUndefined, z.ZodObject<{
1799
1808
  country: z.ZodString;
1800
1809
  addressType: z.ZodLiteral<"INTERNATIONAL">;
1801
1810
  state: z.ZodString;
@@ -1826,11 +1835,13 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1826
1835
  addressLine3?: string | null | undefined;
1827
1836
  postcodeOrZip?: string | null | undefined;
1828
1837
  }>]>>>;
1838
+ originalActionId: z.ZodOptional<z.ZodString>;
1839
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1829
1840
  }, {
1830
1841
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
1831
1842
  }>, "strip", z.ZodTypeAny, {
1832
1843
  type: "DECLARE";
1833
- data: Record<string, string | number | boolean | {
1844
+ declaration: Record<string, string | number | boolean | {
1834
1845
  type: string;
1835
1846
  filename: string;
1836
1847
  originalFilename: string;
@@ -1867,10 +1878,10 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1867
1878
  option: string;
1868
1879
  filename: string;
1869
1880
  originalFilename: string;
1870
- }[]>;
1881
+ }[] | undefined>;
1871
1882
  eventId: string;
1872
1883
  transactionId: string;
1873
- metadata?: Record<string, string | number | boolean | {
1884
+ annotation?: Record<string, string | number | boolean | {
1874
1885
  type: string;
1875
1886
  filename: string;
1876
1887
  originalFilename: string;
@@ -1907,9 +1918,14 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1907
1918
  option: string;
1908
1919
  filename: string;
1909
1920
  originalFilename: string;
1910
- }[]> | undefined;
1921
+ }[] | undefined> | undefined;
1922
+ originalActionId?: string | undefined;
1923
+ keepAssignment?: boolean | undefined;
1911
1924
  }, {
1912
- data: Record<string, string | number | boolean | {
1925
+ eventId: string;
1926
+ transactionId: string;
1927
+ type?: "DECLARE" | undefined;
1928
+ declaration?: Record<string, string | number | boolean | {
1913
1929
  type: string;
1914
1930
  filename: string;
1915
1931
  originalFilename: string;
@@ -1946,11 +1962,8 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1946
1962
  option: string;
1947
1963
  filename: string;
1948
1964
  originalFilename: string;
1949
- }[]>;
1950
- eventId: string;
1951
- transactionId: string;
1952
- type?: "DECLARE" | undefined;
1953
- metadata?: Record<string, string | number | boolean | {
1965
+ }[] | undefined> | undefined;
1966
+ annotation?: Record<string, string | number | boolean | {
1954
1967
  type: string;
1955
1968
  filename: string;
1956
1969
  originalFilename: string;
@@ -1987,12 +2000,14 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1987
2000
  option: string;
1988
2001
  filename: string;
1989
2002
  originalFilename: string;
1990
- }[]> | undefined;
2003
+ }[] | undefined> | undefined;
2004
+ originalActionId?: string | undefined;
2005
+ keepAssignment?: boolean | undefined;
1991
2006
  }>;
1992
2007
  export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1993
2008
  eventId: z.ZodString;
1994
2009
  transactionId: z.ZodString;
1995
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2010
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1996
2011
  filename: z.ZodString;
1997
2012
  originalFilename: z.ZodString;
1998
2013
  type: z.ZodString;
@@ -2075,7 +2090,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2075
2090
  province: string;
2076
2091
  urbanOrRural: "RURAL";
2077
2092
  village?: string | null | undefined;
2078
- }>, z.ZodObject<{
2093
+ }>, z.ZodUndefined, z.ZodObject<{
2079
2094
  country: z.ZodString;
2080
2095
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2081
2096
  state: z.ZodString;
@@ -2105,8 +2120,8 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2105
2120
  addressLine2?: string | null | undefined;
2106
2121
  addressLine3?: string | null | undefined;
2107
2122
  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<{
2123
+ }>]>>>;
2124
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2110
2125
  filename: z.ZodString;
2111
2126
  originalFilename: z.ZodString;
2112
2127
  type: z.ZodString;
@@ -2189,7 +2204,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2189
2204
  province: string;
2190
2205
  urbanOrRural: "RURAL";
2191
2206
  village?: string | null | undefined;
2192
- }>, z.ZodObject<{
2207
+ }>, z.ZodUndefined, z.ZodObject<{
2193
2208
  country: z.ZodString;
2194
2209
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2195
2210
  state: z.ZodString;
@@ -2220,11 +2235,13 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2220
2235
  addressLine3?: string | null | undefined;
2221
2236
  postcodeOrZip?: string | null | undefined;
2222
2237
  }>]>>>;
2238
+ originalActionId: z.ZodOptional<z.ZodString>;
2239
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
2223
2240
  }, {
2224
2241
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
2225
2242
  }>, "strip", z.ZodTypeAny, {
2226
2243
  type: "PRINT_CERTIFICATE";
2227
- data: Record<string, string | number | boolean | {
2244
+ declaration: Record<string, string | number | boolean | {
2228
2245
  type: string;
2229
2246
  filename: string;
2230
2247
  originalFilename: string;
@@ -2261,10 +2278,10 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2261
2278
  option: string;
2262
2279
  filename: string;
2263
2280
  originalFilename: string;
2264
- }[]>;
2281
+ }[] | undefined>;
2265
2282
  eventId: string;
2266
2283
  transactionId: string;
2267
- metadata?: Record<string, string | number | boolean | {
2284
+ annotation?: Record<string, string | number | boolean | {
2268
2285
  type: string;
2269
2286
  filename: string;
2270
2287
  originalFilename: string;
@@ -2301,9 +2318,14 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2301
2318
  option: string;
2302
2319
  filename: string;
2303
2320
  originalFilename: string;
2304
- }[]> | undefined;
2321
+ }[] | undefined> | undefined;
2322
+ originalActionId?: string | undefined;
2323
+ keepAssignment?: boolean | undefined;
2305
2324
  }, {
2306
- data: Record<string, string | number | boolean | {
2325
+ eventId: string;
2326
+ transactionId: string;
2327
+ type?: "PRINT_CERTIFICATE" | undefined;
2328
+ declaration?: Record<string, string | number | boolean | {
2307
2329
  type: string;
2308
2330
  filename: string;
2309
2331
  originalFilename: string;
@@ -2340,11 +2362,8 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2340
2362
  option: string;
2341
2363
  filename: string;
2342
2364
  originalFilename: string;
2343
- }[]>;
2344
- eventId: string;
2345
- transactionId: string;
2346
- type?: "PRINT_CERTIFICATE" | undefined;
2347
- metadata?: Record<string, string | number | boolean | {
2365
+ }[] | undefined> | undefined;
2366
+ annotation?: Record<string, string | number | boolean | {
2348
2367
  type: string;
2349
2368
  filename: string;
2350
2369
  originalFilename: string;
@@ -2381,13 +2400,15 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2381
2400
  option: string;
2382
2401
  filename: string;
2383
2402
  originalFilename: string;
2384
- }[]> | undefined;
2403
+ }[] | undefined> | undefined;
2404
+ originalActionId?: string | undefined;
2405
+ keepAssignment?: boolean | undefined;
2385
2406
  }>;
2386
2407
  export type DeclareActionInput = z.infer<typeof DeclareActionInput>;
2387
2408
  export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.extendShape<{
2388
2409
  eventId: z.ZodString;
2389
2410
  transactionId: z.ZodString;
2390
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2411
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2391
2412
  filename: z.ZodString;
2392
2413
  originalFilename: z.ZodString;
2393
2414
  type: z.ZodString;
@@ -2470,7 +2491,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2470
2491
  province: string;
2471
2492
  urbanOrRural: "RURAL";
2472
2493
  village?: string | null | undefined;
2473
- }>, z.ZodObject<{
2494
+ }>, z.ZodUndefined, z.ZodObject<{
2474
2495
  country: z.ZodString;
2475
2496
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2476
2497
  state: z.ZodString;
@@ -2500,8 +2521,8 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2500
2521
  addressLine2?: string | null | undefined;
2501
2522
  addressLine3?: string | null | undefined;
2502
2523
  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<{
2524
+ }>]>>>;
2525
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2505
2526
  filename: z.ZodString;
2506
2527
  originalFilename: z.ZodString;
2507
2528
  type: z.ZodString;
@@ -2584,7 +2605,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2584
2605
  province: string;
2585
2606
  urbanOrRural: "RURAL";
2586
2607
  village?: string | null | undefined;
2587
- }>, z.ZodObject<{
2608
+ }>, z.ZodUndefined, z.ZodObject<{
2588
2609
  country: z.ZodString;
2589
2610
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2590
2611
  state: z.ZodString;
@@ -2615,11 +2636,13 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2615
2636
  addressLine3?: string | null | undefined;
2616
2637
  postcodeOrZip?: string | null | undefined;
2617
2638
  }>]>>>;
2639
+ originalActionId: z.ZodOptional<z.ZodString>;
2640
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
2618
2641
  }, {
2619
2642
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
2620
2643
  }>, "strip", z.ZodTypeAny, {
2621
2644
  type: "REJECT";
2622
- data: Record<string, string | number | boolean | {
2645
+ declaration: Record<string, string | number | boolean | {
2623
2646
  type: string;
2624
2647
  filename: string;
2625
2648
  originalFilename: string;
@@ -2656,10 +2679,10 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2656
2679
  option: string;
2657
2680
  filename: string;
2658
2681
  originalFilename: string;
2659
- }[]>;
2682
+ }[] | undefined>;
2660
2683
  eventId: string;
2661
2684
  transactionId: string;
2662
- metadata?: Record<string, string | number | boolean | {
2685
+ annotation?: Record<string, string | number | boolean | {
2663
2686
  type: string;
2664
2687
  filename: string;
2665
2688
  originalFilename: string;
@@ -2696,9 +2719,14 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2696
2719
  option: string;
2697
2720
  filename: string;
2698
2721
  originalFilename: string;
2699
- }[]> | undefined;
2722
+ }[] | undefined> | undefined;
2723
+ originalActionId?: string | undefined;
2724
+ keepAssignment?: boolean | undefined;
2700
2725
  }, {
2701
- data: Record<string, string | number | boolean | {
2726
+ eventId: string;
2727
+ transactionId: string;
2728
+ type?: "REJECT" | undefined;
2729
+ declaration?: Record<string, string | number | boolean | {
2702
2730
  type: string;
2703
2731
  filename: string;
2704
2732
  originalFilename: string;
@@ -2735,11 +2763,8 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2735
2763
  option: string;
2736
2764
  filename: string;
2737
2765
  originalFilename: string;
2738
- }[]>;
2739
- eventId: string;
2740
- transactionId: string;
2741
- type?: "REJECT" | undefined;
2742
- metadata?: Record<string, string | number | boolean | {
2766
+ }[] | undefined> | undefined;
2767
+ annotation?: Record<string, string | number | boolean | {
2743
2768
  type: string;
2744
2769
  filename: string;
2745
2770
  originalFilename: string;
@@ -2776,13 +2801,15 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2776
2801
  option: string;
2777
2802
  filename: string;
2778
2803
  originalFilename: string;
2779
- }[]> | undefined;
2804
+ }[] | undefined> | undefined;
2805
+ originalActionId?: string | undefined;
2806
+ keepAssignment?: boolean | undefined;
2780
2807
  }>;
2781
2808
  export type RejectDeclarationActionInput = z.infer<typeof RejectDeclarationActionInput>;
2782
2809
  export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.extendShape<{
2783
2810
  eventId: z.ZodString;
2784
2811
  transactionId: z.ZodString;
2785
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2812
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2786
2813
  filename: z.ZodString;
2787
2814
  originalFilename: z.ZodString;
2788
2815
  type: z.ZodString;
@@ -2865,7 +2892,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2865
2892
  province: string;
2866
2893
  urbanOrRural: "RURAL";
2867
2894
  village?: string | null | undefined;
2868
- }>, z.ZodObject<{
2895
+ }>, z.ZodUndefined, z.ZodObject<{
2869
2896
  country: z.ZodString;
2870
2897
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2871
2898
  state: z.ZodString;
@@ -2895,8 +2922,8 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2895
2922
  addressLine2?: string | null | undefined;
2896
2923
  addressLine3?: string | null | undefined;
2897
2924
  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<{
2925
+ }>]>>>;
2926
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2900
2927
  filename: z.ZodString;
2901
2928
  originalFilename: z.ZodString;
2902
2929
  type: z.ZodString;
@@ -2979,7 +3006,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2979
3006
  province: string;
2980
3007
  urbanOrRural: "RURAL";
2981
3008
  village?: string | null | undefined;
2982
- }>, z.ZodObject<{
3009
+ }>, z.ZodUndefined, z.ZodObject<{
2983
3010
  country: z.ZodString;
2984
3011
  addressType: z.ZodLiteral<"INTERNATIONAL">;
2985
3012
  state: z.ZodString;
@@ -3010,11 +3037,13 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3010
3037
  addressLine3?: string | null | undefined;
3011
3038
  postcodeOrZip?: string | null | undefined;
3012
3039
  }>]>>>;
3040
+ originalActionId: z.ZodOptional<z.ZodString>;
3041
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3013
3042
  }, {
3014
3043
  type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
3015
3044
  }>, "strip", z.ZodTypeAny, {
3016
3045
  type: "MARKED_AS_DUPLICATE";
3017
- data: Record<string, string | number | boolean | {
3046
+ declaration: Record<string, string | number | boolean | {
3018
3047
  type: string;
3019
3048
  filename: string;
3020
3049
  originalFilename: string;
@@ -3051,10 +3080,10 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3051
3080
  option: string;
3052
3081
  filename: string;
3053
3082
  originalFilename: string;
3054
- }[]>;
3083
+ }[] | undefined>;
3055
3084
  eventId: string;
3056
3085
  transactionId: string;
3057
- metadata?: Record<string, string | number | boolean | {
3086
+ annotation?: Record<string, string | number | boolean | {
3058
3087
  type: string;
3059
3088
  filename: string;
3060
3089
  originalFilename: string;
@@ -3091,9 +3120,14 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3091
3120
  option: string;
3092
3121
  filename: string;
3093
3122
  originalFilename: string;
3094
- }[]> | undefined;
3123
+ }[] | undefined> | undefined;
3124
+ originalActionId?: string | undefined;
3125
+ keepAssignment?: boolean | undefined;
3095
3126
  }, {
3096
- data: Record<string, string | number | boolean | {
3127
+ eventId: string;
3128
+ transactionId: string;
3129
+ type?: "MARKED_AS_DUPLICATE" | undefined;
3130
+ declaration?: Record<string, string | number | boolean | {
3097
3131
  type: string;
3098
3132
  filename: string;
3099
3133
  originalFilename: string;
@@ -3130,11 +3164,8 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3130
3164
  option: string;
3131
3165
  filename: string;
3132
3166
  originalFilename: string;
3133
- }[]>;
3134
- eventId: string;
3135
- transactionId: string;
3136
- type?: "MARKED_AS_DUPLICATE" | undefined;
3137
- metadata?: Record<string, string | number | boolean | {
3167
+ }[] | undefined> | undefined;
3168
+ annotation?: Record<string, string | number | boolean | {
3138
3169
  type: string;
3139
3170
  filename: string;
3140
3171
  originalFilename: string;
@@ -3171,13 +3202,15 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3171
3202
  option: string;
3172
3203
  filename: string;
3173
3204
  originalFilename: string;
3174
- }[]> | undefined;
3205
+ }[] | undefined> | undefined;
3206
+ originalActionId?: string | undefined;
3207
+ keepAssignment?: boolean | undefined;
3175
3208
  }>;
3176
3209
  export type MarkedAsDuplicateActionInput = z.infer<typeof MarkedAsDuplicateActionInput>;
3177
3210
  export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3178
3211
  eventId: z.ZodString;
3179
3212
  transactionId: z.ZodString;
3180
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3213
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3181
3214
  filename: z.ZodString;
3182
3215
  originalFilename: z.ZodString;
3183
3216
  type: z.ZodString;
@@ -3260,7 +3293,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3260
3293
  province: string;
3261
3294
  urbanOrRural: "RURAL";
3262
3295
  village?: string | null | undefined;
3263
- }>, z.ZodObject<{
3296
+ }>, z.ZodUndefined, z.ZodObject<{
3264
3297
  country: z.ZodString;
3265
3298
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3266
3299
  state: z.ZodString;
@@ -3290,8 +3323,8 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3290
3323
  addressLine2?: string | null | undefined;
3291
3324
  addressLine3?: string | null | undefined;
3292
3325
  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<{
3326
+ }>]>>>;
3327
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3295
3328
  filename: z.ZodString;
3296
3329
  originalFilename: z.ZodString;
3297
3330
  type: z.ZodString;
@@ -3374,7 +3407,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3374
3407
  province: string;
3375
3408
  urbanOrRural: "RURAL";
3376
3409
  village?: string | null | undefined;
3377
- }>, z.ZodObject<{
3410
+ }>, z.ZodUndefined, z.ZodObject<{
3378
3411
  country: z.ZodString;
3379
3412
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3380
3413
  state: z.ZodString;
@@ -3405,11 +3438,13 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3405
3438
  addressLine3?: string | null | undefined;
3406
3439
  postcodeOrZip?: string | null | undefined;
3407
3440
  }>]>>>;
3441
+ originalActionId: z.ZodOptional<z.ZodString>;
3442
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3408
3443
  }, {
3409
3444
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
3410
3445
  }>, "strip", z.ZodTypeAny, {
3411
3446
  type: "ARCHIVE";
3412
- data: Record<string, string | number | boolean | {
3447
+ declaration: Record<string, string | number | boolean | {
3413
3448
  type: string;
3414
3449
  filename: string;
3415
3450
  originalFilename: string;
@@ -3446,10 +3481,10 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3446
3481
  option: string;
3447
3482
  filename: string;
3448
3483
  originalFilename: string;
3449
- }[]>;
3484
+ }[] | undefined>;
3450
3485
  eventId: string;
3451
3486
  transactionId: string;
3452
- metadata?: Record<string, string | number | boolean | {
3487
+ annotation?: Record<string, string | number | boolean | {
3453
3488
  type: string;
3454
3489
  filename: string;
3455
3490
  originalFilename: string;
@@ -3486,9 +3521,14 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3486
3521
  option: string;
3487
3522
  filename: string;
3488
3523
  originalFilename: string;
3489
- }[]> | undefined;
3524
+ }[] | undefined> | undefined;
3525
+ originalActionId?: string | undefined;
3526
+ keepAssignment?: boolean | undefined;
3490
3527
  }, {
3491
- data: Record<string, string | number | boolean | {
3528
+ eventId: string;
3529
+ transactionId: string;
3530
+ type?: "ARCHIVE" | undefined;
3531
+ declaration?: Record<string, string | number | boolean | {
3492
3532
  type: string;
3493
3533
  filename: string;
3494
3534
  originalFilename: string;
@@ -3525,11 +3565,8 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3525
3565
  option: string;
3526
3566
  filename: string;
3527
3567
  originalFilename: string;
3528
- }[]>;
3529
- eventId: string;
3530
- transactionId: string;
3531
- type?: "ARCHIVE" | undefined;
3532
- metadata?: Record<string, string | number | boolean | {
3568
+ }[] | undefined> | undefined;
3569
+ annotation?: Record<string, string | number | boolean | {
3533
3570
  type: string;
3534
3571
  filename: string;
3535
3572
  originalFilename: string;
@@ -3566,13 +3603,15 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3566
3603
  option: string;
3567
3604
  filename: string;
3568
3605
  originalFilename: string;
3569
- }[]> | undefined;
3606
+ }[] | undefined> | undefined;
3607
+ originalActionId?: string | undefined;
3608
+ keepAssignment?: boolean | undefined;
3570
3609
  }>;
3571
3610
  export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
3572
- export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
3611
+ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3573
3612
  eventId: z.ZodString;
3574
3613
  transactionId: z.ZodString;
3575
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3614
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3576
3615
  filename: z.ZodString;
3577
3616
  originalFilename: z.ZodString;
3578
3617
  type: z.ZodString;
@@ -3655,7 +3694,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3655
3694
  province: string;
3656
3695
  urbanOrRural: "RURAL";
3657
3696
  village?: string | null | undefined;
3658
- }>, z.ZodObject<{
3697
+ }>, z.ZodUndefined, z.ZodObject<{
3659
3698
  country: z.ZodString;
3660
3699
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3661
3700
  state: z.ZodString;
@@ -3685,8 +3724,8 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3685
3724
  addressLine2?: string | null | undefined;
3686
3725
  addressLine3?: string | null | undefined;
3687
3726
  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<{
3727
+ }>]>>>;
3728
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3690
3729
  filename: z.ZodString;
3691
3730
  originalFilename: z.ZodString;
3692
3731
  type: z.ZodString;
@@ -3769,7 +3808,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3769
3808
  province: string;
3770
3809
  urbanOrRural: "RURAL";
3771
3810
  village?: string | null | undefined;
3772
- }>, z.ZodObject<{
3811
+ }>, z.ZodUndefined, z.ZodObject<{
3773
3812
  country: z.ZodString;
3774
3813
  addressType: z.ZodLiteral<"INTERNATIONAL">;
3775
3814
  state: z.ZodString;
@@ -3800,11 +3839,14 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3800
3839
  addressLine3?: string | null | undefined;
3801
3840
  postcodeOrZip?: string | null | undefined;
3802
3841
  }>]>>>;
3842
+ originalActionId: z.ZodOptional<z.ZodString>;
3843
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3803
3844
  }, {
3804
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
3845
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
3846
+ assignedTo: z.ZodString;
3805
3847
  }>, "strip", z.ZodTypeAny, {
3806
- type: "REQUEST_CORRECTION";
3807
- data: Record<string, string | number | boolean | {
3848
+ type: "ASSIGN";
3849
+ declaration: Record<string, string | number | boolean | {
3808
3850
  type: string;
3809
3851
  filename: string;
3810
3852
  originalFilename: string;
@@ -3841,10 +3883,11 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3841
3883
  option: string;
3842
3884
  filename: string;
3843
3885
  originalFilename: string;
3844
- }[]>;
3886
+ }[] | undefined>;
3887
+ assignedTo: string;
3845
3888
  eventId: string;
3846
3889
  transactionId: string;
3847
- metadata?: Record<string, string | number | boolean | {
3890
+ annotation?: Record<string, string | number | boolean | {
3848
3891
  type: string;
3849
3892
  filename: string;
3850
3893
  originalFilename: string;
@@ -3881,9 +3924,15 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3881
3924
  option: string;
3882
3925
  filename: string;
3883
3926
  originalFilename: string;
3884
- }[]> | undefined;
3927
+ }[] | undefined> | undefined;
3928
+ originalActionId?: string | undefined;
3929
+ keepAssignment?: boolean | undefined;
3885
3930
  }, {
3886
- data: Record<string, string | number | boolean | {
3931
+ assignedTo: string;
3932
+ eventId: string;
3933
+ transactionId: string;
3934
+ type?: "ASSIGN" | undefined;
3935
+ declaration?: Record<string, string | number | boolean | {
3887
3936
  type: string;
3888
3937
  filename: string;
3889
3938
  originalFilename: string;
@@ -3920,11 +3969,8 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3920
3969
  option: string;
3921
3970
  filename: string;
3922
3971
  originalFilename: string;
3923
- }[]>;
3924
- eventId: string;
3925
- transactionId: string;
3926
- type?: "REQUEST_CORRECTION" | undefined;
3927
- metadata?: Record<string, string | number | boolean | {
3972
+ }[] | undefined> | undefined;
3973
+ annotation?: Record<string, string | number | boolean | {
3928
3974
  type: string;
3929
3975
  filename: string;
3930
3976
  originalFilename: string;
@@ -3961,13 +4007,15 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3961
4007
  option: string;
3962
4008
  filename: string;
3963
4009
  originalFilename: string;
3964
- }[]> | undefined;
4010
+ }[] | undefined> | undefined;
4011
+ originalActionId?: string | undefined;
4012
+ keepAssignment?: boolean | undefined;
3965
4013
  }>;
3966
- export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActionInput>;
3967
- export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4014
+ export type AssignActionInput = z.infer<typeof AssignActionInput>;
4015
+ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3968
4016
  eventId: z.ZodString;
3969
4017
  transactionId: z.ZodString;
3970
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4018
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3971
4019
  filename: z.ZodString;
3972
4020
  originalFilename: z.ZodString;
3973
4021
  type: z.ZodString;
@@ -4050,7 +4098,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4050
4098
  province: string;
4051
4099
  urbanOrRural: "RURAL";
4052
4100
  village?: string | null | undefined;
4053
- }>, z.ZodObject<{
4101
+ }>, z.ZodUndefined, z.ZodObject<{
4054
4102
  country: z.ZodString;
4055
4103
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4056
4104
  state: z.ZodString;
@@ -4080,8 +4128,8 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4080
4128
  addressLine2?: string | null | undefined;
4081
4129
  addressLine3?: string | null | undefined;
4082
4130
  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<{
4131
+ }>]>>>;
4132
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4085
4133
  filename: z.ZodString;
4086
4134
  originalFilename: z.ZodString;
4087
4135
  type: z.ZodString;
@@ -4164,7 +4212,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4164
4212
  province: string;
4165
4213
  urbanOrRural: "RURAL";
4166
4214
  village?: string | null | undefined;
4167
- }>, z.ZodObject<{
4215
+ }>, z.ZodUndefined, z.ZodObject<{
4168
4216
  country: z.ZodString;
4169
4217
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4170
4218
  state: z.ZodString;
@@ -4195,12 +4243,14 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4195
4243
  addressLine3?: string | null | undefined;
4196
4244
  postcodeOrZip?: string | null | undefined;
4197
4245
  }>]>>>;
4246
+ originalActionId: z.ZodOptional<z.ZodString>;
4247
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
4198
4248
  }, {
4199
- requestId: z.ZodString;
4200
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
4249
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
4250
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
4201
4251
  }>, "strip", z.ZodTypeAny, {
4202
- type: "REJECT_CORRECTION";
4203
- data: Record<string, string | number | boolean | {
4252
+ type: "UNASSIGN";
4253
+ declaration: Record<string, string | number | boolean | {
4204
4254
  type: string;
4205
4255
  filename: string;
4206
4256
  originalFilename: string;
@@ -4237,11 +4287,11 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4237
4287
  option: string;
4238
4288
  filename: string;
4239
4289
  originalFilename: string;
4240
- }[]>;
4241
- requestId: string;
4290
+ }[] | undefined>;
4291
+ assignedTo: null;
4242
4292
  eventId: string;
4243
4293
  transactionId: string;
4244
- metadata?: Record<string, string | number | boolean | {
4294
+ annotation?: Record<string, string | number | boolean | {
4245
4295
  type: string;
4246
4296
  filename: string;
4247
4297
  originalFilename: string;
@@ -4278,9 +4328,14 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4278
4328
  option: string;
4279
4329
  filename: string;
4280
4330
  originalFilename: string;
4281
- }[]> | undefined;
4331
+ }[] | undefined> | undefined;
4332
+ originalActionId?: string | undefined;
4333
+ keepAssignment?: boolean | undefined;
4282
4334
  }, {
4283
- data: Record<string, string | number | boolean | {
4335
+ eventId: string;
4336
+ transactionId: string;
4337
+ type?: "UNASSIGN" | undefined;
4338
+ declaration?: Record<string, string | number | boolean | {
4284
4339
  type: string;
4285
4340
  filename: string;
4286
4341
  originalFilename: string;
@@ -4317,12 +4372,8 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4317
4372
  option: string;
4318
4373
  filename: string;
4319
4374
  originalFilename: string;
4320
- }[]>;
4321
- requestId: string;
4322
- eventId: string;
4323
- transactionId: string;
4324
- type?: "REJECT_CORRECTION" | undefined;
4325
- metadata?: Record<string, string | number | boolean | {
4375
+ }[] | undefined> | undefined;
4376
+ annotation?: Record<string, string | number | boolean | {
4326
4377
  type: string;
4327
4378
  filename: string;
4328
4379
  originalFilename: string;
@@ -4359,13 +4410,16 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4359
4410
  option: string;
4360
4411
  filename: string;
4361
4412
  originalFilename: string;
4362
- }[]> | undefined;
4413
+ }[] | undefined> | undefined;
4414
+ originalActionId?: string | undefined;
4415
+ assignedTo?: null | undefined;
4416
+ keepAssignment?: boolean | undefined;
4363
4417
  }>;
4364
- export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionInput>;
4365
- export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4418
+ export type UnassignActionInput = z.infer<typeof UnassignActionInput>;
4419
+ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4366
4420
  eventId: z.ZodString;
4367
4421
  transactionId: z.ZodString;
4368
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4422
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4369
4423
  filename: z.ZodString;
4370
4424
  originalFilename: z.ZodString;
4371
4425
  type: z.ZodString;
@@ -4448,7 +4502,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4448
4502
  province: string;
4449
4503
  urbanOrRural: "RURAL";
4450
4504
  village?: string | null | undefined;
4451
- }>, z.ZodObject<{
4505
+ }>, z.ZodUndefined, z.ZodObject<{
4452
4506
  country: z.ZodString;
4453
4507
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4454
4508
  state: z.ZodString;
@@ -4478,8 +4532,8 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4478
4532
  addressLine2?: string | null | undefined;
4479
4533
  addressLine3?: string | null | undefined;
4480
4534
  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<{
4535
+ }>]>>>;
4536
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4483
4537
  filename: z.ZodString;
4484
4538
  originalFilename: z.ZodString;
4485
4539
  type: z.ZodString;
@@ -4562,7 +4616,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4562
4616
  province: string;
4563
4617
  urbanOrRural: "RURAL";
4564
4618
  village?: string | null | undefined;
4565
- }>, z.ZodObject<{
4619
+ }>, z.ZodUndefined, z.ZodObject<{
4566
4620
  country: z.ZodString;
4567
4621
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4568
4622
  state: z.ZodString;
@@ -4593,12 +4647,13 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4593
4647
  addressLine3?: string | null | undefined;
4594
4648
  postcodeOrZip?: string | null | undefined;
4595
4649
  }>]>>>;
4650
+ originalActionId: z.ZodOptional<z.ZodString>;
4651
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
4596
4652
  }, {
4597
- requestId: z.ZodString;
4598
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
4653
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
4599
4654
  }>, "strip", z.ZodTypeAny, {
4600
- type: "APPROVE_CORRECTION";
4601
- data: Record<string, string | number | boolean | {
4655
+ type: "REQUEST_CORRECTION";
4656
+ declaration: Record<string, string | number | boolean | {
4602
4657
  type: string;
4603
4658
  filename: string;
4604
4659
  originalFilename: string;
@@ -4635,11 +4690,10 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4635
4690
  option: string;
4636
4691
  filename: string;
4637
4692
  originalFilename: string;
4638
- }[]>;
4639
- requestId: string;
4693
+ }[] | undefined>;
4640
4694
  eventId: string;
4641
4695
  transactionId: string;
4642
- metadata?: Record<string, string | number | boolean | {
4696
+ annotation?: Record<string, string | number | boolean | {
4643
4697
  type: string;
4644
4698
  filename: string;
4645
4699
  originalFilename: string;
@@ -4676,9 +4730,14 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4676
4730
  option: string;
4677
4731
  filename: string;
4678
4732
  originalFilename: string;
4679
- }[]> | undefined;
4733
+ }[] | undefined> | undefined;
4734
+ originalActionId?: string | undefined;
4735
+ keepAssignment?: boolean | undefined;
4680
4736
  }, {
4681
- data: Record<string, string | number | boolean | {
4737
+ eventId: string;
4738
+ transactionId: string;
4739
+ type?: "REQUEST_CORRECTION" | undefined;
4740
+ declaration?: Record<string, string | number | boolean | {
4682
4741
  type: string;
4683
4742
  filename: string;
4684
4743
  originalFilename: string;
@@ -4715,12 +4774,8 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4715
4774
  option: string;
4716
4775
  filename: string;
4717
4776
  originalFilename: string;
4718
- }[]>;
4719
- requestId: string;
4720
- eventId: string;
4721
- transactionId: string;
4722
- type?: "APPROVE_CORRECTION" | undefined;
4723
- metadata?: Record<string, string | number | boolean | {
4777
+ }[] | undefined> | undefined;
4778
+ annotation?: Record<string, string | number | boolean | {
4724
4779
  type: string;
4725
4780
  filename: string;
4726
4781
  originalFilename: string;
@@ -4757,21 +4812,15 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4757
4812
  option: string;
4758
4813
  filename: string;
4759
4814
  originalFilename: string;
4760
- }[]> | undefined;
4815
+ }[] | undefined> | undefined;
4816
+ originalActionId?: string | undefined;
4817
+ keepAssignment?: boolean | undefined;
4761
4818
  }>;
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<{
4819
+ export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActionInput>;
4820
+ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4772
4821
  eventId: z.ZodString;
4773
4822
  transactionId: z.ZodString;
4774
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4823
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4775
4824
  filename: z.ZodString;
4776
4825
  originalFilename: z.ZodString;
4777
4826
  type: z.ZodString;
@@ -4854,7 +4903,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4854
4903
  province: string;
4855
4904
  urbanOrRural: "RURAL";
4856
4905
  village?: string | null | undefined;
4857
- }>, z.ZodObject<{
4906
+ }>, z.ZodUndefined, z.ZodObject<{
4858
4907
  country: z.ZodString;
4859
4908
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4860
4909
  state: z.ZodString;
@@ -4884,8 +4933,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4884
4933
  addressLine2?: string | null | undefined;
4885
4934
  addressLine3?: string | null | undefined;
4886
4935
  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<{
4936
+ }>]>>>;
4937
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4889
4938
  filename: z.ZodString;
4890
4939
  originalFilename: z.ZodString;
4891
4940
  type: z.ZodString;
@@ -4968,7 +5017,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4968
5017
  province: string;
4969
5018
  urbanOrRural: "RURAL";
4970
5019
  village?: string | null | undefined;
4971
- }>, z.ZodObject<{
5020
+ }>, z.ZodUndefined, z.ZodObject<{
4972
5021
  country: z.ZodString;
4973
5022
  addressType: z.ZodLiteral<"INTERNATIONAL">;
4974
5023
  state: z.ZodString;
@@ -4999,12 +5048,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4999
5048
  addressLine3?: string | null | undefined;
5000
5049
  postcodeOrZip?: string | null | undefined;
5001
5050
  }>]>>>;
5051
+ originalActionId: z.ZodOptional<z.ZodString>;
5052
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5002
5053
  }, {
5003
- type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
5004
- createdAtLocation: z.ZodString;
5054
+ requestId: z.ZodString;
5055
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
5005
5056
  }>, "strip", z.ZodTypeAny, {
5006
- type: "CREATE";
5007
- data: Record<string, string | number | boolean | {
5057
+ type: "REJECT_CORRECTION";
5058
+ declaration: Record<string, string | number | boolean | {
5008
5059
  type: string;
5009
5060
  filename: string;
5010
5061
  originalFilename: string;
@@ -5041,11 +5092,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5041
5092
  option: string;
5042
5093
  filename: string;
5043
5094
  originalFilename: string;
5044
- }[]>;
5045
- createdAtLocation: string;
5095
+ }[] | undefined>;
5096
+ requestId: string;
5046
5097
  eventId: string;
5047
5098
  transactionId: string;
5048
- metadata?: Record<string, string | number | boolean | {
5099
+ annotation?: Record<string, string | number | boolean | {
5049
5100
  type: string;
5050
5101
  filename: string;
5051
5102
  originalFilename: string;
@@ -5082,9 +5133,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5082
5133
  option: string;
5083
5134
  filename: string;
5084
5135
  originalFilename: string;
5085
- }[]> | undefined;
5136
+ }[] | undefined> | undefined;
5137
+ originalActionId?: string | undefined;
5138
+ keepAssignment?: boolean | undefined;
5086
5139
  }, {
5087
- data: Record<string, string | number | boolean | {
5140
+ requestId: string;
5141
+ eventId: string;
5142
+ transactionId: string;
5143
+ type?: "REJECT_CORRECTION" | undefined;
5144
+ declaration?: Record<string, string | number | boolean | {
5088
5145
  type: string;
5089
5146
  filename: string;
5090
5147
  originalFilename: string;
@@ -5121,12 +5178,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5121
5178
  option: string;
5122
5179
  filename: string;
5123
5180
  originalFilename: string;
5124
- }[]>;
5125
- createdAtLocation: string;
5126
- eventId: string;
5127
- transactionId: string;
5128
- type?: "CREATE" | undefined;
5129
- metadata?: Record<string, string | number | boolean | {
5181
+ }[] | undefined> | undefined;
5182
+ annotation?: Record<string, string | number | boolean | {
5130
5183
  type: string;
5131
5184
  filename: string;
5132
5185
  originalFilename: string;
@@ -5163,11 +5216,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5163
5216
  option: string;
5164
5217
  filename: string;
5165
5218
  originalFilename: string;
5166
- }[]> | undefined;
5167
- }>, z.ZodObject<z.objectUtil.extendShape<{
5219
+ }[] | undefined> | undefined;
5220
+ originalActionId?: string | undefined;
5221
+ keepAssignment?: boolean | undefined;
5222
+ }>;
5223
+ export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionInput>;
5224
+ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
5168
5225
  eventId: z.ZodString;
5169
5226
  transactionId: z.ZodString;
5170
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5227
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5171
5228
  filename: z.ZodString;
5172
5229
  originalFilename: z.ZodString;
5173
5230
  type: z.ZodString;
@@ -5250,7 +5307,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5250
5307
  province: string;
5251
5308
  urbanOrRural: "RURAL";
5252
5309
  village?: string | null | undefined;
5253
- }>, z.ZodObject<{
5310
+ }>, z.ZodUndefined, z.ZodObject<{
5254
5311
  country: z.ZodString;
5255
5312
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5256
5313
  state: z.ZodString;
@@ -5280,8 +5337,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5280
5337
  addressLine2?: string | null | undefined;
5281
5338
  addressLine3?: string | null | undefined;
5282
5339
  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<{
5340
+ }>]>>>;
5341
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5285
5342
  filename: z.ZodString;
5286
5343
  originalFilename: z.ZodString;
5287
5344
  type: z.ZodString;
@@ -5364,7 +5421,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5364
5421
  province: string;
5365
5422
  urbanOrRural: "RURAL";
5366
5423
  village?: string | null | undefined;
5367
- }>, z.ZodObject<{
5424
+ }>, z.ZodUndefined, z.ZodObject<{
5368
5425
  country: z.ZodString;
5369
5426
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5370
5427
  state: z.ZodString;
@@ -5395,12 +5452,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5395
5452
  addressLine3?: string | null | undefined;
5396
5453
  postcodeOrZip?: string | null | undefined;
5397
5454
  }>]>>>;
5455
+ originalActionId: z.ZodOptional<z.ZodString>;
5456
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5398
5457
  }, {
5399
- type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
5400
- duplicates: z.ZodArray<z.ZodString, "many">;
5458
+ requestId: z.ZodString;
5459
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
5401
5460
  }>, "strip", z.ZodTypeAny, {
5402
- type: "VALIDATE";
5403
- data: Record<string, string | number | boolean | {
5461
+ type: "APPROVE_CORRECTION";
5462
+ declaration: Record<string, string | number | boolean | {
5404
5463
  type: string;
5405
5464
  filename: string;
5406
5465
  originalFilename: string;
@@ -5437,11 +5496,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5437
5496
  option: string;
5438
5497
  filename: string;
5439
5498
  originalFilename: string;
5440
- }[]>;
5499
+ }[] | undefined>;
5500
+ requestId: string;
5441
5501
  eventId: string;
5442
5502
  transactionId: string;
5443
- duplicates: string[];
5444
- metadata?: Record<string, string | number | boolean | {
5503
+ annotation?: Record<string, string | number | boolean | {
5445
5504
  type: string;
5446
5505
  filename: string;
5447
5506
  originalFilename: string;
@@ -5478,9 +5537,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5478
5537
  option: string;
5479
5538
  filename: string;
5480
5539
  originalFilename: string;
5481
- }[]> | undefined;
5540
+ }[] | undefined> | undefined;
5541
+ originalActionId?: string | undefined;
5542
+ keepAssignment?: boolean | undefined;
5482
5543
  }, {
5483
- data: Record<string, string | number | boolean | {
5544
+ requestId: string;
5545
+ eventId: string;
5546
+ transactionId: string;
5547
+ type?: "APPROVE_CORRECTION" | undefined;
5548
+ declaration?: Record<string, string | number | boolean | {
5484
5549
  type: string;
5485
5550
  filename: string;
5486
5551
  originalFilename: string;
@@ -5517,12 +5582,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5517
5582
  option: string;
5518
5583
  filename: string;
5519
5584
  originalFilename: string;
5520
- }[]>;
5521
- eventId: string;
5522
- transactionId: string;
5523
- duplicates: string[];
5524
- type?: "VALIDATE" | undefined;
5525
- metadata?: Record<string, string | number | boolean | {
5585
+ }[] | undefined> | undefined;
5586
+ annotation?: Record<string, string | number | boolean | {
5526
5587
  type: string;
5527
5588
  filename: string;
5528
5589
  originalFilename: string;
@@ -5559,11 +5620,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5559
5620
  option: string;
5560
5621
  filename: string;
5561
5622
  originalFilename: string;
5562
- }[]> | undefined;
5563
- }>, z.ZodObject<z.objectUtil.extendShape<{
5623
+ }[] | undefined> | undefined;
5624
+ originalActionId?: string | undefined;
5625
+ keepAssignment?: boolean | undefined;
5626
+ }>;
5627
+ export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
5628
+ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5564
5629
  eventId: z.ZodString;
5565
5630
  transactionId: z.ZodString;
5566
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5631
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5567
5632
  filename: z.ZodString;
5568
5633
  originalFilename: z.ZodString;
5569
5634
  type: z.ZodString;
@@ -5646,7 +5711,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5646
5711
  province: string;
5647
5712
  urbanOrRural: "RURAL";
5648
5713
  village?: string | null | undefined;
5649
- }>, z.ZodObject<{
5714
+ }>, z.ZodUndefined, z.ZodObject<{
5650
5715
  country: z.ZodString;
5651
5716
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5652
5717
  state: z.ZodString;
@@ -5676,8 +5741,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5676
5741
  addressLine2?: string | null | undefined;
5677
5742
  addressLine3?: string | null | undefined;
5678
5743
  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<{
5744
+ }>]>>>;
5745
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5681
5746
  filename: z.ZodString;
5682
5747
  originalFilename: z.ZodString;
5683
5748
  type: z.ZodString;
@@ -5760,7 +5825,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5760
5825
  province: string;
5761
5826
  urbanOrRural: "RURAL";
5762
5827
  village?: string | null | undefined;
5763
- }>, z.ZodObject<{
5828
+ }>, z.ZodUndefined, z.ZodObject<{
5764
5829
  country: z.ZodString;
5765
5830
  addressType: z.ZodLiteral<"INTERNATIONAL">;
5766
5831
  state: z.ZodString;
@@ -5791,21 +5856,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5791
5856
  addressLine3?: string | null | undefined;
5792
5857
  postcodeOrZip?: string | null | undefined;
5793
5858
  }>]>>>;
5859
+ originalActionId: z.ZodOptional<z.ZodString>;
5860
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5794
5861
  }, {
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
- }>;
5862
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
5806
5863
  }>, "strip", z.ZodTypeAny, {
5807
- type: "REGISTER";
5808
- data: Record<string, string | number | boolean | {
5864
+ type: "READ";
5865
+ declaration: Record<string, string | number | boolean | {
5809
5866
  type: string;
5810
5867
  filename: string;
5811
5868
  originalFilename: string;
@@ -5842,14 +5899,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5842
5899
  option: string;
5843
5900
  filename: string;
5844
5901
  originalFilename: string;
5845
- }[]>;
5846
- identifiers: {
5847
- trackingId: string;
5848
- registrationNumber: string;
5849
- };
5902
+ }[] | undefined>;
5850
5903
  eventId: string;
5851
5904
  transactionId: string;
5852
- metadata?: Record<string, string | number | boolean | {
5905
+ annotation?: Record<string, string | number | boolean | {
5853
5906
  type: string;
5854
5907
  filename: string;
5855
5908
  originalFilename: string;
@@ -5886,9 +5939,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5886
5939
  option: string;
5887
5940
  filename: string;
5888
5941
  originalFilename: string;
5889
- }[]> | undefined;
5942
+ }[] | undefined> | undefined;
5943
+ originalActionId?: string | undefined;
5944
+ keepAssignment?: boolean | undefined;
5890
5945
  }, {
5891
- data: Record<string, string | number | boolean | {
5946
+ eventId: string;
5947
+ transactionId: string;
5948
+ type?: "READ" | undefined;
5949
+ declaration?: Record<string, string | number | boolean | {
5892
5950
  type: string;
5893
5951
  filename: string;
5894
5952
  originalFilename: string;
@@ -5925,15 +5983,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5925
5983
  option: string;
5926
5984
  filename: string;
5927
5985
  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 | {
5986
+ }[] | undefined> | undefined;
5987
+ annotation?: Record<string, string | number | boolean | {
5937
5988
  type: string;
5938
5989
  filename: string;
5939
5990
  originalFilename: string;
@@ -5970,11 +6021,23 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5970
6021
  option: string;
5971
6022
  filename: string;
5972
6023
  originalFilename: string;
5973
- }[]> | undefined;
5974
- }>, z.ZodObject<z.objectUtil.extendShape<{
6024
+ }[] | undefined> | undefined;
6025
+ originalActionId?: string | undefined;
6026
+ keepAssignment?: boolean | undefined;
6027
+ }>;
6028
+ export type ReadActionInput = z.infer<typeof ReadActionInput>;
6029
+ /**
6030
+ * ActionInput types are used to validate the input data for the action.
6031
+ * In our use case, we use it directly with TRPC to validate the input data for the action.
6032
+ * using z.literal(ActionType.ACTION).default(ActionType.ACTION) makes them more convenient to use
6033
+ * without having to pass the type in the input data, when it's defined in the method.
6034
+ *
6035
+ * e.g. mutation.declare({createdAt: new Date()}) vs mutation.declare({createdAt: new Date(), type: 'DECLARE'})
6036
+ */
6037
+ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
5975
6038
  eventId: z.ZodString;
5976
6039
  transactionId: z.ZodString;
5977
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6040
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5978
6041
  filename: z.ZodString;
5979
6042
  originalFilename: z.ZodString;
5980
6043
  type: z.ZodString;
@@ -6057,7 +6120,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6057
6120
  province: string;
6058
6121
  urbanOrRural: "RURAL";
6059
6122
  village?: string | null | undefined;
6060
- }>, z.ZodObject<{
6123
+ }>, z.ZodUndefined, z.ZodObject<{
6061
6124
  country: z.ZodString;
6062
6125
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6063
6126
  state: z.ZodString;
@@ -6087,8 +6150,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6087
6150
  addressLine2?: string | null | undefined;
6088
6151
  addressLine3?: string | null | undefined;
6089
6152
  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<{
6153
+ }>]>>>;
6154
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6092
6155
  filename: z.ZodString;
6093
6156
  originalFilename: z.ZodString;
6094
6157
  type: z.ZodString;
@@ -6171,7 +6234,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6171
6234
  province: string;
6172
6235
  urbanOrRural: "RURAL";
6173
6236
  village?: string | null | undefined;
6174
- }>, z.ZodObject<{
6237
+ }>, z.ZodUndefined, z.ZodObject<{
6175
6238
  country: z.ZodString;
6176
6239
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6177
6240
  state: z.ZodString;
@@ -6202,11 +6265,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6202
6265
  addressLine3?: string | null | undefined;
6203
6266
  postcodeOrZip?: string | null | undefined;
6204
6267
  }>]>>>;
6268
+ originalActionId: z.ZodOptional<z.ZodString>;
6269
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6205
6270
  }, {
6206
- type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
6271
+ type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
6272
+ createdAtLocation: z.ZodString;
6207
6273
  }>, "strip", z.ZodTypeAny, {
6208
- type: "NOTIFY";
6209
- data: Record<string, string | number | boolean | {
6274
+ type: "CREATE";
6275
+ declaration: Record<string, string | number | boolean | {
6210
6276
  type: string;
6211
6277
  filename: string;
6212
6278
  originalFilename: string;
@@ -6243,10 +6309,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6243
6309
  option: string;
6244
6310
  filename: string;
6245
6311
  originalFilename: string;
6246
- }[]>;
6312
+ }[] | undefined>;
6313
+ createdAtLocation: string;
6247
6314
  eventId: string;
6248
6315
  transactionId: string;
6249
- metadata?: Record<string, string | number | boolean | {
6316
+ annotation?: Record<string, string | number | boolean | {
6250
6317
  type: string;
6251
6318
  filename: string;
6252
6319
  originalFilename: string;
@@ -6283,9 +6350,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6283
6350
  option: string;
6284
6351
  filename: string;
6285
6352
  originalFilename: string;
6286
- }[]> | undefined;
6353
+ }[] | undefined> | undefined;
6354
+ originalActionId?: string | undefined;
6355
+ keepAssignment?: boolean | undefined;
6287
6356
  }, {
6288
- data: Record<string, string | number | boolean | {
6357
+ createdAtLocation: string;
6358
+ eventId: string;
6359
+ transactionId: string;
6360
+ type?: "CREATE" | undefined;
6361
+ declaration?: Record<string, string | number | boolean | {
6289
6362
  type: string;
6290
6363
  filename: string;
6291
6364
  originalFilename: string;
@@ -6322,11 +6395,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6322
6395
  option: string;
6323
6396
  filename: string;
6324
6397
  originalFilename: string;
6325
- }[]>;
6326
- eventId: string;
6327
- transactionId: string;
6328
- type?: "NOTIFY" | undefined;
6329
- metadata?: Record<string, string | number | boolean | {
6398
+ }[] | undefined> | undefined;
6399
+ annotation?: Record<string, string | number | boolean | {
6330
6400
  type: string;
6331
6401
  filename: string;
6332
6402
  originalFilename: string;
@@ -6363,11 +6433,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6363
6433
  option: string;
6364
6434
  filename: string;
6365
6435
  originalFilename: string;
6366
- }[]> | undefined;
6436
+ }[] | undefined> | undefined;
6437
+ originalActionId?: string | undefined;
6438
+ keepAssignment?: boolean | undefined;
6367
6439
  }>, z.ZodObject<z.objectUtil.extendShape<{
6368
6440
  eventId: z.ZodString;
6369
6441
  transactionId: z.ZodString;
6370
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6442
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6371
6443
  filename: z.ZodString;
6372
6444
  originalFilename: z.ZodString;
6373
6445
  type: z.ZodString;
@@ -6450,7 +6522,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6450
6522
  province: string;
6451
6523
  urbanOrRural: "RURAL";
6452
6524
  village?: string | null | undefined;
6453
- }>, z.ZodObject<{
6525
+ }>, z.ZodUndefined, z.ZodObject<{
6454
6526
  country: z.ZodString;
6455
6527
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6456
6528
  state: z.ZodString;
@@ -6480,8 +6552,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6480
6552
  addressLine2?: string | null | undefined;
6481
6553
  addressLine3?: string | null | undefined;
6482
6554
  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<{
6555
+ }>]>>>;
6556
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6485
6557
  filename: z.ZodString;
6486
6558
  originalFilename: z.ZodString;
6487
6559
  type: z.ZodString;
@@ -6564,7 +6636,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6564
6636
  province: string;
6565
6637
  urbanOrRural: "RURAL";
6566
6638
  village?: string | null | undefined;
6567
- }>, z.ZodObject<{
6639
+ }>, z.ZodUndefined, z.ZodObject<{
6568
6640
  country: z.ZodString;
6569
6641
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6570
6642
  state: z.ZodString;
@@ -6595,11 +6667,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6595
6667
  addressLine3?: string | null | undefined;
6596
6668
  postcodeOrZip?: string | null | undefined;
6597
6669
  }>]>>>;
6670
+ originalActionId: z.ZodOptional<z.ZodString>;
6671
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6598
6672
  }, {
6599
- type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
6673
+ type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
6674
+ duplicates: z.ZodArray<z.ZodString, "many">;
6600
6675
  }>, "strip", z.ZodTypeAny, {
6601
- type: "DECLARE";
6602
- data: Record<string, string | number | boolean | {
6676
+ type: "VALIDATE";
6677
+ declaration: Record<string, string | number | boolean | {
6603
6678
  type: string;
6604
6679
  filename: string;
6605
6680
  originalFilename: string;
@@ -6636,10 +6711,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6636
6711
  option: string;
6637
6712
  filename: string;
6638
6713
  originalFilename: string;
6639
- }[]>;
6714
+ }[] | undefined>;
6640
6715
  eventId: string;
6641
6716
  transactionId: string;
6642
- metadata?: Record<string, string | number | boolean | {
6717
+ duplicates: string[];
6718
+ annotation?: Record<string, string | number | boolean | {
6643
6719
  type: string;
6644
6720
  filename: string;
6645
6721
  originalFilename: string;
@@ -6676,9 +6752,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6676
6752
  option: string;
6677
6753
  filename: string;
6678
6754
  originalFilename: string;
6679
- }[]> | undefined;
6755
+ }[] | undefined> | undefined;
6756
+ originalActionId?: string | undefined;
6757
+ keepAssignment?: boolean | undefined;
6680
6758
  }, {
6681
- data: Record<string, string | number | boolean | {
6759
+ eventId: string;
6760
+ transactionId: string;
6761
+ duplicates: string[];
6762
+ type?: "VALIDATE" | undefined;
6763
+ declaration?: Record<string, string | number | boolean | {
6682
6764
  type: string;
6683
6765
  filename: string;
6684
6766
  originalFilename: string;
@@ -6715,11 +6797,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6715
6797
  option: string;
6716
6798
  filename: string;
6717
6799
  originalFilename: string;
6718
- }[]>;
6719
- eventId: string;
6720
- transactionId: string;
6721
- type?: "DECLARE" | undefined;
6722
- metadata?: Record<string, string | number | boolean | {
6800
+ }[] | undefined> | undefined;
6801
+ annotation?: Record<string, string | number | boolean | {
6723
6802
  type: string;
6724
6803
  filename: string;
6725
6804
  originalFilename: string;
@@ -6756,11 +6835,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6756
6835
  option: string;
6757
6836
  filename: string;
6758
6837
  originalFilename: string;
6759
- }[]> | undefined;
6838
+ }[] | undefined> | undefined;
6839
+ originalActionId?: string | undefined;
6840
+ keepAssignment?: boolean | undefined;
6760
6841
  }>, z.ZodObject<z.objectUtil.extendShape<{
6761
6842
  eventId: z.ZodString;
6762
6843
  transactionId: z.ZodString;
6763
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6844
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6764
6845
  filename: z.ZodString;
6765
6846
  originalFilename: z.ZodString;
6766
6847
  type: z.ZodString;
@@ -6843,7 +6924,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6843
6924
  province: string;
6844
6925
  urbanOrRural: "RURAL";
6845
6926
  village?: string | null | undefined;
6846
- }>, z.ZodObject<{
6927
+ }>, z.ZodUndefined, z.ZodObject<{
6847
6928
  country: z.ZodString;
6848
6929
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6849
6930
  state: z.ZodString;
@@ -6873,8 +6954,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6873
6954
  addressLine2?: string | null | undefined;
6874
6955
  addressLine3?: string | null | undefined;
6875
6956
  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<{
6957
+ }>]>>>;
6958
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6878
6959
  filename: z.ZodString;
6879
6960
  originalFilename: z.ZodString;
6880
6961
  type: z.ZodString;
@@ -6957,7 +7038,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6957
7038
  province: string;
6958
7039
  urbanOrRural: "RURAL";
6959
7040
  village?: string | null | undefined;
6960
- }>, z.ZodObject<{
7041
+ }>, z.ZodUndefined, z.ZodObject<{
6961
7042
  country: z.ZodString;
6962
7043
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6963
7044
  state: z.ZodString;
@@ -6988,11 +7069,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6988
7069
  addressLine3?: string | null | undefined;
6989
7070
  postcodeOrZip?: string | null | undefined;
6990
7071
  }>]>>>;
7072
+ originalActionId: z.ZodOptional<z.ZodString>;
7073
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6991
7074
  }, {
6992
- type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
7075
+ type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
7076
+ registrationNumber: z.ZodOptional<z.ZodString>;
6993
7077
  }>, "strip", z.ZodTypeAny, {
6994
- type: "REJECT";
6995
- data: Record<string, string | number | boolean | {
7078
+ type: "REGISTER";
7079
+ declaration: Record<string, string | number | boolean | {
6996
7080
  type: string;
6997
7081
  filename: string;
6998
7082
  originalFilename: string;
@@ -7029,10 +7113,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7029
7113
  option: string;
7030
7114
  filename: string;
7031
7115
  originalFilename: string;
7032
- }[]>;
7116
+ }[] | undefined>;
7033
7117
  eventId: string;
7034
7118
  transactionId: string;
7035
- metadata?: Record<string, string | number | boolean | {
7119
+ annotation?: Record<string, string | number | boolean | {
7036
7120
  type: string;
7037
7121
  filename: string;
7038
7122
  originalFilename: string;
@@ -7069,9 +7153,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7069
7153
  option: string;
7070
7154
  filename: string;
7071
7155
  originalFilename: string;
7072
- }[]> | undefined;
7156
+ }[] | undefined> | undefined;
7157
+ originalActionId?: string | undefined;
7158
+ registrationNumber?: string | undefined;
7159
+ keepAssignment?: boolean | undefined;
7073
7160
  }, {
7074
- data: Record<string, string | number | boolean | {
7161
+ eventId: string;
7162
+ transactionId: string;
7163
+ type?: "REGISTER" | undefined;
7164
+ declaration?: Record<string, string | number | boolean | {
7075
7165
  type: string;
7076
7166
  filename: string;
7077
7167
  originalFilename: string;
@@ -7108,11 +7198,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7108
7198
  option: string;
7109
7199
  filename: string;
7110
7200
  originalFilename: string;
7111
- }[]>;
7112
- eventId: string;
7113
- transactionId: string;
7114
- type?: "REJECT" | undefined;
7115
- metadata?: Record<string, string | number | boolean | {
7201
+ }[] | undefined> | undefined;
7202
+ annotation?: Record<string, string | number | boolean | {
7116
7203
  type: string;
7117
7204
  filename: string;
7118
7205
  originalFilename: string;
@@ -7149,11 +7236,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7149
7236
  option: string;
7150
7237
  filename: string;
7151
7238
  originalFilename: string;
7152
- }[]> | undefined;
7239
+ }[] | undefined> | undefined;
7240
+ originalActionId?: string | undefined;
7241
+ registrationNumber?: string | undefined;
7242
+ keepAssignment?: boolean | undefined;
7153
7243
  }>, z.ZodObject<z.objectUtil.extendShape<{
7154
7244
  eventId: z.ZodString;
7155
7245
  transactionId: z.ZodString;
7156
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7246
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7157
7247
  filename: z.ZodString;
7158
7248
  originalFilename: z.ZodString;
7159
7249
  type: z.ZodString;
@@ -7236,7 +7326,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7236
7326
  province: string;
7237
7327
  urbanOrRural: "RURAL";
7238
7328
  village?: string | null | undefined;
7239
- }>, z.ZodObject<{
7329
+ }>, z.ZodUndefined, z.ZodObject<{
7240
7330
  country: z.ZodString;
7241
7331
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7242
7332
  state: z.ZodString;
@@ -7266,8 +7356,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7266
7356
  addressLine2?: string | null | undefined;
7267
7357
  addressLine3?: string | null | undefined;
7268
7358
  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<{
7359
+ }>]>>>;
7360
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7271
7361
  filename: z.ZodString;
7272
7362
  originalFilename: z.ZodString;
7273
7363
  type: z.ZodString;
@@ -7350,7 +7440,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7350
7440
  province: string;
7351
7441
  urbanOrRural: "RURAL";
7352
7442
  village?: string | null | undefined;
7353
- }>, z.ZodObject<{
7443
+ }>, z.ZodUndefined, z.ZodObject<{
7354
7444
  country: z.ZodString;
7355
7445
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7356
7446
  state: z.ZodString;
@@ -7381,11 +7471,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7381
7471
  addressLine3?: string | null | undefined;
7382
7472
  postcodeOrZip?: string | null | undefined;
7383
7473
  }>]>>>;
7474
+ originalActionId: z.ZodOptional<z.ZodString>;
7475
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7384
7476
  }, {
7385
- type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
7477
+ type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
7386
7478
  }>, "strip", z.ZodTypeAny, {
7387
- type: "MARKED_AS_DUPLICATE";
7388
- data: Record<string, string | number | boolean | {
7479
+ type: "NOTIFY";
7480
+ declaration: Record<string, string | number | boolean | {
7389
7481
  type: string;
7390
7482
  filename: string;
7391
7483
  originalFilename: string;
@@ -7422,10 +7514,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7422
7514
  option: string;
7423
7515
  filename: string;
7424
7516
  originalFilename: string;
7425
- }[]>;
7517
+ }[] | undefined>;
7426
7518
  eventId: string;
7427
7519
  transactionId: string;
7428
- metadata?: Record<string, string | number | boolean | {
7520
+ annotation?: Record<string, string | number | boolean | {
7429
7521
  type: string;
7430
7522
  filename: string;
7431
7523
  originalFilename: string;
@@ -7462,9 +7554,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7462
7554
  option: string;
7463
7555
  filename: string;
7464
7556
  originalFilename: string;
7465
- }[]> | undefined;
7557
+ }[] | undefined> | undefined;
7558
+ originalActionId?: string | undefined;
7559
+ keepAssignment?: boolean | undefined;
7466
7560
  }, {
7467
- data: Record<string, string | number | boolean | {
7561
+ eventId: string;
7562
+ transactionId: string;
7563
+ type?: "NOTIFY" | undefined;
7564
+ declaration?: Record<string, string | number | boolean | {
7468
7565
  type: string;
7469
7566
  filename: string;
7470
7567
  originalFilename: string;
@@ -7501,11 +7598,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7501
7598
  option: string;
7502
7599
  filename: string;
7503
7600
  originalFilename: string;
7504
- }[]>;
7505
- eventId: string;
7506
- transactionId: string;
7507
- type?: "MARKED_AS_DUPLICATE" | undefined;
7508
- metadata?: Record<string, string | number | boolean | {
7601
+ }[] | undefined> | undefined;
7602
+ annotation?: Record<string, string | number | boolean | {
7509
7603
  type: string;
7510
7604
  filename: string;
7511
7605
  originalFilename: string;
@@ -7542,11 +7636,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7542
7636
  option: string;
7543
7637
  filename: string;
7544
7638
  originalFilename: string;
7545
- }[]> | undefined;
7639
+ }[] | undefined> | undefined;
7640
+ originalActionId?: string | undefined;
7641
+ keepAssignment?: boolean | undefined;
7546
7642
  }>, z.ZodObject<z.objectUtil.extendShape<{
7547
7643
  eventId: z.ZodString;
7548
7644
  transactionId: z.ZodString;
7549
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7645
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7550
7646
  filename: z.ZodString;
7551
7647
  originalFilename: z.ZodString;
7552
7648
  type: z.ZodString;
@@ -7629,7 +7725,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7629
7725
  province: string;
7630
7726
  urbanOrRural: "RURAL";
7631
7727
  village?: string | null | undefined;
7632
- }>, z.ZodObject<{
7728
+ }>, z.ZodUndefined, z.ZodObject<{
7633
7729
  country: z.ZodString;
7634
7730
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7635
7731
  state: z.ZodString;
@@ -7659,8 +7755,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7659
7755
  addressLine2?: string | null | undefined;
7660
7756
  addressLine3?: string | null | undefined;
7661
7757
  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<{
7758
+ }>]>>>;
7759
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7664
7760
  filename: z.ZodString;
7665
7761
  originalFilename: z.ZodString;
7666
7762
  type: z.ZodString;
@@ -7743,7 +7839,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7743
7839
  province: string;
7744
7840
  urbanOrRural: "RURAL";
7745
7841
  village?: string | null | undefined;
7746
- }>, z.ZodObject<{
7842
+ }>, z.ZodUndefined, z.ZodObject<{
7747
7843
  country: z.ZodString;
7748
7844
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7749
7845
  state: z.ZodString;
@@ -7774,11 +7870,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7774
7870
  addressLine3?: string | null | undefined;
7775
7871
  postcodeOrZip?: string | null | undefined;
7776
7872
  }>]>>>;
7873
+ originalActionId: z.ZodOptional<z.ZodString>;
7874
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7777
7875
  }, {
7778
- type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
7876
+ type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
7779
7877
  }>, "strip", z.ZodTypeAny, {
7780
- type: "ARCHIVE";
7781
- data: Record<string, string | number | boolean | {
7878
+ type: "DECLARE";
7879
+ declaration: Record<string, string | number | boolean | {
7782
7880
  type: string;
7783
7881
  filename: string;
7784
7882
  originalFilename: string;
@@ -7815,10 +7913,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7815
7913
  option: string;
7816
7914
  filename: string;
7817
7915
  originalFilename: string;
7818
- }[]>;
7916
+ }[] | undefined>;
7819
7917
  eventId: string;
7820
7918
  transactionId: string;
7821
- metadata?: Record<string, string | number | boolean | {
7919
+ annotation?: Record<string, string | number | boolean | {
7822
7920
  type: string;
7823
7921
  filename: string;
7824
7922
  originalFilename: string;
@@ -7855,9 +7953,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7855
7953
  option: string;
7856
7954
  filename: string;
7857
7955
  originalFilename: string;
7858
- }[]> | undefined;
7956
+ }[] | undefined> | undefined;
7957
+ originalActionId?: string | undefined;
7958
+ keepAssignment?: boolean | undefined;
7859
7959
  }, {
7860
- data: Record<string, string | number | boolean | {
7960
+ eventId: string;
7961
+ transactionId: string;
7962
+ type?: "DECLARE" | undefined;
7963
+ declaration?: Record<string, string | number | boolean | {
7861
7964
  type: string;
7862
7965
  filename: string;
7863
7966
  originalFilename: string;
@@ -7894,11 +7997,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7894
7997
  option: string;
7895
7998
  filename: string;
7896
7999
  originalFilename: string;
7897
- }[]>;
7898
- eventId: string;
7899
- transactionId: string;
7900
- type?: "ARCHIVE" | undefined;
7901
- metadata?: Record<string, string | number | boolean | {
8000
+ }[] | undefined> | undefined;
8001
+ annotation?: Record<string, string | number | boolean | {
7902
8002
  type: string;
7903
8003
  filename: string;
7904
8004
  originalFilename: string;
@@ -7935,11 +8035,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7935
8035
  option: string;
7936
8036
  filename: string;
7937
8037
  originalFilename: string;
7938
- }[]> | undefined;
8038
+ }[] | undefined> | undefined;
8039
+ originalActionId?: string | undefined;
8040
+ keepAssignment?: boolean | undefined;
7939
8041
  }>, z.ZodObject<z.objectUtil.extendShape<{
7940
8042
  eventId: z.ZodString;
7941
8043
  transactionId: z.ZodString;
7942
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8044
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7943
8045
  filename: z.ZodString;
7944
8046
  originalFilename: z.ZodString;
7945
8047
  type: z.ZodString;
@@ -8022,7 +8124,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8022
8124
  province: string;
8023
8125
  urbanOrRural: "RURAL";
8024
8126
  village?: string | null | undefined;
8025
- }>, z.ZodObject<{
8127
+ }>, z.ZodUndefined, z.ZodObject<{
8026
8128
  country: z.ZodString;
8027
8129
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8028
8130
  state: z.ZodString;
@@ -8052,8 +8154,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8052
8154
  addressLine2?: string | null | undefined;
8053
8155
  addressLine3?: string | null | undefined;
8054
8156
  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<{
8157
+ }>]>>>;
8158
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8057
8159
  filename: z.ZodString;
8058
8160
  originalFilename: z.ZodString;
8059
8161
  type: z.ZodString;
@@ -8136,7 +8238,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8136
8238
  province: string;
8137
8239
  urbanOrRural: "RURAL";
8138
8240
  village?: string | null | undefined;
8139
- }>, z.ZodObject<{
8241
+ }>, z.ZodUndefined, z.ZodObject<{
8140
8242
  country: z.ZodString;
8141
8243
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8142
8244
  state: z.ZodString;
@@ -8167,12 +8269,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8167
8269
  addressLine3?: string | null | undefined;
8168
8270
  postcodeOrZip?: string | null | undefined;
8169
8271
  }>]>>>;
8272
+ originalActionId: z.ZodOptional<z.ZodString>;
8273
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8170
8274
  }, {
8171
- type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
8172
- assignedTo: z.ZodString;
8275
+ type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
8173
8276
  }>, "strip", z.ZodTypeAny, {
8174
- type: "ASSIGN";
8175
- data: Record<string, string | number | boolean | {
8277
+ type: "REJECT";
8278
+ declaration: Record<string, string | number | boolean | {
8176
8279
  type: string;
8177
8280
  filename: string;
8178
8281
  originalFilename: string;
@@ -8209,11 +8312,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8209
8312
  option: string;
8210
8313
  filename: string;
8211
8314
  originalFilename: string;
8212
- }[]>;
8213
- assignedTo: string;
8315
+ }[] | undefined>;
8214
8316
  eventId: string;
8215
8317
  transactionId: string;
8216
- metadata?: Record<string, string | number | boolean | {
8318
+ annotation?: Record<string, string | number | boolean | {
8217
8319
  type: string;
8218
8320
  filename: string;
8219
8321
  originalFilename: string;
@@ -8250,10 +8352,1531 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8250
8352
  option: string;
8251
8353
  filename: string;
8252
8354
  originalFilename: string;
8253
- }[]> | undefined;
8355
+ }[] | undefined> | undefined;
8356
+ originalActionId?: string | undefined;
8357
+ keepAssignment?: boolean | undefined;
8254
8358
  }, {
8255
- data: Record<string, string | number | boolean | {
8256
- type: string;
8359
+ eventId: string;
8360
+ transactionId: string;
8361
+ type?: "REJECT" | undefined;
8362
+ declaration?: Record<string, string | number | boolean | {
8363
+ type: string;
8364
+ filename: string;
8365
+ originalFilename: string;
8366
+ } | {
8367
+ country: string;
8368
+ district: string;
8369
+ addressType: "DOMESTIC";
8370
+ province: string;
8371
+ urbanOrRural: "URBAN";
8372
+ number?: string | null | undefined;
8373
+ town?: string | null | undefined;
8374
+ residentialArea?: string | null | undefined;
8375
+ street?: string | null | undefined;
8376
+ zipCode?: string | null | undefined;
8377
+ } | {
8378
+ country: string;
8379
+ district: string;
8380
+ addressType: "DOMESTIC";
8381
+ province: string;
8382
+ urbanOrRural: "RURAL";
8383
+ village?: string | null | undefined;
8384
+ } | {
8385
+ country: string;
8386
+ state: string;
8387
+ addressType: "INTERNATIONAL";
8388
+ district2: string;
8389
+ cityOrTown?: string | null | undefined;
8390
+ addressLine1?: string | null | undefined;
8391
+ addressLine2?: string | null | undefined;
8392
+ addressLine3?: string | null | undefined;
8393
+ postcodeOrZip?: string | null | undefined;
8394
+ } | {
8395
+ type: string;
8396
+ option: string;
8397
+ filename: string;
8398
+ originalFilename: string;
8399
+ }[] | undefined> | undefined;
8400
+ annotation?: Record<string, string | number | boolean | {
8401
+ type: string;
8402
+ filename: string;
8403
+ originalFilename: string;
8404
+ } | {
8405
+ country: string;
8406
+ district: string;
8407
+ addressType: "DOMESTIC";
8408
+ province: string;
8409
+ urbanOrRural: "URBAN";
8410
+ number?: string | null | undefined;
8411
+ town?: string | null | undefined;
8412
+ residentialArea?: string | null | undefined;
8413
+ street?: string | null | undefined;
8414
+ zipCode?: string | null | undefined;
8415
+ } | {
8416
+ country: string;
8417
+ district: string;
8418
+ addressType: "DOMESTIC";
8419
+ province: string;
8420
+ urbanOrRural: "RURAL";
8421
+ village?: string | null | undefined;
8422
+ } | {
8423
+ country: string;
8424
+ state: string;
8425
+ addressType: "INTERNATIONAL";
8426
+ district2: string;
8427
+ cityOrTown?: string | null | undefined;
8428
+ addressLine1?: string | null | undefined;
8429
+ addressLine2?: string | null | undefined;
8430
+ addressLine3?: string | null | undefined;
8431
+ postcodeOrZip?: string | null | undefined;
8432
+ } | {
8433
+ type: string;
8434
+ option: string;
8435
+ filename: string;
8436
+ originalFilename: string;
8437
+ }[] | undefined> | undefined;
8438
+ originalActionId?: string | undefined;
8439
+ keepAssignment?: boolean | undefined;
8440
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8441
+ eventId: z.ZodString;
8442
+ transactionId: z.ZodString;
8443
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8444
+ filename: z.ZodString;
8445
+ originalFilename: z.ZodString;
8446
+ type: z.ZodString;
8447
+ }, "strip", z.ZodTypeAny, {
8448
+ type: string;
8449
+ filename: string;
8450
+ originalFilename: string;
8451
+ }, {
8452
+ type: string;
8453
+ filename: string;
8454
+ originalFilename: string;
8455
+ }>, z.ZodArray<z.ZodObject<{
8456
+ filename: z.ZodString;
8457
+ originalFilename: z.ZodString;
8458
+ type: z.ZodString;
8459
+ option: z.ZodString;
8460
+ }, "strip", z.ZodTypeAny, {
8461
+ type: string;
8462
+ option: string;
8463
+ filename: string;
8464
+ originalFilename: string;
8465
+ }, {
8466
+ type: string;
8467
+ option: string;
8468
+ filename: string;
8469
+ originalFilename: string;
8470
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8471
+ country: z.ZodString;
8472
+ addressType: z.ZodLiteral<"DOMESTIC">;
8473
+ province: z.ZodString;
8474
+ district: z.ZodString;
8475
+ }, {
8476
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8477
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8478
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8479
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8480
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8481
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8482
+ }>, "strip", z.ZodTypeAny, {
8483
+ country: string;
8484
+ district: string;
8485
+ addressType: "DOMESTIC";
8486
+ province: string;
8487
+ urbanOrRural: "URBAN";
8488
+ number?: string | null | undefined;
8489
+ town?: string | null | undefined;
8490
+ residentialArea?: string | null | undefined;
8491
+ street?: string | null | undefined;
8492
+ zipCode?: string | null | undefined;
8493
+ }, {
8494
+ country: string;
8495
+ district: string;
8496
+ addressType: "DOMESTIC";
8497
+ province: string;
8498
+ urbanOrRural: "URBAN";
8499
+ number?: string | null | undefined;
8500
+ town?: string | null | undefined;
8501
+ residentialArea?: string | null | undefined;
8502
+ street?: string | null | undefined;
8503
+ zipCode?: string | null | undefined;
8504
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8505
+ country: z.ZodString;
8506
+ addressType: z.ZodLiteral<"DOMESTIC">;
8507
+ province: z.ZodString;
8508
+ district: z.ZodString;
8509
+ }, {
8510
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8511
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8512
+ }>, "strip", z.ZodTypeAny, {
8513
+ country: string;
8514
+ district: string;
8515
+ addressType: "DOMESTIC";
8516
+ province: string;
8517
+ urbanOrRural: "RURAL";
8518
+ village?: string | null | undefined;
8519
+ }, {
8520
+ country: string;
8521
+ district: string;
8522
+ addressType: "DOMESTIC";
8523
+ province: string;
8524
+ urbanOrRural: "RURAL";
8525
+ village?: string | null | undefined;
8526
+ }>, z.ZodUndefined, z.ZodObject<{
8527
+ country: z.ZodString;
8528
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8529
+ state: z.ZodString;
8530
+ district2: z.ZodString;
8531
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8532
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8533
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8534
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8535
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8536
+ }, "strip", z.ZodTypeAny, {
8537
+ country: string;
8538
+ state: string;
8539
+ addressType: "INTERNATIONAL";
8540
+ district2: string;
8541
+ cityOrTown?: string | null | undefined;
8542
+ addressLine1?: string | null | undefined;
8543
+ addressLine2?: string | null | undefined;
8544
+ addressLine3?: string | null | undefined;
8545
+ postcodeOrZip?: string | null | undefined;
8546
+ }, {
8547
+ country: string;
8548
+ state: string;
8549
+ addressType: "INTERNATIONAL";
8550
+ district2: string;
8551
+ cityOrTown?: string | null | undefined;
8552
+ addressLine1?: string | null | undefined;
8553
+ addressLine2?: string | null | undefined;
8554
+ addressLine3?: string | null | undefined;
8555
+ postcodeOrZip?: string | null | undefined;
8556
+ }>]>>>;
8557
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8558
+ filename: z.ZodString;
8559
+ originalFilename: z.ZodString;
8560
+ type: z.ZodString;
8561
+ }, "strip", z.ZodTypeAny, {
8562
+ type: string;
8563
+ filename: string;
8564
+ originalFilename: string;
8565
+ }, {
8566
+ type: string;
8567
+ filename: string;
8568
+ originalFilename: string;
8569
+ }>, z.ZodArray<z.ZodObject<{
8570
+ filename: z.ZodString;
8571
+ originalFilename: z.ZodString;
8572
+ type: z.ZodString;
8573
+ option: z.ZodString;
8574
+ }, "strip", z.ZodTypeAny, {
8575
+ type: string;
8576
+ option: string;
8577
+ filename: string;
8578
+ originalFilename: string;
8579
+ }, {
8580
+ type: string;
8581
+ option: string;
8582
+ filename: string;
8583
+ originalFilename: string;
8584
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8585
+ country: z.ZodString;
8586
+ addressType: z.ZodLiteral<"DOMESTIC">;
8587
+ province: z.ZodString;
8588
+ district: z.ZodString;
8589
+ }, {
8590
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8591
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8592
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8593
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8594
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8595
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8596
+ }>, "strip", z.ZodTypeAny, {
8597
+ country: string;
8598
+ district: string;
8599
+ addressType: "DOMESTIC";
8600
+ province: string;
8601
+ urbanOrRural: "URBAN";
8602
+ number?: string | null | undefined;
8603
+ town?: string | null | undefined;
8604
+ residentialArea?: string | null | undefined;
8605
+ street?: string | null | undefined;
8606
+ zipCode?: string | null | undefined;
8607
+ }, {
8608
+ country: string;
8609
+ district: string;
8610
+ addressType: "DOMESTIC";
8611
+ province: string;
8612
+ urbanOrRural: "URBAN";
8613
+ number?: string | null | undefined;
8614
+ town?: string | null | undefined;
8615
+ residentialArea?: string | null | undefined;
8616
+ street?: string | null | undefined;
8617
+ zipCode?: string | null | undefined;
8618
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8619
+ country: z.ZodString;
8620
+ addressType: z.ZodLiteral<"DOMESTIC">;
8621
+ province: z.ZodString;
8622
+ district: z.ZodString;
8623
+ }, {
8624
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8625
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8626
+ }>, "strip", z.ZodTypeAny, {
8627
+ country: string;
8628
+ district: string;
8629
+ addressType: "DOMESTIC";
8630
+ province: string;
8631
+ urbanOrRural: "RURAL";
8632
+ village?: string | null | undefined;
8633
+ }, {
8634
+ country: string;
8635
+ district: string;
8636
+ addressType: "DOMESTIC";
8637
+ province: string;
8638
+ urbanOrRural: "RURAL";
8639
+ village?: string | null | undefined;
8640
+ }>, z.ZodUndefined, z.ZodObject<{
8641
+ country: z.ZodString;
8642
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8643
+ state: z.ZodString;
8644
+ district2: z.ZodString;
8645
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8646
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8647
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8648
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8649
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8650
+ }, "strip", z.ZodTypeAny, {
8651
+ country: string;
8652
+ state: string;
8653
+ addressType: "INTERNATIONAL";
8654
+ district2: string;
8655
+ cityOrTown?: string | null | undefined;
8656
+ addressLine1?: string | null | undefined;
8657
+ addressLine2?: string | null | undefined;
8658
+ addressLine3?: string | null | undefined;
8659
+ postcodeOrZip?: string | null | undefined;
8660
+ }, {
8661
+ country: string;
8662
+ state: string;
8663
+ addressType: "INTERNATIONAL";
8664
+ district2: string;
8665
+ cityOrTown?: string | null | undefined;
8666
+ addressLine1?: string | null | undefined;
8667
+ addressLine2?: string | null | undefined;
8668
+ addressLine3?: string | null | undefined;
8669
+ postcodeOrZip?: string | null | undefined;
8670
+ }>]>>>;
8671
+ originalActionId: z.ZodOptional<z.ZodString>;
8672
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8673
+ }, {
8674
+ type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
8675
+ }>, "strip", z.ZodTypeAny, {
8676
+ type: "MARKED_AS_DUPLICATE";
8677
+ declaration: Record<string, string | number | boolean | {
8678
+ type: string;
8679
+ filename: string;
8680
+ originalFilename: string;
8681
+ } | {
8682
+ country: string;
8683
+ district: string;
8684
+ addressType: "DOMESTIC";
8685
+ province: string;
8686
+ urbanOrRural: "URBAN";
8687
+ number?: string | null | undefined;
8688
+ town?: string | null | undefined;
8689
+ residentialArea?: string | null | undefined;
8690
+ street?: string | null | undefined;
8691
+ zipCode?: string | null | undefined;
8692
+ } | {
8693
+ country: string;
8694
+ district: string;
8695
+ addressType: "DOMESTIC";
8696
+ province: string;
8697
+ urbanOrRural: "RURAL";
8698
+ village?: string | null | undefined;
8699
+ } | {
8700
+ country: string;
8701
+ state: string;
8702
+ addressType: "INTERNATIONAL";
8703
+ district2: string;
8704
+ cityOrTown?: string | null | undefined;
8705
+ addressLine1?: string | null | undefined;
8706
+ addressLine2?: string | null | undefined;
8707
+ addressLine3?: string | null | undefined;
8708
+ postcodeOrZip?: string | null | undefined;
8709
+ } | {
8710
+ type: string;
8711
+ option: string;
8712
+ filename: string;
8713
+ originalFilename: string;
8714
+ }[] | undefined>;
8715
+ eventId: string;
8716
+ transactionId: string;
8717
+ annotation?: Record<string, string | number | boolean | {
8718
+ type: string;
8719
+ filename: string;
8720
+ originalFilename: string;
8721
+ } | {
8722
+ country: string;
8723
+ district: string;
8724
+ addressType: "DOMESTIC";
8725
+ province: string;
8726
+ urbanOrRural: "URBAN";
8727
+ number?: string | null | undefined;
8728
+ town?: string | null | undefined;
8729
+ residentialArea?: string | null | undefined;
8730
+ street?: string | null | undefined;
8731
+ zipCode?: string | null | undefined;
8732
+ } | {
8733
+ country: string;
8734
+ district: string;
8735
+ addressType: "DOMESTIC";
8736
+ province: string;
8737
+ urbanOrRural: "RURAL";
8738
+ village?: string | null | undefined;
8739
+ } | {
8740
+ country: string;
8741
+ state: string;
8742
+ addressType: "INTERNATIONAL";
8743
+ district2: string;
8744
+ cityOrTown?: string | null | undefined;
8745
+ addressLine1?: string | null | undefined;
8746
+ addressLine2?: string | null | undefined;
8747
+ addressLine3?: string | null | undefined;
8748
+ postcodeOrZip?: string | null | undefined;
8749
+ } | {
8750
+ type: string;
8751
+ option: string;
8752
+ filename: string;
8753
+ originalFilename: string;
8754
+ }[] | undefined> | undefined;
8755
+ originalActionId?: string | undefined;
8756
+ keepAssignment?: boolean | undefined;
8757
+ }, {
8758
+ eventId: string;
8759
+ transactionId: string;
8760
+ type?: "MARKED_AS_DUPLICATE" | undefined;
8761
+ declaration?: Record<string, string | number | boolean | {
8762
+ type: string;
8763
+ filename: string;
8764
+ originalFilename: string;
8765
+ } | {
8766
+ country: string;
8767
+ district: string;
8768
+ addressType: "DOMESTIC";
8769
+ province: string;
8770
+ urbanOrRural: "URBAN";
8771
+ number?: string | null | undefined;
8772
+ town?: string | null | undefined;
8773
+ residentialArea?: string | null | undefined;
8774
+ street?: string | null | undefined;
8775
+ zipCode?: string | null | undefined;
8776
+ } | {
8777
+ country: string;
8778
+ district: string;
8779
+ addressType: "DOMESTIC";
8780
+ province: string;
8781
+ urbanOrRural: "RURAL";
8782
+ village?: string | null | undefined;
8783
+ } | {
8784
+ country: string;
8785
+ state: string;
8786
+ addressType: "INTERNATIONAL";
8787
+ district2: string;
8788
+ cityOrTown?: string | null | undefined;
8789
+ addressLine1?: string | null | undefined;
8790
+ addressLine2?: string | null | undefined;
8791
+ addressLine3?: string | null | undefined;
8792
+ postcodeOrZip?: string | null | undefined;
8793
+ } | {
8794
+ type: string;
8795
+ option: string;
8796
+ filename: string;
8797
+ originalFilename: string;
8798
+ }[] | undefined> | undefined;
8799
+ annotation?: Record<string, string | number | boolean | {
8800
+ type: string;
8801
+ filename: string;
8802
+ originalFilename: string;
8803
+ } | {
8804
+ country: string;
8805
+ district: string;
8806
+ addressType: "DOMESTIC";
8807
+ province: string;
8808
+ urbanOrRural: "URBAN";
8809
+ number?: string | null | undefined;
8810
+ town?: string | null | undefined;
8811
+ residentialArea?: string | null | undefined;
8812
+ street?: string | null | undefined;
8813
+ zipCode?: string | null | undefined;
8814
+ } | {
8815
+ country: string;
8816
+ district: string;
8817
+ addressType: "DOMESTIC";
8818
+ province: string;
8819
+ urbanOrRural: "RURAL";
8820
+ village?: string | null | undefined;
8821
+ } | {
8822
+ country: string;
8823
+ state: string;
8824
+ addressType: "INTERNATIONAL";
8825
+ district2: string;
8826
+ cityOrTown?: string | null | undefined;
8827
+ addressLine1?: string | null | undefined;
8828
+ addressLine2?: string | null | undefined;
8829
+ addressLine3?: string | null | undefined;
8830
+ postcodeOrZip?: string | null | undefined;
8831
+ } | {
8832
+ type: string;
8833
+ option: string;
8834
+ filename: string;
8835
+ originalFilename: string;
8836
+ }[] | undefined> | undefined;
8837
+ originalActionId?: string | undefined;
8838
+ keepAssignment?: boolean | undefined;
8839
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8840
+ eventId: z.ZodString;
8841
+ transactionId: z.ZodString;
8842
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8843
+ filename: z.ZodString;
8844
+ originalFilename: z.ZodString;
8845
+ type: z.ZodString;
8846
+ }, "strip", z.ZodTypeAny, {
8847
+ type: string;
8848
+ filename: string;
8849
+ originalFilename: string;
8850
+ }, {
8851
+ type: string;
8852
+ filename: string;
8853
+ originalFilename: string;
8854
+ }>, z.ZodArray<z.ZodObject<{
8855
+ filename: z.ZodString;
8856
+ originalFilename: z.ZodString;
8857
+ type: z.ZodString;
8858
+ option: z.ZodString;
8859
+ }, "strip", z.ZodTypeAny, {
8860
+ type: string;
8861
+ option: string;
8862
+ filename: string;
8863
+ originalFilename: string;
8864
+ }, {
8865
+ type: string;
8866
+ option: string;
8867
+ filename: string;
8868
+ originalFilename: string;
8869
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8870
+ country: z.ZodString;
8871
+ addressType: z.ZodLiteral<"DOMESTIC">;
8872
+ province: z.ZodString;
8873
+ district: z.ZodString;
8874
+ }, {
8875
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8876
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8877
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8878
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8879
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8880
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8881
+ }>, "strip", z.ZodTypeAny, {
8882
+ country: string;
8883
+ district: string;
8884
+ addressType: "DOMESTIC";
8885
+ province: string;
8886
+ urbanOrRural: "URBAN";
8887
+ number?: string | null | undefined;
8888
+ town?: string | null | undefined;
8889
+ residentialArea?: string | null | undefined;
8890
+ street?: string | null | undefined;
8891
+ zipCode?: string | null | undefined;
8892
+ }, {
8893
+ country: string;
8894
+ district: string;
8895
+ addressType: "DOMESTIC";
8896
+ province: string;
8897
+ urbanOrRural: "URBAN";
8898
+ number?: string | null | undefined;
8899
+ town?: string | null | undefined;
8900
+ residentialArea?: string | null | undefined;
8901
+ street?: string | null | undefined;
8902
+ zipCode?: string | null | undefined;
8903
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8904
+ country: z.ZodString;
8905
+ addressType: z.ZodLiteral<"DOMESTIC">;
8906
+ province: z.ZodString;
8907
+ district: z.ZodString;
8908
+ }, {
8909
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8910
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8911
+ }>, "strip", z.ZodTypeAny, {
8912
+ country: string;
8913
+ district: string;
8914
+ addressType: "DOMESTIC";
8915
+ province: string;
8916
+ urbanOrRural: "RURAL";
8917
+ village?: string | null | undefined;
8918
+ }, {
8919
+ country: string;
8920
+ district: string;
8921
+ addressType: "DOMESTIC";
8922
+ province: string;
8923
+ urbanOrRural: "RURAL";
8924
+ village?: string | null | undefined;
8925
+ }>, z.ZodUndefined, z.ZodObject<{
8926
+ country: z.ZodString;
8927
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8928
+ state: z.ZodString;
8929
+ district2: z.ZodString;
8930
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8931
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8932
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8933
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8934
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8935
+ }, "strip", z.ZodTypeAny, {
8936
+ country: string;
8937
+ state: string;
8938
+ addressType: "INTERNATIONAL";
8939
+ district2: string;
8940
+ cityOrTown?: string | null | undefined;
8941
+ addressLine1?: string | null | undefined;
8942
+ addressLine2?: string | null | undefined;
8943
+ addressLine3?: string | null | undefined;
8944
+ postcodeOrZip?: string | null | undefined;
8945
+ }, {
8946
+ country: string;
8947
+ state: string;
8948
+ addressType: "INTERNATIONAL";
8949
+ district2: string;
8950
+ cityOrTown?: string | null | undefined;
8951
+ addressLine1?: string | null | undefined;
8952
+ addressLine2?: string | null | undefined;
8953
+ addressLine3?: string | null | undefined;
8954
+ postcodeOrZip?: string | null | undefined;
8955
+ }>]>>>;
8956
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8957
+ filename: z.ZodString;
8958
+ originalFilename: z.ZodString;
8959
+ type: z.ZodString;
8960
+ }, "strip", z.ZodTypeAny, {
8961
+ type: string;
8962
+ filename: string;
8963
+ originalFilename: string;
8964
+ }, {
8965
+ type: string;
8966
+ filename: string;
8967
+ originalFilename: string;
8968
+ }>, z.ZodArray<z.ZodObject<{
8969
+ filename: z.ZodString;
8970
+ originalFilename: z.ZodString;
8971
+ type: z.ZodString;
8972
+ option: z.ZodString;
8973
+ }, "strip", z.ZodTypeAny, {
8974
+ type: string;
8975
+ option: string;
8976
+ filename: string;
8977
+ originalFilename: string;
8978
+ }, {
8979
+ type: string;
8980
+ option: string;
8981
+ filename: string;
8982
+ originalFilename: string;
8983
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8984
+ country: z.ZodString;
8985
+ addressType: z.ZodLiteral<"DOMESTIC">;
8986
+ province: z.ZodString;
8987
+ district: z.ZodString;
8988
+ }, {
8989
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8990
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8991
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8992
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8993
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8994
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8995
+ }>, "strip", z.ZodTypeAny, {
8996
+ country: string;
8997
+ district: string;
8998
+ addressType: "DOMESTIC";
8999
+ province: string;
9000
+ urbanOrRural: "URBAN";
9001
+ number?: string | null | undefined;
9002
+ town?: string | null | undefined;
9003
+ residentialArea?: string | null | undefined;
9004
+ street?: string | null | undefined;
9005
+ zipCode?: string | null | undefined;
9006
+ }, {
9007
+ country: string;
9008
+ district: string;
9009
+ addressType: "DOMESTIC";
9010
+ province: string;
9011
+ urbanOrRural: "URBAN";
9012
+ number?: string | null | undefined;
9013
+ town?: string | null | undefined;
9014
+ residentialArea?: string | null | undefined;
9015
+ street?: string | null | undefined;
9016
+ zipCode?: string | null | undefined;
9017
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9018
+ country: z.ZodString;
9019
+ addressType: z.ZodLiteral<"DOMESTIC">;
9020
+ province: z.ZodString;
9021
+ district: z.ZodString;
9022
+ }, {
9023
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9024
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9025
+ }>, "strip", z.ZodTypeAny, {
9026
+ country: string;
9027
+ district: string;
9028
+ addressType: "DOMESTIC";
9029
+ province: string;
9030
+ urbanOrRural: "RURAL";
9031
+ village?: string | null | undefined;
9032
+ }, {
9033
+ country: string;
9034
+ district: string;
9035
+ addressType: "DOMESTIC";
9036
+ province: string;
9037
+ urbanOrRural: "RURAL";
9038
+ village?: string | null | undefined;
9039
+ }>, z.ZodUndefined, z.ZodObject<{
9040
+ country: z.ZodString;
9041
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9042
+ state: z.ZodString;
9043
+ district2: z.ZodString;
9044
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9045
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9046
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9047
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9048
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9049
+ }, "strip", z.ZodTypeAny, {
9050
+ country: string;
9051
+ state: string;
9052
+ addressType: "INTERNATIONAL";
9053
+ district2: string;
9054
+ cityOrTown?: string | null | undefined;
9055
+ addressLine1?: string | null | undefined;
9056
+ addressLine2?: string | null | undefined;
9057
+ addressLine3?: string | null | undefined;
9058
+ postcodeOrZip?: string | null | undefined;
9059
+ }, {
9060
+ country: string;
9061
+ state: string;
9062
+ addressType: "INTERNATIONAL";
9063
+ district2: string;
9064
+ cityOrTown?: string | null | undefined;
9065
+ addressLine1?: string | null | undefined;
9066
+ addressLine2?: string | null | undefined;
9067
+ addressLine3?: string | null | undefined;
9068
+ postcodeOrZip?: string | null | undefined;
9069
+ }>]>>>;
9070
+ originalActionId: z.ZodOptional<z.ZodString>;
9071
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9072
+ }, {
9073
+ type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
9074
+ }>, "strip", z.ZodTypeAny, {
9075
+ type: "ARCHIVE";
9076
+ declaration: Record<string, string | number | boolean | {
9077
+ type: string;
9078
+ filename: string;
9079
+ originalFilename: string;
9080
+ } | {
9081
+ country: string;
9082
+ district: string;
9083
+ addressType: "DOMESTIC";
9084
+ province: string;
9085
+ urbanOrRural: "URBAN";
9086
+ number?: string | null | undefined;
9087
+ town?: string | null | undefined;
9088
+ residentialArea?: string | null | undefined;
9089
+ street?: string | null | undefined;
9090
+ zipCode?: string | null | undefined;
9091
+ } | {
9092
+ country: string;
9093
+ district: string;
9094
+ addressType: "DOMESTIC";
9095
+ province: string;
9096
+ urbanOrRural: "RURAL";
9097
+ village?: string | null | undefined;
9098
+ } | {
9099
+ country: string;
9100
+ state: string;
9101
+ addressType: "INTERNATIONAL";
9102
+ district2: string;
9103
+ cityOrTown?: string | null | undefined;
9104
+ addressLine1?: string | null | undefined;
9105
+ addressLine2?: string | null | undefined;
9106
+ addressLine3?: string | null | undefined;
9107
+ postcodeOrZip?: string | null | undefined;
9108
+ } | {
9109
+ type: string;
9110
+ option: string;
9111
+ filename: string;
9112
+ originalFilename: string;
9113
+ }[] | undefined>;
9114
+ eventId: string;
9115
+ transactionId: string;
9116
+ annotation?: Record<string, string | number | boolean | {
9117
+ type: string;
9118
+ filename: string;
9119
+ originalFilename: string;
9120
+ } | {
9121
+ country: string;
9122
+ district: string;
9123
+ addressType: "DOMESTIC";
9124
+ province: string;
9125
+ urbanOrRural: "URBAN";
9126
+ number?: string | null | undefined;
9127
+ town?: string | null | undefined;
9128
+ residentialArea?: string | null | undefined;
9129
+ street?: string | null | undefined;
9130
+ zipCode?: string | null | undefined;
9131
+ } | {
9132
+ country: string;
9133
+ district: string;
9134
+ addressType: "DOMESTIC";
9135
+ province: string;
9136
+ urbanOrRural: "RURAL";
9137
+ village?: string | null | undefined;
9138
+ } | {
9139
+ country: string;
9140
+ state: string;
9141
+ addressType: "INTERNATIONAL";
9142
+ district2: string;
9143
+ cityOrTown?: string | null | undefined;
9144
+ addressLine1?: string | null | undefined;
9145
+ addressLine2?: string | null | undefined;
9146
+ addressLine3?: string | null | undefined;
9147
+ postcodeOrZip?: string | null | undefined;
9148
+ } | {
9149
+ type: string;
9150
+ option: string;
9151
+ filename: string;
9152
+ originalFilename: string;
9153
+ }[] | undefined> | undefined;
9154
+ originalActionId?: string | undefined;
9155
+ keepAssignment?: boolean | undefined;
9156
+ }, {
9157
+ eventId: string;
9158
+ transactionId: string;
9159
+ type?: "ARCHIVE" | undefined;
9160
+ declaration?: Record<string, string | number | boolean | {
9161
+ type: string;
9162
+ filename: string;
9163
+ originalFilename: string;
9164
+ } | {
9165
+ country: string;
9166
+ district: string;
9167
+ addressType: "DOMESTIC";
9168
+ province: string;
9169
+ urbanOrRural: "URBAN";
9170
+ number?: string | null | undefined;
9171
+ town?: string | null | undefined;
9172
+ residentialArea?: string | null | undefined;
9173
+ street?: string | null | undefined;
9174
+ zipCode?: string | null | undefined;
9175
+ } | {
9176
+ country: string;
9177
+ district: string;
9178
+ addressType: "DOMESTIC";
9179
+ province: string;
9180
+ urbanOrRural: "RURAL";
9181
+ village?: string | null | undefined;
9182
+ } | {
9183
+ country: string;
9184
+ state: string;
9185
+ addressType: "INTERNATIONAL";
9186
+ district2: string;
9187
+ cityOrTown?: string | null | undefined;
9188
+ addressLine1?: string | null | undefined;
9189
+ addressLine2?: string | null | undefined;
9190
+ addressLine3?: string | null | undefined;
9191
+ postcodeOrZip?: string | null | undefined;
9192
+ } | {
9193
+ type: string;
9194
+ option: string;
9195
+ filename: string;
9196
+ originalFilename: string;
9197
+ }[] | undefined> | undefined;
9198
+ annotation?: Record<string, string | number | boolean | {
9199
+ type: string;
9200
+ filename: string;
9201
+ originalFilename: string;
9202
+ } | {
9203
+ country: string;
9204
+ district: string;
9205
+ addressType: "DOMESTIC";
9206
+ province: string;
9207
+ urbanOrRural: "URBAN";
9208
+ number?: string | null | undefined;
9209
+ town?: string | null | undefined;
9210
+ residentialArea?: string | null | undefined;
9211
+ street?: string | null | undefined;
9212
+ zipCode?: string | null | undefined;
9213
+ } | {
9214
+ country: string;
9215
+ district: string;
9216
+ addressType: "DOMESTIC";
9217
+ province: string;
9218
+ urbanOrRural: "RURAL";
9219
+ village?: string | null | undefined;
9220
+ } | {
9221
+ country: string;
9222
+ state: string;
9223
+ addressType: "INTERNATIONAL";
9224
+ district2: string;
9225
+ cityOrTown?: string | null | undefined;
9226
+ addressLine1?: string | null | undefined;
9227
+ addressLine2?: string | null | undefined;
9228
+ addressLine3?: string | null | undefined;
9229
+ postcodeOrZip?: string | null | undefined;
9230
+ } | {
9231
+ type: string;
9232
+ option: string;
9233
+ filename: string;
9234
+ originalFilename: string;
9235
+ }[] | undefined> | undefined;
9236
+ originalActionId?: string | undefined;
9237
+ keepAssignment?: boolean | undefined;
9238
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9239
+ eventId: z.ZodString;
9240
+ transactionId: z.ZodString;
9241
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9242
+ filename: z.ZodString;
9243
+ originalFilename: z.ZodString;
9244
+ type: z.ZodString;
9245
+ }, "strip", z.ZodTypeAny, {
9246
+ type: string;
9247
+ filename: string;
9248
+ originalFilename: string;
9249
+ }, {
9250
+ type: string;
9251
+ filename: string;
9252
+ originalFilename: string;
9253
+ }>, z.ZodArray<z.ZodObject<{
9254
+ filename: z.ZodString;
9255
+ originalFilename: z.ZodString;
9256
+ type: z.ZodString;
9257
+ option: z.ZodString;
9258
+ }, "strip", z.ZodTypeAny, {
9259
+ type: string;
9260
+ option: string;
9261
+ filename: string;
9262
+ originalFilename: string;
9263
+ }, {
9264
+ type: string;
9265
+ option: string;
9266
+ filename: string;
9267
+ originalFilename: string;
9268
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
9269
+ country: z.ZodString;
9270
+ addressType: z.ZodLiteral<"DOMESTIC">;
9271
+ province: z.ZodString;
9272
+ district: z.ZodString;
9273
+ }, {
9274
+ urbanOrRural: z.ZodLiteral<"URBAN">;
9275
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9276
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9277
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9278
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9279
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9280
+ }>, "strip", z.ZodTypeAny, {
9281
+ country: string;
9282
+ district: string;
9283
+ addressType: "DOMESTIC";
9284
+ province: string;
9285
+ urbanOrRural: "URBAN";
9286
+ number?: string | null | undefined;
9287
+ town?: string | null | undefined;
9288
+ residentialArea?: string | null | undefined;
9289
+ street?: string | null | undefined;
9290
+ zipCode?: string | null | undefined;
9291
+ }, {
9292
+ country: string;
9293
+ district: string;
9294
+ addressType: "DOMESTIC";
9295
+ province: string;
9296
+ urbanOrRural: "URBAN";
9297
+ number?: string | null | undefined;
9298
+ town?: string | null | undefined;
9299
+ residentialArea?: string | null | undefined;
9300
+ street?: string | null | undefined;
9301
+ zipCode?: string | null | undefined;
9302
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9303
+ country: z.ZodString;
9304
+ addressType: z.ZodLiteral<"DOMESTIC">;
9305
+ province: z.ZodString;
9306
+ district: z.ZodString;
9307
+ }, {
9308
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9309
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9310
+ }>, "strip", z.ZodTypeAny, {
9311
+ country: string;
9312
+ district: string;
9313
+ addressType: "DOMESTIC";
9314
+ province: string;
9315
+ urbanOrRural: "RURAL";
9316
+ village?: string | null | undefined;
9317
+ }, {
9318
+ country: string;
9319
+ district: string;
9320
+ addressType: "DOMESTIC";
9321
+ province: string;
9322
+ urbanOrRural: "RURAL";
9323
+ village?: string | null | undefined;
9324
+ }>, z.ZodUndefined, z.ZodObject<{
9325
+ country: z.ZodString;
9326
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9327
+ state: z.ZodString;
9328
+ district2: z.ZodString;
9329
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9330
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9331
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9332
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9333
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9334
+ }, "strip", z.ZodTypeAny, {
9335
+ country: string;
9336
+ state: string;
9337
+ addressType: "INTERNATIONAL";
9338
+ district2: string;
9339
+ cityOrTown?: string | null | undefined;
9340
+ addressLine1?: string | null | undefined;
9341
+ addressLine2?: string | null | undefined;
9342
+ addressLine3?: string | null | undefined;
9343
+ postcodeOrZip?: string | null | undefined;
9344
+ }, {
9345
+ country: string;
9346
+ state: string;
9347
+ addressType: "INTERNATIONAL";
9348
+ district2: string;
9349
+ cityOrTown?: string | null | undefined;
9350
+ addressLine1?: string | null | undefined;
9351
+ addressLine2?: string | null | undefined;
9352
+ addressLine3?: string | null | undefined;
9353
+ postcodeOrZip?: string | null | undefined;
9354
+ }>]>>>;
9355
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9356
+ filename: z.ZodString;
9357
+ originalFilename: z.ZodString;
9358
+ type: z.ZodString;
9359
+ }, "strip", z.ZodTypeAny, {
9360
+ type: string;
9361
+ filename: string;
9362
+ originalFilename: string;
9363
+ }, {
9364
+ type: string;
9365
+ filename: string;
9366
+ originalFilename: string;
9367
+ }>, z.ZodArray<z.ZodObject<{
9368
+ filename: z.ZodString;
9369
+ originalFilename: z.ZodString;
9370
+ type: z.ZodString;
9371
+ option: z.ZodString;
9372
+ }, "strip", z.ZodTypeAny, {
9373
+ type: string;
9374
+ option: string;
9375
+ filename: string;
9376
+ originalFilename: string;
9377
+ }, {
9378
+ type: string;
9379
+ option: string;
9380
+ filename: string;
9381
+ originalFilename: string;
9382
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
9383
+ country: z.ZodString;
9384
+ addressType: z.ZodLiteral<"DOMESTIC">;
9385
+ province: z.ZodString;
9386
+ district: z.ZodString;
9387
+ }, {
9388
+ urbanOrRural: z.ZodLiteral<"URBAN">;
9389
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9390
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9391
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9392
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9393
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9394
+ }>, "strip", z.ZodTypeAny, {
9395
+ country: string;
9396
+ district: string;
9397
+ addressType: "DOMESTIC";
9398
+ province: string;
9399
+ urbanOrRural: "URBAN";
9400
+ number?: string | null | undefined;
9401
+ town?: string | null | undefined;
9402
+ residentialArea?: string | null | undefined;
9403
+ street?: string | null | undefined;
9404
+ zipCode?: string | null | undefined;
9405
+ }, {
9406
+ country: string;
9407
+ district: string;
9408
+ addressType: "DOMESTIC";
9409
+ province: string;
9410
+ urbanOrRural: "URBAN";
9411
+ number?: string | null | undefined;
9412
+ town?: string | null | undefined;
9413
+ residentialArea?: string | null | undefined;
9414
+ street?: string | null | undefined;
9415
+ zipCode?: string | null | undefined;
9416
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9417
+ country: z.ZodString;
9418
+ addressType: z.ZodLiteral<"DOMESTIC">;
9419
+ province: z.ZodString;
9420
+ district: z.ZodString;
9421
+ }, {
9422
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9423
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9424
+ }>, "strip", z.ZodTypeAny, {
9425
+ country: string;
9426
+ district: string;
9427
+ addressType: "DOMESTIC";
9428
+ province: string;
9429
+ urbanOrRural: "RURAL";
9430
+ village?: string | null | undefined;
9431
+ }, {
9432
+ country: string;
9433
+ district: string;
9434
+ addressType: "DOMESTIC";
9435
+ province: string;
9436
+ urbanOrRural: "RURAL";
9437
+ village?: string | null | undefined;
9438
+ }>, z.ZodUndefined, z.ZodObject<{
9439
+ country: z.ZodString;
9440
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9441
+ state: z.ZodString;
9442
+ district2: z.ZodString;
9443
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9444
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9445
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9446
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9447
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9448
+ }, "strip", z.ZodTypeAny, {
9449
+ country: string;
9450
+ state: string;
9451
+ addressType: "INTERNATIONAL";
9452
+ district2: string;
9453
+ cityOrTown?: string | null | undefined;
9454
+ addressLine1?: string | null | undefined;
9455
+ addressLine2?: string | null | undefined;
9456
+ addressLine3?: string | null | undefined;
9457
+ postcodeOrZip?: string | null | undefined;
9458
+ }, {
9459
+ country: string;
9460
+ state: string;
9461
+ addressType: "INTERNATIONAL";
9462
+ district2: string;
9463
+ cityOrTown?: string | null | undefined;
9464
+ addressLine1?: string | null | undefined;
9465
+ addressLine2?: string | null | undefined;
9466
+ addressLine3?: string | null | undefined;
9467
+ postcodeOrZip?: string | null | undefined;
9468
+ }>]>>>;
9469
+ originalActionId: z.ZodOptional<z.ZodString>;
9470
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9471
+ }, {
9472
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
9473
+ assignedTo: z.ZodString;
9474
+ }>, "strip", z.ZodTypeAny, {
9475
+ type: "ASSIGN";
9476
+ declaration: Record<string, string | number | boolean | {
9477
+ type: string;
9478
+ filename: string;
9479
+ originalFilename: string;
9480
+ } | {
9481
+ country: string;
9482
+ district: string;
9483
+ addressType: "DOMESTIC";
9484
+ province: string;
9485
+ urbanOrRural: "URBAN";
9486
+ number?: string | null | undefined;
9487
+ town?: string | null | undefined;
9488
+ residentialArea?: string | null | undefined;
9489
+ street?: string | null | undefined;
9490
+ zipCode?: string | null | undefined;
9491
+ } | {
9492
+ country: string;
9493
+ district: string;
9494
+ addressType: "DOMESTIC";
9495
+ province: string;
9496
+ urbanOrRural: "RURAL";
9497
+ village?: string | null | undefined;
9498
+ } | {
9499
+ country: string;
9500
+ state: string;
9501
+ addressType: "INTERNATIONAL";
9502
+ district2: string;
9503
+ cityOrTown?: string | null | undefined;
9504
+ addressLine1?: string | null | undefined;
9505
+ addressLine2?: string | null | undefined;
9506
+ addressLine3?: string | null | undefined;
9507
+ postcodeOrZip?: string | null | undefined;
9508
+ } | {
9509
+ type: string;
9510
+ option: string;
9511
+ filename: string;
9512
+ originalFilename: string;
9513
+ }[] | undefined>;
9514
+ assignedTo: string;
9515
+ eventId: string;
9516
+ transactionId: string;
9517
+ annotation?: Record<string, string | number | boolean | {
9518
+ type: string;
9519
+ filename: string;
9520
+ originalFilename: string;
9521
+ } | {
9522
+ country: string;
9523
+ district: string;
9524
+ addressType: "DOMESTIC";
9525
+ province: string;
9526
+ urbanOrRural: "URBAN";
9527
+ number?: string | null | undefined;
9528
+ town?: string | null | undefined;
9529
+ residentialArea?: string | null | undefined;
9530
+ street?: string | null | undefined;
9531
+ zipCode?: string | null | undefined;
9532
+ } | {
9533
+ country: string;
9534
+ district: string;
9535
+ addressType: "DOMESTIC";
9536
+ province: string;
9537
+ urbanOrRural: "RURAL";
9538
+ village?: string | null | undefined;
9539
+ } | {
9540
+ country: string;
9541
+ state: string;
9542
+ addressType: "INTERNATIONAL";
9543
+ district2: string;
9544
+ cityOrTown?: string | null | undefined;
9545
+ addressLine1?: string | null | undefined;
9546
+ addressLine2?: string | null | undefined;
9547
+ addressLine3?: string | null | undefined;
9548
+ postcodeOrZip?: string | null | undefined;
9549
+ } | {
9550
+ type: string;
9551
+ option: string;
9552
+ filename: string;
9553
+ originalFilename: string;
9554
+ }[] | undefined> | undefined;
9555
+ originalActionId?: string | undefined;
9556
+ keepAssignment?: boolean | undefined;
9557
+ }, {
9558
+ assignedTo: string;
9559
+ eventId: string;
9560
+ transactionId: string;
9561
+ type?: "ASSIGN" | undefined;
9562
+ declaration?: Record<string, string | number | boolean | {
9563
+ type: string;
9564
+ filename: string;
9565
+ originalFilename: string;
9566
+ } | {
9567
+ country: string;
9568
+ district: string;
9569
+ addressType: "DOMESTIC";
9570
+ province: string;
9571
+ urbanOrRural: "URBAN";
9572
+ number?: string | null | undefined;
9573
+ town?: string | null | undefined;
9574
+ residentialArea?: string | null | undefined;
9575
+ street?: string | null | undefined;
9576
+ zipCode?: string | null | undefined;
9577
+ } | {
9578
+ country: string;
9579
+ district: string;
9580
+ addressType: "DOMESTIC";
9581
+ province: string;
9582
+ urbanOrRural: "RURAL";
9583
+ village?: string | null | undefined;
9584
+ } | {
9585
+ country: string;
9586
+ state: string;
9587
+ addressType: "INTERNATIONAL";
9588
+ district2: string;
9589
+ cityOrTown?: string | null | undefined;
9590
+ addressLine1?: string | null | undefined;
9591
+ addressLine2?: string | null | undefined;
9592
+ addressLine3?: string | null | undefined;
9593
+ postcodeOrZip?: string | null | undefined;
9594
+ } | {
9595
+ type: string;
9596
+ option: string;
9597
+ filename: string;
9598
+ originalFilename: string;
9599
+ }[] | undefined> | undefined;
9600
+ annotation?: Record<string, string | number | boolean | {
9601
+ type: string;
9602
+ filename: string;
9603
+ originalFilename: string;
9604
+ } | {
9605
+ country: string;
9606
+ district: string;
9607
+ addressType: "DOMESTIC";
9608
+ province: string;
9609
+ urbanOrRural: "URBAN";
9610
+ number?: string | null | undefined;
9611
+ town?: string | null | undefined;
9612
+ residentialArea?: string | null | undefined;
9613
+ street?: string | null | undefined;
9614
+ zipCode?: string | null | undefined;
9615
+ } | {
9616
+ country: string;
9617
+ district: string;
9618
+ addressType: "DOMESTIC";
9619
+ province: string;
9620
+ urbanOrRural: "RURAL";
9621
+ village?: string | null | undefined;
9622
+ } | {
9623
+ country: string;
9624
+ state: string;
9625
+ addressType: "INTERNATIONAL";
9626
+ district2: string;
9627
+ cityOrTown?: string | null | undefined;
9628
+ addressLine1?: string | null | undefined;
9629
+ addressLine2?: string | null | undefined;
9630
+ addressLine3?: string | null | undefined;
9631
+ postcodeOrZip?: string | null | undefined;
9632
+ } | {
9633
+ type: string;
9634
+ option: string;
9635
+ filename: string;
9636
+ originalFilename: string;
9637
+ }[] | undefined> | undefined;
9638
+ originalActionId?: string | undefined;
9639
+ keepAssignment?: boolean | undefined;
9640
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9641
+ eventId: z.ZodString;
9642
+ transactionId: z.ZodString;
9643
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9644
+ filename: z.ZodString;
9645
+ originalFilename: z.ZodString;
9646
+ type: z.ZodString;
9647
+ }, "strip", z.ZodTypeAny, {
9648
+ type: string;
9649
+ filename: string;
9650
+ originalFilename: string;
9651
+ }, {
9652
+ type: string;
9653
+ filename: string;
9654
+ originalFilename: string;
9655
+ }>, z.ZodArray<z.ZodObject<{
9656
+ filename: z.ZodString;
9657
+ originalFilename: z.ZodString;
9658
+ type: z.ZodString;
9659
+ option: z.ZodString;
9660
+ }, "strip", z.ZodTypeAny, {
9661
+ type: string;
9662
+ option: string;
9663
+ filename: string;
9664
+ originalFilename: string;
9665
+ }, {
9666
+ type: string;
9667
+ option: string;
9668
+ filename: string;
9669
+ originalFilename: string;
9670
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
9671
+ country: z.ZodString;
9672
+ addressType: z.ZodLiteral<"DOMESTIC">;
9673
+ province: z.ZodString;
9674
+ district: z.ZodString;
9675
+ }, {
9676
+ urbanOrRural: z.ZodLiteral<"URBAN">;
9677
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9678
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9679
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9680
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9681
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9682
+ }>, "strip", z.ZodTypeAny, {
9683
+ country: string;
9684
+ district: string;
9685
+ addressType: "DOMESTIC";
9686
+ province: string;
9687
+ urbanOrRural: "URBAN";
9688
+ number?: string | null | undefined;
9689
+ town?: string | null | undefined;
9690
+ residentialArea?: string | null | undefined;
9691
+ street?: string | null | undefined;
9692
+ zipCode?: string | null | undefined;
9693
+ }, {
9694
+ country: string;
9695
+ district: string;
9696
+ addressType: "DOMESTIC";
9697
+ province: string;
9698
+ urbanOrRural: "URBAN";
9699
+ number?: string | null | undefined;
9700
+ town?: string | null | undefined;
9701
+ residentialArea?: string | null | undefined;
9702
+ street?: string | null | undefined;
9703
+ zipCode?: string | null | undefined;
9704
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9705
+ country: z.ZodString;
9706
+ addressType: z.ZodLiteral<"DOMESTIC">;
9707
+ province: z.ZodString;
9708
+ district: z.ZodString;
9709
+ }, {
9710
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9711
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9712
+ }>, "strip", z.ZodTypeAny, {
9713
+ country: string;
9714
+ district: string;
9715
+ addressType: "DOMESTIC";
9716
+ province: string;
9717
+ urbanOrRural: "RURAL";
9718
+ village?: string | null | undefined;
9719
+ }, {
9720
+ country: string;
9721
+ district: string;
9722
+ addressType: "DOMESTIC";
9723
+ province: string;
9724
+ urbanOrRural: "RURAL";
9725
+ village?: string | null | undefined;
9726
+ }>, z.ZodUndefined, z.ZodObject<{
9727
+ country: z.ZodString;
9728
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9729
+ state: z.ZodString;
9730
+ district2: z.ZodString;
9731
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9732
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9733
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9734
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9735
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9736
+ }, "strip", z.ZodTypeAny, {
9737
+ country: string;
9738
+ state: string;
9739
+ addressType: "INTERNATIONAL";
9740
+ district2: string;
9741
+ cityOrTown?: string | null | undefined;
9742
+ addressLine1?: string | null | undefined;
9743
+ addressLine2?: string | null | undefined;
9744
+ addressLine3?: string | null | undefined;
9745
+ postcodeOrZip?: string | null | undefined;
9746
+ }, {
9747
+ country: string;
9748
+ state: string;
9749
+ addressType: "INTERNATIONAL";
9750
+ district2: string;
9751
+ cityOrTown?: string | null | undefined;
9752
+ addressLine1?: string | null | undefined;
9753
+ addressLine2?: string | null | undefined;
9754
+ addressLine3?: string | null | undefined;
9755
+ postcodeOrZip?: string | null | undefined;
9756
+ }>]>>>;
9757
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9758
+ filename: z.ZodString;
9759
+ originalFilename: z.ZodString;
9760
+ type: z.ZodString;
9761
+ }, "strip", z.ZodTypeAny, {
9762
+ type: string;
9763
+ filename: string;
9764
+ originalFilename: string;
9765
+ }, {
9766
+ type: string;
9767
+ filename: string;
9768
+ originalFilename: string;
9769
+ }>, z.ZodArray<z.ZodObject<{
9770
+ filename: z.ZodString;
9771
+ originalFilename: z.ZodString;
9772
+ type: z.ZodString;
9773
+ option: z.ZodString;
9774
+ }, "strip", z.ZodTypeAny, {
9775
+ type: string;
9776
+ option: string;
9777
+ filename: string;
9778
+ originalFilename: string;
9779
+ }, {
9780
+ type: string;
9781
+ option: string;
9782
+ filename: string;
9783
+ originalFilename: string;
9784
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
9785
+ country: z.ZodString;
9786
+ addressType: z.ZodLiteral<"DOMESTIC">;
9787
+ province: z.ZodString;
9788
+ district: z.ZodString;
9789
+ }, {
9790
+ urbanOrRural: z.ZodLiteral<"URBAN">;
9791
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9792
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9793
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9794
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9795
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9796
+ }>, "strip", z.ZodTypeAny, {
9797
+ country: string;
9798
+ district: string;
9799
+ addressType: "DOMESTIC";
9800
+ province: string;
9801
+ urbanOrRural: "URBAN";
9802
+ number?: string | null | undefined;
9803
+ town?: string | null | undefined;
9804
+ residentialArea?: string | null | undefined;
9805
+ street?: string | null | undefined;
9806
+ zipCode?: string | null | undefined;
9807
+ }, {
9808
+ country: string;
9809
+ district: string;
9810
+ addressType: "DOMESTIC";
9811
+ province: string;
9812
+ urbanOrRural: "URBAN";
9813
+ number?: string | null | undefined;
9814
+ town?: string | null | undefined;
9815
+ residentialArea?: string | null | undefined;
9816
+ street?: string | null | undefined;
9817
+ zipCode?: string | null | undefined;
9818
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9819
+ country: z.ZodString;
9820
+ addressType: z.ZodLiteral<"DOMESTIC">;
9821
+ province: z.ZodString;
9822
+ district: z.ZodString;
9823
+ }, {
9824
+ urbanOrRural: z.ZodLiteral<"RURAL">;
9825
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9826
+ }>, "strip", z.ZodTypeAny, {
9827
+ country: string;
9828
+ district: string;
9829
+ addressType: "DOMESTIC";
9830
+ province: string;
9831
+ urbanOrRural: "RURAL";
9832
+ village?: string | null | undefined;
9833
+ }, {
9834
+ country: string;
9835
+ district: string;
9836
+ addressType: "DOMESTIC";
9837
+ province: string;
9838
+ urbanOrRural: "RURAL";
9839
+ village?: string | null | undefined;
9840
+ }>, z.ZodUndefined, z.ZodObject<{
9841
+ country: z.ZodString;
9842
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
9843
+ state: z.ZodString;
9844
+ district2: z.ZodString;
9845
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9846
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9847
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9848
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9849
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9850
+ }, "strip", z.ZodTypeAny, {
9851
+ country: string;
9852
+ state: string;
9853
+ addressType: "INTERNATIONAL";
9854
+ district2: string;
9855
+ cityOrTown?: string | null | undefined;
9856
+ addressLine1?: string | null | undefined;
9857
+ addressLine2?: string | null | undefined;
9858
+ addressLine3?: string | null | undefined;
9859
+ postcodeOrZip?: string | null | undefined;
9860
+ }, {
9861
+ country: string;
9862
+ state: string;
9863
+ addressType: "INTERNATIONAL";
9864
+ district2: string;
9865
+ cityOrTown?: string | null | undefined;
9866
+ addressLine1?: string | null | undefined;
9867
+ addressLine2?: string | null | undefined;
9868
+ addressLine3?: string | null | undefined;
9869
+ postcodeOrZip?: string | null | undefined;
9870
+ }>]>>>;
9871
+ originalActionId: z.ZodOptional<z.ZodString>;
9872
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9873
+ }, {
9874
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
9875
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
9876
+ }>, "strip", z.ZodTypeAny, {
9877
+ type: "UNASSIGN";
9878
+ declaration: Record<string, string | number | boolean | {
9879
+ type: string;
8257
9880
  filename: string;
8258
9881
  originalFilename: string;
8259
9882
  } | {
@@ -8289,12 +9912,93 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8289
9912
  option: string;
8290
9913
  filename: string;
8291
9914
  originalFilename: string;
8292
- }[]>;
8293
- assignedTo: string;
9915
+ }[] | undefined>;
9916
+ assignedTo: null;
8294
9917
  eventId: string;
8295
9918
  transactionId: string;
8296
- type?: "ASSIGN" | undefined;
8297
- metadata?: Record<string, string | number | boolean | {
9919
+ annotation?: Record<string, string | number | boolean | {
9920
+ type: string;
9921
+ filename: string;
9922
+ originalFilename: string;
9923
+ } | {
9924
+ country: string;
9925
+ district: string;
9926
+ addressType: "DOMESTIC";
9927
+ province: string;
9928
+ urbanOrRural: "URBAN";
9929
+ number?: string | null | undefined;
9930
+ town?: string | null | undefined;
9931
+ residentialArea?: string | null | undefined;
9932
+ street?: string | null | undefined;
9933
+ zipCode?: string | null | undefined;
9934
+ } | {
9935
+ country: string;
9936
+ district: string;
9937
+ addressType: "DOMESTIC";
9938
+ province: string;
9939
+ urbanOrRural: "RURAL";
9940
+ village?: string | null | undefined;
9941
+ } | {
9942
+ country: string;
9943
+ state: string;
9944
+ addressType: "INTERNATIONAL";
9945
+ district2: string;
9946
+ cityOrTown?: string | null | undefined;
9947
+ addressLine1?: string | null | undefined;
9948
+ addressLine2?: string | null | undefined;
9949
+ addressLine3?: string | null | undefined;
9950
+ postcodeOrZip?: string | null | undefined;
9951
+ } | {
9952
+ type: string;
9953
+ option: string;
9954
+ filename: string;
9955
+ originalFilename: string;
9956
+ }[] | undefined> | undefined;
9957
+ originalActionId?: string | undefined;
9958
+ keepAssignment?: boolean | undefined;
9959
+ }, {
9960
+ eventId: string;
9961
+ transactionId: string;
9962
+ type?: "UNASSIGN" | undefined;
9963
+ declaration?: Record<string, string | number | boolean | {
9964
+ type: string;
9965
+ filename: string;
9966
+ originalFilename: string;
9967
+ } | {
9968
+ country: string;
9969
+ district: string;
9970
+ addressType: "DOMESTIC";
9971
+ province: string;
9972
+ urbanOrRural: "URBAN";
9973
+ number?: string | null | undefined;
9974
+ town?: string | null | undefined;
9975
+ residentialArea?: string | null | undefined;
9976
+ street?: string | null | undefined;
9977
+ zipCode?: string | null | undefined;
9978
+ } | {
9979
+ country: string;
9980
+ district: string;
9981
+ addressType: "DOMESTIC";
9982
+ province: string;
9983
+ urbanOrRural: "RURAL";
9984
+ village?: string | null | undefined;
9985
+ } | {
9986
+ country: string;
9987
+ state: string;
9988
+ addressType: "INTERNATIONAL";
9989
+ district2: string;
9990
+ cityOrTown?: string | null | undefined;
9991
+ addressLine1?: string | null | undefined;
9992
+ addressLine2?: string | null | undefined;
9993
+ addressLine3?: string | null | undefined;
9994
+ postcodeOrZip?: string | null | undefined;
9995
+ } | {
9996
+ type: string;
9997
+ option: string;
9998
+ filename: string;
9999
+ originalFilename: string;
10000
+ }[] | undefined> | undefined;
10001
+ annotation?: Record<string, string | number | boolean | {
8298
10002
  type: string;
8299
10003
  filename: string;
8300
10004
  originalFilename: string;
@@ -8331,11 +10035,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8331
10035
  option: string;
8332
10036
  filename: string;
8333
10037
  originalFilename: string;
8334
- }[]> | undefined;
10038
+ }[] | undefined> | undefined;
10039
+ originalActionId?: string | undefined;
10040
+ assignedTo?: null | undefined;
10041
+ keepAssignment?: boolean | undefined;
8335
10042
  }>, z.ZodObject<z.objectUtil.extendShape<{
8336
10043
  eventId: z.ZodString;
8337
10044
  transactionId: z.ZodString;
8338
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10045
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8339
10046
  filename: z.ZodString;
8340
10047
  originalFilename: z.ZodString;
8341
10048
  type: z.ZodString;
@@ -8418,7 +10125,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8418
10125
  province: string;
8419
10126
  urbanOrRural: "RURAL";
8420
10127
  village?: string | null | undefined;
8421
- }>, z.ZodObject<{
10128
+ }>, z.ZodUndefined, z.ZodObject<{
8422
10129
  country: z.ZodString;
8423
10130
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8424
10131
  state: z.ZodString;
@@ -8448,8 +10155,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8448
10155
  addressLine2?: string | null | undefined;
8449
10156
  addressLine3?: string | null | undefined;
8450
10157
  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<{
10158
+ }>]>>>;
10159
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8453
10160
  filename: z.ZodString;
8454
10161
  originalFilename: z.ZodString;
8455
10162
  type: z.ZodString;
@@ -8532,7 +10239,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8532
10239
  province: string;
8533
10240
  urbanOrRural: "RURAL";
8534
10241
  village?: string | null | undefined;
8535
- }>, z.ZodObject<{
10242
+ }>, z.ZodUndefined, z.ZodObject<{
8536
10243
  country: z.ZodString;
8537
10244
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8538
10245
  state: z.ZodString;
@@ -8563,11 +10270,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8563
10270
  addressLine3?: string | null | undefined;
8564
10271
  postcodeOrZip?: string | null | undefined;
8565
10272
  }>]>>>;
10273
+ originalActionId: z.ZodOptional<z.ZodString>;
10274
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8566
10275
  }, {
8567
- type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
10276
+ type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
8568
10277
  }>, "strip", z.ZodTypeAny, {
8569
- type: "UNASSIGN";
8570
- data: Record<string, string | number | boolean | {
10278
+ type: "PRINT_CERTIFICATE";
10279
+ declaration: Record<string, string | number | boolean | {
8571
10280
  type: string;
8572
10281
  filename: string;
8573
10282
  originalFilename: string;
@@ -8604,10 +10313,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8604
10313
  option: string;
8605
10314
  filename: string;
8606
10315
  originalFilename: string;
8607
- }[]>;
10316
+ }[] | undefined>;
8608
10317
  eventId: string;
8609
10318
  transactionId: string;
8610
- metadata?: Record<string, string | number | boolean | {
10319
+ annotation?: Record<string, string | number | boolean | {
8611
10320
  type: string;
8612
10321
  filename: string;
8613
10322
  originalFilename: string;
@@ -8644,9 +10353,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8644
10353
  option: string;
8645
10354
  filename: string;
8646
10355
  originalFilename: string;
8647
- }[]> | undefined;
10356
+ }[] | undefined> | undefined;
10357
+ originalActionId?: string | undefined;
10358
+ keepAssignment?: boolean | undefined;
8648
10359
  }, {
8649
- data: Record<string, string | number | boolean | {
10360
+ eventId: string;
10361
+ transactionId: string;
10362
+ type?: "PRINT_CERTIFICATE" | undefined;
10363
+ declaration?: Record<string, string | number | boolean | {
8650
10364
  type: string;
8651
10365
  filename: string;
8652
10366
  originalFilename: string;
@@ -8683,11 +10397,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8683
10397
  option: string;
8684
10398
  filename: string;
8685
10399
  originalFilename: string;
8686
- }[]>;
8687
- eventId: string;
8688
- transactionId: string;
8689
- type?: "UNASSIGN" | undefined;
8690
- metadata?: Record<string, string | number | boolean | {
10400
+ }[] | undefined> | undefined;
10401
+ annotation?: Record<string, string | number | boolean | {
8691
10402
  type: string;
8692
10403
  filename: string;
8693
10404
  originalFilename: string;
@@ -8724,11 +10435,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8724
10435
  option: string;
8725
10436
  filename: string;
8726
10437
  originalFilename: string;
8727
- }[]> | undefined;
10438
+ }[] | undefined> | undefined;
10439
+ originalActionId?: string | undefined;
10440
+ keepAssignment?: boolean | undefined;
8728
10441
  }>, z.ZodObject<z.objectUtil.extendShape<{
8729
10442
  eventId: z.ZodString;
8730
10443
  transactionId: z.ZodString;
8731
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10444
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8732
10445
  filename: z.ZodString;
8733
10446
  originalFilename: z.ZodString;
8734
10447
  type: z.ZodString;
@@ -8811,7 +10524,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8811
10524
  province: string;
8812
10525
  urbanOrRural: "RURAL";
8813
10526
  village?: string | null | undefined;
8814
- }>, z.ZodObject<{
10527
+ }>, z.ZodUndefined, z.ZodObject<{
8815
10528
  country: z.ZodString;
8816
10529
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8817
10530
  state: z.ZodString;
@@ -8841,8 +10554,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8841
10554
  addressLine2?: string | null | undefined;
8842
10555
  addressLine3?: string | null | undefined;
8843
10556
  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<{
10557
+ }>]>>>;
10558
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8846
10559
  filename: z.ZodString;
8847
10560
  originalFilename: z.ZodString;
8848
10561
  type: z.ZodString;
@@ -8925,7 +10638,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8925
10638
  province: string;
8926
10639
  urbanOrRural: "RURAL";
8927
10640
  village?: string | null | undefined;
8928
- }>, z.ZodObject<{
10641
+ }>, z.ZodUndefined, z.ZodObject<{
8929
10642
  country: z.ZodString;
8930
10643
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8931
10644
  state: z.ZodString;
@@ -8956,11 +10669,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8956
10669
  addressLine3?: string | null | undefined;
8957
10670
  postcodeOrZip?: string | null | undefined;
8958
10671
  }>]>>>;
10672
+ originalActionId: z.ZodOptional<z.ZodString>;
10673
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8959
10674
  }, {
8960
- type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
10675
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
8961
10676
  }>, "strip", z.ZodTypeAny, {
8962
- type: "PRINT_CERTIFICATE";
8963
- data: Record<string, string | number | boolean | {
10677
+ type: "REQUEST_CORRECTION";
10678
+ declaration: Record<string, string | number | boolean | {
8964
10679
  type: string;
8965
10680
  filename: string;
8966
10681
  originalFilename: string;
@@ -8997,10 +10712,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8997
10712
  option: string;
8998
10713
  filename: string;
8999
10714
  originalFilename: string;
9000
- }[]>;
10715
+ }[] | undefined>;
9001
10716
  eventId: string;
9002
10717
  transactionId: string;
9003
- metadata?: Record<string, string | number | boolean | {
10718
+ annotation?: Record<string, string | number | boolean | {
9004
10719
  type: string;
9005
10720
  filename: string;
9006
10721
  originalFilename: string;
@@ -9037,9 +10752,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9037
10752
  option: string;
9038
10753
  filename: string;
9039
10754
  originalFilename: string;
9040
- }[]> | undefined;
10755
+ }[] | undefined> | undefined;
10756
+ originalActionId?: string | undefined;
10757
+ keepAssignment?: boolean | undefined;
9041
10758
  }, {
9042
- data: Record<string, string | number | boolean | {
10759
+ eventId: string;
10760
+ transactionId: string;
10761
+ type?: "REQUEST_CORRECTION" | undefined;
10762
+ declaration?: Record<string, string | number | boolean | {
9043
10763
  type: string;
9044
10764
  filename: string;
9045
10765
  originalFilename: string;
@@ -9076,11 +10796,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9076
10796
  option: string;
9077
10797
  filename: string;
9078
10798
  originalFilename: string;
9079
- }[]>;
9080
- eventId: string;
9081
- transactionId: string;
9082
- type?: "PRINT_CERTIFICATE" | undefined;
9083
- metadata?: Record<string, string | number | boolean | {
10799
+ }[] | undefined> | undefined;
10800
+ annotation?: Record<string, string | number | boolean | {
9084
10801
  type: string;
9085
10802
  filename: string;
9086
10803
  originalFilename: string;
@@ -9117,11 +10834,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9117
10834
  option: string;
9118
10835
  filename: string;
9119
10836
  originalFilename: string;
9120
- }[]> | undefined;
10837
+ }[] | undefined> | undefined;
10838
+ originalActionId?: string | undefined;
10839
+ keepAssignment?: boolean | undefined;
9121
10840
  }>, z.ZodObject<z.objectUtil.extendShape<{
9122
10841
  eventId: z.ZodString;
9123
10842
  transactionId: z.ZodString;
9124
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10843
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9125
10844
  filename: z.ZodString;
9126
10845
  originalFilename: z.ZodString;
9127
10846
  type: z.ZodString;
@@ -9204,7 +10923,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9204
10923
  province: string;
9205
10924
  urbanOrRural: "RURAL";
9206
10925
  village?: string | null | undefined;
9207
- }>, z.ZodObject<{
10926
+ }>, z.ZodUndefined, z.ZodObject<{
9208
10927
  country: z.ZodString;
9209
10928
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9210
10929
  state: z.ZodString;
@@ -9234,8 +10953,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9234
10953
  addressLine2?: string | null | undefined;
9235
10954
  addressLine3?: string | null | undefined;
9236
10955
  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<{
10956
+ }>]>>>;
10957
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9239
10958
  filename: z.ZodString;
9240
10959
  originalFilename: z.ZodString;
9241
10960
  type: z.ZodString;
@@ -9318,7 +11037,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9318
11037
  province: string;
9319
11038
  urbanOrRural: "RURAL";
9320
11039
  village?: string | null | undefined;
9321
- }>, z.ZodObject<{
11040
+ }>, z.ZodUndefined, z.ZodObject<{
9322
11041
  country: z.ZodString;
9323
11042
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9324
11043
  state: z.ZodString;
@@ -9349,11 +11068,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9349
11068
  addressLine3?: string | null | undefined;
9350
11069
  postcodeOrZip?: string | null | undefined;
9351
11070
  }>]>>>;
11071
+ originalActionId: z.ZodOptional<z.ZodString>;
11072
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9352
11073
  }, {
9353
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
11074
+ requestId: z.ZodString;
11075
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
9354
11076
  }>, "strip", z.ZodTypeAny, {
9355
- type: "REQUEST_CORRECTION";
9356
- data: Record<string, string | number | boolean | {
11077
+ type: "REJECT_CORRECTION";
11078
+ declaration: Record<string, string | number | boolean | {
9357
11079
  type: string;
9358
11080
  filename: string;
9359
11081
  originalFilename: string;
@@ -9390,10 +11112,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9390
11112
  option: string;
9391
11113
  filename: string;
9392
11114
  originalFilename: string;
9393
- }[]>;
11115
+ }[] | undefined>;
11116
+ requestId: string;
9394
11117
  eventId: string;
9395
11118
  transactionId: string;
9396
- metadata?: Record<string, string | number | boolean | {
11119
+ annotation?: Record<string, string | number | boolean | {
9397
11120
  type: string;
9398
11121
  filename: string;
9399
11122
  originalFilename: string;
@@ -9430,9 +11153,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9430
11153
  option: string;
9431
11154
  filename: string;
9432
11155
  originalFilename: string;
9433
- }[]> | undefined;
11156
+ }[] | undefined> | undefined;
11157
+ originalActionId?: string | undefined;
11158
+ keepAssignment?: boolean | undefined;
9434
11159
  }, {
9435
- data: Record<string, string | number | boolean | {
11160
+ requestId: string;
11161
+ eventId: string;
11162
+ transactionId: string;
11163
+ type?: "REJECT_CORRECTION" | undefined;
11164
+ declaration?: Record<string, string | number | boolean | {
9436
11165
  type: string;
9437
11166
  filename: string;
9438
11167
  originalFilename: string;
@@ -9469,11 +11198,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9469
11198
  option: string;
9470
11199
  filename: string;
9471
11200
  originalFilename: string;
9472
- }[]>;
9473
- eventId: string;
9474
- transactionId: string;
9475
- type?: "REQUEST_CORRECTION" | undefined;
9476
- metadata?: Record<string, string | number | boolean | {
11201
+ }[] | undefined> | undefined;
11202
+ annotation?: Record<string, string | number | boolean | {
9477
11203
  type: string;
9478
11204
  filename: string;
9479
11205
  originalFilename: string;
@@ -9510,11 +11236,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9510
11236
  option: string;
9511
11237
  filename: string;
9512
11238
  originalFilename: string;
9513
- }[]> | undefined;
11239
+ }[] | undefined> | undefined;
11240
+ originalActionId?: string | undefined;
11241
+ keepAssignment?: boolean | undefined;
9514
11242
  }>, z.ZodObject<z.objectUtil.extendShape<{
9515
11243
  eventId: z.ZodString;
9516
11244
  transactionId: z.ZodString;
9517
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11245
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9518
11246
  filename: z.ZodString;
9519
11247
  originalFilename: z.ZodString;
9520
11248
  type: z.ZodString;
@@ -9597,7 +11325,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9597
11325
  province: string;
9598
11326
  urbanOrRural: "RURAL";
9599
11327
  village?: string | null | undefined;
9600
- }>, z.ZodObject<{
11328
+ }>, z.ZodUndefined, z.ZodObject<{
9601
11329
  country: z.ZodString;
9602
11330
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9603
11331
  state: z.ZodString;
@@ -9627,8 +11355,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9627
11355
  addressLine2?: string | null | undefined;
9628
11356
  addressLine3?: string | null | undefined;
9629
11357
  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<{
11358
+ }>]>>>;
11359
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9632
11360
  filename: z.ZodString;
9633
11361
  originalFilename: z.ZodString;
9634
11362
  type: z.ZodString;
@@ -9711,7 +11439,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9711
11439
  province: string;
9712
11440
  urbanOrRural: "RURAL";
9713
11441
  village?: string | null | undefined;
9714
- }>, z.ZodObject<{
11442
+ }>, z.ZodUndefined, z.ZodObject<{
9715
11443
  country: z.ZodString;
9716
11444
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9717
11445
  state: z.ZodString;
@@ -9742,12 +11470,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9742
11470
  addressLine3?: string | null | undefined;
9743
11471
  postcodeOrZip?: string | null | undefined;
9744
11472
  }>]>>>;
11473
+ originalActionId: z.ZodOptional<z.ZodString>;
11474
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9745
11475
  }, {
9746
11476
  requestId: z.ZodString;
9747
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
11477
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
9748
11478
  }>, "strip", z.ZodTypeAny, {
9749
- type: "REJECT_CORRECTION";
9750
- data: Record<string, string | number | boolean | {
11479
+ type: "APPROVE_CORRECTION";
11480
+ declaration: Record<string, string | number | boolean | {
9751
11481
  type: string;
9752
11482
  filename: string;
9753
11483
  originalFilename: string;
@@ -9784,11 +11514,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9784
11514
  option: string;
9785
11515
  filename: string;
9786
11516
  originalFilename: string;
9787
- }[]>;
11517
+ }[] | undefined>;
9788
11518
  requestId: string;
9789
11519
  eventId: string;
9790
11520
  transactionId: string;
9791
- metadata?: Record<string, string | number | boolean | {
11521
+ annotation?: Record<string, string | number | boolean | {
9792
11522
  type: string;
9793
11523
  filename: string;
9794
11524
  originalFilename: string;
@@ -9825,9 +11555,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9825
11555
  option: string;
9826
11556
  filename: string;
9827
11557
  originalFilename: string;
9828
- }[]> | undefined;
11558
+ }[] | undefined> | undefined;
11559
+ originalActionId?: string | undefined;
11560
+ keepAssignment?: boolean | undefined;
9829
11561
  }, {
9830
- data: Record<string, string | number | boolean | {
11562
+ requestId: string;
11563
+ eventId: string;
11564
+ transactionId: string;
11565
+ type?: "APPROVE_CORRECTION" | undefined;
11566
+ declaration?: Record<string, string | number | boolean | {
9831
11567
  type: string;
9832
11568
  filename: string;
9833
11569
  originalFilename: string;
@@ -9864,12 +11600,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9864
11600
  option: string;
9865
11601
  filename: string;
9866
11602
  originalFilename: string;
9867
- }[]>;
9868
- requestId: string;
9869
- eventId: string;
9870
- transactionId: string;
9871
- type?: "REJECT_CORRECTION" | undefined;
9872
- metadata?: Record<string, string | number | boolean | {
11603
+ }[] | undefined> | undefined;
11604
+ annotation?: Record<string, string | number | boolean | {
9873
11605
  type: string;
9874
11606
  filename: string;
9875
11607
  originalFilename: string;
@@ -9906,11 +11638,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9906
11638
  option: string;
9907
11639
  filename: string;
9908
11640
  originalFilename: string;
9909
- }[]> | undefined;
11641
+ }[] | undefined> | undefined;
11642
+ originalActionId?: string | undefined;
11643
+ keepAssignment?: boolean | undefined;
9910
11644
  }>, z.ZodObject<z.objectUtil.extendShape<{
9911
11645
  eventId: z.ZodString;
9912
11646
  transactionId: z.ZodString;
9913
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11647
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9914
11648
  filename: z.ZodString;
9915
11649
  originalFilename: z.ZodString;
9916
11650
  type: z.ZodString;
@@ -9993,7 +11727,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9993
11727
  province: string;
9994
11728
  urbanOrRural: "RURAL";
9995
11729
  village?: string | null | undefined;
9996
- }>, z.ZodObject<{
11730
+ }>, z.ZodUndefined, z.ZodObject<{
9997
11731
  country: z.ZodString;
9998
11732
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9999
11733
  state: z.ZodString;
@@ -10023,8 +11757,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10023
11757
  addressLine2?: string | null | undefined;
10024
11758
  addressLine3?: string | null | undefined;
10025
11759
  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<{
11760
+ }>]>>>;
11761
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10028
11762
  filename: z.ZodString;
10029
11763
  originalFilename: z.ZodString;
10030
11764
  type: z.ZodString;
@@ -10107,7 +11841,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10107
11841
  province: string;
10108
11842
  urbanOrRural: "RURAL";
10109
11843
  village?: string | null | undefined;
10110
- }>, z.ZodObject<{
11844
+ }>, z.ZodUndefined, z.ZodObject<{
10111
11845
  country: z.ZodString;
10112
11846
  addressType: z.ZodLiteral<"INTERNATIONAL">;
10113
11847
  state: z.ZodString;
@@ -10138,12 +11872,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10138
11872
  addressLine3?: string | null | undefined;
10139
11873
  postcodeOrZip?: string | null | undefined;
10140
11874
  }>]>>>;
11875
+ originalActionId: z.ZodOptional<z.ZodString>;
11876
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
10141
11877
  }, {
10142
- requestId: z.ZodString;
10143
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
11878
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
10144
11879
  }>, "strip", z.ZodTypeAny, {
10145
- type: "APPROVE_CORRECTION";
10146
- data: Record<string, string | number | boolean | {
11880
+ type: "READ";
11881
+ declaration: Record<string, string | number | boolean | {
10147
11882
  type: string;
10148
11883
  filename: string;
10149
11884
  originalFilename: string;
@@ -10180,11 +11915,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10180
11915
  option: string;
10181
11916
  filename: string;
10182
11917
  originalFilename: string;
10183
- }[]>;
10184
- requestId: string;
11918
+ }[] | undefined>;
10185
11919
  eventId: string;
10186
11920
  transactionId: string;
10187
- metadata?: Record<string, string | number | boolean | {
11921
+ annotation?: Record<string, string | number | boolean | {
10188
11922
  type: string;
10189
11923
  filename: string;
10190
11924
  originalFilename: string;
@@ -10221,9 +11955,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10221
11955
  option: string;
10222
11956
  filename: string;
10223
11957
  originalFilename: string;
10224
- }[]> | undefined;
11958
+ }[] | undefined> | undefined;
11959
+ originalActionId?: string | undefined;
11960
+ keepAssignment?: boolean | undefined;
10225
11961
  }, {
10226
- data: Record<string, string | number | boolean | {
11962
+ eventId: string;
11963
+ transactionId: string;
11964
+ type?: "READ" | undefined;
11965
+ declaration?: Record<string, string | number | boolean | {
10227
11966
  type: string;
10228
11967
  filename: string;
10229
11968
  originalFilename: string;
@@ -10260,12 +11999,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10260
11999
  option: string;
10261
12000
  filename: string;
10262
12001
  originalFilename: string;
10263
- }[]>;
10264
- requestId: string;
10265
- eventId: string;
10266
- transactionId: string;
10267
- type?: "APPROVE_CORRECTION" | undefined;
10268
- metadata?: Record<string, string | number | boolean | {
12002
+ }[] | undefined> | undefined;
12003
+ annotation?: Record<string, string | number | boolean | {
10269
12004
  type: string;
10270
12005
  filename: string;
10271
12006
  originalFilename: string;
@@ -10302,7 +12037,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10302
12037
  option: string;
10303
12038
  filename: string;
10304
12039
  originalFilename: string;
10305
- }[]> | undefined;
12040
+ }[] | undefined> | undefined;
12041
+ originalActionId?: string | undefined;
12042
+ keepAssignment?: boolean | undefined;
10306
12043
  }>]>;
10307
12044
  export type ActionInput = z.input<typeof ActionInput>;
10308
12045
  export type ActionInputWithType = z.infer<typeof ActionInput>;