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

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.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;
@@ -116,7 +116,7 @@ export declare const BaseActionInput: z.ZodObject<{
116
116
  addressLine3?: string | null | undefined;
117
117
  postcodeOrZip?: string | null | undefined;
118
118
  }>]>>;
119
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
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;
@@ -231,7 +231,7 @@ export declare const BaseActionInput: z.ZodObject<{
231
231
  postcodeOrZip?: string | null | undefined;
232
232
  }>]>>>;
233
233
  }, "strip", z.ZodTypeAny, {
234
- data: Record<string, string | number | boolean | {
234
+ declaration: Record<string, string | number | boolean | {
235
235
  type: string;
236
236
  filename: string;
237
237
  originalFilename: string;
@@ -271,7 +271,7 @@ export declare const BaseActionInput: z.ZodObject<{
271
271
  }[] | undefined>;
272
272
  eventId: string;
273
273
  transactionId: string;
274
- metadata?: Record<string, string | number | boolean | {
274
+ annotation?: Record<string, string | number | boolean | {
275
275
  type: string;
276
276
  filename: string;
277
277
  originalFilename: string;
@@ -310,7 +310,7 @@ export declare const BaseActionInput: z.ZodObject<{
310
310
  originalFilename: string;
311
311
  }[] | undefined> | undefined;
312
312
  }, {
313
- data: Record<string, string | number | boolean | {
313
+ declaration: Record<string, string | number | boolean | {
314
314
  type: string;
315
315
  filename: string;
316
316
  originalFilename: string;
@@ -350,7 +350,7 @@ export declare const BaseActionInput: z.ZodObject<{
350
350
  }[] | undefined>;
351
351
  eventId: string;
352
352
  transactionId: string;
353
- metadata?: Record<string, string | number | boolean | {
353
+ annotation?: Record<string, string | number | boolean | {
354
354
  type: string;
355
355
  filename: string;
356
356
  originalFilename: string;
@@ -392,7 +392,7 @@ export declare const BaseActionInput: z.ZodObject<{
392
392
  export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
393
393
  eventId: z.ZodString;
394
394
  transactionId: z.ZodString;
395
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
395
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
396
396
  filename: z.ZodString;
397
397
  originalFilename: z.ZodString;
398
398
  type: z.ZodString;
@@ -506,7 +506,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
506
506
  addressLine3?: string | null | undefined;
507
507
  postcodeOrZip?: string | null | undefined;
508
508
  }>]>>;
509
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
509
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
510
510
  filename: z.ZodString;
511
511
  originalFilename: z.ZodString;
512
512
  type: z.ZodString;
@@ -634,7 +634,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
634
634
  }>;
635
635
  }>, "strip", z.ZodTypeAny, {
636
636
  type: "REGISTER";
637
- data: Record<string, string | number | boolean | {
637
+ declaration: Record<string, string | number | boolean | {
638
638
  type: string;
639
639
  filename: string;
640
640
  originalFilename: string;
@@ -678,7 +678,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
678
678
  };
679
679
  eventId: string;
680
680
  transactionId: string;
681
- metadata?: Record<string, string | number | boolean | {
681
+ annotation?: Record<string, string | number | boolean | {
682
682
  type: string;
683
683
  filename: string;
684
684
  originalFilename: string;
@@ -717,7 +717,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
717
717
  originalFilename: string;
718
718
  }[] | undefined> | undefined;
719
719
  }, {
720
- data: Record<string, string | number | boolean | {
720
+ declaration: Record<string, string | number | boolean | {
721
721
  type: string;
722
722
  filename: string;
723
723
  originalFilename: string;
@@ -762,7 +762,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
762
762
  eventId: string;
763
763
  transactionId: string;
764
764
  type?: "REGISTER" | undefined;
765
- metadata?: Record<string, string | number | boolean | {
765
+ annotation?: Record<string, string | number | boolean | {
766
766
  type: string;
767
767
  filename: string;
768
768
  originalFilename: string;
@@ -805,7 +805,7 @@ export type RegisterActionInput = z.infer<typeof RegisterActionInput>;
805
805
  export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
806
806
  eventId: z.ZodString;
807
807
  transactionId: z.ZodString;
808
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
808
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
809
809
  filename: z.ZodString;
810
810
  originalFilename: z.ZodString;
811
811
  type: z.ZodString;
@@ -919,7 +919,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
919
919
  addressLine3?: string | null | undefined;
920
920
  postcodeOrZip?: string | null | undefined;
921
921
  }>]>>;
922
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
922
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
923
923
  filename: z.ZodString;
924
924
  originalFilename: z.ZodString;
925
925
  type: z.ZodString;
@@ -1038,7 +1038,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1038
1038
  duplicates: z.ZodArray<z.ZodString, "many">;
1039
1039
  }>, "strip", z.ZodTypeAny, {
1040
1040
  type: "VALIDATE";
1041
- data: Record<string, string | number | boolean | {
1041
+ declaration: Record<string, string | number | boolean | {
1042
1042
  type: string;
1043
1043
  filename: string;
1044
1044
  originalFilename: string;
@@ -1079,7 +1079,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1079
1079
  eventId: string;
1080
1080
  transactionId: string;
1081
1081
  duplicates: string[];
1082
- metadata?: Record<string, string | number | boolean | {
1082
+ annotation?: Record<string, string | number | boolean | {
1083
1083
  type: string;
1084
1084
  filename: string;
1085
1085
  originalFilename: string;
@@ -1118,7 +1118,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1118
1118
  originalFilename: string;
1119
1119
  }[] | undefined> | undefined;
1120
1120
  }, {
1121
- data: Record<string, string | number | boolean | {
1121
+ declaration: Record<string, string | number | boolean | {
1122
1122
  type: string;
1123
1123
  filename: string;
1124
1124
  originalFilename: string;
@@ -1160,7 +1160,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1160
1160
  transactionId: string;
1161
1161
  duplicates: string[];
1162
1162
  type?: "VALIDATE" | undefined;
1163
- metadata?: Record<string, string | number | boolean | {
1163
+ annotation?: Record<string, string | number | boolean | {
1164
1164
  type: string;
1165
1165
  filename: string;
1166
1166
  originalFilename: string;
@@ -1203,7 +1203,7 @@ export type ValidateActionInput = z.infer<typeof ValidateActionInput>;
1203
1203
  export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1204
1204
  eventId: z.ZodString;
1205
1205
  transactionId: z.ZodString;
1206
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1206
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1207
1207
  filename: z.ZodString;
1208
1208
  originalFilename: z.ZodString;
1209
1209
  type: z.ZodString;
@@ -1317,7 +1317,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1317
1317
  addressLine3?: string | null | undefined;
1318
1318
  postcodeOrZip?: string | null | undefined;
1319
1319
  }>]>>;
1320
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1320
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1321
1321
  filename: z.ZodString;
1322
1322
  originalFilename: z.ZodString;
1323
1323
  type: z.ZodString;
@@ -1435,7 +1435,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1435
1435
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
1436
1436
  }>, "strip", z.ZodTypeAny, {
1437
1437
  type: "NOTIFY";
1438
- data: Record<string, string | number | boolean | {
1438
+ declaration: Record<string, string | number | boolean | {
1439
1439
  type: string;
1440
1440
  filename: string;
1441
1441
  originalFilename: string;
@@ -1475,7 +1475,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1475
1475
  }[] | undefined>;
1476
1476
  eventId: string;
1477
1477
  transactionId: string;
1478
- metadata?: Record<string, string | number | boolean | {
1478
+ annotation?: Record<string, string | number | boolean | {
1479
1479
  type: string;
1480
1480
  filename: string;
1481
1481
  originalFilename: string;
@@ -1514,7 +1514,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1514
1514
  originalFilename: string;
1515
1515
  }[] | undefined> | undefined;
1516
1516
  }, {
1517
- data: Record<string, string | number | boolean | {
1517
+ declaration: Record<string, string | number | boolean | {
1518
1518
  type: string;
1519
1519
  filename: string;
1520
1520
  originalFilename: string;
@@ -1555,7 +1555,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1555
1555
  eventId: string;
1556
1556
  transactionId: string;
1557
1557
  type?: "NOTIFY" | undefined;
1558
- metadata?: Record<string, string | number | boolean | {
1558
+ annotation?: Record<string, string | number | boolean | {
1559
1559
  type: string;
1560
1560
  filename: string;
1561
1561
  originalFilename: string;
@@ -1598,7 +1598,7 @@ export type NotifyActionInput = z.infer<typeof NotifyActionInput>;
1598
1598
  export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1599
1599
  eventId: z.ZodString;
1600
1600
  transactionId: z.ZodString;
1601
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1601
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1602
1602
  filename: z.ZodString;
1603
1603
  originalFilename: z.ZodString;
1604
1604
  type: z.ZodString;
@@ -1712,7 +1712,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1712
1712
  addressLine3?: string | null | undefined;
1713
1713
  postcodeOrZip?: string | null | undefined;
1714
1714
  }>]>>;
1715
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1715
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1716
1716
  filename: z.ZodString;
1717
1717
  originalFilename: z.ZodString;
1718
1718
  type: z.ZodString;
@@ -1830,7 +1830,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1830
1830
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
1831
1831
  }>, "strip", z.ZodTypeAny, {
1832
1832
  type: "DECLARE";
1833
- data: Record<string, string | number | boolean | {
1833
+ declaration: Record<string, string | number | boolean | {
1834
1834
  type: string;
1835
1835
  filename: string;
1836
1836
  originalFilename: string;
@@ -1870,7 +1870,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1870
1870
  }[] | undefined>;
1871
1871
  eventId: string;
1872
1872
  transactionId: string;
1873
- metadata?: Record<string, string | number | boolean | {
1873
+ annotation?: Record<string, string | number | boolean | {
1874
1874
  type: string;
1875
1875
  filename: string;
1876
1876
  originalFilename: string;
@@ -1909,7 +1909,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1909
1909
  originalFilename: string;
1910
1910
  }[] | undefined> | undefined;
1911
1911
  }, {
1912
- data: Record<string, string | number | boolean | {
1912
+ declaration: Record<string, string | number | boolean | {
1913
1913
  type: string;
1914
1914
  filename: string;
1915
1915
  originalFilename: string;
@@ -1950,7 +1950,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1950
1950
  eventId: string;
1951
1951
  transactionId: string;
1952
1952
  type?: "DECLARE" | undefined;
1953
- metadata?: Record<string, string | number | boolean | {
1953
+ annotation?: Record<string, string | number | boolean | {
1954
1954
  type: string;
1955
1955
  filename: string;
1956
1956
  originalFilename: string;
@@ -1992,7 +1992,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1992
1992
  export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1993
1993
  eventId: z.ZodString;
1994
1994
  transactionId: z.ZodString;
1995
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1995
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1996
1996
  filename: z.ZodString;
1997
1997
  originalFilename: z.ZodString;
1998
1998
  type: z.ZodString;
@@ -2106,7 +2106,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2106
2106
  addressLine3?: string | null | undefined;
2107
2107
  postcodeOrZip?: string | null | undefined;
2108
2108
  }>]>>;
2109
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2109
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2110
2110
  filename: z.ZodString;
2111
2111
  originalFilename: z.ZodString;
2112
2112
  type: z.ZodString;
@@ -2224,7 +2224,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2224
2224
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
2225
2225
  }>, "strip", z.ZodTypeAny, {
2226
2226
  type: "PRINT_CERTIFICATE";
2227
- data: Record<string, string | number | boolean | {
2227
+ declaration: Record<string, string | number | boolean | {
2228
2228
  type: string;
2229
2229
  filename: string;
2230
2230
  originalFilename: string;
@@ -2264,7 +2264,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2264
2264
  }[] | undefined>;
2265
2265
  eventId: string;
2266
2266
  transactionId: string;
2267
- metadata?: Record<string, string | number | boolean | {
2267
+ annotation?: Record<string, string | number | boolean | {
2268
2268
  type: string;
2269
2269
  filename: string;
2270
2270
  originalFilename: string;
@@ -2303,7 +2303,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2303
2303
  originalFilename: string;
2304
2304
  }[] | undefined> | undefined;
2305
2305
  }, {
2306
- data: Record<string, string | number | boolean | {
2306
+ declaration: Record<string, string | number | boolean | {
2307
2307
  type: string;
2308
2308
  filename: string;
2309
2309
  originalFilename: string;
@@ -2344,7 +2344,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2344
2344
  eventId: string;
2345
2345
  transactionId: string;
2346
2346
  type?: "PRINT_CERTIFICATE" | undefined;
2347
- metadata?: Record<string, string | number | boolean | {
2347
+ annotation?: Record<string, string | number | boolean | {
2348
2348
  type: string;
2349
2349
  filename: string;
2350
2350
  originalFilename: string;
@@ -2387,7 +2387,7 @@ export type DeclareActionInput = z.infer<typeof DeclareActionInput>;
2387
2387
  export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.extendShape<{
2388
2388
  eventId: z.ZodString;
2389
2389
  transactionId: z.ZodString;
2390
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2390
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2391
2391
  filename: z.ZodString;
2392
2392
  originalFilename: z.ZodString;
2393
2393
  type: z.ZodString;
@@ -2501,7 +2501,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2501
2501
  addressLine3?: string | null | undefined;
2502
2502
  postcodeOrZip?: string | null | undefined;
2503
2503
  }>]>>;
2504
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2504
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2505
2505
  filename: z.ZodString;
2506
2506
  originalFilename: z.ZodString;
2507
2507
  type: z.ZodString;
@@ -2619,7 +2619,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2619
2619
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
2620
2620
  }>, "strip", z.ZodTypeAny, {
2621
2621
  type: "REJECT";
2622
- data: Record<string, string | number | boolean | {
2622
+ declaration: Record<string, string | number | boolean | {
2623
2623
  type: string;
2624
2624
  filename: string;
2625
2625
  originalFilename: string;
@@ -2659,7 +2659,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2659
2659
  }[] | undefined>;
2660
2660
  eventId: string;
2661
2661
  transactionId: string;
2662
- metadata?: Record<string, string | number | boolean | {
2662
+ annotation?: Record<string, string | number | boolean | {
2663
2663
  type: string;
2664
2664
  filename: string;
2665
2665
  originalFilename: string;
@@ -2698,7 +2698,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2698
2698
  originalFilename: string;
2699
2699
  }[] | undefined> | undefined;
2700
2700
  }, {
2701
- data: Record<string, string | number | boolean | {
2701
+ declaration: Record<string, string | number | boolean | {
2702
2702
  type: string;
2703
2703
  filename: string;
2704
2704
  originalFilename: string;
@@ -2739,7 +2739,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2739
2739
  eventId: string;
2740
2740
  transactionId: string;
2741
2741
  type?: "REJECT" | undefined;
2742
- metadata?: Record<string, string | number | boolean | {
2742
+ annotation?: Record<string, string | number | boolean | {
2743
2743
  type: string;
2744
2744
  filename: string;
2745
2745
  originalFilename: string;
@@ -2782,7 +2782,7 @@ export type RejectDeclarationActionInput = z.infer<typeof RejectDeclarationActio
2782
2782
  export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.extendShape<{
2783
2783
  eventId: z.ZodString;
2784
2784
  transactionId: z.ZodString;
2785
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2785
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2786
2786
  filename: z.ZodString;
2787
2787
  originalFilename: z.ZodString;
2788
2788
  type: z.ZodString;
@@ -2896,7 +2896,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
2896
2896
  addressLine3?: string | null | undefined;
2897
2897
  postcodeOrZip?: string | null | undefined;
2898
2898
  }>]>>;
2899
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2899
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2900
2900
  filename: z.ZodString;
2901
2901
  originalFilename: z.ZodString;
2902
2902
  type: z.ZodString;
@@ -3014,7 +3014,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3014
3014
  type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
3015
3015
  }>, "strip", z.ZodTypeAny, {
3016
3016
  type: "MARKED_AS_DUPLICATE";
3017
- data: Record<string, string | number | boolean | {
3017
+ declaration: Record<string, string | number | boolean | {
3018
3018
  type: string;
3019
3019
  filename: string;
3020
3020
  originalFilename: string;
@@ -3054,7 +3054,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3054
3054
  }[] | undefined>;
3055
3055
  eventId: string;
3056
3056
  transactionId: string;
3057
- metadata?: Record<string, string | number | boolean | {
3057
+ annotation?: Record<string, string | number | boolean | {
3058
3058
  type: string;
3059
3059
  filename: string;
3060
3060
  originalFilename: string;
@@ -3093,7 +3093,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3093
3093
  originalFilename: string;
3094
3094
  }[] | undefined> | undefined;
3095
3095
  }, {
3096
- data: Record<string, string | number | boolean | {
3096
+ declaration: Record<string, string | number | boolean | {
3097
3097
  type: string;
3098
3098
  filename: string;
3099
3099
  originalFilename: string;
@@ -3134,7 +3134,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3134
3134
  eventId: string;
3135
3135
  transactionId: string;
3136
3136
  type?: "MARKED_AS_DUPLICATE" | undefined;
3137
- metadata?: Record<string, string | number | boolean | {
3137
+ annotation?: Record<string, string | number | boolean | {
3138
3138
  type: string;
3139
3139
  filename: string;
3140
3140
  originalFilename: string;
@@ -3177,7 +3177,7 @@ export type MarkedAsDuplicateActionInput = z.infer<typeof MarkedAsDuplicateActio
3177
3177
  export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3178
3178
  eventId: z.ZodString;
3179
3179
  transactionId: z.ZodString;
3180
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3180
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3181
3181
  filename: z.ZodString;
3182
3182
  originalFilename: z.ZodString;
3183
3183
  type: z.ZodString;
@@ -3291,7 +3291,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3291
3291
  addressLine3?: string | null | undefined;
3292
3292
  postcodeOrZip?: string | null | undefined;
3293
3293
  }>]>>;
3294
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3294
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3295
3295
  filename: z.ZodString;
3296
3296
  originalFilename: z.ZodString;
3297
3297
  type: z.ZodString;
@@ -3409,7 +3409,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3409
3409
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
3410
3410
  }>, "strip", z.ZodTypeAny, {
3411
3411
  type: "ARCHIVE";
3412
- data: Record<string, string | number | boolean | {
3412
+ declaration: Record<string, string | number | boolean | {
3413
3413
  type: string;
3414
3414
  filename: string;
3415
3415
  originalFilename: string;
@@ -3449,7 +3449,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3449
3449
  }[] | undefined>;
3450
3450
  eventId: string;
3451
3451
  transactionId: string;
3452
- metadata?: Record<string, string | number | boolean | {
3452
+ annotation?: Record<string, string | number | boolean | {
3453
3453
  type: string;
3454
3454
  filename: string;
3455
3455
  originalFilename: string;
@@ -3488,7 +3488,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3488
3488
  originalFilename: string;
3489
3489
  }[] | undefined> | undefined;
3490
3490
  }, {
3491
- data: Record<string, string | number | boolean | {
3491
+ declaration: Record<string, string | number | boolean | {
3492
3492
  type: string;
3493
3493
  filename: string;
3494
3494
  originalFilename: string;
@@ -3529,7 +3529,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3529
3529
  eventId: string;
3530
3530
  transactionId: string;
3531
3531
  type?: "ARCHIVE" | undefined;
3532
- metadata?: Record<string, string | number | boolean | {
3532
+ annotation?: Record<string, string | number | boolean | {
3533
3533
  type: string;
3534
3534
  filename: string;
3535
3535
  originalFilename: string;
@@ -3572,7 +3572,7 @@ export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
3572
3572
  export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
3573
3573
  eventId: z.ZodString;
3574
3574
  transactionId: z.ZodString;
3575
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3575
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3576
3576
  filename: z.ZodString;
3577
3577
  originalFilename: z.ZodString;
3578
3578
  type: z.ZodString;
@@ -3686,7 +3686,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3686
3686
  addressLine3?: string | null | undefined;
3687
3687
  postcodeOrZip?: string | null | undefined;
3688
3688
  }>]>>;
3689
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3689
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3690
3690
  filename: z.ZodString;
3691
3691
  originalFilename: z.ZodString;
3692
3692
  type: z.ZodString;
@@ -3804,7 +3804,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3804
3804
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
3805
3805
  }>, "strip", z.ZodTypeAny, {
3806
3806
  type: "REQUEST_CORRECTION";
3807
- data: Record<string, string | number | boolean | {
3807
+ declaration: Record<string, string | number | boolean | {
3808
3808
  type: string;
3809
3809
  filename: string;
3810
3810
  originalFilename: string;
@@ -3844,7 +3844,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3844
3844
  }[] | undefined>;
3845
3845
  eventId: string;
3846
3846
  transactionId: string;
3847
- metadata?: Record<string, string | number | boolean | {
3847
+ annotation?: Record<string, string | number | boolean | {
3848
3848
  type: string;
3849
3849
  filename: string;
3850
3850
  originalFilename: string;
@@ -3883,7 +3883,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3883
3883
  originalFilename: string;
3884
3884
  }[] | undefined> | undefined;
3885
3885
  }, {
3886
- data: Record<string, string | number | boolean | {
3886
+ declaration: Record<string, string | number | boolean | {
3887
3887
  type: string;
3888
3888
  filename: string;
3889
3889
  originalFilename: string;
@@ -3924,7 +3924,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
3924
3924
  eventId: string;
3925
3925
  transactionId: string;
3926
3926
  type?: "REQUEST_CORRECTION" | undefined;
3927
- metadata?: Record<string, string | number | boolean | {
3927
+ annotation?: Record<string, string | number | boolean | {
3928
3928
  type: string;
3929
3929
  filename: string;
3930
3930
  originalFilename: string;
@@ -3967,7 +3967,7 @@ export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActio
3967
3967
  export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
3968
3968
  eventId: z.ZodString;
3969
3969
  transactionId: z.ZodString;
3970
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3970
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3971
3971
  filename: z.ZodString;
3972
3972
  originalFilename: z.ZodString;
3973
3973
  type: z.ZodString;
@@ -4081,7 +4081,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4081
4081
  addressLine3?: string | null | undefined;
4082
4082
  postcodeOrZip?: string | null | undefined;
4083
4083
  }>]>>;
4084
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4084
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4085
4085
  filename: z.ZodString;
4086
4086
  originalFilename: z.ZodString;
4087
4087
  type: z.ZodString;
@@ -4200,7 +4200,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4200
4200
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
4201
4201
  }>, "strip", z.ZodTypeAny, {
4202
4202
  type: "REJECT_CORRECTION";
4203
- data: Record<string, string | number | boolean | {
4203
+ declaration: Record<string, string | number | boolean | {
4204
4204
  type: string;
4205
4205
  filename: string;
4206
4206
  originalFilename: string;
@@ -4241,7 +4241,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4241
4241
  requestId: string;
4242
4242
  eventId: string;
4243
4243
  transactionId: string;
4244
- metadata?: Record<string, string | number | boolean | {
4244
+ annotation?: Record<string, string | number | boolean | {
4245
4245
  type: string;
4246
4246
  filename: string;
4247
4247
  originalFilename: string;
@@ -4280,7 +4280,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4280
4280
  originalFilename: string;
4281
4281
  }[] | undefined> | undefined;
4282
4282
  }, {
4283
- data: Record<string, string | number | boolean | {
4283
+ declaration: Record<string, string | number | boolean | {
4284
4284
  type: string;
4285
4285
  filename: string;
4286
4286
  originalFilename: string;
@@ -4322,7 +4322,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
4322
4322
  eventId: string;
4323
4323
  transactionId: string;
4324
4324
  type?: "REJECT_CORRECTION" | undefined;
4325
- metadata?: Record<string, string | number | boolean | {
4325
+ annotation?: Record<string, string | number | boolean | {
4326
4326
  type: string;
4327
4327
  filename: string;
4328
4328
  originalFilename: string;
@@ -4365,7 +4365,7 @@ export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionI
4365
4365
  export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4366
4366
  eventId: z.ZodString;
4367
4367
  transactionId: z.ZodString;
4368
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4368
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4369
4369
  filename: z.ZodString;
4370
4370
  originalFilename: z.ZodString;
4371
4371
  type: z.ZodString;
@@ -4479,7 +4479,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4479
4479
  addressLine3?: string | null | undefined;
4480
4480
  postcodeOrZip?: string | null | undefined;
4481
4481
  }>]>>;
4482
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4482
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4483
4483
  filename: z.ZodString;
4484
4484
  originalFilename: z.ZodString;
4485
4485
  type: z.ZodString;
@@ -4598,7 +4598,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4598
4598
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
4599
4599
  }>, "strip", z.ZodTypeAny, {
4600
4600
  type: "APPROVE_CORRECTION";
4601
- data: Record<string, string | number | boolean | {
4601
+ declaration: Record<string, string | number | boolean | {
4602
4602
  type: string;
4603
4603
  filename: string;
4604
4604
  originalFilename: string;
@@ -4639,7 +4639,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4639
4639
  requestId: string;
4640
4640
  eventId: string;
4641
4641
  transactionId: string;
4642
- metadata?: Record<string, string | number | boolean | {
4642
+ annotation?: Record<string, string | number | boolean | {
4643
4643
  type: string;
4644
4644
  filename: string;
4645
4645
  originalFilename: string;
@@ -4678,7 +4678,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4678
4678
  originalFilename: string;
4679
4679
  }[] | undefined> | undefined;
4680
4680
  }, {
4681
- data: Record<string, string | number | boolean | {
4681
+ declaration: Record<string, string | number | boolean | {
4682
4682
  type: string;
4683
4683
  filename: string;
4684
4684
  originalFilename: string;
@@ -4720,7 +4720,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4720
4720
  eventId: string;
4721
4721
  transactionId: string;
4722
4722
  type?: "APPROVE_CORRECTION" | undefined;
4723
- metadata?: Record<string, string | number | boolean | {
4723
+ annotation?: Record<string, string | number | boolean | {
4724
4724
  type: string;
4725
4725
  filename: string;
4726
4726
  originalFilename: string;
@@ -4760,6 +4760,401 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4760
4760
  }[] | undefined> | undefined;
4761
4761
  }>;
4762
4762
  export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
4763
+ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
4764
+ eventId: z.ZodString;
4765
+ transactionId: z.ZodString;
4766
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4767
+ filename: z.ZodString;
4768
+ originalFilename: z.ZodString;
4769
+ type: z.ZodString;
4770
+ }, "strip", z.ZodTypeAny, {
4771
+ type: string;
4772
+ filename: string;
4773
+ originalFilename: string;
4774
+ }, {
4775
+ type: string;
4776
+ filename: string;
4777
+ originalFilename: string;
4778
+ }>, z.ZodArray<z.ZodObject<{
4779
+ filename: z.ZodString;
4780
+ originalFilename: z.ZodString;
4781
+ type: z.ZodString;
4782
+ option: z.ZodString;
4783
+ }, "strip", z.ZodTypeAny, {
4784
+ type: string;
4785
+ option: string;
4786
+ filename: string;
4787
+ originalFilename: string;
4788
+ }, {
4789
+ type: string;
4790
+ option: string;
4791
+ filename: string;
4792
+ originalFilename: string;
4793
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
4794
+ country: z.ZodString;
4795
+ addressType: z.ZodLiteral<"DOMESTIC">;
4796
+ province: z.ZodString;
4797
+ district: z.ZodString;
4798
+ }, {
4799
+ urbanOrRural: z.ZodLiteral<"URBAN">;
4800
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4801
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4802
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4803
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4804
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4805
+ }>, "strip", z.ZodTypeAny, {
4806
+ country: string;
4807
+ district: string;
4808
+ addressType: "DOMESTIC";
4809
+ province: string;
4810
+ urbanOrRural: "URBAN";
4811
+ number?: string | null | undefined;
4812
+ town?: string | null | undefined;
4813
+ residentialArea?: string | null | undefined;
4814
+ street?: string | null | undefined;
4815
+ zipCode?: string | null | undefined;
4816
+ }, {
4817
+ country: string;
4818
+ district: string;
4819
+ addressType: "DOMESTIC";
4820
+ province: string;
4821
+ urbanOrRural: "URBAN";
4822
+ number?: string | null | undefined;
4823
+ town?: string | null | undefined;
4824
+ residentialArea?: string | null | undefined;
4825
+ street?: string | null | undefined;
4826
+ zipCode?: string | null | undefined;
4827
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4828
+ country: z.ZodString;
4829
+ addressType: z.ZodLiteral<"DOMESTIC">;
4830
+ province: z.ZodString;
4831
+ district: z.ZodString;
4832
+ }, {
4833
+ urbanOrRural: z.ZodLiteral<"RURAL">;
4834
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4835
+ }>, "strip", z.ZodTypeAny, {
4836
+ country: string;
4837
+ district: string;
4838
+ addressType: "DOMESTIC";
4839
+ province: string;
4840
+ urbanOrRural: "RURAL";
4841
+ village?: string | null | undefined;
4842
+ }, {
4843
+ country: string;
4844
+ district: string;
4845
+ addressType: "DOMESTIC";
4846
+ province: string;
4847
+ urbanOrRural: "RURAL";
4848
+ village?: string | null | undefined;
4849
+ }>, z.ZodUndefined, z.ZodObject<{
4850
+ country: z.ZodString;
4851
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
4852
+ state: z.ZodString;
4853
+ district2: z.ZodString;
4854
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4855
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4856
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4857
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4858
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4859
+ }, "strip", z.ZodTypeAny, {
4860
+ country: string;
4861
+ state: string;
4862
+ addressType: "INTERNATIONAL";
4863
+ district2: string;
4864
+ cityOrTown?: string | null | undefined;
4865
+ addressLine1?: string | null | undefined;
4866
+ addressLine2?: string | null | undefined;
4867
+ addressLine3?: string | null | undefined;
4868
+ postcodeOrZip?: string | null | undefined;
4869
+ }, {
4870
+ country: string;
4871
+ state: string;
4872
+ addressType: "INTERNATIONAL";
4873
+ district2: string;
4874
+ cityOrTown?: string | null | undefined;
4875
+ addressLine1?: string | null | undefined;
4876
+ addressLine2?: string | null | undefined;
4877
+ addressLine3?: string | null | undefined;
4878
+ postcodeOrZip?: string | null | undefined;
4879
+ }>]>>;
4880
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4881
+ filename: z.ZodString;
4882
+ originalFilename: z.ZodString;
4883
+ type: z.ZodString;
4884
+ }, "strip", z.ZodTypeAny, {
4885
+ type: string;
4886
+ filename: string;
4887
+ originalFilename: string;
4888
+ }, {
4889
+ type: string;
4890
+ filename: string;
4891
+ originalFilename: string;
4892
+ }>, z.ZodArray<z.ZodObject<{
4893
+ filename: z.ZodString;
4894
+ originalFilename: z.ZodString;
4895
+ type: z.ZodString;
4896
+ option: z.ZodString;
4897
+ }, "strip", z.ZodTypeAny, {
4898
+ type: string;
4899
+ option: string;
4900
+ filename: string;
4901
+ originalFilename: string;
4902
+ }, {
4903
+ type: string;
4904
+ option: string;
4905
+ filename: string;
4906
+ originalFilename: string;
4907
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
4908
+ country: z.ZodString;
4909
+ addressType: z.ZodLiteral<"DOMESTIC">;
4910
+ province: z.ZodString;
4911
+ district: z.ZodString;
4912
+ }, {
4913
+ urbanOrRural: z.ZodLiteral<"URBAN">;
4914
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4915
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4916
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4917
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4918
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4919
+ }>, "strip", z.ZodTypeAny, {
4920
+ country: string;
4921
+ district: string;
4922
+ addressType: "DOMESTIC";
4923
+ province: string;
4924
+ urbanOrRural: "URBAN";
4925
+ number?: string | null | undefined;
4926
+ town?: string | null | undefined;
4927
+ residentialArea?: string | null | undefined;
4928
+ street?: string | null | undefined;
4929
+ zipCode?: string | null | undefined;
4930
+ }, {
4931
+ country: string;
4932
+ district: string;
4933
+ addressType: "DOMESTIC";
4934
+ province: string;
4935
+ urbanOrRural: "URBAN";
4936
+ number?: string | null | undefined;
4937
+ town?: string | null | undefined;
4938
+ residentialArea?: string | null | undefined;
4939
+ street?: string | null | undefined;
4940
+ zipCode?: string | null | undefined;
4941
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4942
+ country: z.ZodString;
4943
+ addressType: z.ZodLiteral<"DOMESTIC">;
4944
+ province: z.ZodString;
4945
+ district: z.ZodString;
4946
+ }, {
4947
+ urbanOrRural: z.ZodLiteral<"RURAL">;
4948
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4949
+ }>, "strip", z.ZodTypeAny, {
4950
+ country: string;
4951
+ district: string;
4952
+ addressType: "DOMESTIC";
4953
+ province: string;
4954
+ urbanOrRural: "RURAL";
4955
+ village?: string | null | undefined;
4956
+ }, {
4957
+ country: string;
4958
+ district: string;
4959
+ addressType: "DOMESTIC";
4960
+ province: string;
4961
+ urbanOrRural: "RURAL";
4962
+ village?: string | null | undefined;
4963
+ }>, z.ZodUndefined, z.ZodObject<{
4964
+ country: z.ZodString;
4965
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
4966
+ state: z.ZodString;
4967
+ district2: z.ZodString;
4968
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4969
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4970
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4971
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4972
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4973
+ }, "strip", z.ZodTypeAny, {
4974
+ country: string;
4975
+ state: string;
4976
+ addressType: "INTERNATIONAL";
4977
+ district2: string;
4978
+ cityOrTown?: string | null | undefined;
4979
+ addressLine1?: string | null | undefined;
4980
+ addressLine2?: string | null | undefined;
4981
+ addressLine3?: string | null | undefined;
4982
+ postcodeOrZip?: string | null | undefined;
4983
+ }, {
4984
+ country: string;
4985
+ state: string;
4986
+ addressType: "INTERNATIONAL";
4987
+ district2: string;
4988
+ cityOrTown?: string | null | undefined;
4989
+ addressLine1?: string | null | undefined;
4990
+ addressLine2?: string | null | undefined;
4991
+ addressLine3?: string | null | undefined;
4992
+ postcodeOrZip?: string | null | undefined;
4993
+ }>]>>>;
4994
+ }, {
4995
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
4996
+ }>, "strip", z.ZodTypeAny, {
4997
+ type: "READ";
4998
+ declaration: Record<string, string | number | boolean | {
4999
+ type: string;
5000
+ filename: string;
5001
+ originalFilename: string;
5002
+ } | {
5003
+ country: string;
5004
+ district: string;
5005
+ addressType: "DOMESTIC";
5006
+ province: string;
5007
+ urbanOrRural: "URBAN";
5008
+ number?: string | null | undefined;
5009
+ town?: string | null | undefined;
5010
+ residentialArea?: string | null | undefined;
5011
+ street?: string | null | undefined;
5012
+ zipCode?: string | null | undefined;
5013
+ } | {
5014
+ country: string;
5015
+ district: string;
5016
+ addressType: "DOMESTIC";
5017
+ province: string;
5018
+ urbanOrRural: "RURAL";
5019
+ village?: string | null | undefined;
5020
+ } | {
5021
+ country: string;
5022
+ state: string;
5023
+ addressType: "INTERNATIONAL";
5024
+ district2: string;
5025
+ cityOrTown?: string | null | undefined;
5026
+ addressLine1?: string | null | undefined;
5027
+ addressLine2?: string | null | undefined;
5028
+ addressLine3?: string | null | undefined;
5029
+ postcodeOrZip?: string | null | undefined;
5030
+ } | {
5031
+ type: string;
5032
+ option: string;
5033
+ filename: string;
5034
+ originalFilename: string;
5035
+ }[] | undefined>;
5036
+ eventId: string;
5037
+ transactionId: string;
5038
+ annotation?: Record<string, string | number | boolean | {
5039
+ type: string;
5040
+ filename: string;
5041
+ originalFilename: string;
5042
+ } | {
5043
+ country: string;
5044
+ district: string;
5045
+ addressType: "DOMESTIC";
5046
+ province: string;
5047
+ urbanOrRural: "URBAN";
5048
+ number?: string | null | undefined;
5049
+ town?: string | null | undefined;
5050
+ residentialArea?: string | null | undefined;
5051
+ street?: string | null | undefined;
5052
+ zipCode?: string | null | undefined;
5053
+ } | {
5054
+ country: string;
5055
+ district: string;
5056
+ addressType: "DOMESTIC";
5057
+ province: string;
5058
+ urbanOrRural: "RURAL";
5059
+ village?: string | null | undefined;
5060
+ } | {
5061
+ country: string;
5062
+ state: string;
5063
+ addressType: "INTERNATIONAL";
5064
+ district2: string;
5065
+ cityOrTown?: string | null | undefined;
5066
+ addressLine1?: string | null | undefined;
5067
+ addressLine2?: string | null | undefined;
5068
+ addressLine3?: string | null | undefined;
5069
+ postcodeOrZip?: string | null | undefined;
5070
+ } | {
5071
+ type: string;
5072
+ option: string;
5073
+ filename: string;
5074
+ originalFilename: string;
5075
+ }[] | undefined> | undefined;
5076
+ }, {
5077
+ declaration: Record<string, string | number | boolean | {
5078
+ type: string;
5079
+ filename: string;
5080
+ originalFilename: string;
5081
+ } | {
5082
+ country: string;
5083
+ district: string;
5084
+ addressType: "DOMESTIC";
5085
+ province: string;
5086
+ urbanOrRural: "URBAN";
5087
+ number?: string | null | undefined;
5088
+ town?: string | null | undefined;
5089
+ residentialArea?: string | null | undefined;
5090
+ street?: string | null | undefined;
5091
+ zipCode?: string | null | undefined;
5092
+ } | {
5093
+ country: string;
5094
+ district: string;
5095
+ addressType: "DOMESTIC";
5096
+ province: string;
5097
+ urbanOrRural: "RURAL";
5098
+ village?: string | null | undefined;
5099
+ } | {
5100
+ country: string;
5101
+ state: string;
5102
+ addressType: "INTERNATIONAL";
5103
+ district2: string;
5104
+ cityOrTown?: string | null | undefined;
5105
+ addressLine1?: string | null | undefined;
5106
+ addressLine2?: string | null | undefined;
5107
+ addressLine3?: string | null | undefined;
5108
+ postcodeOrZip?: string | null | undefined;
5109
+ } | {
5110
+ type: string;
5111
+ option: string;
5112
+ filename: string;
5113
+ originalFilename: string;
5114
+ }[] | undefined>;
5115
+ eventId: string;
5116
+ transactionId: string;
5117
+ type?: "READ" | undefined;
5118
+ annotation?: Record<string, string | number | boolean | {
5119
+ type: string;
5120
+ filename: string;
5121
+ originalFilename: string;
5122
+ } | {
5123
+ country: string;
5124
+ district: string;
5125
+ addressType: "DOMESTIC";
5126
+ province: string;
5127
+ urbanOrRural: "URBAN";
5128
+ number?: string | null | undefined;
5129
+ town?: string | null | undefined;
5130
+ residentialArea?: string | null | undefined;
5131
+ street?: string | null | undefined;
5132
+ zipCode?: string | null | undefined;
5133
+ } | {
5134
+ country: string;
5135
+ district: string;
5136
+ addressType: "DOMESTIC";
5137
+ province: string;
5138
+ urbanOrRural: "RURAL";
5139
+ village?: string | null | undefined;
5140
+ } | {
5141
+ country: string;
5142
+ state: string;
5143
+ addressType: "INTERNATIONAL";
5144
+ district2: string;
5145
+ cityOrTown?: string | null | undefined;
5146
+ addressLine1?: string | null | undefined;
5147
+ addressLine2?: string | null | undefined;
5148
+ addressLine3?: string | null | undefined;
5149
+ postcodeOrZip?: string | null | undefined;
5150
+ } | {
5151
+ type: string;
5152
+ option: string;
5153
+ filename: string;
5154
+ originalFilename: string;
5155
+ }[] | undefined> | undefined;
5156
+ }>;
5157
+ export type ReadActionInput = z.infer<typeof ReadActionInput>;
4763
5158
  /**
4764
5159
  * ActionInput types are used to validate the input data for the action.
4765
5160
  * In our use case, we use it directly with TRPC to validate the input data for the action.
@@ -4771,7 +5166,403 @@ export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActio
4771
5166
  export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
4772
5167
  eventId: z.ZodString;
4773
5168
  transactionId: z.ZodString;
4774
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5169
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5170
+ filename: z.ZodString;
5171
+ originalFilename: z.ZodString;
5172
+ type: z.ZodString;
5173
+ }, "strip", z.ZodTypeAny, {
5174
+ type: string;
5175
+ filename: string;
5176
+ originalFilename: string;
5177
+ }, {
5178
+ type: string;
5179
+ filename: string;
5180
+ originalFilename: string;
5181
+ }>, z.ZodArray<z.ZodObject<{
5182
+ filename: z.ZodString;
5183
+ originalFilename: z.ZodString;
5184
+ type: z.ZodString;
5185
+ option: z.ZodString;
5186
+ }, "strip", z.ZodTypeAny, {
5187
+ type: string;
5188
+ option: string;
5189
+ filename: string;
5190
+ originalFilename: string;
5191
+ }, {
5192
+ type: string;
5193
+ option: string;
5194
+ filename: string;
5195
+ originalFilename: string;
5196
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
5197
+ country: z.ZodString;
5198
+ addressType: z.ZodLiteral<"DOMESTIC">;
5199
+ province: z.ZodString;
5200
+ district: z.ZodString;
5201
+ }, {
5202
+ urbanOrRural: z.ZodLiteral<"URBAN">;
5203
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5204
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5205
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5206
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5207
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5208
+ }>, "strip", z.ZodTypeAny, {
5209
+ country: string;
5210
+ district: string;
5211
+ addressType: "DOMESTIC";
5212
+ province: string;
5213
+ urbanOrRural: "URBAN";
5214
+ number?: string | null | undefined;
5215
+ town?: string | null | undefined;
5216
+ residentialArea?: string | null | undefined;
5217
+ street?: string | null | undefined;
5218
+ zipCode?: string | null | undefined;
5219
+ }, {
5220
+ country: string;
5221
+ district: string;
5222
+ addressType: "DOMESTIC";
5223
+ province: string;
5224
+ urbanOrRural: "URBAN";
5225
+ number?: string | null | undefined;
5226
+ town?: string | null | undefined;
5227
+ residentialArea?: string | null | undefined;
5228
+ street?: string | null | undefined;
5229
+ zipCode?: string | null | undefined;
5230
+ }>, z.ZodObject<z.objectUtil.extendShape<{
5231
+ country: z.ZodString;
5232
+ addressType: z.ZodLiteral<"DOMESTIC">;
5233
+ province: z.ZodString;
5234
+ district: z.ZodString;
5235
+ }, {
5236
+ urbanOrRural: z.ZodLiteral<"RURAL">;
5237
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5238
+ }>, "strip", z.ZodTypeAny, {
5239
+ country: string;
5240
+ district: string;
5241
+ addressType: "DOMESTIC";
5242
+ province: string;
5243
+ urbanOrRural: "RURAL";
5244
+ village?: string | null | undefined;
5245
+ }, {
5246
+ country: string;
5247
+ district: string;
5248
+ addressType: "DOMESTIC";
5249
+ province: string;
5250
+ urbanOrRural: "RURAL";
5251
+ village?: string | null | undefined;
5252
+ }>, z.ZodUndefined, z.ZodObject<{
5253
+ country: z.ZodString;
5254
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
5255
+ state: z.ZodString;
5256
+ district2: z.ZodString;
5257
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5258
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5259
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5260
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5261
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5262
+ }, "strip", z.ZodTypeAny, {
5263
+ country: string;
5264
+ state: string;
5265
+ addressType: "INTERNATIONAL";
5266
+ district2: string;
5267
+ cityOrTown?: string | null | undefined;
5268
+ addressLine1?: string | null | undefined;
5269
+ addressLine2?: string | null | undefined;
5270
+ addressLine3?: string | null | undefined;
5271
+ postcodeOrZip?: string | null | undefined;
5272
+ }, {
5273
+ country: string;
5274
+ state: string;
5275
+ addressType: "INTERNATIONAL";
5276
+ district2: string;
5277
+ cityOrTown?: string | null | undefined;
5278
+ addressLine1?: string | null | undefined;
5279
+ addressLine2?: string | null | undefined;
5280
+ addressLine3?: string | null | undefined;
5281
+ postcodeOrZip?: string | null | undefined;
5282
+ }>]>>;
5283
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5284
+ filename: z.ZodString;
5285
+ originalFilename: z.ZodString;
5286
+ type: z.ZodString;
5287
+ }, "strip", z.ZodTypeAny, {
5288
+ type: string;
5289
+ filename: string;
5290
+ originalFilename: string;
5291
+ }, {
5292
+ type: string;
5293
+ filename: string;
5294
+ originalFilename: string;
5295
+ }>, z.ZodArray<z.ZodObject<{
5296
+ filename: z.ZodString;
5297
+ originalFilename: z.ZodString;
5298
+ type: z.ZodString;
5299
+ option: z.ZodString;
5300
+ }, "strip", z.ZodTypeAny, {
5301
+ type: string;
5302
+ option: string;
5303
+ filename: string;
5304
+ originalFilename: string;
5305
+ }, {
5306
+ type: string;
5307
+ option: string;
5308
+ filename: string;
5309
+ originalFilename: string;
5310
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
5311
+ country: z.ZodString;
5312
+ addressType: z.ZodLiteral<"DOMESTIC">;
5313
+ province: z.ZodString;
5314
+ district: z.ZodString;
5315
+ }, {
5316
+ urbanOrRural: z.ZodLiteral<"URBAN">;
5317
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5318
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5319
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5320
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5321
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5322
+ }>, "strip", z.ZodTypeAny, {
5323
+ country: string;
5324
+ district: string;
5325
+ addressType: "DOMESTIC";
5326
+ province: string;
5327
+ urbanOrRural: "URBAN";
5328
+ number?: string | null | undefined;
5329
+ town?: string | null | undefined;
5330
+ residentialArea?: string | null | undefined;
5331
+ street?: string | null | undefined;
5332
+ zipCode?: string | null | undefined;
5333
+ }, {
5334
+ country: string;
5335
+ district: string;
5336
+ addressType: "DOMESTIC";
5337
+ province: string;
5338
+ urbanOrRural: "URBAN";
5339
+ number?: string | null | undefined;
5340
+ town?: string | null | undefined;
5341
+ residentialArea?: string | null | undefined;
5342
+ street?: string | null | undefined;
5343
+ zipCode?: string | null | undefined;
5344
+ }>, z.ZodObject<z.objectUtil.extendShape<{
5345
+ country: z.ZodString;
5346
+ addressType: z.ZodLiteral<"DOMESTIC">;
5347
+ province: z.ZodString;
5348
+ district: z.ZodString;
5349
+ }, {
5350
+ urbanOrRural: z.ZodLiteral<"RURAL">;
5351
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5352
+ }>, "strip", z.ZodTypeAny, {
5353
+ country: string;
5354
+ district: string;
5355
+ addressType: "DOMESTIC";
5356
+ province: string;
5357
+ urbanOrRural: "RURAL";
5358
+ village?: string | null | undefined;
5359
+ }, {
5360
+ country: string;
5361
+ district: string;
5362
+ addressType: "DOMESTIC";
5363
+ province: string;
5364
+ urbanOrRural: "RURAL";
5365
+ village?: string | null | undefined;
5366
+ }>, z.ZodUndefined, z.ZodObject<{
5367
+ country: z.ZodString;
5368
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
5369
+ state: z.ZodString;
5370
+ district2: z.ZodString;
5371
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5372
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5373
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5374
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5375
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5376
+ }, "strip", z.ZodTypeAny, {
5377
+ country: string;
5378
+ state: string;
5379
+ addressType: "INTERNATIONAL";
5380
+ district2: string;
5381
+ cityOrTown?: string | null | undefined;
5382
+ addressLine1?: string | null | undefined;
5383
+ addressLine2?: string | null | undefined;
5384
+ addressLine3?: string | null | undefined;
5385
+ postcodeOrZip?: string | null | undefined;
5386
+ }, {
5387
+ country: string;
5388
+ state: string;
5389
+ addressType: "INTERNATIONAL";
5390
+ district2: string;
5391
+ cityOrTown?: string | null | undefined;
5392
+ addressLine1?: string | null | undefined;
5393
+ addressLine2?: string | null | undefined;
5394
+ addressLine3?: string | null | undefined;
5395
+ postcodeOrZip?: string | null | undefined;
5396
+ }>]>>>;
5397
+ }, {
5398
+ type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
5399
+ createdAtLocation: z.ZodString;
5400
+ }>, "strip", z.ZodTypeAny, {
5401
+ type: "CREATE";
5402
+ declaration: Record<string, string | number | boolean | {
5403
+ type: string;
5404
+ filename: string;
5405
+ originalFilename: string;
5406
+ } | {
5407
+ country: string;
5408
+ district: string;
5409
+ addressType: "DOMESTIC";
5410
+ province: string;
5411
+ urbanOrRural: "URBAN";
5412
+ number?: string | null | undefined;
5413
+ town?: string | null | undefined;
5414
+ residentialArea?: string | null | undefined;
5415
+ street?: string | null | undefined;
5416
+ zipCode?: string | null | undefined;
5417
+ } | {
5418
+ country: string;
5419
+ district: string;
5420
+ addressType: "DOMESTIC";
5421
+ province: string;
5422
+ urbanOrRural: "RURAL";
5423
+ village?: string | null | undefined;
5424
+ } | {
5425
+ country: string;
5426
+ state: string;
5427
+ addressType: "INTERNATIONAL";
5428
+ district2: string;
5429
+ cityOrTown?: string | null | undefined;
5430
+ addressLine1?: string | null | undefined;
5431
+ addressLine2?: string | null | undefined;
5432
+ addressLine3?: string | null | undefined;
5433
+ postcodeOrZip?: string | null | undefined;
5434
+ } | {
5435
+ type: string;
5436
+ option: string;
5437
+ filename: string;
5438
+ originalFilename: string;
5439
+ }[] | undefined>;
5440
+ createdAtLocation: string;
5441
+ eventId: string;
5442
+ transactionId: string;
5443
+ annotation?: Record<string, string | number | boolean | {
5444
+ type: string;
5445
+ filename: string;
5446
+ originalFilename: string;
5447
+ } | {
5448
+ country: string;
5449
+ district: string;
5450
+ addressType: "DOMESTIC";
5451
+ province: string;
5452
+ urbanOrRural: "URBAN";
5453
+ number?: string | null | undefined;
5454
+ town?: string | null | undefined;
5455
+ residentialArea?: string | null | undefined;
5456
+ street?: string | null | undefined;
5457
+ zipCode?: string | null | undefined;
5458
+ } | {
5459
+ country: string;
5460
+ district: string;
5461
+ addressType: "DOMESTIC";
5462
+ province: string;
5463
+ urbanOrRural: "RURAL";
5464
+ village?: string | null | undefined;
5465
+ } | {
5466
+ country: string;
5467
+ state: string;
5468
+ addressType: "INTERNATIONAL";
5469
+ district2: string;
5470
+ cityOrTown?: string | null | undefined;
5471
+ addressLine1?: string | null | undefined;
5472
+ addressLine2?: string | null | undefined;
5473
+ addressLine3?: string | null | undefined;
5474
+ postcodeOrZip?: string | null | undefined;
5475
+ } | {
5476
+ type: string;
5477
+ option: string;
5478
+ filename: string;
5479
+ originalFilename: string;
5480
+ }[] | undefined> | undefined;
5481
+ }, {
5482
+ declaration: Record<string, string | number | boolean | {
5483
+ type: string;
5484
+ filename: string;
5485
+ originalFilename: string;
5486
+ } | {
5487
+ country: string;
5488
+ district: string;
5489
+ addressType: "DOMESTIC";
5490
+ province: string;
5491
+ urbanOrRural: "URBAN";
5492
+ number?: string | null | undefined;
5493
+ town?: string | null | undefined;
5494
+ residentialArea?: string | null | undefined;
5495
+ street?: string | null | undefined;
5496
+ zipCode?: string | null | undefined;
5497
+ } | {
5498
+ country: string;
5499
+ district: string;
5500
+ addressType: "DOMESTIC";
5501
+ province: string;
5502
+ urbanOrRural: "RURAL";
5503
+ village?: string | null | undefined;
5504
+ } | {
5505
+ country: string;
5506
+ state: string;
5507
+ addressType: "INTERNATIONAL";
5508
+ district2: string;
5509
+ cityOrTown?: string | null | undefined;
5510
+ addressLine1?: string | null | undefined;
5511
+ addressLine2?: string | null | undefined;
5512
+ addressLine3?: string | null | undefined;
5513
+ postcodeOrZip?: string | null | undefined;
5514
+ } | {
5515
+ type: string;
5516
+ option: string;
5517
+ filename: string;
5518
+ originalFilename: string;
5519
+ }[] | undefined>;
5520
+ createdAtLocation: string;
5521
+ eventId: string;
5522
+ transactionId: string;
5523
+ type?: "CREATE" | undefined;
5524
+ annotation?: Record<string, string | number | boolean | {
5525
+ type: string;
5526
+ filename: string;
5527
+ originalFilename: string;
5528
+ } | {
5529
+ country: string;
5530
+ district: string;
5531
+ addressType: "DOMESTIC";
5532
+ province: string;
5533
+ urbanOrRural: "URBAN";
5534
+ number?: string | null | undefined;
5535
+ town?: string | null | undefined;
5536
+ residentialArea?: string | null | undefined;
5537
+ street?: string | null | undefined;
5538
+ zipCode?: string | null | undefined;
5539
+ } | {
5540
+ country: string;
5541
+ district: string;
5542
+ addressType: "DOMESTIC";
5543
+ province: string;
5544
+ urbanOrRural: "RURAL";
5545
+ village?: string | null | undefined;
5546
+ } | {
5547
+ country: string;
5548
+ state: string;
5549
+ addressType: "INTERNATIONAL";
5550
+ district2: string;
5551
+ cityOrTown?: string | null | undefined;
5552
+ addressLine1?: string | null | undefined;
5553
+ addressLine2?: string | null | undefined;
5554
+ addressLine3?: string | null | undefined;
5555
+ postcodeOrZip?: string | null | undefined;
5556
+ } | {
5557
+ type: string;
5558
+ option: string;
5559
+ filename: string;
5560
+ originalFilename: string;
5561
+ }[] | undefined> | undefined;
5562
+ }>, z.ZodObject<z.objectUtil.extendShape<{
5563
+ eventId: z.ZodString;
5564
+ transactionId: z.ZodString;
5565
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4775
5566
  filename: z.ZodString;
4776
5567
  originalFilename: z.ZodString;
4777
5568
  type: z.ZodString;
@@ -4885,7 +5676,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
4885
5676
  addressLine3?: string | null | undefined;
4886
5677
  postcodeOrZip?: string | null | undefined;
4887
5678
  }>]>>;
4888
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5679
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4889
5680
  filename: z.ZodString;
4890
5681
  originalFilename: z.ZodString;
4891
5682
  type: z.ZodString;
@@ -5000,11 +5791,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5000
5791
  postcodeOrZip?: string | null | undefined;
5001
5792
  }>]>>>;
5002
5793
  }, {
5003
- type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
5004
- createdAtLocation: z.ZodString;
5794
+ type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
5795
+ duplicates: z.ZodArray<z.ZodString, "many">;
5005
5796
  }>, "strip", z.ZodTypeAny, {
5006
- type: "CREATE";
5007
- data: Record<string, string | number | boolean | {
5797
+ type: "VALIDATE";
5798
+ declaration: Record<string, string | number | boolean | {
5008
5799
  type: string;
5009
5800
  filename: string;
5010
5801
  originalFilename: string;
@@ -5042,10 +5833,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5042
5833
  filename: string;
5043
5834
  originalFilename: string;
5044
5835
  }[] | undefined>;
5045
- createdAtLocation: string;
5046
5836
  eventId: string;
5047
5837
  transactionId: string;
5048
- metadata?: Record<string, string | number | boolean | {
5838
+ duplicates: string[];
5839
+ annotation?: Record<string, string | number | boolean | {
5049
5840
  type: string;
5050
5841
  filename: string;
5051
5842
  originalFilename: string;
@@ -5084,7 +5875,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5084
5875
  originalFilename: string;
5085
5876
  }[] | undefined> | undefined;
5086
5877
  }, {
5087
- data: Record<string, string | number | boolean | {
5878
+ declaration: Record<string, string | number | boolean | {
5088
5879
  type: string;
5089
5880
  filename: string;
5090
5881
  originalFilename: string;
@@ -5122,11 +5913,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5122
5913
  filename: string;
5123
5914
  originalFilename: string;
5124
5915
  }[] | undefined>;
5125
- createdAtLocation: string;
5126
5916
  eventId: string;
5127
5917
  transactionId: string;
5128
- type?: "CREATE" | undefined;
5129
- metadata?: Record<string, string | number | boolean | {
5918
+ duplicates: string[];
5919
+ type?: "VALIDATE" | undefined;
5920
+ annotation?: Record<string, string | number | boolean | {
5130
5921
  type: string;
5131
5922
  filename: string;
5132
5923
  originalFilename: string;
@@ -5167,7 +5958,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5167
5958
  }>, z.ZodObject<z.objectUtil.extendShape<{
5168
5959
  eventId: z.ZodString;
5169
5960
  transactionId: z.ZodString;
5170
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5961
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5171
5962
  filename: z.ZodString;
5172
5963
  originalFilename: z.ZodString;
5173
5964
  type: z.ZodString;
@@ -5281,7 +6072,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5281
6072
  addressLine3?: string | null | undefined;
5282
6073
  postcodeOrZip?: string | null | undefined;
5283
6074
  }>]>>;
5284
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6075
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5285
6076
  filename: z.ZodString;
5286
6077
  originalFilename: z.ZodString;
5287
6078
  type: z.ZodString;
@@ -5396,11 +6187,20 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5396
6187
  postcodeOrZip?: string | null | undefined;
5397
6188
  }>]>>>;
5398
6189
  }, {
5399
- type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
5400
- duplicates: z.ZodArray<z.ZodString, "many">;
6190
+ type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
6191
+ identifiers: z.ZodObject<{
6192
+ trackingId: z.ZodString;
6193
+ registrationNumber: z.ZodString;
6194
+ }, "strip", z.ZodTypeAny, {
6195
+ trackingId: string;
6196
+ registrationNumber: string;
6197
+ }, {
6198
+ trackingId: string;
6199
+ registrationNumber: string;
6200
+ }>;
5401
6201
  }>, "strip", z.ZodTypeAny, {
5402
- type: "VALIDATE";
5403
- data: Record<string, string | number | boolean | {
6202
+ type: "REGISTER";
6203
+ declaration: Record<string, string | number | boolean | {
5404
6204
  type: string;
5405
6205
  filename: string;
5406
6206
  originalFilename: string;
@@ -5438,10 +6238,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5438
6238
  filename: string;
5439
6239
  originalFilename: string;
5440
6240
  }[] | undefined>;
6241
+ identifiers: {
6242
+ trackingId: string;
6243
+ registrationNumber: string;
6244
+ };
5441
6245
  eventId: string;
5442
6246
  transactionId: string;
5443
- duplicates: string[];
5444
- metadata?: Record<string, string | number | boolean | {
6247
+ annotation?: Record<string, string | number | boolean | {
5445
6248
  type: string;
5446
6249
  filename: string;
5447
6250
  originalFilename: string;
@@ -5480,7 +6283,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5480
6283
  originalFilename: string;
5481
6284
  }[] | undefined> | undefined;
5482
6285
  }, {
5483
- data: Record<string, string | number | boolean | {
6286
+ declaration: Record<string, string | number | boolean | {
5484
6287
  type: string;
5485
6288
  filename: string;
5486
6289
  originalFilename: string;
@@ -5518,11 +6321,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5518
6321
  filename: string;
5519
6322
  originalFilename: string;
5520
6323
  }[] | undefined>;
6324
+ identifiers: {
6325
+ trackingId: string;
6326
+ registrationNumber: string;
6327
+ };
5521
6328
  eventId: string;
5522
6329
  transactionId: string;
5523
- duplicates: string[];
5524
- type?: "VALIDATE" | undefined;
5525
- metadata?: Record<string, string | number | boolean | {
6330
+ type?: "REGISTER" | undefined;
6331
+ annotation?: Record<string, string | number | boolean | {
5526
6332
  type: string;
5527
6333
  filename: string;
5528
6334
  originalFilename: string;
@@ -5563,7 +6369,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5563
6369
  }>, z.ZodObject<z.objectUtil.extendShape<{
5564
6370
  eventId: z.ZodString;
5565
6371
  transactionId: z.ZodString;
5566
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6372
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5567
6373
  filename: z.ZodString;
5568
6374
  originalFilename: z.ZodString;
5569
6375
  type: z.ZodString;
@@ -5677,7 +6483,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5677
6483
  addressLine3?: string | null | undefined;
5678
6484
  postcodeOrZip?: string | null | undefined;
5679
6485
  }>]>>;
5680
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6486
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5681
6487
  filename: z.ZodString;
5682
6488
  originalFilename: z.ZodString;
5683
6489
  type: z.ZodString;
@@ -5792,20 +6598,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5792
6598
  postcodeOrZip?: string | null | undefined;
5793
6599
  }>]>>>;
5794
6600
  }, {
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
- }>;
6601
+ type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
5806
6602
  }>, "strip", z.ZodTypeAny, {
5807
- type: "REGISTER";
5808
- data: Record<string, string | number | boolean | {
6603
+ type: "NOTIFY";
6604
+ declaration: Record<string, string | number | boolean | {
5809
6605
  type: string;
5810
6606
  filename: string;
5811
6607
  originalFilename: string;
@@ -5843,13 +6639,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5843
6639
  filename: string;
5844
6640
  originalFilename: string;
5845
6641
  }[] | undefined>;
5846
- identifiers: {
5847
- trackingId: string;
5848
- registrationNumber: string;
5849
- };
5850
6642
  eventId: string;
5851
6643
  transactionId: string;
5852
- metadata?: Record<string, string | number | boolean | {
6644
+ annotation?: Record<string, string | number | boolean | {
5853
6645
  type: string;
5854
6646
  filename: string;
5855
6647
  originalFilename: string;
@@ -5888,7 +6680,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5888
6680
  originalFilename: string;
5889
6681
  }[] | undefined> | undefined;
5890
6682
  }, {
5891
- data: Record<string, string | number | boolean | {
6683
+ declaration: Record<string, string | number | boolean | {
5892
6684
  type: string;
5893
6685
  filename: string;
5894
6686
  originalFilename: string;
@@ -5926,14 +6718,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5926
6718
  filename: string;
5927
6719
  originalFilename: string;
5928
6720
  }[] | undefined>;
5929
- identifiers: {
5930
- trackingId: string;
5931
- registrationNumber: string;
5932
- };
5933
6721
  eventId: string;
5934
6722
  transactionId: string;
5935
- type?: "REGISTER" | undefined;
5936
- metadata?: Record<string, string | number | boolean | {
6723
+ type?: "NOTIFY" | undefined;
6724
+ annotation?: Record<string, string | number | boolean | {
5937
6725
  type: string;
5938
6726
  filename: string;
5939
6727
  originalFilename: string;
@@ -5974,7 +6762,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
5974
6762
  }>, z.ZodObject<z.objectUtil.extendShape<{
5975
6763
  eventId: z.ZodString;
5976
6764
  transactionId: z.ZodString;
5977
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6765
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5978
6766
  filename: z.ZodString;
5979
6767
  originalFilename: z.ZodString;
5980
6768
  type: z.ZodString;
@@ -6088,7 +6876,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6088
6876
  addressLine3?: string | null | undefined;
6089
6877
  postcodeOrZip?: string | null | undefined;
6090
6878
  }>]>>;
6091
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6879
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6092
6880
  filename: z.ZodString;
6093
6881
  originalFilename: z.ZodString;
6094
6882
  type: z.ZodString;
@@ -6203,10 +6991,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6203
6991
  postcodeOrZip?: string | null | undefined;
6204
6992
  }>]>>>;
6205
6993
  }, {
6206
- type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
6994
+ type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
6207
6995
  }>, "strip", z.ZodTypeAny, {
6208
- type: "NOTIFY";
6209
- data: Record<string, string | number | boolean | {
6996
+ type: "DECLARE";
6997
+ declaration: Record<string, string | number | boolean | {
6210
6998
  type: string;
6211
6999
  filename: string;
6212
7000
  originalFilename: string;
@@ -6246,7 +7034,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6246
7034
  }[] | undefined>;
6247
7035
  eventId: string;
6248
7036
  transactionId: string;
6249
- metadata?: Record<string, string | number | boolean | {
7037
+ annotation?: Record<string, string | number | boolean | {
6250
7038
  type: string;
6251
7039
  filename: string;
6252
7040
  originalFilename: string;
@@ -6285,7 +7073,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6285
7073
  originalFilename: string;
6286
7074
  }[] | undefined> | undefined;
6287
7075
  }, {
6288
- data: Record<string, string | number | boolean | {
7076
+ declaration: Record<string, string | number | boolean | {
6289
7077
  type: string;
6290
7078
  filename: string;
6291
7079
  originalFilename: string;
@@ -6325,8 +7113,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6325
7113
  }[] | undefined>;
6326
7114
  eventId: string;
6327
7115
  transactionId: string;
6328
- type?: "NOTIFY" | undefined;
6329
- metadata?: Record<string, string | number | boolean | {
7116
+ type?: "DECLARE" | undefined;
7117
+ annotation?: Record<string, string | number | boolean | {
6330
7118
  type: string;
6331
7119
  filename: string;
6332
7120
  originalFilename: string;
@@ -6367,7 +7155,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6367
7155
  }>, z.ZodObject<z.objectUtil.extendShape<{
6368
7156
  eventId: z.ZodString;
6369
7157
  transactionId: z.ZodString;
6370
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7158
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6371
7159
  filename: z.ZodString;
6372
7160
  originalFilename: z.ZodString;
6373
7161
  type: z.ZodString;
@@ -6481,7 +7269,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6481
7269
  addressLine3?: string | null | undefined;
6482
7270
  postcodeOrZip?: string | null | undefined;
6483
7271
  }>]>>;
6484
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7272
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6485
7273
  filename: z.ZodString;
6486
7274
  originalFilename: z.ZodString;
6487
7275
  type: z.ZodString;
@@ -6596,10 +7384,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6596
7384
  postcodeOrZip?: string | null | undefined;
6597
7385
  }>]>>>;
6598
7386
  }, {
6599
- type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
7387
+ type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
6600
7388
  }>, "strip", z.ZodTypeAny, {
6601
- type: "DECLARE";
6602
- data: Record<string, string | number | boolean | {
7389
+ type: "REJECT";
7390
+ declaration: Record<string, string | number | boolean | {
6603
7391
  type: string;
6604
7392
  filename: string;
6605
7393
  originalFilename: string;
@@ -6639,7 +7427,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6639
7427
  }[] | undefined>;
6640
7428
  eventId: string;
6641
7429
  transactionId: string;
6642
- metadata?: Record<string, string | number | boolean | {
7430
+ annotation?: Record<string, string | number | boolean | {
6643
7431
  type: string;
6644
7432
  filename: string;
6645
7433
  originalFilename: string;
@@ -6678,7 +7466,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6678
7466
  originalFilename: string;
6679
7467
  }[] | undefined> | undefined;
6680
7468
  }, {
6681
- data: Record<string, string | number | boolean | {
7469
+ declaration: Record<string, string | number | boolean | {
6682
7470
  type: string;
6683
7471
  filename: string;
6684
7472
  originalFilename: string;
@@ -6718,8 +7506,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6718
7506
  }[] | undefined>;
6719
7507
  eventId: string;
6720
7508
  transactionId: string;
6721
- type?: "DECLARE" | undefined;
6722
- metadata?: Record<string, string | number | boolean | {
7509
+ type?: "REJECT" | undefined;
7510
+ annotation?: Record<string, string | number | boolean | {
6723
7511
  type: string;
6724
7512
  filename: string;
6725
7513
  originalFilename: string;
@@ -6760,7 +7548,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6760
7548
  }>, z.ZodObject<z.objectUtil.extendShape<{
6761
7549
  eventId: z.ZodString;
6762
7550
  transactionId: z.ZodString;
6763
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7551
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6764
7552
  filename: z.ZodString;
6765
7553
  originalFilename: z.ZodString;
6766
7554
  type: z.ZodString;
@@ -6874,7 +7662,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6874
7662
  addressLine3?: string | null | undefined;
6875
7663
  postcodeOrZip?: string | null | undefined;
6876
7664
  }>]>>;
6877
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7665
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6878
7666
  filename: z.ZodString;
6879
7667
  originalFilename: z.ZodString;
6880
7668
  type: z.ZodString;
@@ -6989,10 +7777,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6989
7777
  postcodeOrZip?: string | null | undefined;
6990
7778
  }>]>>>;
6991
7779
  }, {
6992
- type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
7780
+ type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
6993
7781
  }>, "strip", z.ZodTypeAny, {
6994
- type: "REJECT";
6995
- data: Record<string, string | number | boolean | {
7782
+ type: "MARKED_AS_DUPLICATE";
7783
+ declaration: Record<string, string | number | boolean | {
6996
7784
  type: string;
6997
7785
  filename: string;
6998
7786
  originalFilename: string;
@@ -7032,7 +7820,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7032
7820
  }[] | undefined>;
7033
7821
  eventId: string;
7034
7822
  transactionId: string;
7035
- metadata?: Record<string, string | number | boolean | {
7823
+ annotation?: Record<string, string | number | boolean | {
7036
7824
  type: string;
7037
7825
  filename: string;
7038
7826
  originalFilename: string;
@@ -7071,7 +7859,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7071
7859
  originalFilename: string;
7072
7860
  }[] | undefined> | undefined;
7073
7861
  }, {
7074
- data: Record<string, string | number | boolean | {
7862
+ declaration: Record<string, string | number | boolean | {
7075
7863
  type: string;
7076
7864
  filename: string;
7077
7865
  originalFilename: string;
@@ -7111,8 +7899,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7111
7899
  }[] | undefined>;
7112
7900
  eventId: string;
7113
7901
  transactionId: string;
7114
- type?: "REJECT" | undefined;
7115
- metadata?: Record<string, string | number | boolean | {
7902
+ type?: "MARKED_AS_DUPLICATE" | undefined;
7903
+ annotation?: Record<string, string | number | boolean | {
7116
7904
  type: string;
7117
7905
  filename: string;
7118
7906
  originalFilename: string;
@@ -7153,7 +7941,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7153
7941
  }>, z.ZodObject<z.objectUtil.extendShape<{
7154
7942
  eventId: z.ZodString;
7155
7943
  transactionId: z.ZodString;
7156
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7944
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7157
7945
  filename: z.ZodString;
7158
7946
  originalFilename: z.ZodString;
7159
7947
  type: z.ZodString;
@@ -7267,7 +8055,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7267
8055
  addressLine3?: string | null | undefined;
7268
8056
  postcodeOrZip?: string | null | undefined;
7269
8057
  }>]>>;
7270
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8058
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7271
8059
  filename: z.ZodString;
7272
8060
  originalFilename: z.ZodString;
7273
8061
  type: z.ZodString;
@@ -7382,10 +8170,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7382
8170
  postcodeOrZip?: string | null | undefined;
7383
8171
  }>]>>>;
7384
8172
  }, {
7385
- type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
8173
+ type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
7386
8174
  }>, "strip", z.ZodTypeAny, {
7387
- type: "MARKED_AS_DUPLICATE";
7388
- data: Record<string, string | number | boolean | {
8175
+ type: "ARCHIVE";
8176
+ declaration: Record<string, string | number | boolean | {
7389
8177
  type: string;
7390
8178
  filename: string;
7391
8179
  originalFilename: string;
@@ -7425,7 +8213,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7425
8213
  }[] | undefined>;
7426
8214
  eventId: string;
7427
8215
  transactionId: string;
7428
- metadata?: Record<string, string | number | boolean | {
8216
+ annotation?: Record<string, string | number | boolean | {
7429
8217
  type: string;
7430
8218
  filename: string;
7431
8219
  originalFilename: string;
@@ -7464,7 +8252,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7464
8252
  originalFilename: string;
7465
8253
  }[] | undefined> | undefined;
7466
8254
  }, {
7467
- data: Record<string, string | number | boolean | {
8255
+ declaration: Record<string, string | number | boolean | {
7468
8256
  type: string;
7469
8257
  filename: string;
7470
8258
  originalFilename: string;
@@ -7504,8 +8292,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7504
8292
  }[] | undefined>;
7505
8293
  eventId: string;
7506
8294
  transactionId: string;
7507
- type?: "MARKED_AS_DUPLICATE" | undefined;
7508
- metadata?: Record<string, string | number | boolean | {
8295
+ type?: "ARCHIVE" | undefined;
8296
+ annotation?: Record<string, string | number | boolean | {
7509
8297
  type: string;
7510
8298
  filename: string;
7511
8299
  originalFilename: string;
@@ -7546,7 +8334,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7546
8334
  }>, z.ZodObject<z.objectUtil.extendShape<{
7547
8335
  eventId: z.ZodString;
7548
8336
  transactionId: z.ZodString;
7549
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8337
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7550
8338
  filename: z.ZodString;
7551
8339
  originalFilename: z.ZodString;
7552
8340
  type: z.ZodString;
@@ -7660,7 +8448,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7660
8448
  addressLine3?: string | null | undefined;
7661
8449
  postcodeOrZip?: string | null | undefined;
7662
8450
  }>]>>;
7663
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8451
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7664
8452
  filename: z.ZodString;
7665
8453
  originalFilename: z.ZodString;
7666
8454
  type: z.ZodString;
@@ -7775,10 +8563,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7775
8563
  postcodeOrZip?: string | null | undefined;
7776
8564
  }>]>>>;
7777
8565
  }, {
7778
- type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
8566
+ type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
8567
+ assignedTo: z.ZodString;
7779
8568
  }>, "strip", z.ZodTypeAny, {
7780
- type: "ARCHIVE";
7781
- data: Record<string, string | number | boolean | {
8569
+ type: "ASSIGN";
8570
+ declaration: Record<string, string | number | boolean | {
7782
8571
  type: string;
7783
8572
  filename: string;
7784
8573
  originalFilename: string;
@@ -7816,9 +8605,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7816
8605
  filename: string;
7817
8606
  originalFilename: string;
7818
8607
  }[] | undefined>;
8608
+ assignedTo: string;
7819
8609
  eventId: string;
7820
8610
  transactionId: string;
7821
- metadata?: Record<string, string | number | boolean | {
8611
+ annotation?: Record<string, string | number | boolean | {
7822
8612
  type: string;
7823
8613
  filename: string;
7824
8614
  originalFilename: string;
@@ -7857,7 +8647,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7857
8647
  originalFilename: string;
7858
8648
  }[] | undefined> | undefined;
7859
8649
  }, {
7860
- data: Record<string, string | number | boolean | {
8650
+ declaration: Record<string, string | number | boolean | {
7861
8651
  type: string;
7862
8652
  filename: string;
7863
8653
  originalFilename: string;
@@ -7895,10 +8685,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7895
8685
  filename: string;
7896
8686
  originalFilename: string;
7897
8687
  }[] | undefined>;
8688
+ assignedTo: string;
7898
8689
  eventId: string;
7899
8690
  transactionId: string;
7900
- type?: "ARCHIVE" | undefined;
7901
- metadata?: Record<string, string | number | boolean | {
8691
+ type?: "ASSIGN" | undefined;
8692
+ annotation?: Record<string, string | number | boolean | {
7902
8693
  type: string;
7903
8694
  filename: string;
7904
8695
  originalFilename: string;
@@ -7939,7 +8730,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7939
8730
  }>, z.ZodObject<z.objectUtil.extendShape<{
7940
8731
  eventId: z.ZodString;
7941
8732
  transactionId: z.ZodString;
7942
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8733
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7943
8734
  filename: z.ZodString;
7944
8735
  originalFilename: z.ZodString;
7945
8736
  type: z.ZodString;
@@ -8053,7 +8844,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8053
8844
  addressLine3?: string | null | undefined;
8054
8845
  postcodeOrZip?: string | null | undefined;
8055
8846
  }>]>>;
8056
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8847
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8057
8848
  filename: z.ZodString;
8058
8849
  originalFilename: z.ZodString;
8059
8850
  type: z.ZodString;
@@ -8168,11 +8959,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8168
8959
  postcodeOrZip?: string | null | undefined;
8169
8960
  }>]>>>;
8170
8961
  }, {
8171
- type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
8172
- assignedTo: z.ZodString;
8962
+ type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
8173
8963
  }>, "strip", z.ZodTypeAny, {
8174
- type: "ASSIGN";
8175
- data: Record<string, string | number | boolean | {
8964
+ type: "UNASSIGN";
8965
+ declaration: Record<string, string | number | boolean | {
8176
8966
  type: string;
8177
8967
  filename: string;
8178
8968
  originalFilename: string;
@@ -8210,10 +9000,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8210
9000
  filename: string;
8211
9001
  originalFilename: string;
8212
9002
  }[] | undefined>;
8213
- assignedTo: string;
8214
9003
  eventId: string;
8215
9004
  transactionId: string;
8216
- metadata?: Record<string, string | number | boolean | {
9005
+ annotation?: Record<string, string | number | boolean | {
8217
9006
  type: string;
8218
9007
  filename: string;
8219
9008
  originalFilename: string;
@@ -8252,7 +9041,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8252
9041
  originalFilename: string;
8253
9042
  }[] | undefined> | undefined;
8254
9043
  }, {
8255
- data: Record<string, string | number | boolean | {
9044
+ declaration: Record<string, string | number | boolean | {
8256
9045
  type: string;
8257
9046
  filename: string;
8258
9047
  originalFilename: string;
@@ -8290,11 +9079,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8290
9079
  filename: string;
8291
9080
  originalFilename: string;
8292
9081
  }[] | undefined>;
8293
- assignedTo: string;
8294
9082
  eventId: string;
8295
9083
  transactionId: string;
8296
- type?: "ASSIGN" | undefined;
8297
- metadata?: Record<string, string | number | boolean | {
9084
+ type?: "UNASSIGN" | undefined;
9085
+ annotation?: Record<string, string | number | boolean | {
8298
9086
  type: string;
8299
9087
  filename: string;
8300
9088
  originalFilename: string;
@@ -8335,7 +9123,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8335
9123
  }>, z.ZodObject<z.objectUtil.extendShape<{
8336
9124
  eventId: z.ZodString;
8337
9125
  transactionId: z.ZodString;
8338
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9126
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8339
9127
  filename: z.ZodString;
8340
9128
  originalFilename: z.ZodString;
8341
9129
  type: z.ZodString;
@@ -8449,7 +9237,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8449
9237
  addressLine3?: string | null | undefined;
8450
9238
  postcodeOrZip?: string | null | undefined;
8451
9239
  }>]>>;
8452
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9240
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8453
9241
  filename: z.ZodString;
8454
9242
  originalFilename: z.ZodString;
8455
9243
  type: z.ZodString;
@@ -8564,10 +9352,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8564
9352
  postcodeOrZip?: string | null | undefined;
8565
9353
  }>]>>>;
8566
9354
  }, {
8567
- type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
9355
+ type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
8568
9356
  }>, "strip", z.ZodTypeAny, {
8569
- type: "UNASSIGN";
8570
- data: Record<string, string | number | boolean | {
9357
+ type: "PRINT_CERTIFICATE";
9358
+ declaration: Record<string, string | number | boolean | {
8571
9359
  type: string;
8572
9360
  filename: string;
8573
9361
  originalFilename: string;
@@ -8607,7 +9395,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8607
9395
  }[] | undefined>;
8608
9396
  eventId: string;
8609
9397
  transactionId: string;
8610
- metadata?: Record<string, string | number | boolean | {
9398
+ annotation?: Record<string, string | number | boolean | {
8611
9399
  type: string;
8612
9400
  filename: string;
8613
9401
  originalFilename: string;
@@ -8646,7 +9434,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8646
9434
  originalFilename: string;
8647
9435
  }[] | undefined> | undefined;
8648
9436
  }, {
8649
- data: Record<string, string | number | boolean | {
9437
+ declaration: Record<string, string | number | boolean | {
8650
9438
  type: string;
8651
9439
  filename: string;
8652
9440
  originalFilename: string;
@@ -8686,8 +9474,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8686
9474
  }[] | undefined>;
8687
9475
  eventId: string;
8688
9476
  transactionId: string;
8689
- type?: "UNASSIGN" | undefined;
8690
- metadata?: Record<string, string | number | boolean | {
9477
+ type?: "PRINT_CERTIFICATE" | undefined;
9478
+ annotation?: Record<string, string | number | boolean | {
8691
9479
  type: string;
8692
9480
  filename: string;
8693
9481
  originalFilename: string;
@@ -8728,7 +9516,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8728
9516
  }>, z.ZodObject<z.objectUtil.extendShape<{
8729
9517
  eventId: z.ZodString;
8730
9518
  transactionId: z.ZodString;
8731
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9519
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8732
9520
  filename: z.ZodString;
8733
9521
  originalFilename: z.ZodString;
8734
9522
  type: z.ZodString;
@@ -8842,7 +9630,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8842
9630
  addressLine3?: string | null | undefined;
8843
9631
  postcodeOrZip?: string | null | undefined;
8844
9632
  }>]>>;
8845
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9633
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8846
9634
  filename: z.ZodString;
8847
9635
  originalFilename: z.ZodString;
8848
9636
  type: z.ZodString;
@@ -8957,10 +9745,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8957
9745
  postcodeOrZip?: string | null | undefined;
8958
9746
  }>]>>>;
8959
9747
  }, {
8960
- type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
9748
+ type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
8961
9749
  }>, "strip", z.ZodTypeAny, {
8962
- type: "PRINT_CERTIFICATE";
8963
- data: Record<string, string | number | boolean | {
9750
+ type: "REQUEST_CORRECTION";
9751
+ declaration: Record<string, string | number | boolean | {
8964
9752
  type: string;
8965
9753
  filename: string;
8966
9754
  originalFilename: string;
@@ -9000,7 +9788,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9000
9788
  }[] | undefined>;
9001
9789
  eventId: string;
9002
9790
  transactionId: string;
9003
- metadata?: Record<string, string | number | boolean | {
9791
+ annotation?: Record<string, string | number | boolean | {
9004
9792
  type: string;
9005
9793
  filename: string;
9006
9794
  originalFilename: string;
@@ -9039,7 +9827,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9039
9827
  originalFilename: string;
9040
9828
  }[] | undefined> | undefined;
9041
9829
  }, {
9042
- data: Record<string, string | number | boolean | {
9830
+ declaration: Record<string, string | number | boolean | {
9043
9831
  type: string;
9044
9832
  filename: string;
9045
9833
  originalFilename: string;
@@ -9079,8 +9867,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9079
9867
  }[] | undefined>;
9080
9868
  eventId: string;
9081
9869
  transactionId: string;
9082
- type?: "PRINT_CERTIFICATE" | undefined;
9083
- metadata?: Record<string, string | number | boolean | {
9870
+ type?: "REQUEST_CORRECTION" | undefined;
9871
+ annotation?: Record<string, string | number | boolean | {
9084
9872
  type: string;
9085
9873
  filename: string;
9086
9874
  originalFilename: string;
@@ -9121,7 +9909,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9121
9909
  }>, z.ZodObject<z.objectUtil.extendShape<{
9122
9910
  eventId: z.ZodString;
9123
9911
  transactionId: z.ZodString;
9124
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9912
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9125
9913
  filename: z.ZodString;
9126
9914
  originalFilename: z.ZodString;
9127
9915
  type: z.ZodString;
@@ -9235,7 +10023,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9235
10023
  addressLine3?: string | null | undefined;
9236
10024
  postcodeOrZip?: string | null | undefined;
9237
10025
  }>]>>;
9238
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10026
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9239
10027
  filename: z.ZodString;
9240
10028
  originalFilename: z.ZodString;
9241
10029
  type: z.ZodString;
@@ -9350,10 +10138,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9350
10138
  postcodeOrZip?: string | null | undefined;
9351
10139
  }>]>>>;
9352
10140
  }, {
9353
- type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
10141
+ requestId: z.ZodString;
10142
+ type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
9354
10143
  }>, "strip", z.ZodTypeAny, {
9355
- type: "REQUEST_CORRECTION";
9356
- data: Record<string, string | number | boolean | {
10144
+ type: "REJECT_CORRECTION";
10145
+ declaration: Record<string, string | number | boolean | {
9357
10146
  type: string;
9358
10147
  filename: string;
9359
10148
  originalFilename: string;
@@ -9391,9 +10180,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9391
10180
  filename: string;
9392
10181
  originalFilename: string;
9393
10182
  }[] | undefined>;
10183
+ requestId: string;
9394
10184
  eventId: string;
9395
10185
  transactionId: string;
9396
- metadata?: Record<string, string | number | boolean | {
10186
+ annotation?: Record<string, string | number | boolean | {
9397
10187
  type: string;
9398
10188
  filename: string;
9399
10189
  originalFilename: string;
@@ -9432,7 +10222,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9432
10222
  originalFilename: string;
9433
10223
  }[] | undefined> | undefined;
9434
10224
  }, {
9435
- data: Record<string, string | number | boolean | {
10225
+ declaration: Record<string, string | number | boolean | {
9436
10226
  type: string;
9437
10227
  filename: string;
9438
10228
  originalFilename: string;
@@ -9470,10 +10260,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9470
10260
  filename: string;
9471
10261
  originalFilename: string;
9472
10262
  }[] | undefined>;
10263
+ requestId: string;
9473
10264
  eventId: string;
9474
10265
  transactionId: string;
9475
- type?: "REQUEST_CORRECTION" | undefined;
9476
- metadata?: Record<string, string | number | boolean | {
10266
+ type?: "REJECT_CORRECTION" | undefined;
10267
+ annotation?: Record<string, string | number | boolean | {
9477
10268
  type: string;
9478
10269
  filename: string;
9479
10270
  originalFilename: string;
@@ -9514,7 +10305,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9514
10305
  }>, z.ZodObject<z.objectUtil.extendShape<{
9515
10306
  eventId: z.ZodString;
9516
10307
  transactionId: z.ZodString;
9517
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10308
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9518
10309
  filename: z.ZodString;
9519
10310
  originalFilename: z.ZodString;
9520
10311
  type: z.ZodString;
@@ -9628,7 +10419,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9628
10419
  addressLine3?: string | null | undefined;
9629
10420
  postcodeOrZip?: string | null | undefined;
9630
10421
  }>]>>;
9631
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10422
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9632
10423
  filename: z.ZodString;
9633
10424
  originalFilename: z.ZodString;
9634
10425
  type: z.ZodString;
@@ -9744,10 +10535,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9744
10535
  }>]>>>;
9745
10536
  }, {
9746
10537
  requestId: z.ZodString;
9747
- type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
10538
+ type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
9748
10539
  }>, "strip", z.ZodTypeAny, {
9749
- type: "REJECT_CORRECTION";
9750
- data: Record<string, string | number | boolean | {
10540
+ type: "APPROVE_CORRECTION";
10541
+ declaration: Record<string, string | number | boolean | {
9751
10542
  type: string;
9752
10543
  filename: string;
9753
10544
  originalFilename: string;
@@ -9788,7 +10579,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9788
10579
  requestId: string;
9789
10580
  eventId: string;
9790
10581
  transactionId: string;
9791
- metadata?: Record<string, string | number | boolean | {
10582
+ annotation?: Record<string, string | number | boolean | {
9792
10583
  type: string;
9793
10584
  filename: string;
9794
10585
  originalFilename: string;
@@ -9827,7 +10618,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9827
10618
  originalFilename: string;
9828
10619
  }[] | undefined> | undefined;
9829
10620
  }, {
9830
- data: Record<string, string | number | boolean | {
10621
+ declaration: Record<string, string | number | boolean | {
9831
10622
  type: string;
9832
10623
  filename: string;
9833
10624
  originalFilename: string;
@@ -9868,8 +10659,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9868
10659
  requestId: string;
9869
10660
  eventId: string;
9870
10661
  transactionId: string;
9871
- type?: "REJECT_CORRECTION" | undefined;
9872
- metadata?: Record<string, string | number | boolean | {
10662
+ type?: "APPROVE_CORRECTION" | undefined;
10663
+ annotation?: Record<string, string | number | boolean | {
9873
10664
  type: string;
9874
10665
  filename: string;
9875
10666
  originalFilename: string;
@@ -9910,7 +10701,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9910
10701
  }>, z.ZodObject<z.objectUtil.extendShape<{
9911
10702
  eventId: z.ZodString;
9912
10703
  transactionId: z.ZodString;
9913
- data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10704
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9914
10705
  filename: z.ZodString;
9915
10706
  originalFilename: z.ZodString;
9916
10707
  type: z.ZodString;
@@ -10024,7 +10815,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10024
10815
  addressLine3?: string | null | undefined;
10025
10816
  postcodeOrZip?: string | null | undefined;
10026
10817
  }>]>>;
10027
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10818
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10028
10819
  filename: z.ZodString;
10029
10820
  originalFilename: z.ZodString;
10030
10821
  type: z.ZodString;
@@ -10139,11 +10930,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10139
10930
  postcodeOrZip?: string | null | undefined;
10140
10931
  }>]>>>;
10141
10932
  }, {
10142
- requestId: z.ZodString;
10143
- type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
10933
+ type: z.ZodDefault<z.ZodLiteral<"READ">>;
10144
10934
  }>, "strip", z.ZodTypeAny, {
10145
- type: "APPROVE_CORRECTION";
10146
- data: Record<string, string | number | boolean | {
10935
+ type: "READ";
10936
+ declaration: Record<string, string | number | boolean | {
10147
10937
  type: string;
10148
10938
  filename: string;
10149
10939
  originalFilename: string;
@@ -10181,10 +10971,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10181
10971
  filename: string;
10182
10972
  originalFilename: string;
10183
10973
  }[] | undefined>;
10184
- requestId: string;
10185
10974
  eventId: string;
10186
10975
  transactionId: string;
10187
- metadata?: Record<string, string | number | boolean | {
10976
+ annotation?: Record<string, string | number | boolean | {
10188
10977
  type: string;
10189
10978
  filename: string;
10190
10979
  originalFilename: string;
@@ -10223,7 +11012,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10223
11012
  originalFilename: string;
10224
11013
  }[] | undefined> | undefined;
10225
11014
  }, {
10226
- data: Record<string, string | number | boolean | {
11015
+ declaration: Record<string, string | number | boolean | {
10227
11016
  type: string;
10228
11017
  filename: string;
10229
11018
  originalFilename: string;
@@ -10261,11 +11050,10 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10261
11050
  filename: string;
10262
11051
  originalFilename: string;
10263
11052
  }[] | undefined>;
10264
- requestId: string;
10265
11053
  eventId: string;
10266
11054
  transactionId: string;
10267
- type?: "APPROVE_CORRECTION" | undefined;
10268
- metadata?: Record<string, string | number | boolean | {
11055
+ type?: "READ" | undefined;
11056
+ annotation?: Record<string, string | number | boolean | {
10269
11057
  type: string;
10270
11058
  filename: string;
10271
11059
  originalFilename: string;