@opencrvs/toolkit 1.8.0-rc.fef85f2 → 1.8.0-rc.ff0b26c

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 (32) hide show
  1. package/dist/commons/api/router.d.ts +10585 -4200
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/events/ActionConfig.d.ts +97080 -1720
  4. package/dist/commons/events/ActionDocument.d.ts +542 -211
  5. package/dist/commons/events/ActionInput.d.ts +248 -240
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +957 -22
  7. package/dist/commons/events/Draft.d.ts +33 -20
  8. package/dist/commons/events/EventConfig.d.ts +46237 -1398
  9. package/dist/commons/events/EventDocument.d.ts +337 -159
  10. package/dist/commons/events/EventIndex.d.ts +1735 -16
  11. package/dist/commons/events/EventInput.d.ts +13 -0
  12. package/dist/commons/events/EventMetadata.d.ts +274 -14
  13. package/dist/commons/events/FieldConfig.d.ts +4229 -744
  14. package/dist/commons/events/FieldType.d.ts +3 -3
  15. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  16. package/dist/commons/events/FieldValue.d.ts +7 -4
  17. package/dist/commons/events/FormConfig.d.ts +43591 -439
  18. package/dist/commons/events/PageConfig.d.ts +10860 -204
  19. package/dist/commons/events/SummaryConfig.d.ts +17 -47
  20. package/dist/commons/events/WorkqueueConfig.d.ts +1549 -19
  21. package/dist/commons/events/defineConfig.d.ts +7199 -27
  22. package/dist/commons/events/event.d.ts +54 -0
  23. package/dist/commons/events/field.d.ts +82 -0
  24. package/dist/commons/events/index.d.ts +2 -0
  25. package/dist/commons/events/scopes.d.ts +21 -1
  26. package/dist/commons/events/test.utils.d.ts +10 -47
  27. package/dist/commons/events/utils.d.ts +3665 -67
  28. package/dist/conditionals/index.js +36 -33
  29. package/dist/events/index.js +1771 -966
  30. package/dist/scopes/index.d.ts +158 -1
  31. package/dist/scopes/index.js +152 -1
  32. 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,11 @@ 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
+ 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
251
  filename: z.ZodString;
137
252
  originalFilename: z.ZodString;
138
253
  type: z.ZodString;
@@ -246,7 +361,7 @@ export declare const ActionBase: z.ZodObject<{
246
361
  addressLine3?: string | null | undefined;
247
362
  postcodeOrZip?: string | null | undefined;
248
363
  }>]>>;
249
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
364
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
250
365
  filename: z.ZodString;
251
366
  originalFilename: z.ZodString;
252
367
  type: z.ZodString;
@@ -366,8 +481,10 @@ export declare const ActionBase: z.ZodObject<{
366
481
  }, "strip", z.ZodTypeAny, {
367
482
  id: string;
368
483
  status: "Rejected" | "Requested" | "Accepted";
484
+ transactionId: string;
369
485
  createdAt: string;
370
486
  createdBy: string;
487
+ createdByRole: string;
371
488
  declaration: Record<string, string | number | boolean | {
372
489
  type: string;
373
490
  filename: string;
@@ -405,7 +522,7 @@ export declare const ActionBase: z.ZodObject<{
405
522
  option: string;
406
523
  filename: string;
407
524
  originalFilename: string;
408
- }[] | undefined>;
525
+ }[] | [string, string] | undefined>;
409
526
  createdAtLocation: string;
410
527
  annotation?: Record<string, string | number | boolean | {
411
528
  type: string;
@@ -444,13 +561,15 @@ export declare const ActionBase: z.ZodObject<{
444
561
  option: string;
445
562
  filename: string;
446
563
  originalFilename: string;
447
- }[] | undefined> | undefined;
564
+ }[] | [string, string] | undefined> | undefined;
448
565
  originalActionId?: string | undefined;
449
566
  }, {
450
567
  id: string;
451
568
  status: "Rejected" | "Requested" | "Accepted";
569
+ transactionId: string;
452
570
  createdAt: string;
453
571
  createdBy: string;
572
+ createdByRole: string;
454
573
  declaration: Record<string, string | number | boolean | {
455
574
  type: string;
456
575
  filename: string;
@@ -488,7 +607,7 @@ export declare const ActionBase: z.ZodObject<{
488
607
  option: string;
489
608
  filename: string;
490
609
  originalFilename: string;
491
- }[] | undefined>;
610
+ }[] | [string, string] | undefined>;
492
611
  createdAtLocation: string;
493
612
  annotation?: Record<string, string | number | boolean | {
494
613
  type: string;
@@ -527,15 +646,17 @@ export declare const ActionBase: z.ZodObject<{
527
646
  option: string;
528
647
  filename: string;
529
648
  originalFilename: string;
530
- }[] | undefined> | undefined;
649
+ }[] | [string, string] | undefined> | undefined;
531
650
  originalActionId?: string | undefined;
532
651
  }>;
533
652
  export type ActionBase = z.infer<typeof ActionBase>;
534
653
  export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
535
654
  id: z.ZodString;
655
+ transactionId: z.ZodString;
536
656
  createdAt: z.ZodString;
537
657
  createdBy: z.ZodString;
538
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
658
+ createdByRole: z.ZodString;
659
+ 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
660
  filename: z.ZodString;
540
661
  originalFilename: z.ZodString;
541
662
  type: z.ZodString;
@@ -649,7 +770,7 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
649
770
  addressLine3?: string | null | undefined;
650
771
  postcodeOrZip?: string | null | undefined;
651
772
  }>]>>;
652
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
773
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
653
774
  filename: z.ZodString;
654
775
  originalFilename: z.ZodString;
655
776
  type: z.ZodString;
@@ -773,8 +894,10 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
773
894
  type: "REGISTER";
774
895
  id: string;
775
896
  status: "Rejected" | "Requested" | "Accepted";
897
+ transactionId: string;
776
898
  createdAt: string;
777
899
  createdBy: string;
900
+ createdByRole: string;
778
901
  declaration: Record<string, string | number | boolean | {
779
902
  type: string;
780
903
  filename: string;
@@ -812,7 +935,7 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
812
935
  option: string;
813
936
  filename: string;
814
937
  originalFilename: string;
815
- }[] | undefined>;
938
+ }[] | [string, string] | undefined>;
816
939
  createdAtLocation: string;
817
940
  annotation?: Record<string, string | number | boolean | {
818
941
  type: string;
@@ -851,15 +974,17 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
851
974
  option: string;
852
975
  filename: string;
853
976
  originalFilename: string;
854
- }[] | undefined> | undefined;
977
+ }[] | [string, string] | undefined> | undefined;
855
978
  originalActionId?: string | undefined;
856
979
  registrationNumber?: string | undefined;
857
980
  }, {
858
981
  type: "REGISTER";
859
982
  id: string;
860
983
  status: "Rejected" | "Requested" | "Accepted";
984
+ transactionId: string;
861
985
  createdAt: string;
862
986
  createdBy: string;
987
+ createdByRole: string;
863
988
  declaration: Record<string, string | number | boolean | {
864
989
  type: string;
865
990
  filename: string;
@@ -897,7 +1022,7 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
897
1022
  option: string;
898
1023
  filename: string;
899
1024
  originalFilename: string;
900
- }[] | undefined>;
1025
+ }[] | [string, string] | undefined>;
901
1026
  createdAtLocation: string;
902
1027
  annotation?: Record<string, string | number | boolean | {
903
1028
  type: string;
@@ -936,16 +1061,18 @@ export declare const RegisterAction: z.ZodObject<z.objectUtil.extendShape<{
936
1061
  option: string;
937
1062
  filename: string;
938
1063
  originalFilename: string;
939
- }[] | undefined> | undefined;
1064
+ }[] | [string, string] | undefined> | undefined;
940
1065
  originalActionId?: string | undefined;
941
1066
  registrationNumber?: string | undefined;
942
1067
  }>;
943
1068
  export type RegisterAction = z.infer<typeof RegisterAction>;
944
1069
  declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
945
1070
  id: z.ZodString;
1071
+ transactionId: z.ZodString;
946
1072
  createdAt: z.ZodString;
947
1073
  createdBy: z.ZodString;
948
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1074
+ createdByRole: z.ZodString;
1075
+ 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
1076
  filename: z.ZodString;
950
1077
  originalFilename: z.ZodString;
951
1078
  type: z.ZodString;
@@ -1059,7 +1186,7 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1059
1186
  addressLine3?: string | null | undefined;
1060
1187
  postcodeOrZip?: string | null | undefined;
1061
1188
  }>]>>;
1062
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1189
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1063
1190
  filename: z.ZodString;
1064
1191
  originalFilename: z.ZodString;
1065
1192
  type: z.ZodString;
@@ -1182,8 +1309,10 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1182
1309
  type: "CREATE";
1183
1310
  id: string;
1184
1311
  status: "Rejected" | "Requested" | "Accepted";
1312
+ transactionId: string;
1185
1313
  createdAt: string;
1186
1314
  createdBy: string;
1315
+ createdByRole: string;
1187
1316
  declaration: Record<string, string | number | boolean | {
1188
1317
  type: string;
1189
1318
  filename: string;
@@ -1221,7 +1350,7 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1221
1350
  option: string;
1222
1351
  filename: string;
1223
1352
  originalFilename: string;
1224
- }[] | undefined>;
1353
+ }[] | [string, string] | undefined>;
1225
1354
  createdAtLocation: string;
1226
1355
  annotation?: Record<string, string | number | boolean | {
1227
1356
  type: string;
@@ -1260,14 +1389,16 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1260
1389
  option: string;
1261
1390
  filename: string;
1262
1391
  originalFilename: string;
1263
- }[] | undefined> | undefined;
1392
+ }[] | [string, string] | undefined> | undefined;
1264
1393
  originalActionId?: string | undefined;
1265
1394
  }, {
1266
1395
  type: "CREATE";
1267
1396
  id: string;
1268
1397
  status: "Rejected" | "Requested" | "Accepted";
1398
+ transactionId: string;
1269
1399
  createdAt: string;
1270
1400
  createdBy: string;
1401
+ createdByRole: string;
1271
1402
  declaration: Record<string, string | number | boolean | {
1272
1403
  type: string;
1273
1404
  filename: string;
@@ -1305,7 +1436,7 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1305
1436
  option: string;
1306
1437
  filename: string;
1307
1438
  originalFilename: string;
1308
- }[] | undefined>;
1439
+ }[] | [string, string] | undefined>;
1309
1440
  createdAtLocation: string;
1310
1441
  annotation?: Record<string, string | number | boolean | {
1311
1442
  type: string;
@@ -1344,14 +1475,16 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1344
1475
  option: string;
1345
1476
  filename: string;
1346
1477
  originalFilename: string;
1347
- }[] | undefined> | undefined;
1478
+ }[] | [string, string] | undefined> | undefined;
1348
1479
  originalActionId?: string | undefined;
1349
1480
  }>;
1350
1481
  export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
1351
1482
  id: z.ZodString;
1483
+ transactionId: z.ZodString;
1352
1484
  createdAt: z.ZodString;
1353
1485
  createdBy: z.ZodString;
1354
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1486
+ createdByRole: z.ZodString;
1487
+ 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
1488
  filename: z.ZodString;
1356
1489
  originalFilename: z.ZodString;
1357
1490
  type: z.ZodString;
@@ -1465,7 +1598,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1465
1598
  addressLine3?: string | null | undefined;
1466
1599
  postcodeOrZip?: string | null | undefined;
1467
1600
  }>]>>;
1468
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1601
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1469
1602
  filename: z.ZodString;
1470
1603
  originalFilename: z.ZodString;
1471
1604
  type: z.ZodString;
@@ -1588,8 +1721,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1588
1721
  type: "CREATE";
1589
1722
  id: string;
1590
1723
  status: "Rejected" | "Requested" | "Accepted";
1724
+ transactionId: string;
1591
1725
  createdAt: string;
1592
1726
  createdBy: string;
1727
+ createdByRole: string;
1593
1728
  declaration: Record<string, string | number | boolean | {
1594
1729
  type: string;
1595
1730
  filename: string;
@@ -1627,7 +1762,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1627
1762
  option: string;
1628
1763
  filename: string;
1629
1764
  originalFilename: string;
1630
- }[] | undefined>;
1765
+ }[] | [string, string] | undefined>;
1631
1766
  createdAtLocation: string;
1632
1767
  annotation?: Record<string, string | number | boolean | {
1633
1768
  type: string;
@@ -1666,14 +1801,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1666
1801
  option: string;
1667
1802
  filename: string;
1668
1803
  originalFilename: string;
1669
- }[] | undefined> | undefined;
1804
+ }[] | [string, string] | undefined> | undefined;
1670
1805
  originalActionId?: string | undefined;
1671
1806
  }, {
1672
1807
  type: "CREATE";
1673
1808
  id: string;
1674
1809
  status: "Rejected" | "Requested" | "Accepted";
1810
+ transactionId: string;
1675
1811
  createdAt: string;
1676
1812
  createdBy: string;
1813
+ createdByRole: string;
1677
1814
  declaration: Record<string, string | number | boolean | {
1678
1815
  type: string;
1679
1816
  filename: string;
@@ -1711,7 +1848,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1711
1848
  option: string;
1712
1849
  filename: string;
1713
1850
  originalFilename: string;
1714
- }[] | undefined>;
1851
+ }[] | [string, string] | undefined>;
1715
1852
  createdAtLocation: string;
1716
1853
  annotation?: Record<string, string | number | boolean | {
1717
1854
  type: string;
@@ -1750,13 +1887,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1750
1887
  option: string;
1751
1888
  filename: string;
1752
1889
  originalFilename: string;
1753
- }[] | undefined> | undefined;
1890
+ }[] | [string, string] | undefined> | undefined;
1754
1891
  originalActionId?: string | undefined;
1755
1892
  }>, z.ZodObject<z.objectUtil.extendShape<{
1756
1893
  id: z.ZodString;
1894
+ transactionId: z.ZodString;
1757
1895
  createdAt: z.ZodString;
1758
1896
  createdBy: z.ZodString;
1759
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1897
+ createdByRole: z.ZodString;
1898
+ 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
1899
  filename: z.ZodString;
1761
1900
  originalFilename: z.ZodString;
1762
1901
  type: z.ZodString;
@@ -1870,7 +2009,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1870
2009
  addressLine3?: string | null | undefined;
1871
2010
  postcodeOrZip?: string | null | undefined;
1872
2011
  }>]>>;
1873
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2012
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1874
2013
  filename: z.ZodString;
1875
2014
  originalFilename: z.ZodString;
1876
2015
  type: z.ZodString;
@@ -1993,8 +2132,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
1993
2132
  type: "VALIDATE";
1994
2133
  id: string;
1995
2134
  status: "Rejected" | "Requested" | "Accepted";
2135
+ transactionId: string;
1996
2136
  createdAt: string;
1997
2137
  createdBy: string;
2138
+ createdByRole: string;
1998
2139
  declaration: Record<string, string | number | boolean | {
1999
2140
  type: string;
2000
2141
  filename: string;
@@ -2032,7 +2173,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2032
2173
  option: string;
2033
2174
  filename: string;
2034
2175
  originalFilename: string;
2035
- }[] | undefined>;
2176
+ }[] | [string, string] | undefined>;
2036
2177
  createdAtLocation: string;
2037
2178
  annotation?: Record<string, string | number | boolean | {
2038
2179
  type: string;
@@ -2071,14 +2212,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2071
2212
  option: string;
2072
2213
  filename: string;
2073
2214
  originalFilename: string;
2074
- }[] | undefined> | undefined;
2215
+ }[] | [string, string] | undefined> | undefined;
2075
2216
  originalActionId?: string | undefined;
2076
2217
  }, {
2077
2218
  type: "VALIDATE";
2078
2219
  id: string;
2079
2220
  status: "Rejected" | "Requested" | "Accepted";
2221
+ transactionId: string;
2080
2222
  createdAt: string;
2081
2223
  createdBy: string;
2224
+ createdByRole: string;
2082
2225
  declaration: Record<string, string | number | boolean | {
2083
2226
  type: string;
2084
2227
  filename: string;
@@ -2116,7 +2259,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2116
2259
  option: string;
2117
2260
  filename: string;
2118
2261
  originalFilename: string;
2119
- }[] | undefined>;
2262
+ }[] | [string, string] | undefined>;
2120
2263
  createdAtLocation: string;
2121
2264
  annotation?: Record<string, string | number | boolean | {
2122
2265
  type: string;
@@ -2155,13 +2298,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2155
2298
  option: string;
2156
2299
  filename: string;
2157
2300
  originalFilename: string;
2158
- }[] | undefined> | undefined;
2301
+ }[] | [string, string] | undefined> | undefined;
2159
2302
  originalActionId?: string | undefined;
2160
2303
  }>, z.ZodObject<z.objectUtil.extendShape<{
2161
2304
  id: z.ZodString;
2305
+ transactionId: z.ZodString;
2162
2306
  createdAt: z.ZodString;
2163
2307
  createdBy: z.ZodString;
2164
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2308
+ createdByRole: z.ZodString;
2309
+ 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
2310
  filename: z.ZodString;
2166
2311
  originalFilename: z.ZodString;
2167
2312
  type: z.ZodString;
@@ -2275,7 +2420,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2275
2420
  addressLine3?: string | null | undefined;
2276
2421
  postcodeOrZip?: string | null | undefined;
2277
2422
  }>]>>;
2278
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2423
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2279
2424
  filename: z.ZodString;
2280
2425
  originalFilename: z.ZodString;
2281
2426
  type: z.ZodString;
@@ -2398,8 +2543,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2398
2543
  type: "REJECT";
2399
2544
  id: string;
2400
2545
  status: "Rejected" | "Requested" | "Accepted";
2546
+ transactionId: string;
2401
2547
  createdAt: string;
2402
2548
  createdBy: string;
2549
+ createdByRole: string;
2403
2550
  declaration: Record<string, string | number | boolean | {
2404
2551
  type: string;
2405
2552
  filename: string;
@@ -2437,7 +2584,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2437
2584
  option: string;
2438
2585
  filename: string;
2439
2586
  originalFilename: string;
2440
- }[] | undefined>;
2587
+ }[] | [string, string] | undefined>;
2441
2588
  createdAtLocation: string;
2442
2589
  annotation?: Record<string, string | number | boolean | {
2443
2590
  type: string;
@@ -2476,14 +2623,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2476
2623
  option: string;
2477
2624
  filename: string;
2478
2625
  originalFilename: string;
2479
- }[] | undefined> | undefined;
2626
+ }[] | [string, string] | undefined> | undefined;
2480
2627
  originalActionId?: string | undefined;
2481
2628
  }, {
2482
2629
  type: "REJECT";
2483
2630
  id: string;
2484
2631
  status: "Rejected" | "Requested" | "Accepted";
2632
+ transactionId: string;
2485
2633
  createdAt: string;
2486
2634
  createdBy: string;
2635
+ createdByRole: string;
2487
2636
  declaration: Record<string, string | number | boolean | {
2488
2637
  type: string;
2489
2638
  filename: string;
@@ -2521,7 +2670,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2521
2670
  option: string;
2522
2671
  filename: string;
2523
2672
  originalFilename: string;
2524
- }[] | undefined>;
2673
+ }[] | [string, string] | undefined>;
2525
2674
  createdAtLocation: string;
2526
2675
  annotation?: Record<string, string | number | boolean | {
2527
2676
  type: string;
@@ -2560,13 +2709,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2560
2709
  option: string;
2561
2710
  filename: string;
2562
2711
  originalFilename: string;
2563
- }[] | undefined> | undefined;
2712
+ }[] | [string, string] | undefined> | undefined;
2564
2713
  originalActionId?: string | undefined;
2565
2714
  }>, z.ZodObject<z.objectUtil.extendShape<{
2566
2715
  id: z.ZodString;
2716
+ transactionId: z.ZodString;
2567
2717
  createdAt: z.ZodString;
2568
2718
  createdBy: z.ZodString;
2569
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2719
+ createdByRole: z.ZodString;
2720
+ 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
2721
  filename: z.ZodString;
2571
2722
  originalFilename: z.ZodString;
2572
2723
  type: z.ZodString;
@@ -2680,7 +2831,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2680
2831
  addressLine3?: string | null | undefined;
2681
2832
  postcodeOrZip?: string | null | undefined;
2682
2833
  }>]>>;
2683
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2834
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2684
2835
  filename: z.ZodString;
2685
2836
  originalFilename: z.ZodString;
2686
2837
  type: z.ZodString;
@@ -2803,8 +2954,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2803
2954
  type: "MARKED_AS_DUPLICATE";
2804
2955
  id: string;
2805
2956
  status: "Rejected" | "Requested" | "Accepted";
2957
+ transactionId: string;
2806
2958
  createdAt: string;
2807
2959
  createdBy: string;
2960
+ createdByRole: string;
2808
2961
  declaration: Record<string, string | number | boolean | {
2809
2962
  type: string;
2810
2963
  filename: string;
@@ -2842,7 +2995,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2842
2995
  option: string;
2843
2996
  filename: string;
2844
2997
  originalFilename: string;
2845
- }[] | undefined>;
2998
+ }[] | [string, string] | undefined>;
2846
2999
  createdAtLocation: string;
2847
3000
  annotation?: Record<string, string | number | boolean | {
2848
3001
  type: string;
@@ -2881,14 +3034,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2881
3034
  option: string;
2882
3035
  filename: string;
2883
3036
  originalFilename: string;
2884
- }[] | undefined> | undefined;
3037
+ }[] | [string, string] | undefined> | undefined;
2885
3038
  originalActionId?: string | undefined;
2886
3039
  }, {
2887
3040
  type: "MARKED_AS_DUPLICATE";
2888
3041
  id: string;
2889
3042
  status: "Rejected" | "Requested" | "Accepted";
3043
+ transactionId: string;
2890
3044
  createdAt: string;
2891
3045
  createdBy: string;
3046
+ createdByRole: string;
2892
3047
  declaration: Record<string, string | number | boolean | {
2893
3048
  type: string;
2894
3049
  filename: string;
@@ -2926,7 +3081,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2926
3081
  option: string;
2927
3082
  filename: string;
2928
3083
  originalFilename: string;
2929
- }[] | undefined>;
3084
+ }[] | [string, string] | undefined>;
2930
3085
  createdAtLocation: string;
2931
3086
  annotation?: Record<string, string | number | boolean | {
2932
3087
  type: string;
@@ -2965,13 +3120,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
2965
3120
  option: string;
2966
3121
  filename: string;
2967
3122
  originalFilename: string;
2968
- }[] | undefined> | undefined;
3123
+ }[] | [string, string] | undefined> | undefined;
2969
3124
  originalActionId?: string | undefined;
2970
3125
  }>, z.ZodObject<z.objectUtil.extendShape<{
2971
3126
  id: z.ZodString;
3127
+ transactionId: z.ZodString;
2972
3128
  createdAt: z.ZodString;
2973
3129
  createdBy: z.ZodString;
2974
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3130
+ createdByRole: z.ZodString;
3131
+ 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
3132
  filename: z.ZodString;
2976
3133
  originalFilename: z.ZodString;
2977
3134
  type: z.ZodString;
@@ -3085,7 +3242,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3085
3242
  addressLine3?: string | null | undefined;
3086
3243
  postcodeOrZip?: string | null | undefined;
3087
3244
  }>]>>;
3088
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3245
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3089
3246
  filename: z.ZodString;
3090
3247
  originalFilename: z.ZodString;
3091
3248
  type: z.ZodString;
@@ -3208,8 +3365,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3208
3365
  type: "ARCHIVE";
3209
3366
  id: string;
3210
3367
  status: "Rejected" | "Requested" | "Accepted";
3368
+ transactionId: string;
3211
3369
  createdAt: string;
3212
3370
  createdBy: string;
3371
+ createdByRole: string;
3213
3372
  declaration: Record<string, string | number | boolean | {
3214
3373
  type: string;
3215
3374
  filename: string;
@@ -3247,7 +3406,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3247
3406
  option: string;
3248
3407
  filename: string;
3249
3408
  originalFilename: string;
3250
- }[] | undefined>;
3409
+ }[] | [string, string] | undefined>;
3251
3410
  createdAtLocation: string;
3252
3411
  annotation?: Record<string, string | number | boolean | {
3253
3412
  type: string;
@@ -3286,14 +3445,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3286
3445
  option: string;
3287
3446
  filename: string;
3288
3447
  originalFilename: string;
3289
- }[] | undefined> | undefined;
3448
+ }[] | [string, string] | undefined> | undefined;
3290
3449
  originalActionId?: string | undefined;
3291
3450
  }, {
3292
3451
  type: "ARCHIVE";
3293
3452
  id: string;
3294
3453
  status: "Rejected" | "Requested" | "Accepted";
3454
+ transactionId: string;
3295
3455
  createdAt: string;
3296
3456
  createdBy: string;
3457
+ createdByRole: string;
3297
3458
  declaration: Record<string, string | number | boolean | {
3298
3459
  type: string;
3299
3460
  filename: string;
@@ -3331,7 +3492,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3331
3492
  option: string;
3332
3493
  filename: string;
3333
3494
  originalFilename: string;
3334
- }[] | undefined>;
3495
+ }[] | [string, string] | undefined>;
3335
3496
  createdAtLocation: string;
3336
3497
  annotation?: Record<string, string | number | boolean | {
3337
3498
  type: string;
@@ -3370,13 +3531,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3370
3531
  option: string;
3371
3532
  filename: string;
3372
3533
  originalFilename: string;
3373
- }[] | undefined> | undefined;
3534
+ }[] | [string, string] | undefined> | undefined;
3374
3535
  originalActionId?: string | undefined;
3375
3536
  }>, z.ZodObject<z.objectUtil.extendShape<{
3376
3537
  id: z.ZodString;
3538
+ transactionId: z.ZodString;
3377
3539
  createdAt: z.ZodString;
3378
3540
  createdBy: z.ZodString;
3379
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3541
+ createdByRole: z.ZodString;
3542
+ 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
3543
  filename: z.ZodString;
3381
3544
  originalFilename: z.ZodString;
3382
3545
  type: z.ZodString;
@@ -3490,7 +3653,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3490
3653
  addressLine3?: string | null | undefined;
3491
3654
  postcodeOrZip?: string | null | undefined;
3492
3655
  }>]>>;
3493
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3656
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3494
3657
  filename: z.ZodString;
3495
3658
  originalFilename: z.ZodString;
3496
3659
  type: z.ZodString;
@@ -3613,8 +3776,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3613
3776
  type: "NOTIFY";
3614
3777
  id: string;
3615
3778
  status: "Rejected" | "Requested" | "Accepted";
3779
+ transactionId: string;
3616
3780
  createdAt: string;
3617
3781
  createdBy: string;
3782
+ createdByRole: string;
3618
3783
  declaration: Record<string, string | number | boolean | {
3619
3784
  type: string;
3620
3785
  filename: string;
@@ -3652,7 +3817,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3652
3817
  option: string;
3653
3818
  filename: string;
3654
3819
  originalFilename: string;
3655
- }[] | undefined>;
3820
+ }[] | [string, string] | undefined>;
3656
3821
  createdAtLocation: string;
3657
3822
  annotation?: Record<string, string | number | boolean | {
3658
3823
  type: string;
@@ -3691,14 +3856,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3691
3856
  option: string;
3692
3857
  filename: string;
3693
3858
  originalFilename: string;
3694
- }[] | undefined> | undefined;
3859
+ }[] | [string, string] | undefined> | undefined;
3695
3860
  originalActionId?: string | undefined;
3696
3861
  }, {
3697
3862
  type: "NOTIFY";
3698
3863
  id: string;
3699
3864
  status: "Rejected" | "Requested" | "Accepted";
3865
+ transactionId: string;
3700
3866
  createdAt: string;
3701
3867
  createdBy: string;
3868
+ createdByRole: string;
3702
3869
  declaration: Record<string, string | number | boolean | {
3703
3870
  type: string;
3704
3871
  filename: string;
@@ -3736,7 +3903,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3736
3903
  option: string;
3737
3904
  filename: string;
3738
3905
  originalFilename: string;
3739
- }[] | undefined>;
3906
+ }[] | [string, string] | undefined>;
3740
3907
  createdAtLocation: string;
3741
3908
  annotation?: Record<string, string | number | boolean | {
3742
3909
  type: string;
@@ -3775,13 +3942,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3775
3942
  option: string;
3776
3943
  filename: string;
3777
3944
  originalFilename: string;
3778
- }[] | undefined> | undefined;
3945
+ }[] | [string, string] | undefined> | undefined;
3779
3946
  originalActionId?: string | undefined;
3780
3947
  }>, z.ZodObject<z.objectUtil.extendShape<{
3781
3948
  id: z.ZodString;
3949
+ transactionId: z.ZodString;
3782
3950
  createdAt: z.ZodString;
3783
3951
  createdBy: z.ZodString;
3784
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3952
+ createdByRole: z.ZodString;
3953
+ 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
3954
  filename: z.ZodString;
3786
3955
  originalFilename: z.ZodString;
3787
3956
  type: z.ZodString;
@@ -3895,7 +4064,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
3895
4064
  addressLine3?: string | null | undefined;
3896
4065
  postcodeOrZip?: string | null | undefined;
3897
4066
  }>]>>;
3898
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4067
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3899
4068
  filename: z.ZodString;
3900
4069
  originalFilename: z.ZodString;
3901
4070
  type: z.ZodString;
@@ -4019,8 +4188,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4019
4188
  type: "REGISTER";
4020
4189
  id: string;
4021
4190
  status: "Rejected" | "Requested" | "Accepted";
4191
+ transactionId: string;
4022
4192
  createdAt: string;
4023
4193
  createdBy: string;
4194
+ createdByRole: string;
4024
4195
  declaration: Record<string, string | number | boolean | {
4025
4196
  type: string;
4026
4197
  filename: string;
@@ -4058,7 +4229,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4058
4229
  option: string;
4059
4230
  filename: string;
4060
4231
  originalFilename: string;
4061
- }[] | undefined>;
4232
+ }[] | [string, string] | undefined>;
4062
4233
  createdAtLocation: string;
4063
4234
  annotation?: Record<string, string | number | boolean | {
4064
4235
  type: string;
@@ -4097,15 +4268,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4097
4268
  option: string;
4098
4269
  filename: string;
4099
4270
  originalFilename: string;
4100
- }[] | undefined> | undefined;
4271
+ }[] | [string, string] | undefined> | undefined;
4101
4272
  originalActionId?: string | undefined;
4102
4273
  registrationNumber?: string | undefined;
4103
4274
  }, {
4104
4275
  type: "REGISTER";
4105
4276
  id: string;
4106
4277
  status: "Rejected" | "Requested" | "Accepted";
4278
+ transactionId: string;
4107
4279
  createdAt: string;
4108
4280
  createdBy: string;
4281
+ createdByRole: string;
4109
4282
  declaration: Record<string, string | number | boolean | {
4110
4283
  type: string;
4111
4284
  filename: string;
@@ -4143,7 +4316,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4143
4316
  option: string;
4144
4317
  filename: string;
4145
4318
  originalFilename: string;
4146
- }[] | undefined>;
4319
+ }[] | [string, string] | undefined>;
4147
4320
  createdAtLocation: string;
4148
4321
  annotation?: Record<string, string | number | boolean | {
4149
4322
  type: string;
@@ -4182,14 +4355,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4182
4355
  option: string;
4183
4356
  filename: string;
4184
4357
  originalFilename: string;
4185
- }[] | undefined> | undefined;
4358
+ }[] | [string, string] | undefined> | undefined;
4186
4359
  originalActionId?: string | undefined;
4187
4360
  registrationNumber?: string | undefined;
4188
4361
  }>, z.ZodObject<z.objectUtil.extendShape<{
4189
4362
  id: z.ZodString;
4363
+ transactionId: z.ZodString;
4190
4364
  createdAt: z.ZodString;
4191
4365
  createdBy: z.ZodString;
4192
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4366
+ createdByRole: z.ZodString;
4367
+ 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
4368
  filename: z.ZodString;
4194
4369
  originalFilename: z.ZodString;
4195
4370
  type: z.ZodString;
@@ -4303,7 +4478,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4303
4478
  addressLine3?: string | null | undefined;
4304
4479
  postcodeOrZip?: string | null | undefined;
4305
4480
  }>]>>;
4306
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4481
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4307
4482
  filename: z.ZodString;
4308
4483
  originalFilename: z.ZodString;
4309
4484
  type: z.ZodString;
@@ -4426,8 +4601,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4426
4601
  type: "DECLARE";
4427
4602
  id: string;
4428
4603
  status: "Rejected" | "Requested" | "Accepted";
4604
+ transactionId: string;
4429
4605
  createdAt: string;
4430
4606
  createdBy: string;
4607
+ createdByRole: string;
4431
4608
  declaration: Record<string, string | number | boolean | {
4432
4609
  type: string;
4433
4610
  filename: string;
@@ -4465,7 +4642,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4465
4642
  option: string;
4466
4643
  filename: string;
4467
4644
  originalFilename: string;
4468
- }[] | undefined>;
4645
+ }[] | [string, string] | undefined>;
4469
4646
  createdAtLocation: string;
4470
4647
  annotation?: Record<string, string | number | boolean | {
4471
4648
  type: string;
@@ -4504,14 +4681,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4504
4681
  option: string;
4505
4682
  filename: string;
4506
4683
  originalFilename: string;
4507
- }[] | undefined> | undefined;
4684
+ }[] | [string, string] | undefined> | undefined;
4508
4685
  originalActionId?: string | undefined;
4509
4686
  }, {
4510
4687
  type: "DECLARE";
4511
4688
  id: string;
4512
4689
  status: "Rejected" | "Requested" | "Accepted";
4690
+ transactionId: string;
4513
4691
  createdAt: string;
4514
4692
  createdBy: string;
4693
+ createdByRole: string;
4515
4694
  declaration: Record<string, string | number | boolean | {
4516
4695
  type: string;
4517
4696
  filename: string;
@@ -4549,7 +4728,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4549
4728
  option: string;
4550
4729
  filename: string;
4551
4730
  originalFilename: string;
4552
- }[] | undefined>;
4731
+ }[] | [string, string] | undefined>;
4553
4732
  createdAtLocation: string;
4554
4733
  annotation?: Record<string, string | number | boolean | {
4555
4734
  type: string;
@@ -4588,13 +4767,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4588
4767
  option: string;
4589
4768
  filename: string;
4590
4769
  originalFilename: string;
4591
- }[] | undefined> | undefined;
4770
+ }[] | [string, string] | undefined> | undefined;
4592
4771
  originalActionId?: string | undefined;
4593
4772
  }>, z.ZodObject<z.objectUtil.extendShape<{
4594
4773
  id: z.ZodString;
4774
+ transactionId: z.ZodString;
4595
4775
  createdAt: z.ZodString;
4596
4776
  createdBy: z.ZodString;
4597
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4777
+ createdByRole: z.ZodString;
4778
+ 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
4779
  filename: z.ZodString;
4599
4780
  originalFilename: z.ZodString;
4600
4781
  type: z.ZodString;
@@ -4708,7 +4889,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4708
4889
  addressLine3?: string | null | undefined;
4709
4890
  postcodeOrZip?: string | null | undefined;
4710
4891
  }>]>>;
4711
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4892
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4712
4893
  filename: z.ZodString;
4713
4894
  originalFilename: z.ZodString;
4714
4895
  type: z.ZodString;
@@ -4832,8 +5013,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4832
5013
  type: "ASSIGN";
4833
5014
  id: string;
4834
5015
  status: "Rejected" | "Requested" | "Accepted";
5016
+ transactionId: string;
4835
5017
  createdAt: string;
4836
5018
  createdBy: string;
5019
+ createdByRole: string;
4837
5020
  declaration: Record<string, string | number | boolean | {
4838
5021
  type: string;
4839
5022
  filename: string;
@@ -4871,7 +5054,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4871
5054
  option: string;
4872
5055
  filename: string;
4873
5056
  originalFilename: string;
4874
- }[] | undefined>;
5057
+ }[] | [string, string] | undefined>;
4875
5058
  createdAtLocation: string;
4876
5059
  assignedTo: string;
4877
5060
  annotation?: Record<string, string | number | boolean | {
@@ -4911,14 +5094,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4911
5094
  option: string;
4912
5095
  filename: string;
4913
5096
  originalFilename: string;
4914
- }[] | undefined> | undefined;
5097
+ }[] | [string, string] | undefined> | undefined;
4915
5098
  originalActionId?: string | undefined;
4916
5099
  }, {
4917
5100
  type: "ASSIGN";
4918
5101
  id: string;
4919
5102
  status: "Rejected" | "Requested" | "Accepted";
5103
+ transactionId: string;
4920
5104
  createdAt: string;
4921
5105
  createdBy: string;
5106
+ createdByRole: string;
4922
5107
  declaration: Record<string, string | number | boolean | {
4923
5108
  type: string;
4924
5109
  filename: string;
@@ -4956,7 +5141,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4956
5141
  option: string;
4957
5142
  filename: string;
4958
5143
  originalFilename: string;
4959
- }[] | undefined>;
5144
+ }[] | [string, string] | undefined>;
4960
5145
  createdAtLocation: string;
4961
5146
  assignedTo: string;
4962
5147
  annotation?: Record<string, string | number | boolean | {
@@ -4996,13 +5181,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
4996
5181
  option: string;
4997
5182
  filename: string;
4998
5183
  originalFilename: string;
4999
- }[] | undefined> | undefined;
5184
+ }[] | [string, string] | undefined> | undefined;
5000
5185
  originalActionId?: string | undefined;
5001
5186
  }>, z.ZodObject<z.objectUtil.extendShape<{
5002
5187
  id: z.ZodString;
5188
+ transactionId: z.ZodString;
5003
5189
  createdAt: z.ZodString;
5004
5190
  createdBy: z.ZodString;
5005
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5191
+ createdByRole: z.ZodString;
5192
+ 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
5193
  filename: z.ZodString;
5007
5194
  originalFilename: z.ZodString;
5008
5195
  type: z.ZodString;
@@ -5116,7 +5303,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5116
5303
  addressLine3?: string | null | undefined;
5117
5304
  postcodeOrZip?: string | null | undefined;
5118
5305
  }>]>>;
5119
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5306
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5120
5307
  filename: z.ZodString;
5121
5308
  originalFilename: z.ZodString;
5122
5309
  type: z.ZodString;
@@ -5239,8 +5426,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5239
5426
  type: "REQUEST_CORRECTION";
5240
5427
  id: string;
5241
5428
  status: "Rejected" | "Requested" | "Accepted";
5429
+ transactionId: string;
5242
5430
  createdAt: string;
5243
5431
  createdBy: string;
5432
+ createdByRole: string;
5244
5433
  declaration: Record<string, string | number | boolean | {
5245
5434
  type: string;
5246
5435
  filename: string;
@@ -5278,7 +5467,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5278
5467
  option: string;
5279
5468
  filename: string;
5280
5469
  originalFilename: string;
5281
- }[] | undefined>;
5470
+ }[] | [string, string] | undefined>;
5282
5471
  createdAtLocation: string;
5283
5472
  annotation?: Record<string, string | number | boolean | {
5284
5473
  type: string;
@@ -5317,14 +5506,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5317
5506
  option: string;
5318
5507
  filename: string;
5319
5508
  originalFilename: string;
5320
- }[] | undefined> | undefined;
5509
+ }[] | [string, string] | undefined> | undefined;
5321
5510
  originalActionId?: string | undefined;
5322
5511
  }, {
5323
5512
  type: "REQUEST_CORRECTION";
5324
5513
  id: string;
5325
5514
  status: "Rejected" | "Requested" | "Accepted";
5515
+ transactionId: string;
5326
5516
  createdAt: string;
5327
5517
  createdBy: string;
5518
+ createdByRole: string;
5328
5519
  declaration: Record<string, string | number | boolean | {
5329
5520
  type: string;
5330
5521
  filename: string;
@@ -5362,7 +5553,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5362
5553
  option: string;
5363
5554
  filename: string;
5364
5555
  originalFilename: string;
5365
- }[] | undefined>;
5556
+ }[] | [string, string] | undefined>;
5366
5557
  createdAtLocation: string;
5367
5558
  annotation?: Record<string, string | number | boolean | {
5368
5559
  type: string;
@@ -5401,13 +5592,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5401
5592
  option: string;
5402
5593
  filename: string;
5403
5594
  originalFilename: string;
5404
- }[] | undefined> | undefined;
5595
+ }[] | [string, string] | undefined> | undefined;
5405
5596
  originalActionId?: string | undefined;
5406
5597
  }>, z.ZodObject<z.objectUtil.extendShape<{
5407
5598
  id: z.ZodString;
5599
+ transactionId: z.ZodString;
5408
5600
  createdAt: z.ZodString;
5409
5601
  createdBy: z.ZodString;
5410
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5602
+ createdByRole: z.ZodString;
5603
+ 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
5604
  filename: z.ZodString;
5412
5605
  originalFilename: z.ZodString;
5413
5606
  type: z.ZodString;
@@ -5521,7 +5714,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5521
5714
  addressLine3?: string | null | undefined;
5522
5715
  postcodeOrZip?: string | null | undefined;
5523
5716
  }>]>>;
5524
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5717
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5525
5718
  filename: z.ZodString;
5526
5719
  originalFilename: z.ZodString;
5527
5720
  type: z.ZodString;
@@ -5645,8 +5838,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5645
5838
  type: "APPROVE_CORRECTION";
5646
5839
  id: string;
5647
5840
  status: "Rejected" | "Requested" | "Accepted";
5841
+ transactionId: string;
5648
5842
  createdAt: string;
5649
5843
  createdBy: string;
5844
+ createdByRole: string;
5650
5845
  declaration: Record<string, string | number | boolean | {
5651
5846
  type: string;
5652
5847
  filename: string;
@@ -5684,7 +5879,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5684
5879
  option: string;
5685
5880
  filename: string;
5686
5881
  originalFilename: string;
5687
- }[] | undefined>;
5882
+ }[] | [string, string] | undefined>;
5688
5883
  createdAtLocation: string;
5689
5884
  requestId: string;
5690
5885
  annotation?: Record<string, string | number | boolean | {
@@ -5724,14 +5919,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5724
5919
  option: string;
5725
5920
  filename: string;
5726
5921
  originalFilename: string;
5727
- }[] | undefined> | undefined;
5922
+ }[] | [string, string] | undefined> | undefined;
5728
5923
  originalActionId?: string | undefined;
5729
5924
  }, {
5730
5925
  type: "APPROVE_CORRECTION";
5731
5926
  id: string;
5732
5927
  status: "Rejected" | "Requested" | "Accepted";
5928
+ transactionId: string;
5733
5929
  createdAt: string;
5734
5930
  createdBy: string;
5931
+ createdByRole: string;
5735
5932
  declaration: Record<string, string | number | boolean | {
5736
5933
  type: string;
5737
5934
  filename: string;
@@ -5769,7 +5966,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5769
5966
  option: string;
5770
5967
  filename: string;
5771
5968
  originalFilename: string;
5772
- }[] | undefined>;
5969
+ }[] | [string, string] | undefined>;
5773
5970
  createdAtLocation: string;
5774
5971
  requestId: string;
5775
5972
  annotation?: Record<string, string | number | boolean | {
@@ -5809,13 +6006,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5809
6006
  option: string;
5810
6007
  filename: string;
5811
6008
  originalFilename: string;
5812
- }[] | undefined> | undefined;
6009
+ }[] | [string, string] | undefined> | undefined;
5813
6010
  originalActionId?: string | undefined;
5814
6011
  }>, z.ZodObject<z.objectUtil.extendShape<{
5815
6012
  id: z.ZodString;
6013
+ transactionId: z.ZodString;
5816
6014
  createdAt: z.ZodString;
5817
6015
  createdBy: z.ZodString;
5818
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6016
+ createdByRole: z.ZodString;
6017
+ 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
6018
  filename: z.ZodString;
5820
6019
  originalFilename: z.ZodString;
5821
6020
  type: z.ZodString;
@@ -5929,7 +6128,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
5929
6128
  addressLine3?: string | null | undefined;
5930
6129
  postcodeOrZip?: string | null | undefined;
5931
6130
  }>]>>;
5932
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6131
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5933
6132
  filename: z.ZodString;
5934
6133
  originalFilename: z.ZodString;
5935
6134
  type: z.ZodString;
@@ -6053,8 +6252,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6053
6252
  type: "REJECT_CORRECTION";
6054
6253
  id: string;
6055
6254
  status: "Rejected" | "Requested" | "Accepted";
6255
+ transactionId: string;
6056
6256
  createdAt: string;
6057
6257
  createdBy: string;
6258
+ createdByRole: string;
6058
6259
  declaration: Record<string, string | number | boolean | {
6059
6260
  type: string;
6060
6261
  filename: string;
@@ -6092,7 +6293,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6092
6293
  option: string;
6093
6294
  filename: string;
6094
6295
  originalFilename: string;
6095
- }[] | undefined>;
6296
+ }[] | [string, string] | undefined>;
6096
6297
  createdAtLocation: string;
6097
6298
  requestId: string;
6098
6299
  annotation?: Record<string, string | number | boolean | {
@@ -6132,14 +6333,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6132
6333
  option: string;
6133
6334
  filename: string;
6134
6335
  originalFilename: string;
6135
- }[] | undefined> | undefined;
6336
+ }[] | [string, string] | undefined> | undefined;
6136
6337
  originalActionId?: string | undefined;
6137
6338
  }, {
6138
6339
  type: "REJECT_CORRECTION";
6139
6340
  id: string;
6140
6341
  status: "Rejected" | "Requested" | "Accepted";
6342
+ transactionId: string;
6141
6343
  createdAt: string;
6142
6344
  createdBy: string;
6345
+ createdByRole: string;
6143
6346
  declaration: Record<string, string | number | boolean | {
6144
6347
  type: string;
6145
6348
  filename: string;
@@ -6177,7 +6380,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6177
6380
  option: string;
6178
6381
  filename: string;
6179
6382
  originalFilename: string;
6180
- }[] | undefined>;
6383
+ }[] | [string, string] | undefined>;
6181
6384
  createdAtLocation: string;
6182
6385
  requestId: string;
6183
6386
  annotation?: Record<string, string | number | boolean | {
@@ -6217,13 +6420,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6217
6420
  option: string;
6218
6421
  filename: string;
6219
6422
  originalFilename: string;
6220
- }[] | undefined> | undefined;
6423
+ }[] | [string, string] | undefined> | undefined;
6221
6424
  originalActionId?: string | undefined;
6222
6425
  }>, z.ZodObject<z.objectUtil.extendShape<{
6223
6426
  id: z.ZodString;
6427
+ transactionId: z.ZodString;
6224
6428
  createdAt: z.ZodString;
6225
6429
  createdBy: z.ZodString;
6226
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6430
+ createdByRole: z.ZodString;
6431
+ 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
6432
  filename: z.ZodString;
6228
6433
  originalFilename: z.ZodString;
6229
6434
  type: z.ZodString;
@@ -6337,7 +6542,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6337
6542
  addressLine3?: string | null | undefined;
6338
6543
  postcodeOrZip?: string | null | undefined;
6339
6544
  }>]>>;
6340
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6545
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6341
6546
  filename: z.ZodString;
6342
6547
  originalFilename: z.ZodString;
6343
6548
  type: z.ZodString;
@@ -6456,13 +6661,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6456
6661
  originalActionId: z.ZodOptional<z.ZodString>;
6457
6662
  }, {
6458
6663
  type: z.ZodLiteral<"UNASSIGN">;
6459
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
6664
+ assignedTo: z.ZodLiteral<null>;
6460
6665
  }>, "strip", z.ZodTypeAny, {
6461
6666
  type: "UNASSIGN";
6462
6667
  id: string;
6463
6668
  status: "Rejected" | "Requested" | "Accepted";
6669
+ transactionId: string;
6464
6670
  createdAt: string;
6465
6671
  createdBy: string;
6672
+ createdByRole: string;
6466
6673
  declaration: Record<string, string | number | boolean | {
6467
6674
  type: string;
6468
6675
  filename: string;
@@ -6500,7 +6707,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6500
6707
  option: string;
6501
6708
  filename: string;
6502
6709
  originalFilename: string;
6503
- }[] | undefined>;
6710
+ }[] | [string, string] | undefined>;
6504
6711
  createdAtLocation: string;
6505
6712
  assignedTo: null;
6506
6713
  annotation?: Record<string, string | number | boolean | {
@@ -6540,14 +6747,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6540
6747
  option: string;
6541
6748
  filename: string;
6542
6749
  originalFilename: string;
6543
- }[] | undefined> | undefined;
6750
+ }[] | [string, string] | undefined> | undefined;
6544
6751
  originalActionId?: string | undefined;
6545
6752
  }, {
6546
6753
  type: "UNASSIGN";
6547
6754
  id: string;
6548
6755
  status: "Rejected" | "Requested" | "Accepted";
6756
+ transactionId: string;
6549
6757
  createdAt: string;
6550
6758
  createdBy: string;
6759
+ createdByRole: string;
6551
6760
  declaration: Record<string, string | number | boolean | {
6552
6761
  type: string;
6553
6762
  filename: string;
@@ -6585,8 +6794,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6585
6794
  option: string;
6586
6795
  filename: string;
6587
6796
  originalFilename: string;
6588
- }[] | undefined>;
6797
+ }[] | [string, string] | undefined>;
6589
6798
  createdAtLocation: string;
6799
+ assignedTo: null;
6590
6800
  annotation?: Record<string, string | number | boolean | {
6591
6801
  type: string;
6592
6802
  filename: string;
@@ -6624,14 +6834,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6624
6834
  option: string;
6625
6835
  filename: string;
6626
6836
  originalFilename: string;
6627
- }[] | undefined> | undefined;
6837
+ }[] | [string, string] | undefined> | undefined;
6628
6838
  originalActionId?: string | undefined;
6629
- assignedTo?: null | undefined;
6630
6839
  }>, z.ZodObject<z.objectUtil.extendShape<{
6631
6840
  id: z.ZodString;
6841
+ transactionId: z.ZodString;
6632
6842
  createdAt: z.ZodString;
6633
6843
  createdBy: z.ZodString;
6634
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6844
+ createdByRole: z.ZodString;
6845
+ 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
6846
  filename: z.ZodString;
6636
6847
  originalFilename: z.ZodString;
6637
6848
  type: z.ZodString;
@@ -6745,7 +6956,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6745
6956
  addressLine3?: string | null | undefined;
6746
6957
  postcodeOrZip?: string | null | undefined;
6747
6958
  }>]>>;
6748
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6959
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6749
6960
  filename: z.ZodString;
6750
6961
  originalFilename: z.ZodString;
6751
6962
  type: z.ZodString;
@@ -6868,8 +7079,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6868
7079
  type: "PRINT_CERTIFICATE";
6869
7080
  id: string;
6870
7081
  status: "Rejected" | "Requested" | "Accepted";
7082
+ transactionId: string;
6871
7083
  createdAt: string;
6872
7084
  createdBy: string;
7085
+ createdByRole: string;
6873
7086
  declaration: Record<string, string | number | boolean | {
6874
7087
  type: string;
6875
7088
  filename: string;
@@ -6907,7 +7120,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6907
7120
  option: string;
6908
7121
  filename: string;
6909
7122
  originalFilename: string;
6910
- }[] | undefined>;
7123
+ }[] | [string, string] | undefined>;
6911
7124
  createdAtLocation: string;
6912
7125
  annotation?: Record<string, string | number | boolean | {
6913
7126
  type: string;
@@ -6946,14 +7159,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6946
7159
  option: string;
6947
7160
  filename: string;
6948
7161
  originalFilename: string;
6949
- }[] | undefined> | undefined;
7162
+ }[] | [string, string] | undefined> | undefined;
6950
7163
  originalActionId?: string | undefined;
6951
7164
  }, {
6952
7165
  type: "PRINT_CERTIFICATE";
6953
7166
  id: string;
6954
7167
  status: "Rejected" | "Requested" | "Accepted";
7168
+ transactionId: string;
6955
7169
  createdAt: string;
6956
7170
  createdBy: string;
7171
+ createdByRole: string;
6957
7172
  declaration: Record<string, string | number | boolean | {
6958
7173
  type: string;
6959
7174
  filename: string;
@@ -6991,7 +7206,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6991
7206
  option: string;
6992
7207
  filename: string;
6993
7208
  originalFilename: string;
6994
- }[] | undefined>;
7209
+ }[] | [string, string] | undefined>;
6995
7210
  createdAtLocation: string;
6996
7211
  annotation?: Record<string, string | number | boolean | {
6997
7212
  type: string;
@@ -7030,13 +7245,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7030
7245
  option: string;
7031
7246
  filename: string;
7032
7247
  originalFilename: string;
7033
- }[] | undefined> | undefined;
7248
+ }[] | [string, string] | undefined> | undefined;
7034
7249
  originalActionId?: string | undefined;
7035
7250
  }>, z.ZodObject<z.objectUtil.extendShape<{
7036
7251
  id: z.ZodString;
7252
+ transactionId: z.ZodString;
7037
7253
  createdAt: z.ZodString;
7038
7254
  createdBy: z.ZodString;
7039
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7255
+ createdByRole: z.ZodString;
7256
+ 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
7257
  filename: z.ZodString;
7041
7258
  originalFilename: z.ZodString;
7042
7259
  type: z.ZodString;
@@ -7150,7 +7367,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7150
7367
  addressLine3?: string | null | undefined;
7151
7368
  postcodeOrZip?: string | null | undefined;
7152
7369
  }>]>>;
7153
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7370
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7154
7371
  filename: z.ZodString;
7155
7372
  originalFilename: z.ZodString;
7156
7373
  type: z.ZodString;
@@ -7273,8 +7490,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7273
7490
  type: "READ";
7274
7491
  id: string;
7275
7492
  status: "Rejected" | "Requested" | "Accepted";
7493
+ transactionId: string;
7276
7494
  createdAt: string;
7277
7495
  createdBy: string;
7496
+ createdByRole: string;
7278
7497
  declaration: Record<string, string | number | boolean | {
7279
7498
  type: string;
7280
7499
  filename: string;
@@ -7312,7 +7531,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7312
7531
  option: string;
7313
7532
  filename: string;
7314
7533
  originalFilename: string;
7315
- }[] | undefined>;
7534
+ }[] | [string, string] | undefined>;
7316
7535
  createdAtLocation: string;
7317
7536
  annotation?: Record<string, string | number | boolean | {
7318
7537
  type: string;
@@ -7351,14 +7570,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7351
7570
  option: string;
7352
7571
  filename: string;
7353
7572
  originalFilename: string;
7354
- }[] | undefined> | undefined;
7573
+ }[] | [string, string] | undefined> | undefined;
7355
7574
  originalActionId?: string | undefined;
7356
7575
  }, {
7357
7576
  type: "READ";
7358
7577
  id: string;
7359
7578
  status: "Rejected" | "Requested" | "Accepted";
7579
+ transactionId: string;
7360
7580
  createdAt: string;
7361
7581
  createdBy: string;
7582
+ createdByRole: string;
7362
7583
  declaration: Record<string, string | number | boolean | {
7363
7584
  type: string;
7364
7585
  filename: string;
@@ -7396,7 +7617,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7396
7617
  option: string;
7397
7618
  filename: string;
7398
7619
  originalFilename: string;
7399
- }[] | undefined>;
7620
+ }[] | [string, string] | undefined>;
7400
7621
  createdAtLocation: string;
7401
7622
  annotation?: Record<string, string | number | boolean | {
7402
7623
  type: string;
@@ -7435,15 +7656,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7435
7656
  option: string;
7436
7657
  filename: string;
7437
7658
  originalFilename: string;
7438
- }[] | undefined> | undefined;
7659
+ }[] | [string, string] | undefined> | undefined;
7439
7660
  originalActionId?: string | undefined;
7440
7661
  }>]>;
7441
7662
  export type ActionDocument = z.infer<typeof ActionDocument>;
7442
7663
  export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
7443
7664
  id: z.ZodString;
7665
+ transactionId: z.ZodString;
7444
7666
  createdAt: z.ZodString;
7445
7667
  createdBy: z.ZodString;
7446
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7668
+ createdByRole: z.ZodString;
7669
+ 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
7670
  filename: z.ZodString;
7448
7671
  originalFilename: z.ZodString;
7449
7672
  type: z.ZodString;
@@ -7557,7 +7780,7 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7557
7780
  addressLine3?: string | null | undefined;
7558
7781
  postcodeOrZip?: string | null | undefined;
7559
7782
  }>]>>;
7560
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7783
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7561
7784
  filename: z.ZodString;
7562
7785
  originalFilename: z.ZodString;
7563
7786
  type: z.ZodString;
@@ -7674,28 +7897,38 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7674
7897
  createdAtLocation: z.ZodString;
7675
7898
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7676
7899
  originalActionId: z.ZodOptional<z.ZodString>;
7677
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
7900
+ }, "declaration" | "annotation">, {
7678
7901
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7679
7902
  status: z.ZodLiteral<"Rejected">;
7680
7903
  }>, "strip", z.ZodTypeAny, {
7681
7904
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7682
7905
  id: string;
7683
7906
  status: "Rejected";
7907
+ transactionId: string;
7684
7908
  createdAt: string;
7909
+ createdBy: string;
7910
+ createdByRole: string;
7911
+ createdAtLocation: string;
7685
7912
  originalActionId?: string | undefined;
7686
7913
  }, {
7687
7914
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7688
7915
  id: string;
7689
7916
  status: "Rejected";
7917
+ transactionId: string;
7690
7918
  createdAt: string;
7919
+ createdBy: string;
7920
+ createdByRole: string;
7921
+ createdAtLocation: string;
7691
7922
  originalActionId?: string | undefined;
7692
7923
  }>;
7693
7924
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
7694
7925
  export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7695
7926
  id: z.ZodString;
7927
+ transactionId: z.ZodString;
7696
7928
  createdAt: z.ZodString;
7697
7929
  createdBy: z.ZodString;
7698
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7930
+ createdByRole: z.ZodString;
7931
+ 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
7932
  filename: z.ZodString;
7700
7933
  originalFilename: z.ZodString;
7701
7934
  type: z.ZodString;
@@ -7809,7 +8042,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7809
8042
  addressLine3?: string | null | undefined;
7810
8043
  postcodeOrZip?: string | null | undefined;
7811
8044
  }>]>>;
7812
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8045
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7813
8046
  filename: z.ZodString;
7814
8047
  originalFilename: z.ZodString;
7815
8048
  type: z.ZodString;
@@ -7932,8 +8165,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7932
8165
  type: "CREATE";
7933
8166
  id: string;
7934
8167
  status: "Rejected" | "Requested" | "Accepted";
8168
+ transactionId: string;
7935
8169
  createdAt: string;
7936
8170
  createdBy: string;
8171
+ createdByRole: string;
7937
8172
  declaration: Record<string, string | number | boolean | {
7938
8173
  type: string;
7939
8174
  filename: string;
@@ -7971,7 +8206,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7971
8206
  option: string;
7972
8207
  filename: string;
7973
8208
  originalFilename: string;
7974
- }[] | undefined>;
8209
+ }[] | [string, string] | undefined>;
7975
8210
  createdAtLocation: string;
7976
8211
  annotation?: Record<string, string | number | boolean | {
7977
8212
  type: string;
@@ -8010,14 +8245,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8010
8245
  option: string;
8011
8246
  filename: string;
8012
8247
  originalFilename: string;
8013
- }[] | undefined> | undefined;
8248
+ }[] | [string, string] | undefined> | undefined;
8014
8249
  originalActionId?: string | undefined;
8015
8250
  }, {
8016
8251
  type: "CREATE";
8017
8252
  id: string;
8018
8253
  status: "Rejected" | "Requested" | "Accepted";
8254
+ transactionId: string;
8019
8255
  createdAt: string;
8020
8256
  createdBy: string;
8257
+ createdByRole: string;
8021
8258
  declaration: Record<string, string | number | boolean | {
8022
8259
  type: string;
8023
8260
  filename: string;
@@ -8055,7 +8292,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8055
8292
  option: string;
8056
8293
  filename: string;
8057
8294
  originalFilename: string;
8058
- }[] | undefined>;
8295
+ }[] | [string, string] | undefined>;
8059
8296
  createdAtLocation: string;
8060
8297
  annotation?: Record<string, string | number | boolean | {
8061
8298
  type: string;
@@ -8094,13 +8331,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8094
8331
  option: string;
8095
8332
  filename: string;
8096
8333
  originalFilename: string;
8097
- }[] | undefined> | undefined;
8334
+ }[] | [string, string] | undefined> | undefined;
8098
8335
  originalActionId?: string | undefined;
8099
8336
  }>, z.ZodObject<z.objectUtil.extendShape<{
8100
8337
  id: z.ZodString;
8338
+ transactionId: z.ZodString;
8101
8339
  createdAt: z.ZodString;
8102
8340
  createdBy: z.ZodString;
8103
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8341
+ createdByRole: z.ZodString;
8342
+ 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
8343
  filename: z.ZodString;
8105
8344
  originalFilename: z.ZodString;
8106
8345
  type: z.ZodString;
@@ -8214,7 +8453,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8214
8453
  addressLine3?: string | null | undefined;
8215
8454
  postcodeOrZip?: string | null | undefined;
8216
8455
  }>]>>;
8217
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8456
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8218
8457
  filename: z.ZodString;
8219
8458
  originalFilename: z.ZodString;
8220
8459
  type: z.ZodString;
@@ -8337,8 +8576,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8337
8576
  type: "VALIDATE";
8338
8577
  id: string;
8339
8578
  status: "Rejected" | "Requested" | "Accepted";
8579
+ transactionId: string;
8340
8580
  createdAt: string;
8341
8581
  createdBy: string;
8582
+ createdByRole: string;
8342
8583
  declaration: Record<string, string | number | boolean | {
8343
8584
  type: string;
8344
8585
  filename: string;
@@ -8376,7 +8617,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8376
8617
  option: string;
8377
8618
  filename: string;
8378
8619
  originalFilename: string;
8379
- }[] | undefined>;
8620
+ }[] | [string, string] | undefined>;
8380
8621
  createdAtLocation: string;
8381
8622
  annotation?: Record<string, string | number | boolean | {
8382
8623
  type: string;
@@ -8415,14 +8656,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8415
8656
  option: string;
8416
8657
  filename: string;
8417
8658
  originalFilename: string;
8418
- }[] | undefined> | undefined;
8659
+ }[] | [string, string] | undefined> | undefined;
8419
8660
  originalActionId?: string | undefined;
8420
8661
  }, {
8421
8662
  type: "VALIDATE";
8422
8663
  id: string;
8423
8664
  status: "Rejected" | "Requested" | "Accepted";
8665
+ transactionId: string;
8424
8666
  createdAt: string;
8425
8667
  createdBy: string;
8668
+ createdByRole: string;
8426
8669
  declaration: Record<string, string | number | boolean | {
8427
8670
  type: string;
8428
8671
  filename: string;
@@ -8460,7 +8703,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8460
8703
  option: string;
8461
8704
  filename: string;
8462
8705
  originalFilename: string;
8463
- }[] | undefined>;
8706
+ }[] | [string, string] | undefined>;
8464
8707
  createdAtLocation: string;
8465
8708
  annotation?: Record<string, string | number | boolean | {
8466
8709
  type: string;
@@ -8499,13 +8742,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8499
8742
  option: string;
8500
8743
  filename: string;
8501
8744
  originalFilename: string;
8502
- }[] | undefined> | undefined;
8745
+ }[] | [string, string] | undefined> | undefined;
8503
8746
  originalActionId?: string | undefined;
8504
8747
  }>, z.ZodObject<z.objectUtil.extendShape<{
8505
8748
  id: z.ZodString;
8749
+ transactionId: z.ZodString;
8506
8750
  createdAt: z.ZodString;
8507
8751
  createdBy: z.ZodString;
8508
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8752
+ createdByRole: z.ZodString;
8753
+ 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
8754
  filename: z.ZodString;
8510
8755
  originalFilename: z.ZodString;
8511
8756
  type: z.ZodString;
@@ -8619,7 +8864,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8619
8864
  addressLine3?: string | null | undefined;
8620
8865
  postcodeOrZip?: string | null | undefined;
8621
8866
  }>]>>;
8622
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8867
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8623
8868
  filename: z.ZodString;
8624
8869
  originalFilename: z.ZodString;
8625
8870
  type: z.ZodString;
@@ -8742,8 +8987,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8742
8987
  type: "REJECT";
8743
8988
  id: string;
8744
8989
  status: "Rejected" | "Requested" | "Accepted";
8990
+ transactionId: string;
8745
8991
  createdAt: string;
8746
8992
  createdBy: string;
8993
+ createdByRole: string;
8747
8994
  declaration: Record<string, string | number | boolean | {
8748
8995
  type: string;
8749
8996
  filename: string;
@@ -8781,7 +9028,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8781
9028
  option: string;
8782
9029
  filename: string;
8783
9030
  originalFilename: string;
8784
- }[] | undefined>;
9031
+ }[] | [string, string] | undefined>;
8785
9032
  createdAtLocation: string;
8786
9033
  annotation?: Record<string, string | number | boolean | {
8787
9034
  type: string;
@@ -8820,14 +9067,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8820
9067
  option: string;
8821
9068
  filename: string;
8822
9069
  originalFilename: string;
8823
- }[] | undefined> | undefined;
9070
+ }[] | [string, string] | undefined> | undefined;
8824
9071
  originalActionId?: string | undefined;
8825
9072
  }, {
8826
9073
  type: "REJECT";
8827
9074
  id: string;
8828
9075
  status: "Rejected" | "Requested" | "Accepted";
9076
+ transactionId: string;
8829
9077
  createdAt: string;
8830
9078
  createdBy: string;
9079
+ createdByRole: string;
8831
9080
  declaration: Record<string, string | number | boolean | {
8832
9081
  type: string;
8833
9082
  filename: string;
@@ -8865,7 +9114,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8865
9114
  option: string;
8866
9115
  filename: string;
8867
9116
  originalFilename: string;
8868
- }[] | undefined>;
9117
+ }[] | [string, string] | undefined>;
8869
9118
  createdAtLocation: string;
8870
9119
  annotation?: Record<string, string | number | boolean | {
8871
9120
  type: string;
@@ -8904,13 +9153,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8904
9153
  option: string;
8905
9154
  filename: string;
8906
9155
  originalFilename: string;
8907
- }[] | undefined> | undefined;
9156
+ }[] | [string, string] | undefined> | undefined;
8908
9157
  originalActionId?: string | undefined;
8909
9158
  }>, z.ZodObject<z.objectUtil.extendShape<{
8910
9159
  id: z.ZodString;
9160
+ transactionId: z.ZodString;
8911
9161
  createdAt: z.ZodString;
8912
9162
  createdBy: z.ZodString;
8913
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9163
+ createdByRole: z.ZodString;
9164
+ 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
9165
  filename: z.ZodString;
8915
9166
  originalFilename: z.ZodString;
8916
9167
  type: z.ZodString;
@@ -9024,7 +9275,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9024
9275
  addressLine3?: string | null | undefined;
9025
9276
  postcodeOrZip?: string | null | undefined;
9026
9277
  }>]>>;
9027
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9278
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9028
9279
  filename: z.ZodString;
9029
9280
  originalFilename: z.ZodString;
9030
9281
  type: z.ZodString;
@@ -9147,8 +9398,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9147
9398
  type: "MARKED_AS_DUPLICATE";
9148
9399
  id: string;
9149
9400
  status: "Rejected" | "Requested" | "Accepted";
9401
+ transactionId: string;
9150
9402
  createdAt: string;
9151
9403
  createdBy: string;
9404
+ createdByRole: string;
9152
9405
  declaration: Record<string, string | number | boolean | {
9153
9406
  type: string;
9154
9407
  filename: string;
@@ -9186,7 +9439,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9186
9439
  option: string;
9187
9440
  filename: string;
9188
9441
  originalFilename: string;
9189
- }[] | undefined>;
9442
+ }[] | [string, string] | undefined>;
9190
9443
  createdAtLocation: string;
9191
9444
  annotation?: Record<string, string | number | boolean | {
9192
9445
  type: string;
@@ -9225,14 +9478,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9225
9478
  option: string;
9226
9479
  filename: string;
9227
9480
  originalFilename: string;
9228
- }[] | undefined> | undefined;
9481
+ }[] | [string, string] | undefined> | undefined;
9229
9482
  originalActionId?: string | undefined;
9230
9483
  }, {
9231
9484
  type: "MARKED_AS_DUPLICATE";
9232
9485
  id: string;
9233
9486
  status: "Rejected" | "Requested" | "Accepted";
9487
+ transactionId: string;
9234
9488
  createdAt: string;
9235
9489
  createdBy: string;
9490
+ createdByRole: string;
9236
9491
  declaration: Record<string, string | number | boolean | {
9237
9492
  type: string;
9238
9493
  filename: string;
@@ -9270,7 +9525,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9270
9525
  option: string;
9271
9526
  filename: string;
9272
9527
  originalFilename: string;
9273
- }[] | undefined>;
9528
+ }[] | [string, string] | undefined>;
9274
9529
  createdAtLocation: string;
9275
9530
  annotation?: Record<string, string | number | boolean | {
9276
9531
  type: string;
@@ -9309,13 +9564,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9309
9564
  option: string;
9310
9565
  filename: string;
9311
9566
  originalFilename: string;
9312
- }[] | undefined> | undefined;
9567
+ }[] | [string, string] | undefined> | undefined;
9313
9568
  originalActionId?: string | undefined;
9314
9569
  }>, z.ZodObject<z.objectUtil.extendShape<{
9315
9570
  id: z.ZodString;
9571
+ transactionId: z.ZodString;
9316
9572
  createdAt: z.ZodString;
9317
9573
  createdBy: z.ZodString;
9318
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9574
+ createdByRole: z.ZodString;
9575
+ 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
9576
  filename: z.ZodString;
9320
9577
  originalFilename: z.ZodString;
9321
9578
  type: z.ZodString;
@@ -9429,7 +9686,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9429
9686
  addressLine3?: string | null | undefined;
9430
9687
  postcodeOrZip?: string | null | undefined;
9431
9688
  }>]>>;
9432
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9689
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9433
9690
  filename: z.ZodString;
9434
9691
  originalFilename: z.ZodString;
9435
9692
  type: z.ZodString;
@@ -9552,8 +9809,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9552
9809
  type: "ARCHIVE";
9553
9810
  id: string;
9554
9811
  status: "Rejected" | "Requested" | "Accepted";
9812
+ transactionId: string;
9555
9813
  createdAt: string;
9556
9814
  createdBy: string;
9815
+ createdByRole: string;
9557
9816
  declaration: Record<string, string | number | boolean | {
9558
9817
  type: string;
9559
9818
  filename: string;
@@ -9591,7 +9850,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9591
9850
  option: string;
9592
9851
  filename: string;
9593
9852
  originalFilename: string;
9594
- }[] | undefined>;
9853
+ }[] | [string, string] | undefined>;
9595
9854
  createdAtLocation: string;
9596
9855
  annotation?: Record<string, string | number | boolean | {
9597
9856
  type: string;
@@ -9630,14 +9889,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9630
9889
  option: string;
9631
9890
  filename: string;
9632
9891
  originalFilename: string;
9633
- }[] | undefined> | undefined;
9892
+ }[] | [string, string] | undefined> | undefined;
9634
9893
  originalActionId?: string | undefined;
9635
9894
  }, {
9636
9895
  type: "ARCHIVE";
9637
9896
  id: string;
9638
9897
  status: "Rejected" | "Requested" | "Accepted";
9898
+ transactionId: string;
9639
9899
  createdAt: string;
9640
9900
  createdBy: string;
9901
+ createdByRole: string;
9641
9902
  declaration: Record<string, string | number | boolean | {
9642
9903
  type: string;
9643
9904
  filename: string;
@@ -9675,7 +9936,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9675
9936
  option: string;
9676
9937
  filename: string;
9677
9938
  originalFilename: string;
9678
- }[] | undefined>;
9939
+ }[] | [string, string] | undefined>;
9679
9940
  createdAtLocation: string;
9680
9941
  annotation?: Record<string, string | number | boolean | {
9681
9942
  type: string;
@@ -9714,13 +9975,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9714
9975
  option: string;
9715
9976
  filename: string;
9716
9977
  originalFilename: string;
9717
- }[] | undefined> | undefined;
9978
+ }[] | [string, string] | undefined> | undefined;
9718
9979
  originalActionId?: string | undefined;
9719
9980
  }>, z.ZodObject<z.objectUtil.extendShape<{
9720
9981
  id: z.ZodString;
9982
+ transactionId: z.ZodString;
9721
9983
  createdAt: z.ZodString;
9722
9984
  createdBy: z.ZodString;
9723
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9985
+ createdByRole: z.ZodString;
9986
+ 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
9987
  filename: z.ZodString;
9725
9988
  originalFilename: z.ZodString;
9726
9989
  type: z.ZodString;
@@ -9834,7 +10097,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9834
10097
  addressLine3?: string | null | undefined;
9835
10098
  postcodeOrZip?: string | null | undefined;
9836
10099
  }>]>>;
9837
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10100
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9838
10101
  filename: z.ZodString;
9839
10102
  originalFilename: z.ZodString;
9840
10103
  type: z.ZodString;
@@ -9957,8 +10220,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9957
10220
  type: "NOTIFY";
9958
10221
  id: string;
9959
10222
  status: "Rejected" | "Requested" | "Accepted";
10223
+ transactionId: string;
9960
10224
  createdAt: string;
9961
10225
  createdBy: string;
10226
+ createdByRole: string;
9962
10227
  declaration: Record<string, string | number | boolean | {
9963
10228
  type: string;
9964
10229
  filename: string;
@@ -9996,7 +10261,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9996
10261
  option: string;
9997
10262
  filename: string;
9998
10263
  originalFilename: string;
9999
- }[] | undefined>;
10264
+ }[] | [string, string] | undefined>;
10000
10265
  createdAtLocation: string;
10001
10266
  annotation?: Record<string, string | number | boolean | {
10002
10267
  type: string;
@@ -10035,14 +10300,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10035
10300
  option: string;
10036
10301
  filename: string;
10037
10302
  originalFilename: string;
10038
- }[] | undefined> | undefined;
10303
+ }[] | [string, string] | undefined> | undefined;
10039
10304
  originalActionId?: string | undefined;
10040
10305
  }, {
10041
10306
  type: "NOTIFY";
10042
10307
  id: string;
10043
10308
  status: "Rejected" | "Requested" | "Accepted";
10309
+ transactionId: string;
10044
10310
  createdAt: string;
10045
10311
  createdBy: string;
10312
+ createdByRole: string;
10046
10313
  declaration: Record<string, string | number | boolean | {
10047
10314
  type: string;
10048
10315
  filename: string;
@@ -10080,7 +10347,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10080
10347
  option: string;
10081
10348
  filename: string;
10082
10349
  originalFilename: string;
10083
- }[] | undefined>;
10350
+ }[] | [string, string] | undefined>;
10084
10351
  createdAtLocation: string;
10085
10352
  annotation?: Record<string, string | number | boolean | {
10086
10353
  type: string;
@@ -10119,13 +10386,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10119
10386
  option: string;
10120
10387
  filename: string;
10121
10388
  originalFilename: string;
10122
- }[] | undefined> | undefined;
10389
+ }[] | [string, string] | undefined> | undefined;
10123
10390
  originalActionId?: string | undefined;
10124
10391
  }>, z.ZodObject<z.objectUtil.extendShape<{
10125
10392
  id: z.ZodString;
10393
+ transactionId: z.ZodString;
10126
10394
  createdAt: z.ZodString;
10127
10395
  createdBy: z.ZodString;
10128
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10396
+ createdByRole: z.ZodString;
10397
+ 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
10398
  filename: z.ZodString;
10130
10399
  originalFilename: z.ZodString;
10131
10400
  type: z.ZodString;
@@ -10239,7 +10508,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10239
10508
  addressLine3?: string | null | undefined;
10240
10509
  postcodeOrZip?: string | null | undefined;
10241
10510
  }>]>>;
10242
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10511
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10243
10512
  filename: z.ZodString;
10244
10513
  originalFilename: z.ZodString;
10245
10514
  type: z.ZodString;
@@ -10363,8 +10632,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10363
10632
  type: "REGISTER";
10364
10633
  id: string;
10365
10634
  status: "Rejected" | "Requested" | "Accepted";
10635
+ transactionId: string;
10366
10636
  createdAt: string;
10367
10637
  createdBy: string;
10638
+ createdByRole: string;
10368
10639
  declaration: Record<string, string | number | boolean | {
10369
10640
  type: string;
10370
10641
  filename: string;
@@ -10402,7 +10673,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10402
10673
  option: string;
10403
10674
  filename: string;
10404
10675
  originalFilename: string;
10405
- }[] | undefined>;
10676
+ }[] | [string, string] | undefined>;
10406
10677
  createdAtLocation: string;
10407
10678
  annotation?: Record<string, string | number | boolean | {
10408
10679
  type: string;
@@ -10441,15 +10712,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10441
10712
  option: string;
10442
10713
  filename: string;
10443
10714
  originalFilename: string;
10444
- }[] | undefined> | undefined;
10715
+ }[] | [string, string] | undefined> | undefined;
10445
10716
  originalActionId?: string | undefined;
10446
10717
  registrationNumber?: string | undefined;
10447
10718
  }, {
10448
10719
  type: "REGISTER";
10449
10720
  id: string;
10450
10721
  status: "Rejected" | "Requested" | "Accepted";
10722
+ transactionId: string;
10451
10723
  createdAt: string;
10452
10724
  createdBy: string;
10725
+ createdByRole: string;
10453
10726
  declaration: Record<string, string | number | boolean | {
10454
10727
  type: string;
10455
10728
  filename: string;
@@ -10487,7 +10760,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10487
10760
  option: string;
10488
10761
  filename: string;
10489
10762
  originalFilename: string;
10490
- }[] | undefined>;
10763
+ }[] | [string, string] | undefined>;
10491
10764
  createdAtLocation: string;
10492
10765
  annotation?: Record<string, string | number | boolean | {
10493
10766
  type: string;
@@ -10526,14 +10799,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10526
10799
  option: string;
10527
10800
  filename: string;
10528
10801
  originalFilename: string;
10529
- }[] | undefined> | undefined;
10802
+ }[] | [string, string] | undefined> | undefined;
10530
10803
  originalActionId?: string | undefined;
10531
10804
  registrationNumber?: string | undefined;
10532
10805
  }>, z.ZodObject<z.objectUtil.extendShape<{
10533
10806
  id: z.ZodString;
10807
+ transactionId: z.ZodString;
10534
10808
  createdAt: z.ZodString;
10535
10809
  createdBy: z.ZodString;
10536
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10810
+ createdByRole: z.ZodString;
10811
+ 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
10812
  filename: z.ZodString;
10538
10813
  originalFilename: z.ZodString;
10539
10814
  type: z.ZodString;
@@ -10647,7 +10922,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10647
10922
  addressLine3?: string | null | undefined;
10648
10923
  postcodeOrZip?: string | null | undefined;
10649
10924
  }>]>>;
10650
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10925
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10651
10926
  filename: z.ZodString;
10652
10927
  originalFilename: z.ZodString;
10653
10928
  type: z.ZodString;
@@ -10770,8 +11045,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10770
11045
  type: "DECLARE";
10771
11046
  id: string;
10772
11047
  status: "Rejected" | "Requested" | "Accepted";
11048
+ transactionId: string;
10773
11049
  createdAt: string;
10774
11050
  createdBy: string;
11051
+ createdByRole: string;
10775
11052
  declaration: Record<string, string | number | boolean | {
10776
11053
  type: string;
10777
11054
  filename: string;
@@ -10809,7 +11086,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10809
11086
  option: string;
10810
11087
  filename: string;
10811
11088
  originalFilename: string;
10812
- }[] | undefined>;
11089
+ }[] | [string, string] | undefined>;
10813
11090
  createdAtLocation: string;
10814
11091
  annotation?: Record<string, string | number | boolean | {
10815
11092
  type: string;
@@ -10848,14 +11125,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10848
11125
  option: string;
10849
11126
  filename: string;
10850
11127
  originalFilename: string;
10851
- }[] | undefined> | undefined;
11128
+ }[] | [string, string] | undefined> | undefined;
10852
11129
  originalActionId?: string | undefined;
10853
11130
  }, {
10854
11131
  type: "DECLARE";
10855
11132
  id: string;
10856
11133
  status: "Rejected" | "Requested" | "Accepted";
11134
+ transactionId: string;
10857
11135
  createdAt: string;
10858
11136
  createdBy: string;
11137
+ createdByRole: string;
10859
11138
  declaration: Record<string, string | number | boolean | {
10860
11139
  type: string;
10861
11140
  filename: string;
@@ -10893,7 +11172,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10893
11172
  option: string;
10894
11173
  filename: string;
10895
11174
  originalFilename: string;
10896
- }[] | undefined>;
11175
+ }[] | [string, string] | undefined>;
10897
11176
  createdAtLocation: string;
10898
11177
  annotation?: Record<string, string | number | boolean | {
10899
11178
  type: string;
@@ -10932,13 +11211,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10932
11211
  option: string;
10933
11212
  filename: string;
10934
11213
  originalFilename: string;
10935
- }[] | undefined> | undefined;
11214
+ }[] | [string, string] | undefined> | undefined;
10936
11215
  originalActionId?: string | undefined;
10937
11216
  }>, z.ZodObject<z.objectUtil.extendShape<{
10938
11217
  id: z.ZodString;
11218
+ transactionId: z.ZodString;
10939
11219
  createdAt: z.ZodString;
10940
11220
  createdBy: z.ZodString;
10941
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11221
+ createdByRole: z.ZodString;
11222
+ 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
11223
  filename: z.ZodString;
10943
11224
  originalFilename: z.ZodString;
10944
11225
  type: z.ZodString;
@@ -11052,7 +11333,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11052
11333
  addressLine3?: string | null | undefined;
11053
11334
  postcodeOrZip?: string | null | undefined;
11054
11335
  }>]>>;
11055
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11336
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11056
11337
  filename: z.ZodString;
11057
11338
  originalFilename: z.ZodString;
11058
11339
  type: z.ZodString;
@@ -11176,8 +11457,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11176
11457
  type: "ASSIGN";
11177
11458
  id: string;
11178
11459
  status: "Rejected" | "Requested" | "Accepted";
11460
+ transactionId: string;
11179
11461
  createdAt: string;
11180
11462
  createdBy: string;
11463
+ createdByRole: string;
11181
11464
  declaration: Record<string, string | number | boolean | {
11182
11465
  type: string;
11183
11466
  filename: string;
@@ -11215,7 +11498,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11215
11498
  option: string;
11216
11499
  filename: string;
11217
11500
  originalFilename: string;
11218
- }[] | undefined>;
11501
+ }[] | [string, string] | undefined>;
11219
11502
  createdAtLocation: string;
11220
11503
  assignedTo: string;
11221
11504
  annotation?: Record<string, string | number | boolean | {
@@ -11255,14 +11538,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11255
11538
  option: string;
11256
11539
  filename: string;
11257
11540
  originalFilename: string;
11258
- }[] | undefined> | undefined;
11541
+ }[] | [string, string] | undefined> | undefined;
11259
11542
  originalActionId?: string | undefined;
11260
11543
  }, {
11261
11544
  type: "ASSIGN";
11262
11545
  id: string;
11263
11546
  status: "Rejected" | "Requested" | "Accepted";
11547
+ transactionId: string;
11264
11548
  createdAt: string;
11265
11549
  createdBy: string;
11550
+ createdByRole: string;
11266
11551
  declaration: Record<string, string | number | boolean | {
11267
11552
  type: string;
11268
11553
  filename: string;
@@ -11300,7 +11585,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11300
11585
  option: string;
11301
11586
  filename: string;
11302
11587
  originalFilename: string;
11303
- }[] | undefined>;
11588
+ }[] | [string, string] | undefined>;
11304
11589
  createdAtLocation: string;
11305
11590
  assignedTo: string;
11306
11591
  annotation?: Record<string, string | number | boolean | {
@@ -11340,13 +11625,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11340
11625
  option: string;
11341
11626
  filename: string;
11342
11627
  originalFilename: string;
11343
- }[] | undefined> | undefined;
11628
+ }[] | [string, string] | undefined> | undefined;
11344
11629
  originalActionId?: string | undefined;
11345
11630
  }>, z.ZodObject<z.objectUtil.extendShape<{
11346
11631
  id: z.ZodString;
11632
+ transactionId: z.ZodString;
11347
11633
  createdAt: z.ZodString;
11348
11634
  createdBy: z.ZodString;
11349
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11635
+ createdByRole: z.ZodString;
11636
+ 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
11637
  filename: z.ZodString;
11351
11638
  originalFilename: z.ZodString;
11352
11639
  type: z.ZodString;
@@ -11460,7 +11747,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11460
11747
  addressLine3?: string | null | undefined;
11461
11748
  postcodeOrZip?: string | null | undefined;
11462
11749
  }>]>>;
11463
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11750
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11464
11751
  filename: z.ZodString;
11465
11752
  originalFilename: z.ZodString;
11466
11753
  type: z.ZodString;
@@ -11583,8 +11870,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11583
11870
  type: "REQUEST_CORRECTION";
11584
11871
  id: string;
11585
11872
  status: "Rejected" | "Requested" | "Accepted";
11873
+ transactionId: string;
11586
11874
  createdAt: string;
11587
11875
  createdBy: string;
11876
+ createdByRole: string;
11588
11877
  declaration: Record<string, string | number | boolean | {
11589
11878
  type: string;
11590
11879
  filename: string;
@@ -11622,7 +11911,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11622
11911
  option: string;
11623
11912
  filename: string;
11624
11913
  originalFilename: string;
11625
- }[] | undefined>;
11914
+ }[] | [string, string] | undefined>;
11626
11915
  createdAtLocation: string;
11627
11916
  annotation?: Record<string, string | number | boolean | {
11628
11917
  type: string;
@@ -11661,14 +11950,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11661
11950
  option: string;
11662
11951
  filename: string;
11663
11952
  originalFilename: string;
11664
- }[] | undefined> | undefined;
11953
+ }[] | [string, string] | undefined> | undefined;
11665
11954
  originalActionId?: string | undefined;
11666
11955
  }, {
11667
11956
  type: "REQUEST_CORRECTION";
11668
11957
  id: string;
11669
11958
  status: "Rejected" | "Requested" | "Accepted";
11959
+ transactionId: string;
11670
11960
  createdAt: string;
11671
11961
  createdBy: string;
11962
+ createdByRole: string;
11672
11963
  declaration: Record<string, string | number | boolean | {
11673
11964
  type: string;
11674
11965
  filename: string;
@@ -11706,7 +11997,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11706
11997
  option: string;
11707
11998
  filename: string;
11708
11999
  originalFilename: string;
11709
- }[] | undefined>;
12000
+ }[] | [string, string] | undefined>;
11710
12001
  createdAtLocation: string;
11711
12002
  annotation?: Record<string, string | number | boolean | {
11712
12003
  type: string;
@@ -11745,13 +12036,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11745
12036
  option: string;
11746
12037
  filename: string;
11747
12038
  originalFilename: string;
11748
- }[] | undefined> | undefined;
12039
+ }[] | [string, string] | undefined> | undefined;
11749
12040
  originalActionId?: string | undefined;
11750
12041
  }>, z.ZodObject<z.objectUtil.extendShape<{
11751
12042
  id: z.ZodString;
12043
+ transactionId: z.ZodString;
11752
12044
  createdAt: z.ZodString;
11753
12045
  createdBy: z.ZodString;
11754
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12046
+ createdByRole: z.ZodString;
12047
+ 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
12048
  filename: z.ZodString;
11756
12049
  originalFilename: z.ZodString;
11757
12050
  type: z.ZodString;
@@ -11865,7 +12158,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11865
12158
  addressLine3?: string | null | undefined;
11866
12159
  postcodeOrZip?: string | null | undefined;
11867
12160
  }>]>>;
11868
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12161
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11869
12162
  filename: z.ZodString;
11870
12163
  originalFilename: z.ZodString;
11871
12164
  type: z.ZodString;
@@ -11989,8 +12282,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11989
12282
  type: "APPROVE_CORRECTION";
11990
12283
  id: string;
11991
12284
  status: "Rejected" | "Requested" | "Accepted";
12285
+ transactionId: string;
11992
12286
  createdAt: string;
11993
12287
  createdBy: string;
12288
+ createdByRole: string;
11994
12289
  declaration: Record<string, string | number | boolean | {
11995
12290
  type: string;
11996
12291
  filename: string;
@@ -12028,7 +12323,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12028
12323
  option: string;
12029
12324
  filename: string;
12030
12325
  originalFilename: string;
12031
- }[] | undefined>;
12326
+ }[] | [string, string] | undefined>;
12032
12327
  createdAtLocation: string;
12033
12328
  requestId: string;
12034
12329
  annotation?: Record<string, string | number | boolean | {
@@ -12068,14 +12363,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12068
12363
  option: string;
12069
12364
  filename: string;
12070
12365
  originalFilename: string;
12071
- }[] | undefined> | undefined;
12366
+ }[] | [string, string] | undefined> | undefined;
12072
12367
  originalActionId?: string | undefined;
12073
12368
  }, {
12074
12369
  type: "APPROVE_CORRECTION";
12075
12370
  id: string;
12076
12371
  status: "Rejected" | "Requested" | "Accepted";
12372
+ transactionId: string;
12077
12373
  createdAt: string;
12078
12374
  createdBy: string;
12375
+ createdByRole: string;
12079
12376
  declaration: Record<string, string | number | boolean | {
12080
12377
  type: string;
12081
12378
  filename: string;
@@ -12113,7 +12410,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12113
12410
  option: string;
12114
12411
  filename: string;
12115
12412
  originalFilename: string;
12116
- }[] | undefined>;
12413
+ }[] | [string, string] | undefined>;
12117
12414
  createdAtLocation: string;
12118
12415
  requestId: string;
12119
12416
  annotation?: Record<string, string | number | boolean | {
@@ -12153,13 +12450,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12153
12450
  option: string;
12154
12451
  filename: string;
12155
12452
  originalFilename: string;
12156
- }[] | undefined> | undefined;
12453
+ }[] | [string, string] | undefined> | undefined;
12157
12454
  originalActionId?: string | undefined;
12158
12455
  }>, z.ZodObject<z.objectUtil.extendShape<{
12159
12456
  id: z.ZodString;
12457
+ transactionId: z.ZodString;
12160
12458
  createdAt: z.ZodString;
12161
12459
  createdBy: z.ZodString;
12162
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12460
+ createdByRole: z.ZodString;
12461
+ 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
12462
  filename: z.ZodString;
12164
12463
  originalFilename: z.ZodString;
12165
12464
  type: z.ZodString;
@@ -12273,7 +12572,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12273
12572
  addressLine3?: string | null | undefined;
12274
12573
  postcodeOrZip?: string | null | undefined;
12275
12574
  }>]>>;
12276
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12575
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12277
12576
  filename: z.ZodString;
12278
12577
  originalFilename: z.ZodString;
12279
12578
  type: z.ZodString;
@@ -12397,8 +12696,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12397
12696
  type: "REJECT_CORRECTION";
12398
12697
  id: string;
12399
12698
  status: "Rejected" | "Requested" | "Accepted";
12699
+ transactionId: string;
12400
12700
  createdAt: string;
12401
12701
  createdBy: string;
12702
+ createdByRole: string;
12402
12703
  declaration: Record<string, string | number | boolean | {
12403
12704
  type: string;
12404
12705
  filename: string;
@@ -12436,7 +12737,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12436
12737
  option: string;
12437
12738
  filename: string;
12438
12739
  originalFilename: string;
12439
- }[] | undefined>;
12740
+ }[] | [string, string] | undefined>;
12440
12741
  createdAtLocation: string;
12441
12742
  requestId: string;
12442
12743
  annotation?: Record<string, string | number | boolean | {
@@ -12476,14 +12777,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12476
12777
  option: string;
12477
12778
  filename: string;
12478
12779
  originalFilename: string;
12479
- }[] | undefined> | undefined;
12780
+ }[] | [string, string] | undefined> | undefined;
12480
12781
  originalActionId?: string | undefined;
12481
12782
  }, {
12482
12783
  type: "REJECT_CORRECTION";
12483
12784
  id: string;
12484
12785
  status: "Rejected" | "Requested" | "Accepted";
12786
+ transactionId: string;
12485
12787
  createdAt: string;
12486
12788
  createdBy: string;
12789
+ createdByRole: string;
12487
12790
  declaration: Record<string, string | number | boolean | {
12488
12791
  type: string;
12489
12792
  filename: string;
@@ -12521,7 +12824,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12521
12824
  option: string;
12522
12825
  filename: string;
12523
12826
  originalFilename: string;
12524
- }[] | undefined>;
12827
+ }[] | [string, string] | undefined>;
12525
12828
  createdAtLocation: string;
12526
12829
  requestId: string;
12527
12830
  annotation?: Record<string, string | number | boolean | {
@@ -12561,13 +12864,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12561
12864
  option: string;
12562
12865
  filename: string;
12563
12866
  originalFilename: string;
12564
- }[] | undefined> | undefined;
12867
+ }[] | [string, string] | undefined> | undefined;
12565
12868
  originalActionId?: string | undefined;
12566
12869
  }>, z.ZodObject<z.objectUtil.extendShape<{
12567
12870
  id: z.ZodString;
12871
+ transactionId: z.ZodString;
12568
12872
  createdAt: z.ZodString;
12569
12873
  createdBy: z.ZodString;
12570
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12874
+ createdByRole: z.ZodString;
12875
+ 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
12876
  filename: z.ZodString;
12572
12877
  originalFilename: z.ZodString;
12573
12878
  type: z.ZodString;
@@ -12681,7 +12986,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12681
12986
  addressLine3?: string | null | undefined;
12682
12987
  postcodeOrZip?: string | null | undefined;
12683
12988
  }>]>>;
12684
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12989
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
12685
12990
  filename: z.ZodString;
12686
12991
  originalFilename: z.ZodString;
12687
12992
  type: z.ZodString;
@@ -12800,13 +13105,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12800
13105
  originalActionId: z.ZodOptional<z.ZodString>;
12801
13106
  }, {
12802
13107
  type: z.ZodLiteral<"UNASSIGN">;
12803
- assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
13108
+ assignedTo: z.ZodLiteral<null>;
12804
13109
  }>, "strip", z.ZodTypeAny, {
12805
13110
  type: "UNASSIGN";
12806
13111
  id: string;
12807
13112
  status: "Rejected" | "Requested" | "Accepted";
13113
+ transactionId: string;
12808
13114
  createdAt: string;
12809
13115
  createdBy: string;
13116
+ createdByRole: string;
12810
13117
  declaration: Record<string, string | number | boolean | {
12811
13118
  type: string;
12812
13119
  filename: string;
@@ -12844,7 +13151,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12844
13151
  option: string;
12845
13152
  filename: string;
12846
13153
  originalFilename: string;
12847
- }[] | undefined>;
13154
+ }[] | [string, string] | undefined>;
12848
13155
  createdAtLocation: string;
12849
13156
  assignedTo: null;
12850
13157
  annotation?: Record<string, string | number | boolean | {
@@ -12884,14 +13191,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12884
13191
  option: string;
12885
13192
  filename: string;
12886
13193
  originalFilename: string;
12887
- }[] | undefined> | undefined;
13194
+ }[] | [string, string] | undefined> | undefined;
12888
13195
  originalActionId?: string | undefined;
12889
13196
  }, {
12890
13197
  type: "UNASSIGN";
12891
13198
  id: string;
12892
13199
  status: "Rejected" | "Requested" | "Accepted";
13200
+ transactionId: string;
12893
13201
  createdAt: string;
12894
13202
  createdBy: string;
13203
+ createdByRole: string;
12895
13204
  declaration: Record<string, string | number | boolean | {
12896
13205
  type: string;
12897
13206
  filename: string;
@@ -12929,8 +13238,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12929
13238
  option: string;
12930
13239
  filename: string;
12931
13240
  originalFilename: string;
12932
- }[] | undefined>;
13241
+ }[] | [string, string] | undefined>;
12933
13242
  createdAtLocation: string;
13243
+ assignedTo: null;
12934
13244
  annotation?: Record<string, string | number | boolean | {
12935
13245
  type: string;
12936
13246
  filename: string;
@@ -12968,14 +13278,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12968
13278
  option: string;
12969
13279
  filename: string;
12970
13280
  originalFilename: string;
12971
- }[] | undefined> | undefined;
13281
+ }[] | [string, string] | undefined> | undefined;
12972
13282
  originalActionId?: string | undefined;
12973
- assignedTo?: null | undefined;
12974
13283
  }>, z.ZodObject<z.objectUtil.extendShape<{
12975
13284
  id: z.ZodString;
13285
+ transactionId: z.ZodString;
12976
13286
  createdAt: z.ZodString;
12977
13287
  createdBy: z.ZodString;
12978
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13288
+ createdByRole: z.ZodString;
13289
+ 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
13290
  filename: z.ZodString;
12980
13291
  originalFilename: z.ZodString;
12981
13292
  type: z.ZodString;
@@ -13089,7 +13400,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13089
13400
  addressLine3?: string | null | undefined;
13090
13401
  postcodeOrZip?: string | null | undefined;
13091
13402
  }>]>>;
13092
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13403
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13093
13404
  filename: z.ZodString;
13094
13405
  originalFilename: z.ZodString;
13095
13406
  type: z.ZodString;
@@ -13212,8 +13523,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13212
13523
  type: "PRINT_CERTIFICATE";
13213
13524
  id: string;
13214
13525
  status: "Rejected" | "Requested" | "Accepted";
13526
+ transactionId: string;
13215
13527
  createdAt: string;
13216
13528
  createdBy: string;
13529
+ createdByRole: string;
13217
13530
  declaration: Record<string, string | number | boolean | {
13218
13531
  type: string;
13219
13532
  filename: string;
@@ -13251,7 +13564,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13251
13564
  option: string;
13252
13565
  filename: string;
13253
13566
  originalFilename: string;
13254
- }[] | undefined>;
13567
+ }[] | [string, string] | undefined>;
13255
13568
  createdAtLocation: string;
13256
13569
  annotation?: Record<string, string | number | boolean | {
13257
13570
  type: string;
@@ -13290,14 +13603,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13290
13603
  option: string;
13291
13604
  filename: string;
13292
13605
  originalFilename: string;
13293
- }[] | undefined> | undefined;
13606
+ }[] | [string, string] | undefined> | undefined;
13294
13607
  originalActionId?: string | undefined;
13295
13608
  }, {
13296
13609
  type: "PRINT_CERTIFICATE";
13297
13610
  id: string;
13298
13611
  status: "Rejected" | "Requested" | "Accepted";
13612
+ transactionId: string;
13299
13613
  createdAt: string;
13300
13614
  createdBy: string;
13615
+ createdByRole: string;
13301
13616
  declaration: Record<string, string | number | boolean | {
13302
13617
  type: string;
13303
13618
  filename: string;
@@ -13335,7 +13650,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13335
13650
  option: string;
13336
13651
  filename: string;
13337
13652
  originalFilename: string;
13338
- }[] | undefined>;
13653
+ }[] | [string, string] | undefined>;
13339
13654
  createdAtLocation: string;
13340
13655
  annotation?: Record<string, string | number | boolean | {
13341
13656
  type: string;
@@ -13374,13 +13689,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13374
13689
  option: string;
13375
13690
  filename: string;
13376
13691
  originalFilename: string;
13377
- }[] | undefined> | undefined;
13692
+ }[] | [string, string] | undefined> | undefined;
13378
13693
  originalActionId?: string | undefined;
13379
13694
  }>, z.ZodObject<z.objectUtil.extendShape<{
13380
13695
  id: z.ZodString;
13696
+ transactionId: z.ZodString;
13381
13697
  createdAt: z.ZodString;
13382
13698
  createdBy: z.ZodString;
13383
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13699
+ createdByRole: z.ZodString;
13700
+ 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
13701
  filename: z.ZodString;
13385
13702
  originalFilename: z.ZodString;
13386
13703
  type: z.ZodString;
@@ -13494,7 +13811,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13494
13811
  addressLine3?: string | null | undefined;
13495
13812
  postcodeOrZip?: string | null | undefined;
13496
13813
  }>]>>;
13497
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13814
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13498
13815
  filename: z.ZodString;
13499
13816
  originalFilename: z.ZodString;
13500
13817
  type: z.ZodString;
@@ -13617,8 +13934,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13617
13934
  type: "READ";
13618
13935
  id: string;
13619
13936
  status: "Rejected" | "Requested" | "Accepted";
13937
+ transactionId: string;
13620
13938
  createdAt: string;
13621
13939
  createdBy: string;
13940
+ createdByRole: string;
13622
13941
  declaration: Record<string, string | number | boolean | {
13623
13942
  type: string;
13624
13943
  filename: string;
@@ -13656,7 +13975,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13656
13975
  option: string;
13657
13976
  filename: string;
13658
13977
  originalFilename: string;
13659
- }[] | undefined>;
13978
+ }[] | [string, string] | undefined>;
13660
13979
  createdAtLocation: string;
13661
13980
  annotation?: Record<string, string | number | boolean | {
13662
13981
  type: string;
@@ -13695,14 +14014,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13695
14014
  option: string;
13696
14015
  filename: string;
13697
14016
  originalFilename: string;
13698
- }[] | undefined> | undefined;
14017
+ }[] | [string, string] | undefined> | undefined;
13699
14018
  originalActionId?: string | undefined;
13700
14019
  }, {
13701
14020
  type: "READ";
13702
14021
  id: string;
13703
14022
  status: "Rejected" | "Requested" | "Accepted";
14023
+ transactionId: string;
13704
14024
  createdAt: string;
13705
14025
  createdBy: string;
14026
+ createdByRole: string;
13706
14027
  declaration: Record<string, string | number | boolean | {
13707
14028
  type: string;
13708
14029
  filename: string;
@@ -13740,7 +14061,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13740
14061
  option: string;
13741
14062
  filename: string;
13742
14063
  originalFilename: string;
13743
- }[] | undefined>;
14064
+ }[] | [string, string] | undefined>;
13744
14065
  createdAtLocation: string;
13745
14066
  annotation?: Record<string, string | number | boolean | {
13746
14067
  type: string;
@@ -13779,13 +14100,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13779
14100
  option: string;
13780
14101
  filename: string;
13781
14102
  originalFilename: string;
13782
- }[] | undefined> | undefined;
14103
+ }[] | [string, string] | undefined> | undefined;
13783
14104
  originalActionId?: string | undefined;
13784
14105
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
13785
14106
  id: z.ZodString;
14107
+ transactionId: z.ZodString;
13786
14108
  createdAt: z.ZodString;
13787
14109
  createdBy: z.ZodString;
13788
- declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14110
+ createdByRole: z.ZodString;
14111
+ 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
14112
  filename: z.ZodString;
13790
14113
  originalFilename: z.ZodString;
13791
14114
  type: z.ZodString;
@@ -13899,7 +14222,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13899
14222
  addressLine3?: string | null | undefined;
13900
14223
  postcodeOrZip?: string | null | undefined;
13901
14224
  }>]>>;
13902
- annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
14225
+ annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
13903
14226
  filename: z.ZodString;
13904
14227
  originalFilename: z.ZodString;
13905
14228
  type: z.ZodString;
@@ -14016,20 +14339,28 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14016
14339
  createdAtLocation: z.ZodString;
14017
14340
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14018
14341
  originalActionId: z.ZodOptional<z.ZodString>;
14019
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
14342
+ }, "declaration" | "annotation">, {
14020
14343
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
14021
14344
  status: z.ZodLiteral<"Rejected">;
14022
14345
  }>, "strip", z.ZodTypeAny, {
14023
14346
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14024
14347
  id: string;
14025
14348
  status: "Rejected";
14349
+ transactionId: string;
14026
14350
  createdAt: string;
14351
+ createdBy: string;
14352
+ createdByRole: string;
14353
+ createdAtLocation: string;
14027
14354
  originalActionId?: string | undefined;
14028
14355
  }, {
14029
14356
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14030
14357
  id: string;
14031
14358
  status: "Rejected";
14359
+ transactionId: string;
14032
14360
  createdAt: string;
14361
+ createdBy: string;
14362
+ createdByRole: string;
14363
+ createdAtLocation: string;
14033
14364
  originalActionId?: string | undefined;
14034
14365
  }>]>;
14035
14366
  export type Action = ActionDocument | AsyncRejectActionDocument;