@opencrvs/toolkit 1.8.0-rc.f9911ed → 1.8.0-rc.f9d33b7

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 (38) hide show
  1. package/README.md +1 -1
  2. package/dist/commons/api/router.d.ts +10101 -14872
  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 +85214 -5717
  6. package/dist/commons/events/ActionDocument.d.ts +7706 -295
  7. package/dist/commons/events/ActionInput.d.ts +2164 -419
  8. package/dist/commons/events/ActionType.d.ts +26 -16
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +371 -25
  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/Draft.d.ts +75 -45
  13. package/dist/commons/events/EventConfig.d.ts +40486 -2985
  14. package/dist/commons/events/EventConfigInput.d.ts +5 -2
  15. package/dist/commons/events/EventDocument.d.ts +1027 -379
  16. package/dist/commons/events/EventIndex.d.ts +921 -7
  17. package/dist/commons/events/EventInput.d.ts +13 -0
  18. package/dist/commons/events/EventMetadata.d.ts +16 -3
  19. package/dist/commons/events/FieldConfig.d.ts +3702 -757
  20. package/dist/commons/events/FieldType.d.ts +1 -2
  21. package/dist/commons/events/FieldValue.d.ts +1 -1
  22. package/dist/commons/events/FormConfig.d.ts +38914 -339
  23. package/dist/commons/events/PageConfig.d.ts +9803 -0
  24. package/dist/commons/events/SummaryConfig.d.ts +81 -42
  25. package/dist/commons/events/TemplateConfig.d.ts +5 -5
  26. package/dist/commons/events/User.d.ts +5 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +44 -20
  28. package/dist/commons/events/defineConfig.d.ts +6758 -485
  29. package/dist/commons/events/event.d.ts +25 -0
  30. package/dist/commons/events/field.d.ts +68 -0
  31. package/dist/commons/events/index.d.ts +5 -1
  32. package/dist/commons/events/scopes.d.ts +26 -0
  33. package/dist/commons/events/test.utils.d.ts +63 -321
  34. package/dist/commons/events/utils.d.ts +3423 -179
  35. package/dist/commons/events/utils.test.d.ts +2 -0
  36. package/dist/conditionals/index.js +191 -120
  37. package/dist/events/index.js +1855 -1187
  38. 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
6
6
  filename: z.ZodString;
7
7
  originalFilename: z.ZodString;
8
8
  type: z.ZodString;
@@ -115,8 +115,8 @@ export declare const BaseActionInput: z.ZodObject<{
115
115
  addressLine2?: string | null | undefined;
116
116
  addressLine3?: string | null | undefined;
117
117
  postcodeOrZip?: string | null | undefined;
118
- }>]>>;
119
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
118
+ }>]>>>;
119
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
120
120
  filename: z.ZodString;
121
121
  originalFilename: z.ZodString;
122
122
  type: z.ZodString;
@@ -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;
@@ -270,8 +273,7 @@ export declare const BaseActionInput: z.ZodObject<{
270
273
  originalFilename: string;
271
274
  }[] | 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;
@@ -309,8 +311,12 @@ export declare const BaseActionInput: z.ZodObject<{
309
311
  filename: string;
310
312
  originalFilename: string;
311
313
  }[] | 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
- }[] | undefined>;
351
- eventId: string;
352
- transactionId: string;
353
- metadata?: Record<string, string | number | boolean | {
356
+ }[] | undefined> | undefined;
357
+ annotation?: Record<string, string | number | boolean | {
354
358
  type: string;
355
359
  filename: string;
356
360
  originalFilename: string;
@@ -388,11 +392,13 @@ export declare const BaseActionInput: z.ZodObject<{
388
392
  filename: string;
389
393
  originalFilename: string;
390
394
  }[] | undefined> | undefined;
395
+ originalActionId?: string | undefined;
396
+ keepAssignment?: boolean | undefined;
391
397
  }>;
392
398
  export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
393
399
  eventId: z.ZodString;
394
400
  transactionId: z.ZodString;
395
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
401
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
396
402
  filename: z.ZodString;
397
403
  originalFilename: z.ZodString;
398
404
  type: z.ZodString;
@@ -505,8 +511,8 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
505
511
  addressLine2?: string | null | undefined;
506
512
  addressLine3?: string | null | undefined;
507
513
  postcodeOrZip?: string | null | undefined;
508
- }>]>>;
509
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
514
+ }>]>>>;
515
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
510
516
  filename: z.ZodString;
511
517
  originalFilename: z.ZodString;
512
518
  type: z.ZodString;
@@ -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;
@@ -672,13 +672,8 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
672
672
  filename: string;
673
673
  originalFilename: string;
674
674
  }[] | undefined>;
675
- identifiers: {
676
- trackingId: string;
677
- registrationNumber: string;
678
- };
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;
@@ -716,8 +711,14 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
716
711
  filename: string;
717
712
  originalFilename: string;
718
713
  }[] | undefined> | undefined;
714
+ originalActionId?: string | undefined;
715
+ registrationNumber?: string | undefined;
716
+ keepAssignment?: boolean | undefined;
719
717
  }, {
720
- data: Record<string, string | number | boolean | {
718
+ 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
- }[] | undefined>;
758
- identifiers: {
759
- trackingId: string;
760
- registrationNumber: string;
761
- };
762
- eventId: string;
763
- transactionId: string;
764
- type?: "REGISTER" | undefined;
765
- metadata?: Record<string, string | number | boolean | {
758
+ }[] | undefined> | undefined;
759
+ annotation?: Record<string, string | number | boolean | {
766
760
  type: string;
767
761
  filename: string;
768
762
  originalFilename: string;
@@ -800,12 +794,15 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
800
794
  filename: string;
801
795
  originalFilename: string;
802
796
  }[] | undefined> | undefined;
797
+ originalActionId?: string | undefined;
798
+ registrationNumber?: string | undefined;
799
+ keepAssignment?: boolean | undefined;
803
800
  }>;
804
801
  export type RegisterActionInput = z.infer<typeof RegisterActionInput>;
805
802
  export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
806
803
  eventId: z.ZodString;
807
804
  transactionId: z.ZodString;
808
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
805
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
809
806
  filename: z.ZodString;
810
807
  originalFilename: z.ZodString;
811
808
  type: z.ZodString;
@@ -918,8 +915,8 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
918
915
  addressLine2?: string | null | undefined;
919
916
  addressLine3?: string | null | undefined;
920
917
  postcodeOrZip?: string | null | undefined;
921
- }>]>>;
922
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
918
+ }>]>>>;
919
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
923
920
  filename: z.ZodString;
924
921
  originalFilename: z.ZodString;
925
922
  type: z.ZodString;
@@ -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;
@@ -1077,9 +1077,8 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1077
1077
  originalFilename: string;
1078
1078
  }[] | 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;
@@ -1117,8 +1116,14 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1117
1116
  filename: string;
1118
1117
  originalFilename: string;
1119
1118
  }[] | 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
- }[] | undefined>;
1159
- eventId: string;
1160
- transactionId: string;
1161
- duplicates: string[];
1162
- type?: "VALIDATE" | undefined;
1163
- metadata?: Record<string, string | number | boolean | {
1163
+ }[] | undefined> | undefined;
1164
+ annotation?: Record<string, string | number | boolean | {
1164
1165
  type: string;
1165
1166
  filename: string;
1166
1167
  originalFilename: string;
@@ -1198,12 +1199,14 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1198
1199
  filename: string;
1199
1200
  originalFilename: string;
1200
1201
  }[] | undefined> | undefined;
1202
+ originalActionId?: string | undefined;
1203
+ keepAssignment?: boolean | undefined;
1201
1204
  }>;
1202
1205
  export type ValidateActionInput = z.infer<typeof ValidateActionInput>;
1203
1206
  export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1204
1207
  eventId: z.ZodString;
1205
1208
  transactionId: z.ZodString;
1206
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1209
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1207
1210
  filename: z.ZodString;
1208
1211
  originalFilename: z.ZodString;
1209
1212
  type: z.ZodString;
@@ -1316,8 +1319,8 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1316
1319
  addressLine2?: string | null | undefined;
1317
1320
  addressLine3?: string | null | undefined;
1318
1321
  postcodeOrZip?: string | null | undefined;
1319
- }>]>>;
1320
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1322
+ }>]>>>;
1323
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1321
1324
  filename: z.ZodString;
1322
1325
  originalFilename: z.ZodString;
1323
1326
  type: z.ZodString;
@@ -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;
@@ -1474,8 +1480,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1474
1480
  originalFilename: string;
1475
1481
  }[] | 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;
@@ -1513,8 +1518,13 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1513
1518
  filename: string;
1514
1519
  originalFilename: string;
1515
1520
  }[] | 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
- }[] | undefined>;
1555
- eventId: string;
1556
- transactionId: string;
1557
- type?: "NOTIFY" | undefined;
1558
- metadata?: Record<string, string | number | boolean | {
1564
+ }[] | undefined> | undefined;
1565
+ annotation?: Record<string, string | number | boolean | {
1559
1566
  type: string;
1560
1567
  filename: string;
1561
1568
  originalFilename: string;
@@ -1593,12 +1600,14 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1593
1600
  filename: string;
1594
1601
  originalFilename: string;
1595
1602
  }[] | undefined> | undefined;
1603
+ originalActionId?: string | undefined;
1604
+ keepAssignment?: boolean | undefined;
1596
1605
  }>;
1597
1606
  export type NotifyActionInput = z.infer<typeof NotifyActionInput>;
1598
1607
  export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1599
1608
  eventId: z.ZodString;
1600
1609
  transactionId: z.ZodString;
1601
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1610
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1602
1611
  filename: z.ZodString;
1603
1612
  originalFilename: z.ZodString;
1604
1613
  type: z.ZodString;
@@ -1711,8 +1720,8 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1711
1720
  addressLine2?: string | null | undefined;
1712
1721
  addressLine3?: string | null | undefined;
1713
1722
  postcodeOrZip?: string | null | undefined;
1714
- }>]>>;
1715
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1723
+ }>]>>>;
1724
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1716
1725
  filename: z.ZodString;
1717
1726
  originalFilename: z.ZodString;
1718
1727
  type: z.ZodString;
@@ -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;
@@ -1869,8 +1881,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1869
1881
  originalFilename: string;
1870
1882
  }[] | 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;
@@ -1908,8 +1919,13 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1908
1919
  filename: string;
1909
1920
  originalFilename: string;
1910
1921
  }[] | 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
- }[] | undefined>;
1950
- eventId: string;
1951
- transactionId: string;
1952
- type?: "DECLARE" | undefined;
1953
- metadata?: Record<string, string | number | boolean | {
1965
+ }[] | undefined> | undefined;
1966
+ annotation?: Record<string, string | number | boolean | {
1954
1967
  type: string;
1955
1968
  filename: string;
1956
1969
  originalFilename: string;
@@ -1988,11 +2001,13 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1988
2001
  filename: string;
1989
2002
  originalFilename: string;
1990
2003
  }[] | undefined> | undefined;
2004
+ originalActionId?: string | undefined;
2005
+ keepAssignment?: boolean | undefined;
1991
2006
  }>;
1992
2007
  export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1993
2008
  eventId: z.ZodString;
1994
2009
  transactionId: z.ZodString;
1995
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2010
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1996
2011
  filename: z.ZodString;
1997
2012
  originalFilename: z.ZodString;
1998
2013
  type: z.ZodString;
@@ -2105,8 +2120,8 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2105
2120
  addressLine2?: string | null | undefined;
2106
2121
  addressLine3?: string | null | undefined;
2107
2122
  postcodeOrZip?: string | null | undefined;
2108
- }>]>>;
2109
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2123
+ }>]>>>;
2124
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2110
2125
  filename: z.ZodString;
2111
2126
  originalFilename: z.ZodString;
2112
2127
  type: z.ZodString;
@@ -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;
@@ -2263,8 +2281,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2263
2281
  originalFilename: string;
2264
2282
  }[] | 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;
@@ -2302,8 +2319,13 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2302
2319
  filename: string;
2303
2320
  originalFilename: string;
2304
2321
  }[] | 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
- }[] | undefined>;
2344
- eventId: string;
2345
- transactionId: string;
2346
- type?: "PRINT_CERTIFICATE" | undefined;
2347
- metadata?: Record<string, string | number | boolean | {
2365
+ }[] | undefined> | undefined;
2366
+ annotation?: Record<string, string | number | boolean | {
2348
2367
  type: string;
2349
2368
  filename: string;
2350
2369
  originalFilename: string;
@@ -2382,12 +2401,14 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2382
2401
  filename: string;
2383
2402
  originalFilename: string;
2384
2403
  }[] | undefined> | undefined;
2404
+ originalActionId?: string | undefined;
2405
+ keepAssignment?: boolean | undefined;
2385
2406
  }>;
2386
2407
  export type DeclareActionInput = z.infer<typeof DeclareActionInput>;
2387
2408
  export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.extendShape<{
2388
2409
  eventId: z.ZodString;
2389
2410
  transactionId: z.ZodString;
2390
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2411
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2391
2412
  filename: z.ZodString;
2392
2413
  originalFilename: z.ZodString;
2393
2414
  type: z.ZodString;
@@ -2500,8 +2521,8 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2500
2521
  addressLine2?: string | null | undefined;
2501
2522
  addressLine3?: string | null | undefined;
2502
2523
  postcodeOrZip?: string | null | undefined;
2503
- }>]>>;
2504
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2524
+ }>]>>>;
2525
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2505
2526
  filename: z.ZodString;
2506
2527
  originalFilename: z.ZodString;
2507
2528
  type: z.ZodString;
@@ -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;
@@ -2658,8 +2682,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2658
2682
  originalFilename: string;
2659
2683
  }[] | 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;
@@ -2697,8 +2720,13 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2697
2720
  filename: string;
2698
2721
  originalFilename: string;
2699
2722
  }[] | 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
- }[] | undefined>;
2739
- eventId: string;
2740
- transactionId: string;
2741
- type?: "REJECT" | undefined;
2742
- metadata?: Record<string, string | number | boolean | {
2766
+ }[] | undefined> | undefined;
2767
+ annotation?: Record<string, string | number | boolean | {
2743
2768
  type: string;
2744
2769
  filename: string;
2745
2770
  originalFilename: string;
@@ -2777,12 +2802,14 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2777
2802
  filename: string;
2778
2803
  originalFilename: string;
2779
2804
  }[] | undefined> | undefined;
2805
+ originalActionId?: string | undefined;
2806
+ keepAssignment?: boolean | undefined;
2780
2807
  }>;
2781
2808
  export type RejectDeclarationActionInput = z.infer<typeof RejectDeclarationActionInput>;
2782
2809
  export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.extendShape<{
2783
2810
  eventId: z.ZodString;
2784
2811
  transactionId: z.ZodString;
2785
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2812
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2786
2813
  filename: z.ZodString;
2787
2814
  originalFilename: z.ZodString;
2788
2815
  type: z.ZodString;
@@ -2895,8 +2922,8 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2895
2922
  addressLine2?: string | null | undefined;
2896
2923
  addressLine3?: string | null | undefined;
2897
2924
  postcodeOrZip?: string | null | undefined;
2898
- }>]>>;
2899
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2925
+ }>]>>>;
2926
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2900
2927
  filename: z.ZodString;
2901
2928
  originalFilename: z.ZodString;
2902
2929
  type: z.ZodString;
@@ -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;
@@ -3053,8 +3083,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3053
3083
  originalFilename: string;
3054
3084
  }[] | 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;
@@ -3092,8 +3121,13 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3092
3121
  filename: string;
3093
3122
  originalFilename: string;
3094
3123
  }[] | 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
- }[] | undefined>;
3134
- eventId: string;
3135
- transactionId: string;
3136
- type?: "MARKED_AS_DUPLICATE" | undefined;
3137
- metadata?: Record<string, string | number | boolean | {
3167
+ }[] | undefined> | undefined;
3168
+ annotation?: Record<string, string | number | boolean | {
3138
3169
  type: string;
3139
3170
  filename: string;
3140
3171
  originalFilename: string;
@@ -3172,12 +3203,14 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3172
3203
  filename: string;
3173
3204
  originalFilename: string;
3174
3205
  }[] | undefined> | undefined;
3206
+ originalActionId?: string | undefined;
3207
+ keepAssignment?: boolean | undefined;
3175
3208
  }>;
3176
3209
  export type MarkedAsDuplicateActionInput = z.infer<typeof MarkedAsDuplicateActionInput>;
3177
3210
  export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3178
3211
  eventId: z.ZodString;
3179
3212
  transactionId: z.ZodString;
3180
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3213
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3181
3214
  filename: z.ZodString;
3182
3215
  originalFilename: z.ZodString;
3183
3216
  type: z.ZodString;
@@ -3290,8 +3323,8 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3290
3323
  addressLine2?: string | null | undefined;
3291
3324
  addressLine3?: string | null | undefined;
3292
3325
  postcodeOrZip?: string | null | undefined;
3293
- }>]>>;
3294
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3326
+ }>]>>>;
3327
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3295
3328
  filename: z.ZodString;
3296
3329
  originalFilename: z.ZodString;
3297
3330
  type: z.ZodString;
@@ -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;
@@ -3448,8 +3484,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3448
3484
  originalFilename: string;
3449
3485
  }[] | 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;
@@ -3487,8 +3522,13 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3487
3522
  filename: string;
3488
3523
  originalFilename: string;
3489
3524
  }[] | 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
- }[] | undefined>;
3529
- eventId: string;
3530
- transactionId: string;
3531
- type?: "ARCHIVE" | undefined;
3532
- metadata?: Record<string, string | number | boolean | {
3568
+ }[] | undefined> | undefined;
3569
+ annotation?: Record<string, string | number | boolean | {
3533
3570
  type: string;
3534
3571
  filename: string;
3535
3572
  originalFilename: string;
@@ -3567,12 +3604,14 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3567
3604
  filename: string;
3568
3605
  originalFilename: string;
3569
3606
  }[] | undefined> | undefined;
3607
+ originalActionId?: string | undefined;
3608
+ keepAssignment?: boolean | undefined;
3570
3609
  }>;
3571
3610
  export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
3572
- export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
3611
+ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3573
3612
  eventId: z.ZodString;
3574
3613
  transactionId: z.ZodString;
3575
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3614
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3576
3615
  filename: z.ZodString;
3577
3616
  originalFilename: z.ZodString;
3578
3617
  type: z.ZodString;
@@ -3685,8 +3724,8 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3685
3724
  addressLine2?: string | null | undefined;
3686
3725
  addressLine3?: string | null | undefined;
3687
3726
  postcodeOrZip?: string | null | undefined;
3688
- }>]>>;
3689
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3727
+ }>]>>>;
3728
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3690
3729
  filename: z.ZodString;
3691
3730
  originalFilename: z.ZodString;
3692
3731
  type: z.ZodString;
@@ -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;
@@ -3842,9 +3885,9 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3842
3885
  filename: string;
3843
3886
  originalFilename: string;
3844
3887
  }[] | 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;
@@ -3882,8 +3925,14 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3882
3925
  filename: string;
3883
3926
  originalFilename: string;
3884
3927
  }[] | 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
- }[] | undefined>;
3924
- eventId: string;
3925
- transactionId: string;
3926
- type?: "REQUEST_CORRECTION" | undefined;
3927
- metadata?: Record<string, string | number | boolean | {
3972
+ }[] | undefined> | undefined;
3973
+ annotation?: Record<string, string | number | boolean | {
3928
3974
  type: string;
3929
3975
  filename: string;
3930
3976
  originalFilename: string;
@@ -3962,12 +4008,14 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3962
4008
  filename: string;
3963
4009
  originalFilename: string;
3964
4010
  }[] | undefined> | undefined;
4011
+ originalActionId?: string | undefined;
4012
+ keepAssignment?: boolean | undefined;
3965
4013
  }>;
3966
- export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActionInput>;
3967
- export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4014
+ export type AssignActionInput = z.infer<typeof AssignActionInput>;
4015
+ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3968
4016
  eventId: z.ZodString;
3969
4017
  transactionId: z.ZodString;
3970
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4018
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3971
4019
  filename: z.ZodString;
3972
4020
  originalFilename: z.ZodString;
3973
4021
  type: z.ZodString;
@@ -4080,8 +4128,8 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4080
4128
  addressLine2?: string | null | undefined;
4081
4129
  addressLine3?: string | null | undefined;
4082
4130
  postcodeOrZip?: string | null | undefined;
4083
- }>]>>;
4084
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4131
+ }>]>>>;
4132
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4085
4133
  filename: z.ZodString;
4086
4134
  originalFilename: z.ZodString;
4087
4135
  type: z.ZodString;
@@ -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;
@@ -4238,10 +4289,9 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4238
4289
  filename: string;
4239
4290
  originalFilename: string;
4240
4291
  }[] | undefined>;
4241
- requestId: string;
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;
@@ -4279,8 +4329,13 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4279
4329
  filename: string;
4280
4330
  originalFilename: string;
4281
4331
  }[] | 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
- }[] | undefined>;
4321
- requestId: string;
4322
- eventId: string;
4323
- transactionId: string;
4324
- type?: "REJECT_CORRECTION" | undefined;
4325
- metadata?: Record<string, string | number | boolean | {
4375
+ }[] | undefined> | undefined;
4376
+ annotation?: Record<string, string | number | boolean | {
4326
4377
  type: string;
4327
4378
  filename: string;
4328
4379
  originalFilename: string;
@@ -4360,12 +4411,15 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4360
4411
  filename: string;
4361
4412
  originalFilename: string;
4362
4413
  }[] | undefined> | undefined;
4414
+ originalActionId?: string | undefined;
4415
+ assignedTo?: null | undefined;
4416
+ keepAssignment?: boolean | undefined;
4363
4417
  }>;
4364
- export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionInput>;
4365
- export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4418
+ export type UnassignActionInput = z.infer<typeof UnassignActionInput>;
4419
+ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4366
4420
  eventId: z.ZodString;
4367
4421
  transactionId: z.ZodString;
4368
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4422
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4369
4423
  filename: z.ZodString;
4370
4424
  originalFilename: z.ZodString;
4371
4425
  type: z.ZodString;
@@ -4478,8 +4532,8 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4478
4532
  addressLine2?: string | null | undefined;
4479
4533
  addressLine3?: string | null | undefined;
4480
4534
  postcodeOrZip?: string | null | undefined;
4481
- }>]>>;
4482
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4535
+ }>]>>>;
4536
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4483
4537
  filename: z.ZodString;
4484
4538
  originalFilename: z.ZodString;
4485
4539
  type: z.ZodString;
@@ -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;
@@ -4636,10 +4692,8 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4636
4692
  filename: string;
4637
4693
  originalFilename: string;
4638
4694
  }[] | undefined>;
4639
- requestId: string;
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;
@@ -4677,8 +4731,13 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4677
4731
  filename: string;
4678
4732
  originalFilename: string;
4679
4733
  }[] | 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
- }[] | undefined>;
4719
- requestId: string;
4720
- eventId: string;
4721
- transactionId: string;
4722
- type?: "APPROVE_CORRECTION" | undefined;
4723
- metadata?: Record<string, string | number | boolean | {
4777
+ }[] | undefined> | undefined;
4778
+ annotation?: Record<string, string | number | boolean | {
4724
4779
  type: string;
4725
4780
  filename: string;
4726
4781
  originalFilename: string;
@@ -4758,20 +4813,14 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4758
4813
  filename: string;
4759
4814
  originalFilename: string;
4760
4815
  }[] | undefined> | undefined;
4816
+ originalActionId?: string | undefined;
4817
+ keepAssignment?: boolean | undefined;
4761
4818
  }>;
4762
- export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
4763
- /**
4764
- * ActionInput types are used to validate the input data for the action.
4765
- * In our use case, we use it directly with TRPC to validate the input data for the action.
4766
- * using z.literal(ActionType.ACTION).default(ActionType.ACTION) makes them more convenient to use
4767
- * without having to pass the type in the input data, when it's defined in the method.
4768
- *
4769
- * e.g. mutation.declare({createdAt: new Date()}) vs mutation.declare({createdAt: new Date(), type: 'DECLARE'})
4770
- */
4771
- export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
4819
+ export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActionInput>;
4820
+ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4772
4821
  eventId: z.ZodString;
4773
4822
  transactionId: z.ZodString;
4774
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4823
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4775
4824
  filename: z.ZodString;
4776
4825
  originalFilename: z.ZodString;
4777
4826
  type: z.ZodString;
@@ -4884,8 +4933,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4884
4933
  addressLine2?: string | null | undefined;
4885
4934
  addressLine3?: string | null | undefined;
4886
4935
  postcodeOrZip?: string | null | undefined;
4887
- }>]>>;
4888
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4936
+ }>]>>>;
4937
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4889
4938
  filename: z.ZodString;
4890
4939
  originalFilename: z.ZodString;
4891
4940
  type: z.ZodString;
@@ -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;
@@ -5042,10 +5094,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5042
5094
  filename: string;
5043
5095
  originalFilename: string;
5044
5096
  }[] | undefined>;
5045
- createdAtLocation: string;
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;
@@ -5083,8 +5134,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5083
5134
  filename: string;
5084
5135
  originalFilename: string;
5085
5136
  }[] | 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
- }[] | undefined>;
5125
- createdAtLocation: string;
5126
- eventId: string;
5127
- transactionId: string;
5128
- type?: "CREATE" | undefined;
5129
- metadata?: Record<string, string | number | boolean | {
5181
+ }[] | undefined> | undefined;
5182
+ annotation?: Record<string, string | number | boolean | {
5130
5183
  type: string;
5131
5184
  filename: string;
5132
5185
  originalFilename: string;
@@ -5164,10 +5217,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5164
5217
  filename: string;
5165
5218
  originalFilename: string;
5166
5219
  }[] | undefined> | undefined;
5167
- }>, z.ZodObject<z.objectUtil.extendShape<{
5220
+ originalActionId?: string | undefined;
5221
+ keepAssignment?: boolean | undefined;
5222
+ }>;
5223
+ export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionInput>;
5224
+ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
5168
5225
  eventId: z.ZodString;
5169
5226
  transactionId: z.ZodString;
5170
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5227
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5171
5228
  filename: z.ZodString;
5172
5229
  originalFilename: z.ZodString;
5173
5230
  type: z.ZodString;
@@ -5280,8 +5337,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5280
5337
  addressLine2?: string | null | undefined;
5281
5338
  addressLine3?: string | null | undefined;
5282
5339
  postcodeOrZip?: string | null | undefined;
5283
- }>]>>;
5284
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5340
+ }>]>>>;
5341
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5285
5342
  filename: z.ZodString;
5286
5343
  originalFilename: z.ZodString;
5287
5344
  type: z.ZodString;
@@ -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;
@@ -5438,10 +5498,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5438
5498
  filename: string;
5439
5499
  originalFilename: string;
5440
5500
  }[] | 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;
@@ -5479,8 +5538,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5479
5538
  filename: string;
5480
5539
  originalFilename: string;
5481
5540
  }[] | 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
- }[] | undefined>;
5521
- eventId: string;
5522
- transactionId: string;
5523
- duplicates: string[];
5524
- type?: "VALIDATE" | undefined;
5525
- metadata?: Record<string, string | number | boolean | {
5585
+ }[] | undefined> | undefined;
5586
+ annotation?: Record<string, string | number | boolean | {
5526
5587
  type: string;
5527
5588
  filename: string;
5528
5589
  originalFilename: string;
@@ -5560,10 +5621,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5560
5621
  filename: string;
5561
5622
  originalFilename: string;
5562
5623
  }[] | undefined> | undefined;
5563
- }>, z.ZodObject<z.objectUtil.extendShape<{
5624
+ originalActionId?: string | undefined;
5625
+ keepAssignment?: boolean | undefined;
5626
+ }>;
5627
+ export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
5628
+ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5564
5629
  eventId: z.ZodString;
5565
5630
  transactionId: z.ZodString;
5566
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5631
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5567
5632
  filename: z.ZodString;
5568
5633
  originalFilename: z.ZodString;
5569
5634
  type: z.ZodString;
@@ -5676,8 +5741,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5676
5741
  addressLine2?: string | null | undefined;
5677
5742
  addressLine3?: string | null | undefined;
5678
5743
  postcodeOrZip?: string | null | undefined;
5679
- }>]>>;
5680
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5744
+ }>]>>>;
5745
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5681
5746
  filename: z.ZodString;
5682
5747
  originalFilename: z.ZodString;
5683
5748
  type: z.ZodString;
@@ -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;
@@ -5843,13 +5901,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5843
5901
  filename: string;
5844
5902
  originalFilename: string;
5845
5903
  }[] | undefined>;
5846
- identifiers: {
5847
- trackingId: string;
5848
- registrationNumber: string;
5849
- };
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;
@@ -5887,8 +5940,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5887
5940
  filename: string;
5888
5941
  originalFilename: string;
5889
5942
  }[] | 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
- }[] | undefined>;
5929
- identifiers: {
5930
- trackingId: string;
5931
- registrationNumber: string;
5932
- };
5933
- eventId: string;
5934
- transactionId: string;
5935
- type?: "REGISTER" | undefined;
5936
- metadata?: Record<string, string | number | boolean | {
5986
+ }[] | undefined> | undefined;
5987
+ annotation?: Record<string, string | number | boolean | {
5937
5988
  type: string;
5938
5989
  filename: string;
5939
5990
  originalFilename: string;
@@ -5971,10 +6022,30 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5971
6022
  filename: string;
5972
6023
  originalFilename: string;
5973
6024
  }[] | undefined> | undefined;
5974
- }>, z.ZodObject<z.objectUtil.extendShape<{
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.ZodBoolean, z.ZodNumber, z.ZodObject<{
5978
6049
  filename: z.ZodString;
5979
6050
  originalFilename: z.ZodString;
5980
6051
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
6092
6163
  filename: z.ZodString;
6093
6164
  originalFilename: z.ZodString;
6094
6165
  type: z.ZodString;
@@ -6202,11 +6273,1619 @@ 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">>;
6207
- }>, "strip", z.ZodTypeAny, {
6279
+ type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
6280
+ createdAtLocation: z.ZodString;
6281
+ }>, "strip", z.ZodTypeAny, {
6282
+ type: "CREATE";
6283
+ transactionId: string;
6284
+ declaration: Record<string, string | number | boolean | {
6285
+ type: string;
6286
+ filename: string;
6287
+ originalFilename: string;
6288
+ } | {
6289
+ country: string;
6290
+ district: string;
6291
+ addressType: "DOMESTIC";
6292
+ province: string;
6293
+ urbanOrRural: "URBAN";
6294
+ number?: string | null | undefined;
6295
+ town?: string | null | undefined;
6296
+ residentialArea?: string | null | undefined;
6297
+ street?: string | null | undefined;
6298
+ zipCode?: string | null | undefined;
6299
+ } | {
6300
+ country: string;
6301
+ district: string;
6302
+ addressType: "DOMESTIC";
6303
+ province: string;
6304
+ urbanOrRural: "RURAL";
6305
+ village?: string | null | undefined;
6306
+ } | {
6307
+ country: string;
6308
+ state: string;
6309
+ addressType: "INTERNATIONAL";
6310
+ district2: string;
6311
+ cityOrTown?: string | null | undefined;
6312
+ addressLine1?: string | null | undefined;
6313
+ addressLine2?: string | null | undefined;
6314
+ addressLine3?: string | null | undefined;
6315
+ postcodeOrZip?: string | null | undefined;
6316
+ } | {
6317
+ type: string;
6318
+ option: string;
6319
+ filename: string;
6320
+ originalFilename: string;
6321
+ }[] | undefined>;
6322
+ createdAtLocation: string;
6323
+ eventId: string;
6324
+ annotation?: Record<string, string | number | boolean | {
6325
+ type: string;
6326
+ filename: string;
6327
+ originalFilename: string;
6328
+ } | {
6329
+ country: string;
6330
+ district: string;
6331
+ addressType: "DOMESTIC";
6332
+ province: string;
6333
+ urbanOrRural: "URBAN";
6334
+ number?: string | null | undefined;
6335
+ town?: string | null | undefined;
6336
+ residentialArea?: string | null | undefined;
6337
+ street?: string | null | undefined;
6338
+ zipCode?: string | null | undefined;
6339
+ } | {
6340
+ country: string;
6341
+ district: string;
6342
+ addressType: "DOMESTIC";
6343
+ province: string;
6344
+ urbanOrRural: "RURAL";
6345
+ village?: string | null | undefined;
6346
+ } | {
6347
+ country: string;
6348
+ state: string;
6349
+ addressType: "INTERNATIONAL";
6350
+ district2: string;
6351
+ cityOrTown?: string | null | undefined;
6352
+ addressLine1?: string | null | undefined;
6353
+ addressLine2?: string | null | undefined;
6354
+ addressLine3?: string | null | undefined;
6355
+ postcodeOrZip?: string | null | undefined;
6356
+ } | {
6357
+ type: string;
6358
+ option: string;
6359
+ filename: string;
6360
+ originalFilename: string;
6361
+ }[] | undefined> | undefined;
6362
+ originalActionId?: string | undefined;
6363
+ keepAssignment?: boolean | undefined;
6364
+ }, {
6365
+ transactionId: string;
6366
+ createdAtLocation: string;
6367
+ eventId: string;
6368
+ type?: "CREATE" | undefined;
6369
+ declaration?: Record<string, string | number | boolean | {
6370
+ type: string;
6371
+ filename: string;
6372
+ originalFilename: string;
6373
+ } | {
6374
+ country: string;
6375
+ district: string;
6376
+ addressType: "DOMESTIC";
6377
+ province: string;
6378
+ urbanOrRural: "URBAN";
6379
+ number?: string | null | undefined;
6380
+ town?: string | null | undefined;
6381
+ residentialArea?: string | null | undefined;
6382
+ street?: string | null | undefined;
6383
+ zipCode?: string | null | undefined;
6384
+ } | {
6385
+ country: string;
6386
+ district: string;
6387
+ addressType: "DOMESTIC";
6388
+ province: string;
6389
+ urbanOrRural: "RURAL";
6390
+ village?: string | null | undefined;
6391
+ } | {
6392
+ country: string;
6393
+ state: string;
6394
+ addressType: "INTERNATIONAL";
6395
+ district2: string;
6396
+ cityOrTown?: string | null | undefined;
6397
+ addressLine1?: string | null | undefined;
6398
+ addressLine2?: string | null | undefined;
6399
+ addressLine3?: string | null | undefined;
6400
+ postcodeOrZip?: string | null | undefined;
6401
+ } | {
6402
+ type: string;
6403
+ option: string;
6404
+ filename: string;
6405
+ originalFilename: string;
6406
+ }[] | undefined> | undefined;
6407
+ annotation?: Record<string, string | number | boolean | {
6408
+ type: string;
6409
+ filename: string;
6410
+ originalFilename: string;
6411
+ } | {
6412
+ country: string;
6413
+ district: string;
6414
+ addressType: "DOMESTIC";
6415
+ province: string;
6416
+ urbanOrRural: "URBAN";
6417
+ number?: string | null | undefined;
6418
+ town?: string | null | undefined;
6419
+ residentialArea?: string | null | undefined;
6420
+ street?: string | null | undefined;
6421
+ zipCode?: string | null | undefined;
6422
+ } | {
6423
+ country: string;
6424
+ district: string;
6425
+ addressType: "DOMESTIC";
6426
+ province: string;
6427
+ urbanOrRural: "RURAL";
6428
+ village?: string | null | undefined;
6429
+ } | {
6430
+ country: string;
6431
+ state: string;
6432
+ addressType: "INTERNATIONAL";
6433
+ district2: string;
6434
+ cityOrTown?: string | null | undefined;
6435
+ addressLine1?: string | null | undefined;
6436
+ addressLine2?: string | null | undefined;
6437
+ addressLine3?: string | null | undefined;
6438
+ postcodeOrZip?: string | null | undefined;
6439
+ } | {
6440
+ type: string;
6441
+ option: string;
6442
+ filename: string;
6443
+ originalFilename: string;
6444
+ }[] | undefined> | undefined;
6445
+ originalActionId?: string | undefined;
6446
+ keepAssignment?: boolean | undefined;
6447
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6448
+ eventId: z.ZodString;
6449
+ transactionId: z.ZodString;
6450
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6451
+ filename: z.ZodString;
6452
+ originalFilename: z.ZodString;
6453
+ type: z.ZodString;
6454
+ }, "strip", z.ZodTypeAny, {
6455
+ type: string;
6456
+ filename: string;
6457
+ originalFilename: string;
6458
+ }, {
6459
+ type: string;
6460
+ filename: string;
6461
+ originalFilename: string;
6462
+ }>, z.ZodArray<z.ZodObject<{
6463
+ filename: z.ZodString;
6464
+ originalFilename: z.ZodString;
6465
+ type: z.ZodString;
6466
+ option: z.ZodString;
6467
+ }, "strip", z.ZodTypeAny, {
6468
+ type: string;
6469
+ option: string;
6470
+ filename: string;
6471
+ originalFilename: string;
6472
+ }, {
6473
+ type: string;
6474
+ option: string;
6475
+ filename: string;
6476
+ originalFilename: string;
6477
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6478
+ country: z.ZodString;
6479
+ addressType: z.ZodLiteral<"DOMESTIC">;
6480
+ province: z.ZodString;
6481
+ district: z.ZodString;
6482
+ }, {
6483
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6484
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6485
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6486
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6487
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6488
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6489
+ }>, "strip", z.ZodTypeAny, {
6490
+ country: string;
6491
+ district: string;
6492
+ addressType: "DOMESTIC";
6493
+ province: string;
6494
+ urbanOrRural: "URBAN";
6495
+ number?: string | null | undefined;
6496
+ town?: string | null | undefined;
6497
+ residentialArea?: string | null | undefined;
6498
+ street?: string | null | undefined;
6499
+ zipCode?: string | null | undefined;
6500
+ }, {
6501
+ country: string;
6502
+ district: string;
6503
+ addressType: "DOMESTIC";
6504
+ province: string;
6505
+ urbanOrRural: "URBAN";
6506
+ number?: string | null | undefined;
6507
+ town?: string | null | undefined;
6508
+ residentialArea?: string | null | undefined;
6509
+ street?: string | null | undefined;
6510
+ zipCode?: string | null | undefined;
6511
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6512
+ country: z.ZodString;
6513
+ addressType: z.ZodLiteral<"DOMESTIC">;
6514
+ province: z.ZodString;
6515
+ district: z.ZodString;
6516
+ }, {
6517
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6518
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6519
+ }>, "strip", z.ZodTypeAny, {
6520
+ country: string;
6521
+ district: string;
6522
+ addressType: "DOMESTIC";
6523
+ province: string;
6524
+ urbanOrRural: "RURAL";
6525
+ village?: string | null | undefined;
6526
+ }, {
6527
+ country: string;
6528
+ district: string;
6529
+ addressType: "DOMESTIC";
6530
+ province: string;
6531
+ urbanOrRural: "RURAL";
6532
+ village?: string | null | undefined;
6533
+ }>, z.ZodUndefined, z.ZodObject<{
6534
+ country: z.ZodString;
6535
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6536
+ state: z.ZodString;
6537
+ district2: z.ZodString;
6538
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6539
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6540
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6541
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6542
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6543
+ }, "strip", z.ZodTypeAny, {
6544
+ country: string;
6545
+ state: string;
6546
+ addressType: "INTERNATIONAL";
6547
+ district2: string;
6548
+ cityOrTown?: string | null | undefined;
6549
+ addressLine1?: string | null | undefined;
6550
+ addressLine2?: string | null | undefined;
6551
+ addressLine3?: string | null | undefined;
6552
+ postcodeOrZip?: string | null | undefined;
6553
+ }, {
6554
+ country: string;
6555
+ state: string;
6556
+ addressType: "INTERNATIONAL";
6557
+ district2: string;
6558
+ cityOrTown?: string | null | undefined;
6559
+ addressLine1?: string | null | undefined;
6560
+ addressLine2?: string | null | undefined;
6561
+ addressLine3?: string | null | undefined;
6562
+ postcodeOrZip?: string | null | undefined;
6563
+ }>]>>>;
6564
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6565
+ filename: z.ZodString;
6566
+ originalFilename: z.ZodString;
6567
+ type: z.ZodString;
6568
+ }, "strip", z.ZodTypeAny, {
6569
+ type: string;
6570
+ filename: string;
6571
+ originalFilename: string;
6572
+ }, {
6573
+ type: string;
6574
+ filename: string;
6575
+ originalFilename: string;
6576
+ }>, z.ZodArray<z.ZodObject<{
6577
+ filename: z.ZodString;
6578
+ originalFilename: z.ZodString;
6579
+ type: z.ZodString;
6580
+ option: z.ZodString;
6581
+ }, "strip", z.ZodTypeAny, {
6582
+ type: string;
6583
+ option: string;
6584
+ filename: string;
6585
+ originalFilename: string;
6586
+ }, {
6587
+ type: string;
6588
+ option: string;
6589
+ filename: string;
6590
+ originalFilename: string;
6591
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6592
+ country: z.ZodString;
6593
+ addressType: z.ZodLiteral<"DOMESTIC">;
6594
+ province: z.ZodString;
6595
+ district: z.ZodString;
6596
+ }, {
6597
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6598
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6599
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6600
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6601
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6602
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6603
+ }>, "strip", z.ZodTypeAny, {
6604
+ country: string;
6605
+ district: string;
6606
+ addressType: "DOMESTIC";
6607
+ province: string;
6608
+ urbanOrRural: "URBAN";
6609
+ number?: string | null | undefined;
6610
+ town?: string | null | undefined;
6611
+ residentialArea?: string | null | undefined;
6612
+ street?: string | null | undefined;
6613
+ zipCode?: string | null | undefined;
6614
+ }, {
6615
+ country: string;
6616
+ district: string;
6617
+ addressType: "DOMESTIC";
6618
+ province: string;
6619
+ urbanOrRural: "URBAN";
6620
+ number?: string | null | undefined;
6621
+ town?: string | null | undefined;
6622
+ residentialArea?: string | null | undefined;
6623
+ street?: string | null | undefined;
6624
+ zipCode?: string | null | undefined;
6625
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6626
+ country: z.ZodString;
6627
+ addressType: z.ZodLiteral<"DOMESTIC">;
6628
+ province: z.ZodString;
6629
+ district: z.ZodString;
6630
+ }, {
6631
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6632
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6633
+ }>, "strip", z.ZodTypeAny, {
6634
+ country: string;
6635
+ district: string;
6636
+ addressType: "DOMESTIC";
6637
+ province: string;
6638
+ urbanOrRural: "RURAL";
6639
+ village?: string | null | undefined;
6640
+ }, {
6641
+ country: string;
6642
+ district: string;
6643
+ addressType: "DOMESTIC";
6644
+ province: string;
6645
+ urbanOrRural: "RURAL";
6646
+ village?: string | null | undefined;
6647
+ }>, z.ZodUndefined, z.ZodObject<{
6648
+ country: z.ZodString;
6649
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6650
+ state: z.ZodString;
6651
+ district2: z.ZodString;
6652
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6653
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6654
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6655
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6656
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6657
+ }, "strip", z.ZodTypeAny, {
6658
+ country: string;
6659
+ state: string;
6660
+ addressType: "INTERNATIONAL";
6661
+ district2: string;
6662
+ cityOrTown?: string | null | undefined;
6663
+ addressLine1?: string | null | undefined;
6664
+ addressLine2?: string | null | undefined;
6665
+ addressLine3?: string | null | undefined;
6666
+ postcodeOrZip?: string | null | undefined;
6667
+ }, {
6668
+ country: string;
6669
+ state: string;
6670
+ addressType: "INTERNATIONAL";
6671
+ district2: string;
6672
+ cityOrTown?: string | null | undefined;
6673
+ addressLine1?: string | null | undefined;
6674
+ addressLine2?: string | null | undefined;
6675
+ addressLine3?: string | null | undefined;
6676
+ postcodeOrZip?: string | null | undefined;
6677
+ }>]>>>;
6678
+ originalActionId: z.ZodOptional<z.ZodString>;
6679
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6680
+ }, {
6681
+ type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
6682
+ duplicates: z.ZodArray<z.ZodString, "many">;
6683
+ }>, "strip", z.ZodTypeAny, {
6684
+ type: "VALIDATE";
6685
+ transactionId: string;
6686
+ declaration: Record<string, string | number | boolean | {
6687
+ type: string;
6688
+ filename: string;
6689
+ originalFilename: string;
6690
+ } | {
6691
+ country: string;
6692
+ district: string;
6693
+ addressType: "DOMESTIC";
6694
+ province: string;
6695
+ urbanOrRural: "URBAN";
6696
+ number?: string | null | undefined;
6697
+ town?: string | null | undefined;
6698
+ residentialArea?: string | null | undefined;
6699
+ street?: string | null | undefined;
6700
+ zipCode?: string | null | undefined;
6701
+ } | {
6702
+ country: string;
6703
+ district: string;
6704
+ addressType: "DOMESTIC";
6705
+ province: string;
6706
+ urbanOrRural: "RURAL";
6707
+ village?: string | null | undefined;
6708
+ } | {
6709
+ country: string;
6710
+ state: string;
6711
+ addressType: "INTERNATIONAL";
6712
+ district2: string;
6713
+ cityOrTown?: string | null | undefined;
6714
+ addressLine1?: string | null | undefined;
6715
+ addressLine2?: string | null | undefined;
6716
+ addressLine3?: string | null | undefined;
6717
+ postcodeOrZip?: string | null | undefined;
6718
+ } | {
6719
+ type: string;
6720
+ option: string;
6721
+ filename: string;
6722
+ originalFilename: string;
6723
+ }[] | undefined>;
6724
+ eventId: string;
6725
+ duplicates: string[];
6726
+ annotation?: Record<string, string | number | boolean | {
6727
+ type: string;
6728
+ filename: string;
6729
+ originalFilename: string;
6730
+ } | {
6731
+ country: string;
6732
+ district: string;
6733
+ addressType: "DOMESTIC";
6734
+ province: string;
6735
+ urbanOrRural: "URBAN";
6736
+ number?: string | null | undefined;
6737
+ town?: string | null | undefined;
6738
+ residentialArea?: string | null | undefined;
6739
+ street?: string | null | undefined;
6740
+ zipCode?: string | null | undefined;
6741
+ } | {
6742
+ country: string;
6743
+ district: string;
6744
+ addressType: "DOMESTIC";
6745
+ province: string;
6746
+ urbanOrRural: "RURAL";
6747
+ village?: string | null | undefined;
6748
+ } | {
6749
+ country: string;
6750
+ state: string;
6751
+ addressType: "INTERNATIONAL";
6752
+ district2: string;
6753
+ cityOrTown?: string | null | undefined;
6754
+ addressLine1?: string | null | undefined;
6755
+ addressLine2?: string | null | undefined;
6756
+ addressLine3?: string | null | undefined;
6757
+ postcodeOrZip?: string | null | undefined;
6758
+ } | {
6759
+ type: string;
6760
+ option: string;
6761
+ filename: string;
6762
+ originalFilename: string;
6763
+ }[] | undefined> | undefined;
6764
+ originalActionId?: string | undefined;
6765
+ keepAssignment?: boolean | undefined;
6766
+ }, {
6767
+ transactionId: string;
6768
+ eventId: string;
6769
+ duplicates: string[];
6770
+ type?: "VALIDATE" | undefined;
6771
+ declaration?: Record<string, string | number | boolean | {
6772
+ type: string;
6773
+ filename: string;
6774
+ originalFilename: string;
6775
+ } | {
6776
+ country: string;
6777
+ district: string;
6778
+ addressType: "DOMESTIC";
6779
+ province: string;
6780
+ urbanOrRural: "URBAN";
6781
+ number?: string | null | undefined;
6782
+ town?: string | null | undefined;
6783
+ residentialArea?: string | null | undefined;
6784
+ street?: string | null | undefined;
6785
+ zipCode?: string | null | undefined;
6786
+ } | {
6787
+ country: string;
6788
+ district: string;
6789
+ addressType: "DOMESTIC";
6790
+ province: string;
6791
+ urbanOrRural: "RURAL";
6792
+ village?: string | null | undefined;
6793
+ } | {
6794
+ country: string;
6795
+ state: string;
6796
+ addressType: "INTERNATIONAL";
6797
+ district2: string;
6798
+ cityOrTown?: string | null | undefined;
6799
+ addressLine1?: string | null | undefined;
6800
+ addressLine2?: string | null | undefined;
6801
+ addressLine3?: string | null | undefined;
6802
+ postcodeOrZip?: string | null | undefined;
6803
+ } | {
6804
+ type: string;
6805
+ option: string;
6806
+ filename: string;
6807
+ originalFilename: string;
6808
+ }[] | undefined> | undefined;
6809
+ annotation?: Record<string, string | number | boolean | {
6810
+ type: string;
6811
+ filename: string;
6812
+ originalFilename: string;
6813
+ } | {
6814
+ country: string;
6815
+ district: string;
6816
+ addressType: "DOMESTIC";
6817
+ province: string;
6818
+ urbanOrRural: "URBAN";
6819
+ number?: string | null | undefined;
6820
+ town?: string | null | undefined;
6821
+ residentialArea?: string | null | undefined;
6822
+ street?: string | null | undefined;
6823
+ zipCode?: string | null | undefined;
6824
+ } | {
6825
+ country: string;
6826
+ district: string;
6827
+ addressType: "DOMESTIC";
6828
+ province: string;
6829
+ urbanOrRural: "RURAL";
6830
+ village?: string | null | undefined;
6831
+ } | {
6832
+ country: string;
6833
+ state: string;
6834
+ addressType: "INTERNATIONAL";
6835
+ district2: string;
6836
+ cityOrTown?: string | null | undefined;
6837
+ addressLine1?: string | null | undefined;
6838
+ addressLine2?: string | null | undefined;
6839
+ addressLine3?: string | null | undefined;
6840
+ postcodeOrZip?: string | null | undefined;
6841
+ } | {
6842
+ type: string;
6843
+ option: string;
6844
+ filename: string;
6845
+ originalFilename: string;
6846
+ }[] | undefined> | undefined;
6847
+ originalActionId?: string | undefined;
6848
+ keepAssignment?: boolean | undefined;
6849
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6850
+ eventId: z.ZodString;
6851
+ transactionId: z.ZodString;
6852
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6853
+ filename: z.ZodString;
6854
+ originalFilename: z.ZodString;
6855
+ type: z.ZodString;
6856
+ }, "strip", z.ZodTypeAny, {
6857
+ type: string;
6858
+ filename: string;
6859
+ originalFilename: string;
6860
+ }, {
6861
+ type: string;
6862
+ filename: string;
6863
+ originalFilename: string;
6864
+ }>, z.ZodArray<z.ZodObject<{
6865
+ filename: z.ZodString;
6866
+ originalFilename: z.ZodString;
6867
+ type: z.ZodString;
6868
+ option: z.ZodString;
6869
+ }, "strip", z.ZodTypeAny, {
6870
+ type: string;
6871
+ option: string;
6872
+ filename: string;
6873
+ originalFilename: string;
6874
+ }, {
6875
+ type: string;
6876
+ option: string;
6877
+ filename: string;
6878
+ originalFilename: string;
6879
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6880
+ country: z.ZodString;
6881
+ addressType: z.ZodLiteral<"DOMESTIC">;
6882
+ province: z.ZodString;
6883
+ district: z.ZodString;
6884
+ }, {
6885
+ urbanOrRural: z.ZodLiteral<"URBAN">;
6886
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6887
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6888
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6889
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6890
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6891
+ }>, "strip", z.ZodTypeAny, {
6892
+ country: string;
6893
+ district: string;
6894
+ addressType: "DOMESTIC";
6895
+ province: string;
6896
+ urbanOrRural: "URBAN";
6897
+ number?: string | null | undefined;
6898
+ town?: string | null | undefined;
6899
+ residentialArea?: string | null | undefined;
6900
+ street?: string | null | undefined;
6901
+ zipCode?: string | null | undefined;
6902
+ }, {
6903
+ country: string;
6904
+ district: string;
6905
+ addressType: "DOMESTIC";
6906
+ province: string;
6907
+ urbanOrRural: "URBAN";
6908
+ number?: string | null | undefined;
6909
+ town?: string | null | undefined;
6910
+ residentialArea?: string | null | undefined;
6911
+ street?: string | null | undefined;
6912
+ zipCode?: string | null | undefined;
6913
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6914
+ country: z.ZodString;
6915
+ addressType: z.ZodLiteral<"DOMESTIC">;
6916
+ province: z.ZodString;
6917
+ district: z.ZodString;
6918
+ }, {
6919
+ urbanOrRural: z.ZodLiteral<"RURAL">;
6920
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6921
+ }>, "strip", z.ZodTypeAny, {
6922
+ country: string;
6923
+ district: string;
6924
+ addressType: "DOMESTIC";
6925
+ province: string;
6926
+ urbanOrRural: "RURAL";
6927
+ village?: string | null | undefined;
6928
+ }, {
6929
+ country: string;
6930
+ district: string;
6931
+ addressType: "DOMESTIC";
6932
+ province: string;
6933
+ urbanOrRural: "RURAL";
6934
+ village?: string | null | undefined;
6935
+ }>, z.ZodUndefined, z.ZodObject<{
6936
+ country: z.ZodString;
6937
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
6938
+ state: z.ZodString;
6939
+ district2: z.ZodString;
6940
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6941
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6942
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6943
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6944
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6945
+ }, "strip", z.ZodTypeAny, {
6946
+ country: string;
6947
+ state: string;
6948
+ addressType: "INTERNATIONAL";
6949
+ district2: string;
6950
+ cityOrTown?: string | null | undefined;
6951
+ addressLine1?: string | null | undefined;
6952
+ addressLine2?: string | null | undefined;
6953
+ addressLine3?: string | null | undefined;
6954
+ postcodeOrZip?: string | null | undefined;
6955
+ }, {
6956
+ country: string;
6957
+ state: string;
6958
+ addressType: "INTERNATIONAL";
6959
+ district2: string;
6960
+ cityOrTown?: string | null | undefined;
6961
+ addressLine1?: string | null | undefined;
6962
+ addressLine2?: string | null | undefined;
6963
+ addressLine3?: string | null | undefined;
6964
+ postcodeOrZip?: string | null | undefined;
6965
+ }>]>>>;
6966
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6967
+ filename: z.ZodString;
6968
+ originalFilename: z.ZodString;
6969
+ type: z.ZodString;
6970
+ }, "strip", z.ZodTypeAny, {
6971
+ type: string;
6972
+ filename: string;
6973
+ originalFilename: string;
6974
+ }, {
6975
+ type: string;
6976
+ filename: string;
6977
+ originalFilename: string;
6978
+ }>, z.ZodArray<z.ZodObject<{
6979
+ filename: z.ZodString;
6980
+ originalFilename: z.ZodString;
6981
+ type: z.ZodString;
6982
+ option: z.ZodString;
6983
+ }, "strip", z.ZodTypeAny, {
6984
+ type: string;
6985
+ option: string;
6986
+ filename: string;
6987
+ originalFilename: string;
6988
+ }, {
6989
+ type: string;
6990
+ option: string;
6991
+ filename: string;
6992
+ originalFilename: string;
6993
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
6994
+ country: z.ZodString;
6995
+ addressType: z.ZodLiteral<"DOMESTIC">;
6996
+ province: z.ZodString;
6997
+ district: z.ZodString;
6998
+ }, {
6999
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7000
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7001
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7002
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7003
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7004
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7005
+ }>, "strip", z.ZodTypeAny, {
7006
+ country: string;
7007
+ district: string;
7008
+ addressType: "DOMESTIC";
7009
+ province: string;
7010
+ urbanOrRural: "URBAN";
7011
+ number?: string | null | undefined;
7012
+ town?: string | null | undefined;
7013
+ residentialArea?: string | null | undefined;
7014
+ street?: string | null | undefined;
7015
+ zipCode?: string | null | undefined;
7016
+ }, {
7017
+ country: string;
7018
+ district: string;
7019
+ addressType: "DOMESTIC";
7020
+ province: string;
7021
+ urbanOrRural: "URBAN";
7022
+ number?: string | null | undefined;
7023
+ town?: string | null | undefined;
7024
+ residentialArea?: string | null | undefined;
7025
+ street?: string | null | undefined;
7026
+ zipCode?: string | null | undefined;
7027
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7028
+ country: z.ZodString;
7029
+ addressType: z.ZodLiteral<"DOMESTIC">;
7030
+ province: z.ZodString;
7031
+ district: z.ZodString;
7032
+ }, {
7033
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7034
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7035
+ }>, "strip", z.ZodTypeAny, {
7036
+ country: string;
7037
+ district: string;
7038
+ addressType: "DOMESTIC";
7039
+ province: string;
7040
+ urbanOrRural: "RURAL";
7041
+ village?: string | null | undefined;
7042
+ }, {
7043
+ country: string;
7044
+ district: string;
7045
+ addressType: "DOMESTIC";
7046
+ province: string;
7047
+ urbanOrRural: "RURAL";
7048
+ village?: string | null | undefined;
7049
+ }>, z.ZodUndefined, z.ZodObject<{
7050
+ country: z.ZodString;
7051
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7052
+ state: z.ZodString;
7053
+ district2: z.ZodString;
7054
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7055
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7056
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7057
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7058
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7059
+ }, "strip", z.ZodTypeAny, {
7060
+ country: string;
7061
+ state: string;
7062
+ addressType: "INTERNATIONAL";
7063
+ district2: string;
7064
+ cityOrTown?: string | null | undefined;
7065
+ addressLine1?: string | null | undefined;
7066
+ addressLine2?: string | null | undefined;
7067
+ addressLine3?: string | null | undefined;
7068
+ postcodeOrZip?: string | null | undefined;
7069
+ }, {
7070
+ country: string;
7071
+ state: string;
7072
+ addressType: "INTERNATIONAL";
7073
+ district2: string;
7074
+ cityOrTown?: string | null | undefined;
7075
+ addressLine1?: string | null | undefined;
7076
+ addressLine2?: string | null | undefined;
7077
+ addressLine3?: string | null | undefined;
7078
+ postcodeOrZip?: string | null | undefined;
7079
+ }>]>>>;
7080
+ originalActionId: z.ZodOptional<z.ZodString>;
7081
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7082
+ }, {
7083
+ type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
7084
+ registrationNumber: z.ZodOptional<z.ZodString>;
7085
+ }>, "strip", z.ZodTypeAny, {
7086
+ type: "REGISTER";
7087
+ transactionId: string;
7088
+ declaration: Record<string, string | number | boolean | {
7089
+ type: string;
7090
+ filename: string;
7091
+ originalFilename: string;
7092
+ } | {
7093
+ country: string;
7094
+ district: string;
7095
+ addressType: "DOMESTIC";
7096
+ province: string;
7097
+ urbanOrRural: "URBAN";
7098
+ number?: string | null | undefined;
7099
+ town?: string | null | undefined;
7100
+ residentialArea?: string | null | undefined;
7101
+ street?: string | null | undefined;
7102
+ zipCode?: string | null | undefined;
7103
+ } | {
7104
+ country: string;
7105
+ district: string;
7106
+ addressType: "DOMESTIC";
7107
+ province: string;
7108
+ urbanOrRural: "RURAL";
7109
+ village?: string | null | undefined;
7110
+ } | {
7111
+ country: string;
7112
+ state: string;
7113
+ addressType: "INTERNATIONAL";
7114
+ district2: string;
7115
+ cityOrTown?: string | null | undefined;
7116
+ addressLine1?: string | null | undefined;
7117
+ addressLine2?: string | null | undefined;
7118
+ addressLine3?: string | null | undefined;
7119
+ postcodeOrZip?: string | null | undefined;
7120
+ } | {
7121
+ type: string;
7122
+ option: string;
7123
+ filename: string;
7124
+ originalFilename: string;
7125
+ }[] | undefined>;
7126
+ eventId: string;
7127
+ annotation?: Record<string, string | number | boolean | {
7128
+ type: string;
7129
+ filename: string;
7130
+ originalFilename: string;
7131
+ } | {
7132
+ country: string;
7133
+ district: string;
7134
+ addressType: "DOMESTIC";
7135
+ province: string;
7136
+ urbanOrRural: "URBAN";
7137
+ number?: string | null | undefined;
7138
+ town?: string | null | undefined;
7139
+ residentialArea?: string | null | undefined;
7140
+ street?: string | null | undefined;
7141
+ zipCode?: string | null | undefined;
7142
+ } | {
7143
+ country: string;
7144
+ district: string;
7145
+ addressType: "DOMESTIC";
7146
+ province: string;
7147
+ urbanOrRural: "RURAL";
7148
+ village?: string | null | undefined;
7149
+ } | {
7150
+ country: string;
7151
+ state: string;
7152
+ addressType: "INTERNATIONAL";
7153
+ district2: string;
7154
+ cityOrTown?: string | null | undefined;
7155
+ addressLine1?: string | null | undefined;
7156
+ addressLine2?: string | null | undefined;
7157
+ addressLine3?: string | null | undefined;
7158
+ postcodeOrZip?: string | null | undefined;
7159
+ } | {
7160
+ type: string;
7161
+ option: string;
7162
+ filename: string;
7163
+ originalFilename: string;
7164
+ }[] | undefined> | undefined;
7165
+ originalActionId?: string | undefined;
7166
+ registrationNumber?: string | undefined;
7167
+ keepAssignment?: boolean | undefined;
7168
+ }, {
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
+ }[] | 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
+ }[] | 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.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.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, {
6208
7487
  type: "NOTIFY";
6209
- data: Record<string, string | number | boolean | {
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
+ }[] | 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
+ }[] | 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
+ }[] | 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
+ }[] | 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.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.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 | {
6210
7889
  type: string;
6211
7890
  filename: string;
6212
7891
  originalFilename: string;
@@ -6245,8 +7924,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6245
7924
  originalFilename: string;
6246
7925
  }[] | undefined>;
6247
7926
  eventId: string;
6248
- transactionId: string;
6249
- metadata?: Record<string, string | number | boolean | {
7927
+ annotation?: Record<string, string | number | boolean | {
6250
7928
  type: string;
6251
7929
  filename: string;
6252
7930
  originalFilename: string;
@@ -6284,8 +7962,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6284
7962
  filename: string;
6285
7963
  originalFilename: string;
6286
7964
  }[] | undefined> | undefined;
7965
+ originalActionId?: string | undefined;
7966
+ keepAssignment?: boolean | undefined;
6287
7967
  }, {
6288
- data: Record<string, string | number | boolean | {
7968
+ transactionId: string;
7969
+ eventId: string;
7970
+ type?: "DECLARE" | undefined;
7971
+ declaration?: Record<string, string | number | boolean | {
6289
7972
  type: string;
6290
7973
  filename: string;
6291
7974
  originalFilename: string;
@@ -6322,11 +8005,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6322
8005
  option: string;
6323
8006
  filename: string;
6324
8007
  originalFilename: string;
6325
- }[] | undefined>;
6326
- eventId: string;
6327
- transactionId: string;
6328
- type?: "NOTIFY" | undefined;
6329
- metadata?: Record<string, string | number | boolean | {
8008
+ }[] | undefined> | undefined;
8009
+ annotation?: Record<string, string | number | boolean | {
6330
8010
  type: string;
6331
8011
  filename: string;
6332
8012
  originalFilename: string;
@@ -6364,10 +8044,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6364
8044
  filename: string;
6365
8045
  originalFilename: string;
6366
8046
  }[] | undefined> | undefined;
8047
+ originalActionId?: string | undefined;
8048
+ keepAssignment?: boolean | undefined;
6367
8049
  }>, z.ZodObject<z.objectUtil.extendShape<{
6368
8050
  eventId: z.ZodString;
6369
8051
  transactionId: z.ZodString;
6370
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8052
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6371
8053
  filename: z.ZodString;
6372
8054
  originalFilename: z.ZodString;
6373
8055
  type: z.ZodString;
@@ -6480,8 +8162,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6480
8162
  addressLine2?: string | null | undefined;
6481
8163
  addressLine3?: string | null | undefined;
6482
8164
  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<{
8165
+ }>]>>>;
8166
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6485
8167
  filename: z.ZodString;
6486
8168
  originalFilename: z.ZodString;
6487
8169
  type: z.ZodString;
@@ -6595,11 +8277,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6595
8277
  addressLine3?: string | null | undefined;
6596
8278
  postcodeOrZip?: string | null | undefined;
6597
8279
  }>]>>>;
8280
+ originalActionId: z.ZodOptional<z.ZodString>;
8281
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6598
8282
  }, {
6599
- type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
8283
+ type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
6600
8284
  }>, "strip", z.ZodTypeAny, {
6601
- type: "DECLARE";
6602
- data: Record<string, string | number | boolean | {
8285
+ type: "REJECT";
8286
+ transactionId: string;
8287
+ declaration: Record<string, string | number | boolean | {
6603
8288
  type: string;
6604
8289
  filename: string;
6605
8290
  originalFilename: string;
@@ -6638,8 +8323,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6638
8323
  originalFilename: string;
6639
8324
  }[] | undefined>;
6640
8325
  eventId: string;
6641
- transactionId: string;
6642
- metadata?: Record<string, string | number | boolean | {
8326
+ annotation?: Record<string, string | number | boolean | {
6643
8327
  type: string;
6644
8328
  filename: string;
6645
8329
  originalFilename: string;
@@ -6677,8 +8361,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6677
8361
  filename: string;
6678
8362
  originalFilename: string;
6679
8363
  }[] | undefined> | undefined;
8364
+ originalActionId?: string | undefined;
8365
+ keepAssignment?: boolean | undefined;
6680
8366
  }, {
6681
- data: Record<string, string | number | boolean | {
8367
+ transactionId: string;
8368
+ eventId: string;
8369
+ type?: "REJECT" | undefined;
8370
+ declaration?: Record<string, string | number | boolean | {
6682
8371
  type: string;
6683
8372
  filename: string;
6684
8373
  originalFilename: string;
@@ -6715,11 +8404,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6715
8404
  option: string;
6716
8405
  filename: string;
6717
8406
  originalFilename: string;
6718
- }[] | undefined>;
6719
- eventId: string;
6720
- transactionId: string;
6721
- type?: "DECLARE" | undefined;
6722
- metadata?: Record<string, string | number | boolean | {
8407
+ }[] | undefined> | undefined;
8408
+ annotation?: Record<string, string | number | boolean | {
6723
8409
  type: string;
6724
8410
  filename: string;
6725
8411
  originalFilename: string;
@@ -6757,10 +8443,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6757
8443
  filename: string;
6758
8444
  originalFilename: string;
6759
8445
  }[] | undefined> | undefined;
8446
+ originalActionId?: string | undefined;
8447
+ keepAssignment?: boolean | undefined;
6760
8448
  }>, z.ZodObject<z.objectUtil.extendShape<{
6761
8449
  eventId: z.ZodString;
6762
8450
  transactionId: z.ZodString;
6763
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8451
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6764
8452
  filename: z.ZodString;
6765
8453
  originalFilename: z.ZodString;
6766
8454
  type: z.ZodString;
@@ -6873,8 +8561,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6873
8561
  addressLine2?: string | null | undefined;
6874
8562
  addressLine3?: string | null | undefined;
6875
8563
  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<{
8564
+ }>]>>>;
8565
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6878
8566
  filename: z.ZodString;
6879
8567
  originalFilename: z.ZodString;
6880
8568
  type: z.ZodString;
@@ -6988,11 +8676,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6988
8676
  addressLine3?: string | null | undefined;
6989
8677
  postcodeOrZip?: string | null | undefined;
6990
8678
  }>]>>>;
8679
+ originalActionId: z.ZodOptional<z.ZodString>;
8680
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6991
8681
  }, {
6992
- type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
8682
+ type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
6993
8683
  }>, "strip", z.ZodTypeAny, {
6994
- type: "REJECT";
6995
- data: Record<string, string | number | boolean | {
8684
+ type: "MARKED_AS_DUPLICATE";
8685
+ transactionId: string;
8686
+ declaration: Record<string, string | number | boolean | {
6996
8687
  type: string;
6997
8688
  filename: string;
6998
8689
  originalFilename: string;
@@ -7031,8 +8722,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7031
8722
  originalFilename: string;
7032
8723
  }[] | undefined>;
7033
8724
  eventId: string;
7034
- transactionId: string;
7035
- metadata?: Record<string, string | number | boolean | {
8725
+ annotation?: Record<string, string | number | boolean | {
7036
8726
  type: string;
7037
8727
  filename: string;
7038
8728
  originalFilename: string;
@@ -7070,8 +8760,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7070
8760
  filename: string;
7071
8761
  originalFilename: string;
7072
8762
  }[] | undefined> | undefined;
8763
+ originalActionId?: string | undefined;
8764
+ keepAssignment?: boolean | undefined;
7073
8765
  }, {
7074
- data: Record<string, string | number | boolean | {
8766
+ transactionId: string;
8767
+ eventId: string;
8768
+ type?: "MARKED_AS_DUPLICATE" | undefined;
8769
+ declaration?: Record<string, string | number | boolean | {
7075
8770
  type: string;
7076
8771
  filename: string;
7077
8772
  originalFilename: string;
@@ -7108,11 +8803,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7108
8803
  option: string;
7109
8804
  filename: string;
7110
8805
  originalFilename: string;
7111
- }[] | undefined>;
7112
- eventId: string;
7113
- transactionId: string;
7114
- type?: "REJECT" | undefined;
7115
- metadata?: Record<string, string | number | boolean | {
8806
+ }[] | undefined> | undefined;
8807
+ annotation?: Record<string, string | number | boolean | {
7116
8808
  type: string;
7117
8809
  filename: string;
7118
8810
  originalFilename: string;
@@ -7150,10 +8842,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7150
8842
  filename: string;
7151
8843
  originalFilename: string;
7152
8844
  }[] | 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
7157
8851
  filename: z.ZodString;
7158
8852
  originalFilename: z.ZodString;
7159
8853
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
7271
8965
  filename: z.ZodString;
7272
8966
  originalFilename: z.ZodString;
7273
8967
  type: 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;
@@ -7424,8 +9121,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7424
9121
  originalFilename: string;
7425
9122
  }[] | 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;
@@ -7463,8 +9159,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7463
9159
  filename: string;
7464
9160
  originalFilename: string;
7465
9161
  }[] | 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
- }[] | undefined>;
7505
- eventId: string;
7506
- transactionId: string;
7507
- type?: "MARKED_AS_DUPLICATE" | undefined;
7508
- metadata?: Record<string, string | number | boolean | {
9205
+ }[] | undefined> | undefined;
9206
+ annotation?: Record<string, string | number | boolean | {
7509
9207
  type: string;
7510
9208
  filename: string;
7511
9209
  originalFilename: string;
@@ -7543,10 +9241,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7543
9241
  filename: string;
7544
9242
  originalFilename: string;
7545
9243
  }[] | 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
7550
9250
  filename: z.ZodString;
7551
9251
  originalFilename: z.ZodString;
7552
9252
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
7664
9364
  filename: z.ZodString;
7665
9365
  originalFilename: z.ZodString;
7666
9366
  type: 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;
@@ -7816,9 +9520,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7816
9520
  filename: string;
7817
9521
  originalFilename: string;
7818
9522
  }[] | 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;
@@ -7856,8 +9560,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7856
9560
  filename: string;
7857
9561
  originalFilename: string;
7858
9562
  }[] | 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
- }[] | undefined>;
7898
- eventId: string;
7899
- transactionId: string;
7900
- type?: "ARCHIVE" | undefined;
7901
- metadata?: Record<string, string | number | boolean | {
9607
+ }[] | undefined> | undefined;
9608
+ annotation?: Record<string, string | number | boolean | {
7902
9609
  type: string;
7903
9610
  filename: string;
7904
9611
  originalFilename: string;
@@ -7936,10 +9643,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7936
9643
  filename: string;
7937
9644
  originalFilename: string;
7938
9645
  }[] | 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
7943
9652
  filename: z.ZodString;
7944
9653
  originalFilename: z.ZodString;
7945
9654
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
8057
9766
  filename: z.ZodString;
8058
9767
  originalFilename: z.ZodString;
8059
9768
  type: 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;
@@ -8210,10 +9922,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8210
9922
  filename: string;
8211
9923
  originalFilename: string;
8212
9924
  }[] | undefined>;
8213
- assignedTo: string;
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;
@@ -8251,8 +9962,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8251
9962
  filename: string;
8252
9963
  originalFilename: string;
8253
9964
  }[] | 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
- }[] | undefined>;
8293
- assignedTo: string;
8294
- eventId: string;
8295
- transactionId: string;
8296
- type?: "ASSIGN" | undefined;
8297
- metadata?: Record<string, string | number | boolean | {
10008
+ }[] | undefined> | undefined;
10009
+ annotation?: Record<string, string | number | boolean | {
8298
10010
  type: string;
8299
10011
  filename: string;
8300
10012
  originalFilename: string;
@@ -8332,10 +10044,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8332
10044
  filename: string;
8333
10045
  originalFilename: string;
8334
10046
  }[] | 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
8339
10054
  filename: z.ZodString;
8340
10055
  originalFilename: z.ZodString;
8341
10056
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
8453
10168
  filename: z.ZodString;
8454
10169
  originalFilename: z.ZodString;
8455
10170
  type: 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;
@@ -8606,8 +10324,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8606
10324
  originalFilename: string;
8607
10325
  }[] | 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;
@@ -8645,8 +10362,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8645
10362
  filename: string;
8646
10363
  originalFilename: string;
8647
10364
  }[] | 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
- }[] | undefined>;
8687
- eventId: string;
8688
- transactionId: string;
8689
- type?: "UNASSIGN" | undefined;
8690
- metadata?: Record<string, string | number | boolean | {
10408
+ }[] | undefined> | undefined;
10409
+ annotation?: Record<string, string | number | boolean | {
8691
10410
  type: string;
8692
10411
  filename: string;
8693
10412
  originalFilename: string;
@@ -8725,10 +10444,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8725
10444
  filename: string;
8726
10445
  originalFilename: string;
8727
10446
  }[] | 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
8732
10453
  filename: z.ZodString;
8733
10454
  originalFilename: z.ZodString;
8734
10455
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
8846
10567
  filename: z.ZodString;
8847
10568
  originalFilename: z.ZodString;
8848
10569
  type: 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;
@@ -8999,8 +10723,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8999
10723
  originalFilename: string;
9000
10724
  }[] | 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;
@@ -9038,8 +10761,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9038
10761
  filename: string;
9039
10762
  originalFilename: string;
9040
10763
  }[] | 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
- }[] | undefined>;
9080
- eventId: string;
9081
- transactionId: string;
9082
- type?: "PRINT_CERTIFICATE" | undefined;
9083
- metadata?: Record<string, string | number | boolean | {
10807
+ }[] | undefined> | undefined;
10808
+ annotation?: Record<string, string | number | boolean | {
9084
10809
  type: string;
9085
10810
  filename: string;
9086
10811
  originalFilename: string;
@@ -9118,10 +10843,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9118
10843
  filename: string;
9119
10844
  originalFilename: string;
9120
10845
  }[] | 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
9125
10852
  filename: z.ZodString;
9126
10853
  originalFilename: z.ZodString;
9127
10854
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
9239
10966
  filename: z.ZodString;
9240
10967
  originalFilename: z.ZodString;
9241
10968
  type: 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;
@@ -9391,9 +11122,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9391
11122
  filename: string;
9392
11123
  originalFilename: string;
9393
11124
  }[] | 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;
@@ -9431,8 +11162,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9431
11162
  filename: string;
9432
11163
  originalFilename: string;
9433
11164
  }[] | 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
- }[] | undefined>;
9473
- eventId: string;
9474
- transactionId: string;
9475
- type?: "REQUEST_CORRECTION" | undefined;
9476
- metadata?: Record<string, string | number | boolean | {
11209
+ }[] | undefined> | undefined;
11210
+ annotation?: Record<string, string | number | boolean | {
9477
11211
  type: string;
9478
11212
  filename: string;
9479
11213
  originalFilename: string;
@@ -9511,10 +11245,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9511
11245
  filename: string;
9512
11246
  originalFilename: string;
9513
11247
  }[] | 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
9518
11254
  filename: z.ZodString;
9519
11255
  originalFilename: z.ZodString;
9520
11256
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
9632
11368
  filename: z.ZodString;
9633
11369
  originalFilename: z.ZodString;
9634
11370
  type: 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;
@@ -9787,8 +11526,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9787
11526
  }[] | 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;
@@ -9826,8 +11564,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9826
11564
  filename: string;
9827
11565
  originalFilename: string;
9828
11566
  }[] | 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
- }[] | undefined>;
9868
- requestId: string;
9869
- eventId: string;
9870
- transactionId: string;
9871
- type?: "REJECT_CORRECTION" | undefined;
9872
- metadata?: Record<string, string | number | boolean | {
11611
+ }[] | undefined> | undefined;
11612
+ annotation?: Record<string, string | number | boolean | {
9873
11613
  type: string;
9874
11614
  filename: string;
9875
11615
  originalFilename: string;
@@ -9907,10 +11647,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9907
11647
  filename: string;
9908
11648
  originalFilename: string;
9909
11649
  }[] | 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
9914
11656
  filename: z.ZodString;
9915
11657
  originalFilename: z.ZodString;
9916
11658
  type: 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.ZodBoolean, z.ZodNumber, z.ZodObject<{
10028
11770
  filename: z.ZodString;
10029
11771
  originalFilename: z.ZodString;
10030
11772
  type: 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;
@@ -10181,10 +11925,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10181
11925
  filename: string;
10182
11926
  originalFilename: string;
10183
11927
  }[] | undefined>;
10184
- requestId: string;
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;
@@ -10222,8 +11964,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10222
11964
  filename: string;
10223
11965
  originalFilename: string;
10224
11966
  }[] | 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
- }[] | undefined>;
10264
- requestId: string;
10265
- eventId: string;
10266
- transactionId: string;
10267
- type?: "APPROVE_CORRECTION" | undefined;
10268
- metadata?: Record<string, string | number | boolean | {
12010
+ }[] | undefined> | undefined;
12011
+ annotation?: Record<string, string | number | boolean | {
10269
12012
  type: string;
10270
12013
  filename: string;
10271
12014
  originalFilename: string;
@@ -10303,6 +12046,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10303
12046
  filename: string;
10304
12047
  originalFilename: string;
10305
12048
  }[] | 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>;