@opencrvs/toolkit 1.8.0-rc.fb261c5 → 1.8.0-rc.fb2e700

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const BaseActionInput: z.ZodObject<{
3
3
  eventId: z.ZodString;
4
4
  transactionId: z.ZodString;
5
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5
+ declaration: z.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,10 @@ export declare const BaseActionInput: z.ZodObject<{
230
230
  addressLine3?: string | null | undefined;
231
231
  postcodeOrZip?: string | null | undefined;
232
232
  }>]>>>;
233
+ originalActionId: z.ZodOptional<z.ZodString>;
234
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
233
235
  }, "strip", z.ZodTypeAny, {
234
- data: Record<string, string | number | boolean | {
236
+ declaration: Record<string, string | number | boolean | {
235
237
  type: string;
236
238
  filename: string;
237
239
  originalFilename: string;
@@ -271,7 +273,7 @@ export declare const BaseActionInput: z.ZodObject<{
271
273
  }[] | undefined>;
272
274
  eventId: string;
273
275
  transactionId: string;
274
- metadata?: Record<string, string | number | boolean | {
276
+ annotation?: Record<string, string | number | boolean | {
275
277
  type: string;
276
278
  filename: string;
277
279
  originalFilename: string;
@@ -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
+ eventId: string;
318
+ transactionId: string;
319
+ declaration?: Record<string, string | number | boolean | {
314
320
  type: string;
315
321
  filename: string;
316
322
  originalFilename: string;
@@ -347,10 +353,8 @@ export declare const BaseActionInput: z.ZodObject<{
347
353
  option: string;
348
354
  filename: string;
349
355
  originalFilename: string;
350
- }[] | 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,14 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
620
626
  addressLine3?: string | null | undefined;
621
627
  postcodeOrZip?: string | null | undefined;
622
628
  }>]>>>;
629
+ originalActionId: z.ZodOptional<z.ZodString>;
630
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
623
631
  }, {
624
632
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
625
- identifiers: z.ZodObject<{
626
- trackingId: z.ZodString;
627
- registrationNumber: z.ZodString;
628
- }, "strip", z.ZodTypeAny, {
629
- trackingId: string;
630
- registrationNumber: string;
631
- }, {
632
- trackingId: string;
633
- registrationNumber: string;
634
- }>;
633
+ registrationNumber: z.ZodOptional<z.ZodString>;
635
634
  }>, "strip", z.ZodTypeAny, {
636
635
  type: "REGISTER";
637
- data: Record<string, string | number | boolean | {
636
+ declaration: Record<string, string | number | boolean | {
638
637
  type: string;
639
638
  filename: string;
640
639
  originalFilename: string;
@@ -672,13 +671,9 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
672
671
  filename: string;
673
672
  originalFilename: string;
674
673
  }[] | undefined>;
675
- identifiers: {
676
- trackingId: string;
677
- registrationNumber: string;
678
- };
679
674
  eventId: string;
680
675
  transactionId: string;
681
- metadata?: Record<string, string | number | boolean | {
676
+ annotation?: Record<string, string | number | boolean | {
682
677
  type: string;
683
678
  filename: string;
684
679
  originalFilename: string;
@@ -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
+ eventId: string;
719
+ transactionId: string;
720
+ type?: "REGISTER" | undefined;
721
+ declaration?: Record<string, string | number | boolean | {
721
722
  type: string;
722
723
  filename: string;
723
724
  originalFilename: string;
@@ -754,15 +755,8 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
754
755
  option: string;
755
756
  filename: string;
756
757
  originalFilename: string;
757
- }[] | 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,14 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1033
1030
  addressLine3?: string | null | undefined;
1034
1031
  postcodeOrZip?: string | null | undefined;
1035
1032
  }>]>>>;
1033
+ originalActionId: z.ZodOptional<z.ZodString>;
1034
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1036
1035
  }, {
1037
1036
  type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
1038
1037
  duplicates: z.ZodArray<z.ZodString, "many">;
1039
1038
  }>, "strip", z.ZodTypeAny, {
1040
1039
  type: "VALIDATE";
1041
- data: Record<string, string | number | boolean | {
1040
+ declaration: Record<string, string | number | boolean | {
1042
1041
  type: string;
1043
1042
  filename: string;
1044
1043
  originalFilename: string;
@@ -1079,7 +1078,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1079
1078
  eventId: string;
1080
1079
  transactionId: string;
1081
1080
  duplicates: string[];
1082
- metadata?: Record<string, string | number | boolean | {
1081
+ annotation?: Record<string, string | number | boolean | {
1083
1082
  type: string;
1084
1083
  filename: string;
1085
1084
  originalFilename: string;
@@ -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
+ eventId: string;
1123
+ transactionId: string;
1124
+ duplicates: string[];
1125
+ type?: "VALIDATE" | undefined;
1126
+ declaration?: Record<string, string | number | boolean | {
1122
1127
  type: string;
1123
1128
  filename: string;
1124
1129
  originalFilename: string;
@@ -1155,12 +1160,8 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1155
1160
  option: string;
1156
1161
  filename: string;
1157
1162
  originalFilename: string;
1158
- }[] | 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,13 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1431
1434
  addressLine3?: string | null | undefined;
1432
1435
  postcodeOrZip?: string | null | undefined;
1433
1436
  }>]>>>;
1437
+ originalActionId: z.ZodOptional<z.ZodString>;
1438
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1434
1439
  }, {
1435
1440
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
1436
1441
  }>, "strip", z.ZodTypeAny, {
1437
1442
  type: "NOTIFY";
1438
- data: Record<string, string | number | boolean | {
1443
+ declaration: Record<string, string | number | boolean | {
1439
1444
  type: string;
1440
1445
  filename: string;
1441
1446
  originalFilename: string;
@@ -1475,7 +1480,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1475
1480
  }[] | undefined>;
1476
1481
  eventId: string;
1477
1482
  transactionId: string;
1478
- metadata?: Record<string, string | number | boolean | {
1483
+ annotation?: Record<string, string | number | boolean | {
1479
1484
  type: string;
1480
1485
  filename: string;
1481
1486
  originalFilename: string;
@@ -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
+ eventId: string;
1525
+ transactionId: string;
1526
+ type?: "NOTIFY" | undefined;
1527
+ declaration?: Record<string, string | number | boolean | {
1518
1528
  type: string;
1519
1529
  filename: string;
1520
1530
  originalFilename: string;
@@ -1551,11 +1561,8 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1551
1561
  option: string;
1552
1562
  filename: string;
1553
1563
  originalFilename: string;
1554
- }[] | 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,13 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1826
1835
  addressLine3?: string | null | undefined;
1827
1836
  postcodeOrZip?: string | null | undefined;
1828
1837
  }>]>>>;
1838
+ originalActionId: z.ZodOptional<z.ZodString>;
1839
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
1829
1840
  }, {
1830
1841
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
1831
1842
  }>, "strip", z.ZodTypeAny, {
1832
1843
  type: "DECLARE";
1833
- data: Record<string, string | number | boolean | {
1844
+ declaration: Record<string, string | number | boolean | {
1834
1845
  type: string;
1835
1846
  filename: string;
1836
1847
  originalFilename: string;
@@ -1870,7 +1881,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1870
1881
  }[] | undefined>;
1871
1882
  eventId: string;
1872
1883
  transactionId: string;
1873
- metadata?: Record<string, string | number | boolean | {
1884
+ annotation?: Record<string, string | number | boolean | {
1874
1885
  type: string;
1875
1886
  filename: string;
1876
1887
  originalFilename: string;
@@ -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
+ eventId: string;
1926
+ transactionId: string;
1927
+ type?: "DECLARE" | undefined;
1928
+ declaration?: Record<string, string | number | boolean | {
1913
1929
  type: string;
1914
1930
  filename: string;
1915
1931
  originalFilename: string;
@@ -1946,11 +1962,8 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1946
1962
  option: string;
1947
1963
  filename: string;
1948
1964
  originalFilename: string;
1949
- }[] | 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,13 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2220
2235
  addressLine3?: string | null | undefined;
2221
2236
  postcodeOrZip?: string | null | undefined;
2222
2237
  }>]>>>;
2238
+ originalActionId: z.ZodOptional<z.ZodString>;
2239
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
2223
2240
  }, {
2224
2241
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
2225
2242
  }>, "strip", z.ZodTypeAny, {
2226
2243
  type: "PRINT_CERTIFICATE";
2227
- data: Record<string, string | number | boolean | {
2244
+ declaration: Record<string, string | number | boolean | {
2228
2245
  type: string;
2229
2246
  filename: string;
2230
2247
  originalFilename: string;
@@ -2264,7 +2281,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2264
2281
  }[] | undefined>;
2265
2282
  eventId: string;
2266
2283
  transactionId: string;
2267
- metadata?: Record<string, string | number | boolean | {
2284
+ annotation?: Record<string, string | number | boolean | {
2268
2285
  type: string;
2269
2286
  filename: string;
2270
2287
  originalFilename: string;
@@ -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
+ eventId: string;
2326
+ transactionId: string;
2327
+ type?: "PRINT_CERTIFICATE" | undefined;
2328
+ declaration?: Record<string, string | number | boolean | {
2307
2329
  type: string;
2308
2330
  filename: string;
2309
2331
  originalFilename: string;
@@ -2340,11 +2362,8 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2340
2362
  option: string;
2341
2363
  filename: string;
2342
2364
  originalFilename: string;
2343
- }[] | 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,13 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2615
2636
  addressLine3?: string | null | undefined;
2616
2637
  postcodeOrZip?: string | null | undefined;
2617
2638
  }>]>>>;
2639
+ originalActionId: z.ZodOptional<z.ZodString>;
2640
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
2618
2641
  }, {
2619
2642
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
2620
2643
  }>, "strip", z.ZodTypeAny, {
2621
2644
  type: "REJECT";
2622
- data: Record<string, string | number | boolean | {
2645
+ declaration: Record<string, string | number | boolean | {
2623
2646
  type: string;
2624
2647
  filename: string;
2625
2648
  originalFilename: string;
@@ -2659,7 +2682,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2659
2682
  }[] | undefined>;
2660
2683
  eventId: string;
2661
2684
  transactionId: string;
2662
- metadata?: Record<string, string | number | boolean | {
2685
+ annotation?: Record<string, string | number | boolean | {
2663
2686
  type: string;
2664
2687
  filename: string;
2665
2688
  originalFilename: string;
@@ -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
+ eventId: string;
2727
+ transactionId: string;
2728
+ type?: "REJECT" | undefined;
2729
+ declaration?: Record<string, string | number | boolean | {
2702
2730
  type: string;
2703
2731
  filename: string;
2704
2732
  originalFilename: string;
@@ -2735,11 +2763,8 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2735
2763
  option: string;
2736
2764
  filename: string;
2737
2765
  originalFilename: string;
2738
- }[] | 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,13 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3010
3037
  addressLine3?: string | null | undefined;
3011
3038
  postcodeOrZip?: string | null | undefined;
3012
3039
  }>]>>>;
3040
+ originalActionId: z.ZodOptional<z.ZodString>;
3041
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3013
3042
  }, {
3014
3043
  type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
3015
3044
  }>, "strip", z.ZodTypeAny, {
3016
3045
  type: "MARKED_AS_DUPLICATE";
3017
- data: Record<string, string | number | boolean | {
3046
+ declaration: Record<string, string | number | boolean | {
3018
3047
  type: string;
3019
3048
  filename: string;
3020
3049
  originalFilename: string;
@@ -3054,7 +3083,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3054
3083
  }[] | undefined>;
3055
3084
  eventId: string;
3056
3085
  transactionId: string;
3057
- metadata?: Record<string, string | number | boolean | {
3086
+ annotation?: Record<string, string | number | boolean | {
3058
3087
  type: string;
3059
3088
  filename: string;
3060
3089
  originalFilename: string;
@@ -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
+ eventId: string;
3128
+ transactionId: string;
3129
+ type?: "MARKED_AS_DUPLICATE" | undefined;
3130
+ declaration?: Record<string, string | number | boolean | {
3097
3131
  type: string;
3098
3132
  filename: string;
3099
3133
  originalFilename: string;
@@ -3130,11 +3164,8 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3130
3164
  option: string;
3131
3165
  filename: string;
3132
3166
  originalFilename: string;
3133
- }[] | 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,13 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3405
3438
  addressLine3?: string | null | undefined;
3406
3439
  postcodeOrZip?: string | null | undefined;
3407
3440
  }>]>>>;
3441
+ originalActionId: z.ZodOptional<z.ZodString>;
3442
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3408
3443
  }, {
3409
3444
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
3410
3445
  }>, "strip", z.ZodTypeAny, {
3411
3446
  type: "ARCHIVE";
3412
- data: Record<string, string | number | boolean | {
3447
+ declaration: Record<string, string | number | boolean | {
3413
3448
  type: string;
3414
3449
  filename: string;
3415
3450
  originalFilename: string;
@@ -3449,7 +3484,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3449
3484
  }[] | undefined>;
3450
3485
  eventId: string;
3451
3486
  transactionId: string;
3452
- metadata?: Record<string, string | number | boolean | {
3487
+ annotation?: Record<string, string | number | boolean | {
3453
3488
  type: string;
3454
3489
  filename: string;
3455
3490
  originalFilename: string;
@@ -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
+ eventId: string;
3529
+ transactionId: string;
3530
+ type?: "ARCHIVE" | undefined;
3531
+ declaration?: Record<string, string | number | boolean | {
3492
3532
  type: string;
3493
3533
  filename: string;
3494
3534
  originalFilename: string;
@@ -3525,11 +3565,8 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3525
3565
  option: string;
3526
3566
  filename: string;
3527
3567
  originalFilename: string;
3528
- }[] | 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,14 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3800
3839
  addressLine3?: string | null | undefined;
3801
3840
  postcodeOrZip?: string | null | undefined;
3802
3841
  }>]>>>;
3842
+ originalActionId: z.ZodOptional<z.ZodString>;
3843
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
3803
3844
  }, {
3804
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
3845
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
3846
+ assignedTo: z.ZodString;
3805
3847
  }>, "strip", z.ZodTypeAny, {
3806
- type: "REQUEST_CORRECTION";
3807
- data: Record<string, string | number | boolean | {
3848
+ type: "ASSIGN";
3849
+ declaration: Record<string, string | number | boolean | {
3808
3850
  type: string;
3809
3851
  filename: string;
3810
3852
  originalFilename: string;
@@ -3842,9 +3884,10 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3842
3884
  filename: string;
3843
3885
  originalFilename: string;
3844
3886
  }[] | undefined>;
3887
+ assignedTo: string;
3845
3888
  eventId: string;
3846
3889
  transactionId: string;
3847
- metadata?: Record<string, string | number | boolean | {
3890
+ annotation?: Record<string, string | number | boolean | {
3848
3891
  type: string;
3849
3892
  filename: string;
3850
3893
  originalFilename: string;
@@ -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
+ assignedTo: string;
3932
+ eventId: string;
3933
+ transactionId: string;
3934
+ type?: "ASSIGN" | undefined;
3935
+ declaration?: Record<string, string | number | boolean | {
3887
3936
  type: string;
3888
3937
  filename: string;
3889
3938
  originalFilename: string;
@@ -3920,11 +3969,8 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3920
3969
  option: string;
3921
3970
  filename: string;
3922
3971
  originalFilename: string;
3923
- }[] | 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,14 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4195
4243
  addressLine3?: string | null | undefined;
4196
4244
  postcodeOrZip?: string | null | undefined;
4197
4245
  }>]>>>;
4246
+ originalActionId: z.ZodOptional<z.ZodString>;
4247
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
4198
4248
  }, {
4199
- requestId: z.ZodString;
4200
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
4249
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
4250
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
4201
4251
  }>, "strip", z.ZodTypeAny, {
4202
- type: "REJECT_CORRECTION";
4203
- data: Record<string, string | number | boolean | {
4252
+ type: "UNASSIGN";
4253
+ declaration: Record<string, string | number | boolean | {
4204
4254
  type: string;
4205
4255
  filename: string;
4206
4256
  originalFilename: string;
@@ -4238,10 +4288,10 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4238
4288
  filename: string;
4239
4289
  originalFilename: string;
4240
4290
  }[] | undefined>;
4241
- requestId: string;
4291
+ assignedTo: null;
4242
4292
  eventId: string;
4243
4293
  transactionId: string;
4244
- metadata?: Record<string, string | number | boolean | {
4294
+ annotation?: Record<string, string | number | boolean | {
4245
4295
  type: string;
4246
4296
  filename: string;
4247
4297
  originalFilename: string;
@@ -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
+ eventId: string;
4336
+ transactionId: string;
4337
+ type?: "UNASSIGN" | undefined;
4338
+ declaration?: Record<string, string | number | boolean | {
4284
4339
  type: string;
4285
4340
  filename: string;
4286
4341
  originalFilename: string;
@@ -4317,12 +4372,8 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4317
4372
  option: string;
4318
4373
  filename: string;
4319
4374
  originalFilename: string;
4320
- }[] | 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,13 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4593
4647
  addressLine3?: string | null | undefined;
4594
4648
  postcodeOrZip?: string | null | undefined;
4595
4649
  }>]>>>;
4650
+ originalActionId: z.ZodOptional<z.ZodString>;
4651
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
4596
4652
  }, {
4597
- requestId: z.ZodString;
4598
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
4653
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
4599
4654
  }>, "strip", z.ZodTypeAny, {
4600
- type: "APPROVE_CORRECTION";
4601
- data: Record<string, string | number | boolean | {
4655
+ type: "REQUEST_CORRECTION";
4656
+ declaration: Record<string, string | number | boolean | {
4602
4657
  type: string;
4603
4658
  filename: string;
4604
4659
  originalFilename: string;
@@ -4636,10 +4691,9 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4636
4691
  filename: string;
4637
4692
  originalFilename: string;
4638
4693
  }[] | undefined>;
4639
- requestId: string;
4640
4694
  eventId: string;
4641
4695
  transactionId: string;
4642
- metadata?: Record<string, string | number | boolean | {
4696
+ annotation?: Record<string, string | number | boolean | {
4643
4697
  type: string;
4644
4698
  filename: string;
4645
4699
  originalFilename: string;
@@ -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
+ eventId: string;
4738
+ transactionId: string;
4739
+ type?: "REQUEST_CORRECTION" | undefined;
4740
+ declaration?: Record<string, string | number | boolean | {
4682
4741
  type: string;
4683
4742
  filename: string;
4684
4743
  originalFilename: string;
@@ -4715,12 +4774,8 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4715
4774
  option: string;
4716
4775
  filename: string;
4717
4776
  originalFilename: string;
4718
- }[] | 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,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4999
5048
  addressLine3?: string | null | undefined;
5000
5049
  postcodeOrZip?: string | null | undefined;
5001
5050
  }>]>>>;
5051
+ originalActionId: z.ZodOptional<z.ZodString>;
5052
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5002
5053
  }, {
5003
- type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
5004
- createdAtLocation: z.ZodString;
5054
+ requestId: z.ZodString;
5055
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
5005
5056
  }>, "strip", z.ZodTypeAny, {
5006
- type: "CREATE";
5007
- data: Record<string, string | number | boolean | {
5057
+ type: "REJECT_CORRECTION";
5058
+ declaration: Record<string, string | number | boolean | {
5008
5059
  type: string;
5009
5060
  filename: string;
5010
5061
  originalFilename: string;
@@ -5042,10 +5093,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5042
5093
  filename: string;
5043
5094
  originalFilename: string;
5044
5095
  }[] | undefined>;
5045
- createdAtLocation: string;
5096
+ requestId: string;
5046
5097
  eventId: string;
5047
5098
  transactionId: string;
5048
- metadata?: Record<string, string | number | boolean | {
5099
+ annotation?: Record<string, string | number | boolean | {
5049
5100
  type: string;
5050
5101
  filename: string;
5051
5102
  originalFilename: string;
@@ -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
+ requestId: string;
5141
+ eventId: string;
5142
+ transactionId: string;
5143
+ type?: "REJECT_CORRECTION" | undefined;
5144
+ declaration?: Record<string, string | number | boolean | {
5088
5145
  type: string;
5089
5146
  filename: string;
5090
5147
  originalFilename: string;
@@ -5121,12 +5178,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5121
5178
  option: string;
5122
5179
  filename: string;
5123
5180
  originalFilename: string;
5124
- }[] | 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,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5395
5452
  addressLine3?: string | null | undefined;
5396
5453
  postcodeOrZip?: string | null | undefined;
5397
5454
  }>]>>>;
5455
+ originalActionId: z.ZodOptional<z.ZodString>;
5456
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5398
5457
  }, {
5399
- type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
5400
- duplicates: z.ZodArray<z.ZodString, "many">;
5458
+ requestId: z.ZodString;
5459
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
5401
5460
  }>, "strip", z.ZodTypeAny, {
5402
- type: "VALIDATE";
5403
- data: Record<string, string | number | boolean | {
5461
+ type: "APPROVE_CORRECTION";
5462
+ declaration: Record<string, string | number | boolean | {
5404
5463
  type: string;
5405
5464
  filename: string;
5406
5465
  originalFilename: string;
@@ -5438,10 +5497,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5438
5497
  filename: string;
5439
5498
  originalFilename: string;
5440
5499
  }[] | undefined>;
5500
+ requestId: string;
5441
5501
  eventId: string;
5442
5502
  transactionId: string;
5443
- duplicates: string[];
5444
- metadata?: Record<string, string | number | boolean | {
5503
+ annotation?: Record<string, string | number | boolean | {
5445
5504
  type: string;
5446
5505
  filename: string;
5447
5506
  originalFilename: string;
@@ -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
+ requestId: string;
5545
+ eventId: string;
5546
+ transactionId: string;
5547
+ type?: "APPROVE_CORRECTION" | undefined;
5548
+ declaration?: Record<string, string | number | boolean | {
5484
5549
  type: string;
5485
5550
  filename: string;
5486
5551
  originalFilename: string;
@@ -5517,12 +5582,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5517
5582
  option: string;
5518
5583
  filename: string;
5519
5584
  originalFilename: string;
5520
- }[] | 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,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5791
5856
  addressLine3?: string | null | undefined;
5792
5857
  postcodeOrZip?: string | null | undefined;
5793
5858
  }>]>>>;
5859
+ originalActionId: z.ZodOptional<z.ZodString>;
5860
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
5794
5861
  }, {
5795
- type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
5796
- identifiers: z.ZodObject<{
5797
- trackingId: z.ZodString;
5798
- registrationNumber: z.ZodString;
5799
- }, "strip", z.ZodTypeAny, {
5800
- trackingId: string;
5801
- registrationNumber: string;
5802
- }, {
5803
- trackingId: string;
5804
- registrationNumber: string;
5805
- }>;
5862
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
5806
5863
  }>, "strip", z.ZodTypeAny, {
5807
- type: "REGISTER";
5808
- data: Record<string, string | number | boolean | {
5864
+ type: "READ";
5865
+ declaration: Record<string, string | number | boolean | {
5809
5866
  type: string;
5810
5867
  filename: string;
5811
5868
  originalFilename: string;
@@ -5843,13 +5900,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5843
5900
  filename: string;
5844
5901
  originalFilename: string;
5845
5902
  }[] | undefined>;
5846
- identifiers: {
5847
- trackingId: string;
5848
- registrationNumber: string;
5849
- };
5850
5903
  eventId: string;
5851
5904
  transactionId: string;
5852
- metadata?: Record<string, string | number | boolean | {
5905
+ annotation?: Record<string, string | number | boolean | {
5853
5906
  type: string;
5854
5907
  filename: string;
5855
5908
  originalFilename: string;
@@ -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
+ eventId: string;
5947
+ transactionId: string;
5948
+ type?: "READ" | undefined;
5949
+ declaration?: Record<string, string | number | boolean | {
5892
5950
  type: string;
5893
5951
  filename: string;
5894
5952
  originalFilename: string;
@@ -5925,15 +5983,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5925
5983
  option: string;
5926
5984
  filename: string;
5927
5985
  originalFilename: string;
5928
- }[] | 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,22 @@ 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
+ /**
6030
+ * ActionInput types are used to validate the input data for the action.
6031
+ * In our use case, we use it directly with TRPC to validate the input data for the action.
6032
+ * using z.literal(ActionType.ACTION).default(ActionType.ACTION) makes them more convenient to use
6033
+ * without having to pass the type in the input data, when it's defined in the method.
6034
+ *
6035
+ * e.g. mutation.declare({createdAt: new Date()}) vs mutation.declare({createdAt: new Date(), type: 'DECLARE'})
6036
+ */
6037
+ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
5975
6038
  eventId: z.ZodString;
5976
6039
  transactionId: z.ZodString;
5977
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6040
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5978
6041
  filename: z.ZodString;
5979
6042
  originalFilename: z.ZodString;
5980
6043
  type: z.ZodString;
@@ -6087,8 +6150,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6087
6150
  addressLine2?: string | null | undefined;
6088
6151
  addressLine3?: string | null | undefined;
6089
6152
  postcodeOrZip?: string | null | undefined;
6090
- }>]>>;
6091
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6153
+ }>]>>>;
6154
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6092
6155
  filename: z.ZodString;
6093
6156
  originalFilename: z.ZodString;
6094
6157
  type: z.ZodString;
@@ -6202,11 +6265,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6202
6265
  addressLine3?: string | null | undefined;
6203
6266
  postcodeOrZip?: string | null | undefined;
6204
6267
  }>]>>>;
6268
+ originalActionId: z.ZodOptional<z.ZodString>;
6269
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6205
6270
  }, {
6206
- type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
6271
+ type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
6272
+ createdAtLocation: z.ZodString;
6207
6273
  }>, "strip", z.ZodTypeAny, {
6208
- type: "NOTIFY";
6209
- data: Record<string, string | number | boolean | {
6274
+ type: "CREATE";
6275
+ declaration: Record<string, string | number | boolean | {
6210
6276
  type: string;
6211
6277
  filename: string;
6212
6278
  originalFilename: string;
@@ -6244,9 +6310,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6244
6310
  filename: string;
6245
6311
  originalFilename: string;
6246
6312
  }[] | undefined>;
6313
+ createdAtLocation: string;
6247
6314
  eventId: string;
6248
6315
  transactionId: string;
6249
- metadata?: Record<string, string | number | boolean | {
6316
+ annotation?: Record<string, string | number | boolean | {
6250
6317
  type: string;
6251
6318
  filename: string;
6252
6319
  originalFilename: string;
@@ -6284,8 +6351,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6284
6351
  filename: string;
6285
6352
  originalFilename: string;
6286
6353
  }[] | undefined> | undefined;
6354
+ originalActionId?: string | undefined;
6355
+ keepAssignment?: boolean | undefined;
6287
6356
  }, {
6288
- data: Record<string, string | number | boolean | {
6357
+ createdAtLocation: string;
6358
+ eventId: string;
6359
+ transactionId: string;
6360
+ type?: "CREATE" | undefined;
6361
+ declaration?: Record<string, string | number | boolean | {
6289
6362
  type: string;
6290
6363
  filename: string;
6291
6364
  originalFilename: string;
@@ -6322,11 +6395,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6322
6395
  option: string;
6323
6396
  filename: string;
6324
6397
  originalFilename: string;
6325
- }[] | undefined>;
6326
- eventId: string;
6327
- transactionId: string;
6328
- type?: "NOTIFY" | undefined;
6329
- metadata?: Record<string, string | number | boolean | {
6398
+ }[] | undefined> | undefined;
6399
+ annotation?: Record<string, string | number | boolean | {
6330
6400
  type: string;
6331
6401
  filename: string;
6332
6402
  originalFilename: string;
@@ -6364,10 +6434,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6364
6434
  filename: string;
6365
6435
  originalFilename: string;
6366
6436
  }[] | undefined> | undefined;
6437
+ originalActionId?: string | undefined;
6438
+ keepAssignment?: boolean | undefined;
6367
6439
  }>, z.ZodObject<z.objectUtil.extendShape<{
6368
6440
  eventId: z.ZodString;
6369
6441
  transactionId: z.ZodString;
6370
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6442
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6371
6443
  filename: z.ZodString;
6372
6444
  originalFilename: z.ZodString;
6373
6445
  type: z.ZodString;
@@ -6480,8 +6552,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6480
6552
  addressLine2?: string | null | undefined;
6481
6553
  addressLine3?: string | null | undefined;
6482
6554
  postcodeOrZip?: string | null | undefined;
6483
- }>]>>;
6484
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6555
+ }>]>>>;
6556
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6485
6557
  filename: z.ZodString;
6486
6558
  originalFilename: z.ZodString;
6487
6559
  type: z.ZodString;
@@ -6595,11 +6667,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6595
6667
  addressLine3?: string | null | undefined;
6596
6668
  postcodeOrZip?: string | null | undefined;
6597
6669
  }>]>>>;
6670
+ originalActionId: z.ZodOptional<z.ZodString>;
6671
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6598
6672
  }, {
6599
- type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
6673
+ type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
6674
+ duplicates: z.ZodArray<z.ZodString, "many">;
6600
6675
  }>, "strip", z.ZodTypeAny, {
6601
- type: "DECLARE";
6602
- data: Record<string, string | number | boolean | {
6676
+ type: "VALIDATE";
6677
+ declaration: Record<string, string | number | boolean | {
6603
6678
  type: string;
6604
6679
  filename: string;
6605
6680
  originalFilename: string;
@@ -6639,7 +6714,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6639
6714
  }[] | undefined>;
6640
6715
  eventId: string;
6641
6716
  transactionId: string;
6642
- metadata?: Record<string, string | number | boolean | {
6717
+ duplicates: string[];
6718
+ annotation?: Record<string, string | number | boolean | {
6643
6719
  type: string;
6644
6720
  filename: string;
6645
6721
  originalFilename: string;
@@ -6677,8 +6753,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6677
6753
  filename: string;
6678
6754
  originalFilename: string;
6679
6755
  }[] | undefined> | undefined;
6756
+ originalActionId?: string | undefined;
6757
+ keepAssignment?: boolean | undefined;
6680
6758
  }, {
6681
- data: Record<string, string | number | boolean | {
6759
+ eventId: string;
6760
+ transactionId: string;
6761
+ duplicates: string[];
6762
+ type?: "VALIDATE" | undefined;
6763
+ declaration?: Record<string, string | number | boolean | {
6682
6764
  type: string;
6683
6765
  filename: string;
6684
6766
  originalFilename: string;
@@ -6715,11 +6797,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6715
6797
  option: string;
6716
6798
  filename: string;
6717
6799
  originalFilename: string;
6718
- }[] | undefined>;
6719
- eventId: string;
6720
- transactionId: string;
6721
- type?: "DECLARE" | undefined;
6722
- metadata?: Record<string, string | number | boolean | {
6800
+ }[] | undefined> | undefined;
6801
+ annotation?: Record<string, string | number | boolean | {
6723
6802
  type: string;
6724
6803
  filename: string;
6725
6804
  originalFilename: string;
@@ -6757,10 +6836,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6757
6836
  filename: string;
6758
6837
  originalFilename: string;
6759
6838
  }[] | undefined> | undefined;
6839
+ originalActionId?: string | undefined;
6840
+ keepAssignment?: boolean | undefined;
6760
6841
  }>, z.ZodObject<z.objectUtil.extendShape<{
6761
6842
  eventId: z.ZodString;
6762
6843
  transactionId: z.ZodString;
6763
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6844
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6764
6845
  filename: z.ZodString;
6765
6846
  originalFilename: z.ZodString;
6766
6847
  type: z.ZodString;
@@ -6873,8 +6954,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6873
6954
  addressLine2?: string | null | undefined;
6874
6955
  addressLine3?: string | null | undefined;
6875
6956
  postcodeOrZip?: string | null | undefined;
6876
- }>]>>;
6877
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6957
+ }>]>>>;
6958
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6878
6959
  filename: z.ZodString;
6879
6960
  originalFilename: z.ZodString;
6880
6961
  type: z.ZodString;
@@ -6988,11 +7069,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6988
7069
  addressLine3?: string | null | undefined;
6989
7070
  postcodeOrZip?: string | null | undefined;
6990
7071
  }>]>>>;
7072
+ originalActionId: z.ZodOptional<z.ZodString>;
7073
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
6991
7074
  }, {
6992
- type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
7075
+ type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
7076
+ registrationNumber: z.ZodOptional<z.ZodString>;
6993
7077
  }>, "strip", z.ZodTypeAny, {
6994
- type: "REJECT";
6995
- data: Record<string, string | number | boolean | {
7078
+ type: "REGISTER";
7079
+ declaration: Record<string, string | number | boolean | {
6996
7080
  type: string;
6997
7081
  filename: string;
6998
7082
  originalFilename: string;
@@ -7032,7 +7116,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7032
7116
  }[] | undefined>;
7033
7117
  eventId: string;
7034
7118
  transactionId: string;
7035
- metadata?: Record<string, string | number | boolean | {
7119
+ annotation?: Record<string, string | number | boolean | {
7036
7120
  type: string;
7037
7121
  filename: string;
7038
7122
  originalFilename: string;
@@ -7070,10 +7154,1529 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7070
7154
  filename: string;
7071
7155
  originalFilename: string;
7072
7156
  }[] | undefined> | undefined;
7157
+ originalActionId?: string | undefined;
7158
+ registrationNumber?: string | undefined;
7159
+ keepAssignment?: boolean | undefined;
7073
7160
  }, {
7074
- data: Record<string, string | number | boolean | {
7075
- type: string;
7076
- filename: string;
7161
+ eventId: string;
7162
+ transactionId: string;
7163
+ type?: "REGISTER" | undefined;
7164
+ declaration?: Record<string, string | number | boolean | {
7165
+ type: string;
7166
+ filename: string;
7167
+ originalFilename: string;
7168
+ } | {
7169
+ country: string;
7170
+ district: string;
7171
+ addressType: "DOMESTIC";
7172
+ province: string;
7173
+ urbanOrRural: "URBAN";
7174
+ number?: string | null | undefined;
7175
+ town?: string | null | undefined;
7176
+ residentialArea?: string | null | undefined;
7177
+ street?: string | null | undefined;
7178
+ zipCode?: string | null | undefined;
7179
+ } | {
7180
+ country: string;
7181
+ district: string;
7182
+ addressType: "DOMESTIC";
7183
+ province: string;
7184
+ urbanOrRural: "RURAL";
7185
+ village?: string | null | undefined;
7186
+ } | {
7187
+ country: string;
7188
+ state: string;
7189
+ addressType: "INTERNATIONAL";
7190
+ district2: string;
7191
+ cityOrTown?: string | null | undefined;
7192
+ addressLine1?: string | null | undefined;
7193
+ addressLine2?: string | null | undefined;
7194
+ addressLine3?: string | null | undefined;
7195
+ postcodeOrZip?: string | null | undefined;
7196
+ } | {
7197
+ type: string;
7198
+ option: string;
7199
+ filename: string;
7200
+ originalFilename: string;
7201
+ }[] | undefined> | undefined;
7202
+ annotation?: Record<string, string | number | boolean | {
7203
+ type: string;
7204
+ filename: string;
7205
+ originalFilename: string;
7206
+ } | {
7207
+ country: string;
7208
+ district: string;
7209
+ addressType: "DOMESTIC";
7210
+ province: string;
7211
+ urbanOrRural: "URBAN";
7212
+ number?: string | null | undefined;
7213
+ town?: string | null | undefined;
7214
+ residentialArea?: string | null | undefined;
7215
+ street?: string | null | undefined;
7216
+ zipCode?: string | null | undefined;
7217
+ } | {
7218
+ country: string;
7219
+ district: string;
7220
+ addressType: "DOMESTIC";
7221
+ province: string;
7222
+ urbanOrRural: "RURAL";
7223
+ village?: string | null | undefined;
7224
+ } | {
7225
+ country: string;
7226
+ state: string;
7227
+ addressType: "INTERNATIONAL";
7228
+ district2: string;
7229
+ cityOrTown?: string | null | undefined;
7230
+ addressLine1?: string | null | undefined;
7231
+ addressLine2?: string | null | undefined;
7232
+ addressLine3?: string | null | undefined;
7233
+ postcodeOrZip?: string | null | undefined;
7234
+ } | {
7235
+ type: string;
7236
+ option: string;
7237
+ filename: string;
7238
+ originalFilename: string;
7239
+ }[] | undefined> | undefined;
7240
+ originalActionId?: string | undefined;
7241
+ registrationNumber?: string | undefined;
7242
+ keepAssignment?: boolean | undefined;
7243
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7244
+ eventId: z.ZodString;
7245
+ transactionId: z.ZodString;
7246
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7247
+ filename: z.ZodString;
7248
+ originalFilename: z.ZodString;
7249
+ type: z.ZodString;
7250
+ }, "strip", z.ZodTypeAny, {
7251
+ type: string;
7252
+ filename: string;
7253
+ originalFilename: string;
7254
+ }, {
7255
+ type: string;
7256
+ filename: string;
7257
+ originalFilename: string;
7258
+ }>, z.ZodArray<z.ZodObject<{
7259
+ filename: z.ZodString;
7260
+ originalFilename: z.ZodString;
7261
+ type: z.ZodString;
7262
+ option: z.ZodString;
7263
+ }, "strip", z.ZodTypeAny, {
7264
+ type: string;
7265
+ option: string;
7266
+ filename: string;
7267
+ originalFilename: string;
7268
+ }, {
7269
+ type: string;
7270
+ option: string;
7271
+ filename: string;
7272
+ originalFilename: string;
7273
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7274
+ country: z.ZodString;
7275
+ addressType: z.ZodLiteral<"DOMESTIC">;
7276
+ province: z.ZodString;
7277
+ district: z.ZodString;
7278
+ }, {
7279
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7280
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7281
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7282
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7283
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7284
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7285
+ }>, "strip", z.ZodTypeAny, {
7286
+ country: string;
7287
+ district: string;
7288
+ addressType: "DOMESTIC";
7289
+ province: string;
7290
+ urbanOrRural: "URBAN";
7291
+ number?: string | null | undefined;
7292
+ town?: string | null | undefined;
7293
+ residentialArea?: string | null | undefined;
7294
+ street?: string | null | undefined;
7295
+ zipCode?: string | null | undefined;
7296
+ }, {
7297
+ country: string;
7298
+ district: string;
7299
+ addressType: "DOMESTIC";
7300
+ province: string;
7301
+ urbanOrRural: "URBAN";
7302
+ number?: string | null | undefined;
7303
+ town?: string | null | undefined;
7304
+ residentialArea?: string | null | undefined;
7305
+ street?: string | null | undefined;
7306
+ zipCode?: string | null | undefined;
7307
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7308
+ country: z.ZodString;
7309
+ addressType: z.ZodLiteral<"DOMESTIC">;
7310
+ province: z.ZodString;
7311
+ district: z.ZodString;
7312
+ }, {
7313
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7314
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7315
+ }>, "strip", z.ZodTypeAny, {
7316
+ country: string;
7317
+ district: string;
7318
+ addressType: "DOMESTIC";
7319
+ province: string;
7320
+ urbanOrRural: "RURAL";
7321
+ village?: string | null | undefined;
7322
+ }, {
7323
+ country: string;
7324
+ district: string;
7325
+ addressType: "DOMESTIC";
7326
+ province: string;
7327
+ urbanOrRural: "RURAL";
7328
+ village?: string | null | undefined;
7329
+ }>, z.ZodUndefined, z.ZodObject<{
7330
+ country: z.ZodString;
7331
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7332
+ state: z.ZodString;
7333
+ district2: z.ZodString;
7334
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7335
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7336
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7337
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7338
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7339
+ }, "strip", z.ZodTypeAny, {
7340
+ country: string;
7341
+ state: string;
7342
+ addressType: "INTERNATIONAL";
7343
+ district2: string;
7344
+ cityOrTown?: string | null | undefined;
7345
+ addressLine1?: string | null | undefined;
7346
+ addressLine2?: string | null | undefined;
7347
+ addressLine3?: string | null | undefined;
7348
+ postcodeOrZip?: string | null | undefined;
7349
+ }, {
7350
+ country: string;
7351
+ state: string;
7352
+ addressType: "INTERNATIONAL";
7353
+ district2: string;
7354
+ cityOrTown?: string | null | undefined;
7355
+ addressLine1?: string | null | undefined;
7356
+ addressLine2?: string | null | undefined;
7357
+ addressLine3?: string | null | undefined;
7358
+ postcodeOrZip?: string | null | undefined;
7359
+ }>]>>>;
7360
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7361
+ filename: z.ZodString;
7362
+ originalFilename: z.ZodString;
7363
+ type: z.ZodString;
7364
+ }, "strip", z.ZodTypeAny, {
7365
+ type: string;
7366
+ filename: string;
7367
+ originalFilename: string;
7368
+ }, {
7369
+ type: string;
7370
+ filename: string;
7371
+ originalFilename: string;
7372
+ }>, z.ZodArray<z.ZodObject<{
7373
+ filename: z.ZodString;
7374
+ originalFilename: z.ZodString;
7375
+ type: z.ZodString;
7376
+ option: z.ZodString;
7377
+ }, "strip", z.ZodTypeAny, {
7378
+ type: string;
7379
+ option: string;
7380
+ filename: string;
7381
+ originalFilename: string;
7382
+ }, {
7383
+ type: string;
7384
+ option: string;
7385
+ filename: string;
7386
+ originalFilename: string;
7387
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7388
+ country: z.ZodString;
7389
+ addressType: z.ZodLiteral<"DOMESTIC">;
7390
+ province: z.ZodString;
7391
+ district: z.ZodString;
7392
+ }, {
7393
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7394
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7395
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7396
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7397
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7398
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7399
+ }>, "strip", z.ZodTypeAny, {
7400
+ country: string;
7401
+ district: string;
7402
+ addressType: "DOMESTIC";
7403
+ province: string;
7404
+ urbanOrRural: "URBAN";
7405
+ number?: string | null | undefined;
7406
+ town?: string | null | undefined;
7407
+ residentialArea?: string | null | undefined;
7408
+ street?: string | null | undefined;
7409
+ zipCode?: string | null | undefined;
7410
+ }, {
7411
+ country: string;
7412
+ district: string;
7413
+ addressType: "DOMESTIC";
7414
+ province: string;
7415
+ urbanOrRural: "URBAN";
7416
+ number?: string | null | undefined;
7417
+ town?: string | null | undefined;
7418
+ residentialArea?: string | null | undefined;
7419
+ street?: string | null | undefined;
7420
+ zipCode?: string | null | undefined;
7421
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7422
+ country: z.ZodString;
7423
+ addressType: z.ZodLiteral<"DOMESTIC">;
7424
+ province: z.ZodString;
7425
+ district: z.ZodString;
7426
+ }, {
7427
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7428
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7429
+ }>, "strip", z.ZodTypeAny, {
7430
+ country: string;
7431
+ district: string;
7432
+ addressType: "DOMESTIC";
7433
+ province: string;
7434
+ urbanOrRural: "RURAL";
7435
+ village?: string | null | undefined;
7436
+ }, {
7437
+ country: string;
7438
+ district: string;
7439
+ addressType: "DOMESTIC";
7440
+ province: string;
7441
+ urbanOrRural: "RURAL";
7442
+ village?: string | null | undefined;
7443
+ }>, z.ZodUndefined, z.ZodObject<{
7444
+ country: z.ZodString;
7445
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7446
+ state: z.ZodString;
7447
+ district2: z.ZodString;
7448
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7449
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7450
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7451
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7452
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7453
+ }, "strip", z.ZodTypeAny, {
7454
+ country: string;
7455
+ state: string;
7456
+ addressType: "INTERNATIONAL";
7457
+ district2: string;
7458
+ cityOrTown?: string | null | undefined;
7459
+ addressLine1?: string | null | undefined;
7460
+ addressLine2?: string | null | undefined;
7461
+ addressLine3?: string | null | undefined;
7462
+ postcodeOrZip?: string | null | undefined;
7463
+ }, {
7464
+ country: string;
7465
+ state: string;
7466
+ addressType: "INTERNATIONAL";
7467
+ district2: string;
7468
+ cityOrTown?: string | null | undefined;
7469
+ addressLine1?: string | null | undefined;
7470
+ addressLine2?: string | null | undefined;
7471
+ addressLine3?: string | null | undefined;
7472
+ postcodeOrZip?: string | null | undefined;
7473
+ }>]>>>;
7474
+ originalActionId: z.ZodOptional<z.ZodString>;
7475
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7476
+ }, {
7477
+ type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
7478
+ }>, "strip", z.ZodTypeAny, {
7479
+ type: "NOTIFY";
7480
+ declaration: Record<string, string | number | boolean | {
7481
+ type: string;
7482
+ filename: string;
7483
+ originalFilename: string;
7484
+ } | {
7485
+ country: string;
7486
+ district: string;
7487
+ addressType: "DOMESTIC";
7488
+ province: string;
7489
+ urbanOrRural: "URBAN";
7490
+ number?: string | null | undefined;
7491
+ town?: string | null | undefined;
7492
+ residentialArea?: string | null | undefined;
7493
+ street?: string | null | undefined;
7494
+ zipCode?: string | null | undefined;
7495
+ } | {
7496
+ country: string;
7497
+ district: string;
7498
+ addressType: "DOMESTIC";
7499
+ province: string;
7500
+ urbanOrRural: "RURAL";
7501
+ village?: string | null | undefined;
7502
+ } | {
7503
+ country: string;
7504
+ state: string;
7505
+ addressType: "INTERNATIONAL";
7506
+ district2: string;
7507
+ cityOrTown?: string | null | undefined;
7508
+ addressLine1?: string | null | undefined;
7509
+ addressLine2?: string | null | undefined;
7510
+ addressLine3?: string | null | undefined;
7511
+ postcodeOrZip?: string | null | undefined;
7512
+ } | {
7513
+ type: string;
7514
+ option: string;
7515
+ filename: string;
7516
+ originalFilename: string;
7517
+ }[] | undefined>;
7518
+ eventId: string;
7519
+ transactionId: string;
7520
+ annotation?: Record<string, string | number | boolean | {
7521
+ type: string;
7522
+ filename: string;
7523
+ originalFilename: string;
7524
+ } | {
7525
+ country: string;
7526
+ district: string;
7527
+ addressType: "DOMESTIC";
7528
+ province: string;
7529
+ urbanOrRural: "URBAN";
7530
+ number?: string | null | undefined;
7531
+ town?: string | null | undefined;
7532
+ residentialArea?: string | null | undefined;
7533
+ street?: string | null | undefined;
7534
+ zipCode?: string | null | undefined;
7535
+ } | {
7536
+ country: string;
7537
+ district: string;
7538
+ addressType: "DOMESTIC";
7539
+ province: string;
7540
+ urbanOrRural: "RURAL";
7541
+ village?: string | null | undefined;
7542
+ } | {
7543
+ country: string;
7544
+ state: string;
7545
+ addressType: "INTERNATIONAL";
7546
+ district2: string;
7547
+ cityOrTown?: string | null | undefined;
7548
+ addressLine1?: string | null | undefined;
7549
+ addressLine2?: string | null | undefined;
7550
+ addressLine3?: string | null | undefined;
7551
+ postcodeOrZip?: string | null | undefined;
7552
+ } | {
7553
+ type: string;
7554
+ option: string;
7555
+ filename: string;
7556
+ originalFilename: string;
7557
+ }[] | undefined> | undefined;
7558
+ originalActionId?: string | undefined;
7559
+ keepAssignment?: boolean | undefined;
7560
+ }, {
7561
+ eventId: string;
7562
+ transactionId: string;
7563
+ type?: "NOTIFY" | undefined;
7564
+ declaration?: Record<string, string | number | boolean | {
7565
+ type: string;
7566
+ filename: string;
7567
+ originalFilename: string;
7568
+ } | {
7569
+ country: string;
7570
+ district: string;
7571
+ addressType: "DOMESTIC";
7572
+ province: string;
7573
+ urbanOrRural: "URBAN";
7574
+ number?: string | null | undefined;
7575
+ town?: string | null | undefined;
7576
+ residentialArea?: string | null | undefined;
7577
+ street?: string | null | undefined;
7578
+ zipCode?: string | null | undefined;
7579
+ } | {
7580
+ country: string;
7581
+ district: string;
7582
+ addressType: "DOMESTIC";
7583
+ province: string;
7584
+ urbanOrRural: "RURAL";
7585
+ village?: string | null | undefined;
7586
+ } | {
7587
+ country: string;
7588
+ state: string;
7589
+ addressType: "INTERNATIONAL";
7590
+ district2: string;
7591
+ cityOrTown?: string | null | undefined;
7592
+ addressLine1?: string | null | undefined;
7593
+ addressLine2?: string | null | undefined;
7594
+ addressLine3?: string | null | undefined;
7595
+ postcodeOrZip?: string | null | undefined;
7596
+ } | {
7597
+ type: string;
7598
+ option: string;
7599
+ filename: string;
7600
+ originalFilename: string;
7601
+ }[] | undefined> | undefined;
7602
+ annotation?: Record<string, string | number | boolean | {
7603
+ type: string;
7604
+ filename: string;
7605
+ originalFilename: string;
7606
+ } | {
7607
+ country: string;
7608
+ district: string;
7609
+ addressType: "DOMESTIC";
7610
+ province: string;
7611
+ urbanOrRural: "URBAN";
7612
+ number?: string | null | undefined;
7613
+ town?: string | null | undefined;
7614
+ residentialArea?: string | null | undefined;
7615
+ street?: string | null | undefined;
7616
+ zipCode?: string | null | undefined;
7617
+ } | {
7618
+ country: string;
7619
+ district: string;
7620
+ addressType: "DOMESTIC";
7621
+ province: string;
7622
+ urbanOrRural: "RURAL";
7623
+ village?: string | null | undefined;
7624
+ } | {
7625
+ country: string;
7626
+ state: string;
7627
+ addressType: "INTERNATIONAL";
7628
+ district2: string;
7629
+ cityOrTown?: string | null | undefined;
7630
+ addressLine1?: string | null | undefined;
7631
+ addressLine2?: string | null | undefined;
7632
+ addressLine3?: string | null | undefined;
7633
+ postcodeOrZip?: string | null | undefined;
7634
+ } | {
7635
+ type: string;
7636
+ option: string;
7637
+ filename: string;
7638
+ originalFilename: string;
7639
+ }[] | undefined> | undefined;
7640
+ originalActionId?: string | undefined;
7641
+ keepAssignment?: boolean | undefined;
7642
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7643
+ eventId: z.ZodString;
7644
+ transactionId: z.ZodString;
7645
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7646
+ filename: z.ZodString;
7647
+ originalFilename: z.ZodString;
7648
+ type: z.ZodString;
7649
+ }, "strip", z.ZodTypeAny, {
7650
+ type: string;
7651
+ filename: string;
7652
+ originalFilename: string;
7653
+ }, {
7654
+ type: string;
7655
+ filename: string;
7656
+ originalFilename: string;
7657
+ }>, z.ZodArray<z.ZodObject<{
7658
+ filename: z.ZodString;
7659
+ originalFilename: z.ZodString;
7660
+ type: z.ZodString;
7661
+ option: z.ZodString;
7662
+ }, "strip", z.ZodTypeAny, {
7663
+ type: string;
7664
+ option: string;
7665
+ filename: string;
7666
+ originalFilename: string;
7667
+ }, {
7668
+ type: string;
7669
+ option: string;
7670
+ filename: string;
7671
+ originalFilename: string;
7672
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7673
+ country: z.ZodString;
7674
+ addressType: z.ZodLiteral<"DOMESTIC">;
7675
+ province: z.ZodString;
7676
+ district: z.ZodString;
7677
+ }, {
7678
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7679
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7680
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7681
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7682
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7683
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7684
+ }>, "strip", z.ZodTypeAny, {
7685
+ country: string;
7686
+ district: string;
7687
+ addressType: "DOMESTIC";
7688
+ province: string;
7689
+ urbanOrRural: "URBAN";
7690
+ number?: string | null | undefined;
7691
+ town?: string | null | undefined;
7692
+ residentialArea?: string | null | undefined;
7693
+ street?: string | null | undefined;
7694
+ zipCode?: string | null | undefined;
7695
+ }, {
7696
+ country: string;
7697
+ district: string;
7698
+ addressType: "DOMESTIC";
7699
+ province: string;
7700
+ urbanOrRural: "URBAN";
7701
+ number?: string | null | undefined;
7702
+ town?: string | null | undefined;
7703
+ residentialArea?: string | null | undefined;
7704
+ street?: string | null | undefined;
7705
+ zipCode?: string | null | undefined;
7706
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7707
+ country: z.ZodString;
7708
+ addressType: z.ZodLiteral<"DOMESTIC">;
7709
+ province: z.ZodString;
7710
+ district: z.ZodString;
7711
+ }, {
7712
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7713
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7714
+ }>, "strip", z.ZodTypeAny, {
7715
+ country: string;
7716
+ district: string;
7717
+ addressType: "DOMESTIC";
7718
+ province: string;
7719
+ urbanOrRural: "RURAL";
7720
+ village?: string | null | undefined;
7721
+ }, {
7722
+ country: string;
7723
+ district: string;
7724
+ addressType: "DOMESTIC";
7725
+ province: string;
7726
+ urbanOrRural: "RURAL";
7727
+ village?: string | null | undefined;
7728
+ }>, z.ZodUndefined, z.ZodObject<{
7729
+ country: z.ZodString;
7730
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7731
+ state: z.ZodString;
7732
+ district2: z.ZodString;
7733
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7734
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7735
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7736
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7737
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7738
+ }, "strip", z.ZodTypeAny, {
7739
+ country: string;
7740
+ state: string;
7741
+ addressType: "INTERNATIONAL";
7742
+ district2: string;
7743
+ cityOrTown?: string | null | undefined;
7744
+ addressLine1?: string | null | undefined;
7745
+ addressLine2?: string | null | undefined;
7746
+ addressLine3?: string | null | undefined;
7747
+ postcodeOrZip?: string | null | undefined;
7748
+ }, {
7749
+ country: string;
7750
+ state: string;
7751
+ addressType: "INTERNATIONAL";
7752
+ district2: string;
7753
+ cityOrTown?: string | null | undefined;
7754
+ addressLine1?: string | null | undefined;
7755
+ addressLine2?: string | null | undefined;
7756
+ addressLine3?: string | null | undefined;
7757
+ postcodeOrZip?: string | null | undefined;
7758
+ }>]>>>;
7759
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7760
+ filename: z.ZodString;
7761
+ originalFilename: z.ZodString;
7762
+ type: z.ZodString;
7763
+ }, "strip", z.ZodTypeAny, {
7764
+ type: string;
7765
+ filename: string;
7766
+ originalFilename: string;
7767
+ }, {
7768
+ type: string;
7769
+ filename: string;
7770
+ originalFilename: string;
7771
+ }>, z.ZodArray<z.ZodObject<{
7772
+ filename: z.ZodString;
7773
+ originalFilename: z.ZodString;
7774
+ type: z.ZodString;
7775
+ option: z.ZodString;
7776
+ }, "strip", z.ZodTypeAny, {
7777
+ type: string;
7778
+ option: string;
7779
+ filename: string;
7780
+ originalFilename: string;
7781
+ }, {
7782
+ type: string;
7783
+ option: string;
7784
+ filename: string;
7785
+ originalFilename: string;
7786
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
7787
+ country: z.ZodString;
7788
+ addressType: z.ZodLiteral<"DOMESTIC">;
7789
+ province: z.ZodString;
7790
+ district: z.ZodString;
7791
+ }, {
7792
+ urbanOrRural: z.ZodLiteral<"URBAN">;
7793
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7794
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7795
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7796
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7797
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7798
+ }>, "strip", z.ZodTypeAny, {
7799
+ country: string;
7800
+ district: string;
7801
+ addressType: "DOMESTIC";
7802
+ province: string;
7803
+ urbanOrRural: "URBAN";
7804
+ number?: string | null | undefined;
7805
+ town?: string | null | undefined;
7806
+ residentialArea?: string | null | undefined;
7807
+ street?: string | null | undefined;
7808
+ zipCode?: string | null | undefined;
7809
+ }, {
7810
+ country: string;
7811
+ district: string;
7812
+ addressType: "DOMESTIC";
7813
+ province: string;
7814
+ urbanOrRural: "URBAN";
7815
+ number?: string | null | undefined;
7816
+ town?: string | null | undefined;
7817
+ residentialArea?: string | null | undefined;
7818
+ street?: string | null | undefined;
7819
+ zipCode?: string | null | undefined;
7820
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7821
+ country: z.ZodString;
7822
+ addressType: z.ZodLiteral<"DOMESTIC">;
7823
+ province: z.ZodString;
7824
+ district: z.ZodString;
7825
+ }, {
7826
+ urbanOrRural: z.ZodLiteral<"RURAL">;
7827
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7828
+ }>, "strip", z.ZodTypeAny, {
7829
+ country: string;
7830
+ district: string;
7831
+ addressType: "DOMESTIC";
7832
+ province: string;
7833
+ urbanOrRural: "RURAL";
7834
+ village?: string | null | undefined;
7835
+ }, {
7836
+ country: string;
7837
+ district: string;
7838
+ addressType: "DOMESTIC";
7839
+ province: string;
7840
+ urbanOrRural: "RURAL";
7841
+ village?: string | null | undefined;
7842
+ }>, z.ZodUndefined, z.ZodObject<{
7843
+ country: z.ZodString;
7844
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
7845
+ state: z.ZodString;
7846
+ district2: z.ZodString;
7847
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7848
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7849
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7850
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7851
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7852
+ }, "strip", z.ZodTypeAny, {
7853
+ country: string;
7854
+ state: string;
7855
+ addressType: "INTERNATIONAL";
7856
+ district2: string;
7857
+ cityOrTown?: string | null | undefined;
7858
+ addressLine1?: string | null | undefined;
7859
+ addressLine2?: string | null | undefined;
7860
+ addressLine3?: string | null | undefined;
7861
+ postcodeOrZip?: string | null | undefined;
7862
+ }, {
7863
+ country: string;
7864
+ state: string;
7865
+ addressType: "INTERNATIONAL";
7866
+ district2: string;
7867
+ cityOrTown?: string | null | undefined;
7868
+ addressLine1?: string | null | undefined;
7869
+ addressLine2?: string | null | undefined;
7870
+ addressLine3?: string | null | undefined;
7871
+ postcodeOrZip?: string | null | undefined;
7872
+ }>]>>>;
7873
+ originalActionId: z.ZodOptional<z.ZodString>;
7874
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7875
+ }, {
7876
+ type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
7877
+ }>, "strip", z.ZodTypeAny, {
7878
+ type: "DECLARE";
7879
+ declaration: Record<string, string | number | boolean | {
7880
+ type: string;
7881
+ filename: string;
7882
+ originalFilename: string;
7883
+ } | {
7884
+ country: string;
7885
+ district: string;
7886
+ addressType: "DOMESTIC";
7887
+ province: string;
7888
+ urbanOrRural: "URBAN";
7889
+ number?: string | null | undefined;
7890
+ town?: string | null | undefined;
7891
+ residentialArea?: string | null | undefined;
7892
+ street?: string | null | undefined;
7893
+ zipCode?: string | null | undefined;
7894
+ } | {
7895
+ country: string;
7896
+ district: string;
7897
+ addressType: "DOMESTIC";
7898
+ province: string;
7899
+ urbanOrRural: "RURAL";
7900
+ village?: string | null | undefined;
7901
+ } | {
7902
+ country: string;
7903
+ state: string;
7904
+ addressType: "INTERNATIONAL";
7905
+ district2: string;
7906
+ cityOrTown?: string | null | undefined;
7907
+ addressLine1?: string | null | undefined;
7908
+ addressLine2?: string | null | undefined;
7909
+ addressLine3?: string | null | undefined;
7910
+ postcodeOrZip?: string | null | undefined;
7911
+ } | {
7912
+ type: string;
7913
+ option: string;
7914
+ filename: string;
7915
+ originalFilename: string;
7916
+ }[] | undefined>;
7917
+ eventId: string;
7918
+ transactionId: string;
7919
+ annotation?: Record<string, string | number | boolean | {
7920
+ type: string;
7921
+ filename: string;
7922
+ originalFilename: string;
7923
+ } | {
7924
+ country: string;
7925
+ district: string;
7926
+ addressType: "DOMESTIC";
7927
+ province: string;
7928
+ urbanOrRural: "URBAN";
7929
+ number?: string | null | undefined;
7930
+ town?: string | null | undefined;
7931
+ residentialArea?: string | null | undefined;
7932
+ street?: string | null | undefined;
7933
+ zipCode?: string | null | undefined;
7934
+ } | {
7935
+ country: string;
7936
+ district: string;
7937
+ addressType: "DOMESTIC";
7938
+ province: string;
7939
+ urbanOrRural: "RURAL";
7940
+ village?: string | null | undefined;
7941
+ } | {
7942
+ country: string;
7943
+ state: string;
7944
+ addressType: "INTERNATIONAL";
7945
+ district2: string;
7946
+ cityOrTown?: string | null | undefined;
7947
+ addressLine1?: string | null | undefined;
7948
+ addressLine2?: string | null | undefined;
7949
+ addressLine3?: string | null | undefined;
7950
+ postcodeOrZip?: string | null | undefined;
7951
+ } | {
7952
+ type: string;
7953
+ option: string;
7954
+ filename: string;
7955
+ originalFilename: string;
7956
+ }[] | undefined> | undefined;
7957
+ originalActionId?: string | undefined;
7958
+ keepAssignment?: boolean | undefined;
7959
+ }, {
7960
+ eventId: string;
7961
+ transactionId: string;
7962
+ type?: "DECLARE" | undefined;
7963
+ declaration?: Record<string, string | number | boolean | {
7964
+ type: string;
7965
+ filename: string;
7966
+ originalFilename: string;
7967
+ } | {
7968
+ country: string;
7969
+ district: string;
7970
+ addressType: "DOMESTIC";
7971
+ province: string;
7972
+ urbanOrRural: "URBAN";
7973
+ number?: string | null | undefined;
7974
+ town?: string | null | undefined;
7975
+ residentialArea?: string | null | undefined;
7976
+ street?: string | null | undefined;
7977
+ zipCode?: string | null | undefined;
7978
+ } | {
7979
+ country: string;
7980
+ district: string;
7981
+ addressType: "DOMESTIC";
7982
+ province: string;
7983
+ urbanOrRural: "RURAL";
7984
+ village?: string | null | undefined;
7985
+ } | {
7986
+ country: string;
7987
+ state: string;
7988
+ addressType: "INTERNATIONAL";
7989
+ district2: string;
7990
+ cityOrTown?: string | null | undefined;
7991
+ addressLine1?: string | null | undefined;
7992
+ addressLine2?: string | null | undefined;
7993
+ addressLine3?: string | null | undefined;
7994
+ postcodeOrZip?: string | null | undefined;
7995
+ } | {
7996
+ type: string;
7997
+ option: string;
7998
+ filename: string;
7999
+ originalFilename: string;
8000
+ }[] | undefined> | undefined;
8001
+ annotation?: Record<string, string | number | boolean | {
8002
+ type: string;
8003
+ filename: string;
8004
+ originalFilename: string;
8005
+ } | {
8006
+ country: string;
8007
+ district: string;
8008
+ addressType: "DOMESTIC";
8009
+ province: string;
8010
+ urbanOrRural: "URBAN";
8011
+ number?: string | null | undefined;
8012
+ town?: string | null | undefined;
8013
+ residentialArea?: string | null | undefined;
8014
+ street?: string | null | undefined;
8015
+ zipCode?: string | null | undefined;
8016
+ } | {
8017
+ country: string;
8018
+ district: string;
8019
+ addressType: "DOMESTIC";
8020
+ province: string;
8021
+ urbanOrRural: "RURAL";
8022
+ village?: string | null | undefined;
8023
+ } | {
8024
+ country: string;
8025
+ state: string;
8026
+ addressType: "INTERNATIONAL";
8027
+ district2: string;
8028
+ cityOrTown?: string | null | undefined;
8029
+ addressLine1?: string | null | undefined;
8030
+ addressLine2?: string | null | undefined;
8031
+ addressLine3?: string | null | undefined;
8032
+ postcodeOrZip?: string | null | undefined;
8033
+ } | {
8034
+ type: string;
8035
+ option: string;
8036
+ filename: string;
8037
+ originalFilename: string;
8038
+ }[] | undefined> | undefined;
8039
+ originalActionId?: string | undefined;
8040
+ keepAssignment?: boolean | undefined;
8041
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8042
+ eventId: z.ZodString;
8043
+ transactionId: z.ZodString;
8044
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8045
+ filename: z.ZodString;
8046
+ originalFilename: z.ZodString;
8047
+ type: z.ZodString;
8048
+ }, "strip", z.ZodTypeAny, {
8049
+ type: string;
8050
+ filename: string;
8051
+ originalFilename: string;
8052
+ }, {
8053
+ type: string;
8054
+ filename: string;
8055
+ originalFilename: string;
8056
+ }>, z.ZodArray<z.ZodObject<{
8057
+ filename: z.ZodString;
8058
+ originalFilename: z.ZodString;
8059
+ type: z.ZodString;
8060
+ option: z.ZodString;
8061
+ }, "strip", z.ZodTypeAny, {
8062
+ type: string;
8063
+ option: string;
8064
+ filename: string;
8065
+ originalFilename: string;
8066
+ }, {
8067
+ type: string;
8068
+ option: string;
8069
+ filename: string;
8070
+ originalFilename: string;
8071
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8072
+ country: z.ZodString;
8073
+ addressType: z.ZodLiteral<"DOMESTIC">;
8074
+ province: z.ZodString;
8075
+ district: z.ZodString;
8076
+ }, {
8077
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8078
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8079
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8080
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8081
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8082
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8083
+ }>, "strip", z.ZodTypeAny, {
8084
+ country: string;
8085
+ district: string;
8086
+ addressType: "DOMESTIC";
8087
+ province: string;
8088
+ urbanOrRural: "URBAN";
8089
+ number?: string | null | undefined;
8090
+ town?: string | null | undefined;
8091
+ residentialArea?: string | null | undefined;
8092
+ street?: string | null | undefined;
8093
+ zipCode?: string | null | undefined;
8094
+ }, {
8095
+ country: string;
8096
+ district: string;
8097
+ addressType: "DOMESTIC";
8098
+ province: string;
8099
+ urbanOrRural: "URBAN";
8100
+ number?: string | null | undefined;
8101
+ town?: string | null | undefined;
8102
+ residentialArea?: string | null | undefined;
8103
+ street?: string | null | undefined;
8104
+ zipCode?: string | null | undefined;
8105
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8106
+ country: z.ZodString;
8107
+ addressType: z.ZodLiteral<"DOMESTIC">;
8108
+ province: z.ZodString;
8109
+ district: z.ZodString;
8110
+ }, {
8111
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8112
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8113
+ }>, "strip", z.ZodTypeAny, {
8114
+ country: string;
8115
+ district: string;
8116
+ addressType: "DOMESTIC";
8117
+ province: string;
8118
+ urbanOrRural: "RURAL";
8119
+ village?: string | null | undefined;
8120
+ }, {
8121
+ country: string;
8122
+ district: string;
8123
+ addressType: "DOMESTIC";
8124
+ province: string;
8125
+ urbanOrRural: "RURAL";
8126
+ village?: string | null | undefined;
8127
+ }>, z.ZodUndefined, z.ZodObject<{
8128
+ country: z.ZodString;
8129
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8130
+ state: z.ZodString;
8131
+ district2: z.ZodString;
8132
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8133
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8134
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8135
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8136
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8137
+ }, "strip", z.ZodTypeAny, {
8138
+ country: string;
8139
+ state: string;
8140
+ addressType: "INTERNATIONAL";
8141
+ district2: string;
8142
+ cityOrTown?: string | null | undefined;
8143
+ addressLine1?: string | null | undefined;
8144
+ addressLine2?: string | null | undefined;
8145
+ addressLine3?: string | null | undefined;
8146
+ postcodeOrZip?: string | null | undefined;
8147
+ }, {
8148
+ country: string;
8149
+ state: string;
8150
+ addressType: "INTERNATIONAL";
8151
+ district2: string;
8152
+ cityOrTown?: string | null | undefined;
8153
+ addressLine1?: string | null | undefined;
8154
+ addressLine2?: string | null | undefined;
8155
+ addressLine3?: string | null | undefined;
8156
+ postcodeOrZip?: string | null | undefined;
8157
+ }>]>>>;
8158
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8159
+ filename: z.ZodString;
8160
+ originalFilename: z.ZodString;
8161
+ type: z.ZodString;
8162
+ }, "strip", z.ZodTypeAny, {
8163
+ type: string;
8164
+ filename: string;
8165
+ originalFilename: string;
8166
+ }, {
8167
+ type: string;
8168
+ filename: string;
8169
+ originalFilename: string;
8170
+ }>, z.ZodArray<z.ZodObject<{
8171
+ filename: z.ZodString;
8172
+ originalFilename: z.ZodString;
8173
+ type: z.ZodString;
8174
+ option: z.ZodString;
8175
+ }, "strip", z.ZodTypeAny, {
8176
+ type: string;
8177
+ option: string;
8178
+ filename: string;
8179
+ originalFilename: string;
8180
+ }, {
8181
+ type: string;
8182
+ option: string;
8183
+ filename: string;
8184
+ originalFilename: string;
8185
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8186
+ country: z.ZodString;
8187
+ addressType: z.ZodLiteral<"DOMESTIC">;
8188
+ province: z.ZodString;
8189
+ district: z.ZodString;
8190
+ }, {
8191
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8192
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8193
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8194
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8195
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8196
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8197
+ }>, "strip", z.ZodTypeAny, {
8198
+ country: string;
8199
+ district: string;
8200
+ addressType: "DOMESTIC";
8201
+ province: string;
8202
+ urbanOrRural: "URBAN";
8203
+ number?: string | null | undefined;
8204
+ town?: string | null | undefined;
8205
+ residentialArea?: string | null | undefined;
8206
+ street?: string | null | undefined;
8207
+ zipCode?: string | null | undefined;
8208
+ }, {
8209
+ country: string;
8210
+ district: string;
8211
+ addressType: "DOMESTIC";
8212
+ province: string;
8213
+ urbanOrRural: "URBAN";
8214
+ number?: string | null | undefined;
8215
+ town?: string | null | undefined;
8216
+ residentialArea?: string | null | undefined;
8217
+ street?: string | null | undefined;
8218
+ zipCode?: string | null | undefined;
8219
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8220
+ country: z.ZodString;
8221
+ addressType: z.ZodLiteral<"DOMESTIC">;
8222
+ province: z.ZodString;
8223
+ district: z.ZodString;
8224
+ }, {
8225
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8226
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8227
+ }>, "strip", z.ZodTypeAny, {
8228
+ country: string;
8229
+ district: string;
8230
+ addressType: "DOMESTIC";
8231
+ province: string;
8232
+ urbanOrRural: "RURAL";
8233
+ village?: string | null | undefined;
8234
+ }, {
8235
+ country: string;
8236
+ district: string;
8237
+ addressType: "DOMESTIC";
8238
+ province: string;
8239
+ urbanOrRural: "RURAL";
8240
+ village?: string | null | undefined;
8241
+ }>, z.ZodUndefined, z.ZodObject<{
8242
+ country: z.ZodString;
8243
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8244
+ state: z.ZodString;
8245
+ district2: z.ZodString;
8246
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8247
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8248
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8249
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8250
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8251
+ }, "strip", z.ZodTypeAny, {
8252
+ country: string;
8253
+ state: string;
8254
+ addressType: "INTERNATIONAL";
8255
+ district2: string;
8256
+ cityOrTown?: string | null | undefined;
8257
+ addressLine1?: string | null | undefined;
8258
+ addressLine2?: string | null | undefined;
8259
+ addressLine3?: string | null | undefined;
8260
+ postcodeOrZip?: string | null | undefined;
8261
+ }, {
8262
+ country: string;
8263
+ state: string;
8264
+ addressType: "INTERNATIONAL";
8265
+ district2: string;
8266
+ cityOrTown?: string | null | undefined;
8267
+ addressLine1?: string | null | undefined;
8268
+ addressLine2?: string | null | undefined;
8269
+ addressLine3?: string | null | undefined;
8270
+ postcodeOrZip?: string | null | undefined;
8271
+ }>]>>>;
8272
+ originalActionId: z.ZodOptional<z.ZodString>;
8273
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8274
+ }, {
8275
+ type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
8276
+ }>, "strip", z.ZodTypeAny, {
8277
+ type: "REJECT";
8278
+ declaration: Record<string, string | number | boolean | {
8279
+ type: string;
8280
+ filename: string;
8281
+ originalFilename: string;
8282
+ } | {
8283
+ country: string;
8284
+ district: string;
8285
+ addressType: "DOMESTIC";
8286
+ province: string;
8287
+ urbanOrRural: "URBAN";
8288
+ number?: string | null | undefined;
8289
+ town?: string | null | undefined;
8290
+ residentialArea?: string | null | undefined;
8291
+ street?: string | null | undefined;
8292
+ zipCode?: string | null | undefined;
8293
+ } | {
8294
+ country: string;
8295
+ district: string;
8296
+ addressType: "DOMESTIC";
8297
+ province: string;
8298
+ urbanOrRural: "RURAL";
8299
+ village?: string | null | undefined;
8300
+ } | {
8301
+ country: string;
8302
+ state: string;
8303
+ addressType: "INTERNATIONAL";
8304
+ district2: string;
8305
+ cityOrTown?: string | null | undefined;
8306
+ addressLine1?: string | null | undefined;
8307
+ addressLine2?: string | null | undefined;
8308
+ addressLine3?: string | null | undefined;
8309
+ postcodeOrZip?: string | null | undefined;
8310
+ } | {
8311
+ type: string;
8312
+ option: string;
8313
+ filename: string;
8314
+ originalFilename: string;
8315
+ }[] | undefined>;
8316
+ eventId: string;
8317
+ transactionId: string;
8318
+ annotation?: Record<string, string | number | boolean | {
8319
+ type: string;
8320
+ filename: string;
8321
+ originalFilename: string;
8322
+ } | {
8323
+ country: string;
8324
+ district: string;
8325
+ addressType: "DOMESTIC";
8326
+ province: string;
8327
+ urbanOrRural: "URBAN";
8328
+ number?: string | null | undefined;
8329
+ town?: string | null | undefined;
8330
+ residentialArea?: string | null | undefined;
8331
+ street?: string | null | undefined;
8332
+ zipCode?: string | null | undefined;
8333
+ } | {
8334
+ country: string;
8335
+ district: string;
8336
+ addressType: "DOMESTIC";
8337
+ province: string;
8338
+ urbanOrRural: "RURAL";
8339
+ village?: string | null | undefined;
8340
+ } | {
8341
+ country: string;
8342
+ state: string;
8343
+ addressType: "INTERNATIONAL";
8344
+ district2: string;
8345
+ cityOrTown?: string | null | undefined;
8346
+ addressLine1?: string | null | undefined;
8347
+ addressLine2?: string | null | undefined;
8348
+ addressLine3?: string | null | undefined;
8349
+ postcodeOrZip?: string | null | undefined;
8350
+ } | {
8351
+ type: string;
8352
+ option: string;
8353
+ filename: string;
8354
+ originalFilename: string;
8355
+ }[] | undefined> | undefined;
8356
+ originalActionId?: string | undefined;
8357
+ keepAssignment?: boolean | undefined;
8358
+ }, {
8359
+ eventId: string;
8360
+ transactionId: string;
8361
+ type?: "REJECT" | undefined;
8362
+ declaration?: Record<string, string | number | boolean | {
8363
+ type: string;
8364
+ filename: string;
8365
+ originalFilename: string;
8366
+ } | {
8367
+ country: string;
8368
+ district: string;
8369
+ addressType: "DOMESTIC";
8370
+ province: string;
8371
+ urbanOrRural: "URBAN";
8372
+ number?: string | null | undefined;
8373
+ town?: string | null | undefined;
8374
+ residentialArea?: string | null | undefined;
8375
+ street?: string | null | undefined;
8376
+ zipCode?: string | null | undefined;
8377
+ } | {
8378
+ country: string;
8379
+ district: string;
8380
+ addressType: "DOMESTIC";
8381
+ province: string;
8382
+ urbanOrRural: "RURAL";
8383
+ village?: string | null | undefined;
8384
+ } | {
8385
+ country: string;
8386
+ state: string;
8387
+ addressType: "INTERNATIONAL";
8388
+ district2: string;
8389
+ cityOrTown?: string | null | undefined;
8390
+ addressLine1?: string | null | undefined;
8391
+ addressLine2?: string | null | undefined;
8392
+ addressLine3?: string | null | undefined;
8393
+ postcodeOrZip?: string | null | undefined;
8394
+ } | {
8395
+ type: string;
8396
+ option: string;
8397
+ filename: string;
8398
+ originalFilename: string;
8399
+ }[] | undefined> | undefined;
8400
+ annotation?: Record<string, string | number | boolean | {
8401
+ type: string;
8402
+ filename: string;
8403
+ originalFilename: string;
8404
+ } | {
8405
+ country: string;
8406
+ district: string;
8407
+ addressType: "DOMESTIC";
8408
+ province: string;
8409
+ urbanOrRural: "URBAN";
8410
+ number?: string | null | undefined;
8411
+ town?: string | null | undefined;
8412
+ residentialArea?: string | null | undefined;
8413
+ street?: string | null | undefined;
8414
+ zipCode?: string | null | undefined;
8415
+ } | {
8416
+ country: string;
8417
+ district: string;
8418
+ addressType: "DOMESTIC";
8419
+ province: string;
8420
+ urbanOrRural: "RURAL";
8421
+ village?: string | null | undefined;
8422
+ } | {
8423
+ country: string;
8424
+ state: string;
8425
+ addressType: "INTERNATIONAL";
8426
+ district2: string;
8427
+ cityOrTown?: string | null | undefined;
8428
+ addressLine1?: string | null | undefined;
8429
+ addressLine2?: string | null | undefined;
8430
+ addressLine3?: string | null | undefined;
8431
+ postcodeOrZip?: string | null | undefined;
8432
+ } | {
8433
+ type: string;
8434
+ option: string;
8435
+ filename: string;
8436
+ originalFilename: string;
8437
+ }[] | undefined> | undefined;
8438
+ originalActionId?: string | undefined;
8439
+ keepAssignment?: boolean | undefined;
8440
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8441
+ eventId: z.ZodString;
8442
+ transactionId: z.ZodString;
8443
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8444
+ filename: z.ZodString;
8445
+ originalFilename: z.ZodString;
8446
+ type: z.ZodString;
8447
+ }, "strip", z.ZodTypeAny, {
8448
+ type: string;
8449
+ filename: string;
8450
+ originalFilename: string;
8451
+ }, {
8452
+ type: string;
8453
+ filename: string;
8454
+ originalFilename: string;
8455
+ }>, z.ZodArray<z.ZodObject<{
8456
+ filename: z.ZodString;
8457
+ originalFilename: z.ZodString;
8458
+ type: z.ZodString;
8459
+ option: z.ZodString;
8460
+ }, "strip", z.ZodTypeAny, {
8461
+ type: string;
8462
+ option: string;
8463
+ filename: string;
8464
+ originalFilename: string;
8465
+ }, {
8466
+ type: string;
8467
+ option: string;
8468
+ filename: string;
8469
+ originalFilename: string;
8470
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8471
+ country: z.ZodString;
8472
+ addressType: z.ZodLiteral<"DOMESTIC">;
8473
+ province: z.ZodString;
8474
+ district: z.ZodString;
8475
+ }, {
8476
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8477
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8478
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8479
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8480
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8481
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8482
+ }>, "strip", z.ZodTypeAny, {
8483
+ country: string;
8484
+ district: string;
8485
+ addressType: "DOMESTIC";
8486
+ province: string;
8487
+ urbanOrRural: "URBAN";
8488
+ number?: string | null | undefined;
8489
+ town?: string | null | undefined;
8490
+ residentialArea?: string | null | undefined;
8491
+ street?: string | null | undefined;
8492
+ zipCode?: string | null | undefined;
8493
+ }, {
8494
+ country: string;
8495
+ district: string;
8496
+ addressType: "DOMESTIC";
8497
+ province: string;
8498
+ urbanOrRural: "URBAN";
8499
+ number?: string | null | undefined;
8500
+ town?: string | null | undefined;
8501
+ residentialArea?: string | null | undefined;
8502
+ street?: string | null | undefined;
8503
+ zipCode?: string | null | undefined;
8504
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8505
+ country: z.ZodString;
8506
+ addressType: z.ZodLiteral<"DOMESTIC">;
8507
+ province: z.ZodString;
8508
+ district: z.ZodString;
8509
+ }, {
8510
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8511
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8512
+ }>, "strip", z.ZodTypeAny, {
8513
+ country: string;
8514
+ district: string;
8515
+ addressType: "DOMESTIC";
8516
+ province: string;
8517
+ urbanOrRural: "RURAL";
8518
+ village?: string | null | undefined;
8519
+ }, {
8520
+ country: string;
8521
+ district: string;
8522
+ addressType: "DOMESTIC";
8523
+ province: string;
8524
+ urbanOrRural: "RURAL";
8525
+ village?: string | null | undefined;
8526
+ }>, z.ZodUndefined, z.ZodObject<{
8527
+ country: z.ZodString;
8528
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8529
+ state: z.ZodString;
8530
+ district2: z.ZodString;
8531
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8532
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8533
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8534
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8535
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8536
+ }, "strip", z.ZodTypeAny, {
8537
+ country: string;
8538
+ state: string;
8539
+ addressType: "INTERNATIONAL";
8540
+ district2: string;
8541
+ cityOrTown?: string | null | undefined;
8542
+ addressLine1?: string | null | undefined;
8543
+ addressLine2?: string | null | undefined;
8544
+ addressLine3?: string | null | undefined;
8545
+ postcodeOrZip?: string | null | undefined;
8546
+ }, {
8547
+ country: string;
8548
+ state: string;
8549
+ addressType: "INTERNATIONAL";
8550
+ district2: string;
8551
+ cityOrTown?: string | null | undefined;
8552
+ addressLine1?: string | null | undefined;
8553
+ addressLine2?: string | null | undefined;
8554
+ addressLine3?: string | null | undefined;
8555
+ postcodeOrZip?: string | null | undefined;
8556
+ }>]>>>;
8557
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8558
+ filename: z.ZodString;
8559
+ originalFilename: z.ZodString;
8560
+ type: z.ZodString;
8561
+ }, "strip", z.ZodTypeAny, {
8562
+ type: string;
8563
+ filename: string;
8564
+ originalFilename: string;
8565
+ }, {
8566
+ type: string;
8567
+ filename: string;
8568
+ originalFilename: string;
8569
+ }>, z.ZodArray<z.ZodObject<{
8570
+ filename: z.ZodString;
8571
+ originalFilename: z.ZodString;
8572
+ type: z.ZodString;
8573
+ option: z.ZodString;
8574
+ }, "strip", z.ZodTypeAny, {
8575
+ type: string;
8576
+ option: string;
8577
+ filename: string;
8578
+ originalFilename: string;
8579
+ }, {
8580
+ type: string;
8581
+ option: string;
8582
+ filename: string;
8583
+ originalFilename: string;
8584
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
8585
+ country: z.ZodString;
8586
+ addressType: z.ZodLiteral<"DOMESTIC">;
8587
+ province: z.ZodString;
8588
+ district: z.ZodString;
8589
+ }, {
8590
+ urbanOrRural: z.ZodLiteral<"URBAN">;
8591
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8592
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8593
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8594
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8595
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8596
+ }>, "strip", z.ZodTypeAny, {
8597
+ country: string;
8598
+ district: string;
8599
+ addressType: "DOMESTIC";
8600
+ province: string;
8601
+ urbanOrRural: "URBAN";
8602
+ number?: string | null | undefined;
8603
+ town?: string | null | undefined;
8604
+ residentialArea?: string | null | undefined;
8605
+ street?: string | null | undefined;
8606
+ zipCode?: string | null | undefined;
8607
+ }, {
8608
+ country: string;
8609
+ district: string;
8610
+ addressType: "DOMESTIC";
8611
+ province: string;
8612
+ urbanOrRural: "URBAN";
8613
+ number?: string | null | undefined;
8614
+ town?: string | null | undefined;
8615
+ residentialArea?: string | null | undefined;
8616
+ street?: string | null | undefined;
8617
+ zipCode?: string | null | undefined;
8618
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8619
+ country: z.ZodString;
8620
+ addressType: z.ZodLiteral<"DOMESTIC">;
8621
+ province: z.ZodString;
8622
+ district: z.ZodString;
8623
+ }, {
8624
+ urbanOrRural: z.ZodLiteral<"RURAL">;
8625
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8626
+ }>, "strip", z.ZodTypeAny, {
8627
+ country: string;
8628
+ district: string;
8629
+ addressType: "DOMESTIC";
8630
+ province: string;
8631
+ urbanOrRural: "RURAL";
8632
+ village?: string | null | undefined;
8633
+ }, {
8634
+ country: string;
8635
+ district: string;
8636
+ addressType: "DOMESTIC";
8637
+ province: string;
8638
+ urbanOrRural: "RURAL";
8639
+ village?: string | null | undefined;
8640
+ }>, z.ZodUndefined, z.ZodObject<{
8641
+ country: z.ZodString;
8642
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
8643
+ state: z.ZodString;
8644
+ district2: z.ZodString;
8645
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8646
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8647
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8648
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8649
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8650
+ }, "strip", z.ZodTypeAny, {
8651
+ country: string;
8652
+ state: string;
8653
+ addressType: "INTERNATIONAL";
8654
+ district2: string;
8655
+ cityOrTown?: string | null | undefined;
8656
+ addressLine1?: string | null | undefined;
8657
+ addressLine2?: string | null | undefined;
8658
+ addressLine3?: string | null | undefined;
8659
+ postcodeOrZip?: string | null | undefined;
8660
+ }, {
8661
+ country: string;
8662
+ state: string;
8663
+ addressType: "INTERNATIONAL";
8664
+ district2: string;
8665
+ cityOrTown?: string | null | undefined;
8666
+ addressLine1?: string | null | undefined;
8667
+ addressLine2?: string | null | undefined;
8668
+ addressLine3?: string | null | undefined;
8669
+ postcodeOrZip?: string | null | undefined;
8670
+ }>]>>>;
8671
+ originalActionId: z.ZodOptional<z.ZodString>;
8672
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8673
+ }, {
8674
+ type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
8675
+ }>, "strip", z.ZodTypeAny, {
8676
+ type: "MARKED_AS_DUPLICATE";
8677
+ declaration: Record<string, string | number | boolean | {
8678
+ type: string;
8679
+ filename: string;
7077
8680
  originalFilename: string;
7078
8681
  } | {
7079
8682
  country: string;
@@ -7111,8 +8714,89 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7111
8714
  }[] | undefined>;
7112
8715
  eventId: string;
7113
8716
  transactionId: string;
7114
- type?: "REJECT" | undefined;
7115
- metadata?: Record<string, string | number | boolean | {
8717
+ annotation?: Record<string, string | number | boolean | {
8718
+ type: string;
8719
+ filename: string;
8720
+ originalFilename: string;
8721
+ } | {
8722
+ country: string;
8723
+ district: string;
8724
+ addressType: "DOMESTIC";
8725
+ province: string;
8726
+ urbanOrRural: "URBAN";
8727
+ number?: string | null | undefined;
8728
+ town?: string | null | undefined;
8729
+ residentialArea?: string | null | undefined;
8730
+ street?: string | null | undefined;
8731
+ zipCode?: string | null | undefined;
8732
+ } | {
8733
+ country: string;
8734
+ district: string;
8735
+ addressType: "DOMESTIC";
8736
+ province: string;
8737
+ urbanOrRural: "RURAL";
8738
+ village?: string | null | undefined;
8739
+ } | {
8740
+ country: string;
8741
+ state: string;
8742
+ addressType: "INTERNATIONAL";
8743
+ district2: string;
8744
+ cityOrTown?: string | null | undefined;
8745
+ addressLine1?: string | null | undefined;
8746
+ addressLine2?: string | null | undefined;
8747
+ addressLine3?: string | null | undefined;
8748
+ postcodeOrZip?: string | null | undefined;
8749
+ } | {
8750
+ type: string;
8751
+ option: string;
8752
+ filename: string;
8753
+ originalFilename: string;
8754
+ }[] | undefined> | undefined;
8755
+ originalActionId?: string | undefined;
8756
+ keepAssignment?: boolean | undefined;
8757
+ }, {
8758
+ eventId: string;
8759
+ transactionId: string;
8760
+ type?: "MARKED_AS_DUPLICATE" | undefined;
8761
+ declaration?: Record<string, string | number | boolean | {
8762
+ type: string;
8763
+ filename: string;
8764
+ originalFilename: string;
8765
+ } | {
8766
+ country: string;
8767
+ district: string;
8768
+ addressType: "DOMESTIC";
8769
+ province: string;
8770
+ urbanOrRural: "URBAN";
8771
+ number?: string | null | undefined;
8772
+ town?: string | null | undefined;
8773
+ residentialArea?: string | null | undefined;
8774
+ street?: string | null | undefined;
8775
+ zipCode?: string | null | undefined;
8776
+ } | {
8777
+ country: string;
8778
+ district: string;
8779
+ addressType: "DOMESTIC";
8780
+ province: string;
8781
+ urbanOrRural: "RURAL";
8782
+ village?: string | null | undefined;
8783
+ } | {
8784
+ country: string;
8785
+ state: string;
8786
+ addressType: "INTERNATIONAL";
8787
+ district2: string;
8788
+ cityOrTown?: string | null | undefined;
8789
+ addressLine1?: string | null | undefined;
8790
+ addressLine2?: string | null | undefined;
8791
+ addressLine3?: string | null | undefined;
8792
+ postcodeOrZip?: string | null | undefined;
8793
+ } | {
8794
+ type: string;
8795
+ option: string;
8796
+ filename: string;
8797
+ originalFilename: string;
8798
+ }[] | undefined> | undefined;
8799
+ annotation?: Record<string, string | number | boolean | {
7116
8800
  type: string;
7117
8801
  filename: string;
7118
8802
  originalFilename: string;
@@ -7150,10 +8834,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7150
8834
  filename: string;
7151
8835
  originalFilename: string;
7152
8836
  }[] | undefined> | undefined;
8837
+ originalActionId?: string | undefined;
8838
+ keepAssignment?: boolean | undefined;
7153
8839
  }>, z.ZodObject<z.objectUtil.extendShape<{
7154
8840
  eventId: z.ZodString;
7155
8841
  transactionId: z.ZodString;
7156
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8842
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7157
8843
  filename: z.ZodString;
7158
8844
  originalFilename: z.ZodString;
7159
8845
  type: z.ZodString;
@@ -7266,8 +8952,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7266
8952
  addressLine2?: string | null | undefined;
7267
8953
  addressLine3?: string | null | undefined;
7268
8954
  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<{
8955
+ }>]>>>;
8956
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7271
8957
  filename: z.ZodString;
7272
8958
  originalFilename: z.ZodString;
7273
8959
  type: z.ZodString;
@@ -7381,11 +9067,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7381
9067
  addressLine3?: string | null | undefined;
7382
9068
  postcodeOrZip?: string | null | undefined;
7383
9069
  }>]>>>;
9070
+ originalActionId: z.ZodOptional<z.ZodString>;
9071
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7384
9072
  }, {
7385
- type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
9073
+ type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
7386
9074
  }>, "strip", z.ZodTypeAny, {
7387
- type: "MARKED_AS_DUPLICATE";
7388
- data: Record<string, string | number | boolean | {
9075
+ type: "ARCHIVE";
9076
+ declaration: Record<string, string | number | boolean | {
7389
9077
  type: string;
7390
9078
  filename: string;
7391
9079
  originalFilename: string;
@@ -7425,7 +9113,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7425
9113
  }[] | undefined>;
7426
9114
  eventId: string;
7427
9115
  transactionId: string;
7428
- metadata?: Record<string, string | number | boolean | {
9116
+ annotation?: Record<string, string | number | boolean | {
7429
9117
  type: string;
7430
9118
  filename: string;
7431
9119
  originalFilename: string;
@@ -7463,8 +9151,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7463
9151
  filename: string;
7464
9152
  originalFilename: string;
7465
9153
  }[] | undefined> | undefined;
9154
+ originalActionId?: string | undefined;
9155
+ keepAssignment?: boolean | undefined;
7466
9156
  }, {
7467
- data: Record<string, string | number | boolean | {
9157
+ eventId: string;
9158
+ transactionId: string;
9159
+ type?: "ARCHIVE" | undefined;
9160
+ declaration?: Record<string, string | number | boolean | {
7468
9161
  type: string;
7469
9162
  filename: string;
7470
9163
  originalFilename: string;
@@ -7501,11 +9194,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7501
9194
  option: string;
7502
9195
  filename: string;
7503
9196
  originalFilename: string;
7504
- }[] | undefined>;
7505
- eventId: string;
7506
- transactionId: string;
7507
- type?: "MARKED_AS_DUPLICATE" | undefined;
7508
- metadata?: Record<string, string | number | boolean | {
9197
+ }[] | undefined> | undefined;
9198
+ annotation?: Record<string, string | number | boolean | {
7509
9199
  type: string;
7510
9200
  filename: string;
7511
9201
  originalFilename: string;
@@ -7543,10 +9233,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7543
9233
  filename: string;
7544
9234
  originalFilename: string;
7545
9235
  }[] | undefined> | undefined;
9236
+ originalActionId?: string | undefined;
9237
+ keepAssignment?: boolean | undefined;
7546
9238
  }>, z.ZodObject<z.objectUtil.extendShape<{
7547
9239
  eventId: z.ZodString;
7548
9240
  transactionId: z.ZodString;
7549
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9241
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7550
9242
  filename: z.ZodString;
7551
9243
  originalFilename: z.ZodString;
7552
9244
  type: z.ZodString;
@@ -7659,8 +9351,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7659
9351
  addressLine2?: string | null | undefined;
7660
9352
  addressLine3?: string | null | undefined;
7661
9353
  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<{
9354
+ }>]>>>;
9355
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7664
9356
  filename: z.ZodString;
7665
9357
  originalFilename: z.ZodString;
7666
9358
  type: z.ZodString;
@@ -7774,11 +9466,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7774
9466
  addressLine3?: string | null | undefined;
7775
9467
  postcodeOrZip?: string | null | undefined;
7776
9468
  }>]>>>;
9469
+ originalActionId: z.ZodOptional<z.ZodString>;
9470
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
7777
9471
  }, {
7778
- type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
9472
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
9473
+ assignedTo: z.ZodString;
7779
9474
  }>, "strip", z.ZodTypeAny, {
7780
- type: "ARCHIVE";
7781
- data: Record<string, string | number | boolean | {
9475
+ type: "ASSIGN";
9476
+ declaration: Record<string, string | number | boolean | {
7782
9477
  type: string;
7783
9478
  filename: string;
7784
9479
  originalFilename: string;
@@ -7816,9 +9511,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7816
9511
  filename: string;
7817
9512
  originalFilename: string;
7818
9513
  }[] | undefined>;
9514
+ assignedTo: string;
7819
9515
  eventId: string;
7820
9516
  transactionId: string;
7821
- metadata?: Record<string, string | number | boolean | {
9517
+ annotation?: Record<string, string | number | boolean | {
7822
9518
  type: string;
7823
9519
  filename: string;
7824
9520
  originalFilename: string;
@@ -7856,8 +9552,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7856
9552
  filename: string;
7857
9553
  originalFilename: string;
7858
9554
  }[] | undefined> | undefined;
9555
+ originalActionId?: string | undefined;
9556
+ keepAssignment?: boolean | undefined;
7859
9557
  }, {
7860
- data: Record<string, string | number | boolean | {
9558
+ assignedTo: string;
9559
+ eventId: string;
9560
+ transactionId: string;
9561
+ type?: "ASSIGN" | undefined;
9562
+ declaration?: Record<string, string | number | boolean | {
7861
9563
  type: string;
7862
9564
  filename: string;
7863
9565
  originalFilename: string;
@@ -7894,11 +9596,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7894
9596
  option: string;
7895
9597
  filename: string;
7896
9598
  originalFilename: string;
7897
- }[] | undefined>;
7898
- eventId: string;
7899
- transactionId: string;
7900
- type?: "ARCHIVE" | undefined;
7901
- metadata?: Record<string, string | number | boolean | {
9599
+ }[] | undefined> | undefined;
9600
+ annotation?: Record<string, string | number | boolean | {
7902
9601
  type: string;
7903
9602
  filename: string;
7904
9603
  originalFilename: string;
@@ -7936,10 +9635,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7936
9635
  filename: string;
7937
9636
  originalFilename: string;
7938
9637
  }[] | undefined> | undefined;
9638
+ originalActionId?: string | undefined;
9639
+ keepAssignment?: boolean | undefined;
7939
9640
  }>, z.ZodObject<z.objectUtil.extendShape<{
7940
9641
  eventId: z.ZodString;
7941
9642
  transactionId: z.ZodString;
7942
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9643
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7943
9644
  filename: z.ZodString;
7944
9645
  originalFilename: z.ZodString;
7945
9646
  type: z.ZodString;
@@ -8052,8 +9753,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8052
9753
  addressLine2?: string | null | undefined;
8053
9754
  addressLine3?: string | null | undefined;
8054
9755
  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<{
9756
+ }>]>>>;
9757
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8057
9758
  filename: z.ZodString;
8058
9759
  originalFilename: z.ZodString;
8059
9760
  type: z.ZodString;
@@ -8167,12 +9868,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8167
9868
  addressLine3?: string | null | undefined;
8168
9869
  postcodeOrZip?: string | null | undefined;
8169
9870
  }>]>>>;
9871
+ originalActionId: z.ZodOptional<z.ZodString>;
9872
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8170
9873
  }, {
8171
- type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
8172
- assignedTo: z.ZodString;
9874
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
9875
+ assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
8173
9876
  }>, "strip", z.ZodTypeAny, {
8174
- type: "ASSIGN";
8175
- data: Record<string, string | number | boolean | {
9877
+ type: "UNASSIGN";
9878
+ declaration: Record<string, string | number | boolean | {
8176
9879
  type: string;
8177
9880
  filename: string;
8178
9881
  originalFilename: string;
@@ -8210,10 +9913,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8210
9913
  filename: string;
8211
9914
  originalFilename: string;
8212
9915
  }[] | undefined>;
8213
- assignedTo: string;
9916
+ assignedTo: null;
8214
9917
  eventId: string;
8215
9918
  transactionId: string;
8216
- metadata?: Record<string, string | number | boolean | {
9919
+ annotation?: Record<string, string | number | boolean | {
8217
9920
  type: string;
8218
9921
  filename: string;
8219
9922
  originalFilename: string;
@@ -8251,8 +9954,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8251
9954
  filename: string;
8252
9955
  originalFilename: string;
8253
9956
  }[] | undefined> | undefined;
9957
+ originalActionId?: string | undefined;
9958
+ keepAssignment?: boolean | undefined;
8254
9959
  }, {
8255
- data: Record<string, string | number | boolean | {
9960
+ eventId: string;
9961
+ transactionId: string;
9962
+ type?: "UNASSIGN" | undefined;
9963
+ declaration?: Record<string, string | number | boolean | {
8256
9964
  type: string;
8257
9965
  filename: string;
8258
9966
  originalFilename: string;
@@ -8289,12 +9997,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8289
9997
  option: string;
8290
9998
  filename: string;
8291
9999
  originalFilename: string;
8292
- }[] | undefined>;
8293
- assignedTo: string;
8294
- eventId: string;
8295
- transactionId: string;
8296
- type?: "ASSIGN" | undefined;
8297
- metadata?: Record<string, string | number | boolean | {
10000
+ }[] | undefined> | undefined;
10001
+ annotation?: Record<string, string | number | boolean | {
8298
10002
  type: string;
8299
10003
  filename: string;
8300
10004
  originalFilename: string;
@@ -8332,10 +10036,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8332
10036
  filename: string;
8333
10037
  originalFilename: string;
8334
10038
  }[] | undefined> | undefined;
10039
+ originalActionId?: string | undefined;
10040
+ assignedTo?: null | undefined;
10041
+ keepAssignment?: boolean | undefined;
8335
10042
  }>, z.ZodObject<z.objectUtil.extendShape<{
8336
10043
  eventId: z.ZodString;
8337
10044
  transactionId: z.ZodString;
8338
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10045
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8339
10046
  filename: z.ZodString;
8340
10047
  originalFilename: z.ZodString;
8341
10048
  type: z.ZodString;
@@ -8448,8 +10155,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8448
10155
  addressLine2?: string | null | undefined;
8449
10156
  addressLine3?: string | null | undefined;
8450
10157
  postcodeOrZip?: string | null | undefined;
8451
- }>]>>;
8452
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10158
+ }>]>>>;
10159
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8453
10160
  filename: z.ZodString;
8454
10161
  originalFilename: z.ZodString;
8455
10162
  type: z.ZodString;
@@ -8563,11 +10270,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8563
10270
  addressLine3?: string | null | undefined;
8564
10271
  postcodeOrZip?: string | null | undefined;
8565
10272
  }>]>>>;
10273
+ originalActionId: z.ZodOptional<z.ZodString>;
10274
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8566
10275
  }, {
8567
- type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
10276
+ type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
8568
10277
  }>, "strip", z.ZodTypeAny, {
8569
- type: "UNASSIGN";
8570
- data: Record<string, string | number | boolean | {
10278
+ type: "PRINT_CERTIFICATE";
10279
+ declaration: Record<string, string | number | boolean | {
8571
10280
  type: string;
8572
10281
  filename: string;
8573
10282
  originalFilename: string;
@@ -8607,7 +10316,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8607
10316
  }[] | undefined>;
8608
10317
  eventId: string;
8609
10318
  transactionId: string;
8610
- metadata?: Record<string, string | number | boolean | {
10319
+ annotation?: Record<string, string | number | boolean | {
8611
10320
  type: string;
8612
10321
  filename: string;
8613
10322
  originalFilename: string;
@@ -8645,8 +10354,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8645
10354
  filename: string;
8646
10355
  originalFilename: string;
8647
10356
  }[] | undefined> | undefined;
10357
+ originalActionId?: string | undefined;
10358
+ keepAssignment?: boolean | undefined;
8648
10359
  }, {
8649
- data: Record<string, string | number | boolean | {
10360
+ eventId: string;
10361
+ transactionId: string;
10362
+ type?: "PRINT_CERTIFICATE" | undefined;
10363
+ declaration?: Record<string, string | number | boolean | {
8650
10364
  type: string;
8651
10365
  filename: string;
8652
10366
  originalFilename: string;
@@ -8683,11 +10397,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8683
10397
  option: string;
8684
10398
  filename: string;
8685
10399
  originalFilename: string;
8686
- }[] | undefined>;
8687
- eventId: string;
8688
- transactionId: string;
8689
- type?: "UNASSIGN" | undefined;
8690
- metadata?: Record<string, string | number | boolean | {
10400
+ }[] | undefined> | undefined;
10401
+ annotation?: Record<string, string | number | boolean | {
8691
10402
  type: string;
8692
10403
  filename: string;
8693
10404
  originalFilename: string;
@@ -8725,10 +10436,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8725
10436
  filename: string;
8726
10437
  originalFilename: string;
8727
10438
  }[] | undefined> | undefined;
10439
+ originalActionId?: string | undefined;
10440
+ keepAssignment?: boolean | undefined;
8728
10441
  }>, z.ZodObject<z.objectUtil.extendShape<{
8729
10442
  eventId: z.ZodString;
8730
10443
  transactionId: z.ZodString;
8731
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10444
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8732
10445
  filename: z.ZodString;
8733
10446
  originalFilename: z.ZodString;
8734
10447
  type: z.ZodString;
@@ -8841,8 +10554,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8841
10554
  addressLine2?: string | null | undefined;
8842
10555
  addressLine3?: string | null | undefined;
8843
10556
  postcodeOrZip?: string | null | undefined;
8844
- }>]>>;
8845
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10557
+ }>]>>>;
10558
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8846
10559
  filename: z.ZodString;
8847
10560
  originalFilename: z.ZodString;
8848
10561
  type: z.ZodString;
@@ -8956,11 +10669,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8956
10669
  addressLine3?: string | null | undefined;
8957
10670
  postcodeOrZip?: string | null | undefined;
8958
10671
  }>]>>>;
10672
+ originalActionId: z.ZodOptional<z.ZodString>;
10673
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
8959
10674
  }, {
8960
- type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
10675
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
8961
10676
  }>, "strip", z.ZodTypeAny, {
8962
- type: "PRINT_CERTIFICATE";
8963
- data: Record<string, string | number | boolean | {
10677
+ type: "REQUEST_CORRECTION";
10678
+ declaration: Record<string, string | number | boolean | {
8964
10679
  type: string;
8965
10680
  filename: string;
8966
10681
  originalFilename: string;
@@ -9000,7 +10715,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9000
10715
  }[] | undefined>;
9001
10716
  eventId: string;
9002
10717
  transactionId: string;
9003
- metadata?: Record<string, string | number | boolean | {
10718
+ annotation?: Record<string, string | number | boolean | {
9004
10719
  type: string;
9005
10720
  filename: string;
9006
10721
  originalFilename: string;
@@ -9038,8 +10753,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9038
10753
  filename: string;
9039
10754
  originalFilename: string;
9040
10755
  }[] | undefined> | undefined;
10756
+ originalActionId?: string | undefined;
10757
+ keepAssignment?: boolean | undefined;
9041
10758
  }, {
9042
- data: Record<string, string | number | boolean | {
10759
+ eventId: string;
10760
+ transactionId: string;
10761
+ type?: "REQUEST_CORRECTION" | undefined;
10762
+ declaration?: Record<string, string | number | boolean | {
9043
10763
  type: string;
9044
10764
  filename: string;
9045
10765
  originalFilename: string;
@@ -9076,11 +10796,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9076
10796
  option: string;
9077
10797
  filename: string;
9078
10798
  originalFilename: string;
9079
- }[] | undefined>;
9080
- eventId: string;
9081
- transactionId: string;
9082
- type?: "PRINT_CERTIFICATE" | undefined;
9083
- metadata?: Record<string, string | number | boolean | {
10799
+ }[] | undefined> | undefined;
10800
+ annotation?: Record<string, string | number | boolean | {
9084
10801
  type: string;
9085
10802
  filename: string;
9086
10803
  originalFilename: string;
@@ -9118,10 +10835,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9118
10835
  filename: string;
9119
10836
  originalFilename: string;
9120
10837
  }[] | undefined> | undefined;
10838
+ originalActionId?: string | undefined;
10839
+ keepAssignment?: boolean | undefined;
9121
10840
  }>, z.ZodObject<z.objectUtil.extendShape<{
9122
10841
  eventId: z.ZodString;
9123
10842
  transactionId: z.ZodString;
9124
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10843
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9125
10844
  filename: z.ZodString;
9126
10845
  originalFilename: z.ZodString;
9127
10846
  type: z.ZodString;
@@ -9234,8 +10953,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9234
10953
  addressLine2?: string | null | undefined;
9235
10954
  addressLine3?: string | null | undefined;
9236
10955
  postcodeOrZip?: string | null | undefined;
9237
- }>]>>;
9238
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10956
+ }>]>>>;
10957
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9239
10958
  filename: z.ZodString;
9240
10959
  originalFilename: z.ZodString;
9241
10960
  type: z.ZodString;
@@ -9349,11 +11068,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9349
11068
  addressLine3?: string | null | undefined;
9350
11069
  postcodeOrZip?: string | null | undefined;
9351
11070
  }>]>>>;
11071
+ originalActionId: z.ZodOptional<z.ZodString>;
11072
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9352
11073
  }, {
9353
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
11074
+ requestId: z.ZodString;
11075
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
9354
11076
  }>, "strip", z.ZodTypeAny, {
9355
- type: "REQUEST_CORRECTION";
9356
- data: Record<string, string | number | boolean | {
11077
+ type: "REJECT_CORRECTION";
11078
+ declaration: Record<string, string | number | boolean | {
9357
11079
  type: string;
9358
11080
  filename: string;
9359
11081
  originalFilename: string;
@@ -9391,9 +11113,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9391
11113
  filename: string;
9392
11114
  originalFilename: string;
9393
11115
  }[] | undefined>;
11116
+ requestId: string;
9394
11117
  eventId: string;
9395
11118
  transactionId: string;
9396
- metadata?: Record<string, string | number | boolean | {
11119
+ annotation?: Record<string, string | number | boolean | {
9397
11120
  type: string;
9398
11121
  filename: string;
9399
11122
  originalFilename: string;
@@ -9431,8 +11154,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9431
11154
  filename: string;
9432
11155
  originalFilename: string;
9433
11156
  }[] | undefined> | undefined;
11157
+ originalActionId?: string | undefined;
11158
+ keepAssignment?: boolean | undefined;
9434
11159
  }, {
9435
- data: Record<string, string | number | boolean | {
11160
+ requestId: string;
11161
+ eventId: string;
11162
+ transactionId: string;
11163
+ type?: "REJECT_CORRECTION" | undefined;
11164
+ declaration?: Record<string, string | number | boolean | {
9436
11165
  type: string;
9437
11166
  filename: string;
9438
11167
  originalFilename: string;
@@ -9469,11 +11198,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9469
11198
  option: string;
9470
11199
  filename: string;
9471
11200
  originalFilename: string;
9472
- }[] | undefined>;
9473
- eventId: string;
9474
- transactionId: string;
9475
- type?: "REQUEST_CORRECTION" | undefined;
9476
- metadata?: Record<string, string | number | boolean | {
11201
+ }[] | undefined> | undefined;
11202
+ annotation?: Record<string, string | number | boolean | {
9477
11203
  type: string;
9478
11204
  filename: string;
9479
11205
  originalFilename: string;
@@ -9511,10 +11237,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9511
11237
  filename: string;
9512
11238
  originalFilename: string;
9513
11239
  }[] | undefined> | undefined;
11240
+ originalActionId?: string | undefined;
11241
+ keepAssignment?: boolean | undefined;
9514
11242
  }>, z.ZodObject<z.objectUtil.extendShape<{
9515
11243
  eventId: z.ZodString;
9516
11244
  transactionId: z.ZodString;
9517
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11245
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9518
11246
  filename: z.ZodString;
9519
11247
  originalFilename: z.ZodString;
9520
11248
  type: z.ZodString;
@@ -9627,8 +11355,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9627
11355
  addressLine2?: string | null | undefined;
9628
11356
  addressLine3?: string | null | undefined;
9629
11357
  postcodeOrZip?: string | null | undefined;
9630
- }>]>>;
9631
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11358
+ }>]>>>;
11359
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9632
11360
  filename: z.ZodString;
9633
11361
  originalFilename: z.ZodString;
9634
11362
  type: z.ZodString;
@@ -9742,12 +11470,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9742
11470
  addressLine3?: string | null | undefined;
9743
11471
  postcodeOrZip?: string | null | undefined;
9744
11472
  }>]>>>;
11473
+ originalActionId: z.ZodOptional<z.ZodString>;
11474
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
9745
11475
  }, {
9746
11476
  requestId: z.ZodString;
9747
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
11477
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
9748
11478
  }>, "strip", z.ZodTypeAny, {
9749
- type: "REJECT_CORRECTION";
9750
- data: Record<string, string | number | boolean | {
11479
+ type: "APPROVE_CORRECTION";
11480
+ declaration: Record<string, string | number | boolean | {
9751
11481
  type: string;
9752
11482
  filename: string;
9753
11483
  originalFilename: string;
@@ -9788,7 +11518,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9788
11518
  requestId: string;
9789
11519
  eventId: string;
9790
11520
  transactionId: string;
9791
- metadata?: Record<string, string | number | boolean | {
11521
+ annotation?: Record<string, string | number | boolean | {
9792
11522
  type: string;
9793
11523
  filename: string;
9794
11524
  originalFilename: string;
@@ -9826,8 +11556,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9826
11556
  filename: string;
9827
11557
  originalFilename: string;
9828
11558
  }[] | undefined> | undefined;
11559
+ originalActionId?: string | undefined;
11560
+ keepAssignment?: boolean | undefined;
9829
11561
  }, {
9830
- data: Record<string, string | number | boolean | {
11562
+ requestId: string;
11563
+ eventId: string;
11564
+ transactionId: string;
11565
+ type?: "APPROVE_CORRECTION" | undefined;
11566
+ declaration?: Record<string, string | number | boolean | {
9831
11567
  type: string;
9832
11568
  filename: string;
9833
11569
  originalFilename: string;
@@ -9864,12 +11600,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9864
11600
  option: string;
9865
11601
  filename: string;
9866
11602
  originalFilename: string;
9867
- }[] | undefined>;
9868
- requestId: string;
9869
- eventId: string;
9870
- transactionId: string;
9871
- type?: "REJECT_CORRECTION" | undefined;
9872
- metadata?: Record<string, string | number | boolean | {
11603
+ }[] | undefined> | undefined;
11604
+ annotation?: Record<string, string | number | boolean | {
9873
11605
  type: string;
9874
11606
  filename: string;
9875
11607
  originalFilename: string;
@@ -9907,10 +11639,12 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9907
11639
  filename: string;
9908
11640
  originalFilename: string;
9909
11641
  }[] | undefined> | undefined;
11642
+ originalActionId?: string | undefined;
11643
+ keepAssignment?: boolean | undefined;
9910
11644
  }>, z.ZodObject<z.objectUtil.extendShape<{
9911
11645
  eventId: z.ZodString;
9912
11646
  transactionId: z.ZodString;
9913
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11647
+ declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9914
11648
  filename: z.ZodString;
9915
11649
  originalFilename: z.ZodString;
9916
11650
  type: z.ZodString;
@@ -10023,8 +11757,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10023
11757
  addressLine2?: string | null | undefined;
10024
11758
  addressLine3?: string | null | undefined;
10025
11759
  postcodeOrZip?: string | null | undefined;
10026
- }>]>>;
10027
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11760
+ }>]>>>;
11761
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10028
11762
  filename: z.ZodString;
10029
11763
  originalFilename: z.ZodString;
10030
11764
  type: z.ZodString;
@@ -10138,12 +11872,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10138
11872
  addressLine3?: string | null | undefined;
10139
11873
  postcodeOrZip?: string | null | undefined;
10140
11874
  }>]>>>;
11875
+ originalActionId: z.ZodOptional<z.ZodString>;
11876
+ keepAssignment: z.ZodOptional<z.ZodBoolean>;
10141
11877
  }, {
10142
- requestId: z.ZodString;
10143
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
11878
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
10144
11879
  }>, "strip", z.ZodTypeAny, {
10145
- type: "APPROVE_CORRECTION";
10146
- data: Record<string, string | number | boolean | {
11880
+ type: "READ";
11881
+ declaration: Record<string, string | number | boolean | {
10147
11882
  type: string;
10148
11883
  filename: string;
10149
11884
  originalFilename: string;
@@ -10181,10 +11916,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10181
11916
  filename: string;
10182
11917
  originalFilename: string;
10183
11918
  }[] | undefined>;
10184
- requestId: string;
10185
11919
  eventId: string;
10186
11920
  transactionId: string;
10187
- metadata?: Record<string, string | number | boolean | {
11921
+ annotation?: Record<string, string | number | boolean | {
10188
11922
  type: string;
10189
11923
  filename: string;
10190
11924
  originalFilename: string;
@@ -10222,8 +11956,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10222
11956
  filename: string;
10223
11957
  originalFilename: string;
10224
11958
  }[] | undefined> | undefined;
11959
+ originalActionId?: string | undefined;
11960
+ keepAssignment?: boolean | undefined;
10225
11961
  }, {
10226
- data: Record<string, string | number | boolean | {
11962
+ eventId: string;
11963
+ transactionId: string;
11964
+ type?: "READ" | undefined;
11965
+ declaration?: Record<string, string | number | boolean | {
10227
11966
  type: string;
10228
11967
  filename: string;
10229
11968
  originalFilename: string;
@@ -10260,12 +11999,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10260
11999
  option: string;
10261
12000
  filename: string;
10262
12001
  originalFilename: string;
10263
- }[] | undefined>;
10264
- requestId: string;
10265
- eventId: string;
10266
- transactionId: string;
10267
- type?: "APPROVE_CORRECTION" | undefined;
10268
- metadata?: Record<string, string | number | boolean | {
12002
+ }[] | undefined> | undefined;
12003
+ annotation?: Record<string, string | number | boolean | {
10269
12004
  type: string;
10270
12005
  filename: string;
10271
12006
  originalFilename: string;
@@ -10303,6 +12038,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10303
12038
  filename: string;
10304
12039
  originalFilename: string;
10305
12040
  }[] | undefined> | undefined;
12041
+ originalActionId?: string | undefined;
12042
+ keepAssignment?: boolean | undefined;
10306
12043
  }>]>;
10307
12044
  export type ActionInput = z.input<typeof ActionInput>;
10308
12045
  export type ActionInputWithType = z.infer<typeof ActionInput>;