@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 CHANGED
@@ -21,6 +21,8 @@ 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;
25
+ declare const notificationDeliveryContractVersionV11: 11;
24
26
  declare const notificationDeliveryMaximumDestinationsV1 = 20;
25
27
  declare const notificationDeliveryRequestMaximumUtf8BytesV1: number;
26
28
  declare const notificationDeliveryMaximumDeadlineMillisecondsV1: number;
@@ -32,6 +34,8 @@ declare const notificationDeliveryRequestMaximumUtf8BytesV4: number;
32
34
  declare const notificationDeliveryMaximumDeadlineMillisecondsV4: number;
33
35
  declare const notificationDeliveryRequestMaximumUtf8BytesV5: number;
34
36
  declare const notificationDeliveryRequestMaximumUtf8BytesV9: number;
37
+ declare const notificationDeliveryRequestMaximumUtf8BytesV10: number;
38
+ declare const notificationDeliveryRequestMaximumUtf8BytesV11: number;
35
39
  declare const notificationDeliveryMaximumDeadlineMillisecondsV5: number;
36
40
  declare const localTaskDeliveryContractVersionV1: 1;
37
41
  declare const localTaskDeliveryRequestMaximumUtf8BytesV1: number;
@@ -859,6 +863,437 @@ declare const notificationDeliveryRequestV9Schema: z.ZodObject<{
859
863
  type NotificationDeliveryRequestV9 = z.infer<typeof notificationDeliveryRequestV9Schema>;
860
864
  type NotificationBrowserMessage = z.infer<typeof notificationBrowserMessageSchema>;
861
865
  type NotificationMessageVariantsV6 = NotificationDeliveryRequestV6['message']['variants'];
866
+ /** A quoted interval in its containing string, measured in UTF-16 code units. */
867
+ declare const notificationQuoteRangeSchema: z.ZodObject<{
868
+ offset: z.ZodNumber;
869
+ length: z.ZodNumber;
870
+ }, z.core.$strict>;
871
+ type NotificationQuoteRange = z.infer<typeof notificationQuoteRangeSchema>;
872
+ /** V10 preserves V9 delivery semantics and adds producer-owned quoted text intervals. */
873
+ declare const notificationDeliveryRequestV10Schema: z.ZodObject<{
874
+ contractVersion: z.ZodLiteral<10>;
875
+ message: z.ZodObject<{
876
+ type: z.ZodLiteral<"structured_notification">;
877
+ links: z.ZodArray<z.ZodObject<{
878
+ key: z.ZodString;
879
+ url: z.ZodString;
880
+ }, z.core.$strict>>;
881
+ bodies: z.ZodArray<z.ZodObject<{
882
+ key: z.ZodString;
883
+ value: z.ZodString;
884
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
885
+ offset: z.ZodNumber;
886
+ length: z.ZodNumber;
887
+ }, z.core.$strict>>>;
888
+ }, z.core.$strict>>;
889
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
890
+ key: z.ZodLiteral<"source">;
891
+ title: z.ZodString;
892
+ locale: z.ZodLiteral<"und">;
893
+ linkLabels: z.ZodArray<z.ZodObject<{
894
+ key: z.ZodString;
895
+ label: z.ZodString;
896
+ }, z.core.$strict>>;
897
+ bodyRefs: z.ZodArray<z.ZodObject<{
898
+ key: z.ZodString;
899
+ label: z.ZodOptional<z.ZodString>;
900
+ }, z.core.$strict>>;
901
+ footer: z.ZodOptional<z.ZodString>;
902
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
903
+ offset: z.ZodNumber;
904
+ length: z.ZodNumber;
905
+ }, z.core.$strict>>>;
906
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
907
+ key: z.ZodString;
908
+ type: z.ZodLiteral<"text">;
909
+ label: z.ZodOptional<z.ZodString>;
910
+ value: z.ZodString;
911
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
912
+ offset: z.ZodNumber;
913
+ length: z.ZodNumber;
914
+ }, z.core.$strict>>>;
915
+ }, z.core.$strict>, z.ZodObject<{
916
+ key: z.ZodString;
917
+ type: z.ZodLiteral<"fields">;
918
+ items: z.ZodArray<z.ZodObject<{
919
+ label: z.ZodString;
920
+ value: z.ZodString;
921
+ }, z.core.$strict>>;
922
+ }, z.core.$strict>], "type">>;
923
+ }, z.core.$strict>, z.ZodObject<{
924
+ key: z.ZodLiteral<"zh-CN">;
925
+ title: z.ZodString;
926
+ locale: z.ZodLiteral<"zh-CN">;
927
+ linkLabels: z.ZodArray<z.ZodObject<{
928
+ key: z.ZodString;
929
+ label: z.ZodString;
930
+ }, z.core.$strict>>;
931
+ bodyRefs: z.ZodArray<z.ZodObject<{
932
+ key: z.ZodString;
933
+ label: z.ZodOptional<z.ZodString>;
934
+ }, z.core.$strict>>;
935
+ footer: z.ZodOptional<z.ZodString>;
936
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
937
+ offset: z.ZodNumber;
938
+ length: z.ZodNumber;
939
+ }, z.core.$strict>>>;
940
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
941
+ key: z.ZodString;
942
+ type: z.ZodLiteral<"text">;
943
+ label: z.ZodOptional<z.ZodString>;
944
+ value: z.ZodString;
945
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
946
+ offset: z.ZodNumber;
947
+ length: z.ZodNumber;
948
+ }, z.core.$strict>>>;
949
+ }, z.core.$strict>, z.ZodObject<{
950
+ key: z.ZodString;
951
+ type: z.ZodLiteral<"fields">;
952
+ items: z.ZodArray<z.ZodObject<{
953
+ label: z.ZodString;
954
+ value: z.ZodString;
955
+ }, z.core.$strict>>;
956
+ }, z.core.$strict>], "type">>;
957
+ }, z.core.$strict>], "key">>;
958
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
959
+ qq: "qq";
960
+ tg: "tg";
961
+ wechat: "wechat";
962
+ lark: "lark";
963
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
964
+ key: z.ZodLiteral<"source">;
965
+ title: z.ZodString;
966
+ locale: z.ZodLiteral<"und">;
967
+ linkLabels: z.ZodArray<z.ZodObject<{
968
+ key: z.ZodString;
969
+ label: z.ZodString;
970
+ }, z.core.$strict>>;
971
+ bodyRefs: z.ZodArray<z.ZodObject<{
972
+ key: z.ZodString;
973
+ label: z.ZodOptional<z.ZodString>;
974
+ }, z.core.$strict>>;
975
+ footer: z.ZodOptional<z.ZodString>;
976
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
977
+ offset: z.ZodNumber;
978
+ length: z.ZodNumber;
979
+ }, z.core.$strict>>>;
980
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
981
+ key: z.ZodString;
982
+ type: z.ZodLiteral<"text">;
983
+ label: z.ZodOptional<z.ZodString>;
984
+ value: z.ZodString;
985
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
986
+ offset: z.ZodNumber;
987
+ length: z.ZodNumber;
988
+ }, z.core.$strict>>>;
989
+ }, z.core.$strict>, z.ZodObject<{
990
+ key: z.ZodString;
991
+ type: z.ZodLiteral<"fields">;
992
+ items: z.ZodArray<z.ZodObject<{
993
+ label: z.ZodString;
994
+ value: z.ZodString;
995
+ }, z.core.$strict>>;
996
+ }, z.core.$strict>], "type">>;
997
+ }, z.core.$strict>, z.ZodObject<{
998
+ key: z.ZodLiteral<"zh-CN">;
999
+ title: z.ZodString;
1000
+ locale: z.ZodLiteral<"zh-CN">;
1001
+ linkLabels: z.ZodArray<z.ZodObject<{
1002
+ key: z.ZodString;
1003
+ label: z.ZodString;
1004
+ }, z.core.$strict>>;
1005
+ bodyRefs: z.ZodArray<z.ZodObject<{
1006
+ key: z.ZodString;
1007
+ label: z.ZodOptional<z.ZodString>;
1008
+ }, z.core.$strict>>;
1009
+ footer: z.ZodOptional<z.ZodString>;
1010
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1011
+ offset: z.ZodNumber;
1012
+ length: z.ZodNumber;
1013
+ }, z.core.$strict>>>;
1014
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1015
+ key: z.ZodString;
1016
+ type: z.ZodLiteral<"text">;
1017
+ label: z.ZodOptional<z.ZodString>;
1018
+ value: z.ZodString;
1019
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1020
+ offset: z.ZodNumber;
1021
+ length: z.ZodNumber;
1022
+ }, z.core.$strict>>>;
1023
+ }, z.core.$strict>, z.ZodObject<{
1024
+ key: z.ZodString;
1025
+ type: z.ZodLiteral<"fields">;
1026
+ items: z.ZodArray<z.ZodObject<{
1027
+ label: z.ZodString;
1028
+ value: z.ZodString;
1029
+ }, z.core.$strict>>;
1030
+ }, z.core.$strict>], "type">>;
1031
+ }, z.core.$strict>], "key">>>>;
1032
+ }, z.core.$strict>;
1033
+ audience: z.ZodOptional<z.ZodObject<{
1034
+ topics: z.ZodArray<z.ZodString>;
1035
+ }, z.core.$strict>>;
1036
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1037
+ locale: z.ZodString;
1038
+ contentLocale: z.ZodString;
1039
+ title: z.ZodString;
1040
+ body: z.ZodString;
1041
+ url: z.ZodString;
1042
+ }, z.core.$strict>>>;
1043
+ routeKeys: z.ZodArray<z.ZodString>;
1044
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1045
+ eventId: z.ZodString;
1046
+ producer: z.ZodObject<{
1047
+ key: z.ZodString;
1048
+ environment: z.ZodString;
1049
+ }, z.core.$strict>;
1050
+ occurredAt: z.ZodString;
1051
+ requestedAt: z.ZodString;
1052
+ deliverBy: z.ZodString;
1053
+ subject: z.ZodObject<{
1054
+ type: z.ZodString;
1055
+ id: z.ZodString;
1056
+ revision: z.ZodNumber;
1057
+ }, z.core.$strict>;
1058
+ }, z.core.$strict>;
1059
+ type NotificationDeliveryRequestV10 = z.infer<typeof notificationDeliveryRequestV10Schema>;
1060
+ type NotificationMessageVariantsV10 = NotificationDeliveryRequestV10['message']['variants'];
1061
+ /** Producer-owned delivery formats frozen with each newly generated notification. */
1062
+ declare const notificationChannelFormatsSchema: z.ZodObject<{
1063
+ qq: z.ZodOptional<z.ZodEnum<{
1064
+ auto: "auto";
1065
+ markdown: "markdown";
1066
+ plain_text: "plain_text";
1067
+ }>>;
1068
+ tg: z.ZodOptional<z.ZodEnum<{
1069
+ auto: "auto";
1070
+ plain_text: "plain_text";
1071
+ rich_text: "rich_text";
1072
+ }>>;
1073
+ }, z.core.$strict>;
1074
+ type NotificationChannelFormats = z.infer<typeof notificationChannelFormatsSchema>;
1075
+ /** V11 freezes channel presentation while retaining shared body and link identities. */
1076
+ declare const notificationDeliveryRequestV11Schema: z.ZodObject<{
1077
+ contractVersion: z.ZodLiteral<11>;
1078
+ message: z.ZodObject<{
1079
+ type: z.ZodLiteral<"structured_notification">;
1080
+ links: z.ZodArray<z.ZodObject<{
1081
+ key: z.ZodString;
1082
+ url: z.ZodString;
1083
+ }, z.core.$strict>>;
1084
+ bodies: z.ZodArray<z.ZodObject<{
1085
+ key: z.ZodString;
1086
+ value: z.ZodString;
1087
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1088
+ offset: z.ZodNumber;
1089
+ length: z.ZodNumber;
1090
+ }, z.core.$strict>>>;
1091
+ }, z.core.$strict>>;
1092
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1093
+ key: z.ZodLiteral<"source">;
1094
+ title: z.ZodString;
1095
+ locale: z.ZodLiteral<"und">;
1096
+ linkLabels: z.ZodArray<z.ZodObject<{
1097
+ key: z.ZodString;
1098
+ label: z.ZodString;
1099
+ }, z.core.$strict>>;
1100
+ bodyRefs: z.ZodArray<z.ZodObject<{
1101
+ key: z.ZodString;
1102
+ label: z.ZodOptional<z.ZodString>;
1103
+ }, z.core.$strict>>;
1104
+ footer: z.ZodOptional<z.ZodString>;
1105
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1106
+ offset: z.ZodNumber;
1107
+ length: z.ZodNumber;
1108
+ }, z.core.$strict>>>;
1109
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1110
+ key: z.ZodString;
1111
+ type: z.ZodLiteral<"text">;
1112
+ label: z.ZodOptional<z.ZodString>;
1113
+ value: z.ZodString;
1114
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1115
+ offset: z.ZodNumber;
1116
+ length: z.ZodNumber;
1117
+ }, z.core.$strict>>>;
1118
+ }, z.core.$strict>, z.ZodObject<{
1119
+ key: z.ZodString;
1120
+ type: z.ZodLiteral<"fields">;
1121
+ items: z.ZodArray<z.ZodObject<{
1122
+ label: z.ZodString;
1123
+ value: z.ZodString;
1124
+ }, z.core.$strict>>;
1125
+ }, z.core.$strict>], "type">>;
1126
+ }, z.core.$strict>, z.ZodObject<{
1127
+ key: z.ZodLiteral<"zh-CN">;
1128
+ title: z.ZodString;
1129
+ locale: z.ZodLiteral<"zh-CN">;
1130
+ linkLabels: z.ZodArray<z.ZodObject<{
1131
+ key: z.ZodString;
1132
+ label: z.ZodString;
1133
+ }, z.core.$strict>>;
1134
+ bodyRefs: z.ZodArray<z.ZodObject<{
1135
+ key: z.ZodString;
1136
+ label: z.ZodOptional<z.ZodString>;
1137
+ }, z.core.$strict>>;
1138
+ footer: z.ZodOptional<z.ZodString>;
1139
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1140
+ offset: z.ZodNumber;
1141
+ length: z.ZodNumber;
1142
+ }, z.core.$strict>>>;
1143
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1144
+ key: z.ZodString;
1145
+ type: z.ZodLiteral<"text">;
1146
+ label: z.ZodOptional<z.ZodString>;
1147
+ value: z.ZodString;
1148
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1149
+ offset: z.ZodNumber;
1150
+ length: z.ZodNumber;
1151
+ }, z.core.$strict>>>;
1152
+ }, z.core.$strict>, z.ZodObject<{
1153
+ key: z.ZodString;
1154
+ type: z.ZodLiteral<"fields">;
1155
+ items: z.ZodArray<z.ZodObject<{
1156
+ label: z.ZodString;
1157
+ value: z.ZodString;
1158
+ }, z.core.$strict>>;
1159
+ }, z.core.$strict>], "type">>;
1160
+ }, z.core.$strict>], "key">>;
1161
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1162
+ qq: "qq";
1163
+ tg: "tg";
1164
+ wechat: "wechat";
1165
+ lark: "lark";
1166
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1167
+ key: z.ZodLiteral<"source">;
1168
+ title: z.ZodString;
1169
+ locale: z.ZodLiteral<"und">;
1170
+ linkLabels: z.ZodArray<z.ZodObject<{
1171
+ key: z.ZodString;
1172
+ label: z.ZodString;
1173
+ }, z.core.$strict>>;
1174
+ bodyRefs: z.ZodArray<z.ZodObject<{
1175
+ key: z.ZodString;
1176
+ label: z.ZodOptional<z.ZodString>;
1177
+ }, z.core.$strict>>;
1178
+ footer: z.ZodOptional<z.ZodString>;
1179
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1180
+ offset: z.ZodNumber;
1181
+ length: z.ZodNumber;
1182
+ }, z.core.$strict>>>;
1183
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1184
+ key: z.ZodString;
1185
+ type: z.ZodLiteral<"text">;
1186
+ label: z.ZodOptional<z.ZodString>;
1187
+ value: z.ZodString;
1188
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1189
+ offset: z.ZodNumber;
1190
+ length: z.ZodNumber;
1191
+ }, z.core.$strict>>>;
1192
+ }, z.core.$strict>, z.ZodObject<{
1193
+ key: z.ZodString;
1194
+ type: z.ZodLiteral<"fields">;
1195
+ items: z.ZodArray<z.ZodObject<{
1196
+ label: z.ZodString;
1197
+ value: z.ZodString;
1198
+ }, z.core.$strict>>;
1199
+ }, z.core.$strict>], "type">>;
1200
+ }, z.core.$strict>, z.ZodObject<{
1201
+ key: z.ZodLiteral<"zh-CN">;
1202
+ title: z.ZodString;
1203
+ locale: z.ZodLiteral<"zh-CN">;
1204
+ linkLabels: z.ZodArray<z.ZodObject<{
1205
+ key: z.ZodString;
1206
+ label: z.ZodString;
1207
+ }, z.core.$strict>>;
1208
+ bodyRefs: z.ZodArray<z.ZodObject<{
1209
+ key: z.ZodString;
1210
+ label: z.ZodOptional<z.ZodString>;
1211
+ }, z.core.$strict>>;
1212
+ footer: z.ZodOptional<z.ZodString>;
1213
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1214
+ offset: z.ZodNumber;
1215
+ length: z.ZodNumber;
1216
+ }, z.core.$strict>>>;
1217
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1218
+ key: z.ZodString;
1219
+ type: z.ZodLiteral<"text">;
1220
+ label: z.ZodOptional<z.ZodString>;
1221
+ value: z.ZodString;
1222
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1223
+ offset: z.ZodNumber;
1224
+ length: z.ZodNumber;
1225
+ }, z.core.$strict>>>;
1226
+ }, z.core.$strict>, z.ZodObject<{
1227
+ key: z.ZodString;
1228
+ type: z.ZodLiteral<"fields">;
1229
+ items: z.ZodArray<z.ZodObject<{
1230
+ label: z.ZodString;
1231
+ value: z.ZodString;
1232
+ }, z.core.$strict>>;
1233
+ }, z.core.$strict>], "type">>;
1234
+ }, z.core.$strict>], "key">>>>;
1235
+ channelFormats: z.ZodOptional<z.ZodObject<{
1236
+ qq: z.ZodOptional<z.ZodEnum<{
1237
+ auto: "auto";
1238
+ markdown: "markdown";
1239
+ plain_text: "plain_text";
1240
+ }>>;
1241
+ tg: z.ZodOptional<z.ZodEnum<{
1242
+ auto: "auto";
1243
+ plain_text: "plain_text";
1244
+ rich_text: "rich_text";
1245
+ }>>;
1246
+ }, z.core.$strict>>;
1247
+ channelBodies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1248
+ qq: "qq";
1249
+ tg: "tg";
1250
+ wechat: "wechat";
1251
+ lark: "lark";
1252
+ }> & z.core.$partial, z.ZodArray<z.ZodObject<{
1253
+ key: z.ZodString;
1254
+ value: z.ZodString;
1255
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1256
+ offset: z.ZodNumber;
1257
+ length: z.ZodNumber;
1258
+ }, z.core.$strict>>>;
1259
+ }, z.core.$strict>>>>;
1260
+ channelLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1261
+ qq: "qq";
1262
+ tg: "tg";
1263
+ wechat: "wechat";
1264
+ lark: "lark";
1265
+ }> & z.core.$partial, z.ZodArray<z.ZodObject<{
1266
+ key: z.ZodString;
1267
+ url: z.ZodString;
1268
+ }, z.core.$strict>>>>;
1269
+ }, z.core.$strict>;
1270
+ audience: z.ZodOptional<z.ZodObject<{
1271
+ topics: z.ZodArray<z.ZodString>;
1272
+ }, z.core.$strict>>;
1273
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1274
+ locale: z.ZodString;
1275
+ contentLocale: z.ZodString;
1276
+ title: z.ZodString;
1277
+ body: z.ZodString;
1278
+ url: z.ZodString;
1279
+ }, z.core.$strict>>>;
1280
+ routeKeys: z.ZodArray<z.ZodString>;
1281
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1282
+ eventId: z.ZodString;
1283
+ producer: z.ZodObject<{
1284
+ key: z.ZodString;
1285
+ environment: z.ZodString;
1286
+ }, z.core.$strict>;
1287
+ occurredAt: z.ZodString;
1288
+ requestedAt: z.ZodString;
1289
+ deliverBy: z.ZodString;
1290
+ subject: z.ZodObject<{
1291
+ type: z.ZodString;
1292
+ id: z.ZodString;
1293
+ revision: z.ZodNumber;
1294
+ }, z.core.$strict>;
1295
+ }, z.core.$strict>;
1296
+ type NotificationDeliveryRequestV11 = z.infer<typeof notificationDeliveryRequestV11Schema>;
862
1297
  /** Reads routing facts from current envelopes and historical single-route records. */
863
1298
  declare function notificationRouteKeys(value: {
864
1299
  routeKey: string;
@@ -897,10 +1332,158 @@ declare const localTaskDeliveryRequestV1Schema: z.ZodObject<{
897
1332
  sourceTextZh: z.ZodString;
898
1333
  sourceUrl: z.ZodOptional<z.ZodString>;
899
1334
  }, z.core.$strict>;
900
- }, z.core.$strict>;
901
- declare const localTaskDeliveryRequestSchema: z.ZodObject<{
902
- contractVersion: z.ZodLiteral<1>;
903
- eventType: z.ZodLiteral<"local-task.delivery.requested">;
1335
+ }, z.core.$strict>;
1336
+ declare const localTaskDeliveryRequestSchema: z.ZodObject<{
1337
+ contractVersion: z.ZodLiteral<1>;
1338
+ eventType: z.ZodLiteral<"local-task.delivery.requested">;
1339
+ eventId: z.ZodString;
1340
+ producer: z.ZodObject<{
1341
+ key: z.ZodString;
1342
+ environment: z.ZodString;
1343
+ }, z.core.$strict>;
1344
+ routeKey: z.ZodString;
1345
+ occurredAt: z.ZodString;
1346
+ requestedAt: z.ZodString;
1347
+ deliverBy: z.ZodString;
1348
+ subject: z.ZodObject<{
1349
+ id: z.ZodString;
1350
+ revision: z.ZodNumber;
1351
+ type: z.ZodLiteral<"creator-event">;
1352
+ }, z.core.$strict>;
1353
+ task: z.ZodObject<{
1354
+ type: z.ZodLiteral<"creator.draft.v1">;
1355
+ templateId: z.ZodString;
1356
+ signalType: z.ZodString;
1357
+ sourceTextZh: z.ZodString;
1358
+ sourceUrl: z.ZodOptional<z.ZodString>;
1359
+ }, z.core.$strict>;
1360
+ }, z.core.$strict>;
1361
+ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
1362
+ message: z.ZodObject<{
1363
+ type: z.ZodLiteral<"link_summary">;
1364
+ title: z.ZodString;
1365
+ summary: z.ZodString;
1366
+ facts: z.ZodArray<z.ZodObject<{
1367
+ label: z.ZodString;
1368
+ value: z.ZodString;
1369
+ }, z.core.$strict>>;
1370
+ primaryLink: z.ZodObject<{
1371
+ label: z.ZodString;
1372
+ url: z.ZodString;
1373
+ }, z.core.$strict>;
1374
+ sourceLink: z.ZodOptional<z.ZodObject<{
1375
+ label: z.ZodString;
1376
+ url: z.ZodString;
1377
+ }, z.core.$strict>>;
1378
+ }, z.core.$strict>;
1379
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1380
+ eventId: z.ZodString;
1381
+ producer: z.ZodObject<{
1382
+ key: z.ZodString;
1383
+ environment: z.ZodString;
1384
+ }, z.core.$strict>;
1385
+ routeKey: z.ZodString;
1386
+ occurredAt: z.ZodString;
1387
+ requestedAt: z.ZodString;
1388
+ deliverBy: z.ZodString;
1389
+ subject: z.ZodObject<{
1390
+ type: z.ZodString;
1391
+ id: z.ZodString;
1392
+ revision: z.ZodNumber;
1393
+ }, z.core.$strict>;
1394
+ contractVersion: z.ZodLiteral<1>;
1395
+ }, z.core.$strict>, z.ZodObject<{
1396
+ message: z.ZodObject<{
1397
+ type: z.ZodLiteral<"localized_link_summary">;
1398
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1399
+ title: z.ZodString;
1400
+ summary: z.ZodString;
1401
+ facts: z.ZodArray<z.ZodObject<{
1402
+ label: z.ZodString;
1403
+ value: z.ZodString;
1404
+ }, z.core.$strict>>;
1405
+ key: z.ZodLiteral<"source">;
1406
+ locale: z.ZodLiteral<"und">;
1407
+ }, z.core.$strict>, z.ZodObject<{
1408
+ title: z.ZodString;
1409
+ summary: z.ZodString;
1410
+ facts: z.ZodArray<z.ZodObject<{
1411
+ label: z.ZodString;
1412
+ value: z.ZodString;
1413
+ }, z.core.$strict>>;
1414
+ key: z.ZodLiteral<"zh-CN">;
1415
+ locale: z.ZodLiteral<"zh-CN">;
1416
+ }, z.core.$strict>], "key">>;
1417
+ primaryLink: z.ZodObject<{
1418
+ label: z.ZodString;
1419
+ url: z.ZodString;
1420
+ }, z.core.$strict>;
1421
+ sourceLink: z.ZodOptional<z.ZodObject<{
1422
+ label: z.ZodString;
1423
+ url: z.ZodString;
1424
+ }, z.core.$strict>>;
1425
+ }, z.core.$strict>;
1426
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1427
+ eventId: z.ZodString;
1428
+ producer: z.ZodObject<{
1429
+ key: z.ZodString;
1430
+ environment: z.ZodString;
1431
+ }, z.core.$strict>;
1432
+ routeKey: z.ZodString;
1433
+ occurredAt: z.ZodString;
1434
+ requestedAt: z.ZodString;
1435
+ deliverBy: z.ZodString;
1436
+ subject: z.ZodObject<{
1437
+ type: z.ZodString;
1438
+ id: z.ZodString;
1439
+ revision: z.ZodNumber;
1440
+ }, z.core.$strict>;
1441
+ contractVersion: z.ZodLiteral<2>;
1442
+ }, z.core.$strict>, z.ZodObject<{
1443
+ message: z.ZodObject<{
1444
+ type: z.ZodLiteral<"structured_notification">;
1445
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1446
+ key: z.ZodLiteral<"source">;
1447
+ locale: z.ZodLiteral<"und">;
1448
+ title: z.ZodString;
1449
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1450
+ key: z.ZodString;
1451
+ type: z.ZodLiteral<"text">;
1452
+ label: z.ZodOptional<z.ZodString>;
1453
+ value: z.ZodString;
1454
+ }, z.core.$strict>, z.ZodObject<{
1455
+ key: z.ZodString;
1456
+ type: z.ZodLiteral<"fields">;
1457
+ items: z.ZodArray<z.ZodObject<{
1458
+ label: z.ZodString;
1459
+ value: z.ZodString;
1460
+ }, z.core.$strict>>;
1461
+ }, z.core.$strict>], "type">>;
1462
+ }, z.core.$strict>, z.ZodObject<{
1463
+ key: z.ZodLiteral<"zh-CN">;
1464
+ locale: z.ZodLiteral<"zh-CN">;
1465
+ title: z.ZodString;
1466
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1467
+ key: z.ZodString;
1468
+ type: z.ZodLiteral<"text">;
1469
+ label: z.ZodOptional<z.ZodString>;
1470
+ value: z.ZodString;
1471
+ }, z.core.$strict>, z.ZodObject<{
1472
+ key: z.ZodString;
1473
+ type: z.ZodLiteral<"fields">;
1474
+ items: z.ZodArray<z.ZodObject<{
1475
+ label: z.ZodString;
1476
+ value: z.ZodString;
1477
+ }, z.core.$strict>>;
1478
+ }, z.core.$strict>], "type">>;
1479
+ }, z.core.$strict>], "key">>;
1480
+ links: z.ZodArray<z.ZodObject<{
1481
+ label: z.ZodString;
1482
+ url: z.ZodString;
1483
+ key: z.ZodString;
1484
+ }, z.core.$strict>>;
1485
+ }, z.core.$strict>;
1486
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
904
1487
  eventId: z.ZodString;
905
1488
  producer: z.ZodObject<{
906
1489
  key: z.ZodString;
@@ -911,36 +1494,12 @@ declare const localTaskDeliveryRequestSchema: z.ZodObject<{
911
1494
  requestedAt: z.ZodString;
912
1495
  deliverBy: z.ZodString;
913
1496
  subject: z.ZodObject<{
1497
+ type: z.ZodString;
914
1498
  id: z.ZodString;
915
1499
  revision: z.ZodNumber;
916
- type: z.ZodLiteral<"creator-event">;
917
- }, z.core.$strict>;
918
- task: z.ZodObject<{
919
- type: z.ZodLiteral<"creator.draft.v1">;
920
- templateId: z.ZodString;
921
- signalType: z.ZodString;
922
- sourceTextZh: z.ZodString;
923
- sourceUrl: z.ZodOptional<z.ZodString>;
924
- }, z.core.$strict>;
925
- }, z.core.$strict>;
926
- declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
927
- message: z.ZodObject<{
928
- type: z.ZodLiteral<"link_summary">;
929
- title: z.ZodString;
930
- summary: z.ZodString;
931
- facts: z.ZodArray<z.ZodObject<{
932
- label: z.ZodString;
933
- value: z.ZodString;
934
- }, z.core.$strict>>;
935
- primaryLink: z.ZodObject<{
936
- label: z.ZodString;
937
- url: z.ZodString;
938
- }, z.core.$strict>;
939
- sourceLink: z.ZodOptional<z.ZodObject<{
940
- label: z.ZodString;
941
- url: z.ZodString;
942
- }, z.core.$strict>>;
943
1500
  }, z.core.$strict>;
1501
+ contractVersion: z.ZodLiteral<3>;
1502
+ }, z.core.$strict>, z.ZodObject<{
944
1503
  eventType: z.ZodLiteral<"notification.delivery.requested">;
945
1504
  eventId: z.ZodString;
946
1505
  producer: z.ZodObject<{
@@ -956,37 +1515,113 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
956
1515
  id: z.ZodString;
957
1516
  revision: z.ZodNumber;
958
1517
  }, z.core.$strict>;
959
- contractVersion: z.ZodLiteral<1>;
960
- }, z.core.$strict>, z.ZodObject<{
1518
+ contractVersion: z.ZodLiteral<4>;
961
1519
  message: z.ZodObject<{
962
- type: z.ZodLiteral<"localized_link_summary">;
1520
+ type: z.ZodLiteral<"structured_notification">;
1521
+ links: z.ZodArray<z.ZodObject<{
1522
+ label: z.ZodString;
1523
+ url: z.ZodString;
1524
+ key: z.ZodString;
1525
+ }, z.core.$strict>>;
963
1526
  variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1527
+ key: z.ZodLiteral<"source">;
1528
+ locale: z.ZodLiteral<"und">;
964
1529
  title: z.ZodString;
965
- summary: z.ZodString;
966
- facts: z.ZodArray<z.ZodObject<{
967
- label: z.ZodString;
1530
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1531
+ key: z.ZodString;
1532
+ type: z.ZodLiteral<"text">;
1533
+ label: z.ZodOptional<z.ZodString>;
968
1534
  value: z.ZodString;
969
- }, z.core.$strict>>;
1535
+ }, z.core.$strict>, z.ZodObject<{
1536
+ key: z.ZodString;
1537
+ type: z.ZodLiteral<"fields">;
1538
+ items: z.ZodArray<z.ZodObject<{
1539
+ label: z.ZodString;
1540
+ value: z.ZodString;
1541
+ }, z.core.$strict>>;
1542
+ }, z.core.$strict>], "type">>;
1543
+ body: z.ZodObject<{
1544
+ label: z.ZodOptional<z.ZodString>;
1545
+ value: z.ZodString;
1546
+ }, z.core.$strict>;
1547
+ }, z.core.$strict>, z.ZodObject<{
1548
+ key: z.ZodLiteral<"zh-CN">;
1549
+ locale: z.ZodLiteral<"zh-CN">;
1550
+ title: z.ZodString;
1551
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1552
+ key: z.ZodString;
1553
+ type: z.ZodLiteral<"text">;
1554
+ label: z.ZodOptional<z.ZodString>;
1555
+ value: z.ZodString;
1556
+ }, z.core.$strict>, z.ZodObject<{
1557
+ key: z.ZodString;
1558
+ type: z.ZodLiteral<"fields">;
1559
+ items: z.ZodArray<z.ZodObject<{
1560
+ label: z.ZodString;
1561
+ value: z.ZodString;
1562
+ }, z.core.$strict>>;
1563
+ }, z.core.$strict>], "type">>;
1564
+ body: z.ZodObject<{
1565
+ label: z.ZodOptional<z.ZodString>;
1566
+ value: z.ZodString;
1567
+ }, z.core.$strict>;
1568
+ }, z.core.$strict>], "key">>;
1569
+ }, z.core.$strict>;
1570
+ }, z.core.$strict>, z.ZodObject<{
1571
+ message: z.ZodObject<{
1572
+ type: z.ZodLiteral<"structured_notification">;
1573
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
970
1574
  key: z.ZodLiteral<"source">;
971
1575
  locale: z.ZodLiteral<"und">;
972
- }, z.core.$strict>, z.ZodObject<{
973
1576
  title: z.ZodString;
974
- summary: z.ZodString;
975
- facts: z.ZodArray<z.ZodObject<{
976
- label: z.ZodString;
1577
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1578
+ key: z.ZodString;
1579
+ type: z.ZodLiteral<"text">;
1580
+ label: z.ZodOptional<z.ZodString>;
977
1581
  value: z.ZodString;
1582
+ }, z.core.$strict>, z.ZodObject<{
1583
+ key: z.ZodString;
1584
+ type: z.ZodLiteral<"fields">;
1585
+ items: z.ZodArray<z.ZodObject<{
1586
+ label: z.ZodString;
1587
+ value: z.ZodString;
1588
+ }, z.core.$strict>>;
1589
+ }, z.core.$strict>], "type">>;
1590
+ bodyLabel: z.ZodOptional<z.ZodString>;
1591
+ linkLabels: z.ZodArray<z.ZodObject<{
1592
+ key: z.ZodString;
1593
+ label: z.ZodString;
978
1594
  }, z.core.$strict>>;
1595
+ }, z.core.$strict>, z.ZodObject<{
979
1596
  key: z.ZodLiteral<"zh-CN">;
980
1597
  locale: z.ZodLiteral<"zh-CN">;
1598
+ title: z.ZodString;
1599
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1600
+ key: z.ZodString;
1601
+ type: z.ZodLiteral<"text">;
1602
+ label: z.ZodOptional<z.ZodString>;
1603
+ value: z.ZodString;
1604
+ }, z.core.$strict>, z.ZodObject<{
1605
+ key: z.ZodString;
1606
+ type: z.ZodLiteral<"fields">;
1607
+ items: z.ZodArray<z.ZodObject<{
1608
+ label: z.ZodString;
1609
+ value: z.ZodString;
1610
+ }, z.core.$strict>>;
1611
+ }, z.core.$strict>], "type">>;
1612
+ bodyLabel: z.ZodOptional<z.ZodString>;
1613
+ linkLabels: z.ZodArray<z.ZodObject<{
1614
+ key: z.ZodString;
1615
+ label: z.ZodString;
1616
+ }, z.core.$strict>>;
981
1617
  }, z.core.$strict>], "key">>;
982
- primaryLink: z.ZodObject<{
983
- label: z.ZodString;
984
- url: z.ZodString;
985
- }, z.core.$strict>;
986
- sourceLink: z.ZodOptional<z.ZodObject<{
987
- label: z.ZodString;
1618
+ links: z.ZodArray<z.ZodObject<{
1619
+ key: z.ZodString;
988
1620
  url: z.ZodString;
989
1621
  }, z.core.$strict>>;
1622
+ body: z.ZodObject<{
1623
+ value: z.ZodString;
1624
+ }, z.core.$strict>;
990
1625
  }, z.core.$strict>;
991
1626
  eventType: z.ZodLiteral<"notification.delivery.requested">;
992
1627
  eventId: z.ZodString;
@@ -1003,14 +1638,27 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1003
1638
  id: z.ZodString;
1004
1639
  revision: z.ZodNumber;
1005
1640
  }, z.core.$strict>;
1006
- contractVersion: z.ZodLiteral<2>;
1641
+ contractVersion: z.ZodLiteral<5>;
1007
1642
  }, z.core.$strict>, z.ZodObject<{
1643
+ contractVersion: z.ZodLiteral<6>;
1008
1644
  message: z.ZodObject<{
1009
1645
  type: z.ZodLiteral<"structured_notification">;
1646
+ links: z.ZodArray<z.ZodObject<{
1647
+ key: z.ZodString;
1648
+ url: z.ZodString;
1649
+ }, z.core.$strict>>;
1650
+ bodies: z.ZodArray<z.ZodObject<{
1651
+ key: z.ZodString;
1652
+ value: z.ZodString;
1653
+ }, z.core.$strict>>;
1010
1654
  variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1011
1655
  key: z.ZodLiteral<"source">;
1012
- locale: z.ZodLiteral<"und">;
1013
1656
  title: z.ZodString;
1657
+ locale: z.ZodLiteral<"und">;
1658
+ linkLabels: z.ZodArray<z.ZodObject<{
1659
+ key: z.ZodString;
1660
+ label: z.ZodString;
1661
+ }, z.core.$strict>>;
1014
1662
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1015
1663
  key: z.ZodString;
1016
1664
  type: z.ZodLiteral<"text">;
@@ -1024,10 +1672,19 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1024
1672
  value: z.ZodString;
1025
1673
  }, z.core.$strict>>;
1026
1674
  }, z.core.$strict>], "type">>;
1675
+ bodyRefs: z.ZodArray<z.ZodObject<{
1676
+ key: z.ZodString;
1677
+ label: z.ZodOptional<z.ZodString>;
1678
+ }, z.core.$strict>>;
1679
+ footer: z.ZodOptional<z.ZodString>;
1027
1680
  }, z.core.$strict>, z.ZodObject<{
1028
1681
  key: z.ZodLiteral<"zh-CN">;
1029
- locale: z.ZodLiteral<"zh-CN">;
1030
1682
  title: z.ZodString;
1683
+ locale: z.ZodLiteral<"zh-CN">;
1684
+ linkLabels: z.ZodArray<z.ZodObject<{
1685
+ key: z.ZodString;
1686
+ label: z.ZodString;
1687
+ }, z.core.$strict>>;
1031
1688
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1032
1689
  key: z.ZodString;
1033
1690
  type: z.ZodLiteral<"text">;
@@ -1041,12 +1698,12 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1041
1698
  value: z.ZodString;
1042
1699
  }, z.core.$strict>>;
1043
1700
  }, z.core.$strict>], "type">>;
1701
+ bodyRefs: z.ZodArray<z.ZodObject<{
1702
+ key: z.ZodString;
1703
+ label: z.ZodOptional<z.ZodString>;
1704
+ }, z.core.$strict>>;
1705
+ footer: z.ZodOptional<z.ZodString>;
1044
1706
  }, z.core.$strict>], "key">>;
1045
- links: z.ZodArray<z.ZodObject<{
1046
- label: z.ZodString;
1047
- url: z.ZodString;
1048
- key: z.ZodString;
1049
- }, z.core.$strict>>;
1050
1707
  }, z.core.$strict>;
1051
1708
  eventType: z.ZodLiteral<"notification.delivery.requested">;
1052
1709
  eventId: z.ZodString;
@@ -1063,15 +1720,79 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1063
1720
  id: z.ZodString;
1064
1721
  revision: z.ZodNumber;
1065
1722
  }, z.core.$strict>;
1066
- contractVersion: z.ZodLiteral<3>;
1067
1723
  }, z.core.$strict>, z.ZodObject<{
1724
+ contractVersion: z.ZodLiteral<7>;
1725
+ routeKeys: z.ZodArray<z.ZodString>;
1726
+ message: z.ZodObject<{
1727
+ type: z.ZodLiteral<"structured_notification">;
1728
+ links: z.ZodArray<z.ZodObject<{
1729
+ key: z.ZodString;
1730
+ url: z.ZodString;
1731
+ }, z.core.$strict>>;
1732
+ bodies: z.ZodArray<z.ZodObject<{
1733
+ key: z.ZodString;
1734
+ value: z.ZodString;
1735
+ }, z.core.$strict>>;
1736
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1737
+ key: z.ZodLiteral<"source">;
1738
+ title: z.ZodString;
1739
+ locale: z.ZodLiteral<"und">;
1740
+ linkLabels: z.ZodArray<z.ZodObject<{
1741
+ key: z.ZodString;
1742
+ label: z.ZodString;
1743
+ }, z.core.$strict>>;
1744
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1745
+ key: z.ZodString;
1746
+ type: z.ZodLiteral<"text">;
1747
+ label: z.ZodOptional<z.ZodString>;
1748
+ value: z.ZodString;
1749
+ }, z.core.$strict>, z.ZodObject<{
1750
+ key: z.ZodString;
1751
+ type: z.ZodLiteral<"fields">;
1752
+ items: z.ZodArray<z.ZodObject<{
1753
+ label: z.ZodString;
1754
+ value: z.ZodString;
1755
+ }, z.core.$strict>>;
1756
+ }, z.core.$strict>], "type">>;
1757
+ bodyRefs: z.ZodArray<z.ZodObject<{
1758
+ key: z.ZodString;
1759
+ label: z.ZodOptional<z.ZodString>;
1760
+ }, z.core.$strict>>;
1761
+ footer: z.ZodOptional<z.ZodString>;
1762
+ }, z.core.$strict>, z.ZodObject<{
1763
+ key: z.ZodLiteral<"zh-CN">;
1764
+ title: z.ZodString;
1765
+ locale: z.ZodLiteral<"zh-CN">;
1766
+ linkLabels: z.ZodArray<z.ZodObject<{
1767
+ key: z.ZodString;
1768
+ label: z.ZodString;
1769
+ }, z.core.$strict>>;
1770
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1771
+ key: z.ZodString;
1772
+ type: z.ZodLiteral<"text">;
1773
+ label: z.ZodOptional<z.ZodString>;
1774
+ value: z.ZodString;
1775
+ }, z.core.$strict>, z.ZodObject<{
1776
+ key: z.ZodString;
1777
+ type: z.ZodLiteral<"fields">;
1778
+ items: z.ZodArray<z.ZodObject<{
1779
+ label: z.ZodString;
1780
+ value: z.ZodString;
1781
+ }, z.core.$strict>>;
1782
+ }, z.core.$strict>], "type">>;
1783
+ bodyRefs: z.ZodArray<z.ZodObject<{
1784
+ key: z.ZodString;
1785
+ label: z.ZodOptional<z.ZodString>;
1786
+ }, z.core.$strict>>;
1787
+ footer: z.ZodOptional<z.ZodString>;
1788
+ }, z.core.$strict>], "key">>;
1789
+ }, z.core.$strict>;
1068
1790
  eventType: z.ZodLiteral<"notification.delivery.requested">;
1069
1791
  eventId: z.ZodString;
1070
1792
  producer: z.ZodObject<{
1071
1793
  key: z.ZodString;
1072
1794
  environment: z.ZodString;
1073
1795
  }, z.core.$strict>;
1074
- routeKey: z.ZodString;
1075
1796
  occurredAt: z.ZodString;
1076
1797
  requestedAt: z.ZodString;
1077
1798
  deliverBy: z.ZodString;
@@ -1080,18 +1801,26 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1080
1801
  id: z.ZodString;
1081
1802
  revision: z.ZodNumber;
1082
1803
  }, z.core.$strict>;
1083
- contractVersion: z.ZodLiteral<4>;
1804
+ }, z.core.$strict>, z.ZodObject<{
1805
+ contractVersion: z.ZodLiteral<8>;
1084
1806
  message: z.ZodObject<{
1085
1807
  type: z.ZodLiteral<"structured_notification">;
1086
1808
  links: z.ZodArray<z.ZodObject<{
1087
- label: z.ZodString;
1809
+ key: z.ZodString;
1088
1810
  url: z.ZodString;
1811
+ }, z.core.$strict>>;
1812
+ bodies: z.ZodArray<z.ZodObject<{
1089
1813
  key: z.ZodString;
1814
+ value: z.ZodString;
1090
1815
  }, z.core.$strict>>;
1091
1816
  variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1092
1817
  key: z.ZodLiteral<"source">;
1093
- locale: z.ZodLiteral<"und">;
1094
1818
  title: z.ZodString;
1819
+ locale: z.ZodLiteral<"und">;
1820
+ linkLabels: z.ZodArray<z.ZodObject<{
1821
+ key: z.ZodString;
1822
+ label: z.ZodString;
1823
+ }, z.core.$strict>>;
1095
1824
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1096
1825
  key: z.ZodString;
1097
1826
  type: z.ZodLiteral<"text">;
@@ -1105,14 +1834,19 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1105
1834
  value: z.ZodString;
1106
1835
  }, z.core.$strict>>;
1107
1836
  }, z.core.$strict>], "type">>;
1108
- body: z.ZodObject<{
1837
+ bodyRefs: z.ZodArray<z.ZodObject<{
1838
+ key: z.ZodString;
1109
1839
  label: z.ZodOptional<z.ZodString>;
1110
- value: z.ZodString;
1111
- }, z.core.$strict>;
1840
+ }, z.core.$strict>>;
1841
+ footer: z.ZodOptional<z.ZodString>;
1112
1842
  }, z.core.$strict>, z.ZodObject<{
1113
1843
  key: z.ZodLiteral<"zh-CN">;
1114
- locale: z.ZodLiteral<"zh-CN">;
1115
1844
  title: z.ZodString;
1845
+ locale: z.ZodLiteral<"zh-CN">;
1846
+ linkLabels: z.ZodArray<z.ZodObject<{
1847
+ key: z.ZodString;
1848
+ label: z.ZodString;
1849
+ }, z.core.$strict>>;
1116
1850
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1117
1851
  key: z.ZodString;
1118
1852
  type: z.ZodLiteral<"text">;
@@ -1126,19 +1860,25 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1126
1860
  value: z.ZodString;
1127
1861
  }, z.core.$strict>>;
1128
1862
  }, z.core.$strict>], "type">>;
1129
- body: z.ZodObject<{
1863
+ bodyRefs: z.ZodArray<z.ZodObject<{
1864
+ key: z.ZodString;
1130
1865
  label: z.ZodOptional<z.ZodString>;
1131
- value: z.ZodString;
1132
- }, z.core.$strict>;
1866
+ }, z.core.$strict>>;
1867
+ footer: z.ZodOptional<z.ZodString>;
1133
1868
  }, z.core.$strict>], "key">>;
1134
- }, z.core.$strict>;
1135
- }, z.core.$strict>, z.ZodObject<{
1136
- message: z.ZodObject<{
1137
- type: z.ZodLiteral<"structured_notification">;
1138
- variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1869
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1870
+ qq: "qq";
1871
+ tg: "tg";
1872
+ wechat: "wechat";
1873
+ lark: "lark";
1874
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1139
1875
  key: z.ZodLiteral<"source">;
1140
- locale: z.ZodLiteral<"und">;
1141
1876
  title: z.ZodString;
1877
+ locale: z.ZodLiteral<"und">;
1878
+ linkLabels: z.ZodArray<z.ZodObject<{
1879
+ key: z.ZodString;
1880
+ label: z.ZodString;
1881
+ }, z.core.$strict>>;
1142
1882
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1143
1883
  key: z.ZodString;
1144
1884
  type: z.ZodLiteral<"text">;
@@ -1152,15 +1892,19 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1152
1892
  value: z.ZodString;
1153
1893
  }, z.core.$strict>>;
1154
1894
  }, z.core.$strict>], "type">>;
1155
- bodyLabel: z.ZodOptional<z.ZodString>;
1156
- linkLabels: z.ZodArray<z.ZodObject<{
1895
+ bodyRefs: z.ZodArray<z.ZodObject<{
1157
1896
  key: z.ZodString;
1158
- label: z.ZodString;
1897
+ label: z.ZodOptional<z.ZodString>;
1159
1898
  }, z.core.$strict>>;
1899
+ footer: z.ZodOptional<z.ZodString>;
1160
1900
  }, z.core.$strict>, z.ZodObject<{
1161
1901
  key: z.ZodLiteral<"zh-CN">;
1162
- locale: z.ZodLiteral<"zh-CN">;
1163
1902
  title: z.ZodString;
1903
+ locale: z.ZodLiteral<"zh-CN">;
1904
+ linkLabels: z.ZodArray<z.ZodObject<{
1905
+ key: z.ZodString;
1906
+ label: z.ZodString;
1907
+ }, z.core.$strict>>;
1164
1908
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1165
1909
  key: z.ZodString;
1166
1910
  type: z.ZodLiteral<"text">;
@@ -1174,27 +1918,20 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1174
1918
  value: z.ZodString;
1175
1919
  }, z.core.$strict>>;
1176
1920
  }, z.core.$strict>], "type">>;
1177
- bodyLabel: z.ZodOptional<z.ZodString>;
1178
- linkLabels: z.ZodArray<z.ZodObject<{
1921
+ bodyRefs: z.ZodArray<z.ZodObject<{
1179
1922
  key: z.ZodString;
1180
- label: z.ZodString;
1923
+ label: z.ZodOptional<z.ZodString>;
1181
1924
  }, z.core.$strict>>;
1182
- }, z.core.$strict>], "key">>;
1183
- links: z.ZodArray<z.ZodObject<{
1184
- key: z.ZodString;
1185
- url: z.ZodString;
1186
- }, z.core.$strict>>;
1187
- body: z.ZodObject<{
1188
- value: z.ZodString;
1189
- }, z.core.$strict>;
1925
+ footer: z.ZodOptional<z.ZodString>;
1926
+ }, z.core.$strict>], "key">>>>;
1190
1927
  }, z.core.$strict>;
1928
+ routeKeys: z.ZodArray<z.ZodString>;
1191
1929
  eventType: z.ZodLiteral<"notification.delivery.requested">;
1192
1930
  eventId: z.ZodString;
1193
1931
  producer: z.ZodObject<{
1194
1932
  key: z.ZodString;
1195
1933
  environment: z.ZodString;
1196
1934
  }, z.core.$strict>;
1197
- routeKey: z.ZodString;
1198
1935
  occurredAt: z.ZodString;
1199
1936
  requestedAt: z.ZodString;
1200
1937
  deliverBy: z.ZodString;
@@ -1203,9 +1940,18 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1203
1940
  id: z.ZodString;
1204
1941
  revision: z.ZodNumber;
1205
1942
  }, z.core.$strict>;
1206
- contractVersion: z.ZodLiteral<5>;
1207
1943
  }, z.core.$strict>, z.ZodObject<{
1208
- contractVersion: z.ZodLiteral<6>;
1944
+ contractVersion: z.ZodLiteral<9>;
1945
+ audience: z.ZodOptional<z.ZodObject<{
1946
+ topics: z.ZodArray<z.ZodString>;
1947
+ }, z.core.$strict>>;
1948
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1949
+ locale: z.ZodString;
1950
+ contentLocale: z.ZodString;
1951
+ title: z.ZodString;
1952
+ body: z.ZodString;
1953
+ url: z.ZodString;
1954
+ }, z.core.$strict>>>;
1209
1955
  message: z.ZodObject<{
1210
1956
  type: z.ZodLiteral<"structured_notification">;
1211
1957
  links: z.ZodArray<z.ZodObject<{
@@ -1269,36 +2015,12 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1269
2015
  }, z.core.$strict>>;
1270
2016
  footer: z.ZodOptional<z.ZodString>;
1271
2017
  }, z.core.$strict>], "key">>;
1272
- }, z.core.$strict>;
1273
- eventType: z.ZodLiteral<"notification.delivery.requested">;
1274
- eventId: z.ZodString;
1275
- producer: z.ZodObject<{
1276
- key: z.ZodString;
1277
- environment: z.ZodString;
1278
- }, z.core.$strict>;
1279
- routeKey: z.ZodString;
1280
- occurredAt: z.ZodString;
1281
- requestedAt: z.ZodString;
1282
- deliverBy: z.ZodString;
1283
- subject: z.ZodObject<{
1284
- type: z.ZodString;
1285
- id: z.ZodString;
1286
- revision: z.ZodNumber;
1287
- }, z.core.$strict>;
1288
- }, z.core.$strict>, z.ZodObject<{
1289
- contractVersion: z.ZodLiteral<7>;
1290
- routeKeys: z.ZodArray<z.ZodString>;
1291
- message: z.ZodObject<{
1292
- type: z.ZodLiteral<"structured_notification">;
1293
- links: z.ZodArray<z.ZodObject<{
1294
- key: z.ZodString;
1295
- url: z.ZodString;
1296
- }, z.core.$strict>>;
1297
- bodies: z.ZodArray<z.ZodObject<{
1298
- key: z.ZodString;
1299
- value: z.ZodString;
1300
- }, z.core.$strict>>;
1301
- variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2018
+ channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
2019
+ qq: "qq";
2020
+ tg: "tg";
2021
+ wechat: "wechat";
2022
+ lark: "lark";
2023
+ }> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1302
2024
  key: z.ZodLiteral<"source">;
1303
2025
  title: z.ZodString;
1304
2026
  locale: z.ZodLiteral<"und">;
@@ -1350,8 +2072,9 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1350
2072
  label: z.ZodOptional<z.ZodString>;
1351
2073
  }, z.core.$strict>>;
1352
2074
  footer: z.ZodOptional<z.ZodString>;
1353
- }, z.core.$strict>], "key">>;
2075
+ }, z.core.$strict>], "key">>>>;
1354
2076
  }, z.core.$strict>;
2077
+ routeKeys: z.ZodArray<z.ZodString>;
1355
2078
  eventType: z.ZodLiteral<"notification.delivery.requested">;
1356
2079
  eventId: z.ZodString;
1357
2080
  producer: z.ZodObject<{
@@ -1367,7 +2090,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1367
2090
  revision: z.ZodNumber;
1368
2091
  }, z.core.$strict>;
1369
2092
  }, z.core.$strict>, z.ZodObject<{
1370
- contractVersion: z.ZodLiteral<8>;
2093
+ contractVersion: z.ZodLiteral<10>;
1371
2094
  message: z.ZodObject<{
1372
2095
  type: z.ZodLiteral<"structured_notification">;
1373
2096
  links: z.ZodArray<z.ZodObject<{
@@ -1377,6 +2100,10 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1377
2100
  bodies: z.ZodArray<z.ZodObject<{
1378
2101
  key: z.ZodString;
1379
2102
  value: z.ZodString;
2103
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2104
+ offset: z.ZodNumber;
2105
+ length: z.ZodNumber;
2106
+ }, z.core.$strict>>>;
1380
2107
  }, z.core.$strict>>;
1381
2108
  variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1382
2109
  key: z.ZodLiteral<"source">;
@@ -1386,11 +2113,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1386
2113
  key: z.ZodString;
1387
2114
  label: z.ZodString;
1388
2115
  }, z.core.$strict>>;
2116
+ bodyRefs: z.ZodArray<z.ZodObject<{
2117
+ key: z.ZodString;
2118
+ label: z.ZodOptional<z.ZodString>;
2119
+ }, z.core.$strict>>;
2120
+ footer: z.ZodOptional<z.ZodString>;
2121
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2122
+ offset: z.ZodNumber;
2123
+ length: z.ZodNumber;
2124
+ }, z.core.$strict>>>;
1389
2125
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1390
2126
  key: z.ZodString;
1391
2127
  type: z.ZodLiteral<"text">;
1392
2128
  label: z.ZodOptional<z.ZodString>;
1393
2129
  value: z.ZodString;
2130
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2131
+ offset: z.ZodNumber;
2132
+ length: z.ZodNumber;
2133
+ }, z.core.$strict>>>;
1394
2134
  }, z.core.$strict>, z.ZodObject<{
1395
2135
  key: z.ZodString;
1396
2136
  type: z.ZodLiteral<"fields">;
@@ -1399,11 +2139,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1399
2139
  value: z.ZodString;
1400
2140
  }, z.core.$strict>>;
1401
2141
  }, z.core.$strict>], "type">>;
1402
- bodyRefs: z.ZodArray<z.ZodObject<{
1403
- key: z.ZodString;
1404
- label: z.ZodOptional<z.ZodString>;
1405
- }, z.core.$strict>>;
1406
- footer: z.ZodOptional<z.ZodString>;
1407
2142
  }, z.core.$strict>, z.ZodObject<{
1408
2143
  key: z.ZodLiteral<"zh-CN">;
1409
2144
  title: z.ZodString;
@@ -1412,11 +2147,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1412
2147
  key: z.ZodString;
1413
2148
  label: z.ZodString;
1414
2149
  }, z.core.$strict>>;
2150
+ bodyRefs: z.ZodArray<z.ZodObject<{
2151
+ key: z.ZodString;
2152
+ label: z.ZodOptional<z.ZodString>;
2153
+ }, z.core.$strict>>;
2154
+ footer: z.ZodOptional<z.ZodString>;
2155
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2156
+ offset: z.ZodNumber;
2157
+ length: z.ZodNumber;
2158
+ }, z.core.$strict>>>;
1415
2159
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1416
2160
  key: z.ZodString;
1417
2161
  type: z.ZodLiteral<"text">;
1418
2162
  label: z.ZodOptional<z.ZodString>;
1419
2163
  value: z.ZodString;
2164
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2165
+ offset: z.ZodNumber;
2166
+ length: z.ZodNumber;
2167
+ }, z.core.$strict>>>;
1420
2168
  }, z.core.$strict>, z.ZodObject<{
1421
2169
  key: z.ZodString;
1422
2170
  type: z.ZodLiteral<"fields">;
@@ -1425,11 +2173,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1425
2173
  value: z.ZodString;
1426
2174
  }, z.core.$strict>>;
1427
2175
  }, z.core.$strict>], "type">>;
1428
- bodyRefs: z.ZodArray<z.ZodObject<{
1429
- key: z.ZodString;
1430
- label: z.ZodOptional<z.ZodString>;
1431
- }, z.core.$strict>>;
1432
- footer: z.ZodOptional<z.ZodString>;
1433
2176
  }, z.core.$strict>], "key">>;
1434
2177
  channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1435
2178
  qq: "qq";
@@ -1444,11 +2187,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1444
2187
  key: z.ZodString;
1445
2188
  label: z.ZodString;
1446
2189
  }, z.core.$strict>>;
2190
+ bodyRefs: z.ZodArray<z.ZodObject<{
2191
+ key: z.ZodString;
2192
+ label: z.ZodOptional<z.ZodString>;
2193
+ }, z.core.$strict>>;
2194
+ footer: z.ZodOptional<z.ZodString>;
2195
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2196
+ offset: z.ZodNumber;
2197
+ length: z.ZodNumber;
2198
+ }, z.core.$strict>>>;
1447
2199
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1448
2200
  key: z.ZodString;
1449
2201
  type: z.ZodLiteral<"text">;
1450
2202
  label: z.ZodOptional<z.ZodString>;
1451
2203
  value: z.ZodString;
2204
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2205
+ offset: z.ZodNumber;
2206
+ length: z.ZodNumber;
2207
+ }, z.core.$strict>>>;
1452
2208
  }, z.core.$strict>, z.ZodObject<{
1453
2209
  key: z.ZodString;
1454
2210
  type: z.ZodLiteral<"fields">;
@@ -1457,11 +2213,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1457
2213
  value: z.ZodString;
1458
2214
  }, z.core.$strict>>;
1459
2215
  }, z.core.$strict>], "type">>;
1460
- bodyRefs: z.ZodArray<z.ZodObject<{
1461
- key: z.ZodString;
1462
- label: z.ZodOptional<z.ZodString>;
1463
- }, z.core.$strict>>;
1464
- footer: z.ZodOptional<z.ZodString>;
1465
2216
  }, z.core.$strict>, z.ZodObject<{
1466
2217
  key: z.ZodLiteral<"zh-CN">;
1467
2218
  title: z.ZodString;
@@ -1470,11 +2221,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1470
2221
  key: z.ZodString;
1471
2222
  label: z.ZodString;
1472
2223
  }, z.core.$strict>>;
2224
+ bodyRefs: z.ZodArray<z.ZodObject<{
2225
+ key: z.ZodString;
2226
+ label: z.ZodOptional<z.ZodString>;
2227
+ }, z.core.$strict>>;
2228
+ footer: z.ZodOptional<z.ZodString>;
2229
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2230
+ offset: z.ZodNumber;
2231
+ length: z.ZodNumber;
2232
+ }, z.core.$strict>>>;
1473
2233
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1474
2234
  key: z.ZodString;
1475
2235
  type: z.ZodLiteral<"text">;
1476
2236
  label: z.ZodOptional<z.ZodString>;
1477
2237
  value: z.ZodString;
2238
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2239
+ offset: z.ZodNumber;
2240
+ length: z.ZodNumber;
2241
+ }, z.core.$strict>>>;
1478
2242
  }, z.core.$strict>, z.ZodObject<{
1479
2243
  key: z.ZodString;
1480
2244
  type: z.ZodLiteral<"fields">;
@@ -1483,13 +2247,18 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1483
2247
  value: z.ZodString;
1484
2248
  }, z.core.$strict>>;
1485
2249
  }, z.core.$strict>], "type">>;
1486
- bodyRefs: z.ZodArray<z.ZodObject<{
1487
- key: z.ZodString;
1488
- label: z.ZodOptional<z.ZodString>;
1489
- }, z.core.$strict>>;
1490
- footer: z.ZodOptional<z.ZodString>;
1491
2250
  }, z.core.$strict>], "key">>>>;
1492
2251
  }, z.core.$strict>;
2252
+ audience: z.ZodOptional<z.ZodObject<{
2253
+ topics: z.ZodArray<z.ZodString>;
2254
+ }, z.core.$strict>>;
2255
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2256
+ locale: z.ZodString;
2257
+ contentLocale: z.ZodString;
2258
+ title: z.ZodString;
2259
+ body: z.ZodString;
2260
+ url: z.ZodString;
2261
+ }, z.core.$strict>>>;
1493
2262
  routeKeys: z.ZodArray<z.ZodString>;
1494
2263
  eventType: z.ZodLiteral<"notification.delivery.requested">;
1495
2264
  eventId: z.ZodString;
@@ -1506,17 +2275,7 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1506
2275
  revision: z.ZodNumber;
1507
2276
  }, z.core.$strict>;
1508
2277
  }, z.core.$strict>, z.ZodObject<{
1509
- contractVersion: z.ZodLiteral<9>;
1510
- audience: z.ZodOptional<z.ZodObject<{
1511
- topics: z.ZodArray<z.ZodString>;
1512
- }, z.core.$strict>>;
1513
- browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1514
- locale: z.ZodString;
1515
- contentLocale: z.ZodString;
1516
- title: z.ZodString;
1517
- body: z.ZodString;
1518
- url: z.ZodString;
1519
- }, z.core.$strict>>>;
2278
+ contractVersion: z.ZodLiteral<11>;
1520
2279
  message: z.ZodObject<{
1521
2280
  type: z.ZodLiteral<"structured_notification">;
1522
2281
  links: z.ZodArray<z.ZodObject<{
@@ -1526,6 +2285,10 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1526
2285
  bodies: z.ZodArray<z.ZodObject<{
1527
2286
  key: z.ZodString;
1528
2287
  value: z.ZodString;
2288
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2289
+ offset: z.ZodNumber;
2290
+ length: z.ZodNumber;
2291
+ }, z.core.$strict>>>;
1529
2292
  }, z.core.$strict>>;
1530
2293
  variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1531
2294
  key: z.ZodLiteral<"source">;
@@ -1535,11 +2298,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1535
2298
  key: z.ZodString;
1536
2299
  label: z.ZodString;
1537
2300
  }, z.core.$strict>>;
2301
+ bodyRefs: z.ZodArray<z.ZodObject<{
2302
+ key: z.ZodString;
2303
+ label: z.ZodOptional<z.ZodString>;
2304
+ }, z.core.$strict>>;
2305
+ footer: z.ZodOptional<z.ZodString>;
2306
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2307
+ offset: z.ZodNumber;
2308
+ length: z.ZodNumber;
2309
+ }, z.core.$strict>>>;
1538
2310
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1539
2311
  key: z.ZodString;
1540
2312
  type: z.ZodLiteral<"text">;
1541
2313
  label: z.ZodOptional<z.ZodString>;
1542
2314
  value: z.ZodString;
2315
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2316
+ offset: z.ZodNumber;
2317
+ length: z.ZodNumber;
2318
+ }, z.core.$strict>>>;
1543
2319
  }, z.core.$strict>, z.ZodObject<{
1544
2320
  key: z.ZodString;
1545
2321
  type: z.ZodLiteral<"fields">;
@@ -1548,11 +2324,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1548
2324
  value: z.ZodString;
1549
2325
  }, z.core.$strict>>;
1550
2326
  }, z.core.$strict>], "type">>;
1551
- bodyRefs: z.ZodArray<z.ZodObject<{
1552
- key: z.ZodString;
1553
- label: z.ZodOptional<z.ZodString>;
1554
- }, z.core.$strict>>;
1555
- footer: z.ZodOptional<z.ZodString>;
1556
2327
  }, z.core.$strict>, z.ZodObject<{
1557
2328
  key: z.ZodLiteral<"zh-CN">;
1558
2329
  title: z.ZodString;
@@ -1561,11 +2332,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1561
2332
  key: z.ZodString;
1562
2333
  label: z.ZodString;
1563
2334
  }, z.core.$strict>>;
2335
+ bodyRefs: z.ZodArray<z.ZodObject<{
2336
+ key: z.ZodString;
2337
+ label: z.ZodOptional<z.ZodString>;
2338
+ }, z.core.$strict>>;
2339
+ footer: z.ZodOptional<z.ZodString>;
2340
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2341
+ offset: z.ZodNumber;
2342
+ length: z.ZodNumber;
2343
+ }, z.core.$strict>>>;
1564
2344
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1565
2345
  key: z.ZodString;
1566
2346
  type: z.ZodLiteral<"text">;
1567
2347
  label: z.ZodOptional<z.ZodString>;
1568
2348
  value: z.ZodString;
2349
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2350
+ offset: z.ZodNumber;
2351
+ length: z.ZodNumber;
2352
+ }, z.core.$strict>>>;
1569
2353
  }, z.core.$strict>, z.ZodObject<{
1570
2354
  key: z.ZodString;
1571
2355
  type: z.ZodLiteral<"fields">;
@@ -1574,11 +2358,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1574
2358
  value: z.ZodString;
1575
2359
  }, z.core.$strict>>;
1576
2360
  }, z.core.$strict>], "type">>;
1577
- bodyRefs: z.ZodArray<z.ZodObject<{
1578
- key: z.ZodString;
1579
- label: z.ZodOptional<z.ZodString>;
1580
- }, z.core.$strict>>;
1581
- footer: z.ZodOptional<z.ZodString>;
1582
2361
  }, z.core.$strict>], "key">>;
1583
2362
  channelVariants: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1584
2363
  qq: "qq";
@@ -1593,11 +2372,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1593
2372
  key: z.ZodString;
1594
2373
  label: z.ZodString;
1595
2374
  }, z.core.$strict>>;
2375
+ bodyRefs: z.ZodArray<z.ZodObject<{
2376
+ key: z.ZodString;
2377
+ label: z.ZodOptional<z.ZodString>;
2378
+ }, z.core.$strict>>;
2379
+ footer: z.ZodOptional<z.ZodString>;
2380
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2381
+ offset: z.ZodNumber;
2382
+ length: z.ZodNumber;
2383
+ }, z.core.$strict>>>;
1596
2384
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1597
2385
  key: z.ZodString;
1598
2386
  type: z.ZodLiteral<"text">;
1599
2387
  label: z.ZodOptional<z.ZodString>;
1600
2388
  value: z.ZodString;
2389
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2390
+ offset: z.ZodNumber;
2391
+ length: z.ZodNumber;
2392
+ }, z.core.$strict>>>;
1601
2393
  }, z.core.$strict>, z.ZodObject<{
1602
2394
  key: z.ZodString;
1603
2395
  type: z.ZodLiteral<"fields">;
@@ -1606,11 +2398,6 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1606
2398
  value: z.ZodString;
1607
2399
  }, z.core.$strict>>;
1608
2400
  }, z.core.$strict>], "type">>;
1609
- bodyRefs: z.ZodArray<z.ZodObject<{
1610
- key: z.ZodString;
1611
- label: z.ZodOptional<z.ZodString>;
1612
- }, z.core.$strict>>;
1613
- footer: z.ZodOptional<z.ZodString>;
1614
2401
  }, z.core.$strict>, z.ZodObject<{
1615
2402
  key: z.ZodLiteral<"zh-CN">;
1616
2403
  title: z.ZodString;
@@ -1619,11 +2406,24 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1619
2406
  key: z.ZodString;
1620
2407
  label: z.ZodString;
1621
2408
  }, z.core.$strict>>;
2409
+ bodyRefs: z.ZodArray<z.ZodObject<{
2410
+ key: z.ZodString;
2411
+ label: z.ZodOptional<z.ZodString>;
2412
+ }, z.core.$strict>>;
2413
+ footer: z.ZodOptional<z.ZodString>;
2414
+ titleQuotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2415
+ offset: z.ZodNumber;
2416
+ length: z.ZodNumber;
2417
+ }, z.core.$strict>>>;
1622
2418
  sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1623
2419
  key: z.ZodString;
1624
2420
  type: z.ZodLiteral<"text">;
1625
2421
  label: z.ZodOptional<z.ZodString>;
1626
2422
  value: z.ZodString;
2423
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2424
+ offset: z.ZodNumber;
2425
+ length: z.ZodNumber;
2426
+ }, z.core.$strict>>>;
1627
2427
  }, z.core.$strict>, z.ZodObject<{
1628
2428
  key: z.ZodString;
1629
2429
  type: z.ZodLiteral<"fields">;
@@ -1632,13 +2432,52 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
1632
2432
  value: z.ZodString;
1633
2433
  }, z.core.$strict>>;
1634
2434
  }, z.core.$strict>], "type">>;
1635
- bodyRefs: z.ZodArray<z.ZodObject<{
1636
- key: z.ZodString;
1637
- label: z.ZodOptional<z.ZodString>;
1638
- }, z.core.$strict>>;
1639
- footer: z.ZodOptional<z.ZodString>;
1640
2435
  }, z.core.$strict>], "key">>>>;
2436
+ channelFormats: z.ZodOptional<z.ZodObject<{
2437
+ qq: z.ZodOptional<z.ZodEnum<{
2438
+ auto: "auto";
2439
+ markdown: "markdown";
2440
+ plain_text: "plain_text";
2441
+ }>>;
2442
+ tg: z.ZodOptional<z.ZodEnum<{
2443
+ auto: "auto";
2444
+ plain_text: "plain_text";
2445
+ rich_text: "rich_text";
2446
+ }>>;
2447
+ }, z.core.$strict>>;
2448
+ channelBodies: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
2449
+ qq: "qq";
2450
+ tg: "tg";
2451
+ wechat: "wechat";
2452
+ lark: "lark";
2453
+ }> & z.core.$partial, z.ZodArray<z.ZodObject<{
2454
+ key: z.ZodString;
2455
+ value: z.ZodString;
2456
+ quotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2457
+ offset: z.ZodNumber;
2458
+ length: z.ZodNumber;
2459
+ }, z.core.$strict>>>;
2460
+ }, z.core.$strict>>>>;
2461
+ channelLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
2462
+ qq: "qq";
2463
+ tg: "tg";
2464
+ wechat: "wechat";
2465
+ lark: "lark";
2466
+ }> & z.core.$partial, z.ZodArray<z.ZodObject<{
2467
+ key: z.ZodString;
2468
+ url: z.ZodString;
2469
+ }, z.core.$strict>>>>;
1641
2470
  }, z.core.$strict>;
2471
+ audience: z.ZodOptional<z.ZodObject<{
2472
+ topics: z.ZodArray<z.ZodString>;
2473
+ }, z.core.$strict>>;
2474
+ browserMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2475
+ locale: z.ZodString;
2476
+ contentLocale: z.ZodString;
2477
+ title: z.ZodString;
2478
+ body: z.ZodString;
2479
+ url: z.ZodString;
2480
+ }, z.core.$strict>>>;
1642
2481
  routeKeys: z.ZodArray<z.ZodString>;
1643
2482
  eventType: z.ZodLiteral<"notification.delivery.requested">;
1644
2483
  eventId: z.ZodString;
@@ -2913,4 +3752,4 @@ interface NotificationMessageDeliveryServiceV4 {
2913
3752
  /** Multi-route message delivery; historical requests and receipts remain supported. */
2914
3753
  interface NotificationMessageDeliveryServiceV5 extends NotificationMessageDeliveryServiceV4 {}
2915
3754
  //#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 };
3755
+ export { CreatorDraftTaskV1, LocalTaskDeliverResultV1, LocalTaskDeliveryReceiptV1, LocalTaskDeliveryRequest, LocalTaskDeliveryRequestV1, LocalTaskDeliveryServiceV1, LocalTaskGetReceiptResultV1, NotificationBrowserMessage, type NotificationBrowserPayload, NotificationChannelFormats, NotificationDeliverResultV1, NotificationDeliverResultV2, NotificationDeliveryChannelKey, NotificationDeliveryReceiptV1, NotificationDeliveryReceiptV2, NotificationDeliveryReceiptV3, NotificationDeliveryRejectionV1, NotificationDeliveryRequest, NotificationDeliveryRequestV1, NotificationDeliveryRequestV10, NotificationDeliveryRequestV11, 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, notificationChannelFormatsSchema, notificationDeliverResultV1Schema, notificationDeliverResultV2Schema, notificationDeliveryChannelKeys, notificationDeliveryContractVersionV1, notificationDeliveryContractVersionV10, notificationDeliveryContractVersionV11, notificationDeliveryContractVersionV2, notificationDeliveryContractVersionV3, notificationDeliveryContractVersionV4, notificationDeliveryContractVersionV5, notificationDeliveryContractVersionV7, notificationDeliveryContractVersionV8, notificationDeliveryContractVersionV9, notificationDeliveryMaximumDeadlineMillisecondsV1, notificationDeliveryMaximumDeadlineMillisecondsV2, notificationDeliveryMaximumDeadlineMillisecondsV3, notificationDeliveryMaximumDeadlineMillisecondsV4, notificationDeliveryMaximumDeadlineMillisecondsV5, notificationDeliveryMaximumDestinationsV1, notificationDeliveryReasonsV1, notificationDeliveryReasonsV2, notificationDeliveryReceiptV1Schema, notificationDeliveryReceiptV2Schema, notificationDeliveryReceiptV3Schema, notificationDeliveryRejectionCodesV1, notificationDeliveryRejectionV1Schema, notificationDeliveryRequestMaximumUtf8BytesV1, notificationDeliveryRequestMaximumUtf8BytesV10, notificationDeliveryRequestMaximumUtf8BytesV11, notificationDeliveryRequestMaximumUtf8BytesV2, notificationDeliveryRequestMaximumUtf8BytesV3, notificationDeliveryRequestMaximumUtf8BytesV4, notificationDeliveryRequestMaximumUtf8BytesV5, notificationDeliveryRequestMaximumUtf8BytesV9, notificationDeliveryRequestSchema, notificationDeliveryRequestV10Schema, notificationDeliveryRequestV11Schema, notificationDeliveryRequestV1Schema, notificationDeliveryRequestV2Schema, notificationDeliveryRequestV3Schema, notificationDeliveryRequestV4Schema, notificationDeliveryRequestV5Schema, notificationDeliveryRequestV6Schema, notificationDeliveryRequestV7Schema, notificationDeliveryRequestV8Schema, notificationDeliveryRequestV9Schema, notificationDeliveryStatesV1, notificationDeliveryStatesV2, notificationDestinationFailureCodesV1, notificationDestinationStatesV1, notificationDestinationStatesV2, notificationGetReceiptResultV1Schema, notificationGetReceiptResultV2Schema, notificationMessageReceiptSchema, notificationMessageVariantKeys, notificationQuoteRangeSchema, notificationRouteKeys, notificationValidationIssueCodesV1, safeDeliveryCauseSchema };