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

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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +12801 -14208
  3. package/dist/commons/conditionals/conditionals.d.ts +30 -5
  4. package/dist/commons/conditionals/validate.d.ts +12 -17
  5. package/dist/commons/events/ActionConfig.d.ts +96433 -2006
  6. package/dist/commons/events/ActionDocument.d.ts +7832 -401
  7. package/dist/commons/events/ActionInput.d.ts +2292 -547
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  10. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  11. package/dist/commons/events/Conditional.d.ts +21 -5
  12. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  13. package/dist/commons/events/Draft.d.ts +88 -60
  14. package/dist/commons/events/EventConfig.d.ts +46117 -1795
  15. package/dist/commons/events/EventConfigInput.d.ts +6 -3
  16. package/dist/commons/events/EventDocument.d.ts +1106 -529
  17. package/dist/commons/events/EventIndex.d.ts +1239 -13
  18. package/dist/commons/events/EventInput.d.ts +13 -0
  19. package/dist/commons/events/EventMetadata.d.ts +277 -11
  20. package/dist/commons/events/FieldConfig.d.ts +4704 -786
  21. package/dist/commons/events/FieldType.d.ts +4 -3
  22. package/dist/commons/events/FieldTypeMapping.d.ts +33 -5
  23. package/dist/commons/events/FieldValue.d.ts +12 -7
  24. package/dist/commons/events/FormConfig.d.ts +43810 -73
  25. package/dist/commons/events/PageConfig.d.ts +10991 -0
  26. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  27. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  28. package/dist/commons/events/User.d.ts +5 -0
  29. package/dist/commons/events/WorkqueueConfig.d.ts +746 -20
  30. package/dist/commons/events/defineConfig.d.ts +7282 -224
  31. package/dist/commons/events/event.d.ts +54 -0
  32. package/dist/commons/events/field.d.ts +82 -0
  33. package/dist/commons/events/index.d.ts +5 -1
  34. package/dist/commons/events/scopes.d.ts +45 -0
  35. package/dist/commons/events/test.utils.d.ts +71 -325
  36. package/dist/commons/events/utils.d.ts +3700 -96
  37. package/dist/commons/events/utils.test.d.ts +2 -0
  38. package/dist/conditionals/index.js +191 -120
  39. package/dist/events/index.js +2905 -1344
  40. package/dist/scopes/index.d.ts +158 -1
  41. package/dist/scopes/index.js +152 -1
  42. package/package.json +3 -2
@@ -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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,11 @@ 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
+ transactionId: string;
237
+ declaration: Record<string, string | number | boolean | {
235
238
  type: string;
236
239
  filename: string;
237
240
  originalFilename: string;
@@ -268,10 +271,9 @@ export declare const BaseActionInput: z.ZodObject<{
268
271
  option: string;
269
272
  filename: string;
270
273
  originalFilename: string;
271
- }[]>;
274
+ }[] | [string, string] | undefined>;
272
275
  eventId: string;
273
- 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
+ }[] | [string, string] | undefined> | undefined;
314
+ originalActionId?: string | undefined;
315
+ keepAssignment?: boolean | undefined;
312
316
  }, {
313
- data: Record<string, string | number | boolean | {
317
+ transactionId: string;
318
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,15 @@ 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
+ transactionId: string;
637
+ declaration: Record<string, string | number | boolean | {
638
638
  type: string;
639
639
  filename: string;
640
640
  originalFilename: string;
@@ -671,14 +671,9 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
671
671
  option: string;
672
672
  filename: string;
673
673
  originalFilename: string;
674
- }[]>;
675
- identifiers: {
676
- trackingId: string;
677
- registrationNumber: string;
678
- };
674
+ }[] | [string, string] | undefined>;
679
675
  eventId: string;
680
- 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
+ }[] | [string, string] | undefined> | undefined;
714
+ originalActionId?: string | undefined;
715
+ registrationNumber?: string | undefined;
716
+ keepAssignment?: boolean | undefined;
719
717
  }, {
720
- data: Record<string, string | number | boolean | {
718
+ transactionId: string;
719
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,15 @@ 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
+ transactionId: string;
1041
+ declaration: Record<string, string | number | boolean | {
1042
1042
  type: string;
1043
1043
  filename: string;
1044
1044
  originalFilename: string;
@@ -1075,11 +1075,10 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1075
1075
  option: string;
1076
1076
  filename: string;
1077
1077
  originalFilename: string;
1078
- }[]>;
1078
+ }[] | [string, string] | undefined>;
1079
1079
  eventId: string;
1080
- 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
+ }[] | [string, string] | undefined> | undefined;
1119
+ originalActionId?: string | undefined;
1120
+ keepAssignment?: boolean | undefined;
1120
1121
  }, {
1121
- data: Record<string, string | number | boolean | {
1122
+ transactionId: string;
1123
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,14 @@ 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
+ transactionId: string;
1444
+ declaration: Record<string, string | number | boolean | {
1439
1445
  type: string;
1440
1446
  filename: string;
1441
1447
  originalFilename: string;
@@ -1472,10 +1478,9 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1472
1478
  option: string;
1473
1479
  filename: string;
1474
1480
  originalFilename: string;
1475
- }[]>;
1481
+ }[] | [string, string] | undefined>;
1476
1482
  eventId: string;
1477
- 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
+ }[] | [string, string] | undefined> | undefined;
1521
+ originalActionId?: string | undefined;
1522
+ keepAssignment?: boolean | undefined;
1516
1523
  }, {
1517
- data: Record<string, string | number | boolean | {
1524
+ transactionId: string;
1525
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,14 @@ 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
+ transactionId: string;
1845
+ declaration: Record<string, string | number | boolean | {
1834
1846
  type: string;
1835
1847
  filename: string;
1836
1848
  originalFilename: string;
@@ -1867,10 +1879,9 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1867
1879
  option: string;
1868
1880
  filename: string;
1869
1881
  originalFilename: string;
1870
- }[]>;
1882
+ }[] | [string, string] | undefined>;
1871
1883
  eventId: string;
1872
- 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
+ }[] | [string, string] | undefined> | undefined;
1922
+ originalActionId?: string | undefined;
1923
+ keepAssignment?: boolean | undefined;
1911
1924
  }, {
1912
- data: Record<string, string | number | boolean | {
1925
+ transactionId: string;
1926
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,14 @@ 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
+ transactionId: string;
2245
+ declaration: Record<string, string | number | boolean | {
2228
2246
  type: string;
2229
2247
  filename: string;
2230
2248
  originalFilename: string;
@@ -2261,10 +2279,9 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2261
2279
  option: string;
2262
2280
  filename: string;
2263
2281
  originalFilename: string;
2264
- }[]>;
2282
+ }[] | [string, string] | undefined>;
2265
2283
  eventId: string;
2266
- 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
+ }[] | [string, string] | undefined> | undefined;
2322
+ originalActionId?: string | undefined;
2323
+ keepAssignment?: boolean | undefined;
2305
2324
  }, {
2306
- data: Record<string, string | number | boolean | {
2325
+ transactionId: string;
2326
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,14 @@ 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
+ transactionId: string;
2646
+ declaration: Record<string, string | number | boolean | {
2623
2647
  type: string;
2624
2648
  filename: string;
2625
2649
  originalFilename: string;
@@ -2656,10 +2680,9 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2656
2680
  option: string;
2657
2681
  filename: string;
2658
2682
  originalFilename: string;
2659
- }[]>;
2683
+ }[] | [string, string] | undefined>;
2660
2684
  eventId: string;
2661
- 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
+ }[] | [string, string] | undefined> | undefined;
2723
+ originalActionId?: string | undefined;
2724
+ keepAssignment?: boolean | undefined;
2700
2725
  }, {
2701
- data: Record<string, string | number | boolean | {
2726
+ transactionId: string;
2727
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,14 @@ 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
+ transactionId: string;
3047
+ declaration: Record<string, string | number | boolean | {
3018
3048
  type: string;
3019
3049
  filename: string;
3020
3050
  originalFilename: string;
@@ -3051,10 +3081,9 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3051
3081
  option: string;
3052
3082
  filename: string;
3053
3083
  originalFilename: string;
3054
- }[]>;
3084
+ }[] | [string, string] | undefined>;
3055
3085
  eventId: string;
3056
- 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
+ }[] | [string, string] | undefined> | undefined;
3124
+ originalActionId?: string | undefined;
3125
+ keepAssignment?: boolean | undefined;
3095
3126
  }, {
3096
- data: Record<string, string | number | boolean | {
3127
+ transactionId: string;
3128
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,14 @@ 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
+ transactionId: string;
3448
+ declaration: Record<string, string | number | boolean | {
3413
3449
  type: string;
3414
3450
  filename: string;
3415
3451
  originalFilename: string;
@@ -3446,10 +3482,9 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3446
3482
  option: string;
3447
3483
  filename: string;
3448
3484
  originalFilename: string;
3449
- }[]>;
3485
+ }[] | [string, string] | undefined>;
3450
3486
  eventId: string;
3451
- 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
+ }[] | [string, string] | undefined> | undefined;
3525
+ originalActionId?: string | undefined;
3526
+ keepAssignment?: boolean | undefined;
3490
3527
  }, {
3491
- data: Record<string, string | number | boolean | {
3528
+ transactionId: string;
3529
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,15 @@ 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
+ transactionId: string;
3850
+ declaration: Record<string, string | number | boolean | {
3808
3851
  type: string;
3809
3852
  filename: string;
3810
3853
  originalFilename: string;
@@ -3841,10 +3884,10 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3841
3884
  option: string;
3842
3885
  filename: string;
3843
3886
  originalFilename: string;
3844
- }[]>;
3887
+ }[] | [string, string] | undefined>;
3888
+ assignedTo: string;
3845
3889
  eventId: string;
3846
- 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
+ }[] | [string, string] | undefined> | undefined;
3928
+ originalActionId?: string | undefined;
3929
+ keepAssignment?: boolean | undefined;
3885
3930
  }, {
3886
- data: Record<string, string | number | boolean | {
3931
+ transactionId: string;
3932
+ assignedTo: string;
3933
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,15 @@ 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
+ transactionId: string;
4254
+ declaration: Record<string, string | number | boolean | {
4204
4255
  type: string;
4205
4256
  filename: string;
4206
4257
  originalFilename: string;
@@ -4237,11 +4288,10 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4237
4288
  option: string;
4238
4289
  filename: string;
4239
4290
  originalFilename: string;
4240
- }[]>;
4241
- requestId: string;
4291
+ }[] | [string, string] | undefined>;
4292
+ assignedTo: null;
4242
4293
  eventId: string;
4243
- 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
+ }[] | [string, string] | undefined> | undefined;
4332
+ originalActionId?: string | undefined;
4333
+ keepAssignment?: boolean | undefined;
4282
4334
  }, {
4283
- data: Record<string, string | number | boolean | {
4335
+ transactionId: string;
4336
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,14 @@ 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
+ transactionId: string;
4657
+ declaration: Record<string, string | number | boolean | {
4602
4658
  type: string;
4603
4659
  filename: string;
4604
4660
  originalFilename: string;
@@ -4635,11 +4691,9 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4635
4691
  option: string;
4636
4692
  filename: string;
4637
4693
  originalFilename: string;
4638
- }[]>;
4639
- requestId: string;
4694
+ }[] | [string, string] | undefined>;
4640
4695
  eventId: string;
4641
- 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
+ }[] | [string, string] | undefined> | undefined;
4734
+ originalActionId?: string | undefined;
4735
+ keepAssignment?: boolean | undefined;
4680
4736
  }, {
4681
- data: Record<string, string | number | boolean | {
4737
+ transactionId: string;
4738
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,15 @@ 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
+ transactionId: string;
5059
+ declaration: Record<string, string | number | boolean | {
5008
5060
  type: string;
5009
5061
  filename: string;
5010
5062
  originalFilename: string;
@@ -5041,11 +5093,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5041
5093
  option: string;
5042
5094
  filename: string;
5043
5095
  originalFilename: string;
5044
- }[]>;
5045
- createdAtLocation: string;
5096
+ }[] | [string, string] | undefined>;
5097
+ requestId: string;
5046
5098
  eventId: string;
5047
- 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
+ }[] | [string, string] | undefined> | undefined;
5137
+ originalActionId?: string | undefined;
5138
+ keepAssignment?: boolean | undefined;
5086
5139
  }, {
5087
- data: Record<string, string | number | boolean | {
5140
+ transactionId: string;
5141
+ requestId: string;
5142
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,15 @@ 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
+ transactionId: string;
5463
+ declaration: Record<string, string | number | boolean | {
5404
5464
  type: string;
5405
5465
  filename: string;
5406
5466
  originalFilename: string;
@@ -5437,11 +5497,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5437
5497
  option: string;
5438
5498
  filename: string;
5439
5499
  originalFilename: string;
5440
- }[]>;
5500
+ }[] | [string, string] | undefined>;
5501
+ requestId: string;
5441
5502
  eventId: string;
5442
- 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
+ }[] | [string, string] | undefined> | undefined;
5541
+ originalActionId?: string | undefined;
5542
+ keepAssignment?: boolean | undefined;
5482
5543
  }, {
5483
- data: Record<string, string | number | boolean | {
5544
+ transactionId: string;
5545
+ requestId: string;
5546
+ eventId: 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
+ }[] | [string, string] | 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
+ }[] | [string, string] | 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, 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,14 @@ 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
+ transactionId: string;
5866
+ declaration: Record<string, string | number | boolean | {
5809
5867
  type: string;
5810
5868
  filename: string;
5811
5869
  originalFilename: string;
@@ -5842,14 +5900,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5842
5900
  option: string;
5843
5901
  filename: string;
5844
5902
  originalFilename: string;
5845
- }[]>;
5846
- identifiers: {
5847
- trackingId: string;
5848
- registrationNumber: string;
5849
- };
5903
+ }[] | [string, string] | undefined>;
5850
5904
  eventId: string;
5851
- 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
+ }[] | [string, string] | undefined> | undefined;
5943
+ originalActionId?: string | undefined;
5944
+ keepAssignment?: boolean | undefined;
5890
5945
  }, {
5891
- data: Record<string, string | number | boolean | {
5946
+ transactionId: string;
5947
+ eventId: 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
+ }[] | [string, string] | undefined> | undefined;
5987
+ annotation?: Record<string, string | number | boolean | {
5937
5988
  type: string;
5938
5989
  filename: string;
5939
5990
  originalFilename: string;
@@ -5970,11 +6021,31 @@ 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
+ }[] | [string, string] | undefined> | undefined;
6025
+ originalActionId?: string | undefined;
6026
+ keepAssignment?: boolean | undefined;
6027
+ }>;
6028
+ export type ReadActionInput = z.infer<typeof ReadActionInput>;
6029
+ export declare const DeleteActionInput: z.ZodObject<{
6030
+ eventId: z.ZodString;
6031
+ }, "strip", z.ZodTypeAny, {
6032
+ eventId: string;
6033
+ }, {
6034
+ eventId: string;
6035
+ }>;
6036
+ export type DeleteActionInput = z.infer<typeof DeleteActionInput>;
6037
+ /**
6038
+ * ActionInput types are used to validate the input data for the action.
6039
+ * In our use case, we use it directly with TRPC to validate the input data for the action.
6040
+ * using z.literal(ActionType.ACTION).default(ActionType.ACTION) makes them more convenient to use
6041
+ * without having to pass the type in the input data, when it's defined in the method.
6042
+ *
6043
+ * e.g. mutation.declare({createdAt: new Date()}) vs mutation.declare({createdAt: new Date(), type: 'DECLARE'})
6044
+ */
6045
+ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
5975
6046
  eventId: z.ZodString;
5976
6047
  transactionId: z.ZodString;
5977
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6048
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5978
6049
  filename: z.ZodString;
5979
6050
  originalFilename: z.ZodString;
5980
6051
  type: z.ZodString;
@@ -6057,7 +6128,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6057
6128
  province: string;
6058
6129
  urbanOrRural: "RURAL";
6059
6130
  village?: string | null | undefined;
6060
- }>, z.ZodObject<{
6131
+ }>, z.ZodUndefined, z.ZodObject<{
6061
6132
  country: z.ZodString;
6062
6133
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6063
6134
  state: z.ZodString;
@@ -6087,8 +6158,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6087
6158
  addressLine2?: string | null | undefined;
6088
6159
  addressLine3?: string | null | undefined;
6089
6160
  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<{
6161
+ }>]>>>;
6162
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6092
6163
  filename: z.ZodString;
6093
6164
  originalFilename: z.ZodString;
6094
6165
  type: z.ZodString;
@@ -6171,7 +6242,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6171
6242
  province: string;
6172
6243
  urbanOrRural: "RURAL";
6173
6244
  village?: string | null | undefined;
6174
- }>, z.ZodObject<{
6245
+ }>, z.ZodUndefined, z.ZodObject<{
6175
6246
  country: z.ZodString;
6176
6247
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6177
6248
  state: z.ZodString;
@@ -6202,11 +6273,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6202
6273
  addressLine3?: string | null | undefined;
6203
6274
  postcodeOrZip?: string | null | undefined;
6204
6275
  }>]>>>;
6276
+ originalActionId: z.ZodOptional<z.ZodString>;
6277
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6205
6278
  }, {
6206
- type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
6279
+ type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
6280
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6207
6281
  }>, "strip", z.ZodTypeAny, {
6208
- type: "NOTIFY";
6209
- data: Record<string, string | number | boolean | {
6282
+ type: "CREATE";
6283
+ transactionId: string;
6284
+ declaration: Record<string, string | number | boolean | {
6210
6285
  type: string;
6211
6286
  filename: string;
6212
6287
  originalFilename: string;
@@ -6243,10 +6318,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6243
6318
  option: string;
6244
6319
  filename: string;
6245
6320
  originalFilename: string;
6246
- }[]>;
6321
+ }[] | [string, string] | undefined>;
6247
6322
  eventId: string;
6248
- transactionId: string;
6249
- metadata?: Record<string, string | number | boolean | {
6323
+ createdAtLocation?: string | null | undefined;
6324
+ annotation?: Record<string, string | number | boolean | {
6250
6325
  type: string;
6251
6326
  filename: string;
6252
6327
  originalFilename: string;
@@ -6283,9 +6358,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6283
6358
  option: string;
6284
6359
  filename: string;
6285
6360
  originalFilename: string;
6286
- }[]> | undefined;
6361
+ }[] | [string, string] | undefined> | undefined;
6362
+ originalActionId?: string | undefined;
6363
+ keepAssignment?: boolean | undefined;
6287
6364
  }, {
6288
- data: Record<string, string | number | boolean | {
6365
+ transactionId: string;
6366
+ eventId: string;
6367
+ type?: "CREATE" | undefined;
6368
+ createdAtLocation?: string | null | undefined;
6369
+ declaration?: Record<string, string | number | boolean | {
6289
6370
  type: string;
6290
6371
  filename: string;
6291
6372
  originalFilename: string;
@@ -6322,11 +6403,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6322
6403
  option: string;
6323
6404
  filename: string;
6324
6405
  originalFilename: string;
6325
- }[]>;
6326
- eventId: string;
6327
- transactionId: string;
6328
- type?: "NOTIFY" | undefined;
6329
- metadata?: Record<string, string | number | boolean | {
6406
+ }[] | [string, string] | undefined> | undefined;
6407
+ annotation?: Record<string, string | number | boolean | {
6330
6408
  type: string;
6331
6409
  filename: string;
6332
6410
  originalFilename: string;
@@ -6363,11 +6441,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6363
6441
  option: string;
6364
6442
  filename: string;
6365
6443
  originalFilename: string;
6366
- }[]> | undefined;
6444
+ }[] | [string, string] | undefined> | undefined;
6445
+ originalActionId?: string | undefined;
6446
+ keepAssignment?: boolean | undefined;
6367
6447
  }>, z.ZodObject<z.objectUtil.extendShape<{
6368
6448
  eventId: z.ZodString;
6369
6449
  transactionId: z.ZodString;
6370
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6450
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6371
6451
  filename: z.ZodString;
6372
6452
  originalFilename: z.ZodString;
6373
6453
  type: z.ZodString;
@@ -6450,7 +6530,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6450
6530
  province: string;
6451
6531
  urbanOrRural: "RURAL";
6452
6532
  village?: string | null | undefined;
6453
- }>, z.ZodObject<{
6533
+ }>, z.ZodUndefined, z.ZodObject<{
6454
6534
  country: z.ZodString;
6455
6535
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6456
6536
  state: z.ZodString;
@@ -6480,8 +6560,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6480
6560
  addressLine2?: string | null | undefined;
6481
6561
  addressLine3?: string | null | undefined;
6482
6562
  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<{
6563
+ }>]>>>;
6564
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6485
6565
  filename: z.ZodString;
6486
6566
  originalFilename: z.ZodString;
6487
6567
  type: z.ZodString;
@@ -6564,7 +6644,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6564
6644
  province: string;
6565
6645
  urbanOrRural: "RURAL";
6566
6646
  village?: string | null | undefined;
6567
- }>, z.ZodObject<{
6647
+ }>, z.ZodUndefined, z.ZodObject<{
6568
6648
  country: z.ZodString;
6569
6649
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6570
6650
  state: z.ZodString;
@@ -6595,11 +6675,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6595
6675
  addressLine3?: string | null | undefined;
6596
6676
  postcodeOrZip?: string | null | undefined;
6597
6677
  }>]>>>;
6678
+ originalActionId: z.ZodOptional<z.ZodString>;
6679
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6598
6680
  }, {
6599
- type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
6681
+ type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
6682
+ duplicates: z.ZodArray<z.ZodString, "many">;
6600
6683
  }>, "strip", z.ZodTypeAny, {
6601
- type: "DECLARE";
6602
- data: Record<string, string | number | boolean | {
6684
+ type: "VALIDATE";
6685
+ transactionId: string;
6686
+ declaration: Record<string, string | number | boolean | {
6603
6687
  type: string;
6604
6688
  filename: string;
6605
6689
  originalFilename: string;
@@ -6636,10 +6720,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6636
6720
  option: string;
6637
6721
  filename: string;
6638
6722
  originalFilename: string;
6639
- }[]>;
6723
+ }[] | [string, string] | undefined>;
6640
6724
  eventId: string;
6641
- transactionId: string;
6642
- metadata?: Record<string, string | number | boolean | {
6725
+ duplicates: string[];
6726
+ annotation?: Record<string, string | number | boolean | {
6643
6727
  type: string;
6644
6728
  filename: string;
6645
6729
  originalFilename: string;
@@ -6676,9 +6760,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6676
6760
  option: string;
6677
6761
  filename: string;
6678
6762
  originalFilename: string;
6679
- }[]> | undefined;
6763
+ }[] | [string, string] | undefined> | undefined;
6764
+ originalActionId?: string | undefined;
6765
+ keepAssignment?: boolean | undefined;
6680
6766
  }, {
6681
- data: Record<string, string | number | boolean | {
6767
+ transactionId: string;
6768
+ eventId: string;
6769
+ duplicates: string[];
6770
+ type?: "VALIDATE" | undefined;
6771
+ declaration?: Record<string, string | number | boolean | {
6682
6772
  type: string;
6683
6773
  filename: string;
6684
6774
  originalFilename: string;
@@ -6715,11 +6805,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6715
6805
  option: string;
6716
6806
  filename: string;
6717
6807
  originalFilename: string;
6718
- }[]>;
6719
- eventId: string;
6720
- transactionId: string;
6721
- type?: "DECLARE" | undefined;
6722
- metadata?: Record<string, string | number | boolean | {
6808
+ }[] | [string, string] | undefined> | undefined;
6809
+ annotation?: Record<string, string | number | boolean | {
6723
6810
  type: string;
6724
6811
  filename: string;
6725
6812
  originalFilename: string;
@@ -6756,11 +6843,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6756
6843
  option: string;
6757
6844
  filename: string;
6758
6845
  originalFilename: string;
6759
- }[]> | undefined;
6846
+ }[] | [string, string] | undefined> | undefined;
6847
+ originalActionId?: string | undefined;
6848
+ keepAssignment?: boolean | undefined;
6760
6849
  }>, z.ZodObject<z.objectUtil.extendShape<{
6761
6850
  eventId: z.ZodString;
6762
6851
  transactionId: z.ZodString;
6763
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6852
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6764
6853
  filename: z.ZodString;
6765
6854
  originalFilename: z.ZodString;
6766
6855
  type: z.ZodString;
@@ -6843,7 +6932,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6843
6932
  province: string;
6844
6933
  urbanOrRural: "RURAL";
6845
6934
  village?: string | null | undefined;
6846
- }>, z.ZodObject<{
6935
+ }>, z.ZodUndefined, z.ZodObject<{
6847
6936
  country: z.ZodString;
6848
6937
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6849
6938
  state: z.ZodString;
@@ -6873,8 +6962,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6873
6962
  addressLine2?: string | null | undefined;
6874
6963
  addressLine3?: string | null | undefined;
6875
6964
  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<{
6965
+ }>]>>>;
6966
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6878
6967
  filename: z.ZodString;
6879
6968
  originalFilename: z.ZodString;
6880
6969
  type: z.ZodString;
@@ -6957,7 +7046,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6957
7046
  province: string;
6958
7047
  urbanOrRural: "RURAL";
6959
7048
  village?: string | null | undefined;
6960
- }>, z.ZodObject<{
7049
+ }>, z.ZodUndefined, z.ZodObject<{
6961
7050
  country: z.ZodString;
6962
7051
  addressType: z.ZodLiteral<"INTERNATIONAL">;
6963
7052
  state: z.ZodString;
@@ -6988,11 +7077,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6988
7077
  addressLine3?: string | null | undefined;
6989
7078
  postcodeOrZip?: string | null | undefined;
6990
7079
  }>]>>>;
7080
+ originalActionId: z.ZodOptional<z.ZodString>;
7081
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6991
7082
  }, {
6992
- type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
7083
+ type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
7084
+ registrationNumber: z.ZodOptional<z.ZodString>;
6993
7085
  }>, "strip", z.ZodTypeAny, {
6994
- type: "REJECT";
6995
- data: Record<string, string | number | boolean | {
7086
+ type: "REGISTER";
7087
+ transactionId: string;
7088
+ declaration: Record<string, string | number | boolean | {
6996
7089
  type: string;
6997
7090
  filename: string;
6998
7091
  originalFilename: string;
@@ -7029,10 +7122,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7029
7122
  option: string;
7030
7123
  filename: string;
7031
7124
  originalFilename: string;
7032
- }[]>;
7125
+ }[] | [string, string] | undefined>;
7033
7126
  eventId: string;
7034
- transactionId: string;
7035
- metadata?: Record<string, string | number | boolean | {
7127
+ annotation?: Record<string, string | number | boolean | {
7036
7128
  type: string;
7037
7129
  filename: string;
7038
7130
  originalFilename: string;
@@ -7069,9 +7161,1529 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7069
7161
  option: string;
7070
7162
  filename: string;
7071
7163
  originalFilename: string;
7072
- }[]> | undefined;
7164
+ }[] | [string, string] | undefined> | undefined;
7165
+ originalActionId?: string | undefined;
7166
+ registrationNumber?: string | undefined;
7167
+ keepAssignment?: boolean | undefined;
7073
7168
  }, {
7074
- data: Record<string, string | number | boolean | {
7169
+ transactionId: string;
7170
+ eventId: string;
7171
+ type?: "REGISTER" | undefined;
7172
+ declaration?: Record<string, string | number | boolean | {
7173
+ type: string;
7174
+ filename: string;
7175
+ originalFilename: string;
7176
+ } | {
7177
+ country: string;
7178
+ district: string;
7179
+ addressType: "DOMESTIC";
7180
+ province: string;
7181
+ urbanOrRural: "URBAN";
7182
+ number?: string | null | undefined;
7183
+ town?: string | null | undefined;
7184
+ residentialArea?: string | null | undefined;
7185
+ street?: string | null | undefined;
7186
+ zipCode?: string | null | undefined;
7187
+ } | {
7188
+ country: string;
7189
+ district: string;
7190
+ addressType: "DOMESTIC";
7191
+ province: string;
7192
+ urbanOrRural: "RURAL";
7193
+ village?: string | null | undefined;
7194
+ } | {
7195
+ country: string;
7196
+ state: string;
7197
+ addressType: "INTERNATIONAL";
7198
+ district2: string;
7199
+ cityOrTown?: string | null | undefined;
7200
+ addressLine1?: string | null | undefined;
7201
+ addressLine2?: string | null | undefined;
7202
+ addressLine3?: string | null | undefined;
7203
+ postcodeOrZip?: string | null | undefined;
7204
+ } | {
7205
+ type: string;
7206
+ option: string;
7207
+ filename: string;
7208
+ originalFilename: string;
7209
+ }[] | [string, string] | undefined> | undefined;
7210
+ annotation?: Record<string, string | number | boolean | {
7211
+ type: string;
7212
+ filename: string;
7213
+ originalFilename: string;
7214
+ } | {
7215
+ country: string;
7216
+ district: string;
7217
+ addressType: "DOMESTIC";
7218
+ province: string;
7219
+ urbanOrRural: "URBAN";
7220
+ number?: string | null | undefined;
7221
+ town?: string | null | undefined;
7222
+ residentialArea?: string | null | undefined;
7223
+ street?: string | null | undefined;
7224
+ zipCode?: string | null | undefined;
7225
+ } | {
7226
+ country: string;
7227
+ district: string;
7228
+ addressType: "DOMESTIC";
7229
+ province: string;
7230
+ urbanOrRural: "RURAL";
7231
+ village?: string | null | undefined;
7232
+ } | {
7233
+ country: string;
7234
+ state: string;
7235
+ addressType: "INTERNATIONAL";
7236
+ district2: string;
7237
+ cityOrTown?: string | null | undefined;
7238
+ addressLine1?: string | null | undefined;
7239
+ addressLine2?: string | null | undefined;
7240
+ addressLine3?: string | null | undefined;
7241
+ postcodeOrZip?: string | null | undefined;
7242
+ } | {
7243
+ type: string;
7244
+ option: string;
7245
+ filename: string;
7246
+ originalFilename: string;
7247
+ }[] | [string, string] | undefined> | undefined;
7248
+ originalActionId?: string | undefined;
7249
+ registrationNumber?: string | undefined;
7250
+ keepAssignment?: boolean | undefined;
7251
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7252
+ eventId: z.ZodString;
7253
+ transactionId: z.ZodString;
7254
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7255
+ filename: z.ZodString;
7256
+ originalFilename: z.ZodString;
7257
+ type: z.ZodString;
7258
+ }, "strip", z.ZodTypeAny, {
7259
+ type: string;
7260
+ filename: string;
7261
+ originalFilename: string;
7262
+ }, {
7263
+ type: string;
7264
+ filename: string;
7265
+ originalFilename: string;
7266
+ }>, z.ZodArray<z.ZodObject<{
7267
+ filename: z.ZodString;
7268
+ originalFilename: z.ZodString;
7269
+ type: z.ZodString;
7270
+ option: z.ZodString;
7271
+ }, "strip", z.ZodTypeAny, {
7272
+ type: string;
7273
+ option: string;
7274
+ filename: string;
7275
+ originalFilename: string;
7276
+ }, {
7277
+ type: string;
7278
+ option: string;
7279
+ filename: string;
7280
+ originalFilename: string;
7281
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7282
+ country: z.ZodString;
7283
+ addressType: z.ZodLiteral<"DOMESTIC">;
7284
+ province: z.ZodString;
7285
+ district: z.ZodString;
7286
+ }, {
7287
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7288
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7289
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7290
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7291
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7292
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7293
+ }>, "strip", z.ZodTypeAny, {
7294
+ country: string;
7295
+ district: string;
7296
+ addressType: "DOMESTIC";
7297
+ province: string;
7298
+ urbanOrRural: "URBAN";
7299
+ number?: string | null | undefined;
7300
+ town?: string | null | undefined;
7301
+ residentialArea?: string | null | undefined;
7302
+ street?: string | null | undefined;
7303
+ zipCode?: string | null | undefined;
7304
+ }, {
7305
+ country: string;
7306
+ district: string;
7307
+ addressType: "DOMESTIC";
7308
+ province: string;
7309
+ urbanOrRural: "URBAN";
7310
+ number?: string | null | undefined;
7311
+ town?: string | null | undefined;
7312
+ residentialArea?: string | null | undefined;
7313
+ street?: string | null | undefined;
7314
+ zipCode?: string | null | undefined;
7315
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7316
+ country: z.ZodString;
7317
+ addressType: z.ZodLiteral<"DOMESTIC">;
7318
+ province: z.ZodString;
7319
+ district: z.ZodString;
7320
+ }, {
7321
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7322
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7323
+ }>, "strip", z.ZodTypeAny, {
7324
+ country: string;
7325
+ district: string;
7326
+ addressType: "DOMESTIC";
7327
+ province: string;
7328
+ urbanOrRural: "RURAL";
7329
+ village?: string | null | undefined;
7330
+ }, {
7331
+ country: string;
7332
+ district: string;
7333
+ addressType: "DOMESTIC";
7334
+ province: string;
7335
+ urbanOrRural: "RURAL";
7336
+ village?: string | null | undefined;
7337
+ }>, z.ZodUndefined, z.ZodObject<{
7338
+ country: z.ZodString;
7339
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7340
+ state: z.ZodString;
7341
+ district2: z.ZodString;
7342
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7343
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7344
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7345
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7346
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7347
+ }, "strip", z.ZodTypeAny, {
7348
+ country: string;
7349
+ state: string;
7350
+ addressType: "INTERNATIONAL";
7351
+ district2: string;
7352
+ cityOrTown?: string | null | undefined;
7353
+ addressLine1?: string | null | undefined;
7354
+ addressLine2?: string | null | undefined;
7355
+ addressLine3?: string | null | undefined;
7356
+ postcodeOrZip?: string | null | undefined;
7357
+ }, {
7358
+ country: string;
7359
+ state: string;
7360
+ addressType: "INTERNATIONAL";
7361
+ district2: string;
7362
+ cityOrTown?: string | null | undefined;
7363
+ addressLine1?: string | null | undefined;
7364
+ addressLine2?: string | null | undefined;
7365
+ addressLine3?: string | null | undefined;
7366
+ postcodeOrZip?: string | null | undefined;
7367
+ }>]>>>;
7368
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7369
+ filename: z.ZodString;
7370
+ originalFilename: z.ZodString;
7371
+ type: z.ZodString;
7372
+ }, "strip", z.ZodTypeAny, {
7373
+ type: string;
7374
+ filename: string;
7375
+ originalFilename: string;
7376
+ }, {
7377
+ type: string;
7378
+ filename: string;
7379
+ originalFilename: string;
7380
+ }>, z.ZodArray<z.ZodObject<{
7381
+ filename: z.ZodString;
7382
+ originalFilename: z.ZodString;
7383
+ type: z.ZodString;
7384
+ option: z.ZodString;
7385
+ }, "strip", z.ZodTypeAny, {
7386
+ type: string;
7387
+ option: string;
7388
+ filename: string;
7389
+ originalFilename: string;
7390
+ }, {
7391
+ type: string;
7392
+ option: string;
7393
+ filename: string;
7394
+ originalFilename: string;
7395
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7396
+ country: z.ZodString;
7397
+ addressType: z.ZodLiteral<"DOMESTIC">;
7398
+ province: z.ZodString;
7399
+ district: z.ZodString;
7400
+ }, {
7401
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7402
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7403
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7404
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7405
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7406
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7407
+ }>, "strip", z.ZodTypeAny, {
7408
+ country: string;
7409
+ district: string;
7410
+ addressType: "DOMESTIC";
7411
+ province: string;
7412
+ urbanOrRural: "URBAN";
7413
+ number?: string | null | undefined;
7414
+ town?: string | null | undefined;
7415
+ residentialArea?: string | null | undefined;
7416
+ street?: string | null | undefined;
7417
+ zipCode?: string | null | undefined;
7418
+ }, {
7419
+ country: string;
7420
+ district: string;
7421
+ addressType: "DOMESTIC";
7422
+ province: string;
7423
+ urbanOrRural: "URBAN";
7424
+ number?: string | null | undefined;
7425
+ town?: string | null | undefined;
7426
+ residentialArea?: string | null | undefined;
7427
+ street?: string | null | undefined;
7428
+ zipCode?: string | null | undefined;
7429
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7430
+ country: z.ZodString;
7431
+ addressType: z.ZodLiteral<"DOMESTIC">;
7432
+ province: z.ZodString;
7433
+ district: z.ZodString;
7434
+ }, {
7435
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7436
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7437
+ }>, "strip", z.ZodTypeAny, {
7438
+ country: string;
7439
+ district: string;
7440
+ addressType: "DOMESTIC";
7441
+ province: string;
7442
+ urbanOrRural: "RURAL";
7443
+ village?: string | null | undefined;
7444
+ }, {
7445
+ country: string;
7446
+ district: string;
7447
+ addressType: "DOMESTIC";
7448
+ province: string;
7449
+ urbanOrRural: "RURAL";
7450
+ village?: string | null | undefined;
7451
+ }>, z.ZodUndefined, z.ZodObject<{
7452
+ country: z.ZodString;
7453
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7454
+ state: z.ZodString;
7455
+ district2: z.ZodString;
7456
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7457
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7458
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7459
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7460
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7461
+ }, "strip", z.ZodTypeAny, {
7462
+ country: string;
7463
+ state: string;
7464
+ addressType: "INTERNATIONAL";
7465
+ district2: string;
7466
+ cityOrTown?: string | null | undefined;
7467
+ addressLine1?: string | null | undefined;
7468
+ addressLine2?: string | null | undefined;
7469
+ addressLine3?: string | null | undefined;
7470
+ postcodeOrZip?: string | null | undefined;
7471
+ }, {
7472
+ country: string;
7473
+ state: string;
7474
+ addressType: "INTERNATIONAL";
7475
+ district2: string;
7476
+ cityOrTown?: string | null | undefined;
7477
+ addressLine1?: string | null | undefined;
7478
+ addressLine2?: string | null | undefined;
7479
+ addressLine3?: string | null | undefined;
7480
+ postcodeOrZip?: string | null | undefined;
7481
+ }>]>>>;
7482
+ originalActionId: z.ZodOptional<z.ZodString>;
7483
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7484
+ }, {
7485
+ type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
7486
+ }>, "strip", z.ZodTypeAny, {
7487
+ type: "NOTIFY";
7488
+ transactionId: string;
7489
+ declaration: Record<string, string | number | boolean | {
7490
+ type: string;
7491
+ filename: string;
7492
+ originalFilename: string;
7493
+ } | {
7494
+ country: string;
7495
+ district: string;
7496
+ addressType: "DOMESTIC";
7497
+ province: string;
7498
+ urbanOrRural: "URBAN";
7499
+ number?: string | null | undefined;
7500
+ town?: string | null | undefined;
7501
+ residentialArea?: string | null | undefined;
7502
+ street?: string | null | undefined;
7503
+ zipCode?: string | null | undefined;
7504
+ } | {
7505
+ country: string;
7506
+ district: string;
7507
+ addressType: "DOMESTIC";
7508
+ province: string;
7509
+ urbanOrRural: "RURAL";
7510
+ village?: string | null | undefined;
7511
+ } | {
7512
+ country: string;
7513
+ state: string;
7514
+ addressType: "INTERNATIONAL";
7515
+ district2: string;
7516
+ cityOrTown?: string | null | undefined;
7517
+ addressLine1?: string | null | undefined;
7518
+ addressLine2?: string | null | undefined;
7519
+ addressLine3?: string | null | undefined;
7520
+ postcodeOrZip?: string | null | undefined;
7521
+ } | {
7522
+ type: string;
7523
+ option: string;
7524
+ filename: string;
7525
+ originalFilename: string;
7526
+ }[] | [string, string] | undefined>;
7527
+ eventId: string;
7528
+ annotation?: Record<string, string | number | boolean | {
7529
+ type: string;
7530
+ filename: string;
7531
+ originalFilename: string;
7532
+ } | {
7533
+ country: string;
7534
+ district: string;
7535
+ addressType: "DOMESTIC";
7536
+ province: string;
7537
+ urbanOrRural: "URBAN";
7538
+ number?: string | null | undefined;
7539
+ town?: string | null | undefined;
7540
+ residentialArea?: string | null | undefined;
7541
+ street?: string | null | undefined;
7542
+ zipCode?: string | null | undefined;
7543
+ } | {
7544
+ country: string;
7545
+ district: string;
7546
+ addressType: "DOMESTIC";
7547
+ province: string;
7548
+ urbanOrRural: "RURAL";
7549
+ village?: string | null | undefined;
7550
+ } | {
7551
+ country: string;
7552
+ state: string;
7553
+ addressType: "INTERNATIONAL";
7554
+ district2: string;
7555
+ cityOrTown?: string | null | undefined;
7556
+ addressLine1?: string | null | undefined;
7557
+ addressLine2?: string | null | undefined;
7558
+ addressLine3?: string | null | undefined;
7559
+ postcodeOrZip?: string | null | undefined;
7560
+ } | {
7561
+ type: string;
7562
+ option: string;
7563
+ filename: string;
7564
+ originalFilename: string;
7565
+ }[] | [string, string] | undefined> | undefined;
7566
+ originalActionId?: string | undefined;
7567
+ keepAssignment?: boolean | undefined;
7568
+ }, {
7569
+ transactionId: string;
7570
+ eventId: string;
7571
+ type?: "NOTIFY" | undefined;
7572
+ declaration?: Record<string, string | number | boolean | {
7573
+ type: string;
7574
+ filename: string;
7575
+ originalFilename: string;
7576
+ } | {
7577
+ country: string;
7578
+ district: string;
7579
+ addressType: "DOMESTIC";
7580
+ province: string;
7581
+ urbanOrRural: "URBAN";
7582
+ number?: string | null | undefined;
7583
+ town?: string | null | undefined;
7584
+ residentialArea?: string | null | undefined;
7585
+ street?: string | null | undefined;
7586
+ zipCode?: string | null | undefined;
7587
+ } | {
7588
+ country: string;
7589
+ district: string;
7590
+ addressType: "DOMESTIC";
7591
+ province: string;
7592
+ urbanOrRural: "RURAL";
7593
+ village?: string | null | undefined;
7594
+ } | {
7595
+ country: string;
7596
+ state: string;
7597
+ addressType: "INTERNATIONAL";
7598
+ district2: string;
7599
+ cityOrTown?: string | null | undefined;
7600
+ addressLine1?: string | null | undefined;
7601
+ addressLine2?: string | null | undefined;
7602
+ addressLine3?: string | null | undefined;
7603
+ postcodeOrZip?: string | null | undefined;
7604
+ } | {
7605
+ type: string;
7606
+ option: string;
7607
+ filename: string;
7608
+ originalFilename: string;
7609
+ }[] | [string, string] | undefined> | undefined;
7610
+ annotation?: Record<string, string | number | boolean | {
7611
+ type: string;
7612
+ filename: string;
7613
+ originalFilename: string;
7614
+ } | {
7615
+ country: string;
7616
+ district: string;
7617
+ addressType: "DOMESTIC";
7618
+ province: string;
7619
+ urbanOrRural: "URBAN";
7620
+ number?: string | null | undefined;
7621
+ town?: string | null | undefined;
7622
+ residentialArea?: string | null | undefined;
7623
+ street?: string | null | undefined;
7624
+ zipCode?: string | null | undefined;
7625
+ } | {
7626
+ country: string;
7627
+ district: string;
7628
+ addressType: "DOMESTIC";
7629
+ province: string;
7630
+ urbanOrRural: "RURAL";
7631
+ village?: string | null | undefined;
7632
+ } | {
7633
+ country: string;
7634
+ state: string;
7635
+ addressType: "INTERNATIONAL";
7636
+ district2: string;
7637
+ cityOrTown?: string | null | undefined;
7638
+ addressLine1?: string | null | undefined;
7639
+ addressLine2?: string | null | undefined;
7640
+ addressLine3?: string | null | undefined;
7641
+ postcodeOrZip?: string | null | undefined;
7642
+ } | {
7643
+ type: string;
7644
+ option: string;
7645
+ filename: string;
7646
+ originalFilename: string;
7647
+ }[] | [string, string] | undefined> | undefined;
7648
+ originalActionId?: string | undefined;
7649
+ keepAssignment?: boolean | undefined;
7650
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7651
+ eventId: z.ZodString;
7652
+ transactionId: z.ZodString;
7653
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7654
+ filename: z.ZodString;
7655
+ originalFilename: z.ZodString;
7656
+ type: z.ZodString;
7657
+ }, "strip", z.ZodTypeAny, {
7658
+ type: string;
7659
+ filename: string;
7660
+ originalFilename: string;
7661
+ }, {
7662
+ type: string;
7663
+ filename: string;
7664
+ originalFilename: string;
7665
+ }>, z.ZodArray<z.ZodObject<{
7666
+ filename: z.ZodString;
7667
+ originalFilename: z.ZodString;
7668
+ type: z.ZodString;
7669
+ option: z.ZodString;
7670
+ }, "strip", z.ZodTypeAny, {
7671
+ type: string;
7672
+ option: string;
7673
+ filename: string;
7674
+ originalFilename: string;
7675
+ }, {
7676
+ type: string;
7677
+ option: string;
7678
+ filename: string;
7679
+ originalFilename: string;
7680
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7681
+ country: z.ZodString;
7682
+ addressType: z.ZodLiteral<"DOMESTIC">;
7683
+ province: z.ZodString;
7684
+ district: z.ZodString;
7685
+ }, {
7686
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7687
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7688
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7689
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7690
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7691
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7692
+ }>, "strip", z.ZodTypeAny, {
7693
+ country: string;
7694
+ district: string;
7695
+ addressType: "DOMESTIC";
7696
+ province: string;
7697
+ urbanOrRural: "URBAN";
7698
+ number?: string | null | undefined;
7699
+ town?: string | null | undefined;
7700
+ residentialArea?: string | null | undefined;
7701
+ street?: string | null | undefined;
7702
+ zipCode?: string | null | undefined;
7703
+ }, {
7704
+ country: string;
7705
+ district: string;
7706
+ addressType: "DOMESTIC";
7707
+ province: string;
7708
+ urbanOrRural: "URBAN";
7709
+ number?: string | null | undefined;
7710
+ town?: string | null | undefined;
7711
+ residentialArea?: string | null | undefined;
7712
+ street?: string | null | undefined;
7713
+ zipCode?: string | null | undefined;
7714
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7715
+ country: z.ZodString;
7716
+ addressType: z.ZodLiteral<"DOMESTIC">;
7717
+ province: z.ZodString;
7718
+ district: z.ZodString;
7719
+ }, {
7720
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7721
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7722
+ }>, "strip", z.ZodTypeAny, {
7723
+ country: string;
7724
+ district: string;
7725
+ addressType: "DOMESTIC";
7726
+ province: string;
7727
+ urbanOrRural: "RURAL";
7728
+ village?: string | null | undefined;
7729
+ }, {
7730
+ country: string;
7731
+ district: string;
7732
+ addressType: "DOMESTIC";
7733
+ province: string;
7734
+ urbanOrRural: "RURAL";
7735
+ village?: string | null | undefined;
7736
+ }>, z.ZodUndefined, z.ZodObject<{
7737
+ country: z.ZodString;
7738
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7739
+ state: z.ZodString;
7740
+ district2: z.ZodString;
7741
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7742
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7743
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7744
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7745
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7746
+ }, "strip", z.ZodTypeAny, {
7747
+ country: string;
7748
+ state: string;
7749
+ addressType: "INTERNATIONAL";
7750
+ district2: string;
7751
+ cityOrTown?: string | null | undefined;
7752
+ addressLine1?: string | null | undefined;
7753
+ addressLine2?: string | null | undefined;
7754
+ addressLine3?: string | null | undefined;
7755
+ postcodeOrZip?: string | null | undefined;
7756
+ }, {
7757
+ country: string;
7758
+ state: string;
7759
+ addressType: "INTERNATIONAL";
7760
+ district2: string;
7761
+ cityOrTown?: string | null | undefined;
7762
+ addressLine1?: string | null | undefined;
7763
+ addressLine2?: string | null | undefined;
7764
+ addressLine3?: string | null | undefined;
7765
+ postcodeOrZip?: string | null | undefined;
7766
+ }>]>>>;
7767
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7768
+ filename: z.ZodString;
7769
+ originalFilename: z.ZodString;
7770
+ type: z.ZodString;
7771
+ }, "strip", z.ZodTypeAny, {
7772
+ type: string;
7773
+ filename: string;
7774
+ originalFilename: string;
7775
+ }, {
7776
+ type: string;
7777
+ filename: string;
7778
+ originalFilename: string;
7779
+ }>, z.ZodArray<z.ZodObject<{
7780
+ filename: z.ZodString;
7781
+ originalFilename: z.ZodString;
7782
+ type: z.ZodString;
7783
+ option: z.ZodString;
7784
+ }, "strip", z.ZodTypeAny, {
7785
+ type: string;
7786
+ option: string;
7787
+ filename: string;
7788
+ originalFilename: string;
7789
+ }, {
7790
+ type: string;
7791
+ option: string;
7792
+ filename: string;
7793
+ originalFilename: string;
7794
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7795
+ country: z.ZodString;
7796
+ addressType: z.ZodLiteral<"DOMESTIC">;
7797
+ province: z.ZodString;
7798
+ district: z.ZodString;
7799
+ }, {
7800
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7801
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7802
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7803
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7804
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7805
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7806
+ }>, "strip", z.ZodTypeAny, {
7807
+ country: string;
7808
+ district: string;
7809
+ addressType: "DOMESTIC";
7810
+ province: string;
7811
+ urbanOrRural: "URBAN";
7812
+ number?: string | null | undefined;
7813
+ town?: string | null | undefined;
7814
+ residentialArea?: string | null | undefined;
7815
+ street?: string | null | undefined;
7816
+ zipCode?: string | null | undefined;
7817
+ }, {
7818
+ country: string;
7819
+ district: string;
7820
+ addressType: "DOMESTIC";
7821
+ province: string;
7822
+ urbanOrRural: "URBAN";
7823
+ number?: string | null | undefined;
7824
+ town?: string | null | undefined;
7825
+ residentialArea?: string | null | undefined;
7826
+ street?: string | null | undefined;
7827
+ zipCode?: string | null | undefined;
7828
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7829
+ country: z.ZodString;
7830
+ addressType: z.ZodLiteral<"DOMESTIC">;
7831
+ province: z.ZodString;
7832
+ district: z.ZodString;
7833
+ }, {
7834
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7835
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7836
+ }>, "strip", z.ZodTypeAny, {
7837
+ country: string;
7838
+ district: string;
7839
+ addressType: "DOMESTIC";
7840
+ province: string;
7841
+ urbanOrRural: "RURAL";
7842
+ village?: string | null | undefined;
7843
+ }, {
7844
+ country: string;
7845
+ district: string;
7846
+ addressType: "DOMESTIC";
7847
+ province: string;
7848
+ urbanOrRural: "RURAL";
7849
+ village?: string | null | undefined;
7850
+ }>, z.ZodUndefined, z.ZodObject<{
7851
+ country: z.ZodString;
7852
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7853
+ state: z.ZodString;
7854
+ district2: z.ZodString;
7855
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7856
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7857
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7858
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7859
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7860
+ }, "strip", z.ZodTypeAny, {
7861
+ country: string;
7862
+ state: string;
7863
+ addressType: "INTERNATIONAL";
7864
+ district2: string;
7865
+ cityOrTown?: string | null | undefined;
7866
+ addressLine1?: string | null | undefined;
7867
+ addressLine2?: string | null | undefined;
7868
+ addressLine3?: string | null | undefined;
7869
+ postcodeOrZip?: string | null | undefined;
7870
+ }, {
7871
+ country: string;
7872
+ state: string;
7873
+ addressType: "INTERNATIONAL";
7874
+ district2: string;
7875
+ cityOrTown?: string | null | undefined;
7876
+ addressLine1?: string | null | undefined;
7877
+ addressLine2?: string | null | undefined;
7878
+ addressLine3?: string | null | undefined;
7879
+ postcodeOrZip?: string | null | undefined;
7880
+ }>]>>>;
7881
+ originalActionId: z.ZodOptional<z.ZodString>;
7882
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7883
+ }, {
7884
+ type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
7885
+ }>, "strip", z.ZodTypeAny, {
7886
+ type: "DECLARE";
7887
+ transactionId: string;
7888
+ declaration: Record<string, string | number | boolean | {
7889
+ type: string;
7890
+ filename: string;
7891
+ originalFilename: string;
7892
+ } | {
7893
+ country: string;
7894
+ district: string;
7895
+ addressType: "DOMESTIC";
7896
+ province: string;
7897
+ urbanOrRural: "URBAN";
7898
+ number?: string | null | undefined;
7899
+ town?: string | null | undefined;
7900
+ residentialArea?: string | null | undefined;
7901
+ street?: string | null | undefined;
7902
+ zipCode?: string | null | undefined;
7903
+ } | {
7904
+ country: string;
7905
+ district: string;
7906
+ addressType: "DOMESTIC";
7907
+ province: string;
7908
+ urbanOrRural: "RURAL";
7909
+ village?: string | null | undefined;
7910
+ } | {
7911
+ country: string;
7912
+ state: string;
7913
+ addressType: "INTERNATIONAL";
7914
+ district2: string;
7915
+ cityOrTown?: string | null | undefined;
7916
+ addressLine1?: string | null | undefined;
7917
+ addressLine2?: string | null | undefined;
7918
+ addressLine3?: string | null | undefined;
7919
+ postcodeOrZip?: string | null | undefined;
7920
+ } | {
7921
+ type: string;
7922
+ option: string;
7923
+ filename: string;
7924
+ originalFilename: string;
7925
+ }[] | [string, string] | undefined>;
7926
+ eventId: string;
7927
+ annotation?: Record<string, string | number | boolean | {
7928
+ type: string;
7929
+ filename: string;
7930
+ originalFilename: string;
7931
+ } | {
7932
+ country: string;
7933
+ district: string;
7934
+ addressType: "DOMESTIC";
7935
+ province: string;
7936
+ urbanOrRural: "URBAN";
7937
+ number?: string | null | undefined;
7938
+ town?: string | null | undefined;
7939
+ residentialArea?: string | null | undefined;
7940
+ street?: string | null | undefined;
7941
+ zipCode?: string | null | undefined;
7942
+ } | {
7943
+ country: string;
7944
+ district: string;
7945
+ addressType: "DOMESTIC";
7946
+ province: string;
7947
+ urbanOrRural: "RURAL";
7948
+ village?: string | null | undefined;
7949
+ } | {
7950
+ country: string;
7951
+ state: string;
7952
+ addressType: "INTERNATIONAL";
7953
+ district2: string;
7954
+ cityOrTown?: string | null | undefined;
7955
+ addressLine1?: string | null | undefined;
7956
+ addressLine2?: string | null | undefined;
7957
+ addressLine3?: string | null | undefined;
7958
+ postcodeOrZip?: string | null | undefined;
7959
+ } | {
7960
+ type: string;
7961
+ option: string;
7962
+ filename: string;
7963
+ originalFilename: string;
7964
+ }[] | [string, string] | undefined> | undefined;
7965
+ originalActionId?: string | undefined;
7966
+ keepAssignment?: boolean | undefined;
7967
+ }, {
7968
+ transactionId: string;
7969
+ eventId: string;
7970
+ type?: "DECLARE" | undefined;
7971
+ declaration?: Record<string, string | number | boolean | {
7972
+ type: string;
7973
+ filename: string;
7974
+ originalFilename: string;
7975
+ } | {
7976
+ country: string;
7977
+ district: string;
7978
+ addressType: "DOMESTIC";
7979
+ province: string;
7980
+ urbanOrRural: "URBAN";
7981
+ number?: string | null | undefined;
7982
+ town?: string | null | undefined;
7983
+ residentialArea?: string | null | undefined;
7984
+ street?: string | null | undefined;
7985
+ zipCode?: string | null | undefined;
7986
+ } | {
7987
+ country: string;
7988
+ district: string;
7989
+ addressType: "DOMESTIC";
7990
+ province: string;
7991
+ urbanOrRural: "RURAL";
7992
+ village?: string | null | undefined;
7993
+ } | {
7994
+ country: string;
7995
+ state: string;
7996
+ addressType: "INTERNATIONAL";
7997
+ district2: string;
7998
+ cityOrTown?: string | null | undefined;
7999
+ addressLine1?: string | null | undefined;
8000
+ addressLine2?: string | null | undefined;
8001
+ addressLine3?: string | null | undefined;
8002
+ postcodeOrZip?: string | null | undefined;
8003
+ } | {
8004
+ type: string;
8005
+ option: string;
8006
+ filename: string;
8007
+ originalFilename: string;
8008
+ }[] | [string, string] | undefined> | undefined;
8009
+ annotation?: Record<string, string | number | boolean | {
8010
+ type: string;
8011
+ filename: string;
8012
+ originalFilename: string;
8013
+ } | {
8014
+ country: string;
8015
+ district: string;
8016
+ addressType: "DOMESTIC";
8017
+ province: string;
8018
+ urbanOrRural: "URBAN";
8019
+ number?: string | null | undefined;
8020
+ town?: string | null | undefined;
8021
+ residentialArea?: string | null | undefined;
8022
+ street?: string | null | undefined;
8023
+ zipCode?: string | null | undefined;
8024
+ } | {
8025
+ country: string;
8026
+ district: string;
8027
+ addressType: "DOMESTIC";
8028
+ province: string;
8029
+ urbanOrRural: "RURAL";
8030
+ village?: string | null | undefined;
8031
+ } | {
8032
+ country: string;
8033
+ state: string;
8034
+ addressType: "INTERNATIONAL";
8035
+ district2: string;
8036
+ cityOrTown?: string | null | undefined;
8037
+ addressLine1?: string | null | undefined;
8038
+ addressLine2?: string | null | undefined;
8039
+ addressLine3?: string | null | undefined;
8040
+ postcodeOrZip?: string | null | undefined;
8041
+ } | {
8042
+ type: string;
8043
+ option: string;
8044
+ filename: string;
8045
+ originalFilename: string;
8046
+ }[] | [string, string] | undefined> | undefined;
8047
+ originalActionId?: string | undefined;
8048
+ keepAssignment?: boolean | undefined;
8049
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8050
+ eventId: z.ZodString;
8051
+ transactionId: z.ZodString;
8052
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8053
+ filename: z.ZodString;
8054
+ originalFilename: z.ZodString;
8055
+ type: z.ZodString;
8056
+ }, "strip", z.ZodTypeAny, {
8057
+ type: string;
8058
+ filename: string;
8059
+ originalFilename: string;
8060
+ }, {
8061
+ type: string;
8062
+ filename: string;
8063
+ originalFilename: string;
8064
+ }>, z.ZodArray<z.ZodObject<{
8065
+ filename: z.ZodString;
8066
+ originalFilename: z.ZodString;
8067
+ type: z.ZodString;
8068
+ option: z.ZodString;
8069
+ }, "strip", z.ZodTypeAny, {
8070
+ type: string;
8071
+ option: string;
8072
+ filename: string;
8073
+ originalFilename: string;
8074
+ }, {
8075
+ type: string;
8076
+ option: string;
8077
+ filename: string;
8078
+ originalFilename: string;
8079
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8080
+ country: z.ZodString;
8081
+ addressType: z.ZodLiteral<"DOMESTIC">;
8082
+ province: z.ZodString;
8083
+ district: z.ZodString;
8084
+ }, {
8085
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8086
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8087
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8088
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8089
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8090
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8091
+ }>, "strip", z.ZodTypeAny, {
8092
+ country: string;
8093
+ district: string;
8094
+ addressType: "DOMESTIC";
8095
+ province: string;
8096
+ urbanOrRural: "URBAN";
8097
+ number?: string | null | undefined;
8098
+ town?: string | null | undefined;
8099
+ residentialArea?: string | null | undefined;
8100
+ street?: string | null | undefined;
8101
+ zipCode?: string | null | undefined;
8102
+ }, {
8103
+ country: string;
8104
+ district: string;
8105
+ addressType: "DOMESTIC";
8106
+ province: string;
8107
+ urbanOrRural: "URBAN";
8108
+ number?: string | null | undefined;
8109
+ town?: string | null | undefined;
8110
+ residentialArea?: string | null | undefined;
8111
+ street?: string | null | undefined;
8112
+ zipCode?: string | null | undefined;
8113
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8114
+ country: z.ZodString;
8115
+ addressType: z.ZodLiteral<"DOMESTIC">;
8116
+ province: z.ZodString;
8117
+ district: z.ZodString;
8118
+ }, {
8119
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8120
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8121
+ }>, "strip", z.ZodTypeAny, {
8122
+ country: string;
8123
+ district: string;
8124
+ addressType: "DOMESTIC";
8125
+ province: string;
8126
+ urbanOrRural: "RURAL";
8127
+ village?: string | null | undefined;
8128
+ }, {
8129
+ country: string;
8130
+ district: string;
8131
+ addressType: "DOMESTIC";
8132
+ province: string;
8133
+ urbanOrRural: "RURAL";
8134
+ village?: string | null | undefined;
8135
+ }>, z.ZodUndefined, z.ZodObject<{
8136
+ country: z.ZodString;
8137
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8138
+ state: z.ZodString;
8139
+ district2: z.ZodString;
8140
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8141
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8142
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8143
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8144
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8145
+ }, "strip", z.ZodTypeAny, {
8146
+ country: string;
8147
+ state: string;
8148
+ addressType: "INTERNATIONAL";
8149
+ district2: string;
8150
+ cityOrTown?: string | null | undefined;
8151
+ addressLine1?: string | null | undefined;
8152
+ addressLine2?: string | null | undefined;
8153
+ addressLine3?: string | null | undefined;
8154
+ postcodeOrZip?: string | null | undefined;
8155
+ }, {
8156
+ country: string;
8157
+ state: string;
8158
+ addressType: "INTERNATIONAL";
8159
+ district2: string;
8160
+ cityOrTown?: string | null | undefined;
8161
+ addressLine1?: string | null | undefined;
8162
+ addressLine2?: string | null | undefined;
8163
+ addressLine3?: string | null | undefined;
8164
+ postcodeOrZip?: string | null | undefined;
8165
+ }>]>>>;
8166
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8167
+ filename: z.ZodString;
8168
+ originalFilename: z.ZodString;
8169
+ type: z.ZodString;
8170
+ }, "strip", z.ZodTypeAny, {
8171
+ type: string;
8172
+ filename: string;
8173
+ originalFilename: string;
8174
+ }, {
8175
+ type: string;
8176
+ filename: string;
8177
+ originalFilename: string;
8178
+ }>, z.ZodArray<z.ZodObject<{
8179
+ filename: z.ZodString;
8180
+ originalFilename: z.ZodString;
8181
+ type: z.ZodString;
8182
+ option: z.ZodString;
8183
+ }, "strip", z.ZodTypeAny, {
8184
+ type: string;
8185
+ option: string;
8186
+ filename: string;
8187
+ originalFilename: string;
8188
+ }, {
8189
+ type: string;
8190
+ option: string;
8191
+ filename: string;
8192
+ originalFilename: string;
8193
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8194
+ country: z.ZodString;
8195
+ addressType: z.ZodLiteral<"DOMESTIC">;
8196
+ province: z.ZodString;
8197
+ district: z.ZodString;
8198
+ }, {
8199
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8200
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8201
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8202
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8203
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8204
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8205
+ }>, "strip", z.ZodTypeAny, {
8206
+ country: string;
8207
+ district: string;
8208
+ addressType: "DOMESTIC";
8209
+ province: string;
8210
+ urbanOrRural: "URBAN";
8211
+ number?: string | null | undefined;
8212
+ town?: string | null | undefined;
8213
+ residentialArea?: string | null | undefined;
8214
+ street?: string | null | undefined;
8215
+ zipCode?: string | null | undefined;
8216
+ }, {
8217
+ country: string;
8218
+ district: string;
8219
+ addressType: "DOMESTIC";
8220
+ province: string;
8221
+ urbanOrRural: "URBAN";
8222
+ number?: string | null | undefined;
8223
+ town?: string | null | undefined;
8224
+ residentialArea?: string | null | undefined;
8225
+ street?: string | null | undefined;
8226
+ zipCode?: string | null | undefined;
8227
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8228
+ country: z.ZodString;
8229
+ addressType: z.ZodLiteral<"DOMESTIC">;
8230
+ province: z.ZodString;
8231
+ district: z.ZodString;
8232
+ }, {
8233
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8234
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8235
+ }>, "strip", z.ZodTypeAny, {
8236
+ country: string;
8237
+ district: string;
8238
+ addressType: "DOMESTIC";
8239
+ province: string;
8240
+ urbanOrRural: "RURAL";
8241
+ village?: string | null | undefined;
8242
+ }, {
8243
+ country: string;
8244
+ district: string;
8245
+ addressType: "DOMESTIC";
8246
+ province: string;
8247
+ urbanOrRural: "RURAL";
8248
+ village?: string | null | undefined;
8249
+ }>, z.ZodUndefined, z.ZodObject<{
8250
+ country: z.ZodString;
8251
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8252
+ state: z.ZodString;
8253
+ district2: z.ZodString;
8254
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8255
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8256
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8257
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8258
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8259
+ }, "strip", z.ZodTypeAny, {
8260
+ country: string;
8261
+ state: string;
8262
+ addressType: "INTERNATIONAL";
8263
+ district2: string;
8264
+ cityOrTown?: string | null | undefined;
8265
+ addressLine1?: string | null | undefined;
8266
+ addressLine2?: string | null | undefined;
8267
+ addressLine3?: string | null | undefined;
8268
+ postcodeOrZip?: string | null | undefined;
8269
+ }, {
8270
+ country: string;
8271
+ state: string;
8272
+ addressType: "INTERNATIONAL";
8273
+ district2: string;
8274
+ cityOrTown?: string | null | undefined;
8275
+ addressLine1?: string | null | undefined;
8276
+ addressLine2?: string | null | undefined;
8277
+ addressLine3?: string | null | undefined;
8278
+ postcodeOrZip?: string | null | undefined;
8279
+ }>]>>>;
8280
+ originalActionId: z.ZodOptional<z.ZodString>;
8281
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8282
+ }, {
8283
+ type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
8284
+ }>, "strip", z.ZodTypeAny, {
8285
+ type: "REJECT";
8286
+ transactionId: string;
8287
+ declaration: Record<string, string | number | boolean | {
8288
+ type: string;
8289
+ filename: string;
8290
+ originalFilename: string;
8291
+ } | {
8292
+ country: string;
8293
+ district: string;
8294
+ addressType: "DOMESTIC";
8295
+ province: string;
8296
+ urbanOrRural: "URBAN";
8297
+ number?: string | null | undefined;
8298
+ town?: string | null | undefined;
8299
+ residentialArea?: string | null | undefined;
8300
+ street?: string | null | undefined;
8301
+ zipCode?: string | null | undefined;
8302
+ } | {
8303
+ country: string;
8304
+ district: string;
8305
+ addressType: "DOMESTIC";
8306
+ province: string;
8307
+ urbanOrRural: "RURAL";
8308
+ village?: string | null | undefined;
8309
+ } | {
8310
+ country: string;
8311
+ state: string;
8312
+ addressType: "INTERNATIONAL";
8313
+ district2: string;
8314
+ cityOrTown?: string | null | undefined;
8315
+ addressLine1?: string | null | undefined;
8316
+ addressLine2?: string | null | undefined;
8317
+ addressLine3?: string | null | undefined;
8318
+ postcodeOrZip?: string | null | undefined;
8319
+ } | {
8320
+ type: string;
8321
+ option: string;
8322
+ filename: string;
8323
+ originalFilename: string;
8324
+ }[] | [string, string] | undefined>;
8325
+ eventId: string;
8326
+ annotation?: Record<string, string | number | boolean | {
8327
+ type: string;
8328
+ filename: string;
8329
+ originalFilename: string;
8330
+ } | {
8331
+ country: string;
8332
+ district: string;
8333
+ addressType: "DOMESTIC";
8334
+ province: string;
8335
+ urbanOrRural: "URBAN";
8336
+ number?: string | null | undefined;
8337
+ town?: string | null | undefined;
8338
+ residentialArea?: string | null | undefined;
8339
+ street?: string | null | undefined;
8340
+ zipCode?: string | null | undefined;
8341
+ } | {
8342
+ country: string;
8343
+ district: string;
8344
+ addressType: "DOMESTIC";
8345
+ province: string;
8346
+ urbanOrRural: "RURAL";
8347
+ village?: string | null | undefined;
8348
+ } | {
8349
+ country: string;
8350
+ state: string;
8351
+ addressType: "INTERNATIONAL";
8352
+ district2: string;
8353
+ cityOrTown?: string | null | undefined;
8354
+ addressLine1?: string | null | undefined;
8355
+ addressLine2?: string | null | undefined;
8356
+ addressLine3?: string | null | undefined;
8357
+ postcodeOrZip?: string | null | undefined;
8358
+ } | {
8359
+ type: string;
8360
+ option: string;
8361
+ filename: string;
8362
+ originalFilename: string;
8363
+ }[] | [string, string] | undefined> | undefined;
8364
+ originalActionId?: string | undefined;
8365
+ keepAssignment?: boolean | undefined;
8366
+ }, {
8367
+ transactionId: string;
8368
+ eventId: string;
8369
+ type?: "REJECT" | undefined;
8370
+ declaration?: Record<string, string | number | boolean | {
8371
+ type: string;
8372
+ filename: string;
8373
+ originalFilename: string;
8374
+ } | {
8375
+ country: string;
8376
+ district: string;
8377
+ addressType: "DOMESTIC";
8378
+ province: string;
8379
+ urbanOrRural: "URBAN";
8380
+ number?: string | null | undefined;
8381
+ town?: string | null | undefined;
8382
+ residentialArea?: string | null | undefined;
8383
+ street?: string | null | undefined;
8384
+ zipCode?: string | null | undefined;
8385
+ } | {
8386
+ country: string;
8387
+ district: string;
8388
+ addressType: "DOMESTIC";
8389
+ province: string;
8390
+ urbanOrRural: "RURAL";
8391
+ village?: string | null | undefined;
8392
+ } | {
8393
+ country: string;
8394
+ state: string;
8395
+ addressType: "INTERNATIONAL";
8396
+ district2: string;
8397
+ cityOrTown?: string | null | undefined;
8398
+ addressLine1?: string | null | undefined;
8399
+ addressLine2?: string | null | undefined;
8400
+ addressLine3?: string | null | undefined;
8401
+ postcodeOrZip?: string | null | undefined;
8402
+ } | {
8403
+ type: string;
8404
+ option: string;
8405
+ filename: string;
8406
+ originalFilename: string;
8407
+ }[] | [string, string] | undefined> | undefined;
8408
+ annotation?: Record<string, string | number | boolean | {
8409
+ type: string;
8410
+ filename: string;
8411
+ originalFilename: string;
8412
+ } | {
8413
+ country: string;
8414
+ district: string;
8415
+ addressType: "DOMESTIC";
8416
+ province: string;
8417
+ urbanOrRural: "URBAN";
8418
+ number?: string | null | undefined;
8419
+ town?: string | null | undefined;
8420
+ residentialArea?: string | null | undefined;
8421
+ street?: string | null | undefined;
8422
+ zipCode?: string | null | undefined;
8423
+ } | {
8424
+ country: string;
8425
+ district: string;
8426
+ addressType: "DOMESTIC";
8427
+ province: string;
8428
+ urbanOrRural: "RURAL";
8429
+ village?: string | null | undefined;
8430
+ } | {
8431
+ country: string;
8432
+ state: string;
8433
+ addressType: "INTERNATIONAL";
8434
+ district2: string;
8435
+ cityOrTown?: string | null | undefined;
8436
+ addressLine1?: string | null | undefined;
8437
+ addressLine2?: string | null | undefined;
8438
+ addressLine3?: string | null | undefined;
8439
+ postcodeOrZip?: string | null | undefined;
8440
+ } | {
8441
+ type: string;
8442
+ option: string;
8443
+ filename: string;
8444
+ originalFilename: string;
8445
+ }[] | [string, string] | undefined> | undefined;
8446
+ originalActionId?: string | undefined;
8447
+ keepAssignment?: boolean | undefined;
8448
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8449
+ eventId: z.ZodString;
8450
+ transactionId: z.ZodString;
8451
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8452
+ filename: z.ZodString;
8453
+ originalFilename: z.ZodString;
8454
+ type: z.ZodString;
8455
+ }, "strip", z.ZodTypeAny, {
8456
+ type: string;
8457
+ filename: string;
8458
+ originalFilename: string;
8459
+ }, {
8460
+ type: string;
8461
+ filename: string;
8462
+ originalFilename: string;
8463
+ }>, z.ZodArray<z.ZodObject<{
8464
+ filename: z.ZodString;
8465
+ originalFilename: z.ZodString;
8466
+ type: z.ZodString;
8467
+ option: z.ZodString;
8468
+ }, "strip", z.ZodTypeAny, {
8469
+ type: string;
8470
+ option: string;
8471
+ filename: string;
8472
+ originalFilename: string;
8473
+ }, {
8474
+ type: string;
8475
+ option: string;
8476
+ filename: string;
8477
+ originalFilename: string;
8478
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8479
+ country: z.ZodString;
8480
+ addressType: z.ZodLiteral<"DOMESTIC">;
8481
+ province: z.ZodString;
8482
+ district: z.ZodString;
8483
+ }, {
8484
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8485
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8486
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8487
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8488
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8489
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8490
+ }>, "strip", z.ZodTypeAny, {
8491
+ country: string;
8492
+ district: string;
8493
+ addressType: "DOMESTIC";
8494
+ province: string;
8495
+ urbanOrRural: "URBAN";
8496
+ number?: string | null | undefined;
8497
+ town?: string | null | undefined;
8498
+ residentialArea?: string | null | undefined;
8499
+ street?: string | null | undefined;
8500
+ zipCode?: string | null | undefined;
8501
+ }, {
8502
+ country: string;
8503
+ district: string;
8504
+ addressType: "DOMESTIC";
8505
+ province: string;
8506
+ urbanOrRural: "URBAN";
8507
+ number?: string | null | undefined;
8508
+ town?: string | null | undefined;
8509
+ residentialArea?: string | null | undefined;
8510
+ street?: string | null | undefined;
8511
+ zipCode?: string | null | undefined;
8512
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8513
+ country: z.ZodString;
8514
+ addressType: z.ZodLiteral<"DOMESTIC">;
8515
+ province: z.ZodString;
8516
+ district: z.ZodString;
8517
+ }, {
8518
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8519
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8520
+ }>, "strip", z.ZodTypeAny, {
8521
+ country: string;
8522
+ district: string;
8523
+ addressType: "DOMESTIC";
8524
+ province: string;
8525
+ urbanOrRural: "RURAL";
8526
+ village?: string | null | undefined;
8527
+ }, {
8528
+ country: string;
8529
+ district: string;
8530
+ addressType: "DOMESTIC";
8531
+ province: string;
8532
+ urbanOrRural: "RURAL";
8533
+ village?: string | null | undefined;
8534
+ }>, z.ZodUndefined, z.ZodObject<{
8535
+ country: z.ZodString;
8536
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8537
+ state: z.ZodString;
8538
+ district2: z.ZodString;
8539
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8540
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8541
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8542
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8543
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8544
+ }, "strip", z.ZodTypeAny, {
8545
+ country: string;
8546
+ state: string;
8547
+ addressType: "INTERNATIONAL";
8548
+ district2: string;
8549
+ cityOrTown?: string | null | undefined;
8550
+ addressLine1?: string | null | undefined;
8551
+ addressLine2?: string | null | undefined;
8552
+ addressLine3?: string | null | undefined;
8553
+ postcodeOrZip?: string | null | undefined;
8554
+ }, {
8555
+ country: string;
8556
+ state: string;
8557
+ addressType: "INTERNATIONAL";
8558
+ district2: string;
8559
+ cityOrTown?: string | null | undefined;
8560
+ addressLine1?: string | null | undefined;
8561
+ addressLine2?: string | null | undefined;
8562
+ addressLine3?: string | null | undefined;
8563
+ postcodeOrZip?: string | null | undefined;
8564
+ }>]>>>;
8565
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8566
+ filename: z.ZodString;
8567
+ originalFilename: z.ZodString;
8568
+ type: z.ZodString;
8569
+ }, "strip", z.ZodTypeAny, {
8570
+ type: string;
8571
+ filename: string;
8572
+ originalFilename: string;
8573
+ }, {
8574
+ type: string;
8575
+ filename: string;
8576
+ originalFilename: string;
8577
+ }>, z.ZodArray<z.ZodObject<{
8578
+ filename: z.ZodString;
8579
+ originalFilename: z.ZodString;
8580
+ type: z.ZodString;
8581
+ option: z.ZodString;
8582
+ }, "strip", z.ZodTypeAny, {
8583
+ type: string;
8584
+ option: string;
8585
+ filename: string;
8586
+ originalFilename: string;
8587
+ }, {
8588
+ type: string;
8589
+ option: string;
8590
+ filename: string;
8591
+ originalFilename: string;
8592
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8593
+ country: z.ZodString;
8594
+ addressType: z.ZodLiteral<"DOMESTIC">;
8595
+ province: z.ZodString;
8596
+ district: z.ZodString;
8597
+ }, {
8598
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8599
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8600
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8601
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8602
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8603
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8604
+ }>, "strip", z.ZodTypeAny, {
8605
+ country: string;
8606
+ district: string;
8607
+ addressType: "DOMESTIC";
8608
+ province: string;
8609
+ urbanOrRural: "URBAN";
8610
+ number?: string | null | undefined;
8611
+ town?: string | null | undefined;
8612
+ residentialArea?: string | null | undefined;
8613
+ street?: string | null | undefined;
8614
+ zipCode?: string | null | undefined;
8615
+ }, {
8616
+ country: string;
8617
+ district: string;
8618
+ addressType: "DOMESTIC";
8619
+ province: string;
8620
+ urbanOrRural: "URBAN";
8621
+ number?: string | null | undefined;
8622
+ town?: string | null | undefined;
8623
+ residentialArea?: string | null | undefined;
8624
+ street?: string | null | undefined;
8625
+ zipCode?: string | null | undefined;
8626
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8627
+ country: z.ZodString;
8628
+ addressType: z.ZodLiteral<"DOMESTIC">;
8629
+ province: z.ZodString;
8630
+ district: z.ZodString;
8631
+ }, {
8632
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8633
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8634
+ }>, "strip", z.ZodTypeAny, {
8635
+ country: string;
8636
+ district: string;
8637
+ addressType: "DOMESTIC";
8638
+ province: string;
8639
+ urbanOrRural: "RURAL";
8640
+ village?: string | null | undefined;
8641
+ }, {
8642
+ country: string;
8643
+ district: string;
8644
+ addressType: "DOMESTIC";
8645
+ province: string;
8646
+ urbanOrRural: "RURAL";
8647
+ village?: string | null | undefined;
8648
+ }>, z.ZodUndefined, z.ZodObject<{
8649
+ country: z.ZodString;
8650
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8651
+ state: z.ZodString;
8652
+ district2: z.ZodString;
8653
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8654
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8655
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8656
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8657
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8658
+ }, "strip", z.ZodTypeAny, {
8659
+ country: string;
8660
+ state: string;
8661
+ addressType: "INTERNATIONAL";
8662
+ district2: string;
8663
+ cityOrTown?: string | null | undefined;
8664
+ addressLine1?: string | null | undefined;
8665
+ addressLine2?: string | null | undefined;
8666
+ addressLine3?: string | null | undefined;
8667
+ postcodeOrZip?: string | null | undefined;
8668
+ }, {
8669
+ country: string;
8670
+ state: string;
8671
+ addressType: "INTERNATIONAL";
8672
+ district2: string;
8673
+ cityOrTown?: string | null | undefined;
8674
+ addressLine1?: string | null | undefined;
8675
+ addressLine2?: string | null | undefined;
8676
+ addressLine3?: string | null | undefined;
8677
+ postcodeOrZip?: string | null | undefined;
8678
+ }>]>>>;
8679
+ originalActionId: z.ZodOptional<z.ZodString>;
8680
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8681
+ }, {
8682
+ type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
8683
+ }>, "strip", z.ZodTypeAny, {
8684
+ type: "MARKED_AS_DUPLICATE";
8685
+ transactionId: string;
8686
+ declaration: Record<string, string | number | boolean | {
7075
8687
  type: string;
7076
8688
  filename: string;
7077
8689
  originalFilename: string;
@@ -7108,11 +8720,91 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7108
8720
  option: string;
7109
8721
  filename: string;
7110
8722
  originalFilename: string;
7111
- }[]>;
8723
+ }[] | [string, string] | undefined>;
7112
8724
  eventId: string;
8725
+ annotation?: Record<string, string | number | boolean | {
8726
+ type: string;
8727
+ filename: string;
8728
+ originalFilename: string;
8729
+ } | {
8730
+ country: string;
8731
+ district: string;
8732
+ addressType: "DOMESTIC";
8733
+ province: string;
8734
+ urbanOrRural: "URBAN";
8735
+ number?: string | null | undefined;
8736
+ town?: string | null | undefined;
8737
+ residentialArea?: string | null | undefined;
8738
+ street?: string | null | undefined;
8739
+ zipCode?: string | null | undefined;
8740
+ } | {
8741
+ country: string;
8742
+ district: string;
8743
+ addressType: "DOMESTIC";
8744
+ province: string;
8745
+ urbanOrRural: "RURAL";
8746
+ village?: string | null | undefined;
8747
+ } | {
8748
+ country: string;
8749
+ state: string;
8750
+ addressType: "INTERNATIONAL";
8751
+ district2: string;
8752
+ cityOrTown?: string | null | undefined;
8753
+ addressLine1?: string | null | undefined;
8754
+ addressLine2?: string | null | undefined;
8755
+ addressLine3?: string | null | undefined;
8756
+ postcodeOrZip?: string | null | undefined;
8757
+ } | {
8758
+ type: string;
8759
+ option: string;
8760
+ filename: string;
8761
+ originalFilename: string;
8762
+ }[] | [string, string] | undefined> | undefined;
8763
+ originalActionId?: string | undefined;
8764
+ keepAssignment?: boolean | undefined;
8765
+ }, {
7113
8766
  transactionId: string;
7114
- type?: "REJECT" | undefined;
7115
- metadata?: Record<string, string | number | boolean | {
8767
+ eventId: string;
8768
+ type?: "MARKED_AS_DUPLICATE" | undefined;
8769
+ declaration?: Record<string, string | number | boolean | {
8770
+ type: string;
8771
+ filename: string;
8772
+ originalFilename: string;
8773
+ } | {
8774
+ country: string;
8775
+ district: string;
8776
+ addressType: "DOMESTIC";
8777
+ province: string;
8778
+ urbanOrRural: "URBAN";
8779
+ number?: string | null | undefined;
8780
+ town?: string | null | undefined;
8781
+ residentialArea?: string | null | undefined;
8782
+ street?: string | null | undefined;
8783
+ zipCode?: string | null | undefined;
8784
+ } | {
8785
+ country: string;
8786
+ district: string;
8787
+ addressType: "DOMESTIC";
8788
+ province: string;
8789
+ urbanOrRural: "RURAL";
8790
+ village?: string | null | undefined;
8791
+ } | {
8792
+ country: string;
8793
+ state: string;
8794
+ addressType: "INTERNATIONAL";
8795
+ district2: string;
8796
+ cityOrTown?: string | null | undefined;
8797
+ addressLine1?: string | null | undefined;
8798
+ addressLine2?: string | null | undefined;
8799
+ addressLine3?: string | null | undefined;
8800
+ postcodeOrZip?: string | null | undefined;
8801
+ } | {
8802
+ type: string;
8803
+ option: string;
8804
+ filename: string;
8805
+ originalFilename: string;
8806
+ }[] | [string, string] | undefined> | undefined;
8807
+ annotation?: Record<string, string | number | boolean | {
7116
8808
  type: string;
7117
8809
  filename: string;
7118
8810
  originalFilename: string;
@@ -7149,11 +8841,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7149
8841
  option: string;
7150
8842
  filename: string;
7151
8843
  originalFilename: string;
7152
- }[]> | undefined;
8844
+ }[] | [string, string] | undefined> | undefined;
8845
+ originalActionId?: string | undefined;
8846
+ keepAssignment?: boolean | undefined;
7153
8847
  }>, z.ZodObject<z.objectUtil.extendShape<{
7154
8848
  eventId: z.ZodString;
7155
8849
  transactionId: z.ZodString;
7156
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8850
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7157
8851
  filename: z.ZodString;
7158
8852
  originalFilename: z.ZodString;
7159
8853
  type: z.ZodString;
@@ -7236,7 +8930,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7236
8930
  province: string;
7237
8931
  urbanOrRural: "RURAL";
7238
8932
  village?: string | null | undefined;
7239
- }>, z.ZodObject<{
8933
+ }>, z.ZodUndefined, z.ZodObject<{
7240
8934
  country: z.ZodString;
7241
8935
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7242
8936
  state: z.ZodString;
@@ -7266,8 +8960,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7266
8960
  addressLine2?: string | null | undefined;
7267
8961
  addressLine3?: string | null | undefined;
7268
8962
  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<{
8963
+ }>]>>>;
8964
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7271
8965
  filename: z.ZodString;
7272
8966
  originalFilename: z.ZodString;
7273
8967
  type: z.ZodString;
@@ -7350,7 +9044,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7350
9044
  province: string;
7351
9045
  urbanOrRural: "RURAL";
7352
9046
  village?: string | null | undefined;
7353
- }>, z.ZodObject<{
9047
+ }>, z.ZodUndefined, z.ZodObject<{
7354
9048
  country: z.ZodString;
7355
9049
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7356
9050
  state: z.ZodString;
@@ -7381,11 +9075,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7381
9075
  addressLine3?: string | null | undefined;
7382
9076
  postcodeOrZip?: string | null | undefined;
7383
9077
  }>]>>>;
9078
+ originalActionId: z.ZodOptional<z.ZodString>;
9079
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7384
9080
  }, {
7385
- type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
9081
+ type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
7386
9082
  }>, "strip", z.ZodTypeAny, {
7387
- type: "MARKED_AS_DUPLICATE";
7388
- data: Record<string, string | number | boolean | {
9083
+ type: "ARCHIVE";
9084
+ transactionId: string;
9085
+ declaration: Record<string, string | number | boolean | {
7389
9086
  type: string;
7390
9087
  filename: string;
7391
9088
  originalFilename: string;
@@ -7422,10 +9119,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7422
9119
  option: string;
7423
9120
  filename: string;
7424
9121
  originalFilename: string;
7425
- }[]>;
9122
+ }[] | [string, string] | undefined>;
7426
9123
  eventId: string;
7427
- transactionId: string;
7428
- metadata?: Record<string, string | number | boolean | {
9124
+ annotation?: Record<string, string | number | boolean | {
7429
9125
  type: string;
7430
9126
  filename: string;
7431
9127
  originalFilename: string;
@@ -7462,9 +9158,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7462
9158
  option: string;
7463
9159
  filename: string;
7464
9160
  originalFilename: string;
7465
- }[]> | undefined;
9161
+ }[] | [string, string] | undefined> | undefined;
9162
+ originalActionId?: string | undefined;
9163
+ keepAssignment?: boolean | undefined;
7466
9164
  }, {
7467
- data: Record<string, string | number | boolean | {
9165
+ transactionId: string;
9166
+ eventId: string;
9167
+ type?: "ARCHIVE" | undefined;
9168
+ declaration?: Record<string, string | number | boolean | {
7468
9169
  type: string;
7469
9170
  filename: string;
7470
9171
  originalFilename: string;
@@ -7501,11 +9202,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7501
9202
  option: string;
7502
9203
  filename: string;
7503
9204
  originalFilename: string;
7504
- }[]>;
7505
- eventId: string;
7506
- transactionId: string;
7507
- type?: "MARKED_AS_DUPLICATE" | undefined;
7508
- metadata?: Record<string, string | number | boolean | {
9205
+ }[] | [string, string] | undefined> | undefined;
9206
+ annotation?: Record<string, string | number | boolean | {
7509
9207
  type: string;
7510
9208
  filename: string;
7511
9209
  originalFilename: string;
@@ -7542,11 +9240,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7542
9240
  option: string;
7543
9241
  filename: string;
7544
9242
  originalFilename: string;
7545
- }[]> | undefined;
9243
+ }[] | [string, string] | undefined> | undefined;
9244
+ originalActionId?: string | undefined;
9245
+ keepAssignment?: boolean | undefined;
7546
9246
  }>, z.ZodObject<z.objectUtil.extendShape<{
7547
9247
  eventId: z.ZodString;
7548
9248
  transactionId: z.ZodString;
7549
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9249
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7550
9250
  filename: z.ZodString;
7551
9251
  originalFilename: z.ZodString;
7552
9252
  type: z.ZodString;
@@ -7629,7 +9329,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7629
9329
  province: string;
7630
9330
  urbanOrRural: "RURAL";
7631
9331
  village?: string | null | undefined;
7632
- }>, z.ZodObject<{
9332
+ }>, z.ZodUndefined, z.ZodObject<{
7633
9333
  country: z.ZodString;
7634
9334
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7635
9335
  state: z.ZodString;
@@ -7659,8 +9359,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7659
9359
  addressLine2?: string | null | undefined;
7660
9360
  addressLine3?: string | null | undefined;
7661
9361
  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<{
9362
+ }>]>>>;
9363
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7664
9364
  filename: z.ZodString;
7665
9365
  originalFilename: z.ZodString;
7666
9366
  type: z.ZodString;
@@ -7743,7 +9443,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7743
9443
  province: string;
7744
9444
  urbanOrRural: "RURAL";
7745
9445
  village?: string | null | undefined;
7746
- }>, z.ZodObject<{
9446
+ }>, z.ZodUndefined, z.ZodObject<{
7747
9447
  country: z.ZodString;
7748
9448
  addressType: z.ZodLiteral<"INTERNATIONAL">;
7749
9449
  state: z.ZodString;
@@ -7774,11 +9474,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7774
9474
  addressLine3?: string | null | undefined;
7775
9475
  postcodeOrZip?: string | null | undefined;
7776
9476
  }>]>>>;
9477
+ originalActionId: z.ZodOptional<z.ZodString>;
9478
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7777
9479
  }, {
7778
- type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
9480
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
9481
+ assignedTo: z.ZodString;
7779
9482
  }>, "strip", z.ZodTypeAny, {
7780
- type: "ARCHIVE";
7781
- data: Record<string, string | number | boolean | {
9483
+ type: "ASSIGN";
9484
+ transactionId: string;
9485
+ declaration: Record<string, string | number | boolean | {
7782
9486
  type: string;
7783
9487
  filename: string;
7784
9488
  originalFilename: string;
@@ -7815,10 +9519,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7815
9519
  option: string;
7816
9520
  filename: string;
7817
9521
  originalFilename: string;
7818
- }[]>;
9522
+ }[] | [string, string] | undefined>;
9523
+ assignedTo: string;
7819
9524
  eventId: string;
7820
- transactionId: string;
7821
- metadata?: Record<string, string | number | boolean | {
9525
+ annotation?: Record<string, string | number | boolean | {
7822
9526
  type: string;
7823
9527
  filename: string;
7824
9528
  originalFilename: string;
@@ -7855,9 +9559,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7855
9559
  option: string;
7856
9560
  filename: string;
7857
9561
  originalFilename: string;
7858
- }[]> | undefined;
9562
+ }[] | [string, string] | undefined> | undefined;
9563
+ originalActionId?: string | undefined;
9564
+ keepAssignment?: boolean | undefined;
7859
9565
  }, {
7860
- data: Record<string, string | number | boolean | {
9566
+ transactionId: string;
9567
+ assignedTo: string;
9568
+ eventId: string;
9569
+ type?: "ASSIGN" | undefined;
9570
+ declaration?: Record<string, string | number | boolean | {
7861
9571
  type: string;
7862
9572
  filename: string;
7863
9573
  originalFilename: string;
@@ -7894,11 +9604,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7894
9604
  option: string;
7895
9605
  filename: string;
7896
9606
  originalFilename: string;
7897
- }[]>;
7898
- eventId: string;
7899
- transactionId: string;
7900
- type?: "ARCHIVE" | undefined;
7901
- metadata?: Record<string, string | number | boolean | {
9607
+ }[] | [string, string] | undefined> | undefined;
9608
+ annotation?: Record<string, string | number | boolean | {
7902
9609
  type: string;
7903
9610
  filename: string;
7904
9611
  originalFilename: string;
@@ -7935,11 +9642,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7935
9642
  option: string;
7936
9643
  filename: string;
7937
9644
  originalFilename: string;
7938
- }[]> | undefined;
9645
+ }[] | [string, string] | undefined> | undefined;
9646
+ originalActionId?: string | undefined;
9647
+ keepAssignment?: boolean | undefined;
7939
9648
  }>, z.ZodObject<z.objectUtil.extendShape<{
7940
9649
  eventId: z.ZodString;
7941
9650
  transactionId: z.ZodString;
7942
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9651
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7943
9652
  filename: z.ZodString;
7944
9653
  originalFilename: z.ZodString;
7945
9654
  type: z.ZodString;
@@ -8022,7 +9731,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8022
9731
  province: string;
8023
9732
  urbanOrRural: "RURAL";
8024
9733
  village?: string | null | undefined;
8025
- }>, z.ZodObject<{
9734
+ }>, z.ZodUndefined, z.ZodObject<{
8026
9735
  country: z.ZodString;
8027
9736
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8028
9737
  state: z.ZodString;
@@ -8052,8 +9761,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8052
9761
  addressLine2?: string | null | undefined;
8053
9762
  addressLine3?: string | null | undefined;
8054
9763
  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<{
9764
+ }>]>>>;
9765
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8057
9766
  filename: z.ZodString;
8058
9767
  originalFilename: z.ZodString;
8059
9768
  type: z.ZodString;
@@ -8136,7 +9845,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8136
9845
  province: string;
8137
9846
  urbanOrRural: "RURAL";
8138
9847
  village?: string | null | undefined;
8139
- }>, z.ZodObject<{
9848
+ }>, z.ZodUndefined, z.ZodObject<{
8140
9849
  country: z.ZodString;
8141
9850
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8142
9851
  state: z.ZodString;
@@ -8167,12 +9876,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8167
9876
  addressLine3?: string | null | undefined;
8168
9877
  postcodeOrZip?: string | null | undefined;
8169
9878
  }>]>>>;
9879
+ originalActionId: z.ZodOptional<z.ZodString>;
9880
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8170
9881
  }, {
8171
- type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
8172
- assignedTo: z.ZodString;
9882
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
9883
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
8173
9884
  }>, "strip", z.ZodTypeAny, {
8174
- type: "ASSIGN";
8175
- data: Record<string, string | number | boolean | {
9885
+ type: "UNASSIGN";
9886
+ transactionId: string;
9887
+ declaration: Record<string, string | number | boolean | {
8176
9888
  type: string;
8177
9889
  filename: string;
8178
9890
  originalFilename: string;
@@ -8209,11 +9921,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8209
9921
  option: string;
8210
9922
  filename: string;
8211
9923
  originalFilename: string;
8212
- }[]>;
8213
- assignedTo: string;
9924
+ }[] | [string, string] | undefined>;
9925
+ assignedTo: null;
8214
9926
  eventId: string;
8215
- transactionId: string;
8216
- metadata?: Record<string, string | number | boolean | {
9927
+ annotation?: Record<string, string | number | boolean | {
8217
9928
  type: string;
8218
9929
  filename: string;
8219
9930
  originalFilename: string;
@@ -8250,9 +9961,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8250
9961
  option: string;
8251
9962
  filename: string;
8252
9963
  originalFilename: string;
8253
- }[]> | undefined;
9964
+ }[] | [string, string] | undefined> | undefined;
9965
+ originalActionId?: string | undefined;
9966
+ keepAssignment?: boolean | undefined;
8254
9967
  }, {
8255
- data: Record<string, string | number | boolean | {
9968
+ transactionId: string;
9969
+ eventId: string;
9970
+ type?: "UNASSIGN" | undefined;
9971
+ declaration?: Record<string, string | number | boolean | {
8256
9972
  type: string;
8257
9973
  filename: string;
8258
9974
  originalFilename: string;
@@ -8289,12 +10005,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8289
10005
  option: string;
8290
10006
  filename: string;
8291
10007
  originalFilename: string;
8292
- }[]>;
8293
- assignedTo: string;
8294
- eventId: string;
8295
- transactionId: string;
8296
- type?: "ASSIGN" | undefined;
8297
- metadata?: Record<string, string | number | boolean | {
10008
+ }[] | [string, string] | undefined> | undefined;
10009
+ annotation?: Record<string, string | number | boolean | {
8298
10010
  type: string;
8299
10011
  filename: string;
8300
10012
  originalFilename: string;
@@ -8331,11 +10043,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8331
10043
  option: string;
8332
10044
  filename: string;
8333
10045
  originalFilename: string;
8334
- }[]> | undefined;
10046
+ }[] | [string, string] | undefined> | undefined;
10047
+ originalActionId?: string | undefined;
10048
+ assignedTo?: null | undefined;
10049
+ keepAssignment?: boolean | undefined;
8335
10050
  }>, z.ZodObject<z.objectUtil.extendShape<{
8336
10051
  eventId: z.ZodString;
8337
10052
  transactionId: z.ZodString;
8338
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10053
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8339
10054
  filename: z.ZodString;
8340
10055
  originalFilename: z.ZodString;
8341
10056
  type: z.ZodString;
@@ -8418,7 +10133,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8418
10133
  province: string;
8419
10134
  urbanOrRural: "RURAL";
8420
10135
  village?: string | null | undefined;
8421
- }>, z.ZodObject<{
10136
+ }>, z.ZodUndefined, z.ZodObject<{
8422
10137
  country: z.ZodString;
8423
10138
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8424
10139
  state: z.ZodString;
@@ -8448,8 +10163,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8448
10163
  addressLine2?: string | null | undefined;
8449
10164
  addressLine3?: string | null | undefined;
8450
10165
  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<{
10166
+ }>]>>>;
10167
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8453
10168
  filename: z.ZodString;
8454
10169
  originalFilename: z.ZodString;
8455
10170
  type: z.ZodString;
@@ -8532,7 +10247,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8532
10247
  province: string;
8533
10248
  urbanOrRural: "RURAL";
8534
10249
  village?: string | null | undefined;
8535
- }>, z.ZodObject<{
10250
+ }>, z.ZodUndefined, z.ZodObject<{
8536
10251
  country: z.ZodString;
8537
10252
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8538
10253
  state: z.ZodString;
@@ -8563,11 +10278,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8563
10278
  addressLine3?: string | null | undefined;
8564
10279
  postcodeOrZip?: string | null | undefined;
8565
10280
  }>]>>>;
10281
+ originalActionId: z.ZodOptional<z.ZodString>;
10282
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8566
10283
  }, {
8567
- type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
10284
+ type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
8568
10285
  }>, "strip", z.ZodTypeAny, {
8569
- type: "UNASSIGN";
8570
- data: Record<string, string | number | boolean | {
10286
+ type: "PRINT_CERTIFICATE";
10287
+ transactionId: string;
10288
+ declaration: Record<string, string | number | boolean | {
8571
10289
  type: string;
8572
10290
  filename: string;
8573
10291
  originalFilename: string;
@@ -8604,10 +10322,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8604
10322
  option: string;
8605
10323
  filename: string;
8606
10324
  originalFilename: string;
8607
- }[]>;
10325
+ }[] | [string, string] | undefined>;
8608
10326
  eventId: string;
8609
- transactionId: string;
8610
- metadata?: Record<string, string | number | boolean | {
10327
+ annotation?: Record<string, string | number | boolean | {
8611
10328
  type: string;
8612
10329
  filename: string;
8613
10330
  originalFilename: string;
@@ -8644,9 +10361,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8644
10361
  option: string;
8645
10362
  filename: string;
8646
10363
  originalFilename: string;
8647
- }[]> | undefined;
10364
+ }[] | [string, string] | undefined> | undefined;
10365
+ originalActionId?: string | undefined;
10366
+ keepAssignment?: boolean | undefined;
8648
10367
  }, {
8649
- data: Record<string, string | number | boolean | {
10368
+ transactionId: string;
10369
+ eventId: string;
10370
+ type?: "PRINT_CERTIFICATE" | undefined;
10371
+ declaration?: Record<string, string | number | boolean | {
8650
10372
  type: string;
8651
10373
  filename: string;
8652
10374
  originalFilename: string;
@@ -8683,11 +10405,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8683
10405
  option: string;
8684
10406
  filename: string;
8685
10407
  originalFilename: string;
8686
- }[]>;
8687
- eventId: string;
8688
- transactionId: string;
8689
- type?: "UNASSIGN" | undefined;
8690
- metadata?: Record<string, string | number | boolean | {
10408
+ }[] | [string, string] | undefined> | undefined;
10409
+ annotation?: Record<string, string | number | boolean | {
8691
10410
  type: string;
8692
10411
  filename: string;
8693
10412
  originalFilename: string;
@@ -8724,11 +10443,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8724
10443
  option: string;
8725
10444
  filename: string;
8726
10445
  originalFilename: string;
8727
- }[]> | undefined;
10446
+ }[] | [string, string] | undefined> | undefined;
10447
+ originalActionId?: string | undefined;
10448
+ keepAssignment?: boolean | undefined;
8728
10449
  }>, z.ZodObject<z.objectUtil.extendShape<{
8729
10450
  eventId: z.ZodString;
8730
10451
  transactionId: z.ZodString;
8731
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10452
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8732
10453
  filename: z.ZodString;
8733
10454
  originalFilename: z.ZodString;
8734
10455
  type: z.ZodString;
@@ -8811,7 +10532,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8811
10532
  province: string;
8812
10533
  urbanOrRural: "RURAL";
8813
10534
  village?: string | null | undefined;
8814
- }>, z.ZodObject<{
10535
+ }>, z.ZodUndefined, z.ZodObject<{
8815
10536
  country: z.ZodString;
8816
10537
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8817
10538
  state: z.ZodString;
@@ -8841,8 +10562,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8841
10562
  addressLine2?: string | null | undefined;
8842
10563
  addressLine3?: string | null | undefined;
8843
10564
  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<{
10565
+ }>]>>>;
10566
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8846
10567
  filename: z.ZodString;
8847
10568
  originalFilename: z.ZodString;
8848
10569
  type: z.ZodString;
@@ -8925,7 +10646,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8925
10646
  province: string;
8926
10647
  urbanOrRural: "RURAL";
8927
10648
  village?: string | null | undefined;
8928
- }>, z.ZodObject<{
10649
+ }>, z.ZodUndefined, z.ZodObject<{
8929
10650
  country: z.ZodString;
8930
10651
  addressType: z.ZodLiteral<"INTERNATIONAL">;
8931
10652
  state: z.ZodString;
@@ -8956,11 +10677,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8956
10677
  addressLine3?: string | null | undefined;
8957
10678
  postcodeOrZip?: string | null | undefined;
8958
10679
  }>]>>>;
10680
+ originalActionId: z.ZodOptional<z.ZodString>;
10681
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8959
10682
  }, {
8960
- type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
10683
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
8961
10684
  }>, "strip", z.ZodTypeAny, {
8962
- type: "PRINT_CERTIFICATE";
8963
- data: Record<string, string | number | boolean | {
10685
+ type: "REQUEST_CORRECTION";
10686
+ transactionId: string;
10687
+ declaration: Record<string, string | number | boolean | {
8964
10688
  type: string;
8965
10689
  filename: string;
8966
10690
  originalFilename: string;
@@ -8997,10 +10721,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8997
10721
  option: string;
8998
10722
  filename: string;
8999
10723
  originalFilename: string;
9000
- }[]>;
10724
+ }[] | [string, string] | undefined>;
9001
10725
  eventId: string;
9002
- transactionId: string;
9003
- metadata?: Record<string, string | number | boolean | {
10726
+ annotation?: Record<string, string | number | boolean | {
9004
10727
  type: string;
9005
10728
  filename: string;
9006
10729
  originalFilename: string;
@@ -9037,9 +10760,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9037
10760
  option: string;
9038
10761
  filename: string;
9039
10762
  originalFilename: string;
9040
- }[]> | undefined;
10763
+ }[] | [string, string] | undefined> | undefined;
10764
+ originalActionId?: string | undefined;
10765
+ keepAssignment?: boolean | undefined;
9041
10766
  }, {
9042
- data: Record<string, string | number | boolean | {
10767
+ transactionId: string;
10768
+ eventId: string;
10769
+ type?: "REQUEST_CORRECTION" | undefined;
10770
+ declaration?: Record<string, string | number | boolean | {
9043
10771
  type: string;
9044
10772
  filename: string;
9045
10773
  originalFilename: string;
@@ -9076,11 +10804,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9076
10804
  option: string;
9077
10805
  filename: string;
9078
10806
  originalFilename: string;
9079
- }[]>;
9080
- eventId: string;
9081
- transactionId: string;
9082
- type?: "PRINT_CERTIFICATE" | undefined;
9083
- metadata?: Record<string, string | number | boolean | {
10807
+ }[] | [string, string] | undefined> | undefined;
10808
+ annotation?: Record<string, string | number | boolean | {
9084
10809
  type: string;
9085
10810
  filename: string;
9086
10811
  originalFilename: string;
@@ -9117,11 +10842,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9117
10842
  option: string;
9118
10843
  filename: string;
9119
10844
  originalFilename: string;
9120
- }[]> | undefined;
10845
+ }[] | [string, string] | undefined> | undefined;
10846
+ originalActionId?: string | undefined;
10847
+ keepAssignment?: boolean | undefined;
9121
10848
  }>, z.ZodObject<z.objectUtil.extendShape<{
9122
10849
  eventId: z.ZodString;
9123
10850
  transactionId: z.ZodString;
9124
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10851
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9125
10852
  filename: z.ZodString;
9126
10853
  originalFilename: z.ZodString;
9127
10854
  type: z.ZodString;
@@ -9204,7 +10931,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9204
10931
  province: string;
9205
10932
  urbanOrRural: "RURAL";
9206
10933
  village?: string | null | undefined;
9207
- }>, z.ZodObject<{
10934
+ }>, z.ZodUndefined, z.ZodObject<{
9208
10935
  country: z.ZodString;
9209
10936
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9210
10937
  state: z.ZodString;
@@ -9234,8 +10961,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9234
10961
  addressLine2?: string | null | undefined;
9235
10962
  addressLine3?: string | null | undefined;
9236
10963
  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<{
10964
+ }>]>>>;
10965
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9239
10966
  filename: z.ZodString;
9240
10967
  originalFilename: z.ZodString;
9241
10968
  type: z.ZodString;
@@ -9318,7 +11045,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9318
11045
  province: string;
9319
11046
  urbanOrRural: "RURAL";
9320
11047
  village?: string | null | undefined;
9321
- }>, z.ZodObject<{
11048
+ }>, z.ZodUndefined, z.ZodObject<{
9322
11049
  country: z.ZodString;
9323
11050
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9324
11051
  state: z.ZodString;
@@ -9349,11 +11076,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9349
11076
  addressLine3?: string | null | undefined;
9350
11077
  postcodeOrZip?: string | null | undefined;
9351
11078
  }>]>>>;
11079
+ originalActionId: z.ZodOptional<z.ZodString>;
11080
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9352
11081
  }, {
9353
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
11082
+ requestId: z.ZodString;
11083
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
9354
11084
  }>, "strip", z.ZodTypeAny, {
9355
- type: "REQUEST_CORRECTION";
9356
- data: Record<string, string | number | boolean | {
11085
+ type: "REJECT_CORRECTION";
11086
+ transactionId: string;
11087
+ declaration: Record<string, string | number | boolean | {
9357
11088
  type: string;
9358
11089
  filename: string;
9359
11090
  originalFilename: string;
@@ -9390,10 +11121,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9390
11121
  option: string;
9391
11122
  filename: string;
9392
11123
  originalFilename: string;
9393
- }[]>;
11124
+ }[] | [string, string] | undefined>;
11125
+ requestId: string;
9394
11126
  eventId: string;
9395
- transactionId: string;
9396
- metadata?: Record<string, string | number | boolean | {
11127
+ annotation?: Record<string, string | number | boolean | {
9397
11128
  type: string;
9398
11129
  filename: string;
9399
11130
  originalFilename: string;
@@ -9430,9 +11161,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9430
11161
  option: string;
9431
11162
  filename: string;
9432
11163
  originalFilename: string;
9433
- }[]> | undefined;
11164
+ }[] | [string, string] | undefined> | undefined;
11165
+ originalActionId?: string | undefined;
11166
+ keepAssignment?: boolean | undefined;
9434
11167
  }, {
9435
- data: Record<string, string | number | boolean | {
11168
+ transactionId: string;
11169
+ requestId: string;
11170
+ eventId: string;
11171
+ type?: "REJECT_CORRECTION" | undefined;
11172
+ declaration?: Record<string, string | number | boolean | {
9436
11173
  type: string;
9437
11174
  filename: string;
9438
11175
  originalFilename: string;
@@ -9469,11 +11206,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9469
11206
  option: string;
9470
11207
  filename: string;
9471
11208
  originalFilename: string;
9472
- }[]>;
9473
- eventId: string;
9474
- transactionId: string;
9475
- type?: "REQUEST_CORRECTION" | undefined;
9476
- metadata?: Record<string, string | number | boolean | {
11209
+ }[] | [string, string] | undefined> | undefined;
11210
+ annotation?: Record<string, string | number | boolean | {
9477
11211
  type: string;
9478
11212
  filename: string;
9479
11213
  originalFilename: string;
@@ -9510,11 +11244,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9510
11244
  option: string;
9511
11245
  filename: string;
9512
11246
  originalFilename: string;
9513
- }[]> | undefined;
11247
+ }[] | [string, string] | undefined> | undefined;
11248
+ originalActionId?: string | undefined;
11249
+ keepAssignment?: boolean | undefined;
9514
11250
  }>, z.ZodObject<z.objectUtil.extendShape<{
9515
11251
  eventId: z.ZodString;
9516
11252
  transactionId: z.ZodString;
9517
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11253
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9518
11254
  filename: z.ZodString;
9519
11255
  originalFilename: z.ZodString;
9520
11256
  type: z.ZodString;
@@ -9597,7 +11333,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9597
11333
  province: string;
9598
11334
  urbanOrRural: "RURAL";
9599
11335
  village?: string | null | undefined;
9600
- }>, z.ZodObject<{
11336
+ }>, z.ZodUndefined, z.ZodObject<{
9601
11337
  country: z.ZodString;
9602
11338
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9603
11339
  state: z.ZodString;
@@ -9627,8 +11363,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9627
11363
  addressLine2?: string | null | undefined;
9628
11364
  addressLine3?: string | null | undefined;
9629
11365
  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<{
11366
+ }>]>>>;
11367
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9632
11368
  filename: z.ZodString;
9633
11369
  originalFilename: z.ZodString;
9634
11370
  type: z.ZodString;
@@ -9711,7 +11447,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9711
11447
  province: string;
9712
11448
  urbanOrRural: "RURAL";
9713
11449
  village?: string | null | undefined;
9714
- }>, z.ZodObject<{
11450
+ }>, z.ZodUndefined, z.ZodObject<{
9715
11451
  country: z.ZodString;
9716
11452
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9717
11453
  state: z.ZodString;
@@ -9742,12 +11478,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9742
11478
  addressLine3?: string | null | undefined;
9743
11479
  postcodeOrZip?: string | null | undefined;
9744
11480
  }>]>>>;
11481
+ originalActionId: z.ZodOptional<z.ZodString>;
11482
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9745
11483
  }, {
9746
11484
  requestId: z.ZodString;
9747
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
11485
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
9748
11486
  }>, "strip", z.ZodTypeAny, {
9749
- type: "REJECT_CORRECTION";
9750
- data: Record<string, string | number | boolean | {
11487
+ type: "APPROVE_CORRECTION";
11488
+ transactionId: string;
11489
+ declaration: Record<string, string | number | boolean | {
9751
11490
  type: string;
9752
11491
  filename: string;
9753
11492
  originalFilename: string;
@@ -9784,11 +11523,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9784
11523
  option: string;
9785
11524
  filename: string;
9786
11525
  originalFilename: string;
9787
- }[]>;
11526
+ }[] | [string, string] | undefined>;
9788
11527
  requestId: string;
9789
11528
  eventId: string;
9790
- transactionId: string;
9791
- metadata?: Record<string, string | number | boolean | {
11529
+ annotation?: Record<string, string | number | boolean | {
9792
11530
  type: string;
9793
11531
  filename: string;
9794
11532
  originalFilename: string;
@@ -9825,9 +11563,15 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9825
11563
  option: string;
9826
11564
  filename: string;
9827
11565
  originalFilename: string;
9828
- }[]> | undefined;
11566
+ }[] | [string, string] | undefined> | undefined;
11567
+ originalActionId?: string | undefined;
11568
+ keepAssignment?: boolean | undefined;
9829
11569
  }, {
9830
- data: Record<string, string | number | boolean | {
11570
+ transactionId: string;
11571
+ requestId: string;
11572
+ eventId: string;
11573
+ type?: "APPROVE_CORRECTION" | undefined;
11574
+ declaration?: Record<string, string | number | boolean | {
9831
11575
  type: string;
9832
11576
  filename: string;
9833
11577
  originalFilename: string;
@@ -9864,12 +11608,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9864
11608
  option: string;
9865
11609
  filename: string;
9866
11610
  originalFilename: string;
9867
- }[]>;
9868
- requestId: string;
9869
- eventId: string;
9870
- transactionId: string;
9871
- type?: "REJECT_CORRECTION" | undefined;
9872
- metadata?: Record<string, string | number | boolean | {
11611
+ }[] | [string, string] | undefined> | undefined;
11612
+ annotation?: Record<string, string | number | boolean | {
9873
11613
  type: string;
9874
11614
  filename: string;
9875
11615
  originalFilename: string;
@@ -9906,11 +11646,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9906
11646
  option: string;
9907
11647
  filename: string;
9908
11648
  originalFilename: string;
9909
- }[]> | undefined;
11649
+ }[] | [string, string] | undefined> | undefined;
11650
+ originalActionId?: string | undefined;
11651
+ keepAssignment?: boolean | undefined;
9910
11652
  }>, z.ZodObject<z.objectUtil.extendShape<{
9911
11653
  eventId: z.ZodString;
9912
11654
  transactionId: z.ZodString;
9913
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11655
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9914
11656
  filename: z.ZodString;
9915
11657
  originalFilename: z.ZodString;
9916
11658
  type: z.ZodString;
@@ -9993,7 +11735,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9993
11735
  province: string;
9994
11736
  urbanOrRural: "RURAL";
9995
11737
  village?: string | null | undefined;
9996
- }>, z.ZodObject<{
11738
+ }>, z.ZodUndefined, z.ZodObject<{
9997
11739
  country: z.ZodString;
9998
11740
  addressType: z.ZodLiteral<"INTERNATIONAL">;
9999
11741
  state: z.ZodString;
@@ -10023,8 +11765,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10023
11765
  addressLine2?: string | null | undefined;
10024
11766
  addressLine3?: string | null | undefined;
10025
11767
  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<{
11768
+ }>]>>>;
11769
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10028
11770
  filename: z.ZodString;
10029
11771
  originalFilename: z.ZodString;
10030
11772
  type: z.ZodString;
@@ -10107,7 +11849,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10107
11849
  province: string;
10108
11850
  urbanOrRural: "RURAL";
10109
11851
  village?: string | null | undefined;
10110
- }>, z.ZodObject<{
11852
+ }>, z.ZodUndefined, z.ZodObject<{
10111
11853
  country: z.ZodString;
10112
11854
  addressType: z.ZodLiteral<"INTERNATIONAL">;
10113
11855
  state: z.ZodString;
@@ -10138,12 +11880,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10138
11880
  addressLine3?: string | null | undefined;
10139
11881
  postcodeOrZip?: string | null | undefined;
10140
11882
  }>]>>>;
11883
+ originalActionId: z.ZodOptional<z.ZodString>;
11884
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
10141
11885
  }, {
10142
- requestId: z.ZodString;
10143
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
11886
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
10144
11887
  }>, "strip", z.ZodTypeAny, {
10145
- type: "APPROVE_CORRECTION";
10146
- data: Record<string, string | number | boolean | {
11888
+ type: "READ";
11889
+ transactionId: string;
11890
+ declaration: Record<string, string | number | boolean | {
10147
11891
  type: string;
10148
11892
  filename: string;
10149
11893
  originalFilename: string;
@@ -10180,11 +11924,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10180
11924
  option: string;
10181
11925
  filename: string;
10182
11926
  originalFilename: string;
10183
- }[]>;
10184
- requestId: string;
11927
+ }[] | [string, string] | undefined>;
10185
11928
  eventId: string;
10186
- transactionId: string;
10187
- metadata?: Record<string, string | number | boolean | {
11929
+ annotation?: Record<string, string | number | boolean | {
10188
11930
  type: string;
10189
11931
  filename: string;
10190
11932
  originalFilename: string;
@@ -10221,9 +11963,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10221
11963
  option: string;
10222
11964
  filename: string;
10223
11965
  originalFilename: string;
10224
- }[]> | undefined;
11966
+ }[] | [string, string] | undefined> | undefined;
11967
+ originalActionId?: string | undefined;
11968
+ keepAssignment?: boolean | undefined;
10225
11969
  }, {
10226
- data: Record<string, string | number | boolean | {
11970
+ transactionId: string;
11971
+ eventId: string;
11972
+ type?: "READ" | undefined;
11973
+ declaration?: Record<string, string | number | boolean | {
10227
11974
  type: string;
10228
11975
  filename: string;
10229
11976
  originalFilename: string;
@@ -10260,12 +12007,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10260
12007
  option: string;
10261
12008
  filename: string;
10262
12009
  originalFilename: string;
10263
- }[]>;
10264
- requestId: string;
10265
- eventId: string;
10266
- transactionId: string;
10267
- type?: "APPROVE_CORRECTION" | undefined;
10268
- metadata?: Record<string, string | number | boolean | {
12010
+ }[] | [string, string] | undefined> | undefined;
12011
+ annotation?: Record<string, string | number | boolean | {
10269
12012
  type: string;
10270
12013
  filename: string;
10271
12014
  originalFilename: string;
@@ -10302,7 +12045,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10302
12045
  option: string;
10303
12046
  filename: string;
10304
12047
  originalFilename: string;
10305
- }[]> | undefined;
12048
+ }[] | [string, string] | undefined> | undefined;
12049
+ originalActionId?: string | undefined;
12050
+ keepAssignment?: boolean | undefined;
10306
12051
  }>]>;
10307
12052
  export type ActionInput = z.input<typeof ActionInput>;
10308
12053
  export type ActionInputWithType = z.infer<typeof ActionInput>;