@heavybit/ecommerce-contracts 0.3.13 → 0.3.20

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 (76) hide show
  1. package/dist/cjs/app.js +5 -2
  2. package/dist/cjs/app.js.map +1 -1
  3. package/dist/cjs/events/base.js +1 -1
  4. package/dist/cjs/events/base.js.map +1 -1
  5. package/dist/cjs/events/engagement.js +58 -0
  6. package/dist/cjs/events/engagement.js.map +1 -0
  7. package/dist/cjs/events/index.js +3 -0
  8. package/dist/cjs/events/index.js.map +1 -1
  9. package/dist/cjs/events/notification.js +9 -2
  10. package/dist/cjs/events/notification.js.map +1 -1
  11. package/dist/cjs/events/order.js +25 -2
  12. package/dist/cjs/events/order.js.map +1 -1
  13. package/dist/cjs/features.js +1 -0
  14. package/dist/cjs/features.js.map +1 -1
  15. package/dist/cjs/internal/catalog.js +2 -0
  16. package/dist/cjs/internal/catalog.js.map +1 -1
  17. package/dist/cjs/internal/index.js +2 -0
  18. package/dist/cjs/internal/index.js.map +1 -1
  19. package/dist/cjs/internal/moderation.js +20 -0
  20. package/dist/cjs/internal/moderation.js.map +1 -0
  21. package/dist/cjs/internal/reviews.js +26 -0
  22. package/dist/cjs/internal/reviews.js.map +1 -0
  23. package/dist/cjs/permissions.js +4 -0
  24. package/dist/cjs/permissions.js.map +1 -1
  25. package/dist/esm/app.js +5 -2
  26. package/dist/esm/app.js.map +1 -1
  27. package/dist/esm/events/base.js +1 -1
  28. package/dist/esm/events/base.js.map +1 -1
  29. package/dist/esm/events/engagement.js +55 -0
  30. package/dist/esm/events/engagement.js.map +1 -0
  31. package/dist/esm/events/index.js +3 -0
  32. package/dist/esm/events/index.js.map +1 -1
  33. package/dist/esm/events/notification.js +8 -1
  34. package/dist/esm/events/notification.js.map +1 -1
  35. package/dist/esm/events/order.js +24 -1
  36. package/dist/esm/events/order.js.map +1 -1
  37. package/dist/esm/features.js +1 -0
  38. package/dist/esm/features.js.map +1 -1
  39. package/dist/esm/internal/catalog.js +2 -0
  40. package/dist/esm/internal/catalog.js.map +1 -1
  41. package/dist/esm/internal/index.js +2 -0
  42. package/dist/esm/internal/index.js.map +1 -1
  43. package/dist/esm/internal/moderation.js +17 -0
  44. package/dist/esm/internal/moderation.js.map +1 -0
  45. package/dist/esm/internal/reviews.js +23 -0
  46. package/dist/esm/internal/reviews.js.map +1 -0
  47. package/dist/esm/permissions.js +4 -0
  48. package/dist/esm/permissions.js.map +1 -1
  49. package/dist/types/app.d.ts +5 -2
  50. package/dist/types/app.d.ts.map +1 -1
  51. package/dist/types/events/audit.d.ts +3 -1
  52. package/dist/types/events/audit.d.ts.map +1 -1
  53. package/dist/types/events/base.d.ts +1 -1
  54. package/dist/types/events/base.d.ts.map +1 -1
  55. package/dist/types/events/engagement.d.ts +196 -0
  56. package/dist/types/events/engagement.d.ts.map +1 -0
  57. package/dist/types/events/index.d.ts +888 -49
  58. package/dist/types/events/index.d.ts.map +1 -1
  59. package/dist/types/events/notification.d.ts +51 -11
  60. package/dist/types/events/notification.d.ts.map +1 -1
  61. package/dist/types/events/order.d.ts +152 -1
  62. package/dist/types/events/order.d.ts.map +1 -1
  63. package/dist/types/events/payment.d.ts +6 -6
  64. package/dist/types/features.d.ts +5 -0
  65. package/dist/types/features.d.ts.map +1 -1
  66. package/dist/types/internal/catalog.d.ts +24 -0
  67. package/dist/types/internal/catalog.d.ts.map +1 -1
  68. package/dist/types/internal/index.d.ts +2 -0
  69. package/dist/types/internal/index.d.ts.map +1 -1
  70. package/dist/types/internal/moderation.d.ts +38 -0
  71. package/dist/types/internal/moderation.d.ts.map +1 -0
  72. package/dist/types/internal/reviews.d.ts +54 -0
  73. package/dist/types/internal/reviews.d.ts.map +1 -0
  74. package/dist/types/permissions.d.ts +4 -0
  75. package/dist/types/permissions.d.ts.map +1 -1
  76. package/package.json +1 -1
@@ -129,6 +129,13 @@ export declare const ROUTING_KEYS: Readonly<{
129
129
  readonly replied: "order.issue.replied";
130
130
  readonly escalated: "order.issue.escalated";
131
131
  readonly resolved: "order.issue.resolved";
132
+ readonly decided: "order.issue.decided";
133
+ };
134
+ readonly return: {
135
+ readonly requested: "order.return.requested";
136
+ readonly approved: "order.return.approved";
137
+ readonly rejected: "order.return.rejected";
138
+ readonly received: "order.return.received";
132
139
  };
133
140
  };
134
141
  readonly payment: {
@@ -168,6 +175,25 @@ export declare const ROUTING_KEYS: Readonly<{
168
175
  readonly ended: "promotion.campaign.ended";
169
176
  };
170
177
  };
178
+ readonly engagement: {
179
+ readonly customer: {
180
+ readonly created: "engagement.customer.created";
181
+ };
182
+ readonly cart: {
183
+ readonly abandoned: "engagement.cart.abandoned";
184
+ };
185
+ readonly consent: {
186
+ readonly changed: "engagement.consent.changed";
187
+ };
188
+ readonly report: {
189
+ readonly decided: "engagement.report.decided";
190
+ };
191
+ readonly review: {
192
+ readonly created: "engagement.review.created";
193
+ readonly hidden: "engagement.review.hidden";
194
+ readonly ratingChanged: "engagement.review.rating_changed";
195
+ };
196
+ };
171
197
  readonly usage: {
172
198
  readonly sms: {
173
199
  readonly sent: "usage.sms.sent";
@@ -179,6 +205,7 @@ export declare const ROUTING_KEYS: Readonly<{
179
205
  readonly notification: {
180
206
  readonly email: {
181
207
  readonly suppressed: "notification.email.suppressed";
208
+ readonly unsubscribed: "notification.email.unsubscribed";
182
209
  };
183
210
  readonly send: {
184
211
  readonly requested: "notification.send.requested";
@@ -197,6 +224,8 @@ export declare const ROUTING_KEYS: Readonly<{
197
224
  readonly cart: "cart.audit.recorded";
198
225
  readonly notification: "notification.audit.recorded";
199
226
  readonly reporting: "reporting.audit.recorded";
227
+ readonly promotion: "promotion.audit.recorded";
228
+ readonly engagement: "engagement.audit.recorded";
200
229
  };
201
230
  readonly pattern: "*.audit.recorded";
202
231
  };
@@ -213,6 +242,8 @@ export declare const ROUTING_KEYS: Readonly<{
213
242
  readonly cart: "cart.security.socket_rejected";
214
243
  readonly notification: "notification.security.socket_rejected";
215
244
  readonly reporting: "reporting.security.socket_rejected";
245
+ readonly promotion: "promotion.security.socket_rejected";
246
+ readonly engagement: "engagement.security.socket_rejected";
216
247
  };
217
248
  readonly pattern: "*.security.socket_rejected";
218
249
  };
@@ -428,6 +459,44 @@ export declare const EVENT_SCHEMAS: Readonly<{
428
459
  namespace: z.ZodString;
429
460
  reason: z.ZodString;
430
461
  }, z.ZodTypeAny, "passthrough">>;
462
+ "promotion.security.socket_rejected": z.ZodObject<{
463
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
+ } & {
465
+ userId: z.ZodNullable<z.ZodString>;
466
+ namespace: z.ZodString;
467
+ reason: z.ZodString;
468
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
469
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ } & {
471
+ userId: z.ZodNullable<z.ZodString>;
472
+ namespace: z.ZodString;
473
+ reason: z.ZodString;
474
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
475
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
476
+ } & {
477
+ userId: z.ZodNullable<z.ZodString>;
478
+ namespace: z.ZodString;
479
+ reason: z.ZodString;
480
+ }, z.ZodTypeAny, "passthrough">>;
481
+ "engagement.security.socket_rejected": z.ZodObject<{
482
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ } & {
484
+ userId: z.ZodNullable<z.ZodString>;
485
+ namespace: z.ZodString;
486
+ reason: z.ZodString;
487
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
488
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ } & {
490
+ userId: z.ZodNullable<z.ZodString>;
491
+ namespace: z.ZodString;
492
+ reason: z.ZodString;
493
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
494
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
495
+ } & {
496
+ userId: z.ZodNullable<z.ZodString>;
497
+ namespace: z.ZodString;
498
+ reason: z.ZodString;
499
+ }, z.ZodTypeAny, "passthrough">>;
431
500
  "order.audit.recorded": z.ZodObject<{
432
501
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
502
  } & {
@@ -736,6 +805,62 @@ export declare const EVENT_SCHEMAS: Readonly<{
736
805
  occurredAt: z.ZodString;
737
806
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
738
807
  }, z.ZodTypeAny, "passthrough">>;
808
+ "promotion.audit.recorded": z.ZodObject<{
809
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
+ } & {
811
+ action: z.ZodString;
812
+ entityType: z.ZodString;
813
+ entityId: z.ZodNullable<z.ZodString>;
814
+ outcome: z.ZodEnum<["success", "failure"]>;
815
+ occurredAt: z.ZodString;
816
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
817
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
818
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
819
+ } & {
820
+ action: z.ZodString;
821
+ entityType: z.ZodString;
822
+ entityId: z.ZodNullable<z.ZodString>;
823
+ outcome: z.ZodEnum<["success", "failure"]>;
824
+ occurredAt: z.ZodString;
825
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
826
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
827
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
+ } & {
829
+ action: z.ZodString;
830
+ entityType: z.ZodString;
831
+ entityId: z.ZodNullable<z.ZodString>;
832
+ outcome: z.ZodEnum<["success", "failure"]>;
833
+ occurredAt: z.ZodString;
834
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
835
+ }, z.ZodTypeAny, "passthrough">>;
836
+ "engagement.audit.recorded": z.ZodObject<{
837
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
838
+ } & {
839
+ action: z.ZodString;
840
+ entityType: z.ZodString;
841
+ entityId: z.ZodNullable<z.ZodString>;
842
+ outcome: z.ZodEnum<["success", "failure"]>;
843
+ occurredAt: z.ZodString;
844
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
845
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
846
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
847
+ } & {
848
+ action: z.ZodString;
849
+ entityType: z.ZodString;
850
+ entityId: z.ZodNullable<z.ZodString>;
851
+ outcome: z.ZodEnum<["success", "failure"]>;
852
+ occurredAt: z.ZodString;
853
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
854
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
855
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
856
+ } & {
857
+ action: z.ZodString;
858
+ entityType: z.ZodString;
859
+ entityId: z.ZodNullable<z.ZodString>;
860
+ outcome: z.ZodEnum<["success", "failure"]>;
861
+ occurredAt: z.ZodString;
862
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
863
+ }, z.ZodTypeAny, "passthrough">>;
739
864
  "notification.email.suppressed": z.ZodObject<{
740
865
  userId: z.ZodString;
741
866
  reason: z.ZodEnum<["bounce", "complaint"]>;
@@ -746,6 +871,22 @@ export declare const EVENT_SCHEMAS: Readonly<{
746
871
  userId: z.ZodString;
747
872
  reason: z.ZodEnum<["bounce", "complaint"]>;
748
873
  }, z.ZodTypeAny, "passthrough">>;
874
+ "notification.email.unsubscribed": z.ZodObject<{
875
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ } & {
877
+ userId: z.ZodString;
878
+ type: z.ZodString;
879
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
880
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
881
+ } & {
882
+ userId: z.ZodString;
883
+ type: z.ZodString;
884
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
885
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
886
+ } & {
887
+ userId: z.ZodString;
888
+ type: z.ZodString;
889
+ }, z.ZodTypeAny, "passthrough">>;
749
890
  "usage.sms.sent": z.ZodObject<{
750
891
  companyId: z.ZodString;
751
892
  } & {
@@ -790,6 +931,160 @@ export declare const EVENT_SCHEMAS: Readonly<{
790
931
  fee: z.ZodString;
791
932
  currency: z.ZodLiteral<"KES">;
792
933
  }, z.ZodTypeAny, "passthrough">>;
934
+ "engagement.customer.created": z.ZodObject<{
935
+ companyId: z.ZodString;
936
+ } & {
937
+ customerId: z.ZodString;
938
+ userId: z.ZodString;
939
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
940
+ companyId: z.ZodString;
941
+ } & {
942
+ customerId: z.ZodString;
943
+ userId: z.ZodString;
944
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
945
+ companyId: z.ZodString;
946
+ } & {
947
+ customerId: z.ZodString;
948
+ userId: z.ZodString;
949
+ }, z.ZodTypeAny, "passthrough">>;
950
+ "engagement.cart.abandoned": z.ZodObject<{
951
+ companyId: z.ZodString;
952
+ } & {
953
+ abandonedCartId: z.ZodString;
954
+ cartId: z.ZodString;
955
+ userId: z.ZodString;
956
+ itemCount: z.ZodNumber;
957
+ subtotal: z.ZodString;
958
+ currency: z.ZodLiteral<"KES">;
959
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
960
+ companyId: z.ZodString;
961
+ } & {
962
+ abandonedCartId: z.ZodString;
963
+ cartId: z.ZodString;
964
+ userId: z.ZodString;
965
+ itemCount: z.ZodNumber;
966
+ subtotal: z.ZodString;
967
+ currency: z.ZodLiteral<"KES">;
968
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
969
+ companyId: z.ZodString;
970
+ } & {
971
+ abandonedCartId: z.ZodString;
972
+ cartId: z.ZodString;
973
+ userId: z.ZodString;
974
+ itemCount: z.ZodNumber;
975
+ subtotal: z.ZodString;
976
+ currency: z.ZodLiteral<"KES">;
977
+ }, z.ZodTypeAny, "passthrough">>;
978
+ "engagement.consent.changed": z.ZodObject<{
979
+ companyId: z.ZodString;
980
+ } & {
981
+ userId: z.ZodString;
982
+ channel: z.ZodLiteral<"email">;
983
+ granted: z.ZodBoolean;
984
+ source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
985
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
986
+ companyId: z.ZodString;
987
+ } & {
988
+ userId: z.ZodString;
989
+ channel: z.ZodLiteral<"email">;
990
+ granted: z.ZodBoolean;
991
+ source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
992
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
993
+ companyId: z.ZodString;
994
+ } & {
995
+ userId: z.ZodString;
996
+ channel: z.ZodLiteral<"email">;
997
+ granted: z.ZodBoolean;
998
+ source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
999
+ }, z.ZodTypeAny, "passthrough">>;
1000
+ "engagement.report.decided": z.ZodObject<{
1001
+ companyId: z.ZodString;
1002
+ } & {
1003
+ reportId: z.ZodString;
1004
+ targetType: z.ZodEnum<["review", "product"]>;
1005
+ targetId: z.ZodString;
1006
+ decision: z.ZodEnum<["upheld", "dismissed"]>;
1007
+ action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
1008
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1009
+ companyId: z.ZodString;
1010
+ } & {
1011
+ reportId: z.ZodString;
1012
+ targetType: z.ZodEnum<["review", "product"]>;
1013
+ targetId: z.ZodString;
1014
+ decision: z.ZodEnum<["upheld", "dismissed"]>;
1015
+ action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
1016
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1017
+ companyId: z.ZodString;
1018
+ } & {
1019
+ reportId: z.ZodString;
1020
+ targetType: z.ZodEnum<["review", "product"]>;
1021
+ targetId: z.ZodString;
1022
+ decision: z.ZodEnum<["upheld", "dismissed"]>;
1023
+ action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
1024
+ }, z.ZodTypeAny, "passthrough">>;
1025
+ "engagement.review.created": z.ZodObject<{
1026
+ companyId: z.ZodString;
1027
+ } & {
1028
+ reviewId: z.ZodString;
1029
+ productId: z.ZodString;
1030
+ userId: z.ZodString;
1031
+ rating: z.ZodNumber;
1032
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1033
+ companyId: z.ZodString;
1034
+ } & {
1035
+ reviewId: z.ZodString;
1036
+ productId: z.ZodString;
1037
+ userId: z.ZodString;
1038
+ rating: z.ZodNumber;
1039
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1040
+ companyId: z.ZodString;
1041
+ } & {
1042
+ reviewId: z.ZodString;
1043
+ productId: z.ZodString;
1044
+ userId: z.ZodString;
1045
+ rating: z.ZodNumber;
1046
+ }, z.ZodTypeAny, "passthrough">>;
1047
+ "engagement.review.hidden": z.ZodObject<{
1048
+ companyId: z.ZodString;
1049
+ } & {
1050
+ reviewId: z.ZodString;
1051
+ productId: z.ZodString;
1052
+ hidden: z.ZodBoolean;
1053
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1054
+ companyId: z.ZodString;
1055
+ } & {
1056
+ reviewId: z.ZodString;
1057
+ productId: z.ZodString;
1058
+ hidden: z.ZodBoolean;
1059
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1060
+ companyId: z.ZodString;
1061
+ } & {
1062
+ reviewId: z.ZodString;
1063
+ productId: z.ZodString;
1064
+ hidden: z.ZodBoolean;
1065
+ }, z.ZodTypeAny, "passthrough">>;
1066
+ "engagement.review.rating_changed": z.ZodObject<{
1067
+ companyId: z.ZodString;
1068
+ } & {
1069
+ productId: z.ZodString;
1070
+ ratingAvg: z.ZodString;
1071
+ ratingCount: z.ZodNumber;
1072
+ ratingVersion: z.ZodNumber;
1073
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1074
+ companyId: z.ZodString;
1075
+ } & {
1076
+ productId: z.ZodString;
1077
+ ratingAvg: z.ZodString;
1078
+ ratingCount: z.ZodNumber;
1079
+ ratingVersion: z.ZodNumber;
1080
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1081
+ companyId: z.ZodString;
1082
+ } & {
1083
+ productId: z.ZodString;
1084
+ ratingAvg: z.ZodString;
1085
+ ratingCount: z.ZodNumber;
1086
+ ratingVersion: z.ZodNumber;
1087
+ }, z.ZodTypeAny, "passthrough">>;
793
1088
  "promotion.coupon.redeemed": z.ZodObject<{
794
1089
  companyId: z.ZodString;
795
1090
  } & {
@@ -1016,11 +1311,11 @@ export declare const EVENT_SCHEMAS: Readonly<{
1016
1311
  orderItemId: z.ZodString;
1017
1312
  quantity: z.ZodNumber;
1018
1313
  }, "strip", z.ZodTypeAny, {
1019
- orderItemId: string;
1020
1314
  quantity: number;
1021
- }, {
1022
1315
  orderItemId: string;
1316
+ }, {
1023
1317
  quantity: number;
1318
+ orderItemId: string;
1024
1319
  }>, "many">>;
1025
1320
  includesShipping: z.ZodOptional<z.ZodBoolean>;
1026
1321
  amount: z.ZodString;
@@ -1036,11 +1331,11 @@ export declare const EVENT_SCHEMAS: Readonly<{
1036
1331
  orderItemId: z.ZodString;
1037
1332
  quantity: z.ZodNumber;
1038
1333
  }, "strip", z.ZodTypeAny, {
1039
- orderItemId: string;
1040
1334
  quantity: number;
1041
- }, {
1042
1335
  orderItemId: string;
1336
+ }, {
1043
1337
  quantity: number;
1338
+ orderItemId: string;
1044
1339
  }>, "many">>;
1045
1340
  includesShipping: z.ZodOptional<z.ZodBoolean>;
1046
1341
  amount: z.ZodString;
@@ -1056,11 +1351,11 @@ export declare const EVENT_SCHEMAS: Readonly<{
1056
1351
  orderItemId: z.ZodString;
1057
1352
  quantity: z.ZodNumber;
1058
1353
  }, "strip", z.ZodTypeAny, {
1059
- orderItemId: string;
1060
1354
  quantity: number;
1061
- }, {
1062
1355
  orderItemId: string;
1356
+ }, {
1063
1357
  quantity: number;
1358
+ orderItemId: string;
1064
1359
  }>, "many">>;
1065
1360
  includesShipping: z.ZodOptional<z.ZodBoolean>;
1066
1361
  amount: z.ZodString;
@@ -1455,46 +1750,186 @@ export declare const EVENT_SCHEMAS: Readonly<{
1455
1750
  orderId: z.ZodString;
1456
1751
  resolution: z.ZodString;
1457
1752
  }, z.ZodTypeAny, "passthrough">>;
1458
- "cart.cart.updated": z.ZodObject<{
1753
+ "order.issue.decided": z.ZodObject<{
1459
1754
  companyId: z.ZodString;
1460
1755
  } & {
1461
- cartId: z.ZodString;
1462
- userId: z.ZodNullable<z.ZodString>;
1463
- itemCount: z.ZodNumber;
1464
- subtotal: z.ZodString;
1465
- currency: z.ZodLiteral<"KES">;
1756
+ issueId: z.ZodString;
1757
+ orderId: z.ZodString;
1758
+ outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
1759
+ suspendRequested: z.ZodBoolean;
1466
1760
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1467
1761
  companyId: z.ZodString;
1468
1762
  } & {
1469
- cartId: z.ZodString;
1470
- userId: z.ZodNullable<z.ZodString>;
1471
- itemCount: z.ZodNumber;
1472
- subtotal: z.ZodString;
1473
- currency: z.ZodLiteral<"KES">;
1763
+ issueId: z.ZodString;
1764
+ orderId: z.ZodString;
1765
+ outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
1766
+ suspendRequested: z.ZodBoolean;
1474
1767
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1475
1768
  companyId: z.ZodString;
1476
1769
  } & {
1477
- cartId: z.ZodString;
1478
- userId: z.ZodNullable<z.ZodString>;
1479
- itemCount: z.ZodNumber;
1480
- subtotal: z.ZodString;
1481
- currency: z.ZodLiteral<"KES">;
1770
+ issueId: z.ZodString;
1771
+ orderId: z.ZodString;
1772
+ outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
1773
+ suspendRequested: z.ZodBoolean;
1482
1774
  }, z.ZodTypeAny, "passthrough">>;
1483
- "media.file.uploaded": z.ZodObject<{
1775
+ "order.return.requested": z.ZodObject<{
1484
1776
  companyId: z.ZodString;
1485
1777
  } & {
1486
- fileId: z.ZodString;
1487
- purpose: z.ZodString;
1488
- contentType: z.ZodString;
1489
- sizeBytes: z.ZodNumber;
1778
+ returnId: z.ZodString;
1779
+ orderId: z.ZodString;
1780
+ userId: z.ZodString;
1781
+ itemCount: z.ZodNumber;
1490
1782
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1491
1783
  companyId: z.ZodString;
1492
1784
  } & {
1493
- fileId: z.ZodString;
1494
- purpose: z.ZodString;
1495
- contentType: z.ZodString;
1496
- sizeBytes: z.ZodNumber;
1497
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1785
+ returnId: z.ZodString;
1786
+ orderId: z.ZodString;
1787
+ userId: z.ZodString;
1788
+ itemCount: z.ZodNumber;
1789
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1790
+ companyId: z.ZodString;
1791
+ } & {
1792
+ returnId: z.ZodString;
1793
+ orderId: z.ZodString;
1794
+ userId: z.ZodString;
1795
+ itemCount: z.ZodNumber;
1796
+ }, z.ZodTypeAny, "passthrough">>;
1797
+ "order.return.approved": z.ZodObject<{
1798
+ companyId: z.ZodString;
1799
+ } & {
1800
+ returnId: z.ZodString;
1801
+ orderId: z.ZodString;
1802
+ userId: z.ZodString;
1803
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1804
+ companyId: z.ZodString;
1805
+ } & {
1806
+ returnId: z.ZodString;
1807
+ orderId: z.ZodString;
1808
+ userId: z.ZodString;
1809
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1810
+ companyId: z.ZodString;
1811
+ } & {
1812
+ returnId: z.ZodString;
1813
+ orderId: z.ZodString;
1814
+ userId: z.ZodString;
1815
+ }, z.ZodTypeAny, "passthrough">>;
1816
+ "order.return.rejected": z.ZodObject<{
1817
+ companyId: z.ZodString;
1818
+ } & {
1819
+ returnId: z.ZodString;
1820
+ orderId: z.ZodString;
1821
+ userId: z.ZodString;
1822
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1823
+ companyId: z.ZodString;
1824
+ } & {
1825
+ returnId: z.ZodString;
1826
+ orderId: z.ZodString;
1827
+ userId: z.ZodString;
1828
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1829
+ companyId: z.ZodString;
1830
+ } & {
1831
+ returnId: z.ZodString;
1832
+ orderId: z.ZodString;
1833
+ userId: z.ZodString;
1834
+ }, z.ZodTypeAny, "passthrough">>;
1835
+ "order.return.received": z.ZodObject<{
1836
+ companyId: z.ZodString;
1837
+ } & {
1838
+ returnId: z.ZodString;
1839
+ orderId: z.ZodString;
1840
+ userId: z.ZodString;
1841
+ lines: z.ZodArray<z.ZodObject<{
1842
+ variantId: z.ZodString;
1843
+ quantity: z.ZodNumber;
1844
+ disposition: z.ZodEnum<["restock", "write_off"]>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ variantId: string;
1847
+ quantity: number;
1848
+ disposition: "restock" | "write_off";
1849
+ }, {
1850
+ variantId: string;
1851
+ quantity: number;
1852
+ disposition: "restock" | "write_off";
1853
+ }>, "many">;
1854
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1855
+ companyId: z.ZodString;
1856
+ } & {
1857
+ returnId: z.ZodString;
1858
+ orderId: z.ZodString;
1859
+ userId: z.ZodString;
1860
+ lines: z.ZodArray<z.ZodObject<{
1861
+ variantId: z.ZodString;
1862
+ quantity: z.ZodNumber;
1863
+ disposition: z.ZodEnum<["restock", "write_off"]>;
1864
+ }, "strip", z.ZodTypeAny, {
1865
+ variantId: string;
1866
+ quantity: number;
1867
+ disposition: "restock" | "write_off";
1868
+ }, {
1869
+ variantId: string;
1870
+ quantity: number;
1871
+ disposition: "restock" | "write_off";
1872
+ }>, "many">;
1873
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1874
+ companyId: z.ZodString;
1875
+ } & {
1876
+ returnId: z.ZodString;
1877
+ orderId: z.ZodString;
1878
+ userId: z.ZodString;
1879
+ lines: z.ZodArray<z.ZodObject<{
1880
+ variantId: z.ZodString;
1881
+ quantity: z.ZodNumber;
1882
+ disposition: z.ZodEnum<["restock", "write_off"]>;
1883
+ }, "strip", z.ZodTypeAny, {
1884
+ variantId: string;
1885
+ quantity: number;
1886
+ disposition: "restock" | "write_off";
1887
+ }, {
1888
+ variantId: string;
1889
+ quantity: number;
1890
+ disposition: "restock" | "write_off";
1891
+ }>, "many">;
1892
+ }, z.ZodTypeAny, "passthrough">>;
1893
+ "cart.cart.updated": z.ZodObject<{
1894
+ companyId: z.ZodString;
1895
+ } & {
1896
+ cartId: z.ZodString;
1897
+ userId: z.ZodNullable<z.ZodString>;
1898
+ itemCount: z.ZodNumber;
1899
+ subtotal: z.ZodString;
1900
+ currency: z.ZodLiteral<"KES">;
1901
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1902
+ companyId: z.ZodString;
1903
+ } & {
1904
+ cartId: z.ZodString;
1905
+ userId: z.ZodNullable<z.ZodString>;
1906
+ itemCount: z.ZodNumber;
1907
+ subtotal: z.ZodString;
1908
+ currency: z.ZodLiteral<"KES">;
1909
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1910
+ companyId: z.ZodString;
1911
+ } & {
1912
+ cartId: z.ZodString;
1913
+ userId: z.ZodNullable<z.ZodString>;
1914
+ itemCount: z.ZodNumber;
1915
+ subtotal: z.ZodString;
1916
+ currency: z.ZodLiteral<"KES">;
1917
+ }, z.ZodTypeAny, "passthrough">>;
1918
+ "media.file.uploaded": z.ZodObject<{
1919
+ companyId: z.ZodString;
1920
+ } & {
1921
+ fileId: z.ZodString;
1922
+ purpose: z.ZodString;
1923
+ contentType: z.ZodString;
1924
+ sizeBytes: z.ZodNumber;
1925
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1926
+ companyId: z.ZodString;
1927
+ } & {
1928
+ fileId: z.ZodString;
1929
+ purpose: z.ZodString;
1930
+ contentType: z.ZodString;
1931
+ sizeBytes: z.ZodNumber;
1932
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1498
1933
  companyId: z.ZodString;
1499
1934
  } & {
1500
1935
  fileId: z.ZodString;
@@ -2359,7 +2794,7 @@ export declare const COMMAND_SCHEMAS: Readonly<{
2359
2794
  companyId: z.ZodNullable<z.ZodString>;
2360
2795
  }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
2361
2796
  template: z.ZodString;
2362
- category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing")[]]>;
2797
+ category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing")[]]>;
2363
2798
  recipient: z.ZodObject<{
2364
2799
  email: z.ZodString;
2365
2800
  name: z.ZodOptional<z.ZodString>;
@@ -2386,7 +2821,7 @@ export declare const COMMAND_SCHEMAS: Readonly<{
2386
2821
  targetPermission: z.ZodOptional<z.ZodString>;
2387
2822
  }, "strip", z.ZodTypeAny, {
2388
2823
  template: string;
2389
- category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2824
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
2390
2825
  recipient: {
2391
2826
  email: string;
2392
2827
  name?: string | undefined;
@@ -2401,7 +2836,7 @@ export declare const COMMAND_SCHEMAS: Readonly<{
2401
2836
  targetPermission?: string | undefined;
2402
2837
  }, {
2403
2838
  template: string;
2404
- category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2839
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
2405
2840
  recipient: {
2406
2841
  email: string;
2407
2842
  name?: string | undefined;
@@ -2416,7 +2851,7 @@ export declare const COMMAND_SCHEMAS: Readonly<{
2416
2851
  targetPermission?: string | undefined;
2417
2852
  }>, {
2418
2853
  template: string;
2419
- category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2854
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
2420
2855
  recipient: {
2421
2856
  email: string;
2422
2857
  name?: string | undefined;
@@ -2431,7 +2866,7 @@ export declare const COMMAND_SCHEMAS: Readonly<{
2431
2866
  targetPermission?: string | undefined;
2432
2867
  }, {
2433
2868
  template: string;
2434
- category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2869
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
2435
2870
  recipient: {
2436
2871
  email: string;
2437
2872
  name?: string | undefined;
@@ -2456,7 +2891,7 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
2456
2891
  companyId: z.ZodNullable<z.ZodString>;
2457
2892
  }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
2458
2893
  template: z.ZodString;
2459
- category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing")[]]>;
2894
+ category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing")[]]>;
2460
2895
  recipient: z.ZodObject<{
2461
2896
  email: z.ZodString;
2462
2897
  name: z.ZodOptional<z.ZodString>;
@@ -2483,7 +2918,7 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
2483
2918
  targetPermission: z.ZodOptional<z.ZodString>;
2484
2919
  }, "strip", z.ZodTypeAny, {
2485
2920
  template: string;
2486
- category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2921
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
2487
2922
  recipient: {
2488
2923
  email: string;
2489
2924
  name?: string | undefined;
@@ -2498,7 +2933,7 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
2498
2933
  targetPermission?: string | undefined;
2499
2934
  }, {
2500
2935
  template: string;
2501
- category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2936
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
2502
2937
  recipient: {
2503
2938
  email: string;
2504
2939
  name?: string | undefined;
@@ -2513,7 +2948,7 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
2513
2948
  targetPermission?: string | undefined;
2514
2949
  }>, {
2515
2950
  template: string;
2516
- category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2951
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
2517
2952
  recipient: {
2518
2953
  email: string;
2519
2954
  name?: string | undefined;
@@ -2528,7 +2963,7 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
2528
2963
  targetPermission?: string | undefined;
2529
2964
  }, {
2530
2965
  template: string;
2531
- category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2966
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing" | "marketing";
2532
2967
  recipient: {
2533
2968
  email: string;
2534
2969
  name?: string | undefined;
@@ -2751,6 +3186,44 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
2751
3186
  namespace: z.ZodString;
2752
3187
  reason: z.ZodString;
2753
3188
  }, z.ZodTypeAny, "passthrough">>;
3189
+ "promotion.security.socket_rejected": z.ZodObject<{
3190
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3191
+ } & {
3192
+ userId: z.ZodNullable<z.ZodString>;
3193
+ namespace: z.ZodString;
3194
+ reason: z.ZodString;
3195
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3196
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3197
+ } & {
3198
+ userId: z.ZodNullable<z.ZodString>;
3199
+ namespace: z.ZodString;
3200
+ reason: z.ZodString;
3201
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3202
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3203
+ } & {
3204
+ userId: z.ZodNullable<z.ZodString>;
3205
+ namespace: z.ZodString;
3206
+ reason: z.ZodString;
3207
+ }, z.ZodTypeAny, "passthrough">>;
3208
+ "engagement.security.socket_rejected": z.ZodObject<{
3209
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3210
+ } & {
3211
+ userId: z.ZodNullable<z.ZodString>;
3212
+ namespace: z.ZodString;
3213
+ reason: z.ZodString;
3214
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3215
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3216
+ } & {
3217
+ userId: z.ZodNullable<z.ZodString>;
3218
+ namespace: z.ZodString;
3219
+ reason: z.ZodString;
3220
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3221
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3222
+ } & {
3223
+ userId: z.ZodNullable<z.ZodString>;
3224
+ namespace: z.ZodString;
3225
+ reason: z.ZodString;
3226
+ }, z.ZodTypeAny, "passthrough">>;
2754
3227
  "order.audit.recorded": z.ZodObject<{
2755
3228
  companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2756
3229
  } & {
@@ -3059,6 +3532,62 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
3059
3532
  occurredAt: z.ZodString;
3060
3533
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3061
3534
  }, z.ZodTypeAny, "passthrough">>;
3535
+ "promotion.audit.recorded": z.ZodObject<{
3536
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3537
+ } & {
3538
+ action: z.ZodString;
3539
+ entityType: z.ZodString;
3540
+ entityId: z.ZodNullable<z.ZodString>;
3541
+ outcome: z.ZodEnum<["success", "failure"]>;
3542
+ occurredAt: z.ZodString;
3543
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3544
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3545
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3546
+ } & {
3547
+ action: z.ZodString;
3548
+ entityType: z.ZodString;
3549
+ entityId: z.ZodNullable<z.ZodString>;
3550
+ outcome: z.ZodEnum<["success", "failure"]>;
3551
+ occurredAt: z.ZodString;
3552
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3553
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3554
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3555
+ } & {
3556
+ action: z.ZodString;
3557
+ entityType: z.ZodString;
3558
+ entityId: z.ZodNullable<z.ZodString>;
3559
+ outcome: z.ZodEnum<["success", "failure"]>;
3560
+ occurredAt: z.ZodString;
3561
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3562
+ }, z.ZodTypeAny, "passthrough">>;
3563
+ "engagement.audit.recorded": z.ZodObject<{
3564
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3565
+ } & {
3566
+ action: z.ZodString;
3567
+ entityType: z.ZodString;
3568
+ entityId: z.ZodNullable<z.ZodString>;
3569
+ outcome: z.ZodEnum<["success", "failure"]>;
3570
+ occurredAt: z.ZodString;
3571
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3572
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3573
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3574
+ } & {
3575
+ action: z.ZodString;
3576
+ entityType: z.ZodString;
3577
+ entityId: z.ZodNullable<z.ZodString>;
3578
+ outcome: z.ZodEnum<["success", "failure"]>;
3579
+ occurredAt: z.ZodString;
3580
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3581
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3582
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3583
+ } & {
3584
+ action: z.ZodString;
3585
+ entityType: z.ZodString;
3586
+ entityId: z.ZodNullable<z.ZodString>;
3587
+ outcome: z.ZodEnum<["success", "failure"]>;
3588
+ occurredAt: z.ZodString;
3589
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3590
+ }, z.ZodTypeAny, "passthrough">>;
3062
3591
  "notification.email.suppressed": z.ZodObject<{
3063
3592
  userId: z.ZodString;
3064
3593
  reason: z.ZodEnum<["bounce", "complaint"]>;
@@ -3069,6 +3598,22 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
3069
3598
  userId: z.ZodString;
3070
3599
  reason: z.ZodEnum<["bounce", "complaint"]>;
3071
3600
  }, z.ZodTypeAny, "passthrough">>;
3601
+ "notification.email.unsubscribed": z.ZodObject<{
3602
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3603
+ } & {
3604
+ userId: z.ZodString;
3605
+ type: z.ZodString;
3606
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3607
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3608
+ } & {
3609
+ userId: z.ZodString;
3610
+ type: z.ZodString;
3611
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3612
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3613
+ } & {
3614
+ userId: z.ZodString;
3615
+ type: z.ZodString;
3616
+ }, z.ZodTypeAny, "passthrough">>;
3072
3617
  "usage.sms.sent": z.ZodObject<{
3073
3618
  companyId: z.ZodString;
3074
3619
  } & {
@@ -3113,6 +3658,160 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
3113
3658
  fee: z.ZodString;
3114
3659
  currency: z.ZodLiteral<"KES">;
3115
3660
  }, z.ZodTypeAny, "passthrough">>;
3661
+ "engagement.customer.created": z.ZodObject<{
3662
+ companyId: z.ZodString;
3663
+ } & {
3664
+ customerId: z.ZodString;
3665
+ userId: z.ZodString;
3666
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3667
+ companyId: z.ZodString;
3668
+ } & {
3669
+ customerId: z.ZodString;
3670
+ userId: z.ZodString;
3671
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3672
+ companyId: z.ZodString;
3673
+ } & {
3674
+ customerId: z.ZodString;
3675
+ userId: z.ZodString;
3676
+ }, z.ZodTypeAny, "passthrough">>;
3677
+ "engagement.cart.abandoned": z.ZodObject<{
3678
+ companyId: z.ZodString;
3679
+ } & {
3680
+ abandonedCartId: z.ZodString;
3681
+ cartId: z.ZodString;
3682
+ userId: z.ZodString;
3683
+ itemCount: z.ZodNumber;
3684
+ subtotal: z.ZodString;
3685
+ currency: z.ZodLiteral<"KES">;
3686
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3687
+ companyId: z.ZodString;
3688
+ } & {
3689
+ abandonedCartId: z.ZodString;
3690
+ cartId: z.ZodString;
3691
+ userId: z.ZodString;
3692
+ itemCount: z.ZodNumber;
3693
+ subtotal: z.ZodString;
3694
+ currency: z.ZodLiteral<"KES">;
3695
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3696
+ companyId: z.ZodString;
3697
+ } & {
3698
+ abandonedCartId: z.ZodString;
3699
+ cartId: z.ZodString;
3700
+ userId: z.ZodString;
3701
+ itemCount: z.ZodNumber;
3702
+ subtotal: z.ZodString;
3703
+ currency: z.ZodLiteral<"KES">;
3704
+ }, z.ZodTypeAny, "passthrough">>;
3705
+ "engagement.consent.changed": z.ZodObject<{
3706
+ companyId: z.ZodString;
3707
+ } & {
3708
+ userId: z.ZodString;
3709
+ channel: z.ZodLiteral<"email">;
3710
+ granted: z.ZodBoolean;
3711
+ source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
3712
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3713
+ companyId: z.ZodString;
3714
+ } & {
3715
+ userId: z.ZodString;
3716
+ channel: z.ZodLiteral<"email">;
3717
+ granted: z.ZodBoolean;
3718
+ source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
3719
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3720
+ companyId: z.ZodString;
3721
+ } & {
3722
+ userId: z.ZodString;
3723
+ channel: z.ZodLiteral<"email">;
3724
+ granted: z.ZodBoolean;
3725
+ source: z.ZodEnum<["account", "newsletter", "unsubscribe_link"]>;
3726
+ }, z.ZodTypeAny, "passthrough">>;
3727
+ "engagement.report.decided": z.ZodObject<{
3728
+ companyId: z.ZodString;
3729
+ } & {
3730
+ reportId: z.ZodString;
3731
+ targetType: z.ZodEnum<["review", "product"]>;
3732
+ targetId: z.ZodString;
3733
+ decision: z.ZodEnum<["upheld", "dismissed"]>;
3734
+ action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
3735
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3736
+ companyId: z.ZodString;
3737
+ } & {
3738
+ reportId: z.ZodString;
3739
+ targetType: z.ZodEnum<["review", "product"]>;
3740
+ targetId: z.ZodString;
3741
+ decision: z.ZodEnum<["upheld", "dismissed"]>;
3742
+ action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
3743
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3744
+ companyId: z.ZodString;
3745
+ } & {
3746
+ reportId: z.ZodString;
3747
+ targetType: z.ZodEnum<["review", "product"]>;
3748
+ targetId: z.ZodString;
3749
+ decision: z.ZodEnum<["upheld", "dismissed"]>;
3750
+ action: z.ZodEnum<["hide_review", "disable_product", "none"]>;
3751
+ }, z.ZodTypeAny, "passthrough">>;
3752
+ "engagement.review.created": z.ZodObject<{
3753
+ companyId: z.ZodString;
3754
+ } & {
3755
+ reviewId: z.ZodString;
3756
+ productId: z.ZodString;
3757
+ userId: z.ZodString;
3758
+ rating: z.ZodNumber;
3759
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3760
+ companyId: z.ZodString;
3761
+ } & {
3762
+ reviewId: z.ZodString;
3763
+ productId: z.ZodString;
3764
+ userId: z.ZodString;
3765
+ rating: z.ZodNumber;
3766
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3767
+ companyId: z.ZodString;
3768
+ } & {
3769
+ reviewId: z.ZodString;
3770
+ productId: z.ZodString;
3771
+ userId: z.ZodString;
3772
+ rating: z.ZodNumber;
3773
+ }, z.ZodTypeAny, "passthrough">>;
3774
+ "engagement.review.hidden": z.ZodObject<{
3775
+ companyId: z.ZodString;
3776
+ } & {
3777
+ reviewId: z.ZodString;
3778
+ productId: z.ZodString;
3779
+ hidden: z.ZodBoolean;
3780
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3781
+ companyId: z.ZodString;
3782
+ } & {
3783
+ reviewId: z.ZodString;
3784
+ productId: z.ZodString;
3785
+ hidden: z.ZodBoolean;
3786
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3787
+ companyId: z.ZodString;
3788
+ } & {
3789
+ reviewId: z.ZodString;
3790
+ productId: z.ZodString;
3791
+ hidden: z.ZodBoolean;
3792
+ }, z.ZodTypeAny, "passthrough">>;
3793
+ "engagement.review.rating_changed": z.ZodObject<{
3794
+ companyId: z.ZodString;
3795
+ } & {
3796
+ productId: z.ZodString;
3797
+ ratingAvg: z.ZodString;
3798
+ ratingCount: z.ZodNumber;
3799
+ ratingVersion: z.ZodNumber;
3800
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3801
+ companyId: z.ZodString;
3802
+ } & {
3803
+ productId: z.ZodString;
3804
+ ratingAvg: z.ZodString;
3805
+ ratingCount: z.ZodNumber;
3806
+ ratingVersion: z.ZodNumber;
3807
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3808
+ companyId: z.ZodString;
3809
+ } & {
3810
+ productId: z.ZodString;
3811
+ ratingAvg: z.ZodString;
3812
+ ratingCount: z.ZodNumber;
3813
+ ratingVersion: z.ZodNumber;
3814
+ }, z.ZodTypeAny, "passthrough">>;
3116
3815
  "promotion.coupon.redeemed": z.ZodObject<{
3117
3816
  companyId: z.ZodString;
3118
3817
  } & {
@@ -3339,11 +4038,11 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
3339
4038
  orderItemId: z.ZodString;
3340
4039
  quantity: z.ZodNumber;
3341
4040
  }, "strip", z.ZodTypeAny, {
3342
- orderItemId: string;
3343
4041
  quantity: number;
3344
- }, {
3345
4042
  orderItemId: string;
4043
+ }, {
3346
4044
  quantity: number;
4045
+ orderItemId: string;
3347
4046
  }>, "many">>;
3348
4047
  includesShipping: z.ZodOptional<z.ZodBoolean>;
3349
4048
  amount: z.ZodString;
@@ -3359,11 +4058,11 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
3359
4058
  orderItemId: z.ZodString;
3360
4059
  quantity: z.ZodNumber;
3361
4060
  }, "strip", z.ZodTypeAny, {
3362
- orderItemId: string;
3363
4061
  quantity: number;
3364
- }, {
3365
4062
  orderItemId: string;
4063
+ }, {
3366
4064
  quantity: number;
4065
+ orderItemId: string;
3367
4066
  }>, "many">>;
3368
4067
  includesShipping: z.ZodOptional<z.ZodBoolean>;
3369
4068
  amount: z.ZodString;
@@ -3379,11 +4078,11 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
3379
4078
  orderItemId: z.ZodString;
3380
4079
  quantity: z.ZodNumber;
3381
4080
  }, "strip", z.ZodTypeAny, {
3382
- orderItemId: string;
3383
4081
  quantity: number;
3384
- }, {
3385
4082
  orderItemId: string;
4083
+ }, {
3386
4084
  quantity: number;
4085
+ orderItemId: string;
3387
4086
  }>, "many">>;
3388
4087
  includesShipping: z.ZodOptional<z.ZodBoolean>;
3389
4088
  amount: z.ZodString;
@@ -3778,6 +4477,146 @@ export declare const MESSAGE_SCHEMAS: Readonly<{
3778
4477
  orderId: z.ZodString;
3779
4478
  resolution: z.ZodString;
3780
4479
  }, z.ZodTypeAny, "passthrough">>;
4480
+ "order.issue.decided": z.ZodObject<{
4481
+ companyId: z.ZodString;
4482
+ } & {
4483
+ issueId: z.ZodString;
4484
+ orderId: z.ZodString;
4485
+ outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
4486
+ suspendRequested: z.ZodBoolean;
4487
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4488
+ companyId: z.ZodString;
4489
+ } & {
4490
+ issueId: z.ZodString;
4491
+ orderId: z.ZodString;
4492
+ outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
4493
+ suspendRequested: z.ZodBoolean;
4494
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4495
+ companyId: z.ZodString;
4496
+ } & {
4497
+ issueId: z.ZodString;
4498
+ orderId: z.ZodString;
4499
+ outcome: z.ZodEnum<["refund", "no_action", "instruct"]>;
4500
+ suspendRequested: z.ZodBoolean;
4501
+ }, z.ZodTypeAny, "passthrough">>;
4502
+ "order.return.requested": z.ZodObject<{
4503
+ companyId: z.ZodString;
4504
+ } & {
4505
+ returnId: z.ZodString;
4506
+ orderId: z.ZodString;
4507
+ userId: z.ZodString;
4508
+ itemCount: z.ZodNumber;
4509
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4510
+ companyId: z.ZodString;
4511
+ } & {
4512
+ returnId: z.ZodString;
4513
+ orderId: z.ZodString;
4514
+ userId: z.ZodString;
4515
+ itemCount: z.ZodNumber;
4516
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4517
+ companyId: z.ZodString;
4518
+ } & {
4519
+ returnId: z.ZodString;
4520
+ orderId: z.ZodString;
4521
+ userId: z.ZodString;
4522
+ itemCount: z.ZodNumber;
4523
+ }, z.ZodTypeAny, "passthrough">>;
4524
+ "order.return.approved": z.ZodObject<{
4525
+ companyId: z.ZodString;
4526
+ } & {
4527
+ returnId: z.ZodString;
4528
+ orderId: z.ZodString;
4529
+ userId: z.ZodString;
4530
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4531
+ companyId: z.ZodString;
4532
+ } & {
4533
+ returnId: z.ZodString;
4534
+ orderId: z.ZodString;
4535
+ userId: z.ZodString;
4536
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4537
+ companyId: z.ZodString;
4538
+ } & {
4539
+ returnId: z.ZodString;
4540
+ orderId: z.ZodString;
4541
+ userId: z.ZodString;
4542
+ }, z.ZodTypeAny, "passthrough">>;
4543
+ "order.return.rejected": z.ZodObject<{
4544
+ companyId: z.ZodString;
4545
+ } & {
4546
+ returnId: z.ZodString;
4547
+ orderId: z.ZodString;
4548
+ userId: z.ZodString;
4549
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4550
+ companyId: z.ZodString;
4551
+ } & {
4552
+ returnId: z.ZodString;
4553
+ orderId: z.ZodString;
4554
+ userId: z.ZodString;
4555
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4556
+ companyId: z.ZodString;
4557
+ } & {
4558
+ returnId: z.ZodString;
4559
+ orderId: z.ZodString;
4560
+ userId: z.ZodString;
4561
+ }, z.ZodTypeAny, "passthrough">>;
4562
+ "order.return.received": z.ZodObject<{
4563
+ companyId: z.ZodString;
4564
+ } & {
4565
+ returnId: z.ZodString;
4566
+ orderId: z.ZodString;
4567
+ userId: z.ZodString;
4568
+ lines: z.ZodArray<z.ZodObject<{
4569
+ variantId: z.ZodString;
4570
+ quantity: z.ZodNumber;
4571
+ disposition: z.ZodEnum<["restock", "write_off"]>;
4572
+ }, "strip", z.ZodTypeAny, {
4573
+ variantId: string;
4574
+ quantity: number;
4575
+ disposition: "restock" | "write_off";
4576
+ }, {
4577
+ variantId: string;
4578
+ quantity: number;
4579
+ disposition: "restock" | "write_off";
4580
+ }>, "many">;
4581
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4582
+ companyId: z.ZodString;
4583
+ } & {
4584
+ returnId: z.ZodString;
4585
+ orderId: z.ZodString;
4586
+ userId: z.ZodString;
4587
+ lines: z.ZodArray<z.ZodObject<{
4588
+ variantId: z.ZodString;
4589
+ quantity: z.ZodNumber;
4590
+ disposition: z.ZodEnum<["restock", "write_off"]>;
4591
+ }, "strip", z.ZodTypeAny, {
4592
+ variantId: string;
4593
+ quantity: number;
4594
+ disposition: "restock" | "write_off";
4595
+ }, {
4596
+ variantId: string;
4597
+ quantity: number;
4598
+ disposition: "restock" | "write_off";
4599
+ }>, "many">;
4600
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4601
+ companyId: z.ZodString;
4602
+ } & {
4603
+ returnId: z.ZodString;
4604
+ orderId: z.ZodString;
4605
+ userId: z.ZodString;
4606
+ lines: z.ZodArray<z.ZodObject<{
4607
+ variantId: z.ZodString;
4608
+ quantity: z.ZodNumber;
4609
+ disposition: z.ZodEnum<["restock", "write_off"]>;
4610
+ }, "strip", z.ZodTypeAny, {
4611
+ variantId: string;
4612
+ quantity: number;
4613
+ disposition: "restock" | "write_off";
4614
+ }, {
4615
+ variantId: string;
4616
+ quantity: number;
4617
+ disposition: "restock" | "write_off";
4618
+ }>, "many">;
4619
+ }, z.ZodTypeAny, "passthrough">>;
3781
4620
  "cart.cart.updated": z.ZodObject<{
3782
4621
  companyId: z.ZodString;
3783
4622
  } & {
@@ -4687,7 +5526,7 @@ export type EventPayload<K extends RoutingKey> = z.output<(typeof MESSAGE_SCHEMA
4687
5526
  /** What a producer passes for a routing key (before defaults). */
4688
5527
  export type EventPayloadInput<K extends RoutingKey> = z.input<(typeof MESSAGE_SCHEMAS)[K]>;
4689
5528
  /** Every catalogued routing key. */
4690
- export declare const ALL_ROUTING_KEYS: readonly ("order.audit.recorded" | "payment.audit.recorded" | "shipping.audit.recorded" | "store.audit.recorded" | "auth.audit.recorded" | "gateway.audit.recorded" | "catalog.audit.recorded" | "media.audit.recorded" | "cart.audit.recorded" | "notification.audit.recorded" | "reporting.audit.recorded" | "auth.user.registered" | "auth.user.verified" | "auth.user.password_reset_requested" | "auth.user.password_changed" | "auth.user.email_changed" | "auth.user.deleted" | "auth.user.data_export_requested" | "auth.user.authz_changed" | "auth.company.created" | "auth.company.updated" | "auth.company.suspended" | "auth.company.reactivated" | "auth.company.closed" | "auth.staff.invited" | "auth.staff.joined" | "auth.staff.removed" | "auth.membership.changed" | "auth.role.changed" | "auth.approval.requested" | "auth.approval.approved" | "auth.approval.rejected" | "auth.approval.expired" | "auth.approval.executed" | "auth.approval.failed" | "cart.cart.updated" | "catalog.product.created" | "catalog.product.updated" | "catalog.product.deleted" | "catalog.category.updated" | "catalog.inventory.adjusted" | "catalog.inventory.low_stock" | "gateway.security.access_denied" | "gateway.security.rate_limited" | "gateway.security.bad_signature" | "media.file.uploaded" | "media.file.processed" | "notification.send.requested" | "notification.email.suppressed" | "order.security.socket_rejected" | "payment.security.socket_rejected" | "shipping.security.socket_rejected" | "store.security.socket_rejected" | "auth.security.socket_rejected" | "gateway.security.socket_rejected" | "catalog.security.socket_rejected" | "media.security.socket_rejected" | "cart.security.socket_rejected" | "notification.security.socket_rejected" | "reporting.security.socket_rejected" | "order.order.created" | "order.order.paid" | "order.order.status_changed" | "order.order.shipped" | "order.order.delivered" | "order.order.cancelled" | "order.order.expired" | "order.order.refund_requested" | "order.issue.opened" | "order.issue.replied" | "order.issue.escalated" | "order.issue.resolved" | "payment.payment.initiated" | "payment.payment.succeeded" | "payment.payment.failed" | "payment.payment.expired" | "payment.refund.completed" | "payment.refund.failed" | "payment.billing.state_changed" | "payment.payout.scheduled" | "payment.payout.paid" | "payment.payout.failed" | "promotion.coupon.redeemed" | "promotion.campaign.started" | "promotion.campaign.ended" | "auth.security.login_succeeded" | "auth.security.login_failed" | "auth.security.otp_failed" | "auth.security.step_up" | "auth.security.account_locked" | "auth.security.sessions_revoked" | "auth.security.session_revoked" | "auth.security.role_changed" | "auth.security.login_risky" | "auth.security.login_unrecognized" | "auth.security.alert_raised" | "shipping.shipment.created" | "shipping.shipment.dispatched" | "shipping.shipment.delivered" | "shipping.shipment.failed" | "store.shop.provisioned" | "store.settings.changed" | "store.theme.published" | "store.domain.changed" | "store.domain.verified" | "store.domain.failed" | "usage.sms.sent" | "usage.delivery.booked")[];
5529
+ export declare const ALL_ROUTING_KEYS: readonly ("order.audit.recorded" | "payment.audit.recorded" | "shipping.audit.recorded" | "store.audit.recorded" | "auth.audit.recorded" | "gateway.audit.recorded" | "catalog.audit.recorded" | "media.audit.recorded" | "cart.audit.recorded" | "notification.audit.recorded" | "reporting.audit.recorded" | "promotion.audit.recorded" | "engagement.audit.recorded" | "auth.user.registered" | "auth.user.verified" | "auth.user.password_reset_requested" | "auth.user.password_changed" | "auth.user.email_changed" | "auth.user.deleted" | "auth.user.data_export_requested" | "auth.user.authz_changed" | "auth.company.created" | "auth.company.updated" | "auth.company.suspended" | "auth.company.reactivated" | "auth.company.closed" | "auth.staff.invited" | "auth.staff.joined" | "auth.staff.removed" | "auth.membership.changed" | "auth.role.changed" | "auth.approval.requested" | "auth.approval.approved" | "auth.approval.rejected" | "auth.approval.expired" | "auth.approval.executed" | "auth.approval.failed" | "cart.cart.updated" | "catalog.product.created" | "catalog.product.updated" | "catalog.product.deleted" | "catalog.category.updated" | "catalog.inventory.adjusted" | "catalog.inventory.low_stock" | "engagement.customer.created" | "engagement.cart.abandoned" | "engagement.consent.changed" | "engagement.report.decided" | "engagement.review.created" | "engagement.review.hidden" | "engagement.review.rating_changed" | "gateway.security.access_denied" | "gateway.security.rate_limited" | "gateway.security.bad_signature" | "media.file.uploaded" | "media.file.processed" | "notification.send.requested" | "notification.email.suppressed" | "notification.email.unsubscribed" | "order.security.socket_rejected" | "payment.security.socket_rejected" | "shipping.security.socket_rejected" | "store.security.socket_rejected" | "auth.security.socket_rejected" | "gateway.security.socket_rejected" | "catalog.security.socket_rejected" | "media.security.socket_rejected" | "cart.security.socket_rejected" | "notification.security.socket_rejected" | "reporting.security.socket_rejected" | "promotion.security.socket_rejected" | "engagement.security.socket_rejected" | "order.order.created" | "order.order.paid" | "order.order.status_changed" | "order.order.shipped" | "order.order.delivered" | "order.order.cancelled" | "order.order.expired" | "order.order.refund_requested" | "order.issue.opened" | "order.issue.replied" | "order.issue.escalated" | "order.issue.resolved" | "order.issue.decided" | "order.return.requested" | "order.return.approved" | "order.return.rejected" | "order.return.received" | "payment.payment.initiated" | "payment.payment.succeeded" | "payment.payment.failed" | "payment.payment.expired" | "payment.refund.completed" | "payment.refund.failed" | "payment.billing.state_changed" | "payment.payout.scheduled" | "payment.payout.paid" | "payment.payout.failed" | "promotion.coupon.redeemed" | "promotion.campaign.started" | "promotion.campaign.ended" | "auth.security.login_succeeded" | "auth.security.login_failed" | "auth.security.otp_failed" | "auth.security.step_up" | "auth.security.account_locked" | "auth.security.sessions_revoked" | "auth.security.session_revoked" | "auth.security.role_changed" | "auth.security.login_risky" | "auth.security.login_unrecognized" | "auth.security.alert_raised" | "shipping.shipment.created" | "shipping.shipment.dispatched" | "shipping.shipment.delivered" | "shipping.shipment.failed" | "store.shop.provisioned" | "store.settings.changed" | "store.theme.published" | "store.domain.changed" | "store.domain.verified" | "store.domain.failed" | "usage.sms.sent" | "usage.delivery.booked")[];
4691
5530
  /**
4692
5531
  * True when `key` is in the catalogue.
4693
5532
  *