@opencrvs/toolkit 1.8.0-rc.fec1d5d → 1.8.0-rc.fef0fdd

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.
@@ -1,17 +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
- id: z.ZodString;
8
+ id: z.ZodBranded<z.ZodString, "UUID">;
9
9
  transactionId: z.ZodString;
10
+ createdByUserType: z.ZodEnum<["user", "system"]>;
10
11
  createdAt: z.ZodString;
11
12
  createdBy: z.ZodString;
12
13
  createdByRole: z.ZodString;
13
14
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
15
16
  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<{
16
17
  filename: z.ZodString;
17
18
  originalFilename: z.ZodString;
@@ -138,7 +139,7 @@ export declare const EventDocument: z.ZodObject<{
138
139
  surname: string;
139
140
  middlename?: string | null | undefined;
140
141
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
141
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
142
+ 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<{
142
143
  filename: z.ZodString;
143
144
  originalFilename: z.ZodString;
144
145
  type: z.ZodString;
@@ -263,16 +264,17 @@ export declare const EventDocument: z.ZodObject<{
263
264
  firstname: string;
264
265
  surname: string;
265
266
  middlename?: string | null | undefined;
266
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
267
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
267
268
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
268
- originalActionId: z.ZodOptional<z.ZodString>;
269
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
269
270
  }, {
270
271
  type: z.ZodLiteral<"CREATE">;
271
272
  }>, "strip", z.ZodTypeAny, {
272
273
  type: "CREATE";
273
- id: string;
274
+ id: string & z.BRAND<"UUID">;
274
275
  status: "Rejected" | "Requested" | "Accepted";
275
276
  transactionId: string;
277
+ createdByUserType: "system" | "user";
276
278
  createdAt: string;
277
279
  createdBy: string;
278
280
  createdByRole: string;
@@ -319,7 +321,7 @@ export declare const EventDocument: z.ZodObject<{
319
321
  originalFilename: string;
320
322
  }[] | [string, string] | null | undefined>;
321
323
  createdBySignature?: string | null | undefined;
322
- createdAtLocation?: string | null | undefined;
324
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
323
325
  annotation?: Record<string, string | number | boolean | {
324
326
  type: string;
325
327
  filename: string;
@@ -361,13 +363,14 @@ export declare const EventDocument: z.ZodObject<{
361
363
  option: string;
362
364
  filename: string;
363
365
  originalFilename: string;
364
- }[] | [string, string] | null | undefined> | undefined;
365
- originalActionId?: string | undefined;
366
+ }[] | [string, string] | null | undefined> | null | undefined;
367
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
366
368
  }, {
367
369
  type: "CREATE";
368
370
  id: string;
369
371
  status: "Rejected" | "Requested" | "Accepted";
370
372
  transactionId: string;
373
+ createdByUserType: "system" | "user";
371
374
  createdAt: string;
372
375
  createdBy: string;
373
376
  createdByRole: string;
@@ -456,16 +459,17 @@ export declare const EventDocument: z.ZodObject<{
456
459
  option: string;
457
460
  filename: string;
458
461
  originalFilename: string;
459
- }[] | [string, string] | null | undefined> | undefined;
460
- originalActionId?: string | undefined;
462
+ }[] | [string, string] | null | undefined> | null | undefined;
463
+ originalActionId?: string | null | undefined;
461
464
  }>, z.ZodObject<z.objectUtil.extendShape<{
462
- id: z.ZodString;
465
+ id: z.ZodBranded<z.ZodString, "UUID">;
463
466
  transactionId: z.ZodString;
467
+ createdByUserType: z.ZodEnum<["user", "system"]>;
464
468
  createdAt: z.ZodString;
465
469
  createdBy: z.ZodString;
466
470
  createdByRole: z.ZodString;
467
471
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
469
473
  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<{
470
474
  filename: z.ZodString;
471
475
  originalFilename: z.ZodString;
@@ -592,7 +596,7 @@ export declare const EventDocument: z.ZodObject<{
592
596
  surname: string;
593
597
  middlename?: string | null | undefined;
594
598
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
595
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
599
+ 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<{
596
600
  filename: z.ZodString;
597
601
  originalFilename: z.ZodString;
598
602
  type: z.ZodString;
@@ -717,16 +721,17 @@ export declare const EventDocument: z.ZodObject<{
717
721
  firstname: string;
718
722
  surname: string;
719
723
  middlename?: string | null | undefined;
720
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
724
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
721
725
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
722
- originalActionId: z.ZodOptional<z.ZodString>;
726
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
723
727
  }, {
724
728
  type: z.ZodLiteral<"VALIDATE">;
725
729
  }>, "strip", z.ZodTypeAny, {
726
730
  type: "VALIDATE";
727
- id: string;
731
+ id: string & z.BRAND<"UUID">;
728
732
  status: "Rejected" | "Requested" | "Accepted";
729
733
  transactionId: string;
734
+ createdByUserType: "system" | "user";
730
735
  createdAt: string;
731
736
  createdBy: string;
732
737
  createdByRole: string;
@@ -773,7 +778,7 @@ export declare const EventDocument: z.ZodObject<{
773
778
  originalFilename: string;
774
779
  }[] | [string, string] | null | undefined>;
775
780
  createdBySignature?: string | null | undefined;
776
- createdAtLocation?: string | null | undefined;
781
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
777
782
  annotation?: Record<string, string | number | boolean | {
778
783
  type: string;
779
784
  filename: string;
@@ -815,13 +820,14 @@ export declare const EventDocument: z.ZodObject<{
815
820
  option: string;
816
821
  filename: string;
817
822
  originalFilename: string;
818
- }[] | [string, string] | null | undefined> | undefined;
819
- originalActionId?: string | undefined;
823
+ }[] | [string, string] | null | undefined> | null | undefined;
824
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
820
825
  }, {
821
826
  type: "VALIDATE";
822
827
  id: string;
823
828
  status: "Rejected" | "Requested" | "Accepted";
824
829
  transactionId: string;
830
+ createdByUserType: "system" | "user";
825
831
  createdAt: string;
826
832
  createdBy: string;
827
833
  createdByRole: string;
@@ -910,16 +916,17 @@ export declare const EventDocument: z.ZodObject<{
910
916
  option: string;
911
917
  filename: string;
912
918
  originalFilename: string;
913
- }[] | [string, string] | null | undefined> | undefined;
914
- originalActionId?: string | undefined;
919
+ }[] | [string, string] | null | undefined> | null | undefined;
920
+ originalActionId?: string | null | undefined;
915
921
  }>, z.ZodObject<z.objectUtil.extendShape<{
916
- id: z.ZodString;
922
+ id: z.ZodBranded<z.ZodString, "UUID">;
917
923
  transactionId: z.ZodString;
924
+ createdByUserType: z.ZodEnum<["user", "system"]>;
918
925
  createdAt: z.ZodString;
919
926
  createdBy: z.ZodString;
920
927
  createdByRole: z.ZodString;
921
928
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
922
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
923
930
  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<{
924
931
  filename: z.ZodString;
925
932
  originalFilename: z.ZodString;
@@ -1046,7 +1053,7 @@ export declare const EventDocument: z.ZodObject<{
1046
1053
  surname: string;
1047
1054
  middlename?: string | null | undefined;
1048
1055
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1049
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1056
+ 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<{
1050
1057
  filename: z.ZodString;
1051
1058
  originalFilename: z.ZodString;
1052
1059
  type: z.ZodString;
@@ -1171,9 +1178,9 @@ export declare const EventDocument: z.ZodObject<{
1171
1178
  firstname: string;
1172
1179
  surname: string;
1173
1180
  middlename?: string | null | undefined;
1174
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1181
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1175
1182
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1176
- originalActionId: z.ZodOptional<z.ZodString>;
1183
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1177
1184
  }, {
1178
1185
  type: z.ZodLiteral<"REJECT">;
1179
1186
  reason: z.ZodObject<{
@@ -1188,13 +1195,14 @@ export declare const EventDocument: z.ZodObject<{
1188
1195
  }>;
1189
1196
  }>, "strip", z.ZodTypeAny, {
1190
1197
  type: "REJECT";
1191
- id: string;
1198
+ id: string & z.BRAND<"UUID">;
1192
1199
  status: "Rejected" | "Requested" | "Accepted";
1193
1200
  reason: {
1194
1201
  message: string;
1195
1202
  isDuplicate?: boolean | undefined;
1196
1203
  };
1197
1204
  transactionId: string;
1205
+ createdByUserType: "system" | "user";
1198
1206
  createdAt: string;
1199
1207
  createdBy: string;
1200
1208
  createdByRole: string;
@@ -1241,7 +1249,7 @@ export declare const EventDocument: z.ZodObject<{
1241
1249
  originalFilename: string;
1242
1250
  }[] | [string, string] | null | undefined>;
1243
1251
  createdBySignature?: string | null | undefined;
1244
- createdAtLocation?: string | null | undefined;
1252
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1245
1253
  annotation?: Record<string, string | number | boolean | {
1246
1254
  type: string;
1247
1255
  filename: string;
@@ -1283,8 +1291,8 @@ export declare const EventDocument: z.ZodObject<{
1283
1291
  option: string;
1284
1292
  filename: string;
1285
1293
  originalFilename: string;
1286
- }[] | [string, string] | null | undefined> | undefined;
1287
- originalActionId?: string | undefined;
1294
+ }[] | [string, string] | null | undefined> | null | undefined;
1295
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1288
1296
  }, {
1289
1297
  type: "REJECT";
1290
1298
  id: string;
@@ -1294,6 +1302,7 @@ export declare const EventDocument: z.ZodObject<{
1294
1302
  isDuplicate?: boolean | undefined;
1295
1303
  };
1296
1304
  transactionId: string;
1305
+ createdByUserType: "system" | "user";
1297
1306
  createdAt: string;
1298
1307
  createdBy: string;
1299
1308
  createdByRole: string;
@@ -1382,16 +1391,17 @@ export declare const EventDocument: z.ZodObject<{
1382
1391
  option: string;
1383
1392
  filename: string;
1384
1393
  originalFilename: string;
1385
- }[] | [string, string] | null | undefined> | undefined;
1386
- originalActionId?: string | undefined;
1394
+ }[] | [string, string] | null | undefined> | null | undefined;
1395
+ originalActionId?: string | null | undefined;
1387
1396
  }>, z.ZodObject<z.objectUtil.extendShape<{
1388
- id: z.ZodString;
1397
+ id: z.ZodBranded<z.ZodString, "UUID">;
1389
1398
  transactionId: z.ZodString;
1399
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1390
1400
  createdAt: z.ZodString;
1391
1401
  createdBy: z.ZodString;
1392
1402
  createdByRole: z.ZodString;
1393
1403
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1394
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1395
1405
  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<{
1396
1406
  filename: z.ZodString;
1397
1407
  originalFilename: z.ZodString;
@@ -1518,7 +1528,7 @@ export declare const EventDocument: z.ZodObject<{
1518
1528
  surname: string;
1519
1529
  middlename?: string | null | undefined;
1520
1530
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1521
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1531
+ 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<{
1522
1532
  filename: z.ZodString;
1523
1533
  originalFilename: z.ZodString;
1524
1534
  type: z.ZodString;
@@ -1643,16 +1653,17 @@ export declare const EventDocument: z.ZodObject<{
1643
1653
  firstname: string;
1644
1654
  surname: string;
1645
1655
  middlename?: string | null | undefined;
1646
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1656
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1647
1657
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1648
- originalActionId: z.ZodOptional<z.ZodString>;
1658
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1649
1659
  }, {
1650
1660
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
1651
1661
  }>, "strip", z.ZodTypeAny, {
1652
1662
  type: "MARKED_AS_DUPLICATE";
1653
- id: string;
1663
+ id: string & z.BRAND<"UUID">;
1654
1664
  status: "Rejected" | "Requested" | "Accepted";
1655
1665
  transactionId: string;
1666
+ createdByUserType: "system" | "user";
1656
1667
  createdAt: string;
1657
1668
  createdBy: string;
1658
1669
  createdByRole: string;
@@ -1699,7 +1710,7 @@ export declare const EventDocument: z.ZodObject<{
1699
1710
  originalFilename: string;
1700
1711
  }[] | [string, string] | null | undefined>;
1701
1712
  createdBySignature?: string | null | undefined;
1702
- createdAtLocation?: string | null | undefined;
1713
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1703
1714
  annotation?: Record<string, string | number | boolean | {
1704
1715
  type: string;
1705
1716
  filename: string;
@@ -1741,13 +1752,14 @@ export declare const EventDocument: z.ZodObject<{
1741
1752
  option: string;
1742
1753
  filename: string;
1743
1754
  originalFilename: string;
1744
- }[] | [string, string] | null | undefined> | undefined;
1745
- originalActionId?: string | undefined;
1755
+ }[] | [string, string] | null | undefined> | null | undefined;
1756
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1746
1757
  }, {
1747
1758
  type: "MARKED_AS_DUPLICATE";
1748
1759
  id: string;
1749
1760
  status: "Rejected" | "Requested" | "Accepted";
1750
1761
  transactionId: string;
1762
+ createdByUserType: "system" | "user";
1751
1763
  createdAt: string;
1752
1764
  createdBy: string;
1753
1765
  createdByRole: string;
@@ -1836,16 +1848,17 @@ export declare const EventDocument: z.ZodObject<{
1836
1848
  option: string;
1837
1849
  filename: string;
1838
1850
  originalFilename: string;
1839
- }[] | [string, string] | null | undefined> | undefined;
1840
- originalActionId?: string | undefined;
1851
+ }[] | [string, string] | null | undefined> | null | undefined;
1852
+ originalActionId?: string | null | undefined;
1841
1853
  }>, z.ZodObject<z.objectUtil.extendShape<{
1842
- id: z.ZodString;
1854
+ id: z.ZodBranded<z.ZodString, "UUID">;
1843
1855
  transactionId: z.ZodString;
1856
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1844
1857
  createdAt: z.ZodString;
1845
1858
  createdBy: z.ZodString;
1846
1859
  createdByRole: z.ZodString;
1847
1860
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1848
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1861
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1849
1862
  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<{
1850
1863
  filename: z.ZodString;
1851
1864
  originalFilename: z.ZodString;
@@ -1972,7 +1985,7 @@ export declare const EventDocument: z.ZodObject<{
1972
1985
  surname: string;
1973
1986
  middlename?: string | null | undefined;
1974
1987
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1975
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1988
+ 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<{
1976
1989
  filename: z.ZodString;
1977
1990
  originalFilename: z.ZodString;
1978
1991
  type: z.ZodString;
@@ -2097,9 +2110,9 @@ export declare const EventDocument: z.ZodObject<{
2097
2110
  firstname: string;
2098
2111
  surname: string;
2099
2112
  middlename?: string | null | undefined;
2100
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
2113
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2101
2114
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2102
- originalActionId: z.ZodOptional<z.ZodString>;
2115
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2103
2116
  }, {
2104
2117
  type: z.ZodLiteral<"ARCHIVE">;
2105
2118
  reason: z.ZodObject<{
@@ -2114,13 +2127,14 @@ export declare const EventDocument: z.ZodObject<{
2114
2127
  }>;
2115
2128
  }>, "strip", z.ZodTypeAny, {
2116
2129
  type: "ARCHIVE";
2117
- id: string;
2130
+ id: string & z.BRAND<"UUID">;
2118
2131
  status: "Rejected" | "Requested" | "Accepted";
2119
2132
  reason: {
2120
2133
  message: string;
2121
2134
  isDuplicate?: boolean | undefined;
2122
2135
  };
2123
2136
  transactionId: string;
2137
+ createdByUserType: "system" | "user";
2124
2138
  createdAt: string;
2125
2139
  createdBy: string;
2126
2140
  createdByRole: string;
@@ -2167,7 +2181,7 @@ export declare const EventDocument: z.ZodObject<{
2167
2181
  originalFilename: string;
2168
2182
  }[] | [string, string] | null | undefined>;
2169
2183
  createdBySignature?: string | null | undefined;
2170
- createdAtLocation?: string | null | undefined;
2184
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2171
2185
  annotation?: Record<string, string | number | boolean | {
2172
2186
  type: string;
2173
2187
  filename: string;
@@ -2209,8 +2223,8 @@ export declare const EventDocument: z.ZodObject<{
2209
2223
  option: string;
2210
2224
  filename: string;
2211
2225
  originalFilename: string;
2212
- }[] | [string, string] | null | undefined> | undefined;
2213
- originalActionId?: string | undefined;
2226
+ }[] | [string, string] | null | undefined> | null | undefined;
2227
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2214
2228
  }, {
2215
2229
  type: "ARCHIVE";
2216
2230
  id: string;
@@ -2220,6 +2234,7 @@ export declare const EventDocument: z.ZodObject<{
2220
2234
  isDuplicate?: boolean | undefined;
2221
2235
  };
2222
2236
  transactionId: string;
2237
+ createdByUserType: "system" | "user";
2223
2238
  createdAt: string;
2224
2239
  createdBy: string;
2225
2240
  createdByRole: string;
@@ -2308,16 +2323,17 @@ export declare const EventDocument: z.ZodObject<{
2308
2323
  option: string;
2309
2324
  filename: string;
2310
2325
  originalFilename: string;
2311
- }[] | [string, string] | null | undefined> | undefined;
2312
- originalActionId?: string | undefined;
2326
+ }[] | [string, string] | null | undefined> | null | undefined;
2327
+ originalActionId?: string | null | undefined;
2313
2328
  }>, z.ZodObject<z.objectUtil.extendShape<{
2314
- id: z.ZodString;
2329
+ id: z.ZodBranded<z.ZodString, "UUID">;
2315
2330
  transactionId: z.ZodString;
2331
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2316
2332
  createdAt: z.ZodString;
2317
2333
  createdBy: z.ZodString;
2318
2334
  createdByRole: z.ZodString;
2319
2335
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2320
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2336
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2321
2337
  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<{
2322
2338
  filename: z.ZodString;
2323
2339
  originalFilename: z.ZodString;
@@ -2444,7 +2460,7 @@ export declare const EventDocument: z.ZodObject<{
2444
2460
  surname: string;
2445
2461
  middlename?: string | null | undefined;
2446
2462
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
2447
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2463
+ 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<{
2448
2464
  filename: z.ZodString;
2449
2465
  originalFilename: z.ZodString;
2450
2466
  type: z.ZodString;
@@ -2569,16 +2585,17 @@ export declare const EventDocument: z.ZodObject<{
2569
2585
  firstname: string;
2570
2586
  surname: string;
2571
2587
  middlename?: string | null | undefined;
2572
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
2588
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2573
2589
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2574
- originalActionId: z.ZodOptional<z.ZodString>;
2590
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2575
2591
  }, {
2576
2592
  type: z.ZodLiteral<"NOTIFY">;
2577
2593
  }>, "strip", z.ZodTypeAny, {
2578
2594
  type: "NOTIFY";
2579
- id: string;
2595
+ id: string & z.BRAND<"UUID">;
2580
2596
  status: "Rejected" | "Requested" | "Accepted";
2581
2597
  transactionId: string;
2598
+ createdByUserType: "system" | "user";
2582
2599
  createdAt: string;
2583
2600
  createdBy: string;
2584
2601
  createdByRole: string;
@@ -2625,7 +2642,7 @@ export declare const EventDocument: z.ZodObject<{
2625
2642
  originalFilename: string;
2626
2643
  }[] | [string, string] | null | undefined>;
2627
2644
  createdBySignature?: string | null | undefined;
2628
- createdAtLocation?: string | null | undefined;
2645
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2629
2646
  annotation?: Record<string, string | number | boolean | {
2630
2647
  type: string;
2631
2648
  filename: string;
@@ -2667,13 +2684,14 @@ export declare const EventDocument: z.ZodObject<{
2667
2684
  option: string;
2668
2685
  filename: string;
2669
2686
  originalFilename: string;
2670
- }[] | [string, string] | null | undefined> | undefined;
2671
- originalActionId?: string | undefined;
2687
+ }[] | [string, string] | null | undefined> | null | undefined;
2688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2672
2689
  }, {
2673
2690
  type: "NOTIFY";
2674
2691
  id: string;
2675
2692
  status: "Rejected" | "Requested" | "Accepted";
2676
2693
  transactionId: string;
2694
+ createdByUserType: "system" | "user";
2677
2695
  createdAt: string;
2678
2696
  createdBy: string;
2679
2697
  createdByRole: string;
@@ -2762,16 +2780,17 @@ export declare const EventDocument: z.ZodObject<{
2762
2780
  option: string;
2763
2781
  filename: string;
2764
2782
  originalFilename: string;
2765
- }[] | [string, string] | null | undefined> | undefined;
2766
- originalActionId?: string | undefined;
2783
+ }[] | [string, string] | null | undefined> | null | undefined;
2784
+ originalActionId?: string | null | undefined;
2767
2785
  }>, z.ZodObject<z.objectUtil.extendShape<{
2768
- id: z.ZodString;
2786
+ id: z.ZodBranded<z.ZodString, "UUID">;
2769
2787
  transactionId: z.ZodString;
2788
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2770
2789
  createdAt: z.ZodString;
2771
2790
  createdBy: z.ZodString;
2772
2791
  createdByRole: z.ZodString;
2773
2792
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2774
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2775
2794
  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<{
2776
2795
  filename: z.ZodString;
2777
2796
  originalFilename: z.ZodString;
@@ -2898,7 +2917,7 @@ export declare const EventDocument: z.ZodObject<{
2898
2917
  surname: string;
2899
2918
  middlename?: string | null | undefined;
2900
2919
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
2901
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2920
+ 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<{
2902
2921
  filename: z.ZodString;
2903
2922
  originalFilename: z.ZodString;
2904
2923
  type: z.ZodString;
@@ -3023,17 +3042,18 @@ export declare const EventDocument: z.ZodObject<{
3023
3042
  firstname: string;
3024
3043
  surname: string;
3025
3044
  middlename?: string | null | undefined;
3026
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3045
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3027
3046
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3028
- originalActionId: z.ZodOptional<z.ZodString>;
3047
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3029
3048
  }, {
3030
3049
  type: z.ZodLiteral<"REGISTER">;
3031
3050
  registrationNumber: z.ZodOptional<z.ZodString>;
3032
3051
  }>, "strip", z.ZodTypeAny, {
3033
3052
  type: "REGISTER";
3034
- id: string;
3053
+ id: string & z.BRAND<"UUID">;
3035
3054
  status: "Rejected" | "Requested" | "Accepted";
3036
3055
  transactionId: string;
3056
+ createdByUserType: "system" | "user";
3037
3057
  createdAt: string;
3038
3058
  createdBy: string;
3039
3059
  createdByRole: string;
@@ -3080,7 +3100,7 @@ export declare const EventDocument: z.ZodObject<{
3080
3100
  originalFilename: string;
3081
3101
  }[] | [string, string] | null | undefined>;
3082
3102
  createdBySignature?: string | null | undefined;
3083
- createdAtLocation?: string | null | undefined;
3103
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3084
3104
  annotation?: Record<string, string | number | boolean | {
3085
3105
  type: string;
3086
3106
  filename: string;
@@ -3122,14 +3142,15 @@ export declare const EventDocument: z.ZodObject<{
3122
3142
  option: string;
3123
3143
  filename: string;
3124
3144
  originalFilename: string;
3125
- }[] | [string, string] | null | undefined> | undefined;
3126
- originalActionId?: string | undefined;
3145
+ }[] | [string, string] | null | undefined> | null | undefined;
3146
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3127
3147
  registrationNumber?: string | undefined;
3128
3148
  }, {
3129
3149
  type: "REGISTER";
3130
3150
  id: string;
3131
3151
  status: "Rejected" | "Requested" | "Accepted";
3132
3152
  transactionId: string;
3153
+ createdByUserType: "system" | "user";
3133
3154
  createdAt: string;
3134
3155
  createdBy: string;
3135
3156
  createdByRole: string;
@@ -3218,17 +3239,18 @@ export declare const EventDocument: z.ZodObject<{
3218
3239
  option: string;
3219
3240
  filename: string;
3220
3241
  originalFilename: string;
3221
- }[] | [string, string] | null | undefined> | undefined;
3222
- originalActionId?: string | undefined;
3242
+ }[] | [string, string] | null | undefined> | null | undefined;
3243
+ originalActionId?: string | null | undefined;
3223
3244
  registrationNumber?: string | undefined;
3224
3245
  }>, z.ZodObject<z.objectUtil.extendShape<{
3225
- id: z.ZodString;
3246
+ id: z.ZodBranded<z.ZodString, "UUID">;
3226
3247
  transactionId: z.ZodString;
3248
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3227
3249
  createdAt: z.ZodString;
3228
3250
  createdBy: z.ZodString;
3229
3251
  createdByRole: z.ZodString;
3230
3252
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3231
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3253
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3232
3254
  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<{
3233
3255
  filename: z.ZodString;
3234
3256
  originalFilename: z.ZodString;
@@ -3355,7 +3377,7 @@ export declare const EventDocument: z.ZodObject<{
3355
3377
  surname: string;
3356
3378
  middlename?: string | null | undefined;
3357
3379
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
3358
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3380
+ 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<{
3359
3381
  filename: z.ZodString;
3360
3382
  originalFilename: z.ZodString;
3361
3383
  type: z.ZodString;
@@ -3480,16 +3502,17 @@ export declare const EventDocument: z.ZodObject<{
3480
3502
  firstname: string;
3481
3503
  surname: string;
3482
3504
  middlename?: string | null | undefined;
3483
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3505
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3484
3506
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3485
- originalActionId: z.ZodOptional<z.ZodString>;
3507
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3486
3508
  }, {
3487
3509
  type: z.ZodLiteral<"DECLARE">;
3488
3510
  }>, "strip", z.ZodTypeAny, {
3489
3511
  type: "DECLARE";
3490
- id: string;
3512
+ id: string & z.BRAND<"UUID">;
3491
3513
  status: "Rejected" | "Requested" | "Accepted";
3492
3514
  transactionId: string;
3515
+ createdByUserType: "system" | "user";
3493
3516
  createdAt: string;
3494
3517
  createdBy: string;
3495
3518
  createdByRole: string;
@@ -3536,7 +3559,7 @@ export declare const EventDocument: z.ZodObject<{
3536
3559
  originalFilename: string;
3537
3560
  }[] | [string, string] | null | undefined>;
3538
3561
  createdBySignature?: string | null | undefined;
3539
- createdAtLocation?: string | null | undefined;
3562
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3540
3563
  annotation?: Record<string, string | number | boolean | {
3541
3564
  type: string;
3542
3565
  filename: string;
@@ -3578,13 +3601,14 @@ export declare const EventDocument: z.ZodObject<{
3578
3601
  option: string;
3579
3602
  filename: string;
3580
3603
  originalFilename: string;
3581
- }[] | [string, string] | null | undefined> | undefined;
3582
- originalActionId?: string | undefined;
3604
+ }[] | [string, string] | null | undefined> | null | undefined;
3605
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3583
3606
  }, {
3584
3607
  type: "DECLARE";
3585
3608
  id: string;
3586
3609
  status: "Rejected" | "Requested" | "Accepted";
3587
3610
  transactionId: string;
3611
+ createdByUserType: "system" | "user";
3588
3612
  createdAt: string;
3589
3613
  createdBy: string;
3590
3614
  createdByRole: string;
@@ -3673,16 +3697,17 @@ export declare const EventDocument: z.ZodObject<{
3673
3697
  option: string;
3674
3698
  filename: string;
3675
3699
  originalFilename: string;
3676
- }[] | [string, string] | null | undefined> | undefined;
3677
- originalActionId?: string | undefined;
3700
+ }[] | [string, string] | null | undefined> | null | undefined;
3701
+ originalActionId?: string | null | undefined;
3678
3702
  }>, z.ZodObject<z.objectUtil.extendShape<{
3679
- id: z.ZodString;
3703
+ id: z.ZodBranded<z.ZodString, "UUID">;
3680
3704
  transactionId: z.ZodString;
3705
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3681
3706
  createdAt: z.ZodString;
3682
3707
  createdBy: z.ZodString;
3683
3708
  createdByRole: z.ZodString;
3684
3709
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3685
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3710
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3686
3711
  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<{
3687
3712
  filename: z.ZodString;
3688
3713
  originalFilename: z.ZodString;
@@ -3809,7 +3834,7 @@ export declare const EventDocument: z.ZodObject<{
3809
3834
  surname: string;
3810
3835
  middlename?: string | null | undefined;
3811
3836
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
3812
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3837
+ 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<{
3813
3838
  filename: z.ZodString;
3814
3839
  originalFilename: z.ZodString;
3815
3840
  type: z.ZodString;
@@ -3934,17 +3959,18 @@ export declare const EventDocument: z.ZodObject<{
3934
3959
  firstname: string;
3935
3960
  surname: string;
3936
3961
  middlename?: string | null | undefined;
3937
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3962
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3938
3963
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3939
- originalActionId: z.ZodOptional<z.ZodString>;
3964
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3940
3965
  }, {
3941
3966
  type: z.ZodLiteral<"ASSIGN">;
3942
3967
  assignedTo: z.ZodString;
3943
3968
  }>, "strip", z.ZodTypeAny, {
3944
3969
  type: "ASSIGN";
3945
- id: string;
3970
+ id: string & z.BRAND<"UUID">;
3946
3971
  status: "Rejected" | "Requested" | "Accepted";
3947
3972
  transactionId: string;
3973
+ createdByUserType: "system" | "user";
3948
3974
  createdAt: string;
3949
3975
  createdBy: string;
3950
3976
  createdByRole: string;
@@ -3992,7 +4018,7 @@ export declare const EventDocument: z.ZodObject<{
3992
4018
  }[] | [string, string] | null | undefined>;
3993
4019
  assignedTo: string;
3994
4020
  createdBySignature?: string | null | undefined;
3995
- createdAtLocation?: string | null | undefined;
4021
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3996
4022
  annotation?: Record<string, string | number | boolean | {
3997
4023
  type: string;
3998
4024
  filename: string;
@@ -4034,13 +4060,14 @@ export declare const EventDocument: z.ZodObject<{
4034
4060
  option: string;
4035
4061
  filename: string;
4036
4062
  originalFilename: string;
4037
- }[] | [string, string] | null | undefined> | undefined;
4038
- originalActionId?: string | undefined;
4063
+ }[] | [string, string] | null | undefined> | null | undefined;
4064
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4039
4065
  }, {
4040
4066
  type: "ASSIGN";
4041
4067
  id: string;
4042
4068
  status: "Rejected" | "Requested" | "Accepted";
4043
4069
  transactionId: string;
4070
+ createdByUserType: "system" | "user";
4044
4071
  createdAt: string;
4045
4072
  createdBy: string;
4046
4073
  createdByRole: string;
@@ -4130,16 +4157,17 @@ export declare const EventDocument: z.ZodObject<{
4130
4157
  option: string;
4131
4158
  filename: string;
4132
4159
  originalFilename: string;
4133
- }[] | [string, string] | null | undefined> | undefined;
4134
- originalActionId?: string | undefined;
4160
+ }[] | [string, string] | null | undefined> | null | undefined;
4161
+ originalActionId?: string | null | undefined;
4135
4162
  }>, z.ZodObject<z.objectUtil.extendShape<{
4136
- id: z.ZodString;
4163
+ id: z.ZodBranded<z.ZodString, "UUID">;
4137
4164
  transactionId: z.ZodString;
4165
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4138
4166
  createdAt: z.ZodString;
4139
4167
  createdBy: z.ZodString;
4140
4168
  createdByRole: z.ZodString;
4141
4169
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4142
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4170
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4143
4171
  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<{
4144
4172
  filename: z.ZodString;
4145
4173
  originalFilename: z.ZodString;
@@ -4266,7 +4294,7 @@ export declare const EventDocument: z.ZodObject<{
4266
4294
  surname: string;
4267
4295
  middlename?: string | null | undefined;
4268
4296
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
4269
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4297
+ 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<{
4270
4298
  filename: z.ZodString;
4271
4299
  originalFilename: z.ZodString;
4272
4300
  type: z.ZodString;
@@ -4391,16 +4419,17 @@ export declare const EventDocument: z.ZodObject<{
4391
4419
  firstname: string;
4392
4420
  surname: string;
4393
4421
  middlename?: string | null | undefined;
4394
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
4422
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4395
4423
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4396
- originalActionId: z.ZodOptional<z.ZodString>;
4424
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4397
4425
  }, {
4398
4426
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
4399
4427
  }>, "strip", z.ZodTypeAny, {
4400
4428
  type: "REQUEST_CORRECTION";
4401
- id: string;
4429
+ id: string & z.BRAND<"UUID">;
4402
4430
  status: "Rejected" | "Requested" | "Accepted";
4403
4431
  transactionId: string;
4432
+ createdByUserType: "system" | "user";
4404
4433
  createdAt: string;
4405
4434
  createdBy: string;
4406
4435
  createdByRole: string;
@@ -4447,7 +4476,7 @@ export declare const EventDocument: z.ZodObject<{
4447
4476
  originalFilename: string;
4448
4477
  }[] | [string, string] | null | undefined>;
4449
4478
  createdBySignature?: string | null | undefined;
4450
- createdAtLocation?: string | null | undefined;
4479
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4451
4480
  annotation?: Record<string, string | number | boolean | {
4452
4481
  type: string;
4453
4482
  filename: string;
@@ -4489,13 +4518,14 @@ export declare const EventDocument: z.ZodObject<{
4489
4518
  option: string;
4490
4519
  filename: string;
4491
4520
  originalFilename: string;
4492
- }[] | [string, string] | null | undefined> | undefined;
4493
- originalActionId?: string | undefined;
4521
+ }[] | [string, string] | null | undefined> | null | undefined;
4522
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4494
4523
  }, {
4495
4524
  type: "REQUEST_CORRECTION";
4496
4525
  id: string;
4497
4526
  status: "Rejected" | "Requested" | "Accepted";
4498
4527
  transactionId: string;
4528
+ createdByUserType: "system" | "user";
4499
4529
  createdAt: string;
4500
4530
  createdBy: string;
4501
4531
  createdByRole: string;
@@ -4584,16 +4614,17 @@ export declare const EventDocument: z.ZodObject<{
4584
4614
  option: string;
4585
4615
  filename: string;
4586
4616
  originalFilename: string;
4587
- }[] | [string, string] | null | undefined> | undefined;
4588
- originalActionId?: string | undefined;
4617
+ }[] | [string, string] | null | undefined> | null | undefined;
4618
+ originalActionId?: string | null | undefined;
4589
4619
  }>, z.ZodObject<z.objectUtil.extendShape<{
4590
- id: z.ZodString;
4620
+ id: z.ZodBranded<z.ZodString, "UUID">;
4591
4621
  transactionId: z.ZodString;
4622
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4592
4623
  createdAt: z.ZodString;
4593
4624
  createdBy: z.ZodString;
4594
4625
  createdByRole: z.ZodString;
4595
4626
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4596
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4627
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4597
4628
  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<{
4598
4629
  filename: z.ZodString;
4599
4630
  originalFilename: z.ZodString;
@@ -4720,7 +4751,7 @@ export declare const EventDocument: z.ZodObject<{
4720
4751
  surname: string;
4721
4752
  middlename?: string | null | undefined;
4722
4753
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
4723
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4754
+ 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<{
4724
4755
  filename: z.ZodString;
4725
4756
  originalFilename: z.ZodString;
4726
4757
  type: z.ZodString;
@@ -4845,17 +4876,18 @@ export declare const EventDocument: z.ZodObject<{
4845
4876
  firstname: string;
4846
4877
  surname: string;
4847
4878
  middlename?: string | null | undefined;
4848
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
4879
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4849
4880
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4850
- originalActionId: z.ZodOptional<z.ZodString>;
4881
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4851
4882
  }, {
4852
4883
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
4853
4884
  requestId: z.ZodString;
4854
4885
  }>, "strip", z.ZodTypeAny, {
4855
4886
  type: "APPROVE_CORRECTION";
4856
- id: string;
4887
+ id: string & z.BRAND<"UUID">;
4857
4888
  status: "Rejected" | "Requested" | "Accepted";
4858
4889
  transactionId: string;
4890
+ createdByUserType: "system" | "user";
4859
4891
  createdAt: string;
4860
4892
  createdBy: string;
4861
4893
  createdByRole: string;
@@ -4903,7 +4935,7 @@ export declare const EventDocument: z.ZodObject<{
4903
4935
  }[] | [string, string] | null | undefined>;
4904
4936
  requestId: string;
4905
4937
  createdBySignature?: string | null | undefined;
4906
- createdAtLocation?: string | null | undefined;
4938
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4907
4939
  annotation?: Record<string, string | number | boolean | {
4908
4940
  type: string;
4909
4941
  filename: string;
@@ -4945,13 +4977,14 @@ export declare const EventDocument: z.ZodObject<{
4945
4977
  option: string;
4946
4978
  filename: string;
4947
4979
  originalFilename: string;
4948
- }[] | [string, string] | null | undefined> | undefined;
4949
- originalActionId?: string | undefined;
4980
+ }[] | [string, string] | null | undefined> | null | undefined;
4981
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4950
4982
  }, {
4951
4983
  type: "APPROVE_CORRECTION";
4952
4984
  id: string;
4953
4985
  status: "Rejected" | "Requested" | "Accepted";
4954
4986
  transactionId: string;
4987
+ createdByUserType: "system" | "user";
4955
4988
  createdAt: string;
4956
4989
  createdBy: string;
4957
4990
  createdByRole: string;
@@ -5041,16 +5074,17 @@ export declare const EventDocument: z.ZodObject<{
5041
5074
  option: string;
5042
5075
  filename: string;
5043
5076
  originalFilename: string;
5044
- }[] | [string, string] | null | undefined> | undefined;
5045
- originalActionId?: string | undefined;
5077
+ }[] | [string, string] | null | undefined> | null | undefined;
5078
+ originalActionId?: string | null | undefined;
5046
5079
  }>, z.ZodObject<z.objectUtil.extendShape<{
5047
- id: z.ZodString;
5080
+ id: z.ZodBranded<z.ZodString, "UUID">;
5048
5081
  transactionId: z.ZodString;
5082
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5049
5083
  createdAt: z.ZodString;
5050
5084
  createdBy: z.ZodString;
5051
5085
  createdByRole: z.ZodString;
5052
5086
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5053
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5087
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5054
5088
  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<{
5055
5089
  filename: z.ZodString;
5056
5090
  originalFilename: z.ZodString;
@@ -5177,7 +5211,7 @@ export declare const EventDocument: z.ZodObject<{
5177
5211
  surname: string;
5178
5212
  middlename?: string | null | undefined;
5179
5213
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5180
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5214
+ 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<{
5181
5215
  filename: z.ZodString;
5182
5216
  originalFilename: z.ZodString;
5183
5217
  type: z.ZodString;
@@ -5302,17 +5336,18 @@ export declare const EventDocument: z.ZodObject<{
5302
5336
  firstname: string;
5303
5337
  surname: string;
5304
5338
  middlename?: string | null | undefined;
5305
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5339
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5306
5340
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5307
- originalActionId: z.ZodOptional<z.ZodString>;
5341
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5308
5342
  }, {
5309
5343
  type: z.ZodLiteral<"REJECT_CORRECTION">;
5310
5344
  requestId: z.ZodString;
5311
5345
  }>, "strip", z.ZodTypeAny, {
5312
5346
  type: "REJECT_CORRECTION";
5313
- id: string;
5347
+ id: string & z.BRAND<"UUID">;
5314
5348
  status: "Rejected" | "Requested" | "Accepted";
5315
5349
  transactionId: string;
5350
+ createdByUserType: "system" | "user";
5316
5351
  createdAt: string;
5317
5352
  createdBy: string;
5318
5353
  createdByRole: string;
@@ -5360,7 +5395,7 @@ export declare const EventDocument: z.ZodObject<{
5360
5395
  }[] | [string, string] | null | undefined>;
5361
5396
  requestId: string;
5362
5397
  createdBySignature?: string | null | undefined;
5363
- createdAtLocation?: string | null | undefined;
5398
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5364
5399
  annotation?: Record<string, string | number | boolean | {
5365
5400
  type: string;
5366
5401
  filename: string;
@@ -5402,13 +5437,14 @@ export declare const EventDocument: z.ZodObject<{
5402
5437
  option: string;
5403
5438
  filename: string;
5404
5439
  originalFilename: string;
5405
- }[] | [string, string] | null | undefined> | undefined;
5406
- originalActionId?: string | undefined;
5440
+ }[] | [string, string] | null | undefined> | null | undefined;
5441
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5407
5442
  }, {
5408
5443
  type: "REJECT_CORRECTION";
5409
5444
  id: string;
5410
5445
  status: "Rejected" | "Requested" | "Accepted";
5411
5446
  transactionId: string;
5447
+ createdByUserType: "system" | "user";
5412
5448
  createdAt: string;
5413
5449
  createdBy: string;
5414
5450
  createdByRole: string;
@@ -5498,16 +5534,17 @@ export declare const EventDocument: z.ZodObject<{
5498
5534
  option: string;
5499
5535
  filename: string;
5500
5536
  originalFilename: string;
5501
- }[] | [string, string] | null | undefined> | undefined;
5502
- originalActionId?: string | undefined;
5537
+ }[] | [string, string] | null | undefined> | null | undefined;
5538
+ originalActionId?: string | null | undefined;
5503
5539
  }>, z.ZodObject<z.objectUtil.extendShape<{
5504
- id: z.ZodString;
5540
+ id: z.ZodBranded<z.ZodString, "UUID">;
5505
5541
  transactionId: z.ZodString;
5542
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5506
5543
  createdAt: z.ZodString;
5507
5544
  createdBy: z.ZodString;
5508
5545
  createdByRole: z.ZodString;
5509
5546
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5510
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5547
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5511
5548
  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<{
5512
5549
  filename: z.ZodString;
5513
5550
  originalFilename: z.ZodString;
@@ -5634,7 +5671,7 @@ export declare const EventDocument: z.ZodObject<{
5634
5671
  surname: string;
5635
5672
  middlename?: string | null | undefined;
5636
5673
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5637
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5674
+ 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<{
5638
5675
  filename: z.ZodString;
5639
5676
  originalFilename: z.ZodString;
5640
5677
  type: z.ZodString;
@@ -5759,17 +5796,17 @@ export declare const EventDocument: z.ZodObject<{
5759
5796
  firstname: string;
5760
5797
  surname: string;
5761
5798
  middlename?: string | null | undefined;
5762
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5799
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5763
5800
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5764
- originalActionId: z.ZodOptional<z.ZodString>;
5801
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5765
5802
  }, {
5766
5803
  type: z.ZodLiteral<"UNASSIGN">;
5767
- assignedTo: z.ZodLiteral<null>;
5768
5804
  }>, "strip", z.ZodTypeAny, {
5769
5805
  type: "UNASSIGN";
5770
- id: string;
5806
+ id: string & z.BRAND<"UUID">;
5771
5807
  status: "Rejected" | "Requested" | "Accepted";
5772
5808
  transactionId: string;
5809
+ createdByUserType: "system" | "user";
5773
5810
  createdAt: string;
5774
5811
  createdBy: string;
5775
5812
  createdByRole: string;
@@ -5815,9 +5852,8 @@ export declare const EventDocument: z.ZodObject<{
5815
5852
  filename: string;
5816
5853
  originalFilename: string;
5817
5854
  }[] | [string, string] | null | undefined>;
5818
- assignedTo: null;
5819
5855
  createdBySignature?: string | null | undefined;
5820
- createdAtLocation?: string | null | undefined;
5856
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5821
5857
  annotation?: Record<string, string | number | boolean | {
5822
5858
  type: string;
5823
5859
  filename: string;
@@ -5859,13 +5895,14 @@ export declare const EventDocument: z.ZodObject<{
5859
5895
  option: string;
5860
5896
  filename: string;
5861
5897
  originalFilename: string;
5862
- }[] | [string, string] | null | undefined> | undefined;
5863
- originalActionId?: string | undefined;
5898
+ }[] | [string, string] | null | undefined> | null | undefined;
5899
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5864
5900
  }, {
5865
5901
  type: "UNASSIGN";
5866
5902
  id: string;
5867
5903
  status: "Rejected" | "Requested" | "Accepted";
5868
5904
  transactionId: string;
5905
+ createdByUserType: "system" | "user";
5869
5906
  createdAt: string;
5870
5907
  createdBy: string;
5871
5908
  createdByRole: string;
@@ -5911,7 +5948,6 @@ export declare const EventDocument: z.ZodObject<{
5911
5948
  filename: string;
5912
5949
  originalFilename: string;
5913
5950
  }[] | [string, string] | null | undefined>;
5914
- assignedTo: null;
5915
5951
  createdBySignature?: string | null | undefined;
5916
5952
  createdAtLocation?: string | null | undefined;
5917
5953
  annotation?: Record<string, string | number | boolean | {
@@ -5955,16 +5991,17 @@ export declare const EventDocument: z.ZodObject<{
5955
5991
  option: string;
5956
5992
  filename: string;
5957
5993
  originalFilename: string;
5958
- }[] | [string, string] | null | undefined> | undefined;
5959
- originalActionId?: string | undefined;
5994
+ }[] | [string, string] | null | undefined> | null | undefined;
5995
+ originalActionId?: string | null | undefined;
5960
5996
  }>, z.ZodObject<z.objectUtil.extendShape<{
5961
- id: z.ZodString;
5997
+ id: z.ZodBranded<z.ZodString, "UUID">;
5962
5998
  transactionId: z.ZodString;
5999
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5963
6000
  createdAt: z.ZodString;
5964
6001
  createdBy: z.ZodString;
5965
6002
  createdByRole: z.ZodString;
5966
6003
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5967
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6004
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5968
6005
  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<{
5969
6006
  filename: z.ZodString;
5970
6007
  originalFilename: z.ZodString;
@@ -6091,7 +6128,7 @@ export declare const EventDocument: z.ZodObject<{
6091
6128
  surname: string;
6092
6129
  middlename?: string | null | undefined;
6093
6130
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6094
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6131
+ 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<{
6095
6132
  filename: z.ZodString;
6096
6133
  originalFilename: z.ZodString;
6097
6134
  type: z.ZodString;
@@ -6216,16 +6253,17 @@ export declare const EventDocument: z.ZodObject<{
6216
6253
  firstname: string;
6217
6254
  surname: string;
6218
6255
  middlename?: string | null | undefined;
6219
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6256
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6220
6257
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6221
- originalActionId: z.ZodOptional<z.ZodString>;
6258
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6222
6259
  }, {
6223
6260
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
6224
6261
  }>, "strip", z.ZodTypeAny, {
6225
6262
  type: "PRINT_CERTIFICATE";
6226
- id: string;
6263
+ id: string & z.BRAND<"UUID">;
6227
6264
  status: "Rejected" | "Requested" | "Accepted";
6228
6265
  transactionId: string;
6266
+ createdByUserType: "system" | "user";
6229
6267
  createdAt: string;
6230
6268
  createdBy: string;
6231
6269
  createdByRole: string;
@@ -6272,7 +6310,7 @@ export declare const EventDocument: z.ZodObject<{
6272
6310
  originalFilename: string;
6273
6311
  }[] | [string, string] | null | undefined>;
6274
6312
  createdBySignature?: string | null | undefined;
6275
- createdAtLocation?: string | null | undefined;
6313
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6276
6314
  annotation?: Record<string, string | number | boolean | {
6277
6315
  type: string;
6278
6316
  filename: string;
@@ -6314,13 +6352,14 @@ export declare const EventDocument: z.ZodObject<{
6314
6352
  option: string;
6315
6353
  filename: string;
6316
6354
  originalFilename: string;
6317
- }[] | [string, string] | null | undefined> | undefined;
6318
- originalActionId?: string | undefined;
6355
+ }[] | [string, string] | null | undefined> | null | undefined;
6356
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6319
6357
  }, {
6320
6358
  type: "PRINT_CERTIFICATE";
6321
6359
  id: string;
6322
6360
  status: "Rejected" | "Requested" | "Accepted";
6323
6361
  transactionId: string;
6362
+ createdByUserType: "system" | "user";
6324
6363
  createdAt: string;
6325
6364
  createdBy: string;
6326
6365
  createdByRole: string;
@@ -6409,16 +6448,17 @@ export declare const EventDocument: z.ZodObject<{
6409
6448
  option: string;
6410
6449
  filename: string;
6411
6450
  originalFilename: string;
6412
- }[] | [string, string] | null | undefined> | undefined;
6413
- originalActionId?: string | undefined;
6451
+ }[] | [string, string] | null | undefined> | null | undefined;
6452
+ originalActionId?: string | null | undefined;
6414
6453
  }>, z.ZodObject<z.objectUtil.extendShape<{
6415
- id: z.ZodString;
6454
+ id: z.ZodBranded<z.ZodString, "UUID">;
6416
6455
  transactionId: z.ZodString;
6456
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6417
6457
  createdAt: z.ZodString;
6418
6458
  createdBy: z.ZodString;
6419
6459
  createdByRole: z.ZodString;
6420
6460
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6421
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6461
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6422
6462
  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<{
6423
6463
  filename: z.ZodString;
6424
6464
  originalFilename: z.ZodString;
@@ -6545,7 +6585,7 @@ export declare const EventDocument: z.ZodObject<{
6545
6585
  surname: string;
6546
6586
  middlename?: string | null | undefined;
6547
6587
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6548
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6588
+ 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<{
6549
6589
  filename: z.ZodString;
6550
6590
  originalFilename: z.ZodString;
6551
6591
  type: z.ZodString;
@@ -6670,16 +6710,17 @@ export declare const EventDocument: z.ZodObject<{
6670
6710
  firstname: string;
6671
6711
  surname: string;
6672
6712
  middlename?: string | null | undefined;
6673
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6713
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6674
6714
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6675
- originalActionId: z.ZodOptional<z.ZodString>;
6715
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6676
6716
  }, {
6677
6717
  type: z.ZodLiteral<"READ">;
6678
6718
  }>, "strip", z.ZodTypeAny, {
6679
6719
  type: "READ";
6680
- id: string;
6720
+ id: string & z.BRAND<"UUID">;
6681
6721
  status: "Rejected" | "Requested" | "Accepted";
6682
6722
  transactionId: string;
6723
+ createdByUserType: "system" | "user";
6683
6724
  createdAt: string;
6684
6725
  createdBy: string;
6685
6726
  createdByRole: string;
@@ -6726,7 +6767,7 @@ export declare const EventDocument: z.ZodObject<{
6726
6767
  originalFilename: string;
6727
6768
  }[] | [string, string] | null | undefined>;
6728
6769
  createdBySignature?: string | null | undefined;
6729
- createdAtLocation?: string | null | undefined;
6770
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6730
6771
  annotation?: Record<string, string | number | boolean | {
6731
6772
  type: string;
6732
6773
  filename: string;
@@ -6768,13 +6809,14 @@ export declare const EventDocument: z.ZodObject<{
6768
6809
  option: string;
6769
6810
  filename: string;
6770
6811
  originalFilename: string;
6771
- }[] | [string, string] | null | undefined> | undefined;
6772
- originalActionId?: string | undefined;
6812
+ }[] | [string, string] | null | undefined> | null | undefined;
6813
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6773
6814
  }, {
6774
6815
  type: "READ";
6775
6816
  id: string;
6776
6817
  status: "Rejected" | "Requested" | "Accepted";
6777
6818
  transactionId: string;
6819
+ createdByUserType: "system" | "user";
6778
6820
  createdAt: string;
6779
6821
  createdBy: string;
6780
6822
  createdByRole: string;
@@ -6863,16 +6905,17 @@ export declare const EventDocument: z.ZodObject<{
6863
6905
  option: string;
6864
6906
  filename: string;
6865
6907
  originalFilename: string;
6866
- }[] | [string, string] | null | undefined> | undefined;
6867
- originalActionId?: string | undefined;
6908
+ }[] | [string, string] | null | undefined> | null | undefined;
6909
+ originalActionId?: string | null | undefined;
6868
6910
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
6869
- id: z.ZodString;
6911
+ id: z.ZodBranded<z.ZodString, "UUID">;
6870
6912
  transactionId: z.ZodString;
6913
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6871
6914
  createdAt: z.ZodString;
6872
6915
  createdBy: z.ZodString;
6873
6916
  createdByRole: z.ZodString;
6874
6917
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6875
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6918
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6876
6919
  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<{
6877
6920
  filename: z.ZodString;
6878
6921
  originalFilename: z.ZodString;
@@ -6999,7 +7042,7 @@ export declare const EventDocument: z.ZodObject<{
6999
7042
  surname: string;
7000
7043
  middlename?: string | null | undefined;
7001
7044
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
7002
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7045
+ 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<{
7003
7046
  filename: z.ZodString;
7004
7047
  originalFilename: z.ZodString;
7005
7048
  type: z.ZodString;
@@ -7124,46 +7167,49 @@ export declare const EventDocument: z.ZodObject<{
7124
7167
  firstname: string;
7125
7168
  surname: string;
7126
7169
  middlename?: string | null | undefined;
7127
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
7170
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
7128
7171
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7129
- originalActionId: z.ZodOptional<z.ZodString>;
7172
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7130
7173
  }, "declaration" | "annotation">, {
7131
7174
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7132
7175
  status: z.ZodLiteral<"Rejected">;
7133
7176
  }>, "strip", z.ZodTypeAny, {
7134
7177
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7135
- id: string;
7178
+ id: string & z.BRAND<"UUID">;
7136
7179
  status: "Rejected";
7137
7180
  transactionId: string;
7181
+ createdByUserType: "system" | "user";
7138
7182
  createdAt: string;
7139
7183
  createdBy: string;
7140
7184
  createdByRole: string;
7141
7185
  createdBySignature?: string | null | undefined;
7142
- createdAtLocation?: string | null | undefined;
7143
- originalActionId?: string | undefined;
7186
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7187
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7144
7188
  }, {
7145
7189
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7146
7190
  id: string;
7147
7191
  status: "Rejected";
7148
7192
  transactionId: string;
7193
+ createdByUserType: "system" | "user";
7149
7194
  createdAt: string;
7150
7195
  createdBy: string;
7151
7196
  createdByRole: string;
7152
7197
  createdBySignature?: string | null | undefined;
7153
7198
  createdAtLocation?: string | null | undefined;
7154
- originalActionId?: string | undefined;
7199
+ originalActionId?: string | null | undefined;
7155
7200
  }>]>, "many">;
7156
7201
  trackingId: z.ZodString;
7157
7202
  }, "strip", z.ZodTypeAny, {
7158
7203
  type: string;
7159
- id: string;
7204
+ id: string & z.BRAND<"UUID">;
7160
7205
  createdAt: string;
7161
7206
  updatedAt: string;
7162
7207
  actions: ({
7163
7208
  type: "ASSIGN";
7164
- id: string;
7209
+ id: string & z.BRAND<"UUID">;
7165
7210
  status: "Rejected" | "Requested" | "Accepted";
7166
7211
  transactionId: string;
7212
+ createdByUserType: "system" | "user";
7167
7213
  createdAt: string;
7168
7214
  createdBy: string;
7169
7215
  createdByRole: string;
@@ -7211,7 +7257,7 @@ export declare const EventDocument: z.ZodObject<{
7211
7257
  }[] | [string, string] | null | undefined>;
7212
7258
  assignedTo: string;
7213
7259
  createdBySignature?: string | null | undefined;
7214
- createdAtLocation?: string | null | undefined;
7260
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7215
7261
  annotation?: Record<string, string | number | boolean | {
7216
7262
  type: string;
7217
7263
  filename: string;
@@ -7253,13 +7299,14 @@ export declare const EventDocument: z.ZodObject<{
7253
7299
  option: string;
7254
7300
  filename: string;
7255
7301
  originalFilename: string;
7256
- }[] | [string, string] | null | undefined> | undefined;
7257
- originalActionId?: string | undefined;
7302
+ }[] | [string, string] | null | undefined> | null | undefined;
7303
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7258
7304
  } | {
7259
7305
  type: "UNASSIGN";
7260
- id: string;
7306
+ id: string & z.BRAND<"UUID">;
7261
7307
  status: "Rejected" | "Requested" | "Accepted";
7262
7308
  transactionId: string;
7309
+ createdByUserType: "system" | "user";
7263
7310
  createdAt: string;
7264
7311
  createdBy: string;
7265
7312
  createdByRole: string;
@@ -7305,9 +7352,8 @@ export declare const EventDocument: z.ZodObject<{
7305
7352
  filename: string;
7306
7353
  originalFilename: string;
7307
7354
  }[] | [string, string] | null | undefined>;
7308
- assignedTo: null;
7309
7355
  createdBySignature?: string | null | undefined;
7310
- createdAtLocation?: string | null | undefined;
7356
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7311
7357
  annotation?: Record<string, string | number | boolean | {
7312
7358
  type: string;
7313
7359
  filename: string;
@@ -7349,13 +7395,14 @@ export declare const EventDocument: z.ZodObject<{
7349
7395
  option: string;
7350
7396
  filename: string;
7351
7397
  originalFilename: string;
7352
- }[] | [string, string] | null | undefined> | undefined;
7353
- originalActionId?: string | undefined;
7398
+ }[] | [string, string] | null | undefined> | null | undefined;
7399
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7354
7400
  } | {
7355
7401
  type: "REGISTER";
7356
- id: string;
7402
+ id: string & z.BRAND<"UUID">;
7357
7403
  status: "Rejected" | "Requested" | "Accepted";
7358
7404
  transactionId: string;
7405
+ createdByUserType: "system" | "user";
7359
7406
  createdAt: string;
7360
7407
  createdBy: string;
7361
7408
  createdByRole: string;
@@ -7402,7 +7449,7 @@ export declare const EventDocument: z.ZodObject<{
7402
7449
  originalFilename: string;
7403
7450
  }[] | [string, string] | null | undefined>;
7404
7451
  createdBySignature?: string | null | undefined;
7405
- createdAtLocation?: string | null | undefined;
7452
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7406
7453
  annotation?: Record<string, string | number | boolean | {
7407
7454
  type: string;
7408
7455
  filename: string;
@@ -7444,14 +7491,15 @@ export declare const EventDocument: z.ZodObject<{
7444
7491
  option: string;
7445
7492
  filename: string;
7446
7493
  originalFilename: string;
7447
- }[] | [string, string] | null | undefined> | undefined;
7448
- originalActionId?: string | undefined;
7494
+ }[] | [string, string] | null | undefined> | null | undefined;
7495
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7449
7496
  registrationNumber?: string | undefined;
7450
7497
  } | {
7451
7498
  type: "DECLARE";
7452
- id: string;
7499
+ id: string & z.BRAND<"UUID">;
7453
7500
  status: "Rejected" | "Requested" | "Accepted";
7454
7501
  transactionId: string;
7502
+ createdByUserType: "system" | "user";
7455
7503
  createdAt: string;
7456
7504
  createdBy: string;
7457
7505
  createdByRole: string;
@@ -7498,7 +7546,7 @@ export declare const EventDocument: z.ZodObject<{
7498
7546
  originalFilename: string;
7499
7547
  }[] | [string, string] | null | undefined>;
7500
7548
  createdBySignature?: string | null | undefined;
7501
- createdAtLocation?: string | null | undefined;
7549
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7502
7550
  annotation?: Record<string, string | number | boolean | {
7503
7551
  type: string;
7504
7552
  filename: string;
@@ -7540,13 +7588,14 @@ export declare const EventDocument: z.ZodObject<{
7540
7588
  option: string;
7541
7589
  filename: string;
7542
7590
  originalFilename: string;
7543
- }[] | [string, string] | null | undefined> | undefined;
7544
- originalActionId?: string | undefined;
7591
+ }[] | [string, string] | null | undefined> | null | undefined;
7592
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7545
7593
  } | {
7546
7594
  type: "VALIDATE";
7547
- id: string;
7595
+ id: string & z.BRAND<"UUID">;
7548
7596
  status: "Rejected" | "Requested" | "Accepted";
7549
7597
  transactionId: string;
7598
+ createdByUserType: "system" | "user";
7550
7599
  createdAt: string;
7551
7600
  createdBy: string;
7552
7601
  createdByRole: string;
@@ -7593,7 +7642,7 @@ export declare const EventDocument: z.ZodObject<{
7593
7642
  originalFilename: string;
7594
7643
  }[] | [string, string] | null | undefined>;
7595
7644
  createdBySignature?: string | null | undefined;
7596
- createdAtLocation?: string | null | undefined;
7645
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7597
7646
  annotation?: Record<string, string | number | boolean | {
7598
7647
  type: string;
7599
7648
  filename: string;
@@ -7635,17 +7684,18 @@ export declare const EventDocument: z.ZodObject<{
7635
7684
  option: string;
7636
7685
  filename: string;
7637
7686
  originalFilename: string;
7638
- }[] | [string, string] | null | undefined> | undefined;
7639
- originalActionId?: string | undefined;
7687
+ }[] | [string, string] | null | undefined> | null | undefined;
7688
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7640
7689
  } | {
7641
7690
  type: "REJECT";
7642
- id: string;
7691
+ id: string & z.BRAND<"UUID">;
7643
7692
  status: "Rejected" | "Requested" | "Accepted";
7644
7693
  reason: {
7645
7694
  message: string;
7646
7695
  isDuplicate?: boolean | undefined;
7647
7696
  };
7648
7697
  transactionId: string;
7698
+ createdByUserType: "system" | "user";
7649
7699
  createdAt: string;
7650
7700
  createdBy: string;
7651
7701
  createdByRole: string;
@@ -7692,7 +7742,7 @@ export declare const EventDocument: z.ZodObject<{
7692
7742
  originalFilename: string;
7693
7743
  }[] | [string, string] | null | undefined>;
7694
7744
  createdBySignature?: string | null | undefined;
7695
- createdAtLocation?: string | null | undefined;
7745
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7696
7746
  annotation?: Record<string, string | number | boolean | {
7697
7747
  type: string;
7698
7748
  filename: string;
@@ -7734,13 +7784,14 @@ export declare const EventDocument: z.ZodObject<{
7734
7784
  option: string;
7735
7785
  filename: string;
7736
7786
  originalFilename: string;
7737
- }[] | [string, string] | null | undefined> | undefined;
7738
- originalActionId?: string | undefined;
7787
+ }[] | [string, string] | null | undefined> | null | undefined;
7788
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7739
7789
  } | {
7740
7790
  type: "MARKED_AS_DUPLICATE";
7741
- id: string;
7791
+ id: string & z.BRAND<"UUID">;
7742
7792
  status: "Rejected" | "Requested" | "Accepted";
7743
7793
  transactionId: string;
7794
+ createdByUserType: "system" | "user";
7744
7795
  createdAt: string;
7745
7796
  createdBy: string;
7746
7797
  createdByRole: string;
@@ -7787,7 +7838,7 @@ export declare const EventDocument: z.ZodObject<{
7787
7838
  originalFilename: string;
7788
7839
  }[] | [string, string] | null | undefined>;
7789
7840
  createdBySignature?: string | null | undefined;
7790
- createdAtLocation?: string | null | undefined;
7841
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7791
7842
  annotation?: Record<string, string | number | boolean | {
7792
7843
  type: string;
7793
7844
  filename: string;
@@ -7829,17 +7880,18 @@ export declare const EventDocument: z.ZodObject<{
7829
7880
  option: string;
7830
7881
  filename: string;
7831
7882
  originalFilename: string;
7832
- }[] | [string, string] | null | undefined> | undefined;
7833
- originalActionId?: string | undefined;
7883
+ }[] | [string, string] | null | undefined> | null | undefined;
7884
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7834
7885
  } | {
7835
7886
  type: "ARCHIVE";
7836
- id: string;
7887
+ id: string & z.BRAND<"UUID">;
7837
7888
  status: "Rejected" | "Requested" | "Accepted";
7838
7889
  reason: {
7839
7890
  message: string;
7840
7891
  isDuplicate?: boolean | undefined;
7841
7892
  };
7842
7893
  transactionId: string;
7894
+ createdByUserType: "system" | "user";
7843
7895
  createdAt: string;
7844
7896
  createdBy: string;
7845
7897
  createdByRole: string;
@@ -7886,7 +7938,7 @@ export declare const EventDocument: z.ZodObject<{
7886
7938
  originalFilename: string;
7887
7939
  }[] | [string, string] | null | undefined>;
7888
7940
  createdBySignature?: string | null | undefined;
7889
- createdAtLocation?: string | null | undefined;
7941
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7890
7942
  annotation?: Record<string, string | number | boolean | {
7891
7943
  type: string;
7892
7944
  filename: string;
@@ -7928,13 +7980,14 @@ export declare const EventDocument: z.ZodObject<{
7928
7980
  option: string;
7929
7981
  filename: string;
7930
7982
  originalFilename: string;
7931
- }[] | [string, string] | null | undefined> | undefined;
7932
- originalActionId?: string | undefined;
7983
+ }[] | [string, string] | null | undefined> | null | undefined;
7984
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7933
7985
  } | {
7934
7986
  type: "CREATE";
7935
- id: string;
7987
+ id: string & z.BRAND<"UUID">;
7936
7988
  status: "Rejected" | "Requested" | "Accepted";
7937
7989
  transactionId: string;
7990
+ createdByUserType: "system" | "user";
7938
7991
  createdAt: string;
7939
7992
  createdBy: string;
7940
7993
  createdByRole: string;
@@ -7981,7 +8034,7 @@ export declare const EventDocument: z.ZodObject<{
7981
8034
  originalFilename: string;
7982
8035
  }[] | [string, string] | null | undefined>;
7983
8036
  createdBySignature?: string | null | undefined;
7984
- createdAtLocation?: string | null | undefined;
8037
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7985
8038
  annotation?: Record<string, string | number | boolean | {
7986
8039
  type: string;
7987
8040
  filename: string;
@@ -8023,13 +8076,14 @@ export declare const EventDocument: z.ZodObject<{
8023
8076
  option: string;
8024
8077
  filename: string;
8025
8078
  originalFilename: string;
8026
- }[] | [string, string] | null | undefined> | undefined;
8027
- originalActionId?: string | undefined;
8079
+ }[] | [string, string] | null | undefined> | null | undefined;
8080
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8028
8081
  } | {
8029
8082
  type: "NOTIFY";
8030
- id: string;
8083
+ id: string & z.BRAND<"UUID">;
8031
8084
  status: "Rejected" | "Requested" | "Accepted";
8032
8085
  transactionId: string;
8086
+ createdByUserType: "system" | "user";
8033
8087
  createdAt: string;
8034
8088
  createdBy: string;
8035
8089
  createdByRole: string;
@@ -8076,7 +8130,7 @@ export declare const EventDocument: z.ZodObject<{
8076
8130
  originalFilename: string;
8077
8131
  }[] | [string, string] | null | undefined>;
8078
8132
  createdBySignature?: string | null | undefined;
8079
- createdAtLocation?: string | null | undefined;
8133
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8080
8134
  annotation?: Record<string, string | number | boolean | {
8081
8135
  type: string;
8082
8136
  filename: string;
@@ -8118,13 +8172,14 @@ export declare const EventDocument: z.ZodObject<{
8118
8172
  option: string;
8119
8173
  filename: string;
8120
8174
  originalFilename: string;
8121
- }[] | [string, string] | null | undefined> | undefined;
8122
- originalActionId?: string | undefined;
8175
+ }[] | [string, string] | null | undefined> | null | undefined;
8176
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8123
8177
  } | {
8124
8178
  type: "PRINT_CERTIFICATE";
8125
- id: string;
8179
+ id: string & z.BRAND<"UUID">;
8126
8180
  status: "Rejected" | "Requested" | "Accepted";
8127
8181
  transactionId: string;
8182
+ createdByUserType: "system" | "user";
8128
8183
  createdAt: string;
8129
8184
  createdBy: string;
8130
8185
  createdByRole: string;
@@ -8171,7 +8226,7 @@ export declare const EventDocument: z.ZodObject<{
8171
8226
  originalFilename: string;
8172
8227
  }[] | [string, string] | null | undefined>;
8173
8228
  createdBySignature?: string | null | undefined;
8174
- createdAtLocation?: string | null | undefined;
8229
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8175
8230
  annotation?: Record<string, string | number | boolean | {
8176
8231
  type: string;
8177
8232
  filename: string;
@@ -8213,13 +8268,14 @@ export declare const EventDocument: z.ZodObject<{
8213
8268
  option: string;
8214
8269
  filename: string;
8215
8270
  originalFilename: string;
8216
- }[] | [string, string] | null | undefined> | undefined;
8217
- originalActionId?: string | undefined;
8271
+ }[] | [string, string] | null | undefined> | null | undefined;
8272
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8218
8273
  } | {
8219
8274
  type: "REQUEST_CORRECTION";
8220
- id: string;
8275
+ id: string & z.BRAND<"UUID">;
8221
8276
  status: "Rejected" | "Requested" | "Accepted";
8222
8277
  transactionId: string;
8278
+ createdByUserType: "system" | "user";
8223
8279
  createdAt: string;
8224
8280
  createdBy: string;
8225
8281
  createdByRole: string;
@@ -8266,7 +8322,7 @@ export declare const EventDocument: z.ZodObject<{
8266
8322
  originalFilename: string;
8267
8323
  }[] | [string, string] | null | undefined>;
8268
8324
  createdBySignature?: string | null | undefined;
8269
- createdAtLocation?: string | null | undefined;
8325
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8270
8326
  annotation?: Record<string, string | number | boolean | {
8271
8327
  type: string;
8272
8328
  filename: string;
@@ -8308,13 +8364,14 @@ export declare const EventDocument: z.ZodObject<{
8308
8364
  option: string;
8309
8365
  filename: string;
8310
8366
  originalFilename: string;
8311
- }[] | [string, string] | null | undefined> | undefined;
8312
- originalActionId?: string | undefined;
8367
+ }[] | [string, string] | null | undefined> | null | undefined;
8368
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8313
8369
  } | {
8314
8370
  type: "APPROVE_CORRECTION";
8315
- id: string;
8371
+ id: string & z.BRAND<"UUID">;
8316
8372
  status: "Rejected" | "Requested" | "Accepted";
8317
8373
  transactionId: string;
8374
+ createdByUserType: "system" | "user";
8318
8375
  createdAt: string;
8319
8376
  createdBy: string;
8320
8377
  createdByRole: string;
@@ -8362,7 +8419,7 @@ export declare const EventDocument: z.ZodObject<{
8362
8419
  }[] | [string, string] | null | undefined>;
8363
8420
  requestId: string;
8364
8421
  createdBySignature?: string | null | undefined;
8365
- createdAtLocation?: string | null | undefined;
8422
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8366
8423
  annotation?: Record<string, string | number | boolean | {
8367
8424
  type: string;
8368
8425
  filename: string;
@@ -8404,13 +8461,14 @@ export declare const EventDocument: z.ZodObject<{
8404
8461
  option: string;
8405
8462
  filename: string;
8406
8463
  originalFilename: string;
8407
- }[] | [string, string] | null | undefined> | undefined;
8408
- originalActionId?: string | undefined;
8464
+ }[] | [string, string] | null | undefined> | null | undefined;
8465
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8409
8466
  } | {
8410
8467
  type: "REJECT_CORRECTION";
8411
- id: string;
8468
+ id: string & z.BRAND<"UUID">;
8412
8469
  status: "Rejected" | "Requested" | "Accepted";
8413
8470
  transactionId: string;
8471
+ createdByUserType: "system" | "user";
8414
8472
  createdAt: string;
8415
8473
  createdBy: string;
8416
8474
  createdByRole: string;
@@ -8458,7 +8516,7 @@ export declare const EventDocument: z.ZodObject<{
8458
8516
  }[] | [string, string] | null | undefined>;
8459
8517
  requestId: string;
8460
8518
  createdBySignature?: string | null | undefined;
8461
- createdAtLocation?: string | null | undefined;
8519
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8462
8520
  annotation?: Record<string, string | number | boolean | {
8463
8521
  type: string;
8464
8522
  filename: string;
@@ -8500,13 +8558,14 @@ export declare const EventDocument: z.ZodObject<{
8500
8558
  option: string;
8501
8559
  filename: string;
8502
8560
  originalFilename: string;
8503
- }[] | [string, string] | null | undefined> | undefined;
8504
- originalActionId?: string | undefined;
8561
+ }[] | [string, string] | null | undefined> | null | undefined;
8562
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8505
8563
  } | {
8506
8564
  type: "READ";
8507
- id: string;
8565
+ id: string & z.BRAND<"UUID">;
8508
8566
  status: "Rejected" | "Requested" | "Accepted";
8509
8567
  transactionId: string;
8568
+ createdByUserType: "system" | "user";
8510
8569
  createdAt: string;
8511
8570
  createdBy: string;
8512
8571
  createdByRole: string;
@@ -8553,7 +8612,7 @@ export declare const EventDocument: z.ZodObject<{
8553
8612
  originalFilename: string;
8554
8613
  }[] | [string, string] | null | undefined>;
8555
8614
  createdBySignature?: string | null | undefined;
8556
- createdAtLocation?: string | null | undefined;
8615
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8557
8616
  annotation?: Record<string, string | number | boolean | {
8558
8617
  type: string;
8559
8618
  filename: string;
@@ -8595,19 +8654,20 @@ export declare const EventDocument: z.ZodObject<{
8595
8654
  option: string;
8596
8655
  filename: string;
8597
8656
  originalFilename: string;
8598
- }[] | [string, string] | null | undefined> | undefined;
8599
- originalActionId?: string | undefined;
8657
+ }[] | [string, string] | null | undefined> | null | undefined;
8658
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8600
8659
  } | {
8601
8660
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8602
- id: string;
8661
+ id: string & z.BRAND<"UUID">;
8603
8662
  status: "Rejected";
8604
8663
  transactionId: string;
8664
+ createdByUserType: "system" | "user";
8605
8665
  createdAt: string;
8606
8666
  createdBy: string;
8607
8667
  createdByRole: string;
8608
8668
  createdBySignature?: string | null | undefined;
8609
- createdAtLocation?: string | null | undefined;
8610
- originalActionId?: string | undefined;
8669
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8670
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8611
8671
  })[];
8612
8672
  trackingId: string;
8613
8673
  }, {
@@ -8620,6 +8680,7 @@ export declare const EventDocument: z.ZodObject<{
8620
8680
  id: string;
8621
8681
  status: "Rejected" | "Requested" | "Accepted";
8622
8682
  transactionId: string;
8683
+ createdByUserType: "system" | "user";
8623
8684
  createdAt: string;
8624
8685
  createdBy: string;
8625
8686
  createdByRole: string;
@@ -8709,13 +8770,14 @@ export declare const EventDocument: z.ZodObject<{
8709
8770
  option: string;
8710
8771
  filename: string;
8711
8772
  originalFilename: string;
8712
- }[] | [string, string] | null | undefined> | undefined;
8713
- originalActionId?: string | undefined;
8773
+ }[] | [string, string] | null | undefined> | null | undefined;
8774
+ originalActionId?: string | null | undefined;
8714
8775
  } | {
8715
8776
  type: "UNASSIGN";
8716
8777
  id: string;
8717
8778
  status: "Rejected" | "Requested" | "Accepted";
8718
8779
  transactionId: string;
8780
+ createdByUserType: "system" | "user";
8719
8781
  createdAt: string;
8720
8782
  createdBy: string;
8721
8783
  createdByRole: string;
@@ -8761,7 +8823,6 @@ export declare const EventDocument: z.ZodObject<{
8761
8823
  filename: string;
8762
8824
  originalFilename: string;
8763
8825
  }[] | [string, string] | null | undefined>;
8764
- assignedTo: null;
8765
8826
  createdBySignature?: string | null | undefined;
8766
8827
  createdAtLocation?: string | null | undefined;
8767
8828
  annotation?: Record<string, string | number | boolean | {
@@ -8805,13 +8866,14 @@ export declare const EventDocument: z.ZodObject<{
8805
8866
  option: string;
8806
8867
  filename: string;
8807
8868
  originalFilename: string;
8808
- }[] | [string, string] | null | undefined> | undefined;
8809
- originalActionId?: string | undefined;
8869
+ }[] | [string, string] | null | undefined> | null | undefined;
8870
+ originalActionId?: string | null | undefined;
8810
8871
  } | {
8811
8872
  type: "REGISTER";
8812
8873
  id: string;
8813
8874
  status: "Rejected" | "Requested" | "Accepted";
8814
8875
  transactionId: string;
8876
+ createdByUserType: "system" | "user";
8815
8877
  createdAt: string;
8816
8878
  createdBy: string;
8817
8879
  createdByRole: string;
@@ -8900,14 +8962,15 @@ export declare const EventDocument: z.ZodObject<{
8900
8962
  option: string;
8901
8963
  filename: string;
8902
8964
  originalFilename: string;
8903
- }[] | [string, string] | null | undefined> | undefined;
8904
- originalActionId?: string | undefined;
8965
+ }[] | [string, string] | null | undefined> | null | undefined;
8966
+ originalActionId?: string | null | undefined;
8905
8967
  registrationNumber?: string | undefined;
8906
8968
  } | {
8907
8969
  type: "DECLARE";
8908
8970
  id: string;
8909
8971
  status: "Rejected" | "Requested" | "Accepted";
8910
8972
  transactionId: string;
8973
+ createdByUserType: "system" | "user";
8911
8974
  createdAt: string;
8912
8975
  createdBy: string;
8913
8976
  createdByRole: string;
@@ -8996,13 +9059,14 @@ export declare const EventDocument: z.ZodObject<{
8996
9059
  option: string;
8997
9060
  filename: string;
8998
9061
  originalFilename: string;
8999
- }[] | [string, string] | null | undefined> | undefined;
9000
- originalActionId?: string | undefined;
9062
+ }[] | [string, string] | null | undefined> | null | undefined;
9063
+ originalActionId?: string | null | undefined;
9001
9064
  } | {
9002
9065
  type: "VALIDATE";
9003
9066
  id: string;
9004
9067
  status: "Rejected" | "Requested" | "Accepted";
9005
9068
  transactionId: string;
9069
+ createdByUserType: "system" | "user";
9006
9070
  createdAt: string;
9007
9071
  createdBy: string;
9008
9072
  createdByRole: string;
@@ -9091,8 +9155,8 @@ export declare const EventDocument: z.ZodObject<{
9091
9155
  option: string;
9092
9156
  filename: string;
9093
9157
  originalFilename: string;
9094
- }[] | [string, string] | null | undefined> | undefined;
9095
- originalActionId?: string | undefined;
9158
+ }[] | [string, string] | null | undefined> | null | undefined;
9159
+ originalActionId?: string | null | undefined;
9096
9160
  } | {
9097
9161
  type: "REJECT";
9098
9162
  id: string;
@@ -9102,6 +9166,7 @@ export declare const EventDocument: z.ZodObject<{
9102
9166
  isDuplicate?: boolean | undefined;
9103
9167
  };
9104
9168
  transactionId: string;
9169
+ createdByUserType: "system" | "user";
9105
9170
  createdAt: string;
9106
9171
  createdBy: string;
9107
9172
  createdByRole: string;
@@ -9190,13 +9255,14 @@ export declare const EventDocument: z.ZodObject<{
9190
9255
  option: string;
9191
9256
  filename: string;
9192
9257
  originalFilename: string;
9193
- }[] | [string, string] | null | undefined> | undefined;
9194
- originalActionId?: string | undefined;
9258
+ }[] | [string, string] | null | undefined> | null | undefined;
9259
+ originalActionId?: string | null | undefined;
9195
9260
  } | {
9196
9261
  type: "MARKED_AS_DUPLICATE";
9197
9262
  id: string;
9198
9263
  status: "Rejected" | "Requested" | "Accepted";
9199
9264
  transactionId: string;
9265
+ createdByUserType: "system" | "user";
9200
9266
  createdAt: string;
9201
9267
  createdBy: string;
9202
9268
  createdByRole: string;
@@ -9285,8 +9351,8 @@ export declare const EventDocument: z.ZodObject<{
9285
9351
  option: string;
9286
9352
  filename: string;
9287
9353
  originalFilename: string;
9288
- }[] | [string, string] | null | undefined> | undefined;
9289
- originalActionId?: string | undefined;
9354
+ }[] | [string, string] | null | undefined> | null | undefined;
9355
+ originalActionId?: string | null | undefined;
9290
9356
  } | {
9291
9357
  type: "ARCHIVE";
9292
9358
  id: string;
@@ -9296,6 +9362,7 @@ export declare const EventDocument: z.ZodObject<{
9296
9362
  isDuplicate?: boolean | undefined;
9297
9363
  };
9298
9364
  transactionId: string;
9365
+ createdByUserType: "system" | "user";
9299
9366
  createdAt: string;
9300
9367
  createdBy: string;
9301
9368
  createdByRole: string;
@@ -9384,13 +9451,14 @@ export declare const EventDocument: z.ZodObject<{
9384
9451
  option: string;
9385
9452
  filename: string;
9386
9453
  originalFilename: string;
9387
- }[] | [string, string] | null | undefined> | undefined;
9388
- originalActionId?: string | undefined;
9454
+ }[] | [string, string] | null | undefined> | null | undefined;
9455
+ originalActionId?: string | null | undefined;
9389
9456
  } | {
9390
9457
  type: "CREATE";
9391
9458
  id: string;
9392
9459
  status: "Rejected" | "Requested" | "Accepted";
9393
9460
  transactionId: string;
9461
+ createdByUserType: "system" | "user";
9394
9462
  createdAt: string;
9395
9463
  createdBy: string;
9396
9464
  createdByRole: string;
@@ -9479,13 +9547,14 @@ export declare const EventDocument: z.ZodObject<{
9479
9547
  option: string;
9480
9548
  filename: string;
9481
9549
  originalFilename: string;
9482
- }[] | [string, string] | null | undefined> | undefined;
9483
- originalActionId?: string | undefined;
9550
+ }[] | [string, string] | null | undefined> | null | undefined;
9551
+ originalActionId?: string | null | undefined;
9484
9552
  } | {
9485
9553
  type: "NOTIFY";
9486
9554
  id: string;
9487
9555
  status: "Rejected" | "Requested" | "Accepted";
9488
9556
  transactionId: string;
9557
+ createdByUserType: "system" | "user";
9489
9558
  createdAt: string;
9490
9559
  createdBy: string;
9491
9560
  createdByRole: string;
@@ -9574,13 +9643,14 @@ export declare const EventDocument: z.ZodObject<{
9574
9643
  option: string;
9575
9644
  filename: string;
9576
9645
  originalFilename: string;
9577
- }[] | [string, string] | null | undefined> | undefined;
9578
- originalActionId?: string | undefined;
9646
+ }[] | [string, string] | null | undefined> | null | undefined;
9647
+ originalActionId?: string | null | undefined;
9579
9648
  } | {
9580
9649
  type: "PRINT_CERTIFICATE";
9581
9650
  id: string;
9582
9651
  status: "Rejected" | "Requested" | "Accepted";
9583
9652
  transactionId: string;
9653
+ createdByUserType: "system" | "user";
9584
9654
  createdAt: string;
9585
9655
  createdBy: string;
9586
9656
  createdByRole: string;
@@ -9669,13 +9739,14 @@ export declare const EventDocument: z.ZodObject<{
9669
9739
  option: string;
9670
9740
  filename: string;
9671
9741
  originalFilename: string;
9672
- }[] | [string, string] | null | undefined> | undefined;
9673
- originalActionId?: string | undefined;
9742
+ }[] | [string, string] | null | undefined> | null | undefined;
9743
+ originalActionId?: string | null | undefined;
9674
9744
  } | {
9675
9745
  type: "REQUEST_CORRECTION";
9676
9746
  id: string;
9677
9747
  status: "Rejected" | "Requested" | "Accepted";
9678
9748
  transactionId: string;
9749
+ createdByUserType: "system" | "user";
9679
9750
  createdAt: string;
9680
9751
  createdBy: string;
9681
9752
  createdByRole: string;
@@ -9764,13 +9835,14 @@ export declare const EventDocument: z.ZodObject<{
9764
9835
  option: string;
9765
9836
  filename: string;
9766
9837
  originalFilename: string;
9767
- }[] | [string, string] | null | undefined> | undefined;
9768
- originalActionId?: string | undefined;
9838
+ }[] | [string, string] | null | undefined> | null | undefined;
9839
+ originalActionId?: string | null | undefined;
9769
9840
  } | {
9770
9841
  type: "APPROVE_CORRECTION";
9771
9842
  id: string;
9772
9843
  status: "Rejected" | "Requested" | "Accepted";
9773
9844
  transactionId: string;
9845
+ createdByUserType: "system" | "user";
9774
9846
  createdAt: string;
9775
9847
  createdBy: string;
9776
9848
  createdByRole: string;
@@ -9860,13 +9932,14 @@ export declare const EventDocument: z.ZodObject<{
9860
9932
  option: string;
9861
9933
  filename: string;
9862
9934
  originalFilename: string;
9863
- }[] | [string, string] | null | undefined> | undefined;
9864
- originalActionId?: string | undefined;
9935
+ }[] | [string, string] | null | undefined> | null | undefined;
9936
+ originalActionId?: string | null | undefined;
9865
9937
  } | {
9866
9938
  type: "REJECT_CORRECTION";
9867
9939
  id: string;
9868
9940
  status: "Rejected" | "Requested" | "Accepted";
9869
9941
  transactionId: string;
9942
+ createdByUserType: "system" | "user";
9870
9943
  createdAt: string;
9871
9944
  createdBy: string;
9872
9945
  createdByRole: string;
@@ -9956,13 +10029,14 @@ export declare const EventDocument: z.ZodObject<{
9956
10029
  option: string;
9957
10030
  filename: string;
9958
10031
  originalFilename: string;
9959
- }[] | [string, string] | null | undefined> | undefined;
9960
- originalActionId?: string | undefined;
10032
+ }[] | [string, string] | null | undefined> | null | undefined;
10033
+ originalActionId?: string | null | undefined;
9961
10034
  } | {
9962
10035
  type: "READ";
9963
10036
  id: string;
9964
10037
  status: "Rejected" | "Requested" | "Accepted";
9965
10038
  transactionId: string;
10039
+ createdByUserType: "system" | "user";
9966
10040
  createdAt: string;
9967
10041
  createdBy: string;
9968
10042
  createdByRole: string;
@@ -10051,19 +10125,20 @@ export declare const EventDocument: z.ZodObject<{
10051
10125
  option: string;
10052
10126
  filename: string;
10053
10127
  originalFilename: string;
10054
- }[] | [string, string] | null | undefined> | undefined;
10055
- originalActionId?: string | undefined;
10128
+ }[] | [string, string] | null | undefined> | null | undefined;
10129
+ originalActionId?: string | null | undefined;
10056
10130
  } | {
10057
10131
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
10058
10132
  id: string;
10059
10133
  status: "Rejected";
10060
10134
  transactionId: string;
10135
+ createdByUserType: "system" | "user";
10061
10136
  createdAt: string;
10062
10137
  createdBy: string;
10063
10138
  createdByRole: string;
10064
10139
  createdBySignature?: string | null | undefined;
10065
10140
  createdAtLocation?: string | null | undefined;
10066
- originalActionId?: string | undefined;
10141
+ originalActionId?: string | null | undefined;
10067
10142
  })[];
10068
10143
  trackingId: string;
10069
10144
  }>;