@closerepo/notification-contracts 1.12.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ declare const notificationDeliveryContractVersionV5: 5;
21
21
  declare const notificationDeliveryContractVersionV7: 7;
22
22
  declare const notificationDeliveryContractVersionV8: 8;
23
23
  declare const notificationDeliveryContractVersionV9: 9;
24
+ declare const notificationDeliveryContractVersionV10: 10;
24
25
  declare const notificationDeliveryMaximumDestinationsV1 = 20;
25
26
  declare const notificationDeliveryRequestMaximumUtf8BytesV1: number;
26
27
  declare const notificationDeliveryMaximumDeadlineMillisecondsV1: number;
@@ -32,6 +33,7 @@ declare const notificationDeliveryRequestMaximumUtf8BytesV4: number;
32
33
  declare const notificationDeliveryMaximumDeadlineMillisecondsV4: number;
33
34
  declare const notificationDeliveryRequestMaximumUtf8BytesV5: number;
34
35
  declare const notificationDeliveryRequestMaximumUtf8BytesV9: number;
36
+ declare const notificationDeliveryRequestMaximumUtf8BytesV10: number;
35
37
  declare const notificationDeliveryMaximumDeadlineMillisecondsV5: number;
36
38
  declare const localTaskDeliveryContractVersionV1: 1;
37
39
  declare const localTaskDeliveryRequestMaximumUtf8BytesV1: number;
@@ -424,7 +426,7 @@ declare const notificationDeliveryRequestV6Schema: z.ZodObject<{
424
426
  }, z.core.$strict>], "type">>;
425
427
  bodyRefs: z.ZodArray<z.ZodObject<{
426
428
  key: z.ZodString;
427
- label: z.ZodString;
429
+ label: z.ZodOptional<z.ZodString>;
428
430
  }, z.core.$strict>>;
429
431
  footer: z.ZodOptional<z.ZodString>;
430
432
  }, z.core.$strict>, z.ZodObject<{
@@ -450,7 +452,7 @@ declare const notificationDeliveryRequestV6Schema: z.ZodObject<{
450
452
  }, z.core.$strict>], "type">>;
451
453
  bodyRefs: z.ZodArray<z.ZodObject<{
452
454
  key: z.ZodString;
453
- label: z.ZodString;
455
+ label: z.ZodOptional<z.ZodString>;
454
456
  }, z.core.$strict>>;
455
457
  footer: z.ZodOptional<z.ZodString>;
456
458
  }, z.core.$strict>], "key">>;
@@ -508,7 +510,7 @@ declare const notificationDeliveryRequestV7Schema: z.ZodObject<{
508
510
  }, z.core.$strict>], "type">>;
509
511
  bodyRefs: z.ZodArray<z.ZodObject<{
510
512
  key: z.ZodString;
511
- label: z.ZodString;
513
+ label: z.ZodOptional<z.ZodString>;
512
514
  }, z.core.$strict>>;
513
515
  footer: z.ZodOptional<z.ZodString>;
514
516
  }, z.core.$strict>, z.ZodObject<{
@@ -534,7 +536,7 @@ declare const notificationDeliveryRequestV7Schema: z.ZodObject<{
534
536
  }, z.core.$strict>], "type">>;
535
537
  bodyRefs: z.ZodArray<z.ZodObject<{
536
538
  key: z.ZodString;
537
- label: z.ZodString;
539
+ label: z.ZodOptional<z.ZodString>;
538
540
  }, z.core.$strict>>;
539
541
  footer: z.ZodOptional<z.ZodString>;
540
542
  }, z.core.$strict>], "key">>;
@@ -591,7 +593,7 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
591
593
  }, z.core.$strict>], "type">>;
592
594
  bodyRefs: z.ZodArray<z.ZodObject<{
593
595
  key: z.ZodString;
594
- label: z.ZodString;
596
+ label: z.ZodOptional<z.ZodString>;
595
597
  }, z.core.$strict>>;
596
598
  footer: z.ZodOptional<z.ZodString>;
597
599
  }, z.core.$strict>, z.ZodObject<{
@@ -617,7 +619,7 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
617
619
  }, z.core.$strict>], "type">>;
618
620
  bodyRefs: z.ZodArray<z.ZodObject<{
619
621
  key: z.ZodString;
620
- label: z.ZodString;
622
+ label: z.ZodOptional<z.ZodString>;
621
623
  }, z.core.$strict>>;
622
624
  footer: z.ZodOptional<z.ZodString>;
623
625
  }, z.core.$strict>], "key">>;
@@ -649,7 +651,7 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
649
651
  }, z.core.$strict>], "type">>;
650
652
  bodyRefs: z.ZodArray<z.ZodObject<{
651
653
  key: z.ZodString;
652
- label: z.ZodString;
654
+ label: z.ZodOptional<z.ZodString>;
653
655
  }, z.core.$strict>>;
654
656
  footer: z.ZodOptional<z.ZodString>;
655
657
  }, z.core.$strict>, z.ZodObject<{
@@ -675,7 +677,7 @@ declare const notificationDeliveryRequestV8Schema: z.ZodObject<{
675
677
  }, z.core.$strict>], "type">>;
676
678
  bodyRefs: z.ZodArray<z.ZodObject<{
677
679
  key: z.ZodString;
678
- label: z.ZodString;
680
+ label: z.ZodOptional<z.ZodString>;
679
681
  }, z.core.$strict>>;
680
682
  footer: z.ZodOptional<z.ZodString>;
681
683
  }, z.core.$strict>], "key">>>>;
@@ -751,7 +753,7 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
751
753
  }, z.core.$strict>], "type">>;
752
754
  bodyRefs: z.ZodArray<z.ZodObject<{
753
755
  key: z.ZodString;
754
- label: z.ZodString;
756
+ label: z.ZodOptional<z.ZodString>;
755
757
  }, z.core.$strict>>;
756
758
  footer: z.ZodOptional<z.ZodString>;
757
759
  }, z.core.$strict>, z.ZodObject<{
@@ -777,7 +779,7 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
777
779
  }, z.core.$strict>], "type">>;
778
780
  bodyRefs: z.ZodArray<z.ZodObject<{
779
781
  key: z.ZodString;
780
- label: z.ZodString;
782
+ label: z.ZodOptional<z.ZodString>;
781
783
  }, z.core.$strict>>;
782
784
  footer: z.ZodOptional<z.ZodString>;
783
785
  }, z.core.$strict>], "key">>;
@@ -809,7 +811,7 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
809
811
  }, z.core.$strict>], "type">>;
810
812
  bodyRefs: z.ZodArray<z.ZodObject<{
811
813
  key: z.ZodString;
812
- label: z.ZodString;
814
+ label: z.ZodOptional<z.ZodString>;
813
815
  }, z.core.$strict>>;
814
816
  footer: z.ZodOptional<z.ZodString>;
815
817
  }, z.core.$strict>, z.ZodObject<{
@@ -835,7 +837,7 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
835
837
  }, z.core.$strict>], "type">>;
836
838
  bodyRefs: z.ZodArray<z.ZodObject<{
837
839
  key: z.ZodString;
838
- label: z.ZodString;
840
+ label: z.ZodOptional<z.ZodString>;
839
841
  }, z.core.$strict>>;
840
842
  footer: z.ZodOptional<z.ZodString>;
841
843
  }, z.core.$strict>], "key">>>>;
@@ -859,6 +861,201 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
859
861
  type NotificationDeliveryRequestV9 = z.infer<typeof notificationDeliveryRequestV9Schema>;
860
862
  type NotificationBrowserMessage = z.infer<typeof notificationBrowserMessageSchema>;
861
863
  type NotificationMessageVariantsV6 = NotificationDeliveryRequestV6['message']['variants'];
864
+ /** A quoted interval in its containing string, measured in UTF-16 code units. */
865
+ declare const notificationQuoteRangeSchema: z.ZodObject<{
866
+ offset: z.ZodNumber;
867
+ length: z.ZodNumber;
868
+ }, z.core.$strict>;
869
+ type NotificationQuoteRange = z.infer<typeof notificationQuoteRangeSchema>;
870
+ /** V10 preserves V9 delivery semantics and adds producer-owned quoted text intervals. */
871
+ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
872
+ contractVersion: z.ZodLiteral<10>;
873
+ message: z.ZodObject<{
874
+ type: z.ZodLiteral<"structured_notification">;
875
+ links: z.ZodArray<z.ZodObject<{
876
+ key: z.ZodString;
877
+ url: z.ZodString;
878
+ }, z.core.$strict>>;
879
+ bodies: z.ZodArray<z.ZodObject<{
880
+ key: z.ZodString;
881
+ value: z.ZodString;
882
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
883
+ offset: z.ZodNumber;
884
+ length: z.ZodNumber;
885
+ }, z.core.$strict>>>;
886
+ }, z.core.$strict>>;
887
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
888
+ key: z.ZodLiteral<"source">;
889
+ title: z.ZodString;
890
+ locale: z.ZodLiteral<"und">;
891
+ linkLabels: z.ZodArray<z.ZodObject<{
892
+ key: z.ZodString;
893
+ label: z.ZodString;
894
+ }, z.core.$strict>>;
895
+ bodyRefs: z.ZodArray<z.ZodObject<{
896
+ key: z.ZodString;
897
+ label: z.ZodOptional<z.ZodString>;
898
+ }, z.core.$strict>>;
899
+ footer: z.ZodOptional<z.ZodString>;
900
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
901
+ offset: z.ZodNumber;
902
+ length: z.ZodNumber;
903
+ }, z.core.$strict>>>;
904
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
905
+ key: z.ZodString;
906
+ type: z.ZodLiteral<"text">;
907
+ label: z.ZodOptional<z.ZodString>;
908
+ value: z.ZodString;
909
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
910
+ offset: z.ZodNumber;
911
+ length: z.ZodNumber;
912
+ }, z.core.$strict>>>;
913
+ }, z.core.$strict>, z.ZodObject<{
914
+ key: z.ZodString;
915
+ type: z.ZodLiteral<"fields">;
916
+ items: z.ZodArray<z.ZodObject<{
917
+ label: z.ZodString;
918
+ value: z.ZodString;
919
+ }, z.core.$strict>>;
920
+ }, z.core.$strict>], "type">>;
921
+ }, z.core.$strict>, z.ZodObject<{
922
+ key: z.ZodLiteral<"zh-CN">;
923
+ title: z.ZodString;
924
+ locale: z.ZodLiteral<"zh-CN">;
925
+ linkLabels: z.ZodArray<z.ZodObject<{
926
+ key: z.ZodString;
927
+ label: z.ZodString;
928
+ }, z.core.$strict>>;
929
+ bodyRefs: z.ZodArray<z.ZodObject<{
930
+ key: z.ZodString;
931
+ label: z.ZodOptional<z.ZodString>;
932
+ }, z.core.$strict>>;
933
+ footer: z.ZodOptional<z.ZodString>;
934
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
935
+ offset: z.ZodNumber;
936
+ length: z.ZodNumber;
937
+ }, z.core.$strict>>>;
938
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
939
+ key: z.ZodString;
940
+ type: z.ZodLiteral<"text">;
941
+ label: z.ZodOptional<z.ZodString>;
942
+ value: z.ZodString;
943
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
944
+ offset: z.ZodNumber;
945
+ length: z.ZodNumber;
946
+ }, z.core.$strict>>>;
947
+ }, z.core.$strict>, z.ZodObject<{
948
+ key: z.ZodString;
949
+ type: z.ZodLiteral<"fields">;
950
+ items: z.ZodArray<z.ZodObject<{
951
+ label: z.ZodString;
952
+ value: z.ZodString;
953
+ }, z.core.$strict>>;
954
+ }, z.core.$strict>], "type">>;
955
+ }, z.core.$strict>], "key">>;
956
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
957
+ qq: "qq";
958
+ tg: "tg";
959
+ wechat: "wechat";
960
+ lark: "lark";
961
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
962
+ key: z.ZodLiteral<"source">;
963
+ title: z.ZodString;
964
+ locale: z.ZodLiteral<"und">;
965
+ linkLabels: z.ZodArray<z.ZodObject<{
966
+ key: z.ZodString;
967
+ label: z.ZodString;
968
+ }, z.core.$strict>>;
969
+ bodyRefs: z.ZodArray<z.ZodObject<{
970
+ key: z.ZodString;
971
+ label: z.ZodOptional<z.ZodString>;
972
+ }, z.core.$strict>>;
973
+ footer: z.ZodOptional<z.ZodString>;
974
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
975
+ offset: z.ZodNumber;
976
+ length: z.ZodNumber;
977
+ }, z.core.$strict>>>;
978
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
979
+ key: z.ZodString;
980
+ type: z.ZodLiteral<"text">;
981
+ label: z.ZodOptional<z.ZodString>;
982
+ value: z.ZodString;
983
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
984
+ offset: z.ZodNumber;
985
+ length: z.ZodNumber;
986
+ }, z.core.$strict>>>;
987
+ }, z.core.$strict>, z.ZodObject<{
988
+ key: z.ZodString;
989
+ type: z.ZodLiteral<"fields">;
990
+ items: z.ZodArray<z.ZodObject<{
991
+ label: z.ZodString;
992
+ value: z.ZodString;
993
+ }, z.core.$strict>>;
994
+ }, z.core.$strict>], "type">>;
995
+ }, z.core.$strict>, z.ZodObject<{
996
+ key: z.ZodLiteral<"zh-CN">;
997
+ title: z.ZodString;
998
+ locale: z.ZodLiteral<"zh-CN">;
999
+ linkLabels: z.ZodArray<z.ZodObject<{
1000
+ key: z.ZodString;
1001
+ label: z.ZodString;
1002
+ }, z.core.$strict>>;
1003
+ bodyRefs: z.ZodArray<z.ZodObject<{
1004
+ key: z.ZodString;
1005
+ label: z.ZodOptional<z.ZodString>;
1006
+ }, z.core.$strict>>;
1007
+ footer: z.ZodOptional<z.ZodString>;
1008
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1009
+ offset: z.ZodNumber;
1010
+ length: z.ZodNumber;
1011
+ }, z.core.$strict>>>;
1012
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1013
+ key: z.ZodString;
1014
+ type: z.ZodLiteral<"text">;
1015
+ label: z.ZodOptional<z.ZodString>;
1016
+ value: z.ZodString;
1017
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1018
+ offset: z.ZodNumber;
1019
+ length: z.ZodNumber;
1020
+ }, z.core.$strict>>>;
1021
+ }, z.core.$strict>, z.ZodObject<{
1022
+ key: z.ZodString;
1023
+ type: z.ZodLiteral<"fields">;
1024
+ items: z.ZodArray<z.ZodObject<{
1025
+ label: z.ZodString;
1026
+ value: z.ZodString;
1027
+ }, z.core.$strict>>;
1028
+ }, z.core.$strict>], "type">>;
1029
+ }, z.core.$strict>], "key">>>>;
1030
+ }, z.core.$strict>;
1031
+ audience: z.ZodOptional<z.ZodObject<{
1032
+ topics: z.ZodArray<z.ZodString>;
1033
+ }, z.core.$strict>>;
1034
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1035
+ locale: z.ZodString;
1036
+ contentLocale: z.ZodString;
1037
+ title: z.ZodString;
1038
+ body: z.ZodString;
1039
+ url: z.ZodString;
1040
+ }, z.core.$strict>>>;
1041
+ routeKeys: z.ZodArray<z.ZodString>;
1042
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1043
+ eventId: z.ZodString;
1044
+ producer: z.ZodObject<{
1045
+ key: z.ZodString;
1046
+ environment: z.ZodString;
1047
+ }, z.core.$strict>;
1048
+ occurredAt: z.ZodString;
1049
+ requestedAt: z.ZodString;
1050
+ deliverBy: z.ZodString;
1051
+ subject: z.ZodObject<{
1052
+ type: z.ZodString;
1053
+ id: z.ZodString;
1054
+ revision: z.ZodNumber;
1055
+ }, z.core.$strict>;
1056
+ }, z.core.$strict>;
1057
+ type NotificationDeliveryRequestV10 = z.infer<typeof notificationDeliveryRequestV10Schema>;
1058
+ type NotificationMessageVariantsV10 = NotificationDeliveryRequestV10['message']['variants'];
862
1059
  /** Reads routing facts from current envelopes and historical single-route records. */
863
1060
  declare function notificationRouteKeys(value: {
864
1061
  routeKey: string;
@@ -1239,7 +1436,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1239
1436
  }, z.core.$strict>], "type">>;
1240
1437
  bodyRefs: z.ZodArray<z.ZodObject<{
1241
1438
  key: z.ZodString;
1242
- label: z.ZodString;
1439
+ label: z.ZodOptional<z.ZodString>;
1243
1440
  }, z.core.$strict>>;
1244
1441
  footer: z.ZodOptional<z.ZodString>;
1245
1442
  }, z.core.$strict>, z.ZodObject<{
@@ -1265,7 +1462,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1265
1462
  }, z.core.$strict>], "type">>;
1266
1463
  bodyRefs: z.ZodArray<z.ZodObject<{
1267
1464
  key: z.ZodString;
1268
- label: z.ZodString;
1465
+ label: z.ZodOptional<z.ZodString>;
1269
1466
  }, z.core.$strict>>;
1270
1467
  footer: z.ZodOptional<z.ZodString>;
1271
1468
  }, z.core.$strict>], "key">>;
@@ -1321,7 +1518,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1321
1518
  }, z.core.$strict>], "type">>;
1322
1519
  bodyRefs: z.ZodArray<z.ZodObject<{
1323
1520
  key: z.ZodString;
1324
- label: z.ZodString;
1521
+ label: z.ZodOptional<z.ZodString>;
1325
1522
  }, z.core.$strict>>;
1326
1523
  footer: z.ZodOptional<z.ZodString>;
1327
1524
  }, z.core.$strict>, z.ZodObject<{
@@ -1347,7 +1544,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1347
1544
  }, z.core.$strict>], "type">>;
1348
1545
  bodyRefs: z.ZodArray<z.ZodObject<{
1349
1546
  key: z.ZodString;
1350
- label: z.ZodString;
1547
+ label: z.ZodOptional<z.ZodString>;
1351
1548
  }, z.core.$strict>>;
1352
1549
  footer: z.ZodOptional<z.ZodString>;
1353
1550
  }, z.core.$strict>], "key">>;
@@ -1401,7 +1598,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1401
1598
  }, z.core.$strict>], "type">>;
1402
1599
  bodyRefs: z.ZodArray<z.ZodObject<{
1403
1600
  key: z.ZodString;
1404
- label: z.ZodString;
1601
+ label: z.ZodOptional<z.ZodString>;
1405
1602
  }, z.core.$strict>>;
1406
1603
  footer: z.ZodOptional<z.ZodString>;
1407
1604
  }, z.core.$strict>, z.ZodObject<{
@@ -1427,7 +1624,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1427
1624
  }, z.core.$strict>], "type">>;
1428
1625
  bodyRefs: z.ZodArray<z.ZodObject<{
1429
1626
  key: z.ZodString;
1430
- label: z.ZodString;
1627
+ label: z.ZodOptional<z.ZodString>;
1431
1628
  }, z.core.$strict>>;
1432
1629
  footer: z.ZodOptional<z.ZodString>;
1433
1630
  }, z.core.$strict>], "key">>;
@@ -1459,7 +1656,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1459
1656
  }, z.core.$strict>], "type">>;
1460
1657
  bodyRefs: z.ZodArray<z.ZodObject<{
1461
1658
  key: z.ZodString;
1462
- label: z.ZodString;
1659
+ label: z.ZodOptional<z.ZodString>;
1463
1660
  }, z.core.$strict>>;
1464
1661
  footer: z.ZodOptional<z.ZodString>;
1465
1662
  }, z.core.$strict>, z.ZodObject<{
@@ -1485,7 +1682,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1485
1682
  }, z.core.$strict>], "type">>;
1486
1683
  bodyRefs: z.ZodArray<z.ZodObject<{
1487
1684
  key: z.ZodString;
1488
- label: z.ZodString;
1685
+ label: z.ZodOptional<z.ZodString>;
1489
1686
  }, z.core.$strict>>;
1490
1687
  footer: z.ZodOptional<z.ZodString>;
1491
1688
  }, z.core.$strict>], "key">>>>;
@@ -1550,7 +1747,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1550
1747
  }, z.core.$strict>], "type">>;
1551
1748
  bodyRefs: z.ZodArray<z.ZodObject<{
1552
1749
  key: z.ZodString;
1553
- label: z.ZodString;
1750
+ label: z.ZodOptional<z.ZodString>;
1554
1751
  }, z.core.$strict>>;
1555
1752
  footer: z.ZodOptional<z.ZodString>;
1556
1753
  }, z.core.$strict>, z.ZodObject<{
@@ -1576,7 +1773,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1576
1773
  }, z.core.$strict>], "type">>;
1577
1774
  bodyRefs: z.ZodArray<z.ZodObject<{
1578
1775
  key: z.ZodString;
1579
- label: z.ZodString;
1776
+ label: z.ZodOptional<z.ZodString>;
1580
1777
  }, z.core.$strict>>;
1581
1778
  footer: z.ZodOptional<z.ZodString>;
1582
1779
  }, z.core.$strict>], "key">>;
@@ -1607,10 +1804,103 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1607
1804
  }, z.core.$strict>>;
1608
1805
  }, z.core.$strict>], "type">>;
1609
1806
  bodyRefs: z.ZodArray<z.ZodObject<{
1807
+ key: z.ZodString;
1808
+ label: z.ZodOptional<z.ZodString>;
1809
+ }, z.core.$strict>>;
1810
+ footer: z.ZodOptional<z.ZodString>;
1811
+ }, z.core.$strict>, z.ZodObject<{
1812
+ key: z.ZodLiteral<"zh-CN">;
1813
+ title: z.ZodString;
1814
+ locale: z.ZodLiteral<"zh-CN">;
1815
+ linkLabels: z.ZodArray<z.ZodObject<{
1816
+ key: z.ZodString;
1817
+ label: z.ZodString;
1818
+ }, z.core.$strict>>;
1819
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1820
+ key: z.ZodString;
1821
+ type: z.ZodLiteral<"text">;
1822
+ label: z.ZodOptional<z.ZodString>;
1823
+ value: z.ZodString;
1824
+ }, z.core.$strict>, z.ZodObject<{
1825
+ key: z.ZodString;
1826
+ type: z.ZodLiteral<"fields">;
1827
+ items: z.ZodArray<z.ZodObject<{
1828
+ label: z.ZodString;
1829
+ value: z.ZodString;
1830
+ }, z.core.$strict>>;
1831
+ }, z.core.$strict>], "type">>;
1832
+ bodyRefs: z.ZodArray<z.ZodObject<{
1833
+ key: z.ZodString;
1834
+ label: z.ZodOptional<z.ZodString>;
1835
+ }, z.core.$strict>>;
1836
+ footer: z.ZodOptional<z.ZodString>;
1837
+ }, z.core.$strict>], "key">>>>;
1838
+ }, z.core.$strict>;
1839
+ routeKeys: z.ZodArray<z.ZodString>;
1840
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1841
+ eventId: z.ZodString;
1842
+ producer: z.ZodObject<{
1843
+ key: z.ZodString;
1844
+ environment: z.ZodString;
1845
+ }, z.core.$strict>;
1846
+ occurredAt: z.ZodString;
1847
+ requestedAt: z.ZodString;
1848
+ deliverBy: z.ZodString;
1849
+ subject: z.ZodObject<{
1850
+ type: z.ZodString;
1851
+ id: z.ZodString;
1852
+ revision: z.ZodNumber;
1853
+ }, z.core.$strict>;
1854
+ }, z.core.$strict>, z.ZodObject<{
1855
+ contractVersion: z.ZodLiteral<10>;
1856
+ message: z.ZodObject<{
1857
+ type: z.ZodLiteral<"structured_notification">;
1858
+ links: z.ZodArray<z.ZodObject<{
1859
+ key: z.ZodString;
1860
+ url: z.ZodString;
1861
+ }, z.core.$strict>>;
1862
+ bodies: z.ZodArray<z.ZodObject<{
1863
+ key: z.ZodString;
1864
+ value: z.ZodString;
1865
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1866
+ offset: z.ZodNumber;
1867
+ length: z.ZodNumber;
1868
+ }, z.core.$strict>>>;
1869
+ }, z.core.$strict>>;
1870
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1871
+ key: z.ZodLiteral<"source">;
1872
+ title: z.ZodString;
1873
+ locale: z.ZodLiteral<"und">;
1874
+ linkLabels: z.ZodArray<z.ZodObject<{
1610
1875
  key: z.ZodString;
1611
1876
  label: z.ZodString;
1612
1877
  }, z.core.$strict>>;
1878
+ bodyRefs: z.ZodArray<z.ZodObject<{
1879
+ key: z.ZodString;
1880
+ label: z.ZodOptional<z.ZodString>;
1881
+ }, z.core.$strict>>;
1613
1882
  footer: z.ZodOptional<z.ZodString>;
1883
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1884
+ offset: z.ZodNumber;
1885
+ length: z.ZodNumber;
1886
+ }, z.core.$strict>>>;
1887
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1888
+ key: z.ZodString;
1889
+ type: z.ZodLiteral<"text">;
1890
+ label: z.ZodOptional<z.ZodString>;
1891
+ value: z.ZodString;
1892
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1893
+ offset: z.ZodNumber;
1894
+ length: z.ZodNumber;
1895
+ }, z.core.$strict>>>;
1896
+ }, z.core.$strict>, z.ZodObject<{
1897
+ key: z.ZodString;
1898
+ type: z.ZodLiteral<"fields">;
1899
+ items: z.ZodArray<z.ZodObject<{
1900
+ label: z.ZodString;
1901
+ value: z.ZodString;
1902
+ }, z.core.$strict>>;
1903
+ }, z.core.$strict>], "type">>;
1614
1904
  }, z.core.$strict>, z.ZodObject<{
1615
1905
  key: z.ZodLiteral<"zh-CN">;
1616
1906
  title: z.ZodString;
@@ -1619,11 +1909,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1619
1909
  key: z.ZodString;
1620
1910
  label: z.ZodString;
1621
1911
  }, z.core.$strict>>;
1912
+ bodyRefs: z.ZodArray<z.ZodObject<{
1913
+ key: z.ZodString;
1914
+ label: z.ZodOptional<z.ZodString>;
1915
+ }, z.core.$strict>>;
1916
+ footer: z.ZodOptional<z.ZodString>;
1917
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1918
+ offset: z.ZodNumber;
1919
+ length: z.ZodNumber;
1920
+ }, z.core.$strict>>>;
1622
1921
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1623
1922
  key: z.ZodString;
1624
1923
  type: z.ZodLiteral<"text">;
1625
1924
  label: z.ZodOptional<z.ZodString>;
1626
1925
  value: z.ZodString;
1926
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1927
+ offset: z.ZodNumber;
1928
+ length: z.ZodNumber;
1929
+ }, z.core.$strict>>>;
1627
1930
  }, z.core.$strict>, z.ZodObject<{
1628
1931
  key: z.ZodString;
1629
1932
  type: z.ZodLiteral<"fields">;
@@ -1632,13 +1935,92 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1632
1935
  value: z.ZodString;
1633
1936
  }, z.core.$strict>>;
1634
1937
  }, z.core.$strict>], "type">>;
1938
+ }, z.core.$strict>], "key">>;
1939
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1940
+ qq: "qq";
1941
+ tg: "tg";
1942
+ wechat: "wechat";
1943
+ lark: "lark";
1944
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1945
+ key: z.ZodLiteral<"source">;
1946
+ title: z.ZodString;
1947
+ locale: z.ZodLiteral<"und">;
1948
+ linkLabels: z.ZodArray<z.ZodObject<{
1949
+ key: z.ZodString;
1950
+ label: z.ZodString;
1951
+ }, z.core.$strict>>;
1635
1952
  bodyRefs: z.ZodArray<z.ZodObject<{
1953
+ key: z.ZodString;
1954
+ label: z.ZodOptional<z.ZodString>;
1955
+ }, z.core.$strict>>;
1956
+ footer: z.ZodOptional<z.ZodString>;
1957
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1958
+ offset: z.ZodNumber;
1959
+ length: z.ZodNumber;
1960
+ }, z.core.$strict>>>;
1961
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1962
+ key: z.ZodString;
1963
+ type: z.ZodLiteral<"text">;
1964
+ label: z.ZodOptional<z.ZodString>;
1965
+ value: z.ZodString;
1966
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1967
+ offset: z.ZodNumber;
1968
+ length: z.ZodNumber;
1969
+ }, z.core.$strict>>>;
1970
+ }, z.core.$strict>, z.ZodObject<{
1971
+ key: z.ZodString;
1972
+ type: z.ZodLiteral<"fields">;
1973
+ items: z.ZodArray<z.ZodObject<{
1974
+ label: z.ZodString;
1975
+ value: z.ZodString;
1976
+ }, z.core.$strict>>;
1977
+ }, z.core.$strict>], "type">>;
1978
+ }, z.core.$strict>, z.ZodObject<{
1979
+ key: z.ZodLiteral<"zh-CN">;
1980
+ title: z.ZodString;
1981
+ locale: z.ZodLiteral<"zh-CN">;
1982
+ linkLabels: z.ZodArray<z.ZodObject<{
1636
1983
  key: z.ZodString;
1637
1984
  label: z.ZodString;
1638
1985
  }, z.core.$strict>>;
1986
+ bodyRefs: z.ZodArray<z.ZodObject<{
1987
+ key: z.ZodString;
1988
+ label: z.ZodOptional<z.ZodString>;
1989
+ }, z.core.$strict>>;
1639
1990
  footer: z.ZodOptional<z.ZodString>;
1991
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1992
+ offset: z.ZodNumber;
1993
+ length: z.ZodNumber;
1994
+ }, z.core.$strict>>>;
1995
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1996
+ key: z.ZodString;
1997
+ type: z.ZodLiteral<"text">;
1998
+ label: z.ZodOptional<z.ZodString>;
1999
+ value: z.ZodString;
2000
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2001
+ offset: z.ZodNumber;
2002
+ length: z.ZodNumber;
2003
+ }, z.core.$strict>>>;
2004
+ }, z.core.$strict>, z.ZodObject<{
2005
+ key: z.ZodString;
2006
+ type: z.ZodLiteral<"fields">;
2007
+ items: z.ZodArray<z.ZodObject<{
2008
+ label: z.ZodString;
2009
+ value: z.ZodString;
2010
+ }, z.core.$strict>>;
2011
+ }, z.core.$strict>], "type">>;
1640
2012
  }, z.core.$strict>], "key">>>>;
1641
2013
  }, z.core.$strict>;
2014
+ audience: z.ZodOptional<z.ZodObject<{
2015
+ topics: z.ZodArray<z.ZodString>;
2016
+ }, z.core.$strict>>;
2017
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2018
+ locale: z.ZodString;
2019
+ contentLocale: z.ZodString;
2020
+ title: z.ZodString;
2021
+ body: z.ZodString;
2022
+ url: z.ZodString;
2023
+ }, z.core.$strict>>>;
1642
2024
  routeKeys: z.ZodArray<z.ZodString>;
1643
2025
  eventType: z.ZodLiteral<"notification.delivery.requested">;
1644
2026
  eventId: z.ZodString;
@@ -2913,4 +3295,4 @@ interface NotificationMessageDeliveryServiceV4 {
2913
3295
  /** Multi-route message delivery; historical requests and receipts remain supported. */
2914
3296
  interface NotificationMessageDeliveryServiceV5 extends NotificationMessageDeliveryServiceV4 {}
2915
3297
  //#endregion
2916
- export { CreatorDraftTaskV1, LocalTaskDeliverResultV1, LocalTaskDeliveryReceiptV1, LocalTaskDeliveryRequest, LocalTaskDeliveryRequestV1, LocalTaskDeliveryServiceV1, LocalTaskGetReceiptResultV1, NotificationBrowserMessage, type NotificationBrowserPayload, NotificationDeliverResultV1, NotificationDeliverResultV2, NotificationDeliveryChannelKey, NotificationDeliveryReceiptV1, NotificationDeliveryReceiptV2, NotificationDeliveryReceiptV3, NotificationDeliveryRejectionV1, NotificationDeliveryRequest, NotificationDeliveryRequestV1, NotificationDeliveryRequestV2, NotificationDeliveryRequestV3, NotificationDeliveryRequestV4, NotificationDeliveryRequestV5, NotificationDeliveryRequestV6, NotificationDeliveryRequestV7, NotificationDeliveryRequestV8, NotificationDeliveryRequestV9, NotificationDeliveryServiceV1, NotificationDeliveryServiceV2, NotificationDeliveryServiceV3, NotificationGetReceiptResultV1, NotificationGetReceiptResultV2, NotificationMessageBody, NotificationMessageDeliveryServiceV4, NotificationMessageDeliveryServiceV5, NotificationMessageReceipt, NotificationMessageVariantKey, NotificationMessageVariantsV6, NotificationSharedMessageBody, NotificationStructuredMessageSection, NotificationStructuredMessageVariant, localTaskDeliveryContractVersionV1, localTaskDeliveryMaximumDeadlineMillisecondsV1, localTaskDeliveryRequestMaximumUtf8BytesV1, localTaskDeliveryRequestSchema, localTaskDeliveryRequestV1Schema, notificationBrowserMessageSchema, notificationBrowserPayloadSchema, notificationDeliverResultV1Schema, notificationDeliverResultV2Schema, notificationDeliveryChannelKeys, notificationDeliveryContractVersionV1, notificationDeliveryContractVersionV2, notificationDeliveryContractVersionV3, notificationDeliveryContractVersionV4, notificationDeliveryContractVersionV5, notificationDeliveryContractVersionV7, notificationDeliveryContractVersionV8, notificationDeliveryContractVersionV9, notificationDeliveryMaximumDeadlineMillisecondsV1, notificationDeliveryMaximumDeadlineMillisecondsV2, notificationDeliveryMaximumDeadlineMillisecondsV3, notificationDeliveryMaximumDeadlineMillisecondsV4, notificationDeliveryMaximumDeadlineMillisecondsV5, notificationDeliveryMaximumDestinationsV1, notificationDeliveryReasonsV1, notificationDeliveryReasonsV2, notificationDeliveryReceiptV1Schema, notificationDeliveryReceiptV2Schema, notificationDeliveryReceiptV3Schema, notificationDeliveryRejectionCodesV1, notificationDeliveryRejectionV1Schema, notificationDeliveryRequestMaximumUtf8BytesV1, notificationDeliveryRequestMaximumUtf8BytesV2, notificationDeliveryRequestMaximumUtf8BytesV3, notificationDeliveryRequestMaximumUtf8BytesV4, notificationDeliveryRequestMaximumUtf8BytesV5, notificationDeliveryRequestMaximumUtf8BytesV9, notificationDeliveryRequestSchema, notificationDeliveryRequestV1Schema, notificationDeliveryRequestV2Schema, notificationDeliveryRequestV3Schema, notificationDeliveryRequestV4Schema, notificationDeliveryRequestV5Schema, notificationDeliveryRequestV6Schema, notificationDeliveryRequestV7Schema, notificationDeliveryRequestV8Schema, notificationDeliveryRequestV9Schema, notificationDeliveryStatesV1, notificationDeliveryStatesV2, notificationDestinationFailureCodesV1, notificationDestinationStatesV1, notificationDestinationStatesV2, notificationGetReceiptResultV1Schema, notificationGetReceiptResultV2Schema, notificationMessageReceiptSchema, notificationMessageVariantKeys, notificationRouteKeys, notificationValidationIssueCodesV1, safeDeliveryCauseSchema };
3298
+ export { CreatorDraftTaskV1, LocalTaskDeliverResultV1, LocalTaskDeliveryReceiptV1, LocalTaskDeliveryRequest, LocalTaskDeliveryRequestV1, LocalTaskDeliveryServiceV1, LocalTaskGetReceiptResultV1, NotificationBrowserMessage, type NotificationBrowserPayload, NotificationDeliverResultV1, NotificationDeliverResultV2, NotificationDeliveryChannelKey, NotificationDeliveryReceiptV1, NotificationDeliveryReceiptV2, NotificationDeliveryReceiptV3, NotificationDeliveryRejectionV1, NotificationDeliveryRequest, NotificationDeliveryRequestV1, NotificationDeliveryRequestV10, NotificationDeliveryRequestV2, NotificationDeliveryRequestV3, NotificationDeliveryRequestV4, NotificationDeliveryRequestV5, NotificationDeliveryRequestV6, NotificationDeliveryRequestV7, NotificationDeliveryRequestV8, NotificationDeliveryRequestV9, NotificationDeliveryServiceV1, NotificationDeliveryServiceV2, NotificationDeliveryServiceV3, NotificationGetReceiptResultV1, NotificationGetReceiptResultV2, NotificationMessageBody, NotificationMessageDeliveryServiceV4, NotificationMessageDeliveryServiceV5, NotificationMessageReceipt, NotificationMessageVariantKey, NotificationMessageVariantsV10, NotificationMessageVariantsV6, NotificationQuoteRange, NotificationSharedMessageBody, NotificationStructuredMessageSection, NotificationStructuredMessageVariant, localTaskDeliveryContractVersionV1, localTaskDeliveryMaximumDeadlineMillisecondsV1, localTaskDeliveryRequestMaximumUtf8BytesV1, localTaskDeliveryRequestSchema, localTaskDeliveryRequestV1Schema, notificationBrowserMessageSchema, notificationBrowserPayloadSchema, notificationDeliverResultV1Schema, notificationDeliverResultV2Schema, notificationDeliveryChannelKeys, notificationDeliveryContractVersionV1, notificationDeliveryContractVersionV10, notificationDeliveryContractVersionV2, notificationDeliveryContractVersionV3, notificationDeliveryContractVersionV4, notificationDeliveryContractVersionV5, notificationDeliveryContractVersionV7, notificationDeliveryContractVersionV8, notificationDeliveryContractVersionV9, notificationDeliveryMaximumDeadlineMillisecondsV1, notificationDeliveryMaximumDeadlineMillisecondsV2, notificationDeliveryMaximumDeadlineMillisecondsV3, notificationDeliveryMaximumDeadlineMillisecondsV4, notificationDeliveryMaximumDeadlineMillisecondsV5, notificationDeliveryMaximumDestinationsV1, notificationDeliveryReasonsV1, notificationDeliveryReasonsV2, notificationDeliveryReceiptV1Schema, notificationDeliveryReceiptV2Schema, notificationDeliveryReceiptV3Schema, notificationDeliveryRejectionCodesV1, notificationDeliveryRejectionV1Schema, notificationDeliveryRequestMaximumUtf8BytesV1, notificationDeliveryRequestMaximumUtf8BytesV10, notificationDeliveryRequestMaximumUtf8BytesV2, notificationDeliveryRequestMaximumUtf8BytesV3, notificationDeliveryRequestMaximumUtf8BytesV4, notificationDeliveryRequestMaximumUtf8BytesV5, notificationDeliveryRequestMaximumUtf8BytesV9, notificationDeliveryRequestSchema, notificationDeliveryRequestV10Schema, notificationDeliveryRequestV1Schema, notificationDeliveryRequestV2Schema, notificationDeliveryRequestV3Schema, notificationDeliveryRequestV4Schema, notificationDeliveryRequestV5Schema, notificationDeliveryRequestV6Schema, notificationDeliveryRequestV7Schema, notificationDeliveryRequestV8Schema, notificationDeliveryRequestV9Schema, notificationDeliveryStatesV1, notificationDeliveryStatesV2, notificationDestinationFailureCodesV1, notificationDestinationStatesV1, notificationDestinationStatesV2, notificationGetReceiptResultV1Schema, notificationGetReceiptResultV2Schema, notificationMessageReceiptSchema, notificationMessageVariantKeys, notificationQuoteRangeSchema, notificationRouteKeys, notificationValidationIssueCodesV1, safeDeliveryCauseSchema };