@closerepo/notification-contracts 1.13.0 → 1.15.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.
- package/dist/index.d.ts +1015 -176
- package/dist/index.js +1 -1
- package/dist/render.d.ts +1162 -251
- package/dist/render.js +20 -9
- package/package.json +1 -1
package/dist/render.d.ts
CHANGED
|
@@ -3,19 +3,6 @@ import { z } from "zod";
|
|
|
3
3
|
declare const notificationMessageVariantKeys: readonly ["source", "zh-CN"];
|
|
4
4
|
declare const notificationDeliveryChannelKeys: readonly ["qq", "tg", "wechat", "lark"];
|
|
5
5
|
type NotificationDeliveryChannelKey = (typeof notificationDeliveryChannelKeys)[number];
|
|
6
|
-
declare const structuredMessageSectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
-
key: z.ZodString;
|
|
8
|
-
type: z.ZodLiteral<"text">;
|
|
9
|
-
label: z.ZodOptional<z.ZodString>;
|
|
10
|
-
value: z.ZodString;
|
|
11
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
12
|
-
key: z.ZodString;
|
|
13
|
-
type: z.ZodLiteral<"fields">;
|
|
14
|
-
items: z.ZodArray<z.ZodObject<{
|
|
15
|
-
label: z.ZodString;
|
|
16
|
-
value: z.ZodString;
|
|
17
|
-
}, z.core.$strict>>;
|
|
18
|
-
}, z.core.$strict>], "type">;
|
|
19
6
|
declare const notificationMessageBodySchema: z.ZodObject<{
|
|
20
7
|
label: z.ZodOptional<z.ZodString>;
|
|
21
8
|
value: z.ZodString;
|
|
@@ -34,8 +21,8 @@ declare const notificationDeliveryRequestV6Schema: z.ZodObject<{
|
|
|
34
21
|
}, z.core.$strict>>;
|
|
35
22
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
23
|
key: z.ZodLiteral<"source">;
|
|
37
|
-
locale: z.ZodLiteral<"und">;
|
|
38
24
|
title: z.ZodString;
|
|
25
|
+
locale: z.ZodLiteral<"und">;
|
|
39
26
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
40
27
|
key: z.ZodString;
|
|
41
28
|
label: z.ZodString;
|
|
@@ -60,8 +47,8 @@ declare const notificationDeliveryRequestV6Schema: z.ZodObject<{
|
|
|
60
47
|
footer: z.ZodOptional<z.ZodString>;
|
|
61
48
|
}, z.core.$strict>, z.ZodObject<{
|
|
62
49
|
key: z.ZodLiteral<"zh-CN">;
|
|
63
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
64
50
|
title: z.ZodString;
|
|
51
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
65
52
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
66
53
|
key: z.ZodString;
|
|
67
54
|
label: z.ZodString;
|
|
@@ -118,8 +105,8 @@ declare const notificationDeliveryRequestV7Schema: z.ZodObject<{
|
|
|
118
105
|
}, z.core.$strict>>;
|
|
119
106
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
120
107
|
key: z.ZodLiteral<"source">;
|
|
121
|
-
locale: z.ZodLiteral<"und">;
|
|
122
108
|
title: z.ZodString;
|
|
109
|
+
locale: z.ZodLiteral<"und">;
|
|
123
110
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
124
111
|
key: z.ZodString;
|
|
125
112
|
label: z.ZodString;
|
|
@@ -144,8 +131,8 @@ declare const notificationDeliveryRequestV7Schema: z.ZodObject<{
|
|
|
144
131
|
footer: z.ZodOptional<z.ZodString>;
|
|
145
132
|
}, z.core.$strict>, z.ZodObject<{
|
|
146
133
|
key: z.ZodLiteral<"zh-CN">;
|
|
147
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
148
134
|
title: z.ZodString;
|
|
135
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
149
136
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
150
137
|
key: z.ZodString;
|
|
151
138
|
label: z.ZodString;
|
|
@@ -201,8 +188,8 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
|
|
|
201
188
|
}, z.core.$strict>>;
|
|
202
189
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
203
190
|
key: z.ZodLiteral<"source">;
|
|
204
|
-
locale: z.ZodLiteral<"und">;
|
|
205
191
|
title: z.ZodString;
|
|
192
|
+
locale: z.ZodLiteral<"und">;
|
|
206
193
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
207
194
|
key: z.ZodString;
|
|
208
195
|
label: z.ZodString;
|
|
@@ -227,8 +214,8 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
|
|
|
227
214
|
footer: z.ZodOptional<z.ZodString>;
|
|
228
215
|
}, z.core.$strict>, z.ZodObject<{
|
|
229
216
|
key: z.ZodLiteral<"zh-CN">;
|
|
230
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
231
217
|
title: z.ZodString;
|
|
218
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
232
219
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
233
220
|
key: z.ZodString;
|
|
234
221
|
label: z.ZodString;
|
|
@@ -259,8 +246,8 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
|
|
|
259
246
|
lark: "lark";
|
|
260
247
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
261
248
|
key: z.ZodLiteral<"source">;
|
|
262
|
-
locale: z.ZodLiteral<"und">;
|
|
263
249
|
title: z.ZodString;
|
|
250
|
+
locale: z.ZodLiteral<"und">;
|
|
264
251
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
265
252
|
key: z.ZodString;
|
|
266
253
|
label: z.ZodString;
|
|
@@ -285,8 +272,8 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
|
|
|
285
272
|
footer: z.ZodOptional<z.ZodString>;
|
|
286
273
|
}, z.core.$strict>, z.ZodObject<{
|
|
287
274
|
key: z.ZodLiteral<"zh-CN">;
|
|
288
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
289
275
|
title: z.ZodString;
|
|
276
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
290
277
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
291
278
|
key: z.ZodString;
|
|
292
279
|
label: z.ZodString;
|
|
@@ -353,8 +340,8 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
353
340
|
}, z.core.$strict>>;
|
|
354
341
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
355
342
|
key: z.ZodLiteral<"source">;
|
|
356
|
-
locale: z.ZodLiteral<"und">;
|
|
357
343
|
title: z.ZodString;
|
|
344
|
+
locale: z.ZodLiteral<"und">;
|
|
358
345
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
359
346
|
key: z.ZodString;
|
|
360
347
|
label: z.ZodString;
|
|
@@ -379,8 +366,8 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
379
366
|
footer: z.ZodOptional<z.ZodString>;
|
|
380
367
|
}, z.core.$strict>, z.ZodObject<{
|
|
381
368
|
key: z.ZodLiteral<"zh-CN">;
|
|
382
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
383
369
|
title: z.ZodString;
|
|
370
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
384
371
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
385
372
|
key: z.ZodString;
|
|
386
373
|
label: z.ZodString;
|
|
@@ -411,8 +398,8 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
411
398
|
lark: "lark";
|
|
412
399
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
413
400
|
key: z.ZodLiteral<"source">;
|
|
414
|
-
locale: z.ZodLiteral<"und">;
|
|
415
401
|
title: z.ZodString;
|
|
402
|
+
locale: z.ZodLiteral<"und">;
|
|
416
403
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
417
404
|
key: z.ZodString;
|
|
418
405
|
label: z.ZodString;
|
|
@@ -437,8 +424,8 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
437
424
|
footer: z.ZodOptional<z.ZodString>;
|
|
438
425
|
}, z.core.$strict>, z.ZodObject<{
|
|
439
426
|
key: z.ZodLiteral<"zh-CN">;
|
|
440
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
441
427
|
title: z.ZodString;
|
|
428
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
442
429
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
443
430
|
key: z.ZodString;
|
|
444
431
|
label: z.ZodString;
|
|
@@ -480,100 +467,129 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
480
467
|
}, z.core.$strict>;
|
|
481
468
|
}, z.core.$strict>;
|
|
482
469
|
type NotificationDeliveryRequestV9 = z.infer<typeof notificationDeliveryRequestV9Schema>;
|
|
483
|
-
|
|
484
|
-
declare const
|
|
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>;
|
|
485
479
|
message: z.ZodObject<{
|
|
486
|
-
type: z.ZodLiteral<"
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
facts: z.ZodArray<z.ZodObject<{
|
|
490
|
-
label: z.ZodString;
|
|
491
|
-
value: z.ZodString;
|
|
492
|
-
}, z.core.$strict>>;
|
|
493
|
-
primaryLink: z.ZodObject<{
|
|
494
|
-
label: z.ZodString;
|
|
495
|
-
url: z.ZodString;
|
|
496
|
-
}, z.core.$strict>;
|
|
497
|
-
sourceLink: z.ZodOptional<z.ZodObject<{
|
|
498
|
-
label: z.ZodString;
|
|
480
|
+
type: z.ZodLiteral<"structured_notification">;
|
|
481
|
+
links: z.ZodArray<z.ZodObject<{
|
|
482
|
+
key: z.ZodString;
|
|
499
483
|
url: z.ZodString;
|
|
500
484
|
}, z.core.$strict>>;
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
occurredAt: z.ZodString;
|
|
510
|
-
requestedAt: z.ZodString;
|
|
511
|
-
deliverBy: z.ZodString;
|
|
512
|
-
subject: z.ZodObject<{
|
|
513
|
-
type: z.ZodString;
|
|
514
|
-
id: z.ZodString;
|
|
515
|
-
revision: z.ZodNumber;
|
|
516
|
-
}, z.core.$strict>;
|
|
517
|
-
contractVersion: z.ZodLiteral<1>;
|
|
518
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
519
|
-
message: z.ZodObject<{
|
|
520
|
-
type: z.ZodLiteral<"localized_link_summary">;
|
|
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>>;
|
|
521
493
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
494
|
+
key: z.ZodLiteral<"source">;
|
|
522
495
|
title: z.ZodString;
|
|
523
|
-
|
|
524
|
-
|
|
496
|
+
locale: z.ZodLiteral<"und">;
|
|
497
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
498
|
+
key: z.ZodString;
|
|
525
499
|
label: z.ZodString;
|
|
526
|
-
value: z.ZodString;
|
|
527
500
|
}, z.core.$strict>>;
|
|
528
|
-
|
|
529
|
-
|
|
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">>;
|
|
530
527
|
}, z.core.$strict>, z.ZodObject<{
|
|
528
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
531
529
|
title: z.ZodString;
|
|
532
|
-
|
|
533
|
-
|
|
530
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
531
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
532
|
+
key: z.ZodString;
|
|
534
533
|
label: z.ZodString;
|
|
535
|
-
value: z.ZodString;
|
|
536
534
|
}, z.core.$strict>>;
|
|
537
|
-
|
|
538
|
-
|
|
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">>;
|
|
539
561
|
}, z.core.$strict>], "key">>;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
url: z.ZodString;
|
|
547
|
-
}, z.core.$strict>>;
|
|
548
|
-
}, z.core.$strict>;
|
|
549
|
-
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
550
|
-
eventId: z.ZodString;
|
|
551
|
-
producer: z.ZodObject<{
|
|
552
|
-
key: z.ZodString;
|
|
553
|
-
environment: z.ZodString;
|
|
554
|
-
}, z.core.$strict>;
|
|
555
|
-
routeKey: z.ZodString;
|
|
556
|
-
occurredAt: z.ZodString;
|
|
557
|
-
requestedAt: z.ZodString;
|
|
558
|
-
deliverBy: z.ZodString;
|
|
559
|
-
subject: z.ZodObject<{
|
|
560
|
-
type: z.ZodString;
|
|
561
|
-
id: z.ZodString;
|
|
562
|
-
revision: z.ZodNumber;
|
|
563
|
-
}, z.core.$strict>;
|
|
564
|
-
contractVersion: z.ZodLiteral<2>;
|
|
565
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
566
|
-
message: z.ZodObject<{
|
|
567
|
-
type: z.ZodLiteral<"structured_notification">;
|
|
568
|
-
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
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<{
|
|
569
568
|
key: z.ZodLiteral<"source">;
|
|
570
|
-
locale: z.ZodLiteral<"und">;
|
|
571
569
|
title: z.ZodString;
|
|
570
|
+
locale: z.ZodLiteral<"und">;
|
|
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>>>;
|
|
572
584
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
573
585
|
key: z.ZodString;
|
|
574
586
|
type: z.ZodLiteral<"text">;
|
|
575
587
|
label: z.ZodOptional<z.ZodString>;
|
|
576
588
|
value: z.ZodString;
|
|
589
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
590
|
+
offset: z.ZodNumber;
|
|
591
|
+
length: z.ZodNumber;
|
|
592
|
+
}, z.core.$strict>>>;
|
|
577
593
|
}, z.core.$strict>, z.ZodObject<{
|
|
578
594
|
key: z.ZodString;
|
|
579
595
|
type: z.ZodLiteral<"fields">;
|
|
@@ -584,13 +600,30 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
584
600
|
}, z.core.$strict>], "type">>;
|
|
585
601
|
}, z.core.$strict>, z.ZodObject<{
|
|
586
602
|
key: z.ZodLiteral<"zh-CN">;
|
|
587
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
588
603
|
title: z.ZodString;
|
|
604
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
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>>>;
|
|
589
618
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
590
619
|
key: z.ZodString;
|
|
591
620
|
type: z.ZodLiteral<"text">;
|
|
592
621
|
label: z.ZodOptional<z.ZodString>;
|
|
593
622
|
value: z.ZodString;
|
|
623
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
624
|
+
offset: z.ZodNumber;
|
|
625
|
+
length: z.ZodNumber;
|
|
626
|
+
}, z.core.$strict>>>;
|
|
594
627
|
}, z.core.$strict>, z.ZodObject<{
|
|
595
628
|
key: z.ZodString;
|
|
596
629
|
type: z.ZodLiteral<"fields">;
|
|
@@ -599,37 +632,25 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
599
632
|
value: z.ZodString;
|
|
600
633
|
}, z.core.$strict>>;
|
|
601
634
|
}, z.core.$strict>], "type">>;
|
|
602
|
-
}, z.core.$strict>], "key"
|
|
603
|
-
links: z.ZodArray<z.ZodObject<{
|
|
604
|
-
label: z.ZodString;
|
|
605
|
-
url: z.ZodString;
|
|
606
|
-
key: z.ZodString;
|
|
607
|
-
}, z.core.$strict>>;
|
|
608
|
-
}, z.core.$strict>;
|
|
609
|
-
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
610
|
-
eventId: z.ZodString;
|
|
611
|
-
producer: z.ZodObject<{
|
|
612
|
-
key: z.ZodString;
|
|
613
|
-
environment: z.ZodString;
|
|
614
|
-
}, z.core.$strict>;
|
|
615
|
-
routeKey: z.ZodString;
|
|
616
|
-
occurredAt: z.ZodString;
|
|
617
|
-
requestedAt: z.ZodString;
|
|
618
|
-
deliverBy: z.ZodString;
|
|
619
|
-
subject: z.ZodObject<{
|
|
620
|
-
type: z.ZodString;
|
|
621
|
-
id: z.ZodString;
|
|
622
|
-
revision: z.ZodNumber;
|
|
635
|
+
}, z.core.$strict>], "key">>>>;
|
|
623
636
|
}, z.core.$strict>;
|
|
624
|
-
|
|
625
|
-
|
|
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>;
|
|
626
648
|
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
627
649
|
eventId: z.ZodString;
|
|
628
650
|
producer: z.ZodObject<{
|
|
629
651
|
key: z.ZodString;
|
|
630
652
|
environment: z.ZodString;
|
|
631
653
|
}, z.core.$strict>;
|
|
632
|
-
routeKey: z.ZodString;
|
|
633
654
|
occurredAt: z.ZodString;
|
|
634
655
|
requestedAt: z.ZodString;
|
|
635
656
|
deliverBy: z.ZodString;
|
|
@@ -638,23 +659,51 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
638
659
|
id: z.ZodString;
|
|
639
660
|
revision: z.ZodNumber;
|
|
640
661
|
}, z.core.$strict>;
|
|
641
|
-
|
|
662
|
+
}, z.core.$strict>;
|
|
663
|
+
type NotificationDeliveryRequestV10 = z.infer<typeof notificationDeliveryRequestV10Schema>;
|
|
664
|
+
/** V11 freezes channel presentation while retaining shared body and link identities. */
|
|
665
|
+
declare const notificationDeliveryRequestV11Schema: z.ZodObject<{
|
|
666
|
+
contractVersion: z.ZodLiteral<11>;
|
|
642
667
|
message: z.ZodObject<{
|
|
643
668
|
type: z.ZodLiteral<"structured_notification">;
|
|
644
669
|
links: z.ZodArray<z.ZodObject<{
|
|
645
|
-
|
|
670
|
+
key: z.ZodString;
|
|
646
671
|
url: z.ZodString;
|
|
672
|
+
}, z.core.$strict>>;
|
|
673
|
+
bodies: z.ZodArray<z.ZodObject<{
|
|
647
674
|
key: z.ZodString;
|
|
675
|
+
value: z.ZodString;
|
|
676
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
677
|
+
offset: z.ZodNumber;
|
|
678
|
+
length: z.ZodNumber;
|
|
679
|
+
}, z.core.$strict>>>;
|
|
648
680
|
}, z.core.$strict>>;
|
|
649
681
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
650
682
|
key: z.ZodLiteral<"source">;
|
|
651
|
-
locale: z.ZodLiteral<"und">;
|
|
652
683
|
title: z.ZodString;
|
|
684
|
+
locale: z.ZodLiteral<"und">;
|
|
685
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
686
|
+
key: z.ZodString;
|
|
687
|
+
label: z.ZodString;
|
|
688
|
+
}, z.core.$strict>>;
|
|
689
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
690
|
+
key: z.ZodString;
|
|
691
|
+
label: z.ZodOptional<z.ZodString>;
|
|
692
|
+
}, z.core.$strict>>;
|
|
693
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
694
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
695
|
+
offset: z.ZodNumber;
|
|
696
|
+
length: z.ZodNumber;
|
|
697
|
+
}, z.core.$strict>>>;
|
|
653
698
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
654
699
|
key: z.ZodString;
|
|
655
700
|
type: z.ZodLiteral<"text">;
|
|
656
701
|
label: z.ZodOptional<z.ZodString>;
|
|
657
702
|
value: z.ZodString;
|
|
703
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
704
|
+
offset: z.ZodNumber;
|
|
705
|
+
length: z.ZodNumber;
|
|
706
|
+
}, z.core.$strict>>>;
|
|
658
707
|
}, z.core.$strict>, z.ZodObject<{
|
|
659
708
|
key: z.ZodString;
|
|
660
709
|
type: z.ZodLiteral<"fields">;
|
|
@@ -663,19 +712,32 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
663
712
|
value: z.ZodString;
|
|
664
713
|
}, z.core.$strict>>;
|
|
665
714
|
}, z.core.$strict>], "type">>;
|
|
666
|
-
body: z.ZodObject<{
|
|
667
|
-
label: z.ZodOptional<z.ZodString>;
|
|
668
|
-
value: z.ZodString;
|
|
669
|
-
}, z.core.$strict>;
|
|
670
715
|
}, z.core.$strict>, z.ZodObject<{
|
|
671
716
|
key: z.ZodLiteral<"zh-CN">;
|
|
672
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
673
717
|
title: z.ZodString;
|
|
718
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
719
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
720
|
+
key: z.ZodString;
|
|
721
|
+
label: z.ZodString;
|
|
722
|
+
}, z.core.$strict>>;
|
|
723
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
724
|
+
key: z.ZodString;
|
|
725
|
+
label: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, z.core.$strict>>;
|
|
727
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
728
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
729
|
+
offset: z.ZodNumber;
|
|
730
|
+
length: z.ZodNumber;
|
|
731
|
+
}, z.core.$strict>>>;
|
|
674
732
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
675
733
|
key: z.ZodString;
|
|
676
734
|
type: z.ZodLiteral<"text">;
|
|
677
735
|
label: z.ZodOptional<z.ZodString>;
|
|
678
736
|
value: z.ZodString;
|
|
737
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
738
|
+
offset: z.ZodNumber;
|
|
739
|
+
length: z.ZodNumber;
|
|
740
|
+
}, z.core.$strict>>>;
|
|
679
741
|
}, z.core.$strict>, z.ZodObject<{
|
|
680
742
|
key: z.ZodString;
|
|
681
743
|
type: z.ZodLiteral<"fields">;
|
|
@@ -684,19 +746,445 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
684
746
|
value: z.ZodString;
|
|
685
747
|
}, z.core.$strict>>;
|
|
686
748
|
}, z.core.$strict>], "type">>;
|
|
687
|
-
body: z.ZodObject<{
|
|
688
|
-
label: z.ZodOptional<z.ZodString>;
|
|
689
|
-
value: z.ZodString;
|
|
690
|
-
}, z.core.$strict>;
|
|
691
749
|
}, z.core.$strict>], "key">>;
|
|
692
|
-
|
|
750
|
+
channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
751
|
+
qq: "qq";
|
|
752
|
+
tg: "tg";
|
|
753
|
+
wechat: "wechat";
|
|
754
|
+
lark: "lark";
|
|
755
|
+
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
756
|
+
key: z.ZodLiteral<"source">;
|
|
757
|
+
title: z.ZodString;
|
|
758
|
+
locale: z.ZodLiteral<"und">;
|
|
759
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
760
|
+
key: z.ZodString;
|
|
761
|
+
label: z.ZodString;
|
|
762
|
+
}, z.core.$strict>>;
|
|
763
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
764
|
+
key: z.ZodString;
|
|
765
|
+
label: z.ZodOptional<z.ZodString>;
|
|
766
|
+
}, z.core.$strict>>;
|
|
767
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
768
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
769
|
+
offset: z.ZodNumber;
|
|
770
|
+
length: z.ZodNumber;
|
|
771
|
+
}, z.core.$strict>>>;
|
|
772
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
773
|
+
key: z.ZodString;
|
|
774
|
+
type: z.ZodLiteral<"text">;
|
|
775
|
+
label: z.ZodOptional<z.ZodString>;
|
|
776
|
+
value: z.ZodString;
|
|
777
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
778
|
+
offset: z.ZodNumber;
|
|
779
|
+
length: z.ZodNumber;
|
|
780
|
+
}, z.core.$strict>>>;
|
|
781
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
782
|
+
key: z.ZodString;
|
|
783
|
+
type: z.ZodLiteral<"fields">;
|
|
784
|
+
items: z.ZodArray<z.ZodObject<{
|
|
785
|
+
label: z.ZodString;
|
|
786
|
+
value: z.ZodString;
|
|
787
|
+
}, z.core.$strict>>;
|
|
788
|
+
}, z.core.$strict>], "type">>;
|
|
789
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
790
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
791
|
+
title: z.ZodString;
|
|
792
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
793
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
794
|
+
key: z.ZodString;
|
|
795
|
+
label: z.ZodString;
|
|
796
|
+
}, z.core.$strict>>;
|
|
797
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
798
|
+
key: z.ZodString;
|
|
799
|
+
label: z.ZodOptional<z.ZodString>;
|
|
800
|
+
}, z.core.$strict>>;
|
|
801
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
802
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
803
|
+
offset: z.ZodNumber;
|
|
804
|
+
length: z.ZodNumber;
|
|
805
|
+
}, z.core.$strict>>>;
|
|
806
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
807
|
+
key: z.ZodString;
|
|
808
|
+
type: z.ZodLiteral<"text">;
|
|
809
|
+
label: z.ZodOptional<z.ZodString>;
|
|
810
|
+
value: z.ZodString;
|
|
811
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
812
|
+
offset: z.ZodNumber;
|
|
813
|
+
length: z.ZodNumber;
|
|
814
|
+
}, z.core.$strict>>>;
|
|
815
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
816
|
+
key: z.ZodString;
|
|
817
|
+
type: z.ZodLiteral<"fields">;
|
|
818
|
+
items: z.ZodArray<z.ZodObject<{
|
|
819
|
+
label: z.ZodString;
|
|
820
|
+
value: z.ZodString;
|
|
821
|
+
}, z.core.$strict>>;
|
|
822
|
+
}, z.core.$strict>], "type">>;
|
|
823
|
+
}, z.core.$strict>], "key">>>>;
|
|
824
|
+
channelFormats: z.ZodOptional<z.ZodObject<{
|
|
825
|
+
qq: z.ZodOptional<z.ZodEnum<{
|
|
826
|
+
auto: "auto";
|
|
827
|
+
markdown: "markdown";
|
|
828
|
+
plain_text: "plain_text";
|
|
829
|
+
}>>;
|
|
830
|
+
tg: z.ZodOptional<z.ZodEnum<{
|
|
831
|
+
auto: "auto";
|
|
832
|
+
plain_text: "plain_text";
|
|
833
|
+
rich_text: "rich_text";
|
|
834
|
+
}>>;
|
|
835
|
+
}, z.core.$strict>>;
|
|
836
|
+
channelBodies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
837
|
+
qq: "qq";
|
|
838
|
+
tg: "tg";
|
|
839
|
+
wechat: "wechat";
|
|
840
|
+
lark: "lark";
|
|
841
|
+
}> & z.core.$partial, z.ZodArray<z.ZodObject<{
|
|
842
|
+
key: z.ZodString;
|
|
843
|
+
value: z.ZodString;
|
|
844
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
845
|
+
offset: z.ZodNumber;
|
|
846
|
+
length: z.ZodNumber;
|
|
847
|
+
}, z.core.$strict>>>;
|
|
848
|
+
}, z.core.$strict>>>>;
|
|
849
|
+
channelLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
850
|
+
qq: "qq";
|
|
851
|
+
tg: "tg";
|
|
852
|
+
wechat: "wechat";
|
|
853
|
+
lark: "lark";
|
|
854
|
+
}> & z.core.$partial, z.ZodArray<z.ZodObject<{
|
|
855
|
+
key: z.ZodString;
|
|
856
|
+
url: z.ZodString;
|
|
857
|
+
}, z.core.$strict>>>>;
|
|
858
|
+
}, z.core.$strict>;
|
|
859
|
+
audience: z.ZodOptional<z.ZodObject<{
|
|
860
|
+
topics: z.ZodArray<z.ZodString>;
|
|
861
|
+
}, z.core.$strict>>;
|
|
862
|
+
browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
863
|
+
locale: z.ZodString;
|
|
864
|
+
contentLocale: z.ZodString;
|
|
865
|
+
title: z.ZodString;
|
|
866
|
+
body: z.ZodString;
|
|
867
|
+
url: z.ZodString;
|
|
868
|
+
}, z.core.$strict>>>;
|
|
869
|
+
routeKeys: z.ZodArray<z.ZodString>;
|
|
870
|
+
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
871
|
+
eventId: z.ZodString;
|
|
872
|
+
producer: z.ZodObject<{
|
|
873
|
+
key: z.ZodString;
|
|
874
|
+
environment: z.ZodString;
|
|
875
|
+
}, z.core.$strict>;
|
|
876
|
+
occurredAt: z.ZodString;
|
|
877
|
+
requestedAt: z.ZodString;
|
|
878
|
+
deliverBy: z.ZodString;
|
|
879
|
+
subject: z.ZodObject<{
|
|
880
|
+
type: z.ZodString;
|
|
881
|
+
id: z.ZodString;
|
|
882
|
+
revision: z.ZodNumber;
|
|
883
|
+
}, z.core.$strict>;
|
|
884
|
+
}, z.core.$strict>;
|
|
885
|
+
type NotificationDeliveryRequestV11 = z.infer<typeof notificationDeliveryRequestV11Schema>;
|
|
886
|
+
type NotificationDeliveryRequestV6 = z.infer<typeof notificationDeliveryRequestV6Schema>;
|
|
887
|
+
declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
888
|
+
message: z.ZodObject<{
|
|
889
|
+
type: z.ZodLiteral<"link_summary">;
|
|
890
|
+
title: z.ZodString;
|
|
891
|
+
summary: z.ZodString;
|
|
892
|
+
facts: z.ZodArray<z.ZodObject<{
|
|
893
|
+
label: z.ZodString;
|
|
894
|
+
value: z.ZodString;
|
|
895
|
+
}, z.core.$strict>>;
|
|
896
|
+
primaryLink: z.ZodObject<{
|
|
897
|
+
label: z.ZodString;
|
|
898
|
+
url: z.ZodString;
|
|
899
|
+
}, z.core.$strict>;
|
|
900
|
+
sourceLink: z.ZodOptional<z.ZodObject<{
|
|
901
|
+
label: z.ZodString;
|
|
902
|
+
url: z.ZodString;
|
|
903
|
+
}, z.core.$strict>>;
|
|
904
|
+
}, z.core.$strict>;
|
|
905
|
+
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
906
|
+
eventId: z.ZodString;
|
|
907
|
+
producer: z.ZodObject<{
|
|
908
|
+
key: z.ZodString;
|
|
909
|
+
environment: z.ZodString;
|
|
910
|
+
}, z.core.$strict>;
|
|
911
|
+
routeKey: z.ZodString;
|
|
912
|
+
occurredAt: z.ZodString;
|
|
913
|
+
requestedAt: z.ZodString;
|
|
914
|
+
deliverBy: z.ZodString;
|
|
915
|
+
subject: z.ZodObject<{
|
|
916
|
+
type: z.ZodString;
|
|
917
|
+
id: z.ZodString;
|
|
918
|
+
revision: z.ZodNumber;
|
|
919
|
+
}, z.core.$strict>;
|
|
920
|
+
contractVersion: z.ZodLiteral<1>;
|
|
921
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
922
|
+
message: z.ZodObject<{
|
|
923
|
+
type: z.ZodLiteral<"localized_link_summary">;
|
|
924
|
+
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
925
|
+
title: z.ZodString;
|
|
926
|
+
summary: z.ZodString;
|
|
927
|
+
facts: z.ZodArray<z.ZodObject<{
|
|
928
|
+
label: z.ZodString;
|
|
929
|
+
value: z.ZodString;
|
|
930
|
+
}, z.core.$strict>>;
|
|
931
|
+
key: z.ZodLiteral<"source">;
|
|
932
|
+
locale: z.ZodLiteral<"und">;
|
|
933
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
934
|
+
title: z.ZodString;
|
|
935
|
+
summary: z.ZodString;
|
|
936
|
+
facts: z.ZodArray<z.ZodObject<{
|
|
937
|
+
label: z.ZodString;
|
|
938
|
+
value: z.ZodString;
|
|
939
|
+
}, z.core.$strict>>;
|
|
940
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
941
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
942
|
+
}, z.core.$strict>], "key">>;
|
|
943
|
+
primaryLink: z.ZodObject<{
|
|
944
|
+
label: z.ZodString;
|
|
945
|
+
url: z.ZodString;
|
|
946
|
+
}, z.core.$strict>;
|
|
947
|
+
sourceLink: z.ZodOptional<z.ZodObject<{
|
|
948
|
+
label: z.ZodString;
|
|
949
|
+
url: z.ZodString;
|
|
950
|
+
}, z.core.$strict>>;
|
|
951
|
+
}, z.core.$strict>;
|
|
952
|
+
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
953
|
+
eventId: z.ZodString;
|
|
954
|
+
producer: z.ZodObject<{
|
|
955
|
+
key: z.ZodString;
|
|
956
|
+
environment: z.ZodString;
|
|
957
|
+
}, z.core.$strict>;
|
|
958
|
+
routeKey: z.ZodString;
|
|
959
|
+
occurredAt: z.ZodString;
|
|
960
|
+
requestedAt: z.ZodString;
|
|
961
|
+
deliverBy: z.ZodString;
|
|
962
|
+
subject: z.ZodObject<{
|
|
963
|
+
type: z.ZodString;
|
|
964
|
+
id: z.ZodString;
|
|
965
|
+
revision: z.ZodNumber;
|
|
966
|
+
}, z.core.$strict>;
|
|
967
|
+
contractVersion: z.ZodLiteral<2>;
|
|
968
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
969
|
+
message: z.ZodObject<{
|
|
970
|
+
type: z.ZodLiteral<"structured_notification">;
|
|
971
|
+
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
972
|
+
key: z.ZodLiteral<"source">;
|
|
973
|
+
locale: z.ZodLiteral<"und">;
|
|
974
|
+
title: z.ZodString;
|
|
975
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
976
|
+
key: z.ZodString;
|
|
977
|
+
type: z.ZodLiteral<"text">;
|
|
978
|
+
label: z.ZodOptional<z.ZodString>;
|
|
979
|
+
value: z.ZodString;
|
|
980
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
981
|
+
key: z.ZodString;
|
|
982
|
+
type: z.ZodLiteral<"fields">;
|
|
983
|
+
items: z.ZodArray<z.ZodObject<{
|
|
984
|
+
label: z.ZodString;
|
|
985
|
+
value: z.ZodString;
|
|
986
|
+
}, z.core.$strict>>;
|
|
987
|
+
}, z.core.$strict>], "type">>;
|
|
988
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
989
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
990
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
991
|
+
title: z.ZodString;
|
|
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
|
+
}, z.core.$strict>], "key">>;
|
|
1006
|
+
links: z.ZodArray<z.ZodObject<{
|
|
1007
|
+
label: z.ZodString;
|
|
1008
|
+
url: z.ZodString;
|
|
1009
|
+
key: z.ZodString;
|
|
1010
|
+
}, z.core.$strict>>;
|
|
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
|
+
contractVersion: z.ZodLiteral<3>;
|
|
1028
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1029
|
+
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
1030
|
+
eventId: z.ZodString;
|
|
1031
|
+
producer: z.ZodObject<{
|
|
1032
|
+
key: z.ZodString;
|
|
1033
|
+
environment: z.ZodString;
|
|
1034
|
+
}, z.core.$strict>;
|
|
1035
|
+
routeKey: z.ZodString;
|
|
1036
|
+
occurredAt: z.ZodString;
|
|
1037
|
+
requestedAt: z.ZodString;
|
|
1038
|
+
deliverBy: z.ZodString;
|
|
1039
|
+
subject: z.ZodObject<{
|
|
1040
|
+
type: z.ZodString;
|
|
1041
|
+
id: z.ZodString;
|
|
1042
|
+
revision: z.ZodNumber;
|
|
1043
|
+
}, z.core.$strict>;
|
|
1044
|
+
contractVersion: z.ZodLiteral<4>;
|
|
1045
|
+
message: z.ZodObject<{
|
|
1046
|
+
type: z.ZodLiteral<"structured_notification">;
|
|
1047
|
+
links: z.ZodArray<z.ZodObject<{
|
|
1048
|
+
label: z.ZodString;
|
|
1049
|
+
url: z.ZodString;
|
|
1050
|
+
key: z.ZodString;
|
|
1051
|
+
}, z.core.$strict>>;
|
|
1052
|
+
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1053
|
+
key: z.ZodLiteral<"source">;
|
|
1054
|
+
locale: z.ZodLiteral<"und">;
|
|
1055
|
+
title: z.ZodString;
|
|
1056
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1057
|
+
key: z.ZodString;
|
|
1058
|
+
type: z.ZodLiteral<"text">;
|
|
1059
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
value: z.ZodString;
|
|
1061
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1062
|
+
key: z.ZodString;
|
|
1063
|
+
type: z.ZodLiteral<"fields">;
|
|
1064
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1065
|
+
label: z.ZodString;
|
|
1066
|
+
value: z.ZodString;
|
|
1067
|
+
}, z.core.$strict>>;
|
|
1068
|
+
}, z.core.$strict>], "type">>;
|
|
1069
|
+
body: z.ZodObject<{
|
|
1070
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
value: z.ZodString;
|
|
1072
|
+
}, z.core.$strict>;
|
|
1073
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1074
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
1075
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1076
|
+
title: z.ZodString;
|
|
1077
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1078
|
+
key: z.ZodString;
|
|
1079
|
+
type: z.ZodLiteral<"text">;
|
|
1080
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
value: z.ZodString;
|
|
1082
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1083
|
+
key: z.ZodString;
|
|
1084
|
+
type: z.ZodLiteral<"fields">;
|
|
1085
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1086
|
+
label: z.ZodString;
|
|
1087
|
+
value: z.ZodString;
|
|
1088
|
+
}, z.core.$strict>>;
|
|
1089
|
+
}, z.core.$strict>], "type">>;
|
|
1090
|
+
body: z.ZodObject<{
|
|
1091
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
value: z.ZodString;
|
|
1093
|
+
}, z.core.$strict>;
|
|
1094
|
+
}, z.core.$strict>], "key">>;
|
|
1095
|
+
}, z.core.$strict>;
|
|
1096
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1097
|
+
message: z.ZodObject<{
|
|
1098
|
+
type: z.ZodLiteral<"structured_notification">;
|
|
1099
|
+
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1100
|
+
key: z.ZodLiteral<"source">;
|
|
1101
|
+
locale: z.ZodLiteral<"und">;
|
|
1102
|
+
title: z.ZodString;
|
|
1103
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1104
|
+
key: z.ZodString;
|
|
1105
|
+
type: z.ZodLiteral<"text">;
|
|
1106
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
value: z.ZodString;
|
|
1108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1109
|
+
key: z.ZodString;
|
|
1110
|
+
type: z.ZodLiteral<"fields">;
|
|
1111
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1112
|
+
label: z.ZodString;
|
|
1113
|
+
value: z.ZodString;
|
|
1114
|
+
}, z.core.$strict>>;
|
|
1115
|
+
}, z.core.$strict>], "type">>;
|
|
1116
|
+
bodyLabel: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1118
|
+
key: z.ZodString;
|
|
1119
|
+
label: z.ZodString;
|
|
1120
|
+
}, z.core.$strict>>;
|
|
1121
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1122
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
1123
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1124
|
+
title: z.ZodString;
|
|
1125
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1126
|
+
key: z.ZodString;
|
|
1127
|
+
type: z.ZodLiteral<"text">;
|
|
1128
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
value: z.ZodString;
|
|
1130
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1131
|
+
key: z.ZodString;
|
|
1132
|
+
type: z.ZodLiteral<"fields">;
|
|
1133
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1134
|
+
label: z.ZodString;
|
|
1135
|
+
value: z.ZodString;
|
|
1136
|
+
}, z.core.$strict>>;
|
|
1137
|
+
}, z.core.$strict>], "type">>;
|
|
1138
|
+
bodyLabel: z.ZodOptional<z.ZodString>;
|
|
1139
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1140
|
+
key: z.ZodString;
|
|
1141
|
+
label: z.ZodString;
|
|
1142
|
+
}, z.core.$strict>>;
|
|
1143
|
+
}, z.core.$strict>], "key">>;
|
|
1144
|
+
links: z.ZodArray<z.ZodObject<{
|
|
1145
|
+
key: z.ZodString;
|
|
1146
|
+
url: z.ZodString;
|
|
1147
|
+
}, z.core.$strict>>;
|
|
1148
|
+
body: z.ZodObject<{
|
|
1149
|
+
value: z.ZodString;
|
|
1150
|
+
}, z.core.$strict>;
|
|
1151
|
+
}, z.core.$strict>;
|
|
1152
|
+
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
1153
|
+
eventId: z.ZodString;
|
|
1154
|
+
producer: z.ZodObject<{
|
|
1155
|
+
key: z.ZodString;
|
|
1156
|
+
environment: z.ZodString;
|
|
1157
|
+
}, z.core.$strict>;
|
|
1158
|
+
routeKey: z.ZodString;
|
|
1159
|
+
occurredAt: z.ZodString;
|
|
1160
|
+
requestedAt: z.ZodString;
|
|
1161
|
+
deliverBy: z.ZodString;
|
|
1162
|
+
subject: z.ZodObject<{
|
|
1163
|
+
type: z.ZodString;
|
|
1164
|
+
id: z.ZodString;
|
|
1165
|
+
revision: z.ZodNumber;
|
|
1166
|
+
}, z.core.$strict>;
|
|
1167
|
+
contractVersion: z.ZodLiteral<5>;
|
|
693
1168
|
}, z.core.$strict>, z.ZodObject<{
|
|
1169
|
+
contractVersion: z.ZodLiteral<6>;
|
|
694
1170
|
message: z.ZodObject<{
|
|
695
1171
|
type: z.ZodLiteral<"structured_notification">;
|
|
1172
|
+
links: z.ZodArray<z.ZodObject<{
|
|
1173
|
+
key: z.ZodString;
|
|
1174
|
+
url: z.ZodString;
|
|
1175
|
+
}, z.core.$strict>>;
|
|
1176
|
+
bodies: z.ZodArray<z.ZodObject<{
|
|
1177
|
+
key: z.ZodString;
|
|
1178
|
+
value: z.ZodString;
|
|
1179
|
+
}, z.core.$strict>>;
|
|
696
1180
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
697
1181
|
key: z.ZodLiteral<"source">;
|
|
698
|
-
locale: z.ZodLiteral<"und">;
|
|
699
1182
|
title: z.ZodString;
|
|
1183
|
+
locale: z.ZodLiteral<"und">;
|
|
1184
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1185
|
+
key: z.ZodString;
|
|
1186
|
+
label: z.ZodString;
|
|
1187
|
+
}, z.core.$strict>>;
|
|
700
1188
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
701
1189
|
key: z.ZodString;
|
|
702
1190
|
type: z.ZodLiteral<"text">;
|
|
@@ -710,15 +1198,75 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
710
1198
|
value: z.ZodString;
|
|
711
1199
|
}, z.core.$strict>>;
|
|
712
1200
|
}, z.core.$strict>], "type">>;
|
|
713
|
-
|
|
714
|
-
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1201
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
715
1202
|
key: z.ZodString;
|
|
716
|
-
label: z.ZodString
|
|
1203
|
+
label: z.ZodOptional<z.ZodString>;
|
|
717
1204
|
}, z.core.$strict>>;
|
|
1205
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
718
1206
|
}, z.core.$strict>, z.ZodObject<{
|
|
719
1207
|
key: z.ZodLiteral<"zh-CN">;
|
|
1208
|
+
title: z.ZodString;
|
|
720
1209
|
locale: z.ZodLiteral<"zh-CN">;
|
|
1210
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1211
|
+
key: z.ZodString;
|
|
1212
|
+
label: z.ZodString;
|
|
1213
|
+
}, z.core.$strict>>;
|
|
1214
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1215
|
+
key: z.ZodString;
|
|
1216
|
+
type: z.ZodLiteral<"text">;
|
|
1217
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
value: z.ZodString;
|
|
1219
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1220
|
+
key: z.ZodString;
|
|
1221
|
+
type: z.ZodLiteral<"fields">;
|
|
1222
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1223
|
+
label: z.ZodString;
|
|
1224
|
+
value: z.ZodString;
|
|
1225
|
+
}, z.core.$strict>>;
|
|
1226
|
+
}, z.core.$strict>], "type">>;
|
|
1227
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1228
|
+
key: z.ZodString;
|
|
1229
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1230
|
+
}, z.core.$strict>>;
|
|
1231
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
}, z.core.$strict>], "key">>;
|
|
1233
|
+
}, z.core.$strict>;
|
|
1234
|
+
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
1235
|
+
eventId: z.ZodString;
|
|
1236
|
+
producer: z.ZodObject<{
|
|
1237
|
+
key: z.ZodString;
|
|
1238
|
+
environment: z.ZodString;
|
|
1239
|
+
}, z.core.$strict>;
|
|
1240
|
+
routeKey: z.ZodString;
|
|
1241
|
+
occurredAt: z.ZodString;
|
|
1242
|
+
requestedAt: z.ZodString;
|
|
1243
|
+
deliverBy: z.ZodString;
|
|
1244
|
+
subject: z.ZodObject<{
|
|
1245
|
+
type: z.ZodString;
|
|
1246
|
+
id: z.ZodString;
|
|
1247
|
+
revision: z.ZodNumber;
|
|
1248
|
+
}, z.core.$strict>;
|
|
1249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1250
|
+
contractVersion: z.ZodLiteral<7>;
|
|
1251
|
+
routeKeys: z.ZodArray<z.ZodString>;
|
|
1252
|
+
message: z.ZodObject<{
|
|
1253
|
+
type: z.ZodLiteral<"structured_notification">;
|
|
1254
|
+
links: z.ZodArray<z.ZodObject<{
|
|
1255
|
+
key: z.ZodString;
|
|
1256
|
+
url: z.ZodString;
|
|
1257
|
+
}, z.core.$strict>>;
|
|
1258
|
+
bodies: z.ZodArray<z.ZodObject<{
|
|
1259
|
+
key: z.ZodString;
|
|
1260
|
+
value: z.ZodString;
|
|
1261
|
+
}, z.core.$strict>>;
|
|
1262
|
+
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1263
|
+
key: z.ZodLiteral<"source">;
|
|
721
1264
|
title: z.ZodString;
|
|
1265
|
+
locale: z.ZodLiteral<"und">;
|
|
1266
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1267
|
+
key: z.ZodString;
|
|
1268
|
+
label: z.ZodString;
|
|
1269
|
+
}, z.core.$strict>>;
|
|
722
1270
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
723
1271
|
key: z.ZodString;
|
|
724
1272
|
type: z.ZodLiteral<"text">;
|
|
@@ -732,27 +1280,184 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
732
1280
|
value: z.ZodString;
|
|
733
1281
|
}, z.core.$strict>>;
|
|
734
1282
|
}, z.core.$strict>], "type">>;
|
|
735
|
-
|
|
1283
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1284
|
+
key: z.ZodString;
|
|
1285
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1286
|
+
}, z.core.$strict>>;
|
|
1287
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1289
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
1290
|
+
title: z.ZodString;
|
|
1291
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
736
1292
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
737
1293
|
key: z.ZodString;
|
|
738
1294
|
label: z.ZodString;
|
|
739
1295
|
}, z.core.$strict>>;
|
|
1296
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1297
|
+
key: z.ZodString;
|
|
1298
|
+
type: z.ZodLiteral<"text">;
|
|
1299
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
value: z.ZodString;
|
|
1301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1302
|
+
key: z.ZodString;
|
|
1303
|
+
type: z.ZodLiteral<"fields">;
|
|
1304
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1305
|
+
label: z.ZodString;
|
|
1306
|
+
value: z.ZodString;
|
|
1307
|
+
}, z.core.$strict>>;
|
|
1308
|
+
}, z.core.$strict>], "type">>;
|
|
1309
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1310
|
+
key: z.ZodString;
|
|
1311
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1312
|
+
}, z.core.$strict>>;
|
|
1313
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
740
1314
|
}, z.core.$strict>], "key">>;
|
|
1315
|
+
}, z.core.$strict>;
|
|
1316
|
+
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
1317
|
+
eventId: z.ZodString;
|
|
1318
|
+
producer: z.ZodObject<{
|
|
1319
|
+
key: z.ZodString;
|
|
1320
|
+
environment: z.ZodString;
|
|
1321
|
+
}, z.core.$strict>;
|
|
1322
|
+
occurredAt: z.ZodString;
|
|
1323
|
+
requestedAt: z.ZodString;
|
|
1324
|
+
deliverBy: z.ZodString;
|
|
1325
|
+
subject: z.ZodObject<{
|
|
1326
|
+
type: z.ZodString;
|
|
1327
|
+
id: z.ZodString;
|
|
1328
|
+
revision: z.ZodNumber;
|
|
1329
|
+
}, z.core.$strict>;
|
|
1330
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1331
|
+
contractVersion: z.ZodLiteral<8>;
|
|
1332
|
+
message: z.ZodObject<{
|
|
1333
|
+
type: z.ZodLiteral<"structured_notification">;
|
|
741
1334
|
links: z.ZodArray<z.ZodObject<{
|
|
742
1335
|
key: z.ZodString;
|
|
743
1336
|
url: z.ZodString;
|
|
744
1337
|
}, z.core.$strict>>;
|
|
745
|
-
|
|
1338
|
+
bodies: z.ZodArray<z.ZodObject<{
|
|
1339
|
+
key: z.ZodString;
|
|
746
1340
|
value: z.ZodString;
|
|
747
|
-
}, z.core.$strict
|
|
1341
|
+
}, z.core.$strict>>;
|
|
1342
|
+
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1343
|
+
key: z.ZodLiteral<"source">;
|
|
1344
|
+
title: z.ZodString;
|
|
1345
|
+
locale: z.ZodLiteral<"und">;
|
|
1346
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1347
|
+
key: z.ZodString;
|
|
1348
|
+
label: z.ZodString;
|
|
1349
|
+
}, z.core.$strict>>;
|
|
1350
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1351
|
+
key: z.ZodString;
|
|
1352
|
+
type: z.ZodLiteral<"text">;
|
|
1353
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
value: z.ZodString;
|
|
1355
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1356
|
+
key: z.ZodString;
|
|
1357
|
+
type: z.ZodLiteral<"fields">;
|
|
1358
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1359
|
+
label: z.ZodString;
|
|
1360
|
+
value: z.ZodString;
|
|
1361
|
+
}, z.core.$strict>>;
|
|
1362
|
+
}, z.core.$strict>], "type">>;
|
|
1363
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1364
|
+
key: z.ZodString;
|
|
1365
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
}, z.core.$strict>>;
|
|
1367
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1368
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1369
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
1370
|
+
title: z.ZodString;
|
|
1371
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1372
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1373
|
+
key: z.ZodString;
|
|
1374
|
+
label: z.ZodString;
|
|
1375
|
+
}, z.core.$strict>>;
|
|
1376
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1377
|
+
key: z.ZodString;
|
|
1378
|
+
type: z.ZodLiteral<"text">;
|
|
1379
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1380
|
+
value: z.ZodString;
|
|
1381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1382
|
+
key: z.ZodString;
|
|
1383
|
+
type: z.ZodLiteral<"fields">;
|
|
1384
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1385
|
+
label: z.ZodString;
|
|
1386
|
+
value: z.ZodString;
|
|
1387
|
+
}, z.core.$strict>>;
|
|
1388
|
+
}, z.core.$strict>], "type">>;
|
|
1389
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1390
|
+
key: z.ZodString;
|
|
1391
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1392
|
+
}, z.core.$strict>>;
|
|
1393
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1394
|
+
}, z.core.$strict>], "key">>;
|
|
1395
|
+
channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1396
|
+
qq: "qq";
|
|
1397
|
+
tg: "tg";
|
|
1398
|
+
wechat: "wechat";
|
|
1399
|
+
lark: "lark";
|
|
1400
|
+
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1401
|
+
key: z.ZodLiteral<"source">;
|
|
1402
|
+
title: z.ZodString;
|
|
1403
|
+
locale: z.ZodLiteral<"und">;
|
|
1404
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1405
|
+
key: z.ZodString;
|
|
1406
|
+
label: z.ZodString;
|
|
1407
|
+
}, z.core.$strict>>;
|
|
1408
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1409
|
+
key: z.ZodString;
|
|
1410
|
+
type: z.ZodLiteral<"text">;
|
|
1411
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1412
|
+
value: z.ZodString;
|
|
1413
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1414
|
+
key: z.ZodString;
|
|
1415
|
+
type: z.ZodLiteral<"fields">;
|
|
1416
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1417
|
+
label: z.ZodString;
|
|
1418
|
+
value: z.ZodString;
|
|
1419
|
+
}, z.core.$strict>>;
|
|
1420
|
+
}, z.core.$strict>], "type">>;
|
|
1421
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1422
|
+
key: z.ZodString;
|
|
1423
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1424
|
+
}, z.core.$strict>>;
|
|
1425
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1427
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
1428
|
+
title: z.ZodString;
|
|
1429
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1430
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1431
|
+
key: z.ZodString;
|
|
1432
|
+
label: z.ZodString;
|
|
1433
|
+
}, z.core.$strict>>;
|
|
1434
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1435
|
+
key: z.ZodString;
|
|
1436
|
+
type: z.ZodLiteral<"text">;
|
|
1437
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
value: z.ZodString;
|
|
1439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1440
|
+
key: z.ZodString;
|
|
1441
|
+
type: z.ZodLiteral<"fields">;
|
|
1442
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1443
|
+
label: z.ZodString;
|
|
1444
|
+
value: z.ZodString;
|
|
1445
|
+
}, z.core.$strict>>;
|
|
1446
|
+
}, z.core.$strict>], "type">>;
|
|
1447
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1448
|
+
key: z.ZodString;
|
|
1449
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1450
|
+
}, z.core.$strict>>;
|
|
1451
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
}, z.core.$strict>], "key">>>>;
|
|
748
1453
|
}, z.core.$strict>;
|
|
1454
|
+
routeKeys: z.ZodArray<z.ZodString>;
|
|
749
1455
|
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
750
1456
|
eventId: z.ZodString;
|
|
751
1457
|
producer: z.ZodObject<{
|
|
752
1458
|
key: z.ZodString;
|
|
753
1459
|
environment: z.ZodString;
|
|
754
1460
|
}, z.core.$strict>;
|
|
755
|
-
routeKey: z.ZodString;
|
|
756
1461
|
occurredAt: z.ZodString;
|
|
757
1462
|
requestedAt: z.ZodString;
|
|
758
1463
|
deliverBy: z.ZodString;
|
|
@@ -761,9 +1466,18 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
761
1466
|
id: z.ZodString;
|
|
762
1467
|
revision: z.ZodNumber;
|
|
763
1468
|
}, z.core.$strict>;
|
|
764
|
-
contractVersion: z.ZodLiteral<5>;
|
|
765
1469
|
}, z.core.$strict>, z.ZodObject<{
|
|
766
|
-
contractVersion: z.ZodLiteral<
|
|
1470
|
+
contractVersion: z.ZodLiteral<9>;
|
|
1471
|
+
audience: z.ZodOptional<z.ZodObject<{
|
|
1472
|
+
topics: z.ZodArray<z.ZodString>;
|
|
1473
|
+
}, z.core.$strict>>;
|
|
1474
|
+
browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1475
|
+
locale: z.ZodString;
|
|
1476
|
+
contentLocale: z.ZodString;
|
|
1477
|
+
title: z.ZodString;
|
|
1478
|
+
body: z.ZodString;
|
|
1479
|
+
url: z.ZodString;
|
|
1480
|
+
}, z.core.$strict>>>;
|
|
767
1481
|
message: z.ZodObject<{
|
|
768
1482
|
type: z.ZodLiteral<"structured_notification">;
|
|
769
1483
|
links: z.ZodArray<z.ZodObject<{
|
|
@@ -776,8 +1490,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
776
1490
|
}, z.core.$strict>>;
|
|
777
1491
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
778
1492
|
key: z.ZodLiteral<"source">;
|
|
779
|
-
locale: z.ZodLiteral<"und">;
|
|
780
1493
|
title: z.ZodString;
|
|
1494
|
+
locale: z.ZodLiteral<"und">;
|
|
781
1495
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
782
1496
|
key: z.ZodString;
|
|
783
1497
|
label: z.ZodString;
|
|
@@ -802,8 +1516,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
802
1516
|
footer: z.ZodOptional<z.ZodString>;
|
|
803
1517
|
}, z.core.$strict>, z.ZodObject<{
|
|
804
1518
|
key: z.ZodLiteral<"zh-CN">;
|
|
805
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
806
1519
|
title: z.ZodString;
|
|
1520
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
807
1521
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
808
1522
|
key: z.ZodString;
|
|
809
1523
|
label: z.ZodString;
|
|
@@ -827,39 +1541,15 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
827
1541
|
}, z.core.$strict>>;
|
|
828
1542
|
footer: z.ZodOptional<z.ZodString>;
|
|
829
1543
|
}, z.core.$strict>], "key">>;
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
}, z.core.$strict>;
|
|
837
|
-
routeKey: z.ZodString;
|
|
838
|
-
occurredAt: z.ZodString;
|
|
839
|
-
requestedAt: z.ZodString;
|
|
840
|
-
deliverBy: z.ZodString;
|
|
841
|
-
subject: z.ZodObject<{
|
|
842
|
-
type: z.ZodString;
|
|
843
|
-
id: z.ZodString;
|
|
844
|
-
revision: z.ZodNumber;
|
|
845
|
-
}, z.core.$strict>;
|
|
846
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
847
|
-
contractVersion: z.ZodLiteral<7>;
|
|
848
|
-
routeKeys: z.ZodArray<z.ZodString>;
|
|
849
|
-
message: z.ZodObject<{
|
|
850
|
-
type: z.ZodLiteral<"structured_notification">;
|
|
851
|
-
links: z.ZodArray<z.ZodObject<{
|
|
852
|
-
key: z.ZodString;
|
|
853
|
-
url: z.ZodString;
|
|
854
|
-
}, z.core.$strict>>;
|
|
855
|
-
bodies: z.ZodArray<z.ZodObject<{
|
|
856
|
-
key: z.ZodString;
|
|
857
|
-
value: z.ZodString;
|
|
858
|
-
}, z.core.$strict>>;
|
|
859
|
-
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1544
|
+
channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1545
|
+
qq: "qq";
|
|
1546
|
+
tg: "tg";
|
|
1547
|
+
wechat: "wechat";
|
|
1548
|
+
lark: "lark";
|
|
1549
|
+
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
860
1550
|
key: z.ZodLiteral<"source">;
|
|
861
|
-
locale: z.ZodLiteral<"und">;
|
|
862
1551
|
title: z.ZodString;
|
|
1552
|
+
locale: z.ZodLiteral<"und">;
|
|
863
1553
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
864
1554
|
key: z.ZodString;
|
|
865
1555
|
label: z.ZodString;
|
|
@@ -884,8 +1574,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
884
1574
|
footer: z.ZodOptional<z.ZodString>;
|
|
885
1575
|
}, z.core.$strict>, z.ZodObject<{
|
|
886
1576
|
key: z.ZodLiteral<"zh-CN">;
|
|
887
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
888
1577
|
title: z.ZodString;
|
|
1578
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
889
1579
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
890
1580
|
key: z.ZodString;
|
|
891
1581
|
label: z.ZodString;
|
|
@@ -908,8 +1598,9 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
908
1598
|
label: z.ZodOptional<z.ZodString>;
|
|
909
1599
|
}, z.core.$strict>>;
|
|
910
1600
|
footer: z.ZodOptional<z.ZodString>;
|
|
911
|
-
}, z.core.$strict>], "key"
|
|
1601
|
+
}, z.core.$strict>], "key">>>>;
|
|
912
1602
|
}, z.core.$strict>;
|
|
1603
|
+
routeKeys: z.ZodArray<z.ZodString>;
|
|
913
1604
|
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
914
1605
|
eventId: z.ZodString;
|
|
915
1606
|
producer: z.ZodObject<{
|
|
@@ -925,7 +1616,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
925
1616
|
revision: z.ZodNumber;
|
|
926
1617
|
}, z.core.$strict>;
|
|
927
1618
|
}, z.core.$strict>, z.ZodObject<{
|
|
928
|
-
contractVersion: z.ZodLiteral<
|
|
1619
|
+
contractVersion: z.ZodLiteral<10>;
|
|
929
1620
|
message: z.ZodObject<{
|
|
930
1621
|
type: z.ZodLiteral<"structured_notification">;
|
|
931
1622
|
links: z.ZodArray<z.ZodObject<{
|
|
@@ -935,20 +1626,37 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
935
1626
|
bodies: z.ZodArray<z.ZodObject<{
|
|
936
1627
|
key: z.ZodString;
|
|
937
1628
|
value: z.ZodString;
|
|
1629
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1630
|
+
offset: z.ZodNumber;
|
|
1631
|
+
length: z.ZodNumber;
|
|
1632
|
+
}, z.core.$strict>>>;
|
|
938
1633
|
}, z.core.$strict>>;
|
|
939
1634
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
940
1635
|
key: z.ZodLiteral<"source">;
|
|
941
|
-
locale: z.ZodLiteral<"und">;
|
|
942
1636
|
title: z.ZodString;
|
|
1637
|
+
locale: z.ZodLiteral<"und">;
|
|
943
1638
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
944
1639
|
key: z.ZodString;
|
|
945
1640
|
label: z.ZodString;
|
|
946
1641
|
}, z.core.$strict>>;
|
|
1642
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1643
|
+
key: z.ZodString;
|
|
1644
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1645
|
+
}, z.core.$strict>>;
|
|
1646
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1647
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1648
|
+
offset: z.ZodNumber;
|
|
1649
|
+
length: z.ZodNumber;
|
|
1650
|
+
}, z.core.$strict>>>;
|
|
947
1651
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
948
1652
|
key: z.ZodString;
|
|
949
1653
|
type: z.ZodLiteral<"text">;
|
|
950
1654
|
label: z.ZodOptional<z.ZodString>;
|
|
951
1655
|
value: z.ZodString;
|
|
1656
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1657
|
+
offset: z.ZodNumber;
|
|
1658
|
+
length: z.ZodNumber;
|
|
1659
|
+
}, z.core.$strict>>>;
|
|
952
1660
|
}, z.core.$strict>, z.ZodObject<{
|
|
953
1661
|
key: z.ZodString;
|
|
954
1662
|
type: z.ZodLiteral<"fields">;
|
|
@@ -957,24 +1665,32 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
957
1665
|
value: z.ZodString;
|
|
958
1666
|
}, z.core.$strict>>;
|
|
959
1667
|
}, z.core.$strict>], "type">>;
|
|
960
|
-
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
961
|
-
key: z.ZodString;
|
|
962
|
-
label: z.ZodOptional<z.ZodString>;
|
|
963
|
-
}, z.core.$strict>>;
|
|
964
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
965
1668
|
}, z.core.$strict>, z.ZodObject<{
|
|
966
1669
|
key: z.ZodLiteral<"zh-CN">;
|
|
967
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
968
1670
|
title: z.ZodString;
|
|
1671
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
969
1672
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
970
1673
|
key: z.ZodString;
|
|
971
1674
|
label: z.ZodString;
|
|
972
1675
|
}, z.core.$strict>>;
|
|
1676
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1677
|
+
key: z.ZodString;
|
|
1678
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
}, z.core.$strict>>;
|
|
1680
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1682
|
+
offset: z.ZodNumber;
|
|
1683
|
+
length: z.ZodNumber;
|
|
1684
|
+
}, z.core.$strict>>>;
|
|
973
1685
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
974
1686
|
key: z.ZodString;
|
|
975
1687
|
type: z.ZodLiteral<"text">;
|
|
976
1688
|
label: z.ZodOptional<z.ZodString>;
|
|
977
1689
|
value: z.ZodString;
|
|
1690
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1691
|
+
offset: z.ZodNumber;
|
|
1692
|
+
length: z.ZodNumber;
|
|
1693
|
+
}, z.core.$strict>>>;
|
|
978
1694
|
}, z.core.$strict>, z.ZodObject<{
|
|
979
1695
|
key: z.ZodString;
|
|
980
1696
|
type: z.ZodLiteral<"fields">;
|
|
@@ -983,11 +1699,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
983
1699
|
value: z.ZodString;
|
|
984
1700
|
}, z.core.$strict>>;
|
|
985
1701
|
}, z.core.$strict>], "type">>;
|
|
986
|
-
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
987
|
-
key: z.ZodString;
|
|
988
|
-
label: z.ZodOptional<z.ZodString>;
|
|
989
|
-
}, z.core.$strict>>;
|
|
990
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
991
1702
|
}, z.core.$strict>], "key">>;
|
|
992
1703
|
channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
993
1704
|
qq: "qq";
|
|
@@ -996,17 +1707,30 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
996
1707
|
lark: "lark";
|
|
997
1708
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
998
1709
|
key: z.ZodLiteral<"source">;
|
|
999
|
-
locale: z.ZodLiteral<"und">;
|
|
1000
1710
|
title: z.ZodString;
|
|
1711
|
+
locale: z.ZodLiteral<"und">;
|
|
1001
1712
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1002
1713
|
key: z.ZodString;
|
|
1003
1714
|
label: z.ZodString;
|
|
1004
1715
|
}, z.core.$strict>>;
|
|
1716
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1717
|
+
key: z.ZodString;
|
|
1718
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1719
|
+
}, z.core.$strict>>;
|
|
1720
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1722
|
+
offset: z.ZodNumber;
|
|
1723
|
+
length: z.ZodNumber;
|
|
1724
|
+
}, z.core.$strict>>>;
|
|
1005
1725
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1006
1726
|
key: z.ZodString;
|
|
1007
1727
|
type: z.ZodLiteral<"text">;
|
|
1008
1728
|
label: z.ZodOptional<z.ZodString>;
|
|
1009
1729
|
value: z.ZodString;
|
|
1730
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1731
|
+
offset: z.ZodNumber;
|
|
1732
|
+
length: z.ZodNumber;
|
|
1733
|
+
}, z.core.$strict>>>;
|
|
1010
1734
|
}, z.core.$strict>, z.ZodObject<{
|
|
1011
1735
|
key: z.ZodString;
|
|
1012
1736
|
type: z.ZodLiteral<"fields">;
|
|
@@ -1015,24 +1739,32 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1015
1739
|
value: z.ZodString;
|
|
1016
1740
|
}, z.core.$strict>>;
|
|
1017
1741
|
}, z.core.$strict>], "type">>;
|
|
1018
|
-
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1019
|
-
key: z.ZodString;
|
|
1020
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1021
|
-
}, z.core.$strict>>;
|
|
1022
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1023
1742
|
}, z.core.$strict>, z.ZodObject<{
|
|
1024
1743
|
key: z.ZodLiteral<"zh-CN">;
|
|
1025
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1026
1744
|
title: z.ZodString;
|
|
1745
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1027
1746
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1028
1747
|
key: z.ZodString;
|
|
1029
1748
|
label: z.ZodString;
|
|
1030
1749
|
}, z.core.$strict>>;
|
|
1750
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1751
|
+
key: z.ZodString;
|
|
1752
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
}, z.core.$strict>>;
|
|
1754
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1755
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1756
|
+
offset: z.ZodNumber;
|
|
1757
|
+
length: z.ZodNumber;
|
|
1758
|
+
}, z.core.$strict>>>;
|
|
1031
1759
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1032
1760
|
key: z.ZodString;
|
|
1033
1761
|
type: z.ZodLiteral<"text">;
|
|
1034
1762
|
label: z.ZodOptional<z.ZodString>;
|
|
1035
1763
|
value: z.ZodString;
|
|
1764
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1765
|
+
offset: z.ZodNumber;
|
|
1766
|
+
length: z.ZodNumber;
|
|
1767
|
+
}, z.core.$strict>>>;
|
|
1036
1768
|
}, z.core.$strict>, z.ZodObject<{
|
|
1037
1769
|
key: z.ZodString;
|
|
1038
1770
|
type: z.ZodLiteral<"fields">;
|
|
@@ -1041,13 +1773,18 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1041
1773
|
value: z.ZodString;
|
|
1042
1774
|
}, z.core.$strict>>;
|
|
1043
1775
|
}, z.core.$strict>], "type">>;
|
|
1044
|
-
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1045
|
-
key: z.ZodString;
|
|
1046
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1047
|
-
}, z.core.$strict>>;
|
|
1048
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1049
1776
|
}, z.core.$strict>], "key">>>>;
|
|
1050
1777
|
}, z.core.$strict>;
|
|
1778
|
+
audience: z.ZodOptional<z.ZodObject<{
|
|
1779
|
+
topics: z.ZodArray<z.ZodString>;
|
|
1780
|
+
}, z.core.$strict>>;
|
|
1781
|
+
browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1782
|
+
locale: z.ZodString;
|
|
1783
|
+
contentLocale: z.ZodString;
|
|
1784
|
+
title: z.ZodString;
|
|
1785
|
+
body: z.ZodString;
|
|
1786
|
+
url: z.ZodString;
|
|
1787
|
+
}, z.core.$strict>>>;
|
|
1051
1788
|
routeKeys: z.ZodArray<z.ZodString>;
|
|
1052
1789
|
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
1053
1790
|
eventId: z.ZodString;
|
|
@@ -1064,17 +1801,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1064
1801
|
revision: z.ZodNumber;
|
|
1065
1802
|
}, z.core.$strict>;
|
|
1066
1803
|
}, z.core.$strict>, z.ZodObject<{
|
|
1067
|
-
contractVersion: z.ZodLiteral<
|
|
1068
|
-
audience: z.ZodOptional<z.ZodObject<{
|
|
1069
|
-
topics: z.ZodArray<z.ZodString>;
|
|
1070
|
-
}, z.core.$strict>>;
|
|
1071
|
-
browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1072
|
-
locale: z.ZodString;
|
|
1073
|
-
contentLocale: z.ZodString;
|
|
1074
|
-
title: z.ZodString;
|
|
1075
|
-
body: z.ZodString;
|
|
1076
|
-
url: z.ZodString;
|
|
1077
|
-
}, z.core.$strict>>>;
|
|
1804
|
+
contractVersion: z.ZodLiteral<11>;
|
|
1078
1805
|
message: z.ZodObject<{
|
|
1079
1806
|
type: z.ZodLiteral<"structured_notification">;
|
|
1080
1807
|
links: z.ZodArray<z.ZodObject<{
|
|
@@ -1084,20 +1811,37 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1084
1811
|
bodies: z.ZodArray<z.ZodObject<{
|
|
1085
1812
|
key: z.ZodString;
|
|
1086
1813
|
value: z.ZodString;
|
|
1814
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1815
|
+
offset: z.ZodNumber;
|
|
1816
|
+
length: z.ZodNumber;
|
|
1817
|
+
}, z.core.$strict>>>;
|
|
1087
1818
|
}, z.core.$strict>>;
|
|
1088
1819
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1089
1820
|
key: z.ZodLiteral<"source">;
|
|
1090
|
-
locale: z.ZodLiteral<"und">;
|
|
1091
1821
|
title: z.ZodString;
|
|
1822
|
+
locale: z.ZodLiteral<"und">;
|
|
1092
1823
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1093
1824
|
key: z.ZodString;
|
|
1094
1825
|
label: z.ZodString;
|
|
1095
1826
|
}, z.core.$strict>>;
|
|
1827
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1828
|
+
key: z.ZodString;
|
|
1829
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1830
|
+
}, z.core.$strict>>;
|
|
1831
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1832
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1833
|
+
offset: z.ZodNumber;
|
|
1834
|
+
length: z.ZodNumber;
|
|
1835
|
+
}, z.core.$strict>>>;
|
|
1096
1836
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1097
1837
|
key: z.ZodString;
|
|
1098
1838
|
type: z.ZodLiteral<"text">;
|
|
1099
1839
|
label: z.ZodOptional<z.ZodString>;
|
|
1100
1840
|
value: z.ZodString;
|
|
1841
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1842
|
+
offset: z.ZodNumber;
|
|
1843
|
+
length: z.ZodNumber;
|
|
1844
|
+
}, z.core.$strict>>>;
|
|
1101
1845
|
}, z.core.$strict>, z.ZodObject<{
|
|
1102
1846
|
key: z.ZodString;
|
|
1103
1847
|
type: z.ZodLiteral<"fields">;
|
|
@@ -1106,24 +1850,32 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1106
1850
|
value: z.ZodString;
|
|
1107
1851
|
}, z.core.$strict>>;
|
|
1108
1852
|
}, z.core.$strict>], "type">>;
|
|
1109
|
-
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1110
|
-
key: z.ZodString;
|
|
1111
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1112
|
-
}, z.core.$strict>>;
|
|
1113
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1114
1853
|
}, z.core.$strict>, z.ZodObject<{
|
|
1115
1854
|
key: z.ZodLiteral<"zh-CN">;
|
|
1116
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1117
1855
|
title: z.ZodString;
|
|
1856
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1118
1857
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1119
1858
|
key: z.ZodString;
|
|
1120
1859
|
label: z.ZodString;
|
|
1121
1860
|
}, z.core.$strict>>;
|
|
1861
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1862
|
+
key: z.ZodString;
|
|
1863
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
}, z.core.$strict>>;
|
|
1865
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1867
|
+
offset: z.ZodNumber;
|
|
1868
|
+
length: z.ZodNumber;
|
|
1869
|
+
}, z.core.$strict>>>;
|
|
1122
1870
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1123
1871
|
key: z.ZodString;
|
|
1124
1872
|
type: z.ZodLiteral<"text">;
|
|
1125
1873
|
label: z.ZodOptional<z.ZodString>;
|
|
1126
1874
|
value: z.ZodString;
|
|
1875
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1876
|
+
offset: z.ZodNumber;
|
|
1877
|
+
length: z.ZodNumber;
|
|
1878
|
+
}, z.core.$strict>>>;
|
|
1127
1879
|
}, z.core.$strict>, z.ZodObject<{
|
|
1128
1880
|
key: z.ZodString;
|
|
1129
1881
|
type: z.ZodLiteral<"fields">;
|
|
@@ -1132,11 +1884,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1132
1884
|
value: z.ZodString;
|
|
1133
1885
|
}, z.core.$strict>>;
|
|
1134
1886
|
}, z.core.$strict>], "type">>;
|
|
1135
|
-
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1136
|
-
key: z.ZodString;
|
|
1137
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1138
|
-
}, z.core.$strict>>;
|
|
1139
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1140
1887
|
}, z.core.$strict>], "key">>;
|
|
1141
1888
|
channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1142
1889
|
qq: "qq";
|
|
@@ -1145,17 +1892,30 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1145
1892
|
lark: "lark";
|
|
1146
1893
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1147
1894
|
key: z.ZodLiteral<"source">;
|
|
1148
|
-
locale: z.ZodLiteral<"und">;
|
|
1149
1895
|
title: z.ZodString;
|
|
1896
|
+
locale: z.ZodLiteral<"und">;
|
|
1150
1897
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1151
1898
|
key: z.ZodString;
|
|
1152
1899
|
label: z.ZodString;
|
|
1153
1900
|
}, z.core.$strict>>;
|
|
1901
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1902
|
+
key: z.ZodString;
|
|
1903
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1904
|
+
}, z.core.$strict>>;
|
|
1905
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1907
|
+
offset: z.ZodNumber;
|
|
1908
|
+
length: z.ZodNumber;
|
|
1909
|
+
}, z.core.$strict>>>;
|
|
1154
1910
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1155
1911
|
key: z.ZodString;
|
|
1156
1912
|
type: z.ZodLiteral<"text">;
|
|
1157
1913
|
label: z.ZodOptional<z.ZodString>;
|
|
1158
1914
|
value: z.ZodString;
|
|
1915
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1916
|
+
offset: z.ZodNumber;
|
|
1917
|
+
length: z.ZodNumber;
|
|
1918
|
+
}, z.core.$strict>>>;
|
|
1159
1919
|
}, z.core.$strict>, z.ZodObject<{
|
|
1160
1920
|
key: z.ZodString;
|
|
1161
1921
|
type: z.ZodLiteral<"fields">;
|
|
@@ -1164,24 +1924,32 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1164
1924
|
value: z.ZodString;
|
|
1165
1925
|
}, z.core.$strict>>;
|
|
1166
1926
|
}, 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
1927
|
}, z.core.$strict>, z.ZodObject<{
|
|
1173
1928
|
key: z.ZodLiteral<"zh-CN">;
|
|
1174
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1175
1929
|
title: z.ZodString;
|
|
1930
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1176
1931
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1177
1932
|
key: z.ZodString;
|
|
1178
1933
|
label: z.ZodString;
|
|
1179
1934
|
}, z.core.$strict>>;
|
|
1935
|
+
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1936
|
+
key: z.ZodString;
|
|
1937
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1938
|
+
}, z.core.$strict>>;
|
|
1939
|
+
footer: z.ZodOptional<z.ZodString>;
|
|
1940
|
+
titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1941
|
+
offset: z.ZodNumber;
|
|
1942
|
+
length: z.ZodNumber;
|
|
1943
|
+
}, z.core.$strict>>>;
|
|
1180
1944
|
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1181
1945
|
key: z.ZodString;
|
|
1182
1946
|
type: z.ZodLiteral<"text">;
|
|
1183
1947
|
label: z.ZodOptional<z.ZodString>;
|
|
1184
1948
|
value: z.ZodString;
|
|
1949
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1950
|
+
offset: z.ZodNumber;
|
|
1951
|
+
length: z.ZodNumber;
|
|
1952
|
+
}, z.core.$strict>>>;
|
|
1185
1953
|
}, z.core.$strict>, z.ZodObject<{
|
|
1186
1954
|
key: z.ZodString;
|
|
1187
1955
|
type: z.ZodLiteral<"fields">;
|
|
@@ -1190,13 +1958,52 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1190
1958
|
value: z.ZodString;
|
|
1191
1959
|
}, z.core.$strict>>;
|
|
1192
1960
|
}, z.core.$strict>], "type">>;
|
|
1193
|
-
bodyRefs: z.ZodArray<z.ZodObject<{
|
|
1194
|
-
key: z.ZodString;
|
|
1195
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1196
|
-
}, z.core.$strict>>;
|
|
1197
|
-
footer: z.ZodOptional<z.ZodString>;
|
|
1198
1961
|
}, z.core.$strict>], "key">>>>;
|
|
1962
|
+
channelFormats: z.ZodOptional<z.ZodObject<{
|
|
1963
|
+
qq: z.ZodOptional<z.ZodEnum<{
|
|
1964
|
+
auto: "auto";
|
|
1965
|
+
markdown: "markdown";
|
|
1966
|
+
plain_text: "plain_text";
|
|
1967
|
+
}>>;
|
|
1968
|
+
tg: z.ZodOptional<z.ZodEnum<{
|
|
1969
|
+
auto: "auto";
|
|
1970
|
+
plain_text: "plain_text";
|
|
1971
|
+
rich_text: "rich_text";
|
|
1972
|
+
}>>;
|
|
1973
|
+
}, z.core.$strict>>;
|
|
1974
|
+
channelBodies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1975
|
+
qq: "qq";
|
|
1976
|
+
tg: "tg";
|
|
1977
|
+
wechat: "wechat";
|
|
1978
|
+
lark: "lark";
|
|
1979
|
+
}> & z.core.$partial, z.ZodArray<z.ZodObject<{
|
|
1980
|
+
key: z.ZodString;
|
|
1981
|
+
value: z.ZodString;
|
|
1982
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1983
|
+
offset: z.ZodNumber;
|
|
1984
|
+
length: z.ZodNumber;
|
|
1985
|
+
}, z.core.$strict>>>;
|
|
1986
|
+
}, z.core.$strict>>>>;
|
|
1987
|
+
channelLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1988
|
+
qq: "qq";
|
|
1989
|
+
tg: "tg";
|
|
1990
|
+
wechat: "wechat";
|
|
1991
|
+
lark: "lark";
|
|
1992
|
+
}> & z.core.$partial, z.ZodArray<z.ZodObject<{
|
|
1993
|
+
key: z.ZodString;
|
|
1994
|
+
url: z.ZodString;
|
|
1995
|
+
}, z.core.$strict>>>>;
|
|
1199
1996
|
}, z.core.$strict>;
|
|
1997
|
+
audience: z.ZodOptional<z.ZodObject<{
|
|
1998
|
+
topics: z.ZodArray<z.ZodString>;
|
|
1999
|
+
}, z.core.$strict>>;
|
|
2000
|
+
browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2001
|
+
locale: z.ZodString;
|
|
2002
|
+
contentLocale: z.ZodString;
|
|
2003
|
+
title: z.ZodString;
|
|
2004
|
+
body: z.ZodString;
|
|
2005
|
+
url: z.ZodString;
|
|
2006
|
+
}, z.core.$strict>>>;
|
|
1200
2007
|
routeKeys: z.ZodArray<z.ZodString>;
|
|
1201
2008
|
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
1202
2009
|
eventId: z.ZodString;
|
|
@@ -1215,7 +2022,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1215
2022
|
}, z.core.$strict>]>;
|
|
1216
2023
|
type NotificationDeliveryRequest = z.infer<typeof notificationDeliveryRequestSchema>;
|
|
1217
2024
|
type NotificationMessageVariantKey = (typeof notificationMessageVariantKeys)[number];
|
|
1218
|
-
type NotificationStructuredMessageSection = z.infer<typeof structuredMessageSectionSchema>;
|
|
1219
2025
|
type NotificationMessageBody = z.infer<typeof notificationMessageBodySchema>;
|
|
1220
2026
|
//#endregion
|
|
1221
2027
|
//#region src/generic-plain-text.d.ts
|
|
@@ -1229,6 +2035,12 @@ interface PlainTextOptions {
|
|
|
1229
2035
|
/** Destination-owned immutable copy appended to its corresponding language block. */
|
|
1230
2036
|
variantSuffixes?: Partial<Record<NotificationMessageVariantKey, string>>;
|
|
1231
2037
|
}
|
|
2038
|
+
interface GenericNotificationAnnotatedText {
|
|
2039
|
+
text: string;
|
|
2040
|
+
quotes: NotificationQuoteRange[];
|
|
2041
|
+
}
|
|
2042
|
+
/** Renders bounded text and producer-owned quote ranges using UTF-16 offsets. */
|
|
2043
|
+
declare function renderGenericNotificationAnnotatedText(input: NotificationDeliveryRequest, maximumCodePoints: number, requestedVariantKeys?: readonly NotificationMessageVariantKey[], options?: PlainTextOptions): GenericNotificationAnnotatedText;
|
|
1232
2044
|
/** Renders one validated provider-neutral delivery snapshot as bounded plain text. */
|
|
1233
2045
|
declare function renderGenericNotificationPlainText(input: NotificationDeliveryRequest, maximumCodePoints: number, requestedVariantKeys?: readonly NotificationMessageVariantKey[], options?: PlainTextOptions): string;
|
|
1234
2046
|
//#endregion
|
|
@@ -1238,22 +2050,24 @@ interface GenericNotificationMessageContent {
|
|
|
1238
2050
|
locale: 'und' | 'zh-CN';
|
|
1239
2051
|
sections: GenericNotificationMessageSection[];
|
|
1240
2052
|
title: string;
|
|
1241
|
-
|
|
1242
|
-
|
|
2053
|
+
titleQuotes?: NotificationQuoteRange[];
|
|
2054
|
+
body?: GenericNotificationMessageBody;
|
|
2055
|
+
bodies?: GenericNotificationMessageBody[];
|
|
1243
2056
|
footer?: string | undefined;
|
|
1244
2057
|
links?: GenericNotificationMessageLink[];
|
|
1245
2058
|
}
|
|
1246
|
-
type GenericNotificationMessageSection =
|
|
2059
|
+
type GenericNotificationMessageSection = NotificationDeliveryRequestV10['message']['variants'][number]['sections'][number];
|
|
2060
|
+
type GenericNotificationMessageBody = NotificationMessageBody & Pick<NotificationDeliveryRequestV10['message']['bodies'][number], 'quotes'>;
|
|
1247
2061
|
interface GenericNotificationMessageLink {
|
|
1248
2062
|
key: string;
|
|
1249
2063
|
label: string;
|
|
1250
2064
|
url: string;
|
|
1251
2065
|
}
|
|
1252
2066
|
/** Selects frozen channel copy; an absent override keeps the request's frozen default copy. */
|
|
1253
|
-
declare function resolveGenericNotificationChannelVariants(input: NotificationDeliveryRequestV6 | NotificationDeliveryRequestV7 | NotificationDeliveryRequestV8 | NotificationDeliveryRequestV9, channel?: NotificationDeliveryChannelKey): ({
|
|
2067
|
+
declare function resolveGenericNotificationChannelVariants(input: NotificationDeliveryRequestV6 | NotificationDeliveryRequestV7 | NotificationDeliveryRequestV8 | NotificationDeliveryRequestV9 | NotificationDeliveryRequestV10 | NotificationDeliveryRequestV11, channel?: NotificationDeliveryChannelKey): ({
|
|
1254
2068
|
key: "source";
|
|
1255
|
-
locale: "und";
|
|
1256
2069
|
title: string;
|
|
2070
|
+
locale: "und";
|
|
1257
2071
|
linkLabels: {
|
|
1258
2072
|
key: string;
|
|
1259
2073
|
label: string;
|
|
@@ -1278,8 +2092,8 @@ declare function resolveGenericNotificationChannelVariants(input: NotificationDe
|
|
|
1278
2092
|
footer?: string | undefined;
|
|
1279
2093
|
} | {
|
|
1280
2094
|
key: "zh-CN";
|
|
1281
|
-
locale: "zh-CN";
|
|
1282
2095
|
title: string;
|
|
2096
|
+
locale: "zh-CN";
|
|
1283
2097
|
linkLabels: {
|
|
1284
2098
|
key: string;
|
|
1285
2099
|
label: string;
|
|
@@ -1302,6 +2116,74 @@ declare function resolveGenericNotificationChannelVariants(input: NotificationDe
|
|
|
1302
2116
|
label?: string | undefined;
|
|
1303
2117
|
}[];
|
|
1304
2118
|
footer?: string | undefined;
|
|
2119
|
+
})[] | ({
|
|
2120
|
+
key: "source";
|
|
2121
|
+
title: string;
|
|
2122
|
+
locale: "und";
|
|
2123
|
+
linkLabels: {
|
|
2124
|
+
key: string;
|
|
2125
|
+
label: string;
|
|
2126
|
+
}[];
|
|
2127
|
+
bodyRefs: {
|
|
2128
|
+
key: string;
|
|
2129
|
+
label?: string | undefined;
|
|
2130
|
+
}[];
|
|
2131
|
+
sections: ({
|
|
2132
|
+
key: string;
|
|
2133
|
+
type: "fields";
|
|
2134
|
+
items: {
|
|
2135
|
+
label: string;
|
|
2136
|
+
value: string;
|
|
2137
|
+
}[];
|
|
2138
|
+
} | {
|
|
2139
|
+
key: string;
|
|
2140
|
+
type: "text";
|
|
2141
|
+
value: string;
|
|
2142
|
+
label?: string | undefined;
|
|
2143
|
+
quotes?: {
|
|
2144
|
+
offset: number;
|
|
2145
|
+
length: number;
|
|
2146
|
+
}[] | undefined;
|
|
2147
|
+
})[];
|
|
2148
|
+
footer?: string | undefined;
|
|
2149
|
+
titleQuotes?: {
|
|
2150
|
+
offset: number;
|
|
2151
|
+
length: number;
|
|
2152
|
+
}[] | undefined;
|
|
2153
|
+
} | {
|
|
2154
|
+
key: "zh-CN";
|
|
2155
|
+
title: string;
|
|
2156
|
+
locale: "zh-CN";
|
|
2157
|
+
linkLabels: {
|
|
2158
|
+
key: string;
|
|
2159
|
+
label: string;
|
|
2160
|
+
}[];
|
|
2161
|
+
bodyRefs: {
|
|
2162
|
+
key: string;
|
|
2163
|
+
label?: string | undefined;
|
|
2164
|
+
}[];
|
|
2165
|
+
sections: ({
|
|
2166
|
+
key: string;
|
|
2167
|
+
type: "fields";
|
|
2168
|
+
items: {
|
|
2169
|
+
label: string;
|
|
2170
|
+
value: string;
|
|
2171
|
+
}[];
|
|
2172
|
+
} | {
|
|
2173
|
+
key: string;
|
|
2174
|
+
type: "text";
|
|
2175
|
+
value: string;
|
|
2176
|
+
label?: string | undefined;
|
|
2177
|
+
quotes?: {
|
|
2178
|
+
offset: number;
|
|
2179
|
+
length: number;
|
|
2180
|
+
}[] | undefined;
|
|
2181
|
+
})[];
|
|
2182
|
+
footer?: string | undefined;
|
|
2183
|
+
titleQuotes?: {
|
|
2184
|
+
offset: number;
|
|
2185
|
+
length: number;
|
|
2186
|
+
}[] | undefined;
|
|
1305
2187
|
})[];
|
|
1306
2188
|
/** Resolves a validated request into the ordered message variants selected by one destination. */
|
|
1307
2189
|
declare function resolveGenericNotificationMessage(input: NotificationDeliveryRequest, requestedVariantKeys?: readonly NotificationMessageVariantKey[], channel?: NotificationDeliveryChannelKey): {
|
|
@@ -1312,4 +2194,33 @@ declare function resolveGenericNotificationMessage(input: NotificationDeliveryRe
|
|
|
1312
2194
|
/** Returns the ordered variant identity used by renderer caches. */
|
|
1313
2195
|
declare function resolveGenericNotificationMessageVariantKeys(input: NotificationDeliveryRequest, requestedVariantKeys?: readonly NotificationMessageVariantKey[], channel?: NotificationDeliveryChannelKey): ("source" | "zh-CN")[];
|
|
1314
2196
|
//#endregion
|
|
1315
|
-
|
|
2197
|
+
//#region src/generic-qq.d.ts
|
|
2198
|
+
/** Owns QQ wire capacity, escaping and quote blocks using the request's frozen format. */
|
|
2199
|
+
declare function renderGenericNotificationQqMessage(input: NotificationDeliveryRequest, requestedVariantKeys?: readonly NotificationMessageVariantKey[]): {
|
|
2200
|
+
msg_type: 0;
|
|
2201
|
+
content: string;
|
|
2202
|
+
markdown?: never;
|
|
2203
|
+
} | {
|
|
2204
|
+
msg_type: 2;
|
|
2205
|
+
markdown: {
|
|
2206
|
+
content: string;
|
|
2207
|
+
};
|
|
2208
|
+
content?: never;
|
|
2209
|
+
};
|
|
2210
|
+
/** Projects the exact capacity-limited QQ delivery into visible text and quote intervals. */
|
|
2211
|
+
declare function renderGenericNotificationQqPreview(input: NotificationDeliveryRequest, requestedVariantKeys?: readonly NotificationMessageVariantKey[]): GenericNotificationAnnotatedText;
|
|
2212
|
+
//#endregion
|
|
2213
|
+
//#region src/generic-telegram.d.ts
|
|
2214
|
+
interface TelegramTextMessage {
|
|
2215
|
+
link_preview_options: {
|
|
2216
|
+
is_disabled: true;
|
|
2217
|
+
};
|
|
2218
|
+
text: string;
|
|
2219
|
+
entities?: (NotificationQuoteRange & {
|
|
2220
|
+
type: 'blockquote';
|
|
2221
|
+
})[];
|
|
2222
|
+
}
|
|
2223
|
+
/** Preserves the shared text and projects its UTF-16 quote ranges to native Telegram entities. */
|
|
2224
|
+
declare function renderGenericNotificationTelegramMessage(input: NotificationDeliveryRequest, requestedVariantKeys?: readonly NotificationMessageVariantKey[]): TelegramTextMessage;
|
|
2225
|
+
//#endregion
|
|
2226
|
+
export { type GenericNotificationAnnotatedText, type GenericNotificationMessageBody, type GenericNotificationMessageContent, type GenericNotificationMessageLink, type GenericNotificationMessageSection, GenericNotificationRenderError, type PlainTextOptions, type TelegramTextMessage, renderGenericNotificationAnnotatedText, renderGenericNotificationPlainText, renderGenericNotificationQqMessage, renderGenericNotificationQqPreview, renderGenericNotificationTelegramMessage, resolveGenericNotificationChannelVariants, resolveGenericNotificationMessage, resolveGenericNotificationMessageVariantKeys };
|