@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.
@@ -278,13 +278,14 @@ export declare const ActionStatus: {
278
278
  };
279
279
  export type ActionStatus = keyof typeof ActionStatus;
280
280
  export declare const ActionBase: z.ZodObject<{
281
- id: z.ZodString;
281
+ id: z.ZodBranded<z.ZodString, "UUID">;
282
282
  transactionId: z.ZodString;
283
+ createdByUserType: z.ZodEnum<["user", "system"]>;
283
284
  createdAt: z.ZodString;
284
285
  createdBy: z.ZodString;
285
286
  createdByRole: z.ZodString;
286
287
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
288
289
  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<{
289
290
  filename: z.ZodString;
290
291
  originalFilename: z.ZodString;
@@ -411,7 +412,7 @@ export declare const ActionBase: z.ZodObject<{
411
412
  surname: string;
412
413
  middlename?: string | null | undefined;
413
414
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
414
- 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<{
415
+ 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<{
415
416
  filename: z.ZodString;
416
417
  originalFilename: z.ZodString;
417
418
  type: z.ZodString;
@@ -536,13 +537,14 @@ export declare const ActionBase: z.ZodObject<{
536
537
  firstname: string;
537
538
  surname: string;
538
539
  middlename?: string | null | undefined;
539
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
540
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
540
541
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
541
- originalActionId: z.ZodOptional<z.ZodString>;
542
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
542
543
  }, "strip", z.ZodTypeAny, {
543
- id: string;
544
+ id: string & z.BRAND<"UUID">;
544
545
  status: "Rejected" | "Requested" | "Accepted";
545
546
  transactionId: string;
547
+ createdByUserType: "system" | "user";
546
548
  createdAt: string;
547
549
  createdBy: string;
548
550
  createdByRole: string;
@@ -589,7 +591,7 @@ export declare const ActionBase: z.ZodObject<{
589
591
  originalFilename: string;
590
592
  }[] | [string, string] | null | undefined>;
591
593
  createdBySignature?: string | null | undefined;
592
- createdAtLocation?: string | null | undefined;
594
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
593
595
  annotation?: Record<string, string | number | boolean | {
594
596
  type: string;
595
597
  filename: string;
@@ -631,12 +633,13 @@ export declare const ActionBase: z.ZodObject<{
631
633
  option: string;
632
634
  filename: string;
633
635
  originalFilename: string;
634
- }[] | [string, string] | null | undefined> | undefined;
635
- originalActionId?: string | undefined;
636
+ }[] | [string, string] | null | undefined> | null | undefined;
637
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
636
638
  }, {
637
639
  id: string;
638
640
  status: "Rejected" | "Requested" | "Accepted";
639
641
  transactionId: string;
642
+ createdByUserType: "system" | "user";
640
643
  createdAt: string;
641
644
  createdBy: string;
642
645
  createdByRole: string;
@@ -725,18 +728,19 @@ export declare const ActionBase: z.ZodObject<{
725
728
  option: string;
726
729
  filename: string;
727
730
  originalFilename: string;
728
- }[] | [string, string] | null | undefined> | undefined;
729
- originalActionId?: string | undefined;
731
+ }[] | [string, string] | null | undefined> | null | undefined;
732
+ originalActionId?: string | null | undefined;
730
733
  }>;
731
734
  export type ActionBase = z.infer<typeof ActionBase>;
732
735
  export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
733
- id: z.ZodString;
736
+ id: z.ZodBranded<z.ZodString, "UUID">;
734
737
  transactionId: z.ZodString;
738
+ createdByUserType: z.ZodEnum<["user", "system"]>;
735
739
  createdAt: z.ZodString;
736
740
  createdBy: z.ZodString;
737
741
  createdByRole: z.ZodString;
738
742
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
740
744
  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<{
741
745
  filename: z.ZodString;
742
746
  originalFilename: z.ZodString;
@@ -863,7 +867,7 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
863
867
  surname: string;
864
868
  middlename?: string | null | undefined;
865
869
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
866
- 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<{
870
+ 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<{
867
871
  filename: z.ZodString;
868
872
  originalFilename: z.ZodString;
869
873
  type: z.ZodString;
@@ -988,17 +992,18 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
988
992
  firstname: string;
989
993
  surname: string;
990
994
  middlename?: string | null | undefined;
991
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
995
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
992
996
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
993
- originalActionId: z.ZodOptional<z.ZodString>;
997
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
994
998
  }, {
995
999
  type: z.ZodLiteral<"REGISTER">;
996
1000
  registrationNumber: z.ZodOptional<z.ZodString>;
997
1001
  }>, "strip", z.ZodTypeAny, {
998
1002
  type: "REGISTER";
999
- id: string;
1003
+ id: string & z.BRAND<"UUID">;
1000
1004
  status: "Rejected" | "Requested" | "Accepted";
1001
1005
  transactionId: string;
1006
+ createdByUserType: "system" | "user";
1002
1007
  createdAt: string;
1003
1008
  createdBy: string;
1004
1009
  createdByRole: string;
@@ -1045,7 +1050,7 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
1045
1050
  originalFilename: string;
1046
1051
  }[] | [string, string] | null | undefined>;
1047
1052
  createdBySignature?: string | null | undefined;
1048
- createdAtLocation?: string | null | undefined;
1053
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1049
1054
  annotation?: Record<string, string | number | boolean | {
1050
1055
  type: string;
1051
1056
  filename: string;
@@ -1087,14 +1092,15 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
1087
1092
  option: string;
1088
1093
  filename: string;
1089
1094
  originalFilename: string;
1090
- }[] | [string, string] | null | undefined> | undefined;
1091
- originalActionId?: string | undefined;
1095
+ }[] | [string, string] | null | undefined> | null | undefined;
1096
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1092
1097
  registrationNumber?: string | undefined;
1093
1098
  }, {
1094
1099
  type: "REGISTER";
1095
1100
  id: string;
1096
1101
  status: "Rejected" | "Requested" | "Accepted";
1097
1102
  transactionId: string;
1103
+ createdByUserType: "system" | "user";
1098
1104
  createdAt: string;
1099
1105
  createdBy: string;
1100
1106
  createdByRole: string;
@@ -1183,8 +1189,8 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
1183
1189
  option: string;
1184
1190
  filename: string;
1185
1191
  originalFilename: string;
1186
- }[] | [string, string] | null | undefined> | undefined;
1187
- originalActionId?: string | undefined;
1192
+ }[] | [string, string] | null | undefined> | null | undefined;
1193
+ originalActionId?: string | null | undefined;
1188
1194
  registrationNumber?: string | undefined;
1189
1195
  }>;
1190
1196
  export type RegisterAction = z.infer<typeof RegisterAction>;
@@ -1199,13 +1205,14 @@ export declare const RejectionReason: z.ZodObject<{
1199
1205
  isDuplicate?: boolean | undefined;
1200
1206
  }>;
1201
1207
  declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1202
- id: z.ZodString;
1208
+ id: z.ZodBranded<z.ZodString, "UUID">;
1203
1209
  transactionId: z.ZodString;
1210
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1204
1211
  createdAt: z.ZodString;
1205
1212
  createdBy: z.ZodString;
1206
1213
  createdByRole: z.ZodString;
1207
1214
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1208
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1215
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1209
1216
  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<{
1210
1217
  filename: z.ZodString;
1211
1218
  originalFilename: z.ZodString;
@@ -1332,7 +1339,7 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1332
1339
  surname: string;
1333
1340
  middlename?: string | null | undefined;
1334
1341
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1335
- 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<{
1342
+ 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<{
1336
1343
  filename: z.ZodString;
1337
1344
  originalFilename: z.ZodString;
1338
1345
  type: z.ZodString;
@@ -1457,16 +1464,17 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1457
1464
  firstname: string;
1458
1465
  surname: string;
1459
1466
  middlename?: string | null | undefined;
1460
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1467
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1461
1468
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1462
- originalActionId: z.ZodOptional<z.ZodString>;
1469
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1463
1470
  }, {
1464
1471
  type: z.ZodLiteral<"CREATE">;
1465
1472
  }>, "strip", z.ZodTypeAny, {
1466
1473
  type: "CREATE";
1467
- id: string;
1474
+ id: string & z.BRAND<"UUID">;
1468
1475
  status: "Rejected" | "Requested" | "Accepted";
1469
1476
  transactionId: string;
1477
+ createdByUserType: "system" | "user";
1470
1478
  createdAt: string;
1471
1479
  createdBy: string;
1472
1480
  createdByRole: string;
@@ -1513,7 +1521,7 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1513
1521
  originalFilename: string;
1514
1522
  }[] | [string, string] | null | undefined>;
1515
1523
  createdBySignature?: string | null | undefined;
1516
- createdAtLocation?: string | null | undefined;
1524
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1517
1525
  annotation?: Record<string, string | number | boolean | {
1518
1526
  type: string;
1519
1527
  filename: string;
@@ -1555,13 +1563,14 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1555
1563
  option: string;
1556
1564
  filename: string;
1557
1565
  originalFilename: string;
1558
- }[] | [string, string] | null | undefined> | undefined;
1559
- originalActionId?: string | undefined;
1566
+ }[] | [string, string] | null | undefined> | null | undefined;
1567
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1560
1568
  }, {
1561
1569
  type: "CREATE";
1562
1570
  id: string;
1563
1571
  status: "Rejected" | "Requested" | "Accepted";
1564
1572
  transactionId: string;
1573
+ createdByUserType: "system" | "user";
1565
1574
  createdAt: string;
1566
1575
  createdBy: string;
1567
1576
  createdByRole: string;
@@ -1650,17 +1659,18 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1650
1659
  option: string;
1651
1660
  filename: string;
1652
1661
  originalFilename: string;
1653
- }[] | [string, string] | null | undefined> | undefined;
1654
- originalActionId?: string | undefined;
1662
+ }[] | [string, string] | null | undefined> | null | undefined;
1663
+ originalActionId?: string | null | undefined;
1655
1664
  }>;
1656
1665
  export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
1657
- id: z.ZodString;
1666
+ id: z.ZodBranded<z.ZodString, "UUID">;
1658
1667
  transactionId: z.ZodString;
1668
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1659
1669
  createdAt: z.ZodString;
1660
1670
  createdBy: z.ZodString;
1661
1671
  createdByRole: z.ZodString;
1662
1672
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1663
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1673
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1664
1674
  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<{
1665
1675
  filename: z.ZodString;
1666
1676
  originalFilename: z.ZodString;
@@ -1787,7 +1797,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1787
1797
  surname: string;
1788
1798
  middlename?: string | null | undefined;
1789
1799
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1790
- 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<{
1800
+ 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<{
1791
1801
  filename: z.ZodString;
1792
1802
  originalFilename: z.ZodString;
1793
1803
  type: z.ZodString;
@@ -1912,16 +1922,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1912
1922
  firstname: string;
1913
1923
  surname: string;
1914
1924
  middlename?: string | null | undefined;
1915
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
1925
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
1916
1926
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1917
- originalActionId: z.ZodOptional<z.ZodString>;
1927
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1918
1928
  }, {
1919
1929
  type: z.ZodLiteral<"CREATE">;
1920
1930
  }>, "strip", z.ZodTypeAny, {
1921
1931
  type: "CREATE";
1922
- id: string;
1932
+ id: string & z.BRAND<"UUID">;
1923
1933
  status: "Rejected" | "Requested" | "Accepted";
1924
1934
  transactionId: string;
1935
+ createdByUserType: "system" | "user";
1925
1936
  createdAt: string;
1926
1937
  createdBy: string;
1927
1938
  createdByRole: string;
@@ -1968,7 +1979,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1968
1979
  originalFilename: string;
1969
1980
  }[] | [string, string] | null | undefined>;
1970
1981
  createdBySignature?: string | null | undefined;
1971
- createdAtLocation?: string | null | undefined;
1982
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1972
1983
  annotation?: Record<string, string | number | boolean | {
1973
1984
  type: string;
1974
1985
  filename: string;
@@ -2010,13 +2021,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2010
2021
  option: string;
2011
2022
  filename: string;
2012
2023
  originalFilename: string;
2013
- }[] | [string, string] | null | undefined> | undefined;
2014
- originalActionId?: string | undefined;
2024
+ }[] | [string, string] | null | undefined> | null | undefined;
2025
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2015
2026
  }, {
2016
2027
  type: "CREATE";
2017
2028
  id: string;
2018
2029
  status: "Rejected" | "Requested" | "Accepted";
2019
2030
  transactionId: string;
2031
+ createdByUserType: "system" | "user";
2020
2032
  createdAt: string;
2021
2033
  createdBy: string;
2022
2034
  createdByRole: string;
@@ -2105,16 +2117,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2105
2117
  option: string;
2106
2118
  filename: string;
2107
2119
  originalFilename: string;
2108
- }[] | [string, string] | null | undefined> | undefined;
2109
- originalActionId?: string | undefined;
2120
+ }[] | [string, string] | null | undefined> | null | undefined;
2121
+ originalActionId?: string | null | undefined;
2110
2122
  }>, z.ZodObject<z.objectUtil.extendShape<{
2111
- id: z.ZodString;
2123
+ id: z.ZodBranded<z.ZodString, "UUID">;
2112
2124
  transactionId: z.ZodString;
2125
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2113
2126
  createdAt: z.ZodString;
2114
2127
  createdBy: z.ZodString;
2115
2128
  createdByRole: z.ZodString;
2116
2129
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2117
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2130
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2118
2131
  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<{
2119
2132
  filename: z.ZodString;
2120
2133
  originalFilename: z.ZodString;
@@ -2241,7 +2254,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2241
2254
  surname: string;
2242
2255
  middlename?: string | null | undefined;
2243
2256
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
2244
- 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<{
2257
+ 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<{
2245
2258
  filename: z.ZodString;
2246
2259
  originalFilename: z.ZodString;
2247
2260
  type: z.ZodString;
@@ -2366,16 +2379,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2366
2379
  firstname: string;
2367
2380
  surname: string;
2368
2381
  middlename?: string | null | undefined;
2369
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
2382
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2370
2383
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2371
- originalActionId: z.ZodOptional<z.ZodString>;
2384
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2372
2385
  }, {
2373
2386
  type: z.ZodLiteral<"VALIDATE">;
2374
2387
  }>, "strip", z.ZodTypeAny, {
2375
2388
  type: "VALIDATE";
2376
- id: string;
2389
+ id: string & z.BRAND<"UUID">;
2377
2390
  status: "Rejected" | "Requested" | "Accepted";
2378
2391
  transactionId: string;
2392
+ createdByUserType: "system" | "user";
2379
2393
  createdAt: string;
2380
2394
  createdBy: string;
2381
2395
  createdByRole: string;
@@ -2422,7 +2436,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2422
2436
  originalFilename: string;
2423
2437
  }[] | [string, string] | null | undefined>;
2424
2438
  createdBySignature?: string | null | undefined;
2425
- createdAtLocation?: string | null | undefined;
2439
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2426
2440
  annotation?: Record<string, string | number | boolean | {
2427
2441
  type: string;
2428
2442
  filename: string;
@@ -2464,13 +2478,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2464
2478
  option: string;
2465
2479
  filename: string;
2466
2480
  originalFilename: string;
2467
- }[] | [string, string] | null | undefined> | undefined;
2468
- originalActionId?: string | undefined;
2481
+ }[] | [string, string] | null | undefined> | null | undefined;
2482
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2469
2483
  }, {
2470
2484
  type: "VALIDATE";
2471
2485
  id: string;
2472
2486
  status: "Rejected" | "Requested" | "Accepted";
2473
2487
  transactionId: string;
2488
+ createdByUserType: "system" | "user";
2474
2489
  createdAt: string;
2475
2490
  createdBy: string;
2476
2491
  createdByRole: string;
@@ -2559,16 +2574,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2559
2574
  option: string;
2560
2575
  filename: string;
2561
2576
  originalFilename: string;
2562
- }[] | [string, string] | null | undefined> | undefined;
2563
- originalActionId?: string | undefined;
2577
+ }[] | [string, string] | null | undefined> | null | undefined;
2578
+ originalActionId?: string | null | undefined;
2564
2579
  }>, z.ZodObject<z.objectUtil.extendShape<{
2565
- id: z.ZodString;
2580
+ id: z.ZodBranded<z.ZodString, "UUID">;
2566
2581
  transactionId: z.ZodString;
2582
+ createdByUserType: z.ZodEnum<["user", "system"]>;
2567
2583
  createdAt: z.ZodString;
2568
2584
  createdBy: z.ZodString;
2569
2585
  createdByRole: z.ZodString;
2570
2586
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2571
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2587
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2572
2588
  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<{
2573
2589
  filename: z.ZodString;
2574
2590
  originalFilename: z.ZodString;
@@ -2695,7 +2711,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2695
2711
  surname: string;
2696
2712
  middlename?: string | null | undefined;
2697
2713
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
2698
- 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<{
2714
+ 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<{
2699
2715
  filename: z.ZodString;
2700
2716
  originalFilename: z.ZodString;
2701
2717
  type: z.ZodString;
@@ -2820,9 +2836,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2820
2836
  firstname: string;
2821
2837
  surname: string;
2822
2838
  middlename?: string | null | undefined;
2823
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
2839
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2824
2840
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2825
- originalActionId: z.ZodOptional<z.ZodString>;
2841
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2826
2842
  }, {
2827
2843
  type: z.ZodLiteral<"REJECT">;
2828
2844
  reason: z.ZodObject<{
@@ -2837,13 +2853,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2837
2853
  }>;
2838
2854
  }>, "strip", z.ZodTypeAny, {
2839
2855
  type: "REJECT";
2840
- id: string;
2856
+ id: string & z.BRAND<"UUID">;
2841
2857
  status: "Rejected" | "Requested" | "Accepted";
2842
2858
  reason: {
2843
2859
  message: string;
2844
2860
  isDuplicate?: boolean | undefined;
2845
2861
  };
2846
2862
  transactionId: string;
2863
+ createdByUserType: "system" | "user";
2847
2864
  createdAt: string;
2848
2865
  createdBy: string;
2849
2866
  createdByRole: string;
@@ -2890,7 +2907,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2890
2907
  originalFilename: string;
2891
2908
  }[] | [string, string] | null | undefined>;
2892
2909
  createdBySignature?: string | null | undefined;
2893
- createdAtLocation?: string | null | undefined;
2910
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2894
2911
  annotation?: Record<string, string | number | boolean | {
2895
2912
  type: string;
2896
2913
  filename: string;
@@ -2932,8 +2949,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2932
2949
  option: string;
2933
2950
  filename: string;
2934
2951
  originalFilename: string;
2935
- }[] | [string, string] | null | undefined> | undefined;
2936
- originalActionId?: string | undefined;
2952
+ }[] | [string, string] | null | undefined> | null | undefined;
2953
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2937
2954
  }, {
2938
2955
  type: "REJECT";
2939
2956
  id: string;
@@ -2943,6 +2960,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2943
2960
  isDuplicate?: boolean | undefined;
2944
2961
  };
2945
2962
  transactionId: string;
2963
+ createdByUserType: "system" | "user";
2946
2964
  createdAt: string;
2947
2965
  createdBy: string;
2948
2966
  createdByRole: string;
@@ -3031,16 +3049,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3031
3049
  option: string;
3032
3050
  filename: string;
3033
3051
  originalFilename: string;
3034
- }[] | [string, string] | null | undefined> | undefined;
3035
- originalActionId?: string | undefined;
3052
+ }[] | [string, string] | null | undefined> | null | undefined;
3053
+ originalActionId?: string | null | undefined;
3036
3054
  }>, z.ZodObject<z.objectUtil.extendShape<{
3037
- id: z.ZodString;
3055
+ id: z.ZodBranded<z.ZodString, "UUID">;
3038
3056
  transactionId: z.ZodString;
3057
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3039
3058
  createdAt: z.ZodString;
3040
3059
  createdBy: z.ZodString;
3041
3060
  createdByRole: z.ZodString;
3042
3061
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3043
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3062
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3044
3063
  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<{
3045
3064
  filename: z.ZodString;
3046
3065
  originalFilename: z.ZodString;
@@ -3167,7 +3186,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3167
3186
  surname: string;
3168
3187
  middlename?: string | null | undefined;
3169
3188
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
3170
- 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<{
3189
+ 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<{
3171
3190
  filename: z.ZodString;
3172
3191
  originalFilename: z.ZodString;
3173
3192
  type: z.ZodString;
@@ -3292,16 +3311,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3292
3311
  firstname: string;
3293
3312
  surname: string;
3294
3313
  middlename?: string | null | undefined;
3295
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3314
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3296
3315
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3297
- originalActionId: z.ZodOptional<z.ZodString>;
3316
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3298
3317
  }, {
3299
3318
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
3300
3319
  }>, "strip", z.ZodTypeAny, {
3301
3320
  type: "MARKED_AS_DUPLICATE";
3302
- id: string;
3321
+ id: string & z.BRAND<"UUID">;
3303
3322
  status: "Rejected" | "Requested" | "Accepted";
3304
3323
  transactionId: string;
3324
+ createdByUserType: "system" | "user";
3305
3325
  createdAt: string;
3306
3326
  createdBy: string;
3307
3327
  createdByRole: string;
@@ -3348,7 +3368,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3348
3368
  originalFilename: string;
3349
3369
  }[] | [string, string] | null | undefined>;
3350
3370
  createdBySignature?: string | null | undefined;
3351
- createdAtLocation?: string | null | undefined;
3371
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3352
3372
  annotation?: Record<string, string | number | boolean | {
3353
3373
  type: string;
3354
3374
  filename: string;
@@ -3390,13 +3410,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3390
3410
  option: string;
3391
3411
  filename: string;
3392
3412
  originalFilename: string;
3393
- }[] | [string, string] | null | undefined> | undefined;
3394
- originalActionId?: string | undefined;
3413
+ }[] | [string, string] | null | undefined> | null | undefined;
3414
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3395
3415
  }, {
3396
3416
  type: "MARKED_AS_DUPLICATE";
3397
3417
  id: string;
3398
3418
  status: "Rejected" | "Requested" | "Accepted";
3399
3419
  transactionId: string;
3420
+ createdByUserType: "system" | "user";
3400
3421
  createdAt: string;
3401
3422
  createdBy: string;
3402
3423
  createdByRole: string;
@@ -3485,16 +3506,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3485
3506
  option: string;
3486
3507
  filename: string;
3487
3508
  originalFilename: string;
3488
- }[] | [string, string] | null | undefined> | undefined;
3489
- originalActionId?: string | undefined;
3509
+ }[] | [string, string] | null | undefined> | null | undefined;
3510
+ originalActionId?: string | null | undefined;
3490
3511
  }>, z.ZodObject<z.objectUtil.extendShape<{
3491
- id: z.ZodString;
3512
+ id: z.ZodBranded<z.ZodString, "UUID">;
3492
3513
  transactionId: z.ZodString;
3514
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3493
3515
  createdAt: z.ZodString;
3494
3516
  createdBy: z.ZodString;
3495
3517
  createdByRole: z.ZodString;
3496
3518
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3497
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3519
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3498
3520
  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<{
3499
3521
  filename: z.ZodString;
3500
3522
  originalFilename: z.ZodString;
@@ -3621,7 +3643,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3621
3643
  surname: string;
3622
3644
  middlename?: string | null | undefined;
3623
3645
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
3624
- 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<{
3646
+ 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<{
3625
3647
  filename: z.ZodString;
3626
3648
  originalFilename: z.ZodString;
3627
3649
  type: z.ZodString;
@@ -3746,9 +3768,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3746
3768
  firstname: string;
3747
3769
  surname: string;
3748
3770
  middlename?: string | null | undefined;
3749
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
3771
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
3750
3772
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3751
- originalActionId: z.ZodOptional<z.ZodString>;
3773
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3752
3774
  }, {
3753
3775
  type: z.ZodLiteral<"ARCHIVE">;
3754
3776
  reason: z.ZodObject<{
@@ -3763,13 +3785,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3763
3785
  }>;
3764
3786
  }>, "strip", z.ZodTypeAny, {
3765
3787
  type: "ARCHIVE";
3766
- id: string;
3788
+ id: string & z.BRAND<"UUID">;
3767
3789
  status: "Rejected" | "Requested" | "Accepted";
3768
3790
  reason: {
3769
3791
  message: string;
3770
3792
  isDuplicate?: boolean | undefined;
3771
3793
  };
3772
3794
  transactionId: string;
3795
+ createdByUserType: "system" | "user";
3773
3796
  createdAt: string;
3774
3797
  createdBy: string;
3775
3798
  createdByRole: string;
@@ -3816,7 +3839,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3816
3839
  originalFilename: string;
3817
3840
  }[] | [string, string] | null | undefined>;
3818
3841
  createdBySignature?: string | null | undefined;
3819
- createdAtLocation?: string | null | undefined;
3842
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3820
3843
  annotation?: Record<string, string | number | boolean | {
3821
3844
  type: string;
3822
3845
  filename: string;
@@ -3858,8 +3881,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3858
3881
  option: string;
3859
3882
  filename: string;
3860
3883
  originalFilename: string;
3861
- }[] | [string, string] | null | undefined> | undefined;
3862
- originalActionId?: string | undefined;
3884
+ }[] | [string, string] | null | undefined> | null | undefined;
3885
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3863
3886
  }, {
3864
3887
  type: "ARCHIVE";
3865
3888
  id: string;
@@ -3869,6 +3892,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3869
3892
  isDuplicate?: boolean | undefined;
3870
3893
  };
3871
3894
  transactionId: string;
3895
+ createdByUserType: "system" | "user";
3872
3896
  createdAt: string;
3873
3897
  createdBy: string;
3874
3898
  createdByRole: string;
@@ -3957,16 +3981,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3957
3981
  option: string;
3958
3982
  filename: string;
3959
3983
  originalFilename: string;
3960
- }[] | [string, string] | null | undefined> | undefined;
3961
- originalActionId?: string | undefined;
3984
+ }[] | [string, string] | null | undefined> | null | undefined;
3985
+ originalActionId?: string | null | undefined;
3962
3986
  }>, z.ZodObject<z.objectUtil.extendShape<{
3963
- id: z.ZodString;
3987
+ id: z.ZodBranded<z.ZodString, "UUID">;
3964
3988
  transactionId: z.ZodString;
3989
+ createdByUserType: z.ZodEnum<["user", "system"]>;
3965
3990
  createdAt: z.ZodString;
3966
3991
  createdBy: z.ZodString;
3967
3992
  createdByRole: z.ZodString;
3968
3993
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3969
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3994
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3970
3995
  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<{
3971
3996
  filename: z.ZodString;
3972
3997
  originalFilename: z.ZodString;
@@ -4093,7 +4118,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4093
4118
  surname: string;
4094
4119
  middlename?: string | null | undefined;
4095
4120
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
4096
- 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<{
4121
+ 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<{
4097
4122
  filename: z.ZodString;
4098
4123
  originalFilename: z.ZodString;
4099
4124
  type: z.ZodString;
@@ -4218,16 +4243,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4218
4243
  firstname: string;
4219
4244
  surname: string;
4220
4245
  middlename?: string | null | undefined;
4221
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
4246
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4222
4247
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4223
- originalActionId: z.ZodOptional<z.ZodString>;
4248
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4224
4249
  }, {
4225
4250
  type: z.ZodLiteral<"NOTIFY">;
4226
4251
  }>, "strip", z.ZodTypeAny, {
4227
4252
  type: "NOTIFY";
4228
- id: string;
4253
+ id: string & z.BRAND<"UUID">;
4229
4254
  status: "Rejected" | "Requested" | "Accepted";
4230
4255
  transactionId: string;
4256
+ createdByUserType: "system" | "user";
4231
4257
  createdAt: string;
4232
4258
  createdBy: string;
4233
4259
  createdByRole: string;
@@ -4274,7 +4300,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4274
4300
  originalFilename: string;
4275
4301
  }[] | [string, string] | null | undefined>;
4276
4302
  createdBySignature?: string | null | undefined;
4277
- createdAtLocation?: string | null | undefined;
4303
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4278
4304
  annotation?: Record<string, string | number | boolean | {
4279
4305
  type: string;
4280
4306
  filename: string;
@@ -4316,13 +4342,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4316
4342
  option: string;
4317
4343
  filename: string;
4318
4344
  originalFilename: string;
4319
- }[] | [string, string] | null | undefined> | undefined;
4320
- originalActionId?: string | undefined;
4345
+ }[] | [string, string] | null | undefined> | null | undefined;
4346
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4321
4347
  }, {
4322
4348
  type: "NOTIFY";
4323
4349
  id: string;
4324
4350
  status: "Rejected" | "Requested" | "Accepted";
4325
4351
  transactionId: string;
4352
+ createdByUserType: "system" | "user";
4326
4353
  createdAt: string;
4327
4354
  createdBy: string;
4328
4355
  createdByRole: string;
@@ -4411,16 +4438,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4411
4438
  option: string;
4412
4439
  filename: string;
4413
4440
  originalFilename: string;
4414
- }[] | [string, string] | null | undefined> | undefined;
4415
- originalActionId?: string | undefined;
4441
+ }[] | [string, string] | null | undefined> | null | undefined;
4442
+ originalActionId?: string | null | undefined;
4416
4443
  }>, z.ZodObject<z.objectUtil.extendShape<{
4417
- id: z.ZodString;
4444
+ id: z.ZodBranded<z.ZodString, "UUID">;
4418
4445
  transactionId: z.ZodString;
4446
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4419
4447
  createdAt: z.ZodString;
4420
4448
  createdBy: z.ZodString;
4421
4449
  createdByRole: z.ZodString;
4422
4450
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4423
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4451
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4424
4452
  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<{
4425
4453
  filename: z.ZodString;
4426
4454
  originalFilename: z.ZodString;
@@ -4547,7 +4575,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4547
4575
  surname: string;
4548
4576
  middlename?: string | null | undefined;
4549
4577
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
4550
- 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<{
4578
+ 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<{
4551
4579
  filename: z.ZodString;
4552
4580
  originalFilename: z.ZodString;
4553
4581
  type: z.ZodString;
@@ -4672,17 +4700,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4672
4700
  firstname: string;
4673
4701
  surname: string;
4674
4702
  middlename?: string | null | undefined;
4675
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
4703
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
4676
4704
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4677
- originalActionId: z.ZodOptional<z.ZodString>;
4705
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4678
4706
  }, {
4679
4707
  type: z.ZodLiteral<"REGISTER">;
4680
4708
  registrationNumber: z.ZodOptional<z.ZodString>;
4681
4709
  }>, "strip", z.ZodTypeAny, {
4682
4710
  type: "REGISTER";
4683
- id: string;
4711
+ id: string & z.BRAND<"UUID">;
4684
4712
  status: "Rejected" | "Requested" | "Accepted";
4685
4713
  transactionId: string;
4714
+ createdByUserType: "system" | "user";
4686
4715
  createdAt: string;
4687
4716
  createdBy: string;
4688
4717
  createdByRole: string;
@@ -4729,7 +4758,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4729
4758
  originalFilename: string;
4730
4759
  }[] | [string, string] | null | undefined>;
4731
4760
  createdBySignature?: string | null | undefined;
4732
- createdAtLocation?: string | null | undefined;
4761
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4733
4762
  annotation?: Record<string, string | number | boolean | {
4734
4763
  type: string;
4735
4764
  filename: string;
@@ -4771,14 +4800,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4771
4800
  option: string;
4772
4801
  filename: string;
4773
4802
  originalFilename: string;
4774
- }[] | [string, string] | null | undefined> | undefined;
4775
- originalActionId?: string | undefined;
4803
+ }[] | [string, string] | null | undefined> | null | undefined;
4804
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4776
4805
  registrationNumber?: string | undefined;
4777
4806
  }, {
4778
4807
  type: "REGISTER";
4779
4808
  id: string;
4780
4809
  status: "Rejected" | "Requested" | "Accepted";
4781
4810
  transactionId: string;
4811
+ createdByUserType: "system" | "user";
4782
4812
  createdAt: string;
4783
4813
  createdBy: string;
4784
4814
  createdByRole: string;
@@ -4867,17 +4897,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4867
4897
  option: string;
4868
4898
  filename: string;
4869
4899
  originalFilename: string;
4870
- }[] | [string, string] | null | undefined> | undefined;
4871
- originalActionId?: string | undefined;
4900
+ }[] | [string, string] | null | undefined> | null | undefined;
4901
+ originalActionId?: string | null | undefined;
4872
4902
  registrationNumber?: string | undefined;
4873
4903
  }>, z.ZodObject<z.objectUtil.extendShape<{
4874
- id: z.ZodString;
4904
+ id: z.ZodBranded<z.ZodString, "UUID">;
4875
4905
  transactionId: z.ZodString;
4906
+ createdByUserType: z.ZodEnum<["user", "system"]>;
4876
4907
  createdAt: z.ZodString;
4877
4908
  createdBy: z.ZodString;
4878
4909
  createdByRole: z.ZodString;
4879
4910
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4880
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4911
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4881
4912
  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<{
4882
4913
  filename: z.ZodString;
4883
4914
  originalFilename: z.ZodString;
@@ -5004,7 +5035,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5004
5035
  surname: string;
5005
5036
  middlename?: string | null | undefined;
5006
5037
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5007
- 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<{
5038
+ 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<{
5008
5039
  filename: z.ZodString;
5009
5040
  originalFilename: z.ZodString;
5010
5041
  type: z.ZodString;
@@ -5129,16 +5160,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5129
5160
  firstname: string;
5130
5161
  surname: string;
5131
5162
  middlename?: string | null | undefined;
5132
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5163
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5133
5164
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5134
- originalActionId: z.ZodOptional<z.ZodString>;
5165
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5135
5166
  }, {
5136
5167
  type: z.ZodLiteral<"DECLARE">;
5137
5168
  }>, "strip", z.ZodTypeAny, {
5138
5169
  type: "DECLARE";
5139
- id: string;
5170
+ id: string & z.BRAND<"UUID">;
5140
5171
  status: "Rejected" | "Requested" | "Accepted";
5141
5172
  transactionId: string;
5173
+ createdByUserType: "system" | "user";
5142
5174
  createdAt: string;
5143
5175
  createdBy: string;
5144
5176
  createdByRole: string;
@@ -5185,7 +5217,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5185
5217
  originalFilename: string;
5186
5218
  }[] | [string, string] | null | undefined>;
5187
5219
  createdBySignature?: string | null | undefined;
5188
- createdAtLocation?: string | null | undefined;
5220
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5189
5221
  annotation?: Record<string, string | number | boolean | {
5190
5222
  type: string;
5191
5223
  filename: string;
@@ -5227,13 +5259,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5227
5259
  option: string;
5228
5260
  filename: string;
5229
5261
  originalFilename: string;
5230
- }[] | [string, string] | null | undefined> | undefined;
5231
- originalActionId?: string | undefined;
5262
+ }[] | [string, string] | null | undefined> | null | undefined;
5263
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5232
5264
  }, {
5233
5265
  type: "DECLARE";
5234
5266
  id: string;
5235
5267
  status: "Rejected" | "Requested" | "Accepted";
5236
5268
  transactionId: string;
5269
+ createdByUserType: "system" | "user";
5237
5270
  createdAt: string;
5238
5271
  createdBy: string;
5239
5272
  createdByRole: string;
@@ -5322,16 +5355,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5322
5355
  option: string;
5323
5356
  filename: string;
5324
5357
  originalFilename: string;
5325
- }[] | [string, string] | null | undefined> | undefined;
5326
- originalActionId?: string | undefined;
5358
+ }[] | [string, string] | null | undefined> | null | undefined;
5359
+ originalActionId?: string | null | undefined;
5327
5360
  }>, z.ZodObject<z.objectUtil.extendShape<{
5328
- id: z.ZodString;
5361
+ id: z.ZodBranded<z.ZodString, "UUID">;
5329
5362
  transactionId: z.ZodString;
5363
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5330
5364
  createdAt: z.ZodString;
5331
5365
  createdBy: z.ZodString;
5332
5366
  createdByRole: z.ZodString;
5333
5367
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5334
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5368
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5335
5369
  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<{
5336
5370
  filename: z.ZodString;
5337
5371
  originalFilename: z.ZodString;
@@ -5458,7 +5492,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5458
5492
  surname: string;
5459
5493
  middlename?: string | null | undefined;
5460
5494
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5461
- 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<{
5495
+ 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<{
5462
5496
  filename: z.ZodString;
5463
5497
  originalFilename: z.ZodString;
5464
5498
  type: z.ZodString;
@@ -5583,17 +5617,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5583
5617
  firstname: string;
5584
5618
  surname: string;
5585
5619
  middlename?: string | null | undefined;
5586
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
5620
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
5587
5621
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5588
- originalActionId: z.ZodOptional<z.ZodString>;
5622
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5589
5623
  }, {
5590
5624
  type: z.ZodLiteral<"ASSIGN">;
5591
5625
  assignedTo: z.ZodString;
5592
5626
  }>, "strip", z.ZodTypeAny, {
5593
5627
  type: "ASSIGN";
5594
- id: string;
5628
+ id: string & z.BRAND<"UUID">;
5595
5629
  status: "Rejected" | "Requested" | "Accepted";
5596
5630
  transactionId: string;
5631
+ createdByUserType: "system" | "user";
5597
5632
  createdAt: string;
5598
5633
  createdBy: string;
5599
5634
  createdByRole: string;
@@ -5641,7 +5676,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5641
5676
  }[] | [string, string] | null | undefined>;
5642
5677
  assignedTo: string;
5643
5678
  createdBySignature?: string | null | undefined;
5644
- createdAtLocation?: string | null | undefined;
5679
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5645
5680
  annotation?: Record<string, string | number | boolean | {
5646
5681
  type: string;
5647
5682
  filename: string;
@@ -5683,13 +5718,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5683
5718
  option: string;
5684
5719
  filename: string;
5685
5720
  originalFilename: string;
5686
- }[] | [string, string] | null | undefined> | undefined;
5687
- originalActionId?: string | undefined;
5721
+ }[] | [string, string] | null | undefined> | null | undefined;
5722
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5688
5723
  }, {
5689
5724
  type: "ASSIGN";
5690
5725
  id: string;
5691
5726
  status: "Rejected" | "Requested" | "Accepted";
5692
5727
  transactionId: string;
5728
+ createdByUserType: "system" | "user";
5693
5729
  createdAt: string;
5694
5730
  createdBy: string;
5695
5731
  createdByRole: string;
@@ -5779,16 +5815,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5779
5815
  option: string;
5780
5816
  filename: string;
5781
5817
  originalFilename: string;
5782
- }[] | [string, string] | null | undefined> | undefined;
5783
- originalActionId?: string | undefined;
5818
+ }[] | [string, string] | null | undefined> | null | undefined;
5819
+ originalActionId?: string | null | undefined;
5784
5820
  }>, z.ZodObject<z.objectUtil.extendShape<{
5785
- id: z.ZodString;
5821
+ id: z.ZodBranded<z.ZodString, "UUID">;
5786
5822
  transactionId: z.ZodString;
5823
+ createdByUserType: z.ZodEnum<["user", "system"]>;
5787
5824
  createdAt: z.ZodString;
5788
5825
  createdBy: z.ZodString;
5789
5826
  createdByRole: z.ZodString;
5790
5827
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5791
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5828
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5792
5829
  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<{
5793
5830
  filename: z.ZodString;
5794
5831
  originalFilename: z.ZodString;
@@ -5915,7 +5952,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5915
5952
  surname: string;
5916
5953
  middlename?: string | null | undefined;
5917
5954
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
5918
- 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<{
5955
+ 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<{
5919
5956
  filename: z.ZodString;
5920
5957
  originalFilename: z.ZodString;
5921
5958
  type: z.ZodString;
@@ -6040,16 +6077,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6040
6077
  firstname: string;
6041
6078
  surname: string;
6042
6079
  middlename?: string | null | undefined;
6043
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6080
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6044
6081
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6045
- originalActionId: z.ZodOptional<z.ZodString>;
6082
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6046
6083
  }, {
6047
6084
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
6048
6085
  }>, "strip", z.ZodTypeAny, {
6049
6086
  type: "REQUEST_CORRECTION";
6050
- id: string;
6087
+ id: string & z.BRAND<"UUID">;
6051
6088
  status: "Rejected" | "Requested" | "Accepted";
6052
6089
  transactionId: string;
6090
+ createdByUserType: "system" | "user";
6053
6091
  createdAt: string;
6054
6092
  createdBy: string;
6055
6093
  createdByRole: string;
@@ -6096,7 +6134,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6096
6134
  originalFilename: string;
6097
6135
  }[] | [string, string] | null | undefined>;
6098
6136
  createdBySignature?: string | null | undefined;
6099
- createdAtLocation?: string | null | undefined;
6137
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6100
6138
  annotation?: Record<string, string | number | boolean | {
6101
6139
  type: string;
6102
6140
  filename: string;
@@ -6138,13 +6176,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6138
6176
  option: string;
6139
6177
  filename: string;
6140
6178
  originalFilename: string;
6141
- }[] | [string, string] | null | undefined> | undefined;
6142
- originalActionId?: string | undefined;
6179
+ }[] | [string, string] | null | undefined> | null | undefined;
6180
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6143
6181
  }, {
6144
6182
  type: "REQUEST_CORRECTION";
6145
6183
  id: string;
6146
6184
  status: "Rejected" | "Requested" | "Accepted";
6147
6185
  transactionId: string;
6186
+ createdByUserType: "system" | "user";
6148
6187
  createdAt: string;
6149
6188
  createdBy: string;
6150
6189
  createdByRole: string;
@@ -6233,16 +6272,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6233
6272
  option: string;
6234
6273
  filename: string;
6235
6274
  originalFilename: string;
6236
- }[] | [string, string] | null | undefined> | undefined;
6237
- originalActionId?: string | undefined;
6275
+ }[] | [string, string] | null | undefined> | null | undefined;
6276
+ originalActionId?: string | null | undefined;
6238
6277
  }>, z.ZodObject<z.objectUtil.extendShape<{
6239
- id: z.ZodString;
6278
+ id: z.ZodBranded<z.ZodString, "UUID">;
6240
6279
  transactionId: z.ZodString;
6280
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6241
6281
  createdAt: z.ZodString;
6242
6282
  createdBy: z.ZodString;
6243
6283
  createdByRole: z.ZodString;
6244
6284
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6245
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6285
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6246
6286
  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<{
6247
6287
  filename: z.ZodString;
6248
6288
  originalFilename: z.ZodString;
@@ -6369,7 +6409,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6369
6409
  surname: string;
6370
6410
  middlename?: string | null | undefined;
6371
6411
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6372
- 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<{
6412
+ 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<{
6373
6413
  filename: z.ZodString;
6374
6414
  originalFilename: z.ZodString;
6375
6415
  type: z.ZodString;
@@ -6494,17 +6534,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6494
6534
  firstname: string;
6495
6535
  surname: string;
6496
6536
  middlename?: string | null | undefined;
6497
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6537
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6498
6538
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6499
- originalActionId: z.ZodOptional<z.ZodString>;
6539
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6500
6540
  }, {
6501
6541
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
6502
6542
  requestId: z.ZodString;
6503
6543
  }>, "strip", z.ZodTypeAny, {
6504
6544
  type: "APPROVE_CORRECTION";
6505
- id: string;
6545
+ id: string & z.BRAND<"UUID">;
6506
6546
  status: "Rejected" | "Requested" | "Accepted";
6507
6547
  transactionId: string;
6548
+ createdByUserType: "system" | "user";
6508
6549
  createdAt: string;
6509
6550
  createdBy: string;
6510
6551
  createdByRole: string;
@@ -6552,7 +6593,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6552
6593
  }[] | [string, string] | null | undefined>;
6553
6594
  requestId: string;
6554
6595
  createdBySignature?: string | null | undefined;
6555
- createdAtLocation?: string | null | undefined;
6596
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6556
6597
  annotation?: Record<string, string | number | boolean | {
6557
6598
  type: string;
6558
6599
  filename: string;
@@ -6594,13 +6635,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6594
6635
  option: string;
6595
6636
  filename: string;
6596
6637
  originalFilename: string;
6597
- }[] | [string, string] | null | undefined> | undefined;
6598
- originalActionId?: string | undefined;
6638
+ }[] | [string, string] | null | undefined> | null | undefined;
6639
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6599
6640
  }, {
6600
6641
  type: "APPROVE_CORRECTION";
6601
6642
  id: string;
6602
6643
  status: "Rejected" | "Requested" | "Accepted";
6603
6644
  transactionId: string;
6645
+ createdByUserType: "system" | "user";
6604
6646
  createdAt: string;
6605
6647
  createdBy: string;
6606
6648
  createdByRole: string;
@@ -6690,16 +6732,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6690
6732
  option: string;
6691
6733
  filename: string;
6692
6734
  originalFilename: string;
6693
- }[] | [string, string] | null | undefined> | undefined;
6694
- originalActionId?: string | undefined;
6735
+ }[] | [string, string] | null | undefined> | null | undefined;
6736
+ originalActionId?: string | null | undefined;
6695
6737
  }>, z.ZodObject<z.objectUtil.extendShape<{
6696
- id: z.ZodString;
6738
+ id: z.ZodBranded<z.ZodString, "UUID">;
6697
6739
  transactionId: z.ZodString;
6740
+ createdByUserType: z.ZodEnum<["user", "system"]>;
6698
6741
  createdAt: z.ZodString;
6699
6742
  createdBy: z.ZodString;
6700
6743
  createdByRole: z.ZodString;
6701
6744
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6702
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6745
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6703
6746
  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<{
6704
6747
  filename: z.ZodString;
6705
6748
  originalFilename: z.ZodString;
@@ -6826,7 +6869,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6826
6869
  surname: string;
6827
6870
  middlename?: string | null | undefined;
6828
6871
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
6829
- 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<{
6872
+ 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<{
6830
6873
  filename: z.ZodString;
6831
6874
  originalFilename: z.ZodString;
6832
6875
  type: z.ZodString;
@@ -6951,17 +6994,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6951
6994
  firstname: string;
6952
6995
  surname: string;
6953
6996
  middlename?: string | null | undefined;
6954
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
6997
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
6955
6998
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6956
- originalActionId: z.ZodOptional<z.ZodString>;
6999
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6957
7000
  }, {
6958
7001
  type: z.ZodLiteral<"REJECT_CORRECTION">;
6959
7002
  requestId: z.ZodString;
6960
7003
  }>, "strip", z.ZodTypeAny, {
6961
7004
  type: "REJECT_CORRECTION";
6962
- id: string;
7005
+ id: string & z.BRAND<"UUID">;
6963
7006
  status: "Rejected" | "Requested" | "Accepted";
6964
7007
  transactionId: string;
7008
+ createdByUserType: "system" | "user";
6965
7009
  createdAt: string;
6966
7010
  createdBy: string;
6967
7011
  createdByRole: string;
@@ -7009,7 +7053,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7009
7053
  }[] | [string, string] | null | undefined>;
7010
7054
  requestId: string;
7011
7055
  createdBySignature?: string | null | undefined;
7012
- createdAtLocation?: string | null | undefined;
7056
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7013
7057
  annotation?: Record<string, string | number | boolean | {
7014
7058
  type: string;
7015
7059
  filename: string;
@@ -7051,13 +7095,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7051
7095
  option: string;
7052
7096
  filename: string;
7053
7097
  originalFilename: string;
7054
- }[] | [string, string] | null | undefined> | undefined;
7055
- originalActionId?: string | undefined;
7098
+ }[] | [string, string] | null | undefined> | null | undefined;
7099
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7056
7100
  }, {
7057
7101
  type: "REJECT_CORRECTION";
7058
7102
  id: string;
7059
7103
  status: "Rejected" | "Requested" | "Accepted";
7060
7104
  transactionId: string;
7105
+ createdByUserType: "system" | "user";
7061
7106
  createdAt: string;
7062
7107
  createdBy: string;
7063
7108
  createdByRole: string;
@@ -7147,16 +7192,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7147
7192
  option: string;
7148
7193
  filename: string;
7149
7194
  originalFilename: string;
7150
- }[] | [string, string] | null | undefined> | undefined;
7151
- originalActionId?: string | undefined;
7195
+ }[] | [string, string] | null | undefined> | null | undefined;
7196
+ originalActionId?: string | null | undefined;
7152
7197
  }>, z.ZodObject<z.objectUtil.extendShape<{
7153
- id: z.ZodString;
7198
+ id: z.ZodBranded<z.ZodString, "UUID">;
7154
7199
  transactionId: z.ZodString;
7200
+ createdByUserType: z.ZodEnum<["user", "system"]>;
7155
7201
  createdAt: z.ZodString;
7156
7202
  createdBy: z.ZodString;
7157
7203
  createdByRole: z.ZodString;
7158
7204
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7159
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7205
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
7160
7206
  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<{
7161
7207
  filename: z.ZodString;
7162
7208
  originalFilename: z.ZodString;
@@ -7283,7 +7329,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7283
7329
  surname: string;
7284
7330
  middlename?: string | null | undefined;
7285
7331
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
7286
- 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<{
7332
+ 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<{
7287
7333
  filename: z.ZodString;
7288
7334
  originalFilename: z.ZodString;
7289
7335
  type: z.ZodString;
@@ -7408,17 +7454,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7408
7454
  firstname: string;
7409
7455
  surname: string;
7410
7456
  middlename?: string | null | undefined;
7411
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
7457
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
7412
7458
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7413
- originalActionId: z.ZodOptional<z.ZodString>;
7459
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7414
7460
  }, {
7415
7461
  type: z.ZodLiteral<"UNASSIGN">;
7416
- assignedTo: z.ZodLiteral<null>;
7417
7462
  }>, "strip", z.ZodTypeAny, {
7418
7463
  type: "UNASSIGN";
7419
- id: string;
7464
+ id: string & z.BRAND<"UUID">;
7420
7465
  status: "Rejected" | "Requested" | "Accepted";
7421
7466
  transactionId: string;
7467
+ createdByUserType: "system" | "user";
7422
7468
  createdAt: string;
7423
7469
  createdBy: string;
7424
7470
  createdByRole: string;
@@ -7464,9 +7510,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7464
7510
  filename: string;
7465
7511
  originalFilename: string;
7466
7512
  }[] | [string, string] | null | undefined>;
7467
- assignedTo: null;
7468
7513
  createdBySignature?: string | null | undefined;
7469
- createdAtLocation?: string | null | undefined;
7514
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7470
7515
  annotation?: Record<string, string | number | boolean | {
7471
7516
  type: string;
7472
7517
  filename: string;
@@ -7508,13 +7553,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7508
7553
  option: string;
7509
7554
  filename: string;
7510
7555
  originalFilename: string;
7511
- }[] | [string, string] | null | undefined> | undefined;
7512
- originalActionId?: string | undefined;
7556
+ }[] | [string, string] | null | undefined> | null | undefined;
7557
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7513
7558
  }, {
7514
7559
  type: "UNASSIGN";
7515
7560
  id: string;
7516
7561
  status: "Rejected" | "Requested" | "Accepted";
7517
7562
  transactionId: string;
7563
+ createdByUserType: "system" | "user";
7518
7564
  createdAt: string;
7519
7565
  createdBy: string;
7520
7566
  createdByRole: string;
@@ -7560,7 +7606,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7560
7606
  filename: string;
7561
7607
  originalFilename: string;
7562
7608
  }[] | [string, string] | null | undefined>;
7563
- assignedTo: null;
7564
7609
  createdBySignature?: string | null | undefined;
7565
7610
  createdAtLocation?: string | null | undefined;
7566
7611
  annotation?: Record<string, string | number | boolean | {
@@ -7604,16 +7649,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7604
7649
  option: string;
7605
7650
  filename: string;
7606
7651
  originalFilename: string;
7607
- }[] | [string, string] | null | undefined> | undefined;
7608
- originalActionId?: string | undefined;
7652
+ }[] | [string, string] | null | undefined> | null | undefined;
7653
+ originalActionId?: string | null | undefined;
7609
7654
  }>, z.ZodObject<z.objectUtil.extendShape<{
7610
- id: z.ZodString;
7655
+ id: z.ZodBranded<z.ZodString, "UUID">;
7611
7656
  transactionId: z.ZodString;
7657
+ createdByUserType: z.ZodEnum<["user", "system"]>;
7612
7658
  createdAt: z.ZodString;
7613
7659
  createdBy: z.ZodString;
7614
7660
  createdByRole: z.ZodString;
7615
7661
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7616
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7662
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
7617
7663
  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<{
7618
7664
  filename: z.ZodString;
7619
7665
  originalFilename: z.ZodString;
@@ -7740,7 +7786,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7740
7786
  surname: string;
7741
7787
  middlename?: string | null | undefined;
7742
7788
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
7743
- 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<{
7789
+ 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<{
7744
7790
  filename: z.ZodString;
7745
7791
  originalFilename: z.ZodString;
7746
7792
  type: z.ZodString;
@@ -7865,16 +7911,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7865
7911
  firstname: string;
7866
7912
  surname: string;
7867
7913
  middlename?: string | null | undefined;
7868
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
7914
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
7869
7915
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7870
- originalActionId: z.ZodOptional<z.ZodString>;
7916
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7871
7917
  }, {
7872
7918
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
7873
7919
  }>, "strip", z.ZodTypeAny, {
7874
7920
  type: "PRINT_CERTIFICATE";
7875
- id: string;
7921
+ id: string & z.BRAND<"UUID">;
7876
7922
  status: "Rejected" | "Requested" | "Accepted";
7877
7923
  transactionId: string;
7924
+ createdByUserType: "system" | "user";
7878
7925
  createdAt: string;
7879
7926
  createdBy: string;
7880
7927
  createdByRole: string;
@@ -7921,7 +7968,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7921
7968
  originalFilename: string;
7922
7969
  }[] | [string, string] | null | undefined>;
7923
7970
  createdBySignature?: string | null | undefined;
7924
- createdAtLocation?: string | null | undefined;
7971
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7925
7972
  annotation?: Record<string, string | number | boolean | {
7926
7973
  type: string;
7927
7974
  filename: string;
@@ -7963,13 +8010,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7963
8010
  option: string;
7964
8011
  filename: string;
7965
8012
  originalFilename: string;
7966
- }[] | [string, string] | null | undefined> | undefined;
7967
- originalActionId?: string | undefined;
8013
+ }[] | [string, string] | null | undefined> | null | undefined;
8014
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7968
8015
  }, {
7969
8016
  type: "PRINT_CERTIFICATE";
7970
8017
  id: string;
7971
8018
  status: "Rejected" | "Requested" | "Accepted";
7972
8019
  transactionId: string;
8020
+ createdByUserType: "system" | "user";
7973
8021
  createdAt: string;
7974
8022
  createdBy: string;
7975
8023
  createdByRole: string;
@@ -8058,16 +8106,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8058
8106
  option: string;
8059
8107
  filename: string;
8060
8108
  originalFilename: string;
8061
- }[] | [string, string] | null | undefined> | undefined;
8062
- originalActionId?: string | undefined;
8109
+ }[] | [string, string] | null | undefined> | null | undefined;
8110
+ originalActionId?: string | null | undefined;
8063
8111
  }>, z.ZodObject<z.objectUtil.extendShape<{
8064
- id: z.ZodString;
8112
+ id: z.ZodBranded<z.ZodString, "UUID">;
8065
8113
  transactionId: z.ZodString;
8114
+ createdByUserType: z.ZodEnum<["user", "system"]>;
8066
8115
  createdAt: z.ZodString;
8067
8116
  createdBy: z.ZodString;
8068
8117
  createdByRole: z.ZodString;
8069
8118
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8070
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8119
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
8071
8120
  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<{
8072
8121
  filename: z.ZodString;
8073
8122
  originalFilename: z.ZodString;
@@ -8194,7 +8243,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8194
8243
  surname: string;
8195
8244
  middlename?: string | null | undefined;
8196
8245
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
8197
- 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<{
8246
+ 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<{
8198
8247
  filename: z.ZodString;
8199
8248
  originalFilename: z.ZodString;
8200
8249
  type: z.ZodString;
@@ -8319,16 +8368,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8319
8368
  firstname: string;
8320
8369
  surname: string;
8321
8370
  middlename?: string | null | undefined;
8322
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
8371
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
8323
8372
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8324
- originalActionId: z.ZodOptional<z.ZodString>;
8373
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8325
8374
  }, {
8326
8375
  type: z.ZodLiteral<"READ">;
8327
8376
  }>, "strip", z.ZodTypeAny, {
8328
8377
  type: "READ";
8329
- id: string;
8378
+ id: string & z.BRAND<"UUID">;
8330
8379
  status: "Rejected" | "Requested" | "Accepted";
8331
8380
  transactionId: string;
8381
+ createdByUserType: "system" | "user";
8332
8382
  createdAt: string;
8333
8383
  createdBy: string;
8334
8384
  createdByRole: string;
@@ -8375,7 +8425,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8375
8425
  originalFilename: string;
8376
8426
  }[] | [string, string] | null | undefined>;
8377
8427
  createdBySignature?: string | null | undefined;
8378
- createdAtLocation?: string | null | undefined;
8428
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8379
8429
  annotation?: Record<string, string | number | boolean | {
8380
8430
  type: string;
8381
8431
  filename: string;
@@ -8417,13 +8467,14 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8417
8467
  option: string;
8418
8468
  filename: string;
8419
8469
  originalFilename: string;
8420
- }[] | [string, string] | null | undefined> | undefined;
8421
- originalActionId?: string | undefined;
8470
+ }[] | [string, string] | null | undefined> | null | undefined;
8471
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8422
8472
  }, {
8423
8473
  type: "READ";
8424
8474
  id: string;
8425
8475
  status: "Rejected" | "Requested" | "Accepted";
8426
8476
  transactionId: string;
8477
+ createdByUserType: "system" | "user";
8427
8478
  createdAt: string;
8428
8479
  createdBy: string;
8429
8480
  createdByRole: string;
@@ -8512,18 +8563,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8512
8563
  option: string;
8513
8564
  filename: string;
8514
8565
  originalFilename: string;
8515
- }[] | [string, string] | null | undefined> | undefined;
8516
- originalActionId?: string | undefined;
8566
+ }[] | [string, string] | null | undefined> | null | undefined;
8567
+ originalActionId?: string | null | undefined;
8517
8568
  }>]>;
8518
8569
  export type ActionDocument = z.infer<typeof ActionDocument>;
8519
8570
  export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
8520
- id: z.ZodString;
8571
+ id: z.ZodBranded<z.ZodString, "UUID">;
8521
8572
  transactionId: z.ZodString;
8573
+ createdByUserType: z.ZodEnum<["user", "system"]>;
8522
8574
  createdAt: z.ZodString;
8523
8575
  createdBy: z.ZodString;
8524
8576
  createdByRole: z.ZodString;
8525
8577
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8526
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8578
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
8527
8579
  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<{
8528
8580
  filename: z.ZodString;
8529
8581
  originalFilename: z.ZodString;
@@ -8650,7 +8702,7 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
8650
8702
  surname: string;
8651
8703
  middlename?: string | null | undefined;
8652
8704
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
8653
- 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<{
8705
+ 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<{
8654
8706
  filename: z.ZodString;
8655
8707
  originalFilename: z.ZodString;
8656
8708
  type: z.ZodString;
@@ -8775,44 +8827,47 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
8775
8827
  firstname: string;
8776
8828
  surname: string;
8777
8829
  middlename?: string | null | undefined;
8778
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
8830
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
8779
8831
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8780
- originalActionId: z.ZodOptional<z.ZodString>;
8832
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8781
8833
  }, "declaration" | "annotation">, {
8782
8834
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
8783
8835
  status: z.ZodLiteral<"Rejected">;
8784
8836
  }>, "strip", z.ZodTypeAny, {
8785
8837
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8786
- id: string;
8838
+ id: string & z.BRAND<"UUID">;
8787
8839
  status: "Rejected";
8788
8840
  transactionId: string;
8841
+ createdByUserType: "system" | "user";
8789
8842
  createdAt: string;
8790
8843
  createdBy: string;
8791
8844
  createdByRole: string;
8792
8845
  createdBySignature?: string | null | undefined;
8793
- createdAtLocation?: string | null | undefined;
8794
- originalActionId?: string | undefined;
8846
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8847
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8795
8848
  }, {
8796
8849
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
8797
8850
  id: string;
8798
8851
  status: "Rejected";
8799
8852
  transactionId: string;
8853
+ createdByUserType: "system" | "user";
8800
8854
  createdAt: string;
8801
8855
  createdBy: string;
8802
8856
  createdByRole: string;
8803
8857
  createdBySignature?: string | null | undefined;
8804
8858
  createdAtLocation?: string | null | undefined;
8805
- originalActionId?: string | undefined;
8859
+ originalActionId?: string | null | undefined;
8806
8860
  }>;
8807
8861
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
8808
8862
  export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8809
- id: z.ZodString;
8863
+ id: z.ZodBranded<z.ZodString, "UUID">;
8810
8864
  transactionId: z.ZodString;
8865
+ createdByUserType: z.ZodEnum<["user", "system"]>;
8811
8866
  createdAt: z.ZodString;
8812
8867
  createdBy: z.ZodString;
8813
8868
  createdByRole: z.ZodString;
8814
8869
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8815
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8870
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
8816
8871
  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<{
8817
8872
  filename: z.ZodString;
8818
8873
  originalFilename: z.ZodString;
@@ -8939,7 +8994,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8939
8994
  surname: string;
8940
8995
  middlename?: string | null | undefined;
8941
8996
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
8942
- 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<{
8997
+ 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<{
8943
8998
  filename: z.ZodString;
8944
8999
  originalFilename: z.ZodString;
8945
9000
  type: z.ZodString;
@@ -9064,16 +9119,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9064
9119
  firstname: string;
9065
9120
  surname: string;
9066
9121
  middlename?: string | null | undefined;
9067
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
9122
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
9068
9123
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9069
- originalActionId: z.ZodOptional<z.ZodString>;
9124
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9070
9125
  }, {
9071
9126
  type: z.ZodLiteral<"CREATE">;
9072
9127
  }>, "strip", z.ZodTypeAny, {
9073
9128
  type: "CREATE";
9074
- id: string;
9129
+ id: string & z.BRAND<"UUID">;
9075
9130
  status: "Rejected" | "Requested" | "Accepted";
9076
9131
  transactionId: string;
9132
+ createdByUserType: "system" | "user";
9077
9133
  createdAt: string;
9078
9134
  createdBy: string;
9079
9135
  createdByRole: string;
@@ -9120,7 +9176,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9120
9176
  originalFilename: string;
9121
9177
  }[] | [string, string] | null | undefined>;
9122
9178
  createdBySignature?: string | null | undefined;
9123
- createdAtLocation?: string | null | undefined;
9179
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
9124
9180
  annotation?: Record<string, string | number | boolean | {
9125
9181
  type: string;
9126
9182
  filename: string;
@@ -9162,13 +9218,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9162
9218
  option: string;
9163
9219
  filename: string;
9164
9220
  originalFilename: string;
9165
- }[] | [string, string] | null | undefined> | undefined;
9166
- originalActionId?: string | undefined;
9221
+ }[] | [string, string] | null | undefined> | null | undefined;
9222
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9167
9223
  }, {
9168
9224
  type: "CREATE";
9169
9225
  id: string;
9170
9226
  status: "Rejected" | "Requested" | "Accepted";
9171
9227
  transactionId: string;
9228
+ createdByUserType: "system" | "user";
9172
9229
  createdAt: string;
9173
9230
  createdBy: string;
9174
9231
  createdByRole: string;
@@ -9257,16 +9314,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9257
9314
  option: string;
9258
9315
  filename: string;
9259
9316
  originalFilename: string;
9260
- }[] | [string, string] | null | undefined> | undefined;
9261
- originalActionId?: string | undefined;
9317
+ }[] | [string, string] | null | undefined> | null | undefined;
9318
+ originalActionId?: string | null | undefined;
9262
9319
  }>, z.ZodObject<z.objectUtil.extendShape<{
9263
- id: z.ZodString;
9320
+ id: z.ZodBranded<z.ZodString, "UUID">;
9264
9321
  transactionId: z.ZodString;
9322
+ createdByUserType: z.ZodEnum<["user", "system"]>;
9265
9323
  createdAt: z.ZodString;
9266
9324
  createdBy: z.ZodString;
9267
9325
  createdByRole: z.ZodString;
9268
9326
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9269
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9327
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
9270
9328
  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<{
9271
9329
  filename: z.ZodString;
9272
9330
  originalFilename: z.ZodString;
@@ -9393,7 +9451,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9393
9451
  surname: string;
9394
9452
  middlename?: string | null | undefined;
9395
9453
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
9396
- 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<{
9454
+ 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<{
9397
9455
  filename: z.ZodString;
9398
9456
  originalFilename: z.ZodString;
9399
9457
  type: z.ZodString;
@@ -9518,16 +9576,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9518
9576
  firstname: string;
9519
9577
  surname: string;
9520
9578
  middlename?: string | null | undefined;
9521
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
9579
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
9522
9580
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9523
- originalActionId: z.ZodOptional<z.ZodString>;
9581
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9524
9582
  }, {
9525
9583
  type: z.ZodLiteral<"VALIDATE">;
9526
9584
  }>, "strip", z.ZodTypeAny, {
9527
9585
  type: "VALIDATE";
9528
- id: string;
9586
+ id: string & z.BRAND<"UUID">;
9529
9587
  status: "Rejected" | "Requested" | "Accepted";
9530
9588
  transactionId: string;
9589
+ createdByUserType: "system" | "user";
9531
9590
  createdAt: string;
9532
9591
  createdBy: string;
9533
9592
  createdByRole: string;
@@ -9574,7 +9633,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9574
9633
  originalFilename: string;
9575
9634
  }[] | [string, string] | null | undefined>;
9576
9635
  createdBySignature?: string | null | undefined;
9577
- createdAtLocation?: string | null | undefined;
9636
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
9578
9637
  annotation?: Record<string, string | number | boolean | {
9579
9638
  type: string;
9580
9639
  filename: string;
@@ -9616,13 +9675,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9616
9675
  option: string;
9617
9676
  filename: string;
9618
9677
  originalFilename: string;
9619
- }[] | [string, string] | null | undefined> | undefined;
9620
- originalActionId?: string | undefined;
9678
+ }[] | [string, string] | null | undefined> | null | undefined;
9679
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9621
9680
  }, {
9622
9681
  type: "VALIDATE";
9623
9682
  id: string;
9624
9683
  status: "Rejected" | "Requested" | "Accepted";
9625
9684
  transactionId: string;
9685
+ createdByUserType: "system" | "user";
9626
9686
  createdAt: string;
9627
9687
  createdBy: string;
9628
9688
  createdByRole: string;
@@ -9711,16 +9771,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9711
9771
  option: string;
9712
9772
  filename: string;
9713
9773
  originalFilename: string;
9714
- }[] | [string, string] | null | undefined> | undefined;
9715
- originalActionId?: string | undefined;
9774
+ }[] | [string, string] | null | undefined> | null | undefined;
9775
+ originalActionId?: string | null | undefined;
9716
9776
  }>, z.ZodObject<z.objectUtil.extendShape<{
9717
- id: z.ZodString;
9777
+ id: z.ZodBranded<z.ZodString, "UUID">;
9718
9778
  transactionId: z.ZodString;
9779
+ createdByUserType: z.ZodEnum<["user", "system"]>;
9719
9780
  createdAt: z.ZodString;
9720
9781
  createdBy: z.ZodString;
9721
9782
  createdByRole: z.ZodString;
9722
9783
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9723
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9784
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
9724
9785
  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<{
9725
9786
  filename: z.ZodString;
9726
9787
  originalFilename: z.ZodString;
@@ -9847,7 +9908,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9847
9908
  surname: string;
9848
9909
  middlename?: string | null | undefined;
9849
9910
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
9850
- 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<{
9911
+ 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<{
9851
9912
  filename: z.ZodString;
9852
9913
  originalFilename: z.ZodString;
9853
9914
  type: z.ZodString;
@@ -9972,9 +10033,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9972
10033
  firstname: string;
9973
10034
  surname: string;
9974
10035
  middlename?: string | null | undefined;
9975
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
10036
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
9976
10037
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9977
- originalActionId: z.ZodOptional<z.ZodString>;
10038
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9978
10039
  }, {
9979
10040
  type: z.ZodLiteral<"REJECT">;
9980
10041
  reason: z.ZodObject<{
@@ -9989,13 +10050,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9989
10050
  }>;
9990
10051
  }>, "strip", z.ZodTypeAny, {
9991
10052
  type: "REJECT";
9992
- id: string;
10053
+ id: string & z.BRAND<"UUID">;
9993
10054
  status: "Rejected" | "Requested" | "Accepted";
9994
10055
  reason: {
9995
10056
  message: string;
9996
10057
  isDuplicate?: boolean | undefined;
9997
10058
  };
9998
10059
  transactionId: string;
10060
+ createdByUserType: "system" | "user";
9999
10061
  createdAt: string;
10000
10062
  createdBy: string;
10001
10063
  createdByRole: string;
@@ -10042,7 +10104,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10042
10104
  originalFilename: string;
10043
10105
  }[] | [string, string] | null | undefined>;
10044
10106
  createdBySignature?: string | null | undefined;
10045
- createdAtLocation?: string | null | undefined;
10107
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10046
10108
  annotation?: Record<string, string | number | boolean | {
10047
10109
  type: string;
10048
10110
  filename: string;
@@ -10084,8 +10146,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10084
10146
  option: string;
10085
10147
  filename: string;
10086
10148
  originalFilename: string;
10087
- }[] | [string, string] | null | undefined> | undefined;
10088
- originalActionId?: string | undefined;
10149
+ }[] | [string, string] | null | undefined> | null | undefined;
10150
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10089
10151
  }, {
10090
10152
  type: "REJECT";
10091
10153
  id: string;
@@ -10095,6 +10157,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10095
10157
  isDuplicate?: boolean | undefined;
10096
10158
  };
10097
10159
  transactionId: string;
10160
+ createdByUserType: "system" | "user";
10098
10161
  createdAt: string;
10099
10162
  createdBy: string;
10100
10163
  createdByRole: string;
@@ -10183,16 +10246,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10183
10246
  option: string;
10184
10247
  filename: string;
10185
10248
  originalFilename: string;
10186
- }[] | [string, string] | null | undefined> | undefined;
10187
- originalActionId?: string | undefined;
10249
+ }[] | [string, string] | null | undefined> | null | undefined;
10250
+ originalActionId?: string | null | undefined;
10188
10251
  }>, z.ZodObject<z.objectUtil.extendShape<{
10189
- id: z.ZodString;
10252
+ id: z.ZodBranded<z.ZodString, "UUID">;
10190
10253
  transactionId: z.ZodString;
10254
+ createdByUserType: z.ZodEnum<["user", "system"]>;
10191
10255
  createdAt: z.ZodString;
10192
10256
  createdBy: z.ZodString;
10193
10257
  createdByRole: z.ZodString;
10194
10258
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10195
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10259
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
10196
10260
  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<{
10197
10261
  filename: z.ZodString;
10198
10262
  originalFilename: z.ZodString;
@@ -10319,7 +10383,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10319
10383
  surname: string;
10320
10384
  middlename?: string | null | undefined;
10321
10385
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
10322
- 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<{
10386
+ 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<{
10323
10387
  filename: z.ZodString;
10324
10388
  originalFilename: z.ZodString;
10325
10389
  type: z.ZodString;
@@ -10444,16 +10508,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10444
10508
  firstname: string;
10445
10509
  surname: string;
10446
10510
  middlename?: string | null | undefined;
10447
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
10511
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
10448
10512
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10449
- originalActionId: z.ZodOptional<z.ZodString>;
10513
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
10450
10514
  }, {
10451
10515
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
10452
10516
  }>, "strip", z.ZodTypeAny, {
10453
10517
  type: "MARKED_AS_DUPLICATE";
10454
- id: string;
10518
+ id: string & z.BRAND<"UUID">;
10455
10519
  status: "Rejected" | "Requested" | "Accepted";
10456
10520
  transactionId: string;
10521
+ createdByUserType: "system" | "user";
10457
10522
  createdAt: string;
10458
10523
  createdBy: string;
10459
10524
  createdByRole: string;
@@ -10500,7 +10565,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10500
10565
  originalFilename: string;
10501
10566
  }[] | [string, string] | null | undefined>;
10502
10567
  createdBySignature?: string | null | undefined;
10503
- createdAtLocation?: string | null | undefined;
10568
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10504
10569
  annotation?: Record<string, string | number | boolean | {
10505
10570
  type: string;
10506
10571
  filename: string;
@@ -10542,13 +10607,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10542
10607
  option: string;
10543
10608
  filename: string;
10544
10609
  originalFilename: string;
10545
- }[] | [string, string] | null | undefined> | undefined;
10546
- originalActionId?: string | undefined;
10610
+ }[] | [string, string] | null | undefined> | null | undefined;
10611
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10547
10612
  }, {
10548
10613
  type: "MARKED_AS_DUPLICATE";
10549
10614
  id: string;
10550
10615
  status: "Rejected" | "Requested" | "Accepted";
10551
10616
  transactionId: string;
10617
+ createdByUserType: "system" | "user";
10552
10618
  createdAt: string;
10553
10619
  createdBy: string;
10554
10620
  createdByRole: string;
@@ -10637,16 +10703,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10637
10703
  option: string;
10638
10704
  filename: string;
10639
10705
  originalFilename: string;
10640
- }[] | [string, string] | null | undefined> | undefined;
10641
- originalActionId?: string | undefined;
10706
+ }[] | [string, string] | null | undefined> | null | undefined;
10707
+ originalActionId?: string | null | undefined;
10642
10708
  }>, z.ZodObject<z.objectUtil.extendShape<{
10643
- id: z.ZodString;
10709
+ id: z.ZodBranded<z.ZodString, "UUID">;
10644
10710
  transactionId: z.ZodString;
10711
+ createdByUserType: z.ZodEnum<["user", "system"]>;
10645
10712
  createdAt: z.ZodString;
10646
10713
  createdBy: z.ZodString;
10647
10714
  createdByRole: z.ZodString;
10648
10715
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10649
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10716
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
10650
10717
  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<{
10651
10718
  filename: z.ZodString;
10652
10719
  originalFilename: z.ZodString;
@@ -10773,7 +10840,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10773
10840
  surname: string;
10774
10841
  middlename?: string | null | undefined;
10775
10842
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
10776
- 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<{
10843
+ 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<{
10777
10844
  filename: z.ZodString;
10778
10845
  originalFilename: z.ZodString;
10779
10846
  type: z.ZodString;
@@ -10898,9 +10965,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10898
10965
  firstname: string;
10899
10966
  surname: string;
10900
10967
  middlename?: string | null | undefined;
10901
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
10968
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
10902
10969
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10903
- originalActionId: z.ZodOptional<z.ZodString>;
10970
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
10904
10971
  }, {
10905
10972
  type: z.ZodLiteral<"ARCHIVE">;
10906
10973
  reason: z.ZodObject<{
@@ -10915,13 +10982,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10915
10982
  }>;
10916
10983
  }>, "strip", z.ZodTypeAny, {
10917
10984
  type: "ARCHIVE";
10918
- id: string;
10985
+ id: string & z.BRAND<"UUID">;
10919
10986
  status: "Rejected" | "Requested" | "Accepted";
10920
10987
  reason: {
10921
10988
  message: string;
10922
10989
  isDuplicate?: boolean | undefined;
10923
10990
  };
10924
10991
  transactionId: string;
10992
+ createdByUserType: "system" | "user";
10925
10993
  createdAt: string;
10926
10994
  createdBy: string;
10927
10995
  createdByRole: string;
@@ -10968,7 +11036,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10968
11036
  originalFilename: string;
10969
11037
  }[] | [string, string] | null | undefined>;
10970
11038
  createdBySignature?: string | null | undefined;
10971
- createdAtLocation?: string | null | undefined;
11039
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10972
11040
  annotation?: Record<string, string | number | boolean | {
10973
11041
  type: string;
10974
11042
  filename: string;
@@ -11010,8 +11078,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11010
11078
  option: string;
11011
11079
  filename: string;
11012
11080
  originalFilename: string;
11013
- }[] | [string, string] | null | undefined> | undefined;
11014
- originalActionId?: string | undefined;
11081
+ }[] | [string, string] | null | undefined> | null | undefined;
11082
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11015
11083
  }, {
11016
11084
  type: "ARCHIVE";
11017
11085
  id: string;
@@ -11021,6 +11089,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11021
11089
  isDuplicate?: boolean | undefined;
11022
11090
  };
11023
11091
  transactionId: string;
11092
+ createdByUserType: "system" | "user";
11024
11093
  createdAt: string;
11025
11094
  createdBy: string;
11026
11095
  createdByRole: string;
@@ -11109,16 +11178,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11109
11178
  option: string;
11110
11179
  filename: string;
11111
11180
  originalFilename: string;
11112
- }[] | [string, string] | null | undefined> | undefined;
11113
- originalActionId?: string | undefined;
11181
+ }[] | [string, string] | null | undefined> | null | undefined;
11182
+ originalActionId?: string | null | undefined;
11114
11183
  }>, z.ZodObject<z.objectUtil.extendShape<{
11115
- id: z.ZodString;
11184
+ id: z.ZodBranded<z.ZodString, "UUID">;
11116
11185
  transactionId: z.ZodString;
11186
+ createdByUserType: z.ZodEnum<["user", "system"]>;
11117
11187
  createdAt: z.ZodString;
11118
11188
  createdBy: z.ZodString;
11119
11189
  createdByRole: z.ZodString;
11120
11190
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11121
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11191
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11122
11192
  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<{
11123
11193
  filename: z.ZodString;
11124
11194
  originalFilename: z.ZodString;
@@ -11245,7 +11315,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11245
11315
  surname: string;
11246
11316
  middlename?: string | null | undefined;
11247
11317
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
11248
- 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<{
11318
+ 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<{
11249
11319
  filename: z.ZodString;
11250
11320
  originalFilename: z.ZodString;
11251
11321
  type: z.ZodString;
@@ -11370,16 +11440,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11370
11440
  firstname: string;
11371
11441
  surname: string;
11372
11442
  middlename?: string | null | undefined;
11373
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
11443
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
11374
11444
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11375
- originalActionId: z.ZodOptional<z.ZodString>;
11445
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11376
11446
  }, {
11377
11447
  type: z.ZodLiteral<"NOTIFY">;
11378
11448
  }>, "strip", z.ZodTypeAny, {
11379
11449
  type: "NOTIFY";
11380
- id: string;
11450
+ id: string & z.BRAND<"UUID">;
11381
11451
  status: "Rejected" | "Requested" | "Accepted";
11382
11452
  transactionId: string;
11453
+ createdByUserType: "system" | "user";
11383
11454
  createdAt: string;
11384
11455
  createdBy: string;
11385
11456
  createdByRole: string;
@@ -11426,7 +11497,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11426
11497
  originalFilename: string;
11427
11498
  }[] | [string, string] | null | undefined>;
11428
11499
  createdBySignature?: string | null | undefined;
11429
- createdAtLocation?: string | null | undefined;
11500
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
11430
11501
  annotation?: Record<string, string | number | boolean | {
11431
11502
  type: string;
11432
11503
  filename: string;
@@ -11468,13 +11539,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11468
11539
  option: string;
11469
11540
  filename: string;
11470
11541
  originalFilename: string;
11471
- }[] | [string, string] | null | undefined> | undefined;
11472
- originalActionId?: string | undefined;
11542
+ }[] | [string, string] | null | undefined> | null | undefined;
11543
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11473
11544
  }, {
11474
11545
  type: "NOTIFY";
11475
11546
  id: string;
11476
11547
  status: "Rejected" | "Requested" | "Accepted";
11477
11548
  transactionId: string;
11549
+ createdByUserType: "system" | "user";
11478
11550
  createdAt: string;
11479
11551
  createdBy: string;
11480
11552
  createdByRole: string;
@@ -11563,16 +11635,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11563
11635
  option: string;
11564
11636
  filename: string;
11565
11637
  originalFilename: string;
11566
- }[] | [string, string] | null | undefined> | undefined;
11567
- originalActionId?: string | undefined;
11638
+ }[] | [string, string] | null | undefined> | null | undefined;
11639
+ originalActionId?: string | null | undefined;
11568
11640
  }>, z.ZodObject<z.objectUtil.extendShape<{
11569
- id: z.ZodString;
11641
+ id: z.ZodBranded<z.ZodString, "UUID">;
11570
11642
  transactionId: z.ZodString;
11643
+ createdByUserType: z.ZodEnum<["user", "system"]>;
11571
11644
  createdAt: z.ZodString;
11572
11645
  createdBy: z.ZodString;
11573
11646
  createdByRole: z.ZodString;
11574
11647
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11575
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11648
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11576
11649
  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<{
11577
11650
  filename: z.ZodString;
11578
11651
  originalFilename: z.ZodString;
@@ -11699,7 +11772,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11699
11772
  surname: string;
11700
11773
  middlename?: string | null | undefined;
11701
11774
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
11702
- 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<{
11775
+ 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<{
11703
11776
  filename: z.ZodString;
11704
11777
  originalFilename: z.ZodString;
11705
11778
  type: z.ZodString;
@@ -11824,17 +11897,18 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11824
11897
  firstname: string;
11825
11898
  surname: string;
11826
11899
  middlename?: string | null | undefined;
11827
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
11900
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
11828
11901
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11829
- originalActionId: z.ZodOptional<z.ZodString>;
11902
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11830
11903
  }, {
11831
11904
  type: z.ZodLiteral<"REGISTER">;
11832
11905
  registrationNumber: z.ZodOptional<z.ZodString>;
11833
11906
  }>, "strip", z.ZodTypeAny, {
11834
11907
  type: "REGISTER";
11835
- id: string;
11908
+ id: string & z.BRAND<"UUID">;
11836
11909
  status: "Rejected" | "Requested" | "Accepted";
11837
11910
  transactionId: string;
11911
+ createdByUserType: "system" | "user";
11838
11912
  createdAt: string;
11839
11913
  createdBy: string;
11840
11914
  createdByRole: string;
@@ -11881,7 +11955,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11881
11955
  originalFilename: string;
11882
11956
  }[] | [string, string] | null | undefined>;
11883
11957
  createdBySignature?: string | null | undefined;
11884
- createdAtLocation?: string | null | undefined;
11958
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
11885
11959
  annotation?: Record<string, string | number | boolean | {
11886
11960
  type: string;
11887
11961
  filename: string;
@@ -11923,14 +11997,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11923
11997
  option: string;
11924
11998
  filename: string;
11925
11999
  originalFilename: string;
11926
- }[] | [string, string] | null | undefined> | undefined;
11927
- originalActionId?: string | undefined;
12000
+ }[] | [string, string] | null | undefined> | null | undefined;
12001
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11928
12002
  registrationNumber?: string | undefined;
11929
12003
  }, {
11930
12004
  type: "REGISTER";
11931
12005
  id: string;
11932
12006
  status: "Rejected" | "Requested" | "Accepted";
11933
12007
  transactionId: string;
12008
+ createdByUserType: "system" | "user";
11934
12009
  createdAt: string;
11935
12010
  createdBy: string;
11936
12011
  createdByRole: string;
@@ -12019,17 +12094,18 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12019
12094
  option: string;
12020
12095
  filename: string;
12021
12096
  originalFilename: string;
12022
- }[] | [string, string] | null | undefined> | undefined;
12023
- originalActionId?: string | undefined;
12097
+ }[] | [string, string] | null | undefined> | null | undefined;
12098
+ originalActionId?: string | null | undefined;
12024
12099
  registrationNumber?: string | undefined;
12025
12100
  }>, z.ZodObject<z.objectUtil.extendShape<{
12026
- id: z.ZodString;
12101
+ id: z.ZodBranded<z.ZodString, "UUID">;
12027
12102
  transactionId: z.ZodString;
12103
+ createdByUserType: z.ZodEnum<["user", "system"]>;
12028
12104
  createdAt: z.ZodString;
12029
12105
  createdBy: z.ZodString;
12030
12106
  createdByRole: z.ZodString;
12031
12107
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12032
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12108
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
12033
12109
  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<{
12034
12110
  filename: z.ZodString;
12035
12111
  originalFilename: z.ZodString;
@@ -12156,7 +12232,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12156
12232
  surname: string;
12157
12233
  middlename?: string | null | undefined;
12158
12234
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
12159
- 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<{
12235
+ 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<{
12160
12236
  filename: z.ZodString;
12161
12237
  originalFilename: z.ZodString;
12162
12238
  type: z.ZodString;
@@ -12281,16 +12357,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12281
12357
  firstname: string;
12282
12358
  surname: string;
12283
12359
  middlename?: string | null | undefined;
12284
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
12360
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
12285
12361
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12286
- originalActionId: z.ZodOptional<z.ZodString>;
12362
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
12287
12363
  }, {
12288
12364
  type: z.ZodLiteral<"DECLARE">;
12289
12365
  }>, "strip", z.ZodTypeAny, {
12290
12366
  type: "DECLARE";
12291
- id: string;
12367
+ id: string & z.BRAND<"UUID">;
12292
12368
  status: "Rejected" | "Requested" | "Accepted";
12293
12369
  transactionId: string;
12370
+ createdByUserType: "system" | "user";
12294
12371
  createdAt: string;
12295
12372
  createdBy: string;
12296
12373
  createdByRole: string;
@@ -12337,7 +12414,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12337
12414
  originalFilename: string;
12338
12415
  }[] | [string, string] | null | undefined>;
12339
12416
  createdBySignature?: string | null | undefined;
12340
- createdAtLocation?: string | null | undefined;
12417
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
12341
12418
  annotation?: Record<string, string | number | boolean | {
12342
12419
  type: string;
12343
12420
  filename: string;
@@ -12379,13 +12456,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12379
12456
  option: string;
12380
12457
  filename: string;
12381
12458
  originalFilename: string;
12382
- }[] | [string, string] | null | undefined> | undefined;
12383
- originalActionId?: string | undefined;
12459
+ }[] | [string, string] | null | undefined> | null | undefined;
12460
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12384
12461
  }, {
12385
12462
  type: "DECLARE";
12386
12463
  id: string;
12387
12464
  status: "Rejected" | "Requested" | "Accepted";
12388
12465
  transactionId: string;
12466
+ createdByUserType: "system" | "user";
12389
12467
  createdAt: string;
12390
12468
  createdBy: string;
12391
12469
  createdByRole: string;
@@ -12474,16 +12552,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12474
12552
  option: string;
12475
12553
  filename: string;
12476
12554
  originalFilename: string;
12477
- }[] | [string, string] | null | undefined> | undefined;
12478
- originalActionId?: string | undefined;
12555
+ }[] | [string, string] | null | undefined> | null | undefined;
12556
+ originalActionId?: string | null | undefined;
12479
12557
  }>, z.ZodObject<z.objectUtil.extendShape<{
12480
- id: z.ZodString;
12558
+ id: z.ZodBranded<z.ZodString, "UUID">;
12481
12559
  transactionId: z.ZodString;
12560
+ createdByUserType: z.ZodEnum<["user", "system"]>;
12482
12561
  createdAt: z.ZodString;
12483
12562
  createdBy: z.ZodString;
12484
12563
  createdByRole: z.ZodString;
12485
12564
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12486
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12565
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
12487
12566
  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<{
12488
12567
  filename: z.ZodString;
12489
12568
  originalFilename: z.ZodString;
@@ -12610,7 +12689,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12610
12689
  surname: string;
12611
12690
  middlename?: string | null | undefined;
12612
12691
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
12613
- 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<{
12692
+ 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<{
12614
12693
  filename: z.ZodString;
12615
12694
  originalFilename: z.ZodString;
12616
12695
  type: z.ZodString;
@@ -12735,17 +12814,18 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12735
12814
  firstname: string;
12736
12815
  surname: string;
12737
12816
  middlename?: string | null | undefined;
12738
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
12817
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
12739
12818
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12740
- originalActionId: z.ZodOptional<z.ZodString>;
12819
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
12741
12820
  }, {
12742
12821
  type: z.ZodLiteral<"ASSIGN">;
12743
12822
  assignedTo: z.ZodString;
12744
12823
  }>, "strip", z.ZodTypeAny, {
12745
12824
  type: "ASSIGN";
12746
- id: string;
12825
+ id: string & z.BRAND<"UUID">;
12747
12826
  status: "Rejected" | "Requested" | "Accepted";
12748
12827
  transactionId: string;
12828
+ createdByUserType: "system" | "user";
12749
12829
  createdAt: string;
12750
12830
  createdBy: string;
12751
12831
  createdByRole: string;
@@ -12793,7 +12873,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12793
12873
  }[] | [string, string] | null | undefined>;
12794
12874
  assignedTo: string;
12795
12875
  createdBySignature?: string | null | undefined;
12796
- createdAtLocation?: string | null | undefined;
12876
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
12797
12877
  annotation?: Record<string, string | number | boolean | {
12798
12878
  type: string;
12799
12879
  filename: string;
@@ -12835,13 +12915,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12835
12915
  option: string;
12836
12916
  filename: string;
12837
12917
  originalFilename: string;
12838
- }[] | [string, string] | null | undefined> | undefined;
12839
- originalActionId?: string | undefined;
12918
+ }[] | [string, string] | null | undefined> | null | undefined;
12919
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12840
12920
  }, {
12841
12921
  type: "ASSIGN";
12842
12922
  id: string;
12843
12923
  status: "Rejected" | "Requested" | "Accepted";
12844
12924
  transactionId: string;
12925
+ createdByUserType: "system" | "user";
12845
12926
  createdAt: string;
12846
12927
  createdBy: string;
12847
12928
  createdByRole: string;
@@ -12931,16 +13012,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12931
13012
  option: string;
12932
13013
  filename: string;
12933
13014
  originalFilename: string;
12934
- }[] | [string, string] | null | undefined> | undefined;
12935
- originalActionId?: string | undefined;
13015
+ }[] | [string, string] | null | undefined> | null | undefined;
13016
+ originalActionId?: string | null | undefined;
12936
13017
  }>, z.ZodObject<z.objectUtil.extendShape<{
12937
- id: z.ZodString;
13018
+ id: z.ZodBranded<z.ZodString, "UUID">;
12938
13019
  transactionId: z.ZodString;
13020
+ createdByUserType: z.ZodEnum<["user", "system"]>;
12939
13021
  createdAt: z.ZodString;
12940
13022
  createdBy: z.ZodString;
12941
13023
  createdByRole: z.ZodString;
12942
13024
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12943
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13025
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
12944
13026
  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<{
12945
13027
  filename: z.ZodString;
12946
13028
  originalFilename: z.ZodString;
@@ -13067,7 +13149,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13067
13149
  surname: string;
13068
13150
  middlename?: string | null | undefined;
13069
13151
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
13070
- 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<{
13152
+ 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<{
13071
13153
  filename: z.ZodString;
13072
13154
  originalFilename: z.ZodString;
13073
13155
  type: z.ZodString;
@@ -13192,16 +13274,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13192
13274
  firstname: string;
13193
13275
  surname: string;
13194
13276
  middlename?: string | null | undefined;
13195
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
13277
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
13196
13278
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13197
- originalActionId: z.ZodOptional<z.ZodString>;
13279
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
13198
13280
  }, {
13199
13281
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
13200
13282
  }>, "strip", z.ZodTypeAny, {
13201
13283
  type: "REQUEST_CORRECTION";
13202
- id: string;
13284
+ id: string & z.BRAND<"UUID">;
13203
13285
  status: "Rejected" | "Requested" | "Accepted";
13204
13286
  transactionId: string;
13287
+ createdByUserType: "system" | "user";
13205
13288
  createdAt: string;
13206
13289
  createdBy: string;
13207
13290
  createdByRole: string;
@@ -13248,7 +13331,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13248
13331
  originalFilename: string;
13249
13332
  }[] | [string, string] | null | undefined>;
13250
13333
  createdBySignature?: string | null | undefined;
13251
- createdAtLocation?: string | null | undefined;
13334
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
13252
13335
  annotation?: Record<string, string | number | boolean | {
13253
13336
  type: string;
13254
13337
  filename: string;
@@ -13290,13 +13373,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13290
13373
  option: string;
13291
13374
  filename: string;
13292
13375
  originalFilename: string;
13293
- }[] | [string, string] | null | undefined> | undefined;
13294
- originalActionId?: string | undefined;
13376
+ }[] | [string, string] | null | undefined> | null | undefined;
13377
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
13295
13378
  }, {
13296
13379
  type: "REQUEST_CORRECTION";
13297
13380
  id: string;
13298
13381
  status: "Rejected" | "Requested" | "Accepted";
13299
13382
  transactionId: string;
13383
+ createdByUserType: "system" | "user";
13300
13384
  createdAt: string;
13301
13385
  createdBy: string;
13302
13386
  createdByRole: string;
@@ -13385,16 +13469,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13385
13469
  option: string;
13386
13470
  filename: string;
13387
13471
  originalFilename: string;
13388
- }[] | [string, string] | null | undefined> | undefined;
13389
- originalActionId?: string | undefined;
13472
+ }[] | [string, string] | null | undefined> | null | undefined;
13473
+ originalActionId?: string | null | undefined;
13390
13474
  }>, z.ZodObject<z.objectUtil.extendShape<{
13391
- id: z.ZodString;
13475
+ id: z.ZodBranded<z.ZodString, "UUID">;
13392
13476
  transactionId: z.ZodString;
13477
+ createdByUserType: z.ZodEnum<["user", "system"]>;
13393
13478
  createdAt: z.ZodString;
13394
13479
  createdBy: z.ZodString;
13395
13480
  createdByRole: z.ZodString;
13396
13481
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13397
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13482
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13398
13483
  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<{
13399
13484
  filename: z.ZodString;
13400
13485
  originalFilename: z.ZodString;
@@ -13521,7 +13606,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13521
13606
  surname: string;
13522
13607
  middlename?: string | null | undefined;
13523
13608
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
13524
- 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<{
13609
+ 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<{
13525
13610
  filename: z.ZodString;
13526
13611
  originalFilename: z.ZodString;
13527
13612
  type: z.ZodString;
@@ -13646,17 +13731,18 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13646
13731
  firstname: string;
13647
13732
  surname: string;
13648
13733
  middlename?: string | null | undefined;
13649
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
13734
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
13650
13735
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13651
- originalActionId: z.ZodOptional<z.ZodString>;
13736
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
13652
13737
  }, {
13653
13738
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
13654
13739
  requestId: z.ZodString;
13655
13740
  }>, "strip", z.ZodTypeAny, {
13656
13741
  type: "APPROVE_CORRECTION";
13657
- id: string;
13742
+ id: string & z.BRAND<"UUID">;
13658
13743
  status: "Rejected" | "Requested" | "Accepted";
13659
13744
  transactionId: string;
13745
+ createdByUserType: "system" | "user";
13660
13746
  createdAt: string;
13661
13747
  createdBy: string;
13662
13748
  createdByRole: string;
@@ -13704,7 +13790,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13704
13790
  }[] | [string, string] | null | undefined>;
13705
13791
  requestId: string;
13706
13792
  createdBySignature?: string | null | undefined;
13707
- createdAtLocation?: string | null | undefined;
13793
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
13708
13794
  annotation?: Record<string, string | number | boolean | {
13709
13795
  type: string;
13710
13796
  filename: string;
@@ -13746,13 +13832,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13746
13832
  option: string;
13747
13833
  filename: string;
13748
13834
  originalFilename: string;
13749
- }[] | [string, string] | null | undefined> | undefined;
13750
- originalActionId?: string | undefined;
13835
+ }[] | [string, string] | null | undefined> | null | undefined;
13836
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
13751
13837
  }, {
13752
13838
  type: "APPROVE_CORRECTION";
13753
13839
  id: string;
13754
13840
  status: "Rejected" | "Requested" | "Accepted";
13755
13841
  transactionId: string;
13842
+ createdByUserType: "system" | "user";
13756
13843
  createdAt: string;
13757
13844
  createdBy: string;
13758
13845
  createdByRole: string;
@@ -13842,16 +13929,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13842
13929
  option: string;
13843
13930
  filename: string;
13844
13931
  originalFilename: string;
13845
- }[] | [string, string] | null | undefined> | undefined;
13846
- originalActionId?: string | undefined;
13932
+ }[] | [string, string] | null | undefined> | null | undefined;
13933
+ originalActionId?: string | null | undefined;
13847
13934
  }>, z.ZodObject<z.objectUtil.extendShape<{
13848
- id: z.ZodString;
13935
+ id: z.ZodBranded<z.ZodString, "UUID">;
13849
13936
  transactionId: z.ZodString;
13937
+ createdByUserType: z.ZodEnum<["user", "system"]>;
13850
13938
  createdAt: z.ZodString;
13851
13939
  createdBy: z.ZodString;
13852
13940
  createdByRole: z.ZodString;
13853
13941
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13854
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13942
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13855
13943
  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<{
13856
13944
  filename: z.ZodString;
13857
13945
  originalFilename: z.ZodString;
@@ -13978,7 +14066,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13978
14066
  surname: string;
13979
14067
  middlename?: string | null | undefined;
13980
14068
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
13981
- 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<{
14069
+ 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<{
13982
14070
  filename: z.ZodString;
13983
14071
  originalFilename: z.ZodString;
13984
14072
  type: z.ZodString;
@@ -14103,17 +14191,18 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14103
14191
  firstname: string;
14104
14192
  surname: string;
14105
14193
  middlename?: string | null | undefined;
14106
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
14194
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
14107
14195
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14108
- originalActionId: z.ZodOptional<z.ZodString>;
14196
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
14109
14197
  }, {
14110
14198
  type: z.ZodLiteral<"REJECT_CORRECTION">;
14111
14199
  requestId: z.ZodString;
14112
14200
  }>, "strip", z.ZodTypeAny, {
14113
14201
  type: "REJECT_CORRECTION";
14114
- id: string;
14202
+ id: string & z.BRAND<"UUID">;
14115
14203
  status: "Rejected" | "Requested" | "Accepted";
14116
14204
  transactionId: string;
14205
+ createdByUserType: "system" | "user";
14117
14206
  createdAt: string;
14118
14207
  createdBy: string;
14119
14208
  createdByRole: string;
@@ -14161,7 +14250,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14161
14250
  }[] | [string, string] | null | undefined>;
14162
14251
  requestId: string;
14163
14252
  createdBySignature?: string | null | undefined;
14164
- createdAtLocation?: string | null | undefined;
14253
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
14165
14254
  annotation?: Record<string, string | number | boolean | {
14166
14255
  type: string;
14167
14256
  filename: string;
@@ -14203,13 +14292,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14203
14292
  option: string;
14204
14293
  filename: string;
14205
14294
  originalFilename: string;
14206
- }[] | [string, string] | null | undefined> | undefined;
14207
- originalActionId?: string | undefined;
14295
+ }[] | [string, string] | null | undefined> | null | undefined;
14296
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
14208
14297
  }, {
14209
14298
  type: "REJECT_CORRECTION";
14210
14299
  id: string;
14211
14300
  status: "Rejected" | "Requested" | "Accepted";
14212
14301
  transactionId: string;
14302
+ createdByUserType: "system" | "user";
14213
14303
  createdAt: string;
14214
14304
  createdBy: string;
14215
14305
  createdByRole: string;
@@ -14299,16 +14389,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14299
14389
  option: string;
14300
14390
  filename: string;
14301
14391
  originalFilename: string;
14302
- }[] | [string, string] | null | undefined> | undefined;
14303
- originalActionId?: string | undefined;
14392
+ }[] | [string, string] | null | undefined> | null | undefined;
14393
+ originalActionId?: string | null | undefined;
14304
14394
  }>, z.ZodObject<z.objectUtil.extendShape<{
14305
- id: z.ZodString;
14395
+ id: z.ZodBranded<z.ZodString, "UUID">;
14306
14396
  transactionId: z.ZodString;
14397
+ createdByUserType: z.ZodEnum<["user", "system"]>;
14307
14398
  createdAt: z.ZodString;
14308
14399
  createdBy: z.ZodString;
14309
14400
  createdByRole: z.ZodString;
14310
14401
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14311
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14402
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
14312
14403
  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<{
14313
14404
  filename: z.ZodString;
14314
14405
  originalFilename: z.ZodString;
@@ -14435,7 +14526,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14435
14526
  surname: string;
14436
14527
  middlename?: string | null | undefined;
14437
14528
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
14438
- 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<{
14529
+ 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<{
14439
14530
  filename: z.ZodString;
14440
14531
  originalFilename: z.ZodString;
14441
14532
  type: z.ZodString;
@@ -14560,17 +14651,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14560
14651
  firstname: string;
14561
14652
  surname: string;
14562
14653
  middlename?: string | null | undefined;
14563
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
14654
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
14564
14655
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14565
- originalActionId: z.ZodOptional<z.ZodString>;
14656
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
14566
14657
  }, {
14567
14658
  type: z.ZodLiteral<"UNASSIGN">;
14568
- assignedTo: z.ZodLiteral<null>;
14569
14659
  }>, "strip", z.ZodTypeAny, {
14570
14660
  type: "UNASSIGN";
14571
- id: string;
14661
+ id: string & z.BRAND<"UUID">;
14572
14662
  status: "Rejected" | "Requested" | "Accepted";
14573
14663
  transactionId: string;
14664
+ createdByUserType: "system" | "user";
14574
14665
  createdAt: string;
14575
14666
  createdBy: string;
14576
14667
  createdByRole: string;
@@ -14616,9 +14707,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14616
14707
  filename: string;
14617
14708
  originalFilename: string;
14618
14709
  }[] | [string, string] | null | undefined>;
14619
- assignedTo: null;
14620
14710
  createdBySignature?: string | null | undefined;
14621
- createdAtLocation?: string | null | undefined;
14711
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
14622
14712
  annotation?: Record<string, string | number | boolean | {
14623
14713
  type: string;
14624
14714
  filename: string;
@@ -14660,13 +14750,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14660
14750
  option: string;
14661
14751
  filename: string;
14662
14752
  originalFilename: string;
14663
- }[] | [string, string] | null | undefined> | undefined;
14664
- originalActionId?: string | undefined;
14753
+ }[] | [string, string] | null | undefined> | null | undefined;
14754
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
14665
14755
  }, {
14666
14756
  type: "UNASSIGN";
14667
14757
  id: string;
14668
14758
  status: "Rejected" | "Requested" | "Accepted";
14669
14759
  transactionId: string;
14760
+ createdByUserType: "system" | "user";
14670
14761
  createdAt: string;
14671
14762
  createdBy: string;
14672
14763
  createdByRole: string;
@@ -14712,7 +14803,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14712
14803
  filename: string;
14713
14804
  originalFilename: string;
14714
14805
  }[] | [string, string] | null | undefined>;
14715
- assignedTo: null;
14716
14806
  createdBySignature?: string | null | undefined;
14717
14807
  createdAtLocation?: string | null | undefined;
14718
14808
  annotation?: Record<string, string | number | boolean | {
@@ -14756,16 +14846,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14756
14846
  option: string;
14757
14847
  filename: string;
14758
14848
  originalFilename: string;
14759
- }[] | [string, string] | null | undefined> | undefined;
14760
- originalActionId?: string | undefined;
14849
+ }[] | [string, string] | null | undefined> | null | undefined;
14850
+ originalActionId?: string | null | undefined;
14761
14851
  }>, z.ZodObject<z.objectUtil.extendShape<{
14762
- id: z.ZodString;
14852
+ id: z.ZodBranded<z.ZodString, "UUID">;
14763
14853
  transactionId: z.ZodString;
14854
+ createdByUserType: z.ZodEnum<["user", "system"]>;
14764
14855
  createdAt: z.ZodString;
14765
14856
  createdBy: z.ZodString;
14766
14857
  createdByRole: z.ZodString;
14767
14858
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14768
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14859
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
14769
14860
  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<{
14770
14861
  filename: z.ZodString;
14771
14862
  originalFilename: z.ZodString;
@@ -14892,7 +14983,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14892
14983
  surname: string;
14893
14984
  middlename?: string | null | undefined;
14894
14985
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
14895
- 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<{
14986
+ 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<{
14896
14987
  filename: z.ZodString;
14897
14988
  originalFilename: z.ZodString;
14898
14989
  type: z.ZodString;
@@ -15017,16 +15108,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15017
15108
  firstname: string;
15018
15109
  surname: string;
15019
15110
  middlename?: string | null | undefined;
15020
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
15111
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
15021
15112
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
15022
- originalActionId: z.ZodOptional<z.ZodString>;
15113
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
15023
15114
  }, {
15024
15115
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
15025
15116
  }>, "strip", z.ZodTypeAny, {
15026
15117
  type: "PRINT_CERTIFICATE";
15027
- id: string;
15118
+ id: string & z.BRAND<"UUID">;
15028
15119
  status: "Rejected" | "Requested" | "Accepted";
15029
15120
  transactionId: string;
15121
+ createdByUserType: "system" | "user";
15030
15122
  createdAt: string;
15031
15123
  createdBy: string;
15032
15124
  createdByRole: string;
@@ -15073,7 +15165,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15073
15165
  originalFilename: string;
15074
15166
  }[] | [string, string] | null | undefined>;
15075
15167
  createdBySignature?: string | null | undefined;
15076
- createdAtLocation?: string | null | undefined;
15168
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
15077
15169
  annotation?: Record<string, string | number | boolean | {
15078
15170
  type: string;
15079
15171
  filename: string;
@@ -15115,13 +15207,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15115
15207
  option: string;
15116
15208
  filename: string;
15117
15209
  originalFilename: string;
15118
- }[] | [string, string] | null | undefined> | undefined;
15119
- originalActionId?: string | undefined;
15210
+ }[] | [string, string] | null | undefined> | null | undefined;
15211
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
15120
15212
  }, {
15121
15213
  type: "PRINT_CERTIFICATE";
15122
15214
  id: string;
15123
15215
  status: "Rejected" | "Requested" | "Accepted";
15124
15216
  transactionId: string;
15217
+ createdByUserType: "system" | "user";
15125
15218
  createdAt: string;
15126
15219
  createdBy: string;
15127
15220
  createdByRole: string;
@@ -15210,16 +15303,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15210
15303
  option: string;
15211
15304
  filename: string;
15212
15305
  originalFilename: string;
15213
- }[] | [string, string] | null | undefined> | undefined;
15214
- originalActionId?: string | undefined;
15306
+ }[] | [string, string] | null | undefined> | null | undefined;
15307
+ originalActionId?: string | null | undefined;
15215
15308
  }>, z.ZodObject<z.objectUtil.extendShape<{
15216
- id: z.ZodString;
15309
+ id: z.ZodBranded<z.ZodString, "UUID">;
15217
15310
  transactionId: z.ZodString;
15311
+ createdByUserType: z.ZodEnum<["user", "system"]>;
15218
15312
  createdAt: z.ZodString;
15219
15313
  createdBy: z.ZodString;
15220
15314
  createdByRole: z.ZodString;
15221
15315
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15222
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15316
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
15223
15317
  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<{
15224
15318
  filename: z.ZodString;
15225
15319
  originalFilename: z.ZodString;
@@ -15346,7 +15440,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15346
15440
  surname: string;
15347
15441
  middlename?: string | null | undefined;
15348
15442
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
15349
- 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<{
15443
+ 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<{
15350
15444
  filename: z.ZodString;
15351
15445
  originalFilename: z.ZodString;
15352
15446
  type: z.ZodString;
@@ -15471,16 +15565,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15471
15565
  firstname: string;
15472
15566
  surname: string;
15473
15567
  middlename?: string | null | undefined;
15474
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
15568
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
15475
15569
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
15476
- originalActionId: z.ZodOptional<z.ZodString>;
15570
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
15477
15571
  }, {
15478
15572
  type: z.ZodLiteral<"READ">;
15479
15573
  }>, "strip", z.ZodTypeAny, {
15480
15574
  type: "READ";
15481
- id: string;
15575
+ id: string & z.BRAND<"UUID">;
15482
15576
  status: "Rejected" | "Requested" | "Accepted";
15483
15577
  transactionId: string;
15578
+ createdByUserType: "system" | "user";
15484
15579
  createdAt: string;
15485
15580
  createdBy: string;
15486
15581
  createdByRole: string;
@@ -15527,7 +15622,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15527
15622
  originalFilename: string;
15528
15623
  }[] | [string, string] | null | undefined>;
15529
15624
  createdBySignature?: string | null | undefined;
15530
- createdAtLocation?: string | null | undefined;
15625
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
15531
15626
  annotation?: Record<string, string | number | boolean | {
15532
15627
  type: string;
15533
15628
  filename: string;
@@ -15569,13 +15664,14 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15569
15664
  option: string;
15570
15665
  filename: string;
15571
15666
  originalFilename: string;
15572
- }[] | [string, string] | null | undefined> | undefined;
15573
- originalActionId?: string | undefined;
15667
+ }[] | [string, string] | null | undefined> | null | undefined;
15668
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
15574
15669
  }, {
15575
15670
  type: "READ";
15576
15671
  id: string;
15577
15672
  status: "Rejected" | "Requested" | "Accepted";
15578
15673
  transactionId: string;
15674
+ createdByUserType: "system" | "user";
15579
15675
  createdAt: string;
15580
15676
  createdBy: string;
15581
15677
  createdByRole: string;
@@ -15664,16 +15760,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15664
15760
  option: string;
15665
15761
  filename: string;
15666
15762
  originalFilename: string;
15667
- }[] | [string, string] | null | undefined> | undefined;
15668
- originalActionId?: string | undefined;
15763
+ }[] | [string, string] | null | undefined> | null | undefined;
15764
+ originalActionId?: string | null | undefined;
15669
15765
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
15670
- id: z.ZodString;
15766
+ id: z.ZodBranded<z.ZodString, "UUID">;
15671
15767
  transactionId: z.ZodString;
15768
+ createdByUserType: z.ZodEnum<["user", "system"]>;
15672
15769
  createdAt: z.ZodString;
15673
15770
  createdBy: z.ZodString;
15674
15771
  createdByRole: z.ZodString;
15675
15772
  createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15676
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15773
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
15677
15774
  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<{
15678
15775
  filename: z.ZodString;
15679
15776
  originalFilename: z.ZodString;
@@ -15800,7 +15897,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15800
15897
  surname: string;
15801
15898
  middlename?: string | null | undefined;
15802
15899
  }>, z.ZodNull]>, z.ZodUndefined]>]>>;
15803
- 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<{
15900
+ 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<{
15804
15901
  filename: z.ZodString;
15805
15902
  originalFilename: z.ZodString;
15806
15903
  type: z.ZodString;
@@ -15925,34 +16022,36 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15925
16022
  firstname: string;
15926
16023
  surname: string;
15927
16024
  middlename?: string | null | undefined;
15928
- }>, z.ZodNull]>, z.ZodUndefined]>]>>>;
16025
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
15929
16026
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
15930
- originalActionId: z.ZodOptional<z.ZodString>;
16027
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
15931
16028
  }, "declaration" | "annotation">, {
15932
16029
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
15933
16030
  status: z.ZodLiteral<"Rejected">;
15934
16031
  }>, "strip", z.ZodTypeAny, {
15935
16032
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
15936
- id: string;
16033
+ id: string & z.BRAND<"UUID">;
15937
16034
  status: "Rejected";
15938
16035
  transactionId: string;
16036
+ createdByUserType: "system" | "user";
15939
16037
  createdAt: string;
15940
16038
  createdBy: string;
15941
16039
  createdByRole: string;
15942
16040
  createdBySignature?: string | null | undefined;
15943
- createdAtLocation?: string | null | undefined;
15944
- originalActionId?: string | undefined;
16041
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
16042
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
15945
16043
  }, {
15946
16044
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
15947
16045
  id: string;
15948
16046
  status: "Rejected";
15949
16047
  transactionId: string;
16048
+ createdByUserType: "system" | "user";
15950
16049
  createdAt: string;
15951
16050
  createdBy: string;
15952
16051
  createdByRole: string;
15953
16052
  createdBySignature?: string | null | undefined;
15954
16053
  createdAtLocation?: string | null | undefined;
15955
- originalActionId?: string | undefined;
16054
+ originalActionId?: string | null | undefined;
15956
16055
  }>]>;
15957
16056
  export type Action = ActionDocument | AsyncRejectActionDocument;
15958
16057
  export declare const ResolvedUser: z.ZodObject<{