@closerepo/notification-contracts 1.12.0 → 1.14.0

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.
@@ -0,0 +1,1756 @@
1
+ import { z } from "zod";
2
+ //#region src/index.d.ts
3
+ declare const notificationMessageVariantKeys: readonly ["source", "zh-CN"];
4
+ declare const notificationDeliveryChannelKeys: readonly ["qq", "tg", "wechat", "lark"];
5
+ type NotificationDeliveryChannelKey = (typeof notificationDeliveryChannelKeys)[number];
6
+ declare const notificationMessageBodySchema: z.ZodObject<{
7
+ label: z.ZodOptional<z.ZodString>;
8
+ value: z.ZodString;
9
+ }, z.core.$strict>;
10
+ declare const notificationDeliveryRequestV6Schema: z.ZodObject<{
11
+ contractVersion: z.ZodLiteral<6>;
12
+ message: z.ZodObject<{
13
+ type: z.ZodLiteral<"structured_notification">;
14
+ links: z.ZodArray<z.ZodObject<{
15
+ key: z.ZodString;
16
+ url: z.ZodString;
17
+ }, z.core.$strict>>;
18
+ bodies: z.ZodArray<z.ZodObject<{
19
+ key: z.ZodString;
20
+ value: z.ZodString;
21
+ }, z.core.$strict>>;
22
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ key: z.ZodLiteral<"source">;
24
+ locale: z.ZodLiteral<"und">;
25
+ title: z.ZodString;
26
+ linkLabels: z.ZodArray<z.ZodObject<{
27
+ key: z.ZodString;
28
+ label: z.ZodString;
29
+ }, z.core.$strict>>;
30
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
31
+ key: z.ZodString;
32
+ type: z.ZodLiteral<"text">;
33
+ label: z.ZodOptional<z.ZodString>;
34
+ value: z.ZodString;
35
+ }, z.core.$strict>, z.ZodObject<{
36
+ key: z.ZodString;
37
+ type: z.ZodLiteral<"fields">;
38
+ items: z.ZodArray<z.ZodObject<{
39
+ label: z.ZodString;
40
+ value: z.ZodString;
41
+ }, z.core.$strict>>;
42
+ }, z.core.$strict>], "type">>;
43
+ bodyRefs: z.ZodArray<z.ZodObject<{
44
+ key: z.ZodString;
45
+ label: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strict>>;
47
+ footer: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ key: z.ZodLiteral<"zh-CN">;
50
+ locale: z.ZodLiteral<"zh-CN">;
51
+ title: z.ZodString;
52
+ linkLabels: z.ZodArray<z.ZodObject<{
53
+ key: z.ZodString;
54
+ label: z.ZodString;
55
+ }, z.core.$strict>>;
56
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
57
+ key: z.ZodString;
58
+ type: z.ZodLiteral<"text">;
59
+ label: z.ZodOptional<z.ZodString>;
60
+ value: z.ZodString;
61
+ }, z.core.$strict>, z.ZodObject<{
62
+ key: z.ZodString;
63
+ type: z.ZodLiteral<"fields">;
64
+ items: z.ZodArray<z.ZodObject<{
65
+ label: z.ZodString;
66
+ value: z.ZodString;
67
+ }, z.core.$strict>>;
68
+ }, z.core.$strict>], "type">>;
69
+ bodyRefs: z.ZodArray<z.ZodObject<{
70
+ key: z.ZodString;
71
+ label: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strict>>;
73
+ footer: z.ZodOptional<z.ZodString>;
74
+ }, z.core.$strict>], "key">>;
75
+ }, z.core.$strict>;
76
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
77
+ eventId: z.ZodString;
78
+ producer: z.ZodObject<{
79
+ key: z.ZodString;
80
+ environment: z.ZodString;
81
+ }, z.core.$strict>;
82
+ routeKey: z.ZodString;
83
+ occurredAt: z.ZodString;
84
+ requestedAt: z.ZodString;
85
+ deliverBy: z.ZodString;
86
+ subject: z.ZodObject<{
87
+ type: z.ZodString;
88
+ id: z.ZodString;
89
+ revision: z.ZodNumber;
90
+ }, z.core.$strict>;
91
+ }, z.core.$strict>;
92
+ /** One event matches multiple subscriptions; destinations are unioned before admission. */
93
+ declare const notificationDeliveryRequestV7Schema: z.ZodObject<{
94
+ contractVersion: z.ZodLiteral<7>;
95
+ routeKeys: z.ZodArray<z.ZodString>;
96
+ message: z.ZodObject<{
97
+ type: z.ZodLiteral<"structured_notification">;
98
+ links: z.ZodArray<z.ZodObject<{
99
+ key: z.ZodString;
100
+ url: z.ZodString;
101
+ }, z.core.$strict>>;
102
+ bodies: z.ZodArray<z.ZodObject<{
103
+ key: z.ZodString;
104
+ value: z.ZodString;
105
+ }, z.core.$strict>>;
106
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
107
+ key: z.ZodLiteral<"source">;
108
+ locale: z.ZodLiteral<"und">;
109
+ title: z.ZodString;
110
+ linkLabels: z.ZodArray<z.ZodObject<{
111
+ key: z.ZodString;
112
+ label: z.ZodString;
113
+ }, z.core.$strict>>;
114
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
115
+ key: z.ZodString;
116
+ type: z.ZodLiteral<"text">;
117
+ label: z.ZodOptional<z.ZodString>;
118
+ value: z.ZodString;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ key: z.ZodString;
121
+ type: z.ZodLiteral<"fields">;
122
+ items: z.ZodArray<z.ZodObject<{
123
+ label: z.ZodString;
124
+ value: z.ZodString;
125
+ }, z.core.$strict>>;
126
+ }, z.core.$strict>], "type">>;
127
+ bodyRefs: z.ZodArray<z.ZodObject<{
128
+ key: z.ZodString;
129
+ label: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strict>>;
131
+ footer: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strict>, z.ZodObject<{
133
+ key: z.ZodLiteral<"zh-CN">;
134
+ locale: z.ZodLiteral<"zh-CN">;
135
+ title: z.ZodString;
136
+ linkLabels: z.ZodArray<z.ZodObject<{
137
+ key: z.ZodString;
138
+ label: z.ZodString;
139
+ }, z.core.$strict>>;
140
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
141
+ key: z.ZodString;
142
+ type: z.ZodLiteral<"text">;
143
+ label: z.ZodOptional<z.ZodString>;
144
+ value: z.ZodString;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ key: z.ZodString;
147
+ type: z.ZodLiteral<"fields">;
148
+ items: z.ZodArray<z.ZodObject<{
149
+ label: z.ZodString;
150
+ value: z.ZodString;
151
+ }, z.core.$strict>>;
152
+ }, z.core.$strict>], "type">>;
153
+ bodyRefs: z.ZodArray<z.ZodObject<{
154
+ key: z.ZodString;
155
+ label: z.ZodOptional<z.ZodString>;
156
+ }, z.core.$strict>>;
157
+ footer: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strict>], "key">>;
159
+ }, z.core.$strict>;
160
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
161
+ eventId: z.ZodString;
162
+ producer: z.ZodObject<{
163
+ key: z.ZodString;
164
+ environment: z.ZodString;
165
+ }, z.core.$strict>;
166
+ occurredAt: z.ZodString;
167
+ requestedAt: z.ZodString;
168
+ deliverBy: z.ZodString;
169
+ subject: z.ZodObject<{
170
+ type: z.ZodString;
171
+ id: z.ZodString;
172
+ revision: z.ZodNumber;
173
+ }, z.core.$strict>;
174
+ }, z.core.$strict>;
175
+ type NotificationDeliveryRequestV7 = z.infer<typeof notificationDeliveryRequestV7Schema>;
176
+ /** Frozen channel copy shares message bodies and links; omitted channels use default variants. */
177
+ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
178
+ contractVersion: z.ZodLiteral<8>;
179
+ message: z.ZodObject<{
180
+ type: z.ZodLiteral<"structured_notification">;
181
+ links: z.ZodArray<z.ZodObject<{
182
+ key: z.ZodString;
183
+ url: z.ZodString;
184
+ }, z.core.$strict>>;
185
+ bodies: z.ZodArray<z.ZodObject<{
186
+ key: z.ZodString;
187
+ value: z.ZodString;
188
+ }, z.core.$strict>>;
189
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
190
+ key: z.ZodLiteral<"source">;
191
+ locale: z.ZodLiteral<"und">;
192
+ title: z.ZodString;
193
+ linkLabels: z.ZodArray<z.ZodObject<{
194
+ key: z.ZodString;
195
+ label: z.ZodString;
196
+ }, z.core.$strict>>;
197
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
198
+ key: z.ZodString;
199
+ type: z.ZodLiteral<"text">;
200
+ label: z.ZodOptional<z.ZodString>;
201
+ value: z.ZodString;
202
+ }, z.core.$strict>, z.ZodObject<{
203
+ key: z.ZodString;
204
+ type: z.ZodLiteral<"fields">;
205
+ items: z.ZodArray<z.ZodObject<{
206
+ label: z.ZodString;
207
+ value: z.ZodString;
208
+ }, z.core.$strict>>;
209
+ }, z.core.$strict>], "type">>;
210
+ bodyRefs: z.ZodArray<z.ZodObject<{
211
+ key: z.ZodString;
212
+ label: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strict>>;
214
+ footer: z.ZodOptional<z.ZodString>;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ key: z.ZodLiteral<"zh-CN">;
217
+ locale: z.ZodLiteral<"zh-CN">;
218
+ title: z.ZodString;
219
+ linkLabels: z.ZodArray<z.ZodObject<{
220
+ key: z.ZodString;
221
+ label: z.ZodString;
222
+ }, z.core.$strict>>;
223
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
224
+ key: z.ZodString;
225
+ type: z.ZodLiteral<"text">;
226
+ label: z.ZodOptional<z.ZodString>;
227
+ value: z.ZodString;
228
+ }, z.core.$strict>, z.ZodObject<{
229
+ key: z.ZodString;
230
+ type: z.ZodLiteral<"fields">;
231
+ items: z.ZodArray<z.ZodObject<{
232
+ label: z.ZodString;
233
+ value: z.ZodString;
234
+ }, z.core.$strict>>;
235
+ }, z.core.$strict>], "type">>;
236
+ bodyRefs: z.ZodArray<z.ZodObject<{
237
+ key: z.ZodString;
238
+ label: z.ZodOptional<z.ZodString>;
239
+ }, z.core.$strict>>;
240
+ footer: z.ZodOptional<z.ZodString>;
241
+ }, z.core.$strict>], "key">>;
242
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
243
+ qq: "qq";
244
+ tg: "tg";
245
+ wechat: "wechat";
246
+ lark: "lark";
247
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
248
+ key: z.ZodLiteral<"source">;
249
+ locale: z.ZodLiteral<"und">;
250
+ title: z.ZodString;
251
+ linkLabels: z.ZodArray<z.ZodObject<{
252
+ key: z.ZodString;
253
+ label: z.ZodString;
254
+ }, z.core.$strict>>;
255
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
256
+ key: z.ZodString;
257
+ type: z.ZodLiteral<"text">;
258
+ label: z.ZodOptional<z.ZodString>;
259
+ value: z.ZodString;
260
+ }, z.core.$strict>, z.ZodObject<{
261
+ key: z.ZodString;
262
+ type: z.ZodLiteral<"fields">;
263
+ items: z.ZodArray<z.ZodObject<{
264
+ label: z.ZodString;
265
+ value: z.ZodString;
266
+ }, z.core.$strict>>;
267
+ }, z.core.$strict>], "type">>;
268
+ bodyRefs: z.ZodArray<z.ZodObject<{
269
+ key: z.ZodString;
270
+ label: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strict>>;
272
+ footer: z.ZodOptional<z.ZodString>;
273
+ }, z.core.$strict>, z.ZodObject<{
274
+ key: z.ZodLiteral<"zh-CN">;
275
+ locale: z.ZodLiteral<"zh-CN">;
276
+ title: z.ZodString;
277
+ linkLabels: z.ZodArray<z.ZodObject<{
278
+ key: z.ZodString;
279
+ label: z.ZodString;
280
+ }, z.core.$strict>>;
281
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
282
+ key: z.ZodString;
283
+ type: z.ZodLiteral<"text">;
284
+ label: z.ZodOptional<z.ZodString>;
285
+ value: z.ZodString;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ key: z.ZodString;
288
+ type: z.ZodLiteral<"fields">;
289
+ items: z.ZodArray<z.ZodObject<{
290
+ label: z.ZodString;
291
+ value: z.ZodString;
292
+ }, z.core.$strict>>;
293
+ }, z.core.$strict>], "type">>;
294
+ bodyRefs: z.ZodArray<z.ZodObject<{
295
+ key: z.ZodString;
296
+ label: z.ZodOptional<z.ZodString>;
297
+ }, z.core.$strict>>;
298
+ footer: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strict>], "key">>>>;
300
+ }, z.core.$strict>;
301
+ routeKeys: z.ZodArray<z.ZodString>;
302
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
303
+ eventId: z.ZodString;
304
+ producer: z.ZodObject<{
305
+ key: z.ZodString;
306
+ environment: z.ZodString;
307
+ }, z.core.$strict>;
308
+ occurredAt: z.ZodString;
309
+ requestedAt: z.ZodString;
310
+ deliverBy: z.ZodString;
311
+ subject: z.ZodObject<{
312
+ type: z.ZodString;
313
+ id: z.ZodString;
314
+ revision: z.ZodNumber;
315
+ }, z.core.$strict>;
316
+ }, z.core.$strict>;
317
+ type NotificationDeliveryRequestV8 = z.infer<typeof notificationDeliveryRequestV8Schema>;
318
+ /** Audience and browser copy are additive; historical channel contracts keep their exact validation. */
319
+ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
320
+ contractVersion: z.ZodLiteral<9>;
321
+ audience: z.ZodOptional<z.ZodObject<{
322
+ topics: z.ZodArray<z.ZodString>;
323
+ }, z.core.$strict>>;
324
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
325
+ locale: z.ZodString;
326
+ contentLocale: z.ZodString;
327
+ title: z.ZodString;
328
+ body: z.ZodString;
329
+ url: z.ZodString;
330
+ }, z.core.$strict>>>;
331
+ message: z.ZodObject<{
332
+ type: z.ZodLiteral<"structured_notification">;
333
+ links: z.ZodArray<z.ZodObject<{
334
+ key: z.ZodString;
335
+ url: z.ZodString;
336
+ }, z.core.$strict>>;
337
+ bodies: z.ZodArray<z.ZodObject<{
338
+ key: z.ZodString;
339
+ value: z.ZodString;
340
+ }, z.core.$strict>>;
341
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
342
+ key: z.ZodLiteral<"source">;
343
+ locale: z.ZodLiteral<"und">;
344
+ title: z.ZodString;
345
+ linkLabels: z.ZodArray<z.ZodObject<{
346
+ key: z.ZodString;
347
+ label: z.ZodString;
348
+ }, z.core.$strict>>;
349
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
350
+ key: z.ZodString;
351
+ type: z.ZodLiteral<"text">;
352
+ label: z.ZodOptional<z.ZodString>;
353
+ value: z.ZodString;
354
+ }, z.core.$strict>, z.ZodObject<{
355
+ key: z.ZodString;
356
+ type: z.ZodLiteral<"fields">;
357
+ items: z.ZodArray<z.ZodObject<{
358
+ label: z.ZodString;
359
+ value: z.ZodString;
360
+ }, z.core.$strict>>;
361
+ }, z.core.$strict>], "type">>;
362
+ bodyRefs: z.ZodArray<z.ZodObject<{
363
+ key: z.ZodString;
364
+ label: z.ZodOptional<z.ZodString>;
365
+ }, z.core.$strict>>;
366
+ footer: z.ZodOptional<z.ZodString>;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ key: z.ZodLiteral<"zh-CN">;
369
+ locale: z.ZodLiteral<"zh-CN">;
370
+ title: z.ZodString;
371
+ linkLabels: z.ZodArray<z.ZodObject<{
372
+ key: z.ZodString;
373
+ label: z.ZodString;
374
+ }, z.core.$strict>>;
375
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
376
+ key: z.ZodString;
377
+ type: z.ZodLiteral<"text">;
378
+ label: z.ZodOptional<z.ZodString>;
379
+ value: z.ZodString;
380
+ }, z.core.$strict>, z.ZodObject<{
381
+ key: z.ZodString;
382
+ type: z.ZodLiteral<"fields">;
383
+ items: z.ZodArray<z.ZodObject<{
384
+ label: z.ZodString;
385
+ value: z.ZodString;
386
+ }, z.core.$strict>>;
387
+ }, z.core.$strict>], "type">>;
388
+ bodyRefs: z.ZodArray<z.ZodObject<{
389
+ key: z.ZodString;
390
+ label: z.ZodOptional<z.ZodString>;
391
+ }, z.core.$strict>>;
392
+ footer: z.ZodOptional<z.ZodString>;
393
+ }, z.core.$strict>], "key">>;
394
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
395
+ qq: "qq";
396
+ tg: "tg";
397
+ wechat: "wechat";
398
+ lark: "lark";
399
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
400
+ key: z.ZodLiteral<"source">;
401
+ locale: z.ZodLiteral<"und">;
402
+ title: z.ZodString;
403
+ linkLabels: z.ZodArray<z.ZodObject<{
404
+ key: z.ZodString;
405
+ label: z.ZodString;
406
+ }, z.core.$strict>>;
407
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
408
+ key: z.ZodString;
409
+ type: z.ZodLiteral<"text">;
410
+ label: z.ZodOptional<z.ZodString>;
411
+ value: z.ZodString;
412
+ }, z.core.$strict>, z.ZodObject<{
413
+ key: z.ZodString;
414
+ type: z.ZodLiteral<"fields">;
415
+ items: z.ZodArray<z.ZodObject<{
416
+ label: z.ZodString;
417
+ value: z.ZodString;
418
+ }, z.core.$strict>>;
419
+ }, z.core.$strict>], "type">>;
420
+ bodyRefs: z.ZodArray<z.ZodObject<{
421
+ key: z.ZodString;
422
+ label: z.ZodOptional<z.ZodString>;
423
+ }, z.core.$strict>>;
424
+ footer: z.ZodOptional<z.ZodString>;
425
+ }, z.core.$strict>, z.ZodObject<{
426
+ key: z.ZodLiteral<"zh-CN">;
427
+ locale: z.ZodLiteral<"zh-CN">;
428
+ title: z.ZodString;
429
+ linkLabels: z.ZodArray<z.ZodObject<{
430
+ key: z.ZodString;
431
+ label: z.ZodString;
432
+ }, z.core.$strict>>;
433
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
434
+ key: z.ZodString;
435
+ type: z.ZodLiteral<"text">;
436
+ label: z.ZodOptional<z.ZodString>;
437
+ value: z.ZodString;
438
+ }, z.core.$strict>, z.ZodObject<{
439
+ key: z.ZodString;
440
+ type: z.ZodLiteral<"fields">;
441
+ items: z.ZodArray<z.ZodObject<{
442
+ label: z.ZodString;
443
+ value: z.ZodString;
444
+ }, z.core.$strict>>;
445
+ }, z.core.$strict>], "type">>;
446
+ bodyRefs: z.ZodArray<z.ZodObject<{
447
+ key: z.ZodString;
448
+ label: z.ZodOptional<z.ZodString>;
449
+ }, z.core.$strict>>;
450
+ footer: z.ZodOptional<z.ZodString>;
451
+ }, z.core.$strict>], "key">>>>;
452
+ }, z.core.$strict>;
453
+ routeKeys: z.ZodArray<z.ZodString>;
454
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
455
+ eventId: z.ZodString;
456
+ producer: z.ZodObject<{
457
+ key: z.ZodString;
458
+ environment: z.ZodString;
459
+ }, z.core.$strict>;
460
+ occurredAt: z.ZodString;
461
+ requestedAt: z.ZodString;
462
+ deliverBy: z.ZodString;
463
+ subject: z.ZodObject<{
464
+ type: z.ZodString;
465
+ id: z.ZodString;
466
+ revision: z.ZodNumber;
467
+ }, z.core.$strict>;
468
+ }, z.core.$strict>;
469
+ type NotificationDeliveryRequestV9 = z.infer<typeof notificationDeliveryRequestV9Schema>;
470
+ /** A quoted interval in its containing string, measured in UTF-16 code units. */
471
+ declare const notificationQuoteRangeSchema: z.ZodObject<{
472
+ offset: z.ZodNumber;
473
+ length: z.ZodNumber;
474
+ }, z.core.$strict>;
475
+ type NotificationQuoteRange = z.infer<typeof notificationQuoteRangeSchema>;
476
+ /** V10 preserves V9 delivery semantics and adds producer-owned quoted text intervals. */
477
+ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
478
+ contractVersion: z.ZodLiteral<10>;
479
+ message: z.ZodObject<{
480
+ type: z.ZodLiteral<"structured_notification">;
481
+ links: z.ZodArray<z.ZodObject<{
482
+ key: z.ZodString;
483
+ url: z.ZodString;
484
+ }, z.core.$strict>>;
485
+ bodies: z.ZodArray<z.ZodObject<{
486
+ key: z.ZodString;
487
+ value: z.ZodString;
488
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
489
+ offset: z.ZodNumber;
490
+ length: z.ZodNumber;
491
+ }, z.core.$strict>>>;
492
+ }, z.core.$strict>>;
493
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
494
+ key: z.ZodLiteral<"source">;
495
+ locale: z.ZodLiteral<"und">;
496
+ title: z.ZodString;
497
+ linkLabels: z.ZodArray<z.ZodObject<{
498
+ key: z.ZodString;
499
+ label: z.ZodString;
500
+ }, z.core.$strict>>;
501
+ bodyRefs: z.ZodArray<z.ZodObject<{
502
+ key: z.ZodString;
503
+ label: z.ZodOptional<z.ZodString>;
504
+ }, z.core.$strict>>;
505
+ footer: z.ZodOptional<z.ZodString>;
506
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
507
+ offset: z.ZodNumber;
508
+ length: z.ZodNumber;
509
+ }, z.core.$strict>>>;
510
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
511
+ key: z.ZodString;
512
+ type: z.ZodLiteral<"text">;
513
+ label: z.ZodOptional<z.ZodString>;
514
+ value: z.ZodString;
515
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
516
+ offset: z.ZodNumber;
517
+ length: z.ZodNumber;
518
+ }, z.core.$strict>>>;
519
+ }, z.core.$strict>, z.ZodObject<{
520
+ key: z.ZodString;
521
+ type: z.ZodLiteral<"fields">;
522
+ items: z.ZodArray<z.ZodObject<{
523
+ label: z.ZodString;
524
+ value: z.ZodString;
525
+ }, z.core.$strict>>;
526
+ }, z.core.$strict>], "type">>;
527
+ }, z.core.$strict>, z.ZodObject<{
528
+ key: z.ZodLiteral<"zh-CN">;
529
+ locale: z.ZodLiteral<"zh-CN">;
530
+ title: z.ZodString;
531
+ linkLabels: z.ZodArray<z.ZodObject<{
532
+ key: z.ZodString;
533
+ label: z.ZodString;
534
+ }, z.core.$strict>>;
535
+ bodyRefs: z.ZodArray<z.ZodObject<{
536
+ key: z.ZodString;
537
+ label: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$strict>>;
539
+ footer: z.ZodOptional<z.ZodString>;
540
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
541
+ offset: z.ZodNumber;
542
+ length: z.ZodNumber;
543
+ }, z.core.$strict>>>;
544
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
545
+ key: z.ZodString;
546
+ type: z.ZodLiteral<"text">;
547
+ label: z.ZodOptional<z.ZodString>;
548
+ value: z.ZodString;
549
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
550
+ offset: z.ZodNumber;
551
+ length: z.ZodNumber;
552
+ }, z.core.$strict>>>;
553
+ }, z.core.$strict>, z.ZodObject<{
554
+ key: z.ZodString;
555
+ type: z.ZodLiteral<"fields">;
556
+ items: z.ZodArray<z.ZodObject<{
557
+ label: z.ZodString;
558
+ value: z.ZodString;
559
+ }, z.core.$strict>>;
560
+ }, z.core.$strict>], "type">>;
561
+ }, z.core.$strict>], "key">>;
562
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
563
+ qq: "qq";
564
+ tg: "tg";
565
+ wechat: "wechat";
566
+ lark: "lark";
567
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
568
+ key: z.ZodLiteral<"source">;
569
+ locale: z.ZodLiteral<"und">;
570
+ title: z.ZodString;
571
+ linkLabels: z.ZodArray<z.ZodObject<{
572
+ key: z.ZodString;
573
+ label: z.ZodString;
574
+ }, z.core.$strict>>;
575
+ bodyRefs: z.ZodArray<z.ZodObject<{
576
+ key: z.ZodString;
577
+ label: z.ZodOptional<z.ZodString>;
578
+ }, z.core.$strict>>;
579
+ footer: z.ZodOptional<z.ZodString>;
580
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
581
+ offset: z.ZodNumber;
582
+ length: z.ZodNumber;
583
+ }, z.core.$strict>>>;
584
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
585
+ key: z.ZodString;
586
+ type: z.ZodLiteral<"text">;
587
+ label: z.ZodOptional<z.ZodString>;
588
+ value: z.ZodString;
589
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
590
+ offset: z.ZodNumber;
591
+ length: z.ZodNumber;
592
+ }, z.core.$strict>>>;
593
+ }, z.core.$strict>, z.ZodObject<{
594
+ key: z.ZodString;
595
+ type: z.ZodLiteral<"fields">;
596
+ items: z.ZodArray<z.ZodObject<{
597
+ label: z.ZodString;
598
+ value: z.ZodString;
599
+ }, z.core.$strict>>;
600
+ }, z.core.$strict>], "type">>;
601
+ }, z.core.$strict>, z.ZodObject<{
602
+ key: z.ZodLiteral<"zh-CN">;
603
+ locale: z.ZodLiteral<"zh-CN">;
604
+ title: z.ZodString;
605
+ linkLabels: z.ZodArray<z.ZodObject<{
606
+ key: z.ZodString;
607
+ label: z.ZodString;
608
+ }, z.core.$strict>>;
609
+ bodyRefs: z.ZodArray<z.ZodObject<{
610
+ key: z.ZodString;
611
+ label: z.ZodOptional<z.ZodString>;
612
+ }, z.core.$strict>>;
613
+ footer: z.ZodOptional<z.ZodString>;
614
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
615
+ offset: z.ZodNumber;
616
+ length: z.ZodNumber;
617
+ }, z.core.$strict>>>;
618
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
619
+ key: z.ZodString;
620
+ type: z.ZodLiteral<"text">;
621
+ label: z.ZodOptional<z.ZodString>;
622
+ value: z.ZodString;
623
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
624
+ offset: z.ZodNumber;
625
+ length: z.ZodNumber;
626
+ }, z.core.$strict>>>;
627
+ }, z.core.$strict>, z.ZodObject<{
628
+ key: z.ZodString;
629
+ type: z.ZodLiteral<"fields">;
630
+ items: z.ZodArray<z.ZodObject<{
631
+ label: z.ZodString;
632
+ value: z.ZodString;
633
+ }, z.core.$strict>>;
634
+ }, z.core.$strict>], "type">>;
635
+ }, z.core.$strict>], "key">>>>;
636
+ }, z.core.$strict>;
637
+ audience: z.ZodOptional<z.ZodObject<{
638
+ topics: z.ZodArray<z.ZodString>;
639
+ }, z.core.$strict>>;
640
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
+ locale: z.ZodString;
642
+ contentLocale: z.ZodString;
643
+ title: z.ZodString;
644
+ body: z.ZodString;
645
+ url: z.ZodString;
646
+ }, z.core.$strict>>>;
647
+ routeKeys: z.ZodArray<z.ZodString>;
648
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
649
+ eventId: z.ZodString;
650
+ producer: z.ZodObject<{
651
+ key: z.ZodString;
652
+ environment: z.ZodString;
653
+ }, z.core.$strict>;
654
+ occurredAt: z.ZodString;
655
+ requestedAt: z.ZodString;
656
+ deliverBy: z.ZodString;
657
+ subject: z.ZodObject<{
658
+ type: z.ZodString;
659
+ id: z.ZodString;
660
+ revision: z.ZodNumber;
661
+ }, z.core.$strict>;
662
+ }, z.core.$strict>;
663
+ type NotificationDeliveryRequestV10 = z.infer<typeof notificationDeliveryRequestV10Schema>;
664
+ type NotificationDeliveryRequestV6 = z.infer<typeof notificationDeliveryRequestV6Schema>;
665
+ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
666
+ message: z.ZodObject<{
667
+ type: z.ZodLiteral<"link_summary">;
668
+ title: z.ZodString;
669
+ summary: z.ZodString;
670
+ facts: z.ZodArray<z.ZodObject<{
671
+ label: z.ZodString;
672
+ value: z.ZodString;
673
+ }, z.core.$strict>>;
674
+ primaryLink: z.ZodObject<{
675
+ label: z.ZodString;
676
+ url: z.ZodString;
677
+ }, z.core.$strict>;
678
+ sourceLink: z.ZodOptional<z.ZodObject<{
679
+ label: z.ZodString;
680
+ url: z.ZodString;
681
+ }, z.core.$strict>>;
682
+ }, z.core.$strict>;
683
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
684
+ eventId: z.ZodString;
685
+ producer: z.ZodObject<{
686
+ key: z.ZodString;
687
+ environment: z.ZodString;
688
+ }, z.core.$strict>;
689
+ routeKey: z.ZodString;
690
+ occurredAt: z.ZodString;
691
+ requestedAt: z.ZodString;
692
+ deliverBy: z.ZodString;
693
+ subject: z.ZodObject<{
694
+ type: z.ZodString;
695
+ id: z.ZodString;
696
+ revision: z.ZodNumber;
697
+ }, z.core.$strict>;
698
+ contractVersion: z.ZodLiteral<1>;
699
+ }, z.core.$strict>, z.ZodObject<{
700
+ message: z.ZodObject<{
701
+ type: z.ZodLiteral<"localized_link_summary">;
702
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
703
+ title: z.ZodString;
704
+ summary: z.ZodString;
705
+ facts: z.ZodArray<z.ZodObject<{
706
+ label: z.ZodString;
707
+ value: z.ZodString;
708
+ }, z.core.$strict>>;
709
+ key: z.ZodLiteral<"source">;
710
+ locale: z.ZodLiteral<"und">;
711
+ }, z.core.$strict>, z.ZodObject<{
712
+ title: z.ZodString;
713
+ summary: z.ZodString;
714
+ facts: z.ZodArray<z.ZodObject<{
715
+ label: z.ZodString;
716
+ value: z.ZodString;
717
+ }, z.core.$strict>>;
718
+ key: z.ZodLiteral<"zh-CN">;
719
+ locale: z.ZodLiteral<"zh-CN">;
720
+ }, z.core.$strict>], "key">>;
721
+ primaryLink: z.ZodObject<{
722
+ label: z.ZodString;
723
+ url: z.ZodString;
724
+ }, z.core.$strict>;
725
+ sourceLink: z.ZodOptional<z.ZodObject<{
726
+ label: z.ZodString;
727
+ url: z.ZodString;
728
+ }, z.core.$strict>>;
729
+ }, z.core.$strict>;
730
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
731
+ eventId: z.ZodString;
732
+ producer: z.ZodObject<{
733
+ key: z.ZodString;
734
+ environment: z.ZodString;
735
+ }, z.core.$strict>;
736
+ routeKey: z.ZodString;
737
+ occurredAt: z.ZodString;
738
+ requestedAt: z.ZodString;
739
+ deliverBy: z.ZodString;
740
+ subject: z.ZodObject<{
741
+ type: z.ZodString;
742
+ id: z.ZodString;
743
+ revision: z.ZodNumber;
744
+ }, z.core.$strict>;
745
+ contractVersion: z.ZodLiteral<2>;
746
+ }, z.core.$strict>, z.ZodObject<{
747
+ message: z.ZodObject<{
748
+ type: z.ZodLiteral<"structured_notification">;
749
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
750
+ key: z.ZodLiteral<"source">;
751
+ locale: z.ZodLiteral<"und">;
752
+ title: z.ZodString;
753
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
754
+ key: z.ZodString;
755
+ type: z.ZodLiteral<"text">;
756
+ label: z.ZodOptional<z.ZodString>;
757
+ value: z.ZodString;
758
+ }, z.core.$strict>, z.ZodObject<{
759
+ key: z.ZodString;
760
+ type: z.ZodLiteral<"fields">;
761
+ items: z.ZodArray<z.ZodObject<{
762
+ label: z.ZodString;
763
+ value: z.ZodString;
764
+ }, z.core.$strict>>;
765
+ }, z.core.$strict>], "type">>;
766
+ }, z.core.$strict>, z.ZodObject<{
767
+ key: z.ZodLiteral<"zh-CN">;
768
+ locale: z.ZodLiteral<"zh-CN">;
769
+ title: z.ZodString;
770
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
771
+ key: z.ZodString;
772
+ type: z.ZodLiteral<"text">;
773
+ label: z.ZodOptional<z.ZodString>;
774
+ value: z.ZodString;
775
+ }, z.core.$strict>, z.ZodObject<{
776
+ key: z.ZodString;
777
+ type: z.ZodLiteral<"fields">;
778
+ items: z.ZodArray<z.ZodObject<{
779
+ label: z.ZodString;
780
+ value: z.ZodString;
781
+ }, z.core.$strict>>;
782
+ }, z.core.$strict>], "type">>;
783
+ }, z.core.$strict>], "key">>;
784
+ links: z.ZodArray<z.ZodObject<{
785
+ label: z.ZodString;
786
+ url: z.ZodString;
787
+ key: z.ZodString;
788
+ }, z.core.$strict>>;
789
+ }, z.core.$strict>;
790
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
791
+ eventId: z.ZodString;
792
+ producer: z.ZodObject<{
793
+ key: z.ZodString;
794
+ environment: z.ZodString;
795
+ }, z.core.$strict>;
796
+ routeKey: z.ZodString;
797
+ occurredAt: z.ZodString;
798
+ requestedAt: z.ZodString;
799
+ deliverBy: z.ZodString;
800
+ subject: z.ZodObject<{
801
+ type: z.ZodString;
802
+ id: z.ZodString;
803
+ revision: z.ZodNumber;
804
+ }, z.core.$strict>;
805
+ contractVersion: z.ZodLiteral<3>;
806
+ }, z.core.$strict>, z.ZodObject<{
807
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
808
+ eventId: z.ZodString;
809
+ producer: z.ZodObject<{
810
+ key: z.ZodString;
811
+ environment: z.ZodString;
812
+ }, z.core.$strict>;
813
+ routeKey: z.ZodString;
814
+ occurredAt: z.ZodString;
815
+ requestedAt: z.ZodString;
816
+ deliverBy: z.ZodString;
817
+ subject: z.ZodObject<{
818
+ type: z.ZodString;
819
+ id: z.ZodString;
820
+ revision: z.ZodNumber;
821
+ }, z.core.$strict>;
822
+ contractVersion: z.ZodLiteral<4>;
823
+ message: z.ZodObject<{
824
+ type: z.ZodLiteral<"structured_notification">;
825
+ links: z.ZodArray<z.ZodObject<{
826
+ label: z.ZodString;
827
+ url: z.ZodString;
828
+ key: z.ZodString;
829
+ }, z.core.$strict>>;
830
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
831
+ key: z.ZodLiteral<"source">;
832
+ locale: z.ZodLiteral<"und">;
833
+ title: z.ZodString;
834
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
835
+ key: z.ZodString;
836
+ type: z.ZodLiteral<"text">;
837
+ label: z.ZodOptional<z.ZodString>;
838
+ value: z.ZodString;
839
+ }, z.core.$strict>, z.ZodObject<{
840
+ key: z.ZodString;
841
+ type: z.ZodLiteral<"fields">;
842
+ items: z.ZodArray<z.ZodObject<{
843
+ label: z.ZodString;
844
+ value: z.ZodString;
845
+ }, z.core.$strict>>;
846
+ }, z.core.$strict>], "type">>;
847
+ body: z.ZodObject<{
848
+ label: z.ZodOptional<z.ZodString>;
849
+ value: z.ZodString;
850
+ }, z.core.$strict>;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ key: z.ZodLiteral<"zh-CN">;
853
+ locale: z.ZodLiteral<"zh-CN">;
854
+ title: z.ZodString;
855
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
856
+ key: z.ZodString;
857
+ type: z.ZodLiteral<"text">;
858
+ label: z.ZodOptional<z.ZodString>;
859
+ value: z.ZodString;
860
+ }, z.core.$strict>, z.ZodObject<{
861
+ key: z.ZodString;
862
+ type: z.ZodLiteral<"fields">;
863
+ items: z.ZodArray<z.ZodObject<{
864
+ label: z.ZodString;
865
+ value: z.ZodString;
866
+ }, z.core.$strict>>;
867
+ }, z.core.$strict>], "type">>;
868
+ body: z.ZodObject<{
869
+ label: z.ZodOptional<z.ZodString>;
870
+ value: z.ZodString;
871
+ }, z.core.$strict>;
872
+ }, z.core.$strict>], "key">>;
873
+ }, z.core.$strict>;
874
+ }, z.core.$strict>, z.ZodObject<{
875
+ message: z.ZodObject<{
876
+ type: z.ZodLiteral<"structured_notification">;
877
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
878
+ key: z.ZodLiteral<"source">;
879
+ locale: z.ZodLiteral<"und">;
880
+ title: z.ZodString;
881
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
882
+ key: z.ZodString;
883
+ type: z.ZodLiteral<"text">;
884
+ label: z.ZodOptional<z.ZodString>;
885
+ value: z.ZodString;
886
+ }, z.core.$strict>, z.ZodObject<{
887
+ key: z.ZodString;
888
+ type: z.ZodLiteral<"fields">;
889
+ items: z.ZodArray<z.ZodObject<{
890
+ label: z.ZodString;
891
+ value: z.ZodString;
892
+ }, z.core.$strict>>;
893
+ }, z.core.$strict>], "type">>;
894
+ bodyLabel: z.ZodOptional<z.ZodString>;
895
+ linkLabels: z.ZodArray<z.ZodObject<{
896
+ key: z.ZodString;
897
+ label: z.ZodString;
898
+ }, z.core.$strict>>;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ key: z.ZodLiteral<"zh-CN">;
901
+ locale: z.ZodLiteral<"zh-CN">;
902
+ title: z.ZodString;
903
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
904
+ key: z.ZodString;
905
+ type: z.ZodLiteral<"text">;
906
+ label: z.ZodOptional<z.ZodString>;
907
+ value: z.ZodString;
908
+ }, z.core.$strict>, z.ZodObject<{
909
+ key: z.ZodString;
910
+ type: z.ZodLiteral<"fields">;
911
+ items: z.ZodArray<z.ZodObject<{
912
+ label: z.ZodString;
913
+ value: z.ZodString;
914
+ }, z.core.$strict>>;
915
+ }, z.core.$strict>], "type">>;
916
+ bodyLabel: z.ZodOptional<z.ZodString>;
917
+ linkLabels: z.ZodArray<z.ZodObject<{
918
+ key: z.ZodString;
919
+ label: z.ZodString;
920
+ }, z.core.$strict>>;
921
+ }, z.core.$strict>], "key">>;
922
+ links: z.ZodArray<z.ZodObject<{
923
+ key: z.ZodString;
924
+ url: z.ZodString;
925
+ }, z.core.$strict>>;
926
+ body: z.ZodObject<{
927
+ value: z.ZodString;
928
+ }, z.core.$strict>;
929
+ }, z.core.$strict>;
930
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
931
+ eventId: z.ZodString;
932
+ producer: z.ZodObject<{
933
+ key: z.ZodString;
934
+ environment: z.ZodString;
935
+ }, z.core.$strict>;
936
+ routeKey: z.ZodString;
937
+ occurredAt: z.ZodString;
938
+ requestedAt: z.ZodString;
939
+ deliverBy: z.ZodString;
940
+ subject: z.ZodObject<{
941
+ type: z.ZodString;
942
+ id: z.ZodString;
943
+ revision: z.ZodNumber;
944
+ }, z.core.$strict>;
945
+ contractVersion: z.ZodLiteral<5>;
946
+ }, z.core.$strict>, z.ZodObject<{
947
+ contractVersion: z.ZodLiteral<6>;
948
+ message: z.ZodObject<{
949
+ type: z.ZodLiteral<"structured_notification">;
950
+ links: z.ZodArray<z.ZodObject<{
951
+ key: z.ZodString;
952
+ url: z.ZodString;
953
+ }, z.core.$strict>>;
954
+ bodies: z.ZodArray<z.ZodObject<{
955
+ key: z.ZodString;
956
+ value: z.ZodString;
957
+ }, z.core.$strict>>;
958
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
959
+ key: z.ZodLiteral<"source">;
960
+ locale: z.ZodLiteral<"und">;
961
+ title: z.ZodString;
962
+ linkLabels: z.ZodArray<z.ZodObject<{
963
+ key: z.ZodString;
964
+ label: z.ZodString;
965
+ }, z.core.$strict>>;
966
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
967
+ key: z.ZodString;
968
+ type: z.ZodLiteral<"text">;
969
+ label: z.ZodOptional<z.ZodString>;
970
+ value: z.ZodString;
971
+ }, z.core.$strict>, z.ZodObject<{
972
+ key: z.ZodString;
973
+ type: z.ZodLiteral<"fields">;
974
+ items: z.ZodArray<z.ZodObject<{
975
+ label: z.ZodString;
976
+ value: z.ZodString;
977
+ }, z.core.$strict>>;
978
+ }, z.core.$strict>], "type">>;
979
+ bodyRefs: z.ZodArray<z.ZodObject<{
980
+ key: z.ZodString;
981
+ label: z.ZodOptional<z.ZodString>;
982
+ }, z.core.$strict>>;
983
+ footer: z.ZodOptional<z.ZodString>;
984
+ }, z.core.$strict>, z.ZodObject<{
985
+ key: z.ZodLiteral<"zh-CN">;
986
+ locale: z.ZodLiteral<"zh-CN">;
987
+ title: z.ZodString;
988
+ linkLabels: z.ZodArray<z.ZodObject<{
989
+ key: z.ZodString;
990
+ label: z.ZodString;
991
+ }, z.core.$strict>>;
992
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
993
+ key: z.ZodString;
994
+ type: z.ZodLiteral<"text">;
995
+ label: z.ZodOptional<z.ZodString>;
996
+ value: z.ZodString;
997
+ }, z.core.$strict>, z.ZodObject<{
998
+ key: z.ZodString;
999
+ type: z.ZodLiteral<"fields">;
1000
+ items: z.ZodArray<z.ZodObject<{
1001
+ label: z.ZodString;
1002
+ value: z.ZodString;
1003
+ }, z.core.$strict>>;
1004
+ }, z.core.$strict>], "type">>;
1005
+ bodyRefs: z.ZodArray<z.ZodObject<{
1006
+ key: z.ZodString;
1007
+ label: z.ZodOptional<z.ZodString>;
1008
+ }, z.core.$strict>>;
1009
+ footer: z.ZodOptional<z.ZodString>;
1010
+ }, z.core.$strict>], "key">>;
1011
+ }, z.core.$strict>;
1012
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1013
+ eventId: z.ZodString;
1014
+ producer: z.ZodObject<{
1015
+ key: z.ZodString;
1016
+ environment: z.ZodString;
1017
+ }, z.core.$strict>;
1018
+ routeKey: z.ZodString;
1019
+ occurredAt: z.ZodString;
1020
+ requestedAt: z.ZodString;
1021
+ deliverBy: z.ZodString;
1022
+ subject: z.ZodObject<{
1023
+ type: z.ZodString;
1024
+ id: z.ZodString;
1025
+ revision: z.ZodNumber;
1026
+ }, z.core.$strict>;
1027
+ }, z.core.$strict>, z.ZodObject<{
1028
+ contractVersion: z.ZodLiteral<7>;
1029
+ routeKeys: z.ZodArray<z.ZodString>;
1030
+ message: z.ZodObject<{
1031
+ type: z.ZodLiteral<"structured_notification">;
1032
+ links: z.ZodArray<z.ZodObject<{
1033
+ key: z.ZodString;
1034
+ url: z.ZodString;
1035
+ }, z.core.$strict>>;
1036
+ bodies: z.ZodArray<z.ZodObject<{
1037
+ key: z.ZodString;
1038
+ value: z.ZodString;
1039
+ }, z.core.$strict>>;
1040
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1041
+ key: z.ZodLiteral<"source">;
1042
+ locale: z.ZodLiteral<"und">;
1043
+ title: z.ZodString;
1044
+ linkLabels: z.ZodArray<z.ZodObject<{
1045
+ key: z.ZodString;
1046
+ label: z.ZodString;
1047
+ }, z.core.$strict>>;
1048
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1049
+ key: z.ZodString;
1050
+ type: z.ZodLiteral<"text">;
1051
+ label: z.ZodOptional<z.ZodString>;
1052
+ value: z.ZodString;
1053
+ }, z.core.$strict>, z.ZodObject<{
1054
+ key: z.ZodString;
1055
+ type: z.ZodLiteral<"fields">;
1056
+ items: z.ZodArray<z.ZodObject<{
1057
+ label: z.ZodString;
1058
+ value: z.ZodString;
1059
+ }, z.core.$strict>>;
1060
+ }, z.core.$strict>], "type">>;
1061
+ bodyRefs: z.ZodArray<z.ZodObject<{
1062
+ key: z.ZodString;
1063
+ label: z.ZodOptional<z.ZodString>;
1064
+ }, z.core.$strict>>;
1065
+ footer: z.ZodOptional<z.ZodString>;
1066
+ }, z.core.$strict>, z.ZodObject<{
1067
+ key: z.ZodLiteral<"zh-CN">;
1068
+ locale: z.ZodLiteral<"zh-CN">;
1069
+ title: z.ZodString;
1070
+ linkLabels: z.ZodArray<z.ZodObject<{
1071
+ key: z.ZodString;
1072
+ label: z.ZodString;
1073
+ }, z.core.$strict>>;
1074
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1075
+ key: z.ZodString;
1076
+ type: z.ZodLiteral<"text">;
1077
+ label: z.ZodOptional<z.ZodString>;
1078
+ value: z.ZodString;
1079
+ }, z.core.$strict>, z.ZodObject<{
1080
+ key: z.ZodString;
1081
+ type: z.ZodLiteral<"fields">;
1082
+ items: z.ZodArray<z.ZodObject<{
1083
+ label: z.ZodString;
1084
+ value: z.ZodString;
1085
+ }, z.core.$strict>>;
1086
+ }, z.core.$strict>], "type">>;
1087
+ bodyRefs: z.ZodArray<z.ZodObject<{
1088
+ key: z.ZodString;
1089
+ label: z.ZodOptional<z.ZodString>;
1090
+ }, z.core.$strict>>;
1091
+ footer: z.ZodOptional<z.ZodString>;
1092
+ }, z.core.$strict>], "key">>;
1093
+ }, z.core.$strict>;
1094
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1095
+ eventId: z.ZodString;
1096
+ producer: z.ZodObject<{
1097
+ key: z.ZodString;
1098
+ environment: z.ZodString;
1099
+ }, z.core.$strict>;
1100
+ occurredAt: z.ZodString;
1101
+ requestedAt: z.ZodString;
1102
+ deliverBy: z.ZodString;
1103
+ subject: z.ZodObject<{
1104
+ type: z.ZodString;
1105
+ id: z.ZodString;
1106
+ revision: z.ZodNumber;
1107
+ }, z.core.$strict>;
1108
+ }, z.core.$strict>, z.ZodObject<{
1109
+ contractVersion: z.ZodLiteral<8>;
1110
+ message: z.ZodObject<{
1111
+ type: z.ZodLiteral<"structured_notification">;
1112
+ links: z.ZodArray<z.ZodObject<{
1113
+ key: z.ZodString;
1114
+ url: z.ZodString;
1115
+ }, z.core.$strict>>;
1116
+ bodies: z.ZodArray<z.ZodObject<{
1117
+ key: z.ZodString;
1118
+ value: z.ZodString;
1119
+ }, z.core.$strict>>;
1120
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1121
+ key: z.ZodLiteral<"source">;
1122
+ locale: z.ZodLiteral<"und">;
1123
+ title: z.ZodString;
1124
+ linkLabels: z.ZodArray<z.ZodObject<{
1125
+ key: z.ZodString;
1126
+ label: z.ZodString;
1127
+ }, z.core.$strict>>;
1128
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1129
+ key: z.ZodString;
1130
+ type: z.ZodLiteral<"text">;
1131
+ label: z.ZodOptional<z.ZodString>;
1132
+ value: z.ZodString;
1133
+ }, z.core.$strict>, z.ZodObject<{
1134
+ key: z.ZodString;
1135
+ type: z.ZodLiteral<"fields">;
1136
+ items: z.ZodArray<z.ZodObject<{
1137
+ label: z.ZodString;
1138
+ value: z.ZodString;
1139
+ }, z.core.$strict>>;
1140
+ }, z.core.$strict>], "type">>;
1141
+ bodyRefs: z.ZodArray<z.ZodObject<{
1142
+ key: z.ZodString;
1143
+ label: z.ZodOptional<z.ZodString>;
1144
+ }, z.core.$strict>>;
1145
+ footer: z.ZodOptional<z.ZodString>;
1146
+ }, z.core.$strict>, z.ZodObject<{
1147
+ key: z.ZodLiteral<"zh-CN">;
1148
+ locale: z.ZodLiteral<"zh-CN">;
1149
+ title: z.ZodString;
1150
+ linkLabels: z.ZodArray<z.ZodObject<{
1151
+ key: z.ZodString;
1152
+ label: z.ZodString;
1153
+ }, z.core.$strict>>;
1154
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1155
+ key: z.ZodString;
1156
+ type: z.ZodLiteral<"text">;
1157
+ label: z.ZodOptional<z.ZodString>;
1158
+ value: z.ZodString;
1159
+ }, z.core.$strict>, z.ZodObject<{
1160
+ key: z.ZodString;
1161
+ type: z.ZodLiteral<"fields">;
1162
+ items: z.ZodArray<z.ZodObject<{
1163
+ label: z.ZodString;
1164
+ value: z.ZodString;
1165
+ }, z.core.$strict>>;
1166
+ }, z.core.$strict>], "type">>;
1167
+ bodyRefs: z.ZodArray<z.ZodObject<{
1168
+ key: z.ZodString;
1169
+ label: z.ZodOptional<z.ZodString>;
1170
+ }, z.core.$strict>>;
1171
+ footer: z.ZodOptional<z.ZodString>;
1172
+ }, z.core.$strict>], "key">>;
1173
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1174
+ qq: "qq";
1175
+ tg: "tg";
1176
+ wechat: "wechat";
1177
+ lark: "lark";
1178
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1179
+ key: z.ZodLiteral<"source">;
1180
+ locale: z.ZodLiteral<"und">;
1181
+ title: z.ZodString;
1182
+ linkLabels: z.ZodArray<z.ZodObject<{
1183
+ key: z.ZodString;
1184
+ label: z.ZodString;
1185
+ }, z.core.$strict>>;
1186
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1187
+ key: z.ZodString;
1188
+ type: z.ZodLiteral<"text">;
1189
+ label: z.ZodOptional<z.ZodString>;
1190
+ value: z.ZodString;
1191
+ }, z.core.$strict>, z.ZodObject<{
1192
+ key: z.ZodString;
1193
+ type: z.ZodLiteral<"fields">;
1194
+ items: z.ZodArray<z.ZodObject<{
1195
+ label: z.ZodString;
1196
+ value: z.ZodString;
1197
+ }, z.core.$strict>>;
1198
+ }, z.core.$strict>], "type">>;
1199
+ bodyRefs: z.ZodArray<z.ZodObject<{
1200
+ key: z.ZodString;
1201
+ label: z.ZodOptional<z.ZodString>;
1202
+ }, z.core.$strict>>;
1203
+ footer: z.ZodOptional<z.ZodString>;
1204
+ }, z.core.$strict>, z.ZodObject<{
1205
+ key: z.ZodLiteral<"zh-CN">;
1206
+ locale: z.ZodLiteral<"zh-CN">;
1207
+ title: z.ZodString;
1208
+ linkLabels: z.ZodArray<z.ZodObject<{
1209
+ key: z.ZodString;
1210
+ label: z.ZodString;
1211
+ }, z.core.$strict>>;
1212
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1213
+ key: z.ZodString;
1214
+ type: z.ZodLiteral<"text">;
1215
+ label: z.ZodOptional<z.ZodString>;
1216
+ value: z.ZodString;
1217
+ }, z.core.$strict>, z.ZodObject<{
1218
+ key: z.ZodString;
1219
+ type: z.ZodLiteral<"fields">;
1220
+ items: z.ZodArray<z.ZodObject<{
1221
+ label: z.ZodString;
1222
+ value: z.ZodString;
1223
+ }, z.core.$strict>>;
1224
+ }, z.core.$strict>], "type">>;
1225
+ bodyRefs: z.ZodArray<z.ZodObject<{
1226
+ key: z.ZodString;
1227
+ label: z.ZodOptional<z.ZodString>;
1228
+ }, z.core.$strict>>;
1229
+ footer: z.ZodOptional<z.ZodString>;
1230
+ }, z.core.$strict>], "key">>>>;
1231
+ }, z.core.$strict>;
1232
+ routeKeys: z.ZodArray<z.ZodString>;
1233
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1234
+ eventId: z.ZodString;
1235
+ producer: z.ZodObject<{
1236
+ key: z.ZodString;
1237
+ environment: z.ZodString;
1238
+ }, z.core.$strict>;
1239
+ occurredAt: z.ZodString;
1240
+ requestedAt: z.ZodString;
1241
+ deliverBy: z.ZodString;
1242
+ subject: z.ZodObject<{
1243
+ type: z.ZodString;
1244
+ id: z.ZodString;
1245
+ revision: z.ZodNumber;
1246
+ }, z.core.$strict>;
1247
+ }, z.core.$strict>, z.ZodObject<{
1248
+ contractVersion: z.ZodLiteral<9>;
1249
+ audience: z.ZodOptional<z.ZodObject<{
1250
+ topics: z.ZodArray<z.ZodString>;
1251
+ }, z.core.$strict>>;
1252
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1253
+ locale: z.ZodString;
1254
+ contentLocale: z.ZodString;
1255
+ title: z.ZodString;
1256
+ body: z.ZodString;
1257
+ url: z.ZodString;
1258
+ }, z.core.$strict>>>;
1259
+ message: z.ZodObject<{
1260
+ type: z.ZodLiteral<"structured_notification">;
1261
+ links: z.ZodArray<z.ZodObject<{
1262
+ key: z.ZodString;
1263
+ url: z.ZodString;
1264
+ }, z.core.$strict>>;
1265
+ bodies: z.ZodArray<z.ZodObject<{
1266
+ key: z.ZodString;
1267
+ value: z.ZodString;
1268
+ }, z.core.$strict>>;
1269
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1270
+ key: z.ZodLiteral<"source">;
1271
+ locale: z.ZodLiteral<"und">;
1272
+ title: z.ZodString;
1273
+ linkLabels: z.ZodArray<z.ZodObject<{
1274
+ key: z.ZodString;
1275
+ label: z.ZodString;
1276
+ }, z.core.$strict>>;
1277
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1278
+ key: z.ZodString;
1279
+ type: z.ZodLiteral<"text">;
1280
+ label: z.ZodOptional<z.ZodString>;
1281
+ value: z.ZodString;
1282
+ }, z.core.$strict>, z.ZodObject<{
1283
+ key: z.ZodString;
1284
+ type: z.ZodLiteral<"fields">;
1285
+ items: z.ZodArray<z.ZodObject<{
1286
+ label: z.ZodString;
1287
+ value: z.ZodString;
1288
+ }, z.core.$strict>>;
1289
+ }, z.core.$strict>], "type">>;
1290
+ bodyRefs: z.ZodArray<z.ZodObject<{
1291
+ key: z.ZodString;
1292
+ label: z.ZodOptional<z.ZodString>;
1293
+ }, z.core.$strict>>;
1294
+ footer: z.ZodOptional<z.ZodString>;
1295
+ }, z.core.$strict>, z.ZodObject<{
1296
+ key: z.ZodLiteral<"zh-CN">;
1297
+ locale: z.ZodLiteral<"zh-CN">;
1298
+ title: z.ZodString;
1299
+ linkLabels: z.ZodArray<z.ZodObject<{
1300
+ key: z.ZodString;
1301
+ label: z.ZodString;
1302
+ }, z.core.$strict>>;
1303
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1304
+ key: z.ZodString;
1305
+ type: z.ZodLiteral<"text">;
1306
+ label: z.ZodOptional<z.ZodString>;
1307
+ value: z.ZodString;
1308
+ }, z.core.$strict>, z.ZodObject<{
1309
+ key: z.ZodString;
1310
+ type: z.ZodLiteral<"fields">;
1311
+ items: z.ZodArray<z.ZodObject<{
1312
+ label: z.ZodString;
1313
+ value: z.ZodString;
1314
+ }, z.core.$strict>>;
1315
+ }, z.core.$strict>], "type">>;
1316
+ bodyRefs: z.ZodArray<z.ZodObject<{
1317
+ key: z.ZodString;
1318
+ label: z.ZodOptional<z.ZodString>;
1319
+ }, z.core.$strict>>;
1320
+ footer: z.ZodOptional<z.ZodString>;
1321
+ }, z.core.$strict>], "key">>;
1322
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1323
+ qq: "qq";
1324
+ tg: "tg";
1325
+ wechat: "wechat";
1326
+ lark: "lark";
1327
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1328
+ key: z.ZodLiteral<"source">;
1329
+ locale: z.ZodLiteral<"und">;
1330
+ title: z.ZodString;
1331
+ linkLabels: z.ZodArray<z.ZodObject<{
1332
+ key: z.ZodString;
1333
+ label: z.ZodString;
1334
+ }, z.core.$strict>>;
1335
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1336
+ key: z.ZodString;
1337
+ type: z.ZodLiteral<"text">;
1338
+ label: z.ZodOptional<z.ZodString>;
1339
+ value: z.ZodString;
1340
+ }, z.core.$strict>, z.ZodObject<{
1341
+ key: z.ZodString;
1342
+ type: z.ZodLiteral<"fields">;
1343
+ items: z.ZodArray<z.ZodObject<{
1344
+ label: z.ZodString;
1345
+ value: z.ZodString;
1346
+ }, z.core.$strict>>;
1347
+ }, z.core.$strict>], "type">>;
1348
+ bodyRefs: z.ZodArray<z.ZodObject<{
1349
+ key: z.ZodString;
1350
+ label: z.ZodOptional<z.ZodString>;
1351
+ }, z.core.$strict>>;
1352
+ footer: z.ZodOptional<z.ZodString>;
1353
+ }, z.core.$strict>, z.ZodObject<{
1354
+ key: z.ZodLiteral<"zh-CN">;
1355
+ locale: z.ZodLiteral<"zh-CN">;
1356
+ title: z.ZodString;
1357
+ linkLabels: z.ZodArray<z.ZodObject<{
1358
+ key: z.ZodString;
1359
+ label: z.ZodString;
1360
+ }, z.core.$strict>>;
1361
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1362
+ key: z.ZodString;
1363
+ type: z.ZodLiteral<"text">;
1364
+ label: z.ZodOptional<z.ZodString>;
1365
+ value: z.ZodString;
1366
+ }, z.core.$strict>, z.ZodObject<{
1367
+ key: z.ZodString;
1368
+ type: z.ZodLiteral<"fields">;
1369
+ items: z.ZodArray<z.ZodObject<{
1370
+ label: z.ZodString;
1371
+ value: z.ZodString;
1372
+ }, z.core.$strict>>;
1373
+ }, z.core.$strict>], "type">>;
1374
+ bodyRefs: z.ZodArray<z.ZodObject<{
1375
+ key: z.ZodString;
1376
+ label: z.ZodOptional<z.ZodString>;
1377
+ }, z.core.$strict>>;
1378
+ footer: z.ZodOptional<z.ZodString>;
1379
+ }, z.core.$strict>], "key">>>>;
1380
+ }, z.core.$strict>;
1381
+ routeKeys: z.ZodArray<z.ZodString>;
1382
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1383
+ eventId: z.ZodString;
1384
+ producer: z.ZodObject<{
1385
+ key: z.ZodString;
1386
+ environment: z.ZodString;
1387
+ }, z.core.$strict>;
1388
+ occurredAt: z.ZodString;
1389
+ requestedAt: z.ZodString;
1390
+ deliverBy: z.ZodString;
1391
+ subject: z.ZodObject<{
1392
+ type: z.ZodString;
1393
+ id: z.ZodString;
1394
+ revision: z.ZodNumber;
1395
+ }, z.core.$strict>;
1396
+ }, z.core.$strict>, z.ZodObject<{
1397
+ contractVersion: z.ZodLiteral<10>;
1398
+ message: z.ZodObject<{
1399
+ type: z.ZodLiteral<"structured_notification">;
1400
+ links: z.ZodArray<z.ZodObject<{
1401
+ key: z.ZodString;
1402
+ url: z.ZodString;
1403
+ }, z.core.$strict>>;
1404
+ bodies: z.ZodArray<z.ZodObject<{
1405
+ key: z.ZodString;
1406
+ value: z.ZodString;
1407
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1408
+ offset: z.ZodNumber;
1409
+ length: z.ZodNumber;
1410
+ }, z.core.$strict>>>;
1411
+ }, z.core.$strict>>;
1412
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1413
+ key: z.ZodLiteral<"source">;
1414
+ locale: z.ZodLiteral<"und">;
1415
+ title: z.ZodString;
1416
+ linkLabels: z.ZodArray<z.ZodObject<{
1417
+ key: z.ZodString;
1418
+ label: z.ZodString;
1419
+ }, z.core.$strict>>;
1420
+ bodyRefs: z.ZodArray<z.ZodObject<{
1421
+ key: z.ZodString;
1422
+ label: z.ZodOptional<z.ZodString>;
1423
+ }, z.core.$strict>>;
1424
+ footer: z.ZodOptional<z.ZodString>;
1425
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1426
+ offset: z.ZodNumber;
1427
+ length: z.ZodNumber;
1428
+ }, z.core.$strict>>>;
1429
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1430
+ key: z.ZodString;
1431
+ type: z.ZodLiteral<"text">;
1432
+ label: z.ZodOptional<z.ZodString>;
1433
+ value: z.ZodString;
1434
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1435
+ offset: z.ZodNumber;
1436
+ length: z.ZodNumber;
1437
+ }, z.core.$strict>>>;
1438
+ }, z.core.$strict>, z.ZodObject<{
1439
+ key: z.ZodString;
1440
+ type: z.ZodLiteral<"fields">;
1441
+ items: z.ZodArray<z.ZodObject<{
1442
+ label: z.ZodString;
1443
+ value: z.ZodString;
1444
+ }, z.core.$strict>>;
1445
+ }, z.core.$strict>], "type">>;
1446
+ }, z.core.$strict>, z.ZodObject<{
1447
+ key: z.ZodLiteral<"zh-CN">;
1448
+ locale: z.ZodLiteral<"zh-CN">;
1449
+ title: z.ZodString;
1450
+ linkLabels: z.ZodArray<z.ZodObject<{
1451
+ key: z.ZodString;
1452
+ label: z.ZodString;
1453
+ }, z.core.$strict>>;
1454
+ bodyRefs: z.ZodArray<z.ZodObject<{
1455
+ key: z.ZodString;
1456
+ label: z.ZodOptional<z.ZodString>;
1457
+ }, z.core.$strict>>;
1458
+ footer: z.ZodOptional<z.ZodString>;
1459
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1460
+ offset: z.ZodNumber;
1461
+ length: z.ZodNumber;
1462
+ }, z.core.$strict>>>;
1463
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1464
+ key: z.ZodString;
1465
+ type: z.ZodLiteral<"text">;
1466
+ label: z.ZodOptional<z.ZodString>;
1467
+ value: z.ZodString;
1468
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1469
+ offset: z.ZodNumber;
1470
+ length: z.ZodNumber;
1471
+ }, z.core.$strict>>>;
1472
+ }, z.core.$strict>, z.ZodObject<{
1473
+ key: z.ZodString;
1474
+ type: z.ZodLiteral<"fields">;
1475
+ items: z.ZodArray<z.ZodObject<{
1476
+ label: z.ZodString;
1477
+ value: z.ZodString;
1478
+ }, z.core.$strict>>;
1479
+ }, z.core.$strict>], "type">>;
1480
+ }, z.core.$strict>], "key">>;
1481
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1482
+ qq: "qq";
1483
+ tg: "tg";
1484
+ wechat: "wechat";
1485
+ lark: "lark";
1486
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1487
+ key: z.ZodLiteral<"source">;
1488
+ locale: z.ZodLiteral<"und">;
1489
+ title: z.ZodString;
1490
+ linkLabels: z.ZodArray<z.ZodObject<{
1491
+ key: z.ZodString;
1492
+ label: z.ZodString;
1493
+ }, z.core.$strict>>;
1494
+ bodyRefs: z.ZodArray<z.ZodObject<{
1495
+ key: z.ZodString;
1496
+ label: z.ZodOptional<z.ZodString>;
1497
+ }, z.core.$strict>>;
1498
+ footer: z.ZodOptional<z.ZodString>;
1499
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1500
+ offset: z.ZodNumber;
1501
+ length: z.ZodNumber;
1502
+ }, z.core.$strict>>>;
1503
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1504
+ key: z.ZodString;
1505
+ type: z.ZodLiteral<"text">;
1506
+ label: z.ZodOptional<z.ZodString>;
1507
+ value: z.ZodString;
1508
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1509
+ offset: z.ZodNumber;
1510
+ length: z.ZodNumber;
1511
+ }, z.core.$strict>>>;
1512
+ }, z.core.$strict>, z.ZodObject<{
1513
+ key: z.ZodString;
1514
+ type: z.ZodLiteral<"fields">;
1515
+ items: z.ZodArray<z.ZodObject<{
1516
+ label: z.ZodString;
1517
+ value: z.ZodString;
1518
+ }, z.core.$strict>>;
1519
+ }, z.core.$strict>], "type">>;
1520
+ }, z.core.$strict>, z.ZodObject<{
1521
+ key: z.ZodLiteral<"zh-CN">;
1522
+ locale: z.ZodLiteral<"zh-CN">;
1523
+ title: z.ZodString;
1524
+ linkLabels: z.ZodArray<z.ZodObject<{
1525
+ key: z.ZodString;
1526
+ label: z.ZodString;
1527
+ }, z.core.$strict>>;
1528
+ bodyRefs: z.ZodArray<z.ZodObject<{
1529
+ key: z.ZodString;
1530
+ label: z.ZodOptional<z.ZodString>;
1531
+ }, z.core.$strict>>;
1532
+ footer: z.ZodOptional<z.ZodString>;
1533
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1534
+ offset: z.ZodNumber;
1535
+ length: z.ZodNumber;
1536
+ }, z.core.$strict>>>;
1537
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1538
+ key: z.ZodString;
1539
+ type: z.ZodLiteral<"text">;
1540
+ label: z.ZodOptional<z.ZodString>;
1541
+ value: z.ZodString;
1542
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1543
+ offset: z.ZodNumber;
1544
+ length: z.ZodNumber;
1545
+ }, z.core.$strict>>>;
1546
+ }, z.core.$strict>, z.ZodObject<{
1547
+ key: z.ZodString;
1548
+ type: z.ZodLiteral<"fields">;
1549
+ items: z.ZodArray<z.ZodObject<{
1550
+ label: z.ZodString;
1551
+ value: z.ZodString;
1552
+ }, z.core.$strict>>;
1553
+ }, z.core.$strict>], "type">>;
1554
+ }, z.core.$strict>], "key">>>>;
1555
+ }, z.core.$strict>;
1556
+ audience: z.ZodOptional<z.ZodObject<{
1557
+ topics: z.ZodArray<z.ZodString>;
1558
+ }, z.core.$strict>>;
1559
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1560
+ locale: z.ZodString;
1561
+ contentLocale: z.ZodString;
1562
+ title: z.ZodString;
1563
+ body: z.ZodString;
1564
+ url: z.ZodString;
1565
+ }, z.core.$strict>>>;
1566
+ routeKeys: z.ZodArray<z.ZodString>;
1567
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1568
+ eventId: z.ZodString;
1569
+ producer: z.ZodObject<{
1570
+ key: z.ZodString;
1571
+ environment: z.ZodString;
1572
+ }, z.core.$strict>;
1573
+ occurredAt: z.ZodString;
1574
+ requestedAt: z.ZodString;
1575
+ deliverBy: z.ZodString;
1576
+ subject: z.ZodObject<{
1577
+ type: z.ZodString;
1578
+ id: z.ZodString;
1579
+ revision: z.ZodNumber;
1580
+ }, z.core.$strict>;
1581
+ }, z.core.$strict>]>;
1582
+ type NotificationDeliveryRequest = z.infer<typeof notificationDeliveryRequestSchema>;
1583
+ type NotificationMessageVariantKey = (typeof notificationMessageVariantKeys)[number];
1584
+ type NotificationMessageBody = z.infer<typeof notificationMessageBodySchema>;
1585
+ //#endregion
1586
+ //#region src/generic-plain-text.d.ts
1587
+ declare class GenericNotificationRenderError extends Error {
1588
+ readonly code = "mandatory_content_too_large";
1589
+ constructor();
1590
+ }
1591
+ interface PlainTextOptions {
1592
+ channel?: NotificationDeliveryChannelKey;
1593
+ omitFirstTitle?: boolean;
1594
+ /** Destination-owned immutable copy appended to its corresponding language block. */
1595
+ variantSuffixes?: Partial<Record<NotificationMessageVariantKey, string>>;
1596
+ }
1597
+ interface GenericNotificationAnnotatedText {
1598
+ text: string;
1599
+ quotes: NotificationQuoteRange[];
1600
+ }
1601
+ /** Renders bounded text and producer-owned quote ranges using UTF-16 offsets. */
1602
+ declare function renderGenericNotificationAnnotatedText(input: NotificationDeliveryRequest, maximumCodePoints: number, requestedVariantKeys?: readonly NotificationMessageVariantKey[], options?: PlainTextOptions): GenericNotificationAnnotatedText;
1603
+ /** Renders one validated provider-neutral delivery snapshot as bounded plain text. */
1604
+ declare function renderGenericNotificationPlainText(input: NotificationDeliveryRequest, maximumCodePoints: number, requestedVariantKeys?: readonly NotificationMessageVariantKey[], options?: PlainTextOptions): string;
1605
+ //#endregion
1606
+ //#region src/generic-message.d.ts
1607
+ interface GenericNotificationMessageContent {
1608
+ key: NotificationMessageVariantKey;
1609
+ locale: 'und' | 'zh-CN';
1610
+ sections: GenericNotificationMessageSection[];
1611
+ title: string;
1612
+ titleQuotes?: NotificationQuoteRange[];
1613
+ body?: GenericNotificationMessageBody;
1614
+ bodies?: GenericNotificationMessageBody[];
1615
+ footer?: string | undefined;
1616
+ links?: GenericNotificationMessageLink[];
1617
+ }
1618
+ type GenericNotificationMessageSection = NotificationDeliveryRequestV10['message']['variants'][number]['sections'][number];
1619
+ type GenericNotificationMessageBody = NotificationMessageBody & Pick<NotificationDeliveryRequestV10['message']['bodies'][number], 'quotes'>;
1620
+ interface GenericNotificationMessageLink {
1621
+ key: string;
1622
+ label: string;
1623
+ url: string;
1624
+ }
1625
+ /** Selects frozen channel copy; an absent override keeps the request's frozen default copy. */
1626
+ declare function resolveGenericNotificationChannelVariants(input: NotificationDeliveryRequestV6 | NotificationDeliveryRequestV7 | NotificationDeliveryRequestV8 | NotificationDeliveryRequestV9 | NotificationDeliveryRequestV10, channel?: NotificationDeliveryChannelKey): ({
1627
+ key: "source";
1628
+ locale: "und";
1629
+ title: string;
1630
+ linkLabels: {
1631
+ key: string;
1632
+ label: string;
1633
+ }[];
1634
+ sections: ({
1635
+ key: string;
1636
+ type: "text";
1637
+ value: string;
1638
+ label?: string | undefined;
1639
+ } | {
1640
+ key: string;
1641
+ type: "fields";
1642
+ items: {
1643
+ label: string;
1644
+ value: string;
1645
+ }[];
1646
+ })[];
1647
+ bodyRefs: {
1648
+ key: string;
1649
+ label?: string | undefined;
1650
+ }[];
1651
+ footer?: string | undefined;
1652
+ } | {
1653
+ key: "zh-CN";
1654
+ locale: "zh-CN";
1655
+ title: string;
1656
+ linkLabels: {
1657
+ key: string;
1658
+ label: string;
1659
+ }[];
1660
+ sections: ({
1661
+ key: string;
1662
+ type: "text";
1663
+ value: string;
1664
+ label?: string | undefined;
1665
+ } | {
1666
+ key: string;
1667
+ type: "fields";
1668
+ items: {
1669
+ label: string;
1670
+ value: string;
1671
+ }[];
1672
+ })[];
1673
+ bodyRefs: {
1674
+ key: string;
1675
+ label?: string | undefined;
1676
+ }[];
1677
+ footer?: string | undefined;
1678
+ })[] | ({
1679
+ key: "source";
1680
+ locale: "und";
1681
+ title: string;
1682
+ linkLabels: {
1683
+ key: string;
1684
+ label: string;
1685
+ }[];
1686
+ bodyRefs: {
1687
+ key: string;
1688
+ label?: string | undefined;
1689
+ }[];
1690
+ sections: ({
1691
+ key: string;
1692
+ type: "fields";
1693
+ items: {
1694
+ label: string;
1695
+ value: string;
1696
+ }[];
1697
+ } | {
1698
+ key: string;
1699
+ type: "text";
1700
+ value: string;
1701
+ label?: string | undefined;
1702
+ quotes?: {
1703
+ offset: number;
1704
+ length: number;
1705
+ }[] | undefined;
1706
+ })[];
1707
+ footer?: string | undefined;
1708
+ titleQuotes?: {
1709
+ offset: number;
1710
+ length: number;
1711
+ }[] | undefined;
1712
+ } | {
1713
+ key: "zh-CN";
1714
+ locale: "zh-CN";
1715
+ title: string;
1716
+ linkLabels: {
1717
+ key: string;
1718
+ label: string;
1719
+ }[];
1720
+ bodyRefs: {
1721
+ key: string;
1722
+ label?: string | undefined;
1723
+ }[];
1724
+ sections: ({
1725
+ key: string;
1726
+ type: "fields";
1727
+ items: {
1728
+ label: string;
1729
+ value: string;
1730
+ }[];
1731
+ } | {
1732
+ key: string;
1733
+ type: "text";
1734
+ value: string;
1735
+ label?: string | undefined;
1736
+ quotes?: {
1737
+ offset: number;
1738
+ length: number;
1739
+ }[] | undefined;
1740
+ })[];
1741
+ footer?: string | undefined;
1742
+ titleQuotes?: {
1743
+ offset: number;
1744
+ length: number;
1745
+ }[] | undefined;
1746
+ })[];
1747
+ /** Resolves a validated request into the ordered message variants selected by one destination. */
1748
+ declare function resolveGenericNotificationMessage(input: NotificationDeliveryRequest, requestedVariantKeys?: readonly NotificationMessageVariantKey[], channel?: NotificationDeliveryChannelKey): {
1749
+ links: GenericNotificationMessageLink[];
1750
+ linksPerVariant: boolean;
1751
+ variants: GenericNotificationMessageContent[];
1752
+ };
1753
+ /** Returns the ordered variant identity used by renderer caches. */
1754
+ declare function resolveGenericNotificationMessageVariantKeys(input: NotificationDeliveryRequest, requestedVariantKeys?: readonly NotificationMessageVariantKey[], channel?: NotificationDeliveryChannelKey): ("source" | "zh-CN")[];
1755
+ //#endregion
1756
+ export { type GenericNotificationAnnotatedText, type GenericNotificationMessageBody, type GenericNotificationMessageContent, type GenericNotificationMessageLink, type GenericNotificationMessageSection, GenericNotificationRenderError, type PlainTextOptions, renderGenericNotificationAnnotatedText, renderGenericNotificationPlainText, resolveGenericNotificationChannelVariants, resolveGenericNotificationMessage, resolveGenericNotificationMessageVariantKeys };