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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/commons/api/router.d.ts +12023 -4357
  2. package/dist/commons/conditionals/conditionals.d.ts +10 -6
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +105057 -1720
  5. package/dist/commons/events/ActionDocument.d.ts +970 -452
  6. package/dist/commons/events/ActionInput.d.ts +443 -363
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  8. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  9. package/dist/commons/events/Constants.d.ts +2 -0
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  11. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  12. package/dist/commons/events/Draft.d.ts +57 -39
  13. package/dist/commons/events/EventConfig.d.ts +50483 -1345
  14. package/dist/commons/events/EventDocument.d.ts +630 -330
  15. package/dist/commons/events/EventIndex.d.ts +1344 -18
  16. package/dist/commons/events/EventMetadata.d.ts +302 -16
  17. package/dist/commons/events/FieldConfig.d.ts +4358 -786
  18. package/dist/commons/events/FieldType.d.ts +3 -3
  19. package/dist/commons/events/FieldTypeMapping.d.ts +16 -6
  20. package/dist/commons/events/FieldValue.d.ts +9 -4
  21. package/dist/commons/events/FormConfig.d.ts +43885 -439
  22. package/dist/commons/events/PageConfig.d.ts +10930 -204
  23. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  24. package/dist/commons/events/User.d.ts +31 -2
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  26. package/dist/commons/events/WorkqueueConfig.d.ts +4525 -20
  27. package/dist/commons/events/defineConfig.d.ts +8017 -28
  28. package/dist/commons/events/event.d.ts +54 -0
  29. package/dist/commons/events/field.d.ts +73 -0
  30. package/dist/commons/events/index.d.ts +7 -0
  31. package/dist/commons/events/scopes.d.ts +45 -0
  32. package/dist/commons/events/serializer.d.ts +2 -0
  33. package/dist/commons/events/test.utils.d.ts +35 -51
  34. package/dist/commons/events/transactions.d.ts +1 -1
  35. package/dist/commons/events/utils.d.ts +3706 -71
  36. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  37. package/dist/conditionals/index.js +58 -35
  38. package/dist/events/index.js +3152 -1166
  39. package/dist/scopes/index.d.ts +94 -6
  40. package/dist/scopes/index.js +42 -21
  41. package/package.json +3 -2
@@ -1,14 +1,18 @@
1
1
  import { z } from 'zod';
2
2
  export declare const EventDocument: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodBranded<z.ZodString, "UUID">;
4
4
  type: z.ZodString;
5
5
  createdAt: z.ZodString;
6
6
  updatedAt: z.ZodString;
7
7
  actions: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
8
  id: z.ZodString;
9
+ transactionId: z.ZodString;
9
10
  createdAt: z.ZodString;
10
11
  createdBy: z.ZodString;
11
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
+ createdByRole: z.ZodString;
13
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
15
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12
16
  filename: z.ZodString;
13
17
  originalFilename: z.ZodString;
14
18
  type: z.ZodString;
@@ -122,7 +126,7 @@ export declare const EventDocument: z.ZodObject<{
122
126
  addressLine3?: string | null | undefined;
123
127
  postcodeOrZip?: string | null | undefined;
124
128
  }>]>>;
125
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
129
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
126
130
  filename: z.ZodString;
127
131
  originalFilename: z.ZodString;
128
132
  type: z.ZodString;
@@ -235,18 +239,19 @@ export declare const EventDocument: z.ZodObject<{
235
239
  addressLine2?: string | null | undefined;
236
240
  addressLine3?: string | null | undefined;
237
241
  postcodeOrZip?: string | null | undefined;
238
- }>]>>>;
239
- createdAtLocation: z.ZodString;
242
+ }>]>>>>;
240
243
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
241
- originalActionId: z.ZodOptional<z.ZodString>;
244
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
242
245
  }, {
243
246
  type: z.ZodLiteral<"CREATE">;
244
247
  }>, "strip", z.ZodTypeAny, {
245
248
  type: "CREATE";
246
249
  id: string;
247
250
  status: "Rejected" | "Requested" | "Accepted";
251
+ transactionId: string;
248
252
  createdAt: string;
249
253
  createdBy: string;
254
+ createdByRole: string;
250
255
  declaration: Record<string, string | number | boolean | {
251
256
  type: string;
252
257
  filename: string;
@@ -284,8 +289,9 @@ export declare const EventDocument: z.ZodObject<{
284
289
  option: string;
285
290
  filename: string;
286
291
  originalFilename: string;
287
- }[] | undefined>;
288
- createdAtLocation: string;
292
+ }[] | [string, string] | undefined>;
293
+ createdBySignature?: string | null | undefined;
294
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
289
295
  annotation?: Record<string, string | number | boolean | {
290
296
  type: string;
291
297
  filename: string;
@@ -323,14 +329,16 @@ export declare const EventDocument: z.ZodObject<{
323
329
  option: string;
324
330
  filename: string;
325
331
  originalFilename: string;
326
- }[] | undefined> | undefined;
327
- originalActionId?: string | undefined;
332
+ }[] | [string, string] | undefined> | null | undefined;
333
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
328
334
  }, {
329
335
  type: "CREATE";
330
336
  id: string;
331
337
  status: "Rejected" | "Requested" | "Accepted";
338
+ transactionId: string;
332
339
  createdAt: string;
333
340
  createdBy: string;
341
+ createdByRole: string;
334
342
  declaration: Record<string, string | number | boolean | {
335
343
  type: string;
336
344
  filename: string;
@@ -368,8 +376,9 @@ export declare const EventDocument: z.ZodObject<{
368
376
  option: string;
369
377
  filename: string;
370
378
  originalFilename: string;
371
- }[] | undefined>;
372
- createdAtLocation: string;
379
+ }[] | [string, string] | undefined>;
380
+ createdBySignature?: string | null | undefined;
381
+ createdAtLocation?: string | null | undefined;
373
382
  annotation?: Record<string, string | number | boolean | {
374
383
  type: string;
375
384
  filename: string;
@@ -407,13 +416,17 @@ export declare const EventDocument: z.ZodObject<{
407
416
  option: string;
408
417
  filename: string;
409
418
  originalFilename: string;
410
- }[] | undefined> | undefined;
411
- originalActionId?: string | undefined;
419
+ }[] | [string, string] | undefined> | null | undefined;
420
+ originalActionId?: string | null | undefined;
412
421
  }>, z.ZodObject<z.objectUtil.extendShape<{
413
422
  id: z.ZodString;
423
+ transactionId: z.ZodString;
414
424
  createdAt: z.ZodString;
415
425
  createdBy: z.ZodString;
416
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
426
+ createdByRole: z.ZodString;
427
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
429
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
417
430
  filename: z.ZodString;
418
431
  originalFilename: z.ZodString;
419
432
  type: z.ZodString;
@@ -527,7 +540,7 @@ export declare const EventDocument: z.ZodObject<{
527
540
  addressLine3?: string | null | undefined;
528
541
  postcodeOrZip?: string | null | undefined;
529
542
  }>]>>;
530
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
543
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
531
544
  filename: z.ZodString;
532
545
  originalFilename: z.ZodString;
533
546
  type: z.ZodString;
@@ -640,18 +653,19 @@ export declare const EventDocument: z.ZodObject<{
640
653
  addressLine2?: string | null | undefined;
641
654
  addressLine3?: string | null | undefined;
642
655
  postcodeOrZip?: string | null | undefined;
643
- }>]>>>;
644
- createdAtLocation: z.ZodString;
656
+ }>]>>>>;
645
657
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
646
- originalActionId: z.ZodOptional<z.ZodString>;
658
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
647
659
  }, {
648
660
  type: z.ZodLiteral<"VALIDATE">;
649
661
  }>, "strip", z.ZodTypeAny, {
650
662
  type: "VALIDATE";
651
663
  id: string;
652
664
  status: "Rejected" | "Requested" | "Accepted";
665
+ transactionId: string;
653
666
  createdAt: string;
654
667
  createdBy: string;
668
+ createdByRole: string;
655
669
  declaration: Record<string, string | number | boolean | {
656
670
  type: string;
657
671
  filename: string;
@@ -689,8 +703,9 @@ export declare const EventDocument: z.ZodObject<{
689
703
  option: string;
690
704
  filename: string;
691
705
  originalFilename: string;
692
- }[] | undefined>;
693
- createdAtLocation: string;
706
+ }[] | [string, string] | undefined>;
707
+ createdBySignature?: string | null | undefined;
708
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
694
709
  annotation?: Record<string, string | number | boolean | {
695
710
  type: string;
696
711
  filename: string;
@@ -728,14 +743,16 @@ export declare const EventDocument: z.ZodObject<{
728
743
  option: string;
729
744
  filename: string;
730
745
  originalFilename: string;
731
- }[] | undefined> | undefined;
732
- originalActionId?: string | undefined;
746
+ }[] | [string, string] | undefined> | null | undefined;
747
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
733
748
  }, {
734
749
  type: "VALIDATE";
735
750
  id: string;
736
751
  status: "Rejected" | "Requested" | "Accepted";
752
+ transactionId: string;
737
753
  createdAt: string;
738
754
  createdBy: string;
755
+ createdByRole: string;
739
756
  declaration: Record<string, string | number | boolean | {
740
757
  type: string;
741
758
  filename: string;
@@ -773,8 +790,9 @@ export declare const EventDocument: z.ZodObject<{
773
790
  option: string;
774
791
  filename: string;
775
792
  originalFilename: string;
776
- }[] | undefined>;
777
- createdAtLocation: string;
793
+ }[] | [string, string] | undefined>;
794
+ createdBySignature?: string | null | undefined;
795
+ createdAtLocation?: string | null | undefined;
778
796
  annotation?: Record<string, string | number | boolean | {
779
797
  type: string;
780
798
  filename: string;
@@ -812,13 +830,17 @@ export declare const EventDocument: z.ZodObject<{
812
830
  option: string;
813
831
  filename: string;
814
832
  originalFilename: string;
815
- }[] | undefined> | undefined;
816
- originalActionId?: string | undefined;
833
+ }[] | [string, string] | undefined> | null | undefined;
834
+ originalActionId?: string | null | undefined;
817
835
  }>, z.ZodObject<z.objectUtil.extendShape<{
818
836
  id: z.ZodString;
837
+ transactionId: z.ZodString;
819
838
  createdAt: z.ZodString;
820
839
  createdBy: z.ZodString;
821
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
840
+ createdByRole: z.ZodString;
841
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
842
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
843
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
822
844
  filename: z.ZodString;
823
845
  originalFilename: z.ZodString;
824
846
  type: z.ZodString;
@@ -932,7 +954,7 @@ export declare const EventDocument: z.ZodObject<{
932
954
  addressLine3?: string | null | undefined;
933
955
  postcodeOrZip?: string | null | undefined;
934
956
  }>]>>;
935
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
957
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
936
958
  filename: z.ZodString;
937
959
  originalFilename: z.ZodString;
938
960
  type: z.ZodString;
@@ -1045,18 +1067,33 @@ export declare const EventDocument: z.ZodObject<{
1045
1067
  addressLine2?: string | null | undefined;
1046
1068
  addressLine3?: string | null | undefined;
1047
1069
  postcodeOrZip?: string | null | undefined;
1048
- }>]>>>;
1049
- createdAtLocation: z.ZodString;
1070
+ }>]>>>>;
1050
1071
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1051
- originalActionId: z.ZodOptional<z.ZodString>;
1072
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1052
1073
  }, {
1053
1074
  type: z.ZodLiteral<"REJECT">;
1075
+ reason: z.ZodObject<{
1076
+ message: z.ZodString;
1077
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ message: string;
1080
+ isDuplicate?: boolean | undefined;
1081
+ }, {
1082
+ message: string;
1083
+ isDuplicate?: boolean | undefined;
1084
+ }>;
1054
1085
  }>, "strip", z.ZodTypeAny, {
1055
1086
  type: "REJECT";
1056
1087
  id: string;
1057
1088
  status: "Rejected" | "Requested" | "Accepted";
1089
+ reason: {
1090
+ message: string;
1091
+ isDuplicate?: boolean | undefined;
1092
+ };
1093
+ transactionId: string;
1058
1094
  createdAt: string;
1059
1095
  createdBy: string;
1096
+ createdByRole: string;
1060
1097
  declaration: Record<string, string | number | boolean | {
1061
1098
  type: string;
1062
1099
  filename: string;
@@ -1094,8 +1131,9 @@ export declare const EventDocument: z.ZodObject<{
1094
1131
  option: string;
1095
1132
  filename: string;
1096
1133
  originalFilename: string;
1097
- }[] | undefined>;
1098
- createdAtLocation: string;
1134
+ }[] | [string, string] | undefined>;
1135
+ createdBySignature?: string | null | undefined;
1136
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1099
1137
  annotation?: Record<string, string | number | boolean | {
1100
1138
  type: string;
1101
1139
  filename: string;
@@ -1133,14 +1171,20 @@ export declare const EventDocument: z.ZodObject<{
1133
1171
  option: string;
1134
1172
  filename: string;
1135
1173
  originalFilename: string;
1136
- }[] | undefined> | undefined;
1137
- originalActionId?: string | undefined;
1174
+ }[] | [string, string] | undefined> | null | undefined;
1175
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1138
1176
  }, {
1139
1177
  type: "REJECT";
1140
1178
  id: string;
1141
1179
  status: "Rejected" | "Requested" | "Accepted";
1180
+ reason: {
1181
+ message: string;
1182
+ isDuplicate?: boolean | undefined;
1183
+ };
1184
+ transactionId: string;
1142
1185
  createdAt: string;
1143
1186
  createdBy: string;
1187
+ createdByRole: string;
1144
1188
  declaration: Record<string, string | number | boolean | {
1145
1189
  type: string;
1146
1190
  filename: string;
@@ -1178,8 +1222,9 @@ export declare const EventDocument: z.ZodObject<{
1178
1222
  option: string;
1179
1223
  filename: string;
1180
1224
  originalFilename: string;
1181
- }[] | undefined>;
1182
- createdAtLocation: string;
1225
+ }[] | [string, string] | undefined>;
1226
+ createdBySignature?: string | null | undefined;
1227
+ createdAtLocation?: string | null | undefined;
1183
1228
  annotation?: Record<string, string | number | boolean | {
1184
1229
  type: string;
1185
1230
  filename: string;
@@ -1217,13 +1262,17 @@ export declare const EventDocument: z.ZodObject<{
1217
1262
  option: string;
1218
1263
  filename: string;
1219
1264
  originalFilename: string;
1220
- }[] | undefined> | undefined;
1221
- originalActionId?: string | undefined;
1265
+ }[] | [string, string] | undefined> | null | undefined;
1266
+ originalActionId?: string | null | undefined;
1222
1267
  }>, z.ZodObject<z.objectUtil.extendShape<{
1223
1268
  id: z.ZodString;
1269
+ transactionId: z.ZodString;
1224
1270
  createdAt: z.ZodString;
1225
1271
  createdBy: z.ZodString;
1226
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1272
+ createdByRole: z.ZodString;
1273
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1274
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1275
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1227
1276
  filename: z.ZodString;
1228
1277
  originalFilename: z.ZodString;
1229
1278
  type: z.ZodString;
@@ -1337,7 +1386,7 @@ export declare const EventDocument: z.ZodObject<{
1337
1386
  addressLine3?: string | null | undefined;
1338
1387
  postcodeOrZip?: string | null | undefined;
1339
1388
  }>]>>;
1340
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1389
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1341
1390
  filename: z.ZodString;
1342
1391
  originalFilename: z.ZodString;
1343
1392
  type: z.ZodString;
@@ -1450,18 +1499,19 @@ export declare const EventDocument: z.ZodObject<{
1450
1499
  addressLine2?: string | null | undefined;
1451
1500
  addressLine3?: string | null | undefined;
1452
1501
  postcodeOrZip?: string | null | undefined;
1453
- }>]>>>;
1454
- createdAtLocation: z.ZodString;
1502
+ }>]>>>>;
1455
1503
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1456
- originalActionId: z.ZodOptional<z.ZodString>;
1504
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1457
1505
  }, {
1458
1506
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1459
1507
  }>, "strip", z.ZodTypeAny, {
1460
1508
  type: "MARKED_AS_DUPLICATE";
1461
1509
  id: string;
1462
1510
  status: "Rejected" | "Requested" | "Accepted";
1511
+ transactionId: string;
1463
1512
  createdAt: string;
1464
1513
  createdBy: string;
1514
+ createdByRole: string;
1465
1515
  declaration: Record<string, string | number | boolean | {
1466
1516
  type: string;
1467
1517
  filename: string;
@@ -1499,8 +1549,9 @@ export declare const EventDocument: z.ZodObject<{
1499
1549
  option: string;
1500
1550
  filename: string;
1501
1551
  originalFilename: string;
1502
- }[] | undefined>;
1503
- createdAtLocation: string;
1552
+ }[] | [string, string] | undefined>;
1553
+ createdBySignature?: string | null | undefined;
1554
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1504
1555
  annotation?: Record<string, string | number | boolean | {
1505
1556
  type: string;
1506
1557
  filename: string;
@@ -1538,14 +1589,16 @@ export declare const EventDocument: z.ZodObject<{
1538
1589
  option: string;
1539
1590
  filename: string;
1540
1591
  originalFilename: string;
1541
- }[] | undefined> | undefined;
1542
- originalActionId?: string | undefined;
1592
+ }[] | [string, string] | undefined> | null | undefined;
1593
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1543
1594
  }, {
1544
1595
  type: "MARKED_AS_DUPLICATE";
1545
1596
  id: string;
1546
1597
  status: "Rejected" | "Requested" | "Accepted";
1598
+ transactionId: string;
1547
1599
  createdAt: string;
1548
1600
  createdBy: string;
1601
+ createdByRole: string;
1549
1602
  declaration: Record<string, string | number | boolean | {
1550
1603
  type: string;
1551
1604
  filename: string;
@@ -1583,8 +1636,9 @@ export declare const EventDocument: z.ZodObject<{
1583
1636
  option: string;
1584
1637
  filename: string;
1585
1638
  originalFilename: string;
1586
- }[] | undefined>;
1587
- createdAtLocation: string;
1639
+ }[] | [string, string] | undefined>;
1640
+ createdBySignature?: string | null | undefined;
1641
+ createdAtLocation?: string | null | undefined;
1588
1642
  annotation?: Record<string, string | number | boolean | {
1589
1643
  type: string;
1590
1644
  filename: string;
@@ -1622,13 +1676,17 @@ export declare const EventDocument: z.ZodObject<{
1622
1676
  option: string;
1623
1677
  filename: string;
1624
1678
  originalFilename: string;
1625
- }[] | undefined> | undefined;
1626
- originalActionId?: string | undefined;
1679
+ }[] | [string, string] | undefined> | null | undefined;
1680
+ originalActionId?: string | null | undefined;
1627
1681
  }>, z.ZodObject<z.objectUtil.extendShape<{
1628
1682
  id: z.ZodString;
1683
+ transactionId: z.ZodString;
1629
1684
  createdAt: z.ZodString;
1630
1685
  createdBy: z.ZodString;
1631
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1686
+ createdByRole: z.ZodString;
1687
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1689
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1632
1690
  filename: z.ZodString;
1633
1691
  originalFilename: z.ZodString;
1634
1692
  type: z.ZodString;
@@ -1742,7 +1800,7 @@ export declare const EventDocument: z.ZodObject<{
1742
1800
  addressLine3?: string | null | undefined;
1743
1801
  postcodeOrZip?: string | null | undefined;
1744
1802
  }>]>>;
1745
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1803
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1746
1804
  filename: z.ZodString;
1747
1805
  originalFilename: z.ZodString;
1748
1806
  type: z.ZodString;
@@ -1855,18 +1913,33 @@ export declare const EventDocument: z.ZodObject<{
1855
1913
  addressLine2?: string | null | undefined;
1856
1914
  addressLine3?: string | null | undefined;
1857
1915
  postcodeOrZip?: string | null | undefined;
1858
- }>]>>>;
1859
- createdAtLocation: z.ZodString;
1916
+ }>]>>>>;
1860
1917
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1861
- originalActionId: z.ZodOptional<z.ZodString>;
1918
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1862
1919
  }, {
1863
1920
  type: z.ZodLiteral<"ARCHIVE">;
1921
+ reason: z.ZodObject<{
1922
+ message: z.ZodString;
1923
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ message: string;
1926
+ isDuplicate?: boolean | undefined;
1927
+ }, {
1928
+ message: string;
1929
+ isDuplicate?: boolean | undefined;
1930
+ }>;
1864
1931
  }>, "strip", z.ZodTypeAny, {
1865
1932
  type: "ARCHIVE";
1866
1933
  id: string;
1867
1934
  status: "Rejected" | "Requested" | "Accepted";
1935
+ reason: {
1936
+ message: string;
1937
+ isDuplicate?: boolean | undefined;
1938
+ };
1939
+ transactionId: string;
1868
1940
  createdAt: string;
1869
1941
  createdBy: string;
1942
+ createdByRole: string;
1870
1943
  declaration: Record<string, string | number | boolean | {
1871
1944
  type: string;
1872
1945
  filename: string;
@@ -1904,8 +1977,9 @@ export declare const EventDocument: z.ZodObject<{
1904
1977
  option: string;
1905
1978
  filename: string;
1906
1979
  originalFilename: string;
1907
- }[] | undefined>;
1908
- createdAtLocation: string;
1980
+ }[] | [string, string] | undefined>;
1981
+ createdBySignature?: string | null | undefined;
1982
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1909
1983
  annotation?: Record<string, string | number | boolean | {
1910
1984
  type: string;
1911
1985
  filename: string;
@@ -1943,14 +2017,20 @@ export declare const EventDocument: z.ZodObject<{
1943
2017
  option: string;
1944
2018
  filename: string;
1945
2019
  originalFilename: string;
1946
- }[] | undefined> | undefined;
1947
- originalActionId?: string | undefined;
2020
+ }[] | [string, string] | undefined> | null | undefined;
2021
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1948
2022
  }, {
1949
2023
  type: "ARCHIVE";
1950
2024
  id: string;
1951
2025
  status: "Rejected" | "Requested" | "Accepted";
2026
+ reason: {
2027
+ message: string;
2028
+ isDuplicate?: boolean | undefined;
2029
+ };
2030
+ transactionId: string;
1952
2031
  createdAt: string;
1953
2032
  createdBy: string;
2033
+ createdByRole: string;
1954
2034
  declaration: Record<string, string | number | boolean | {
1955
2035
  type: string;
1956
2036
  filename: string;
@@ -1988,8 +2068,9 @@ export declare const EventDocument: z.ZodObject<{
1988
2068
  option: string;
1989
2069
  filename: string;
1990
2070
  originalFilename: string;
1991
- }[] | undefined>;
1992
- createdAtLocation: string;
2071
+ }[] | [string, string] | undefined>;
2072
+ createdBySignature?: string | null | undefined;
2073
+ createdAtLocation?: string | null | undefined;
1993
2074
  annotation?: Record<string, string | number | boolean | {
1994
2075
  type: string;
1995
2076
  filename: string;
@@ -2027,13 +2108,17 @@ export declare const EventDocument: z.ZodObject<{
2027
2108
  option: string;
2028
2109
  filename: string;
2029
2110
  originalFilename: string;
2030
- }[] | undefined> | undefined;
2031
- originalActionId?: string | undefined;
2111
+ }[] | [string, string] | undefined> | null | undefined;
2112
+ originalActionId?: string | null | undefined;
2032
2113
  }>, z.ZodObject<z.objectUtil.extendShape<{
2033
2114
  id: z.ZodString;
2115
+ transactionId: z.ZodString;
2034
2116
  createdAt: z.ZodString;
2035
2117
  createdBy: z.ZodString;
2036
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2118
+ createdByRole: z.ZodString;
2119
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2120
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2121
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2037
2122
  filename: z.ZodString;
2038
2123
  originalFilename: z.ZodString;
2039
2124
  type: z.ZodString;
@@ -2147,7 +2232,7 @@ export declare const EventDocument: z.ZodObject<{
2147
2232
  addressLine3?: string | null | undefined;
2148
2233
  postcodeOrZip?: string | null | undefined;
2149
2234
  }>]>>;
2150
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2235
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2151
2236
  filename: z.ZodString;
2152
2237
  originalFilename: z.ZodString;
2153
2238
  type: z.ZodString;
@@ -2260,18 +2345,19 @@ export declare const EventDocument: z.ZodObject<{
2260
2345
  addressLine2?: string | null | undefined;
2261
2346
  addressLine3?: string | null | undefined;
2262
2347
  postcodeOrZip?: string | null | undefined;
2263
- }>]>>>;
2264
- createdAtLocation: z.ZodString;
2348
+ }>]>>>>;
2265
2349
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2266
- originalActionId: z.ZodOptional<z.ZodString>;
2350
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2267
2351
  }, {
2268
2352
  type: z.ZodLiteral<"NOTIFY">;
2269
2353
  }>, "strip", z.ZodTypeAny, {
2270
2354
  type: "NOTIFY";
2271
2355
  id: string;
2272
2356
  status: "Rejected" | "Requested" | "Accepted";
2357
+ transactionId: string;
2273
2358
  createdAt: string;
2274
2359
  createdBy: string;
2360
+ createdByRole: string;
2275
2361
  declaration: Record<string, string | number | boolean | {
2276
2362
  type: string;
2277
2363
  filename: string;
@@ -2309,8 +2395,9 @@ export declare const EventDocument: z.ZodObject<{
2309
2395
  option: string;
2310
2396
  filename: string;
2311
2397
  originalFilename: string;
2312
- }[] | undefined>;
2313
- createdAtLocation: string;
2398
+ }[] | [string, string] | undefined>;
2399
+ createdBySignature?: string | null | undefined;
2400
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2314
2401
  annotation?: Record<string, string | number | boolean | {
2315
2402
  type: string;
2316
2403
  filename: string;
@@ -2348,14 +2435,16 @@ export declare const EventDocument: z.ZodObject<{
2348
2435
  option: string;
2349
2436
  filename: string;
2350
2437
  originalFilename: string;
2351
- }[] | undefined> | undefined;
2352
- originalActionId?: string | undefined;
2438
+ }[] | [string, string] | undefined> | null | undefined;
2439
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2353
2440
  }, {
2354
2441
  type: "NOTIFY";
2355
2442
  id: string;
2356
2443
  status: "Rejected" | "Requested" | "Accepted";
2444
+ transactionId: string;
2357
2445
  createdAt: string;
2358
2446
  createdBy: string;
2447
+ createdByRole: string;
2359
2448
  declaration: Record<string, string | number | boolean | {
2360
2449
  type: string;
2361
2450
  filename: string;
@@ -2393,8 +2482,9 @@ export declare const EventDocument: z.ZodObject<{
2393
2482
  option: string;
2394
2483
  filename: string;
2395
2484
  originalFilename: string;
2396
- }[] | undefined>;
2397
- createdAtLocation: string;
2485
+ }[] | [string, string] | undefined>;
2486
+ createdBySignature?: string | null | undefined;
2487
+ createdAtLocation?: string | null | undefined;
2398
2488
  annotation?: Record<string, string | number | boolean | {
2399
2489
  type: string;
2400
2490
  filename: string;
@@ -2432,13 +2522,17 @@ export declare const EventDocument: z.ZodObject<{
2432
2522
  option: string;
2433
2523
  filename: string;
2434
2524
  originalFilename: string;
2435
- }[] | undefined> | undefined;
2436
- originalActionId?: string | undefined;
2525
+ }[] | [string, string] | undefined> | null | undefined;
2526
+ originalActionId?: string | null | undefined;
2437
2527
  }>, z.ZodObject<z.objectUtil.extendShape<{
2438
2528
  id: z.ZodString;
2529
+ transactionId: z.ZodString;
2439
2530
  createdAt: z.ZodString;
2440
2531
  createdBy: z.ZodString;
2441
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2532
+ createdByRole: z.ZodString;
2533
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2534
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2535
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2442
2536
  filename: z.ZodString;
2443
2537
  originalFilename: z.ZodString;
2444
2538
  type: z.ZodString;
@@ -2552,7 +2646,7 @@ export declare const EventDocument: z.ZodObject<{
2552
2646
  addressLine3?: string | null | undefined;
2553
2647
  postcodeOrZip?: string | null | undefined;
2554
2648
  }>]>>;
2555
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2649
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2556
2650
  filename: z.ZodString;
2557
2651
  originalFilename: z.ZodString;
2558
2652
  type: z.ZodString;
@@ -2665,10 +2759,9 @@ export declare const EventDocument: z.ZodObject<{
2665
2759
  addressLine2?: string | null | undefined;
2666
2760
  addressLine3?: string | null | undefined;
2667
2761
  postcodeOrZip?: string | null | undefined;
2668
- }>]>>>;
2669
- createdAtLocation: z.ZodString;
2762
+ }>]>>>>;
2670
2763
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2671
- originalActionId: z.ZodOptional<z.ZodString>;
2764
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2672
2765
  }, {
2673
2766
  type: z.ZodLiteral<"REGISTER">;
2674
2767
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -2676,8 +2769,10 @@ export declare const EventDocument: z.ZodObject<{
2676
2769
  type: "REGISTER";
2677
2770
  id: string;
2678
2771
  status: "Rejected" | "Requested" | "Accepted";
2772
+ transactionId: string;
2679
2773
  createdAt: string;
2680
2774
  createdBy: string;
2775
+ createdByRole: string;
2681
2776
  declaration: Record<string, string | number | boolean | {
2682
2777
  type: string;
2683
2778
  filename: string;
@@ -2715,8 +2810,9 @@ export declare const EventDocument: z.ZodObject<{
2715
2810
  option: string;
2716
2811
  filename: string;
2717
2812
  originalFilename: string;
2718
- }[] | undefined>;
2719
- createdAtLocation: string;
2813
+ }[] | [string, string] | undefined>;
2814
+ createdBySignature?: string | null | undefined;
2815
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2720
2816
  annotation?: Record<string, string | number | boolean | {
2721
2817
  type: string;
2722
2818
  filename: string;
@@ -2754,15 +2850,17 @@ export declare const EventDocument: z.ZodObject<{
2754
2850
  option: string;
2755
2851
  filename: string;
2756
2852
  originalFilename: string;
2757
- }[] | undefined> | undefined;
2758
- originalActionId?: string | undefined;
2853
+ }[] | [string, string] | undefined> | null | undefined;
2854
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2759
2855
  registrationNumber?: string | undefined;
2760
2856
  }, {
2761
2857
  type: "REGISTER";
2762
2858
  id: string;
2763
2859
  status: "Rejected" | "Requested" | "Accepted";
2860
+ transactionId: string;
2764
2861
  createdAt: string;
2765
2862
  createdBy: string;
2863
+ createdByRole: string;
2766
2864
  declaration: Record<string, string | number | boolean | {
2767
2865
  type: string;
2768
2866
  filename: string;
@@ -2800,8 +2898,9 @@ export declare const EventDocument: z.ZodObject<{
2800
2898
  option: string;
2801
2899
  filename: string;
2802
2900
  originalFilename: string;
2803
- }[] | undefined>;
2804
- createdAtLocation: string;
2901
+ }[] | [string, string] | undefined>;
2902
+ createdBySignature?: string | null | undefined;
2903
+ createdAtLocation?: string | null | undefined;
2805
2904
  annotation?: Record<string, string | number | boolean | {
2806
2905
  type: string;
2807
2906
  filename: string;
@@ -2839,14 +2938,18 @@ export declare const EventDocument: z.ZodObject<{
2839
2938
  option: string;
2840
2939
  filename: string;
2841
2940
  originalFilename: string;
2842
- }[] | undefined> | undefined;
2843
- originalActionId?: string | undefined;
2941
+ }[] | [string, string] | undefined> | null | undefined;
2942
+ originalActionId?: string | null | undefined;
2844
2943
  registrationNumber?: string | undefined;
2845
2944
  }>, z.ZodObject<z.objectUtil.extendShape<{
2846
2945
  id: z.ZodString;
2946
+ transactionId: z.ZodString;
2847
2947
  createdAt: z.ZodString;
2848
2948
  createdBy: z.ZodString;
2849
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2949
+ createdByRole: z.ZodString;
2950
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2951
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2952
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2850
2953
  filename: z.ZodString;
2851
2954
  originalFilename: z.ZodString;
2852
2955
  type: z.ZodString;
@@ -2960,7 +3063,7 @@ export declare const EventDocument: z.ZodObject<{
2960
3063
  addressLine3?: string | null | undefined;
2961
3064
  postcodeOrZip?: string | null | undefined;
2962
3065
  }>]>>;
2963
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3066
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2964
3067
  filename: z.ZodString;
2965
3068
  originalFilename: z.ZodString;
2966
3069
  type: z.ZodString;
@@ -3073,18 +3176,19 @@ export declare const EventDocument: z.ZodObject<{
3073
3176
  addressLine2?: string | null | undefined;
3074
3177
  addressLine3?: string | null | undefined;
3075
3178
  postcodeOrZip?: string | null | undefined;
3076
- }>]>>>;
3077
- createdAtLocation: z.ZodString;
3179
+ }>]>>>>;
3078
3180
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3079
- originalActionId: z.ZodOptional<z.ZodString>;
3181
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3080
3182
  }, {
3081
3183
  type: z.ZodLiteral<"DECLARE">;
3082
3184
  }>, "strip", z.ZodTypeAny, {
3083
3185
  type: "DECLARE";
3084
3186
  id: string;
3085
3187
  status: "Rejected" | "Requested" | "Accepted";
3188
+ transactionId: string;
3086
3189
  createdAt: string;
3087
3190
  createdBy: string;
3191
+ createdByRole: string;
3088
3192
  declaration: Record<string, string | number | boolean | {
3089
3193
  type: string;
3090
3194
  filename: string;
@@ -3122,8 +3226,9 @@ export declare const EventDocument: z.ZodObject<{
3122
3226
  option: string;
3123
3227
  filename: string;
3124
3228
  originalFilename: string;
3125
- }[] | undefined>;
3126
- createdAtLocation: string;
3229
+ }[] | [string, string] | undefined>;
3230
+ createdBySignature?: string | null | undefined;
3231
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3127
3232
  annotation?: Record<string, string | number | boolean | {
3128
3233
  type: string;
3129
3234
  filename: string;
@@ -3161,14 +3266,16 @@ export declare const EventDocument: z.ZodObject<{
3161
3266
  option: string;
3162
3267
  filename: string;
3163
3268
  originalFilename: string;
3164
- }[] | undefined> | undefined;
3165
- originalActionId?: string | undefined;
3269
+ }[] | [string, string] | undefined> | null | undefined;
3270
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3166
3271
  }, {
3167
3272
  type: "DECLARE";
3168
3273
  id: string;
3169
3274
  status: "Rejected" | "Requested" | "Accepted";
3275
+ transactionId: string;
3170
3276
  createdAt: string;
3171
3277
  createdBy: string;
3278
+ createdByRole: string;
3172
3279
  declaration: Record<string, string | number | boolean | {
3173
3280
  type: string;
3174
3281
  filename: string;
@@ -3206,8 +3313,9 @@ export declare const EventDocument: z.ZodObject<{
3206
3313
  option: string;
3207
3314
  filename: string;
3208
3315
  originalFilename: string;
3209
- }[] | undefined>;
3210
- createdAtLocation: string;
3316
+ }[] | [string, string] | undefined>;
3317
+ createdBySignature?: string | null | undefined;
3318
+ createdAtLocation?: string | null | undefined;
3211
3319
  annotation?: Record<string, string | number | boolean | {
3212
3320
  type: string;
3213
3321
  filename: string;
@@ -3245,13 +3353,17 @@ export declare const EventDocument: z.ZodObject<{
3245
3353
  option: string;
3246
3354
  filename: string;
3247
3355
  originalFilename: string;
3248
- }[] | undefined> | undefined;
3249
- originalActionId?: string | undefined;
3356
+ }[] | [string, string] | undefined> | null | undefined;
3357
+ originalActionId?: string | null | undefined;
3250
3358
  }>, z.ZodObject<z.objectUtil.extendShape<{
3251
3359
  id: z.ZodString;
3360
+ transactionId: z.ZodString;
3252
3361
  createdAt: z.ZodString;
3253
3362
  createdBy: z.ZodString;
3254
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3363
+ createdByRole: z.ZodString;
3364
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3365
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3366
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3255
3367
  filename: z.ZodString;
3256
3368
  originalFilename: z.ZodString;
3257
3369
  type: z.ZodString;
@@ -3365,7 +3477,7 @@ export declare const EventDocument: z.ZodObject<{
3365
3477
  addressLine3?: string | null | undefined;
3366
3478
  postcodeOrZip?: string | null | undefined;
3367
3479
  }>]>>;
3368
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3480
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3369
3481
  filename: z.ZodString;
3370
3482
  originalFilename: z.ZodString;
3371
3483
  type: z.ZodString;
@@ -3478,10 +3590,9 @@ export declare const EventDocument: z.ZodObject<{
3478
3590
  addressLine2?: string | null | undefined;
3479
3591
  addressLine3?: string | null | undefined;
3480
3592
  postcodeOrZip?: string | null | undefined;
3481
- }>]>>>;
3482
- createdAtLocation: z.ZodString;
3593
+ }>]>>>>;
3483
3594
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3484
- originalActionId: z.ZodOptional<z.ZodString>;
3595
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3485
3596
  }, {
3486
3597
  type: z.ZodLiteral<"ASSIGN">;
3487
3598
  assignedTo: z.ZodString;
@@ -3489,8 +3600,10 @@ export declare const EventDocument: z.ZodObject<{
3489
3600
  type: "ASSIGN";
3490
3601
  id: string;
3491
3602
  status: "Rejected" | "Requested" | "Accepted";
3603
+ transactionId: string;
3492
3604
  createdAt: string;
3493
3605
  createdBy: string;
3606
+ createdByRole: string;
3494
3607
  declaration: Record<string, string | number | boolean | {
3495
3608
  type: string;
3496
3609
  filename: string;
@@ -3528,9 +3641,10 @@ export declare const EventDocument: z.ZodObject<{
3528
3641
  option: string;
3529
3642
  filename: string;
3530
3643
  originalFilename: string;
3531
- }[] | undefined>;
3532
- createdAtLocation: string;
3644
+ }[] | [string, string] | undefined>;
3533
3645
  assignedTo: string;
3646
+ createdBySignature?: string | null | undefined;
3647
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3534
3648
  annotation?: Record<string, string | number | boolean | {
3535
3649
  type: string;
3536
3650
  filename: string;
@@ -3568,14 +3682,16 @@ export declare const EventDocument: z.ZodObject<{
3568
3682
  option: string;
3569
3683
  filename: string;
3570
3684
  originalFilename: string;
3571
- }[] | undefined> | undefined;
3572
- originalActionId?: string | undefined;
3685
+ }[] | [string, string] | undefined> | null | undefined;
3686
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3573
3687
  }, {
3574
3688
  type: "ASSIGN";
3575
3689
  id: string;
3576
3690
  status: "Rejected" | "Requested" | "Accepted";
3691
+ transactionId: string;
3577
3692
  createdAt: string;
3578
3693
  createdBy: string;
3694
+ createdByRole: string;
3579
3695
  declaration: Record<string, string | number | boolean | {
3580
3696
  type: string;
3581
3697
  filename: string;
@@ -3613,9 +3729,10 @@ export declare const EventDocument: z.ZodObject<{
3613
3729
  option: string;
3614
3730
  filename: string;
3615
3731
  originalFilename: string;
3616
- }[] | undefined>;
3617
- createdAtLocation: string;
3732
+ }[] | [string, string] | undefined>;
3618
3733
  assignedTo: string;
3734
+ createdBySignature?: string | null | undefined;
3735
+ createdAtLocation?: string | null | undefined;
3619
3736
  annotation?: Record<string, string | number | boolean | {
3620
3737
  type: string;
3621
3738
  filename: string;
@@ -3653,13 +3770,17 @@ export declare const EventDocument: z.ZodObject<{
3653
3770
  option: string;
3654
3771
  filename: string;
3655
3772
  originalFilename: string;
3656
- }[] | undefined> | undefined;
3657
- originalActionId?: string | undefined;
3773
+ }[] | [string, string] | undefined> | null | undefined;
3774
+ originalActionId?: string | null | undefined;
3658
3775
  }>, z.ZodObject<z.objectUtil.extendShape<{
3659
3776
  id: z.ZodString;
3777
+ transactionId: z.ZodString;
3660
3778
  createdAt: z.ZodString;
3661
3779
  createdBy: z.ZodString;
3662
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3780
+ createdByRole: z.ZodString;
3781
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3782
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3783
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3663
3784
  filename: z.ZodString;
3664
3785
  originalFilename: z.ZodString;
3665
3786
  type: z.ZodString;
@@ -3773,7 +3894,7 @@ export declare const EventDocument: z.ZodObject<{
3773
3894
  addressLine3?: string | null | undefined;
3774
3895
  postcodeOrZip?: string | null | undefined;
3775
3896
  }>]>>;
3776
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3897
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3777
3898
  filename: z.ZodString;
3778
3899
  originalFilename: z.ZodString;
3779
3900
  type: z.ZodString;
@@ -3886,18 +4007,19 @@ export declare const EventDocument: z.ZodObject<{
3886
4007
  addressLine2?: string | null | undefined;
3887
4008
  addressLine3?: string | null | undefined;
3888
4009
  postcodeOrZip?: string | null | undefined;
3889
- }>]>>>;
3890
- createdAtLocation: z.ZodString;
4010
+ }>]>>>>;
3891
4011
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3892
- originalActionId: z.ZodOptional<z.ZodString>;
4012
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3893
4013
  }, {
3894
4014
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
3895
4015
  }>, "strip", z.ZodTypeAny, {
3896
4016
  type: "REQUEST_CORRECTION";
3897
4017
  id: string;
3898
4018
  status: "Rejected" | "Requested" | "Accepted";
4019
+ transactionId: string;
3899
4020
  createdAt: string;
3900
4021
  createdBy: string;
4022
+ createdByRole: string;
3901
4023
  declaration: Record<string, string | number | boolean | {
3902
4024
  type: string;
3903
4025
  filename: string;
@@ -3935,8 +4057,9 @@ export declare const EventDocument: z.ZodObject<{
3935
4057
  option: string;
3936
4058
  filename: string;
3937
4059
  originalFilename: string;
3938
- }[] | undefined>;
3939
- createdAtLocation: string;
4060
+ }[] | [string, string] | undefined>;
4061
+ createdBySignature?: string | null | undefined;
4062
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3940
4063
  annotation?: Record<string, string | number | boolean | {
3941
4064
  type: string;
3942
4065
  filename: string;
@@ -3974,14 +4097,16 @@ export declare const EventDocument: z.ZodObject<{
3974
4097
  option: string;
3975
4098
  filename: string;
3976
4099
  originalFilename: string;
3977
- }[] | undefined> | undefined;
3978
- originalActionId?: string | undefined;
4100
+ }[] | [string, string] | undefined> | null | undefined;
4101
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3979
4102
  }, {
3980
4103
  type: "REQUEST_CORRECTION";
3981
4104
  id: string;
3982
4105
  status: "Rejected" | "Requested" | "Accepted";
4106
+ transactionId: string;
3983
4107
  createdAt: string;
3984
4108
  createdBy: string;
4109
+ createdByRole: string;
3985
4110
  declaration: Record<string, string | number | boolean | {
3986
4111
  type: string;
3987
4112
  filename: string;
@@ -4019,8 +4144,9 @@ export declare const EventDocument: z.ZodObject<{
4019
4144
  option: string;
4020
4145
  filename: string;
4021
4146
  originalFilename: string;
4022
- }[] | undefined>;
4023
- createdAtLocation: string;
4147
+ }[] | [string, string] | undefined>;
4148
+ createdBySignature?: string | null | undefined;
4149
+ createdAtLocation?: string | null | undefined;
4024
4150
  annotation?: Record<string, string | number | boolean | {
4025
4151
  type: string;
4026
4152
  filename: string;
@@ -4058,13 +4184,17 @@ export declare const EventDocument: z.ZodObject<{
4058
4184
  option: string;
4059
4185
  filename: string;
4060
4186
  originalFilename: string;
4061
- }[] | undefined> | undefined;
4062
- originalActionId?: string | undefined;
4187
+ }[] | [string, string] | undefined> | null | undefined;
4188
+ originalActionId?: string | null | undefined;
4063
4189
  }>, z.ZodObject<z.objectUtil.extendShape<{
4064
4190
  id: z.ZodString;
4191
+ transactionId: z.ZodString;
4065
4192
  createdAt: z.ZodString;
4066
4193
  createdBy: z.ZodString;
4067
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4194
+ createdByRole: z.ZodString;
4195
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4196
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4197
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4068
4198
  filename: z.ZodString;
4069
4199
  originalFilename: z.ZodString;
4070
4200
  type: z.ZodString;
@@ -4178,7 +4308,7 @@ export declare const EventDocument: z.ZodObject<{
4178
4308
  addressLine3?: string | null | undefined;
4179
4309
  postcodeOrZip?: string | null | undefined;
4180
4310
  }>]>>;
4181
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4311
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4182
4312
  filename: z.ZodString;
4183
4313
  originalFilename: z.ZodString;
4184
4314
  type: z.ZodString;
@@ -4291,10 +4421,9 @@ export declare const EventDocument: z.ZodObject<{
4291
4421
  addressLine2?: string | null | undefined;
4292
4422
  addressLine3?: string | null | undefined;
4293
4423
  postcodeOrZip?: string | null | undefined;
4294
- }>]>>>;
4295
- createdAtLocation: z.ZodString;
4424
+ }>]>>>>;
4296
4425
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4297
- originalActionId: z.ZodOptional<z.ZodString>;
4426
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4298
4427
  }, {
4299
4428
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4300
4429
  requestId: z.ZodString;
@@ -4302,8 +4431,10 @@ export declare const EventDocument: z.ZodObject<{
4302
4431
  type: "APPROVE_CORRECTION";
4303
4432
  id: string;
4304
4433
  status: "Rejected" | "Requested" | "Accepted";
4434
+ transactionId: string;
4305
4435
  createdAt: string;
4306
4436
  createdBy: string;
4437
+ createdByRole: string;
4307
4438
  declaration: Record<string, string | number | boolean | {
4308
4439
  type: string;
4309
4440
  filename: string;
@@ -4341,9 +4472,10 @@ export declare const EventDocument: z.ZodObject<{
4341
4472
  option: string;
4342
4473
  filename: string;
4343
4474
  originalFilename: string;
4344
- }[] | undefined>;
4345
- createdAtLocation: string;
4475
+ }[] | [string, string] | undefined>;
4346
4476
  requestId: string;
4477
+ createdBySignature?: string | null | undefined;
4478
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4347
4479
  annotation?: Record<string, string | number | boolean | {
4348
4480
  type: string;
4349
4481
  filename: string;
@@ -4381,14 +4513,16 @@ export declare const EventDocument: z.ZodObject<{
4381
4513
  option: string;
4382
4514
  filename: string;
4383
4515
  originalFilename: string;
4384
- }[] | undefined> | undefined;
4385
- originalActionId?: string | undefined;
4516
+ }[] | [string, string] | undefined> | null | undefined;
4517
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4386
4518
  }, {
4387
4519
  type: "APPROVE_CORRECTION";
4388
4520
  id: string;
4389
4521
  status: "Rejected" | "Requested" | "Accepted";
4522
+ transactionId: string;
4390
4523
  createdAt: string;
4391
4524
  createdBy: string;
4525
+ createdByRole: string;
4392
4526
  declaration: Record<string, string | number | boolean | {
4393
4527
  type: string;
4394
4528
  filename: string;
@@ -4426,9 +4560,10 @@ export declare const EventDocument: z.ZodObject<{
4426
4560
  option: string;
4427
4561
  filename: string;
4428
4562
  originalFilename: string;
4429
- }[] | undefined>;
4430
- createdAtLocation: string;
4563
+ }[] | [string, string] | undefined>;
4431
4564
  requestId: string;
4565
+ createdBySignature?: string | null | undefined;
4566
+ createdAtLocation?: string | null | undefined;
4432
4567
  annotation?: Record<string, string | number | boolean | {
4433
4568
  type: string;
4434
4569
  filename: string;
@@ -4466,13 +4601,17 @@ export declare const EventDocument: z.ZodObject<{
4466
4601
  option: string;
4467
4602
  filename: string;
4468
4603
  originalFilename: string;
4469
- }[] | undefined> | undefined;
4470
- originalActionId?: string | undefined;
4604
+ }[] | [string, string] | undefined> | null | undefined;
4605
+ originalActionId?: string | null | undefined;
4471
4606
  }>, z.ZodObject<z.objectUtil.extendShape<{
4472
4607
  id: z.ZodString;
4608
+ transactionId: z.ZodString;
4473
4609
  createdAt: z.ZodString;
4474
4610
  createdBy: z.ZodString;
4475
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4611
+ createdByRole: z.ZodString;
4612
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4613
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4614
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4476
4615
  filename: z.ZodString;
4477
4616
  originalFilename: z.ZodString;
4478
4617
  type: z.ZodString;
@@ -4586,7 +4725,7 @@ export declare const EventDocument: z.ZodObject<{
4586
4725
  addressLine3?: string | null | undefined;
4587
4726
  postcodeOrZip?: string | null | undefined;
4588
4727
  }>]>>;
4589
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4728
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4590
4729
  filename: z.ZodString;
4591
4730
  originalFilename: z.ZodString;
4592
4731
  type: z.ZodString;
@@ -4699,10 +4838,9 @@ export declare const EventDocument: z.ZodObject<{
4699
4838
  addressLine2?: string | null | undefined;
4700
4839
  addressLine3?: string | null | undefined;
4701
4840
  postcodeOrZip?: string | null | undefined;
4702
- }>]>>>;
4703
- createdAtLocation: z.ZodString;
4841
+ }>]>>>>;
4704
4842
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4705
- originalActionId: z.ZodOptional<z.ZodString>;
4843
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4706
4844
  }, {
4707
4845
  type: z.ZodLiteral<"REJECT_CORRECTION">;
4708
4846
  requestId: z.ZodString;
@@ -4710,8 +4848,10 @@ export declare const EventDocument: z.ZodObject<{
4710
4848
  type: "REJECT_CORRECTION";
4711
4849
  id: string;
4712
4850
  status: "Rejected" | "Requested" | "Accepted";
4851
+ transactionId: string;
4713
4852
  createdAt: string;
4714
4853
  createdBy: string;
4854
+ createdByRole: string;
4715
4855
  declaration: Record<string, string | number | boolean | {
4716
4856
  type: string;
4717
4857
  filename: string;
@@ -4749,9 +4889,10 @@ export declare const EventDocument: z.ZodObject<{
4749
4889
  option: string;
4750
4890
  filename: string;
4751
4891
  originalFilename: string;
4752
- }[] | undefined>;
4753
- createdAtLocation: string;
4892
+ }[] | [string, string] | undefined>;
4754
4893
  requestId: string;
4894
+ createdBySignature?: string | null | undefined;
4895
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4755
4896
  annotation?: Record<string, string | number | boolean | {
4756
4897
  type: string;
4757
4898
  filename: string;
@@ -4789,14 +4930,16 @@ export declare const EventDocument: z.ZodObject<{
4789
4930
  option: string;
4790
4931
  filename: string;
4791
4932
  originalFilename: string;
4792
- }[] | undefined> | undefined;
4793
- originalActionId?: string | undefined;
4933
+ }[] | [string, string] | undefined> | null | undefined;
4934
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4794
4935
  }, {
4795
4936
  type: "REJECT_CORRECTION";
4796
4937
  id: string;
4797
4938
  status: "Rejected" | "Requested" | "Accepted";
4939
+ transactionId: string;
4798
4940
  createdAt: string;
4799
4941
  createdBy: string;
4942
+ createdByRole: string;
4800
4943
  declaration: Record<string, string | number | boolean | {
4801
4944
  type: string;
4802
4945
  filename: string;
@@ -4834,9 +4977,10 @@ export declare const EventDocument: z.ZodObject<{
4834
4977
  option: string;
4835
4978
  filename: string;
4836
4979
  originalFilename: string;
4837
- }[] | undefined>;
4838
- createdAtLocation: string;
4980
+ }[] | [string, string] | undefined>;
4839
4981
  requestId: string;
4982
+ createdBySignature?: string | null | undefined;
4983
+ createdAtLocation?: string | null | undefined;
4840
4984
  annotation?: Record<string, string | number | boolean | {
4841
4985
  type: string;
4842
4986
  filename: string;
@@ -4874,13 +5018,17 @@ export declare const EventDocument: z.ZodObject<{
4874
5018
  option: string;
4875
5019
  filename: string;
4876
5020
  originalFilename: string;
4877
- }[] | undefined> | undefined;
4878
- originalActionId?: string | undefined;
5021
+ }[] | [string, string] | undefined> | null | undefined;
5022
+ originalActionId?: string | null | undefined;
4879
5023
  }>, z.ZodObject<z.objectUtil.extendShape<{
4880
5024
  id: z.ZodString;
5025
+ transactionId: z.ZodString;
4881
5026
  createdAt: z.ZodString;
4882
5027
  createdBy: z.ZodString;
4883
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5028
+ createdByRole: z.ZodString;
5029
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5030
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5031
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4884
5032
  filename: z.ZodString;
4885
5033
  originalFilename: z.ZodString;
4886
5034
  type: z.ZodString;
@@ -4994,7 +5142,7 @@ export declare const EventDocument: z.ZodObject<{
4994
5142
  addressLine3?: string | null | undefined;
4995
5143
  postcodeOrZip?: string | null | undefined;
4996
5144
  }>]>>;
4997
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5145
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4998
5146
  filename: z.ZodString;
4999
5147
  originalFilename: z.ZodString;
5000
5148
  type: z.ZodString;
@@ -5107,19 +5255,20 @@ export declare const EventDocument: z.ZodObject<{
5107
5255
  addressLine2?: string | null | undefined;
5108
5256
  addressLine3?: string | null | undefined;
5109
5257
  postcodeOrZip?: string | null | undefined;
5110
- }>]>>>;
5111
- createdAtLocation: z.ZodString;
5258
+ }>]>>>>;
5112
5259
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5113
- originalActionId: z.ZodOptional<z.ZodString>;
5260
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5114
5261
  }, {
5115
5262
  type: z.ZodLiteral<"UNASSIGN">;
5116
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
5263
+ assignedTo: z.ZodLiteral<null>;
5117
5264
  }>, "strip", z.ZodTypeAny, {
5118
5265
  type: "UNASSIGN";
5119
5266
  id: string;
5120
5267
  status: "Rejected" | "Requested" | "Accepted";
5268
+ transactionId: string;
5121
5269
  createdAt: string;
5122
5270
  createdBy: string;
5271
+ createdByRole: string;
5123
5272
  declaration: Record<string, string | number | boolean | {
5124
5273
  type: string;
5125
5274
  filename: string;
@@ -5157,9 +5306,10 @@ export declare const EventDocument: z.ZodObject<{
5157
5306
  option: string;
5158
5307
  filename: string;
5159
5308
  originalFilename: string;
5160
- }[] | undefined>;
5161
- createdAtLocation: string;
5309
+ }[] | [string, string] | undefined>;
5162
5310
  assignedTo: null;
5311
+ createdBySignature?: string | null | undefined;
5312
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5163
5313
  annotation?: Record<string, string | number | boolean | {
5164
5314
  type: string;
5165
5315
  filename: string;
@@ -5197,14 +5347,16 @@ export declare const EventDocument: z.ZodObject<{
5197
5347
  option: string;
5198
5348
  filename: string;
5199
5349
  originalFilename: string;
5200
- }[] | undefined> | undefined;
5201
- originalActionId?: string | undefined;
5350
+ }[] | [string, string] | undefined> | null | undefined;
5351
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5202
5352
  }, {
5203
5353
  type: "UNASSIGN";
5204
5354
  id: string;
5205
5355
  status: "Rejected" | "Requested" | "Accepted";
5356
+ transactionId: string;
5206
5357
  createdAt: string;
5207
5358
  createdBy: string;
5359
+ createdByRole: string;
5208
5360
  declaration: Record<string, string | number | boolean | {
5209
5361
  type: string;
5210
5362
  filename: string;
@@ -5242,8 +5394,10 @@ export declare const EventDocument: z.ZodObject<{
5242
5394
  option: string;
5243
5395
  filename: string;
5244
5396
  originalFilename: string;
5245
- }[] | undefined>;
5246
- createdAtLocation: string;
5397
+ }[] | [string, string] | undefined>;
5398
+ assignedTo: null;
5399
+ createdBySignature?: string | null | undefined;
5400
+ createdAtLocation?: string | null | undefined;
5247
5401
  annotation?: Record<string, string | number | boolean | {
5248
5402
  type: string;
5249
5403
  filename: string;
@@ -5281,14 +5435,17 @@ export declare const EventDocument: z.ZodObject<{
5281
5435
  option: string;
5282
5436
  filename: string;
5283
5437
  originalFilename: string;
5284
- }[] | undefined> | undefined;
5285
- originalActionId?: string | undefined;
5286
- assignedTo?: null | undefined;
5438
+ }[] | [string, string] | undefined> | null | undefined;
5439
+ originalActionId?: string | null | undefined;
5287
5440
  }>, z.ZodObject<z.objectUtil.extendShape<{
5288
5441
  id: z.ZodString;
5442
+ transactionId: z.ZodString;
5289
5443
  createdAt: z.ZodString;
5290
5444
  createdBy: z.ZodString;
5291
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5445
+ createdByRole: z.ZodString;
5446
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5447
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5448
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5292
5449
  filename: z.ZodString;
5293
5450
  originalFilename: z.ZodString;
5294
5451
  type: z.ZodString;
@@ -5402,7 +5559,7 @@ export declare const EventDocument: z.ZodObject<{
5402
5559
  addressLine3?: string | null | undefined;
5403
5560
  postcodeOrZip?: string | null | undefined;
5404
5561
  }>]>>;
5405
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5562
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5406
5563
  filename: z.ZodString;
5407
5564
  originalFilename: z.ZodString;
5408
5565
  type: z.ZodString;
@@ -5515,18 +5672,19 @@ export declare const EventDocument: z.ZodObject<{
5515
5672
  addressLine2?: string | null | undefined;
5516
5673
  addressLine3?: string | null | undefined;
5517
5674
  postcodeOrZip?: string | null | undefined;
5518
- }>]>>>;
5519
- createdAtLocation: z.ZodString;
5675
+ }>]>>>>;
5520
5676
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5521
- originalActionId: z.ZodOptional<z.ZodString>;
5677
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5522
5678
  }, {
5523
5679
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
5524
5680
  }>, "strip", z.ZodTypeAny, {
5525
5681
  type: "PRINT_CERTIFICATE";
5526
5682
  id: string;
5527
5683
  status: "Rejected" | "Requested" | "Accepted";
5684
+ transactionId: string;
5528
5685
  createdAt: string;
5529
5686
  createdBy: string;
5687
+ createdByRole: string;
5530
5688
  declaration: Record<string, string | number | boolean | {
5531
5689
  type: string;
5532
5690
  filename: string;
@@ -5564,8 +5722,9 @@ export declare const EventDocument: z.ZodObject<{
5564
5722
  option: string;
5565
5723
  filename: string;
5566
5724
  originalFilename: string;
5567
- }[] | undefined>;
5568
- createdAtLocation: string;
5725
+ }[] | [string, string] | undefined>;
5726
+ createdBySignature?: string | null | undefined;
5727
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5569
5728
  annotation?: Record<string, string | number | boolean | {
5570
5729
  type: string;
5571
5730
  filename: string;
@@ -5603,14 +5762,16 @@ export declare const EventDocument: z.ZodObject<{
5603
5762
  option: string;
5604
5763
  filename: string;
5605
5764
  originalFilename: string;
5606
- }[] | undefined> | undefined;
5607
- originalActionId?: string | undefined;
5765
+ }[] | [string, string] | undefined> | null | undefined;
5766
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5608
5767
  }, {
5609
5768
  type: "PRINT_CERTIFICATE";
5610
5769
  id: string;
5611
5770
  status: "Rejected" | "Requested" | "Accepted";
5771
+ transactionId: string;
5612
5772
  createdAt: string;
5613
5773
  createdBy: string;
5774
+ createdByRole: string;
5614
5775
  declaration: Record<string, string | number | boolean | {
5615
5776
  type: string;
5616
5777
  filename: string;
@@ -5648,8 +5809,9 @@ export declare const EventDocument: z.ZodObject<{
5648
5809
  option: string;
5649
5810
  filename: string;
5650
5811
  originalFilename: string;
5651
- }[] | undefined>;
5652
- createdAtLocation: string;
5812
+ }[] | [string, string] | undefined>;
5813
+ createdBySignature?: string | null | undefined;
5814
+ createdAtLocation?: string | null | undefined;
5653
5815
  annotation?: Record<string, string | number | boolean | {
5654
5816
  type: string;
5655
5817
  filename: string;
@@ -5687,13 +5849,17 @@ export declare const EventDocument: z.ZodObject<{
5687
5849
  option: string;
5688
5850
  filename: string;
5689
5851
  originalFilename: string;
5690
- }[] | undefined> | undefined;
5691
- originalActionId?: string | undefined;
5852
+ }[] | [string, string] | undefined> | null | undefined;
5853
+ originalActionId?: string | null | undefined;
5692
5854
  }>, z.ZodObject<z.objectUtil.extendShape<{
5693
5855
  id: z.ZodString;
5856
+ transactionId: z.ZodString;
5694
5857
  createdAt: z.ZodString;
5695
5858
  createdBy: z.ZodString;
5696
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5859
+ createdByRole: z.ZodString;
5860
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5862
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5697
5863
  filename: z.ZodString;
5698
5864
  originalFilename: z.ZodString;
5699
5865
  type: z.ZodString;
@@ -5807,7 +5973,7 @@ export declare const EventDocument: z.ZodObject<{
5807
5973
  addressLine3?: string | null | undefined;
5808
5974
  postcodeOrZip?: string | null | undefined;
5809
5975
  }>]>>;
5810
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5976
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5811
5977
  filename: z.ZodString;
5812
5978
  originalFilename: z.ZodString;
5813
5979
  type: z.ZodString;
@@ -5920,18 +6086,19 @@ export declare const EventDocument: z.ZodObject<{
5920
6086
  addressLine2?: string | null | undefined;
5921
6087
  addressLine3?: string | null | undefined;
5922
6088
  postcodeOrZip?: string | null | undefined;
5923
- }>]>>>;
5924
- createdAtLocation: z.ZodString;
6089
+ }>]>>>>;
5925
6090
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5926
- originalActionId: z.ZodOptional<z.ZodString>;
6091
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5927
6092
  }, {
5928
6093
  type: z.ZodLiteral<"READ">;
5929
6094
  }>, "strip", z.ZodTypeAny, {
5930
6095
  type: "READ";
5931
6096
  id: string;
5932
6097
  status: "Rejected" | "Requested" | "Accepted";
6098
+ transactionId: string;
5933
6099
  createdAt: string;
5934
6100
  createdBy: string;
6101
+ createdByRole: string;
5935
6102
  declaration: Record<string, string | number | boolean | {
5936
6103
  type: string;
5937
6104
  filename: string;
@@ -5969,8 +6136,9 @@ export declare const EventDocument: z.ZodObject<{
5969
6136
  option: string;
5970
6137
  filename: string;
5971
6138
  originalFilename: string;
5972
- }[] | undefined>;
5973
- createdAtLocation: string;
6139
+ }[] | [string, string] | undefined>;
6140
+ createdBySignature?: string | null | undefined;
6141
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5974
6142
  annotation?: Record<string, string | number | boolean | {
5975
6143
  type: string;
5976
6144
  filename: string;
@@ -6008,14 +6176,16 @@ export declare const EventDocument: z.ZodObject<{
6008
6176
  option: string;
6009
6177
  filename: string;
6010
6178
  originalFilename: string;
6011
- }[] | undefined> | undefined;
6012
- originalActionId?: string | undefined;
6179
+ }[] | [string, string] | undefined> | null | undefined;
6180
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6013
6181
  }, {
6014
6182
  type: "READ";
6015
6183
  id: string;
6016
6184
  status: "Rejected" | "Requested" | "Accepted";
6185
+ transactionId: string;
6017
6186
  createdAt: string;
6018
6187
  createdBy: string;
6188
+ createdByRole: string;
6019
6189
  declaration: Record<string, string | number | boolean | {
6020
6190
  type: string;
6021
6191
  filename: string;
@@ -6053,8 +6223,9 @@ export declare const EventDocument: z.ZodObject<{
6053
6223
  option: string;
6054
6224
  filename: string;
6055
6225
  originalFilename: string;
6056
- }[] | undefined>;
6057
- createdAtLocation: string;
6226
+ }[] | [string, string] | undefined>;
6227
+ createdBySignature?: string | null | undefined;
6228
+ createdAtLocation?: string | null | undefined;
6058
6229
  annotation?: Record<string, string | number | boolean | {
6059
6230
  type: string;
6060
6231
  filename: string;
@@ -6092,13 +6263,17 @@ export declare const EventDocument: z.ZodObject<{
6092
6263
  option: string;
6093
6264
  filename: string;
6094
6265
  originalFilename: string;
6095
- }[] | undefined> | undefined;
6096
- originalActionId?: string | undefined;
6266
+ }[] | [string, string] | undefined> | null | undefined;
6267
+ originalActionId?: string | null | undefined;
6097
6268
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6098
6269
  id: z.ZodString;
6270
+ transactionId: z.ZodString;
6099
6271
  createdAt: z.ZodString;
6100
6272
  createdBy: z.ZodString;
6101
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6273
+ createdByRole: z.ZodString;
6274
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6275
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6276
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6102
6277
  filename: z.ZodString;
6103
6278
  originalFilename: z.ZodString;
6104
6279
  type: z.ZodString;
@@ -6212,7 +6387,7 @@ export declare const EventDocument: z.ZodObject<{
6212
6387
  addressLine3?: string | null | undefined;
6213
6388
  postcodeOrZip?: string | null | undefined;
6214
6389
  }>]>>;
6215
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6390
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6216
6391
  filename: z.ZodString;
6217
6392
  originalFilename: z.ZodString;
6218
6393
  type: z.ZodString;
@@ -6325,38 +6500,49 @@ export declare const EventDocument: z.ZodObject<{
6325
6500
  addressLine2?: string | null | undefined;
6326
6501
  addressLine3?: string | null | undefined;
6327
6502
  postcodeOrZip?: string | null | undefined;
6328
- }>]>>>;
6329
- createdAtLocation: z.ZodString;
6503
+ }>]>>>>;
6330
6504
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6331
- originalActionId: z.ZodOptional<z.ZodString>;
6332
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
6505
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6506
+ }, "declaration" | "annotation">, {
6333
6507
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
6334
6508
  status: z.ZodLiteral<"Rejected">;
6335
6509
  }>, "strip", z.ZodTypeAny, {
6336
6510
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6337
6511
  id: string;
6338
6512
  status: "Rejected";
6513
+ transactionId: string;
6339
6514
  createdAt: string;
6340
- originalActionId?: string | undefined;
6515
+ createdBy: string;
6516
+ createdByRole: string;
6517
+ createdBySignature?: string | null | undefined;
6518
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6519
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6341
6520
  }, {
6342
6521
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
6343
6522
  id: string;
6344
6523
  status: "Rejected";
6524
+ transactionId: string;
6345
6525
  createdAt: string;
6346
- originalActionId?: string | undefined;
6526
+ createdBy: string;
6527
+ createdByRole: string;
6528
+ createdBySignature?: string | null | undefined;
6529
+ createdAtLocation?: string | null | undefined;
6530
+ originalActionId?: string | null | undefined;
6347
6531
  }>]>, "many">;
6348
6532
  trackingId: z.ZodString;
6349
6533
  }, "strip", z.ZodTypeAny, {
6350
6534
  type: string;
6351
- id: string;
6535
+ id: string & z.BRAND<"UUID">;
6352
6536
  createdAt: string;
6353
6537
  updatedAt: string;
6354
6538
  actions: ({
6355
6539
  type: "ASSIGN";
6356
6540
  id: string;
6357
6541
  status: "Rejected" | "Requested" | "Accepted";
6542
+ transactionId: string;
6358
6543
  createdAt: string;
6359
6544
  createdBy: string;
6545
+ createdByRole: string;
6360
6546
  declaration: Record<string, string | number | boolean | {
6361
6547
  type: string;
6362
6548
  filename: string;
@@ -6394,9 +6580,10 @@ export declare const EventDocument: z.ZodObject<{
6394
6580
  option: string;
6395
6581
  filename: string;
6396
6582
  originalFilename: string;
6397
- }[] | undefined>;
6398
- createdAtLocation: string;
6583
+ }[] | [string, string] | undefined>;
6399
6584
  assignedTo: string;
6585
+ createdBySignature?: string | null | undefined;
6586
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6400
6587
  annotation?: Record<string, string | number | boolean | {
6401
6588
  type: string;
6402
6589
  filename: string;
@@ -6434,14 +6621,16 @@ export declare const EventDocument: z.ZodObject<{
6434
6621
  option: string;
6435
6622
  filename: string;
6436
6623
  originalFilename: string;
6437
- }[] | undefined> | undefined;
6438
- originalActionId?: string | undefined;
6624
+ }[] | [string, string] | undefined> | null | undefined;
6625
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6439
6626
  } | {
6440
6627
  type: "UNASSIGN";
6441
6628
  id: string;
6442
6629
  status: "Rejected" | "Requested" | "Accepted";
6630
+ transactionId: string;
6443
6631
  createdAt: string;
6444
6632
  createdBy: string;
6633
+ createdByRole: string;
6445
6634
  declaration: Record<string, string | number | boolean | {
6446
6635
  type: string;
6447
6636
  filename: string;
@@ -6479,9 +6668,10 @@ export declare const EventDocument: z.ZodObject<{
6479
6668
  option: string;
6480
6669
  filename: string;
6481
6670
  originalFilename: string;
6482
- }[] | undefined>;
6483
- createdAtLocation: string;
6671
+ }[] | [string, string] | undefined>;
6484
6672
  assignedTo: null;
6673
+ createdBySignature?: string | null | undefined;
6674
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6485
6675
  annotation?: Record<string, string | number | boolean | {
6486
6676
  type: string;
6487
6677
  filename: string;
@@ -6519,14 +6709,16 @@ export declare const EventDocument: z.ZodObject<{
6519
6709
  option: string;
6520
6710
  filename: string;
6521
6711
  originalFilename: string;
6522
- }[] | undefined> | undefined;
6523
- originalActionId?: string | undefined;
6712
+ }[] | [string, string] | undefined> | null | undefined;
6713
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6524
6714
  } | {
6525
6715
  type: "REGISTER";
6526
6716
  id: string;
6527
6717
  status: "Rejected" | "Requested" | "Accepted";
6718
+ transactionId: string;
6528
6719
  createdAt: string;
6529
6720
  createdBy: string;
6721
+ createdByRole: string;
6530
6722
  declaration: Record<string, string | number | boolean | {
6531
6723
  type: string;
6532
6724
  filename: string;
@@ -6564,8 +6756,9 @@ export declare const EventDocument: z.ZodObject<{
6564
6756
  option: string;
6565
6757
  filename: string;
6566
6758
  originalFilename: string;
6567
- }[] | undefined>;
6568
- createdAtLocation: string;
6759
+ }[] | [string, string] | undefined>;
6760
+ createdBySignature?: string | null | undefined;
6761
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6569
6762
  annotation?: Record<string, string | number | boolean | {
6570
6763
  type: string;
6571
6764
  filename: string;
@@ -6603,15 +6796,17 @@ export declare const EventDocument: z.ZodObject<{
6603
6796
  option: string;
6604
6797
  filename: string;
6605
6798
  originalFilename: string;
6606
- }[] | undefined> | undefined;
6607
- originalActionId?: string | undefined;
6799
+ }[] | [string, string] | undefined> | null | undefined;
6800
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6608
6801
  registrationNumber?: string | undefined;
6609
6802
  } | {
6610
6803
  type: "DECLARE";
6611
6804
  id: string;
6612
6805
  status: "Rejected" | "Requested" | "Accepted";
6806
+ transactionId: string;
6613
6807
  createdAt: string;
6614
6808
  createdBy: string;
6809
+ createdByRole: string;
6615
6810
  declaration: Record<string, string | number | boolean | {
6616
6811
  type: string;
6617
6812
  filename: string;
@@ -6649,8 +6844,9 @@ export declare const EventDocument: z.ZodObject<{
6649
6844
  option: string;
6650
6845
  filename: string;
6651
6846
  originalFilename: string;
6652
- }[] | undefined>;
6653
- createdAtLocation: string;
6847
+ }[] | [string, string] | undefined>;
6848
+ createdBySignature?: string | null | undefined;
6849
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6654
6850
  annotation?: Record<string, string | number | boolean | {
6655
6851
  type: string;
6656
6852
  filename: string;
@@ -6688,14 +6884,16 @@ export declare const EventDocument: z.ZodObject<{
6688
6884
  option: string;
6689
6885
  filename: string;
6690
6886
  originalFilename: string;
6691
- }[] | undefined> | undefined;
6692
- originalActionId?: string | undefined;
6887
+ }[] | [string, string] | undefined> | null | undefined;
6888
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6693
6889
  } | {
6694
6890
  type: "VALIDATE";
6695
6891
  id: string;
6696
6892
  status: "Rejected" | "Requested" | "Accepted";
6893
+ transactionId: string;
6697
6894
  createdAt: string;
6698
6895
  createdBy: string;
6896
+ createdByRole: string;
6699
6897
  declaration: Record<string, string | number | boolean | {
6700
6898
  type: string;
6701
6899
  filename: string;
@@ -6733,8 +6931,9 @@ export declare const EventDocument: z.ZodObject<{
6733
6931
  option: string;
6734
6932
  filename: string;
6735
6933
  originalFilename: string;
6736
- }[] | undefined>;
6737
- createdAtLocation: string;
6934
+ }[] | [string, string] | undefined>;
6935
+ createdBySignature?: string | null | undefined;
6936
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6738
6937
  annotation?: Record<string, string | number | boolean | {
6739
6938
  type: string;
6740
6939
  filename: string;
@@ -6772,14 +6971,20 @@ export declare const EventDocument: z.ZodObject<{
6772
6971
  option: string;
6773
6972
  filename: string;
6774
6973
  originalFilename: string;
6775
- }[] | undefined> | undefined;
6776
- originalActionId?: string | undefined;
6974
+ }[] | [string, string] | undefined> | null | undefined;
6975
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6777
6976
  } | {
6778
6977
  type: "REJECT";
6779
6978
  id: string;
6780
6979
  status: "Rejected" | "Requested" | "Accepted";
6980
+ reason: {
6981
+ message: string;
6982
+ isDuplicate?: boolean | undefined;
6983
+ };
6984
+ transactionId: string;
6781
6985
  createdAt: string;
6782
6986
  createdBy: string;
6987
+ createdByRole: string;
6783
6988
  declaration: Record<string, string | number | boolean | {
6784
6989
  type: string;
6785
6990
  filename: string;
@@ -6817,8 +7022,9 @@ export declare const EventDocument: z.ZodObject<{
6817
7022
  option: string;
6818
7023
  filename: string;
6819
7024
  originalFilename: string;
6820
- }[] | undefined>;
6821
- createdAtLocation: string;
7025
+ }[] | [string, string] | undefined>;
7026
+ createdBySignature?: string | null | undefined;
7027
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6822
7028
  annotation?: Record<string, string | number | boolean | {
6823
7029
  type: string;
6824
7030
  filename: string;
@@ -6856,14 +7062,16 @@ export declare const EventDocument: z.ZodObject<{
6856
7062
  option: string;
6857
7063
  filename: string;
6858
7064
  originalFilename: string;
6859
- }[] | undefined> | undefined;
6860
- originalActionId?: string | undefined;
7065
+ }[] | [string, string] | undefined> | null | undefined;
7066
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6861
7067
  } | {
6862
7068
  type: "MARKED_AS_DUPLICATE";
6863
7069
  id: string;
6864
7070
  status: "Rejected" | "Requested" | "Accepted";
7071
+ transactionId: string;
6865
7072
  createdAt: string;
6866
7073
  createdBy: string;
7074
+ createdByRole: string;
6867
7075
  declaration: Record<string, string | number | boolean | {
6868
7076
  type: string;
6869
7077
  filename: string;
@@ -6901,8 +7109,9 @@ export declare const EventDocument: z.ZodObject<{
6901
7109
  option: string;
6902
7110
  filename: string;
6903
7111
  originalFilename: string;
6904
- }[] | undefined>;
6905
- createdAtLocation: string;
7112
+ }[] | [string, string] | undefined>;
7113
+ createdBySignature?: string | null | undefined;
7114
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6906
7115
  annotation?: Record<string, string | number | boolean | {
6907
7116
  type: string;
6908
7117
  filename: string;
@@ -6940,14 +7149,20 @@ export declare const EventDocument: z.ZodObject<{
6940
7149
  option: string;
6941
7150
  filename: string;
6942
7151
  originalFilename: string;
6943
- }[] | undefined> | undefined;
6944
- originalActionId?: string | undefined;
7152
+ }[] | [string, string] | undefined> | null | undefined;
7153
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6945
7154
  } | {
6946
7155
  type: "ARCHIVE";
6947
7156
  id: string;
6948
7157
  status: "Rejected" | "Requested" | "Accepted";
7158
+ reason: {
7159
+ message: string;
7160
+ isDuplicate?: boolean | undefined;
7161
+ };
7162
+ transactionId: string;
6949
7163
  createdAt: string;
6950
7164
  createdBy: string;
7165
+ createdByRole: string;
6951
7166
  declaration: Record<string, string | number | boolean | {
6952
7167
  type: string;
6953
7168
  filename: string;
@@ -6985,8 +7200,9 @@ export declare const EventDocument: z.ZodObject<{
6985
7200
  option: string;
6986
7201
  filename: string;
6987
7202
  originalFilename: string;
6988
- }[] | undefined>;
6989
- createdAtLocation: string;
7203
+ }[] | [string, string] | undefined>;
7204
+ createdBySignature?: string | null | undefined;
7205
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6990
7206
  annotation?: Record<string, string | number | boolean | {
6991
7207
  type: string;
6992
7208
  filename: string;
@@ -7024,14 +7240,16 @@ export declare const EventDocument: z.ZodObject<{
7024
7240
  option: string;
7025
7241
  filename: string;
7026
7242
  originalFilename: string;
7027
- }[] | undefined> | undefined;
7028
- originalActionId?: string | undefined;
7243
+ }[] | [string, string] | undefined> | null | undefined;
7244
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7029
7245
  } | {
7030
7246
  type: "CREATE";
7031
7247
  id: string;
7032
7248
  status: "Rejected" | "Requested" | "Accepted";
7249
+ transactionId: string;
7033
7250
  createdAt: string;
7034
7251
  createdBy: string;
7252
+ createdByRole: string;
7035
7253
  declaration: Record<string, string | number | boolean | {
7036
7254
  type: string;
7037
7255
  filename: string;
@@ -7069,8 +7287,9 @@ export declare const EventDocument: z.ZodObject<{
7069
7287
  option: string;
7070
7288
  filename: string;
7071
7289
  originalFilename: string;
7072
- }[] | undefined>;
7073
- createdAtLocation: string;
7290
+ }[] | [string, string] | undefined>;
7291
+ createdBySignature?: string | null | undefined;
7292
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7074
7293
  annotation?: Record<string, string | number | boolean | {
7075
7294
  type: string;
7076
7295
  filename: string;
@@ -7108,14 +7327,16 @@ export declare const EventDocument: z.ZodObject<{
7108
7327
  option: string;
7109
7328
  filename: string;
7110
7329
  originalFilename: string;
7111
- }[] | undefined> | undefined;
7112
- originalActionId?: string | undefined;
7330
+ }[] | [string, string] | undefined> | null | undefined;
7331
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7113
7332
  } | {
7114
7333
  type: "NOTIFY";
7115
7334
  id: string;
7116
7335
  status: "Rejected" | "Requested" | "Accepted";
7336
+ transactionId: string;
7117
7337
  createdAt: string;
7118
7338
  createdBy: string;
7339
+ createdByRole: string;
7119
7340
  declaration: Record<string, string | number | boolean | {
7120
7341
  type: string;
7121
7342
  filename: string;
@@ -7153,8 +7374,9 @@ export declare const EventDocument: z.ZodObject<{
7153
7374
  option: string;
7154
7375
  filename: string;
7155
7376
  originalFilename: string;
7156
- }[] | undefined>;
7157
- createdAtLocation: string;
7377
+ }[] | [string, string] | undefined>;
7378
+ createdBySignature?: string | null | undefined;
7379
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7158
7380
  annotation?: Record<string, string | number | boolean | {
7159
7381
  type: string;
7160
7382
  filename: string;
@@ -7192,14 +7414,16 @@ export declare const EventDocument: z.ZodObject<{
7192
7414
  option: string;
7193
7415
  filename: string;
7194
7416
  originalFilename: string;
7195
- }[] | undefined> | undefined;
7196
- originalActionId?: string | undefined;
7417
+ }[] | [string, string] | undefined> | null | undefined;
7418
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7197
7419
  } | {
7198
7420
  type: "PRINT_CERTIFICATE";
7199
7421
  id: string;
7200
7422
  status: "Rejected" | "Requested" | "Accepted";
7423
+ transactionId: string;
7201
7424
  createdAt: string;
7202
7425
  createdBy: string;
7426
+ createdByRole: string;
7203
7427
  declaration: Record<string, string | number | boolean | {
7204
7428
  type: string;
7205
7429
  filename: string;
@@ -7237,8 +7461,9 @@ export declare const EventDocument: z.ZodObject<{
7237
7461
  option: string;
7238
7462
  filename: string;
7239
7463
  originalFilename: string;
7240
- }[] | undefined>;
7241
- createdAtLocation: string;
7464
+ }[] | [string, string] | undefined>;
7465
+ createdBySignature?: string | null | undefined;
7466
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7242
7467
  annotation?: Record<string, string | number | boolean | {
7243
7468
  type: string;
7244
7469
  filename: string;
@@ -7276,14 +7501,16 @@ export declare const EventDocument: z.ZodObject<{
7276
7501
  option: string;
7277
7502
  filename: string;
7278
7503
  originalFilename: string;
7279
- }[] | undefined> | undefined;
7280
- originalActionId?: string | undefined;
7504
+ }[] | [string, string] | undefined> | null | undefined;
7505
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7281
7506
  } | {
7282
7507
  type: "REQUEST_CORRECTION";
7283
7508
  id: string;
7284
7509
  status: "Rejected" | "Requested" | "Accepted";
7510
+ transactionId: string;
7285
7511
  createdAt: string;
7286
7512
  createdBy: string;
7513
+ createdByRole: string;
7287
7514
  declaration: Record<string, string | number | boolean | {
7288
7515
  type: string;
7289
7516
  filename: string;
@@ -7321,8 +7548,9 @@ export declare const EventDocument: z.ZodObject<{
7321
7548
  option: string;
7322
7549
  filename: string;
7323
7550
  originalFilename: string;
7324
- }[] | undefined>;
7325
- createdAtLocation: string;
7551
+ }[] | [string, string] | undefined>;
7552
+ createdBySignature?: string | null | undefined;
7553
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7326
7554
  annotation?: Record<string, string | number | boolean | {
7327
7555
  type: string;
7328
7556
  filename: string;
@@ -7360,14 +7588,16 @@ export declare const EventDocument: z.ZodObject<{
7360
7588
  option: string;
7361
7589
  filename: string;
7362
7590
  originalFilename: string;
7363
- }[] | undefined> | undefined;
7364
- originalActionId?: string | undefined;
7591
+ }[] | [string, string] | undefined> | null | undefined;
7592
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7365
7593
  } | {
7366
7594
  type: "APPROVE_CORRECTION";
7367
7595
  id: string;
7368
7596
  status: "Rejected" | "Requested" | "Accepted";
7597
+ transactionId: string;
7369
7598
  createdAt: string;
7370
7599
  createdBy: string;
7600
+ createdByRole: string;
7371
7601
  declaration: Record<string, string | number | boolean | {
7372
7602
  type: string;
7373
7603
  filename: string;
@@ -7405,9 +7635,10 @@ export declare const EventDocument: z.ZodObject<{
7405
7635
  option: string;
7406
7636
  filename: string;
7407
7637
  originalFilename: string;
7408
- }[] | undefined>;
7409
- createdAtLocation: string;
7638
+ }[] | [string, string] | undefined>;
7410
7639
  requestId: string;
7640
+ createdBySignature?: string | null | undefined;
7641
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7411
7642
  annotation?: Record<string, string | number | boolean | {
7412
7643
  type: string;
7413
7644
  filename: string;
@@ -7445,14 +7676,16 @@ export declare const EventDocument: z.ZodObject<{
7445
7676
  option: string;
7446
7677
  filename: string;
7447
7678
  originalFilename: string;
7448
- }[] | undefined> | undefined;
7449
- originalActionId?: string | undefined;
7679
+ }[] | [string, string] | undefined> | null | undefined;
7680
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7450
7681
  } | {
7451
7682
  type: "REJECT_CORRECTION";
7452
7683
  id: string;
7453
7684
  status: "Rejected" | "Requested" | "Accepted";
7685
+ transactionId: string;
7454
7686
  createdAt: string;
7455
7687
  createdBy: string;
7688
+ createdByRole: string;
7456
7689
  declaration: Record<string, string | number | boolean | {
7457
7690
  type: string;
7458
7691
  filename: string;
@@ -7490,9 +7723,10 @@ export declare const EventDocument: z.ZodObject<{
7490
7723
  option: string;
7491
7724
  filename: string;
7492
7725
  originalFilename: string;
7493
- }[] | undefined>;
7494
- createdAtLocation: string;
7726
+ }[] | [string, string] | undefined>;
7495
7727
  requestId: string;
7728
+ createdBySignature?: string | null | undefined;
7729
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7496
7730
  annotation?: Record<string, string | number | boolean | {
7497
7731
  type: string;
7498
7732
  filename: string;
@@ -7530,14 +7764,16 @@ export declare const EventDocument: z.ZodObject<{
7530
7764
  option: string;
7531
7765
  filename: string;
7532
7766
  originalFilename: string;
7533
- }[] | undefined> | undefined;
7534
- originalActionId?: string | undefined;
7767
+ }[] | [string, string] | undefined> | null | undefined;
7768
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7535
7769
  } | {
7536
7770
  type: "READ";
7537
7771
  id: string;
7538
7772
  status: "Rejected" | "Requested" | "Accepted";
7773
+ transactionId: string;
7539
7774
  createdAt: string;
7540
7775
  createdBy: string;
7776
+ createdByRole: string;
7541
7777
  declaration: Record<string, string | number | boolean | {
7542
7778
  type: string;
7543
7779
  filename: string;
@@ -7575,8 +7811,9 @@ export declare const EventDocument: z.ZodObject<{
7575
7811
  option: string;
7576
7812
  filename: string;
7577
7813
  originalFilename: string;
7578
- }[] | undefined>;
7579
- createdAtLocation: string;
7814
+ }[] | [string, string] | undefined>;
7815
+ createdBySignature?: string | null | undefined;
7816
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7580
7817
  annotation?: Record<string, string | number | boolean | {
7581
7818
  type: string;
7582
7819
  filename: string;
@@ -7614,14 +7851,19 @@ export declare const EventDocument: z.ZodObject<{
7614
7851
  option: string;
7615
7852
  filename: string;
7616
7853
  originalFilename: string;
7617
- }[] | undefined> | undefined;
7618
- originalActionId?: string | undefined;
7854
+ }[] | [string, string] | undefined> | null | undefined;
7855
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7619
7856
  } | {
7620
7857
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7621
7858
  id: string;
7622
7859
  status: "Rejected";
7860
+ transactionId: string;
7623
7861
  createdAt: string;
7624
- originalActionId?: string | undefined;
7862
+ createdBy: string;
7863
+ createdByRole: string;
7864
+ createdBySignature?: string | null | undefined;
7865
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7866
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7625
7867
  })[];
7626
7868
  trackingId: string;
7627
7869
  }, {
@@ -7633,8 +7875,10 @@ export declare const EventDocument: z.ZodObject<{
7633
7875
  type: "ASSIGN";
7634
7876
  id: string;
7635
7877
  status: "Rejected" | "Requested" | "Accepted";
7878
+ transactionId: string;
7636
7879
  createdAt: string;
7637
7880
  createdBy: string;
7881
+ createdByRole: string;
7638
7882
  declaration: Record<string, string | number | boolean | {
7639
7883
  type: string;
7640
7884
  filename: string;
@@ -7672,9 +7916,10 @@ export declare const EventDocument: z.ZodObject<{
7672
7916
  option: string;
7673
7917
  filename: string;
7674
7918
  originalFilename: string;
7675
- }[] | undefined>;
7676
- createdAtLocation: string;
7919
+ }[] | [string, string] | undefined>;
7677
7920
  assignedTo: string;
7921
+ createdBySignature?: string | null | undefined;
7922
+ createdAtLocation?: string | null | undefined;
7678
7923
  annotation?: Record<string, string | number | boolean | {
7679
7924
  type: string;
7680
7925
  filename: string;
@@ -7712,14 +7957,16 @@ export declare const EventDocument: z.ZodObject<{
7712
7957
  option: string;
7713
7958
  filename: string;
7714
7959
  originalFilename: string;
7715
- }[] | undefined> | undefined;
7716
- originalActionId?: string | undefined;
7960
+ }[] | [string, string] | undefined> | null | undefined;
7961
+ originalActionId?: string | null | undefined;
7717
7962
  } | {
7718
7963
  type: "UNASSIGN";
7719
7964
  id: string;
7720
7965
  status: "Rejected" | "Requested" | "Accepted";
7966
+ transactionId: string;
7721
7967
  createdAt: string;
7722
7968
  createdBy: string;
7969
+ createdByRole: string;
7723
7970
  declaration: Record<string, string | number | boolean | {
7724
7971
  type: string;
7725
7972
  filename: string;
@@ -7757,8 +8004,10 @@ export declare const EventDocument: z.ZodObject<{
7757
8004
  option: string;
7758
8005
  filename: string;
7759
8006
  originalFilename: string;
7760
- }[] | undefined>;
7761
- createdAtLocation: string;
8007
+ }[] | [string, string] | undefined>;
8008
+ assignedTo: null;
8009
+ createdBySignature?: string | null | undefined;
8010
+ createdAtLocation?: string | null | undefined;
7762
8011
  annotation?: Record<string, string | number | boolean | {
7763
8012
  type: string;
7764
8013
  filename: string;
@@ -7796,15 +8045,16 @@ export declare const EventDocument: z.ZodObject<{
7796
8045
  option: string;
7797
8046
  filename: string;
7798
8047
  originalFilename: string;
7799
- }[] | undefined> | undefined;
7800
- originalActionId?: string | undefined;
7801
- assignedTo?: null | undefined;
8048
+ }[] | [string, string] | undefined> | null | undefined;
8049
+ originalActionId?: string | null | undefined;
7802
8050
  } | {
7803
8051
  type: "REGISTER";
7804
8052
  id: string;
7805
8053
  status: "Rejected" | "Requested" | "Accepted";
8054
+ transactionId: string;
7806
8055
  createdAt: string;
7807
8056
  createdBy: string;
8057
+ createdByRole: string;
7808
8058
  declaration: Record<string, string | number | boolean | {
7809
8059
  type: string;
7810
8060
  filename: string;
@@ -7842,8 +8092,9 @@ export declare const EventDocument: z.ZodObject<{
7842
8092
  option: string;
7843
8093
  filename: string;
7844
8094
  originalFilename: string;
7845
- }[] | undefined>;
7846
- createdAtLocation: string;
8095
+ }[] | [string, string] | undefined>;
8096
+ createdBySignature?: string | null | undefined;
8097
+ createdAtLocation?: string | null | undefined;
7847
8098
  annotation?: Record<string, string | number | boolean | {
7848
8099
  type: string;
7849
8100
  filename: string;
@@ -7881,15 +8132,17 @@ export declare const EventDocument: z.ZodObject<{
7881
8132
  option: string;
7882
8133
  filename: string;
7883
8134
  originalFilename: string;
7884
- }[] | undefined> | undefined;
7885
- originalActionId?: string | undefined;
8135
+ }[] | [string, string] | undefined> | null | undefined;
8136
+ originalActionId?: string | null | undefined;
7886
8137
  registrationNumber?: string | undefined;
7887
8138
  } | {
7888
8139
  type: "DECLARE";
7889
8140
  id: string;
7890
8141
  status: "Rejected" | "Requested" | "Accepted";
8142
+ transactionId: string;
7891
8143
  createdAt: string;
7892
8144
  createdBy: string;
8145
+ createdByRole: string;
7893
8146
  declaration: Record<string, string | number | boolean | {
7894
8147
  type: string;
7895
8148
  filename: string;
@@ -7927,8 +8180,9 @@ export declare const EventDocument: z.ZodObject<{
7927
8180
  option: string;
7928
8181
  filename: string;
7929
8182
  originalFilename: string;
7930
- }[] | undefined>;
7931
- createdAtLocation: string;
8183
+ }[] | [string, string] | undefined>;
8184
+ createdBySignature?: string | null | undefined;
8185
+ createdAtLocation?: string | null | undefined;
7932
8186
  annotation?: Record<string, string | number | boolean | {
7933
8187
  type: string;
7934
8188
  filename: string;
@@ -7966,14 +8220,16 @@ export declare const EventDocument: z.ZodObject<{
7966
8220
  option: string;
7967
8221
  filename: string;
7968
8222
  originalFilename: string;
7969
- }[] | undefined> | undefined;
7970
- originalActionId?: string | undefined;
8223
+ }[] | [string, string] | undefined> | null | undefined;
8224
+ originalActionId?: string | null | undefined;
7971
8225
  } | {
7972
8226
  type: "VALIDATE";
7973
8227
  id: string;
7974
8228
  status: "Rejected" | "Requested" | "Accepted";
8229
+ transactionId: string;
7975
8230
  createdAt: string;
7976
8231
  createdBy: string;
8232
+ createdByRole: string;
7977
8233
  declaration: Record<string, string | number | boolean | {
7978
8234
  type: string;
7979
8235
  filename: string;
@@ -8011,8 +8267,9 @@ export declare const EventDocument: z.ZodObject<{
8011
8267
  option: string;
8012
8268
  filename: string;
8013
8269
  originalFilename: string;
8014
- }[] | undefined>;
8015
- createdAtLocation: string;
8270
+ }[] | [string, string] | undefined>;
8271
+ createdBySignature?: string | null | undefined;
8272
+ createdAtLocation?: string | null | undefined;
8016
8273
  annotation?: Record<string, string | number | boolean | {
8017
8274
  type: string;
8018
8275
  filename: string;
@@ -8050,14 +8307,20 @@ export declare const EventDocument: z.ZodObject<{
8050
8307
  option: string;
8051
8308
  filename: string;
8052
8309
  originalFilename: string;
8053
- }[] | undefined> | undefined;
8054
- originalActionId?: string | undefined;
8310
+ }[] | [string, string] | undefined> | null | undefined;
8311
+ originalActionId?: string | null | undefined;
8055
8312
  } | {
8056
8313
  type: "REJECT";
8057
8314
  id: string;
8058
8315
  status: "Rejected" | "Requested" | "Accepted";
8316
+ reason: {
8317
+ message: string;
8318
+ isDuplicate?: boolean | undefined;
8319
+ };
8320
+ transactionId: string;
8059
8321
  createdAt: string;
8060
8322
  createdBy: string;
8323
+ createdByRole: string;
8061
8324
  declaration: Record<string, string | number | boolean | {
8062
8325
  type: string;
8063
8326
  filename: string;
@@ -8095,8 +8358,9 @@ export declare const EventDocument: z.ZodObject<{
8095
8358
  option: string;
8096
8359
  filename: string;
8097
8360
  originalFilename: string;
8098
- }[] | undefined>;
8099
- createdAtLocation: string;
8361
+ }[] | [string, string] | undefined>;
8362
+ createdBySignature?: string | null | undefined;
8363
+ createdAtLocation?: string | null | undefined;
8100
8364
  annotation?: Record<string, string | number | boolean | {
8101
8365
  type: string;
8102
8366
  filename: string;
@@ -8134,14 +8398,16 @@ export declare const EventDocument: z.ZodObject<{
8134
8398
  option: string;
8135
8399
  filename: string;
8136
8400
  originalFilename: string;
8137
- }[] | undefined> | undefined;
8138
- originalActionId?: string | undefined;
8401
+ }[] | [string, string] | undefined> | null | undefined;
8402
+ originalActionId?: string | null | undefined;
8139
8403
  } | {
8140
8404
  type: "MARKED_AS_DUPLICATE";
8141
8405
  id: string;
8142
8406
  status: "Rejected" | "Requested" | "Accepted";
8407
+ transactionId: string;
8143
8408
  createdAt: string;
8144
8409
  createdBy: string;
8410
+ createdByRole: string;
8145
8411
  declaration: Record<string, string | number | boolean | {
8146
8412
  type: string;
8147
8413
  filename: string;
@@ -8179,8 +8445,9 @@ export declare const EventDocument: z.ZodObject<{
8179
8445
  option: string;
8180
8446
  filename: string;
8181
8447
  originalFilename: string;
8182
- }[] | undefined>;
8183
- createdAtLocation: string;
8448
+ }[] | [string, string] | undefined>;
8449
+ createdBySignature?: string | null | undefined;
8450
+ createdAtLocation?: string | null | undefined;
8184
8451
  annotation?: Record<string, string | number | boolean | {
8185
8452
  type: string;
8186
8453
  filename: string;
@@ -8218,14 +8485,20 @@ export declare const EventDocument: z.ZodObject<{
8218
8485
  option: string;
8219
8486
  filename: string;
8220
8487
  originalFilename: string;
8221
- }[] | undefined> | undefined;
8222
- originalActionId?: string | undefined;
8488
+ }[] | [string, string] | undefined> | null | undefined;
8489
+ originalActionId?: string | null | undefined;
8223
8490
  } | {
8224
8491
  type: "ARCHIVE";
8225
8492
  id: string;
8226
8493
  status: "Rejected" | "Requested" | "Accepted";
8494
+ reason: {
8495
+ message: string;
8496
+ isDuplicate?: boolean | undefined;
8497
+ };
8498
+ transactionId: string;
8227
8499
  createdAt: string;
8228
8500
  createdBy: string;
8501
+ createdByRole: string;
8229
8502
  declaration: Record<string, string | number | boolean | {
8230
8503
  type: string;
8231
8504
  filename: string;
@@ -8263,8 +8536,9 @@ export declare const EventDocument: z.ZodObject<{
8263
8536
  option: string;
8264
8537
  filename: string;
8265
8538
  originalFilename: string;
8266
- }[] | undefined>;
8267
- createdAtLocation: string;
8539
+ }[] | [string, string] | undefined>;
8540
+ createdBySignature?: string | null | undefined;
8541
+ createdAtLocation?: string | null | undefined;
8268
8542
  annotation?: Record<string, string | number | boolean | {
8269
8543
  type: string;
8270
8544
  filename: string;
@@ -8302,14 +8576,16 @@ export declare const EventDocument: z.ZodObject<{
8302
8576
  option: string;
8303
8577
  filename: string;
8304
8578
  originalFilename: string;
8305
- }[] | undefined> | undefined;
8306
- originalActionId?: string | undefined;
8579
+ }[] | [string, string] | undefined> | null | undefined;
8580
+ originalActionId?: string | null | undefined;
8307
8581
  } | {
8308
8582
  type: "CREATE";
8309
8583
  id: string;
8310
8584
  status: "Rejected" | "Requested" | "Accepted";
8585
+ transactionId: string;
8311
8586
  createdAt: string;
8312
8587
  createdBy: string;
8588
+ createdByRole: string;
8313
8589
  declaration: Record<string, string | number | boolean | {
8314
8590
  type: string;
8315
8591
  filename: string;
@@ -8347,8 +8623,9 @@ export declare const EventDocument: z.ZodObject<{
8347
8623
  option: string;
8348
8624
  filename: string;
8349
8625
  originalFilename: string;
8350
- }[] | undefined>;
8351
- createdAtLocation: string;
8626
+ }[] | [string, string] | undefined>;
8627
+ createdBySignature?: string | null | undefined;
8628
+ createdAtLocation?: string | null | undefined;
8352
8629
  annotation?: Record<string, string | number | boolean | {
8353
8630
  type: string;
8354
8631
  filename: string;
@@ -8386,14 +8663,16 @@ export declare const EventDocument: z.ZodObject<{
8386
8663
  option: string;
8387
8664
  filename: string;
8388
8665
  originalFilename: string;
8389
- }[] | undefined> | undefined;
8390
- originalActionId?: string | undefined;
8666
+ }[] | [string, string] | undefined> | null | undefined;
8667
+ originalActionId?: string | null | undefined;
8391
8668
  } | {
8392
8669
  type: "NOTIFY";
8393
8670
  id: string;
8394
8671
  status: "Rejected" | "Requested" | "Accepted";
8672
+ transactionId: string;
8395
8673
  createdAt: string;
8396
8674
  createdBy: string;
8675
+ createdByRole: string;
8397
8676
  declaration: Record<string, string | number | boolean | {
8398
8677
  type: string;
8399
8678
  filename: string;
@@ -8431,8 +8710,9 @@ export declare const EventDocument: z.ZodObject<{
8431
8710
  option: string;
8432
8711
  filename: string;
8433
8712
  originalFilename: string;
8434
- }[] | undefined>;
8435
- createdAtLocation: string;
8713
+ }[] | [string, string] | undefined>;
8714
+ createdBySignature?: string | null | undefined;
8715
+ createdAtLocation?: string | null | undefined;
8436
8716
  annotation?: Record<string, string | number | boolean | {
8437
8717
  type: string;
8438
8718
  filename: string;
@@ -8470,14 +8750,16 @@ export declare const EventDocument: z.ZodObject<{
8470
8750
  option: string;
8471
8751
  filename: string;
8472
8752
  originalFilename: string;
8473
- }[] | undefined> | undefined;
8474
- originalActionId?: string | undefined;
8753
+ }[] | [string, string] | undefined> | null | undefined;
8754
+ originalActionId?: string | null | undefined;
8475
8755
  } | {
8476
8756
  type: "PRINT_CERTIFICATE";
8477
8757
  id: string;
8478
8758
  status: "Rejected" | "Requested" | "Accepted";
8759
+ transactionId: string;
8479
8760
  createdAt: string;
8480
8761
  createdBy: string;
8762
+ createdByRole: string;
8481
8763
  declaration: Record<string, string | number | boolean | {
8482
8764
  type: string;
8483
8765
  filename: string;
@@ -8515,8 +8797,9 @@ export declare const EventDocument: z.ZodObject<{
8515
8797
  option: string;
8516
8798
  filename: string;
8517
8799
  originalFilename: string;
8518
- }[] | undefined>;
8519
- createdAtLocation: string;
8800
+ }[] | [string, string] | undefined>;
8801
+ createdBySignature?: string | null | undefined;
8802
+ createdAtLocation?: string | null | undefined;
8520
8803
  annotation?: Record<string, string | number | boolean | {
8521
8804
  type: string;
8522
8805
  filename: string;
@@ -8554,14 +8837,16 @@ export declare const EventDocument: z.ZodObject<{
8554
8837
  option: string;
8555
8838
  filename: string;
8556
8839
  originalFilename: string;
8557
- }[] | undefined> | undefined;
8558
- originalActionId?: string | undefined;
8840
+ }[] | [string, string] | undefined> | null | undefined;
8841
+ originalActionId?: string | null | undefined;
8559
8842
  } | {
8560
8843
  type: "REQUEST_CORRECTION";
8561
8844
  id: string;
8562
8845
  status: "Rejected" | "Requested" | "Accepted";
8846
+ transactionId: string;
8563
8847
  createdAt: string;
8564
8848
  createdBy: string;
8849
+ createdByRole: string;
8565
8850
  declaration: Record<string, string | number | boolean | {
8566
8851
  type: string;
8567
8852
  filename: string;
@@ -8599,8 +8884,9 @@ export declare const EventDocument: z.ZodObject<{
8599
8884
  option: string;
8600
8885
  filename: string;
8601
8886
  originalFilename: string;
8602
- }[] | undefined>;
8603
- createdAtLocation: string;
8887
+ }[] | [string, string] | undefined>;
8888
+ createdBySignature?: string | null | undefined;
8889
+ createdAtLocation?: string | null | undefined;
8604
8890
  annotation?: Record<string, string | number | boolean | {
8605
8891
  type: string;
8606
8892
  filename: string;
@@ -8638,14 +8924,16 @@ export declare const EventDocument: z.ZodObject<{
8638
8924
  option: string;
8639
8925
  filename: string;
8640
8926
  originalFilename: string;
8641
- }[] | undefined> | undefined;
8642
- originalActionId?: string | undefined;
8927
+ }[] | [string, string] | undefined> | null | undefined;
8928
+ originalActionId?: string | null | undefined;
8643
8929
  } | {
8644
8930
  type: "APPROVE_CORRECTION";
8645
8931
  id: string;
8646
8932
  status: "Rejected" | "Requested" | "Accepted";
8933
+ transactionId: string;
8647
8934
  createdAt: string;
8648
8935
  createdBy: string;
8936
+ createdByRole: string;
8649
8937
  declaration: Record<string, string | number | boolean | {
8650
8938
  type: string;
8651
8939
  filename: string;
@@ -8683,9 +8971,10 @@ export declare const EventDocument: z.ZodObject<{
8683
8971
  option: string;
8684
8972
  filename: string;
8685
8973
  originalFilename: string;
8686
- }[] | undefined>;
8687
- createdAtLocation: string;
8974
+ }[] | [string, string] | undefined>;
8688
8975
  requestId: string;
8976
+ createdBySignature?: string | null | undefined;
8977
+ createdAtLocation?: string | null | undefined;
8689
8978
  annotation?: Record<string, string | number | boolean | {
8690
8979
  type: string;
8691
8980
  filename: string;
@@ -8723,14 +9012,16 @@ export declare const EventDocument: z.ZodObject<{
8723
9012
  option: string;
8724
9013
  filename: string;
8725
9014
  originalFilename: string;
8726
- }[] | undefined> | undefined;
8727
- originalActionId?: string | undefined;
9015
+ }[] | [string, string] | undefined> | null | undefined;
9016
+ originalActionId?: string | null | undefined;
8728
9017
  } | {
8729
9018
  type: "REJECT_CORRECTION";
8730
9019
  id: string;
8731
9020
  status: "Rejected" | "Requested" | "Accepted";
9021
+ transactionId: string;
8732
9022
  createdAt: string;
8733
9023
  createdBy: string;
9024
+ createdByRole: string;
8734
9025
  declaration: Record<string, string | number | boolean | {
8735
9026
  type: string;
8736
9027
  filename: string;
@@ -8768,9 +9059,10 @@ export declare const EventDocument: z.ZodObject<{
8768
9059
  option: string;
8769
9060
  filename: string;
8770
9061
  originalFilename: string;
8771
- }[] | undefined>;
8772
- createdAtLocation: string;
9062
+ }[] | [string, string] | undefined>;
8773
9063
  requestId: string;
9064
+ createdBySignature?: string | null | undefined;
9065
+ createdAtLocation?: string | null | undefined;
8774
9066
  annotation?: Record<string, string | number | boolean | {
8775
9067
  type: string;
8776
9068
  filename: string;
@@ -8808,14 +9100,16 @@ export declare const EventDocument: z.ZodObject<{
8808
9100
  option: string;
8809
9101
  filename: string;
8810
9102
  originalFilename: string;
8811
- }[] | undefined> | undefined;
8812
- originalActionId?: string | undefined;
9103
+ }[] | [string, string] | undefined> | null | undefined;
9104
+ originalActionId?: string | null | undefined;
8813
9105
  } | {
8814
9106
  type: "READ";
8815
9107
  id: string;
8816
9108
  status: "Rejected" | "Requested" | "Accepted";
9109
+ transactionId: string;
8817
9110
  createdAt: string;
8818
9111
  createdBy: string;
9112
+ createdByRole: string;
8819
9113
  declaration: Record<string, string | number | boolean | {
8820
9114
  type: string;
8821
9115
  filename: string;
@@ -8853,8 +9147,9 @@ export declare const EventDocument: z.ZodObject<{
8853
9147
  option: string;
8854
9148
  filename: string;
8855
9149
  originalFilename: string;
8856
- }[] | undefined>;
8857
- createdAtLocation: string;
9150
+ }[] | [string, string] | undefined>;
9151
+ createdBySignature?: string | null | undefined;
9152
+ createdAtLocation?: string | null | undefined;
8858
9153
  annotation?: Record<string, string | number | boolean | {
8859
9154
  type: string;
8860
9155
  filename: string;
@@ -8892,14 +9187,19 @@ export declare const EventDocument: z.ZodObject<{
8892
9187
  option: string;
8893
9188
  filename: string;
8894
9189
  originalFilename: string;
8895
- }[] | undefined> | undefined;
8896
- originalActionId?: string | undefined;
9190
+ }[] | [string, string] | undefined> | null | undefined;
9191
+ originalActionId?: string | null | undefined;
8897
9192
  } | {
8898
9193
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8899
9194
  id: string;
8900
9195
  status: "Rejected";
9196
+ transactionId: string;
8901
9197
  createdAt: string;
8902
- originalActionId?: string | undefined;
9198
+ createdBy: string;
9199
+ createdByRole: string;
9200
+ createdBySignature?: string | null | undefined;
9201
+ createdAtLocation?: string | null | undefined;
9202
+ originalActionId?: string | null | undefined;
8903
9203
  })[];
8904
9204
  trackingId: string;
8905
9205
  }>;