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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/commons/api/router.d.ts +11542 -4327
  2. package/dist/commons/conditionals/conditionals.d.ts +11 -7
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +104357 -1720
  5. package/dist/commons/events/ActionDocument.d.ts +865 -452
  6. package/dist/commons/events/ActionInput.d.ts +443 -363
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  8. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  9. package/dist/commons/events/Constants.d.ts +2 -0
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  11. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  12. package/dist/commons/events/Draft.d.ts +52 -39
  13. package/dist/commons/events/EventConfig.d.ts +50126 -1345
  14. package/dist/commons/events/EventDocument.d.ts +550 -330
  15. package/dist/commons/events/EventIndex.d.ts +1327 -18
  16. package/dist/commons/events/EventMetadata.d.ts +269 -16
  17. package/dist/commons/events/FieldConfig.d.ts +4280 -754
  18. package/dist/commons/events/FieldType.d.ts +3 -3
  19. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  20. package/dist/commons/events/FieldValue.d.ts +7 -4
  21. package/dist/commons/events/FormConfig.d.ts +43591 -439
  22. package/dist/commons/events/PageConfig.d.ts +10860 -204
  23. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  24. package/dist/commons/events/User.d.ts +31 -2
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  26. package/dist/commons/events/WorkqueueConfig.d.ts +4525 -20
  27. package/dist/commons/events/defineConfig.d.ts +7940 -28
  28. package/dist/commons/events/event.d.ts +54 -0
  29. package/dist/commons/events/field.d.ts +82 -0
  30. package/dist/commons/events/index.d.ts +7 -0
  31. package/dist/commons/events/scopes.d.ts +45 -0
  32. package/dist/commons/events/serializer.d.ts +2 -0
  33. package/dist/commons/events/test.utils.d.ts +22 -51
  34. package/dist/commons/events/transactions.d.ts +1 -1
  35. package/dist/commons/events/utils.d.ts +3670 -71
  36. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  37. package/dist/conditionals/index.js +55 -35
  38. package/dist/events/index.js +3662 -1691
  39. package/dist/scopes/index.d.ts +94 -6
  40. package/dist/scopes/index.js +42 -21
  41. package/package.json +3 -2
@@ -1,9 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { FieldValue } from './FieldValue';
3
2
  /**
4
3
  * ActionUpdate is a record of a specific action that updated data fields.
5
4
  */
6
- export declare const ActionUpdate: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5
+ export declare const ActionUpdate: 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<{
7
6
  filename: z.ZodString;
8
7
  originalFilename: z.ZodString;
9
8
  type: z.ZodString;
@@ -121,7 +120,121 @@ export type ActionUpdate = z.infer<typeof ActionUpdate>;
121
120
  /**
122
121
  * EventState is an aggregate of all the actions that have been applied to event data.
123
122
  */
124
- export type EventState = Record<string, FieldValue>;
123
+ export declare const EventState: 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<{
124
+ filename: z.ZodString;
125
+ originalFilename: z.ZodString;
126
+ type: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: string;
129
+ filename: string;
130
+ originalFilename: string;
131
+ }, {
132
+ type: string;
133
+ filename: string;
134
+ originalFilename: string;
135
+ }>, z.ZodArray<z.ZodObject<{
136
+ filename: z.ZodString;
137
+ originalFilename: z.ZodString;
138
+ type: z.ZodString;
139
+ option: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ type: string;
142
+ option: string;
143
+ filename: string;
144
+ originalFilename: string;
145
+ }, {
146
+ type: string;
147
+ option: string;
148
+ filename: string;
149
+ originalFilename: string;
150
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
151
+ country: z.ZodString;
152
+ addressType: z.ZodLiteral<"DOMESTIC">;
153
+ province: z.ZodString;
154
+ district: z.ZodString;
155
+ }, {
156
+ urbanOrRural: z.ZodLiteral<"URBAN">;
157
+ town: z.ZodOptional<z.ZodString>;
158
+ residentialArea: z.ZodOptional<z.ZodString>;
159
+ street: z.ZodOptional<z.ZodString>;
160
+ number: z.ZodOptional<z.ZodString>;
161
+ zipCode: z.ZodOptional<z.ZodString>;
162
+ }>, "strip", z.ZodTypeAny, {
163
+ country: string;
164
+ district: string;
165
+ addressType: "DOMESTIC";
166
+ province: string;
167
+ urbanOrRural: "URBAN";
168
+ number?: string | undefined;
169
+ town?: string | undefined;
170
+ residentialArea?: string | undefined;
171
+ street?: string | undefined;
172
+ zipCode?: string | undefined;
173
+ }, {
174
+ country: string;
175
+ district: string;
176
+ addressType: "DOMESTIC";
177
+ province: string;
178
+ urbanOrRural: "URBAN";
179
+ number?: string | undefined;
180
+ town?: string | undefined;
181
+ residentialArea?: string | undefined;
182
+ street?: string | undefined;
183
+ zipCode?: string | undefined;
184
+ }>, z.ZodObject<z.objectUtil.extendShape<{
185
+ country: z.ZodString;
186
+ addressType: z.ZodLiteral<"DOMESTIC">;
187
+ province: z.ZodString;
188
+ district: z.ZodString;
189
+ }, {
190
+ urbanOrRural: z.ZodLiteral<"RURAL">;
191
+ village: z.ZodOptional<z.ZodString>;
192
+ }>, "strip", z.ZodTypeAny, {
193
+ country: string;
194
+ district: string;
195
+ addressType: "DOMESTIC";
196
+ province: string;
197
+ urbanOrRural: "RURAL";
198
+ village?: string | undefined;
199
+ }, {
200
+ country: string;
201
+ district: string;
202
+ addressType: "DOMESTIC";
203
+ province: string;
204
+ urbanOrRural: "RURAL";
205
+ village?: string | undefined;
206
+ }>, z.ZodUndefined, z.ZodObject<{
207
+ country: z.ZodString;
208
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
209
+ state: z.ZodString;
210
+ district2: z.ZodString;
211
+ cityOrTown: z.ZodOptional<z.ZodString>;
212
+ addressLine1: z.ZodOptional<z.ZodString>;
213
+ addressLine2: z.ZodOptional<z.ZodString>;
214
+ addressLine3: z.ZodOptional<z.ZodString>;
215
+ postcodeOrZip: z.ZodOptional<z.ZodString>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ country: string;
218
+ state: string;
219
+ addressType: "INTERNATIONAL";
220
+ district2: string;
221
+ cityOrTown?: string | undefined;
222
+ addressLine1?: string | undefined;
223
+ addressLine2?: string | undefined;
224
+ addressLine3?: string | undefined;
225
+ postcodeOrZip?: string | undefined;
226
+ }, {
227
+ country: string;
228
+ state: string;
229
+ addressType: "INTERNATIONAL";
230
+ district2: string;
231
+ cityOrTown?: string | undefined;
232
+ addressLine1?: string | undefined;
233
+ addressLine2?: string | undefined;
234
+ addressLine3?: string | undefined;
235
+ postcodeOrZip?: string | undefined;
236
+ }>]>>;
237
+ export type EventState = z.infer<typeof EventState>;
125
238
  export declare const ActionStatus: {
126
239
  readonly Requested: "Requested";
127
240
  readonly Accepted: "Accepted";
@@ -130,9 +243,12 @@ export declare const ActionStatus: {
130
243
  export type ActionStatus = keyof typeof ActionStatus;
131
244
  export declare const ActionBase: z.ZodObject<{
132
245
  id: z.ZodString;
246
+ transactionId: z.ZodString;
133
247
  createdAt: z.ZodString;
134
248
  createdBy: z.ZodString;
135
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
249
+ createdByRole: z.ZodString;
250
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
251
+ 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<{
136
252
  filename: z.ZodString;
137
253
  originalFilename: z.ZodString;
138
254
  type: z.ZodString;
@@ -246,7 +362,7 @@ export declare const ActionBase: z.ZodObject<{
246
362
  addressLine3?: string | null | undefined;
247
363
  postcodeOrZip?: string | null | undefined;
248
364
  }>]>>;
249
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
365
+ 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<{
250
366
  filename: z.ZodString;
251
367
  originalFilename: z.ZodString;
252
368
  type: z.ZodString;
@@ -359,15 +475,16 @@ export declare const ActionBase: z.ZodObject<{
359
475
  addressLine2?: string | null | undefined;
360
476
  addressLine3?: string | null | undefined;
361
477
  postcodeOrZip?: string | null | undefined;
362
- }>]>>>;
363
- createdAtLocation: z.ZodString;
478
+ }>]>>>>;
364
479
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
365
- originalActionId: z.ZodOptional<z.ZodString>;
480
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
366
481
  }, "strip", z.ZodTypeAny, {
367
482
  id: string;
368
483
  status: "Rejected" | "Requested" | "Accepted";
484
+ transactionId: string;
369
485
  createdAt: string;
370
486
  createdBy: string;
487
+ createdByRole: string;
371
488
  declaration: Record<string, string | number | boolean | {
372
489
  type: string;
373
490
  filename: string;
@@ -405,8 +522,8 @@ export declare const ActionBase: z.ZodObject<{
405
522
  option: string;
406
523
  filename: string;
407
524
  originalFilename: string;
408
- }[] | undefined>;
409
- createdAtLocation: string;
525
+ }[] | [string, string] | undefined>;
526
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
410
527
  annotation?: Record<string, string | number | boolean | {
411
528
  type: string;
412
529
  filename: string;
@@ -444,13 +561,15 @@ export declare const ActionBase: z.ZodObject<{
444
561
  option: string;
445
562
  filename: string;
446
563
  originalFilename: string;
447
- }[] | undefined> | undefined;
448
- originalActionId?: string | undefined;
564
+ }[] | [string, string] | undefined> | null | undefined;
565
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
449
566
  }, {
450
567
  id: string;
451
568
  status: "Rejected" | "Requested" | "Accepted";
569
+ transactionId: string;
452
570
  createdAt: string;
453
571
  createdBy: string;
572
+ createdByRole: string;
454
573
  declaration: Record<string, string | number | boolean | {
455
574
  type: string;
456
575
  filename: string;
@@ -488,8 +607,8 @@ export declare const ActionBase: z.ZodObject<{
488
607
  option: string;
489
608
  filename: string;
490
609
  originalFilename: string;
491
- }[] | undefined>;
492
- createdAtLocation: string;
610
+ }[] | [string, string] | undefined>;
611
+ createdAtLocation?: string | null | undefined;
493
612
  annotation?: Record<string, string | number | boolean | {
494
613
  type: string;
495
614
  filename: string;
@@ -527,15 +646,18 @@ export declare const ActionBase: z.ZodObject<{
527
646
  option: string;
528
647
  filename: string;
529
648
  originalFilename: string;
530
- }[] | undefined> | undefined;
531
- originalActionId?: string | undefined;
649
+ }[] | [string, string] | undefined> | null | undefined;
650
+ originalActionId?: string | null | undefined;
532
651
  }>;
533
652
  export type ActionBase = z.infer<typeof ActionBase>;
534
653
  export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
535
654
  id: z.ZodString;
655
+ transactionId: z.ZodString;
536
656
  createdAt: z.ZodString;
537
657
  createdBy: z.ZodString;
538
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
658
+ createdByRole: z.ZodString;
659
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
660
+ 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<{
539
661
  filename: z.ZodString;
540
662
  originalFilename: z.ZodString;
541
663
  type: z.ZodString;
@@ -649,7 +771,7 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
649
771
  addressLine3?: string | null | undefined;
650
772
  postcodeOrZip?: string | null | undefined;
651
773
  }>]>>;
652
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
774
+ 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<{
653
775
  filename: z.ZodString;
654
776
  originalFilename: z.ZodString;
655
777
  type: z.ZodString;
@@ -762,10 +884,9 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
762
884
  addressLine2?: string | null | undefined;
763
885
  addressLine3?: string | null | undefined;
764
886
  postcodeOrZip?: string | null | undefined;
765
- }>]>>>;
766
- createdAtLocation: z.ZodString;
887
+ }>]>>>>;
767
888
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
768
- originalActionId: z.ZodOptional<z.ZodString>;
889
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
769
890
  }, {
770
891
  type: z.ZodLiteral<"REGISTER">;
771
892
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -773,8 +894,10 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
773
894
  type: "REGISTER";
774
895
  id: string;
775
896
  status: "Rejected" | "Requested" | "Accepted";
897
+ transactionId: string;
776
898
  createdAt: string;
777
899
  createdBy: string;
900
+ createdByRole: string;
778
901
  declaration: Record<string, string | number | boolean | {
779
902
  type: string;
780
903
  filename: string;
@@ -812,8 +935,8 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
812
935
  option: string;
813
936
  filename: string;
814
937
  originalFilename: string;
815
- }[] | undefined>;
816
- createdAtLocation: string;
938
+ }[] | [string, string] | undefined>;
939
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
817
940
  annotation?: Record<string, string | number | boolean | {
818
941
  type: string;
819
942
  filename: string;
@@ -851,15 +974,17 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
851
974
  option: string;
852
975
  filename: string;
853
976
  originalFilename: string;
854
- }[] | undefined> | undefined;
855
- originalActionId?: string | undefined;
977
+ }[] | [string, string] | undefined> | null | undefined;
978
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
856
979
  registrationNumber?: string | undefined;
857
980
  }, {
858
981
  type: "REGISTER";
859
982
  id: string;
860
983
  status: "Rejected" | "Requested" | "Accepted";
984
+ transactionId: string;
861
985
  createdAt: string;
862
986
  createdBy: string;
987
+ createdByRole: string;
863
988
  declaration: Record<string, string | number | boolean | {
864
989
  type: string;
865
990
  filename: string;
@@ -897,8 +1022,8 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
897
1022
  option: string;
898
1023
  filename: string;
899
1024
  originalFilename: string;
900
- }[] | undefined>;
901
- createdAtLocation: string;
1025
+ }[] | [string, string] | undefined>;
1026
+ createdAtLocation?: string | null | undefined;
902
1027
  annotation?: Record<string, string | number | boolean | {
903
1028
  type: string;
904
1029
  filename: string;
@@ -936,16 +1061,29 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
936
1061
  option: string;
937
1062
  filename: string;
938
1063
  originalFilename: string;
939
- }[] | undefined> | undefined;
940
- originalActionId?: string | undefined;
1064
+ }[] | [string, string] | undefined> | null | undefined;
1065
+ originalActionId?: string | null | undefined;
941
1066
  registrationNumber?: string | undefined;
942
1067
  }>;
943
1068
  export type RegisterAction = z.infer<typeof RegisterAction>;
1069
+ export declare const RejectionReason: z.ZodObject<{
1070
+ message: z.ZodString;
1071
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ message: string;
1074
+ isDuplicate?: boolean | undefined;
1075
+ }, {
1076
+ message: string;
1077
+ isDuplicate?: boolean | undefined;
1078
+ }>;
944
1079
  declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
945
1080
  id: z.ZodString;
1081
+ transactionId: z.ZodString;
946
1082
  createdAt: z.ZodString;
947
1083
  createdBy: z.ZodString;
948
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1084
+ createdByRole: z.ZodString;
1085
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1086
+ 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<{
949
1087
  filename: z.ZodString;
950
1088
  originalFilename: z.ZodString;
951
1089
  type: z.ZodString;
@@ -1059,7 +1197,7 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1059
1197
  addressLine3?: string | null | undefined;
1060
1198
  postcodeOrZip?: string | null | undefined;
1061
1199
  }>]>>;
1062
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1200
+ 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<{
1063
1201
  filename: z.ZodString;
1064
1202
  originalFilename: z.ZodString;
1065
1203
  type: z.ZodString;
@@ -1172,18 +1310,19 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1172
1310
  addressLine2?: string | null | undefined;
1173
1311
  addressLine3?: string | null | undefined;
1174
1312
  postcodeOrZip?: string | null | undefined;
1175
- }>]>>>;
1176
- createdAtLocation: z.ZodString;
1313
+ }>]>>>>;
1177
1314
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1178
- originalActionId: z.ZodOptional<z.ZodString>;
1315
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1179
1316
  }, {
1180
1317
  type: z.ZodLiteral<"CREATE">;
1181
1318
  }>, "strip", z.ZodTypeAny, {
1182
1319
  type: "CREATE";
1183
1320
  id: string;
1184
1321
  status: "Rejected" | "Requested" | "Accepted";
1322
+ transactionId: string;
1185
1323
  createdAt: string;
1186
1324
  createdBy: string;
1325
+ createdByRole: string;
1187
1326
  declaration: Record<string, string | number | boolean | {
1188
1327
  type: string;
1189
1328
  filename: string;
@@ -1221,8 +1360,8 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1221
1360
  option: string;
1222
1361
  filename: string;
1223
1362
  originalFilename: string;
1224
- }[] | undefined>;
1225
- createdAtLocation: string;
1363
+ }[] | [string, string] | undefined>;
1364
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1226
1365
  annotation?: Record<string, string | number | boolean | {
1227
1366
  type: string;
1228
1367
  filename: string;
@@ -1260,14 +1399,16 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1260
1399
  option: string;
1261
1400
  filename: string;
1262
1401
  originalFilename: string;
1263
- }[] | undefined> | undefined;
1264
- originalActionId?: string | undefined;
1402
+ }[] | [string, string] | undefined> | null | undefined;
1403
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1265
1404
  }, {
1266
1405
  type: "CREATE";
1267
1406
  id: string;
1268
1407
  status: "Rejected" | "Requested" | "Accepted";
1408
+ transactionId: string;
1269
1409
  createdAt: string;
1270
1410
  createdBy: string;
1411
+ createdByRole: string;
1271
1412
  declaration: Record<string, string | number | boolean | {
1272
1413
  type: string;
1273
1414
  filename: string;
@@ -1305,8 +1446,8 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1305
1446
  option: string;
1306
1447
  filename: string;
1307
1448
  originalFilename: string;
1308
- }[] | undefined>;
1309
- createdAtLocation: string;
1449
+ }[] | [string, string] | undefined>;
1450
+ createdAtLocation?: string | null | undefined;
1310
1451
  annotation?: Record<string, string | number | boolean | {
1311
1452
  type: string;
1312
1453
  filename: string;
@@ -1344,14 +1485,17 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1344
1485
  option: string;
1345
1486
  filename: string;
1346
1487
  originalFilename: string;
1347
- }[] | undefined> | undefined;
1348
- originalActionId?: string | undefined;
1488
+ }[] | [string, string] | undefined> | null | undefined;
1489
+ originalActionId?: string | null | undefined;
1349
1490
  }>;
1350
1491
  export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
1351
1492
  id: z.ZodString;
1493
+ transactionId: z.ZodString;
1352
1494
  createdAt: z.ZodString;
1353
1495
  createdBy: z.ZodString;
1354
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1496
+ createdByRole: z.ZodString;
1497
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1498
+ 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<{
1355
1499
  filename: z.ZodString;
1356
1500
  originalFilename: z.ZodString;
1357
1501
  type: z.ZodString;
@@ -1465,7 +1609,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1465
1609
  addressLine3?: string | null | undefined;
1466
1610
  postcodeOrZip?: string | null | undefined;
1467
1611
  }>]>>;
1468
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1612
+ 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<{
1469
1613
  filename: z.ZodString;
1470
1614
  originalFilename: z.ZodString;
1471
1615
  type: z.ZodString;
@@ -1578,18 +1722,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1578
1722
  addressLine2?: string | null | undefined;
1579
1723
  addressLine3?: string | null | undefined;
1580
1724
  postcodeOrZip?: string | null | undefined;
1581
- }>]>>>;
1582
- createdAtLocation: z.ZodString;
1725
+ }>]>>>>;
1583
1726
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1584
- originalActionId: z.ZodOptional<z.ZodString>;
1727
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1585
1728
  }, {
1586
1729
  type: z.ZodLiteral<"CREATE">;
1587
1730
  }>, "strip", z.ZodTypeAny, {
1588
1731
  type: "CREATE";
1589
1732
  id: string;
1590
1733
  status: "Rejected" | "Requested" | "Accepted";
1734
+ transactionId: string;
1591
1735
  createdAt: string;
1592
1736
  createdBy: string;
1737
+ createdByRole: string;
1593
1738
  declaration: Record<string, string | number | boolean | {
1594
1739
  type: string;
1595
1740
  filename: string;
@@ -1627,8 +1772,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1627
1772
  option: string;
1628
1773
  filename: string;
1629
1774
  originalFilename: string;
1630
- }[] | undefined>;
1631
- createdAtLocation: string;
1775
+ }[] | [string, string] | undefined>;
1776
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1632
1777
  annotation?: Record<string, string | number | boolean | {
1633
1778
  type: string;
1634
1779
  filename: string;
@@ -1666,14 +1811,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1666
1811
  option: string;
1667
1812
  filename: string;
1668
1813
  originalFilename: string;
1669
- }[] | undefined> | undefined;
1670
- originalActionId?: string | undefined;
1814
+ }[] | [string, string] | undefined> | null | undefined;
1815
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1671
1816
  }, {
1672
1817
  type: "CREATE";
1673
1818
  id: string;
1674
1819
  status: "Rejected" | "Requested" | "Accepted";
1820
+ transactionId: string;
1675
1821
  createdAt: string;
1676
1822
  createdBy: string;
1823
+ createdByRole: string;
1677
1824
  declaration: Record<string, string | number | boolean | {
1678
1825
  type: string;
1679
1826
  filename: string;
@@ -1711,8 +1858,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1711
1858
  option: string;
1712
1859
  filename: string;
1713
1860
  originalFilename: string;
1714
- }[] | undefined>;
1715
- createdAtLocation: string;
1861
+ }[] | [string, string] | undefined>;
1862
+ createdAtLocation?: string | null | undefined;
1716
1863
  annotation?: Record<string, string | number | boolean | {
1717
1864
  type: string;
1718
1865
  filename: string;
@@ -1750,13 +1897,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1750
1897
  option: string;
1751
1898
  filename: string;
1752
1899
  originalFilename: string;
1753
- }[] | undefined> | undefined;
1754
- originalActionId?: string | undefined;
1900
+ }[] | [string, string] | undefined> | null | undefined;
1901
+ originalActionId?: string | null | undefined;
1755
1902
  }>, z.ZodObject<z.objectUtil.extendShape<{
1756
1903
  id: z.ZodString;
1904
+ transactionId: z.ZodString;
1757
1905
  createdAt: z.ZodString;
1758
1906
  createdBy: z.ZodString;
1759
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1907
+ createdByRole: z.ZodString;
1908
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1909
+ 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<{
1760
1910
  filename: z.ZodString;
1761
1911
  originalFilename: z.ZodString;
1762
1912
  type: z.ZodString;
@@ -1870,7 +2020,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1870
2020
  addressLine3?: string | null | undefined;
1871
2021
  postcodeOrZip?: string | null | undefined;
1872
2022
  }>]>>;
1873
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2023
+ 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<{
1874
2024
  filename: z.ZodString;
1875
2025
  originalFilename: z.ZodString;
1876
2026
  type: z.ZodString;
@@ -1983,18 +2133,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1983
2133
  addressLine2?: string | null | undefined;
1984
2134
  addressLine3?: string | null | undefined;
1985
2135
  postcodeOrZip?: string | null | undefined;
1986
- }>]>>>;
1987
- createdAtLocation: z.ZodString;
2136
+ }>]>>>>;
1988
2137
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1989
- originalActionId: z.ZodOptional<z.ZodString>;
2138
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1990
2139
  }, {
1991
2140
  type: z.ZodLiteral<"VALIDATE">;
1992
2141
  }>, "strip", z.ZodTypeAny, {
1993
2142
  type: "VALIDATE";
1994
2143
  id: string;
1995
2144
  status: "Rejected" | "Requested" | "Accepted";
2145
+ transactionId: string;
1996
2146
  createdAt: string;
1997
2147
  createdBy: string;
2148
+ createdByRole: string;
1998
2149
  declaration: Record<string, string | number | boolean | {
1999
2150
  type: string;
2000
2151
  filename: string;
@@ -2032,8 +2183,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2032
2183
  option: string;
2033
2184
  filename: string;
2034
2185
  originalFilename: string;
2035
- }[] | undefined>;
2036
- createdAtLocation: string;
2186
+ }[] | [string, string] | undefined>;
2187
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2037
2188
  annotation?: Record<string, string | number | boolean | {
2038
2189
  type: string;
2039
2190
  filename: string;
@@ -2071,14 +2222,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2071
2222
  option: string;
2072
2223
  filename: string;
2073
2224
  originalFilename: string;
2074
- }[] | undefined> | undefined;
2075
- originalActionId?: string | undefined;
2225
+ }[] | [string, string] | undefined> | null | undefined;
2226
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2076
2227
  }, {
2077
2228
  type: "VALIDATE";
2078
2229
  id: string;
2079
2230
  status: "Rejected" | "Requested" | "Accepted";
2231
+ transactionId: string;
2080
2232
  createdAt: string;
2081
2233
  createdBy: string;
2234
+ createdByRole: string;
2082
2235
  declaration: Record<string, string | number | boolean | {
2083
2236
  type: string;
2084
2237
  filename: string;
@@ -2116,8 +2269,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2116
2269
  option: string;
2117
2270
  filename: string;
2118
2271
  originalFilename: string;
2119
- }[] | undefined>;
2120
- createdAtLocation: string;
2272
+ }[] | [string, string] | undefined>;
2273
+ createdAtLocation?: string | null | undefined;
2121
2274
  annotation?: Record<string, string | number | boolean | {
2122
2275
  type: string;
2123
2276
  filename: string;
@@ -2155,13 +2308,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2155
2308
  option: string;
2156
2309
  filename: string;
2157
2310
  originalFilename: string;
2158
- }[] | undefined> | undefined;
2159
- originalActionId?: string | undefined;
2311
+ }[] | [string, string] | undefined> | null | undefined;
2312
+ originalActionId?: string | null | undefined;
2160
2313
  }>, z.ZodObject<z.objectUtil.extendShape<{
2161
2314
  id: z.ZodString;
2315
+ transactionId: z.ZodString;
2162
2316
  createdAt: z.ZodString;
2163
2317
  createdBy: z.ZodString;
2164
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2318
+ createdByRole: z.ZodString;
2319
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2320
+ 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<{
2165
2321
  filename: z.ZodString;
2166
2322
  originalFilename: z.ZodString;
2167
2323
  type: z.ZodString;
@@ -2275,7 +2431,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2275
2431
  addressLine3?: string | null | undefined;
2276
2432
  postcodeOrZip?: string | null | undefined;
2277
2433
  }>]>>;
2278
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2434
+ 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<{
2279
2435
  filename: z.ZodString;
2280
2436
  originalFilename: z.ZodString;
2281
2437
  type: z.ZodString;
@@ -2388,18 +2544,33 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2388
2544
  addressLine2?: string | null | undefined;
2389
2545
  addressLine3?: string | null | undefined;
2390
2546
  postcodeOrZip?: string | null | undefined;
2391
- }>]>>>;
2392
- createdAtLocation: z.ZodString;
2547
+ }>]>>>>;
2393
2548
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2394
- originalActionId: z.ZodOptional<z.ZodString>;
2549
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2395
2550
  }, {
2396
2551
  type: z.ZodLiteral<"REJECT">;
2552
+ reason: z.ZodObject<{
2553
+ message: z.ZodString;
2554
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
2555
+ }, "strip", z.ZodTypeAny, {
2556
+ message: string;
2557
+ isDuplicate?: boolean | undefined;
2558
+ }, {
2559
+ message: string;
2560
+ isDuplicate?: boolean | undefined;
2561
+ }>;
2397
2562
  }>, "strip", z.ZodTypeAny, {
2398
2563
  type: "REJECT";
2399
2564
  id: string;
2400
2565
  status: "Rejected" | "Requested" | "Accepted";
2566
+ reason: {
2567
+ message: string;
2568
+ isDuplicate?: boolean | undefined;
2569
+ };
2570
+ transactionId: string;
2401
2571
  createdAt: string;
2402
2572
  createdBy: string;
2573
+ createdByRole: string;
2403
2574
  declaration: Record<string, string | number | boolean | {
2404
2575
  type: string;
2405
2576
  filename: string;
@@ -2437,8 +2608,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2437
2608
  option: string;
2438
2609
  filename: string;
2439
2610
  originalFilename: string;
2440
- }[] | undefined>;
2441
- createdAtLocation: string;
2611
+ }[] | [string, string] | undefined>;
2612
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2442
2613
  annotation?: Record<string, string | number | boolean | {
2443
2614
  type: string;
2444
2615
  filename: string;
@@ -2476,14 +2647,20 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2476
2647
  option: string;
2477
2648
  filename: string;
2478
2649
  originalFilename: string;
2479
- }[] | undefined> | undefined;
2480
- originalActionId?: string | undefined;
2650
+ }[] | [string, string] | undefined> | null | undefined;
2651
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2481
2652
  }, {
2482
2653
  type: "REJECT";
2483
2654
  id: string;
2484
2655
  status: "Rejected" | "Requested" | "Accepted";
2656
+ reason: {
2657
+ message: string;
2658
+ isDuplicate?: boolean | undefined;
2659
+ };
2660
+ transactionId: string;
2485
2661
  createdAt: string;
2486
2662
  createdBy: string;
2663
+ createdByRole: string;
2487
2664
  declaration: Record<string, string | number | boolean | {
2488
2665
  type: string;
2489
2666
  filename: string;
@@ -2521,8 +2698,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2521
2698
  option: string;
2522
2699
  filename: string;
2523
2700
  originalFilename: string;
2524
- }[] | undefined>;
2525
- createdAtLocation: string;
2701
+ }[] | [string, string] | undefined>;
2702
+ createdAtLocation?: string | null | undefined;
2526
2703
  annotation?: Record<string, string | number | boolean | {
2527
2704
  type: string;
2528
2705
  filename: string;
@@ -2560,13 +2737,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2560
2737
  option: string;
2561
2738
  filename: string;
2562
2739
  originalFilename: string;
2563
- }[] | undefined> | undefined;
2564
- originalActionId?: string | undefined;
2740
+ }[] | [string, string] | undefined> | null | undefined;
2741
+ originalActionId?: string | null | undefined;
2565
2742
  }>, z.ZodObject<z.objectUtil.extendShape<{
2566
2743
  id: z.ZodString;
2744
+ transactionId: z.ZodString;
2567
2745
  createdAt: z.ZodString;
2568
2746
  createdBy: z.ZodString;
2569
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2747
+ createdByRole: z.ZodString;
2748
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2749
+ 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<{
2570
2750
  filename: z.ZodString;
2571
2751
  originalFilename: z.ZodString;
2572
2752
  type: z.ZodString;
@@ -2680,7 +2860,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2680
2860
  addressLine3?: string | null | undefined;
2681
2861
  postcodeOrZip?: string | null | undefined;
2682
2862
  }>]>>;
2683
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2863
+ 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<{
2684
2864
  filename: z.ZodString;
2685
2865
  originalFilename: z.ZodString;
2686
2866
  type: z.ZodString;
@@ -2793,18 +2973,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2793
2973
  addressLine2?: string | null | undefined;
2794
2974
  addressLine3?: string | null | undefined;
2795
2975
  postcodeOrZip?: string | null | undefined;
2796
- }>]>>>;
2797
- createdAtLocation: z.ZodString;
2976
+ }>]>>>>;
2798
2977
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2799
- originalActionId: z.ZodOptional<z.ZodString>;
2978
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2800
2979
  }, {
2801
2980
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
2802
2981
  }>, "strip", z.ZodTypeAny, {
2803
2982
  type: "MARKED_AS_DUPLICATE";
2804
2983
  id: string;
2805
2984
  status: "Rejected" | "Requested" | "Accepted";
2985
+ transactionId: string;
2806
2986
  createdAt: string;
2807
2987
  createdBy: string;
2988
+ createdByRole: string;
2808
2989
  declaration: Record<string, string | number | boolean | {
2809
2990
  type: string;
2810
2991
  filename: string;
@@ -2842,8 +3023,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2842
3023
  option: string;
2843
3024
  filename: string;
2844
3025
  originalFilename: string;
2845
- }[] | undefined>;
2846
- createdAtLocation: string;
3026
+ }[] | [string, string] | undefined>;
3027
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2847
3028
  annotation?: Record<string, string | number | boolean | {
2848
3029
  type: string;
2849
3030
  filename: string;
@@ -2881,14 +3062,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2881
3062
  option: string;
2882
3063
  filename: string;
2883
3064
  originalFilename: string;
2884
- }[] | undefined> | undefined;
2885
- originalActionId?: string | undefined;
3065
+ }[] | [string, string] | undefined> | null | undefined;
3066
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2886
3067
  }, {
2887
3068
  type: "MARKED_AS_DUPLICATE";
2888
3069
  id: string;
2889
3070
  status: "Rejected" | "Requested" | "Accepted";
3071
+ transactionId: string;
2890
3072
  createdAt: string;
2891
3073
  createdBy: string;
3074
+ createdByRole: string;
2892
3075
  declaration: Record<string, string | number | boolean | {
2893
3076
  type: string;
2894
3077
  filename: string;
@@ -2926,8 +3109,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2926
3109
  option: string;
2927
3110
  filename: string;
2928
3111
  originalFilename: string;
2929
- }[] | undefined>;
2930
- createdAtLocation: string;
3112
+ }[] | [string, string] | undefined>;
3113
+ createdAtLocation?: string | null | undefined;
2931
3114
  annotation?: Record<string, string | number | boolean | {
2932
3115
  type: string;
2933
3116
  filename: string;
@@ -2965,13 +3148,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2965
3148
  option: string;
2966
3149
  filename: string;
2967
3150
  originalFilename: string;
2968
- }[] | undefined> | undefined;
2969
- originalActionId?: string | undefined;
3151
+ }[] | [string, string] | undefined> | null | undefined;
3152
+ originalActionId?: string | null | undefined;
2970
3153
  }>, z.ZodObject<z.objectUtil.extendShape<{
2971
3154
  id: z.ZodString;
3155
+ transactionId: z.ZodString;
2972
3156
  createdAt: z.ZodString;
2973
3157
  createdBy: z.ZodString;
2974
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3158
+ createdByRole: z.ZodString;
3159
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3160
+ 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<{
2975
3161
  filename: z.ZodString;
2976
3162
  originalFilename: z.ZodString;
2977
3163
  type: z.ZodString;
@@ -3085,7 +3271,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3085
3271
  addressLine3?: string | null | undefined;
3086
3272
  postcodeOrZip?: string | null | undefined;
3087
3273
  }>]>>;
3088
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3274
+ 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<{
3089
3275
  filename: z.ZodString;
3090
3276
  originalFilename: z.ZodString;
3091
3277
  type: z.ZodString;
@@ -3198,18 +3384,33 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3198
3384
  addressLine2?: string | null | undefined;
3199
3385
  addressLine3?: string | null | undefined;
3200
3386
  postcodeOrZip?: string | null | undefined;
3201
- }>]>>>;
3202
- createdAtLocation: z.ZodString;
3387
+ }>]>>>>;
3203
3388
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3204
- originalActionId: z.ZodOptional<z.ZodString>;
3389
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3205
3390
  }, {
3206
3391
  type: z.ZodLiteral<"ARCHIVE">;
3392
+ reason: z.ZodObject<{
3393
+ message: z.ZodString;
3394
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
3395
+ }, "strip", z.ZodTypeAny, {
3396
+ message: string;
3397
+ isDuplicate?: boolean | undefined;
3398
+ }, {
3399
+ message: string;
3400
+ isDuplicate?: boolean | undefined;
3401
+ }>;
3207
3402
  }>, "strip", z.ZodTypeAny, {
3208
3403
  type: "ARCHIVE";
3209
3404
  id: string;
3210
3405
  status: "Rejected" | "Requested" | "Accepted";
3406
+ reason: {
3407
+ message: string;
3408
+ isDuplicate?: boolean | undefined;
3409
+ };
3410
+ transactionId: string;
3211
3411
  createdAt: string;
3212
3412
  createdBy: string;
3413
+ createdByRole: string;
3213
3414
  declaration: Record<string, string | number | boolean | {
3214
3415
  type: string;
3215
3416
  filename: string;
@@ -3247,8 +3448,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3247
3448
  option: string;
3248
3449
  filename: string;
3249
3450
  originalFilename: string;
3250
- }[] | undefined>;
3251
- createdAtLocation: string;
3451
+ }[] | [string, string] | undefined>;
3452
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3252
3453
  annotation?: Record<string, string | number | boolean | {
3253
3454
  type: string;
3254
3455
  filename: string;
@@ -3286,14 +3487,20 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3286
3487
  option: string;
3287
3488
  filename: string;
3288
3489
  originalFilename: string;
3289
- }[] | undefined> | undefined;
3290
- originalActionId?: string | undefined;
3490
+ }[] | [string, string] | undefined> | null | undefined;
3491
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3291
3492
  }, {
3292
3493
  type: "ARCHIVE";
3293
3494
  id: string;
3294
3495
  status: "Rejected" | "Requested" | "Accepted";
3496
+ reason: {
3497
+ message: string;
3498
+ isDuplicate?: boolean | undefined;
3499
+ };
3500
+ transactionId: string;
3295
3501
  createdAt: string;
3296
3502
  createdBy: string;
3503
+ createdByRole: string;
3297
3504
  declaration: Record<string, string | number | boolean | {
3298
3505
  type: string;
3299
3506
  filename: string;
@@ -3331,8 +3538,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3331
3538
  option: string;
3332
3539
  filename: string;
3333
3540
  originalFilename: string;
3334
- }[] | undefined>;
3335
- createdAtLocation: string;
3541
+ }[] | [string, string] | undefined>;
3542
+ createdAtLocation?: string | null | undefined;
3336
3543
  annotation?: Record<string, string | number | boolean | {
3337
3544
  type: string;
3338
3545
  filename: string;
@@ -3370,13 +3577,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3370
3577
  option: string;
3371
3578
  filename: string;
3372
3579
  originalFilename: string;
3373
- }[] | undefined> | undefined;
3374
- originalActionId?: string | undefined;
3580
+ }[] | [string, string] | undefined> | null | undefined;
3581
+ originalActionId?: string | null | undefined;
3375
3582
  }>, z.ZodObject<z.objectUtil.extendShape<{
3376
3583
  id: z.ZodString;
3584
+ transactionId: z.ZodString;
3377
3585
  createdAt: z.ZodString;
3378
3586
  createdBy: z.ZodString;
3379
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3587
+ createdByRole: z.ZodString;
3588
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3589
+ 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<{
3380
3590
  filename: z.ZodString;
3381
3591
  originalFilename: z.ZodString;
3382
3592
  type: z.ZodString;
@@ -3490,7 +3700,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3490
3700
  addressLine3?: string | null | undefined;
3491
3701
  postcodeOrZip?: string | null | undefined;
3492
3702
  }>]>>;
3493
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3703
+ 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<{
3494
3704
  filename: z.ZodString;
3495
3705
  originalFilename: z.ZodString;
3496
3706
  type: z.ZodString;
@@ -3603,18 +3813,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3603
3813
  addressLine2?: string | null | undefined;
3604
3814
  addressLine3?: string | null | undefined;
3605
3815
  postcodeOrZip?: string | null | undefined;
3606
- }>]>>>;
3607
- createdAtLocation: z.ZodString;
3816
+ }>]>>>>;
3608
3817
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3609
- originalActionId: z.ZodOptional<z.ZodString>;
3818
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3610
3819
  }, {
3611
3820
  type: z.ZodLiteral<"NOTIFY">;
3612
3821
  }>, "strip", z.ZodTypeAny, {
3613
3822
  type: "NOTIFY";
3614
3823
  id: string;
3615
3824
  status: "Rejected" | "Requested" | "Accepted";
3825
+ transactionId: string;
3616
3826
  createdAt: string;
3617
3827
  createdBy: string;
3828
+ createdByRole: string;
3618
3829
  declaration: Record<string, string | number | boolean | {
3619
3830
  type: string;
3620
3831
  filename: string;
@@ -3652,8 +3863,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3652
3863
  option: string;
3653
3864
  filename: string;
3654
3865
  originalFilename: string;
3655
- }[] | undefined>;
3656
- createdAtLocation: string;
3866
+ }[] | [string, string] | undefined>;
3867
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3657
3868
  annotation?: Record<string, string | number | boolean | {
3658
3869
  type: string;
3659
3870
  filename: string;
@@ -3691,14 +3902,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3691
3902
  option: string;
3692
3903
  filename: string;
3693
3904
  originalFilename: string;
3694
- }[] | undefined> | undefined;
3695
- originalActionId?: string | undefined;
3905
+ }[] | [string, string] | undefined> | null | undefined;
3906
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3696
3907
  }, {
3697
3908
  type: "NOTIFY";
3698
3909
  id: string;
3699
3910
  status: "Rejected" | "Requested" | "Accepted";
3911
+ transactionId: string;
3700
3912
  createdAt: string;
3701
3913
  createdBy: string;
3914
+ createdByRole: string;
3702
3915
  declaration: Record<string, string | number | boolean | {
3703
3916
  type: string;
3704
3917
  filename: string;
@@ -3736,8 +3949,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3736
3949
  option: string;
3737
3950
  filename: string;
3738
3951
  originalFilename: string;
3739
- }[] | undefined>;
3740
- createdAtLocation: string;
3952
+ }[] | [string, string] | undefined>;
3953
+ createdAtLocation?: string | null | undefined;
3741
3954
  annotation?: Record<string, string | number | boolean | {
3742
3955
  type: string;
3743
3956
  filename: string;
@@ -3775,13 +3988,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3775
3988
  option: string;
3776
3989
  filename: string;
3777
3990
  originalFilename: string;
3778
- }[] | undefined> | undefined;
3779
- originalActionId?: string | undefined;
3991
+ }[] | [string, string] | undefined> | null | undefined;
3992
+ originalActionId?: string | null | undefined;
3780
3993
  }>, z.ZodObject<z.objectUtil.extendShape<{
3781
3994
  id: z.ZodString;
3995
+ transactionId: z.ZodString;
3782
3996
  createdAt: z.ZodString;
3783
3997
  createdBy: z.ZodString;
3784
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3998
+ createdByRole: z.ZodString;
3999
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4000
+ 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<{
3785
4001
  filename: z.ZodString;
3786
4002
  originalFilename: z.ZodString;
3787
4003
  type: z.ZodString;
@@ -3895,7 +4111,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3895
4111
  addressLine3?: string | null | undefined;
3896
4112
  postcodeOrZip?: string | null | undefined;
3897
4113
  }>]>>;
3898
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4114
+ 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<{
3899
4115
  filename: z.ZodString;
3900
4116
  originalFilename: z.ZodString;
3901
4117
  type: z.ZodString;
@@ -4008,10 +4224,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4008
4224
  addressLine2?: string | null | undefined;
4009
4225
  addressLine3?: string | null | undefined;
4010
4226
  postcodeOrZip?: string | null | undefined;
4011
- }>]>>>;
4012
- createdAtLocation: z.ZodString;
4227
+ }>]>>>>;
4013
4228
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4014
- originalActionId: z.ZodOptional<z.ZodString>;
4229
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4015
4230
  }, {
4016
4231
  type: z.ZodLiteral<"REGISTER">;
4017
4232
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -4019,8 +4234,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4019
4234
  type: "REGISTER";
4020
4235
  id: string;
4021
4236
  status: "Rejected" | "Requested" | "Accepted";
4237
+ transactionId: string;
4022
4238
  createdAt: string;
4023
4239
  createdBy: string;
4240
+ createdByRole: string;
4024
4241
  declaration: Record<string, string | number | boolean | {
4025
4242
  type: string;
4026
4243
  filename: string;
@@ -4058,8 +4275,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4058
4275
  option: string;
4059
4276
  filename: string;
4060
4277
  originalFilename: string;
4061
- }[] | undefined>;
4062
- createdAtLocation: string;
4278
+ }[] | [string, string] | undefined>;
4279
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4063
4280
  annotation?: Record<string, string | number | boolean | {
4064
4281
  type: string;
4065
4282
  filename: string;
@@ -4097,15 +4314,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4097
4314
  option: string;
4098
4315
  filename: string;
4099
4316
  originalFilename: string;
4100
- }[] | undefined> | undefined;
4101
- originalActionId?: string | undefined;
4317
+ }[] | [string, string] | undefined> | null | undefined;
4318
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4102
4319
  registrationNumber?: string | undefined;
4103
4320
  }, {
4104
4321
  type: "REGISTER";
4105
4322
  id: string;
4106
4323
  status: "Rejected" | "Requested" | "Accepted";
4324
+ transactionId: string;
4107
4325
  createdAt: string;
4108
4326
  createdBy: string;
4327
+ createdByRole: string;
4109
4328
  declaration: Record<string, string | number | boolean | {
4110
4329
  type: string;
4111
4330
  filename: string;
@@ -4143,8 +4362,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4143
4362
  option: string;
4144
4363
  filename: string;
4145
4364
  originalFilename: string;
4146
- }[] | undefined>;
4147
- createdAtLocation: string;
4365
+ }[] | [string, string] | undefined>;
4366
+ createdAtLocation?: string | null | undefined;
4148
4367
  annotation?: Record<string, string | number | boolean | {
4149
4368
  type: string;
4150
4369
  filename: string;
@@ -4182,14 +4401,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4182
4401
  option: string;
4183
4402
  filename: string;
4184
4403
  originalFilename: string;
4185
- }[] | undefined> | undefined;
4186
- originalActionId?: string | undefined;
4404
+ }[] | [string, string] | undefined> | null | undefined;
4405
+ originalActionId?: string | null | undefined;
4187
4406
  registrationNumber?: string | undefined;
4188
4407
  }>, z.ZodObject<z.objectUtil.extendShape<{
4189
4408
  id: z.ZodString;
4409
+ transactionId: z.ZodString;
4190
4410
  createdAt: z.ZodString;
4191
4411
  createdBy: z.ZodString;
4192
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4412
+ createdByRole: z.ZodString;
4413
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4414
+ 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<{
4193
4415
  filename: z.ZodString;
4194
4416
  originalFilename: z.ZodString;
4195
4417
  type: z.ZodString;
@@ -4303,7 +4525,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4303
4525
  addressLine3?: string | null | undefined;
4304
4526
  postcodeOrZip?: string | null | undefined;
4305
4527
  }>]>>;
4306
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4528
+ 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<{
4307
4529
  filename: z.ZodString;
4308
4530
  originalFilename: z.ZodString;
4309
4531
  type: z.ZodString;
@@ -4416,18 +4638,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4416
4638
  addressLine2?: string | null | undefined;
4417
4639
  addressLine3?: string | null | undefined;
4418
4640
  postcodeOrZip?: string | null | undefined;
4419
- }>]>>>;
4420
- createdAtLocation: z.ZodString;
4641
+ }>]>>>>;
4421
4642
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4422
- originalActionId: z.ZodOptional<z.ZodString>;
4643
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4423
4644
  }, {
4424
4645
  type: z.ZodLiteral<"DECLARE">;
4425
4646
  }>, "strip", z.ZodTypeAny, {
4426
4647
  type: "DECLARE";
4427
4648
  id: string;
4428
4649
  status: "Rejected" | "Requested" | "Accepted";
4650
+ transactionId: string;
4429
4651
  createdAt: string;
4430
4652
  createdBy: string;
4653
+ createdByRole: string;
4431
4654
  declaration: Record<string, string | number | boolean | {
4432
4655
  type: string;
4433
4656
  filename: string;
@@ -4465,8 +4688,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4465
4688
  option: string;
4466
4689
  filename: string;
4467
4690
  originalFilename: string;
4468
- }[] | undefined>;
4469
- createdAtLocation: string;
4691
+ }[] | [string, string] | undefined>;
4692
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4470
4693
  annotation?: Record<string, string | number | boolean | {
4471
4694
  type: string;
4472
4695
  filename: string;
@@ -4504,14 +4727,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4504
4727
  option: string;
4505
4728
  filename: string;
4506
4729
  originalFilename: string;
4507
- }[] | undefined> | undefined;
4508
- originalActionId?: string | undefined;
4730
+ }[] | [string, string] | undefined> | null | undefined;
4731
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4509
4732
  }, {
4510
4733
  type: "DECLARE";
4511
4734
  id: string;
4512
4735
  status: "Rejected" | "Requested" | "Accepted";
4736
+ transactionId: string;
4513
4737
  createdAt: string;
4514
4738
  createdBy: string;
4739
+ createdByRole: string;
4515
4740
  declaration: Record<string, string | number | boolean | {
4516
4741
  type: string;
4517
4742
  filename: string;
@@ -4549,8 +4774,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4549
4774
  option: string;
4550
4775
  filename: string;
4551
4776
  originalFilename: string;
4552
- }[] | undefined>;
4553
- createdAtLocation: string;
4777
+ }[] | [string, string] | undefined>;
4778
+ createdAtLocation?: string | null | undefined;
4554
4779
  annotation?: Record<string, string | number | boolean | {
4555
4780
  type: string;
4556
4781
  filename: string;
@@ -4588,13 +4813,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4588
4813
  option: string;
4589
4814
  filename: string;
4590
4815
  originalFilename: string;
4591
- }[] | undefined> | undefined;
4592
- originalActionId?: string | undefined;
4816
+ }[] | [string, string] | undefined> | null | undefined;
4817
+ originalActionId?: string | null | undefined;
4593
4818
  }>, z.ZodObject<z.objectUtil.extendShape<{
4594
4819
  id: z.ZodString;
4820
+ transactionId: z.ZodString;
4595
4821
  createdAt: z.ZodString;
4596
4822
  createdBy: z.ZodString;
4597
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4823
+ createdByRole: z.ZodString;
4824
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4825
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4598
4826
  filename: z.ZodString;
4599
4827
  originalFilename: z.ZodString;
4600
4828
  type: z.ZodString;
@@ -4708,7 +4936,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4708
4936
  addressLine3?: string | null | undefined;
4709
4937
  postcodeOrZip?: string | null | undefined;
4710
4938
  }>]>>;
4711
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4939
+ 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<{
4712
4940
  filename: z.ZodString;
4713
4941
  originalFilename: z.ZodString;
4714
4942
  type: z.ZodString;
@@ -4821,10 +5049,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4821
5049
  addressLine2?: string | null | undefined;
4822
5050
  addressLine3?: string | null | undefined;
4823
5051
  postcodeOrZip?: string | null | undefined;
4824
- }>]>>>;
4825
- createdAtLocation: z.ZodString;
5052
+ }>]>>>>;
4826
5053
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4827
- originalActionId: z.ZodOptional<z.ZodString>;
5054
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4828
5055
  }, {
4829
5056
  type: z.ZodLiteral<"ASSIGN">;
4830
5057
  assignedTo: z.ZodString;
@@ -4832,8 +5059,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4832
5059
  type: "ASSIGN";
4833
5060
  id: string;
4834
5061
  status: "Rejected" | "Requested" | "Accepted";
5062
+ transactionId: string;
4835
5063
  createdAt: string;
4836
5064
  createdBy: string;
5065
+ createdByRole: string;
4837
5066
  declaration: Record<string, string | number | boolean | {
4838
5067
  type: string;
4839
5068
  filename: string;
@@ -4871,9 +5100,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4871
5100
  option: string;
4872
5101
  filename: string;
4873
5102
  originalFilename: string;
4874
- }[] | undefined>;
4875
- createdAtLocation: string;
5103
+ }[] | [string, string] | undefined>;
4876
5104
  assignedTo: string;
5105
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4877
5106
  annotation?: Record<string, string | number | boolean | {
4878
5107
  type: string;
4879
5108
  filename: string;
@@ -4911,14 +5140,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4911
5140
  option: string;
4912
5141
  filename: string;
4913
5142
  originalFilename: string;
4914
- }[] | undefined> | undefined;
4915
- originalActionId?: string | undefined;
5143
+ }[] | [string, string] | undefined> | null | undefined;
5144
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4916
5145
  }, {
4917
5146
  type: "ASSIGN";
4918
5147
  id: string;
4919
5148
  status: "Rejected" | "Requested" | "Accepted";
5149
+ transactionId: string;
4920
5150
  createdAt: string;
4921
5151
  createdBy: string;
5152
+ createdByRole: string;
4922
5153
  declaration: Record<string, string | number | boolean | {
4923
5154
  type: string;
4924
5155
  filename: string;
@@ -4956,9 +5187,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4956
5187
  option: string;
4957
5188
  filename: string;
4958
5189
  originalFilename: string;
4959
- }[] | undefined>;
4960
- createdAtLocation: string;
5190
+ }[] | [string, string] | undefined>;
4961
5191
  assignedTo: string;
5192
+ createdAtLocation?: string | null | undefined;
4962
5193
  annotation?: Record<string, string | number | boolean | {
4963
5194
  type: string;
4964
5195
  filename: string;
@@ -4996,13 +5227,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4996
5227
  option: string;
4997
5228
  filename: string;
4998
5229
  originalFilename: string;
4999
- }[] | undefined> | undefined;
5000
- originalActionId?: string | undefined;
5230
+ }[] | [string, string] | undefined> | null | undefined;
5231
+ originalActionId?: string | null | undefined;
5001
5232
  }>, z.ZodObject<z.objectUtil.extendShape<{
5002
5233
  id: z.ZodString;
5234
+ transactionId: z.ZodString;
5003
5235
  createdAt: z.ZodString;
5004
5236
  createdBy: z.ZodString;
5005
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5237
+ createdByRole: z.ZodString;
5238
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5239
+ 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<{
5006
5240
  filename: z.ZodString;
5007
5241
  originalFilename: z.ZodString;
5008
5242
  type: z.ZodString;
@@ -5116,7 +5350,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5116
5350
  addressLine3?: string | null | undefined;
5117
5351
  postcodeOrZip?: string | null | undefined;
5118
5352
  }>]>>;
5119
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5353
+ 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<{
5120
5354
  filename: z.ZodString;
5121
5355
  originalFilename: z.ZodString;
5122
5356
  type: z.ZodString;
@@ -5229,18 +5463,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5229
5463
  addressLine2?: string | null | undefined;
5230
5464
  addressLine3?: string | null | undefined;
5231
5465
  postcodeOrZip?: string | null | undefined;
5232
- }>]>>>;
5233
- createdAtLocation: z.ZodString;
5466
+ }>]>>>>;
5234
5467
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5235
- originalActionId: z.ZodOptional<z.ZodString>;
5468
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5236
5469
  }, {
5237
5470
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
5238
5471
  }>, "strip", z.ZodTypeAny, {
5239
5472
  type: "REQUEST_CORRECTION";
5240
5473
  id: string;
5241
5474
  status: "Rejected" | "Requested" | "Accepted";
5475
+ transactionId: string;
5242
5476
  createdAt: string;
5243
5477
  createdBy: string;
5478
+ createdByRole: string;
5244
5479
  declaration: Record<string, string | number | boolean | {
5245
5480
  type: string;
5246
5481
  filename: string;
@@ -5278,8 +5513,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5278
5513
  option: string;
5279
5514
  filename: string;
5280
5515
  originalFilename: string;
5281
- }[] | undefined>;
5282
- createdAtLocation: string;
5516
+ }[] | [string, string] | undefined>;
5517
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5283
5518
  annotation?: Record<string, string | number | boolean | {
5284
5519
  type: string;
5285
5520
  filename: string;
@@ -5317,14 +5552,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5317
5552
  option: string;
5318
5553
  filename: string;
5319
5554
  originalFilename: string;
5320
- }[] | undefined> | undefined;
5321
- originalActionId?: string | undefined;
5555
+ }[] | [string, string] | undefined> | null | undefined;
5556
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5322
5557
  }, {
5323
5558
  type: "REQUEST_CORRECTION";
5324
5559
  id: string;
5325
5560
  status: "Rejected" | "Requested" | "Accepted";
5561
+ transactionId: string;
5326
5562
  createdAt: string;
5327
5563
  createdBy: string;
5564
+ createdByRole: string;
5328
5565
  declaration: Record<string, string | number | boolean | {
5329
5566
  type: string;
5330
5567
  filename: string;
@@ -5362,8 +5599,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5362
5599
  option: string;
5363
5600
  filename: string;
5364
5601
  originalFilename: string;
5365
- }[] | undefined>;
5366
- createdAtLocation: string;
5602
+ }[] | [string, string] | undefined>;
5603
+ createdAtLocation?: string | null | undefined;
5367
5604
  annotation?: Record<string, string | number | boolean | {
5368
5605
  type: string;
5369
5606
  filename: string;
@@ -5401,13 +5638,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5401
5638
  option: string;
5402
5639
  filename: string;
5403
5640
  originalFilename: string;
5404
- }[] | undefined> | undefined;
5405
- originalActionId?: string | undefined;
5641
+ }[] | [string, string] | undefined> | null | undefined;
5642
+ originalActionId?: string | null | undefined;
5406
5643
  }>, z.ZodObject<z.objectUtil.extendShape<{
5407
5644
  id: z.ZodString;
5645
+ transactionId: z.ZodString;
5408
5646
  createdAt: z.ZodString;
5409
5647
  createdBy: z.ZodString;
5410
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5648
+ createdByRole: z.ZodString;
5649
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5650
+ 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<{
5411
5651
  filename: z.ZodString;
5412
5652
  originalFilename: z.ZodString;
5413
5653
  type: z.ZodString;
@@ -5521,7 +5761,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5521
5761
  addressLine3?: string | null | undefined;
5522
5762
  postcodeOrZip?: string | null | undefined;
5523
5763
  }>]>>;
5524
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5764
+ 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<{
5525
5765
  filename: z.ZodString;
5526
5766
  originalFilename: z.ZodString;
5527
5767
  type: z.ZodString;
@@ -5634,10 +5874,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5634
5874
  addressLine2?: string | null | undefined;
5635
5875
  addressLine3?: string | null | undefined;
5636
5876
  postcodeOrZip?: string | null | undefined;
5637
- }>]>>>;
5638
- createdAtLocation: z.ZodString;
5877
+ }>]>>>>;
5639
5878
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5640
- originalActionId: z.ZodOptional<z.ZodString>;
5879
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5641
5880
  }, {
5642
5881
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
5643
5882
  requestId: z.ZodString;
@@ -5645,8 +5884,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5645
5884
  type: "APPROVE_CORRECTION";
5646
5885
  id: string;
5647
5886
  status: "Rejected" | "Requested" | "Accepted";
5887
+ transactionId: string;
5648
5888
  createdAt: string;
5649
5889
  createdBy: string;
5890
+ createdByRole: string;
5650
5891
  declaration: Record<string, string | number | boolean | {
5651
5892
  type: string;
5652
5893
  filename: string;
@@ -5684,9 +5925,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5684
5925
  option: string;
5685
5926
  filename: string;
5686
5927
  originalFilename: string;
5687
- }[] | undefined>;
5688
- createdAtLocation: string;
5928
+ }[] | [string, string] | undefined>;
5689
5929
  requestId: string;
5930
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5690
5931
  annotation?: Record<string, string | number | boolean | {
5691
5932
  type: string;
5692
5933
  filename: string;
@@ -5724,14 +5965,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5724
5965
  option: string;
5725
5966
  filename: string;
5726
5967
  originalFilename: string;
5727
- }[] | undefined> | undefined;
5728
- originalActionId?: string | undefined;
5968
+ }[] | [string, string] | undefined> | null | undefined;
5969
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5729
5970
  }, {
5730
5971
  type: "APPROVE_CORRECTION";
5731
5972
  id: string;
5732
5973
  status: "Rejected" | "Requested" | "Accepted";
5974
+ transactionId: string;
5733
5975
  createdAt: string;
5734
5976
  createdBy: string;
5977
+ createdByRole: string;
5735
5978
  declaration: Record<string, string | number | boolean | {
5736
5979
  type: string;
5737
5980
  filename: string;
@@ -5769,9 +6012,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5769
6012
  option: string;
5770
6013
  filename: string;
5771
6014
  originalFilename: string;
5772
- }[] | undefined>;
5773
- createdAtLocation: string;
6015
+ }[] | [string, string] | undefined>;
5774
6016
  requestId: string;
6017
+ createdAtLocation?: string | null | undefined;
5775
6018
  annotation?: Record<string, string | number | boolean | {
5776
6019
  type: string;
5777
6020
  filename: string;
@@ -5809,13 +6052,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5809
6052
  option: string;
5810
6053
  filename: string;
5811
6054
  originalFilename: string;
5812
- }[] | undefined> | undefined;
5813
- originalActionId?: string | undefined;
6055
+ }[] | [string, string] | undefined> | null | undefined;
6056
+ originalActionId?: string | null | undefined;
5814
6057
  }>, z.ZodObject<z.objectUtil.extendShape<{
5815
6058
  id: z.ZodString;
6059
+ transactionId: z.ZodString;
5816
6060
  createdAt: z.ZodString;
5817
6061
  createdBy: z.ZodString;
5818
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6062
+ createdByRole: z.ZodString;
6063
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6064
+ 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<{
5819
6065
  filename: z.ZodString;
5820
6066
  originalFilename: z.ZodString;
5821
6067
  type: z.ZodString;
@@ -5929,7 +6175,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5929
6175
  addressLine3?: string | null | undefined;
5930
6176
  postcodeOrZip?: string | null | undefined;
5931
6177
  }>]>>;
5932
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6178
+ 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<{
5933
6179
  filename: z.ZodString;
5934
6180
  originalFilename: z.ZodString;
5935
6181
  type: z.ZodString;
@@ -6042,10 +6288,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6042
6288
  addressLine2?: string | null | undefined;
6043
6289
  addressLine3?: string | null | undefined;
6044
6290
  postcodeOrZip?: string | null | undefined;
6045
- }>]>>>;
6046
- createdAtLocation: z.ZodString;
6291
+ }>]>>>>;
6047
6292
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6048
- originalActionId: z.ZodOptional<z.ZodString>;
6293
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6049
6294
  }, {
6050
6295
  type: z.ZodLiteral<"REJECT_CORRECTION">;
6051
6296
  requestId: z.ZodString;
@@ -6053,8 +6298,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6053
6298
  type: "REJECT_CORRECTION";
6054
6299
  id: string;
6055
6300
  status: "Rejected" | "Requested" | "Accepted";
6301
+ transactionId: string;
6056
6302
  createdAt: string;
6057
6303
  createdBy: string;
6304
+ createdByRole: string;
6058
6305
  declaration: Record<string, string | number | boolean | {
6059
6306
  type: string;
6060
6307
  filename: string;
@@ -6092,9 +6339,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6092
6339
  option: string;
6093
6340
  filename: string;
6094
6341
  originalFilename: string;
6095
- }[] | undefined>;
6096
- createdAtLocation: string;
6342
+ }[] | [string, string] | undefined>;
6097
6343
  requestId: string;
6344
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6098
6345
  annotation?: Record<string, string | number | boolean | {
6099
6346
  type: string;
6100
6347
  filename: string;
@@ -6132,14 +6379,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6132
6379
  option: string;
6133
6380
  filename: string;
6134
6381
  originalFilename: string;
6135
- }[] | undefined> | undefined;
6136
- originalActionId?: string | undefined;
6382
+ }[] | [string, string] | undefined> | null | undefined;
6383
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6137
6384
  }, {
6138
6385
  type: "REJECT_CORRECTION";
6139
6386
  id: string;
6140
6387
  status: "Rejected" | "Requested" | "Accepted";
6388
+ transactionId: string;
6141
6389
  createdAt: string;
6142
6390
  createdBy: string;
6391
+ createdByRole: string;
6143
6392
  declaration: Record<string, string | number | boolean | {
6144
6393
  type: string;
6145
6394
  filename: string;
@@ -6177,9 +6426,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6177
6426
  option: string;
6178
6427
  filename: string;
6179
6428
  originalFilename: string;
6180
- }[] | undefined>;
6181
- createdAtLocation: string;
6429
+ }[] | [string, string] | undefined>;
6182
6430
  requestId: string;
6431
+ createdAtLocation?: string | null | undefined;
6183
6432
  annotation?: Record<string, string | number | boolean | {
6184
6433
  type: string;
6185
6434
  filename: string;
@@ -6217,13 +6466,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6217
6466
  option: string;
6218
6467
  filename: string;
6219
6468
  originalFilename: string;
6220
- }[] | undefined> | undefined;
6221
- originalActionId?: string | undefined;
6469
+ }[] | [string, string] | undefined> | null | undefined;
6470
+ originalActionId?: string | null | undefined;
6222
6471
  }>, z.ZodObject<z.objectUtil.extendShape<{
6223
6472
  id: z.ZodString;
6473
+ transactionId: z.ZodString;
6224
6474
  createdAt: z.ZodString;
6225
6475
  createdBy: z.ZodString;
6226
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6476
+ createdByRole: z.ZodString;
6477
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6478
+ 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<{
6227
6479
  filename: z.ZodString;
6228
6480
  originalFilename: z.ZodString;
6229
6481
  type: z.ZodString;
@@ -6337,7 +6589,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6337
6589
  addressLine3?: string | null | undefined;
6338
6590
  postcodeOrZip?: string | null | undefined;
6339
6591
  }>]>>;
6340
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6592
+ 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<{
6341
6593
  filename: z.ZodString;
6342
6594
  originalFilename: z.ZodString;
6343
6595
  type: z.ZodString;
@@ -6450,19 +6702,20 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6450
6702
  addressLine2?: string | null | undefined;
6451
6703
  addressLine3?: string | null | undefined;
6452
6704
  postcodeOrZip?: string | null | undefined;
6453
- }>]>>>;
6454
- createdAtLocation: z.ZodString;
6705
+ }>]>>>>;
6455
6706
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6456
- originalActionId: z.ZodOptional<z.ZodString>;
6707
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6457
6708
  }, {
6458
6709
  type: z.ZodLiteral<"UNASSIGN">;
6459
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
6710
+ assignedTo: z.ZodLiteral<null>;
6460
6711
  }>, "strip", z.ZodTypeAny, {
6461
6712
  type: "UNASSIGN";
6462
6713
  id: string;
6463
6714
  status: "Rejected" | "Requested" | "Accepted";
6715
+ transactionId: string;
6464
6716
  createdAt: string;
6465
6717
  createdBy: string;
6718
+ createdByRole: string;
6466
6719
  declaration: Record<string, string | number | boolean | {
6467
6720
  type: string;
6468
6721
  filename: string;
@@ -6500,9 +6753,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6500
6753
  option: string;
6501
6754
  filename: string;
6502
6755
  originalFilename: string;
6503
- }[] | undefined>;
6504
- createdAtLocation: string;
6756
+ }[] | [string, string] | undefined>;
6505
6757
  assignedTo: null;
6758
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6506
6759
  annotation?: Record<string, string | number | boolean | {
6507
6760
  type: string;
6508
6761
  filename: string;
@@ -6540,14 +6793,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6540
6793
  option: string;
6541
6794
  filename: string;
6542
6795
  originalFilename: string;
6543
- }[] | undefined> | undefined;
6544
- originalActionId?: string | undefined;
6796
+ }[] | [string, string] | undefined> | null | undefined;
6797
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6545
6798
  }, {
6546
6799
  type: "UNASSIGN";
6547
6800
  id: string;
6548
6801
  status: "Rejected" | "Requested" | "Accepted";
6802
+ transactionId: string;
6549
6803
  createdAt: string;
6550
6804
  createdBy: string;
6805
+ createdByRole: string;
6551
6806
  declaration: Record<string, string | number | boolean | {
6552
6807
  type: string;
6553
6808
  filename: string;
@@ -6585,8 +6840,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6585
6840
  option: string;
6586
6841
  filename: string;
6587
6842
  originalFilename: string;
6588
- }[] | undefined>;
6589
- createdAtLocation: string;
6843
+ }[] | [string, string] | undefined>;
6844
+ assignedTo: null;
6845
+ createdAtLocation?: string | null | undefined;
6590
6846
  annotation?: Record<string, string | number | boolean | {
6591
6847
  type: string;
6592
6848
  filename: string;
@@ -6624,14 +6880,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6624
6880
  option: string;
6625
6881
  filename: string;
6626
6882
  originalFilename: string;
6627
- }[] | undefined> | undefined;
6628
- originalActionId?: string | undefined;
6629
- assignedTo?: null | undefined;
6883
+ }[] | [string, string] | undefined> | null | undefined;
6884
+ originalActionId?: string | null | undefined;
6630
6885
  }>, z.ZodObject<z.objectUtil.extendShape<{
6631
6886
  id: z.ZodString;
6887
+ transactionId: z.ZodString;
6632
6888
  createdAt: z.ZodString;
6633
6889
  createdBy: z.ZodString;
6634
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6890
+ createdByRole: z.ZodString;
6891
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6892
+ 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<{
6635
6893
  filename: z.ZodString;
6636
6894
  originalFilename: z.ZodString;
6637
6895
  type: z.ZodString;
@@ -6745,7 +7003,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6745
7003
  addressLine3?: string | null | undefined;
6746
7004
  postcodeOrZip?: string | null | undefined;
6747
7005
  }>]>>;
6748
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7006
+ 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<{
6749
7007
  filename: z.ZodString;
6750
7008
  originalFilename: z.ZodString;
6751
7009
  type: z.ZodString;
@@ -6858,18 +7116,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6858
7116
  addressLine2?: string | null | undefined;
6859
7117
  addressLine3?: string | null | undefined;
6860
7118
  postcodeOrZip?: string | null | undefined;
6861
- }>]>>>;
6862
- createdAtLocation: z.ZodString;
7119
+ }>]>>>>;
6863
7120
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6864
- originalActionId: z.ZodOptional<z.ZodString>;
7121
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6865
7122
  }, {
6866
7123
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
6867
7124
  }>, "strip", z.ZodTypeAny, {
6868
7125
  type: "PRINT_CERTIFICATE";
6869
7126
  id: string;
6870
7127
  status: "Rejected" | "Requested" | "Accepted";
7128
+ transactionId: string;
6871
7129
  createdAt: string;
6872
7130
  createdBy: string;
7131
+ createdByRole: string;
6873
7132
  declaration: Record<string, string | number | boolean | {
6874
7133
  type: string;
6875
7134
  filename: string;
@@ -6907,8 +7166,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6907
7166
  option: string;
6908
7167
  filename: string;
6909
7168
  originalFilename: string;
6910
- }[] | undefined>;
6911
- createdAtLocation: string;
7169
+ }[] | [string, string] | undefined>;
7170
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6912
7171
  annotation?: Record<string, string | number | boolean | {
6913
7172
  type: string;
6914
7173
  filename: string;
@@ -6946,14 +7205,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6946
7205
  option: string;
6947
7206
  filename: string;
6948
7207
  originalFilename: string;
6949
- }[] | undefined> | undefined;
6950
- originalActionId?: string | undefined;
7208
+ }[] | [string, string] | undefined> | null | undefined;
7209
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6951
7210
  }, {
6952
7211
  type: "PRINT_CERTIFICATE";
6953
7212
  id: string;
6954
7213
  status: "Rejected" | "Requested" | "Accepted";
7214
+ transactionId: string;
6955
7215
  createdAt: string;
6956
7216
  createdBy: string;
7217
+ createdByRole: string;
6957
7218
  declaration: Record<string, string | number | boolean | {
6958
7219
  type: string;
6959
7220
  filename: string;
@@ -6991,8 +7252,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6991
7252
  option: string;
6992
7253
  filename: string;
6993
7254
  originalFilename: string;
6994
- }[] | undefined>;
6995
- createdAtLocation: string;
7255
+ }[] | [string, string] | undefined>;
7256
+ createdAtLocation?: string | null | undefined;
6996
7257
  annotation?: Record<string, string | number | boolean | {
6997
7258
  type: string;
6998
7259
  filename: string;
@@ -7030,13 +7291,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7030
7291
  option: string;
7031
7292
  filename: string;
7032
7293
  originalFilename: string;
7033
- }[] | undefined> | undefined;
7034
- originalActionId?: string | undefined;
7294
+ }[] | [string, string] | undefined> | null | undefined;
7295
+ originalActionId?: string | null | undefined;
7035
7296
  }>, z.ZodObject<z.objectUtil.extendShape<{
7036
7297
  id: z.ZodString;
7298
+ transactionId: z.ZodString;
7037
7299
  createdAt: z.ZodString;
7038
7300
  createdBy: z.ZodString;
7039
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7301
+ createdByRole: z.ZodString;
7302
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
7303
+ 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<{
7040
7304
  filename: z.ZodString;
7041
7305
  originalFilename: z.ZodString;
7042
7306
  type: z.ZodString;
@@ -7150,7 +7414,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7150
7414
  addressLine3?: string | null | undefined;
7151
7415
  postcodeOrZip?: string | null | undefined;
7152
7416
  }>]>>;
7153
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7417
+ 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<{
7154
7418
  filename: z.ZodString;
7155
7419
  originalFilename: z.ZodString;
7156
7420
  type: z.ZodString;
@@ -7263,18 +7527,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7263
7527
  addressLine2?: string | null | undefined;
7264
7528
  addressLine3?: string | null | undefined;
7265
7529
  postcodeOrZip?: string | null | undefined;
7266
- }>]>>>;
7267
- createdAtLocation: z.ZodString;
7530
+ }>]>>>>;
7268
7531
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7269
- originalActionId: z.ZodOptional<z.ZodString>;
7532
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7270
7533
  }, {
7271
7534
  type: z.ZodLiteral<"READ">;
7272
7535
  }>, "strip", z.ZodTypeAny, {
7273
7536
  type: "READ";
7274
7537
  id: string;
7275
7538
  status: "Rejected" | "Requested" | "Accepted";
7539
+ transactionId: string;
7276
7540
  createdAt: string;
7277
7541
  createdBy: string;
7542
+ createdByRole: string;
7278
7543
  declaration: Record<string, string | number | boolean | {
7279
7544
  type: string;
7280
7545
  filename: string;
@@ -7312,8 +7577,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7312
7577
  option: string;
7313
7578
  filename: string;
7314
7579
  originalFilename: string;
7315
- }[] | undefined>;
7316
- createdAtLocation: string;
7580
+ }[] | [string, string] | undefined>;
7581
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7317
7582
  annotation?: Record<string, string | number | boolean | {
7318
7583
  type: string;
7319
7584
  filename: string;
@@ -7351,14 +7616,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7351
7616
  option: string;
7352
7617
  filename: string;
7353
7618
  originalFilename: string;
7354
- }[] | undefined> | undefined;
7355
- originalActionId?: string | undefined;
7619
+ }[] | [string, string] | undefined> | null | undefined;
7620
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7356
7621
  }, {
7357
7622
  type: "READ";
7358
7623
  id: string;
7359
7624
  status: "Rejected" | "Requested" | "Accepted";
7625
+ transactionId: string;
7360
7626
  createdAt: string;
7361
7627
  createdBy: string;
7628
+ createdByRole: string;
7362
7629
  declaration: Record<string, string | number | boolean | {
7363
7630
  type: string;
7364
7631
  filename: string;
@@ -7396,8 +7663,8 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7396
7663
  option: string;
7397
7664
  filename: string;
7398
7665
  originalFilename: string;
7399
- }[] | undefined>;
7400
- createdAtLocation: string;
7666
+ }[] | [string, string] | undefined>;
7667
+ createdAtLocation?: string | null | undefined;
7401
7668
  annotation?: Record<string, string | number | boolean | {
7402
7669
  type: string;
7403
7670
  filename: string;
@@ -7435,15 +7702,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7435
7702
  option: string;
7436
7703
  filename: string;
7437
7704
  originalFilename: string;
7438
- }[] | undefined> | undefined;
7439
- originalActionId?: string | undefined;
7705
+ }[] | [string, string] | undefined> | null | undefined;
7706
+ originalActionId?: string | null | undefined;
7440
7707
  }>]>;
7441
7708
  export type ActionDocument = z.infer<typeof ActionDocument>;
7442
7709
  export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
7443
7710
  id: z.ZodString;
7711
+ transactionId: z.ZodString;
7444
7712
  createdAt: z.ZodString;
7445
7713
  createdBy: z.ZodString;
7446
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7714
+ createdByRole: z.ZodString;
7715
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
7716
+ 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<{
7447
7717
  filename: z.ZodString;
7448
7718
  originalFilename: z.ZodString;
7449
7719
  type: z.ZodString;
@@ -7557,7 +7827,7 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7557
7827
  addressLine3?: string | null | undefined;
7558
7828
  postcodeOrZip?: string | null | undefined;
7559
7829
  }>]>>;
7560
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7830
+ 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<{
7561
7831
  filename: z.ZodString;
7562
7832
  originalFilename: z.ZodString;
7563
7833
  type: z.ZodString;
@@ -7670,32 +7940,42 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7670
7940
  addressLine2?: string | null | undefined;
7671
7941
  addressLine3?: string | null | undefined;
7672
7942
  postcodeOrZip?: string | null | undefined;
7673
- }>]>>>;
7674
- createdAtLocation: z.ZodString;
7943
+ }>]>>>>;
7675
7944
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7676
- originalActionId: z.ZodOptional<z.ZodString>;
7677
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
7945
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7946
+ }, "declaration" | "annotation">, {
7678
7947
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7679
7948
  status: z.ZodLiteral<"Rejected">;
7680
7949
  }>, "strip", z.ZodTypeAny, {
7681
7950
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7682
7951
  id: string;
7683
7952
  status: "Rejected";
7953
+ transactionId: string;
7684
7954
  createdAt: string;
7685
- originalActionId?: string | undefined;
7955
+ createdBy: string;
7956
+ createdByRole: string;
7957
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7958
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7686
7959
  }, {
7687
7960
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7688
7961
  id: string;
7689
7962
  status: "Rejected";
7963
+ transactionId: string;
7690
7964
  createdAt: string;
7691
- originalActionId?: string | undefined;
7965
+ createdBy: string;
7966
+ createdByRole: string;
7967
+ createdAtLocation?: string | null | undefined;
7968
+ originalActionId?: string | null | undefined;
7692
7969
  }>;
7693
7970
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
7694
7971
  export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7695
7972
  id: z.ZodString;
7973
+ transactionId: z.ZodString;
7696
7974
  createdAt: z.ZodString;
7697
7975
  createdBy: z.ZodString;
7698
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7976
+ createdByRole: z.ZodString;
7977
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
7978
+ 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<{
7699
7979
  filename: z.ZodString;
7700
7980
  originalFilename: z.ZodString;
7701
7981
  type: z.ZodString;
@@ -7809,7 +8089,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7809
8089
  addressLine3?: string | null | undefined;
7810
8090
  postcodeOrZip?: string | null | undefined;
7811
8091
  }>]>>;
7812
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8092
+ 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<{
7813
8093
  filename: z.ZodString;
7814
8094
  originalFilename: z.ZodString;
7815
8095
  type: z.ZodString;
@@ -7922,18 +8202,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7922
8202
  addressLine2?: string | null | undefined;
7923
8203
  addressLine3?: string | null | undefined;
7924
8204
  postcodeOrZip?: string | null | undefined;
7925
- }>]>>>;
7926
- createdAtLocation: z.ZodString;
8205
+ }>]>>>>;
7927
8206
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7928
- originalActionId: z.ZodOptional<z.ZodString>;
8207
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7929
8208
  }, {
7930
8209
  type: z.ZodLiteral<"CREATE">;
7931
8210
  }>, "strip", z.ZodTypeAny, {
7932
8211
  type: "CREATE";
7933
8212
  id: string;
7934
8213
  status: "Rejected" | "Requested" | "Accepted";
8214
+ transactionId: string;
7935
8215
  createdAt: string;
7936
8216
  createdBy: string;
8217
+ createdByRole: string;
7937
8218
  declaration: Record<string, string | number | boolean | {
7938
8219
  type: string;
7939
8220
  filename: string;
@@ -7971,8 +8252,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7971
8252
  option: string;
7972
8253
  filename: string;
7973
8254
  originalFilename: string;
7974
- }[] | undefined>;
7975
- createdAtLocation: string;
8255
+ }[] | [string, string] | undefined>;
8256
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7976
8257
  annotation?: Record<string, string | number | boolean | {
7977
8258
  type: string;
7978
8259
  filename: string;
@@ -8010,14 +8291,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8010
8291
  option: string;
8011
8292
  filename: string;
8012
8293
  originalFilename: string;
8013
- }[] | undefined> | undefined;
8014
- originalActionId?: string | undefined;
8294
+ }[] | [string, string] | undefined> | null | undefined;
8295
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8015
8296
  }, {
8016
8297
  type: "CREATE";
8017
8298
  id: string;
8018
8299
  status: "Rejected" | "Requested" | "Accepted";
8300
+ transactionId: string;
8019
8301
  createdAt: string;
8020
8302
  createdBy: string;
8303
+ createdByRole: string;
8021
8304
  declaration: Record<string, string | number | boolean | {
8022
8305
  type: string;
8023
8306
  filename: string;
@@ -8055,8 +8338,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8055
8338
  option: string;
8056
8339
  filename: string;
8057
8340
  originalFilename: string;
8058
- }[] | undefined>;
8059
- createdAtLocation: string;
8341
+ }[] | [string, string] | undefined>;
8342
+ createdAtLocation?: string | null | undefined;
8060
8343
  annotation?: Record<string, string | number | boolean | {
8061
8344
  type: string;
8062
8345
  filename: string;
@@ -8094,13 +8377,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8094
8377
  option: string;
8095
8378
  filename: string;
8096
8379
  originalFilename: string;
8097
- }[] | undefined> | undefined;
8098
- originalActionId?: string | undefined;
8380
+ }[] | [string, string] | undefined> | null | undefined;
8381
+ originalActionId?: string | null | undefined;
8099
8382
  }>, z.ZodObject<z.objectUtil.extendShape<{
8100
8383
  id: z.ZodString;
8384
+ transactionId: z.ZodString;
8101
8385
  createdAt: z.ZodString;
8102
8386
  createdBy: z.ZodString;
8103
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8387
+ createdByRole: z.ZodString;
8388
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
8389
+ 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<{
8104
8390
  filename: z.ZodString;
8105
8391
  originalFilename: z.ZodString;
8106
8392
  type: z.ZodString;
@@ -8214,7 +8500,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8214
8500
  addressLine3?: string | null | undefined;
8215
8501
  postcodeOrZip?: string | null | undefined;
8216
8502
  }>]>>;
8217
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8503
+ 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<{
8218
8504
  filename: z.ZodString;
8219
8505
  originalFilename: z.ZodString;
8220
8506
  type: z.ZodString;
@@ -8327,18 +8613,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8327
8613
  addressLine2?: string | null | undefined;
8328
8614
  addressLine3?: string | null | undefined;
8329
8615
  postcodeOrZip?: string | null | undefined;
8330
- }>]>>>;
8331
- createdAtLocation: z.ZodString;
8616
+ }>]>>>>;
8332
8617
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8333
- originalActionId: z.ZodOptional<z.ZodString>;
8618
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8334
8619
  }, {
8335
8620
  type: z.ZodLiteral<"VALIDATE">;
8336
8621
  }>, "strip", z.ZodTypeAny, {
8337
8622
  type: "VALIDATE";
8338
8623
  id: string;
8339
8624
  status: "Rejected" | "Requested" | "Accepted";
8625
+ transactionId: string;
8340
8626
  createdAt: string;
8341
8627
  createdBy: string;
8628
+ createdByRole: string;
8342
8629
  declaration: Record<string, string | number | boolean | {
8343
8630
  type: string;
8344
8631
  filename: string;
@@ -8376,8 +8663,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8376
8663
  option: string;
8377
8664
  filename: string;
8378
8665
  originalFilename: string;
8379
- }[] | undefined>;
8380
- createdAtLocation: string;
8666
+ }[] | [string, string] | undefined>;
8667
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8381
8668
  annotation?: Record<string, string | number | boolean | {
8382
8669
  type: string;
8383
8670
  filename: string;
@@ -8415,14 +8702,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8415
8702
  option: string;
8416
8703
  filename: string;
8417
8704
  originalFilename: string;
8418
- }[] | undefined> | undefined;
8419
- originalActionId?: string | undefined;
8705
+ }[] | [string, string] | undefined> | null | undefined;
8706
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8420
8707
  }, {
8421
8708
  type: "VALIDATE";
8422
8709
  id: string;
8423
8710
  status: "Rejected" | "Requested" | "Accepted";
8711
+ transactionId: string;
8424
8712
  createdAt: string;
8425
8713
  createdBy: string;
8714
+ createdByRole: string;
8426
8715
  declaration: Record<string, string | number | boolean | {
8427
8716
  type: string;
8428
8717
  filename: string;
@@ -8460,8 +8749,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8460
8749
  option: string;
8461
8750
  filename: string;
8462
8751
  originalFilename: string;
8463
- }[] | undefined>;
8464
- createdAtLocation: string;
8752
+ }[] | [string, string] | undefined>;
8753
+ createdAtLocation?: string | null | undefined;
8465
8754
  annotation?: Record<string, string | number | boolean | {
8466
8755
  type: string;
8467
8756
  filename: string;
@@ -8499,13 +8788,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8499
8788
  option: string;
8500
8789
  filename: string;
8501
8790
  originalFilename: string;
8502
- }[] | undefined> | undefined;
8503
- originalActionId?: string | undefined;
8791
+ }[] | [string, string] | undefined> | null | undefined;
8792
+ originalActionId?: string | null | undefined;
8504
8793
  }>, z.ZodObject<z.objectUtil.extendShape<{
8505
8794
  id: z.ZodString;
8795
+ transactionId: z.ZodString;
8506
8796
  createdAt: z.ZodString;
8507
8797
  createdBy: z.ZodString;
8508
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8798
+ createdByRole: z.ZodString;
8799
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
8800
+ 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<{
8509
8801
  filename: z.ZodString;
8510
8802
  originalFilename: z.ZodString;
8511
8803
  type: z.ZodString;
@@ -8619,7 +8911,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8619
8911
  addressLine3?: string | null | undefined;
8620
8912
  postcodeOrZip?: string | null | undefined;
8621
8913
  }>]>>;
8622
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8914
+ 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<{
8623
8915
  filename: z.ZodString;
8624
8916
  originalFilename: z.ZodString;
8625
8917
  type: z.ZodString;
@@ -8732,18 +9024,33 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8732
9024
  addressLine2?: string | null | undefined;
8733
9025
  addressLine3?: string | null | undefined;
8734
9026
  postcodeOrZip?: string | null | undefined;
8735
- }>]>>>;
8736
- createdAtLocation: z.ZodString;
9027
+ }>]>>>>;
8737
9028
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8738
- originalActionId: z.ZodOptional<z.ZodString>;
9029
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8739
9030
  }, {
8740
9031
  type: z.ZodLiteral<"REJECT">;
9032
+ reason: z.ZodObject<{
9033
+ message: z.ZodString;
9034
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
9035
+ }, "strip", z.ZodTypeAny, {
9036
+ message: string;
9037
+ isDuplicate?: boolean | undefined;
9038
+ }, {
9039
+ message: string;
9040
+ isDuplicate?: boolean | undefined;
9041
+ }>;
8741
9042
  }>, "strip", z.ZodTypeAny, {
8742
9043
  type: "REJECT";
8743
9044
  id: string;
8744
9045
  status: "Rejected" | "Requested" | "Accepted";
9046
+ reason: {
9047
+ message: string;
9048
+ isDuplicate?: boolean | undefined;
9049
+ };
9050
+ transactionId: string;
8745
9051
  createdAt: string;
8746
9052
  createdBy: string;
9053
+ createdByRole: string;
8747
9054
  declaration: Record<string, string | number | boolean | {
8748
9055
  type: string;
8749
9056
  filename: string;
@@ -8781,8 +9088,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8781
9088
  option: string;
8782
9089
  filename: string;
8783
9090
  originalFilename: string;
8784
- }[] | undefined>;
8785
- createdAtLocation: string;
9091
+ }[] | [string, string] | undefined>;
9092
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8786
9093
  annotation?: Record<string, string | number | boolean | {
8787
9094
  type: string;
8788
9095
  filename: string;
@@ -8820,14 +9127,20 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8820
9127
  option: string;
8821
9128
  filename: string;
8822
9129
  originalFilename: string;
8823
- }[] | undefined> | undefined;
8824
- originalActionId?: string | undefined;
9130
+ }[] | [string, string] | undefined> | null | undefined;
9131
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8825
9132
  }, {
8826
9133
  type: "REJECT";
8827
9134
  id: string;
8828
9135
  status: "Rejected" | "Requested" | "Accepted";
9136
+ reason: {
9137
+ message: string;
9138
+ isDuplicate?: boolean | undefined;
9139
+ };
9140
+ transactionId: string;
8829
9141
  createdAt: string;
8830
9142
  createdBy: string;
9143
+ createdByRole: string;
8831
9144
  declaration: Record<string, string | number | boolean | {
8832
9145
  type: string;
8833
9146
  filename: string;
@@ -8865,8 +9178,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8865
9178
  option: string;
8866
9179
  filename: string;
8867
9180
  originalFilename: string;
8868
- }[] | undefined>;
8869
- createdAtLocation: string;
9181
+ }[] | [string, string] | undefined>;
9182
+ createdAtLocation?: string | null | undefined;
8870
9183
  annotation?: Record<string, string | number | boolean | {
8871
9184
  type: string;
8872
9185
  filename: string;
@@ -8904,13 +9217,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8904
9217
  option: string;
8905
9218
  filename: string;
8906
9219
  originalFilename: string;
8907
- }[] | undefined> | undefined;
8908
- originalActionId?: string | undefined;
9220
+ }[] | [string, string] | undefined> | null | undefined;
9221
+ originalActionId?: string | null | undefined;
8909
9222
  }>, z.ZodObject<z.objectUtil.extendShape<{
8910
9223
  id: z.ZodString;
9224
+ transactionId: z.ZodString;
8911
9225
  createdAt: z.ZodString;
8912
9226
  createdBy: z.ZodString;
8913
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9227
+ createdByRole: z.ZodString;
9228
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
9229
+ 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<{
8914
9230
  filename: z.ZodString;
8915
9231
  originalFilename: z.ZodString;
8916
9232
  type: z.ZodString;
@@ -9024,7 +9340,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9024
9340
  addressLine3?: string | null | undefined;
9025
9341
  postcodeOrZip?: string | null | undefined;
9026
9342
  }>]>>;
9027
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9343
+ 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<{
9028
9344
  filename: z.ZodString;
9029
9345
  originalFilename: z.ZodString;
9030
9346
  type: z.ZodString;
@@ -9137,18 +9453,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9137
9453
  addressLine2?: string | null | undefined;
9138
9454
  addressLine3?: string | null | undefined;
9139
9455
  postcodeOrZip?: string | null | undefined;
9140
- }>]>>>;
9141
- createdAtLocation: z.ZodString;
9456
+ }>]>>>>;
9142
9457
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9143
- originalActionId: z.ZodOptional<z.ZodString>;
9458
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9144
9459
  }, {
9145
9460
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
9146
9461
  }>, "strip", z.ZodTypeAny, {
9147
9462
  type: "MARKED_AS_DUPLICATE";
9148
9463
  id: string;
9149
9464
  status: "Rejected" | "Requested" | "Accepted";
9465
+ transactionId: string;
9150
9466
  createdAt: string;
9151
9467
  createdBy: string;
9468
+ createdByRole: string;
9152
9469
  declaration: Record<string, string | number | boolean | {
9153
9470
  type: string;
9154
9471
  filename: string;
@@ -9186,8 +9503,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9186
9503
  option: string;
9187
9504
  filename: string;
9188
9505
  originalFilename: string;
9189
- }[] | undefined>;
9190
- createdAtLocation: string;
9506
+ }[] | [string, string] | undefined>;
9507
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
9191
9508
  annotation?: Record<string, string | number | boolean | {
9192
9509
  type: string;
9193
9510
  filename: string;
@@ -9225,14 +9542,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9225
9542
  option: string;
9226
9543
  filename: string;
9227
9544
  originalFilename: string;
9228
- }[] | undefined> | undefined;
9229
- originalActionId?: string | undefined;
9545
+ }[] | [string, string] | undefined> | null | undefined;
9546
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9230
9547
  }, {
9231
9548
  type: "MARKED_AS_DUPLICATE";
9232
9549
  id: string;
9233
9550
  status: "Rejected" | "Requested" | "Accepted";
9551
+ transactionId: string;
9234
9552
  createdAt: string;
9235
9553
  createdBy: string;
9554
+ createdByRole: string;
9236
9555
  declaration: Record<string, string | number | boolean | {
9237
9556
  type: string;
9238
9557
  filename: string;
@@ -9270,8 +9589,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9270
9589
  option: string;
9271
9590
  filename: string;
9272
9591
  originalFilename: string;
9273
- }[] | undefined>;
9274
- createdAtLocation: string;
9592
+ }[] | [string, string] | undefined>;
9593
+ createdAtLocation?: string | null | undefined;
9275
9594
  annotation?: Record<string, string | number | boolean | {
9276
9595
  type: string;
9277
9596
  filename: string;
@@ -9309,13 +9628,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9309
9628
  option: string;
9310
9629
  filename: string;
9311
9630
  originalFilename: string;
9312
- }[] | undefined> | undefined;
9313
- originalActionId?: string | undefined;
9631
+ }[] | [string, string] | undefined> | null | undefined;
9632
+ originalActionId?: string | null | undefined;
9314
9633
  }>, z.ZodObject<z.objectUtil.extendShape<{
9315
9634
  id: z.ZodString;
9635
+ transactionId: z.ZodString;
9316
9636
  createdAt: z.ZodString;
9317
9637
  createdBy: z.ZodString;
9318
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9638
+ createdByRole: z.ZodString;
9639
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
9640
+ 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<{
9319
9641
  filename: z.ZodString;
9320
9642
  originalFilename: z.ZodString;
9321
9643
  type: z.ZodString;
@@ -9429,7 +9751,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9429
9751
  addressLine3?: string | null | undefined;
9430
9752
  postcodeOrZip?: string | null | undefined;
9431
9753
  }>]>>;
9432
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9754
+ 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<{
9433
9755
  filename: z.ZodString;
9434
9756
  originalFilename: z.ZodString;
9435
9757
  type: z.ZodString;
@@ -9542,18 +9864,33 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9542
9864
  addressLine2?: string | null | undefined;
9543
9865
  addressLine3?: string | null | undefined;
9544
9866
  postcodeOrZip?: string | null | undefined;
9545
- }>]>>>;
9546
- createdAtLocation: z.ZodString;
9867
+ }>]>>>>;
9547
9868
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9548
- originalActionId: z.ZodOptional<z.ZodString>;
9869
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9549
9870
  }, {
9550
9871
  type: z.ZodLiteral<"ARCHIVE">;
9872
+ reason: z.ZodObject<{
9873
+ message: z.ZodString;
9874
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
9875
+ }, "strip", z.ZodTypeAny, {
9876
+ message: string;
9877
+ isDuplicate?: boolean | undefined;
9878
+ }, {
9879
+ message: string;
9880
+ isDuplicate?: boolean | undefined;
9881
+ }>;
9551
9882
  }>, "strip", z.ZodTypeAny, {
9552
9883
  type: "ARCHIVE";
9553
9884
  id: string;
9554
9885
  status: "Rejected" | "Requested" | "Accepted";
9886
+ reason: {
9887
+ message: string;
9888
+ isDuplicate?: boolean | undefined;
9889
+ };
9890
+ transactionId: string;
9555
9891
  createdAt: string;
9556
9892
  createdBy: string;
9893
+ createdByRole: string;
9557
9894
  declaration: Record<string, string | number | boolean | {
9558
9895
  type: string;
9559
9896
  filename: string;
@@ -9591,8 +9928,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9591
9928
  option: string;
9592
9929
  filename: string;
9593
9930
  originalFilename: string;
9594
- }[] | undefined>;
9595
- createdAtLocation: string;
9931
+ }[] | [string, string] | undefined>;
9932
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
9596
9933
  annotation?: Record<string, string | number | boolean | {
9597
9934
  type: string;
9598
9935
  filename: string;
@@ -9630,14 +9967,20 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9630
9967
  option: string;
9631
9968
  filename: string;
9632
9969
  originalFilename: string;
9633
- }[] | undefined> | undefined;
9634
- originalActionId?: string | undefined;
9970
+ }[] | [string, string] | undefined> | null | undefined;
9971
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9635
9972
  }, {
9636
9973
  type: "ARCHIVE";
9637
9974
  id: string;
9638
9975
  status: "Rejected" | "Requested" | "Accepted";
9976
+ reason: {
9977
+ message: string;
9978
+ isDuplicate?: boolean | undefined;
9979
+ };
9980
+ transactionId: string;
9639
9981
  createdAt: string;
9640
9982
  createdBy: string;
9983
+ createdByRole: string;
9641
9984
  declaration: Record<string, string | number | boolean | {
9642
9985
  type: string;
9643
9986
  filename: string;
@@ -9675,8 +10018,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9675
10018
  option: string;
9676
10019
  filename: string;
9677
10020
  originalFilename: string;
9678
- }[] | undefined>;
9679
- createdAtLocation: string;
10021
+ }[] | [string, string] | undefined>;
10022
+ createdAtLocation?: string | null | undefined;
9680
10023
  annotation?: Record<string, string | number | boolean | {
9681
10024
  type: string;
9682
10025
  filename: string;
@@ -9714,13 +10057,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9714
10057
  option: string;
9715
10058
  filename: string;
9716
10059
  originalFilename: string;
9717
- }[] | undefined> | undefined;
9718
- originalActionId?: string | undefined;
10060
+ }[] | [string, string] | undefined> | null | undefined;
10061
+ originalActionId?: string | null | undefined;
9719
10062
  }>, z.ZodObject<z.objectUtil.extendShape<{
9720
10063
  id: z.ZodString;
10064
+ transactionId: z.ZodString;
9721
10065
  createdAt: z.ZodString;
9722
10066
  createdBy: z.ZodString;
9723
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10067
+ createdByRole: z.ZodString;
10068
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
10069
+ 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<{
9724
10070
  filename: z.ZodString;
9725
10071
  originalFilename: z.ZodString;
9726
10072
  type: z.ZodString;
@@ -9834,7 +10180,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9834
10180
  addressLine3?: string | null | undefined;
9835
10181
  postcodeOrZip?: string | null | undefined;
9836
10182
  }>]>>;
9837
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10183
+ 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<{
9838
10184
  filename: z.ZodString;
9839
10185
  originalFilename: z.ZodString;
9840
10186
  type: z.ZodString;
@@ -9947,18 +10293,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9947
10293
  addressLine2?: string | null | undefined;
9948
10294
  addressLine3?: string | null | undefined;
9949
10295
  postcodeOrZip?: string | null | undefined;
9950
- }>]>>>;
9951
- createdAtLocation: z.ZodString;
10296
+ }>]>>>>;
9952
10297
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9953
- originalActionId: z.ZodOptional<z.ZodString>;
10298
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9954
10299
  }, {
9955
10300
  type: z.ZodLiteral<"NOTIFY">;
9956
10301
  }>, "strip", z.ZodTypeAny, {
9957
10302
  type: "NOTIFY";
9958
10303
  id: string;
9959
10304
  status: "Rejected" | "Requested" | "Accepted";
10305
+ transactionId: string;
9960
10306
  createdAt: string;
9961
10307
  createdBy: string;
10308
+ createdByRole: string;
9962
10309
  declaration: Record<string, string | number | boolean | {
9963
10310
  type: string;
9964
10311
  filename: string;
@@ -9996,8 +10343,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9996
10343
  option: string;
9997
10344
  filename: string;
9998
10345
  originalFilename: string;
9999
- }[] | undefined>;
10000
- createdAtLocation: string;
10346
+ }[] | [string, string] | undefined>;
10347
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10001
10348
  annotation?: Record<string, string | number | boolean | {
10002
10349
  type: string;
10003
10350
  filename: string;
@@ -10035,14 +10382,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10035
10382
  option: string;
10036
10383
  filename: string;
10037
10384
  originalFilename: string;
10038
- }[] | undefined> | undefined;
10039
- originalActionId?: string | undefined;
10385
+ }[] | [string, string] | undefined> | null | undefined;
10386
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10040
10387
  }, {
10041
10388
  type: "NOTIFY";
10042
10389
  id: string;
10043
10390
  status: "Rejected" | "Requested" | "Accepted";
10391
+ transactionId: string;
10044
10392
  createdAt: string;
10045
10393
  createdBy: string;
10394
+ createdByRole: string;
10046
10395
  declaration: Record<string, string | number | boolean | {
10047
10396
  type: string;
10048
10397
  filename: string;
@@ -10080,8 +10429,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10080
10429
  option: string;
10081
10430
  filename: string;
10082
10431
  originalFilename: string;
10083
- }[] | undefined>;
10084
- createdAtLocation: string;
10432
+ }[] | [string, string] | undefined>;
10433
+ createdAtLocation?: string | null | undefined;
10085
10434
  annotation?: Record<string, string | number | boolean | {
10086
10435
  type: string;
10087
10436
  filename: string;
@@ -10119,13 +10468,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10119
10468
  option: string;
10120
10469
  filename: string;
10121
10470
  originalFilename: string;
10122
- }[] | undefined> | undefined;
10123
- originalActionId?: string | undefined;
10471
+ }[] | [string, string] | undefined> | null | undefined;
10472
+ originalActionId?: string | null | undefined;
10124
10473
  }>, z.ZodObject<z.objectUtil.extendShape<{
10125
10474
  id: z.ZodString;
10475
+ transactionId: z.ZodString;
10126
10476
  createdAt: z.ZodString;
10127
10477
  createdBy: z.ZodString;
10128
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10478
+ createdByRole: z.ZodString;
10479
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
10480
+ 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<{
10129
10481
  filename: z.ZodString;
10130
10482
  originalFilename: z.ZodString;
10131
10483
  type: z.ZodString;
@@ -10239,7 +10591,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10239
10591
  addressLine3?: string | null | undefined;
10240
10592
  postcodeOrZip?: string | null | undefined;
10241
10593
  }>]>>;
10242
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10594
+ 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<{
10243
10595
  filename: z.ZodString;
10244
10596
  originalFilename: z.ZodString;
10245
10597
  type: z.ZodString;
@@ -10352,10 +10704,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10352
10704
  addressLine2?: string | null | undefined;
10353
10705
  addressLine3?: string | null | undefined;
10354
10706
  postcodeOrZip?: string | null | undefined;
10355
- }>]>>>;
10356
- createdAtLocation: z.ZodString;
10707
+ }>]>>>>;
10357
10708
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10358
- originalActionId: z.ZodOptional<z.ZodString>;
10709
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
10359
10710
  }, {
10360
10711
  type: z.ZodLiteral<"REGISTER">;
10361
10712
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -10363,8 +10714,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10363
10714
  type: "REGISTER";
10364
10715
  id: string;
10365
10716
  status: "Rejected" | "Requested" | "Accepted";
10717
+ transactionId: string;
10366
10718
  createdAt: string;
10367
10719
  createdBy: string;
10720
+ createdByRole: string;
10368
10721
  declaration: Record<string, string | number | boolean | {
10369
10722
  type: string;
10370
10723
  filename: string;
@@ -10402,8 +10755,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10402
10755
  option: string;
10403
10756
  filename: string;
10404
10757
  originalFilename: string;
10405
- }[] | undefined>;
10406
- createdAtLocation: string;
10758
+ }[] | [string, string] | undefined>;
10759
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10407
10760
  annotation?: Record<string, string | number | boolean | {
10408
10761
  type: string;
10409
10762
  filename: string;
@@ -10441,15 +10794,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10441
10794
  option: string;
10442
10795
  filename: string;
10443
10796
  originalFilename: string;
10444
- }[] | undefined> | undefined;
10445
- originalActionId?: string | undefined;
10797
+ }[] | [string, string] | undefined> | null | undefined;
10798
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10446
10799
  registrationNumber?: string | undefined;
10447
10800
  }, {
10448
10801
  type: "REGISTER";
10449
10802
  id: string;
10450
10803
  status: "Rejected" | "Requested" | "Accepted";
10804
+ transactionId: string;
10451
10805
  createdAt: string;
10452
10806
  createdBy: string;
10807
+ createdByRole: string;
10453
10808
  declaration: Record<string, string | number | boolean | {
10454
10809
  type: string;
10455
10810
  filename: string;
@@ -10487,8 +10842,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10487
10842
  option: string;
10488
10843
  filename: string;
10489
10844
  originalFilename: string;
10490
- }[] | undefined>;
10491
- createdAtLocation: string;
10845
+ }[] | [string, string] | undefined>;
10846
+ createdAtLocation?: string | null | undefined;
10492
10847
  annotation?: Record<string, string | number | boolean | {
10493
10848
  type: string;
10494
10849
  filename: string;
@@ -10526,14 +10881,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10526
10881
  option: string;
10527
10882
  filename: string;
10528
10883
  originalFilename: string;
10529
- }[] | undefined> | undefined;
10530
- originalActionId?: string | undefined;
10884
+ }[] | [string, string] | undefined> | null | undefined;
10885
+ originalActionId?: string | null | undefined;
10531
10886
  registrationNumber?: string | undefined;
10532
10887
  }>, z.ZodObject<z.objectUtil.extendShape<{
10533
10888
  id: z.ZodString;
10889
+ transactionId: z.ZodString;
10534
10890
  createdAt: z.ZodString;
10535
10891
  createdBy: z.ZodString;
10536
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10892
+ createdByRole: z.ZodString;
10893
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
10894
+ 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<{
10537
10895
  filename: z.ZodString;
10538
10896
  originalFilename: z.ZodString;
10539
10897
  type: z.ZodString;
@@ -10647,7 +11005,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10647
11005
  addressLine3?: string | null | undefined;
10648
11006
  postcodeOrZip?: string | null | undefined;
10649
11007
  }>]>>;
10650
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11008
+ 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<{
10651
11009
  filename: z.ZodString;
10652
11010
  originalFilename: z.ZodString;
10653
11011
  type: z.ZodString;
@@ -10760,18 +11118,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10760
11118
  addressLine2?: string | null | undefined;
10761
11119
  addressLine3?: string | null | undefined;
10762
11120
  postcodeOrZip?: string | null | undefined;
10763
- }>]>>>;
10764
- createdAtLocation: z.ZodString;
11121
+ }>]>>>>;
10765
11122
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10766
- originalActionId: z.ZodOptional<z.ZodString>;
11123
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
10767
11124
  }, {
10768
11125
  type: z.ZodLiteral<"DECLARE">;
10769
11126
  }>, "strip", z.ZodTypeAny, {
10770
11127
  type: "DECLARE";
10771
11128
  id: string;
10772
11129
  status: "Rejected" | "Requested" | "Accepted";
11130
+ transactionId: string;
10773
11131
  createdAt: string;
10774
11132
  createdBy: string;
11133
+ createdByRole: string;
10775
11134
  declaration: Record<string, string | number | boolean | {
10776
11135
  type: string;
10777
11136
  filename: string;
@@ -10809,8 +11168,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10809
11168
  option: string;
10810
11169
  filename: string;
10811
11170
  originalFilename: string;
10812
- }[] | undefined>;
10813
- createdAtLocation: string;
11171
+ }[] | [string, string] | undefined>;
11172
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10814
11173
  annotation?: Record<string, string | number | boolean | {
10815
11174
  type: string;
10816
11175
  filename: string;
@@ -10848,14 +11207,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10848
11207
  option: string;
10849
11208
  filename: string;
10850
11209
  originalFilename: string;
10851
- }[] | undefined> | undefined;
10852
- originalActionId?: string | undefined;
11210
+ }[] | [string, string] | undefined> | null | undefined;
11211
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10853
11212
  }, {
10854
11213
  type: "DECLARE";
10855
11214
  id: string;
10856
11215
  status: "Rejected" | "Requested" | "Accepted";
11216
+ transactionId: string;
10857
11217
  createdAt: string;
10858
11218
  createdBy: string;
11219
+ createdByRole: string;
10859
11220
  declaration: Record<string, string | number | boolean | {
10860
11221
  type: string;
10861
11222
  filename: string;
@@ -10893,8 +11254,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10893
11254
  option: string;
10894
11255
  filename: string;
10895
11256
  originalFilename: string;
10896
- }[] | undefined>;
10897
- createdAtLocation: string;
11257
+ }[] | [string, string] | undefined>;
11258
+ createdAtLocation?: string | null | undefined;
10898
11259
  annotation?: Record<string, string | number | boolean | {
10899
11260
  type: string;
10900
11261
  filename: string;
@@ -10932,13 +11293,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10932
11293
  option: string;
10933
11294
  filename: string;
10934
11295
  originalFilename: string;
10935
- }[] | undefined> | undefined;
10936
- originalActionId?: string | undefined;
11296
+ }[] | [string, string] | undefined> | null | undefined;
11297
+ originalActionId?: string | null | undefined;
10937
11298
  }>, z.ZodObject<z.objectUtil.extendShape<{
10938
11299
  id: z.ZodString;
11300
+ transactionId: z.ZodString;
10939
11301
  createdAt: z.ZodString;
10940
11302
  createdBy: z.ZodString;
10941
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11303
+ createdByRole: z.ZodString;
11304
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11305
+ 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<{
10942
11306
  filename: z.ZodString;
10943
11307
  originalFilename: z.ZodString;
10944
11308
  type: z.ZodString;
@@ -11052,7 +11416,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11052
11416
  addressLine3?: string | null | undefined;
11053
11417
  postcodeOrZip?: string | null | undefined;
11054
11418
  }>]>>;
11055
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11419
+ 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<{
11056
11420
  filename: z.ZodString;
11057
11421
  originalFilename: z.ZodString;
11058
11422
  type: z.ZodString;
@@ -11165,10 +11529,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11165
11529
  addressLine2?: string | null | undefined;
11166
11530
  addressLine3?: string | null | undefined;
11167
11531
  postcodeOrZip?: string | null | undefined;
11168
- }>]>>>;
11169
- createdAtLocation: z.ZodString;
11532
+ }>]>>>>;
11170
11533
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11171
- originalActionId: z.ZodOptional<z.ZodString>;
11534
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11172
11535
  }, {
11173
11536
  type: z.ZodLiteral<"ASSIGN">;
11174
11537
  assignedTo: z.ZodString;
@@ -11176,8 +11539,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11176
11539
  type: "ASSIGN";
11177
11540
  id: string;
11178
11541
  status: "Rejected" | "Requested" | "Accepted";
11542
+ transactionId: string;
11179
11543
  createdAt: string;
11180
11544
  createdBy: string;
11545
+ createdByRole: string;
11181
11546
  declaration: Record<string, string | number | boolean | {
11182
11547
  type: string;
11183
11548
  filename: string;
@@ -11215,9 +11580,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11215
11580
  option: string;
11216
11581
  filename: string;
11217
11582
  originalFilename: string;
11218
- }[] | undefined>;
11219
- createdAtLocation: string;
11583
+ }[] | [string, string] | undefined>;
11220
11584
  assignedTo: string;
11585
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
11221
11586
  annotation?: Record<string, string | number | boolean | {
11222
11587
  type: string;
11223
11588
  filename: string;
@@ -11255,14 +11620,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11255
11620
  option: string;
11256
11621
  filename: string;
11257
11622
  originalFilename: string;
11258
- }[] | undefined> | undefined;
11259
- originalActionId?: string | undefined;
11623
+ }[] | [string, string] | undefined> | null | undefined;
11624
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11260
11625
  }, {
11261
11626
  type: "ASSIGN";
11262
11627
  id: string;
11263
11628
  status: "Rejected" | "Requested" | "Accepted";
11629
+ transactionId: string;
11264
11630
  createdAt: string;
11265
11631
  createdBy: string;
11632
+ createdByRole: string;
11266
11633
  declaration: Record<string, string | number | boolean | {
11267
11634
  type: string;
11268
11635
  filename: string;
@@ -11300,9 +11667,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11300
11667
  option: string;
11301
11668
  filename: string;
11302
11669
  originalFilename: string;
11303
- }[] | undefined>;
11304
- createdAtLocation: string;
11670
+ }[] | [string, string] | undefined>;
11305
11671
  assignedTo: string;
11672
+ createdAtLocation?: string | null | undefined;
11306
11673
  annotation?: Record<string, string | number | boolean | {
11307
11674
  type: string;
11308
11675
  filename: string;
@@ -11340,13 +11707,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11340
11707
  option: string;
11341
11708
  filename: string;
11342
11709
  originalFilename: string;
11343
- }[] | undefined> | undefined;
11344
- originalActionId?: string | undefined;
11710
+ }[] | [string, string] | undefined> | null | undefined;
11711
+ originalActionId?: string | null | undefined;
11345
11712
  }>, z.ZodObject<z.objectUtil.extendShape<{
11346
11713
  id: z.ZodString;
11714
+ transactionId: z.ZodString;
11347
11715
  createdAt: z.ZodString;
11348
11716
  createdBy: z.ZodString;
11349
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11717
+ createdByRole: z.ZodString;
11718
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11719
+ 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<{
11350
11720
  filename: z.ZodString;
11351
11721
  originalFilename: z.ZodString;
11352
11722
  type: z.ZodString;
@@ -11460,7 +11830,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11460
11830
  addressLine3?: string | null | undefined;
11461
11831
  postcodeOrZip?: string | null | undefined;
11462
11832
  }>]>>;
11463
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11833
+ 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<{
11464
11834
  filename: z.ZodString;
11465
11835
  originalFilename: z.ZodString;
11466
11836
  type: z.ZodString;
@@ -11573,18 +11943,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11573
11943
  addressLine2?: string | null | undefined;
11574
11944
  addressLine3?: string | null | undefined;
11575
11945
  postcodeOrZip?: string | null | undefined;
11576
- }>]>>>;
11577
- createdAtLocation: z.ZodString;
11946
+ }>]>>>>;
11578
11947
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11579
- originalActionId: z.ZodOptional<z.ZodString>;
11948
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11580
11949
  }, {
11581
11950
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
11582
11951
  }>, "strip", z.ZodTypeAny, {
11583
11952
  type: "REQUEST_CORRECTION";
11584
11953
  id: string;
11585
11954
  status: "Rejected" | "Requested" | "Accepted";
11955
+ transactionId: string;
11586
11956
  createdAt: string;
11587
11957
  createdBy: string;
11958
+ createdByRole: string;
11588
11959
  declaration: Record<string, string | number | boolean | {
11589
11960
  type: string;
11590
11961
  filename: string;
@@ -11622,8 +11993,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11622
11993
  option: string;
11623
11994
  filename: string;
11624
11995
  originalFilename: string;
11625
- }[] | undefined>;
11626
- createdAtLocation: string;
11996
+ }[] | [string, string] | undefined>;
11997
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
11627
11998
  annotation?: Record<string, string | number | boolean | {
11628
11999
  type: string;
11629
12000
  filename: string;
@@ -11661,14 +12032,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11661
12032
  option: string;
11662
12033
  filename: string;
11663
12034
  originalFilename: string;
11664
- }[] | undefined> | undefined;
11665
- originalActionId?: string | undefined;
12035
+ }[] | [string, string] | undefined> | null | undefined;
12036
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11666
12037
  }, {
11667
12038
  type: "REQUEST_CORRECTION";
11668
12039
  id: string;
11669
12040
  status: "Rejected" | "Requested" | "Accepted";
12041
+ transactionId: string;
11670
12042
  createdAt: string;
11671
12043
  createdBy: string;
12044
+ createdByRole: string;
11672
12045
  declaration: Record<string, string | number | boolean | {
11673
12046
  type: string;
11674
12047
  filename: string;
@@ -11706,8 +12079,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11706
12079
  option: string;
11707
12080
  filename: string;
11708
12081
  originalFilename: string;
11709
- }[] | undefined>;
11710
- createdAtLocation: string;
12082
+ }[] | [string, string] | undefined>;
12083
+ createdAtLocation?: string | null | undefined;
11711
12084
  annotation?: Record<string, string | number | boolean | {
11712
12085
  type: string;
11713
12086
  filename: string;
@@ -11745,13 +12118,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11745
12118
  option: string;
11746
12119
  filename: string;
11747
12120
  originalFilename: string;
11748
- }[] | undefined> | undefined;
11749
- originalActionId?: string | undefined;
12121
+ }[] | [string, string] | undefined> | null | undefined;
12122
+ originalActionId?: string | null | undefined;
11750
12123
  }>, z.ZodObject<z.objectUtil.extendShape<{
11751
12124
  id: z.ZodString;
12125
+ transactionId: z.ZodString;
11752
12126
  createdAt: z.ZodString;
11753
12127
  createdBy: z.ZodString;
11754
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12128
+ createdByRole: z.ZodString;
12129
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
12130
+ 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<{
11755
12131
  filename: z.ZodString;
11756
12132
  originalFilename: z.ZodString;
11757
12133
  type: z.ZodString;
@@ -11865,7 +12241,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11865
12241
  addressLine3?: string | null | undefined;
11866
12242
  postcodeOrZip?: string | null | undefined;
11867
12243
  }>]>>;
11868
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12244
+ 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<{
11869
12245
  filename: z.ZodString;
11870
12246
  originalFilename: z.ZodString;
11871
12247
  type: z.ZodString;
@@ -11978,10 +12354,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11978
12354
  addressLine2?: string | null | undefined;
11979
12355
  addressLine3?: string | null | undefined;
11980
12356
  postcodeOrZip?: string | null | undefined;
11981
- }>]>>>;
11982
- createdAtLocation: z.ZodString;
12357
+ }>]>>>>;
11983
12358
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11984
- originalActionId: z.ZodOptional<z.ZodString>;
12359
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11985
12360
  }, {
11986
12361
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
11987
12362
  requestId: z.ZodString;
@@ -11989,8 +12364,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11989
12364
  type: "APPROVE_CORRECTION";
11990
12365
  id: string;
11991
12366
  status: "Rejected" | "Requested" | "Accepted";
12367
+ transactionId: string;
11992
12368
  createdAt: string;
11993
12369
  createdBy: string;
12370
+ createdByRole: string;
11994
12371
  declaration: Record<string, string | number | boolean | {
11995
12372
  type: string;
11996
12373
  filename: string;
@@ -12028,9 +12405,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12028
12405
  option: string;
12029
12406
  filename: string;
12030
12407
  originalFilename: string;
12031
- }[] | undefined>;
12032
- createdAtLocation: string;
12408
+ }[] | [string, string] | undefined>;
12033
12409
  requestId: string;
12410
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
12034
12411
  annotation?: Record<string, string | number | boolean | {
12035
12412
  type: string;
12036
12413
  filename: string;
@@ -12068,14 +12445,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12068
12445
  option: string;
12069
12446
  filename: string;
12070
12447
  originalFilename: string;
12071
- }[] | undefined> | undefined;
12072
- originalActionId?: string | undefined;
12448
+ }[] | [string, string] | undefined> | null | undefined;
12449
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12073
12450
  }, {
12074
12451
  type: "APPROVE_CORRECTION";
12075
12452
  id: string;
12076
12453
  status: "Rejected" | "Requested" | "Accepted";
12454
+ transactionId: string;
12077
12455
  createdAt: string;
12078
12456
  createdBy: string;
12457
+ createdByRole: string;
12079
12458
  declaration: Record<string, string | number | boolean | {
12080
12459
  type: string;
12081
12460
  filename: string;
@@ -12113,9 +12492,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12113
12492
  option: string;
12114
12493
  filename: string;
12115
12494
  originalFilename: string;
12116
- }[] | undefined>;
12117
- createdAtLocation: string;
12495
+ }[] | [string, string] | undefined>;
12118
12496
  requestId: string;
12497
+ createdAtLocation?: string | null | undefined;
12119
12498
  annotation?: Record<string, string | number | boolean | {
12120
12499
  type: string;
12121
12500
  filename: string;
@@ -12153,13 +12532,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12153
12532
  option: string;
12154
12533
  filename: string;
12155
12534
  originalFilename: string;
12156
- }[] | undefined> | undefined;
12157
- originalActionId?: string | undefined;
12535
+ }[] | [string, string] | undefined> | null | undefined;
12536
+ originalActionId?: string | null | undefined;
12158
12537
  }>, z.ZodObject<z.objectUtil.extendShape<{
12159
12538
  id: z.ZodString;
12539
+ transactionId: z.ZodString;
12160
12540
  createdAt: z.ZodString;
12161
12541
  createdBy: z.ZodString;
12162
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12542
+ createdByRole: z.ZodString;
12543
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
12544
+ 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<{
12163
12545
  filename: z.ZodString;
12164
12546
  originalFilename: z.ZodString;
12165
12547
  type: z.ZodString;
@@ -12273,7 +12655,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12273
12655
  addressLine3?: string | null | undefined;
12274
12656
  postcodeOrZip?: string | null | undefined;
12275
12657
  }>]>>;
12276
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12658
+ 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<{
12277
12659
  filename: z.ZodString;
12278
12660
  originalFilename: z.ZodString;
12279
12661
  type: z.ZodString;
@@ -12386,10 +12768,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12386
12768
  addressLine2?: string | null | undefined;
12387
12769
  addressLine3?: string | null | undefined;
12388
12770
  postcodeOrZip?: string | null | undefined;
12389
- }>]>>>;
12390
- createdAtLocation: z.ZodString;
12771
+ }>]>>>>;
12391
12772
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12392
- originalActionId: z.ZodOptional<z.ZodString>;
12773
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
12393
12774
  }, {
12394
12775
  type: z.ZodLiteral<"REJECT_CORRECTION">;
12395
12776
  requestId: z.ZodString;
@@ -12397,8 +12778,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12397
12778
  type: "REJECT_CORRECTION";
12398
12779
  id: string;
12399
12780
  status: "Rejected" | "Requested" | "Accepted";
12781
+ transactionId: string;
12400
12782
  createdAt: string;
12401
12783
  createdBy: string;
12784
+ createdByRole: string;
12402
12785
  declaration: Record<string, string | number | boolean | {
12403
12786
  type: string;
12404
12787
  filename: string;
@@ -12436,9 +12819,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12436
12819
  option: string;
12437
12820
  filename: string;
12438
12821
  originalFilename: string;
12439
- }[] | undefined>;
12440
- createdAtLocation: string;
12822
+ }[] | [string, string] | undefined>;
12441
12823
  requestId: string;
12824
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
12442
12825
  annotation?: Record<string, string | number | boolean | {
12443
12826
  type: string;
12444
12827
  filename: string;
@@ -12476,14 +12859,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12476
12859
  option: string;
12477
12860
  filename: string;
12478
12861
  originalFilename: string;
12479
- }[] | undefined> | undefined;
12480
- originalActionId?: string | undefined;
12862
+ }[] | [string, string] | undefined> | null | undefined;
12863
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12481
12864
  }, {
12482
12865
  type: "REJECT_CORRECTION";
12483
12866
  id: string;
12484
12867
  status: "Rejected" | "Requested" | "Accepted";
12868
+ transactionId: string;
12485
12869
  createdAt: string;
12486
12870
  createdBy: string;
12871
+ createdByRole: string;
12487
12872
  declaration: Record<string, string | number | boolean | {
12488
12873
  type: string;
12489
12874
  filename: string;
@@ -12521,9 +12906,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12521
12906
  option: string;
12522
12907
  filename: string;
12523
12908
  originalFilename: string;
12524
- }[] | undefined>;
12525
- createdAtLocation: string;
12909
+ }[] | [string, string] | undefined>;
12526
12910
  requestId: string;
12911
+ createdAtLocation?: string | null | undefined;
12527
12912
  annotation?: Record<string, string | number | boolean | {
12528
12913
  type: string;
12529
12914
  filename: string;
@@ -12561,13 +12946,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12561
12946
  option: string;
12562
12947
  filename: string;
12563
12948
  originalFilename: string;
12564
- }[] | undefined> | undefined;
12565
- originalActionId?: string | undefined;
12949
+ }[] | [string, string] | undefined> | null | undefined;
12950
+ originalActionId?: string | null | undefined;
12566
12951
  }>, z.ZodObject<z.objectUtil.extendShape<{
12567
12952
  id: z.ZodString;
12953
+ transactionId: z.ZodString;
12568
12954
  createdAt: z.ZodString;
12569
12955
  createdBy: z.ZodString;
12570
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12956
+ createdByRole: z.ZodString;
12957
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
12958
+ 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<{
12571
12959
  filename: z.ZodString;
12572
12960
  originalFilename: z.ZodString;
12573
12961
  type: z.ZodString;
@@ -12681,7 +13069,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12681
13069
  addressLine3?: string | null | undefined;
12682
13070
  postcodeOrZip?: string | null | undefined;
12683
13071
  }>]>>;
12684
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13072
+ 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<{
12685
13073
  filename: z.ZodString;
12686
13074
  originalFilename: z.ZodString;
12687
13075
  type: z.ZodString;
@@ -12794,19 +13182,20 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12794
13182
  addressLine2?: string | null | undefined;
12795
13183
  addressLine3?: string | null | undefined;
12796
13184
  postcodeOrZip?: string | null | undefined;
12797
- }>]>>>;
12798
- createdAtLocation: z.ZodString;
13185
+ }>]>>>>;
12799
13186
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12800
- originalActionId: z.ZodOptional<z.ZodString>;
13187
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
12801
13188
  }, {
12802
13189
  type: z.ZodLiteral<"UNASSIGN">;
12803
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
13190
+ assignedTo: z.ZodLiteral<null>;
12804
13191
  }>, "strip", z.ZodTypeAny, {
12805
13192
  type: "UNASSIGN";
12806
13193
  id: string;
12807
13194
  status: "Rejected" | "Requested" | "Accepted";
13195
+ transactionId: string;
12808
13196
  createdAt: string;
12809
13197
  createdBy: string;
13198
+ createdByRole: string;
12810
13199
  declaration: Record<string, string | number | boolean | {
12811
13200
  type: string;
12812
13201
  filename: string;
@@ -12844,9 +13233,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12844
13233
  option: string;
12845
13234
  filename: string;
12846
13235
  originalFilename: string;
12847
- }[] | undefined>;
12848
- createdAtLocation: string;
13236
+ }[] | [string, string] | undefined>;
12849
13237
  assignedTo: null;
13238
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
12850
13239
  annotation?: Record<string, string | number | boolean | {
12851
13240
  type: string;
12852
13241
  filename: string;
@@ -12884,14 +13273,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12884
13273
  option: string;
12885
13274
  filename: string;
12886
13275
  originalFilename: string;
12887
- }[] | undefined> | undefined;
12888
- originalActionId?: string | undefined;
13276
+ }[] | [string, string] | undefined> | null | undefined;
13277
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12889
13278
  }, {
12890
13279
  type: "UNASSIGN";
12891
13280
  id: string;
12892
13281
  status: "Rejected" | "Requested" | "Accepted";
13282
+ transactionId: string;
12893
13283
  createdAt: string;
12894
13284
  createdBy: string;
13285
+ createdByRole: string;
12895
13286
  declaration: Record<string, string | number | boolean | {
12896
13287
  type: string;
12897
13288
  filename: string;
@@ -12929,8 +13320,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12929
13320
  option: string;
12930
13321
  filename: string;
12931
13322
  originalFilename: string;
12932
- }[] | undefined>;
12933
- createdAtLocation: string;
13323
+ }[] | [string, string] | undefined>;
13324
+ assignedTo: null;
13325
+ createdAtLocation?: string | null | undefined;
12934
13326
  annotation?: Record<string, string | number | boolean | {
12935
13327
  type: string;
12936
13328
  filename: string;
@@ -12968,14 +13360,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12968
13360
  option: string;
12969
13361
  filename: string;
12970
13362
  originalFilename: string;
12971
- }[] | undefined> | undefined;
12972
- originalActionId?: string | undefined;
12973
- assignedTo?: null | undefined;
13363
+ }[] | [string, string] | undefined> | null | undefined;
13364
+ originalActionId?: string | null | undefined;
12974
13365
  }>, z.ZodObject<z.objectUtil.extendShape<{
12975
13366
  id: z.ZodString;
13367
+ transactionId: z.ZodString;
12976
13368
  createdAt: z.ZodString;
12977
13369
  createdBy: z.ZodString;
12978
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13370
+ createdByRole: z.ZodString;
13371
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13372
+ 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<{
12979
13373
  filename: z.ZodString;
12980
13374
  originalFilename: z.ZodString;
12981
13375
  type: z.ZodString;
@@ -13089,7 +13483,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13089
13483
  addressLine3?: string | null | undefined;
13090
13484
  postcodeOrZip?: string | null | undefined;
13091
13485
  }>]>>;
13092
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13486
+ 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<{
13093
13487
  filename: z.ZodString;
13094
13488
  originalFilename: z.ZodString;
13095
13489
  type: z.ZodString;
@@ -13202,18 +13596,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13202
13596
  addressLine2?: string | null | undefined;
13203
13597
  addressLine3?: string | null | undefined;
13204
13598
  postcodeOrZip?: string | null | undefined;
13205
- }>]>>>;
13206
- createdAtLocation: z.ZodString;
13599
+ }>]>>>>;
13207
13600
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13208
- originalActionId: z.ZodOptional<z.ZodString>;
13601
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
13209
13602
  }, {
13210
13603
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
13211
13604
  }>, "strip", z.ZodTypeAny, {
13212
13605
  type: "PRINT_CERTIFICATE";
13213
13606
  id: string;
13214
13607
  status: "Rejected" | "Requested" | "Accepted";
13608
+ transactionId: string;
13215
13609
  createdAt: string;
13216
13610
  createdBy: string;
13611
+ createdByRole: string;
13217
13612
  declaration: Record<string, string | number | boolean | {
13218
13613
  type: string;
13219
13614
  filename: string;
@@ -13251,8 +13646,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13251
13646
  option: string;
13252
13647
  filename: string;
13253
13648
  originalFilename: string;
13254
- }[] | undefined>;
13255
- createdAtLocation: string;
13649
+ }[] | [string, string] | undefined>;
13650
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
13256
13651
  annotation?: Record<string, string | number | boolean | {
13257
13652
  type: string;
13258
13653
  filename: string;
@@ -13290,14 +13685,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13290
13685
  option: string;
13291
13686
  filename: string;
13292
13687
  originalFilename: string;
13293
- }[] | undefined> | undefined;
13294
- originalActionId?: string | undefined;
13688
+ }[] | [string, string] | undefined> | null | undefined;
13689
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
13295
13690
  }, {
13296
13691
  type: "PRINT_CERTIFICATE";
13297
13692
  id: string;
13298
13693
  status: "Rejected" | "Requested" | "Accepted";
13694
+ transactionId: string;
13299
13695
  createdAt: string;
13300
13696
  createdBy: string;
13697
+ createdByRole: string;
13301
13698
  declaration: Record<string, string | number | boolean | {
13302
13699
  type: string;
13303
13700
  filename: string;
@@ -13335,8 +13732,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13335
13732
  option: string;
13336
13733
  filename: string;
13337
13734
  originalFilename: string;
13338
- }[] | undefined>;
13339
- createdAtLocation: string;
13735
+ }[] | [string, string] | undefined>;
13736
+ createdAtLocation?: string | null | undefined;
13340
13737
  annotation?: Record<string, string | number | boolean | {
13341
13738
  type: string;
13342
13739
  filename: string;
@@ -13374,13 +13771,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13374
13771
  option: string;
13375
13772
  filename: string;
13376
13773
  originalFilename: string;
13377
- }[] | undefined> | undefined;
13378
- originalActionId?: string | undefined;
13774
+ }[] | [string, string] | undefined> | null | undefined;
13775
+ originalActionId?: string | null | undefined;
13379
13776
  }>, z.ZodObject<z.objectUtil.extendShape<{
13380
13777
  id: z.ZodString;
13778
+ transactionId: z.ZodString;
13381
13779
  createdAt: z.ZodString;
13382
13780
  createdBy: z.ZodString;
13383
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13781
+ createdByRole: z.ZodString;
13782
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13783
+ 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<{
13384
13784
  filename: z.ZodString;
13385
13785
  originalFilename: z.ZodString;
13386
13786
  type: z.ZodString;
@@ -13494,7 +13894,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13494
13894
  addressLine3?: string | null | undefined;
13495
13895
  postcodeOrZip?: string | null | undefined;
13496
13896
  }>]>>;
13497
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13897
+ 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<{
13498
13898
  filename: z.ZodString;
13499
13899
  originalFilename: z.ZodString;
13500
13900
  type: z.ZodString;
@@ -13607,18 +14007,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13607
14007
  addressLine2?: string | null | undefined;
13608
14008
  addressLine3?: string | null | undefined;
13609
14009
  postcodeOrZip?: string | null | undefined;
13610
- }>]>>>;
13611
- createdAtLocation: z.ZodString;
14010
+ }>]>>>>;
13612
14011
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13613
- originalActionId: z.ZodOptional<z.ZodString>;
14012
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
13614
14013
  }, {
13615
14014
  type: z.ZodLiteral<"READ">;
13616
14015
  }>, "strip", z.ZodTypeAny, {
13617
14016
  type: "READ";
13618
14017
  id: string;
13619
14018
  status: "Rejected" | "Requested" | "Accepted";
14019
+ transactionId: string;
13620
14020
  createdAt: string;
13621
14021
  createdBy: string;
14022
+ createdByRole: string;
13622
14023
  declaration: Record<string, string | number | boolean | {
13623
14024
  type: string;
13624
14025
  filename: string;
@@ -13656,8 +14057,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13656
14057
  option: string;
13657
14058
  filename: string;
13658
14059
  originalFilename: string;
13659
- }[] | undefined>;
13660
- createdAtLocation: string;
14060
+ }[] | [string, string] | undefined>;
14061
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
13661
14062
  annotation?: Record<string, string | number | boolean | {
13662
14063
  type: string;
13663
14064
  filename: string;
@@ -13695,14 +14096,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13695
14096
  option: string;
13696
14097
  filename: string;
13697
14098
  originalFilename: string;
13698
- }[] | undefined> | undefined;
13699
- originalActionId?: string | undefined;
14099
+ }[] | [string, string] | undefined> | null | undefined;
14100
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
13700
14101
  }, {
13701
14102
  type: "READ";
13702
14103
  id: string;
13703
14104
  status: "Rejected" | "Requested" | "Accepted";
14105
+ transactionId: string;
13704
14106
  createdAt: string;
13705
14107
  createdBy: string;
14108
+ createdByRole: string;
13706
14109
  declaration: Record<string, string | number | boolean | {
13707
14110
  type: string;
13708
14111
  filename: string;
@@ -13740,8 +14143,8 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13740
14143
  option: string;
13741
14144
  filename: string;
13742
14145
  originalFilename: string;
13743
- }[] | undefined>;
13744
- createdAtLocation: string;
14146
+ }[] | [string, string] | undefined>;
14147
+ createdAtLocation?: string | null | undefined;
13745
14148
  annotation?: Record<string, string | number | boolean | {
13746
14149
  type: string;
13747
14150
  filename: string;
@@ -13779,13 +14182,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13779
14182
  option: string;
13780
14183
  filename: string;
13781
14184
  originalFilename: string;
13782
- }[] | undefined> | undefined;
13783
- originalActionId?: string | undefined;
14185
+ }[] | [string, string] | undefined> | null | undefined;
14186
+ originalActionId?: string | null | undefined;
13784
14187
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
13785
14188
  id: z.ZodString;
14189
+ transactionId: z.ZodString;
13786
14190
  createdAt: z.ZodString;
13787
14191
  createdBy: z.ZodString;
13788
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14192
+ createdByRole: z.ZodString;
14193
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
14194
+ 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<{
13789
14195
  filename: z.ZodString;
13790
14196
  originalFilename: z.ZodString;
13791
14197
  type: z.ZodString;
@@ -13899,7 +14305,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13899
14305
  addressLine3?: string | null | undefined;
13900
14306
  postcodeOrZip?: string | null | undefined;
13901
14307
  }>]>>;
13902
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14308
+ 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<{
13903
14309
  filename: z.ZodString;
13904
14310
  originalFilename: z.ZodString;
13905
14311
  type: z.ZodString;
@@ -14012,25 +14418,32 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14012
14418
  addressLine2?: string | null | undefined;
14013
14419
  addressLine3?: string | null | undefined;
14014
14420
  postcodeOrZip?: string | null | undefined;
14015
- }>]>>>;
14016
- createdAtLocation: z.ZodString;
14421
+ }>]>>>>;
14017
14422
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14018
- originalActionId: z.ZodOptional<z.ZodString>;
14019
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
14423
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
14424
+ }, "declaration" | "annotation">, {
14020
14425
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
14021
14426
  status: z.ZodLiteral<"Rejected">;
14022
14427
  }>, "strip", z.ZodTypeAny, {
14023
14428
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14024
14429
  id: string;
14025
14430
  status: "Rejected";
14431
+ transactionId: string;
14026
14432
  createdAt: string;
14027
- originalActionId?: string | undefined;
14433
+ createdBy: string;
14434
+ createdByRole: string;
14435
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
14436
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
14028
14437
  }, {
14029
14438
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14030
14439
  id: string;
14031
14440
  status: "Rejected";
14441
+ transactionId: string;
14032
14442
  createdAt: string;
14033
- originalActionId?: string | undefined;
14443
+ createdBy: string;
14444
+ createdByRole: string;
14445
+ createdAtLocation?: string | null | undefined;
14446
+ originalActionId?: string | null | undefined;
14034
14447
  }>]>;
14035
14448
  export type Action = ActionDocument | AsyncRejectActionDocument;
14036
14449
  export declare const ResolvedUser: z.ZodObject<{