@closerepo/notification-contracts 1.14.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 +458 -1
- package/dist/index.js +1 -1
- package/dist/render.d.ts +505 -35
- package/dist/render.js +19 -9
- package/package.json +1 -1
package/dist/render.d.ts
CHANGED
|
@@ -21,8 +21,8 @@ declare const notificationDeliveryRequestV6Schema: z.ZodObject<{
|
|
|
21
21
|
}, z.core.$strict>>;
|
|
22
22
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
23
|
key: z.ZodLiteral<"source">;
|
|
24
|
-
locale: z.ZodLiteral<"und">;
|
|
25
24
|
title: z.ZodString;
|
|
25
|
+
locale: z.ZodLiteral<"und">;
|
|
26
26
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
27
27
|
key: z.ZodString;
|
|
28
28
|
label: z.ZodString;
|
|
@@ -47,8 +47,8 @@ declare const notificationDeliveryRequestV6Schema: z.ZodObject<{
|
|
|
47
47
|
footer: z.ZodOptional<z.ZodString>;
|
|
48
48
|
}, z.core.$strict>, z.ZodObject<{
|
|
49
49
|
key: z.ZodLiteral<"zh-CN">;
|
|
50
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
51
50
|
title: z.ZodString;
|
|
51
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
52
52
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
53
53
|
key: z.ZodString;
|
|
54
54
|
label: z.ZodString;
|
|
@@ -105,8 +105,8 @@ declare const notificationDeliveryRequestV7Schema: z.ZodObject<{
|
|
|
105
105
|
}, z.core.$strict>>;
|
|
106
106
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
107
107
|
key: z.ZodLiteral<"source">;
|
|
108
|
-
locale: z.ZodLiteral<"und">;
|
|
109
108
|
title: z.ZodString;
|
|
109
|
+
locale: z.ZodLiteral<"und">;
|
|
110
110
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
111
111
|
key: z.ZodString;
|
|
112
112
|
label: z.ZodString;
|
|
@@ -131,8 +131,8 @@ declare const notificationDeliveryRequestV7Schema: z.ZodObject<{
|
|
|
131
131
|
footer: z.ZodOptional<z.ZodString>;
|
|
132
132
|
}, z.core.$strict>, z.ZodObject<{
|
|
133
133
|
key: z.ZodLiteral<"zh-CN">;
|
|
134
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
135
134
|
title: z.ZodString;
|
|
135
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
136
136
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
137
137
|
key: z.ZodString;
|
|
138
138
|
label: z.ZodString;
|
|
@@ -188,8 +188,8 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
|
|
|
188
188
|
}, z.core.$strict>>;
|
|
189
189
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
190
190
|
key: z.ZodLiteral<"source">;
|
|
191
|
-
locale: z.ZodLiteral<"und">;
|
|
192
191
|
title: z.ZodString;
|
|
192
|
+
locale: z.ZodLiteral<"und">;
|
|
193
193
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
194
194
|
key: z.ZodString;
|
|
195
195
|
label: z.ZodString;
|
|
@@ -214,8 +214,8 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
|
|
|
214
214
|
footer: z.ZodOptional<z.ZodString>;
|
|
215
215
|
}, z.core.$strict>, z.ZodObject<{
|
|
216
216
|
key: z.ZodLiteral<"zh-CN">;
|
|
217
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
218
217
|
title: z.ZodString;
|
|
218
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
219
219
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
220
220
|
key: z.ZodString;
|
|
221
221
|
label: z.ZodString;
|
|
@@ -246,8 +246,8 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
|
|
|
246
246
|
lark: "lark";
|
|
247
247
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
248
248
|
key: z.ZodLiteral<"source">;
|
|
249
|
-
locale: z.ZodLiteral<"und">;
|
|
250
249
|
title: z.ZodString;
|
|
250
|
+
locale: z.ZodLiteral<"und">;
|
|
251
251
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
252
252
|
key: z.ZodString;
|
|
253
253
|
label: z.ZodString;
|
|
@@ -272,8 +272,8 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
|
|
|
272
272
|
footer: z.ZodOptional<z.ZodString>;
|
|
273
273
|
}, z.core.$strict>, z.ZodObject<{
|
|
274
274
|
key: z.ZodLiteral<"zh-CN">;
|
|
275
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
276
275
|
title: z.ZodString;
|
|
276
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
277
277
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
278
278
|
key: z.ZodString;
|
|
279
279
|
label: z.ZodString;
|
|
@@ -340,8 +340,8 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
340
340
|
}, z.core.$strict>>;
|
|
341
341
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
342
|
key: z.ZodLiteral<"source">;
|
|
343
|
-
locale: z.ZodLiteral<"und">;
|
|
344
343
|
title: z.ZodString;
|
|
344
|
+
locale: z.ZodLiteral<"und">;
|
|
345
345
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
346
346
|
key: z.ZodString;
|
|
347
347
|
label: z.ZodString;
|
|
@@ -366,8 +366,8 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
366
366
|
footer: z.ZodOptional<z.ZodString>;
|
|
367
367
|
}, z.core.$strict>, z.ZodObject<{
|
|
368
368
|
key: z.ZodLiteral<"zh-CN">;
|
|
369
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
370
369
|
title: z.ZodString;
|
|
370
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
371
371
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
372
372
|
key: z.ZodString;
|
|
373
373
|
label: z.ZodString;
|
|
@@ -398,8 +398,8 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
398
398
|
lark: "lark";
|
|
399
399
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
400
400
|
key: z.ZodLiteral<"source">;
|
|
401
|
-
locale: z.ZodLiteral<"und">;
|
|
402
401
|
title: z.ZodString;
|
|
402
|
+
locale: z.ZodLiteral<"und">;
|
|
403
403
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
404
404
|
key: z.ZodString;
|
|
405
405
|
label: z.ZodString;
|
|
@@ -424,8 +424,8 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
|
|
|
424
424
|
footer: z.ZodOptional<z.ZodString>;
|
|
425
425
|
}, z.core.$strict>, z.ZodObject<{
|
|
426
426
|
key: z.ZodLiteral<"zh-CN">;
|
|
427
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
428
427
|
title: z.ZodString;
|
|
428
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
429
429
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
430
430
|
key: z.ZodString;
|
|
431
431
|
label: z.ZodString;
|
|
@@ -492,8 +492,8 @@ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
|
|
|
492
492
|
}, z.core.$strict>>;
|
|
493
493
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
494
494
|
key: z.ZodLiteral<"source">;
|
|
495
|
-
locale: z.ZodLiteral<"und">;
|
|
496
495
|
title: z.ZodString;
|
|
496
|
+
locale: z.ZodLiteral<"und">;
|
|
497
497
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
498
498
|
key: z.ZodString;
|
|
499
499
|
label: z.ZodString;
|
|
@@ -526,8 +526,8 @@ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
|
|
|
526
526
|
}, z.core.$strict>], "type">>;
|
|
527
527
|
}, z.core.$strict>, z.ZodObject<{
|
|
528
528
|
key: z.ZodLiteral<"zh-CN">;
|
|
529
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
530
529
|
title: z.ZodString;
|
|
530
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
531
531
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
532
532
|
key: z.ZodString;
|
|
533
533
|
label: z.ZodString;
|
|
@@ -566,8 +566,122 @@ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
|
|
|
566
566
|
lark: "lark";
|
|
567
567
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
568
568
|
key: z.ZodLiteral<"source">;
|
|
569
|
+
title: z.ZodString;
|
|
569
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>>>;
|
|
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
|
+
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>>>;
|
|
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
|
+
/** V11 freezes channel presentation while retaining shared body and link identities. */
|
|
665
|
+
declare const notificationDeliveryRequestV11Schema: z.ZodObject<{
|
|
666
|
+
contractVersion: z.ZodLiteral<11>;
|
|
667
|
+
message: z.ZodObject<{
|
|
668
|
+
type: z.ZodLiteral<"structured_notification">;
|
|
669
|
+
links: z.ZodArray<z.ZodObject<{
|
|
670
|
+
key: z.ZodString;
|
|
671
|
+
url: z.ZodString;
|
|
672
|
+
}, z.core.$strict>>;
|
|
673
|
+
bodies: z.ZodArray<z.ZodObject<{
|
|
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>>>;
|
|
680
|
+
}, z.core.$strict>>;
|
|
681
|
+
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
682
|
+
key: z.ZodLiteral<"source">;
|
|
570
683
|
title: z.ZodString;
|
|
684
|
+
locale: z.ZodLiteral<"und">;
|
|
571
685
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
572
686
|
key: z.ZodString;
|
|
573
687
|
label: z.ZodString;
|
|
@@ -600,8 +714,82 @@ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
|
|
|
600
714
|
}, z.core.$strict>], "type">>;
|
|
601
715
|
}, z.core.$strict>, z.ZodObject<{
|
|
602
716
|
key: z.ZodLiteral<"zh-CN">;
|
|
717
|
+
title: z.ZodString;
|
|
603
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>>>;
|
|
732
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
733
|
+
key: z.ZodString;
|
|
734
|
+
type: z.ZodLiteral<"text">;
|
|
735
|
+
label: z.ZodOptional<z.ZodString>;
|
|
736
|
+
value: z.ZodString;
|
|
737
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
738
|
+
offset: z.ZodNumber;
|
|
739
|
+
length: z.ZodNumber;
|
|
740
|
+
}, z.core.$strict>>>;
|
|
741
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
742
|
+
key: z.ZodString;
|
|
743
|
+
type: z.ZodLiteral<"fields">;
|
|
744
|
+
items: z.ZodArray<z.ZodObject<{
|
|
745
|
+
label: z.ZodString;
|
|
746
|
+
value: z.ZodString;
|
|
747
|
+
}, z.core.$strict>>;
|
|
748
|
+
}, z.core.$strict>], "type">>;
|
|
749
|
+
}, z.core.$strict>], "key">>;
|
|
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">;
|
|
604
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">;
|
|
605
793
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
606
794
|
key: z.ZodString;
|
|
607
795
|
label: z.ZodString;
|
|
@@ -633,6 +821,40 @@ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
|
|
|
633
821
|
}, z.core.$strict>>;
|
|
634
822
|
}, z.core.$strict>], "type">>;
|
|
635
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>>>>;
|
|
636
858
|
}, z.core.$strict>;
|
|
637
859
|
audience: z.ZodOptional<z.ZodObject<{
|
|
638
860
|
topics: z.ZodArray<z.ZodString>;
|
|
@@ -660,7 +882,7 @@ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
|
|
|
660
882
|
revision: z.ZodNumber;
|
|
661
883
|
}, z.core.$strict>;
|
|
662
884
|
}, z.core.$strict>;
|
|
663
|
-
type
|
|
885
|
+
type NotificationDeliveryRequestV11 = z.infer<typeof notificationDeliveryRequestV11Schema>;
|
|
664
886
|
type NotificationDeliveryRequestV6 = z.infer<typeof notificationDeliveryRequestV6Schema>;
|
|
665
887
|
declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
666
888
|
message: z.ZodObject<{
|
|
@@ -957,8 +1179,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
957
1179
|
}, z.core.$strict>>;
|
|
958
1180
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
959
1181
|
key: z.ZodLiteral<"source">;
|
|
960
|
-
locale: z.ZodLiteral<"und">;
|
|
961
1182
|
title: z.ZodString;
|
|
1183
|
+
locale: z.ZodLiteral<"und">;
|
|
962
1184
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
963
1185
|
key: z.ZodString;
|
|
964
1186
|
label: z.ZodString;
|
|
@@ -983,8 +1205,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
983
1205
|
footer: z.ZodOptional<z.ZodString>;
|
|
984
1206
|
}, z.core.$strict>, z.ZodObject<{
|
|
985
1207
|
key: z.ZodLiteral<"zh-CN">;
|
|
986
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
987
1208
|
title: z.ZodString;
|
|
1209
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
988
1210
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
989
1211
|
key: z.ZodString;
|
|
990
1212
|
label: z.ZodString;
|
|
@@ -1039,8 +1261,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1039
1261
|
}, z.core.$strict>>;
|
|
1040
1262
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1041
1263
|
key: z.ZodLiteral<"source">;
|
|
1042
|
-
locale: z.ZodLiteral<"und">;
|
|
1043
1264
|
title: z.ZodString;
|
|
1265
|
+
locale: z.ZodLiteral<"und">;
|
|
1044
1266
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1045
1267
|
key: z.ZodString;
|
|
1046
1268
|
label: z.ZodString;
|
|
@@ -1065,8 +1287,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1065
1287
|
footer: z.ZodOptional<z.ZodString>;
|
|
1066
1288
|
}, z.core.$strict>, z.ZodObject<{
|
|
1067
1289
|
key: z.ZodLiteral<"zh-CN">;
|
|
1068
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1069
1290
|
title: z.ZodString;
|
|
1291
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1070
1292
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1071
1293
|
key: z.ZodString;
|
|
1072
1294
|
label: z.ZodString;
|
|
@@ -1119,8 +1341,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1119
1341
|
}, z.core.$strict>>;
|
|
1120
1342
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1121
1343
|
key: z.ZodLiteral<"source">;
|
|
1122
|
-
locale: z.ZodLiteral<"und">;
|
|
1123
1344
|
title: z.ZodString;
|
|
1345
|
+
locale: z.ZodLiteral<"und">;
|
|
1124
1346
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1125
1347
|
key: z.ZodString;
|
|
1126
1348
|
label: z.ZodString;
|
|
@@ -1145,8 +1367,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1145
1367
|
footer: z.ZodOptional<z.ZodString>;
|
|
1146
1368
|
}, z.core.$strict>, z.ZodObject<{
|
|
1147
1369
|
key: z.ZodLiteral<"zh-CN">;
|
|
1148
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1149
1370
|
title: z.ZodString;
|
|
1371
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1150
1372
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1151
1373
|
key: z.ZodString;
|
|
1152
1374
|
label: z.ZodString;
|
|
@@ -1177,8 +1399,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1177
1399
|
lark: "lark";
|
|
1178
1400
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1179
1401
|
key: z.ZodLiteral<"source">;
|
|
1180
|
-
locale: z.ZodLiteral<"und">;
|
|
1181
1402
|
title: z.ZodString;
|
|
1403
|
+
locale: z.ZodLiteral<"und">;
|
|
1182
1404
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1183
1405
|
key: z.ZodString;
|
|
1184
1406
|
label: z.ZodString;
|
|
@@ -1203,8 +1425,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1203
1425
|
footer: z.ZodOptional<z.ZodString>;
|
|
1204
1426
|
}, z.core.$strict>, z.ZodObject<{
|
|
1205
1427
|
key: z.ZodLiteral<"zh-CN">;
|
|
1206
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1207
1428
|
title: z.ZodString;
|
|
1429
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1208
1430
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1209
1431
|
key: z.ZodString;
|
|
1210
1432
|
label: z.ZodString;
|
|
@@ -1268,8 +1490,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1268
1490
|
}, z.core.$strict>>;
|
|
1269
1491
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1270
1492
|
key: z.ZodLiteral<"source">;
|
|
1271
|
-
locale: z.ZodLiteral<"und">;
|
|
1272
1493
|
title: z.ZodString;
|
|
1494
|
+
locale: z.ZodLiteral<"und">;
|
|
1273
1495
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1274
1496
|
key: z.ZodString;
|
|
1275
1497
|
label: z.ZodString;
|
|
@@ -1294,8 +1516,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1294
1516
|
footer: z.ZodOptional<z.ZodString>;
|
|
1295
1517
|
}, z.core.$strict>, z.ZodObject<{
|
|
1296
1518
|
key: z.ZodLiteral<"zh-CN">;
|
|
1297
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1298
1519
|
title: z.ZodString;
|
|
1520
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1299
1521
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1300
1522
|
key: z.ZodString;
|
|
1301
1523
|
label: z.ZodString;
|
|
@@ -1326,8 +1548,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1326
1548
|
lark: "lark";
|
|
1327
1549
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1328
1550
|
key: z.ZodLiteral<"source">;
|
|
1329
|
-
locale: z.ZodLiteral<"und">;
|
|
1330
1551
|
title: z.ZodString;
|
|
1552
|
+
locale: z.ZodLiteral<"und">;
|
|
1331
1553
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1332
1554
|
key: z.ZodString;
|
|
1333
1555
|
label: z.ZodString;
|
|
@@ -1352,8 +1574,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1352
1574
|
footer: z.ZodOptional<z.ZodString>;
|
|
1353
1575
|
}, z.core.$strict>, z.ZodObject<{
|
|
1354
1576
|
key: z.ZodLiteral<"zh-CN">;
|
|
1355
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1356
1577
|
title: z.ZodString;
|
|
1578
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1357
1579
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1358
1580
|
key: z.ZodString;
|
|
1359
1581
|
label: z.ZodString;
|
|
@@ -1411,8 +1633,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1411
1633
|
}, z.core.$strict>>;
|
|
1412
1634
|
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1413
1635
|
key: z.ZodLiteral<"source">;
|
|
1414
|
-
locale: z.ZodLiteral<"und">;
|
|
1415
1636
|
title: z.ZodString;
|
|
1637
|
+
locale: z.ZodLiteral<"und">;
|
|
1416
1638
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1417
1639
|
key: z.ZodString;
|
|
1418
1640
|
label: z.ZodString;
|
|
@@ -1445,8 +1667,8 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1445
1667
|
}, z.core.$strict>], "type">>;
|
|
1446
1668
|
}, z.core.$strict>, z.ZodObject<{
|
|
1447
1669
|
key: z.ZodLiteral<"zh-CN">;
|
|
1448
|
-
locale: z.ZodLiteral<"zh-CN">;
|
|
1449
1670
|
title: z.ZodString;
|
|
1671
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1450
1672
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1451
1673
|
key: z.ZodString;
|
|
1452
1674
|
label: z.ZodString;
|
|
@@ -1485,8 +1707,119 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1485
1707
|
lark: "lark";
|
|
1486
1708
|
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1487
1709
|
key: z.ZodLiteral<"source">;
|
|
1710
|
+
title: z.ZodString;
|
|
1488
1711
|
locale: z.ZodLiteral<"und">;
|
|
1712
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1713
|
+
key: z.ZodString;
|
|
1714
|
+
label: z.ZodString;
|
|
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>>>;
|
|
1725
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1726
|
+
key: z.ZodString;
|
|
1727
|
+
type: z.ZodLiteral<"text">;
|
|
1728
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
value: z.ZodString;
|
|
1730
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1731
|
+
offset: z.ZodNumber;
|
|
1732
|
+
length: z.ZodNumber;
|
|
1733
|
+
}, z.core.$strict>>>;
|
|
1734
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1735
|
+
key: z.ZodString;
|
|
1736
|
+
type: z.ZodLiteral<"fields">;
|
|
1737
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1738
|
+
label: z.ZodString;
|
|
1739
|
+
value: z.ZodString;
|
|
1740
|
+
}, z.core.$strict>>;
|
|
1741
|
+
}, z.core.$strict>], "type">>;
|
|
1742
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1743
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
1489
1744
|
title: z.ZodString;
|
|
1745
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1746
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1747
|
+
key: z.ZodString;
|
|
1748
|
+
label: z.ZodString;
|
|
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>>>;
|
|
1759
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1760
|
+
key: z.ZodString;
|
|
1761
|
+
type: z.ZodLiteral<"text">;
|
|
1762
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1763
|
+
value: z.ZodString;
|
|
1764
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1765
|
+
offset: z.ZodNumber;
|
|
1766
|
+
length: z.ZodNumber;
|
|
1767
|
+
}, z.core.$strict>>>;
|
|
1768
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1769
|
+
key: z.ZodString;
|
|
1770
|
+
type: z.ZodLiteral<"fields">;
|
|
1771
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1772
|
+
label: z.ZodString;
|
|
1773
|
+
value: z.ZodString;
|
|
1774
|
+
}, z.core.$strict>>;
|
|
1775
|
+
}, z.core.$strict>], "type">>;
|
|
1776
|
+
}, z.core.$strict>], "key">>>>;
|
|
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>>>;
|
|
1788
|
+
routeKeys: z.ZodArray<z.ZodString>;
|
|
1789
|
+
eventType: z.ZodLiteral<"notification.delivery.requested">;
|
|
1790
|
+
eventId: z.ZodString;
|
|
1791
|
+
producer: z.ZodObject<{
|
|
1792
|
+
key: z.ZodString;
|
|
1793
|
+
environment: z.ZodString;
|
|
1794
|
+
}, z.core.$strict>;
|
|
1795
|
+
occurredAt: z.ZodString;
|
|
1796
|
+
requestedAt: z.ZodString;
|
|
1797
|
+
deliverBy: z.ZodString;
|
|
1798
|
+
subject: z.ZodObject<{
|
|
1799
|
+
type: z.ZodString;
|
|
1800
|
+
id: z.ZodString;
|
|
1801
|
+
revision: z.ZodNumber;
|
|
1802
|
+
}, z.core.$strict>;
|
|
1803
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1804
|
+
contractVersion: z.ZodLiteral<11>;
|
|
1805
|
+
message: z.ZodObject<{
|
|
1806
|
+
type: z.ZodLiteral<"structured_notification">;
|
|
1807
|
+
links: z.ZodArray<z.ZodObject<{
|
|
1808
|
+
key: z.ZodString;
|
|
1809
|
+
url: z.ZodString;
|
|
1810
|
+
}, z.core.$strict>>;
|
|
1811
|
+
bodies: z.ZodArray<z.ZodObject<{
|
|
1812
|
+
key: z.ZodString;
|
|
1813
|
+
value: z.ZodString;
|
|
1814
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1815
|
+
offset: z.ZodNumber;
|
|
1816
|
+
length: z.ZodNumber;
|
|
1817
|
+
}, z.core.$strict>>>;
|
|
1818
|
+
}, z.core.$strict>>;
|
|
1819
|
+
variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1820
|
+
key: z.ZodLiteral<"source">;
|
|
1821
|
+
title: z.ZodString;
|
|
1822
|
+
locale: z.ZodLiteral<"und">;
|
|
1490
1823
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1491
1824
|
key: z.ZodString;
|
|
1492
1825
|
label: z.ZodString;
|
|
@@ -1519,8 +1852,82 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1519
1852
|
}, z.core.$strict>], "type">>;
|
|
1520
1853
|
}, z.core.$strict>, z.ZodObject<{
|
|
1521
1854
|
key: z.ZodLiteral<"zh-CN">;
|
|
1855
|
+
title: z.ZodString;
|
|
1522
1856
|
locale: z.ZodLiteral<"zh-CN">;
|
|
1857
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1858
|
+
key: z.ZodString;
|
|
1859
|
+
label: z.ZodString;
|
|
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>>>;
|
|
1870
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1871
|
+
key: z.ZodString;
|
|
1872
|
+
type: z.ZodLiteral<"text">;
|
|
1873
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1874
|
+
value: z.ZodString;
|
|
1875
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1876
|
+
offset: z.ZodNumber;
|
|
1877
|
+
length: z.ZodNumber;
|
|
1878
|
+
}, z.core.$strict>>>;
|
|
1879
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1880
|
+
key: z.ZodString;
|
|
1881
|
+
type: z.ZodLiteral<"fields">;
|
|
1882
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1883
|
+
label: z.ZodString;
|
|
1884
|
+
value: z.ZodString;
|
|
1885
|
+
}, z.core.$strict>>;
|
|
1886
|
+
}, z.core.$strict>], "type">>;
|
|
1887
|
+
}, z.core.$strict>], "key">>;
|
|
1888
|
+
channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1889
|
+
qq: "qq";
|
|
1890
|
+
tg: "tg";
|
|
1891
|
+
wechat: "wechat";
|
|
1892
|
+
lark: "lark";
|
|
1893
|
+
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1894
|
+
key: z.ZodLiteral<"source">;
|
|
1895
|
+
title: z.ZodString;
|
|
1896
|
+
locale: z.ZodLiteral<"und">;
|
|
1897
|
+
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1898
|
+
key: z.ZodString;
|
|
1899
|
+
label: z.ZodString;
|
|
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>>>;
|
|
1910
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1911
|
+
key: z.ZodString;
|
|
1912
|
+
type: z.ZodLiteral<"text">;
|
|
1913
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1914
|
+
value: z.ZodString;
|
|
1915
|
+
quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1916
|
+
offset: z.ZodNumber;
|
|
1917
|
+
length: z.ZodNumber;
|
|
1918
|
+
}, z.core.$strict>>>;
|
|
1919
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1920
|
+
key: z.ZodString;
|
|
1921
|
+
type: z.ZodLiteral<"fields">;
|
|
1922
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1923
|
+
label: z.ZodString;
|
|
1924
|
+
value: z.ZodString;
|
|
1925
|
+
}, z.core.$strict>>;
|
|
1926
|
+
}, z.core.$strict>], "type">>;
|
|
1927
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1928
|
+
key: z.ZodLiteral<"zh-CN">;
|
|
1523
1929
|
title: z.ZodString;
|
|
1930
|
+
locale: z.ZodLiteral<"zh-CN">;
|
|
1524
1931
|
linkLabels: z.ZodArray<z.ZodObject<{
|
|
1525
1932
|
key: z.ZodString;
|
|
1526
1933
|
label: z.ZodString;
|
|
@@ -1552,6 +1959,40 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
1552
1959
|
}, z.core.$strict>>;
|
|
1553
1960
|
}, z.core.$strict>], "type">>;
|
|
1554
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>>>>;
|
|
1555
1996
|
}, z.core.$strict>;
|
|
1556
1997
|
audience: z.ZodOptional<z.ZodObject<{
|
|
1557
1998
|
topics: z.ZodArray<z.ZodString>;
|
|
@@ -1623,10 +2064,10 @@ interface GenericNotificationMessageLink {
|
|
|
1623
2064
|
url: string;
|
|
1624
2065
|
}
|
|
1625
2066
|
/** 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): ({
|
|
2067
|
+
declare function resolveGenericNotificationChannelVariants(input: NotificationDeliveryRequestV6 | NotificationDeliveryRequestV7 | NotificationDeliveryRequestV8 | NotificationDeliveryRequestV9 | NotificationDeliveryRequestV10 | NotificationDeliveryRequestV11, channel?: NotificationDeliveryChannelKey): ({
|
|
1627
2068
|
key: "source";
|
|
1628
|
-
locale: "und";
|
|
1629
2069
|
title: string;
|
|
2070
|
+
locale: "und";
|
|
1630
2071
|
linkLabels: {
|
|
1631
2072
|
key: string;
|
|
1632
2073
|
label: string;
|
|
@@ -1651,8 +2092,8 @@ declare function resolveGenericNotificationChannelVariants(input: NotificationDe
|
|
|
1651
2092
|
footer?: string | undefined;
|
|
1652
2093
|
} | {
|
|
1653
2094
|
key: "zh-CN";
|
|
1654
|
-
locale: "zh-CN";
|
|
1655
2095
|
title: string;
|
|
2096
|
+
locale: "zh-CN";
|
|
1656
2097
|
linkLabels: {
|
|
1657
2098
|
key: string;
|
|
1658
2099
|
label: string;
|
|
@@ -1677,8 +2118,8 @@ declare function resolveGenericNotificationChannelVariants(input: NotificationDe
|
|
|
1677
2118
|
footer?: string | undefined;
|
|
1678
2119
|
})[] | ({
|
|
1679
2120
|
key: "source";
|
|
1680
|
-
locale: "und";
|
|
1681
2121
|
title: string;
|
|
2122
|
+
locale: "und";
|
|
1682
2123
|
linkLabels: {
|
|
1683
2124
|
key: string;
|
|
1684
2125
|
label: string;
|
|
@@ -1711,8 +2152,8 @@ declare function resolveGenericNotificationChannelVariants(input: NotificationDe
|
|
|
1711
2152
|
}[] | undefined;
|
|
1712
2153
|
} | {
|
|
1713
2154
|
key: "zh-CN";
|
|
1714
|
-
locale: "zh-CN";
|
|
1715
2155
|
title: string;
|
|
2156
|
+
locale: "zh-CN";
|
|
1716
2157
|
linkLabels: {
|
|
1717
2158
|
key: string;
|
|
1718
2159
|
label: string;
|
|
@@ -1753,4 +2194,33 @@ declare function resolveGenericNotificationMessage(input: NotificationDeliveryRe
|
|
|
1753
2194
|
/** Returns the ordered variant identity used by renderer caches. */
|
|
1754
2195
|
declare function resolveGenericNotificationMessageVariantKeys(input: NotificationDeliveryRequest, requestedVariantKeys?: readonly NotificationMessageVariantKey[], channel?: NotificationDeliveryChannelKey): ("source" | "zh-CN")[];
|
|
1755
2196
|
//#endregion
|
|
1756
|
-
|
|
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 };
|