@opencrvs/toolkit 1.8.0-rc.fd31705 → 1.8.0-rc.fd754eb

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 (38) hide show
  1. package/dist/commons/api/router.d.ts +7717 -4214
  2. package/dist/commons/conditionals/conditionals.d.ts +9 -6
  3. package/dist/commons/conditionals/validate.d.ts +5 -11
  4. package/dist/commons/events/ActionConfig.d.ts +90025 -1680
  5. package/dist/commons/events/ActionDocument.d.ts +544 -207
  6. package/dist/commons/events/ActionInput.d.ts +466 -368
  7. package/dist/commons/events/ActionType.d.ts +2 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +369 -25
  9. package/dist/commons/events/CompositeFieldValue.d.ts +3 -0
  10. package/dist/commons/events/Draft.d.ts +39 -23
  11. package/dist/commons/events/EventConfig.d.ts +42812 -1344
  12. package/dist/commons/events/EventDocument.d.ts +339 -153
  13. package/dist/commons/events/EventIndex.d.ts +1346 -13
  14. package/dist/commons/events/EventInput.d.ts +13 -0
  15. package/dist/commons/events/EventMetadata.d.ts +273 -11
  16. package/dist/commons/events/FieldConfig.d.ts +3733 -724
  17. package/dist/commons/events/FieldType.d.ts +3 -3
  18. package/dist/commons/events/FieldTypeMapping.d.ts +11 -4
  19. package/dist/commons/events/FieldValue.d.ts +7 -4
  20. package/dist/commons/events/FormConfig.d.ts +40417 -439
  21. package/dist/commons/events/PageConfig.d.ts +10077 -203
  22. package/dist/commons/events/SummaryConfig.d.ts +95 -39
  23. package/dist/commons/events/TemplateConfig.d.ts +4 -4
  24. package/dist/commons/events/User.d.ts +5 -0
  25. package/dist/commons/events/WorkqueueConfig.d.ts +1135 -19
  26. package/dist/commons/events/defineConfig.d.ts +6971 -40
  27. package/dist/commons/events/event.d.ts +27 -0
  28. package/dist/commons/events/field.d.ts +68 -0
  29. package/dist/commons/events/index.d.ts +3 -0
  30. package/dist/commons/events/scopes.d.ts +26 -0
  31. package/dist/commons/events/test.utils.d.ts +8 -45
  32. package/dist/commons/events/utils.d.ts +3562 -71
  33. package/dist/commons/events/utils.test.d.ts +2 -0
  34. package/dist/conditionals/index.js +36 -33
  35. package/dist/events/index.js +1864 -1099
  36. package/dist/scopes/index.d.ts +70 -1
  37. package/dist/scopes/index.js +130 -0
  38. 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,12 +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">;
6664
+ assignedTo: z.ZodLiteral<null>;
6459
6665
  }>, "strip", z.ZodTypeAny, {
6460
6666
  type: "UNASSIGN";
6461
6667
  id: string;
6462
6668
  status: "Rejected" | "Requested" | "Accepted";
6669
+ transactionId: string;
6463
6670
  createdAt: string;
6464
6671
  createdBy: string;
6672
+ createdByRole: string;
6465
6673
  declaration: Record<string, string | number | boolean | {
6466
6674
  type: string;
6467
6675
  filename: string;
@@ -6499,8 +6707,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6499
6707
  option: string;
6500
6708
  filename: string;
6501
6709
  originalFilename: string;
6502
- }[] | undefined>;
6710
+ }[] | [string, string] | undefined>;
6503
6711
  createdAtLocation: string;
6712
+ assignedTo: null;
6504
6713
  annotation?: Record<string, string | number | boolean | {
6505
6714
  type: string;
6506
6715
  filename: string;
@@ -6538,14 +6747,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6538
6747
  option: string;
6539
6748
  filename: string;
6540
6749
  originalFilename: string;
6541
- }[] | undefined> | undefined;
6750
+ }[] | [string, string] | undefined> | undefined;
6542
6751
  originalActionId?: string | undefined;
6543
6752
  }, {
6544
6753
  type: "UNASSIGN";
6545
6754
  id: string;
6546
6755
  status: "Rejected" | "Requested" | "Accepted";
6756
+ transactionId: string;
6547
6757
  createdAt: string;
6548
6758
  createdBy: string;
6759
+ createdByRole: string;
6549
6760
  declaration: Record<string, string | number | boolean | {
6550
6761
  type: string;
6551
6762
  filename: string;
@@ -6583,8 +6794,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6583
6794
  option: string;
6584
6795
  filename: string;
6585
6796
  originalFilename: string;
6586
- }[] | undefined>;
6797
+ }[] | [string, string] | undefined>;
6587
6798
  createdAtLocation: string;
6799
+ assignedTo: null;
6588
6800
  annotation?: Record<string, string | number | boolean | {
6589
6801
  type: string;
6590
6802
  filename: string;
@@ -6622,13 +6834,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6622
6834
  option: string;
6623
6835
  filename: string;
6624
6836
  originalFilename: string;
6625
- }[] | undefined> | undefined;
6837
+ }[] | [string, string] | undefined> | undefined;
6626
6838
  originalActionId?: string | undefined;
6627
6839
  }>, z.ZodObject<z.objectUtil.extendShape<{
6628
6840
  id: z.ZodString;
6841
+ transactionId: z.ZodString;
6629
6842
  createdAt: z.ZodString;
6630
6843
  createdBy: z.ZodString;
6631
- 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<{
6632
6846
  filename: z.ZodString;
6633
6847
  originalFilename: z.ZodString;
6634
6848
  type: z.ZodString;
@@ -6742,7 +6956,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6742
6956
  addressLine3?: string | null | undefined;
6743
6957
  postcodeOrZip?: string | null | undefined;
6744
6958
  }>]>>;
6745
- 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<{
6746
6960
  filename: z.ZodString;
6747
6961
  originalFilename: z.ZodString;
6748
6962
  type: z.ZodString;
@@ -6865,8 +7079,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6865
7079
  type: "PRINT_CERTIFICATE";
6866
7080
  id: string;
6867
7081
  status: "Rejected" | "Requested" | "Accepted";
7082
+ transactionId: string;
6868
7083
  createdAt: string;
6869
7084
  createdBy: string;
7085
+ createdByRole: string;
6870
7086
  declaration: Record<string, string | number | boolean | {
6871
7087
  type: string;
6872
7088
  filename: string;
@@ -6904,7 +7120,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6904
7120
  option: string;
6905
7121
  filename: string;
6906
7122
  originalFilename: string;
6907
- }[] | undefined>;
7123
+ }[] | [string, string] | undefined>;
6908
7124
  createdAtLocation: string;
6909
7125
  annotation?: Record<string, string | number | boolean | {
6910
7126
  type: string;
@@ -6943,14 +7159,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6943
7159
  option: string;
6944
7160
  filename: string;
6945
7161
  originalFilename: string;
6946
- }[] | undefined> | undefined;
7162
+ }[] | [string, string] | undefined> | undefined;
6947
7163
  originalActionId?: string | undefined;
6948
7164
  }, {
6949
7165
  type: "PRINT_CERTIFICATE";
6950
7166
  id: string;
6951
7167
  status: "Rejected" | "Requested" | "Accepted";
7168
+ transactionId: string;
6952
7169
  createdAt: string;
6953
7170
  createdBy: string;
7171
+ createdByRole: string;
6954
7172
  declaration: Record<string, string | number | boolean | {
6955
7173
  type: string;
6956
7174
  filename: string;
@@ -6988,7 +7206,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
6988
7206
  option: string;
6989
7207
  filename: string;
6990
7208
  originalFilename: string;
6991
- }[] | undefined>;
7209
+ }[] | [string, string] | undefined>;
6992
7210
  createdAtLocation: string;
6993
7211
  annotation?: Record<string, string | number | boolean | {
6994
7212
  type: string;
@@ -7027,13 +7245,15 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7027
7245
  option: string;
7028
7246
  filename: string;
7029
7247
  originalFilename: string;
7030
- }[] | undefined> | undefined;
7248
+ }[] | [string, string] | undefined> | undefined;
7031
7249
  originalActionId?: string | undefined;
7032
7250
  }>, z.ZodObject<z.objectUtil.extendShape<{
7033
7251
  id: z.ZodString;
7252
+ transactionId: z.ZodString;
7034
7253
  createdAt: z.ZodString;
7035
7254
  createdBy: z.ZodString;
7036
- 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<{
7037
7257
  filename: z.ZodString;
7038
7258
  originalFilename: z.ZodString;
7039
7259
  type: z.ZodString;
@@ -7147,7 +7367,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7147
7367
  addressLine3?: string | null | undefined;
7148
7368
  postcodeOrZip?: string | null | undefined;
7149
7369
  }>]>>;
7150
- 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<{
7151
7371
  filename: z.ZodString;
7152
7372
  originalFilename: z.ZodString;
7153
7373
  type: z.ZodString;
@@ -7270,8 +7490,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7270
7490
  type: "READ";
7271
7491
  id: string;
7272
7492
  status: "Rejected" | "Requested" | "Accepted";
7493
+ transactionId: string;
7273
7494
  createdAt: string;
7274
7495
  createdBy: string;
7496
+ createdByRole: string;
7275
7497
  declaration: Record<string, string | number | boolean | {
7276
7498
  type: string;
7277
7499
  filename: string;
@@ -7309,7 +7531,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7309
7531
  option: string;
7310
7532
  filename: string;
7311
7533
  originalFilename: string;
7312
- }[] | undefined>;
7534
+ }[] | [string, string] | undefined>;
7313
7535
  createdAtLocation: string;
7314
7536
  annotation?: Record<string, string | number | boolean | {
7315
7537
  type: string;
@@ -7348,14 +7570,16 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7348
7570
  option: string;
7349
7571
  filename: string;
7350
7572
  originalFilename: string;
7351
- }[] | undefined> | undefined;
7573
+ }[] | [string, string] | undefined> | undefined;
7352
7574
  originalActionId?: string | undefined;
7353
7575
  }, {
7354
7576
  type: "READ";
7355
7577
  id: string;
7356
7578
  status: "Rejected" | "Requested" | "Accepted";
7579
+ transactionId: string;
7357
7580
  createdAt: string;
7358
7581
  createdBy: string;
7582
+ createdByRole: string;
7359
7583
  declaration: Record<string, string | number | boolean | {
7360
7584
  type: string;
7361
7585
  filename: string;
@@ -7393,7 +7617,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7393
7617
  option: string;
7394
7618
  filename: string;
7395
7619
  originalFilename: string;
7396
- }[] | undefined>;
7620
+ }[] | [string, string] | undefined>;
7397
7621
  createdAtLocation: string;
7398
7622
  annotation?: Record<string, string | number | boolean | {
7399
7623
  type: string;
@@ -7432,15 +7656,17 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7432
7656
  option: string;
7433
7657
  filename: string;
7434
7658
  originalFilename: string;
7435
- }[] | undefined> | undefined;
7659
+ }[] | [string, string] | undefined> | undefined;
7436
7660
  originalActionId?: string | undefined;
7437
7661
  }>]>;
7438
7662
  export type ActionDocument = z.infer<typeof ActionDocument>;
7439
7663
  export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendShape<Omit<{
7440
7664
  id: z.ZodString;
7665
+ transactionId: z.ZodString;
7441
7666
  createdAt: z.ZodString;
7442
7667
  createdBy: z.ZodString;
7443
- 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<{
7444
7670
  filename: z.ZodString;
7445
7671
  originalFilename: z.ZodString;
7446
7672
  type: z.ZodString;
@@ -7554,7 +7780,7 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7554
7780
  addressLine3?: string | null | undefined;
7555
7781
  postcodeOrZip?: string | null | undefined;
7556
7782
  }>]>>;
7557
- 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<{
7558
7784
  filename: z.ZodString;
7559
7785
  originalFilename: z.ZodString;
7560
7786
  type: z.ZodString;
@@ -7671,28 +7897,38 @@ export declare const AsyncRejectActionDocument: z.ZodObject<z.objectUtil.extendS
7671
7897
  createdAtLocation: z.ZodString;
7672
7898
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
7673
7899
  originalActionId: z.ZodOptional<z.ZodString>;
7674
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
7900
+ }, "declaration" | "annotation">, {
7675
7901
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
7676
7902
  status: z.ZodLiteral<"Rejected">;
7677
7903
  }>, "strip", z.ZodTypeAny, {
7678
7904
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7679
7905
  id: string;
7680
7906
  status: "Rejected";
7907
+ transactionId: string;
7681
7908
  createdAt: string;
7909
+ createdBy: string;
7910
+ createdByRole: string;
7911
+ createdAtLocation: string;
7682
7912
  originalActionId?: string | undefined;
7683
7913
  }, {
7684
7914
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
7685
7915
  id: string;
7686
7916
  status: "Rejected";
7917
+ transactionId: string;
7687
7918
  createdAt: string;
7919
+ createdBy: string;
7920
+ createdByRole: string;
7921
+ createdAtLocation: string;
7688
7922
  originalActionId?: string | undefined;
7689
7923
  }>;
7690
7924
  export type AsyncRejectActionDocument = z.infer<typeof AsyncRejectActionDocument>;
7691
7925
  export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
7692
7926
  id: z.ZodString;
7927
+ transactionId: z.ZodString;
7693
7928
  createdAt: z.ZodString;
7694
7929
  createdBy: z.ZodString;
7695
- 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<{
7696
7932
  filename: z.ZodString;
7697
7933
  originalFilename: z.ZodString;
7698
7934
  type: z.ZodString;
@@ -7806,7 +8042,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7806
8042
  addressLine3?: string | null | undefined;
7807
8043
  postcodeOrZip?: string | null | undefined;
7808
8044
  }>]>>;
7809
- 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<{
7810
8046
  filename: z.ZodString;
7811
8047
  originalFilename: z.ZodString;
7812
8048
  type: z.ZodString;
@@ -7929,8 +8165,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7929
8165
  type: "CREATE";
7930
8166
  id: string;
7931
8167
  status: "Rejected" | "Requested" | "Accepted";
8168
+ transactionId: string;
7932
8169
  createdAt: string;
7933
8170
  createdBy: string;
8171
+ createdByRole: string;
7934
8172
  declaration: Record<string, string | number | boolean | {
7935
8173
  type: string;
7936
8174
  filename: string;
@@ -7968,7 +8206,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
7968
8206
  option: string;
7969
8207
  filename: string;
7970
8208
  originalFilename: string;
7971
- }[] | undefined>;
8209
+ }[] | [string, string] | undefined>;
7972
8210
  createdAtLocation: string;
7973
8211
  annotation?: Record<string, string | number | boolean | {
7974
8212
  type: string;
@@ -8007,14 +8245,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8007
8245
  option: string;
8008
8246
  filename: string;
8009
8247
  originalFilename: string;
8010
- }[] | undefined> | undefined;
8248
+ }[] | [string, string] | undefined> | undefined;
8011
8249
  originalActionId?: string | undefined;
8012
8250
  }, {
8013
8251
  type: "CREATE";
8014
8252
  id: string;
8015
8253
  status: "Rejected" | "Requested" | "Accepted";
8254
+ transactionId: string;
8016
8255
  createdAt: string;
8017
8256
  createdBy: string;
8257
+ createdByRole: string;
8018
8258
  declaration: Record<string, string | number | boolean | {
8019
8259
  type: string;
8020
8260
  filename: string;
@@ -8052,7 +8292,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8052
8292
  option: string;
8053
8293
  filename: string;
8054
8294
  originalFilename: string;
8055
- }[] | undefined>;
8295
+ }[] | [string, string] | undefined>;
8056
8296
  createdAtLocation: string;
8057
8297
  annotation?: Record<string, string | number | boolean | {
8058
8298
  type: string;
@@ -8091,13 +8331,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8091
8331
  option: string;
8092
8332
  filename: string;
8093
8333
  originalFilename: string;
8094
- }[] | undefined> | undefined;
8334
+ }[] | [string, string] | undefined> | undefined;
8095
8335
  originalActionId?: string | undefined;
8096
8336
  }>, z.ZodObject<z.objectUtil.extendShape<{
8097
8337
  id: z.ZodString;
8338
+ transactionId: z.ZodString;
8098
8339
  createdAt: z.ZodString;
8099
8340
  createdBy: z.ZodString;
8100
- 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<{
8101
8343
  filename: z.ZodString;
8102
8344
  originalFilename: z.ZodString;
8103
8345
  type: z.ZodString;
@@ -8211,7 +8453,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8211
8453
  addressLine3?: string | null | undefined;
8212
8454
  postcodeOrZip?: string | null | undefined;
8213
8455
  }>]>>;
8214
- 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<{
8215
8457
  filename: z.ZodString;
8216
8458
  originalFilename: z.ZodString;
8217
8459
  type: z.ZodString;
@@ -8334,8 +8576,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8334
8576
  type: "VALIDATE";
8335
8577
  id: string;
8336
8578
  status: "Rejected" | "Requested" | "Accepted";
8579
+ transactionId: string;
8337
8580
  createdAt: string;
8338
8581
  createdBy: string;
8582
+ createdByRole: string;
8339
8583
  declaration: Record<string, string | number | boolean | {
8340
8584
  type: string;
8341
8585
  filename: string;
@@ -8373,7 +8617,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8373
8617
  option: string;
8374
8618
  filename: string;
8375
8619
  originalFilename: string;
8376
- }[] | undefined>;
8620
+ }[] | [string, string] | undefined>;
8377
8621
  createdAtLocation: string;
8378
8622
  annotation?: Record<string, string | number | boolean | {
8379
8623
  type: string;
@@ -8412,14 +8656,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8412
8656
  option: string;
8413
8657
  filename: string;
8414
8658
  originalFilename: string;
8415
- }[] | undefined> | undefined;
8659
+ }[] | [string, string] | undefined> | undefined;
8416
8660
  originalActionId?: string | undefined;
8417
8661
  }, {
8418
8662
  type: "VALIDATE";
8419
8663
  id: string;
8420
8664
  status: "Rejected" | "Requested" | "Accepted";
8665
+ transactionId: string;
8421
8666
  createdAt: string;
8422
8667
  createdBy: string;
8668
+ createdByRole: string;
8423
8669
  declaration: Record<string, string | number | boolean | {
8424
8670
  type: string;
8425
8671
  filename: string;
@@ -8457,7 +8703,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8457
8703
  option: string;
8458
8704
  filename: string;
8459
8705
  originalFilename: string;
8460
- }[] | undefined>;
8706
+ }[] | [string, string] | undefined>;
8461
8707
  createdAtLocation: string;
8462
8708
  annotation?: Record<string, string | number | boolean | {
8463
8709
  type: string;
@@ -8496,13 +8742,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8496
8742
  option: string;
8497
8743
  filename: string;
8498
8744
  originalFilename: string;
8499
- }[] | undefined> | undefined;
8745
+ }[] | [string, string] | undefined> | undefined;
8500
8746
  originalActionId?: string | undefined;
8501
8747
  }>, z.ZodObject<z.objectUtil.extendShape<{
8502
8748
  id: z.ZodString;
8749
+ transactionId: z.ZodString;
8503
8750
  createdAt: z.ZodString;
8504
8751
  createdBy: z.ZodString;
8505
- 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<{
8506
8754
  filename: z.ZodString;
8507
8755
  originalFilename: z.ZodString;
8508
8756
  type: z.ZodString;
@@ -8616,7 +8864,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8616
8864
  addressLine3?: string | null | undefined;
8617
8865
  postcodeOrZip?: string | null | undefined;
8618
8866
  }>]>>;
8619
- 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<{
8620
8868
  filename: z.ZodString;
8621
8869
  originalFilename: z.ZodString;
8622
8870
  type: z.ZodString;
@@ -8739,8 +8987,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8739
8987
  type: "REJECT";
8740
8988
  id: string;
8741
8989
  status: "Rejected" | "Requested" | "Accepted";
8990
+ transactionId: string;
8742
8991
  createdAt: string;
8743
8992
  createdBy: string;
8993
+ createdByRole: string;
8744
8994
  declaration: Record<string, string | number | boolean | {
8745
8995
  type: string;
8746
8996
  filename: string;
@@ -8778,7 +9028,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8778
9028
  option: string;
8779
9029
  filename: string;
8780
9030
  originalFilename: string;
8781
- }[] | undefined>;
9031
+ }[] | [string, string] | undefined>;
8782
9032
  createdAtLocation: string;
8783
9033
  annotation?: Record<string, string | number | boolean | {
8784
9034
  type: string;
@@ -8817,14 +9067,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8817
9067
  option: string;
8818
9068
  filename: string;
8819
9069
  originalFilename: string;
8820
- }[] | undefined> | undefined;
9070
+ }[] | [string, string] | undefined> | undefined;
8821
9071
  originalActionId?: string | undefined;
8822
9072
  }, {
8823
9073
  type: "REJECT";
8824
9074
  id: string;
8825
9075
  status: "Rejected" | "Requested" | "Accepted";
9076
+ transactionId: string;
8826
9077
  createdAt: string;
8827
9078
  createdBy: string;
9079
+ createdByRole: string;
8828
9080
  declaration: Record<string, string | number | boolean | {
8829
9081
  type: string;
8830
9082
  filename: string;
@@ -8862,7 +9114,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8862
9114
  option: string;
8863
9115
  filename: string;
8864
9116
  originalFilename: string;
8865
- }[] | undefined>;
9117
+ }[] | [string, string] | undefined>;
8866
9118
  createdAtLocation: string;
8867
9119
  annotation?: Record<string, string | number | boolean | {
8868
9120
  type: string;
@@ -8901,13 +9153,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
8901
9153
  option: string;
8902
9154
  filename: string;
8903
9155
  originalFilename: string;
8904
- }[] | undefined> | undefined;
9156
+ }[] | [string, string] | undefined> | undefined;
8905
9157
  originalActionId?: string | undefined;
8906
9158
  }>, z.ZodObject<z.objectUtil.extendShape<{
8907
9159
  id: z.ZodString;
9160
+ transactionId: z.ZodString;
8908
9161
  createdAt: z.ZodString;
8909
9162
  createdBy: z.ZodString;
8910
- 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<{
8911
9165
  filename: z.ZodString;
8912
9166
  originalFilename: z.ZodString;
8913
9167
  type: z.ZodString;
@@ -9021,7 +9275,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9021
9275
  addressLine3?: string | null | undefined;
9022
9276
  postcodeOrZip?: string | null | undefined;
9023
9277
  }>]>>;
9024
- 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<{
9025
9279
  filename: z.ZodString;
9026
9280
  originalFilename: z.ZodString;
9027
9281
  type: z.ZodString;
@@ -9144,8 +9398,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9144
9398
  type: "MARKED_AS_DUPLICATE";
9145
9399
  id: string;
9146
9400
  status: "Rejected" | "Requested" | "Accepted";
9401
+ transactionId: string;
9147
9402
  createdAt: string;
9148
9403
  createdBy: string;
9404
+ createdByRole: string;
9149
9405
  declaration: Record<string, string | number | boolean | {
9150
9406
  type: string;
9151
9407
  filename: string;
@@ -9183,7 +9439,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9183
9439
  option: string;
9184
9440
  filename: string;
9185
9441
  originalFilename: string;
9186
- }[] | undefined>;
9442
+ }[] | [string, string] | undefined>;
9187
9443
  createdAtLocation: string;
9188
9444
  annotation?: Record<string, string | number | boolean | {
9189
9445
  type: string;
@@ -9222,14 +9478,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9222
9478
  option: string;
9223
9479
  filename: string;
9224
9480
  originalFilename: string;
9225
- }[] | undefined> | undefined;
9481
+ }[] | [string, string] | undefined> | undefined;
9226
9482
  originalActionId?: string | undefined;
9227
9483
  }, {
9228
9484
  type: "MARKED_AS_DUPLICATE";
9229
9485
  id: string;
9230
9486
  status: "Rejected" | "Requested" | "Accepted";
9487
+ transactionId: string;
9231
9488
  createdAt: string;
9232
9489
  createdBy: string;
9490
+ createdByRole: string;
9233
9491
  declaration: Record<string, string | number | boolean | {
9234
9492
  type: string;
9235
9493
  filename: string;
@@ -9267,7 +9525,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9267
9525
  option: string;
9268
9526
  filename: string;
9269
9527
  originalFilename: string;
9270
- }[] | undefined>;
9528
+ }[] | [string, string] | undefined>;
9271
9529
  createdAtLocation: string;
9272
9530
  annotation?: Record<string, string | number | boolean | {
9273
9531
  type: string;
@@ -9306,13 +9564,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9306
9564
  option: string;
9307
9565
  filename: string;
9308
9566
  originalFilename: string;
9309
- }[] | undefined> | undefined;
9567
+ }[] | [string, string] | undefined> | undefined;
9310
9568
  originalActionId?: string | undefined;
9311
9569
  }>, z.ZodObject<z.objectUtil.extendShape<{
9312
9570
  id: z.ZodString;
9571
+ transactionId: z.ZodString;
9313
9572
  createdAt: z.ZodString;
9314
9573
  createdBy: z.ZodString;
9315
- 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<{
9316
9576
  filename: z.ZodString;
9317
9577
  originalFilename: z.ZodString;
9318
9578
  type: z.ZodString;
@@ -9426,7 +9686,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9426
9686
  addressLine3?: string | null | undefined;
9427
9687
  postcodeOrZip?: string | null | undefined;
9428
9688
  }>]>>;
9429
- 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<{
9430
9690
  filename: z.ZodString;
9431
9691
  originalFilename: z.ZodString;
9432
9692
  type: z.ZodString;
@@ -9549,8 +9809,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9549
9809
  type: "ARCHIVE";
9550
9810
  id: string;
9551
9811
  status: "Rejected" | "Requested" | "Accepted";
9812
+ transactionId: string;
9552
9813
  createdAt: string;
9553
9814
  createdBy: string;
9815
+ createdByRole: string;
9554
9816
  declaration: Record<string, string | number | boolean | {
9555
9817
  type: string;
9556
9818
  filename: string;
@@ -9588,7 +9850,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9588
9850
  option: string;
9589
9851
  filename: string;
9590
9852
  originalFilename: string;
9591
- }[] | undefined>;
9853
+ }[] | [string, string] | undefined>;
9592
9854
  createdAtLocation: string;
9593
9855
  annotation?: Record<string, string | number | boolean | {
9594
9856
  type: string;
@@ -9627,14 +9889,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9627
9889
  option: string;
9628
9890
  filename: string;
9629
9891
  originalFilename: string;
9630
- }[] | undefined> | undefined;
9892
+ }[] | [string, string] | undefined> | undefined;
9631
9893
  originalActionId?: string | undefined;
9632
9894
  }, {
9633
9895
  type: "ARCHIVE";
9634
9896
  id: string;
9635
9897
  status: "Rejected" | "Requested" | "Accepted";
9898
+ transactionId: string;
9636
9899
  createdAt: string;
9637
9900
  createdBy: string;
9901
+ createdByRole: string;
9638
9902
  declaration: Record<string, string | number | boolean | {
9639
9903
  type: string;
9640
9904
  filename: string;
@@ -9672,7 +9936,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9672
9936
  option: string;
9673
9937
  filename: string;
9674
9938
  originalFilename: string;
9675
- }[] | undefined>;
9939
+ }[] | [string, string] | undefined>;
9676
9940
  createdAtLocation: string;
9677
9941
  annotation?: Record<string, string | number | boolean | {
9678
9942
  type: string;
@@ -9711,13 +9975,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9711
9975
  option: string;
9712
9976
  filename: string;
9713
9977
  originalFilename: string;
9714
- }[] | undefined> | undefined;
9978
+ }[] | [string, string] | undefined> | undefined;
9715
9979
  originalActionId?: string | undefined;
9716
9980
  }>, z.ZodObject<z.objectUtil.extendShape<{
9717
9981
  id: z.ZodString;
9982
+ transactionId: z.ZodString;
9718
9983
  createdAt: z.ZodString;
9719
9984
  createdBy: z.ZodString;
9720
- 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<{
9721
9987
  filename: z.ZodString;
9722
9988
  originalFilename: z.ZodString;
9723
9989
  type: z.ZodString;
@@ -9831,7 +10097,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9831
10097
  addressLine3?: string | null | undefined;
9832
10098
  postcodeOrZip?: string | null | undefined;
9833
10099
  }>]>>;
9834
- 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<{
9835
10101
  filename: z.ZodString;
9836
10102
  originalFilename: z.ZodString;
9837
10103
  type: z.ZodString;
@@ -9954,8 +10220,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9954
10220
  type: "NOTIFY";
9955
10221
  id: string;
9956
10222
  status: "Rejected" | "Requested" | "Accepted";
10223
+ transactionId: string;
9957
10224
  createdAt: string;
9958
10225
  createdBy: string;
10226
+ createdByRole: string;
9959
10227
  declaration: Record<string, string | number | boolean | {
9960
10228
  type: string;
9961
10229
  filename: string;
@@ -9993,7 +10261,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
9993
10261
  option: string;
9994
10262
  filename: string;
9995
10263
  originalFilename: string;
9996
- }[] | undefined>;
10264
+ }[] | [string, string] | undefined>;
9997
10265
  createdAtLocation: string;
9998
10266
  annotation?: Record<string, string | number | boolean | {
9999
10267
  type: string;
@@ -10032,14 +10300,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10032
10300
  option: string;
10033
10301
  filename: string;
10034
10302
  originalFilename: string;
10035
- }[] | undefined> | undefined;
10303
+ }[] | [string, string] | undefined> | undefined;
10036
10304
  originalActionId?: string | undefined;
10037
10305
  }, {
10038
10306
  type: "NOTIFY";
10039
10307
  id: string;
10040
10308
  status: "Rejected" | "Requested" | "Accepted";
10309
+ transactionId: string;
10041
10310
  createdAt: string;
10042
10311
  createdBy: string;
10312
+ createdByRole: string;
10043
10313
  declaration: Record<string, string | number | boolean | {
10044
10314
  type: string;
10045
10315
  filename: string;
@@ -10077,7 +10347,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10077
10347
  option: string;
10078
10348
  filename: string;
10079
10349
  originalFilename: string;
10080
- }[] | undefined>;
10350
+ }[] | [string, string] | undefined>;
10081
10351
  createdAtLocation: string;
10082
10352
  annotation?: Record<string, string | number | boolean | {
10083
10353
  type: string;
@@ -10116,13 +10386,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10116
10386
  option: string;
10117
10387
  filename: string;
10118
10388
  originalFilename: string;
10119
- }[] | undefined> | undefined;
10389
+ }[] | [string, string] | undefined> | undefined;
10120
10390
  originalActionId?: string | undefined;
10121
10391
  }>, z.ZodObject<z.objectUtil.extendShape<{
10122
10392
  id: z.ZodString;
10393
+ transactionId: z.ZodString;
10123
10394
  createdAt: z.ZodString;
10124
10395
  createdBy: z.ZodString;
10125
- 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<{
10126
10398
  filename: z.ZodString;
10127
10399
  originalFilename: z.ZodString;
10128
10400
  type: z.ZodString;
@@ -10236,7 +10508,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10236
10508
  addressLine3?: string | null | undefined;
10237
10509
  postcodeOrZip?: string | null | undefined;
10238
10510
  }>]>>;
10239
- 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<{
10240
10512
  filename: z.ZodString;
10241
10513
  originalFilename: z.ZodString;
10242
10514
  type: z.ZodString;
@@ -10360,8 +10632,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10360
10632
  type: "REGISTER";
10361
10633
  id: string;
10362
10634
  status: "Rejected" | "Requested" | "Accepted";
10635
+ transactionId: string;
10363
10636
  createdAt: string;
10364
10637
  createdBy: string;
10638
+ createdByRole: string;
10365
10639
  declaration: Record<string, string | number | boolean | {
10366
10640
  type: string;
10367
10641
  filename: string;
@@ -10399,7 +10673,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10399
10673
  option: string;
10400
10674
  filename: string;
10401
10675
  originalFilename: string;
10402
- }[] | undefined>;
10676
+ }[] | [string, string] | undefined>;
10403
10677
  createdAtLocation: string;
10404
10678
  annotation?: Record<string, string | number | boolean | {
10405
10679
  type: string;
@@ -10438,15 +10712,17 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10438
10712
  option: string;
10439
10713
  filename: string;
10440
10714
  originalFilename: string;
10441
- }[] | undefined> | undefined;
10715
+ }[] | [string, string] | undefined> | undefined;
10442
10716
  originalActionId?: string | undefined;
10443
10717
  registrationNumber?: string | undefined;
10444
10718
  }, {
10445
10719
  type: "REGISTER";
10446
10720
  id: string;
10447
10721
  status: "Rejected" | "Requested" | "Accepted";
10722
+ transactionId: string;
10448
10723
  createdAt: string;
10449
10724
  createdBy: string;
10725
+ createdByRole: string;
10450
10726
  declaration: Record<string, string | number | boolean | {
10451
10727
  type: string;
10452
10728
  filename: string;
@@ -10484,7 +10760,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10484
10760
  option: string;
10485
10761
  filename: string;
10486
10762
  originalFilename: string;
10487
- }[] | undefined>;
10763
+ }[] | [string, string] | undefined>;
10488
10764
  createdAtLocation: string;
10489
10765
  annotation?: Record<string, string | number | boolean | {
10490
10766
  type: string;
@@ -10523,14 +10799,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10523
10799
  option: string;
10524
10800
  filename: string;
10525
10801
  originalFilename: string;
10526
- }[] | undefined> | undefined;
10802
+ }[] | [string, string] | undefined> | undefined;
10527
10803
  originalActionId?: string | undefined;
10528
10804
  registrationNumber?: string | undefined;
10529
10805
  }>, z.ZodObject<z.objectUtil.extendShape<{
10530
10806
  id: z.ZodString;
10807
+ transactionId: z.ZodString;
10531
10808
  createdAt: z.ZodString;
10532
10809
  createdBy: z.ZodString;
10533
- 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<{
10534
10812
  filename: z.ZodString;
10535
10813
  originalFilename: z.ZodString;
10536
10814
  type: z.ZodString;
@@ -10644,7 +10922,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10644
10922
  addressLine3?: string | null | undefined;
10645
10923
  postcodeOrZip?: string | null | undefined;
10646
10924
  }>]>>;
10647
- 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<{
10648
10926
  filename: z.ZodString;
10649
10927
  originalFilename: z.ZodString;
10650
10928
  type: z.ZodString;
@@ -10767,8 +11045,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10767
11045
  type: "DECLARE";
10768
11046
  id: string;
10769
11047
  status: "Rejected" | "Requested" | "Accepted";
11048
+ transactionId: string;
10770
11049
  createdAt: string;
10771
11050
  createdBy: string;
11051
+ createdByRole: string;
10772
11052
  declaration: Record<string, string | number | boolean | {
10773
11053
  type: string;
10774
11054
  filename: string;
@@ -10806,7 +11086,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10806
11086
  option: string;
10807
11087
  filename: string;
10808
11088
  originalFilename: string;
10809
- }[] | undefined>;
11089
+ }[] | [string, string] | undefined>;
10810
11090
  createdAtLocation: string;
10811
11091
  annotation?: Record<string, string | number | boolean | {
10812
11092
  type: string;
@@ -10845,14 +11125,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10845
11125
  option: string;
10846
11126
  filename: string;
10847
11127
  originalFilename: string;
10848
- }[] | undefined> | undefined;
11128
+ }[] | [string, string] | undefined> | undefined;
10849
11129
  originalActionId?: string | undefined;
10850
11130
  }, {
10851
11131
  type: "DECLARE";
10852
11132
  id: string;
10853
11133
  status: "Rejected" | "Requested" | "Accepted";
11134
+ transactionId: string;
10854
11135
  createdAt: string;
10855
11136
  createdBy: string;
11137
+ createdByRole: string;
10856
11138
  declaration: Record<string, string | number | boolean | {
10857
11139
  type: string;
10858
11140
  filename: string;
@@ -10890,7 +11172,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10890
11172
  option: string;
10891
11173
  filename: string;
10892
11174
  originalFilename: string;
10893
- }[] | undefined>;
11175
+ }[] | [string, string] | undefined>;
10894
11176
  createdAtLocation: string;
10895
11177
  annotation?: Record<string, string | number | boolean | {
10896
11178
  type: string;
@@ -10929,13 +11211,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
10929
11211
  option: string;
10930
11212
  filename: string;
10931
11213
  originalFilename: string;
10932
- }[] | undefined> | undefined;
11214
+ }[] | [string, string] | undefined> | undefined;
10933
11215
  originalActionId?: string | undefined;
10934
11216
  }>, z.ZodObject<z.objectUtil.extendShape<{
10935
11217
  id: z.ZodString;
11218
+ transactionId: z.ZodString;
10936
11219
  createdAt: z.ZodString;
10937
11220
  createdBy: z.ZodString;
10938
- 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<{
10939
11223
  filename: z.ZodString;
10940
11224
  originalFilename: z.ZodString;
10941
11225
  type: z.ZodString;
@@ -11049,7 +11333,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11049
11333
  addressLine3?: string | null | undefined;
11050
11334
  postcodeOrZip?: string | null | undefined;
11051
11335
  }>]>>;
11052
- 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<{
11053
11337
  filename: z.ZodString;
11054
11338
  originalFilename: z.ZodString;
11055
11339
  type: z.ZodString;
@@ -11173,8 +11457,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11173
11457
  type: "ASSIGN";
11174
11458
  id: string;
11175
11459
  status: "Rejected" | "Requested" | "Accepted";
11460
+ transactionId: string;
11176
11461
  createdAt: string;
11177
11462
  createdBy: string;
11463
+ createdByRole: string;
11178
11464
  declaration: Record<string, string | number | boolean | {
11179
11465
  type: string;
11180
11466
  filename: string;
@@ -11212,7 +11498,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11212
11498
  option: string;
11213
11499
  filename: string;
11214
11500
  originalFilename: string;
11215
- }[] | undefined>;
11501
+ }[] | [string, string] | undefined>;
11216
11502
  createdAtLocation: string;
11217
11503
  assignedTo: string;
11218
11504
  annotation?: Record<string, string | number | boolean | {
@@ -11252,14 +11538,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11252
11538
  option: string;
11253
11539
  filename: string;
11254
11540
  originalFilename: string;
11255
- }[] | undefined> | undefined;
11541
+ }[] | [string, string] | undefined> | undefined;
11256
11542
  originalActionId?: string | undefined;
11257
11543
  }, {
11258
11544
  type: "ASSIGN";
11259
11545
  id: string;
11260
11546
  status: "Rejected" | "Requested" | "Accepted";
11547
+ transactionId: string;
11261
11548
  createdAt: string;
11262
11549
  createdBy: string;
11550
+ createdByRole: string;
11263
11551
  declaration: Record<string, string | number | boolean | {
11264
11552
  type: string;
11265
11553
  filename: string;
@@ -11297,7 +11585,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11297
11585
  option: string;
11298
11586
  filename: string;
11299
11587
  originalFilename: string;
11300
- }[] | undefined>;
11588
+ }[] | [string, string] | undefined>;
11301
11589
  createdAtLocation: string;
11302
11590
  assignedTo: string;
11303
11591
  annotation?: Record<string, string | number | boolean | {
@@ -11337,13 +11625,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11337
11625
  option: string;
11338
11626
  filename: string;
11339
11627
  originalFilename: string;
11340
- }[] | undefined> | undefined;
11628
+ }[] | [string, string] | undefined> | undefined;
11341
11629
  originalActionId?: string | undefined;
11342
11630
  }>, z.ZodObject<z.objectUtil.extendShape<{
11343
11631
  id: z.ZodString;
11632
+ transactionId: z.ZodString;
11344
11633
  createdAt: z.ZodString;
11345
11634
  createdBy: z.ZodString;
11346
- 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<{
11347
11637
  filename: z.ZodString;
11348
11638
  originalFilename: z.ZodString;
11349
11639
  type: z.ZodString;
@@ -11457,7 +11747,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11457
11747
  addressLine3?: string | null | undefined;
11458
11748
  postcodeOrZip?: string | null | undefined;
11459
11749
  }>]>>;
11460
- 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<{
11461
11751
  filename: z.ZodString;
11462
11752
  originalFilename: z.ZodString;
11463
11753
  type: z.ZodString;
@@ -11580,8 +11870,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11580
11870
  type: "REQUEST_CORRECTION";
11581
11871
  id: string;
11582
11872
  status: "Rejected" | "Requested" | "Accepted";
11873
+ transactionId: string;
11583
11874
  createdAt: string;
11584
11875
  createdBy: string;
11876
+ createdByRole: string;
11585
11877
  declaration: Record<string, string | number | boolean | {
11586
11878
  type: string;
11587
11879
  filename: string;
@@ -11619,7 +11911,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11619
11911
  option: string;
11620
11912
  filename: string;
11621
11913
  originalFilename: string;
11622
- }[] | undefined>;
11914
+ }[] | [string, string] | undefined>;
11623
11915
  createdAtLocation: string;
11624
11916
  annotation?: Record<string, string | number | boolean | {
11625
11917
  type: string;
@@ -11658,14 +11950,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11658
11950
  option: string;
11659
11951
  filename: string;
11660
11952
  originalFilename: string;
11661
- }[] | undefined> | undefined;
11953
+ }[] | [string, string] | undefined> | undefined;
11662
11954
  originalActionId?: string | undefined;
11663
11955
  }, {
11664
11956
  type: "REQUEST_CORRECTION";
11665
11957
  id: string;
11666
11958
  status: "Rejected" | "Requested" | "Accepted";
11959
+ transactionId: string;
11667
11960
  createdAt: string;
11668
11961
  createdBy: string;
11962
+ createdByRole: string;
11669
11963
  declaration: Record<string, string | number | boolean | {
11670
11964
  type: string;
11671
11965
  filename: string;
@@ -11703,7 +11997,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11703
11997
  option: string;
11704
11998
  filename: string;
11705
11999
  originalFilename: string;
11706
- }[] | undefined>;
12000
+ }[] | [string, string] | undefined>;
11707
12001
  createdAtLocation: string;
11708
12002
  annotation?: Record<string, string | number | boolean | {
11709
12003
  type: string;
@@ -11742,13 +12036,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11742
12036
  option: string;
11743
12037
  filename: string;
11744
12038
  originalFilename: string;
11745
- }[] | undefined> | undefined;
12039
+ }[] | [string, string] | undefined> | undefined;
11746
12040
  originalActionId?: string | undefined;
11747
12041
  }>, z.ZodObject<z.objectUtil.extendShape<{
11748
12042
  id: z.ZodString;
12043
+ transactionId: z.ZodString;
11749
12044
  createdAt: z.ZodString;
11750
12045
  createdBy: z.ZodString;
11751
- 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<{
11752
12048
  filename: z.ZodString;
11753
12049
  originalFilename: z.ZodString;
11754
12050
  type: z.ZodString;
@@ -11862,7 +12158,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11862
12158
  addressLine3?: string | null | undefined;
11863
12159
  postcodeOrZip?: string | null | undefined;
11864
12160
  }>]>>;
11865
- 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<{
11866
12162
  filename: z.ZodString;
11867
12163
  originalFilename: z.ZodString;
11868
12164
  type: z.ZodString;
@@ -11986,8 +12282,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
11986
12282
  type: "APPROVE_CORRECTION";
11987
12283
  id: string;
11988
12284
  status: "Rejected" | "Requested" | "Accepted";
12285
+ transactionId: string;
11989
12286
  createdAt: string;
11990
12287
  createdBy: string;
12288
+ createdByRole: string;
11991
12289
  declaration: Record<string, string | number | boolean | {
11992
12290
  type: string;
11993
12291
  filename: string;
@@ -12025,7 +12323,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12025
12323
  option: string;
12026
12324
  filename: string;
12027
12325
  originalFilename: string;
12028
- }[] | undefined>;
12326
+ }[] | [string, string] | undefined>;
12029
12327
  createdAtLocation: string;
12030
12328
  requestId: string;
12031
12329
  annotation?: Record<string, string | number | boolean | {
@@ -12065,14 +12363,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12065
12363
  option: string;
12066
12364
  filename: string;
12067
12365
  originalFilename: string;
12068
- }[] | undefined> | undefined;
12366
+ }[] | [string, string] | undefined> | undefined;
12069
12367
  originalActionId?: string | undefined;
12070
12368
  }, {
12071
12369
  type: "APPROVE_CORRECTION";
12072
12370
  id: string;
12073
12371
  status: "Rejected" | "Requested" | "Accepted";
12372
+ transactionId: string;
12074
12373
  createdAt: string;
12075
12374
  createdBy: string;
12375
+ createdByRole: string;
12076
12376
  declaration: Record<string, string | number | boolean | {
12077
12377
  type: string;
12078
12378
  filename: string;
@@ -12110,7 +12410,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12110
12410
  option: string;
12111
12411
  filename: string;
12112
12412
  originalFilename: string;
12113
- }[] | undefined>;
12413
+ }[] | [string, string] | undefined>;
12114
12414
  createdAtLocation: string;
12115
12415
  requestId: string;
12116
12416
  annotation?: Record<string, string | number | boolean | {
@@ -12150,13 +12450,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12150
12450
  option: string;
12151
12451
  filename: string;
12152
12452
  originalFilename: string;
12153
- }[] | undefined> | undefined;
12453
+ }[] | [string, string] | undefined> | undefined;
12154
12454
  originalActionId?: string | undefined;
12155
12455
  }>, z.ZodObject<z.objectUtil.extendShape<{
12156
12456
  id: z.ZodString;
12457
+ transactionId: z.ZodString;
12157
12458
  createdAt: z.ZodString;
12158
12459
  createdBy: z.ZodString;
12159
- 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<{
12160
12462
  filename: z.ZodString;
12161
12463
  originalFilename: z.ZodString;
12162
12464
  type: z.ZodString;
@@ -12270,7 +12572,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12270
12572
  addressLine3?: string | null | undefined;
12271
12573
  postcodeOrZip?: string | null | undefined;
12272
12574
  }>]>>;
12273
- 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<{
12274
12576
  filename: z.ZodString;
12275
12577
  originalFilename: z.ZodString;
12276
12578
  type: z.ZodString;
@@ -12394,8 +12696,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12394
12696
  type: "REJECT_CORRECTION";
12395
12697
  id: string;
12396
12698
  status: "Rejected" | "Requested" | "Accepted";
12699
+ transactionId: string;
12397
12700
  createdAt: string;
12398
12701
  createdBy: string;
12702
+ createdByRole: string;
12399
12703
  declaration: Record<string, string | number | boolean | {
12400
12704
  type: string;
12401
12705
  filename: string;
@@ -12433,7 +12737,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12433
12737
  option: string;
12434
12738
  filename: string;
12435
12739
  originalFilename: string;
12436
- }[] | undefined>;
12740
+ }[] | [string, string] | undefined>;
12437
12741
  createdAtLocation: string;
12438
12742
  requestId: string;
12439
12743
  annotation?: Record<string, string | number | boolean | {
@@ -12473,14 +12777,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12473
12777
  option: string;
12474
12778
  filename: string;
12475
12779
  originalFilename: string;
12476
- }[] | undefined> | undefined;
12780
+ }[] | [string, string] | undefined> | undefined;
12477
12781
  originalActionId?: string | undefined;
12478
12782
  }, {
12479
12783
  type: "REJECT_CORRECTION";
12480
12784
  id: string;
12481
12785
  status: "Rejected" | "Requested" | "Accepted";
12786
+ transactionId: string;
12482
12787
  createdAt: string;
12483
12788
  createdBy: string;
12789
+ createdByRole: string;
12484
12790
  declaration: Record<string, string | number | boolean | {
12485
12791
  type: string;
12486
12792
  filename: string;
@@ -12518,7 +12824,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12518
12824
  option: string;
12519
12825
  filename: string;
12520
12826
  originalFilename: string;
12521
- }[] | undefined>;
12827
+ }[] | [string, string] | undefined>;
12522
12828
  createdAtLocation: string;
12523
12829
  requestId: string;
12524
12830
  annotation?: Record<string, string | number | boolean | {
@@ -12558,13 +12864,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12558
12864
  option: string;
12559
12865
  filename: string;
12560
12866
  originalFilename: string;
12561
- }[] | undefined> | undefined;
12867
+ }[] | [string, string] | undefined> | undefined;
12562
12868
  originalActionId?: string | undefined;
12563
12869
  }>, z.ZodObject<z.objectUtil.extendShape<{
12564
12870
  id: z.ZodString;
12871
+ transactionId: z.ZodString;
12565
12872
  createdAt: z.ZodString;
12566
12873
  createdBy: z.ZodString;
12567
- 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<{
12568
12876
  filename: z.ZodString;
12569
12877
  originalFilename: z.ZodString;
12570
12878
  type: z.ZodString;
@@ -12678,7 +12986,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12678
12986
  addressLine3?: string | null | undefined;
12679
12987
  postcodeOrZip?: string | null | undefined;
12680
12988
  }>]>>;
12681
- 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<{
12682
12990
  filename: z.ZodString;
12683
12991
  originalFilename: z.ZodString;
12684
12992
  type: z.ZodString;
@@ -12797,12 +13105,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12797
13105
  originalActionId: z.ZodOptional<z.ZodString>;
12798
13106
  }, {
12799
13107
  type: z.ZodLiteral<"UNASSIGN">;
13108
+ assignedTo: z.ZodLiteral<null>;
12800
13109
  }>, "strip", z.ZodTypeAny, {
12801
13110
  type: "UNASSIGN";
12802
13111
  id: string;
12803
13112
  status: "Rejected" | "Requested" | "Accepted";
13113
+ transactionId: string;
12804
13114
  createdAt: string;
12805
13115
  createdBy: string;
13116
+ createdByRole: string;
12806
13117
  declaration: Record<string, string | number | boolean | {
12807
13118
  type: string;
12808
13119
  filename: string;
@@ -12840,8 +13151,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12840
13151
  option: string;
12841
13152
  filename: string;
12842
13153
  originalFilename: string;
12843
- }[] | undefined>;
13154
+ }[] | [string, string] | undefined>;
12844
13155
  createdAtLocation: string;
13156
+ assignedTo: null;
12845
13157
  annotation?: Record<string, string | number | boolean | {
12846
13158
  type: string;
12847
13159
  filename: string;
@@ -12879,14 +13191,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12879
13191
  option: string;
12880
13192
  filename: string;
12881
13193
  originalFilename: string;
12882
- }[] | undefined> | undefined;
13194
+ }[] | [string, string] | undefined> | undefined;
12883
13195
  originalActionId?: string | undefined;
12884
13196
  }, {
12885
13197
  type: "UNASSIGN";
12886
13198
  id: string;
12887
13199
  status: "Rejected" | "Requested" | "Accepted";
13200
+ transactionId: string;
12888
13201
  createdAt: string;
12889
13202
  createdBy: string;
13203
+ createdByRole: string;
12890
13204
  declaration: Record<string, string | number | boolean | {
12891
13205
  type: string;
12892
13206
  filename: string;
@@ -12924,8 +13238,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12924
13238
  option: string;
12925
13239
  filename: string;
12926
13240
  originalFilename: string;
12927
- }[] | undefined>;
13241
+ }[] | [string, string] | undefined>;
12928
13242
  createdAtLocation: string;
13243
+ assignedTo: null;
12929
13244
  annotation?: Record<string, string | number | boolean | {
12930
13245
  type: string;
12931
13246
  filename: string;
@@ -12963,13 +13278,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
12963
13278
  option: string;
12964
13279
  filename: string;
12965
13280
  originalFilename: string;
12966
- }[] | undefined> | undefined;
13281
+ }[] | [string, string] | undefined> | undefined;
12967
13282
  originalActionId?: string | undefined;
12968
13283
  }>, z.ZodObject<z.objectUtil.extendShape<{
12969
13284
  id: z.ZodString;
13285
+ transactionId: z.ZodString;
12970
13286
  createdAt: z.ZodString;
12971
13287
  createdBy: z.ZodString;
12972
- 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<{
12973
13290
  filename: z.ZodString;
12974
13291
  originalFilename: z.ZodString;
12975
13292
  type: z.ZodString;
@@ -13083,7 +13400,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13083
13400
  addressLine3?: string | null | undefined;
13084
13401
  postcodeOrZip?: string | null | undefined;
13085
13402
  }>]>>;
13086
- 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<{
13087
13404
  filename: z.ZodString;
13088
13405
  originalFilename: z.ZodString;
13089
13406
  type: z.ZodString;
@@ -13206,8 +13523,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13206
13523
  type: "PRINT_CERTIFICATE";
13207
13524
  id: string;
13208
13525
  status: "Rejected" | "Requested" | "Accepted";
13526
+ transactionId: string;
13209
13527
  createdAt: string;
13210
13528
  createdBy: string;
13529
+ createdByRole: string;
13211
13530
  declaration: Record<string, string | number | boolean | {
13212
13531
  type: string;
13213
13532
  filename: string;
@@ -13245,7 +13564,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13245
13564
  option: string;
13246
13565
  filename: string;
13247
13566
  originalFilename: string;
13248
- }[] | undefined>;
13567
+ }[] | [string, string] | undefined>;
13249
13568
  createdAtLocation: string;
13250
13569
  annotation?: Record<string, string | number | boolean | {
13251
13570
  type: string;
@@ -13284,14 +13603,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13284
13603
  option: string;
13285
13604
  filename: string;
13286
13605
  originalFilename: string;
13287
- }[] | undefined> | undefined;
13606
+ }[] | [string, string] | undefined> | undefined;
13288
13607
  originalActionId?: string | undefined;
13289
13608
  }, {
13290
13609
  type: "PRINT_CERTIFICATE";
13291
13610
  id: string;
13292
13611
  status: "Rejected" | "Requested" | "Accepted";
13612
+ transactionId: string;
13293
13613
  createdAt: string;
13294
13614
  createdBy: string;
13615
+ createdByRole: string;
13295
13616
  declaration: Record<string, string | number | boolean | {
13296
13617
  type: string;
13297
13618
  filename: string;
@@ -13329,7 +13650,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13329
13650
  option: string;
13330
13651
  filename: string;
13331
13652
  originalFilename: string;
13332
- }[] | undefined>;
13653
+ }[] | [string, string] | undefined>;
13333
13654
  createdAtLocation: string;
13334
13655
  annotation?: Record<string, string | number | boolean | {
13335
13656
  type: string;
@@ -13368,13 +13689,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13368
13689
  option: string;
13369
13690
  filename: string;
13370
13691
  originalFilename: string;
13371
- }[] | undefined> | undefined;
13692
+ }[] | [string, string] | undefined> | undefined;
13372
13693
  originalActionId?: string | undefined;
13373
13694
  }>, z.ZodObject<z.objectUtil.extendShape<{
13374
13695
  id: z.ZodString;
13696
+ transactionId: z.ZodString;
13375
13697
  createdAt: z.ZodString;
13376
13698
  createdBy: z.ZodString;
13377
- 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<{
13378
13701
  filename: z.ZodString;
13379
13702
  originalFilename: z.ZodString;
13380
13703
  type: z.ZodString;
@@ -13488,7 +13811,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13488
13811
  addressLine3?: string | null | undefined;
13489
13812
  postcodeOrZip?: string | null | undefined;
13490
13813
  }>]>>;
13491
- 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<{
13492
13815
  filename: z.ZodString;
13493
13816
  originalFilename: z.ZodString;
13494
13817
  type: z.ZodString;
@@ -13611,8 +13934,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13611
13934
  type: "READ";
13612
13935
  id: string;
13613
13936
  status: "Rejected" | "Requested" | "Accepted";
13937
+ transactionId: string;
13614
13938
  createdAt: string;
13615
13939
  createdBy: string;
13940
+ createdByRole: string;
13616
13941
  declaration: Record<string, string | number | boolean | {
13617
13942
  type: string;
13618
13943
  filename: string;
@@ -13650,7 +13975,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13650
13975
  option: string;
13651
13976
  filename: string;
13652
13977
  originalFilename: string;
13653
- }[] | undefined>;
13978
+ }[] | [string, string] | undefined>;
13654
13979
  createdAtLocation: string;
13655
13980
  annotation?: Record<string, string | number | boolean | {
13656
13981
  type: string;
@@ -13689,14 +14014,16 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13689
14014
  option: string;
13690
14015
  filename: string;
13691
14016
  originalFilename: string;
13692
- }[] | undefined> | undefined;
14017
+ }[] | [string, string] | undefined> | undefined;
13693
14018
  originalActionId?: string | undefined;
13694
14019
  }, {
13695
14020
  type: "READ";
13696
14021
  id: string;
13697
14022
  status: "Rejected" | "Requested" | "Accepted";
14023
+ transactionId: string;
13698
14024
  createdAt: string;
13699
14025
  createdBy: string;
14026
+ createdByRole: string;
13700
14027
  declaration: Record<string, string | number | boolean | {
13701
14028
  type: string;
13702
14029
  filename: string;
@@ -13734,7 +14061,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13734
14061
  option: string;
13735
14062
  filename: string;
13736
14063
  originalFilename: string;
13737
- }[] | undefined>;
14064
+ }[] | [string, string] | undefined>;
13738
14065
  createdAtLocation: string;
13739
14066
  annotation?: Record<string, string | number | boolean | {
13740
14067
  type: string;
@@ -13773,13 +14100,15 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13773
14100
  option: string;
13774
14101
  filename: string;
13775
14102
  originalFilename: string;
13776
- }[] | undefined> | undefined;
14103
+ }[] | [string, string] | undefined> | undefined;
13777
14104
  originalActionId?: string | undefined;
13778
14105
  }>]>, z.ZodObject<z.objectUtil.extendShape<Omit<{
13779
14106
  id: z.ZodString;
14107
+ transactionId: z.ZodString;
13780
14108
  createdAt: z.ZodString;
13781
14109
  createdBy: z.ZodString;
13782
- 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<{
13783
14112
  filename: z.ZodString;
13784
14113
  originalFilename: z.ZodString;
13785
14114
  type: z.ZodString;
@@ -13893,7 +14222,7 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
13893
14222
  addressLine3?: string | null | undefined;
13894
14223
  postcodeOrZip?: string | null | undefined;
13895
14224
  }>]>>;
13896
- 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<{
13897
14226
  filename: z.ZodString;
13898
14227
  originalFilename: z.ZodString;
13899
14228
  type: z.ZodString;
@@ -14010,20 +14339,28 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
14010
14339
  createdAtLocation: z.ZodString;
14011
14340
  status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
14012
14341
  originalActionId: z.ZodOptional<z.ZodString>;
14013
- }, "createdBy" | "declaration" | "annotation" | "createdAtLocation">, {
14342
+ }, "declaration" | "annotation">, {
14014
14343
  type: z.ZodEnum<["NOTIFY", "DECLARE", "VALIDATE", "REGISTER", "REJECT", "ARCHIVE", "PRINT_CERTIFICATE"]>;
14015
14344
  status: z.ZodLiteral<"Rejected">;
14016
14345
  }>, "strip", z.ZodTypeAny, {
14017
14346
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14018
14347
  id: string;
14019
14348
  status: "Rejected";
14349
+ transactionId: string;
14020
14350
  createdAt: string;
14351
+ createdBy: string;
14352
+ createdByRole: string;
14353
+ createdAtLocation: string;
14021
14354
  originalActionId?: string | undefined;
14022
14355
  }, {
14023
14356
  type: "DECLARE" | "REGISTER" | "VALIDATE" | "NOTIFY" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE";
14024
14357
  id: string;
14025
14358
  status: "Rejected";
14359
+ transactionId: string;
14026
14360
  createdAt: string;
14361
+ createdBy: string;
14362
+ createdByRole: string;
14363
+ createdAtLocation: string;
14027
14364
  originalActionId?: string | undefined;
14028
14365
  }>]>;
14029
14366
  export type Action = ActionDocument | AsyncRejectActionDocument;