@heavybit/ecommerce-contracts 0.0.0-stage → 0.2.1

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 (130) hide show
  1. package/README.md +158 -2
  2. package/dist/cjs/app.js +38 -0
  3. package/dist/cjs/app.js.map +1 -0
  4. package/dist/cjs/bindings.js +127 -0
  5. package/dist/cjs/bindings.js.map +1 -0
  6. package/dist/cjs/events/audit.js +26 -0
  7. package/dist/cjs/events/audit.js.map +1 -0
  8. package/dist/cjs/events/auth.js +68 -0
  9. package/dist/cjs/events/auth.js.map +1 -0
  10. package/dist/cjs/events/base.js +99 -0
  11. package/dist/cjs/events/base.js.map +1 -0
  12. package/dist/cjs/events/cart.js +15 -0
  13. package/dist/cjs/events/cart.js.map +1 -0
  14. package/dist/cjs/events/catalog.js +24 -0
  15. package/dist/cjs/events/catalog.js.map +1 -0
  16. package/dist/cjs/events/gateway.js +24 -0
  17. package/dist/cjs/events/gateway.js.map +1 -0
  18. package/dist/cjs/events/index.js +131 -0
  19. package/dist/cjs/events/index.js.map +1 -0
  20. package/dist/cjs/events/media.js +17 -0
  21. package/dist/cjs/events/media.js.map +1 -0
  22. package/dist/cjs/events/notification.js +43 -0
  23. package/dist/cjs/events/notification.js.map +1 -0
  24. package/dist/cjs/events/order.js +45 -0
  25. package/dist/cjs/events/order.js.map +1 -0
  26. package/dist/cjs/events/payment.js +34 -0
  27. package/dist/cjs/events/payment.js.map +1 -0
  28. package/dist/cjs/events/security.js +36 -0
  29. package/dist/cjs/events/security.js.map +1 -0
  30. package/dist/cjs/events/shipping.js +25 -0
  31. package/dist/cjs/events/shipping.js.map +1 -0
  32. package/dist/cjs/events/store.js +25 -0
  33. package/dist/cjs/events/store.js.map +1 -0
  34. package/dist/cjs/events/usage.js +17 -0
  35. package/dist/cjs/events/usage.js.map +1 -0
  36. package/dist/cjs/identity.js +50 -0
  37. package/dist/cjs/identity.js.map +1 -0
  38. package/dist/cjs/index.js +27 -0
  39. package/dist/cjs/index.js.map +1 -0
  40. package/dist/cjs/package.json +1 -0
  41. package/dist/cjs/permissions.js +10 -0
  42. package/dist/cjs/permissions.js.map +1 -0
  43. package/dist/cjs/scopes.js +57 -0
  44. package/dist/cjs/scopes.js.map +1 -0
  45. package/dist/esm/app.js +35 -0
  46. package/dist/esm/app.js.map +1 -0
  47. package/dist/esm/bindings.js +115 -0
  48. package/dist/esm/bindings.js.map +1 -0
  49. package/dist/esm/events/audit.js +23 -0
  50. package/dist/esm/events/audit.js.map +1 -0
  51. package/dist/esm/events/auth.js +65 -0
  52. package/dist/esm/events/auth.js.map +1 -0
  53. package/dist/esm/events/base.js +90 -0
  54. package/dist/esm/events/base.js.map +1 -0
  55. package/dist/esm/events/cart.js +12 -0
  56. package/dist/esm/events/cart.js.map +1 -0
  57. package/dist/esm/events/catalog.js +21 -0
  58. package/dist/esm/events/catalog.js.map +1 -0
  59. package/dist/esm/events/gateway.js +21 -0
  60. package/dist/esm/events/gateway.js.map +1 -0
  61. package/dist/esm/events/index.js +100 -0
  62. package/dist/esm/events/index.js.map +1 -0
  63. package/dist/esm/events/media.js +14 -0
  64. package/dist/esm/events/media.js.map +1 -0
  65. package/dist/esm/events/notification.js +40 -0
  66. package/dist/esm/events/notification.js.map +1 -0
  67. package/dist/esm/events/order.js +42 -0
  68. package/dist/esm/events/order.js.map +1 -0
  69. package/dist/esm/events/payment.js +31 -0
  70. package/dist/esm/events/payment.js.map +1 -0
  71. package/dist/esm/events/security.js +33 -0
  72. package/dist/esm/events/security.js.map +1 -0
  73. package/dist/esm/events/shipping.js +22 -0
  74. package/dist/esm/events/shipping.js.map +1 -0
  75. package/dist/esm/events/store.js +22 -0
  76. package/dist/esm/events/store.js.map +1 -0
  77. package/dist/esm/events/usage.js +14 -0
  78. package/dist/esm/events/usage.js.map +1 -0
  79. package/dist/esm/identity.js +47 -0
  80. package/dist/esm/identity.js.map +1 -0
  81. package/dist/esm/index.js +11 -0
  82. package/dist/esm/index.js.map +1 -0
  83. package/dist/esm/package.json +1 -0
  84. package/dist/esm/permissions.js +7 -0
  85. package/dist/esm/permissions.js.map +1 -0
  86. package/dist/esm/scopes.js +52 -0
  87. package/dist/esm/scopes.js.map +1 -0
  88. package/dist/types/app.d.ts +40 -0
  89. package/dist/types/app.d.ts.map +1 -0
  90. package/dist/types/bindings.d.ts +88 -0
  91. package/dist/types/bindings.d.ts.map +1 -0
  92. package/dist/types/events/audit.d.ts +86 -0
  93. package/dist/types/events/audit.d.ts.map +1 -0
  94. package/dist/types/events/auth.d.ts +357 -0
  95. package/dist/types/events/auth.d.ts.map +1 -0
  96. package/dist/types/events/base.d.ts +108 -0
  97. package/dist/types/events/base.d.ts.map +1 -0
  98. package/dist/types/events/cart.d.ts +37 -0
  99. package/dist/types/events/cart.d.ts.map +1 -0
  100. package/dist/types/events/catalog.d.ts +126 -0
  101. package/dist/types/events/catalog.d.ts.map +1 -0
  102. package/dist/types/events/gateway.d.ts +77 -0
  103. package/dist/types/events/gateway.d.ts.map +1 -0
  104. package/dist/types/events/index.d.ts +4333 -0
  105. package/dist/types/events/index.d.ts.map +1 -0
  106. package/dist/types/events/media.d.ts +51 -0
  107. package/dist/types/events/media.d.ts.map +1 -0
  108. package/dist/types/events/notification.d.ts +270 -0
  109. package/dist/types/events/notification.d.ts.map +1 -0
  110. package/dist/types/events/order.d.ts +289 -0
  111. package/dist/types/events/order.d.ts.map +1 -0
  112. package/dist/types/events/payment.d.ts +228 -0
  113. package/dist/types/events/payment.d.ts.map +1 -0
  114. package/dist/types/events/security.d.ts +201 -0
  115. package/dist/types/events/security.d.ts.map +1 -0
  116. package/dist/types/events/shipping.d.ts +91 -0
  117. package/dist/types/events/shipping.d.ts.map +1 -0
  118. package/dist/types/events/store.d.ts +134 -0
  119. package/dist/types/events/store.d.ts.map +1 -0
  120. package/dist/types/events/usage.d.ts +59 -0
  121. package/dist/types/events/usage.d.ts.map +1 -0
  122. package/dist/types/identity.d.ts +22 -0
  123. package/dist/types/identity.d.ts.map +1 -0
  124. package/dist/types/index.d.ts +11 -0
  125. package/dist/types/index.d.ts.map +1 -0
  126. package/dist/types/permissions.d.ts +7 -0
  127. package/dist/types/permissions.d.ts.map +1 -0
  128. package/dist/types/scopes.d.ts +57 -0
  129. package/dist/types/scopes.d.ts.map +1 -0
  130. package/package.json +44 -4
@@ -0,0 +1,4333 @@
1
+ /**
2
+ * The e-commerce event catalogue (P1, schema version 1). One Zod payload schema per routing key, shared
3
+ * by producers (`enqueueOutbox`) and consumers (`MessageConsumer.subscribe({ schema })`), so they cannot drift.
4
+ * P2/P3 events are added by their phases; a breaking payload change adds version 2 next to version 1 (MS-4).
5
+ */
6
+ import type { z } from '@heavybit/shared-lib';
7
+ export * from './base.js';
8
+ export { AUDIT_RECORDED_KEYS, AUDIT_RECORDED_PATTERN, auditRecordedSchema } from './audit.js';
9
+ export { COMMAND_EXCHANGE, EVENT_EXCHANGE, NOTIFICATION_COMMAND_KEYS, SOCKET_REJECTED_KEYS, SOCKET_REJECTED_PATTERN, notificationSendRequestedSchema, socketRejectedSchema, } from './notification.js';
10
+ /**
11
+ * Every routing key, grouped as `{domain}.{entity}.{action}`.
12
+ *
13
+ * @example enqueueOutbox(tx, ROUTING_KEYS.order.order.paid, payload)
14
+ * @example ROUTING_KEYS.audit.recorded.order === 'order.audit.recorded'
15
+ */
16
+ export declare const ROUTING_KEYS: Readonly<{
17
+ readonly auth: {
18
+ readonly security: {
19
+ readonly loginSucceeded: "auth.security.login_succeeded";
20
+ readonly loginFailed: "auth.security.login_failed";
21
+ readonly otpFailed: "auth.security.otp_failed";
22
+ readonly stepUp: "auth.security.step_up";
23
+ readonly accountLocked: "auth.security.account_locked";
24
+ readonly sessionsRevoked: "auth.security.sessions_revoked";
25
+ readonly roleChanged: "auth.security.role_changed";
26
+ readonly loginRisky: "auth.security.login_risky";
27
+ readonly loginUnrecognized: "auth.security.login_unrecognized";
28
+ readonly alertRaised: "auth.security.alert_raised";
29
+ };
30
+ readonly user: {
31
+ readonly registered: "auth.user.registered";
32
+ readonly verified: "auth.user.verified";
33
+ readonly passwordResetRequested: "auth.user.password_reset_requested";
34
+ readonly passwordChanged: "auth.user.password_changed";
35
+ readonly emailChanged: "auth.user.email_changed";
36
+ readonly deleted: "auth.user.deleted";
37
+ readonly authzChanged: "auth.user.authz_changed";
38
+ };
39
+ readonly company: {
40
+ readonly created: "auth.company.created";
41
+ readonly updated: "auth.company.updated";
42
+ readonly suspended: "auth.company.suspended";
43
+ readonly reactivated: "auth.company.reactivated";
44
+ readonly closed: "auth.company.closed";
45
+ };
46
+ readonly staff: {
47
+ readonly invited: "auth.staff.invited";
48
+ readonly joined: "auth.staff.joined";
49
+ readonly removed: "auth.staff.removed";
50
+ };
51
+ readonly membership: {
52
+ readonly changed: "auth.membership.changed";
53
+ };
54
+ readonly role: {
55
+ readonly changed: "auth.role.changed";
56
+ };
57
+ readonly approval: {
58
+ readonly requested: "auth.approval.requested";
59
+ readonly approved: "auth.approval.approved";
60
+ readonly rejected: "auth.approval.rejected";
61
+ readonly expired: "auth.approval.expired";
62
+ readonly executed: "auth.approval.executed";
63
+ readonly failed: "auth.approval.failed";
64
+ };
65
+ };
66
+ readonly gateway: {
67
+ readonly security: {
68
+ readonly accessDenied: "gateway.security.access_denied";
69
+ readonly rateLimited: "gateway.security.rate_limited";
70
+ readonly badSignature: "gateway.security.bad_signature";
71
+ };
72
+ };
73
+ readonly store: {
74
+ readonly shop: {
75
+ readonly provisioned: "store.shop.provisioned";
76
+ };
77
+ readonly settings: {
78
+ readonly changed: "store.settings.changed";
79
+ };
80
+ readonly theme: {
81
+ readonly published: "store.theme.published";
82
+ };
83
+ readonly domain: {
84
+ readonly changed: "store.domain.changed";
85
+ readonly verified: "store.domain.verified";
86
+ readonly failed: "store.domain.failed";
87
+ };
88
+ };
89
+ readonly catalog: {
90
+ readonly product: {
91
+ readonly created: "catalog.product.created";
92
+ readonly updated: "catalog.product.updated";
93
+ readonly deleted: "catalog.product.deleted";
94
+ };
95
+ readonly category: {
96
+ readonly updated: "catalog.category.updated";
97
+ };
98
+ readonly inventory: {
99
+ readonly adjusted: "catalog.inventory.adjusted";
100
+ readonly lowStock: "catalog.inventory.low_stock";
101
+ };
102
+ };
103
+ readonly media: {
104
+ readonly file: {
105
+ readonly uploaded: "media.file.uploaded";
106
+ readonly processed: "media.file.processed";
107
+ };
108
+ };
109
+ readonly cart: {
110
+ readonly cart: {
111
+ readonly updated: "cart.cart.updated";
112
+ };
113
+ };
114
+ readonly order: {
115
+ readonly order: {
116
+ readonly created: "order.order.created";
117
+ readonly paid: "order.order.paid";
118
+ readonly statusChanged: "order.order.status_changed";
119
+ readonly shipped: "order.order.shipped";
120
+ readonly delivered: "order.order.delivered";
121
+ readonly cancelled: "order.order.cancelled";
122
+ readonly expired: "order.order.expired";
123
+ readonly refundRequested: "order.order.refund_requested";
124
+ };
125
+ readonly issue: {
126
+ readonly opened: "order.issue.opened";
127
+ readonly replied: "order.issue.replied";
128
+ readonly escalated: "order.issue.escalated";
129
+ readonly resolved: "order.issue.resolved";
130
+ };
131
+ };
132
+ readonly payment: {
133
+ readonly payment: {
134
+ readonly initiated: "payment.payment.initiated";
135
+ readonly succeeded: "payment.payment.succeeded";
136
+ readonly failed: "payment.payment.failed";
137
+ readonly expired: "payment.payment.expired";
138
+ };
139
+ readonly refund: {
140
+ readonly completed: "payment.refund.completed";
141
+ readonly failed: "payment.refund.failed";
142
+ };
143
+ readonly payout: {
144
+ readonly scheduled: "payment.payout.scheduled";
145
+ readonly paid: "payment.payout.paid";
146
+ readonly failed: "payment.payout.failed";
147
+ };
148
+ };
149
+ readonly shipping: {
150
+ readonly shipment: {
151
+ readonly created: "shipping.shipment.created";
152
+ readonly dispatched: "shipping.shipment.dispatched";
153
+ readonly delivered: "shipping.shipment.delivered";
154
+ readonly failed: "shipping.shipment.failed";
155
+ };
156
+ };
157
+ readonly usage: {
158
+ readonly sms: {
159
+ readonly sent: "usage.sms.sent";
160
+ };
161
+ readonly delivery: {
162
+ readonly booked: "usage.delivery.booked";
163
+ };
164
+ };
165
+ readonly notification: {
166
+ readonly send: {
167
+ readonly requested: "notification.send.requested";
168
+ };
169
+ };
170
+ readonly audit: {
171
+ readonly recorded: {
172
+ readonly order: "order.audit.recorded";
173
+ readonly payment: "payment.audit.recorded";
174
+ readonly shipping: "shipping.audit.recorded";
175
+ readonly store: "store.audit.recorded";
176
+ readonly auth: "auth.audit.recorded";
177
+ readonly gateway: "gateway.audit.recorded";
178
+ readonly catalog: "catalog.audit.recorded";
179
+ readonly media: "media.audit.recorded";
180
+ readonly cart: "cart.audit.recorded";
181
+ readonly notification: "notification.audit.recorded";
182
+ readonly reporting: "reporting.audit.recorded";
183
+ };
184
+ readonly pattern: "*.audit.recorded";
185
+ };
186
+ readonly socketRejected: {
187
+ readonly keys: {
188
+ readonly order: "order.security.socket_rejected";
189
+ readonly payment: "payment.security.socket_rejected";
190
+ readonly shipping: "shipping.security.socket_rejected";
191
+ readonly store: "store.security.socket_rejected";
192
+ readonly auth: "auth.security.socket_rejected";
193
+ readonly gateway: "gateway.security.socket_rejected";
194
+ readonly catalog: "catalog.security.socket_rejected";
195
+ readonly media: "media.security.socket_rejected";
196
+ readonly cart: "cart.security.socket_rejected";
197
+ readonly notification: "notification.security.socket_rejected";
198
+ readonly reporting: "reporting.security.socket_rejected";
199
+ };
200
+ readonly pattern: "*.security.socket_rejected";
201
+ };
202
+ }>;
203
+ /** Payload schemas of every event (topic exchange `events`). */
204
+ export declare const EVENT_SCHEMAS: Readonly<{
205
+ "order.security.socket_rejected": z.ZodObject<{
206
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
+ } & {
208
+ userId: z.ZodNullable<z.ZodString>;
209
+ namespace: z.ZodString;
210
+ reason: z.ZodString;
211
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
212
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
+ } & {
214
+ userId: z.ZodNullable<z.ZodString>;
215
+ namespace: z.ZodString;
216
+ reason: z.ZodString;
217
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
218
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ } & {
220
+ userId: z.ZodNullable<z.ZodString>;
221
+ namespace: z.ZodString;
222
+ reason: z.ZodString;
223
+ }, z.ZodTypeAny, "passthrough">>;
224
+ "payment.security.socket_rejected": z.ZodObject<{
225
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ } & {
227
+ userId: z.ZodNullable<z.ZodString>;
228
+ namespace: z.ZodString;
229
+ reason: z.ZodString;
230
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
231
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ } & {
233
+ userId: z.ZodNullable<z.ZodString>;
234
+ namespace: z.ZodString;
235
+ reason: z.ZodString;
236
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
237
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
+ } & {
239
+ userId: z.ZodNullable<z.ZodString>;
240
+ namespace: z.ZodString;
241
+ reason: z.ZodString;
242
+ }, z.ZodTypeAny, "passthrough">>;
243
+ "shipping.security.socket_rejected": z.ZodObject<{
244
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
+ } & {
246
+ userId: z.ZodNullable<z.ZodString>;
247
+ namespace: z.ZodString;
248
+ reason: z.ZodString;
249
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
250
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ } & {
252
+ userId: z.ZodNullable<z.ZodString>;
253
+ namespace: z.ZodString;
254
+ reason: z.ZodString;
255
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
256
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ } & {
258
+ userId: z.ZodNullable<z.ZodString>;
259
+ namespace: z.ZodString;
260
+ reason: z.ZodString;
261
+ }, z.ZodTypeAny, "passthrough">>;
262
+ "store.security.socket_rejected": z.ZodObject<{
263
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
+ } & {
265
+ userId: z.ZodNullable<z.ZodString>;
266
+ namespace: z.ZodString;
267
+ reason: z.ZodString;
268
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
269
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ } & {
271
+ userId: z.ZodNullable<z.ZodString>;
272
+ namespace: z.ZodString;
273
+ reason: z.ZodString;
274
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
275
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
+ } & {
277
+ userId: z.ZodNullable<z.ZodString>;
278
+ namespace: z.ZodString;
279
+ reason: z.ZodString;
280
+ }, z.ZodTypeAny, "passthrough">>;
281
+ "auth.security.socket_rejected": z.ZodObject<{
282
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
+ } & {
284
+ userId: z.ZodNullable<z.ZodString>;
285
+ namespace: z.ZodString;
286
+ reason: z.ZodString;
287
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
288
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ } & {
290
+ userId: z.ZodNullable<z.ZodString>;
291
+ namespace: z.ZodString;
292
+ reason: z.ZodString;
293
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
294
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
+ } & {
296
+ userId: z.ZodNullable<z.ZodString>;
297
+ namespace: z.ZodString;
298
+ reason: z.ZodString;
299
+ }, z.ZodTypeAny, "passthrough">>;
300
+ "gateway.security.socket_rejected": z.ZodObject<{
301
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ } & {
303
+ userId: z.ZodNullable<z.ZodString>;
304
+ namespace: z.ZodString;
305
+ reason: z.ZodString;
306
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
307
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ } & {
309
+ userId: z.ZodNullable<z.ZodString>;
310
+ namespace: z.ZodString;
311
+ reason: z.ZodString;
312
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
313
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ } & {
315
+ userId: z.ZodNullable<z.ZodString>;
316
+ namespace: z.ZodString;
317
+ reason: z.ZodString;
318
+ }, z.ZodTypeAny, "passthrough">>;
319
+ "catalog.security.socket_rejected": z.ZodObject<{
320
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
+ } & {
322
+ userId: z.ZodNullable<z.ZodString>;
323
+ namespace: z.ZodString;
324
+ reason: z.ZodString;
325
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
326
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
+ } & {
328
+ userId: z.ZodNullable<z.ZodString>;
329
+ namespace: z.ZodString;
330
+ reason: z.ZodString;
331
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
332
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
+ } & {
334
+ userId: z.ZodNullable<z.ZodString>;
335
+ namespace: z.ZodString;
336
+ reason: z.ZodString;
337
+ }, z.ZodTypeAny, "passthrough">>;
338
+ "media.security.socket_rejected": z.ZodObject<{
339
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ } & {
341
+ userId: z.ZodNullable<z.ZodString>;
342
+ namespace: z.ZodString;
343
+ reason: z.ZodString;
344
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
345
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ } & {
347
+ userId: z.ZodNullable<z.ZodString>;
348
+ namespace: z.ZodString;
349
+ reason: z.ZodString;
350
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
351
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ } & {
353
+ userId: z.ZodNullable<z.ZodString>;
354
+ namespace: z.ZodString;
355
+ reason: z.ZodString;
356
+ }, z.ZodTypeAny, "passthrough">>;
357
+ "cart.security.socket_rejected": z.ZodObject<{
358
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
359
+ } & {
360
+ userId: z.ZodNullable<z.ZodString>;
361
+ namespace: z.ZodString;
362
+ reason: z.ZodString;
363
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
364
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
+ } & {
366
+ userId: z.ZodNullable<z.ZodString>;
367
+ namespace: z.ZodString;
368
+ reason: z.ZodString;
369
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
370
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ } & {
372
+ userId: z.ZodNullable<z.ZodString>;
373
+ namespace: z.ZodString;
374
+ reason: z.ZodString;
375
+ }, z.ZodTypeAny, "passthrough">>;
376
+ "notification.security.socket_rejected": z.ZodObject<{
377
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ } & {
379
+ userId: z.ZodNullable<z.ZodString>;
380
+ namespace: z.ZodString;
381
+ reason: z.ZodString;
382
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
383
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ } & {
385
+ userId: z.ZodNullable<z.ZodString>;
386
+ namespace: z.ZodString;
387
+ reason: z.ZodString;
388
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
389
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
+ } & {
391
+ userId: z.ZodNullable<z.ZodString>;
392
+ namespace: z.ZodString;
393
+ reason: z.ZodString;
394
+ }, z.ZodTypeAny, "passthrough">>;
395
+ "reporting.security.socket_rejected": z.ZodObject<{
396
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
397
+ } & {
398
+ userId: z.ZodNullable<z.ZodString>;
399
+ namespace: z.ZodString;
400
+ reason: z.ZodString;
401
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
402
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
+ } & {
404
+ userId: z.ZodNullable<z.ZodString>;
405
+ namespace: z.ZodString;
406
+ reason: z.ZodString;
407
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
408
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ } & {
410
+ userId: z.ZodNullable<z.ZodString>;
411
+ namespace: z.ZodString;
412
+ reason: z.ZodString;
413
+ }, z.ZodTypeAny, "passthrough">>;
414
+ "order.audit.recorded": z.ZodObject<{
415
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ } & {
417
+ action: z.ZodString;
418
+ entityType: z.ZodString;
419
+ entityId: z.ZodNullable<z.ZodString>;
420
+ outcome: z.ZodEnum<["success", "failure"]>;
421
+ occurredAt: z.ZodString;
422
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
423
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
424
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
+ } & {
426
+ action: z.ZodString;
427
+ entityType: z.ZodString;
428
+ entityId: z.ZodNullable<z.ZodString>;
429
+ outcome: z.ZodEnum<["success", "failure"]>;
430
+ occurredAt: z.ZodString;
431
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
432
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
433
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ } & {
435
+ action: z.ZodString;
436
+ entityType: z.ZodString;
437
+ entityId: z.ZodNullable<z.ZodString>;
438
+ outcome: z.ZodEnum<["success", "failure"]>;
439
+ occurredAt: z.ZodString;
440
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
441
+ }, z.ZodTypeAny, "passthrough">>;
442
+ "payment.audit.recorded": z.ZodObject<{
443
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ } & {
445
+ action: z.ZodString;
446
+ entityType: z.ZodString;
447
+ entityId: z.ZodNullable<z.ZodString>;
448
+ outcome: z.ZodEnum<["success", "failure"]>;
449
+ occurredAt: z.ZodString;
450
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
451
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
452
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
453
+ } & {
454
+ action: z.ZodString;
455
+ entityType: z.ZodString;
456
+ entityId: z.ZodNullable<z.ZodString>;
457
+ outcome: z.ZodEnum<["success", "failure"]>;
458
+ occurredAt: z.ZodString;
459
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
460
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
461
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
+ } & {
463
+ action: z.ZodString;
464
+ entityType: z.ZodString;
465
+ entityId: z.ZodNullable<z.ZodString>;
466
+ outcome: z.ZodEnum<["success", "failure"]>;
467
+ occurredAt: z.ZodString;
468
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
469
+ }, z.ZodTypeAny, "passthrough">>;
470
+ "shipping.audit.recorded": z.ZodObject<{
471
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ } & {
473
+ action: z.ZodString;
474
+ entityType: z.ZodString;
475
+ entityId: z.ZodNullable<z.ZodString>;
476
+ outcome: z.ZodEnum<["success", "failure"]>;
477
+ occurredAt: z.ZodString;
478
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
479
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
480
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
+ } & {
482
+ action: z.ZodString;
483
+ entityType: z.ZodString;
484
+ entityId: z.ZodNullable<z.ZodString>;
485
+ outcome: z.ZodEnum<["success", "failure"]>;
486
+ occurredAt: z.ZodString;
487
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
488
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
489
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ } & {
491
+ action: z.ZodString;
492
+ entityType: z.ZodString;
493
+ entityId: z.ZodNullable<z.ZodString>;
494
+ outcome: z.ZodEnum<["success", "failure"]>;
495
+ occurredAt: z.ZodString;
496
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
497
+ }, z.ZodTypeAny, "passthrough">>;
498
+ "store.audit.recorded": z.ZodObject<{
499
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
500
+ } & {
501
+ action: z.ZodString;
502
+ entityType: z.ZodString;
503
+ entityId: z.ZodNullable<z.ZodString>;
504
+ outcome: z.ZodEnum<["success", "failure"]>;
505
+ occurredAt: z.ZodString;
506
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
507
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
508
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
+ } & {
510
+ action: z.ZodString;
511
+ entityType: z.ZodString;
512
+ entityId: z.ZodNullable<z.ZodString>;
513
+ outcome: z.ZodEnum<["success", "failure"]>;
514
+ occurredAt: z.ZodString;
515
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
516
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
517
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ } & {
519
+ action: z.ZodString;
520
+ entityType: z.ZodString;
521
+ entityId: z.ZodNullable<z.ZodString>;
522
+ outcome: z.ZodEnum<["success", "failure"]>;
523
+ occurredAt: z.ZodString;
524
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
525
+ }, z.ZodTypeAny, "passthrough">>;
526
+ "auth.audit.recorded": z.ZodObject<{
527
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
528
+ } & {
529
+ action: z.ZodString;
530
+ entityType: z.ZodString;
531
+ entityId: z.ZodNullable<z.ZodString>;
532
+ outcome: z.ZodEnum<["success", "failure"]>;
533
+ occurredAt: z.ZodString;
534
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
535
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
536
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
+ } & {
538
+ action: z.ZodString;
539
+ entityType: z.ZodString;
540
+ entityId: z.ZodNullable<z.ZodString>;
541
+ outcome: z.ZodEnum<["success", "failure"]>;
542
+ occurredAt: z.ZodString;
543
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
544
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
545
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
546
+ } & {
547
+ action: z.ZodString;
548
+ entityType: z.ZodString;
549
+ entityId: z.ZodNullable<z.ZodString>;
550
+ outcome: z.ZodEnum<["success", "failure"]>;
551
+ occurredAt: z.ZodString;
552
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
553
+ }, z.ZodTypeAny, "passthrough">>;
554
+ "gateway.audit.recorded": z.ZodObject<{
555
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ } & {
557
+ action: z.ZodString;
558
+ entityType: z.ZodString;
559
+ entityId: z.ZodNullable<z.ZodString>;
560
+ outcome: z.ZodEnum<["success", "failure"]>;
561
+ occurredAt: z.ZodString;
562
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
563
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
564
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
565
+ } & {
566
+ action: z.ZodString;
567
+ entityType: z.ZodString;
568
+ entityId: z.ZodNullable<z.ZodString>;
569
+ outcome: z.ZodEnum<["success", "failure"]>;
570
+ occurredAt: z.ZodString;
571
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
572
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
573
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
+ } & {
575
+ action: z.ZodString;
576
+ entityType: z.ZodString;
577
+ entityId: z.ZodNullable<z.ZodString>;
578
+ outcome: z.ZodEnum<["success", "failure"]>;
579
+ occurredAt: z.ZodString;
580
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
581
+ }, z.ZodTypeAny, "passthrough">>;
582
+ "catalog.audit.recorded": z.ZodObject<{
583
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
+ } & {
585
+ action: z.ZodString;
586
+ entityType: z.ZodString;
587
+ entityId: z.ZodNullable<z.ZodString>;
588
+ outcome: z.ZodEnum<["success", "failure"]>;
589
+ occurredAt: z.ZodString;
590
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
591
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
592
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
+ } & {
594
+ action: z.ZodString;
595
+ entityType: z.ZodString;
596
+ entityId: z.ZodNullable<z.ZodString>;
597
+ outcome: z.ZodEnum<["success", "failure"]>;
598
+ occurredAt: z.ZodString;
599
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
600
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
601
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
+ } & {
603
+ action: z.ZodString;
604
+ entityType: z.ZodString;
605
+ entityId: z.ZodNullable<z.ZodString>;
606
+ outcome: z.ZodEnum<["success", "failure"]>;
607
+ occurredAt: z.ZodString;
608
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
609
+ }, z.ZodTypeAny, "passthrough">>;
610
+ "media.audit.recorded": z.ZodObject<{
611
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
+ } & {
613
+ action: z.ZodString;
614
+ entityType: z.ZodString;
615
+ entityId: z.ZodNullable<z.ZodString>;
616
+ outcome: z.ZodEnum<["success", "failure"]>;
617
+ occurredAt: z.ZodString;
618
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
619
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
620
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
621
+ } & {
622
+ action: z.ZodString;
623
+ entityType: z.ZodString;
624
+ entityId: z.ZodNullable<z.ZodString>;
625
+ outcome: z.ZodEnum<["success", "failure"]>;
626
+ occurredAt: z.ZodString;
627
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
628
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
629
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
630
+ } & {
631
+ action: z.ZodString;
632
+ entityType: z.ZodString;
633
+ entityId: z.ZodNullable<z.ZodString>;
634
+ outcome: z.ZodEnum<["success", "failure"]>;
635
+ occurredAt: z.ZodString;
636
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
637
+ }, z.ZodTypeAny, "passthrough">>;
638
+ "cart.audit.recorded": z.ZodObject<{
639
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ } & {
641
+ action: z.ZodString;
642
+ entityType: z.ZodString;
643
+ entityId: z.ZodNullable<z.ZodString>;
644
+ outcome: z.ZodEnum<["success", "failure"]>;
645
+ occurredAt: z.ZodString;
646
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
647
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
648
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
649
+ } & {
650
+ action: z.ZodString;
651
+ entityType: z.ZodString;
652
+ entityId: z.ZodNullable<z.ZodString>;
653
+ outcome: z.ZodEnum<["success", "failure"]>;
654
+ occurredAt: z.ZodString;
655
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
656
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
657
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
658
+ } & {
659
+ action: z.ZodString;
660
+ entityType: z.ZodString;
661
+ entityId: z.ZodNullable<z.ZodString>;
662
+ outcome: z.ZodEnum<["success", "failure"]>;
663
+ occurredAt: z.ZodString;
664
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
665
+ }, z.ZodTypeAny, "passthrough">>;
666
+ "notification.audit.recorded": z.ZodObject<{
667
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
668
+ } & {
669
+ action: z.ZodString;
670
+ entityType: z.ZodString;
671
+ entityId: z.ZodNullable<z.ZodString>;
672
+ outcome: z.ZodEnum<["success", "failure"]>;
673
+ occurredAt: z.ZodString;
674
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
675
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
676
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
+ } & {
678
+ action: z.ZodString;
679
+ entityType: z.ZodString;
680
+ entityId: z.ZodNullable<z.ZodString>;
681
+ outcome: z.ZodEnum<["success", "failure"]>;
682
+ occurredAt: z.ZodString;
683
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
684
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
685
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
686
+ } & {
687
+ action: z.ZodString;
688
+ entityType: z.ZodString;
689
+ entityId: z.ZodNullable<z.ZodString>;
690
+ outcome: z.ZodEnum<["success", "failure"]>;
691
+ occurredAt: z.ZodString;
692
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
693
+ }, z.ZodTypeAny, "passthrough">>;
694
+ "reporting.audit.recorded": z.ZodObject<{
695
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ } & {
697
+ action: z.ZodString;
698
+ entityType: z.ZodString;
699
+ entityId: z.ZodNullable<z.ZodString>;
700
+ outcome: z.ZodEnum<["success", "failure"]>;
701
+ occurredAt: z.ZodString;
702
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
703
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
704
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ } & {
706
+ action: z.ZodString;
707
+ entityType: z.ZodString;
708
+ entityId: z.ZodNullable<z.ZodString>;
709
+ outcome: z.ZodEnum<["success", "failure"]>;
710
+ occurredAt: z.ZodString;
711
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
712
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
713
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
714
+ } & {
715
+ action: z.ZodString;
716
+ entityType: z.ZodString;
717
+ entityId: z.ZodNullable<z.ZodString>;
718
+ outcome: z.ZodEnum<["success", "failure"]>;
719
+ occurredAt: z.ZodString;
720
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
721
+ }, z.ZodTypeAny, "passthrough">>;
722
+ "usage.sms.sent": z.ZodObject<{
723
+ companyId: z.ZodString;
724
+ } & {
725
+ messageId: z.ZodString;
726
+ segments: z.ZodNumber;
727
+ cost: z.ZodString;
728
+ currency: z.ZodLiteral<"KES">;
729
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
730
+ companyId: z.ZodString;
731
+ } & {
732
+ messageId: z.ZodString;
733
+ segments: z.ZodNumber;
734
+ cost: z.ZodString;
735
+ currency: z.ZodLiteral<"KES">;
736
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
737
+ companyId: z.ZodString;
738
+ } & {
739
+ messageId: z.ZodString;
740
+ segments: z.ZodNumber;
741
+ cost: z.ZodString;
742
+ currency: z.ZodLiteral<"KES">;
743
+ }, z.ZodTypeAny, "passthrough">>;
744
+ "usage.delivery.booked": z.ZodObject<{
745
+ companyId: z.ZodString;
746
+ } & {
747
+ shipmentId: z.ZodString;
748
+ provider: z.ZodString;
749
+ fee: z.ZodString;
750
+ currency: z.ZodLiteral<"KES">;
751
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
752
+ companyId: z.ZodString;
753
+ } & {
754
+ shipmentId: z.ZodString;
755
+ provider: z.ZodString;
756
+ fee: z.ZodString;
757
+ currency: z.ZodLiteral<"KES">;
758
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
759
+ companyId: z.ZodString;
760
+ } & {
761
+ shipmentId: z.ZodString;
762
+ provider: z.ZodString;
763
+ fee: z.ZodString;
764
+ currency: z.ZodLiteral<"KES">;
765
+ }, z.ZodTypeAny, "passthrough">>;
766
+ "shipping.shipment.created": z.ZodObject<{
767
+ companyId: z.ZodString;
768
+ } & {
769
+ method: z.ZodString;
770
+ shipmentId: z.ZodString;
771
+ orderId: z.ZodString;
772
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
773
+ companyId: z.ZodString;
774
+ } & {
775
+ method: z.ZodString;
776
+ shipmentId: z.ZodString;
777
+ orderId: z.ZodString;
778
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
779
+ companyId: z.ZodString;
780
+ } & {
781
+ method: z.ZodString;
782
+ shipmentId: z.ZodString;
783
+ orderId: z.ZodString;
784
+ }, z.ZodTypeAny, "passthrough">>;
785
+ "shipping.shipment.dispatched": z.ZodObject<{
786
+ companyId: z.ZodString;
787
+ } & {
788
+ trackingNumber: z.ZodNullable<z.ZodString>;
789
+ shipmentId: z.ZodString;
790
+ orderId: z.ZodString;
791
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
792
+ companyId: z.ZodString;
793
+ } & {
794
+ trackingNumber: z.ZodNullable<z.ZodString>;
795
+ shipmentId: z.ZodString;
796
+ orderId: z.ZodString;
797
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
798
+ companyId: z.ZodString;
799
+ } & {
800
+ trackingNumber: z.ZodNullable<z.ZodString>;
801
+ shipmentId: z.ZodString;
802
+ orderId: z.ZodString;
803
+ }, z.ZodTypeAny, "passthrough">>;
804
+ "shipping.shipment.delivered": z.ZodObject<{
805
+ companyId: z.ZodString;
806
+ } & {
807
+ deliveredAt: z.ZodString;
808
+ shipmentId: z.ZodString;
809
+ orderId: z.ZodString;
810
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
811
+ companyId: z.ZodString;
812
+ } & {
813
+ deliveredAt: z.ZodString;
814
+ shipmentId: z.ZodString;
815
+ orderId: z.ZodString;
816
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
817
+ companyId: z.ZodString;
818
+ } & {
819
+ deliveredAt: z.ZodString;
820
+ shipmentId: z.ZodString;
821
+ orderId: z.ZodString;
822
+ }, z.ZodTypeAny, "passthrough">>;
823
+ "shipping.shipment.failed": z.ZodObject<{
824
+ companyId: z.ZodString;
825
+ } & {
826
+ reason: z.ZodString;
827
+ shipmentId: z.ZodString;
828
+ orderId: z.ZodString;
829
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
830
+ companyId: z.ZodString;
831
+ } & {
832
+ reason: z.ZodString;
833
+ shipmentId: z.ZodString;
834
+ orderId: z.ZodString;
835
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
836
+ companyId: z.ZodString;
837
+ } & {
838
+ reason: z.ZodString;
839
+ shipmentId: z.ZodString;
840
+ orderId: z.ZodString;
841
+ }, z.ZodTypeAny, "passthrough">>;
842
+ "payment.payment.initiated": z.ZodObject<{
843
+ companyId: z.ZodString;
844
+ } & {
845
+ method: z.ZodString;
846
+ amount: z.ZodString;
847
+ currency: z.ZodLiteral<"KES">;
848
+ paymentId: z.ZodString;
849
+ orderId: z.ZodString;
850
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
851
+ companyId: z.ZodString;
852
+ } & {
853
+ method: z.ZodString;
854
+ amount: z.ZodString;
855
+ currency: z.ZodLiteral<"KES">;
856
+ paymentId: z.ZodString;
857
+ orderId: z.ZodString;
858
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
859
+ companyId: z.ZodString;
860
+ } & {
861
+ method: z.ZodString;
862
+ amount: z.ZodString;
863
+ currency: z.ZodLiteral<"KES">;
864
+ paymentId: z.ZodString;
865
+ orderId: z.ZodString;
866
+ }, z.ZodTypeAny, "passthrough">>;
867
+ "payment.payment.succeeded": z.ZodObject<{
868
+ companyId: z.ZodString;
869
+ } & {
870
+ providerRef: z.ZodString;
871
+ paidAt: z.ZodString;
872
+ amount: z.ZodString;
873
+ currency: z.ZodLiteral<"KES">;
874
+ paymentId: z.ZodString;
875
+ orderId: z.ZodString;
876
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
877
+ companyId: z.ZodString;
878
+ } & {
879
+ providerRef: z.ZodString;
880
+ paidAt: z.ZodString;
881
+ amount: z.ZodString;
882
+ currency: z.ZodLiteral<"KES">;
883
+ paymentId: z.ZodString;
884
+ orderId: z.ZodString;
885
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
886
+ companyId: z.ZodString;
887
+ } & {
888
+ providerRef: z.ZodString;
889
+ paidAt: z.ZodString;
890
+ amount: z.ZodString;
891
+ currency: z.ZodLiteral<"KES">;
892
+ paymentId: z.ZodString;
893
+ orderId: z.ZodString;
894
+ }, z.ZodTypeAny, "passthrough">>;
895
+ "payment.payment.failed": z.ZodObject<{
896
+ companyId: z.ZodString;
897
+ } & {
898
+ paymentId: z.ZodString;
899
+ orderId: z.ZodString;
900
+ reason: z.ZodString;
901
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
902
+ companyId: z.ZodString;
903
+ } & {
904
+ paymentId: z.ZodString;
905
+ orderId: z.ZodString;
906
+ reason: z.ZodString;
907
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
908
+ companyId: z.ZodString;
909
+ } & {
910
+ paymentId: z.ZodString;
911
+ orderId: z.ZodString;
912
+ reason: z.ZodString;
913
+ }, z.ZodTypeAny, "passthrough">>;
914
+ "payment.payment.expired": z.ZodObject<{
915
+ companyId: z.ZodString;
916
+ } & {
917
+ paymentId: z.ZodString;
918
+ orderId: z.ZodString;
919
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
920
+ companyId: z.ZodString;
921
+ } & {
922
+ paymentId: z.ZodString;
923
+ orderId: z.ZodString;
924
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
925
+ companyId: z.ZodString;
926
+ } & {
927
+ paymentId: z.ZodString;
928
+ orderId: z.ZodString;
929
+ }, z.ZodTypeAny, "passthrough">>;
930
+ "payment.refund.completed": z.ZodObject<{
931
+ companyId: z.ZodString;
932
+ } & {
933
+ completedAt: z.ZodString;
934
+ amount: z.ZodString;
935
+ currency: z.ZodLiteral<"KES">;
936
+ refundId: z.ZodString;
937
+ orderId: z.ZodString;
938
+ paymentId: z.ZodString;
939
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
940
+ companyId: z.ZodString;
941
+ } & {
942
+ completedAt: z.ZodString;
943
+ amount: z.ZodString;
944
+ currency: z.ZodLiteral<"KES">;
945
+ refundId: z.ZodString;
946
+ orderId: z.ZodString;
947
+ paymentId: z.ZodString;
948
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
949
+ companyId: z.ZodString;
950
+ } & {
951
+ completedAt: z.ZodString;
952
+ amount: z.ZodString;
953
+ currency: z.ZodLiteral<"KES">;
954
+ refundId: z.ZodString;
955
+ orderId: z.ZodString;
956
+ paymentId: z.ZodString;
957
+ }, z.ZodTypeAny, "passthrough">>;
958
+ "payment.refund.failed": z.ZodObject<{
959
+ companyId: z.ZodString;
960
+ } & {
961
+ refundId: z.ZodString;
962
+ orderId: z.ZodString;
963
+ reason: z.ZodString;
964
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
965
+ companyId: z.ZodString;
966
+ } & {
967
+ refundId: z.ZodString;
968
+ orderId: z.ZodString;
969
+ reason: z.ZodString;
970
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
971
+ companyId: z.ZodString;
972
+ } & {
973
+ refundId: z.ZodString;
974
+ orderId: z.ZodString;
975
+ reason: z.ZodString;
976
+ }, z.ZodTypeAny, "passthrough">>;
977
+ "payment.payout.scheduled": z.ZodObject<{
978
+ companyId: z.ZodString;
979
+ } & {
980
+ scheduledFor: z.ZodString;
981
+ amount: z.ZodString;
982
+ currency: z.ZodLiteral<"KES">;
983
+ payoutId: z.ZodString;
984
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
985
+ companyId: z.ZodString;
986
+ } & {
987
+ scheduledFor: z.ZodString;
988
+ amount: z.ZodString;
989
+ currency: z.ZodLiteral<"KES">;
990
+ payoutId: z.ZodString;
991
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
992
+ companyId: z.ZodString;
993
+ } & {
994
+ scheduledFor: z.ZodString;
995
+ amount: z.ZodString;
996
+ currency: z.ZodLiteral<"KES">;
997
+ payoutId: z.ZodString;
998
+ }, z.ZodTypeAny, "passthrough">>;
999
+ "payment.payout.paid": z.ZodObject<{
1000
+ companyId: z.ZodString;
1001
+ } & {
1002
+ providerRef: z.ZodString;
1003
+ paidAt: z.ZodString;
1004
+ amount: z.ZodString;
1005
+ currency: z.ZodLiteral<"KES">;
1006
+ payoutId: z.ZodString;
1007
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1008
+ companyId: z.ZodString;
1009
+ } & {
1010
+ providerRef: z.ZodString;
1011
+ paidAt: z.ZodString;
1012
+ amount: z.ZodString;
1013
+ currency: z.ZodLiteral<"KES">;
1014
+ payoutId: z.ZodString;
1015
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1016
+ companyId: z.ZodString;
1017
+ } & {
1018
+ providerRef: z.ZodString;
1019
+ paidAt: z.ZodString;
1020
+ amount: z.ZodString;
1021
+ currency: z.ZodLiteral<"KES">;
1022
+ payoutId: z.ZodString;
1023
+ }, z.ZodTypeAny, "passthrough">>;
1024
+ "payment.payout.failed": z.ZodObject<{
1025
+ companyId: z.ZodString;
1026
+ } & {
1027
+ reason: z.ZodString;
1028
+ amount: z.ZodString;
1029
+ currency: z.ZodLiteral<"KES">;
1030
+ payoutId: z.ZodString;
1031
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1032
+ companyId: z.ZodString;
1033
+ } & {
1034
+ reason: z.ZodString;
1035
+ amount: z.ZodString;
1036
+ currency: z.ZodLiteral<"KES">;
1037
+ payoutId: z.ZodString;
1038
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1039
+ companyId: z.ZodString;
1040
+ } & {
1041
+ reason: z.ZodString;
1042
+ amount: z.ZodString;
1043
+ currency: z.ZodLiteral<"KES">;
1044
+ payoutId: z.ZodString;
1045
+ }, z.ZodTypeAny, "passthrough">>;
1046
+ "order.order.created": z.ZodObject<{
1047
+ companyId: z.ZodString;
1048
+ } & {
1049
+ userId: z.ZodString;
1050
+ grandTotal: z.ZodString;
1051
+ currency: z.ZodLiteral<"KES">;
1052
+ orderId: z.ZodString;
1053
+ orderNumber: z.ZodString;
1054
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1055
+ companyId: z.ZodString;
1056
+ } & {
1057
+ userId: z.ZodString;
1058
+ grandTotal: z.ZodString;
1059
+ currency: z.ZodLiteral<"KES">;
1060
+ orderId: z.ZodString;
1061
+ orderNumber: z.ZodString;
1062
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1063
+ companyId: z.ZodString;
1064
+ } & {
1065
+ userId: z.ZodString;
1066
+ grandTotal: z.ZodString;
1067
+ currency: z.ZodLiteral<"KES">;
1068
+ orderId: z.ZodString;
1069
+ orderNumber: z.ZodString;
1070
+ }, z.ZodTypeAny, "passthrough">>;
1071
+ "order.order.paid": z.ZodObject<{
1072
+ companyId: z.ZodString;
1073
+ } & {
1074
+ userId: z.ZodString;
1075
+ grandTotal: z.ZodString;
1076
+ currency: z.ZodLiteral<"KES">;
1077
+ paidAt: z.ZodString;
1078
+ orderId: z.ZodString;
1079
+ orderNumber: z.ZodString;
1080
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1081
+ companyId: z.ZodString;
1082
+ } & {
1083
+ userId: z.ZodString;
1084
+ grandTotal: z.ZodString;
1085
+ currency: z.ZodLiteral<"KES">;
1086
+ paidAt: z.ZodString;
1087
+ orderId: z.ZodString;
1088
+ orderNumber: z.ZodString;
1089
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1090
+ companyId: z.ZodString;
1091
+ } & {
1092
+ userId: z.ZodString;
1093
+ grandTotal: z.ZodString;
1094
+ currency: z.ZodLiteral<"KES">;
1095
+ paidAt: z.ZodString;
1096
+ orderId: z.ZodString;
1097
+ orderNumber: z.ZodString;
1098
+ }, z.ZodTypeAny, "passthrough">>;
1099
+ "order.order.status_changed": z.ZodObject<{
1100
+ companyId: z.ZodString;
1101
+ } & {
1102
+ from: z.ZodString;
1103
+ to: z.ZodString;
1104
+ orderId: z.ZodString;
1105
+ orderNumber: z.ZodString;
1106
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1107
+ companyId: z.ZodString;
1108
+ } & {
1109
+ from: z.ZodString;
1110
+ to: z.ZodString;
1111
+ orderId: z.ZodString;
1112
+ orderNumber: z.ZodString;
1113
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1114
+ companyId: z.ZodString;
1115
+ } & {
1116
+ from: z.ZodString;
1117
+ to: z.ZodString;
1118
+ orderId: z.ZodString;
1119
+ orderNumber: z.ZodString;
1120
+ }, z.ZodTypeAny, "passthrough">>;
1121
+ "order.order.shipped": z.ZodObject<{
1122
+ companyId: z.ZodString;
1123
+ } & {
1124
+ userId: z.ZodString;
1125
+ shipmentId: z.ZodString;
1126
+ orderId: z.ZodString;
1127
+ orderNumber: z.ZodString;
1128
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1129
+ companyId: z.ZodString;
1130
+ } & {
1131
+ userId: z.ZodString;
1132
+ shipmentId: z.ZodString;
1133
+ orderId: z.ZodString;
1134
+ orderNumber: z.ZodString;
1135
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1136
+ companyId: z.ZodString;
1137
+ } & {
1138
+ userId: z.ZodString;
1139
+ shipmentId: z.ZodString;
1140
+ orderId: z.ZodString;
1141
+ orderNumber: z.ZodString;
1142
+ }, z.ZodTypeAny, "passthrough">>;
1143
+ "order.order.delivered": z.ZodObject<{
1144
+ companyId: z.ZodString;
1145
+ } & {
1146
+ userId: z.ZodString;
1147
+ deliveredAt: z.ZodString;
1148
+ orderId: z.ZodString;
1149
+ orderNumber: z.ZodString;
1150
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1151
+ companyId: z.ZodString;
1152
+ } & {
1153
+ userId: z.ZodString;
1154
+ deliveredAt: z.ZodString;
1155
+ orderId: z.ZodString;
1156
+ orderNumber: z.ZodString;
1157
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1158
+ companyId: z.ZodString;
1159
+ } & {
1160
+ userId: z.ZodString;
1161
+ deliveredAt: z.ZodString;
1162
+ orderId: z.ZodString;
1163
+ orderNumber: z.ZodString;
1164
+ }, z.ZodTypeAny, "passthrough">>;
1165
+ "order.order.cancelled": z.ZodObject<{
1166
+ companyId: z.ZodString;
1167
+ } & {
1168
+ userId: z.ZodString;
1169
+ reason: z.ZodString;
1170
+ orderId: z.ZodString;
1171
+ orderNumber: z.ZodString;
1172
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1173
+ companyId: z.ZodString;
1174
+ } & {
1175
+ userId: z.ZodString;
1176
+ reason: z.ZodString;
1177
+ orderId: z.ZodString;
1178
+ orderNumber: z.ZodString;
1179
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1180
+ companyId: z.ZodString;
1181
+ } & {
1182
+ userId: z.ZodString;
1183
+ reason: z.ZodString;
1184
+ orderId: z.ZodString;
1185
+ orderNumber: z.ZodString;
1186
+ }, z.ZodTypeAny, "passthrough">>;
1187
+ "order.order.expired": z.ZodObject<{
1188
+ companyId: z.ZodString;
1189
+ } & {
1190
+ userId: z.ZodString;
1191
+ orderId: z.ZodString;
1192
+ orderNumber: z.ZodString;
1193
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1194
+ companyId: z.ZodString;
1195
+ } & {
1196
+ userId: z.ZodString;
1197
+ orderId: z.ZodString;
1198
+ orderNumber: z.ZodString;
1199
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1200
+ companyId: z.ZodString;
1201
+ } & {
1202
+ userId: z.ZodString;
1203
+ orderId: z.ZodString;
1204
+ orderNumber: z.ZodString;
1205
+ }, z.ZodTypeAny, "passthrough">>;
1206
+ "order.order.refund_requested": z.ZodObject<{
1207
+ companyId: z.ZodString;
1208
+ } & {
1209
+ refundId: z.ZodString;
1210
+ amount: z.ZodString;
1211
+ currency: z.ZodLiteral<"KES">;
1212
+ reason: z.ZodString;
1213
+ orderId: z.ZodString;
1214
+ orderNumber: z.ZodString;
1215
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1216
+ companyId: z.ZodString;
1217
+ } & {
1218
+ refundId: z.ZodString;
1219
+ amount: z.ZodString;
1220
+ currency: z.ZodLiteral<"KES">;
1221
+ reason: z.ZodString;
1222
+ orderId: z.ZodString;
1223
+ orderNumber: z.ZodString;
1224
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1225
+ companyId: z.ZodString;
1226
+ } & {
1227
+ refundId: z.ZodString;
1228
+ amount: z.ZodString;
1229
+ currency: z.ZodLiteral<"KES">;
1230
+ reason: z.ZodString;
1231
+ orderId: z.ZodString;
1232
+ orderNumber: z.ZodString;
1233
+ }, z.ZodTypeAny, "passthrough">>;
1234
+ "order.issue.opened": z.ZodObject<{
1235
+ companyId: z.ZodString;
1236
+ } & {
1237
+ issueId: z.ZodString;
1238
+ orderId: z.ZodString;
1239
+ userId: z.ZodString;
1240
+ type: z.ZodString;
1241
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1242
+ companyId: z.ZodString;
1243
+ } & {
1244
+ issueId: z.ZodString;
1245
+ orderId: z.ZodString;
1246
+ userId: z.ZodString;
1247
+ type: z.ZodString;
1248
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1249
+ companyId: z.ZodString;
1250
+ } & {
1251
+ issueId: z.ZodString;
1252
+ orderId: z.ZodString;
1253
+ userId: z.ZodString;
1254
+ type: z.ZodString;
1255
+ }, z.ZodTypeAny, "passthrough">>;
1256
+ "order.issue.replied": z.ZodObject<{
1257
+ companyId: z.ZodString;
1258
+ } & {
1259
+ issueId: z.ZodString;
1260
+ orderId: z.ZodString;
1261
+ from: z.ZodEnum<["customer", "staff"]>;
1262
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1263
+ companyId: z.ZodString;
1264
+ } & {
1265
+ issueId: z.ZodString;
1266
+ orderId: z.ZodString;
1267
+ from: z.ZodEnum<["customer", "staff"]>;
1268
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1269
+ companyId: z.ZodString;
1270
+ } & {
1271
+ issueId: z.ZodString;
1272
+ orderId: z.ZodString;
1273
+ from: z.ZodEnum<["customer", "staff"]>;
1274
+ }, z.ZodTypeAny, "passthrough">>;
1275
+ "order.issue.escalated": z.ZodObject<{
1276
+ companyId: z.ZodString;
1277
+ } & {
1278
+ issueId: z.ZodString;
1279
+ orderId: z.ZodString;
1280
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1281
+ companyId: z.ZodString;
1282
+ } & {
1283
+ issueId: z.ZodString;
1284
+ orderId: z.ZodString;
1285
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1286
+ companyId: z.ZodString;
1287
+ } & {
1288
+ issueId: z.ZodString;
1289
+ orderId: z.ZodString;
1290
+ }, z.ZodTypeAny, "passthrough">>;
1291
+ "order.issue.resolved": z.ZodObject<{
1292
+ companyId: z.ZodString;
1293
+ } & {
1294
+ issueId: z.ZodString;
1295
+ orderId: z.ZodString;
1296
+ resolution: z.ZodString;
1297
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1298
+ companyId: z.ZodString;
1299
+ } & {
1300
+ issueId: z.ZodString;
1301
+ orderId: z.ZodString;
1302
+ resolution: z.ZodString;
1303
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1304
+ companyId: z.ZodString;
1305
+ } & {
1306
+ issueId: z.ZodString;
1307
+ orderId: z.ZodString;
1308
+ resolution: z.ZodString;
1309
+ }, z.ZodTypeAny, "passthrough">>;
1310
+ "cart.cart.updated": z.ZodObject<{
1311
+ companyId: z.ZodString;
1312
+ } & {
1313
+ cartId: z.ZodString;
1314
+ userId: z.ZodNullable<z.ZodString>;
1315
+ itemCount: z.ZodNumber;
1316
+ subtotal: z.ZodString;
1317
+ currency: z.ZodLiteral<"KES">;
1318
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1319
+ companyId: z.ZodString;
1320
+ } & {
1321
+ cartId: z.ZodString;
1322
+ userId: z.ZodNullable<z.ZodString>;
1323
+ itemCount: z.ZodNumber;
1324
+ subtotal: z.ZodString;
1325
+ currency: z.ZodLiteral<"KES">;
1326
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1327
+ companyId: z.ZodString;
1328
+ } & {
1329
+ cartId: z.ZodString;
1330
+ userId: z.ZodNullable<z.ZodString>;
1331
+ itemCount: z.ZodNumber;
1332
+ subtotal: z.ZodString;
1333
+ currency: z.ZodLiteral<"KES">;
1334
+ }, z.ZodTypeAny, "passthrough">>;
1335
+ "media.file.uploaded": z.ZodObject<{
1336
+ companyId: z.ZodString;
1337
+ } & {
1338
+ fileId: z.ZodString;
1339
+ purpose: z.ZodString;
1340
+ contentType: z.ZodString;
1341
+ sizeBytes: z.ZodNumber;
1342
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1343
+ companyId: z.ZodString;
1344
+ } & {
1345
+ fileId: z.ZodString;
1346
+ purpose: z.ZodString;
1347
+ contentType: z.ZodString;
1348
+ sizeBytes: z.ZodNumber;
1349
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1350
+ companyId: z.ZodString;
1351
+ } & {
1352
+ fileId: z.ZodString;
1353
+ purpose: z.ZodString;
1354
+ contentType: z.ZodString;
1355
+ sizeBytes: z.ZodNumber;
1356
+ }, z.ZodTypeAny, "passthrough">>;
1357
+ "media.file.processed": z.ZodObject<{
1358
+ companyId: z.ZodString;
1359
+ } & {
1360
+ fileId: z.ZodString;
1361
+ status: z.ZodEnum<["ready", "failed"]>;
1362
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1363
+ companyId: z.ZodString;
1364
+ } & {
1365
+ fileId: z.ZodString;
1366
+ status: z.ZodEnum<["ready", "failed"]>;
1367
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1368
+ companyId: z.ZodString;
1369
+ } & {
1370
+ fileId: z.ZodString;
1371
+ status: z.ZodEnum<["ready", "failed"]>;
1372
+ }, z.ZodTypeAny, "passthrough">>;
1373
+ "catalog.product.created": z.ZodObject<{
1374
+ companyId: z.ZodString;
1375
+ } & {
1376
+ productId: z.ZodString;
1377
+ status: z.ZodString;
1378
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1379
+ companyId: z.ZodString;
1380
+ } & {
1381
+ productId: z.ZodString;
1382
+ status: z.ZodString;
1383
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1384
+ companyId: z.ZodString;
1385
+ } & {
1386
+ productId: z.ZodString;
1387
+ status: z.ZodString;
1388
+ }, z.ZodTypeAny, "passthrough">>;
1389
+ "catalog.product.updated": z.ZodObject<{
1390
+ companyId: z.ZodString;
1391
+ } & {
1392
+ productId: z.ZodString;
1393
+ changedFields: z.ZodArray<z.ZodString, "many">;
1394
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1395
+ companyId: z.ZodString;
1396
+ } & {
1397
+ productId: z.ZodString;
1398
+ changedFields: z.ZodArray<z.ZodString, "many">;
1399
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1400
+ companyId: z.ZodString;
1401
+ } & {
1402
+ productId: z.ZodString;
1403
+ changedFields: z.ZodArray<z.ZodString, "many">;
1404
+ }, z.ZodTypeAny, "passthrough">>;
1405
+ "catalog.product.deleted": z.ZodObject<{
1406
+ companyId: z.ZodString;
1407
+ } & {
1408
+ productId: z.ZodString;
1409
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1410
+ companyId: z.ZodString;
1411
+ } & {
1412
+ productId: z.ZodString;
1413
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1414
+ companyId: z.ZodString;
1415
+ } & {
1416
+ productId: z.ZodString;
1417
+ }, z.ZodTypeAny, "passthrough">>;
1418
+ "catalog.category.updated": z.ZodObject<{
1419
+ companyId: z.ZodString;
1420
+ } & {
1421
+ categoryId: z.ZodString;
1422
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1423
+ companyId: z.ZodString;
1424
+ } & {
1425
+ categoryId: z.ZodString;
1426
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1427
+ companyId: z.ZodString;
1428
+ } & {
1429
+ categoryId: z.ZodString;
1430
+ }, z.ZodTypeAny, "passthrough">>;
1431
+ "catalog.inventory.adjusted": z.ZodObject<{
1432
+ companyId: z.ZodString;
1433
+ } & {
1434
+ productId: z.ZodString;
1435
+ variantId: z.ZodNullable<z.ZodString>;
1436
+ delta: z.ZodNumber;
1437
+ onHand: z.ZodNumber;
1438
+ reason: z.ZodString;
1439
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1440
+ companyId: z.ZodString;
1441
+ } & {
1442
+ productId: z.ZodString;
1443
+ variantId: z.ZodNullable<z.ZodString>;
1444
+ delta: z.ZodNumber;
1445
+ onHand: z.ZodNumber;
1446
+ reason: z.ZodString;
1447
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1448
+ companyId: z.ZodString;
1449
+ } & {
1450
+ productId: z.ZodString;
1451
+ variantId: z.ZodNullable<z.ZodString>;
1452
+ delta: z.ZodNumber;
1453
+ onHand: z.ZodNumber;
1454
+ reason: z.ZodString;
1455
+ }, z.ZodTypeAny, "passthrough">>;
1456
+ "catalog.inventory.low_stock": z.ZodObject<{
1457
+ companyId: z.ZodString;
1458
+ } & {
1459
+ productId: z.ZodString;
1460
+ variantId: z.ZodNullable<z.ZodString>;
1461
+ onHand: z.ZodNumber;
1462
+ threshold: z.ZodNumber;
1463
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1464
+ companyId: z.ZodString;
1465
+ } & {
1466
+ productId: z.ZodString;
1467
+ variantId: z.ZodNullable<z.ZodString>;
1468
+ onHand: z.ZodNumber;
1469
+ threshold: z.ZodNumber;
1470
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1471
+ companyId: z.ZodString;
1472
+ } & {
1473
+ productId: z.ZodString;
1474
+ variantId: z.ZodNullable<z.ZodString>;
1475
+ onHand: z.ZodNumber;
1476
+ threshold: z.ZodNumber;
1477
+ }, z.ZodTypeAny, "passthrough">>;
1478
+ "store.shop.provisioned": z.ZodObject<{
1479
+ companyId: z.ZodString;
1480
+ } & {
1481
+ shopId: z.ZodString;
1482
+ slug: z.ZodString;
1483
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1484
+ companyId: z.ZodString;
1485
+ } & {
1486
+ shopId: z.ZodString;
1487
+ slug: z.ZodString;
1488
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1489
+ companyId: z.ZodString;
1490
+ } & {
1491
+ shopId: z.ZodString;
1492
+ slug: z.ZodString;
1493
+ }, z.ZodTypeAny, "passthrough">>;
1494
+ "store.settings.changed": z.ZodObject<{
1495
+ companyId: z.ZodString;
1496
+ } & {
1497
+ shopId: z.ZodString;
1498
+ changedFields: z.ZodArray<z.ZodString, "many">;
1499
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1500
+ companyId: z.ZodString;
1501
+ } & {
1502
+ shopId: z.ZodString;
1503
+ changedFields: z.ZodArray<z.ZodString, "many">;
1504
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1505
+ companyId: z.ZodString;
1506
+ } & {
1507
+ shopId: z.ZodString;
1508
+ changedFields: z.ZodArray<z.ZodString, "many">;
1509
+ }, z.ZodTypeAny, "passthrough">>;
1510
+ "store.theme.published": z.ZodObject<{
1511
+ companyId: z.ZodString;
1512
+ } & {
1513
+ shopId: z.ZodString;
1514
+ themeId: z.ZodString;
1515
+ revision: z.ZodNumber;
1516
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1517
+ companyId: z.ZodString;
1518
+ } & {
1519
+ shopId: z.ZodString;
1520
+ themeId: z.ZodString;
1521
+ revision: z.ZodNumber;
1522
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1523
+ companyId: z.ZodString;
1524
+ } & {
1525
+ shopId: z.ZodString;
1526
+ themeId: z.ZodString;
1527
+ revision: z.ZodNumber;
1528
+ }, z.ZodTypeAny, "passthrough">>;
1529
+ "store.domain.changed": z.ZodObject<{
1530
+ companyId: z.ZodString;
1531
+ } & {
1532
+ shopId: z.ZodString;
1533
+ domainId: z.ZodString;
1534
+ hostname: z.ZodString;
1535
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1536
+ companyId: z.ZodString;
1537
+ } & {
1538
+ shopId: z.ZodString;
1539
+ domainId: z.ZodString;
1540
+ hostname: z.ZodString;
1541
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1542
+ companyId: z.ZodString;
1543
+ } & {
1544
+ shopId: z.ZodString;
1545
+ domainId: z.ZodString;
1546
+ hostname: z.ZodString;
1547
+ }, z.ZodTypeAny, "passthrough">>;
1548
+ "store.domain.verified": z.ZodObject<{
1549
+ companyId: z.ZodString;
1550
+ } & {
1551
+ shopId: z.ZodString;
1552
+ domainId: z.ZodString;
1553
+ hostname: z.ZodString;
1554
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1555
+ companyId: z.ZodString;
1556
+ } & {
1557
+ shopId: z.ZodString;
1558
+ domainId: z.ZodString;
1559
+ hostname: z.ZodString;
1560
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1561
+ companyId: z.ZodString;
1562
+ } & {
1563
+ shopId: z.ZodString;
1564
+ domainId: z.ZodString;
1565
+ hostname: z.ZodString;
1566
+ }, z.ZodTypeAny, "passthrough">>;
1567
+ "store.domain.failed": z.ZodObject<{
1568
+ companyId: z.ZodString;
1569
+ } & {
1570
+ shopId: z.ZodString;
1571
+ domainId: z.ZodString;
1572
+ hostname: z.ZodString;
1573
+ reason: z.ZodString;
1574
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1575
+ companyId: z.ZodString;
1576
+ } & {
1577
+ shopId: z.ZodString;
1578
+ domainId: z.ZodString;
1579
+ hostname: z.ZodString;
1580
+ reason: z.ZodString;
1581
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1582
+ companyId: z.ZodString;
1583
+ } & {
1584
+ shopId: z.ZodString;
1585
+ domainId: z.ZodString;
1586
+ hostname: z.ZodString;
1587
+ reason: z.ZodString;
1588
+ }, z.ZodTypeAny, "passthrough">>;
1589
+ "gateway.security.access_denied": z.ZodObject<{
1590
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1591
+ } & {
1592
+ userId: z.ZodNullable<z.ZodString>;
1593
+ route: z.ZodString;
1594
+ method: z.ZodString;
1595
+ code: z.ZodString;
1596
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1597
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1598
+ } & {
1599
+ userId: z.ZodNullable<z.ZodString>;
1600
+ route: z.ZodString;
1601
+ method: z.ZodString;
1602
+ code: z.ZodString;
1603
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1604
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1605
+ } & {
1606
+ userId: z.ZodNullable<z.ZodString>;
1607
+ route: z.ZodString;
1608
+ method: z.ZodString;
1609
+ code: z.ZodString;
1610
+ }, z.ZodTypeAny, "passthrough">>;
1611
+ "gateway.security.rate_limited": z.ZodObject<{
1612
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1613
+ } & {
1614
+ userId: z.ZodNullable<z.ZodString>;
1615
+ route: z.ZodString;
1616
+ method: z.ZodString;
1617
+ limiter: z.ZodString;
1618
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1619
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1620
+ } & {
1621
+ userId: z.ZodNullable<z.ZodString>;
1622
+ route: z.ZodString;
1623
+ method: z.ZodString;
1624
+ limiter: z.ZodString;
1625
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1626
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1627
+ } & {
1628
+ userId: z.ZodNullable<z.ZodString>;
1629
+ route: z.ZodString;
1630
+ method: z.ZodString;
1631
+ limiter: z.ZodString;
1632
+ }, z.ZodTypeAny, "passthrough">>;
1633
+ "gateway.security.bad_signature": z.ZodObject<{
1634
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1635
+ } & {
1636
+ route: z.ZodString;
1637
+ method: z.ZodString;
1638
+ reason: z.ZodString;
1639
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1640
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1641
+ } & {
1642
+ route: z.ZodString;
1643
+ method: z.ZodString;
1644
+ reason: z.ZodString;
1645
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1646
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1647
+ } & {
1648
+ route: z.ZodString;
1649
+ method: z.ZodString;
1650
+ reason: z.ZodString;
1651
+ }, z.ZodTypeAny, "passthrough">>;
1652
+ "auth.security.login_succeeded": z.ZodObject<{
1653
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1654
+ } & {
1655
+ userId: z.ZodString;
1656
+ sessionId: z.ZodString;
1657
+ method: z.ZodEnum<["password", "otp", "sso"]>;
1658
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1659
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1660
+ } & {
1661
+ userId: z.ZodString;
1662
+ sessionId: z.ZodString;
1663
+ method: z.ZodEnum<["password", "otp", "sso"]>;
1664
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1665
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1666
+ } & {
1667
+ userId: z.ZodString;
1668
+ sessionId: z.ZodString;
1669
+ method: z.ZodEnum<["password", "otp", "sso"]>;
1670
+ }, z.ZodTypeAny, "passthrough">>;
1671
+ "auth.security.login_failed": z.ZodObject<{
1672
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1673
+ } & {
1674
+ userId: z.ZodNullable<z.ZodString>;
1675
+ reason: z.ZodString;
1676
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1677
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
+ } & {
1679
+ userId: z.ZodNullable<z.ZodString>;
1680
+ reason: z.ZodString;
1681
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1682
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1683
+ } & {
1684
+ userId: z.ZodNullable<z.ZodString>;
1685
+ reason: z.ZodString;
1686
+ }, z.ZodTypeAny, "passthrough">>;
1687
+ "auth.security.otp_failed": z.ZodObject<{
1688
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
+ } & {
1690
+ userId: z.ZodString;
1691
+ purpose: z.ZodString;
1692
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1693
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1694
+ } & {
1695
+ userId: z.ZodString;
1696
+ purpose: z.ZodString;
1697
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1698
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1699
+ } & {
1700
+ userId: z.ZodString;
1701
+ purpose: z.ZodString;
1702
+ }, z.ZodTypeAny, "passthrough">>;
1703
+ "auth.security.step_up": z.ZodObject<{
1704
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1705
+ } & {
1706
+ userId: z.ZodString;
1707
+ sessionId: z.ZodString;
1708
+ scope: z.ZodString;
1709
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1710
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1711
+ } & {
1712
+ userId: z.ZodString;
1713
+ sessionId: z.ZodString;
1714
+ scope: z.ZodString;
1715
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1716
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1717
+ } & {
1718
+ userId: z.ZodString;
1719
+ sessionId: z.ZodString;
1720
+ scope: z.ZodString;
1721
+ }, z.ZodTypeAny, "passthrough">>;
1722
+ "auth.security.account_locked": z.ZodObject<{
1723
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1724
+ } & {
1725
+ userId: z.ZodString;
1726
+ lockedUntil: z.ZodString;
1727
+ reason: z.ZodString;
1728
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1729
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1730
+ } & {
1731
+ userId: z.ZodString;
1732
+ lockedUntil: z.ZodString;
1733
+ reason: z.ZodString;
1734
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1735
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1736
+ } & {
1737
+ userId: z.ZodString;
1738
+ lockedUntil: z.ZodString;
1739
+ reason: z.ZodString;
1740
+ }, z.ZodTypeAny, "passthrough">>;
1741
+ "auth.security.sessions_revoked": z.ZodObject<{
1742
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1743
+ } & {
1744
+ userId: z.ZodString;
1745
+ count: z.ZodNumber;
1746
+ reason: z.ZodString;
1747
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1748
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1749
+ } & {
1750
+ userId: z.ZodString;
1751
+ count: z.ZodNumber;
1752
+ reason: z.ZodString;
1753
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1754
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1755
+ } & {
1756
+ userId: z.ZodString;
1757
+ count: z.ZodNumber;
1758
+ reason: z.ZodString;
1759
+ }, z.ZodTypeAny, "passthrough">>;
1760
+ "auth.security.role_changed": z.ZodObject<{
1761
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1762
+ } & {
1763
+ userId: z.ZodString;
1764
+ roleId: z.ZodString;
1765
+ change: z.ZodEnum<["assigned", "revoked"]>;
1766
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1767
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1768
+ } & {
1769
+ userId: z.ZodString;
1770
+ roleId: z.ZodString;
1771
+ change: z.ZodEnum<["assigned", "revoked"]>;
1772
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1773
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1774
+ } & {
1775
+ userId: z.ZodString;
1776
+ roleId: z.ZodString;
1777
+ change: z.ZodEnum<["assigned", "revoked"]>;
1778
+ }, z.ZodTypeAny, "passthrough">>;
1779
+ "auth.security.login_risky": z.ZodObject<{
1780
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1781
+ } & {
1782
+ userId: z.ZodString;
1783
+ sessionId: z.ZodNullable<z.ZodString>;
1784
+ signals: z.ZodArray<z.ZodString, "many">;
1785
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1786
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1787
+ } & {
1788
+ userId: z.ZodString;
1789
+ sessionId: z.ZodNullable<z.ZodString>;
1790
+ signals: z.ZodArray<z.ZodString, "many">;
1791
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1792
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1793
+ } & {
1794
+ userId: z.ZodString;
1795
+ sessionId: z.ZodNullable<z.ZodString>;
1796
+ signals: z.ZodArray<z.ZodString, "many">;
1797
+ }, z.ZodTypeAny, "passthrough">>;
1798
+ "auth.security.login_unrecognized": z.ZodObject<{
1799
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1800
+ } & {
1801
+ userId: z.ZodString;
1802
+ sessionId: z.ZodString;
1803
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1804
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1805
+ } & {
1806
+ userId: z.ZodString;
1807
+ sessionId: z.ZodString;
1808
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1809
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1810
+ } & {
1811
+ userId: z.ZodString;
1812
+ sessionId: z.ZodString;
1813
+ }, z.ZodTypeAny, "passthrough">>;
1814
+ "auth.security.alert_raised": z.ZodObject<{
1815
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1816
+ } & {
1817
+ userId: z.ZodNullable<z.ZodString>;
1818
+ alert: z.ZodString;
1819
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
1820
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1821
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1822
+ } & {
1823
+ userId: z.ZodNullable<z.ZodString>;
1824
+ alert: z.ZodString;
1825
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
1826
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1827
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1828
+ } & {
1829
+ userId: z.ZodNullable<z.ZodString>;
1830
+ alert: z.ZodString;
1831
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
1832
+ }, z.ZodTypeAny, "passthrough">>;
1833
+ "auth.user.registered": z.ZodObject<{
1834
+ userId: z.ZodString;
1835
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1836
+ userId: z.ZodString;
1837
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1838
+ userId: z.ZodString;
1839
+ }, z.ZodTypeAny, "passthrough">>;
1840
+ "auth.user.verified": z.ZodObject<{
1841
+ userId: z.ZodString;
1842
+ channel: z.ZodEnum<["email", "phone"]>;
1843
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1844
+ userId: z.ZodString;
1845
+ channel: z.ZodEnum<["email", "phone"]>;
1846
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1847
+ userId: z.ZodString;
1848
+ channel: z.ZodEnum<["email", "phone"]>;
1849
+ }, z.ZodTypeAny, "passthrough">>;
1850
+ "auth.user.password_reset_requested": z.ZodObject<{
1851
+ userId: z.ZodString;
1852
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1853
+ userId: z.ZodString;
1854
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1855
+ userId: z.ZodString;
1856
+ }, z.ZodTypeAny, "passthrough">>;
1857
+ "auth.user.password_changed": z.ZodObject<{
1858
+ userId: z.ZodString;
1859
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1860
+ userId: z.ZodString;
1861
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1862
+ userId: z.ZodString;
1863
+ }, z.ZodTypeAny, "passthrough">>;
1864
+ "auth.user.email_changed": z.ZodObject<{
1865
+ userId: z.ZodString;
1866
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1867
+ userId: z.ZodString;
1868
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1869
+ userId: z.ZodString;
1870
+ }, z.ZodTypeAny, "passthrough">>;
1871
+ "auth.user.deleted": z.ZodObject<{
1872
+ userId: z.ZodString;
1873
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1874
+ userId: z.ZodString;
1875
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1876
+ userId: z.ZodString;
1877
+ }, z.ZodTypeAny, "passthrough">>;
1878
+ "auth.user.authz_changed": z.ZodObject<{
1879
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1880
+ } & {
1881
+ userId: z.ZodString;
1882
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1883
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1884
+ } & {
1885
+ userId: z.ZodString;
1886
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1887
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1888
+ } & {
1889
+ userId: z.ZodString;
1890
+ }, z.ZodTypeAny, "passthrough">>;
1891
+ "auth.company.created": z.ZodObject<{
1892
+ companyId: z.ZodString;
1893
+ } & {
1894
+ ownerUserId: z.ZodString;
1895
+ slug: z.ZodString;
1896
+ name: z.ZodString;
1897
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1898
+ companyId: z.ZodString;
1899
+ } & {
1900
+ ownerUserId: z.ZodString;
1901
+ slug: z.ZodString;
1902
+ name: z.ZodString;
1903
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1904
+ companyId: z.ZodString;
1905
+ } & {
1906
+ ownerUserId: z.ZodString;
1907
+ slug: z.ZodString;
1908
+ name: z.ZodString;
1909
+ }, z.ZodTypeAny, "passthrough">>;
1910
+ "auth.company.updated": z.ZodObject<{
1911
+ companyId: z.ZodString;
1912
+ } & {
1913
+ changedFields: z.ZodArray<z.ZodString, "many">;
1914
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1915
+ companyId: z.ZodString;
1916
+ } & {
1917
+ changedFields: z.ZodArray<z.ZodString, "many">;
1918
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1919
+ companyId: z.ZodString;
1920
+ } & {
1921
+ changedFields: z.ZodArray<z.ZodString, "many">;
1922
+ }, z.ZodTypeAny, "passthrough">>;
1923
+ "auth.company.suspended": z.ZodObject<{
1924
+ companyId: z.ZodString;
1925
+ } & {
1926
+ reason: z.ZodString;
1927
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1928
+ companyId: z.ZodString;
1929
+ } & {
1930
+ reason: z.ZodString;
1931
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1932
+ companyId: z.ZodString;
1933
+ } & {
1934
+ reason: z.ZodString;
1935
+ }, z.ZodTypeAny, "passthrough">>;
1936
+ "auth.company.reactivated": z.ZodObject<{
1937
+ companyId: z.ZodString;
1938
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1939
+ companyId: z.ZodString;
1940
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1941
+ companyId: z.ZodString;
1942
+ }, z.ZodTypeAny, "passthrough">>;
1943
+ "auth.company.closed": z.ZodObject<{
1944
+ companyId: z.ZodString;
1945
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1946
+ companyId: z.ZodString;
1947
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1948
+ companyId: z.ZodString;
1949
+ }, z.ZodTypeAny, "passthrough">>;
1950
+ "auth.staff.invited": z.ZodObject<{
1951
+ companyId: z.ZodString;
1952
+ } & {
1953
+ invitationId: z.ZodString;
1954
+ roleId: z.ZodString;
1955
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1956
+ companyId: z.ZodString;
1957
+ } & {
1958
+ invitationId: z.ZodString;
1959
+ roleId: z.ZodString;
1960
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1961
+ companyId: z.ZodString;
1962
+ } & {
1963
+ invitationId: z.ZodString;
1964
+ roleId: z.ZodString;
1965
+ }, z.ZodTypeAny, "passthrough">>;
1966
+ "auth.staff.joined": z.ZodObject<{
1967
+ companyId: z.ZodString;
1968
+ } & {
1969
+ userId: z.ZodString;
1970
+ membershipId: z.ZodString;
1971
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1972
+ companyId: z.ZodString;
1973
+ } & {
1974
+ userId: z.ZodString;
1975
+ membershipId: z.ZodString;
1976
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1977
+ companyId: z.ZodString;
1978
+ } & {
1979
+ userId: z.ZodString;
1980
+ membershipId: z.ZodString;
1981
+ }, z.ZodTypeAny, "passthrough">>;
1982
+ "auth.staff.removed": z.ZodObject<{
1983
+ companyId: z.ZodString;
1984
+ } & {
1985
+ userId: z.ZodString;
1986
+ membershipId: z.ZodString;
1987
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1988
+ companyId: z.ZodString;
1989
+ } & {
1990
+ userId: z.ZodString;
1991
+ membershipId: z.ZodString;
1992
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1993
+ companyId: z.ZodString;
1994
+ } & {
1995
+ userId: z.ZodString;
1996
+ membershipId: z.ZodString;
1997
+ }, z.ZodTypeAny, "passthrough">>;
1998
+ "auth.membership.changed": z.ZodObject<{
1999
+ companyId: z.ZodString;
2000
+ } & {
2001
+ membershipId: z.ZodString;
2002
+ userId: z.ZodString;
2003
+ roleIds: z.ZodArray<z.ZodString, "many">;
2004
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2005
+ companyId: z.ZodString;
2006
+ } & {
2007
+ membershipId: z.ZodString;
2008
+ userId: z.ZodString;
2009
+ roleIds: z.ZodArray<z.ZodString, "many">;
2010
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2011
+ companyId: z.ZodString;
2012
+ } & {
2013
+ membershipId: z.ZodString;
2014
+ userId: z.ZodString;
2015
+ roleIds: z.ZodArray<z.ZodString, "many">;
2016
+ }, z.ZodTypeAny, "passthrough">>;
2017
+ "auth.role.changed": z.ZodObject<{
2018
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2019
+ } & {
2020
+ roleId: z.ZodString;
2021
+ change: z.ZodEnum<["created", "updated", "deleted", "permissions_changed"]>;
2022
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2023
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2024
+ } & {
2025
+ roleId: z.ZodString;
2026
+ change: z.ZodEnum<["created", "updated", "deleted", "permissions_changed"]>;
2027
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2028
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2029
+ } & {
2030
+ roleId: z.ZodString;
2031
+ change: z.ZodEnum<["created", "updated", "deleted", "permissions_changed"]>;
2032
+ }, z.ZodTypeAny, "passthrough">>;
2033
+ "auth.approval.requested": z.ZodObject<{
2034
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2035
+ } & {
2036
+ approvalId: z.ZodString;
2037
+ action: z.ZodString;
2038
+ requestedBy: z.ZodString;
2039
+ expiresAt: z.ZodString;
2040
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2041
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2042
+ } & {
2043
+ approvalId: z.ZodString;
2044
+ action: z.ZodString;
2045
+ requestedBy: z.ZodString;
2046
+ expiresAt: z.ZodString;
2047
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2048
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2049
+ } & {
2050
+ approvalId: z.ZodString;
2051
+ action: z.ZodString;
2052
+ requestedBy: z.ZodString;
2053
+ expiresAt: z.ZodString;
2054
+ }, z.ZodTypeAny, "passthrough">>;
2055
+ "auth.approval.approved": z.ZodObject<{
2056
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2057
+ } & {
2058
+ approvalId: z.ZodString;
2059
+ action: z.ZodString;
2060
+ decidedBy: z.ZodString;
2061
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2062
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2063
+ } & {
2064
+ approvalId: z.ZodString;
2065
+ action: z.ZodString;
2066
+ decidedBy: z.ZodString;
2067
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2068
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2069
+ } & {
2070
+ approvalId: z.ZodString;
2071
+ action: z.ZodString;
2072
+ decidedBy: z.ZodString;
2073
+ }, z.ZodTypeAny, "passthrough">>;
2074
+ "auth.approval.rejected": z.ZodObject<{
2075
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2076
+ } & {
2077
+ approvalId: z.ZodString;
2078
+ action: z.ZodString;
2079
+ decidedBy: z.ZodString;
2080
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2081
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2082
+ } & {
2083
+ approvalId: z.ZodString;
2084
+ action: z.ZodString;
2085
+ decidedBy: z.ZodString;
2086
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2087
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2088
+ } & {
2089
+ approvalId: z.ZodString;
2090
+ action: z.ZodString;
2091
+ decidedBy: z.ZodString;
2092
+ }, z.ZodTypeAny, "passthrough">>;
2093
+ "auth.approval.expired": z.ZodObject<{
2094
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2095
+ } & {
2096
+ approvalId: z.ZodString;
2097
+ action: z.ZodString;
2098
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2099
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2100
+ } & {
2101
+ approvalId: z.ZodString;
2102
+ action: z.ZodString;
2103
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2104
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2105
+ } & {
2106
+ approvalId: z.ZodString;
2107
+ action: z.ZodString;
2108
+ }, z.ZodTypeAny, "passthrough">>;
2109
+ "auth.approval.executed": z.ZodObject<{
2110
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2111
+ } & {
2112
+ approvalId: z.ZodString;
2113
+ action: z.ZodString;
2114
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2115
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2116
+ } & {
2117
+ approvalId: z.ZodString;
2118
+ action: z.ZodString;
2119
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2120
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2121
+ } & {
2122
+ approvalId: z.ZodString;
2123
+ action: z.ZodString;
2124
+ }, z.ZodTypeAny, "passthrough">>;
2125
+ "auth.approval.failed": z.ZodObject<{
2126
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2127
+ } & {
2128
+ approvalId: z.ZodString;
2129
+ action: z.ZodString;
2130
+ reason: z.ZodString;
2131
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2132
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2133
+ } & {
2134
+ approvalId: z.ZodString;
2135
+ action: z.ZodString;
2136
+ reason: z.ZodString;
2137
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2138
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2139
+ } & {
2140
+ approvalId: z.ZodString;
2141
+ action: z.ZodString;
2142
+ reason: z.ZodString;
2143
+ }, z.ZodTypeAny, "passthrough">>;
2144
+ }>;
2145
+ /** Payload schemas of every command (direct exchange `commands`). */
2146
+ export declare const COMMAND_SCHEMAS: Readonly<{
2147
+ "notification.send.requested": z.ZodIntersection<z.ZodObject<{
2148
+ companyId: z.ZodNullable<z.ZodString>;
2149
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2150
+ companyId: z.ZodNullable<z.ZodString>;
2151
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2152
+ companyId: z.ZodNullable<z.ZodString>;
2153
+ }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
2154
+ template: z.ZodString;
2155
+ category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing")[]]>;
2156
+ recipient: z.ZodObject<{
2157
+ email: z.ZodString;
2158
+ name: z.ZodOptional<z.ZodString>;
2159
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2160
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2161
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2162
+ }, "strip", z.ZodTypeAny, {
2163
+ email: string;
2164
+ name?: string | undefined;
2165
+ userId?: string | null | undefined;
2166
+ locale?: string | null | undefined;
2167
+ timezone?: string | null | undefined;
2168
+ }, {
2169
+ email: string;
2170
+ name?: string | undefined;
2171
+ userId?: string | null | undefined;
2172
+ locale?: string | null | undefined;
2173
+ timezone?: string | null | undefined;
2174
+ }>;
2175
+ channels: z.ZodEffects<z.ZodArray<z.ZodEnum<["email" | "sms" | "in_app", ...("email" | "sms" | "in_app")[]]>, "many">, ("email" | "sms" | "in_app")[], ("email" | "sms" | "in_app")[]>;
2176
+ data: z.ZodEffects<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null> | undefined>;
2177
+ secretKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2178
+ bypassPreferences: z.ZodOptional<z.ZodBoolean>;
2179
+ targetPermission: z.ZodOptional<z.ZodString>;
2180
+ }, "strip", z.ZodTypeAny, {
2181
+ template: string;
2182
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2183
+ recipient: {
2184
+ email: string;
2185
+ name?: string | undefined;
2186
+ userId?: string | null | undefined;
2187
+ locale?: string | null | undefined;
2188
+ timezone?: string | null | undefined;
2189
+ };
2190
+ channels: ("email" | "sms" | "in_app")[];
2191
+ data: Record<string, string | number | boolean | null>;
2192
+ secretKeys: string[];
2193
+ bypassPreferences?: boolean | undefined;
2194
+ targetPermission?: string | undefined;
2195
+ }, {
2196
+ template: string;
2197
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2198
+ recipient: {
2199
+ email: string;
2200
+ name?: string | undefined;
2201
+ userId?: string | null | undefined;
2202
+ locale?: string | null | undefined;
2203
+ timezone?: string | null | undefined;
2204
+ };
2205
+ channels: ("email" | "sms" | "in_app")[];
2206
+ data?: Record<string, string | number | boolean | null> | undefined;
2207
+ secretKeys?: string[] | undefined;
2208
+ bypassPreferences?: boolean | undefined;
2209
+ targetPermission?: string | undefined;
2210
+ }>, {
2211
+ template: string;
2212
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2213
+ recipient: {
2214
+ email: string;
2215
+ name?: string | undefined;
2216
+ userId?: string | null | undefined;
2217
+ locale?: string | null | undefined;
2218
+ timezone?: string | null | undefined;
2219
+ };
2220
+ channels: ("email" | "sms" | "in_app")[];
2221
+ data: Record<string, string | number | boolean | null>;
2222
+ secretKeys: string[];
2223
+ bypassPreferences?: boolean | undefined;
2224
+ targetPermission?: string | undefined;
2225
+ }, {
2226
+ template: string;
2227
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2228
+ recipient: {
2229
+ email: string;
2230
+ name?: string | undefined;
2231
+ userId?: string | null | undefined;
2232
+ locale?: string | null | undefined;
2233
+ timezone?: string | null | undefined;
2234
+ };
2235
+ channels: ("email" | "sms" | "in_app")[];
2236
+ data?: Record<string, string | number | boolean | null> | undefined;
2237
+ secretKeys?: string[] | undefined;
2238
+ bypassPreferences?: boolean | undefined;
2239
+ targetPermission?: string | undefined;
2240
+ }>>;
2241
+ }>;
2242
+ /** Every catalogued message: events and commands. */
2243
+ export declare const MESSAGE_SCHEMAS: Readonly<{
2244
+ "notification.send.requested": z.ZodIntersection<z.ZodObject<{
2245
+ companyId: z.ZodNullable<z.ZodString>;
2246
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2247
+ companyId: z.ZodNullable<z.ZodString>;
2248
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2249
+ companyId: z.ZodNullable<z.ZodString>;
2250
+ }, z.ZodTypeAny, "passthrough">>, z.ZodEffects<z.ZodObject<{
2251
+ template: z.ZodString;
2252
+ category: z.ZodEnum<["security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing", ...("security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing")[]]>;
2253
+ recipient: z.ZodObject<{
2254
+ email: z.ZodString;
2255
+ name: z.ZodOptional<z.ZodString>;
2256
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2257
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2258
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ email: string;
2261
+ name?: string | undefined;
2262
+ userId?: string | null | undefined;
2263
+ locale?: string | null | undefined;
2264
+ timezone?: string | null | undefined;
2265
+ }, {
2266
+ email: string;
2267
+ name?: string | undefined;
2268
+ userId?: string | null | undefined;
2269
+ locale?: string | null | undefined;
2270
+ timezone?: string | null | undefined;
2271
+ }>;
2272
+ channels: z.ZodEffects<z.ZodArray<z.ZodEnum<["email" | "sms" | "in_app", ...("email" | "sms" | "in_app")[]]>, "many">, ("email" | "sms" | "in_app")[], ("email" | "sms" | "in_app")[]>;
2273
+ data: z.ZodEffects<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null> | undefined>;
2274
+ secretKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2275
+ bypassPreferences: z.ZodOptional<z.ZodBoolean>;
2276
+ targetPermission: z.ZodOptional<z.ZodString>;
2277
+ }, "strip", z.ZodTypeAny, {
2278
+ template: string;
2279
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2280
+ recipient: {
2281
+ email: string;
2282
+ name?: string | undefined;
2283
+ userId?: string | null | undefined;
2284
+ locale?: string | null | undefined;
2285
+ timezone?: string | null | undefined;
2286
+ };
2287
+ channels: ("email" | "sms" | "in_app")[];
2288
+ data: Record<string, string | number | boolean | null>;
2289
+ secretKeys: string[];
2290
+ bypassPreferences?: boolean | undefined;
2291
+ targetPermission?: string | undefined;
2292
+ }, {
2293
+ template: string;
2294
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2295
+ recipient: {
2296
+ email: string;
2297
+ name?: string | undefined;
2298
+ userId?: string | null | undefined;
2299
+ locale?: string | null | undefined;
2300
+ timezone?: string | null | undefined;
2301
+ };
2302
+ channels: ("email" | "sms" | "in_app")[];
2303
+ data?: Record<string, string | number | boolean | null> | undefined;
2304
+ secretKeys?: string[] | undefined;
2305
+ bypassPreferences?: boolean | undefined;
2306
+ targetPermission?: string | undefined;
2307
+ }>, {
2308
+ template: string;
2309
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2310
+ recipient: {
2311
+ email: string;
2312
+ name?: string | undefined;
2313
+ userId?: string | null | undefined;
2314
+ locale?: string | null | undefined;
2315
+ timezone?: string | null | undefined;
2316
+ };
2317
+ channels: ("email" | "sms" | "in_app")[];
2318
+ data: Record<string, string | number | boolean | null>;
2319
+ secretKeys: string[];
2320
+ bypassPreferences?: boolean | undefined;
2321
+ targetPermission?: string | undefined;
2322
+ }, {
2323
+ template: string;
2324
+ category: "security" | "account" | "order" | "payment" | "shipping" | "support" | "staff" | "store" | "billing";
2325
+ recipient: {
2326
+ email: string;
2327
+ name?: string | undefined;
2328
+ userId?: string | null | undefined;
2329
+ locale?: string | null | undefined;
2330
+ timezone?: string | null | undefined;
2331
+ };
2332
+ channels: ("email" | "sms" | "in_app")[];
2333
+ data?: Record<string, string | number | boolean | null> | undefined;
2334
+ secretKeys?: string[] | undefined;
2335
+ bypassPreferences?: boolean | undefined;
2336
+ targetPermission?: string | undefined;
2337
+ }>>;
2338
+ "order.security.socket_rejected": z.ZodObject<{
2339
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2340
+ } & {
2341
+ userId: z.ZodNullable<z.ZodString>;
2342
+ namespace: z.ZodString;
2343
+ reason: z.ZodString;
2344
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2345
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2346
+ } & {
2347
+ userId: z.ZodNullable<z.ZodString>;
2348
+ namespace: z.ZodString;
2349
+ reason: z.ZodString;
2350
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2351
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2352
+ } & {
2353
+ userId: z.ZodNullable<z.ZodString>;
2354
+ namespace: z.ZodString;
2355
+ reason: z.ZodString;
2356
+ }, z.ZodTypeAny, "passthrough">>;
2357
+ "payment.security.socket_rejected": z.ZodObject<{
2358
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2359
+ } & {
2360
+ userId: z.ZodNullable<z.ZodString>;
2361
+ namespace: z.ZodString;
2362
+ reason: z.ZodString;
2363
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2364
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2365
+ } & {
2366
+ userId: z.ZodNullable<z.ZodString>;
2367
+ namespace: z.ZodString;
2368
+ reason: z.ZodString;
2369
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2370
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2371
+ } & {
2372
+ userId: z.ZodNullable<z.ZodString>;
2373
+ namespace: z.ZodString;
2374
+ reason: z.ZodString;
2375
+ }, z.ZodTypeAny, "passthrough">>;
2376
+ "shipping.security.socket_rejected": z.ZodObject<{
2377
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2378
+ } & {
2379
+ userId: z.ZodNullable<z.ZodString>;
2380
+ namespace: z.ZodString;
2381
+ reason: z.ZodString;
2382
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2383
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2384
+ } & {
2385
+ userId: z.ZodNullable<z.ZodString>;
2386
+ namespace: z.ZodString;
2387
+ reason: z.ZodString;
2388
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2389
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2390
+ } & {
2391
+ userId: z.ZodNullable<z.ZodString>;
2392
+ namespace: z.ZodString;
2393
+ reason: z.ZodString;
2394
+ }, z.ZodTypeAny, "passthrough">>;
2395
+ "store.security.socket_rejected": z.ZodObject<{
2396
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2397
+ } & {
2398
+ userId: z.ZodNullable<z.ZodString>;
2399
+ namespace: z.ZodString;
2400
+ reason: z.ZodString;
2401
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2402
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2403
+ } & {
2404
+ userId: z.ZodNullable<z.ZodString>;
2405
+ namespace: z.ZodString;
2406
+ reason: z.ZodString;
2407
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2408
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2409
+ } & {
2410
+ userId: z.ZodNullable<z.ZodString>;
2411
+ namespace: z.ZodString;
2412
+ reason: z.ZodString;
2413
+ }, z.ZodTypeAny, "passthrough">>;
2414
+ "auth.security.socket_rejected": z.ZodObject<{
2415
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2416
+ } & {
2417
+ userId: z.ZodNullable<z.ZodString>;
2418
+ namespace: z.ZodString;
2419
+ reason: z.ZodString;
2420
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2421
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2422
+ } & {
2423
+ userId: z.ZodNullable<z.ZodString>;
2424
+ namespace: z.ZodString;
2425
+ reason: z.ZodString;
2426
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2427
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2428
+ } & {
2429
+ userId: z.ZodNullable<z.ZodString>;
2430
+ namespace: z.ZodString;
2431
+ reason: z.ZodString;
2432
+ }, z.ZodTypeAny, "passthrough">>;
2433
+ "gateway.security.socket_rejected": z.ZodObject<{
2434
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2435
+ } & {
2436
+ userId: z.ZodNullable<z.ZodString>;
2437
+ namespace: z.ZodString;
2438
+ reason: z.ZodString;
2439
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2440
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2441
+ } & {
2442
+ userId: z.ZodNullable<z.ZodString>;
2443
+ namespace: z.ZodString;
2444
+ reason: z.ZodString;
2445
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2446
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2447
+ } & {
2448
+ userId: z.ZodNullable<z.ZodString>;
2449
+ namespace: z.ZodString;
2450
+ reason: z.ZodString;
2451
+ }, z.ZodTypeAny, "passthrough">>;
2452
+ "catalog.security.socket_rejected": z.ZodObject<{
2453
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2454
+ } & {
2455
+ userId: z.ZodNullable<z.ZodString>;
2456
+ namespace: z.ZodString;
2457
+ reason: z.ZodString;
2458
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2459
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2460
+ } & {
2461
+ userId: z.ZodNullable<z.ZodString>;
2462
+ namespace: z.ZodString;
2463
+ reason: z.ZodString;
2464
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2465
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2466
+ } & {
2467
+ userId: z.ZodNullable<z.ZodString>;
2468
+ namespace: z.ZodString;
2469
+ reason: z.ZodString;
2470
+ }, z.ZodTypeAny, "passthrough">>;
2471
+ "media.security.socket_rejected": z.ZodObject<{
2472
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2473
+ } & {
2474
+ userId: z.ZodNullable<z.ZodString>;
2475
+ namespace: z.ZodString;
2476
+ reason: z.ZodString;
2477
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2478
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
+ } & {
2480
+ userId: z.ZodNullable<z.ZodString>;
2481
+ namespace: z.ZodString;
2482
+ reason: z.ZodString;
2483
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2484
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2485
+ } & {
2486
+ userId: z.ZodNullable<z.ZodString>;
2487
+ namespace: z.ZodString;
2488
+ reason: z.ZodString;
2489
+ }, z.ZodTypeAny, "passthrough">>;
2490
+ "cart.security.socket_rejected": z.ZodObject<{
2491
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2492
+ } & {
2493
+ userId: z.ZodNullable<z.ZodString>;
2494
+ namespace: z.ZodString;
2495
+ reason: z.ZodString;
2496
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2497
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2498
+ } & {
2499
+ userId: z.ZodNullable<z.ZodString>;
2500
+ namespace: z.ZodString;
2501
+ reason: z.ZodString;
2502
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2503
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2504
+ } & {
2505
+ userId: z.ZodNullable<z.ZodString>;
2506
+ namespace: z.ZodString;
2507
+ reason: z.ZodString;
2508
+ }, z.ZodTypeAny, "passthrough">>;
2509
+ "notification.security.socket_rejected": z.ZodObject<{
2510
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2511
+ } & {
2512
+ userId: z.ZodNullable<z.ZodString>;
2513
+ namespace: z.ZodString;
2514
+ reason: z.ZodString;
2515
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2516
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2517
+ } & {
2518
+ userId: z.ZodNullable<z.ZodString>;
2519
+ namespace: z.ZodString;
2520
+ reason: z.ZodString;
2521
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2522
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2523
+ } & {
2524
+ userId: z.ZodNullable<z.ZodString>;
2525
+ namespace: z.ZodString;
2526
+ reason: z.ZodString;
2527
+ }, z.ZodTypeAny, "passthrough">>;
2528
+ "reporting.security.socket_rejected": z.ZodObject<{
2529
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2530
+ } & {
2531
+ userId: z.ZodNullable<z.ZodString>;
2532
+ namespace: z.ZodString;
2533
+ reason: z.ZodString;
2534
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2535
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2536
+ } & {
2537
+ userId: z.ZodNullable<z.ZodString>;
2538
+ namespace: z.ZodString;
2539
+ reason: z.ZodString;
2540
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2541
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2542
+ } & {
2543
+ userId: z.ZodNullable<z.ZodString>;
2544
+ namespace: z.ZodString;
2545
+ reason: z.ZodString;
2546
+ }, z.ZodTypeAny, "passthrough">>;
2547
+ "order.audit.recorded": z.ZodObject<{
2548
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2549
+ } & {
2550
+ action: z.ZodString;
2551
+ entityType: z.ZodString;
2552
+ entityId: z.ZodNullable<z.ZodString>;
2553
+ outcome: z.ZodEnum<["success", "failure"]>;
2554
+ occurredAt: z.ZodString;
2555
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2556
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2557
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2558
+ } & {
2559
+ action: z.ZodString;
2560
+ entityType: z.ZodString;
2561
+ entityId: z.ZodNullable<z.ZodString>;
2562
+ outcome: z.ZodEnum<["success", "failure"]>;
2563
+ occurredAt: z.ZodString;
2564
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2565
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2566
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2567
+ } & {
2568
+ action: z.ZodString;
2569
+ entityType: z.ZodString;
2570
+ entityId: z.ZodNullable<z.ZodString>;
2571
+ outcome: z.ZodEnum<["success", "failure"]>;
2572
+ occurredAt: z.ZodString;
2573
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2574
+ }, z.ZodTypeAny, "passthrough">>;
2575
+ "payment.audit.recorded": z.ZodObject<{
2576
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2577
+ } & {
2578
+ action: z.ZodString;
2579
+ entityType: z.ZodString;
2580
+ entityId: z.ZodNullable<z.ZodString>;
2581
+ outcome: z.ZodEnum<["success", "failure"]>;
2582
+ occurredAt: z.ZodString;
2583
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2584
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2585
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2586
+ } & {
2587
+ action: z.ZodString;
2588
+ entityType: z.ZodString;
2589
+ entityId: z.ZodNullable<z.ZodString>;
2590
+ outcome: z.ZodEnum<["success", "failure"]>;
2591
+ occurredAt: z.ZodString;
2592
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2593
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2594
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2595
+ } & {
2596
+ action: z.ZodString;
2597
+ entityType: z.ZodString;
2598
+ entityId: z.ZodNullable<z.ZodString>;
2599
+ outcome: z.ZodEnum<["success", "failure"]>;
2600
+ occurredAt: z.ZodString;
2601
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2602
+ }, z.ZodTypeAny, "passthrough">>;
2603
+ "shipping.audit.recorded": z.ZodObject<{
2604
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2605
+ } & {
2606
+ action: z.ZodString;
2607
+ entityType: z.ZodString;
2608
+ entityId: z.ZodNullable<z.ZodString>;
2609
+ outcome: z.ZodEnum<["success", "failure"]>;
2610
+ occurredAt: z.ZodString;
2611
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2612
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2613
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2614
+ } & {
2615
+ action: z.ZodString;
2616
+ entityType: z.ZodString;
2617
+ entityId: z.ZodNullable<z.ZodString>;
2618
+ outcome: z.ZodEnum<["success", "failure"]>;
2619
+ occurredAt: z.ZodString;
2620
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2621
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2622
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2623
+ } & {
2624
+ action: z.ZodString;
2625
+ entityType: z.ZodString;
2626
+ entityId: z.ZodNullable<z.ZodString>;
2627
+ outcome: z.ZodEnum<["success", "failure"]>;
2628
+ occurredAt: z.ZodString;
2629
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2630
+ }, z.ZodTypeAny, "passthrough">>;
2631
+ "store.audit.recorded": z.ZodObject<{
2632
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2633
+ } & {
2634
+ action: z.ZodString;
2635
+ entityType: z.ZodString;
2636
+ entityId: z.ZodNullable<z.ZodString>;
2637
+ outcome: z.ZodEnum<["success", "failure"]>;
2638
+ occurredAt: z.ZodString;
2639
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2640
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2641
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2642
+ } & {
2643
+ action: z.ZodString;
2644
+ entityType: z.ZodString;
2645
+ entityId: z.ZodNullable<z.ZodString>;
2646
+ outcome: z.ZodEnum<["success", "failure"]>;
2647
+ occurredAt: z.ZodString;
2648
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2649
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2650
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2651
+ } & {
2652
+ action: z.ZodString;
2653
+ entityType: z.ZodString;
2654
+ entityId: z.ZodNullable<z.ZodString>;
2655
+ outcome: z.ZodEnum<["success", "failure"]>;
2656
+ occurredAt: z.ZodString;
2657
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2658
+ }, z.ZodTypeAny, "passthrough">>;
2659
+ "auth.audit.recorded": z.ZodObject<{
2660
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2661
+ } & {
2662
+ action: z.ZodString;
2663
+ entityType: z.ZodString;
2664
+ entityId: z.ZodNullable<z.ZodString>;
2665
+ outcome: z.ZodEnum<["success", "failure"]>;
2666
+ occurredAt: z.ZodString;
2667
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2668
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2669
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2670
+ } & {
2671
+ action: z.ZodString;
2672
+ entityType: z.ZodString;
2673
+ entityId: z.ZodNullable<z.ZodString>;
2674
+ outcome: z.ZodEnum<["success", "failure"]>;
2675
+ occurredAt: z.ZodString;
2676
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2677
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2678
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2679
+ } & {
2680
+ action: z.ZodString;
2681
+ entityType: z.ZodString;
2682
+ entityId: z.ZodNullable<z.ZodString>;
2683
+ outcome: z.ZodEnum<["success", "failure"]>;
2684
+ occurredAt: z.ZodString;
2685
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2686
+ }, z.ZodTypeAny, "passthrough">>;
2687
+ "gateway.audit.recorded": z.ZodObject<{
2688
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2689
+ } & {
2690
+ action: z.ZodString;
2691
+ entityType: z.ZodString;
2692
+ entityId: z.ZodNullable<z.ZodString>;
2693
+ outcome: z.ZodEnum<["success", "failure"]>;
2694
+ occurredAt: z.ZodString;
2695
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2696
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2697
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2698
+ } & {
2699
+ action: z.ZodString;
2700
+ entityType: z.ZodString;
2701
+ entityId: z.ZodNullable<z.ZodString>;
2702
+ outcome: z.ZodEnum<["success", "failure"]>;
2703
+ occurredAt: z.ZodString;
2704
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2705
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2706
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2707
+ } & {
2708
+ action: z.ZodString;
2709
+ entityType: z.ZodString;
2710
+ entityId: z.ZodNullable<z.ZodString>;
2711
+ outcome: z.ZodEnum<["success", "failure"]>;
2712
+ occurredAt: z.ZodString;
2713
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2714
+ }, z.ZodTypeAny, "passthrough">>;
2715
+ "catalog.audit.recorded": z.ZodObject<{
2716
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2717
+ } & {
2718
+ action: z.ZodString;
2719
+ entityType: z.ZodString;
2720
+ entityId: z.ZodNullable<z.ZodString>;
2721
+ outcome: z.ZodEnum<["success", "failure"]>;
2722
+ occurredAt: z.ZodString;
2723
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2724
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2725
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2726
+ } & {
2727
+ action: z.ZodString;
2728
+ entityType: z.ZodString;
2729
+ entityId: z.ZodNullable<z.ZodString>;
2730
+ outcome: z.ZodEnum<["success", "failure"]>;
2731
+ occurredAt: z.ZodString;
2732
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2733
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2734
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2735
+ } & {
2736
+ action: z.ZodString;
2737
+ entityType: z.ZodString;
2738
+ entityId: z.ZodNullable<z.ZodString>;
2739
+ outcome: z.ZodEnum<["success", "failure"]>;
2740
+ occurredAt: z.ZodString;
2741
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2742
+ }, z.ZodTypeAny, "passthrough">>;
2743
+ "media.audit.recorded": z.ZodObject<{
2744
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2745
+ } & {
2746
+ action: z.ZodString;
2747
+ entityType: z.ZodString;
2748
+ entityId: z.ZodNullable<z.ZodString>;
2749
+ outcome: z.ZodEnum<["success", "failure"]>;
2750
+ occurredAt: z.ZodString;
2751
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2752
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2753
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2754
+ } & {
2755
+ action: z.ZodString;
2756
+ entityType: z.ZodString;
2757
+ entityId: z.ZodNullable<z.ZodString>;
2758
+ outcome: z.ZodEnum<["success", "failure"]>;
2759
+ occurredAt: z.ZodString;
2760
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2761
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2762
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2763
+ } & {
2764
+ action: z.ZodString;
2765
+ entityType: z.ZodString;
2766
+ entityId: z.ZodNullable<z.ZodString>;
2767
+ outcome: z.ZodEnum<["success", "failure"]>;
2768
+ occurredAt: z.ZodString;
2769
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2770
+ }, z.ZodTypeAny, "passthrough">>;
2771
+ "cart.audit.recorded": z.ZodObject<{
2772
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2773
+ } & {
2774
+ action: z.ZodString;
2775
+ entityType: z.ZodString;
2776
+ entityId: z.ZodNullable<z.ZodString>;
2777
+ outcome: z.ZodEnum<["success", "failure"]>;
2778
+ occurredAt: z.ZodString;
2779
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2780
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2781
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2782
+ } & {
2783
+ action: z.ZodString;
2784
+ entityType: z.ZodString;
2785
+ entityId: z.ZodNullable<z.ZodString>;
2786
+ outcome: z.ZodEnum<["success", "failure"]>;
2787
+ occurredAt: z.ZodString;
2788
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2789
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2790
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2791
+ } & {
2792
+ action: z.ZodString;
2793
+ entityType: z.ZodString;
2794
+ entityId: z.ZodNullable<z.ZodString>;
2795
+ outcome: z.ZodEnum<["success", "failure"]>;
2796
+ occurredAt: z.ZodString;
2797
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2798
+ }, z.ZodTypeAny, "passthrough">>;
2799
+ "notification.audit.recorded": z.ZodObject<{
2800
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2801
+ } & {
2802
+ action: z.ZodString;
2803
+ entityType: z.ZodString;
2804
+ entityId: z.ZodNullable<z.ZodString>;
2805
+ outcome: z.ZodEnum<["success", "failure"]>;
2806
+ occurredAt: z.ZodString;
2807
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2808
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2809
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2810
+ } & {
2811
+ action: z.ZodString;
2812
+ entityType: z.ZodString;
2813
+ entityId: z.ZodNullable<z.ZodString>;
2814
+ outcome: z.ZodEnum<["success", "failure"]>;
2815
+ occurredAt: z.ZodString;
2816
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2817
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2818
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2819
+ } & {
2820
+ action: z.ZodString;
2821
+ entityType: z.ZodString;
2822
+ entityId: z.ZodNullable<z.ZodString>;
2823
+ outcome: z.ZodEnum<["success", "failure"]>;
2824
+ occurredAt: z.ZodString;
2825
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2826
+ }, z.ZodTypeAny, "passthrough">>;
2827
+ "reporting.audit.recorded": z.ZodObject<{
2828
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2829
+ } & {
2830
+ action: z.ZodString;
2831
+ entityType: z.ZodString;
2832
+ entityId: z.ZodNullable<z.ZodString>;
2833
+ outcome: z.ZodEnum<["success", "failure"]>;
2834
+ occurredAt: z.ZodString;
2835
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2836
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2837
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2838
+ } & {
2839
+ action: z.ZodString;
2840
+ entityType: z.ZodString;
2841
+ entityId: z.ZodNullable<z.ZodString>;
2842
+ outcome: z.ZodEnum<["success", "failure"]>;
2843
+ occurredAt: z.ZodString;
2844
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2845
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2846
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2847
+ } & {
2848
+ action: z.ZodString;
2849
+ entityType: z.ZodString;
2850
+ entityId: z.ZodNullable<z.ZodString>;
2851
+ outcome: z.ZodEnum<["success", "failure"]>;
2852
+ occurredAt: z.ZodString;
2853
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2854
+ }, z.ZodTypeAny, "passthrough">>;
2855
+ "usage.sms.sent": z.ZodObject<{
2856
+ companyId: z.ZodString;
2857
+ } & {
2858
+ messageId: z.ZodString;
2859
+ segments: z.ZodNumber;
2860
+ cost: z.ZodString;
2861
+ currency: z.ZodLiteral<"KES">;
2862
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2863
+ companyId: z.ZodString;
2864
+ } & {
2865
+ messageId: z.ZodString;
2866
+ segments: z.ZodNumber;
2867
+ cost: z.ZodString;
2868
+ currency: z.ZodLiteral<"KES">;
2869
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2870
+ companyId: z.ZodString;
2871
+ } & {
2872
+ messageId: z.ZodString;
2873
+ segments: z.ZodNumber;
2874
+ cost: z.ZodString;
2875
+ currency: z.ZodLiteral<"KES">;
2876
+ }, z.ZodTypeAny, "passthrough">>;
2877
+ "usage.delivery.booked": z.ZodObject<{
2878
+ companyId: z.ZodString;
2879
+ } & {
2880
+ shipmentId: z.ZodString;
2881
+ provider: z.ZodString;
2882
+ fee: z.ZodString;
2883
+ currency: z.ZodLiteral<"KES">;
2884
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2885
+ companyId: z.ZodString;
2886
+ } & {
2887
+ shipmentId: z.ZodString;
2888
+ provider: z.ZodString;
2889
+ fee: z.ZodString;
2890
+ currency: z.ZodLiteral<"KES">;
2891
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2892
+ companyId: z.ZodString;
2893
+ } & {
2894
+ shipmentId: z.ZodString;
2895
+ provider: z.ZodString;
2896
+ fee: z.ZodString;
2897
+ currency: z.ZodLiteral<"KES">;
2898
+ }, z.ZodTypeAny, "passthrough">>;
2899
+ "shipping.shipment.created": z.ZodObject<{
2900
+ companyId: z.ZodString;
2901
+ } & {
2902
+ method: z.ZodString;
2903
+ shipmentId: z.ZodString;
2904
+ orderId: z.ZodString;
2905
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2906
+ companyId: z.ZodString;
2907
+ } & {
2908
+ method: z.ZodString;
2909
+ shipmentId: z.ZodString;
2910
+ orderId: z.ZodString;
2911
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2912
+ companyId: z.ZodString;
2913
+ } & {
2914
+ method: z.ZodString;
2915
+ shipmentId: z.ZodString;
2916
+ orderId: z.ZodString;
2917
+ }, z.ZodTypeAny, "passthrough">>;
2918
+ "shipping.shipment.dispatched": z.ZodObject<{
2919
+ companyId: z.ZodString;
2920
+ } & {
2921
+ trackingNumber: z.ZodNullable<z.ZodString>;
2922
+ shipmentId: z.ZodString;
2923
+ orderId: z.ZodString;
2924
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2925
+ companyId: z.ZodString;
2926
+ } & {
2927
+ trackingNumber: z.ZodNullable<z.ZodString>;
2928
+ shipmentId: z.ZodString;
2929
+ orderId: z.ZodString;
2930
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2931
+ companyId: z.ZodString;
2932
+ } & {
2933
+ trackingNumber: z.ZodNullable<z.ZodString>;
2934
+ shipmentId: z.ZodString;
2935
+ orderId: z.ZodString;
2936
+ }, z.ZodTypeAny, "passthrough">>;
2937
+ "shipping.shipment.delivered": z.ZodObject<{
2938
+ companyId: z.ZodString;
2939
+ } & {
2940
+ deliveredAt: z.ZodString;
2941
+ shipmentId: z.ZodString;
2942
+ orderId: z.ZodString;
2943
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2944
+ companyId: z.ZodString;
2945
+ } & {
2946
+ deliveredAt: z.ZodString;
2947
+ shipmentId: z.ZodString;
2948
+ orderId: z.ZodString;
2949
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2950
+ companyId: z.ZodString;
2951
+ } & {
2952
+ deliveredAt: z.ZodString;
2953
+ shipmentId: z.ZodString;
2954
+ orderId: z.ZodString;
2955
+ }, z.ZodTypeAny, "passthrough">>;
2956
+ "shipping.shipment.failed": z.ZodObject<{
2957
+ companyId: z.ZodString;
2958
+ } & {
2959
+ reason: z.ZodString;
2960
+ shipmentId: z.ZodString;
2961
+ orderId: z.ZodString;
2962
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2963
+ companyId: z.ZodString;
2964
+ } & {
2965
+ reason: z.ZodString;
2966
+ shipmentId: z.ZodString;
2967
+ orderId: z.ZodString;
2968
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2969
+ companyId: z.ZodString;
2970
+ } & {
2971
+ reason: z.ZodString;
2972
+ shipmentId: z.ZodString;
2973
+ orderId: z.ZodString;
2974
+ }, z.ZodTypeAny, "passthrough">>;
2975
+ "payment.payment.initiated": z.ZodObject<{
2976
+ companyId: z.ZodString;
2977
+ } & {
2978
+ method: z.ZodString;
2979
+ amount: z.ZodString;
2980
+ currency: z.ZodLiteral<"KES">;
2981
+ paymentId: z.ZodString;
2982
+ orderId: z.ZodString;
2983
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2984
+ companyId: z.ZodString;
2985
+ } & {
2986
+ method: z.ZodString;
2987
+ amount: z.ZodString;
2988
+ currency: z.ZodLiteral<"KES">;
2989
+ paymentId: z.ZodString;
2990
+ orderId: z.ZodString;
2991
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2992
+ companyId: z.ZodString;
2993
+ } & {
2994
+ method: z.ZodString;
2995
+ amount: z.ZodString;
2996
+ currency: z.ZodLiteral<"KES">;
2997
+ paymentId: z.ZodString;
2998
+ orderId: z.ZodString;
2999
+ }, z.ZodTypeAny, "passthrough">>;
3000
+ "payment.payment.succeeded": z.ZodObject<{
3001
+ companyId: z.ZodString;
3002
+ } & {
3003
+ providerRef: z.ZodString;
3004
+ paidAt: z.ZodString;
3005
+ amount: z.ZodString;
3006
+ currency: z.ZodLiteral<"KES">;
3007
+ paymentId: z.ZodString;
3008
+ orderId: z.ZodString;
3009
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3010
+ companyId: z.ZodString;
3011
+ } & {
3012
+ providerRef: z.ZodString;
3013
+ paidAt: z.ZodString;
3014
+ amount: z.ZodString;
3015
+ currency: z.ZodLiteral<"KES">;
3016
+ paymentId: z.ZodString;
3017
+ orderId: z.ZodString;
3018
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3019
+ companyId: z.ZodString;
3020
+ } & {
3021
+ providerRef: z.ZodString;
3022
+ paidAt: z.ZodString;
3023
+ amount: z.ZodString;
3024
+ currency: z.ZodLiteral<"KES">;
3025
+ paymentId: z.ZodString;
3026
+ orderId: z.ZodString;
3027
+ }, z.ZodTypeAny, "passthrough">>;
3028
+ "payment.payment.failed": z.ZodObject<{
3029
+ companyId: z.ZodString;
3030
+ } & {
3031
+ paymentId: z.ZodString;
3032
+ orderId: z.ZodString;
3033
+ reason: z.ZodString;
3034
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3035
+ companyId: z.ZodString;
3036
+ } & {
3037
+ paymentId: z.ZodString;
3038
+ orderId: z.ZodString;
3039
+ reason: z.ZodString;
3040
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3041
+ companyId: z.ZodString;
3042
+ } & {
3043
+ paymentId: z.ZodString;
3044
+ orderId: z.ZodString;
3045
+ reason: z.ZodString;
3046
+ }, z.ZodTypeAny, "passthrough">>;
3047
+ "payment.payment.expired": z.ZodObject<{
3048
+ companyId: z.ZodString;
3049
+ } & {
3050
+ paymentId: z.ZodString;
3051
+ orderId: z.ZodString;
3052
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3053
+ companyId: z.ZodString;
3054
+ } & {
3055
+ paymentId: z.ZodString;
3056
+ orderId: z.ZodString;
3057
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3058
+ companyId: z.ZodString;
3059
+ } & {
3060
+ paymentId: z.ZodString;
3061
+ orderId: z.ZodString;
3062
+ }, z.ZodTypeAny, "passthrough">>;
3063
+ "payment.refund.completed": z.ZodObject<{
3064
+ companyId: z.ZodString;
3065
+ } & {
3066
+ completedAt: z.ZodString;
3067
+ amount: z.ZodString;
3068
+ currency: z.ZodLiteral<"KES">;
3069
+ refundId: z.ZodString;
3070
+ orderId: z.ZodString;
3071
+ paymentId: z.ZodString;
3072
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3073
+ companyId: z.ZodString;
3074
+ } & {
3075
+ completedAt: z.ZodString;
3076
+ amount: z.ZodString;
3077
+ currency: z.ZodLiteral<"KES">;
3078
+ refundId: z.ZodString;
3079
+ orderId: z.ZodString;
3080
+ paymentId: z.ZodString;
3081
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3082
+ companyId: z.ZodString;
3083
+ } & {
3084
+ completedAt: z.ZodString;
3085
+ amount: z.ZodString;
3086
+ currency: z.ZodLiteral<"KES">;
3087
+ refundId: z.ZodString;
3088
+ orderId: z.ZodString;
3089
+ paymentId: z.ZodString;
3090
+ }, z.ZodTypeAny, "passthrough">>;
3091
+ "payment.refund.failed": z.ZodObject<{
3092
+ companyId: z.ZodString;
3093
+ } & {
3094
+ refundId: z.ZodString;
3095
+ orderId: z.ZodString;
3096
+ reason: z.ZodString;
3097
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3098
+ companyId: z.ZodString;
3099
+ } & {
3100
+ refundId: z.ZodString;
3101
+ orderId: z.ZodString;
3102
+ reason: z.ZodString;
3103
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3104
+ companyId: z.ZodString;
3105
+ } & {
3106
+ refundId: z.ZodString;
3107
+ orderId: z.ZodString;
3108
+ reason: z.ZodString;
3109
+ }, z.ZodTypeAny, "passthrough">>;
3110
+ "payment.payout.scheduled": z.ZodObject<{
3111
+ companyId: z.ZodString;
3112
+ } & {
3113
+ scheduledFor: z.ZodString;
3114
+ amount: z.ZodString;
3115
+ currency: z.ZodLiteral<"KES">;
3116
+ payoutId: z.ZodString;
3117
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3118
+ companyId: z.ZodString;
3119
+ } & {
3120
+ scheduledFor: z.ZodString;
3121
+ amount: z.ZodString;
3122
+ currency: z.ZodLiteral<"KES">;
3123
+ payoutId: z.ZodString;
3124
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3125
+ companyId: z.ZodString;
3126
+ } & {
3127
+ scheduledFor: z.ZodString;
3128
+ amount: z.ZodString;
3129
+ currency: z.ZodLiteral<"KES">;
3130
+ payoutId: z.ZodString;
3131
+ }, z.ZodTypeAny, "passthrough">>;
3132
+ "payment.payout.paid": z.ZodObject<{
3133
+ companyId: z.ZodString;
3134
+ } & {
3135
+ providerRef: z.ZodString;
3136
+ paidAt: z.ZodString;
3137
+ amount: z.ZodString;
3138
+ currency: z.ZodLiteral<"KES">;
3139
+ payoutId: z.ZodString;
3140
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3141
+ companyId: z.ZodString;
3142
+ } & {
3143
+ providerRef: z.ZodString;
3144
+ paidAt: z.ZodString;
3145
+ amount: z.ZodString;
3146
+ currency: z.ZodLiteral<"KES">;
3147
+ payoutId: z.ZodString;
3148
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3149
+ companyId: z.ZodString;
3150
+ } & {
3151
+ providerRef: z.ZodString;
3152
+ paidAt: z.ZodString;
3153
+ amount: z.ZodString;
3154
+ currency: z.ZodLiteral<"KES">;
3155
+ payoutId: z.ZodString;
3156
+ }, z.ZodTypeAny, "passthrough">>;
3157
+ "payment.payout.failed": z.ZodObject<{
3158
+ companyId: z.ZodString;
3159
+ } & {
3160
+ reason: z.ZodString;
3161
+ amount: z.ZodString;
3162
+ currency: z.ZodLiteral<"KES">;
3163
+ payoutId: z.ZodString;
3164
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3165
+ companyId: z.ZodString;
3166
+ } & {
3167
+ reason: z.ZodString;
3168
+ amount: z.ZodString;
3169
+ currency: z.ZodLiteral<"KES">;
3170
+ payoutId: z.ZodString;
3171
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3172
+ companyId: z.ZodString;
3173
+ } & {
3174
+ reason: z.ZodString;
3175
+ amount: z.ZodString;
3176
+ currency: z.ZodLiteral<"KES">;
3177
+ payoutId: z.ZodString;
3178
+ }, z.ZodTypeAny, "passthrough">>;
3179
+ "order.order.created": z.ZodObject<{
3180
+ companyId: z.ZodString;
3181
+ } & {
3182
+ userId: z.ZodString;
3183
+ grandTotal: z.ZodString;
3184
+ currency: z.ZodLiteral<"KES">;
3185
+ orderId: z.ZodString;
3186
+ orderNumber: z.ZodString;
3187
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3188
+ companyId: z.ZodString;
3189
+ } & {
3190
+ userId: z.ZodString;
3191
+ grandTotal: z.ZodString;
3192
+ currency: z.ZodLiteral<"KES">;
3193
+ orderId: z.ZodString;
3194
+ orderNumber: z.ZodString;
3195
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3196
+ companyId: z.ZodString;
3197
+ } & {
3198
+ userId: z.ZodString;
3199
+ grandTotal: z.ZodString;
3200
+ currency: z.ZodLiteral<"KES">;
3201
+ orderId: z.ZodString;
3202
+ orderNumber: z.ZodString;
3203
+ }, z.ZodTypeAny, "passthrough">>;
3204
+ "order.order.paid": z.ZodObject<{
3205
+ companyId: z.ZodString;
3206
+ } & {
3207
+ userId: z.ZodString;
3208
+ grandTotal: z.ZodString;
3209
+ currency: z.ZodLiteral<"KES">;
3210
+ paidAt: z.ZodString;
3211
+ orderId: z.ZodString;
3212
+ orderNumber: z.ZodString;
3213
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3214
+ companyId: z.ZodString;
3215
+ } & {
3216
+ userId: z.ZodString;
3217
+ grandTotal: z.ZodString;
3218
+ currency: z.ZodLiteral<"KES">;
3219
+ paidAt: z.ZodString;
3220
+ orderId: z.ZodString;
3221
+ orderNumber: z.ZodString;
3222
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3223
+ companyId: z.ZodString;
3224
+ } & {
3225
+ userId: z.ZodString;
3226
+ grandTotal: z.ZodString;
3227
+ currency: z.ZodLiteral<"KES">;
3228
+ paidAt: z.ZodString;
3229
+ orderId: z.ZodString;
3230
+ orderNumber: z.ZodString;
3231
+ }, z.ZodTypeAny, "passthrough">>;
3232
+ "order.order.status_changed": z.ZodObject<{
3233
+ companyId: z.ZodString;
3234
+ } & {
3235
+ from: z.ZodString;
3236
+ to: z.ZodString;
3237
+ orderId: z.ZodString;
3238
+ orderNumber: z.ZodString;
3239
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3240
+ companyId: z.ZodString;
3241
+ } & {
3242
+ from: z.ZodString;
3243
+ to: z.ZodString;
3244
+ orderId: z.ZodString;
3245
+ orderNumber: z.ZodString;
3246
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3247
+ companyId: z.ZodString;
3248
+ } & {
3249
+ from: z.ZodString;
3250
+ to: z.ZodString;
3251
+ orderId: z.ZodString;
3252
+ orderNumber: z.ZodString;
3253
+ }, z.ZodTypeAny, "passthrough">>;
3254
+ "order.order.shipped": z.ZodObject<{
3255
+ companyId: z.ZodString;
3256
+ } & {
3257
+ userId: z.ZodString;
3258
+ shipmentId: z.ZodString;
3259
+ orderId: z.ZodString;
3260
+ orderNumber: z.ZodString;
3261
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3262
+ companyId: z.ZodString;
3263
+ } & {
3264
+ userId: z.ZodString;
3265
+ shipmentId: z.ZodString;
3266
+ orderId: z.ZodString;
3267
+ orderNumber: z.ZodString;
3268
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3269
+ companyId: z.ZodString;
3270
+ } & {
3271
+ userId: z.ZodString;
3272
+ shipmentId: z.ZodString;
3273
+ orderId: z.ZodString;
3274
+ orderNumber: z.ZodString;
3275
+ }, z.ZodTypeAny, "passthrough">>;
3276
+ "order.order.delivered": z.ZodObject<{
3277
+ companyId: z.ZodString;
3278
+ } & {
3279
+ userId: z.ZodString;
3280
+ deliveredAt: z.ZodString;
3281
+ orderId: z.ZodString;
3282
+ orderNumber: z.ZodString;
3283
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3284
+ companyId: z.ZodString;
3285
+ } & {
3286
+ userId: z.ZodString;
3287
+ deliveredAt: z.ZodString;
3288
+ orderId: z.ZodString;
3289
+ orderNumber: z.ZodString;
3290
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3291
+ companyId: z.ZodString;
3292
+ } & {
3293
+ userId: z.ZodString;
3294
+ deliveredAt: z.ZodString;
3295
+ orderId: z.ZodString;
3296
+ orderNumber: z.ZodString;
3297
+ }, z.ZodTypeAny, "passthrough">>;
3298
+ "order.order.cancelled": z.ZodObject<{
3299
+ companyId: z.ZodString;
3300
+ } & {
3301
+ userId: z.ZodString;
3302
+ reason: z.ZodString;
3303
+ orderId: z.ZodString;
3304
+ orderNumber: z.ZodString;
3305
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3306
+ companyId: z.ZodString;
3307
+ } & {
3308
+ userId: z.ZodString;
3309
+ reason: z.ZodString;
3310
+ orderId: z.ZodString;
3311
+ orderNumber: z.ZodString;
3312
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3313
+ companyId: z.ZodString;
3314
+ } & {
3315
+ userId: z.ZodString;
3316
+ reason: z.ZodString;
3317
+ orderId: z.ZodString;
3318
+ orderNumber: z.ZodString;
3319
+ }, z.ZodTypeAny, "passthrough">>;
3320
+ "order.order.expired": z.ZodObject<{
3321
+ companyId: z.ZodString;
3322
+ } & {
3323
+ userId: z.ZodString;
3324
+ orderId: z.ZodString;
3325
+ orderNumber: z.ZodString;
3326
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3327
+ companyId: z.ZodString;
3328
+ } & {
3329
+ userId: z.ZodString;
3330
+ orderId: z.ZodString;
3331
+ orderNumber: z.ZodString;
3332
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3333
+ companyId: z.ZodString;
3334
+ } & {
3335
+ userId: z.ZodString;
3336
+ orderId: z.ZodString;
3337
+ orderNumber: z.ZodString;
3338
+ }, z.ZodTypeAny, "passthrough">>;
3339
+ "order.order.refund_requested": z.ZodObject<{
3340
+ companyId: z.ZodString;
3341
+ } & {
3342
+ refundId: z.ZodString;
3343
+ amount: z.ZodString;
3344
+ currency: z.ZodLiteral<"KES">;
3345
+ reason: z.ZodString;
3346
+ orderId: z.ZodString;
3347
+ orderNumber: z.ZodString;
3348
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3349
+ companyId: z.ZodString;
3350
+ } & {
3351
+ refundId: z.ZodString;
3352
+ amount: z.ZodString;
3353
+ currency: z.ZodLiteral<"KES">;
3354
+ reason: z.ZodString;
3355
+ orderId: z.ZodString;
3356
+ orderNumber: z.ZodString;
3357
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3358
+ companyId: z.ZodString;
3359
+ } & {
3360
+ refundId: z.ZodString;
3361
+ amount: z.ZodString;
3362
+ currency: z.ZodLiteral<"KES">;
3363
+ reason: z.ZodString;
3364
+ orderId: z.ZodString;
3365
+ orderNumber: z.ZodString;
3366
+ }, z.ZodTypeAny, "passthrough">>;
3367
+ "order.issue.opened": z.ZodObject<{
3368
+ companyId: z.ZodString;
3369
+ } & {
3370
+ issueId: z.ZodString;
3371
+ orderId: z.ZodString;
3372
+ userId: z.ZodString;
3373
+ type: z.ZodString;
3374
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3375
+ companyId: z.ZodString;
3376
+ } & {
3377
+ issueId: z.ZodString;
3378
+ orderId: z.ZodString;
3379
+ userId: z.ZodString;
3380
+ type: z.ZodString;
3381
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3382
+ companyId: z.ZodString;
3383
+ } & {
3384
+ issueId: z.ZodString;
3385
+ orderId: z.ZodString;
3386
+ userId: z.ZodString;
3387
+ type: z.ZodString;
3388
+ }, z.ZodTypeAny, "passthrough">>;
3389
+ "order.issue.replied": z.ZodObject<{
3390
+ companyId: z.ZodString;
3391
+ } & {
3392
+ issueId: z.ZodString;
3393
+ orderId: z.ZodString;
3394
+ from: z.ZodEnum<["customer", "staff"]>;
3395
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3396
+ companyId: z.ZodString;
3397
+ } & {
3398
+ issueId: z.ZodString;
3399
+ orderId: z.ZodString;
3400
+ from: z.ZodEnum<["customer", "staff"]>;
3401
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3402
+ companyId: z.ZodString;
3403
+ } & {
3404
+ issueId: z.ZodString;
3405
+ orderId: z.ZodString;
3406
+ from: z.ZodEnum<["customer", "staff"]>;
3407
+ }, z.ZodTypeAny, "passthrough">>;
3408
+ "order.issue.escalated": z.ZodObject<{
3409
+ companyId: z.ZodString;
3410
+ } & {
3411
+ issueId: z.ZodString;
3412
+ orderId: z.ZodString;
3413
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3414
+ companyId: z.ZodString;
3415
+ } & {
3416
+ issueId: z.ZodString;
3417
+ orderId: z.ZodString;
3418
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3419
+ companyId: z.ZodString;
3420
+ } & {
3421
+ issueId: z.ZodString;
3422
+ orderId: z.ZodString;
3423
+ }, z.ZodTypeAny, "passthrough">>;
3424
+ "order.issue.resolved": z.ZodObject<{
3425
+ companyId: z.ZodString;
3426
+ } & {
3427
+ issueId: z.ZodString;
3428
+ orderId: z.ZodString;
3429
+ resolution: z.ZodString;
3430
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3431
+ companyId: z.ZodString;
3432
+ } & {
3433
+ issueId: z.ZodString;
3434
+ orderId: z.ZodString;
3435
+ resolution: z.ZodString;
3436
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3437
+ companyId: z.ZodString;
3438
+ } & {
3439
+ issueId: z.ZodString;
3440
+ orderId: z.ZodString;
3441
+ resolution: z.ZodString;
3442
+ }, z.ZodTypeAny, "passthrough">>;
3443
+ "cart.cart.updated": z.ZodObject<{
3444
+ companyId: z.ZodString;
3445
+ } & {
3446
+ cartId: z.ZodString;
3447
+ userId: z.ZodNullable<z.ZodString>;
3448
+ itemCount: z.ZodNumber;
3449
+ subtotal: z.ZodString;
3450
+ currency: z.ZodLiteral<"KES">;
3451
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3452
+ companyId: z.ZodString;
3453
+ } & {
3454
+ cartId: z.ZodString;
3455
+ userId: z.ZodNullable<z.ZodString>;
3456
+ itemCount: z.ZodNumber;
3457
+ subtotal: z.ZodString;
3458
+ currency: z.ZodLiteral<"KES">;
3459
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3460
+ companyId: z.ZodString;
3461
+ } & {
3462
+ cartId: z.ZodString;
3463
+ userId: z.ZodNullable<z.ZodString>;
3464
+ itemCount: z.ZodNumber;
3465
+ subtotal: z.ZodString;
3466
+ currency: z.ZodLiteral<"KES">;
3467
+ }, z.ZodTypeAny, "passthrough">>;
3468
+ "media.file.uploaded": z.ZodObject<{
3469
+ companyId: z.ZodString;
3470
+ } & {
3471
+ fileId: z.ZodString;
3472
+ purpose: z.ZodString;
3473
+ contentType: z.ZodString;
3474
+ sizeBytes: z.ZodNumber;
3475
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3476
+ companyId: z.ZodString;
3477
+ } & {
3478
+ fileId: z.ZodString;
3479
+ purpose: z.ZodString;
3480
+ contentType: z.ZodString;
3481
+ sizeBytes: z.ZodNumber;
3482
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3483
+ companyId: z.ZodString;
3484
+ } & {
3485
+ fileId: z.ZodString;
3486
+ purpose: z.ZodString;
3487
+ contentType: z.ZodString;
3488
+ sizeBytes: z.ZodNumber;
3489
+ }, z.ZodTypeAny, "passthrough">>;
3490
+ "media.file.processed": z.ZodObject<{
3491
+ companyId: z.ZodString;
3492
+ } & {
3493
+ fileId: z.ZodString;
3494
+ status: z.ZodEnum<["ready", "failed"]>;
3495
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3496
+ companyId: z.ZodString;
3497
+ } & {
3498
+ fileId: z.ZodString;
3499
+ status: z.ZodEnum<["ready", "failed"]>;
3500
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3501
+ companyId: z.ZodString;
3502
+ } & {
3503
+ fileId: z.ZodString;
3504
+ status: z.ZodEnum<["ready", "failed"]>;
3505
+ }, z.ZodTypeAny, "passthrough">>;
3506
+ "catalog.product.created": z.ZodObject<{
3507
+ companyId: z.ZodString;
3508
+ } & {
3509
+ productId: z.ZodString;
3510
+ status: z.ZodString;
3511
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3512
+ companyId: z.ZodString;
3513
+ } & {
3514
+ productId: z.ZodString;
3515
+ status: z.ZodString;
3516
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3517
+ companyId: z.ZodString;
3518
+ } & {
3519
+ productId: z.ZodString;
3520
+ status: z.ZodString;
3521
+ }, z.ZodTypeAny, "passthrough">>;
3522
+ "catalog.product.updated": z.ZodObject<{
3523
+ companyId: z.ZodString;
3524
+ } & {
3525
+ productId: z.ZodString;
3526
+ changedFields: z.ZodArray<z.ZodString, "many">;
3527
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3528
+ companyId: z.ZodString;
3529
+ } & {
3530
+ productId: z.ZodString;
3531
+ changedFields: z.ZodArray<z.ZodString, "many">;
3532
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3533
+ companyId: z.ZodString;
3534
+ } & {
3535
+ productId: z.ZodString;
3536
+ changedFields: z.ZodArray<z.ZodString, "many">;
3537
+ }, z.ZodTypeAny, "passthrough">>;
3538
+ "catalog.product.deleted": z.ZodObject<{
3539
+ companyId: z.ZodString;
3540
+ } & {
3541
+ productId: z.ZodString;
3542
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3543
+ companyId: z.ZodString;
3544
+ } & {
3545
+ productId: z.ZodString;
3546
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3547
+ companyId: z.ZodString;
3548
+ } & {
3549
+ productId: z.ZodString;
3550
+ }, z.ZodTypeAny, "passthrough">>;
3551
+ "catalog.category.updated": z.ZodObject<{
3552
+ companyId: z.ZodString;
3553
+ } & {
3554
+ categoryId: z.ZodString;
3555
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3556
+ companyId: z.ZodString;
3557
+ } & {
3558
+ categoryId: z.ZodString;
3559
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3560
+ companyId: z.ZodString;
3561
+ } & {
3562
+ categoryId: z.ZodString;
3563
+ }, z.ZodTypeAny, "passthrough">>;
3564
+ "catalog.inventory.adjusted": z.ZodObject<{
3565
+ companyId: z.ZodString;
3566
+ } & {
3567
+ productId: z.ZodString;
3568
+ variantId: z.ZodNullable<z.ZodString>;
3569
+ delta: z.ZodNumber;
3570
+ onHand: z.ZodNumber;
3571
+ reason: z.ZodString;
3572
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3573
+ companyId: z.ZodString;
3574
+ } & {
3575
+ productId: z.ZodString;
3576
+ variantId: z.ZodNullable<z.ZodString>;
3577
+ delta: z.ZodNumber;
3578
+ onHand: z.ZodNumber;
3579
+ reason: z.ZodString;
3580
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3581
+ companyId: z.ZodString;
3582
+ } & {
3583
+ productId: z.ZodString;
3584
+ variantId: z.ZodNullable<z.ZodString>;
3585
+ delta: z.ZodNumber;
3586
+ onHand: z.ZodNumber;
3587
+ reason: z.ZodString;
3588
+ }, z.ZodTypeAny, "passthrough">>;
3589
+ "catalog.inventory.low_stock": z.ZodObject<{
3590
+ companyId: z.ZodString;
3591
+ } & {
3592
+ productId: z.ZodString;
3593
+ variantId: z.ZodNullable<z.ZodString>;
3594
+ onHand: z.ZodNumber;
3595
+ threshold: z.ZodNumber;
3596
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3597
+ companyId: z.ZodString;
3598
+ } & {
3599
+ productId: z.ZodString;
3600
+ variantId: z.ZodNullable<z.ZodString>;
3601
+ onHand: z.ZodNumber;
3602
+ threshold: z.ZodNumber;
3603
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3604
+ companyId: z.ZodString;
3605
+ } & {
3606
+ productId: z.ZodString;
3607
+ variantId: z.ZodNullable<z.ZodString>;
3608
+ onHand: z.ZodNumber;
3609
+ threshold: z.ZodNumber;
3610
+ }, z.ZodTypeAny, "passthrough">>;
3611
+ "store.shop.provisioned": z.ZodObject<{
3612
+ companyId: z.ZodString;
3613
+ } & {
3614
+ shopId: z.ZodString;
3615
+ slug: z.ZodString;
3616
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3617
+ companyId: z.ZodString;
3618
+ } & {
3619
+ shopId: z.ZodString;
3620
+ slug: z.ZodString;
3621
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3622
+ companyId: z.ZodString;
3623
+ } & {
3624
+ shopId: z.ZodString;
3625
+ slug: z.ZodString;
3626
+ }, z.ZodTypeAny, "passthrough">>;
3627
+ "store.settings.changed": z.ZodObject<{
3628
+ companyId: z.ZodString;
3629
+ } & {
3630
+ shopId: z.ZodString;
3631
+ changedFields: z.ZodArray<z.ZodString, "many">;
3632
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3633
+ companyId: z.ZodString;
3634
+ } & {
3635
+ shopId: z.ZodString;
3636
+ changedFields: z.ZodArray<z.ZodString, "many">;
3637
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3638
+ companyId: z.ZodString;
3639
+ } & {
3640
+ shopId: z.ZodString;
3641
+ changedFields: z.ZodArray<z.ZodString, "many">;
3642
+ }, z.ZodTypeAny, "passthrough">>;
3643
+ "store.theme.published": z.ZodObject<{
3644
+ companyId: z.ZodString;
3645
+ } & {
3646
+ shopId: z.ZodString;
3647
+ themeId: z.ZodString;
3648
+ revision: z.ZodNumber;
3649
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3650
+ companyId: z.ZodString;
3651
+ } & {
3652
+ shopId: z.ZodString;
3653
+ themeId: z.ZodString;
3654
+ revision: z.ZodNumber;
3655
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3656
+ companyId: z.ZodString;
3657
+ } & {
3658
+ shopId: z.ZodString;
3659
+ themeId: z.ZodString;
3660
+ revision: z.ZodNumber;
3661
+ }, z.ZodTypeAny, "passthrough">>;
3662
+ "store.domain.changed": z.ZodObject<{
3663
+ companyId: z.ZodString;
3664
+ } & {
3665
+ shopId: z.ZodString;
3666
+ domainId: z.ZodString;
3667
+ hostname: z.ZodString;
3668
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3669
+ companyId: z.ZodString;
3670
+ } & {
3671
+ shopId: z.ZodString;
3672
+ domainId: z.ZodString;
3673
+ hostname: z.ZodString;
3674
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3675
+ companyId: z.ZodString;
3676
+ } & {
3677
+ shopId: z.ZodString;
3678
+ domainId: z.ZodString;
3679
+ hostname: z.ZodString;
3680
+ }, z.ZodTypeAny, "passthrough">>;
3681
+ "store.domain.verified": z.ZodObject<{
3682
+ companyId: z.ZodString;
3683
+ } & {
3684
+ shopId: z.ZodString;
3685
+ domainId: z.ZodString;
3686
+ hostname: z.ZodString;
3687
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3688
+ companyId: z.ZodString;
3689
+ } & {
3690
+ shopId: z.ZodString;
3691
+ domainId: z.ZodString;
3692
+ hostname: z.ZodString;
3693
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3694
+ companyId: z.ZodString;
3695
+ } & {
3696
+ shopId: z.ZodString;
3697
+ domainId: z.ZodString;
3698
+ hostname: z.ZodString;
3699
+ }, z.ZodTypeAny, "passthrough">>;
3700
+ "store.domain.failed": z.ZodObject<{
3701
+ companyId: z.ZodString;
3702
+ } & {
3703
+ shopId: z.ZodString;
3704
+ domainId: z.ZodString;
3705
+ hostname: z.ZodString;
3706
+ reason: z.ZodString;
3707
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3708
+ companyId: z.ZodString;
3709
+ } & {
3710
+ shopId: z.ZodString;
3711
+ domainId: z.ZodString;
3712
+ hostname: z.ZodString;
3713
+ reason: z.ZodString;
3714
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3715
+ companyId: z.ZodString;
3716
+ } & {
3717
+ shopId: z.ZodString;
3718
+ domainId: z.ZodString;
3719
+ hostname: z.ZodString;
3720
+ reason: z.ZodString;
3721
+ }, z.ZodTypeAny, "passthrough">>;
3722
+ "gateway.security.access_denied": z.ZodObject<{
3723
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3724
+ } & {
3725
+ userId: z.ZodNullable<z.ZodString>;
3726
+ route: z.ZodString;
3727
+ method: z.ZodString;
3728
+ code: z.ZodString;
3729
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3730
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3731
+ } & {
3732
+ userId: z.ZodNullable<z.ZodString>;
3733
+ route: z.ZodString;
3734
+ method: z.ZodString;
3735
+ code: z.ZodString;
3736
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3737
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3738
+ } & {
3739
+ userId: z.ZodNullable<z.ZodString>;
3740
+ route: z.ZodString;
3741
+ method: z.ZodString;
3742
+ code: z.ZodString;
3743
+ }, z.ZodTypeAny, "passthrough">>;
3744
+ "gateway.security.rate_limited": z.ZodObject<{
3745
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3746
+ } & {
3747
+ userId: z.ZodNullable<z.ZodString>;
3748
+ route: z.ZodString;
3749
+ method: z.ZodString;
3750
+ limiter: z.ZodString;
3751
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3752
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3753
+ } & {
3754
+ userId: z.ZodNullable<z.ZodString>;
3755
+ route: z.ZodString;
3756
+ method: z.ZodString;
3757
+ limiter: z.ZodString;
3758
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3759
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3760
+ } & {
3761
+ userId: z.ZodNullable<z.ZodString>;
3762
+ route: z.ZodString;
3763
+ method: z.ZodString;
3764
+ limiter: z.ZodString;
3765
+ }, z.ZodTypeAny, "passthrough">>;
3766
+ "gateway.security.bad_signature": z.ZodObject<{
3767
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3768
+ } & {
3769
+ route: z.ZodString;
3770
+ method: z.ZodString;
3771
+ reason: z.ZodString;
3772
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3773
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3774
+ } & {
3775
+ route: z.ZodString;
3776
+ method: z.ZodString;
3777
+ reason: z.ZodString;
3778
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3779
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3780
+ } & {
3781
+ route: z.ZodString;
3782
+ method: z.ZodString;
3783
+ reason: z.ZodString;
3784
+ }, z.ZodTypeAny, "passthrough">>;
3785
+ "auth.security.login_succeeded": z.ZodObject<{
3786
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3787
+ } & {
3788
+ userId: z.ZodString;
3789
+ sessionId: z.ZodString;
3790
+ method: z.ZodEnum<["password", "otp", "sso"]>;
3791
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3792
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3793
+ } & {
3794
+ userId: z.ZodString;
3795
+ sessionId: z.ZodString;
3796
+ method: z.ZodEnum<["password", "otp", "sso"]>;
3797
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3798
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3799
+ } & {
3800
+ userId: z.ZodString;
3801
+ sessionId: z.ZodString;
3802
+ method: z.ZodEnum<["password", "otp", "sso"]>;
3803
+ }, z.ZodTypeAny, "passthrough">>;
3804
+ "auth.security.login_failed": z.ZodObject<{
3805
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3806
+ } & {
3807
+ userId: z.ZodNullable<z.ZodString>;
3808
+ reason: z.ZodString;
3809
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3810
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3811
+ } & {
3812
+ userId: z.ZodNullable<z.ZodString>;
3813
+ reason: z.ZodString;
3814
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3815
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3816
+ } & {
3817
+ userId: z.ZodNullable<z.ZodString>;
3818
+ reason: z.ZodString;
3819
+ }, z.ZodTypeAny, "passthrough">>;
3820
+ "auth.security.otp_failed": z.ZodObject<{
3821
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3822
+ } & {
3823
+ userId: z.ZodString;
3824
+ purpose: z.ZodString;
3825
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3826
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3827
+ } & {
3828
+ userId: z.ZodString;
3829
+ purpose: z.ZodString;
3830
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3831
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3832
+ } & {
3833
+ userId: z.ZodString;
3834
+ purpose: z.ZodString;
3835
+ }, z.ZodTypeAny, "passthrough">>;
3836
+ "auth.security.step_up": z.ZodObject<{
3837
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3838
+ } & {
3839
+ userId: z.ZodString;
3840
+ sessionId: z.ZodString;
3841
+ scope: z.ZodString;
3842
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3843
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3844
+ } & {
3845
+ userId: z.ZodString;
3846
+ sessionId: z.ZodString;
3847
+ scope: z.ZodString;
3848
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3849
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3850
+ } & {
3851
+ userId: z.ZodString;
3852
+ sessionId: z.ZodString;
3853
+ scope: z.ZodString;
3854
+ }, z.ZodTypeAny, "passthrough">>;
3855
+ "auth.security.account_locked": z.ZodObject<{
3856
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3857
+ } & {
3858
+ userId: z.ZodString;
3859
+ lockedUntil: z.ZodString;
3860
+ reason: z.ZodString;
3861
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3862
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3863
+ } & {
3864
+ userId: z.ZodString;
3865
+ lockedUntil: z.ZodString;
3866
+ reason: z.ZodString;
3867
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3868
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3869
+ } & {
3870
+ userId: z.ZodString;
3871
+ lockedUntil: z.ZodString;
3872
+ reason: z.ZodString;
3873
+ }, z.ZodTypeAny, "passthrough">>;
3874
+ "auth.security.sessions_revoked": z.ZodObject<{
3875
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3876
+ } & {
3877
+ userId: z.ZodString;
3878
+ count: z.ZodNumber;
3879
+ reason: z.ZodString;
3880
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3881
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3882
+ } & {
3883
+ userId: z.ZodString;
3884
+ count: z.ZodNumber;
3885
+ reason: z.ZodString;
3886
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3887
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3888
+ } & {
3889
+ userId: z.ZodString;
3890
+ count: z.ZodNumber;
3891
+ reason: z.ZodString;
3892
+ }, z.ZodTypeAny, "passthrough">>;
3893
+ "auth.security.role_changed": z.ZodObject<{
3894
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3895
+ } & {
3896
+ userId: z.ZodString;
3897
+ roleId: z.ZodString;
3898
+ change: z.ZodEnum<["assigned", "revoked"]>;
3899
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3900
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3901
+ } & {
3902
+ userId: z.ZodString;
3903
+ roleId: z.ZodString;
3904
+ change: z.ZodEnum<["assigned", "revoked"]>;
3905
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3906
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3907
+ } & {
3908
+ userId: z.ZodString;
3909
+ roleId: z.ZodString;
3910
+ change: z.ZodEnum<["assigned", "revoked"]>;
3911
+ }, z.ZodTypeAny, "passthrough">>;
3912
+ "auth.security.login_risky": z.ZodObject<{
3913
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3914
+ } & {
3915
+ userId: z.ZodString;
3916
+ sessionId: z.ZodNullable<z.ZodString>;
3917
+ signals: z.ZodArray<z.ZodString, "many">;
3918
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3919
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3920
+ } & {
3921
+ userId: z.ZodString;
3922
+ sessionId: z.ZodNullable<z.ZodString>;
3923
+ signals: z.ZodArray<z.ZodString, "many">;
3924
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3925
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3926
+ } & {
3927
+ userId: z.ZodString;
3928
+ sessionId: z.ZodNullable<z.ZodString>;
3929
+ signals: z.ZodArray<z.ZodString, "many">;
3930
+ }, z.ZodTypeAny, "passthrough">>;
3931
+ "auth.security.login_unrecognized": z.ZodObject<{
3932
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3933
+ } & {
3934
+ userId: z.ZodString;
3935
+ sessionId: z.ZodString;
3936
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3937
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3938
+ } & {
3939
+ userId: z.ZodString;
3940
+ sessionId: z.ZodString;
3941
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3942
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3943
+ } & {
3944
+ userId: z.ZodString;
3945
+ sessionId: z.ZodString;
3946
+ }, z.ZodTypeAny, "passthrough">>;
3947
+ "auth.security.alert_raised": z.ZodObject<{
3948
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3949
+ } & {
3950
+ userId: z.ZodNullable<z.ZodString>;
3951
+ alert: z.ZodString;
3952
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
3953
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3954
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3955
+ } & {
3956
+ userId: z.ZodNullable<z.ZodString>;
3957
+ alert: z.ZodString;
3958
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
3959
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3960
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3961
+ } & {
3962
+ userId: z.ZodNullable<z.ZodString>;
3963
+ alert: z.ZodString;
3964
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
3965
+ }, z.ZodTypeAny, "passthrough">>;
3966
+ "auth.user.registered": z.ZodObject<{
3967
+ userId: z.ZodString;
3968
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3969
+ userId: z.ZodString;
3970
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3971
+ userId: z.ZodString;
3972
+ }, z.ZodTypeAny, "passthrough">>;
3973
+ "auth.user.verified": z.ZodObject<{
3974
+ userId: z.ZodString;
3975
+ channel: z.ZodEnum<["email", "phone"]>;
3976
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3977
+ userId: z.ZodString;
3978
+ channel: z.ZodEnum<["email", "phone"]>;
3979
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3980
+ userId: z.ZodString;
3981
+ channel: z.ZodEnum<["email", "phone"]>;
3982
+ }, z.ZodTypeAny, "passthrough">>;
3983
+ "auth.user.password_reset_requested": z.ZodObject<{
3984
+ userId: z.ZodString;
3985
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3986
+ userId: z.ZodString;
3987
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3988
+ userId: z.ZodString;
3989
+ }, z.ZodTypeAny, "passthrough">>;
3990
+ "auth.user.password_changed": z.ZodObject<{
3991
+ userId: z.ZodString;
3992
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3993
+ userId: z.ZodString;
3994
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3995
+ userId: z.ZodString;
3996
+ }, z.ZodTypeAny, "passthrough">>;
3997
+ "auth.user.email_changed": z.ZodObject<{
3998
+ userId: z.ZodString;
3999
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4000
+ userId: z.ZodString;
4001
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4002
+ userId: z.ZodString;
4003
+ }, z.ZodTypeAny, "passthrough">>;
4004
+ "auth.user.deleted": z.ZodObject<{
4005
+ userId: z.ZodString;
4006
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4007
+ userId: z.ZodString;
4008
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4009
+ userId: z.ZodString;
4010
+ }, z.ZodTypeAny, "passthrough">>;
4011
+ "auth.user.authz_changed": z.ZodObject<{
4012
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4013
+ } & {
4014
+ userId: z.ZodString;
4015
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4016
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4017
+ } & {
4018
+ userId: z.ZodString;
4019
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4020
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4021
+ } & {
4022
+ userId: z.ZodString;
4023
+ }, z.ZodTypeAny, "passthrough">>;
4024
+ "auth.company.created": z.ZodObject<{
4025
+ companyId: z.ZodString;
4026
+ } & {
4027
+ ownerUserId: z.ZodString;
4028
+ slug: z.ZodString;
4029
+ name: z.ZodString;
4030
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4031
+ companyId: z.ZodString;
4032
+ } & {
4033
+ ownerUserId: z.ZodString;
4034
+ slug: z.ZodString;
4035
+ name: z.ZodString;
4036
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4037
+ companyId: z.ZodString;
4038
+ } & {
4039
+ ownerUserId: z.ZodString;
4040
+ slug: z.ZodString;
4041
+ name: z.ZodString;
4042
+ }, z.ZodTypeAny, "passthrough">>;
4043
+ "auth.company.updated": z.ZodObject<{
4044
+ companyId: z.ZodString;
4045
+ } & {
4046
+ changedFields: z.ZodArray<z.ZodString, "many">;
4047
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4048
+ companyId: z.ZodString;
4049
+ } & {
4050
+ changedFields: z.ZodArray<z.ZodString, "many">;
4051
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4052
+ companyId: z.ZodString;
4053
+ } & {
4054
+ changedFields: z.ZodArray<z.ZodString, "many">;
4055
+ }, z.ZodTypeAny, "passthrough">>;
4056
+ "auth.company.suspended": z.ZodObject<{
4057
+ companyId: z.ZodString;
4058
+ } & {
4059
+ reason: z.ZodString;
4060
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4061
+ companyId: z.ZodString;
4062
+ } & {
4063
+ reason: z.ZodString;
4064
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4065
+ companyId: z.ZodString;
4066
+ } & {
4067
+ reason: z.ZodString;
4068
+ }, z.ZodTypeAny, "passthrough">>;
4069
+ "auth.company.reactivated": z.ZodObject<{
4070
+ companyId: z.ZodString;
4071
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4072
+ companyId: z.ZodString;
4073
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4074
+ companyId: z.ZodString;
4075
+ }, z.ZodTypeAny, "passthrough">>;
4076
+ "auth.company.closed": z.ZodObject<{
4077
+ companyId: z.ZodString;
4078
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4079
+ companyId: z.ZodString;
4080
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4081
+ companyId: z.ZodString;
4082
+ }, z.ZodTypeAny, "passthrough">>;
4083
+ "auth.staff.invited": z.ZodObject<{
4084
+ companyId: z.ZodString;
4085
+ } & {
4086
+ invitationId: z.ZodString;
4087
+ roleId: z.ZodString;
4088
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4089
+ companyId: z.ZodString;
4090
+ } & {
4091
+ invitationId: z.ZodString;
4092
+ roleId: z.ZodString;
4093
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4094
+ companyId: z.ZodString;
4095
+ } & {
4096
+ invitationId: z.ZodString;
4097
+ roleId: z.ZodString;
4098
+ }, z.ZodTypeAny, "passthrough">>;
4099
+ "auth.staff.joined": z.ZodObject<{
4100
+ companyId: z.ZodString;
4101
+ } & {
4102
+ userId: z.ZodString;
4103
+ membershipId: z.ZodString;
4104
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4105
+ companyId: z.ZodString;
4106
+ } & {
4107
+ userId: z.ZodString;
4108
+ membershipId: z.ZodString;
4109
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4110
+ companyId: z.ZodString;
4111
+ } & {
4112
+ userId: z.ZodString;
4113
+ membershipId: z.ZodString;
4114
+ }, z.ZodTypeAny, "passthrough">>;
4115
+ "auth.staff.removed": z.ZodObject<{
4116
+ companyId: z.ZodString;
4117
+ } & {
4118
+ userId: z.ZodString;
4119
+ membershipId: z.ZodString;
4120
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4121
+ companyId: z.ZodString;
4122
+ } & {
4123
+ userId: z.ZodString;
4124
+ membershipId: z.ZodString;
4125
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4126
+ companyId: z.ZodString;
4127
+ } & {
4128
+ userId: z.ZodString;
4129
+ membershipId: z.ZodString;
4130
+ }, z.ZodTypeAny, "passthrough">>;
4131
+ "auth.membership.changed": z.ZodObject<{
4132
+ companyId: z.ZodString;
4133
+ } & {
4134
+ membershipId: z.ZodString;
4135
+ userId: z.ZodString;
4136
+ roleIds: z.ZodArray<z.ZodString, "many">;
4137
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4138
+ companyId: z.ZodString;
4139
+ } & {
4140
+ membershipId: z.ZodString;
4141
+ userId: z.ZodString;
4142
+ roleIds: z.ZodArray<z.ZodString, "many">;
4143
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4144
+ companyId: z.ZodString;
4145
+ } & {
4146
+ membershipId: z.ZodString;
4147
+ userId: z.ZodString;
4148
+ roleIds: z.ZodArray<z.ZodString, "many">;
4149
+ }, z.ZodTypeAny, "passthrough">>;
4150
+ "auth.role.changed": z.ZodObject<{
4151
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4152
+ } & {
4153
+ roleId: z.ZodString;
4154
+ change: z.ZodEnum<["created", "updated", "deleted", "permissions_changed"]>;
4155
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4156
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4157
+ } & {
4158
+ roleId: z.ZodString;
4159
+ change: z.ZodEnum<["created", "updated", "deleted", "permissions_changed"]>;
4160
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4161
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4162
+ } & {
4163
+ roleId: z.ZodString;
4164
+ change: z.ZodEnum<["created", "updated", "deleted", "permissions_changed"]>;
4165
+ }, z.ZodTypeAny, "passthrough">>;
4166
+ "auth.approval.requested": z.ZodObject<{
4167
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4168
+ } & {
4169
+ approvalId: z.ZodString;
4170
+ action: z.ZodString;
4171
+ requestedBy: z.ZodString;
4172
+ expiresAt: z.ZodString;
4173
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4174
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4175
+ } & {
4176
+ approvalId: z.ZodString;
4177
+ action: z.ZodString;
4178
+ requestedBy: z.ZodString;
4179
+ expiresAt: z.ZodString;
4180
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4181
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4182
+ } & {
4183
+ approvalId: z.ZodString;
4184
+ action: z.ZodString;
4185
+ requestedBy: z.ZodString;
4186
+ expiresAt: z.ZodString;
4187
+ }, z.ZodTypeAny, "passthrough">>;
4188
+ "auth.approval.approved": z.ZodObject<{
4189
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4190
+ } & {
4191
+ approvalId: z.ZodString;
4192
+ action: z.ZodString;
4193
+ decidedBy: z.ZodString;
4194
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4195
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4196
+ } & {
4197
+ approvalId: z.ZodString;
4198
+ action: z.ZodString;
4199
+ decidedBy: z.ZodString;
4200
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4201
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4202
+ } & {
4203
+ approvalId: z.ZodString;
4204
+ action: z.ZodString;
4205
+ decidedBy: z.ZodString;
4206
+ }, z.ZodTypeAny, "passthrough">>;
4207
+ "auth.approval.rejected": z.ZodObject<{
4208
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4209
+ } & {
4210
+ approvalId: z.ZodString;
4211
+ action: z.ZodString;
4212
+ decidedBy: z.ZodString;
4213
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4214
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4215
+ } & {
4216
+ approvalId: z.ZodString;
4217
+ action: z.ZodString;
4218
+ decidedBy: z.ZodString;
4219
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4220
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4221
+ } & {
4222
+ approvalId: z.ZodString;
4223
+ action: z.ZodString;
4224
+ decidedBy: z.ZodString;
4225
+ }, z.ZodTypeAny, "passthrough">>;
4226
+ "auth.approval.expired": z.ZodObject<{
4227
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4228
+ } & {
4229
+ approvalId: z.ZodString;
4230
+ action: z.ZodString;
4231
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4232
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4233
+ } & {
4234
+ approvalId: z.ZodString;
4235
+ action: z.ZodString;
4236
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4237
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4238
+ } & {
4239
+ approvalId: z.ZodString;
4240
+ action: z.ZodString;
4241
+ }, z.ZodTypeAny, "passthrough">>;
4242
+ "auth.approval.executed": z.ZodObject<{
4243
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4244
+ } & {
4245
+ approvalId: z.ZodString;
4246
+ action: z.ZodString;
4247
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4248
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4249
+ } & {
4250
+ approvalId: z.ZodString;
4251
+ action: z.ZodString;
4252
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4253
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4254
+ } & {
4255
+ approvalId: z.ZodString;
4256
+ action: z.ZodString;
4257
+ }, z.ZodTypeAny, "passthrough">>;
4258
+ "auth.approval.failed": z.ZodObject<{
4259
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4260
+ } & {
4261
+ approvalId: z.ZodString;
4262
+ action: z.ZodString;
4263
+ reason: z.ZodString;
4264
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4265
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4266
+ } & {
4267
+ approvalId: z.ZodString;
4268
+ action: z.ZodString;
4269
+ reason: z.ZodString;
4270
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4271
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4272
+ } & {
4273
+ approvalId: z.ZodString;
4274
+ action: z.ZodString;
4275
+ reason: z.ZodString;
4276
+ }, z.ZodTypeAny, "passthrough">>;
4277
+ }>;
4278
+ /** An event routing key. */
4279
+ export type EventRoutingKey = keyof typeof EVENT_SCHEMAS;
4280
+ /** A command routing key. */
4281
+ export type CommandRoutingKey = keyof typeof COMMAND_SCHEMAS;
4282
+ /** Any catalogued routing key. */
4283
+ export type RoutingKey = keyof typeof MESSAGE_SCHEMAS;
4284
+ /**
4285
+ * Validated payload type of a routing key (without the reserved envelope fields).
4286
+ *
4287
+ * @example function onPaid(data: EventPayload<'order.order.paid'>) { data.grandTotal; }
4288
+ */
4289
+ export type EventPayload<K extends RoutingKey> = z.output<(typeof MESSAGE_SCHEMAS)[K]>;
4290
+ /** What a producer passes for a routing key (before defaults). */
4291
+ export type EventPayloadInput<K extends RoutingKey> = z.input<(typeof MESSAGE_SCHEMAS)[K]>;
4292
+ /** Every catalogued routing key. */
4293
+ 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.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" | "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.payout.scheduled" | "payment.payout.paid" | "payment.payout.failed" | "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.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")[];
4294
+ /**
4295
+ * True when `key` is in the catalogue.
4296
+ *
4297
+ * @example isRoutingKey(msg.routingKey)
4298
+ */
4299
+ export declare function isRoutingKey(key: string): key is RoutingKey;
4300
+ /**
4301
+ * The payload schema of a routing key, as producers and consumers use it (envelope fields excluded).
4302
+ *
4303
+ * @throws Error for a key that is not in the catalogue (a wiring bug, caught at startup or in tests).
4304
+ * @example messaging.consumer.subscribe({ queue: 'order-paid', bindings, schema: schemaFor('order.order.paid'), … })
4305
+ */
4306
+ export declare function schemaFor<K extends RoutingKey>(routingKey: K): (typeof MESSAGE_SCHEMAS)[K];
4307
+ /**
4308
+ * Schema of a complete envelope `data`: the payload plus `eventId` (ULID), `version` (1) and
4309
+ * `actorUserId` (ULID or null).
4310
+ *
4311
+ * @example envelopeDataSchemaFor('order.order.paid').parse(envelope.data)
4312
+ */
4313
+ export declare function envelopeDataSchemaFor<K extends RoutingKey>(routingKey: K): z.ZodIntersection<z.ZodTypeAny, z.ZodObject<{
4314
+ eventId: z.ZodString;
4315
+ version: z.ZodLiteral<1>;
4316
+ actorUserId: z.ZodNullable<z.ZodString>;
4317
+ }, "strip", z.ZodTypeAny, {
4318
+ eventId: string;
4319
+ version: 1;
4320
+ actorUserId: string | null;
4321
+ }, {
4322
+ eventId: string;
4323
+ version: 1;
4324
+ actorUserId: string | null;
4325
+ }>>;
4326
+ /**
4327
+ * True when every message of `routingKey` belongs to one company (`companyId` required), so its
4328
+ * consumer must restore the company scope with `scopeFrom: companyScopeFrom` (TEN-7).
4329
+ *
4330
+ * @example isCompanyScopedEvent('order.order.paid') === true
4331
+ */
4332
+ export declare function isCompanyScopedEvent(routingKey: RoutingKey): boolean;
4333
+ //# sourceMappingURL=index.d.ts.map