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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/commons/api/router.d.ts +12023 -4357
  2. package/dist/commons/conditionals/conditionals.d.ts +10 -6
  3. package/dist/commons/conditionals/validate.d.ts +4 -6
  4. package/dist/commons/events/ActionConfig.d.ts +105057 -1720
  5. package/dist/commons/events/ActionDocument.d.ts +970 -452
  6. package/dist/commons/events/ActionInput.d.ts +443 -363
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  8. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  9. package/dist/commons/events/Constants.d.ts +2 -0
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  11. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  12. package/dist/commons/events/Draft.d.ts +57 -39
  13. package/dist/commons/events/EventConfig.d.ts +50483 -1345
  14. package/dist/commons/events/EventDocument.d.ts +630 -330
  15. package/dist/commons/events/EventIndex.d.ts +1344 -18
  16. package/dist/commons/events/EventMetadata.d.ts +302 -16
  17. package/dist/commons/events/FieldConfig.d.ts +4358 -786
  18. package/dist/commons/events/FieldType.d.ts +3 -3
  19. package/dist/commons/events/FieldTypeMapping.d.ts +16 -6
  20. package/dist/commons/events/FieldValue.d.ts +9 -4
  21. package/dist/commons/events/FormConfig.d.ts +43885 -439
  22. package/dist/commons/events/PageConfig.d.ts +10930 -204
  23. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  24. package/dist/commons/events/User.d.ts +31 -2
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  26. package/dist/commons/events/WorkqueueConfig.d.ts +4525 -20
  27. package/dist/commons/events/defineConfig.d.ts +8017 -28
  28. package/dist/commons/events/event.d.ts +54 -0
  29. package/dist/commons/events/field.d.ts +73 -0
  30. package/dist/commons/events/index.d.ts +7 -0
  31. package/dist/commons/events/scopes.d.ts +45 -0
  32. package/dist/commons/events/serializer.d.ts +2 -0
  33. package/dist/commons/events/test.utils.d.ts +35 -51
  34. package/dist/commons/events/transactions.d.ts +1 -1
  35. package/dist/commons/events/utils.d.ts +3706 -71
  36. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  37. package/dist/conditionals/index.js +58 -35
  38. package/dist/events/index.js +3152 -1166
  39. package/dist/scopes/index.d.ts +94 -6
  40. package/dist/scopes/index.js +42 -21
  41. package/package.json +3 -2
@@ -1,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,13 @@ 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
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
252
+ 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
253
  filename: z.ZodString;
137
254
  originalFilename: z.ZodString;
138
255
  type: z.ZodString;
@@ -246,7 +363,7 @@ export declare const ActionBase: z.ZodObject<{
246
363
  addressLine3?: string | null | undefined;
247
364
  postcodeOrZip?: string | null | undefined;
248
365
  }>]>>;
249
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
366
+ 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
367
  filename: z.ZodString;
251
368
  originalFilename: z.ZodString;
252
369
  type: z.ZodString;
@@ -359,15 +476,16 @@ export declare const ActionBase: z.ZodObject<{
359
476
  addressLine2?: string | null | undefined;
360
477
  addressLine3?: string | null | undefined;
361
478
  postcodeOrZip?: string | null | undefined;
362
- }>]>>>;
363
- createdAtLocation: z.ZodString;
479
+ }>]>>>>;
364
480
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
365
- originalActionId: z.ZodOptional<z.ZodString>;
481
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
366
482
  }, "strip", z.ZodTypeAny, {
367
483
  id: string;
368
484
  status: "Rejected" | "Requested" | "Accepted";
485
+ transactionId: string;
369
486
  createdAt: string;
370
487
  createdBy: string;
488
+ createdByRole: string;
371
489
  declaration: Record<string, string | number | boolean | {
372
490
  type: string;
373
491
  filename: string;
@@ -405,8 +523,9 @@ export declare const ActionBase: z.ZodObject<{
405
523
  option: string;
406
524
  filename: string;
407
525
  originalFilename: string;
408
- }[] | undefined>;
409
- createdAtLocation: string;
526
+ }[] | [string, string] | undefined>;
527
+ createdBySignature?: string | null | undefined;
528
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
410
529
  annotation?: Record<string, string | number | boolean | {
411
530
  type: string;
412
531
  filename: string;
@@ -444,13 +563,15 @@ export declare const ActionBase: z.ZodObject<{
444
563
  option: string;
445
564
  filename: string;
446
565
  originalFilename: string;
447
- }[] | undefined> | undefined;
448
- originalActionId?: string | undefined;
566
+ }[] | [string, string] | undefined> | null | undefined;
567
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
449
568
  }, {
450
569
  id: string;
451
570
  status: "Rejected" | "Requested" | "Accepted";
571
+ transactionId: string;
452
572
  createdAt: string;
453
573
  createdBy: string;
574
+ createdByRole: string;
454
575
  declaration: Record<string, string | number | boolean | {
455
576
  type: string;
456
577
  filename: string;
@@ -488,8 +609,9 @@ export declare const ActionBase: z.ZodObject<{
488
609
  option: string;
489
610
  filename: string;
490
611
  originalFilename: string;
491
- }[] | undefined>;
492
- createdAtLocation: string;
612
+ }[] | [string, string] | undefined>;
613
+ createdBySignature?: string | null | undefined;
614
+ createdAtLocation?: string | null | undefined;
493
615
  annotation?: Record<string, string | number | boolean | {
494
616
  type: string;
495
617
  filename: string;
@@ -527,15 +649,19 @@ export declare const ActionBase: z.ZodObject<{
527
649
  option: string;
528
650
  filename: string;
529
651
  originalFilename: string;
530
- }[] | undefined> | undefined;
531
- originalActionId?: string | undefined;
652
+ }[] | [string, string] | undefined> | null | undefined;
653
+ originalActionId?: string | null | undefined;
532
654
  }>;
533
655
  export type ActionBase = z.infer<typeof ActionBase>;
534
656
  export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
535
657
  id: z.ZodString;
658
+ transactionId: z.ZodString;
536
659
  createdAt: z.ZodString;
537
660
  createdBy: z.ZodString;
538
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
661
+ createdByRole: z.ZodString;
662
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
664
+ 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
665
  filename: z.ZodString;
540
666
  originalFilename: z.ZodString;
541
667
  type: z.ZodString;
@@ -649,7 +775,7 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
649
775
  addressLine3?: string | null | undefined;
650
776
  postcodeOrZip?: string | null | undefined;
651
777
  }>]>>;
652
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
778
+ 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
779
  filename: z.ZodString;
654
780
  originalFilename: z.ZodString;
655
781
  type: z.ZodString;
@@ -762,10 +888,9 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
762
888
  addressLine2?: string | null | undefined;
763
889
  addressLine3?: string | null | undefined;
764
890
  postcodeOrZip?: string | null | undefined;
765
- }>]>>>;
766
- createdAtLocation: z.ZodString;
891
+ }>]>>>>;
767
892
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
768
- originalActionId: z.ZodOptional<z.ZodString>;
893
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
769
894
  }, {
770
895
  type: z.ZodLiteral<"REGISTER">;
771
896
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -773,8 +898,10 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
773
898
  type: "REGISTER";
774
899
  id: string;
775
900
  status: "Rejected" | "Requested" | "Accepted";
901
+ transactionId: string;
776
902
  createdAt: string;
777
903
  createdBy: string;
904
+ createdByRole: string;
778
905
  declaration: Record<string, string | number | boolean | {
779
906
  type: string;
780
907
  filename: string;
@@ -812,8 +939,9 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
812
939
  option: string;
813
940
  filename: string;
814
941
  originalFilename: string;
815
- }[] | undefined>;
816
- createdAtLocation: string;
942
+ }[] | [string, string] | undefined>;
943
+ createdBySignature?: string | null | undefined;
944
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
817
945
  annotation?: Record<string, string | number | boolean | {
818
946
  type: string;
819
947
  filename: string;
@@ -851,15 +979,17 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
851
979
  option: string;
852
980
  filename: string;
853
981
  originalFilename: string;
854
- }[] | undefined> | undefined;
855
- originalActionId?: string | undefined;
982
+ }[] | [string, string] | undefined> | null | undefined;
983
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
856
984
  registrationNumber?: string | undefined;
857
985
  }, {
858
986
  type: "REGISTER";
859
987
  id: string;
860
988
  status: "Rejected" | "Requested" | "Accepted";
989
+ transactionId: string;
861
990
  createdAt: string;
862
991
  createdBy: string;
992
+ createdByRole: string;
863
993
  declaration: Record<string, string | number | boolean | {
864
994
  type: string;
865
995
  filename: string;
@@ -897,8 +1027,9 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
897
1027
  option: string;
898
1028
  filename: string;
899
1029
  originalFilename: string;
900
- }[] | undefined>;
901
- createdAtLocation: string;
1030
+ }[] | [string, string] | undefined>;
1031
+ createdBySignature?: string | null | undefined;
1032
+ createdAtLocation?: string | null | undefined;
902
1033
  annotation?: Record<string, string | number | boolean | {
903
1034
  type: string;
904
1035
  filename: string;
@@ -936,16 +1067,30 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
936
1067
  option: string;
937
1068
  filename: string;
938
1069
  originalFilename: string;
939
- }[] | undefined> | undefined;
940
- originalActionId?: string | undefined;
1070
+ }[] | [string, string] | undefined> | null | undefined;
1071
+ originalActionId?: string | null | undefined;
941
1072
  registrationNumber?: string | undefined;
942
1073
  }>;
943
1074
  export type RegisterAction = z.infer<typeof RegisterAction>;
1075
+ export declare const RejectionReason: z.ZodObject<{
1076
+ message: z.ZodString;
1077
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ message: string;
1080
+ isDuplicate?: boolean | undefined;
1081
+ }, {
1082
+ message: string;
1083
+ isDuplicate?: boolean | undefined;
1084
+ }>;
944
1085
  declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
945
1086
  id: z.ZodString;
1087
+ transactionId: z.ZodString;
946
1088
  createdAt: z.ZodString;
947
1089
  createdBy: z.ZodString;
948
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1090
+ createdByRole: z.ZodString;
1091
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1092
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1093
+ 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
1094
  filename: z.ZodString;
950
1095
  originalFilename: z.ZodString;
951
1096
  type: z.ZodString;
@@ -1059,7 +1204,7 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1059
1204
  addressLine3?: string | null | undefined;
1060
1205
  postcodeOrZip?: string | null | undefined;
1061
1206
  }>]>>;
1062
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1207
+ 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
1208
  filename: z.ZodString;
1064
1209
  originalFilename: z.ZodString;
1065
1210
  type: z.ZodString;
@@ -1172,18 +1317,19 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1172
1317
  addressLine2?: string | null | undefined;
1173
1318
  addressLine3?: string | null | undefined;
1174
1319
  postcodeOrZip?: string | null | undefined;
1175
- }>]>>>;
1176
- createdAtLocation: z.ZodString;
1320
+ }>]>>>>;
1177
1321
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1178
- originalActionId: z.ZodOptional<z.ZodString>;
1322
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1179
1323
  }, {
1180
1324
  type: z.ZodLiteral<"CREATE">;
1181
1325
  }>, "strip", z.ZodTypeAny, {
1182
1326
  type: "CREATE";
1183
1327
  id: string;
1184
1328
  status: "Rejected" | "Requested" | "Accepted";
1329
+ transactionId: string;
1185
1330
  createdAt: string;
1186
1331
  createdBy: string;
1332
+ createdByRole: string;
1187
1333
  declaration: Record<string, string | number | boolean | {
1188
1334
  type: string;
1189
1335
  filename: string;
@@ -1221,8 +1367,9 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1221
1367
  option: string;
1222
1368
  filename: string;
1223
1369
  originalFilename: string;
1224
- }[] | undefined>;
1225
- createdAtLocation: string;
1370
+ }[] | [string, string] | undefined>;
1371
+ createdBySignature?: string | null | undefined;
1372
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1226
1373
  annotation?: Record<string, string | number | boolean | {
1227
1374
  type: string;
1228
1375
  filename: string;
@@ -1260,14 +1407,16 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1260
1407
  option: string;
1261
1408
  filename: string;
1262
1409
  originalFilename: string;
1263
- }[] | undefined> | undefined;
1264
- originalActionId?: string | undefined;
1410
+ }[] | [string, string] | undefined> | null | undefined;
1411
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1265
1412
  }, {
1266
1413
  type: "CREATE";
1267
1414
  id: string;
1268
1415
  status: "Rejected" | "Requested" | "Accepted";
1416
+ transactionId: string;
1269
1417
  createdAt: string;
1270
1418
  createdBy: string;
1419
+ createdByRole: string;
1271
1420
  declaration: Record<string, string | number | boolean | {
1272
1421
  type: string;
1273
1422
  filename: string;
@@ -1305,8 +1454,9 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1305
1454
  option: string;
1306
1455
  filename: string;
1307
1456
  originalFilename: string;
1308
- }[] | undefined>;
1309
- createdAtLocation: string;
1457
+ }[] | [string, string] | undefined>;
1458
+ createdBySignature?: string | null | undefined;
1459
+ createdAtLocation?: string | null | undefined;
1310
1460
  annotation?: Record<string, string | number | boolean | {
1311
1461
  type: string;
1312
1462
  filename: string;
@@ -1344,14 +1494,18 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1344
1494
  option: string;
1345
1495
  filename: string;
1346
1496
  originalFilename: string;
1347
- }[] | undefined> | undefined;
1348
- originalActionId?: string | undefined;
1497
+ }[] | [string, string] | undefined> | null | undefined;
1498
+ originalActionId?: string | null | undefined;
1349
1499
  }>;
1350
1500
  export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
1351
1501
  id: z.ZodString;
1502
+ transactionId: z.ZodString;
1352
1503
  createdAt: z.ZodString;
1353
1504
  createdBy: z.ZodString;
1354
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1505
+ createdByRole: z.ZodString;
1506
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1507
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1508
+ 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
1509
  filename: z.ZodString;
1356
1510
  originalFilename: z.ZodString;
1357
1511
  type: z.ZodString;
@@ -1465,7 +1619,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1465
1619
  addressLine3?: string | null | undefined;
1466
1620
  postcodeOrZip?: string | null | undefined;
1467
1621
  }>]>>;
1468
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1622
+ 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
1623
  filename: z.ZodString;
1470
1624
  originalFilename: z.ZodString;
1471
1625
  type: z.ZodString;
@@ -1578,18 +1732,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1578
1732
  addressLine2?: string | null | undefined;
1579
1733
  addressLine3?: string | null | undefined;
1580
1734
  postcodeOrZip?: string | null | undefined;
1581
- }>]>>>;
1582
- createdAtLocation: z.ZodString;
1735
+ }>]>>>>;
1583
1736
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1584
- originalActionId: z.ZodOptional<z.ZodString>;
1737
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1585
1738
  }, {
1586
1739
  type: z.ZodLiteral<"CREATE">;
1587
1740
  }>, "strip", z.ZodTypeAny, {
1588
1741
  type: "CREATE";
1589
1742
  id: string;
1590
1743
  status: "Rejected" | "Requested" | "Accepted";
1744
+ transactionId: string;
1591
1745
  createdAt: string;
1592
1746
  createdBy: string;
1747
+ createdByRole: string;
1593
1748
  declaration: Record<string, string | number | boolean | {
1594
1749
  type: string;
1595
1750
  filename: string;
@@ -1627,8 +1782,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1627
1782
  option: string;
1628
1783
  filename: string;
1629
1784
  originalFilename: string;
1630
- }[] | undefined>;
1631
- createdAtLocation: string;
1785
+ }[] | [string, string] | undefined>;
1786
+ createdBySignature?: string | null | undefined;
1787
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
1632
1788
  annotation?: Record<string, string | number | boolean | {
1633
1789
  type: string;
1634
1790
  filename: string;
@@ -1666,14 +1822,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1666
1822
  option: string;
1667
1823
  filename: string;
1668
1824
  originalFilename: string;
1669
- }[] | undefined> | undefined;
1670
- originalActionId?: string | undefined;
1825
+ }[] | [string, string] | undefined> | null | undefined;
1826
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
1671
1827
  }, {
1672
1828
  type: "CREATE";
1673
1829
  id: string;
1674
1830
  status: "Rejected" | "Requested" | "Accepted";
1831
+ transactionId: string;
1675
1832
  createdAt: string;
1676
1833
  createdBy: string;
1834
+ createdByRole: string;
1677
1835
  declaration: Record<string, string | number | boolean | {
1678
1836
  type: string;
1679
1837
  filename: string;
@@ -1711,8 +1869,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1711
1869
  option: string;
1712
1870
  filename: string;
1713
1871
  originalFilename: string;
1714
- }[] | undefined>;
1715
- createdAtLocation: string;
1872
+ }[] | [string, string] | undefined>;
1873
+ createdBySignature?: string | null | undefined;
1874
+ createdAtLocation?: string | null | undefined;
1716
1875
  annotation?: Record<string, string | number | boolean | {
1717
1876
  type: string;
1718
1877
  filename: string;
@@ -1750,13 +1909,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1750
1909
  option: string;
1751
1910
  filename: string;
1752
1911
  originalFilename: string;
1753
- }[] | undefined> | undefined;
1754
- originalActionId?: string | undefined;
1912
+ }[] | [string, string] | undefined> | null | undefined;
1913
+ originalActionId?: string | null | undefined;
1755
1914
  }>, z.ZodObject<z.objectUtil.extendShape<{
1756
1915
  id: z.ZodString;
1916
+ transactionId: z.ZodString;
1757
1917
  createdAt: z.ZodString;
1758
1918
  createdBy: z.ZodString;
1759
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1919
+ createdByRole: z.ZodString;
1920
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1921
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1922
+ 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
1923
  filename: z.ZodString;
1761
1924
  originalFilename: z.ZodString;
1762
1925
  type: z.ZodString;
@@ -1870,7 +2033,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1870
2033
  addressLine3?: string | null | undefined;
1871
2034
  postcodeOrZip?: string | null | undefined;
1872
2035
  }>]>>;
1873
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2036
+ 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
2037
  filename: z.ZodString;
1875
2038
  originalFilename: z.ZodString;
1876
2039
  type: z.ZodString;
@@ -1983,18 +2146,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1983
2146
  addressLine2?: string | null | undefined;
1984
2147
  addressLine3?: string | null | undefined;
1985
2148
  postcodeOrZip?: string | null | undefined;
1986
- }>]>>>;
1987
- createdAtLocation: z.ZodString;
2149
+ }>]>>>>;
1988
2150
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
1989
- originalActionId: z.ZodOptional<z.ZodString>;
2151
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
1990
2152
  }, {
1991
2153
  type: z.ZodLiteral<"VALIDATE">;
1992
2154
  }>, "strip", z.ZodTypeAny, {
1993
2155
  type: "VALIDATE";
1994
2156
  id: string;
1995
2157
  status: "Rejected" | "Requested" | "Accepted";
2158
+ transactionId: string;
1996
2159
  createdAt: string;
1997
2160
  createdBy: string;
2161
+ createdByRole: string;
1998
2162
  declaration: Record<string, string | number | boolean | {
1999
2163
  type: string;
2000
2164
  filename: string;
@@ -2032,8 +2196,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2032
2196
  option: string;
2033
2197
  filename: string;
2034
2198
  originalFilename: string;
2035
- }[] | undefined>;
2036
- createdAtLocation: string;
2199
+ }[] | [string, string] | undefined>;
2200
+ createdBySignature?: string | null | undefined;
2201
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2037
2202
  annotation?: Record<string, string | number | boolean | {
2038
2203
  type: string;
2039
2204
  filename: string;
@@ -2071,14 +2236,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2071
2236
  option: string;
2072
2237
  filename: string;
2073
2238
  originalFilename: string;
2074
- }[] | undefined> | undefined;
2075
- originalActionId?: string | undefined;
2239
+ }[] | [string, string] | undefined> | null | undefined;
2240
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2076
2241
  }, {
2077
2242
  type: "VALIDATE";
2078
2243
  id: string;
2079
2244
  status: "Rejected" | "Requested" | "Accepted";
2245
+ transactionId: string;
2080
2246
  createdAt: string;
2081
2247
  createdBy: string;
2248
+ createdByRole: string;
2082
2249
  declaration: Record<string, string | number | boolean | {
2083
2250
  type: string;
2084
2251
  filename: string;
@@ -2116,8 +2283,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2116
2283
  option: string;
2117
2284
  filename: string;
2118
2285
  originalFilename: string;
2119
- }[] | undefined>;
2120
- createdAtLocation: string;
2286
+ }[] | [string, string] | undefined>;
2287
+ createdBySignature?: string | null | undefined;
2288
+ createdAtLocation?: string | null | undefined;
2121
2289
  annotation?: Record<string, string | number | boolean | {
2122
2290
  type: string;
2123
2291
  filename: string;
@@ -2155,13 +2323,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2155
2323
  option: string;
2156
2324
  filename: string;
2157
2325
  originalFilename: string;
2158
- }[] | undefined> | undefined;
2159
- originalActionId?: string | undefined;
2326
+ }[] | [string, string] | undefined> | null | undefined;
2327
+ originalActionId?: string | null | undefined;
2160
2328
  }>, z.ZodObject<z.objectUtil.extendShape<{
2161
2329
  id: z.ZodString;
2330
+ transactionId: z.ZodString;
2162
2331
  createdAt: z.ZodString;
2163
2332
  createdBy: z.ZodString;
2164
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2333
+ createdByRole: z.ZodString;
2334
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2335
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2336
+ 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
2337
  filename: z.ZodString;
2166
2338
  originalFilename: z.ZodString;
2167
2339
  type: z.ZodString;
@@ -2275,7 +2447,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2275
2447
  addressLine3?: string | null | undefined;
2276
2448
  postcodeOrZip?: string | null | undefined;
2277
2449
  }>]>>;
2278
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2450
+ 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
2451
  filename: z.ZodString;
2280
2452
  originalFilename: z.ZodString;
2281
2453
  type: z.ZodString;
@@ -2388,18 +2560,33 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2388
2560
  addressLine2?: string | null | undefined;
2389
2561
  addressLine3?: string | null | undefined;
2390
2562
  postcodeOrZip?: string | null | undefined;
2391
- }>]>>>;
2392
- createdAtLocation: z.ZodString;
2563
+ }>]>>>>;
2393
2564
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2394
- originalActionId: z.ZodOptional<z.ZodString>;
2565
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2395
2566
  }, {
2396
2567
  type: z.ZodLiteral<"REJECT">;
2568
+ reason: z.ZodObject<{
2569
+ message: z.ZodString;
2570
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
2571
+ }, "strip", z.ZodTypeAny, {
2572
+ message: string;
2573
+ isDuplicate?: boolean | undefined;
2574
+ }, {
2575
+ message: string;
2576
+ isDuplicate?: boolean | undefined;
2577
+ }>;
2397
2578
  }>, "strip", z.ZodTypeAny, {
2398
2579
  type: "REJECT";
2399
2580
  id: string;
2400
2581
  status: "Rejected" | "Requested" | "Accepted";
2582
+ reason: {
2583
+ message: string;
2584
+ isDuplicate?: boolean | undefined;
2585
+ };
2586
+ transactionId: string;
2401
2587
  createdAt: string;
2402
2588
  createdBy: string;
2589
+ createdByRole: string;
2403
2590
  declaration: Record<string, string | number | boolean | {
2404
2591
  type: string;
2405
2592
  filename: string;
@@ -2437,8 +2624,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2437
2624
  option: string;
2438
2625
  filename: string;
2439
2626
  originalFilename: string;
2440
- }[] | undefined>;
2441
- createdAtLocation: string;
2627
+ }[] | [string, string] | undefined>;
2628
+ createdBySignature?: string | null | undefined;
2629
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2442
2630
  annotation?: Record<string, string | number | boolean | {
2443
2631
  type: string;
2444
2632
  filename: string;
@@ -2476,14 +2664,20 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2476
2664
  option: string;
2477
2665
  filename: string;
2478
2666
  originalFilename: string;
2479
- }[] | undefined> | undefined;
2480
- originalActionId?: string | undefined;
2667
+ }[] | [string, string] | undefined> | null | undefined;
2668
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2481
2669
  }, {
2482
2670
  type: "REJECT";
2483
2671
  id: string;
2484
2672
  status: "Rejected" | "Requested" | "Accepted";
2673
+ reason: {
2674
+ message: string;
2675
+ isDuplicate?: boolean | undefined;
2676
+ };
2677
+ transactionId: string;
2485
2678
  createdAt: string;
2486
2679
  createdBy: string;
2680
+ createdByRole: string;
2487
2681
  declaration: Record<string, string | number | boolean | {
2488
2682
  type: string;
2489
2683
  filename: string;
@@ -2521,8 +2715,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2521
2715
  option: string;
2522
2716
  filename: string;
2523
2717
  originalFilename: string;
2524
- }[] | undefined>;
2525
- createdAtLocation: string;
2718
+ }[] | [string, string] | undefined>;
2719
+ createdBySignature?: string | null | undefined;
2720
+ createdAtLocation?: string | null | undefined;
2526
2721
  annotation?: Record<string, string | number | boolean | {
2527
2722
  type: string;
2528
2723
  filename: string;
@@ -2560,13 +2755,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2560
2755
  option: string;
2561
2756
  filename: string;
2562
2757
  originalFilename: string;
2563
- }[] | undefined> | undefined;
2564
- originalActionId?: string | undefined;
2758
+ }[] | [string, string] | undefined> | null | undefined;
2759
+ originalActionId?: string | null | undefined;
2565
2760
  }>, z.ZodObject<z.objectUtil.extendShape<{
2566
2761
  id: z.ZodString;
2762
+ transactionId: z.ZodString;
2567
2763
  createdAt: z.ZodString;
2568
2764
  createdBy: z.ZodString;
2569
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2765
+ createdByRole: z.ZodString;
2766
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2767
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
2768
+ 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
2769
  filename: z.ZodString;
2571
2770
  originalFilename: z.ZodString;
2572
2771
  type: z.ZodString;
@@ -2680,7 +2879,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2680
2879
  addressLine3?: string | null | undefined;
2681
2880
  postcodeOrZip?: string | null | undefined;
2682
2881
  }>]>>;
2683
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2882
+ 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
2883
  filename: z.ZodString;
2685
2884
  originalFilename: z.ZodString;
2686
2885
  type: z.ZodString;
@@ -2793,18 +2992,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2793
2992
  addressLine2?: string | null | undefined;
2794
2993
  addressLine3?: string | null | undefined;
2795
2994
  postcodeOrZip?: string | null | undefined;
2796
- }>]>>>;
2797
- createdAtLocation: z.ZodString;
2995
+ }>]>>>>;
2798
2996
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2799
- originalActionId: z.ZodOptional<z.ZodString>;
2997
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2800
2998
  }, {
2801
2999
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
2802
3000
  }>, "strip", z.ZodTypeAny, {
2803
3001
  type: "MARKED_AS_DUPLICATE";
2804
3002
  id: string;
2805
3003
  status: "Rejected" | "Requested" | "Accepted";
3004
+ transactionId: string;
2806
3005
  createdAt: string;
2807
3006
  createdBy: string;
3007
+ createdByRole: string;
2808
3008
  declaration: Record<string, string | number | boolean | {
2809
3009
  type: string;
2810
3010
  filename: string;
@@ -2842,8 +3042,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2842
3042
  option: string;
2843
3043
  filename: string;
2844
3044
  originalFilename: string;
2845
- }[] | undefined>;
2846
- createdAtLocation: string;
3045
+ }[] | [string, string] | undefined>;
3046
+ createdBySignature?: string | null | undefined;
3047
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2847
3048
  annotation?: Record<string, string | number | boolean | {
2848
3049
  type: string;
2849
3050
  filename: string;
@@ -2881,14 +3082,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2881
3082
  option: string;
2882
3083
  filename: string;
2883
3084
  originalFilename: string;
2884
- }[] | undefined> | undefined;
2885
- originalActionId?: string | undefined;
3085
+ }[] | [string, string] | undefined> | null | undefined;
3086
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2886
3087
  }, {
2887
3088
  type: "MARKED_AS_DUPLICATE";
2888
3089
  id: string;
2889
3090
  status: "Rejected" | "Requested" | "Accepted";
3091
+ transactionId: string;
2890
3092
  createdAt: string;
2891
3093
  createdBy: string;
3094
+ createdByRole: string;
2892
3095
  declaration: Record<string, string | number | boolean | {
2893
3096
  type: string;
2894
3097
  filename: string;
@@ -2926,8 +3129,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2926
3129
  option: string;
2927
3130
  filename: string;
2928
3131
  originalFilename: string;
2929
- }[] | undefined>;
2930
- createdAtLocation: string;
3132
+ }[] | [string, string] | undefined>;
3133
+ createdBySignature?: string | null | undefined;
3134
+ createdAtLocation?: string | null | undefined;
2931
3135
  annotation?: Record<string, string | number | boolean | {
2932
3136
  type: string;
2933
3137
  filename: string;
@@ -2965,13 +3169,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2965
3169
  option: string;
2966
3170
  filename: string;
2967
3171
  originalFilename: string;
2968
- }[] | undefined> | undefined;
2969
- originalActionId?: string | undefined;
3172
+ }[] | [string, string] | undefined> | null | undefined;
3173
+ originalActionId?: string | null | undefined;
2970
3174
  }>, z.ZodObject<z.objectUtil.extendShape<{
2971
3175
  id: z.ZodString;
3176
+ transactionId: z.ZodString;
2972
3177
  createdAt: z.ZodString;
2973
3178
  createdBy: z.ZodString;
2974
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3179
+ createdByRole: z.ZodString;
3180
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3181
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3182
+ 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
3183
  filename: z.ZodString;
2976
3184
  originalFilename: z.ZodString;
2977
3185
  type: z.ZodString;
@@ -3085,7 +3293,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3085
3293
  addressLine3?: string | null | undefined;
3086
3294
  postcodeOrZip?: string | null | undefined;
3087
3295
  }>]>>;
3088
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3296
+ 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
3297
  filename: z.ZodString;
3090
3298
  originalFilename: z.ZodString;
3091
3299
  type: z.ZodString;
@@ -3198,18 +3406,33 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3198
3406
  addressLine2?: string | null | undefined;
3199
3407
  addressLine3?: string | null | undefined;
3200
3408
  postcodeOrZip?: string | null | undefined;
3201
- }>]>>>;
3202
- createdAtLocation: z.ZodString;
3409
+ }>]>>>>;
3203
3410
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3204
- originalActionId: z.ZodOptional<z.ZodString>;
3411
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3205
3412
  }, {
3206
3413
  type: z.ZodLiteral<"ARCHIVE">;
3414
+ reason: z.ZodObject<{
3415
+ message: z.ZodString;
3416
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
3417
+ }, "strip", z.ZodTypeAny, {
3418
+ message: string;
3419
+ isDuplicate?: boolean | undefined;
3420
+ }, {
3421
+ message: string;
3422
+ isDuplicate?: boolean | undefined;
3423
+ }>;
3207
3424
  }>, "strip", z.ZodTypeAny, {
3208
3425
  type: "ARCHIVE";
3209
3426
  id: string;
3210
3427
  status: "Rejected" | "Requested" | "Accepted";
3428
+ reason: {
3429
+ message: string;
3430
+ isDuplicate?: boolean | undefined;
3431
+ };
3432
+ transactionId: string;
3211
3433
  createdAt: string;
3212
3434
  createdBy: string;
3435
+ createdByRole: string;
3213
3436
  declaration: Record<string, string | number | boolean | {
3214
3437
  type: string;
3215
3438
  filename: string;
@@ -3247,8 +3470,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3247
3470
  option: string;
3248
3471
  filename: string;
3249
3472
  originalFilename: string;
3250
- }[] | undefined>;
3251
- createdAtLocation: string;
3473
+ }[] | [string, string] | undefined>;
3474
+ createdBySignature?: string | null | undefined;
3475
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3252
3476
  annotation?: Record<string, string | number | boolean | {
3253
3477
  type: string;
3254
3478
  filename: string;
@@ -3286,14 +3510,20 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3286
3510
  option: string;
3287
3511
  filename: string;
3288
3512
  originalFilename: string;
3289
- }[] | undefined> | undefined;
3290
- originalActionId?: string | undefined;
3513
+ }[] | [string, string] | undefined> | null | undefined;
3514
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3291
3515
  }, {
3292
3516
  type: "ARCHIVE";
3293
3517
  id: string;
3294
3518
  status: "Rejected" | "Requested" | "Accepted";
3519
+ reason: {
3520
+ message: string;
3521
+ isDuplicate?: boolean | undefined;
3522
+ };
3523
+ transactionId: string;
3295
3524
  createdAt: string;
3296
3525
  createdBy: string;
3526
+ createdByRole: string;
3297
3527
  declaration: Record<string, string | number | boolean | {
3298
3528
  type: string;
3299
3529
  filename: string;
@@ -3331,8 +3561,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3331
3561
  option: string;
3332
3562
  filename: string;
3333
3563
  originalFilename: string;
3334
- }[] | undefined>;
3335
- createdAtLocation: string;
3564
+ }[] | [string, string] | undefined>;
3565
+ createdBySignature?: string | null | undefined;
3566
+ createdAtLocation?: string | null | undefined;
3336
3567
  annotation?: Record<string, string | number | boolean | {
3337
3568
  type: string;
3338
3569
  filename: string;
@@ -3370,13 +3601,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3370
3601
  option: string;
3371
3602
  filename: string;
3372
3603
  originalFilename: string;
3373
- }[] | undefined> | undefined;
3374
- originalActionId?: string | undefined;
3604
+ }[] | [string, string] | undefined> | null | undefined;
3605
+ originalActionId?: string | null | undefined;
3375
3606
  }>, z.ZodObject<z.objectUtil.extendShape<{
3376
3607
  id: z.ZodString;
3608
+ transactionId: z.ZodString;
3377
3609
  createdAt: z.ZodString;
3378
3610
  createdBy: z.ZodString;
3379
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3611
+ createdByRole: z.ZodString;
3612
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3613
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
3614
+ 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
3615
  filename: z.ZodString;
3381
3616
  originalFilename: z.ZodString;
3382
3617
  type: z.ZodString;
@@ -3490,7 +3725,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3490
3725
  addressLine3?: string | null | undefined;
3491
3726
  postcodeOrZip?: string | null | undefined;
3492
3727
  }>]>>;
3493
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3728
+ 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
3729
  filename: z.ZodString;
3495
3730
  originalFilename: z.ZodString;
3496
3731
  type: z.ZodString;
@@ -3603,18 +3838,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3603
3838
  addressLine2?: string | null | undefined;
3604
3839
  addressLine3?: string | null | undefined;
3605
3840
  postcodeOrZip?: string | null | undefined;
3606
- }>]>>>;
3607
- createdAtLocation: z.ZodString;
3841
+ }>]>>>>;
3608
3842
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
3609
- originalActionId: z.ZodOptional<z.ZodString>;
3843
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
3610
3844
  }, {
3611
3845
  type: z.ZodLiteral<"NOTIFY">;
3612
3846
  }>, "strip", z.ZodTypeAny, {
3613
3847
  type: "NOTIFY";
3614
3848
  id: string;
3615
3849
  status: "Rejected" | "Requested" | "Accepted";
3850
+ transactionId: string;
3616
3851
  createdAt: string;
3617
3852
  createdBy: string;
3853
+ createdByRole: string;
3618
3854
  declaration: Record<string, string | number | boolean | {
3619
3855
  type: string;
3620
3856
  filename: string;
@@ -3652,8 +3888,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3652
3888
  option: string;
3653
3889
  filename: string;
3654
3890
  originalFilename: string;
3655
- }[] | undefined>;
3656
- createdAtLocation: string;
3891
+ }[] | [string, string] | undefined>;
3892
+ createdBySignature?: string | null | undefined;
3893
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
3657
3894
  annotation?: Record<string, string | number | boolean | {
3658
3895
  type: string;
3659
3896
  filename: string;
@@ -3691,14 +3928,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3691
3928
  option: string;
3692
3929
  filename: string;
3693
3930
  originalFilename: string;
3694
- }[] | undefined> | undefined;
3695
- originalActionId?: string | undefined;
3931
+ }[] | [string, string] | undefined> | null | undefined;
3932
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
3696
3933
  }, {
3697
3934
  type: "NOTIFY";
3698
3935
  id: string;
3699
3936
  status: "Rejected" | "Requested" | "Accepted";
3937
+ transactionId: string;
3700
3938
  createdAt: string;
3701
3939
  createdBy: string;
3940
+ createdByRole: string;
3702
3941
  declaration: Record<string, string | number | boolean | {
3703
3942
  type: string;
3704
3943
  filename: string;
@@ -3736,8 +3975,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3736
3975
  option: string;
3737
3976
  filename: string;
3738
3977
  originalFilename: string;
3739
- }[] | undefined>;
3740
- createdAtLocation: string;
3978
+ }[] | [string, string] | undefined>;
3979
+ createdBySignature?: string | null | undefined;
3980
+ createdAtLocation?: string | null | undefined;
3741
3981
  annotation?: Record<string, string | number | boolean | {
3742
3982
  type: string;
3743
3983
  filename: string;
@@ -3775,13 +4015,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3775
4015
  option: string;
3776
4016
  filename: string;
3777
4017
  originalFilename: string;
3778
- }[] | undefined> | undefined;
3779
- originalActionId?: string | undefined;
4018
+ }[] | [string, string] | undefined> | null | undefined;
4019
+ originalActionId?: string | null | undefined;
3780
4020
  }>, z.ZodObject<z.objectUtil.extendShape<{
3781
4021
  id: z.ZodString;
4022
+ transactionId: z.ZodString;
3782
4023
  createdAt: z.ZodString;
3783
4024
  createdBy: z.ZodString;
3784
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4025
+ createdByRole: z.ZodString;
4026
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4027
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4028
+ 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
4029
  filename: z.ZodString;
3786
4030
  originalFilename: z.ZodString;
3787
4031
  type: z.ZodString;
@@ -3895,7 +4139,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3895
4139
  addressLine3?: string | null | undefined;
3896
4140
  postcodeOrZip?: string | null | undefined;
3897
4141
  }>]>>;
3898
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4142
+ 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
4143
  filename: z.ZodString;
3900
4144
  originalFilename: z.ZodString;
3901
4145
  type: z.ZodString;
@@ -4008,10 +4252,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4008
4252
  addressLine2?: string | null | undefined;
4009
4253
  addressLine3?: string | null | undefined;
4010
4254
  postcodeOrZip?: string | null | undefined;
4011
- }>]>>>;
4012
- createdAtLocation: z.ZodString;
4255
+ }>]>>>>;
4013
4256
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4014
- originalActionId: z.ZodOptional<z.ZodString>;
4257
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4015
4258
  }, {
4016
4259
  type: z.ZodLiteral<"REGISTER">;
4017
4260
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -4019,8 +4262,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4019
4262
  type: "REGISTER";
4020
4263
  id: string;
4021
4264
  status: "Rejected" | "Requested" | "Accepted";
4265
+ transactionId: string;
4022
4266
  createdAt: string;
4023
4267
  createdBy: string;
4268
+ createdByRole: string;
4024
4269
  declaration: Record<string, string | number | boolean | {
4025
4270
  type: string;
4026
4271
  filename: string;
@@ -4058,8 +4303,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4058
4303
  option: string;
4059
4304
  filename: string;
4060
4305
  originalFilename: string;
4061
- }[] | undefined>;
4062
- createdAtLocation: string;
4306
+ }[] | [string, string] | undefined>;
4307
+ createdBySignature?: string | null | undefined;
4308
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4063
4309
  annotation?: Record<string, string | number | boolean | {
4064
4310
  type: string;
4065
4311
  filename: string;
@@ -4097,15 +4343,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4097
4343
  option: string;
4098
4344
  filename: string;
4099
4345
  originalFilename: string;
4100
- }[] | undefined> | undefined;
4101
- originalActionId?: string | undefined;
4346
+ }[] | [string, string] | undefined> | null | undefined;
4347
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4102
4348
  registrationNumber?: string | undefined;
4103
4349
  }, {
4104
4350
  type: "REGISTER";
4105
4351
  id: string;
4106
4352
  status: "Rejected" | "Requested" | "Accepted";
4353
+ transactionId: string;
4107
4354
  createdAt: string;
4108
4355
  createdBy: string;
4356
+ createdByRole: string;
4109
4357
  declaration: Record<string, string | number | boolean | {
4110
4358
  type: string;
4111
4359
  filename: string;
@@ -4143,8 +4391,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4143
4391
  option: string;
4144
4392
  filename: string;
4145
4393
  originalFilename: string;
4146
- }[] | undefined>;
4147
- createdAtLocation: string;
4394
+ }[] | [string, string] | undefined>;
4395
+ createdBySignature?: string | null | undefined;
4396
+ createdAtLocation?: string | null | undefined;
4148
4397
  annotation?: Record<string, string | number | boolean | {
4149
4398
  type: string;
4150
4399
  filename: string;
@@ -4182,14 +4431,18 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4182
4431
  option: string;
4183
4432
  filename: string;
4184
4433
  originalFilename: string;
4185
- }[] | undefined> | undefined;
4186
- originalActionId?: string | undefined;
4434
+ }[] | [string, string] | undefined> | null | undefined;
4435
+ originalActionId?: string | null | undefined;
4187
4436
  registrationNumber?: string | undefined;
4188
4437
  }>, z.ZodObject<z.objectUtil.extendShape<{
4189
4438
  id: z.ZodString;
4439
+ transactionId: z.ZodString;
4190
4440
  createdAt: z.ZodString;
4191
4441
  createdBy: z.ZodString;
4192
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4442
+ createdByRole: z.ZodString;
4443
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4444
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4445
+ 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
4446
  filename: z.ZodString;
4194
4447
  originalFilename: z.ZodString;
4195
4448
  type: z.ZodString;
@@ -4303,7 +4556,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4303
4556
  addressLine3?: string | null | undefined;
4304
4557
  postcodeOrZip?: string | null | undefined;
4305
4558
  }>]>>;
4306
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4559
+ 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
4560
  filename: z.ZodString;
4308
4561
  originalFilename: z.ZodString;
4309
4562
  type: z.ZodString;
@@ -4416,18 +4669,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4416
4669
  addressLine2?: string | null | undefined;
4417
4670
  addressLine3?: string | null | undefined;
4418
4671
  postcodeOrZip?: string | null | undefined;
4419
- }>]>>>;
4420
- createdAtLocation: z.ZodString;
4672
+ }>]>>>>;
4421
4673
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4422
- originalActionId: z.ZodOptional<z.ZodString>;
4674
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4423
4675
  }, {
4424
4676
  type: z.ZodLiteral<"DECLARE">;
4425
4677
  }>, "strip", z.ZodTypeAny, {
4426
4678
  type: "DECLARE";
4427
4679
  id: string;
4428
4680
  status: "Rejected" | "Requested" | "Accepted";
4681
+ transactionId: string;
4429
4682
  createdAt: string;
4430
4683
  createdBy: string;
4684
+ createdByRole: string;
4431
4685
  declaration: Record<string, string | number | boolean | {
4432
4686
  type: string;
4433
4687
  filename: string;
@@ -4465,8 +4719,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4465
4719
  option: string;
4466
4720
  filename: string;
4467
4721
  originalFilename: string;
4468
- }[] | undefined>;
4469
- createdAtLocation: string;
4722
+ }[] | [string, string] | undefined>;
4723
+ createdBySignature?: string | null | undefined;
4724
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4470
4725
  annotation?: Record<string, string | number | boolean | {
4471
4726
  type: string;
4472
4727
  filename: string;
@@ -4504,14 +4759,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4504
4759
  option: string;
4505
4760
  filename: string;
4506
4761
  originalFilename: string;
4507
- }[] | undefined> | undefined;
4508
- originalActionId?: string | undefined;
4762
+ }[] | [string, string] | undefined> | null | undefined;
4763
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4509
4764
  }, {
4510
4765
  type: "DECLARE";
4511
4766
  id: string;
4512
4767
  status: "Rejected" | "Requested" | "Accepted";
4768
+ transactionId: string;
4513
4769
  createdAt: string;
4514
4770
  createdBy: string;
4771
+ createdByRole: string;
4515
4772
  declaration: Record<string, string | number | boolean | {
4516
4773
  type: string;
4517
4774
  filename: string;
@@ -4549,8 +4806,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4549
4806
  option: string;
4550
4807
  filename: string;
4551
4808
  originalFilename: string;
4552
- }[] | undefined>;
4553
- createdAtLocation: string;
4809
+ }[] | [string, string] | undefined>;
4810
+ createdBySignature?: string | null | undefined;
4811
+ createdAtLocation?: string | null | undefined;
4554
4812
  annotation?: Record<string, string | number | boolean | {
4555
4813
  type: string;
4556
4814
  filename: string;
@@ -4588,13 +4846,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4588
4846
  option: string;
4589
4847
  filename: string;
4590
4848
  originalFilename: string;
4591
- }[] | undefined> | undefined;
4592
- originalActionId?: string | undefined;
4849
+ }[] | [string, string] | undefined> | null | undefined;
4850
+ originalActionId?: string | null | undefined;
4593
4851
  }>, z.ZodObject<z.objectUtil.extendShape<{
4594
4852
  id: z.ZodString;
4853
+ transactionId: z.ZodString;
4595
4854
  createdAt: z.ZodString;
4596
4855
  createdBy: z.ZodString;
4597
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4856
+ createdByRole: z.ZodString;
4857
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4858
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
4859
+ 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
4860
  filename: z.ZodString;
4599
4861
  originalFilename: z.ZodString;
4600
4862
  type: z.ZodString;
@@ -4708,7 +4970,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4708
4970
  addressLine3?: string | null | undefined;
4709
4971
  postcodeOrZip?: string | null | undefined;
4710
4972
  }>]>>;
4711
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4973
+ 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
4974
  filename: z.ZodString;
4713
4975
  originalFilename: z.ZodString;
4714
4976
  type: z.ZodString;
@@ -4821,10 +5083,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4821
5083
  addressLine2?: string | null | undefined;
4822
5084
  addressLine3?: string | null | undefined;
4823
5085
  postcodeOrZip?: string | null | undefined;
4824
- }>]>>>;
4825
- createdAtLocation: z.ZodString;
5086
+ }>]>>>>;
4826
5087
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
4827
- originalActionId: z.ZodOptional<z.ZodString>;
5088
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
4828
5089
  }, {
4829
5090
  type: z.ZodLiteral<"ASSIGN">;
4830
5091
  assignedTo: z.ZodString;
@@ -4832,8 +5093,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4832
5093
  type: "ASSIGN";
4833
5094
  id: string;
4834
5095
  status: "Rejected" | "Requested" | "Accepted";
5096
+ transactionId: string;
4835
5097
  createdAt: string;
4836
5098
  createdBy: string;
5099
+ createdByRole: string;
4837
5100
  declaration: Record<string, string | number | boolean | {
4838
5101
  type: string;
4839
5102
  filename: string;
@@ -4871,9 +5134,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4871
5134
  option: string;
4872
5135
  filename: string;
4873
5136
  originalFilename: string;
4874
- }[] | undefined>;
4875
- createdAtLocation: string;
5137
+ }[] | [string, string] | undefined>;
4876
5138
  assignedTo: string;
5139
+ createdBySignature?: string | null | undefined;
5140
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
4877
5141
  annotation?: Record<string, string | number | boolean | {
4878
5142
  type: string;
4879
5143
  filename: string;
@@ -4911,14 +5175,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4911
5175
  option: string;
4912
5176
  filename: string;
4913
5177
  originalFilename: string;
4914
- }[] | undefined> | undefined;
4915
- originalActionId?: string | undefined;
5178
+ }[] | [string, string] | undefined> | null | undefined;
5179
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
4916
5180
  }, {
4917
5181
  type: "ASSIGN";
4918
5182
  id: string;
4919
5183
  status: "Rejected" | "Requested" | "Accepted";
5184
+ transactionId: string;
4920
5185
  createdAt: string;
4921
5186
  createdBy: string;
5187
+ createdByRole: string;
4922
5188
  declaration: Record<string, string | number | boolean | {
4923
5189
  type: string;
4924
5190
  filename: string;
@@ -4956,9 +5222,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4956
5222
  option: string;
4957
5223
  filename: string;
4958
5224
  originalFilename: string;
4959
- }[] | undefined>;
4960
- createdAtLocation: string;
5225
+ }[] | [string, string] | undefined>;
4961
5226
  assignedTo: string;
5227
+ createdBySignature?: string | null | undefined;
5228
+ createdAtLocation?: string | null | undefined;
4962
5229
  annotation?: Record<string, string | number | boolean | {
4963
5230
  type: string;
4964
5231
  filename: string;
@@ -4996,13 +5263,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4996
5263
  option: string;
4997
5264
  filename: string;
4998
5265
  originalFilename: string;
4999
- }[] | undefined> | undefined;
5000
- originalActionId?: string | undefined;
5266
+ }[] | [string, string] | undefined> | null | undefined;
5267
+ originalActionId?: string | null | undefined;
5001
5268
  }>, z.ZodObject<z.objectUtil.extendShape<{
5002
5269
  id: z.ZodString;
5270
+ transactionId: z.ZodString;
5003
5271
  createdAt: z.ZodString;
5004
5272
  createdBy: z.ZodString;
5005
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5273
+ createdByRole: z.ZodString;
5274
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5275
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5276
+ 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
5277
  filename: z.ZodString;
5007
5278
  originalFilename: z.ZodString;
5008
5279
  type: z.ZodString;
@@ -5116,7 +5387,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5116
5387
  addressLine3?: string | null | undefined;
5117
5388
  postcodeOrZip?: string | null | undefined;
5118
5389
  }>]>>;
5119
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5390
+ 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
5391
  filename: z.ZodString;
5121
5392
  originalFilename: z.ZodString;
5122
5393
  type: z.ZodString;
@@ -5229,18 +5500,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5229
5500
  addressLine2?: string | null | undefined;
5230
5501
  addressLine3?: string | null | undefined;
5231
5502
  postcodeOrZip?: string | null | undefined;
5232
- }>]>>>;
5233
- createdAtLocation: z.ZodString;
5503
+ }>]>>>>;
5234
5504
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5235
- originalActionId: z.ZodOptional<z.ZodString>;
5505
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5236
5506
  }, {
5237
5507
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
5238
5508
  }>, "strip", z.ZodTypeAny, {
5239
5509
  type: "REQUEST_CORRECTION";
5240
5510
  id: string;
5241
5511
  status: "Rejected" | "Requested" | "Accepted";
5512
+ transactionId: string;
5242
5513
  createdAt: string;
5243
5514
  createdBy: string;
5515
+ createdByRole: string;
5244
5516
  declaration: Record<string, string | number | boolean | {
5245
5517
  type: string;
5246
5518
  filename: string;
@@ -5278,8 +5550,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5278
5550
  option: string;
5279
5551
  filename: string;
5280
5552
  originalFilename: string;
5281
- }[] | undefined>;
5282
- createdAtLocation: string;
5553
+ }[] | [string, string] | undefined>;
5554
+ createdBySignature?: string | null | undefined;
5555
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5283
5556
  annotation?: Record<string, string | number | boolean | {
5284
5557
  type: string;
5285
5558
  filename: string;
@@ -5317,14 +5590,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5317
5590
  option: string;
5318
5591
  filename: string;
5319
5592
  originalFilename: string;
5320
- }[] | undefined> | undefined;
5321
- originalActionId?: string | undefined;
5593
+ }[] | [string, string] | undefined> | null | undefined;
5594
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5322
5595
  }, {
5323
5596
  type: "REQUEST_CORRECTION";
5324
5597
  id: string;
5325
5598
  status: "Rejected" | "Requested" | "Accepted";
5599
+ transactionId: string;
5326
5600
  createdAt: string;
5327
5601
  createdBy: string;
5602
+ createdByRole: string;
5328
5603
  declaration: Record<string, string | number | boolean | {
5329
5604
  type: string;
5330
5605
  filename: string;
@@ -5362,8 +5637,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5362
5637
  option: string;
5363
5638
  filename: string;
5364
5639
  originalFilename: string;
5365
- }[] | undefined>;
5366
- createdAtLocation: string;
5640
+ }[] | [string, string] | undefined>;
5641
+ createdBySignature?: string | null | undefined;
5642
+ createdAtLocation?: string | null | undefined;
5367
5643
  annotation?: Record<string, string | number | boolean | {
5368
5644
  type: string;
5369
5645
  filename: string;
@@ -5401,13 +5677,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5401
5677
  option: string;
5402
5678
  filename: string;
5403
5679
  originalFilename: string;
5404
- }[] | undefined> | undefined;
5405
- originalActionId?: string | undefined;
5680
+ }[] | [string, string] | undefined> | null | undefined;
5681
+ originalActionId?: string | null | undefined;
5406
5682
  }>, z.ZodObject<z.objectUtil.extendShape<{
5407
5683
  id: z.ZodString;
5684
+ transactionId: z.ZodString;
5408
5685
  createdAt: z.ZodString;
5409
5686
  createdBy: z.ZodString;
5410
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5687
+ createdByRole: z.ZodString;
5688
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5689
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
5690
+ 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
5691
  filename: z.ZodString;
5412
5692
  originalFilename: z.ZodString;
5413
5693
  type: z.ZodString;
@@ -5521,7 +5801,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5521
5801
  addressLine3?: string | null | undefined;
5522
5802
  postcodeOrZip?: string | null | undefined;
5523
5803
  }>]>>;
5524
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5804
+ 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
5805
  filename: z.ZodString;
5526
5806
  originalFilename: z.ZodString;
5527
5807
  type: z.ZodString;
@@ -5634,10 +5914,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5634
5914
  addressLine2?: string | null | undefined;
5635
5915
  addressLine3?: string | null | undefined;
5636
5916
  postcodeOrZip?: string | null | undefined;
5637
- }>]>>>;
5638
- createdAtLocation: z.ZodString;
5917
+ }>]>>>>;
5639
5918
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
5640
- originalActionId: z.ZodOptional<z.ZodString>;
5919
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
5641
5920
  }, {
5642
5921
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
5643
5922
  requestId: z.ZodString;
@@ -5645,8 +5924,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5645
5924
  type: "APPROVE_CORRECTION";
5646
5925
  id: string;
5647
5926
  status: "Rejected" | "Requested" | "Accepted";
5927
+ transactionId: string;
5648
5928
  createdAt: string;
5649
5929
  createdBy: string;
5930
+ createdByRole: string;
5650
5931
  declaration: Record<string, string | number | boolean | {
5651
5932
  type: string;
5652
5933
  filename: string;
@@ -5684,9 +5965,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5684
5965
  option: string;
5685
5966
  filename: string;
5686
5967
  originalFilename: string;
5687
- }[] | undefined>;
5688
- createdAtLocation: string;
5968
+ }[] | [string, string] | undefined>;
5689
5969
  requestId: string;
5970
+ createdBySignature?: string | null | undefined;
5971
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
5690
5972
  annotation?: Record<string, string | number | boolean | {
5691
5973
  type: string;
5692
5974
  filename: string;
@@ -5724,14 +6006,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5724
6006
  option: string;
5725
6007
  filename: string;
5726
6008
  originalFilename: string;
5727
- }[] | undefined> | undefined;
5728
- originalActionId?: string | undefined;
6009
+ }[] | [string, string] | undefined> | null | undefined;
6010
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
5729
6011
  }, {
5730
6012
  type: "APPROVE_CORRECTION";
5731
6013
  id: string;
5732
6014
  status: "Rejected" | "Requested" | "Accepted";
6015
+ transactionId: string;
5733
6016
  createdAt: string;
5734
6017
  createdBy: string;
6018
+ createdByRole: string;
5735
6019
  declaration: Record<string, string | number | boolean | {
5736
6020
  type: string;
5737
6021
  filename: string;
@@ -5769,9 +6053,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5769
6053
  option: string;
5770
6054
  filename: string;
5771
6055
  originalFilename: string;
5772
- }[] | undefined>;
5773
- createdAtLocation: string;
6056
+ }[] | [string, string] | undefined>;
5774
6057
  requestId: string;
6058
+ createdBySignature?: string | null | undefined;
6059
+ createdAtLocation?: string | null | undefined;
5775
6060
  annotation?: Record<string, string | number | boolean | {
5776
6061
  type: string;
5777
6062
  filename: string;
@@ -5809,13 +6094,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5809
6094
  option: string;
5810
6095
  filename: string;
5811
6096
  originalFilename: string;
5812
- }[] | undefined> | undefined;
5813
- originalActionId?: string | undefined;
6097
+ }[] | [string, string] | undefined> | null | undefined;
6098
+ originalActionId?: string | null | undefined;
5814
6099
  }>, z.ZodObject<z.objectUtil.extendShape<{
5815
6100
  id: z.ZodString;
6101
+ transactionId: z.ZodString;
5816
6102
  createdAt: z.ZodString;
5817
6103
  createdBy: z.ZodString;
5818
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6104
+ createdByRole: z.ZodString;
6105
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6106
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6107
+ 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
6108
  filename: z.ZodString;
5820
6109
  originalFilename: z.ZodString;
5821
6110
  type: z.ZodString;
@@ -5929,7 +6218,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5929
6218
  addressLine3?: string | null | undefined;
5930
6219
  postcodeOrZip?: string | null | undefined;
5931
6220
  }>]>>;
5932
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6221
+ 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
6222
  filename: z.ZodString;
5934
6223
  originalFilename: z.ZodString;
5935
6224
  type: z.ZodString;
@@ -6042,10 +6331,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6042
6331
  addressLine2?: string | null | undefined;
6043
6332
  addressLine3?: string | null | undefined;
6044
6333
  postcodeOrZip?: string | null | undefined;
6045
- }>]>>>;
6046
- createdAtLocation: z.ZodString;
6334
+ }>]>>>>;
6047
6335
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6048
- originalActionId: z.ZodOptional<z.ZodString>;
6336
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6049
6337
  }, {
6050
6338
  type: z.ZodLiteral<"REJECT_CORRECTION">;
6051
6339
  requestId: z.ZodString;
@@ -6053,8 +6341,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6053
6341
  type: "REJECT_CORRECTION";
6054
6342
  id: string;
6055
6343
  status: "Rejected" | "Requested" | "Accepted";
6344
+ transactionId: string;
6056
6345
  createdAt: string;
6057
6346
  createdBy: string;
6347
+ createdByRole: string;
6058
6348
  declaration: Record<string, string | number | boolean | {
6059
6349
  type: string;
6060
6350
  filename: string;
@@ -6092,9 +6382,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6092
6382
  option: string;
6093
6383
  filename: string;
6094
6384
  originalFilename: string;
6095
- }[] | undefined>;
6096
- createdAtLocation: string;
6385
+ }[] | [string, string] | undefined>;
6097
6386
  requestId: string;
6387
+ createdBySignature?: string | null | undefined;
6388
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6098
6389
  annotation?: Record<string, string | number | boolean | {
6099
6390
  type: string;
6100
6391
  filename: string;
@@ -6132,14 +6423,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6132
6423
  option: string;
6133
6424
  filename: string;
6134
6425
  originalFilename: string;
6135
- }[] | undefined> | undefined;
6136
- originalActionId?: string | undefined;
6426
+ }[] | [string, string] | undefined> | null | undefined;
6427
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6137
6428
  }, {
6138
6429
  type: "REJECT_CORRECTION";
6139
6430
  id: string;
6140
6431
  status: "Rejected" | "Requested" | "Accepted";
6432
+ transactionId: string;
6141
6433
  createdAt: string;
6142
6434
  createdBy: string;
6435
+ createdByRole: string;
6143
6436
  declaration: Record<string, string | number | boolean | {
6144
6437
  type: string;
6145
6438
  filename: string;
@@ -6177,9 +6470,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6177
6470
  option: string;
6178
6471
  filename: string;
6179
6472
  originalFilename: string;
6180
- }[] | undefined>;
6181
- createdAtLocation: string;
6473
+ }[] | [string, string] | undefined>;
6182
6474
  requestId: string;
6475
+ createdBySignature?: string | null | undefined;
6476
+ createdAtLocation?: string | null | undefined;
6183
6477
  annotation?: Record<string, string | number | boolean | {
6184
6478
  type: string;
6185
6479
  filename: string;
@@ -6217,13 +6511,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6217
6511
  option: string;
6218
6512
  filename: string;
6219
6513
  originalFilename: string;
6220
- }[] | undefined> | undefined;
6221
- originalActionId?: string | undefined;
6514
+ }[] | [string, string] | undefined> | null | undefined;
6515
+ originalActionId?: string | null | undefined;
6222
6516
  }>, z.ZodObject<z.objectUtil.extendShape<{
6223
6517
  id: z.ZodString;
6518
+ transactionId: z.ZodString;
6224
6519
  createdAt: z.ZodString;
6225
6520
  createdBy: z.ZodString;
6226
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6521
+ createdByRole: z.ZodString;
6522
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6523
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6524
+ 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
6525
  filename: z.ZodString;
6228
6526
  originalFilename: z.ZodString;
6229
6527
  type: z.ZodString;
@@ -6337,7 +6635,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6337
6635
  addressLine3?: string | null | undefined;
6338
6636
  postcodeOrZip?: string | null | undefined;
6339
6637
  }>]>>;
6340
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6638
+ 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
6639
  filename: z.ZodString;
6342
6640
  originalFilename: z.ZodString;
6343
6641
  type: z.ZodString;
@@ -6450,19 +6748,20 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6450
6748
  addressLine2?: string | null | undefined;
6451
6749
  addressLine3?: string | null | undefined;
6452
6750
  postcodeOrZip?: string | null | undefined;
6453
- }>]>>>;
6454
- createdAtLocation: z.ZodString;
6751
+ }>]>>>>;
6455
6752
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6456
- originalActionId: z.ZodOptional<z.ZodString>;
6753
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6457
6754
  }, {
6458
6755
  type: z.ZodLiteral<"UNASSIGN">;
6459
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
6756
+ assignedTo: z.ZodLiteral<null>;
6460
6757
  }>, "strip", z.ZodTypeAny, {
6461
6758
  type: "UNASSIGN";
6462
6759
  id: string;
6463
6760
  status: "Rejected" | "Requested" | "Accepted";
6761
+ transactionId: string;
6464
6762
  createdAt: string;
6465
6763
  createdBy: string;
6764
+ createdByRole: string;
6466
6765
  declaration: Record<string, string | number | boolean | {
6467
6766
  type: string;
6468
6767
  filename: string;
@@ -6500,9 +6799,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6500
6799
  option: string;
6501
6800
  filename: string;
6502
6801
  originalFilename: string;
6503
- }[] | undefined>;
6504
- createdAtLocation: string;
6802
+ }[] | [string, string] | undefined>;
6505
6803
  assignedTo: null;
6804
+ createdBySignature?: string | null | undefined;
6805
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6506
6806
  annotation?: Record<string, string | number | boolean | {
6507
6807
  type: string;
6508
6808
  filename: string;
@@ -6540,14 +6840,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6540
6840
  option: string;
6541
6841
  filename: string;
6542
6842
  originalFilename: string;
6543
- }[] | undefined> | undefined;
6544
- originalActionId?: string | undefined;
6843
+ }[] | [string, string] | undefined> | null | undefined;
6844
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6545
6845
  }, {
6546
6846
  type: "UNASSIGN";
6547
6847
  id: string;
6548
6848
  status: "Rejected" | "Requested" | "Accepted";
6849
+ transactionId: string;
6549
6850
  createdAt: string;
6550
6851
  createdBy: string;
6852
+ createdByRole: string;
6551
6853
  declaration: Record<string, string | number | boolean | {
6552
6854
  type: string;
6553
6855
  filename: string;
@@ -6585,8 +6887,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6585
6887
  option: string;
6586
6888
  filename: string;
6587
6889
  originalFilename: string;
6588
- }[] | undefined>;
6589
- createdAtLocation: string;
6890
+ }[] | [string, string] | undefined>;
6891
+ assignedTo: null;
6892
+ createdBySignature?: string | null | undefined;
6893
+ createdAtLocation?: string | null | undefined;
6590
6894
  annotation?: Record<string, string | number | boolean | {
6591
6895
  type: string;
6592
6896
  filename: string;
@@ -6624,14 +6928,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6624
6928
  option: string;
6625
6929
  filename: string;
6626
6930
  originalFilename: string;
6627
- }[] | undefined> | undefined;
6628
- originalActionId?: string | undefined;
6629
- assignedTo?: null | undefined;
6931
+ }[] | [string, string] | undefined> | null | undefined;
6932
+ originalActionId?: string | null | undefined;
6630
6933
  }>, z.ZodObject<z.objectUtil.extendShape<{
6631
6934
  id: z.ZodString;
6935
+ transactionId: z.ZodString;
6632
6936
  createdAt: z.ZodString;
6633
6937
  createdBy: z.ZodString;
6634
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6938
+ createdByRole: z.ZodString;
6939
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6940
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6941
+ 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
6942
  filename: z.ZodString;
6636
6943
  originalFilename: z.ZodString;
6637
6944
  type: z.ZodString;
@@ -6745,7 +7052,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6745
7052
  addressLine3?: string | null | undefined;
6746
7053
  postcodeOrZip?: string | null | undefined;
6747
7054
  }>]>>;
6748
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7055
+ 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
7056
  filename: z.ZodString;
6750
7057
  originalFilename: z.ZodString;
6751
7058
  type: z.ZodString;
@@ -6858,18 +7165,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6858
7165
  addressLine2?: string | null | undefined;
6859
7166
  addressLine3?: string | null | undefined;
6860
7167
  postcodeOrZip?: string | null | undefined;
6861
- }>]>>>;
6862
- createdAtLocation: z.ZodString;
7168
+ }>]>>>>;
6863
7169
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
6864
- originalActionId: z.ZodOptional<z.ZodString>;
7170
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6865
7171
  }, {
6866
7172
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
6867
7173
  }>, "strip", z.ZodTypeAny, {
6868
7174
  type: "PRINT_CERTIFICATE";
6869
7175
  id: string;
6870
7176
  status: "Rejected" | "Requested" | "Accepted";
7177
+ transactionId: string;
6871
7178
  createdAt: string;
6872
7179
  createdBy: string;
7180
+ createdByRole: string;
6873
7181
  declaration: Record<string, string | number | boolean | {
6874
7182
  type: string;
6875
7183
  filename: string;
@@ -6907,8 +7215,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6907
7215
  option: string;
6908
7216
  filename: string;
6909
7217
  originalFilename: string;
6910
- }[] | undefined>;
6911
- createdAtLocation: string;
7218
+ }[] | [string, string] | undefined>;
7219
+ createdBySignature?: string | null | undefined;
7220
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6912
7221
  annotation?: Record<string, string | number | boolean | {
6913
7222
  type: string;
6914
7223
  filename: string;
@@ -6946,14 +7255,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6946
7255
  option: string;
6947
7256
  filename: string;
6948
7257
  originalFilename: string;
6949
- }[] | undefined> | undefined;
6950
- originalActionId?: string | undefined;
7258
+ }[] | [string, string] | undefined> | null | undefined;
7259
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6951
7260
  }, {
6952
7261
  type: "PRINT_CERTIFICATE";
6953
7262
  id: string;
6954
7263
  status: "Rejected" | "Requested" | "Accepted";
7264
+ transactionId: string;
6955
7265
  createdAt: string;
6956
7266
  createdBy: string;
7267
+ createdByRole: string;
6957
7268
  declaration: Record<string, string | number | boolean | {
6958
7269
  type: string;
6959
7270
  filename: string;
@@ -6991,8 +7302,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6991
7302
  option: string;
6992
7303
  filename: string;
6993
7304
  originalFilename: string;
6994
- }[] | undefined>;
6995
- createdAtLocation: string;
7305
+ }[] | [string, string] | undefined>;
7306
+ createdBySignature?: string | null | undefined;
7307
+ createdAtLocation?: string | null | undefined;
6996
7308
  annotation?: Record<string, string | number | boolean | {
6997
7309
  type: string;
6998
7310
  filename: string;
@@ -7030,13 +7342,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7030
7342
  option: string;
7031
7343
  filename: string;
7032
7344
  originalFilename: string;
7033
- }[] | undefined> | undefined;
7034
- originalActionId?: string | undefined;
7345
+ }[] | [string, string] | undefined> | null | undefined;
7346
+ originalActionId?: string | null | undefined;
7035
7347
  }>, z.ZodObject<z.objectUtil.extendShape<{
7036
7348
  id: z.ZodString;
7349
+ transactionId: z.ZodString;
7037
7350
  createdAt: z.ZodString;
7038
7351
  createdBy: z.ZodString;
7039
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7352
+ createdByRole: z.ZodString;
7353
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7354
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
7355
+ 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
7356
  filename: z.ZodString;
7041
7357
  originalFilename: z.ZodString;
7042
7358
  type: z.ZodString;
@@ -7150,7 +7466,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7150
7466
  addressLine3?: string | null | undefined;
7151
7467
  postcodeOrZip?: string | null | undefined;
7152
7468
  }>]>>;
7153
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7469
+ 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
7470
  filename: z.ZodString;
7155
7471
  originalFilename: z.ZodString;
7156
7472
  type: z.ZodString;
@@ -7263,18 +7579,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7263
7579
  addressLine2?: string | null | undefined;
7264
7580
  addressLine3?: string | null | undefined;
7265
7581
  postcodeOrZip?: string | null | undefined;
7266
- }>]>>>;
7267
- createdAtLocation: z.ZodString;
7582
+ }>]>>>>;
7268
7583
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7269
- originalActionId: z.ZodOptional<z.ZodString>;
7584
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7270
7585
  }, {
7271
7586
  type: z.ZodLiteral<"READ">;
7272
7587
  }>, "strip", z.ZodTypeAny, {
7273
7588
  type: "READ";
7274
7589
  id: string;
7275
7590
  status: "Rejected" | "Requested" | "Accepted";
7591
+ transactionId: string;
7276
7592
  createdAt: string;
7277
7593
  createdBy: string;
7594
+ createdByRole: string;
7278
7595
  declaration: Record<string, string | number | boolean | {
7279
7596
  type: string;
7280
7597
  filename: string;
@@ -7312,8 +7629,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7312
7629
  option: string;
7313
7630
  filename: string;
7314
7631
  originalFilename: string;
7315
- }[] | undefined>;
7316
- createdAtLocation: string;
7632
+ }[] | [string, string] | undefined>;
7633
+ createdBySignature?: string | null | undefined;
7634
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7317
7635
  annotation?: Record<string, string | number | boolean | {
7318
7636
  type: string;
7319
7637
  filename: string;
@@ -7351,14 +7669,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7351
7669
  option: string;
7352
7670
  filename: string;
7353
7671
  originalFilename: string;
7354
- }[] | undefined> | undefined;
7355
- originalActionId?: string | undefined;
7672
+ }[] | [string, string] | undefined> | null | undefined;
7673
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7356
7674
  }, {
7357
7675
  type: "READ";
7358
7676
  id: string;
7359
7677
  status: "Rejected" | "Requested" | "Accepted";
7678
+ transactionId: string;
7360
7679
  createdAt: string;
7361
7680
  createdBy: string;
7681
+ createdByRole: string;
7362
7682
  declaration: Record<string, string | number | boolean | {
7363
7683
  type: string;
7364
7684
  filename: string;
@@ -7396,8 +7716,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7396
7716
  option: string;
7397
7717
  filename: string;
7398
7718
  originalFilename: string;
7399
- }[] | undefined>;
7400
- createdAtLocation: string;
7719
+ }[] | [string, string] | undefined>;
7720
+ createdBySignature?: string | null | undefined;
7721
+ createdAtLocation?: string | null | undefined;
7401
7722
  annotation?: Record<string, string | number | boolean | {
7402
7723
  type: string;
7403
7724
  filename: string;
@@ -7435,15 +7756,19 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7435
7756
  option: string;
7436
7757
  filename: string;
7437
7758
  originalFilename: string;
7438
- }[] | undefined> | undefined;
7439
- originalActionId?: string | undefined;
7759
+ }[] | [string, string] | undefined> | null | undefined;
7760
+ originalActionId?: string | null | undefined;
7440
7761
  }>]>;
7441
7762
  export type ActionDocument = z.infer<typeof ActionDocument>;
7442
7763
  export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
7443
7764
  id: z.ZodString;
7765
+ transactionId: z.ZodString;
7444
7766
  createdAt: z.ZodString;
7445
7767
  createdBy: z.ZodString;
7446
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7768
+ createdByRole: z.ZodString;
7769
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7770
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
7771
+ 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
7772
  filename: z.ZodString;
7448
7773
  originalFilename: z.ZodString;
7449
7774
  type: z.ZodString;
@@ -7557,7 +7882,7 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7557
7882
  addressLine3?: string | null | undefined;
7558
7883
  postcodeOrZip?: string | null | undefined;
7559
7884
  }>]>>;
7560
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7885
+ 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
7886
  filename: z.ZodString;
7562
7887
  originalFilename: z.ZodString;
7563
7888
  type: z.ZodString;
@@ -7670,32 +7995,45 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7670
7995
  addressLine2?: string | null | undefined;
7671
7996
  addressLine3?: string | null | undefined;
7672
7997
  postcodeOrZip?: string | null | undefined;
7673
- }>]>>>;
7674
- createdAtLocation: z.ZodString;
7998
+ }>]>>>>;
7675
7999
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7676
- originalActionId: z.ZodOptional<z.ZodString>;
7677
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
8000
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8001
+ }, "declaration" | "annotation">, {
7678
8002
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7679
8003
  status: z.ZodLiteral<"Rejected">;
7680
8004
  }>, "strip", z.ZodTypeAny, {
7681
8005
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7682
8006
  id: string;
7683
8007
  status: "Rejected";
8008
+ transactionId: string;
7684
8009
  createdAt: string;
7685
- originalActionId?: string | undefined;
8010
+ createdBy: string;
8011
+ createdByRole: string;
8012
+ createdBySignature?: string | null | undefined;
8013
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8014
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
7686
8015
  }, {
7687
8016
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7688
8017
  id: string;
7689
8018
  status: "Rejected";
8019
+ transactionId: string;
7690
8020
  createdAt: string;
7691
- originalActionId?: string | undefined;
8021
+ createdBy: string;
8022
+ createdByRole: string;
8023
+ createdBySignature?: string | null | undefined;
8024
+ createdAtLocation?: string | null | undefined;
8025
+ originalActionId?: string | null | undefined;
7692
8026
  }>;
7693
8027
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
7694
8028
  export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7695
8029
  id: z.ZodString;
8030
+ transactionId: z.ZodString;
7696
8031
  createdAt: z.ZodString;
7697
8032
  createdBy: z.ZodString;
7698
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8033
+ createdByRole: z.ZodString;
8034
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8035
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
8036
+ 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
8037
  filename: z.ZodString;
7700
8038
  originalFilename: z.ZodString;
7701
8039
  type: z.ZodString;
@@ -7809,7 +8147,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7809
8147
  addressLine3?: string | null | undefined;
7810
8148
  postcodeOrZip?: string | null | undefined;
7811
8149
  }>]>>;
7812
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8150
+ 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
8151
  filename: z.ZodString;
7814
8152
  originalFilename: z.ZodString;
7815
8153
  type: z.ZodString;
@@ -7922,18 +8260,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7922
8260
  addressLine2?: string | null | undefined;
7923
8261
  addressLine3?: string | null | undefined;
7924
8262
  postcodeOrZip?: string | null | undefined;
7925
- }>]>>>;
7926
- createdAtLocation: z.ZodString;
8263
+ }>]>>>>;
7927
8264
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7928
- originalActionId: z.ZodOptional<z.ZodString>;
8265
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
7929
8266
  }, {
7930
8267
  type: z.ZodLiteral<"CREATE">;
7931
8268
  }>, "strip", z.ZodTypeAny, {
7932
8269
  type: "CREATE";
7933
8270
  id: string;
7934
8271
  status: "Rejected" | "Requested" | "Accepted";
8272
+ transactionId: string;
7935
8273
  createdAt: string;
7936
8274
  createdBy: string;
8275
+ createdByRole: string;
7937
8276
  declaration: Record<string, string | number | boolean | {
7938
8277
  type: string;
7939
8278
  filename: string;
@@ -7971,8 +8310,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7971
8310
  option: string;
7972
8311
  filename: string;
7973
8312
  originalFilename: string;
7974
- }[] | undefined>;
7975
- createdAtLocation: string;
8313
+ }[] | [string, string] | undefined>;
8314
+ createdBySignature?: string | null | undefined;
8315
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
7976
8316
  annotation?: Record<string, string | number | boolean | {
7977
8317
  type: string;
7978
8318
  filename: string;
@@ -8010,14 +8350,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8010
8350
  option: string;
8011
8351
  filename: string;
8012
8352
  originalFilename: string;
8013
- }[] | undefined> | undefined;
8014
- originalActionId?: string | undefined;
8353
+ }[] | [string, string] | undefined> | null | undefined;
8354
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8015
8355
  }, {
8016
8356
  type: "CREATE";
8017
8357
  id: string;
8018
8358
  status: "Rejected" | "Requested" | "Accepted";
8359
+ transactionId: string;
8019
8360
  createdAt: string;
8020
8361
  createdBy: string;
8362
+ createdByRole: string;
8021
8363
  declaration: Record<string, string | number | boolean | {
8022
8364
  type: string;
8023
8365
  filename: string;
@@ -8055,8 +8397,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8055
8397
  option: string;
8056
8398
  filename: string;
8057
8399
  originalFilename: string;
8058
- }[] | undefined>;
8059
- createdAtLocation: string;
8400
+ }[] | [string, string] | undefined>;
8401
+ createdBySignature?: string | null | undefined;
8402
+ createdAtLocation?: string | null | undefined;
8060
8403
  annotation?: Record<string, string | number | boolean | {
8061
8404
  type: string;
8062
8405
  filename: string;
@@ -8094,13 +8437,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8094
8437
  option: string;
8095
8438
  filename: string;
8096
8439
  originalFilename: string;
8097
- }[] | undefined> | undefined;
8098
- originalActionId?: string | undefined;
8440
+ }[] | [string, string] | undefined> | null | undefined;
8441
+ originalActionId?: string | null | undefined;
8099
8442
  }>, z.ZodObject<z.objectUtil.extendShape<{
8100
8443
  id: z.ZodString;
8444
+ transactionId: z.ZodString;
8101
8445
  createdAt: z.ZodString;
8102
8446
  createdBy: z.ZodString;
8103
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8447
+ createdByRole: z.ZodString;
8448
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8449
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
8450
+ 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
8451
  filename: z.ZodString;
8105
8452
  originalFilename: z.ZodString;
8106
8453
  type: z.ZodString;
@@ -8214,7 +8561,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8214
8561
  addressLine3?: string | null | undefined;
8215
8562
  postcodeOrZip?: string | null | undefined;
8216
8563
  }>]>>;
8217
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8564
+ 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
8565
  filename: z.ZodString;
8219
8566
  originalFilename: z.ZodString;
8220
8567
  type: z.ZodString;
@@ -8327,18 +8674,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8327
8674
  addressLine2?: string | null | undefined;
8328
8675
  addressLine3?: string | null | undefined;
8329
8676
  postcodeOrZip?: string | null | undefined;
8330
- }>]>>>;
8331
- createdAtLocation: z.ZodString;
8677
+ }>]>>>>;
8332
8678
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8333
- originalActionId: z.ZodOptional<z.ZodString>;
8679
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8334
8680
  }, {
8335
8681
  type: z.ZodLiteral<"VALIDATE">;
8336
8682
  }>, "strip", z.ZodTypeAny, {
8337
8683
  type: "VALIDATE";
8338
8684
  id: string;
8339
8685
  status: "Rejected" | "Requested" | "Accepted";
8686
+ transactionId: string;
8340
8687
  createdAt: string;
8341
8688
  createdBy: string;
8689
+ createdByRole: string;
8342
8690
  declaration: Record<string, string | number | boolean | {
8343
8691
  type: string;
8344
8692
  filename: string;
@@ -8376,8 +8724,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8376
8724
  option: string;
8377
8725
  filename: string;
8378
8726
  originalFilename: string;
8379
- }[] | undefined>;
8380
- createdAtLocation: string;
8727
+ }[] | [string, string] | undefined>;
8728
+ createdBySignature?: string | null | undefined;
8729
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8381
8730
  annotation?: Record<string, string | number | boolean | {
8382
8731
  type: string;
8383
8732
  filename: string;
@@ -8415,14 +8764,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8415
8764
  option: string;
8416
8765
  filename: string;
8417
8766
  originalFilename: string;
8418
- }[] | undefined> | undefined;
8419
- originalActionId?: string | undefined;
8767
+ }[] | [string, string] | undefined> | null | undefined;
8768
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8420
8769
  }, {
8421
8770
  type: "VALIDATE";
8422
8771
  id: string;
8423
8772
  status: "Rejected" | "Requested" | "Accepted";
8773
+ transactionId: string;
8424
8774
  createdAt: string;
8425
8775
  createdBy: string;
8776
+ createdByRole: string;
8426
8777
  declaration: Record<string, string | number | boolean | {
8427
8778
  type: string;
8428
8779
  filename: string;
@@ -8460,8 +8811,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8460
8811
  option: string;
8461
8812
  filename: string;
8462
8813
  originalFilename: string;
8463
- }[] | undefined>;
8464
- createdAtLocation: string;
8814
+ }[] | [string, string] | undefined>;
8815
+ createdBySignature?: string | null | undefined;
8816
+ createdAtLocation?: string | null | undefined;
8465
8817
  annotation?: Record<string, string | number | boolean | {
8466
8818
  type: string;
8467
8819
  filename: string;
@@ -8499,13 +8851,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8499
8851
  option: string;
8500
8852
  filename: string;
8501
8853
  originalFilename: string;
8502
- }[] | undefined> | undefined;
8503
- originalActionId?: string | undefined;
8854
+ }[] | [string, string] | undefined> | null | undefined;
8855
+ originalActionId?: string | null | undefined;
8504
8856
  }>, z.ZodObject<z.objectUtil.extendShape<{
8505
8857
  id: z.ZodString;
8858
+ transactionId: z.ZodString;
8506
8859
  createdAt: z.ZodString;
8507
8860
  createdBy: z.ZodString;
8508
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8861
+ createdByRole: z.ZodString;
8862
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8863
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
8864
+ 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
8865
  filename: z.ZodString;
8510
8866
  originalFilename: z.ZodString;
8511
8867
  type: z.ZodString;
@@ -8619,7 +8975,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8619
8975
  addressLine3?: string | null | undefined;
8620
8976
  postcodeOrZip?: string | null | undefined;
8621
8977
  }>]>>;
8622
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8978
+ 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
8979
  filename: z.ZodString;
8624
8980
  originalFilename: z.ZodString;
8625
8981
  type: z.ZodString;
@@ -8732,18 +9088,33 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8732
9088
  addressLine2?: string | null | undefined;
8733
9089
  addressLine3?: string | null | undefined;
8734
9090
  postcodeOrZip?: string | null | undefined;
8735
- }>]>>>;
8736
- createdAtLocation: z.ZodString;
9091
+ }>]>>>>;
8737
9092
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
8738
- originalActionId: z.ZodOptional<z.ZodString>;
9093
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8739
9094
  }, {
8740
9095
  type: z.ZodLiteral<"REJECT">;
9096
+ reason: z.ZodObject<{
9097
+ message: z.ZodString;
9098
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
9099
+ }, "strip", z.ZodTypeAny, {
9100
+ message: string;
9101
+ isDuplicate?: boolean | undefined;
9102
+ }, {
9103
+ message: string;
9104
+ isDuplicate?: boolean | undefined;
9105
+ }>;
8741
9106
  }>, "strip", z.ZodTypeAny, {
8742
9107
  type: "REJECT";
8743
9108
  id: string;
8744
9109
  status: "Rejected" | "Requested" | "Accepted";
9110
+ reason: {
9111
+ message: string;
9112
+ isDuplicate?: boolean | undefined;
9113
+ };
9114
+ transactionId: string;
8745
9115
  createdAt: string;
8746
9116
  createdBy: string;
9117
+ createdByRole: string;
8747
9118
  declaration: Record<string, string | number | boolean | {
8748
9119
  type: string;
8749
9120
  filename: string;
@@ -8781,8 +9152,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8781
9152
  option: string;
8782
9153
  filename: string;
8783
9154
  originalFilename: string;
8784
- }[] | undefined>;
8785
- createdAtLocation: string;
9155
+ }[] | [string, string] | undefined>;
9156
+ createdBySignature?: string | null | undefined;
9157
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
8786
9158
  annotation?: Record<string, string | number | boolean | {
8787
9159
  type: string;
8788
9160
  filename: string;
@@ -8820,14 +9192,20 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8820
9192
  option: string;
8821
9193
  filename: string;
8822
9194
  originalFilename: string;
8823
- }[] | undefined> | undefined;
8824
- originalActionId?: string | undefined;
9195
+ }[] | [string, string] | undefined> | null | undefined;
9196
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8825
9197
  }, {
8826
9198
  type: "REJECT";
8827
9199
  id: string;
8828
9200
  status: "Rejected" | "Requested" | "Accepted";
9201
+ reason: {
9202
+ message: string;
9203
+ isDuplicate?: boolean | undefined;
9204
+ };
9205
+ transactionId: string;
8829
9206
  createdAt: string;
8830
9207
  createdBy: string;
9208
+ createdByRole: string;
8831
9209
  declaration: Record<string, string | number | boolean | {
8832
9210
  type: string;
8833
9211
  filename: string;
@@ -8865,8 +9243,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8865
9243
  option: string;
8866
9244
  filename: string;
8867
9245
  originalFilename: string;
8868
- }[] | undefined>;
8869
- createdAtLocation: string;
9246
+ }[] | [string, string] | undefined>;
9247
+ createdBySignature?: string | null | undefined;
9248
+ createdAtLocation?: string | null | undefined;
8870
9249
  annotation?: Record<string, string | number | boolean | {
8871
9250
  type: string;
8872
9251
  filename: string;
@@ -8904,13 +9283,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8904
9283
  option: string;
8905
9284
  filename: string;
8906
9285
  originalFilename: string;
8907
- }[] | undefined> | undefined;
8908
- originalActionId?: string | undefined;
9286
+ }[] | [string, string] | undefined> | null | undefined;
9287
+ originalActionId?: string | null | undefined;
8909
9288
  }>, z.ZodObject<z.objectUtil.extendShape<{
8910
9289
  id: z.ZodString;
9290
+ transactionId: z.ZodString;
8911
9291
  createdAt: z.ZodString;
8912
9292
  createdBy: z.ZodString;
8913
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9293
+ createdByRole: z.ZodString;
9294
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9295
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
9296
+ 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
9297
  filename: z.ZodString;
8915
9298
  originalFilename: z.ZodString;
8916
9299
  type: z.ZodString;
@@ -9024,7 +9407,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9024
9407
  addressLine3?: string | null | undefined;
9025
9408
  postcodeOrZip?: string | null | undefined;
9026
9409
  }>]>>;
9027
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9410
+ 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
9411
  filename: z.ZodString;
9029
9412
  originalFilename: z.ZodString;
9030
9413
  type: z.ZodString;
@@ -9137,18 +9520,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9137
9520
  addressLine2?: string | null | undefined;
9138
9521
  addressLine3?: string | null | undefined;
9139
9522
  postcodeOrZip?: string | null | undefined;
9140
- }>]>>>;
9141
- createdAtLocation: z.ZodString;
9523
+ }>]>>>>;
9142
9524
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9143
- originalActionId: z.ZodOptional<z.ZodString>;
9525
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9144
9526
  }, {
9145
9527
  type: z.ZodLiteral<"MARKED_AS_DUPLICATE">;
9146
9528
  }>, "strip", z.ZodTypeAny, {
9147
9529
  type: "MARKED_AS_DUPLICATE";
9148
9530
  id: string;
9149
9531
  status: "Rejected" | "Requested" | "Accepted";
9532
+ transactionId: string;
9150
9533
  createdAt: string;
9151
9534
  createdBy: string;
9535
+ createdByRole: string;
9152
9536
  declaration: Record<string, string | number | boolean | {
9153
9537
  type: string;
9154
9538
  filename: string;
@@ -9186,8 +9570,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9186
9570
  option: string;
9187
9571
  filename: string;
9188
9572
  originalFilename: string;
9189
- }[] | undefined>;
9190
- createdAtLocation: string;
9573
+ }[] | [string, string] | undefined>;
9574
+ createdBySignature?: string | null | undefined;
9575
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
9191
9576
  annotation?: Record<string, string | number | boolean | {
9192
9577
  type: string;
9193
9578
  filename: string;
@@ -9225,14 +9610,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9225
9610
  option: string;
9226
9611
  filename: string;
9227
9612
  originalFilename: string;
9228
- }[] | undefined> | undefined;
9229
- originalActionId?: string | undefined;
9613
+ }[] | [string, string] | undefined> | null | undefined;
9614
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9230
9615
  }, {
9231
9616
  type: "MARKED_AS_DUPLICATE";
9232
9617
  id: string;
9233
9618
  status: "Rejected" | "Requested" | "Accepted";
9619
+ transactionId: string;
9234
9620
  createdAt: string;
9235
9621
  createdBy: string;
9622
+ createdByRole: string;
9236
9623
  declaration: Record<string, string | number | boolean | {
9237
9624
  type: string;
9238
9625
  filename: string;
@@ -9270,8 +9657,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9270
9657
  option: string;
9271
9658
  filename: string;
9272
9659
  originalFilename: string;
9273
- }[] | undefined>;
9274
- createdAtLocation: string;
9660
+ }[] | [string, string] | undefined>;
9661
+ createdBySignature?: string | null | undefined;
9662
+ createdAtLocation?: string | null | undefined;
9275
9663
  annotation?: Record<string, string | number | boolean | {
9276
9664
  type: string;
9277
9665
  filename: string;
@@ -9309,13 +9697,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9309
9697
  option: string;
9310
9698
  filename: string;
9311
9699
  originalFilename: string;
9312
- }[] | undefined> | undefined;
9313
- originalActionId?: string | undefined;
9700
+ }[] | [string, string] | undefined> | null | undefined;
9701
+ originalActionId?: string | null | undefined;
9314
9702
  }>, z.ZodObject<z.objectUtil.extendShape<{
9315
9703
  id: z.ZodString;
9704
+ transactionId: z.ZodString;
9316
9705
  createdAt: z.ZodString;
9317
9706
  createdBy: z.ZodString;
9318
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9707
+ createdByRole: z.ZodString;
9708
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9709
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
9710
+ 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
9711
  filename: z.ZodString;
9320
9712
  originalFilename: z.ZodString;
9321
9713
  type: z.ZodString;
@@ -9429,7 +9821,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9429
9821
  addressLine3?: string | null | undefined;
9430
9822
  postcodeOrZip?: string | null | undefined;
9431
9823
  }>]>>;
9432
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9824
+ 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
9825
  filename: z.ZodString;
9434
9826
  originalFilename: z.ZodString;
9435
9827
  type: z.ZodString;
@@ -9542,18 +9934,33 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9542
9934
  addressLine2?: string | null | undefined;
9543
9935
  addressLine3?: string | null | undefined;
9544
9936
  postcodeOrZip?: string | null | undefined;
9545
- }>]>>>;
9546
- createdAtLocation: z.ZodString;
9937
+ }>]>>>>;
9547
9938
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9548
- originalActionId: z.ZodOptional<z.ZodString>;
9939
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9549
9940
  }, {
9550
9941
  type: z.ZodLiteral<"ARCHIVE">;
9942
+ reason: z.ZodObject<{
9943
+ message: z.ZodString;
9944
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
9945
+ }, "strip", z.ZodTypeAny, {
9946
+ message: string;
9947
+ isDuplicate?: boolean | undefined;
9948
+ }, {
9949
+ message: string;
9950
+ isDuplicate?: boolean | undefined;
9951
+ }>;
9551
9952
  }>, "strip", z.ZodTypeAny, {
9552
9953
  type: "ARCHIVE";
9553
9954
  id: string;
9554
9955
  status: "Rejected" | "Requested" | "Accepted";
9956
+ reason: {
9957
+ message: string;
9958
+ isDuplicate?: boolean | undefined;
9959
+ };
9960
+ transactionId: string;
9555
9961
  createdAt: string;
9556
9962
  createdBy: string;
9963
+ createdByRole: string;
9557
9964
  declaration: Record<string, string | number | boolean | {
9558
9965
  type: string;
9559
9966
  filename: string;
@@ -9591,8 +9998,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9591
9998
  option: string;
9592
9999
  filename: string;
9593
10000
  originalFilename: string;
9594
- }[] | undefined>;
9595
- createdAtLocation: string;
10001
+ }[] | [string, string] | undefined>;
10002
+ createdBySignature?: string | null | undefined;
10003
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
9596
10004
  annotation?: Record<string, string | number | boolean | {
9597
10005
  type: string;
9598
10006
  filename: string;
@@ -9630,14 +10038,20 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9630
10038
  option: string;
9631
10039
  filename: string;
9632
10040
  originalFilename: string;
9633
- }[] | undefined> | undefined;
9634
- originalActionId?: string | undefined;
10041
+ }[] | [string, string] | undefined> | null | undefined;
10042
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9635
10043
  }, {
9636
10044
  type: "ARCHIVE";
9637
10045
  id: string;
9638
10046
  status: "Rejected" | "Requested" | "Accepted";
10047
+ reason: {
10048
+ message: string;
10049
+ isDuplicate?: boolean | undefined;
10050
+ };
10051
+ transactionId: string;
9639
10052
  createdAt: string;
9640
10053
  createdBy: string;
10054
+ createdByRole: string;
9641
10055
  declaration: Record<string, string | number | boolean | {
9642
10056
  type: string;
9643
10057
  filename: string;
@@ -9675,8 +10089,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9675
10089
  option: string;
9676
10090
  filename: string;
9677
10091
  originalFilename: string;
9678
- }[] | undefined>;
9679
- createdAtLocation: string;
10092
+ }[] | [string, string] | undefined>;
10093
+ createdBySignature?: string | null | undefined;
10094
+ createdAtLocation?: string | null | undefined;
9680
10095
  annotation?: Record<string, string | number | boolean | {
9681
10096
  type: string;
9682
10097
  filename: string;
@@ -9714,13 +10129,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9714
10129
  option: string;
9715
10130
  filename: string;
9716
10131
  originalFilename: string;
9717
- }[] | undefined> | undefined;
9718
- originalActionId?: string | undefined;
10132
+ }[] | [string, string] | undefined> | null | undefined;
10133
+ originalActionId?: string | null | undefined;
9719
10134
  }>, z.ZodObject<z.objectUtil.extendShape<{
9720
10135
  id: z.ZodString;
10136
+ transactionId: z.ZodString;
9721
10137
  createdAt: z.ZodString;
9722
10138
  createdBy: z.ZodString;
9723
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10139
+ createdByRole: z.ZodString;
10140
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10141
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
10142
+ 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
10143
  filename: z.ZodString;
9725
10144
  originalFilename: z.ZodString;
9726
10145
  type: z.ZodString;
@@ -9834,7 +10253,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9834
10253
  addressLine3?: string | null | undefined;
9835
10254
  postcodeOrZip?: string | null | undefined;
9836
10255
  }>]>>;
9837
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10256
+ 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
10257
  filename: z.ZodString;
9839
10258
  originalFilename: z.ZodString;
9840
10259
  type: z.ZodString;
@@ -9947,18 +10366,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9947
10366
  addressLine2?: string | null | undefined;
9948
10367
  addressLine3?: string | null | undefined;
9949
10368
  postcodeOrZip?: string | null | undefined;
9950
- }>]>>>;
9951
- createdAtLocation: z.ZodString;
10369
+ }>]>>>>;
9952
10370
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
9953
- originalActionId: z.ZodOptional<z.ZodString>;
10371
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
9954
10372
  }, {
9955
10373
  type: z.ZodLiteral<"NOTIFY">;
9956
10374
  }>, "strip", z.ZodTypeAny, {
9957
10375
  type: "NOTIFY";
9958
10376
  id: string;
9959
10377
  status: "Rejected" | "Requested" | "Accepted";
10378
+ transactionId: string;
9960
10379
  createdAt: string;
9961
10380
  createdBy: string;
10381
+ createdByRole: string;
9962
10382
  declaration: Record<string, string | number | boolean | {
9963
10383
  type: string;
9964
10384
  filename: string;
@@ -9996,8 +10416,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9996
10416
  option: string;
9997
10417
  filename: string;
9998
10418
  originalFilename: string;
9999
- }[] | undefined>;
10000
- createdAtLocation: string;
10419
+ }[] | [string, string] | undefined>;
10420
+ createdBySignature?: string | null | undefined;
10421
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10001
10422
  annotation?: Record<string, string | number | boolean | {
10002
10423
  type: string;
10003
10424
  filename: string;
@@ -10035,14 +10456,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10035
10456
  option: string;
10036
10457
  filename: string;
10037
10458
  originalFilename: string;
10038
- }[] | undefined> | undefined;
10039
- originalActionId?: string | undefined;
10459
+ }[] | [string, string] | undefined> | null | undefined;
10460
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10040
10461
  }, {
10041
10462
  type: "NOTIFY";
10042
10463
  id: string;
10043
10464
  status: "Rejected" | "Requested" | "Accepted";
10465
+ transactionId: string;
10044
10466
  createdAt: string;
10045
10467
  createdBy: string;
10468
+ createdByRole: string;
10046
10469
  declaration: Record<string, string | number | boolean | {
10047
10470
  type: string;
10048
10471
  filename: string;
@@ -10080,8 +10503,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10080
10503
  option: string;
10081
10504
  filename: string;
10082
10505
  originalFilename: string;
10083
- }[] | undefined>;
10084
- createdAtLocation: string;
10506
+ }[] | [string, string] | undefined>;
10507
+ createdBySignature?: string | null | undefined;
10508
+ createdAtLocation?: string | null | undefined;
10085
10509
  annotation?: Record<string, string | number | boolean | {
10086
10510
  type: string;
10087
10511
  filename: string;
@@ -10119,13 +10543,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10119
10543
  option: string;
10120
10544
  filename: string;
10121
10545
  originalFilename: string;
10122
- }[] | undefined> | undefined;
10123
- originalActionId?: string | undefined;
10546
+ }[] | [string, string] | undefined> | null | undefined;
10547
+ originalActionId?: string | null | undefined;
10124
10548
  }>, z.ZodObject<z.objectUtil.extendShape<{
10125
10549
  id: z.ZodString;
10550
+ transactionId: z.ZodString;
10126
10551
  createdAt: z.ZodString;
10127
10552
  createdBy: z.ZodString;
10128
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10553
+ createdByRole: z.ZodString;
10554
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10555
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
10556
+ 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
10557
  filename: z.ZodString;
10130
10558
  originalFilename: z.ZodString;
10131
10559
  type: z.ZodString;
@@ -10239,7 +10667,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10239
10667
  addressLine3?: string | null | undefined;
10240
10668
  postcodeOrZip?: string | null | undefined;
10241
10669
  }>]>>;
10242
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10670
+ 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
10671
  filename: z.ZodString;
10244
10672
  originalFilename: z.ZodString;
10245
10673
  type: z.ZodString;
@@ -10352,10 +10780,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10352
10780
  addressLine2?: string | null | undefined;
10353
10781
  addressLine3?: string | null | undefined;
10354
10782
  postcodeOrZip?: string | null | undefined;
10355
- }>]>>>;
10356
- createdAtLocation: z.ZodString;
10783
+ }>]>>>>;
10357
10784
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10358
- originalActionId: z.ZodOptional<z.ZodString>;
10785
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
10359
10786
  }, {
10360
10787
  type: z.ZodLiteral<"REGISTER">;
10361
10788
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -10363,8 +10790,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10363
10790
  type: "REGISTER";
10364
10791
  id: string;
10365
10792
  status: "Rejected" | "Requested" | "Accepted";
10793
+ transactionId: string;
10366
10794
  createdAt: string;
10367
10795
  createdBy: string;
10796
+ createdByRole: string;
10368
10797
  declaration: Record<string, string | number | boolean | {
10369
10798
  type: string;
10370
10799
  filename: string;
@@ -10402,8 +10831,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10402
10831
  option: string;
10403
10832
  filename: string;
10404
10833
  originalFilename: string;
10405
- }[] | undefined>;
10406
- createdAtLocation: string;
10834
+ }[] | [string, string] | undefined>;
10835
+ createdBySignature?: string | null | undefined;
10836
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10407
10837
  annotation?: Record<string, string | number | boolean | {
10408
10838
  type: string;
10409
10839
  filename: string;
@@ -10441,15 +10871,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10441
10871
  option: string;
10442
10872
  filename: string;
10443
10873
  originalFilename: string;
10444
- }[] | undefined> | undefined;
10445
- originalActionId?: string | undefined;
10874
+ }[] | [string, string] | undefined> | null | undefined;
10875
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10446
10876
  registrationNumber?: string | undefined;
10447
10877
  }, {
10448
10878
  type: "REGISTER";
10449
10879
  id: string;
10450
10880
  status: "Rejected" | "Requested" | "Accepted";
10881
+ transactionId: string;
10451
10882
  createdAt: string;
10452
10883
  createdBy: string;
10884
+ createdByRole: string;
10453
10885
  declaration: Record<string, string | number | boolean | {
10454
10886
  type: string;
10455
10887
  filename: string;
@@ -10487,8 +10919,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10487
10919
  option: string;
10488
10920
  filename: string;
10489
10921
  originalFilename: string;
10490
- }[] | undefined>;
10491
- createdAtLocation: string;
10922
+ }[] | [string, string] | undefined>;
10923
+ createdBySignature?: string | null | undefined;
10924
+ createdAtLocation?: string | null | undefined;
10492
10925
  annotation?: Record<string, string | number | boolean | {
10493
10926
  type: string;
10494
10927
  filename: string;
@@ -10526,14 +10959,18 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10526
10959
  option: string;
10527
10960
  filename: string;
10528
10961
  originalFilename: string;
10529
- }[] | undefined> | undefined;
10530
- originalActionId?: string | undefined;
10962
+ }[] | [string, string] | undefined> | null | undefined;
10963
+ originalActionId?: string | null | undefined;
10531
10964
  registrationNumber?: string | undefined;
10532
10965
  }>, z.ZodObject<z.objectUtil.extendShape<{
10533
10966
  id: z.ZodString;
10967
+ transactionId: z.ZodString;
10534
10968
  createdAt: z.ZodString;
10535
10969
  createdBy: z.ZodString;
10536
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10970
+ createdByRole: z.ZodString;
10971
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10972
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
10973
+ 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
10974
  filename: z.ZodString;
10538
10975
  originalFilename: z.ZodString;
10539
10976
  type: z.ZodString;
@@ -10647,7 +11084,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10647
11084
  addressLine3?: string | null | undefined;
10648
11085
  postcodeOrZip?: string | null | undefined;
10649
11086
  }>]>>;
10650
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11087
+ 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
11088
  filename: z.ZodString;
10652
11089
  originalFilename: z.ZodString;
10653
11090
  type: z.ZodString;
@@ -10760,18 +11197,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10760
11197
  addressLine2?: string | null | undefined;
10761
11198
  addressLine3?: string | null | undefined;
10762
11199
  postcodeOrZip?: string | null | undefined;
10763
- }>]>>>;
10764
- createdAtLocation: z.ZodString;
11200
+ }>]>>>>;
10765
11201
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
10766
- originalActionId: z.ZodOptional<z.ZodString>;
11202
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
10767
11203
  }, {
10768
11204
  type: z.ZodLiteral<"DECLARE">;
10769
11205
  }>, "strip", z.ZodTypeAny, {
10770
11206
  type: "DECLARE";
10771
11207
  id: string;
10772
11208
  status: "Rejected" | "Requested" | "Accepted";
11209
+ transactionId: string;
10773
11210
  createdAt: string;
10774
11211
  createdBy: string;
11212
+ createdByRole: string;
10775
11213
  declaration: Record<string, string | number | boolean | {
10776
11214
  type: string;
10777
11215
  filename: string;
@@ -10809,8 +11247,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10809
11247
  option: string;
10810
11248
  filename: string;
10811
11249
  originalFilename: string;
10812
- }[] | undefined>;
10813
- createdAtLocation: string;
11250
+ }[] | [string, string] | undefined>;
11251
+ createdBySignature?: string | null | undefined;
11252
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
10814
11253
  annotation?: Record<string, string | number | boolean | {
10815
11254
  type: string;
10816
11255
  filename: string;
@@ -10848,14 +11287,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10848
11287
  option: string;
10849
11288
  filename: string;
10850
11289
  originalFilename: string;
10851
- }[] | undefined> | undefined;
10852
- originalActionId?: string | undefined;
11290
+ }[] | [string, string] | undefined> | null | undefined;
11291
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
10853
11292
  }, {
10854
11293
  type: "DECLARE";
10855
11294
  id: string;
10856
11295
  status: "Rejected" | "Requested" | "Accepted";
11296
+ transactionId: string;
10857
11297
  createdAt: string;
10858
11298
  createdBy: string;
11299
+ createdByRole: string;
10859
11300
  declaration: Record<string, string | number | boolean | {
10860
11301
  type: string;
10861
11302
  filename: string;
@@ -10893,8 +11334,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10893
11334
  option: string;
10894
11335
  filename: string;
10895
11336
  originalFilename: string;
10896
- }[] | undefined>;
10897
- createdAtLocation: string;
11337
+ }[] | [string, string] | undefined>;
11338
+ createdBySignature?: string | null | undefined;
11339
+ createdAtLocation?: string | null | undefined;
10898
11340
  annotation?: Record<string, string | number | boolean | {
10899
11341
  type: string;
10900
11342
  filename: string;
@@ -10932,13 +11374,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10932
11374
  option: string;
10933
11375
  filename: string;
10934
11376
  originalFilename: string;
10935
- }[] | undefined> | undefined;
10936
- originalActionId?: string | undefined;
11377
+ }[] | [string, string] | undefined> | null | undefined;
11378
+ originalActionId?: string | null | undefined;
10937
11379
  }>, z.ZodObject<z.objectUtil.extendShape<{
10938
11380
  id: z.ZodString;
11381
+ transactionId: z.ZodString;
10939
11382
  createdAt: z.ZodString;
10940
11383
  createdBy: z.ZodString;
10941
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11384
+ createdByRole: z.ZodString;
11385
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11386
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11387
+ 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
11388
  filename: z.ZodString;
10943
11389
  originalFilename: z.ZodString;
10944
11390
  type: z.ZodString;
@@ -11052,7 +11498,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11052
11498
  addressLine3?: string | null | undefined;
11053
11499
  postcodeOrZip?: string | null | undefined;
11054
11500
  }>]>>;
11055
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11501
+ 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
11502
  filename: z.ZodString;
11057
11503
  originalFilename: z.ZodString;
11058
11504
  type: z.ZodString;
@@ -11165,10 +11611,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11165
11611
  addressLine2?: string | null | undefined;
11166
11612
  addressLine3?: string | null | undefined;
11167
11613
  postcodeOrZip?: string | null | undefined;
11168
- }>]>>>;
11169
- createdAtLocation: z.ZodString;
11614
+ }>]>>>>;
11170
11615
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11171
- originalActionId: z.ZodOptional<z.ZodString>;
11616
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11172
11617
  }, {
11173
11618
  type: z.ZodLiteral<"ASSIGN">;
11174
11619
  assignedTo: z.ZodString;
@@ -11176,8 +11621,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11176
11621
  type: "ASSIGN";
11177
11622
  id: string;
11178
11623
  status: "Rejected" | "Requested" | "Accepted";
11624
+ transactionId: string;
11179
11625
  createdAt: string;
11180
11626
  createdBy: string;
11627
+ createdByRole: string;
11181
11628
  declaration: Record<string, string | number | boolean | {
11182
11629
  type: string;
11183
11630
  filename: string;
@@ -11215,9 +11662,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11215
11662
  option: string;
11216
11663
  filename: string;
11217
11664
  originalFilename: string;
11218
- }[] | undefined>;
11219
- createdAtLocation: string;
11665
+ }[] | [string, string] | undefined>;
11220
11666
  assignedTo: string;
11667
+ createdBySignature?: string | null | undefined;
11668
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
11221
11669
  annotation?: Record<string, string | number | boolean | {
11222
11670
  type: string;
11223
11671
  filename: string;
@@ -11255,14 +11703,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11255
11703
  option: string;
11256
11704
  filename: string;
11257
11705
  originalFilename: string;
11258
- }[] | undefined> | undefined;
11259
- originalActionId?: string | undefined;
11706
+ }[] | [string, string] | undefined> | null | undefined;
11707
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11260
11708
  }, {
11261
11709
  type: "ASSIGN";
11262
11710
  id: string;
11263
11711
  status: "Rejected" | "Requested" | "Accepted";
11712
+ transactionId: string;
11264
11713
  createdAt: string;
11265
11714
  createdBy: string;
11715
+ createdByRole: string;
11266
11716
  declaration: Record<string, string | number | boolean | {
11267
11717
  type: string;
11268
11718
  filename: string;
@@ -11300,9 +11750,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11300
11750
  option: string;
11301
11751
  filename: string;
11302
11752
  originalFilename: string;
11303
- }[] | undefined>;
11304
- createdAtLocation: string;
11753
+ }[] | [string, string] | undefined>;
11305
11754
  assignedTo: string;
11755
+ createdBySignature?: string | null | undefined;
11756
+ createdAtLocation?: string | null | undefined;
11306
11757
  annotation?: Record<string, string | number | boolean | {
11307
11758
  type: string;
11308
11759
  filename: string;
@@ -11340,13 +11791,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11340
11791
  option: string;
11341
11792
  filename: string;
11342
11793
  originalFilename: string;
11343
- }[] | undefined> | undefined;
11344
- originalActionId?: string | undefined;
11794
+ }[] | [string, string] | undefined> | null | undefined;
11795
+ originalActionId?: string | null | undefined;
11345
11796
  }>, z.ZodObject<z.objectUtil.extendShape<{
11346
11797
  id: z.ZodString;
11798
+ transactionId: z.ZodString;
11347
11799
  createdAt: z.ZodString;
11348
11800
  createdBy: z.ZodString;
11349
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11801
+ createdByRole: z.ZodString;
11802
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11803
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11804
+ 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
11805
  filename: z.ZodString;
11351
11806
  originalFilename: z.ZodString;
11352
11807
  type: z.ZodString;
@@ -11460,7 +11915,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11460
11915
  addressLine3?: string | null | undefined;
11461
11916
  postcodeOrZip?: string | null | undefined;
11462
11917
  }>]>>;
11463
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11918
+ 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
11919
  filename: z.ZodString;
11465
11920
  originalFilename: z.ZodString;
11466
11921
  type: z.ZodString;
@@ -11573,18 +12028,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11573
12028
  addressLine2?: string | null | undefined;
11574
12029
  addressLine3?: string | null | undefined;
11575
12030
  postcodeOrZip?: string | null | undefined;
11576
- }>]>>>;
11577
- createdAtLocation: z.ZodString;
12031
+ }>]>>>>;
11578
12032
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11579
- originalActionId: z.ZodOptional<z.ZodString>;
12033
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11580
12034
  }, {
11581
12035
  type: z.ZodLiteral<"REQUEST_CORRECTION">;
11582
12036
  }>, "strip", z.ZodTypeAny, {
11583
12037
  type: "REQUEST_CORRECTION";
11584
12038
  id: string;
11585
12039
  status: "Rejected" | "Requested" | "Accepted";
12040
+ transactionId: string;
11586
12041
  createdAt: string;
11587
12042
  createdBy: string;
12043
+ createdByRole: string;
11588
12044
  declaration: Record<string, string | number | boolean | {
11589
12045
  type: string;
11590
12046
  filename: string;
@@ -11622,8 +12078,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11622
12078
  option: string;
11623
12079
  filename: string;
11624
12080
  originalFilename: string;
11625
- }[] | undefined>;
11626
- createdAtLocation: string;
12081
+ }[] | [string, string] | undefined>;
12082
+ createdBySignature?: string | null | undefined;
12083
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
11627
12084
  annotation?: Record<string, string | number | boolean | {
11628
12085
  type: string;
11629
12086
  filename: string;
@@ -11661,14 +12118,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11661
12118
  option: string;
11662
12119
  filename: string;
11663
12120
  originalFilename: string;
11664
- }[] | undefined> | undefined;
11665
- originalActionId?: string | undefined;
12121
+ }[] | [string, string] | undefined> | null | undefined;
12122
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
11666
12123
  }, {
11667
12124
  type: "REQUEST_CORRECTION";
11668
12125
  id: string;
11669
12126
  status: "Rejected" | "Requested" | "Accepted";
12127
+ transactionId: string;
11670
12128
  createdAt: string;
11671
12129
  createdBy: string;
12130
+ createdByRole: string;
11672
12131
  declaration: Record<string, string | number | boolean | {
11673
12132
  type: string;
11674
12133
  filename: string;
@@ -11706,8 +12165,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11706
12165
  option: string;
11707
12166
  filename: string;
11708
12167
  originalFilename: string;
11709
- }[] | undefined>;
11710
- createdAtLocation: string;
12168
+ }[] | [string, string] | undefined>;
12169
+ createdBySignature?: string | null | undefined;
12170
+ createdAtLocation?: string | null | undefined;
11711
12171
  annotation?: Record<string, string | number | boolean | {
11712
12172
  type: string;
11713
12173
  filename: string;
@@ -11745,13 +12205,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11745
12205
  option: string;
11746
12206
  filename: string;
11747
12207
  originalFilename: string;
11748
- }[] | undefined> | undefined;
11749
- originalActionId?: string | undefined;
12208
+ }[] | [string, string] | undefined> | null | undefined;
12209
+ originalActionId?: string | null | undefined;
11750
12210
  }>, z.ZodObject<z.objectUtil.extendShape<{
11751
12211
  id: z.ZodString;
12212
+ transactionId: z.ZodString;
11752
12213
  createdAt: z.ZodString;
11753
12214
  createdBy: z.ZodString;
11754
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12215
+ createdByRole: z.ZodString;
12216
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12217
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
12218
+ 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
12219
  filename: z.ZodString;
11756
12220
  originalFilename: z.ZodString;
11757
12221
  type: z.ZodString;
@@ -11865,7 +12329,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11865
12329
  addressLine3?: string | null | undefined;
11866
12330
  postcodeOrZip?: string | null | undefined;
11867
12331
  }>]>>;
11868
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12332
+ 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
12333
  filename: z.ZodString;
11870
12334
  originalFilename: z.ZodString;
11871
12335
  type: z.ZodString;
@@ -11978,10 +12442,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11978
12442
  addressLine2?: string | null | undefined;
11979
12443
  addressLine3?: string | null | undefined;
11980
12444
  postcodeOrZip?: string | null | undefined;
11981
- }>]>>>;
11982
- createdAtLocation: z.ZodString;
12445
+ }>]>>>>;
11983
12446
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
11984
- originalActionId: z.ZodOptional<z.ZodString>;
12447
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
11985
12448
  }, {
11986
12449
  type: z.ZodLiteral<"APPROVE_CORRECTION">;
11987
12450
  requestId: z.ZodString;
@@ -11989,8 +12452,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11989
12452
  type: "APPROVE_CORRECTION";
11990
12453
  id: string;
11991
12454
  status: "Rejected" | "Requested" | "Accepted";
12455
+ transactionId: string;
11992
12456
  createdAt: string;
11993
12457
  createdBy: string;
12458
+ createdByRole: string;
11994
12459
  declaration: Record<string, string | number | boolean | {
11995
12460
  type: string;
11996
12461
  filename: string;
@@ -12028,9 +12493,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12028
12493
  option: string;
12029
12494
  filename: string;
12030
12495
  originalFilename: string;
12031
- }[] | undefined>;
12032
- createdAtLocation: string;
12496
+ }[] | [string, string] | undefined>;
12033
12497
  requestId: string;
12498
+ createdBySignature?: string | null | undefined;
12499
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
12034
12500
  annotation?: Record<string, string | number | boolean | {
12035
12501
  type: string;
12036
12502
  filename: string;
@@ -12068,14 +12534,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12068
12534
  option: string;
12069
12535
  filename: string;
12070
12536
  originalFilename: string;
12071
- }[] | undefined> | undefined;
12072
- originalActionId?: string | undefined;
12537
+ }[] | [string, string] | undefined> | null | undefined;
12538
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12073
12539
  }, {
12074
12540
  type: "APPROVE_CORRECTION";
12075
12541
  id: string;
12076
12542
  status: "Rejected" | "Requested" | "Accepted";
12543
+ transactionId: string;
12077
12544
  createdAt: string;
12078
12545
  createdBy: string;
12546
+ createdByRole: string;
12079
12547
  declaration: Record<string, string | number | boolean | {
12080
12548
  type: string;
12081
12549
  filename: string;
@@ -12113,9 +12581,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12113
12581
  option: string;
12114
12582
  filename: string;
12115
12583
  originalFilename: string;
12116
- }[] | undefined>;
12117
- createdAtLocation: string;
12584
+ }[] | [string, string] | undefined>;
12118
12585
  requestId: string;
12586
+ createdBySignature?: string | null | undefined;
12587
+ createdAtLocation?: string | null | undefined;
12119
12588
  annotation?: Record<string, string | number | boolean | {
12120
12589
  type: string;
12121
12590
  filename: string;
@@ -12153,13 +12622,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12153
12622
  option: string;
12154
12623
  filename: string;
12155
12624
  originalFilename: string;
12156
- }[] | undefined> | undefined;
12157
- originalActionId?: string | undefined;
12625
+ }[] | [string, string] | undefined> | null | undefined;
12626
+ originalActionId?: string | null | undefined;
12158
12627
  }>, z.ZodObject<z.objectUtil.extendShape<{
12159
12628
  id: z.ZodString;
12629
+ transactionId: z.ZodString;
12160
12630
  createdAt: z.ZodString;
12161
12631
  createdBy: z.ZodString;
12162
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12632
+ createdByRole: z.ZodString;
12633
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12634
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
12635
+ 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
12636
  filename: z.ZodString;
12164
12637
  originalFilename: z.ZodString;
12165
12638
  type: z.ZodString;
@@ -12273,7 +12746,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12273
12746
  addressLine3?: string | null | undefined;
12274
12747
  postcodeOrZip?: string | null | undefined;
12275
12748
  }>]>>;
12276
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12749
+ 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
12750
  filename: z.ZodString;
12278
12751
  originalFilename: z.ZodString;
12279
12752
  type: z.ZodString;
@@ -12386,10 +12859,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12386
12859
  addressLine2?: string | null | undefined;
12387
12860
  addressLine3?: string | null | undefined;
12388
12861
  postcodeOrZip?: string | null | undefined;
12389
- }>]>>>;
12390
- createdAtLocation: z.ZodString;
12862
+ }>]>>>>;
12391
12863
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12392
- originalActionId: z.ZodOptional<z.ZodString>;
12864
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
12393
12865
  }, {
12394
12866
  type: z.ZodLiteral<"REJECT_CORRECTION">;
12395
12867
  requestId: z.ZodString;
@@ -12397,8 +12869,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12397
12869
  type: "REJECT_CORRECTION";
12398
12870
  id: string;
12399
12871
  status: "Rejected" | "Requested" | "Accepted";
12872
+ transactionId: string;
12400
12873
  createdAt: string;
12401
12874
  createdBy: string;
12875
+ createdByRole: string;
12402
12876
  declaration: Record<string, string | number | boolean | {
12403
12877
  type: string;
12404
12878
  filename: string;
@@ -12436,9 +12910,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12436
12910
  option: string;
12437
12911
  filename: string;
12438
12912
  originalFilename: string;
12439
- }[] | undefined>;
12440
- createdAtLocation: string;
12913
+ }[] | [string, string] | undefined>;
12441
12914
  requestId: string;
12915
+ createdBySignature?: string | null | undefined;
12916
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
12442
12917
  annotation?: Record<string, string | number | boolean | {
12443
12918
  type: string;
12444
12919
  filename: string;
@@ -12476,14 +12951,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12476
12951
  option: string;
12477
12952
  filename: string;
12478
12953
  originalFilename: string;
12479
- }[] | undefined> | undefined;
12480
- originalActionId?: string | undefined;
12954
+ }[] | [string, string] | undefined> | null | undefined;
12955
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12481
12956
  }, {
12482
12957
  type: "REJECT_CORRECTION";
12483
12958
  id: string;
12484
12959
  status: "Rejected" | "Requested" | "Accepted";
12960
+ transactionId: string;
12485
12961
  createdAt: string;
12486
12962
  createdBy: string;
12963
+ createdByRole: string;
12487
12964
  declaration: Record<string, string | number | boolean | {
12488
12965
  type: string;
12489
12966
  filename: string;
@@ -12521,9 +12998,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12521
12998
  option: string;
12522
12999
  filename: string;
12523
13000
  originalFilename: string;
12524
- }[] | undefined>;
12525
- createdAtLocation: string;
13001
+ }[] | [string, string] | undefined>;
12526
13002
  requestId: string;
13003
+ createdBySignature?: string | null | undefined;
13004
+ createdAtLocation?: string | null | undefined;
12527
13005
  annotation?: Record<string, string | number | boolean | {
12528
13006
  type: string;
12529
13007
  filename: string;
@@ -12561,13 +13039,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12561
13039
  option: string;
12562
13040
  filename: string;
12563
13041
  originalFilename: string;
12564
- }[] | undefined> | undefined;
12565
- originalActionId?: string | undefined;
13042
+ }[] | [string, string] | undefined> | null | undefined;
13043
+ originalActionId?: string | null | undefined;
12566
13044
  }>, z.ZodObject<z.objectUtil.extendShape<{
12567
13045
  id: z.ZodString;
13046
+ transactionId: z.ZodString;
12568
13047
  createdAt: z.ZodString;
12569
13048
  createdBy: z.ZodString;
12570
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13049
+ createdByRole: z.ZodString;
13050
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13051
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13052
+ 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
13053
  filename: z.ZodString;
12572
13054
  originalFilename: z.ZodString;
12573
13055
  type: z.ZodString;
@@ -12681,7 +13163,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12681
13163
  addressLine3?: string | null | undefined;
12682
13164
  postcodeOrZip?: string | null | undefined;
12683
13165
  }>]>>;
12684
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13166
+ 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
13167
  filename: z.ZodString;
12686
13168
  originalFilename: z.ZodString;
12687
13169
  type: z.ZodString;
@@ -12794,19 +13276,20 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12794
13276
  addressLine2?: string | null | undefined;
12795
13277
  addressLine3?: string | null | undefined;
12796
13278
  postcodeOrZip?: string | null | undefined;
12797
- }>]>>>;
12798
- createdAtLocation: z.ZodString;
13279
+ }>]>>>>;
12799
13280
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
12800
- originalActionId: z.ZodOptional<z.ZodString>;
13281
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
12801
13282
  }, {
12802
13283
  type: z.ZodLiteral<"UNASSIGN">;
12803
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
13284
+ assignedTo: z.ZodLiteral<null>;
12804
13285
  }>, "strip", z.ZodTypeAny, {
12805
13286
  type: "UNASSIGN";
12806
13287
  id: string;
12807
13288
  status: "Rejected" | "Requested" | "Accepted";
13289
+ transactionId: string;
12808
13290
  createdAt: string;
12809
13291
  createdBy: string;
13292
+ createdByRole: string;
12810
13293
  declaration: Record<string, string | number | boolean | {
12811
13294
  type: string;
12812
13295
  filename: string;
@@ -12844,9 +13327,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12844
13327
  option: string;
12845
13328
  filename: string;
12846
13329
  originalFilename: string;
12847
- }[] | undefined>;
12848
- createdAtLocation: string;
13330
+ }[] | [string, string] | undefined>;
12849
13331
  assignedTo: null;
13332
+ createdBySignature?: string | null | undefined;
13333
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
12850
13334
  annotation?: Record<string, string | number | boolean | {
12851
13335
  type: string;
12852
13336
  filename: string;
@@ -12884,14 +13368,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12884
13368
  option: string;
12885
13369
  filename: string;
12886
13370
  originalFilename: string;
12887
- }[] | undefined> | undefined;
12888
- originalActionId?: string | undefined;
13371
+ }[] | [string, string] | undefined> | null | undefined;
13372
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
12889
13373
  }, {
12890
13374
  type: "UNASSIGN";
12891
13375
  id: string;
12892
13376
  status: "Rejected" | "Requested" | "Accepted";
13377
+ transactionId: string;
12893
13378
  createdAt: string;
12894
13379
  createdBy: string;
13380
+ createdByRole: string;
12895
13381
  declaration: Record<string, string | number | boolean | {
12896
13382
  type: string;
12897
13383
  filename: string;
@@ -12929,8 +13415,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12929
13415
  option: string;
12930
13416
  filename: string;
12931
13417
  originalFilename: string;
12932
- }[] | undefined>;
12933
- createdAtLocation: string;
13418
+ }[] | [string, string] | undefined>;
13419
+ assignedTo: null;
13420
+ createdBySignature?: string | null | undefined;
13421
+ createdAtLocation?: string | null | undefined;
12934
13422
  annotation?: Record<string, string | number | boolean | {
12935
13423
  type: string;
12936
13424
  filename: string;
@@ -12968,14 +13456,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12968
13456
  option: string;
12969
13457
  filename: string;
12970
13458
  originalFilename: string;
12971
- }[] | undefined> | undefined;
12972
- originalActionId?: string | undefined;
12973
- assignedTo?: null | undefined;
13459
+ }[] | [string, string] | undefined> | null | undefined;
13460
+ originalActionId?: string | null | undefined;
12974
13461
  }>, z.ZodObject<z.objectUtil.extendShape<{
12975
13462
  id: z.ZodString;
13463
+ transactionId: z.ZodString;
12976
13464
  createdAt: z.ZodString;
12977
13465
  createdBy: z.ZodString;
12978
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13466
+ createdByRole: z.ZodString;
13467
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13468
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13469
+ 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
13470
  filename: z.ZodString;
12980
13471
  originalFilename: z.ZodString;
12981
13472
  type: z.ZodString;
@@ -13089,7 +13580,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13089
13580
  addressLine3?: string | null | undefined;
13090
13581
  postcodeOrZip?: string | null | undefined;
13091
13582
  }>]>>;
13092
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13583
+ 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
13584
  filename: z.ZodString;
13094
13585
  originalFilename: z.ZodString;
13095
13586
  type: z.ZodString;
@@ -13202,18 +13693,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13202
13693
  addressLine2?: string | null | undefined;
13203
13694
  addressLine3?: string | null | undefined;
13204
13695
  postcodeOrZip?: string | null | undefined;
13205
- }>]>>>;
13206
- createdAtLocation: z.ZodString;
13696
+ }>]>>>>;
13207
13697
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13208
- originalActionId: z.ZodOptional<z.ZodString>;
13698
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
13209
13699
  }, {
13210
13700
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
13211
13701
  }>, "strip", z.ZodTypeAny, {
13212
13702
  type: "PRINT_CERTIFICATE";
13213
13703
  id: string;
13214
13704
  status: "Rejected" | "Requested" | "Accepted";
13705
+ transactionId: string;
13215
13706
  createdAt: string;
13216
13707
  createdBy: string;
13708
+ createdByRole: string;
13217
13709
  declaration: Record<string, string | number | boolean | {
13218
13710
  type: string;
13219
13711
  filename: string;
@@ -13251,8 +13743,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13251
13743
  option: string;
13252
13744
  filename: string;
13253
13745
  originalFilename: string;
13254
- }[] | undefined>;
13255
- createdAtLocation: string;
13746
+ }[] | [string, string] | undefined>;
13747
+ createdBySignature?: string | null | undefined;
13748
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
13256
13749
  annotation?: Record<string, string | number | boolean | {
13257
13750
  type: string;
13258
13751
  filename: string;
@@ -13290,14 +13783,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13290
13783
  option: string;
13291
13784
  filename: string;
13292
13785
  originalFilename: string;
13293
- }[] | undefined> | undefined;
13294
- originalActionId?: string | undefined;
13786
+ }[] | [string, string] | undefined> | null | undefined;
13787
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
13295
13788
  }, {
13296
13789
  type: "PRINT_CERTIFICATE";
13297
13790
  id: string;
13298
13791
  status: "Rejected" | "Requested" | "Accepted";
13792
+ transactionId: string;
13299
13793
  createdAt: string;
13300
13794
  createdBy: string;
13795
+ createdByRole: string;
13301
13796
  declaration: Record<string, string | number | boolean | {
13302
13797
  type: string;
13303
13798
  filename: string;
@@ -13335,8 +13830,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13335
13830
  option: string;
13336
13831
  filename: string;
13337
13832
  originalFilename: string;
13338
- }[] | undefined>;
13339
- createdAtLocation: string;
13833
+ }[] | [string, string] | undefined>;
13834
+ createdBySignature?: string | null | undefined;
13835
+ createdAtLocation?: string | null | undefined;
13340
13836
  annotation?: Record<string, string | number | boolean | {
13341
13837
  type: string;
13342
13838
  filename: string;
@@ -13374,13 +13870,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13374
13870
  option: string;
13375
13871
  filename: string;
13376
13872
  originalFilename: string;
13377
- }[] | undefined> | undefined;
13378
- originalActionId?: string | undefined;
13873
+ }[] | [string, string] | undefined> | null | undefined;
13874
+ originalActionId?: string | null | undefined;
13379
13875
  }>, z.ZodObject<z.objectUtil.extendShape<{
13380
13876
  id: z.ZodString;
13877
+ transactionId: z.ZodString;
13381
13878
  createdAt: z.ZodString;
13382
13879
  createdBy: z.ZodString;
13383
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13880
+ createdByRole: z.ZodString;
13881
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13882
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
13883
+ 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
13884
  filename: z.ZodString;
13385
13885
  originalFilename: z.ZodString;
13386
13886
  type: z.ZodString;
@@ -13494,7 +13994,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13494
13994
  addressLine3?: string | null | undefined;
13495
13995
  postcodeOrZip?: string | null | undefined;
13496
13996
  }>]>>;
13497
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13997
+ 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
13998
  filename: z.ZodString;
13499
13999
  originalFilename: z.ZodString;
13500
14000
  type: z.ZodString;
@@ -13607,18 +14107,19 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13607
14107
  addressLine2?: string | null | undefined;
13608
14108
  addressLine3?: string | null | undefined;
13609
14109
  postcodeOrZip?: string | null | undefined;
13610
- }>]>>>;
13611
- createdAtLocation: z.ZodString;
14110
+ }>]>>>>;
13612
14111
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
13613
- originalActionId: z.ZodOptional<z.ZodString>;
14112
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
13614
14113
  }, {
13615
14114
  type: z.ZodLiteral<"READ">;
13616
14115
  }>, "strip", z.ZodTypeAny, {
13617
14116
  type: "READ";
13618
14117
  id: string;
13619
14118
  status: "Rejected" | "Requested" | "Accepted";
14119
+ transactionId: string;
13620
14120
  createdAt: string;
13621
14121
  createdBy: string;
14122
+ createdByRole: string;
13622
14123
  declaration: Record<string, string | number | boolean | {
13623
14124
  type: string;
13624
14125
  filename: string;
@@ -13656,8 +14157,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13656
14157
  option: string;
13657
14158
  filename: string;
13658
14159
  originalFilename: string;
13659
- }[] | undefined>;
13660
- createdAtLocation: string;
14160
+ }[] | [string, string] | undefined>;
14161
+ createdBySignature?: string | null | undefined;
14162
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
13661
14163
  annotation?: Record<string, string | number | boolean | {
13662
14164
  type: string;
13663
14165
  filename: string;
@@ -13695,14 +14197,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13695
14197
  option: string;
13696
14198
  filename: string;
13697
14199
  originalFilename: string;
13698
- }[] | undefined> | undefined;
13699
- originalActionId?: string | undefined;
14200
+ }[] | [string, string] | undefined> | null | undefined;
14201
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
13700
14202
  }, {
13701
14203
  type: "READ";
13702
14204
  id: string;
13703
14205
  status: "Rejected" | "Requested" | "Accepted";
14206
+ transactionId: string;
13704
14207
  createdAt: string;
13705
14208
  createdBy: string;
14209
+ createdByRole: string;
13706
14210
  declaration: Record<string, string | number | boolean | {
13707
14211
  type: string;
13708
14212
  filename: string;
@@ -13740,8 +14244,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13740
14244
  option: string;
13741
14245
  filename: string;
13742
14246
  originalFilename: string;
13743
- }[] | undefined>;
13744
- createdAtLocation: string;
14247
+ }[] | [string, string] | undefined>;
14248
+ createdBySignature?: string | null | undefined;
14249
+ createdAtLocation?: string | null | undefined;
13745
14250
  annotation?: Record<string, string | number | boolean | {
13746
14251
  type: string;
13747
14252
  filename: string;
@@ -13779,13 +14284,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13779
14284
  option: string;
13780
14285
  filename: string;
13781
14286
  originalFilename: string;
13782
- }[] | undefined> | undefined;
13783
- originalActionId?: string | undefined;
14287
+ }[] | [string, string] | undefined> | null | undefined;
14288
+ originalActionId?: string | null | undefined;
13784
14289
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
13785
14290
  id: z.ZodString;
14291
+ transactionId: z.ZodString;
13786
14292
  createdAt: z.ZodString;
13787
14293
  createdBy: z.ZodString;
13788
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14294
+ createdByRole: z.ZodString;
14295
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14296
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
14297
+ 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
14298
  filename: z.ZodString;
13790
14299
  originalFilename: z.ZodString;
13791
14300
  type: z.ZodString;
@@ -13899,7 +14408,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13899
14408
  addressLine3?: string | null | undefined;
13900
14409
  postcodeOrZip?: string | null | undefined;
13901
14410
  }>]>>;
13902
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14411
+ 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
14412
  filename: z.ZodString;
13904
14413
  originalFilename: z.ZodString;
13905
14414
  type: z.ZodString;
@@ -14012,25 +14521,34 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14012
14521
  addressLine2?: string | null | undefined;
14013
14522
  addressLine3?: string | null | undefined;
14014
14523
  postcodeOrZip?: string | null | undefined;
14015
- }>]>>>;
14016
- createdAtLocation: z.ZodString;
14524
+ }>]>>>>;
14017
14525
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14018
- originalActionId: z.ZodOptional<z.ZodString>;
14019
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
14526
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
14527
+ }, "declaration" | "annotation">, {
14020
14528
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
14021
14529
  status: z.ZodLiteral<"Rejected">;
14022
14530
  }>, "strip", z.ZodTypeAny, {
14023
14531
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14024
14532
  id: string;
14025
14533
  status: "Rejected";
14534
+ transactionId: string;
14026
14535
  createdAt: string;
14027
- originalActionId?: string | undefined;
14536
+ createdBy: string;
14537
+ createdByRole: string;
14538
+ createdBySignature?: string | null | undefined;
14539
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
14540
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
14028
14541
  }, {
14029
14542
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14030
14543
  id: string;
14031
14544
  status: "Rejected";
14545
+ transactionId: string;
14032
14546
  createdAt: string;
14033
- originalActionId?: string | undefined;
14547
+ createdBy: string;
14548
+ createdByRole: string;
14549
+ createdBySignature?: string | null | undefined;
14550
+ createdAtLocation?: string | null | undefined;
14551
+ originalActionId?: string | null | undefined;
14034
14552
  }>]>;
14035
14553
  export type Action = ActionDocument | AsyncRejectActionDocument;
14036
14554
  export declare const ResolvedUser: z.ZodObject<{