@opencrvs/toolkit 1.8.0-rc.ff0a1b5 → 1.8.0-rc.ff1f8e0

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 +8086 -3911
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +22281 -7289
  4. package/dist/commons/events/ActionDocument.d.ts +533 -346
  5. package/dist/commons/events/ActionInput.d.ts +197 -125
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
  7. package/dist/commons/events/Constants.d.ts +2 -0
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  9. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  10. package/dist/commons/events/Draft.d.ts +29 -24
  11. package/dist/commons/events/EventConfig.d.ts +17241 -9571
  12. package/dist/commons/events/EventDocument.d.ts +386 -267
  13. package/dist/commons/events/EventIndex.d.ts +343 -466
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +72 -48
  16. package/dist/commons/events/FieldConfig.d.ts +991 -428
  17. package/dist/commons/events/FieldTypeMapping.d.ts +5 -2
  18. package/dist/commons/events/FieldValue.d.ts +2 -0
  19. package/dist/commons/events/FormConfig.d.ts +7190 -3722
  20. package/dist/commons/events/PageConfig.d.ts +1512 -660
  21. package/dist/commons/events/User.d.ts +31 -7
  22. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  23. package/dist/commons/events/WorkqueueConfig.d.ts +3506 -239
  24. package/dist/commons/events/defineConfig.d.ts +1632 -574
  25. package/dist/commons/events/event.d.ts +37 -10
  26. package/dist/commons/events/field.d.ts +25 -20
  27. package/dist/commons/events/index.d.ts +4 -0
  28. package/dist/commons/events/scopes.d.ts +20 -1
  29. package/dist/commons/events/serializer.d.ts +2 -0
  30. package/dist/commons/events/test.utils.d.ts +28 -7
  31. package/dist/commons/events/transactions.d.ts +1 -1
  32. package/dist/commons/events/utils.d.ts +443 -291
  33. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  34. package/dist/conditionals/index.js +28 -8
  35. package/dist/events/index.js +2153 -865
  36. package/dist/scopes/index.d.ts +94 -6
  37. package/dist/scopes/index.js +42 -21
  38. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const BaseActionInput: z.ZodObject<{
3
- eventId: z.ZodString;
3
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
4
4
  transactionId: z.ZodString;
5
5
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6
6
  filename: z.ZodString;
@@ -230,7 +230,7 @@ export declare const BaseActionInput: z.ZodObject<{
230
230
  addressLine3?: string | null | undefined;
231
231
  postcodeOrZip?: string | null | undefined;
232
232
  }>]>>>;
233
- originalActionId: z.ZodOptional<z.ZodString>;
233
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
234
234
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
235
235
  }, "strip", z.ZodTypeAny, {
236
236
  transactionId: string;
@@ -272,7 +272,7 @@ export declare const BaseActionInput: z.ZodObject<{
272
272
  filename: string;
273
273
  originalFilename: string;
274
274
  }[] | [string, string] | undefined>;
275
- eventId: string;
275
+ eventId: string & z.BRAND<"UUID">;
276
276
  annotation?: Record<string, string | number | boolean | {
277
277
  type: string;
278
278
  filename: string;
@@ -311,7 +311,7 @@ export declare const BaseActionInput: z.ZodObject<{
311
311
  filename: string;
312
312
  originalFilename: string;
313
313
  }[] | [string, string] | undefined> | undefined;
314
- originalActionId?: string | undefined;
314
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
315
315
  keepAssignment?: boolean | undefined;
316
316
  }, {
317
317
  transactionId: string;
@@ -396,7 +396,7 @@ export declare const BaseActionInput: z.ZodObject<{
396
396
  keepAssignment?: boolean | undefined;
397
397
  }>;
398
398
  export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
399
- eventId: z.ZodString;
399
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
400
400
  transactionId: z.ZodString;
401
401
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
402
402
  filename: z.ZodString;
@@ -626,7 +626,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
626
626
  addressLine3?: string | null | undefined;
627
627
  postcodeOrZip?: string | null | undefined;
628
628
  }>]>>>;
629
- originalActionId: z.ZodOptional<z.ZodString>;
629
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
630
630
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
631
631
  }, {
632
632
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
@@ -672,7 +672,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
672
672
  filename: string;
673
673
  originalFilename: string;
674
674
  }[] | [string, string] | undefined>;
675
- eventId: string;
675
+ eventId: string & z.BRAND<"UUID">;
676
676
  annotation?: Record<string, string | number | boolean | {
677
677
  type: string;
678
678
  filename: string;
@@ -711,7 +711,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
711
711
  filename: string;
712
712
  originalFilename: string;
713
713
  }[] | [string, string] | undefined> | undefined;
714
- originalActionId?: string | undefined;
714
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
715
715
  registrationNumber?: string | undefined;
716
716
  keepAssignment?: boolean | undefined;
717
717
  }, {
@@ -800,7 +800,7 @@ export declare const RegisterActionInput: z.ZodObject<z.objectUtil.extendShape<{
800
800
  }>;
801
801
  export type RegisterActionInput = z.infer<typeof RegisterActionInput>;
802
802
  export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
803
- eventId: z.ZodString;
803
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
804
804
  transactionId: z.ZodString;
805
805
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
806
806
  filename: z.ZodString;
@@ -1030,7 +1030,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1030
1030
  addressLine3?: string | null | undefined;
1031
1031
  postcodeOrZip?: string | null | undefined;
1032
1032
  }>]>>>;
1033
- originalActionId: z.ZodOptional<z.ZodString>;
1033
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
1034
1034
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
1035
1035
  }, {
1036
1036
  type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
@@ -1076,7 +1076,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1076
1076
  filename: string;
1077
1077
  originalFilename: string;
1078
1078
  }[] | [string, string] | undefined>;
1079
- eventId: string;
1079
+ eventId: string & z.BRAND<"UUID">;
1080
1080
  duplicates: string[];
1081
1081
  annotation?: Record<string, string | number | boolean | {
1082
1082
  type: string;
@@ -1116,7 +1116,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1116
1116
  filename: string;
1117
1117
  originalFilename: string;
1118
1118
  }[] | [string, string] | undefined> | undefined;
1119
- originalActionId?: string | undefined;
1119
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1120
1120
  keepAssignment?: boolean | undefined;
1121
1121
  }, {
1122
1122
  transactionId: string;
@@ -1204,7 +1204,7 @@ export declare const ValidateActionInput: z.ZodObject<z.objectUtil.extendShape<{
1204
1204
  }>;
1205
1205
  export type ValidateActionInput = z.infer<typeof ValidateActionInput>;
1206
1206
  export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1207
- eventId: z.ZodString;
1207
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
1208
1208
  transactionId: z.ZodString;
1209
1209
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1210
1210
  filename: z.ZodString;
@@ -1434,7 +1434,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1434
1434
  addressLine3?: string | null | undefined;
1435
1435
  postcodeOrZip?: string | null | undefined;
1436
1436
  }>]>>>;
1437
- originalActionId: z.ZodOptional<z.ZodString>;
1437
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
1438
1438
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
1439
1439
  }, {
1440
1440
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
@@ -1479,7 +1479,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1479
1479
  filename: string;
1480
1480
  originalFilename: string;
1481
1481
  }[] | [string, string] | undefined>;
1482
- eventId: string;
1482
+ eventId: string & z.BRAND<"UUID">;
1483
1483
  annotation?: Record<string, string | number | boolean | {
1484
1484
  type: string;
1485
1485
  filename: string;
@@ -1518,7 +1518,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1518
1518
  filename: string;
1519
1519
  originalFilename: string;
1520
1520
  }[] | [string, string] | undefined> | undefined;
1521
- originalActionId?: string | undefined;
1521
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1522
1522
  keepAssignment?: boolean | undefined;
1523
1523
  }, {
1524
1524
  transactionId: string;
@@ -1605,7 +1605,7 @@ export declare const NotifyActionInput: z.ZodObject<z.objectUtil.extendShape<{
1605
1605
  }>;
1606
1606
  export type NotifyActionInput = z.infer<typeof NotifyActionInput>;
1607
1607
  export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1608
- eventId: z.ZodString;
1608
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
1609
1609
  transactionId: z.ZodString;
1610
1610
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1611
1611
  filename: z.ZodString;
@@ -1835,7 +1835,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1835
1835
  addressLine3?: string | null | undefined;
1836
1836
  postcodeOrZip?: string | null | undefined;
1837
1837
  }>]>>>;
1838
- originalActionId: z.ZodOptional<z.ZodString>;
1838
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
1839
1839
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
1840
1840
  }, {
1841
1841
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
@@ -1880,7 +1880,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1880
1880
  filename: string;
1881
1881
  originalFilename: string;
1882
1882
  }[] | [string, string] | undefined>;
1883
- eventId: string;
1883
+ eventId: string & z.BRAND<"UUID">;
1884
1884
  annotation?: Record<string, string | number | boolean | {
1885
1885
  type: string;
1886
1886
  filename: string;
@@ -1919,7 +1919,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
1919
1919
  filename: string;
1920
1920
  originalFilename: string;
1921
1921
  }[] | [string, string] | undefined> | undefined;
1922
- originalActionId?: string | undefined;
1922
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
1923
1923
  keepAssignment?: boolean | undefined;
1924
1924
  }, {
1925
1925
  transactionId: string;
@@ -2005,7 +2005,7 @@ export declare const DeclareActionInput: z.ZodObject<z.objectUtil.extendShape<{
2005
2005
  keepAssignment?: boolean | undefined;
2006
2006
  }>;
2007
2007
  export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.extendShape<{
2008
- eventId: z.ZodString;
2008
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
2009
2009
  transactionId: z.ZodString;
2010
2010
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2011
2011
  filename: z.ZodString;
@@ -2235,7 +2235,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2235
2235
  addressLine3?: string | null | undefined;
2236
2236
  postcodeOrZip?: string | null | undefined;
2237
2237
  }>]>>>;
2238
- originalActionId: z.ZodOptional<z.ZodString>;
2238
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
2239
2239
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
2240
2240
  }, {
2241
2241
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
@@ -2280,7 +2280,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2280
2280
  filename: string;
2281
2281
  originalFilename: string;
2282
2282
  }[] | [string, string] | undefined>;
2283
- eventId: string;
2283
+ eventId: string & z.BRAND<"UUID">;
2284
2284
  annotation?: Record<string, string | number | boolean | {
2285
2285
  type: string;
2286
2286
  filename: string;
@@ -2319,7 +2319,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2319
2319
  filename: string;
2320
2320
  originalFilename: string;
2321
2321
  }[] | [string, string] | undefined> | undefined;
2322
- originalActionId?: string | undefined;
2322
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
2323
2323
  keepAssignment?: boolean | undefined;
2324
2324
  }, {
2325
2325
  transactionId: string;
@@ -2406,7 +2406,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2406
2406
  }>;
2407
2407
  export type DeclareActionInput = z.infer<typeof DeclareActionInput>;
2408
2408
  export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.extendShape<{
2409
- eventId: z.ZodString;
2409
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
2410
2410
  transactionId: z.ZodString;
2411
2411
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2412
2412
  filename: z.ZodString;
@@ -2636,12 +2636,26 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2636
2636
  addressLine3?: string | null | undefined;
2637
2637
  postcodeOrZip?: string | null | undefined;
2638
2638
  }>]>>>;
2639
- originalActionId: z.ZodOptional<z.ZodString>;
2639
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
2640
2640
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
2641
2641
  }, {
2642
2642
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
2643
+ reason: z.ZodObject<{
2644
+ message: z.ZodString;
2645
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ message: string;
2648
+ isDuplicate?: boolean | undefined;
2649
+ }, {
2650
+ message: string;
2651
+ isDuplicate?: boolean | undefined;
2652
+ }>;
2643
2653
  }>, "strip", z.ZodTypeAny, {
2644
2654
  type: "REJECT";
2655
+ reason: {
2656
+ message: string;
2657
+ isDuplicate?: boolean | undefined;
2658
+ };
2645
2659
  transactionId: string;
2646
2660
  declaration: Record<string, string | number | boolean | {
2647
2661
  type: string;
@@ -2681,7 +2695,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2681
2695
  filename: string;
2682
2696
  originalFilename: string;
2683
2697
  }[] | [string, string] | undefined>;
2684
- eventId: string;
2698
+ eventId: string & z.BRAND<"UUID">;
2685
2699
  annotation?: Record<string, string | number | boolean | {
2686
2700
  type: string;
2687
2701
  filename: string;
@@ -2720,9 +2734,13 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2720
2734
  filename: string;
2721
2735
  originalFilename: string;
2722
2736
  }[] | [string, string] | undefined> | undefined;
2723
- originalActionId?: string | undefined;
2737
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
2724
2738
  keepAssignment?: boolean | undefined;
2725
2739
  }, {
2740
+ reason: {
2741
+ message: string;
2742
+ isDuplicate?: boolean | undefined;
2743
+ };
2726
2744
  transactionId: string;
2727
2745
  eventId: string;
2728
2746
  type?: "REJECT" | undefined;
@@ -2807,7 +2825,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<z.objectUtil.exte
2807
2825
  }>;
2808
2826
  export type RejectDeclarationActionInput = z.infer<typeof RejectDeclarationActionInput>;
2809
2827
  export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.extendShape<{
2810
- eventId: z.ZodString;
2828
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
2811
2829
  transactionId: z.ZodString;
2812
2830
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
2813
2831
  filename: z.ZodString;
@@ -3037,7 +3055,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3037
3055
  addressLine3?: string | null | undefined;
3038
3056
  postcodeOrZip?: string | null | undefined;
3039
3057
  }>]>>>;
3040
- originalActionId: z.ZodOptional<z.ZodString>;
3058
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
3041
3059
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
3042
3060
  }, {
3043
3061
  type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
@@ -3082,7 +3100,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3082
3100
  filename: string;
3083
3101
  originalFilename: string;
3084
3102
  }[] | [string, string] | undefined>;
3085
- eventId: string;
3103
+ eventId: string & z.BRAND<"UUID">;
3086
3104
  annotation?: Record<string, string | number | boolean | {
3087
3105
  type: string;
3088
3106
  filename: string;
@@ -3121,7 +3139,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3121
3139
  filename: string;
3122
3140
  originalFilename: string;
3123
3141
  }[] | [string, string] | undefined> | undefined;
3124
- originalActionId?: string | undefined;
3142
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
3125
3143
  keepAssignment?: boolean | undefined;
3126
3144
  }, {
3127
3145
  transactionId: string;
@@ -3208,7 +3226,7 @@ export declare const MarkedAsDuplicateActionInput: z.ZodObject<z.objectUtil.exte
3208
3226
  }>;
3209
3227
  export type MarkedAsDuplicateActionInput = z.infer<typeof MarkedAsDuplicateActionInput>;
3210
3228
  export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3211
- eventId: z.ZodString;
3229
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
3212
3230
  transactionId: z.ZodString;
3213
3231
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3214
3232
  filename: z.ZodString;
@@ -3438,12 +3456,26 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3438
3456
  addressLine3?: string | null | undefined;
3439
3457
  postcodeOrZip?: string | null | undefined;
3440
3458
  }>]>>>;
3441
- originalActionId: z.ZodOptional<z.ZodString>;
3459
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
3442
3460
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
3443
3461
  }, {
3444
3462
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
3463
+ reason: z.ZodObject<{
3464
+ message: z.ZodString;
3465
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
3466
+ }, "strip", z.ZodTypeAny, {
3467
+ message: string;
3468
+ isDuplicate?: boolean | undefined;
3469
+ }, {
3470
+ message: string;
3471
+ isDuplicate?: boolean | undefined;
3472
+ }>;
3445
3473
  }>, "strip", z.ZodTypeAny, {
3446
3474
  type: "ARCHIVE";
3475
+ reason: {
3476
+ message: string;
3477
+ isDuplicate?: boolean | undefined;
3478
+ };
3447
3479
  transactionId: string;
3448
3480
  declaration: Record<string, string | number | boolean | {
3449
3481
  type: string;
@@ -3483,7 +3515,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3483
3515
  filename: string;
3484
3516
  originalFilename: string;
3485
3517
  }[] | [string, string] | undefined>;
3486
- eventId: string;
3518
+ eventId: string & z.BRAND<"UUID">;
3487
3519
  annotation?: Record<string, string | number | boolean | {
3488
3520
  type: string;
3489
3521
  filename: string;
@@ -3522,9 +3554,13 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3522
3554
  filename: string;
3523
3555
  originalFilename: string;
3524
3556
  }[] | [string, string] | undefined> | undefined;
3525
- originalActionId?: string | undefined;
3557
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
3526
3558
  keepAssignment?: boolean | undefined;
3527
3559
  }, {
3560
+ reason: {
3561
+ message: string;
3562
+ isDuplicate?: boolean | undefined;
3563
+ };
3528
3564
  transactionId: string;
3529
3565
  eventId: string;
3530
3566
  type?: "ARCHIVE" | undefined;
@@ -3609,7 +3645,7 @@ export declare const ArchiveActionInput: z.ZodObject<z.objectUtil.extendShape<{
3609
3645
  }>;
3610
3646
  export type ArchiveActionInput = z.infer<typeof ArchiveActionInput>;
3611
3647
  export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3612
- eventId: z.ZodString;
3648
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
3613
3649
  transactionId: z.ZodString;
3614
3650
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
3615
3651
  filename: z.ZodString;
@@ -3839,7 +3875,7 @@ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3839
3875
  addressLine3?: string | null | undefined;
3840
3876
  postcodeOrZip?: string | null | undefined;
3841
3877
  }>]>>>;
3842
- originalActionId: z.ZodOptional<z.ZodString>;
3878
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
3843
3879
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
3844
3880
  }, {
3845
3881
  type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
@@ -3886,7 +3922,7 @@ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3886
3922
  originalFilename: string;
3887
3923
  }[] | [string, string] | undefined>;
3888
3924
  assignedTo: string;
3889
- eventId: string;
3925
+ eventId: string & z.BRAND<"UUID">;
3890
3926
  annotation?: Record<string, string | number | boolean | {
3891
3927
  type: string;
3892
3928
  filename: string;
@@ -3925,7 +3961,7 @@ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
3925
3961
  filename: string;
3926
3962
  originalFilename: string;
3927
3963
  }[] | [string, string] | undefined> | undefined;
3928
- originalActionId?: string | undefined;
3964
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
3929
3965
  keepAssignment?: boolean | undefined;
3930
3966
  }, {
3931
3967
  transactionId: string;
@@ -4013,7 +4049,7 @@ export declare const AssignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4013
4049
  }>;
4014
4050
  export type AssignActionInput = z.infer<typeof AssignActionInput>;
4015
4051
  export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4016
- eventId: z.ZodString;
4052
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
4017
4053
  transactionId: z.ZodString;
4018
4054
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4019
4055
  filename: z.ZodString;
@@ -4243,7 +4279,7 @@ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4243
4279
  addressLine3?: string | null | undefined;
4244
4280
  postcodeOrZip?: string | null | undefined;
4245
4281
  }>]>>>;
4246
- originalActionId: z.ZodOptional<z.ZodString>;
4282
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
4247
4283
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
4248
4284
  }, {
4249
4285
  type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
@@ -4290,7 +4326,7 @@ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4290
4326
  originalFilename: string;
4291
4327
  }[] | [string, string] | undefined>;
4292
4328
  assignedTo: null;
4293
- eventId: string;
4329
+ eventId: string & z.BRAND<"UUID">;
4294
4330
  annotation?: Record<string, string | number | boolean | {
4295
4331
  type: string;
4296
4332
  filename: string;
@@ -4329,7 +4365,7 @@ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4329
4365
  filename: string;
4330
4366
  originalFilename: string;
4331
4367
  }[] | [string, string] | undefined> | undefined;
4332
- originalActionId?: string | undefined;
4368
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
4333
4369
  keepAssignment?: boolean | undefined;
4334
4370
  }, {
4335
4371
  transactionId: string;
@@ -4417,7 +4453,7 @@ export declare const UnassignActionInput: z.ZodObject<z.objectUtil.extendShape<{
4417
4453
  }>;
4418
4454
  export type UnassignActionInput = z.infer<typeof UnassignActionInput>;
4419
4455
  export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4420
- eventId: z.ZodString;
4456
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
4421
4457
  transactionId: z.ZodString;
4422
4458
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4423
4459
  filename: z.ZodString;
@@ -4647,7 +4683,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4647
4683
  addressLine3?: string | null | undefined;
4648
4684
  postcodeOrZip?: string | null | undefined;
4649
4685
  }>]>>>;
4650
- originalActionId: z.ZodOptional<z.ZodString>;
4686
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
4651
4687
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
4652
4688
  }, {
4653
4689
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
@@ -4692,7 +4728,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4692
4728
  filename: string;
4693
4729
  originalFilename: string;
4694
4730
  }[] | [string, string] | undefined>;
4695
- eventId: string;
4731
+ eventId: string & z.BRAND<"UUID">;
4696
4732
  annotation?: Record<string, string | number | boolean | {
4697
4733
  type: string;
4698
4734
  filename: string;
@@ -4731,7 +4767,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4731
4767
  filename: string;
4732
4768
  originalFilename: string;
4733
4769
  }[] | [string, string] | undefined> | undefined;
4734
- originalActionId?: string | undefined;
4770
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
4735
4771
  keepAssignment?: boolean | undefined;
4736
4772
  }, {
4737
4773
  transactionId: string;
@@ -4818,7 +4854,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<z.objectUtil.exte
4818
4854
  }>;
4819
4855
  export type RequestCorrectionActionInput = z.infer<typeof RequestCorrectionActionInput>;
4820
4856
  export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
4821
- eventId: z.ZodString;
4857
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
4822
4858
  transactionId: z.ZodString;
4823
4859
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
4824
4860
  filename: z.ZodString;
@@ -5048,7 +5084,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5048
5084
  addressLine3?: string | null | undefined;
5049
5085
  postcodeOrZip?: string | null | undefined;
5050
5086
  }>]>>>;
5051
- originalActionId: z.ZodOptional<z.ZodString>;
5087
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
5052
5088
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
5053
5089
  }, {
5054
5090
  requestId: z.ZodString;
@@ -5095,7 +5131,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5095
5131
  originalFilename: string;
5096
5132
  }[] | [string, string] | undefined>;
5097
5133
  requestId: string;
5098
- eventId: string;
5134
+ eventId: string & z.BRAND<"UUID">;
5099
5135
  annotation?: Record<string, string | number | boolean | {
5100
5136
  type: string;
5101
5137
  filename: string;
@@ -5134,7 +5170,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5134
5170
  filename: string;
5135
5171
  originalFilename: string;
5136
5172
  }[] | [string, string] | undefined> | undefined;
5137
- originalActionId?: string | undefined;
5173
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
5138
5174
  keepAssignment?: boolean | undefined;
5139
5175
  }, {
5140
5176
  transactionId: string;
@@ -5222,7 +5258,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5222
5258
  }>;
5223
5259
  export type RejectCorrectionActionInput = z.infer<typeof RejectCorrectionActionInput>;
5224
5260
  export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.extendShape<{
5225
- eventId: z.ZodString;
5261
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
5226
5262
  transactionId: z.ZodString;
5227
5263
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5228
5264
  filename: z.ZodString;
@@ -5452,7 +5488,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
5452
5488
  addressLine3?: string | null | undefined;
5453
5489
  postcodeOrZip?: string | null | undefined;
5454
5490
  }>]>>>;
5455
- originalActionId: z.ZodOptional<z.ZodString>;
5491
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
5456
5492
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
5457
5493
  }, {
5458
5494
  requestId: z.ZodString;
@@ -5499,7 +5535,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
5499
5535
  originalFilename: string;
5500
5536
  }[] | [string, string] | undefined>;
5501
5537
  requestId: string;
5502
- eventId: string;
5538
+ eventId: string & z.BRAND<"UUID">;
5503
5539
  annotation?: Record<string, string | number | boolean | {
5504
5540
  type: string;
5505
5541
  filename: string;
@@ -5538,7 +5574,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
5538
5574
  filename: string;
5539
5575
  originalFilename: string;
5540
5576
  }[] | [string, string] | undefined> | undefined;
5541
- originalActionId?: string | undefined;
5577
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
5542
5578
  keepAssignment?: boolean | undefined;
5543
5579
  }, {
5544
5580
  transactionId: string;
@@ -5626,7 +5662,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<z.objectUtil.exte
5626
5662
  }>;
5627
5663
  export type ApproveCorrectionActionInput = z.infer<typeof ApproveCorrectionActionInput>;
5628
5664
  export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5629
- eventId: z.ZodString;
5665
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
5630
5666
  transactionId: z.ZodString;
5631
5667
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
5632
5668
  filename: z.ZodString;
@@ -5856,7 +5892,7 @@ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5856
5892
  addressLine3?: string | null | undefined;
5857
5893
  postcodeOrZip?: string | null | undefined;
5858
5894
  }>]>>>;
5859
- originalActionId: z.ZodOptional<z.ZodString>;
5895
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
5860
5896
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
5861
5897
  }, {
5862
5898
  type: z.ZodDefault<z.ZodLiteral<"READ">>;
@@ -5901,7 +5937,7 @@ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5901
5937
  filename: string;
5902
5938
  originalFilename: string;
5903
5939
  }[] | [string, string] | undefined>;
5904
- eventId: string;
5940
+ eventId: string & z.BRAND<"UUID">;
5905
5941
  annotation?: Record<string, string | number | boolean | {
5906
5942
  type: string;
5907
5943
  filename: string;
@@ -5940,7 +5976,7 @@ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
5940
5976
  filename: string;
5941
5977
  originalFilename: string;
5942
5978
  }[] | [string, string] | undefined> | undefined;
5943
- originalActionId?: string | undefined;
5979
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
5944
5980
  keepAssignment?: boolean | undefined;
5945
5981
  }, {
5946
5982
  transactionId: string;
@@ -6027,9 +6063,9 @@ export declare const ReadActionInput: z.ZodObject<z.objectUtil.extendShape<{
6027
6063
  }>;
6028
6064
  export type ReadActionInput = z.infer<typeof ReadActionInput>;
6029
6065
  export declare const DeleteActionInput: z.ZodObject<{
6030
- eventId: z.ZodString;
6066
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
6031
6067
  }, "strip", z.ZodTypeAny, {
6032
- eventId: string;
6068
+ eventId: string & z.BRAND<"UUID">;
6033
6069
  }, {
6034
6070
  eventId: string;
6035
6071
  }>;
@@ -6043,7 +6079,7 @@ export type DeleteActionInput = z.infer<typeof DeleteActionInput>;
6043
6079
  * e.g. mutation.declare({createdAt: new Date()}) vs mutation.declare({createdAt: new Date(), type: 'DECLARE'})
6044
6080
  */
6045
6081
  export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
6046
- eventId: z.ZodString;
6082
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
6047
6083
  transactionId: z.ZodString;
6048
6084
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6049
6085
  filename: z.ZodString;
@@ -6273,11 +6309,11 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6273
6309
  addressLine3?: string | null | undefined;
6274
6310
  postcodeOrZip?: string | null | undefined;
6275
6311
  }>]>>>;
6276
- originalActionId: z.ZodOptional<z.ZodString>;
6312
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
6277
6313
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
6278
6314
  }, {
6279
6315
  type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
6280
- createdAtLocation: z.ZodString;
6316
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
6281
6317
  }>, "strip", z.ZodTypeAny, {
6282
6318
  type: "CREATE";
6283
6319
  transactionId: string;
@@ -6319,8 +6355,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6319
6355
  filename: string;
6320
6356
  originalFilename: string;
6321
6357
  }[] | [string, string] | undefined>;
6322
- createdAtLocation: string;
6323
- eventId: string;
6358
+ eventId: string & z.BRAND<"UUID">;
6359
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
6324
6360
  annotation?: Record<string, string | number | boolean | {
6325
6361
  type: string;
6326
6362
  filename: string;
@@ -6359,13 +6395,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6359
6395
  filename: string;
6360
6396
  originalFilename: string;
6361
6397
  }[] | [string, string] | undefined> | undefined;
6362
- originalActionId?: string | undefined;
6398
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
6363
6399
  keepAssignment?: boolean | undefined;
6364
6400
  }, {
6365
6401
  transactionId: string;
6366
- createdAtLocation: string;
6367
6402
  eventId: string;
6368
6403
  type?: "CREATE" | undefined;
6404
+ createdAtLocation?: string | null | undefined;
6369
6405
  declaration?: Record<string, string | number | boolean | {
6370
6406
  type: string;
6371
6407
  filename: string;
@@ -6445,7 +6481,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6445
6481
  originalActionId?: string | undefined;
6446
6482
  keepAssignment?: boolean | undefined;
6447
6483
  }>, z.ZodObject<z.objectUtil.extendShape<{
6448
- eventId: z.ZodString;
6484
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
6449
6485
  transactionId: z.ZodString;
6450
6486
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6451
6487
  filename: z.ZodString;
@@ -6675,7 +6711,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6675
6711
  addressLine3?: string | null | undefined;
6676
6712
  postcodeOrZip?: string | null | undefined;
6677
6713
  }>]>>>;
6678
- originalActionId: z.ZodOptional<z.ZodString>;
6714
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
6679
6715
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
6680
6716
  }, {
6681
6717
  type: z.ZodDefault<z.ZodLiteral<"VALIDATE">>;
@@ -6721,7 +6757,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6721
6757
  filename: string;
6722
6758
  originalFilename: string;
6723
6759
  }[] | [string, string] | undefined>;
6724
- eventId: string;
6760
+ eventId: string & z.BRAND<"UUID">;
6725
6761
  duplicates: string[];
6726
6762
  annotation?: Record<string, string | number | boolean | {
6727
6763
  type: string;
@@ -6761,7 +6797,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6761
6797
  filename: string;
6762
6798
  originalFilename: string;
6763
6799
  }[] | [string, string] | undefined> | undefined;
6764
- originalActionId?: string | undefined;
6800
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
6765
6801
  keepAssignment?: boolean | undefined;
6766
6802
  }, {
6767
6803
  transactionId: string;
@@ -6847,7 +6883,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
6847
6883
  originalActionId?: string | undefined;
6848
6884
  keepAssignment?: boolean | undefined;
6849
6885
  }>, z.ZodObject<z.objectUtil.extendShape<{
6850
- eventId: z.ZodString;
6886
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
6851
6887
  transactionId: z.ZodString;
6852
6888
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
6853
6889
  filename: z.ZodString;
@@ -7077,7 +7113,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7077
7113
  addressLine3?: string | null | undefined;
7078
7114
  postcodeOrZip?: string | null | undefined;
7079
7115
  }>]>>>;
7080
- originalActionId: z.ZodOptional<z.ZodString>;
7116
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
7081
7117
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
7082
7118
  }, {
7083
7119
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
@@ -7123,7 +7159,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7123
7159
  filename: string;
7124
7160
  originalFilename: string;
7125
7161
  }[] | [string, string] | undefined>;
7126
- eventId: string;
7162
+ eventId: string & z.BRAND<"UUID">;
7127
7163
  annotation?: Record<string, string | number | boolean | {
7128
7164
  type: string;
7129
7165
  filename: string;
@@ -7162,7 +7198,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7162
7198
  filename: string;
7163
7199
  originalFilename: string;
7164
7200
  }[] | [string, string] | undefined> | undefined;
7165
- originalActionId?: string | undefined;
7201
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
7166
7202
  registrationNumber?: string | undefined;
7167
7203
  keepAssignment?: boolean | undefined;
7168
7204
  }, {
@@ -7249,7 +7285,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7249
7285
  registrationNumber?: string | undefined;
7250
7286
  keepAssignment?: boolean | undefined;
7251
7287
  }>, z.ZodObject<z.objectUtil.extendShape<{
7252
- eventId: z.ZodString;
7288
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
7253
7289
  transactionId: z.ZodString;
7254
7290
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7255
7291
  filename: z.ZodString;
@@ -7479,7 +7515,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7479
7515
  addressLine3?: string | null | undefined;
7480
7516
  postcodeOrZip?: string | null | undefined;
7481
7517
  }>]>>>;
7482
- originalActionId: z.ZodOptional<z.ZodString>;
7518
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
7483
7519
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
7484
7520
  }, {
7485
7521
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
@@ -7524,7 +7560,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7524
7560
  filename: string;
7525
7561
  originalFilename: string;
7526
7562
  }[] | [string, string] | undefined>;
7527
- eventId: string;
7563
+ eventId: string & z.BRAND<"UUID">;
7528
7564
  annotation?: Record<string, string | number | boolean | {
7529
7565
  type: string;
7530
7566
  filename: string;
@@ -7563,7 +7599,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7563
7599
  filename: string;
7564
7600
  originalFilename: string;
7565
7601
  }[] | [string, string] | undefined> | undefined;
7566
- originalActionId?: string | undefined;
7602
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
7567
7603
  keepAssignment?: boolean | undefined;
7568
7604
  }, {
7569
7605
  transactionId: string;
@@ -7648,7 +7684,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7648
7684
  originalActionId?: string | undefined;
7649
7685
  keepAssignment?: boolean | undefined;
7650
7686
  }>, z.ZodObject<z.objectUtil.extendShape<{
7651
- eventId: z.ZodString;
7687
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
7652
7688
  transactionId: z.ZodString;
7653
7689
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
7654
7690
  filename: z.ZodString;
@@ -7878,7 +7914,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7878
7914
  addressLine3?: string | null | undefined;
7879
7915
  postcodeOrZip?: string | null | undefined;
7880
7916
  }>]>>>;
7881
- originalActionId: z.ZodOptional<z.ZodString>;
7917
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
7882
7918
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
7883
7919
  }, {
7884
7920
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
@@ -7923,7 +7959,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7923
7959
  filename: string;
7924
7960
  originalFilename: string;
7925
7961
  }[] | [string, string] | undefined>;
7926
- eventId: string;
7962
+ eventId: string & z.BRAND<"UUID">;
7927
7963
  annotation?: Record<string, string | number | boolean | {
7928
7964
  type: string;
7929
7965
  filename: string;
@@ -7962,7 +7998,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
7962
7998
  filename: string;
7963
7999
  originalFilename: string;
7964
8000
  }[] | [string, string] | undefined> | undefined;
7965
- originalActionId?: string | undefined;
8001
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
7966
8002
  keepAssignment?: boolean | undefined;
7967
8003
  }, {
7968
8004
  transactionId: string;
@@ -8047,7 +8083,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8047
8083
  originalActionId?: string | undefined;
8048
8084
  keepAssignment?: boolean | undefined;
8049
8085
  }>, z.ZodObject<z.objectUtil.extendShape<{
8050
- eventId: z.ZodString;
8086
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
8051
8087
  transactionId: z.ZodString;
8052
8088
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8053
8089
  filename: z.ZodString;
@@ -8277,12 +8313,26 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8277
8313
  addressLine3?: string | null | undefined;
8278
8314
  postcodeOrZip?: string | null | undefined;
8279
8315
  }>]>>>;
8280
- originalActionId: z.ZodOptional<z.ZodString>;
8316
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
8281
8317
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
8282
8318
  }, {
8283
8319
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
8320
+ reason: z.ZodObject<{
8321
+ message: z.ZodString;
8322
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
8323
+ }, "strip", z.ZodTypeAny, {
8324
+ message: string;
8325
+ isDuplicate?: boolean | undefined;
8326
+ }, {
8327
+ message: string;
8328
+ isDuplicate?: boolean | undefined;
8329
+ }>;
8284
8330
  }>, "strip", z.ZodTypeAny, {
8285
8331
  type: "REJECT";
8332
+ reason: {
8333
+ message: string;
8334
+ isDuplicate?: boolean | undefined;
8335
+ };
8286
8336
  transactionId: string;
8287
8337
  declaration: Record<string, string | number | boolean | {
8288
8338
  type: string;
@@ -8322,7 +8372,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8322
8372
  filename: string;
8323
8373
  originalFilename: string;
8324
8374
  }[] | [string, string] | undefined>;
8325
- eventId: string;
8375
+ eventId: string & z.BRAND<"UUID">;
8326
8376
  annotation?: Record<string, string | number | boolean | {
8327
8377
  type: string;
8328
8378
  filename: string;
@@ -8361,9 +8411,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8361
8411
  filename: string;
8362
8412
  originalFilename: string;
8363
8413
  }[] | [string, string] | undefined> | undefined;
8364
- originalActionId?: string | undefined;
8414
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
8365
8415
  keepAssignment?: boolean | undefined;
8366
8416
  }, {
8417
+ reason: {
8418
+ message: string;
8419
+ isDuplicate?: boolean | undefined;
8420
+ };
8367
8421
  transactionId: string;
8368
8422
  eventId: string;
8369
8423
  type?: "REJECT" | undefined;
@@ -8446,7 +8500,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8446
8500
  originalActionId?: string | undefined;
8447
8501
  keepAssignment?: boolean | undefined;
8448
8502
  }>, z.ZodObject<z.objectUtil.extendShape<{
8449
- eventId: z.ZodString;
8503
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
8450
8504
  transactionId: z.ZodString;
8451
8505
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8452
8506
  filename: z.ZodString;
@@ -8676,7 +8730,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8676
8730
  addressLine3?: string | null | undefined;
8677
8731
  postcodeOrZip?: string | null | undefined;
8678
8732
  }>]>>>;
8679
- originalActionId: z.ZodOptional<z.ZodString>;
8733
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
8680
8734
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
8681
8735
  }, {
8682
8736
  type: z.ZodDefault<z.ZodLiteral<"MARKED_AS_DUPLICATE">>;
@@ -8721,7 +8775,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8721
8775
  filename: string;
8722
8776
  originalFilename: string;
8723
8777
  }[] | [string, string] | undefined>;
8724
- eventId: string;
8778
+ eventId: string & z.BRAND<"UUID">;
8725
8779
  annotation?: Record<string, string | number | boolean | {
8726
8780
  type: string;
8727
8781
  filename: string;
@@ -8760,7 +8814,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8760
8814
  filename: string;
8761
8815
  originalFilename: string;
8762
8816
  }[] | [string, string] | undefined> | undefined;
8763
- originalActionId?: string | undefined;
8817
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
8764
8818
  keepAssignment?: boolean | undefined;
8765
8819
  }, {
8766
8820
  transactionId: string;
@@ -8845,7 +8899,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
8845
8899
  originalActionId?: string | undefined;
8846
8900
  keepAssignment?: boolean | undefined;
8847
8901
  }>, z.ZodObject<z.objectUtil.extendShape<{
8848
- eventId: z.ZodString;
8902
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
8849
8903
  transactionId: z.ZodString;
8850
8904
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
8851
8905
  filename: z.ZodString;
@@ -9075,12 +9129,26 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9075
9129
  addressLine3?: string | null | undefined;
9076
9130
  postcodeOrZip?: string | null | undefined;
9077
9131
  }>]>>>;
9078
- originalActionId: z.ZodOptional<z.ZodString>;
9132
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
9079
9133
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
9080
9134
  }, {
9081
9135
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
9136
+ reason: z.ZodObject<{
9137
+ message: z.ZodString;
9138
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
9139
+ }, "strip", z.ZodTypeAny, {
9140
+ message: string;
9141
+ isDuplicate?: boolean | undefined;
9142
+ }, {
9143
+ message: string;
9144
+ isDuplicate?: boolean | undefined;
9145
+ }>;
9082
9146
  }>, "strip", z.ZodTypeAny, {
9083
9147
  type: "ARCHIVE";
9148
+ reason: {
9149
+ message: string;
9150
+ isDuplicate?: boolean | undefined;
9151
+ };
9084
9152
  transactionId: string;
9085
9153
  declaration: Record<string, string | number | boolean | {
9086
9154
  type: string;
@@ -9120,7 +9188,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9120
9188
  filename: string;
9121
9189
  originalFilename: string;
9122
9190
  }[] | [string, string] | undefined>;
9123
- eventId: string;
9191
+ eventId: string & z.BRAND<"UUID">;
9124
9192
  annotation?: Record<string, string | number | boolean | {
9125
9193
  type: string;
9126
9194
  filename: string;
@@ -9159,9 +9227,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9159
9227
  filename: string;
9160
9228
  originalFilename: string;
9161
9229
  }[] | [string, string] | undefined> | undefined;
9162
- originalActionId?: string | undefined;
9230
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
9163
9231
  keepAssignment?: boolean | undefined;
9164
9232
  }, {
9233
+ reason: {
9234
+ message: string;
9235
+ isDuplicate?: boolean | undefined;
9236
+ };
9165
9237
  transactionId: string;
9166
9238
  eventId: string;
9167
9239
  type?: "ARCHIVE" | undefined;
@@ -9244,7 +9316,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9244
9316
  originalActionId?: string | undefined;
9245
9317
  keepAssignment?: boolean | undefined;
9246
9318
  }>, z.ZodObject<z.objectUtil.extendShape<{
9247
- eventId: z.ZodString;
9319
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
9248
9320
  transactionId: z.ZodString;
9249
9321
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9250
9322
  filename: z.ZodString;
@@ -9474,7 +9546,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9474
9546
  addressLine3?: string | null | undefined;
9475
9547
  postcodeOrZip?: string | null | undefined;
9476
9548
  }>]>>>;
9477
- originalActionId: z.ZodOptional<z.ZodString>;
9549
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
9478
9550
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
9479
9551
  }, {
9480
9552
  type: z.ZodDefault<z.ZodLiteral<"ASSIGN">>;
@@ -9521,7 +9593,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9521
9593
  originalFilename: string;
9522
9594
  }[] | [string, string] | undefined>;
9523
9595
  assignedTo: string;
9524
- eventId: string;
9596
+ eventId: string & z.BRAND<"UUID">;
9525
9597
  annotation?: Record<string, string | number | boolean | {
9526
9598
  type: string;
9527
9599
  filename: string;
@@ -9560,7 +9632,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9560
9632
  filename: string;
9561
9633
  originalFilename: string;
9562
9634
  }[] | [string, string] | undefined> | undefined;
9563
- originalActionId?: string | undefined;
9635
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
9564
9636
  keepAssignment?: boolean | undefined;
9565
9637
  }, {
9566
9638
  transactionId: string;
@@ -9646,7 +9718,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9646
9718
  originalActionId?: string | undefined;
9647
9719
  keepAssignment?: boolean | undefined;
9648
9720
  }>, z.ZodObject<z.objectUtil.extendShape<{
9649
- eventId: z.ZodString;
9721
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
9650
9722
  transactionId: z.ZodString;
9651
9723
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
9652
9724
  filename: z.ZodString;
@@ -9876,7 +9948,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9876
9948
  addressLine3?: string | null | undefined;
9877
9949
  postcodeOrZip?: string | null | undefined;
9878
9950
  }>]>>>;
9879
- originalActionId: z.ZodOptional<z.ZodString>;
9951
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
9880
9952
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
9881
9953
  }, {
9882
9954
  type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
@@ -9923,7 +9995,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9923
9995
  originalFilename: string;
9924
9996
  }[] | [string, string] | undefined>;
9925
9997
  assignedTo: null;
9926
- eventId: string;
9998
+ eventId: string & z.BRAND<"UUID">;
9927
9999
  annotation?: Record<string, string | number | boolean | {
9928
10000
  type: string;
9929
10001
  filename: string;
@@ -9962,7 +10034,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
9962
10034
  filename: string;
9963
10035
  originalFilename: string;
9964
10036
  }[] | [string, string] | undefined> | undefined;
9965
- originalActionId?: string | undefined;
10037
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
9966
10038
  keepAssignment?: boolean | undefined;
9967
10039
  }, {
9968
10040
  transactionId: string;
@@ -10048,7 +10120,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10048
10120
  assignedTo?: null | undefined;
10049
10121
  keepAssignment?: boolean | undefined;
10050
10122
  }>, z.ZodObject<z.objectUtil.extendShape<{
10051
- eventId: z.ZodString;
10123
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
10052
10124
  transactionId: z.ZodString;
10053
10125
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10054
10126
  filename: z.ZodString;
@@ -10278,7 +10350,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10278
10350
  addressLine3?: string | null | undefined;
10279
10351
  postcodeOrZip?: string | null | undefined;
10280
10352
  }>]>>>;
10281
- originalActionId: z.ZodOptional<z.ZodString>;
10353
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
10282
10354
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
10283
10355
  }, {
10284
10356
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
@@ -10323,7 +10395,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10323
10395
  filename: string;
10324
10396
  originalFilename: string;
10325
10397
  }[] | [string, string] | undefined>;
10326
- eventId: string;
10398
+ eventId: string & z.BRAND<"UUID">;
10327
10399
  annotation?: Record<string, string | number | boolean | {
10328
10400
  type: string;
10329
10401
  filename: string;
@@ -10362,7 +10434,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10362
10434
  filename: string;
10363
10435
  originalFilename: string;
10364
10436
  }[] | [string, string] | undefined> | undefined;
10365
- originalActionId?: string | undefined;
10437
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
10366
10438
  keepAssignment?: boolean | undefined;
10367
10439
  }, {
10368
10440
  transactionId: string;
@@ -10447,7 +10519,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10447
10519
  originalActionId?: string | undefined;
10448
10520
  keepAssignment?: boolean | undefined;
10449
10521
  }>, z.ZodObject<z.objectUtil.extendShape<{
10450
- eventId: z.ZodString;
10522
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
10451
10523
  transactionId: z.ZodString;
10452
10524
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10453
10525
  filename: z.ZodString;
@@ -10677,7 +10749,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10677
10749
  addressLine3?: string | null | undefined;
10678
10750
  postcodeOrZip?: string | null | undefined;
10679
10751
  }>]>>>;
10680
- originalActionId: z.ZodOptional<z.ZodString>;
10752
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
10681
10753
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
10682
10754
  }, {
10683
10755
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
@@ -10722,7 +10794,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10722
10794
  filename: string;
10723
10795
  originalFilename: string;
10724
10796
  }[] | [string, string] | undefined>;
10725
- eventId: string;
10797
+ eventId: string & z.BRAND<"UUID">;
10726
10798
  annotation?: Record<string, string | number | boolean | {
10727
10799
  type: string;
10728
10800
  filename: string;
@@ -10761,7 +10833,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10761
10833
  filename: string;
10762
10834
  originalFilename: string;
10763
10835
  }[] | [string, string] | undefined> | undefined;
10764
- originalActionId?: string | undefined;
10836
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
10765
10837
  keepAssignment?: boolean | undefined;
10766
10838
  }, {
10767
10839
  transactionId: string;
@@ -10846,7 +10918,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
10846
10918
  originalActionId?: string | undefined;
10847
10919
  keepAssignment?: boolean | undefined;
10848
10920
  }>, z.ZodObject<z.objectUtil.extendShape<{
10849
- eventId: z.ZodString;
10921
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
10850
10922
  transactionId: z.ZodString;
10851
10923
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
10852
10924
  filename: z.ZodString;
@@ -11076,7 +11148,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11076
11148
  addressLine3?: string | null | undefined;
11077
11149
  postcodeOrZip?: string | null | undefined;
11078
11150
  }>]>>>;
11079
- originalActionId: z.ZodOptional<z.ZodString>;
11151
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
11080
11152
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
11081
11153
  }, {
11082
11154
  requestId: z.ZodString;
@@ -11123,7 +11195,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11123
11195
  originalFilename: string;
11124
11196
  }[] | [string, string] | undefined>;
11125
11197
  requestId: string;
11126
- eventId: string;
11198
+ eventId: string & z.BRAND<"UUID">;
11127
11199
  annotation?: Record<string, string | number | boolean | {
11128
11200
  type: string;
11129
11201
  filename: string;
@@ -11162,7 +11234,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11162
11234
  filename: string;
11163
11235
  originalFilename: string;
11164
11236
  }[] | [string, string] | undefined> | undefined;
11165
- originalActionId?: string | undefined;
11237
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
11166
11238
  keepAssignment?: boolean | undefined;
11167
11239
  }, {
11168
11240
  transactionId: string;
@@ -11248,7 +11320,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11248
11320
  originalActionId?: string | undefined;
11249
11321
  keepAssignment?: boolean | undefined;
11250
11322
  }>, z.ZodObject<z.objectUtil.extendShape<{
11251
- eventId: z.ZodString;
11323
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
11252
11324
  transactionId: z.ZodString;
11253
11325
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11254
11326
  filename: z.ZodString;
@@ -11478,7 +11550,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11478
11550
  addressLine3?: string | null | undefined;
11479
11551
  postcodeOrZip?: string | null | undefined;
11480
11552
  }>]>>>;
11481
- originalActionId: z.ZodOptional<z.ZodString>;
11553
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
11482
11554
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
11483
11555
  }, {
11484
11556
  requestId: z.ZodString;
@@ -11525,7 +11597,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11525
11597
  originalFilename: string;
11526
11598
  }[] | [string, string] | undefined>;
11527
11599
  requestId: string;
11528
- eventId: string;
11600
+ eventId: string & z.BRAND<"UUID">;
11529
11601
  annotation?: Record<string, string | number | boolean | {
11530
11602
  type: string;
11531
11603
  filename: string;
@@ -11564,7 +11636,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11564
11636
  filename: string;
11565
11637
  originalFilename: string;
11566
11638
  }[] | [string, string] | undefined> | undefined;
11567
- originalActionId?: string | undefined;
11639
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
11568
11640
  keepAssignment?: boolean | undefined;
11569
11641
  }, {
11570
11642
  transactionId: string;
@@ -11650,7 +11722,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11650
11722
  originalActionId?: string | undefined;
11651
11723
  keepAssignment?: boolean | undefined;
11652
11724
  }>, z.ZodObject<z.objectUtil.extendShape<{
11653
- eventId: z.ZodString;
11725
+ eventId: z.ZodBranded<z.ZodString, "UUID">;
11654
11726
  transactionId: z.ZodString;
11655
11727
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
11656
11728
  filename: z.ZodString;
@@ -11880,7 +11952,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11880
11952
  addressLine3?: string | null | undefined;
11881
11953
  postcodeOrZip?: string | null | undefined;
11882
11954
  }>]>>>;
11883
- originalActionId: z.ZodOptional<z.ZodString>;
11955
+ originalActionId: z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>;
11884
11956
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
11885
11957
  }, {
11886
11958
  type: z.ZodDefault<z.ZodLiteral<"READ">>;
@@ -11925,7 +11997,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11925
11997
  filename: string;
11926
11998
  originalFilename: string;
11927
11999
  }[] | [string, string] | undefined>;
11928
- eventId: string;
12000
+ eventId: string & z.BRAND<"UUID">;
11929
12001
  annotation?: Record<string, string | number | boolean | {
11930
12002
  type: string;
11931
12003
  filename: string;
@@ -11964,7 +12036,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
11964
12036
  filename: string;
11965
12037
  originalFilename: string;
11966
12038
  }[] | [string, string] | undefined> | undefined;
11967
- originalActionId?: string | undefined;
12039
+ originalActionId?: (string & z.BRAND<"UUID">) | undefined;
11968
12040
  keepAssignment?: boolean | undefined;
11969
12041
  }, {
11970
12042
  transactionId: string;