@rongcloud/engine 5.40.0-alpha.1 → 5.40.0-alpha.3
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/index.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +380 -77
- package/index.esm.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -557,8 +557,20 @@ declare const Log: {
|
|
|
557
557
|
readonly L_PULL_SG_UNREAD_COUNT_R: "L-pull_sg_unread_count-R";
|
|
558
558
|
readonly A_MARK_REMOTE_CONVERSATION_AS_READ_T: "A-mark_remote_conversation_as_read-T";
|
|
559
559
|
readonly A_MARK_REMOTE_CONVERSATION_AS_READ_R: "A-mark_remote_conversation_as_read-R";
|
|
560
|
+
readonly A_ADD_MSG_REACTION_T: "A-add_msg_reaction-T";
|
|
561
|
+
readonly A_ADD_MSG_REACTION_R: "A-add_msg_reaction-R";
|
|
562
|
+
readonly A_REMOVE_MSG_REACTION_T: "A-remove_msg_reaction-T";
|
|
563
|
+
readonly A_REMOVE_MSG_REACTION_R: "A-remove_msg_reaction-R";
|
|
564
|
+
readonly A_BATCH_GET_MSG_REACTION_SUMMARIES_T: "A-batch_get_msg_reaction_summaries-T";
|
|
565
|
+
readonly A_BATCH_GET_MSG_REACTION_SUMMARIES_R: "A-batch_get_msg_reaction_summaries-R";
|
|
566
|
+
readonly A_GET_MSG_REACTIONS_T: "A-get_msg_reactions-T";
|
|
567
|
+
readonly A_GET_MSG_REACTIONS_R: "A-get_msg_reactions-R";
|
|
568
|
+
readonly A_GET_MSG_REACTION_USERS_T: "A-get_msg_reaction_users-T";
|
|
569
|
+
readonly A_GET_MSG_REACTION_USERS_R: "A-get_msg_reaction_users-R";
|
|
560
570
|
/** 执行自定义会话存储淘汰策略异常 */
|
|
561
571
|
readonly L_EXEC_CUSTOM_CONVERSATION_STORAGE_EVICTION_E: "L-exec_custom_conversation_storage_eviction-E";
|
|
572
|
+
readonly A_GET_MESSAGES_T: "A-get_msgs-T";
|
|
573
|
+
readonly A_GET_MESSAGES_R: "A-get_msgs-R";
|
|
562
574
|
};
|
|
563
575
|
|
|
564
576
|
/**
|
|
@@ -963,7 +975,7 @@ declare enum ErrorCode {
|
|
|
963
975
|
REJECTED_BY_BLACKLIST = 405,
|
|
964
976
|
/**
|
|
965
977
|
* 407
|
|
966
|
-
*
|
|
978
|
+
* 对方开启了只接收白名单的信息,但己方不在白名单中,发送消息失败。
|
|
967
979
|
*/
|
|
968
980
|
NOT_IN_WHITELIST = 407,
|
|
969
981
|
/**
|
|
@@ -980,31 +992,31 @@ declare enum ErrorCode {
|
|
|
980
992
|
SYS_CONVERSATION_NOT_SUPPORT_MESSAGE = 20109,
|
|
981
993
|
/**
|
|
982
994
|
* 20112
|
|
983
|
-
*
|
|
995
|
+
* 消息内容存在敏感词。
|
|
984
996
|
* @since 5.26.0
|
|
985
997
|
*/
|
|
986
998
|
DANGEROUS_CONTENT = 20112,
|
|
987
999
|
/**
|
|
988
1000
|
* 20113
|
|
989
|
-
*
|
|
1001
|
+
* 消息内容未通过审核。
|
|
990
1002
|
* @since 5.26.0
|
|
991
1003
|
*/
|
|
992
1004
|
CONTENT_REVIEW_REJECTED = 20113,
|
|
993
1005
|
/**
|
|
994
1006
|
* 20114
|
|
995
|
-
*
|
|
1007
|
+
* 消息超过可修改时间。
|
|
996
1008
|
* @since 5.26.0
|
|
997
1009
|
*/
|
|
998
1010
|
MESSAGE_OVER_MODIFY_TIME_FAIL = 20114,
|
|
999
1011
|
/**
|
|
1000
1012
|
* 20115
|
|
1001
|
-
*
|
|
1013
|
+
* 消息大小超出限制。
|
|
1002
1014
|
* @since 5.26.0
|
|
1003
1015
|
*/
|
|
1004
1016
|
MESSAGE_SIZE_EXCEEDED = 20115,
|
|
1005
1017
|
/**
|
|
1006
1018
|
* 20116
|
|
1007
|
-
*
|
|
1019
|
+
* 消息不支持修改。
|
|
1008
1020
|
* @since 5.26.0
|
|
1009
1021
|
*/
|
|
1010
1022
|
MESSAGE_UNSUPPORTED_MODIFY = 20116,
|
|
@@ -1021,7 +1033,7 @@ declare enum ErrorCode {
|
|
|
1021
1033
|
SEND_FREQUENCY_TOO_FAST = 20604,
|
|
1022
1034
|
/**
|
|
1023
1035
|
* 20605
|
|
1024
|
-
*
|
|
1036
|
+
* 操作被禁止,此错误码已被弃用。
|
|
1025
1037
|
*/
|
|
1026
1038
|
OPERATION_BLOCKED = 20605,
|
|
1027
1039
|
/**
|
|
@@ -1227,7 +1239,7 @@ declare enum ErrorCode {
|
|
|
1227
1239
|
RC_USER_PROFILE_QUERY_COUNT_EXCEED_LIMIT = 24365,
|
|
1228
1240
|
/**
|
|
1229
1241
|
* 24366
|
|
1230
|
-
*
|
|
1242
|
+
* 未在用户托管业务中查询到此用户应用号。
|
|
1231
1243
|
* @since 5.9.10
|
|
1232
1244
|
*/
|
|
1233
1245
|
RC_USER_PROFILE_USER_NOT_EXIST = 24366,
|
|
@@ -1286,7 +1298,7 @@ declare enum ErrorCode {
|
|
|
1286
1298
|
ULTRA_GROUP_NOT_EXIST = 24410,
|
|
1287
1299
|
/**
|
|
1288
1300
|
* 24411
|
|
1289
|
-
*
|
|
1301
|
+
* 超级群成员超限制。
|
|
1290
1302
|
*/
|
|
1291
1303
|
ULTRA_GROUP_MEMBERS_OVERSIZE = 24411,
|
|
1292
1304
|
/**
|
|
@@ -1602,18 +1614,18 @@ declare enum ErrorCode {
|
|
|
1602
1614
|
RC_FRIEND_NOT_ALLOW_ADD_SELF = 25473,
|
|
1603
1615
|
/**
|
|
1604
1616
|
* 25474
|
|
1605
|
-
*
|
|
1617
|
+
* 不支持添加机器人为好友。
|
|
1606
1618
|
*/
|
|
1607
1619
|
RC_FRIEND_NOT_SUPPORT_ROBOT = 25474,
|
|
1608
1620
|
/**
|
|
1609
1621
|
* 25480
|
|
1610
|
-
*
|
|
1622
|
+
* 托管资料信息审核不通过。
|
|
1611
1623
|
* @since 5.16.0
|
|
1612
1624
|
*/
|
|
1613
1625
|
SERVICE_INFORMATION_AUDIT_FAILED = 25480,
|
|
1614
1626
|
/**
|
|
1615
1627
|
* 26001
|
|
1616
|
-
*
|
|
1628
|
+
* 用户级设置服务,请求参数不合法。
|
|
1617
1629
|
*/
|
|
1618
1630
|
PUSH_PARAMETER_INVALID = 26001,
|
|
1619
1631
|
/**
|
|
@@ -1633,12 +1645,12 @@ declare enum ErrorCode {
|
|
|
1633
1645
|
RC_READ_RECEIPT_V4_INVALID = 26005,
|
|
1634
1646
|
/**
|
|
1635
1647
|
* 26006
|
|
1636
|
-
*
|
|
1648
|
+
* 未开通会话驱动。
|
|
1637
1649
|
*/
|
|
1638
1650
|
RC_SERVER_DRIVE_UNREAD_COUNT_INVALID = 26006,
|
|
1639
1651
|
/**
|
|
1640
1652
|
* 26007
|
|
1641
|
-
* 消息 ID
|
|
1653
|
+
* 消息 ID 顺序错误。
|
|
1642
1654
|
*/
|
|
1643
1655
|
RC_SERVER_PARAMETER_MESSAGEUIDS_CONFUSED = 26007,
|
|
1644
1656
|
/**
|
|
@@ -1678,37 +1690,37 @@ declare enum ErrorCode {
|
|
|
1678
1690
|
INVALID_PARAMETER_SIZE_NOT_FOUND = 26107,
|
|
1679
1691
|
/**
|
|
1680
1692
|
* 26314
|
|
1681
|
-
* 未开通v5
|
|
1693
|
+
* 未开通 v5 已读回执。
|
|
1682
1694
|
*/
|
|
1683
1695
|
SERVICE_RRSV5_UNAVAILABLE = 26314,
|
|
1684
1696
|
/**
|
|
1685
1697
|
* 26315
|
|
1686
|
-
*
|
|
1698
|
+
* 不支持的已读回执方式。
|
|
1687
1699
|
*/
|
|
1688
1700
|
SERVICE_RRSV5_READ_RECEIPT_NOT_SUPPORT = 26315,
|
|
1689
1701
|
/**
|
|
1690
1702
|
* 26316
|
|
1691
|
-
*
|
|
1703
|
+
* 参数长度超限。
|
|
1692
1704
|
*/
|
|
1693
1705
|
SERVICE_RRSV5_PARAM_LENGTH_EXCEED = 26316,
|
|
1694
1706
|
/**
|
|
1695
1707
|
* 26317
|
|
1696
|
-
*
|
|
1708
|
+
* 不支持的会话类型。
|
|
1697
1709
|
*/
|
|
1698
1710
|
SERVICE_RRSV5_CONVERSATION_NOT_SUPPORT = 26317,
|
|
1699
1711
|
/**
|
|
1700
1712
|
* 26318
|
|
1701
|
-
*
|
|
1713
|
+
* 不支持的已读查询类型。
|
|
1702
1714
|
*/
|
|
1703
1715
|
SERVICE_RRSV5_QUERY_NOT_SUPPORT = 26318,
|
|
1704
1716
|
/**
|
|
1705
1717
|
* 26320
|
|
1706
|
-
*
|
|
1718
|
+
* 非消息发送者。
|
|
1707
1719
|
*/
|
|
1708
1720
|
SERVICE_RRSV5_MESSAGE_SENDER_MISMATCH = 26320,
|
|
1709
1721
|
/**
|
|
1710
1722
|
* 26321
|
|
1711
|
-
*
|
|
1723
|
+
* 消息为不需要回执类型。
|
|
1712
1724
|
*/
|
|
1713
1725
|
SERVICE_RRSV5_MESSAGE_RECEIPT_NEEDLESS = 26321,
|
|
1714
1726
|
/**
|
|
@@ -1718,27 +1730,27 @@ declare enum ErrorCode {
|
|
|
1718
1730
|
SERVICE_RRSV5_MESSAGE_NOT_EXIST = 26322,
|
|
1719
1731
|
/**
|
|
1720
1732
|
* 28300
|
|
1721
|
-
*
|
|
1733
|
+
* 语音转换服务未开启。
|
|
1722
1734
|
*/
|
|
1723
1735
|
SERVICE_STT_UNAVAILABLE = 28300,
|
|
1724
1736
|
/**
|
|
1725
1737
|
* 28304
|
|
1726
|
-
* stt
|
|
1738
|
+
* stt转换失败。
|
|
1727
1739
|
*/
|
|
1728
1740
|
SERVICE_STT_CONVERTED_FAILED = 28304,
|
|
1729
1741
|
/**
|
|
1730
1742
|
* 28305
|
|
1731
|
-
*
|
|
1743
|
+
* 语音转文本服务异常。
|
|
1732
1744
|
*/
|
|
1733
1745
|
SERVICE_STT_INTERNAL_ERROR = 28305,
|
|
1734
1746
|
/**
|
|
1735
1747
|
* 28306
|
|
1736
|
-
*
|
|
1748
|
+
* 语音转文本参数缺失。
|
|
1737
1749
|
*/
|
|
1738
1750
|
SERVICE_STT_PARAM_MISS = 28306,
|
|
1739
1751
|
/**
|
|
1740
1752
|
* 28307
|
|
1741
|
-
*
|
|
1753
|
+
* 用量超过限制。
|
|
1742
1754
|
*/
|
|
1743
1755
|
SERVICE_STT_USAGE_EXCEED = 28307,
|
|
1744
1756
|
/**
|
|
@@ -2000,7 +2012,7 @@ declare enum ErrorCode {
|
|
|
2000
2012
|
RC_CONN_TOKEN_EXPIRED = 31020,
|
|
2001
2013
|
/**
|
|
2002
2014
|
* 31021
|
|
2003
|
-
* Token 中携带 Device ID 时,检测 Token 中 Device ID 与链接设备 Device ID
|
|
2015
|
+
* Token 中携带 Device ID 时,检测 Token 中 Device ID 与链接设备 Device ID 不一致。
|
|
2004
2016
|
* @since 5.7.0
|
|
2005
2017
|
*/
|
|
2006
2018
|
RC_CONN_DEVICE_ERROR = 31021,
|
|
@@ -2089,7 +2101,7 @@ declare enum ErrorCode {
|
|
|
2089
2101
|
CONNECTION_REFUSED = 32061,
|
|
2090
2102
|
/**
|
|
2091
2103
|
* 32546
|
|
2092
|
-
* 服务端解析客户端协议的密钥不正确或者 server ack code
|
|
2104
|
+
* 服务端解析客户端协议的密钥不正确或者 server ack code 返回不和符合预期。
|
|
2093
2105
|
*/
|
|
2094
2106
|
PROTOCOL_DECODE_ERROR = 32546,
|
|
2095
2107
|
/**
|
|
@@ -2123,7 +2135,7 @@ declare enum ErrorCode {
|
|
|
2123
2135
|
BIZ_ERROR_NO_CHANNEL = 33004,
|
|
2124
2136
|
/**
|
|
2125
2137
|
* 33005
|
|
2126
|
-
*
|
|
2138
|
+
* 重新连接成功。
|
|
2127
2139
|
*/
|
|
2128
2140
|
BIZ_ERROR_RECONNECT_SUCCESS = 33005,
|
|
2129
2141
|
/**
|
|
@@ -2176,21 +2188,39 @@ declare enum ErrorCode {
|
|
|
2176
2188
|
METHOD_BUSY = 33103,
|
|
2177
2189
|
/**
|
|
2178
2190
|
* 33302
|
|
2179
|
-
* SDK
|
|
2191
|
+
* SDK 拉取远端会话列表失败。
|
|
2180
2192
|
*/
|
|
2181
2193
|
SDK_PULL_CONVERSATION = 33302,
|
|
2182
2194
|
/**
|
|
2183
2195
|
* 33401
|
|
2184
|
-
*
|
|
2196
|
+
* 被编辑消息是接收的或者没有发送成功的。
|
|
2185
2197
|
* @since 5.26.0
|
|
2186
2198
|
*/
|
|
2187
2199
|
MODIFIED_MESSAGE_IS_NOT_SENT = 33401,
|
|
2188
2200
|
/**
|
|
2189
2201
|
* 33402
|
|
2190
|
-
*
|
|
2202
|
+
* 被编辑的消息超过修改时限。
|
|
2191
2203
|
* @since 5.26.0
|
|
2192
2204
|
*/
|
|
2193
2205
|
MODIFIED_MESSAGE_TIMEOUT = 33402,
|
|
2206
|
+
/**
|
|
2207
|
+
* 33403
|
|
2208
|
+
* 引用消息不存在。
|
|
2209
|
+
* @since 5.38.0
|
|
2210
|
+
*/
|
|
2211
|
+
QUOTE_MSG_NOT_FOUND = 33403,
|
|
2212
|
+
/**
|
|
2213
|
+
* 33404
|
|
2214
|
+
* 引用信息不合法。
|
|
2215
|
+
* @since 5.38.0
|
|
2216
|
+
*/
|
|
2217
|
+
INVALID_PARAMETER_QUOTE_INFO = 33404,
|
|
2218
|
+
/**
|
|
2219
|
+
* 33405
|
|
2220
|
+
* 消息回应无效,ID 要求字符长度不超出 16。
|
|
2221
|
+
* @since 5.40.0
|
|
2222
|
+
*/
|
|
2223
|
+
REACTION_ID_INVALID = 33405,
|
|
2194
2224
|
/**
|
|
2195
2225
|
* 34001
|
|
2196
2226
|
* 连接已存在。
|
|
@@ -2199,7 +2229,7 @@ declare enum ErrorCode {
|
|
|
2199
2229
|
RC_CONNECTION_EXIST = 34001,
|
|
2200
2230
|
/**
|
|
2201
2231
|
* 34005
|
|
2202
|
-
*
|
|
2232
|
+
* SDK 连接的环境配置不正确。
|
|
2203
2233
|
* @since 5.2.0
|
|
2204
2234
|
*/
|
|
2205
2235
|
PACKAGE_ENVIRONMENT_ERROR = 34005,
|
|
@@ -2276,7 +2306,7 @@ declare enum ErrorCode {
|
|
|
2276
2306
|
METHOD_NOT_SUPPORT = 34022,
|
|
2277
2307
|
/**
|
|
2278
2308
|
* 34024
|
|
2279
|
-
*
|
|
2309
|
+
* 超级群频道不存在。
|
|
2280
2310
|
* @since 5.2.0
|
|
2281
2311
|
*/
|
|
2282
2312
|
ULTRA_GROUP_CHANNEL_NOT_EXIST = 34024,
|
|
@@ -2319,7 +2349,7 @@ declare enum ErrorCode {
|
|
|
2319
2349
|
INVALID_PARAMETER_MESSAGE_CONTENT = 34205,
|
|
2320
2350
|
/**
|
|
2321
2351
|
* 34206
|
|
2322
|
-
*
|
|
2352
|
+
* 开发者接口调用时传入的 messageList 非法。
|
|
2323
2353
|
*/
|
|
2324
2354
|
MSG_LIMIT_ERROR = 34206,
|
|
2325
2355
|
/**
|
|
@@ -2803,37 +2833,37 @@ declare enum ErrorCode {
|
|
|
2803
2833
|
INVALID_PARAMETER_FRIEND_INFO_EXT_FIELDS = 34335,
|
|
2804
2834
|
/**
|
|
2805
2835
|
* 34336
|
|
2806
|
-
*
|
|
2836
|
+
* 实时会话未开启。
|
|
2807
2837
|
* @since 5.12.3
|
|
2808
2838
|
*/
|
|
2809
2839
|
RC_REAL_TIME_CONVERSATION_UNAVAILABLE = 34336,
|
|
2810
2840
|
/**
|
|
2811
2841
|
* 34344
|
|
2812
|
-
*
|
|
2842
|
+
* 服务器数据解析失败。
|
|
2813
2843
|
* @since 5.26.0
|
|
2814
2844
|
*/
|
|
2815
2845
|
SERVER_DATA_ERROR = 34344,
|
|
2816
2846
|
/**
|
|
2817
2847
|
* 34345
|
|
2818
|
-
* 参数 messageInfoMap
|
|
2848
|
+
* 参数 messageInfoMap 非法。
|
|
2819
2849
|
* @since 5.26.0
|
|
2820
2850
|
*/
|
|
2821
2851
|
INVALID_PARAMETER_MESSAGE_INFO_MAP = 34345,
|
|
2822
2852
|
/**
|
|
2823
2853
|
* 34435
|
|
2824
|
-
*
|
|
2854
|
+
* 服务端记录会话未读数功能开启时禁止调用此方法。
|
|
2825
2855
|
* @since 5.32.0
|
|
2826
2856
|
*/
|
|
2827
2857
|
SERVER_RECORD_UNREAD_COUNT_ENABLED_FORBIDDEN = 34435,
|
|
2828
2858
|
/**
|
|
2829
2859
|
* 34436
|
|
2830
|
-
*
|
|
2860
|
+
* 服务端记录会话未读数功能未开启。
|
|
2831
2861
|
* @since 5.32.0
|
|
2832
2862
|
*/
|
|
2833
2863
|
SERVER_RECORD_UNREAD_COUNT_DISABLED = 34436,
|
|
2834
2864
|
/**
|
|
2835
2865
|
* 34439
|
|
2836
|
-
*
|
|
2866
|
+
* 数据库磁盘空间已满。
|
|
2837
2867
|
*/
|
|
2838
2868
|
DATABASEDISKFULL = 34439,
|
|
2839
2869
|
/**
|
|
@@ -3044,37 +3074,37 @@ declare enum ErrorCode {
|
|
|
3044
3074
|
INVALID_PARAMETER_PUSH_DATA = 35050,
|
|
3045
3075
|
/**
|
|
3046
3076
|
* 35054
|
|
3047
|
-
* 传入的 disableUpdateLastMessage 参数无效。在会话类型为 ULTRA GROUP 时,该字段不允许设置为 true
|
|
3077
|
+
* 传入的 disableUpdateLastMessage 参数无效。在会话类型为 ULTRA GROUP 时,该字段不允许设置为 true。
|
|
3048
3078
|
* @since 5.12.2
|
|
3049
3079
|
*/
|
|
3050
3080
|
INVALID_DISABLE_UPDATE_LAST_MESSAGE = 35054,
|
|
3051
3081
|
/**
|
|
3052
3082
|
* 35055
|
|
3053
|
-
*
|
|
3083
|
+
* 超级群类型会话仅允许置顶默认频道。
|
|
3054
3084
|
* @since 5.20.0
|
|
3055
3085
|
*/
|
|
3056
3086
|
ONLY_DEFAULT_CHANNEL_SUPPORTS_PINNING = 35055,
|
|
3057
3087
|
/**
|
|
3058
3088
|
* 35056
|
|
3059
|
-
* 发送消息时配置 needReceipt 错误,相关参数仅限单群聊会话内非状态消息、非群定向消息可配置,且需要开启已读回执 v5
|
|
3089
|
+
* 发送消息时配置 needReceipt 错误,相关参数仅限单群聊会话内非状态消息、非群定向消息可配置,且需要开启已读回执 v5 功能。
|
|
3060
3090
|
* @since 5.20.0
|
|
3061
3091
|
*/
|
|
3062
3092
|
SEND_READ_RECEIPT_CONF_ERROR = 35056,
|
|
3063
3093
|
/**
|
|
3064
3094
|
* 35057
|
|
3065
|
-
*
|
|
3095
|
+
* 语音转文字功能未开启。
|
|
3066
3096
|
* @since 5.22.0
|
|
3067
3097
|
*/
|
|
3068
3098
|
SPEECH_TO_TEXT_DISABLE = 35057,
|
|
3069
3099
|
/**
|
|
3070
3100
|
* 35058
|
|
3071
|
-
*
|
|
3101
|
+
* 语音转文字请求进行中,请勿重复请求。
|
|
3072
3102
|
* @since 5.22.0
|
|
3073
3103
|
*/
|
|
3074
3104
|
SPEECH_TO_TEXT_REQUEST_IN_PROCESS = 35058,
|
|
3075
3105
|
/**
|
|
3076
3106
|
* 35059
|
|
3077
|
-
*
|
|
3107
|
+
* 语音内容不可转换,参数无效。
|
|
3078
3108
|
* @since 5.22.0
|
|
3079
3109
|
*/
|
|
3080
3110
|
SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED = 35059,
|
|
@@ -3116,7 +3146,7 @@ declare enum ErrorCode {
|
|
|
3116
3146
|
TRANSLATION_TEXT_INVALID = 35065,
|
|
3117
3147
|
/**
|
|
3118
3148
|
* 35066
|
|
3119
|
-
*
|
|
3149
|
+
* 消息被拦截,不发送。
|
|
3120
3150
|
* @since 5.24
|
|
3121
3151
|
*/
|
|
3122
3152
|
MSG_BLOCK_SEND = 35066,
|
|
@@ -3170,7 +3200,7 @@ declare enum ErrorCode {
|
|
|
3170
3200
|
DRAF_GET_ERROR = 38001,
|
|
3171
3201
|
/**
|
|
3172
3202
|
* 39001
|
|
3173
|
-
*
|
|
3203
|
+
* 流式消息不可用。
|
|
3174
3204
|
* @since 5.16.0
|
|
3175
3205
|
*/
|
|
3176
3206
|
STREAM_MESSAGE_DISABLE = 39001,
|
|
@@ -3194,13 +3224,13 @@ declare enum ErrorCode {
|
|
|
3194
3224
|
STREAM_MESSAGE_REQUEST_FAIL = 39005,
|
|
3195
3225
|
/**
|
|
3196
3226
|
* 39006
|
|
3197
|
-
*
|
|
3227
|
+
* 消息内容正在拉取中,请勿重复请求。
|
|
3198
3228
|
* @since 5.16.0
|
|
3199
3229
|
*/
|
|
3200
3230
|
STREAM_MESSAGE_REQUEST_IN_PROCESS = 39006,
|
|
3201
3231
|
/**
|
|
3202
3232
|
* 39007
|
|
3203
|
-
*
|
|
3233
|
+
* 流式消息已同步完成,不需要重新拉取。
|
|
3204
3234
|
* @since 5.16.0
|
|
3205
3235
|
*/
|
|
3206
3236
|
STREAM_MESSAGE_SYNCED = 39007,
|
|
@@ -3988,6 +4018,32 @@ declare const GroupReadReceiptVersion: {
|
|
|
3988
4018
|
};
|
|
3989
4019
|
declare type GroupReadReceiptVersion = typeof GroupReadReceiptVersion[keyof typeof GroupReadReceiptVersion];
|
|
3990
4020
|
|
|
4021
|
+
declare const QuoteMessageStatus: {
|
|
4022
|
+
/**
|
|
4023
|
+
* 默认状态。
|
|
4024
|
+
*/
|
|
4025
|
+
readonly DEFAULT: 0;
|
|
4026
|
+
/**
|
|
4027
|
+
* 引用消息被删除
|
|
4028
|
+
*/
|
|
4029
|
+
readonly DELETED: 1;
|
|
4030
|
+
/**
|
|
4031
|
+
* 引用消息被撤回
|
|
4032
|
+
*/
|
|
4033
|
+
readonly RECALLED: 2;
|
|
4034
|
+
};
|
|
4035
|
+
declare type QuoteMessageStatus = typeof QuoteMessageStatus[keyof typeof QuoteMessageStatus];
|
|
4036
|
+
|
|
4037
|
+
declare const MessageReactionType: {
|
|
4038
|
+
/** 添加消息回应 */
|
|
4039
|
+
readonly ADDED: 1;
|
|
4040
|
+
/** 移除消息回应 */
|
|
4041
|
+
readonly REMOVED: 2;
|
|
4042
|
+
/** 清空消息回应 */
|
|
4043
|
+
readonly CLEAN: 3;
|
|
4044
|
+
};
|
|
4045
|
+
declare type MessageReactionType = typeof MessageReactionType[keyof typeof MessageReactionType];
|
|
4046
|
+
|
|
3991
4047
|
/**
|
|
3992
4048
|
* 网络状态枚举
|
|
3993
4049
|
*/
|
|
@@ -5496,6 +5552,16 @@ interface IInnerMessage<T = any> {
|
|
|
5496
5552
|
* @since 5.30.1
|
|
5497
5553
|
*/
|
|
5498
5554
|
extraData?: IMessageExtraData;
|
|
5555
|
+
/**
|
|
5556
|
+
* 引用消息信息
|
|
5557
|
+
* @since 5.38.0
|
|
5558
|
+
*/
|
|
5559
|
+
quoteInfo?: IQuoteInfo;
|
|
5560
|
+
/**
|
|
5561
|
+
* 消息是否存在回应数据
|
|
5562
|
+
* @since 5.40
|
|
5563
|
+
*/
|
|
5564
|
+
hasReactions?: boolean;
|
|
5499
5565
|
}
|
|
5500
5566
|
/**
|
|
5501
5567
|
* 从服务端接收到的消息数据
|
|
@@ -5748,6 +5814,33 @@ interface IMessageSendOptions {
|
|
|
5748
5814
|
* @since 5.20.0
|
|
5749
5815
|
*/
|
|
5750
5816
|
needReceipt?: boolean;
|
|
5817
|
+
/**
|
|
5818
|
+
* 引用消息信息
|
|
5819
|
+
* @since 5.38.0
|
|
5820
|
+
*/
|
|
5821
|
+
quoteInfo?: IQuoteInfo;
|
|
5822
|
+
}
|
|
5823
|
+
/**
|
|
5824
|
+
* 引用消息信息
|
|
5825
|
+
* @since 5.38.0
|
|
5826
|
+
*/
|
|
5827
|
+
interface IQuoteInfo {
|
|
5828
|
+
/**
|
|
5829
|
+
* 引用消息类型
|
|
5830
|
+
*/
|
|
5831
|
+
objectName: string;
|
|
5832
|
+
/**
|
|
5833
|
+
* 引用消息 UId
|
|
5834
|
+
*/
|
|
5835
|
+
messageUId: string;
|
|
5836
|
+
/**
|
|
5837
|
+
* 引用消息发送者 ID
|
|
5838
|
+
*/
|
|
5839
|
+
senderId: string;
|
|
5840
|
+
/**
|
|
5841
|
+
* 引用消息状态,该状态值仅 Electron 平台有效,Web 平台始终为 QuoteMessageStatus.DEFAULT
|
|
5842
|
+
*/
|
|
5843
|
+
quoteMessageStatus?: QuoteMessageStatus;
|
|
5751
5844
|
}
|
|
5752
5845
|
interface InnerInsertMessageParams {
|
|
5753
5846
|
senderUserId: string;
|
|
@@ -5766,6 +5859,7 @@ interface InnerInsertMessageParams {
|
|
|
5766
5859
|
expansion?: Record<string, string>;
|
|
5767
5860
|
directedUserIds?: string[];
|
|
5768
5861
|
disableUpdateLastMessage?: boolean;
|
|
5862
|
+
quoteInfo?: IQuoteInfo;
|
|
5769
5863
|
}
|
|
5770
5864
|
/**
|
|
5771
5865
|
* 插入消息结构
|
|
@@ -5858,6 +5952,11 @@ interface IInsertMessage {
|
|
|
5858
5952
|
* 禁止更新到会话最新一条消息,默认 false: 更新,true: 不更新
|
|
5859
5953
|
*/
|
|
5860
5954
|
disableUpdateLastMessage?: boolean;
|
|
5955
|
+
/**
|
|
5956
|
+
* 消息引用信息
|
|
5957
|
+
* @since 5.38.0
|
|
5958
|
+
*/
|
|
5959
|
+
quoteInfo?: IQuoteInfo;
|
|
5861
5960
|
}
|
|
5862
5961
|
/**
|
|
5863
5962
|
* 被拦截的消息信息
|
|
@@ -6047,11 +6146,11 @@ interface IRefreshReferenceMessageParams {
|
|
|
6047
6146
|
/**
|
|
6048
6147
|
* 本地消息回调
|
|
6049
6148
|
*/
|
|
6050
|
-
localMessageBlock: (results:
|
|
6149
|
+
localMessageBlock: (results: IEngineMessageResult[]) => void;
|
|
6051
6150
|
/**
|
|
6052
6151
|
* 远端消息回调
|
|
6053
6152
|
*/
|
|
6054
|
-
remoteMessageBlock: (results:
|
|
6153
|
+
remoteMessageBlock: (results: IEngineMessageResult[]) => void;
|
|
6055
6154
|
/**
|
|
6056
6155
|
* 消息映射关系,非 Electron 平台为必传参数,Electron 平台无需传递。key 为引用消息 UId,value 为被引用消息 UId。
|
|
6057
6156
|
*/
|
|
@@ -6061,7 +6160,7 @@ interface IRefreshReferenceMessageParams {
|
|
|
6061
6160
|
* engine 刷新引用消息结果
|
|
6062
6161
|
* @since 5.26.0
|
|
6063
6162
|
*/
|
|
6064
|
-
interface
|
|
6163
|
+
interface IEngineMessageResult {
|
|
6065
6164
|
messageUId: string;
|
|
6066
6165
|
message?: IReceivedMessage;
|
|
6067
6166
|
code: number;
|
|
@@ -8301,21 +8400,6 @@ interface INaviInfo {
|
|
|
8301
8400
|
* @since 5.36.0
|
|
8302
8401
|
*/
|
|
8303
8402
|
openHistoryMsg?: 0 | 1;
|
|
8304
|
-
/**
|
|
8305
|
-
* 消息尺寸限制,当获取不到时保持原逻辑 128 KB 限制;
|
|
8306
|
-
*
|
|
8307
|
-
* 以下内置消息类型不受此配置限制,保持最大 128 KB 尺寸限制:
|
|
8308
|
-
* * RC:VcMsg
|
|
8309
|
-
* * RC:ImgMsg
|
|
8310
|
-
* * RC:LBSMsg
|
|
8311
|
-
* * RC:ReferenceMsg
|
|
8312
|
-
* * RC:StreamMsg
|
|
8313
|
-
* * RC:CombineV2Msg
|
|
8314
|
-
* * RC:CombineMsg
|
|
8315
|
-
* * RC:SightMsg
|
|
8316
|
-
* @since 5.40.0
|
|
8317
|
-
*/
|
|
8318
|
-
msgMaxLengthV2?: number;
|
|
8319
8403
|
}
|
|
8320
8404
|
|
|
8321
8405
|
/**
|
|
@@ -9173,6 +9257,211 @@ interface INotificationQuietHoursSetting {
|
|
|
9173
9257
|
timezone?: string;
|
|
9174
9258
|
}
|
|
9175
9259
|
|
|
9260
|
+
/**
|
|
9261
|
+
* 消息回应用户信息
|
|
9262
|
+
* @since 5.40.0
|
|
9263
|
+
*/
|
|
9264
|
+
interface IMessageReactionUser {
|
|
9265
|
+
/**
|
|
9266
|
+
* 用户 ID
|
|
9267
|
+
*/
|
|
9268
|
+
userId: string;
|
|
9269
|
+
/**
|
|
9270
|
+
* 回应时间戳
|
|
9271
|
+
*/
|
|
9272
|
+
reactionTime: number;
|
|
9273
|
+
}
|
|
9274
|
+
/**
|
|
9275
|
+
* 消息回应数据
|
|
9276
|
+
* @since 5.40.0
|
|
9277
|
+
*/
|
|
9278
|
+
interface IMessageReaction {
|
|
9279
|
+
/**
|
|
9280
|
+
* 消息唯一标识
|
|
9281
|
+
*/
|
|
9282
|
+
messageUId: string;
|
|
9283
|
+
/**
|
|
9284
|
+
* 回应 Id
|
|
9285
|
+
*/
|
|
9286
|
+
reactionId: string;
|
|
9287
|
+
/**
|
|
9288
|
+
* 回应用户列表中是否包含当前用户
|
|
9289
|
+
*/
|
|
9290
|
+
hasCurrentUserReacted: boolean;
|
|
9291
|
+
/**
|
|
9292
|
+
* 回应用户列表
|
|
9293
|
+
*
|
|
9294
|
+
* **注意:**Web 端最多包含 10 条用户数据
|
|
9295
|
+
*/
|
|
9296
|
+
users: IMessageReactionUser[];
|
|
9297
|
+
/**
|
|
9298
|
+
* 回应用户总数
|
|
9299
|
+
*/
|
|
9300
|
+
totalCount: number;
|
|
9301
|
+
/**
|
|
9302
|
+
* 首次回应时间
|
|
9303
|
+
*/
|
|
9304
|
+
reactionTime: number;
|
|
9305
|
+
}
|
|
9306
|
+
/**
|
|
9307
|
+
* 消息回应参数
|
|
9308
|
+
* @since 5.40.0
|
|
9309
|
+
*/
|
|
9310
|
+
interface IUpdateMessageReactionParam {
|
|
9311
|
+
/**
|
|
9312
|
+
* 消息所属会话
|
|
9313
|
+
*/
|
|
9314
|
+
conversationIdentifier: IConversationIdentifier;
|
|
9315
|
+
/**
|
|
9316
|
+
* 消息 UId
|
|
9317
|
+
*/
|
|
9318
|
+
messageUId: string;
|
|
9319
|
+
/**
|
|
9320
|
+
* 回应 Id,不超过 16 字符
|
|
9321
|
+
*/
|
|
9322
|
+
reactionId: string;
|
|
9323
|
+
/**
|
|
9324
|
+
* 推送配置
|
|
9325
|
+
*
|
|
9326
|
+
* @description 当需要向消息发送者发推送信息时,需要配置该参数
|
|
9327
|
+
*/
|
|
9328
|
+
pushConfig?: IPushConfig;
|
|
9329
|
+
}
|
|
9330
|
+
/**
|
|
9331
|
+
* 批量查询消息回应摘要参数
|
|
9332
|
+
* @since 5.40.0
|
|
9333
|
+
*/
|
|
9334
|
+
interface IMessageReactionSummaryQueryParam {
|
|
9335
|
+
/**
|
|
9336
|
+
* 消息所属会话
|
|
9337
|
+
*/
|
|
9338
|
+
conversationIdentifier: IConversationIdentifier;
|
|
9339
|
+
/**
|
|
9340
|
+
* 消息 UId 列表,有效长度 [1, 100]
|
|
9341
|
+
*/
|
|
9342
|
+
messageUIds: string[];
|
|
9343
|
+
}
|
|
9344
|
+
/**
|
|
9345
|
+
* 消息回应列表分页查询参数
|
|
9346
|
+
* @since 5.40.0
|
|
9347
|
+
*/
|
|
9348
|
+
interface IGetMessageReactionsParam {
|
|
9349
|
+
/**
|
|
9350
|
+
* 消息所属会话
|
|
9351
|
+
*/
|
|
9352
|
+
conversationIdentifier: IConversationIdentifier;
|
|
9353
|
+
/**
|
|
9354
|
+
* 消息 UId
|
|
9355
|
+
*/
|
|
9356
|
+
messageUId: string;
|
|
9357
|
+
/**
|
|
9358
|
+
* 查询数量,有效值范围 [1, 50]
|
|
9359
|
+
*/
|
|
9360
|
+
count: number;
|
|
9361
|
+
/**
|
|
9362
|
+
* 分页游标
|
|
9363
|
+
*/
|
|
9364
|
+
pageToken?: string;
|
|
9365
|
+
}
|
|
9366
|
+
/**
|
|
9367
|
+
* 消息回应用户列表分页查询参数
|
|
9368
|
+
* @since 5.40.0
|
|
9369
|
+
*/
|
|
9370
|
+
interface IGetMessageReactionUsersParam {
|
|
9371
|
+
/**
|
|
9372
|
+
* 消息所属会话
|
|
9373
|
+
*/
|
|
9374
|
+
conversationIdentifier: IConversationIdentifier;
|
|
9375
|
+
/**
|
|
9376
|
+
* 消息 UId
|
|
9377
|
+
*/
|
|
9378
|
+
messageUId: string;
|
|
9379
|
+
/**
|
|
9380
|
+
* 回应 Id
|
|
9381
|
+
*/
|
|
9382
|
+
reactionId: string;
|
|
9383
|
+
/**
|
|
9384
|
+
* 查询数量,有效值范围 [1, 50]
|
|
9385
|
+
*/
|
|
9386
|
+
count: number;
|
|
9387
|
+
/**
|
|
9388
|
+
* 分页游标
|
|
9389
|
+
*/
|
|
9390
|
+
pageToken?: string;
|
|
9391
|
+
}
|
|
9392
|
+
/**
|
|
9393
|
+
* 消息回应列表分页查询结果
|
|
9394
|
+
* @since 5.40.0
|
|
9395
|
+
*/
|
|
9396
|
+
interface IMessageReactionsResult {
|
|
9397
|
+
/**
|
|
9398
|
+
* 分页游标,用于下一页数据请求
|
|
9399
|
+
*/
|
|
9400
|
+
pageToken: string;
|
|
9401
|
+
/**
|
|
9402
|
+
* 回应列表
|
|
9403
|
+
*/
|
|
9404
|
+
reactions: IMessageReaction[];
|
|
9405
|
+
}
|
|
9406
|
+
/**
|
|
9407
|
+
* 消息回应用户列表分页查询结果
|
|
9408
|
+
* @since 5.40.0
|
|
9409
|
+
*/
|
|
9410
|
+
interface IMessageReactionUsersResult {
|
|
9411
|
+
/**
|
|
9412
|
+
* 分页游标,用于下一页数据请求
|
|
9413
|
+
*/
|
|
9414
|
+
pageToken: string;
|
|
9415
|
+
/**
|
|
9416
|
+
* 回应用户列表
|
|
9417
|
+
*/
|
|
9418
|
+
users: IMessageReactionUser[];
|
|
9419
|
+
/**
|
|
9420
|
+
* 回应用户列表总数
|
|
9421
|
+
*/
|
|
9422
|
+
totalCount: number;
|
|
9423
|
+
}
|
|
9424
|
+
/**
|
|
9425
|
+
* 消息回应事件数据
|
|
9426
|
+
* @since 5.40.0
|
|
9427
|
+
*/
|
|
9428
|
+
interface IMessageReactionEvent {
|
|
9429
|
+
/**
|
|
9430
|
+
* 回应数据
|
|
9431
|
+
*/
|
|
9432
|
+
reactions: Array<IMessageReactionEventData>;
|
|
9433
|
+
}
|
|
9434
|
+
/**
|
|
9435
|
+
* 消息回应事件数据
|
|
9436
|
+
* @since 5.40.0
|
|
9437
|
+
*/
|
|
9438
|
+
interface IMessageReactionEventData {
|
|
9439
|
+
/**
|
|
9440
|
+
* 消息所属会话
|
|
9441
|
+
*/
|
|
9442
|
+
conversationIdentifier: IConversationIdentifier;
|
|
9443
|
+
/**
|
|
9444
|
+
* 消息唯一标识
|
|
9445
|
+
*/
|
|
9446
|
+
messageUId: string;
|
|
9447
|
+
/**
|
|
9448
|
+
* 回应 Id
|
|
9449
|
+
*/
|
|
9450
|
+
reactionId: string;
|
|
9451
|
+
/**
|
|
9452
|
+
* 回应类型
|
|
9453
|
+
*/
|
|
9454
|
+
reactionType: MessageReactionType;
|
|
9455
|
+
/**
|
|
9456
|
+
* 回应用户增量列表
|
|
9457
|
+
*/
|
|
9458
|
+
users: IMessageReactionUser[];
|
|
9459
|
+
/**
|
|
9460
|
+
* 回应用户列表总数
|
|
9461
|
+
*/
|
|
9462
|
+
totalCount: number;
|
|
9463
|
+
}
|
|
9464
|
+
|
|
9176
9465
|
/**
|
|
9177
9466
|
* 消息类型描述
|
|
9178
9467
|
*/
|
|
@@ -10163,7 +10452,7 @@ interface IIPCMethods {
|
|
|
10163
10452
|
* @param localMessageBlock 本地消息回调
|
|
10164
10453
|
* @param messageInfoMap 消息发送时间映射,仅 Web 端超级群会话有效
|
|
10165
10454
|
*/
|
|
10166
|
-
refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationOption, remoteMessageBlock: ((results:
|
|
10455
|
+
refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationOption, remoteMessageBlock: ((results: IEngineMessageResult[]) => void) | string, localMessageBlock: ((results: IEngineMessageResult[]) => void) | string, messageInfoMap?: Record<string, string>): Promise<RCResult>;
|
|
10167
10456
|
/**
|
|
10168
10457
|
* 同步服务器会话列表至本地数据库
|
|
10169
10458
|
*/
|
|
@@ -10294,6 +10583,12 @@ interface IIPCMethods {
|
|
|
10294
10583
|
setCheckDuplicateMessage(enableCheck: boolean): Promise<RCResult<boolean>>;
|
|
10295
10584
|
getAllRobots(): Promise<RCResult<IRobotInfo[]>>;
|
|
10296
10585
|
getConversationsIncludingRobots(options: Required<IGetConversationsIncludingRobotsOption>): Promise<RCResult<IReceivedConversation[]>>;
|
|
10586
|
+
getMessagesByUIds(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IEngineMessageResult[]>>;
|
|
10587
|
+
addMessageReaction(param: IUpdateMessageReactionParam): Promise<RCResult>;
|
|
10588
|
+
removeMessageReaction(param: IUpdateMessageReactionParam): Promise<RCResult>;
|
|
10589
|
+
batchGetMessageReactionSummaries(param: IMessageReactionSummaryQueryParam): Promise<RCResult<Record<string, IMessageReaction[]>>>;
|
|
10590
|
+
getMessageReactions(param: IGetMessageReactionsParam): Promise<RCResult<IMessageReactionsResult>>;
|
|
10591
|
+
getMessageReactionUsers(param: IGetMessageReactionUsersParam): Promise<RCResult<IMessageReactionUsersResult>>;
|
|
10297
10592
|
}
|
|
10298
10593
|
|
|
10299
10594
|
/**
|
|
@@ -10591,6 +10886,10 @@ interface IEngineWatcher extends IConnectionListener {
|
|
|
10591
10886
|
* 服务器记录会话未读数同步完成通知
|
|
10592
10887
|
*/
|
|
10593
10888
|
syncServerSaveUnreadCompleted: () => void;
|
|
10889
|
+
/**
|
|
10890
|
+
* 消息回应事件
|
|
10891
|
+
*/
|
|
10892
|
+
messageReaction(event: IMessageReactionEvent): void;
|
|
10594
10893
|
}
|
|
10595
10894
|
|
|
10596
10895
|
/**
|
|
@@ -11632,6 +11931,8 @@ interface IWatcher {
|
|
|
11632
11931
|
messagesModified?: (messages: IReceivedMessage[]) => void;
|
|
11633
11932
|
messageModifiedSyncCompleted?: () => void;
|
|
11634
11933
|
syncServerSaveUnreadCompleted?: () => void;
|
|
11934
|
+
/** 消息回应事件通知 */
|
|
11935
|
+
messageReaction?: (evt: IMessageReactionEvent) => void;
|
|
11635
11936
|
}
|
|
11636
11937
|
interface IAPIContextOption {
|
|
11637
11938
|
/**
|
|
@@ -11751,11 +12052,6 @@ declare class AppSettings {
|
|
|
11751
12052
|
* @since 5.36.0
|
|
11752
12053
|
*/
|
|
11753
12054
|
get isServerSaveUnreadEnabled(): boolean;
|
|
11754
|
-
/**
|
|
11755
|
-
* 消息发送限制,未配置的情况下返回 0
|
|
11756
|
-
* @since 5.40.0
|
|
11757
|
-
*/
|
|
11758
|
-
get messageSizeLimit(): number;
|
|
11759
12055
|
}
|
|
11760
12056
|
|
|
11761
12057
|
/**
|
|
@@ -12096,6 +12392,11 @@ declare class ChatModule extends BaseModule {
|
|
|
12096
12392
|
batchGetMessageReadReceiptInfoV4(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IGroupReadReceiptData[]>>;
|
|
12097
12393
|
getConversationsIncludingRobots(options: IGetConversationsIncludingRobotsOption): Promise<RCResult<IReceivedConversation[]>>;
|
|
12098
12394
|
markRemoteConversationAsRead(identifier: IConversationIdentifier): Promise<RCResult>;
|
|
12395
|
+
addMessageReaction(param: IUpdateMessageReactionParam): Promise<RCResult>;
|
|
12396
|
+
removeMessageReaction(param: IUpdateMessageReactionParam): Promise<RCResult>;
|
|
12397
|
+
batchGetMessageReactionSummaries(param: IMessageReactionSummaryQueryParam): Promise<RCResult<Record<string, IMessageReaction[]>>>;
|
|
12398
|
+
getMessageReactions(param: IGetMessageReactionsParam): Promise<RCResult<IMessageReactionsResult>>;
|
|
12399
|
+
getMessageReactionUsers(param: IGetMessageReactionUsersParam): Promise<RCResult<IMessageReactionUsersResult>>;
|
|
12099
12400
|
}
|
|
12100
12401
|
|
|
12101
12402
|
declare class APIContext {
|
|
@@ -12240,6 +12541,7 @@ declare class APIContext {
|
|
|
12240
12541
|
|
|
12241
12542
|
|
|
12242
12543
|
|
|
12544
|
+
|
|
12243
12545
|
/**
|
|
12244
12546
|
* 业务层事件监听器挂载点
|
|
12245
12547
|
*/
|
|
@@ -12848,6 +13150,7 @@ declare class APIContext {
|
|
|
12848
13150
|
getUnreadMentionMeConversationList(params: IGetUnreadMentionMeConversationListParams): Promise<RCResult<IReceivedConversation[]>>;
|
|
12849
13151
|
getAllRobots(): Promise<RCResult<IRobotInfo[]>>;
|
|
12850
13152
|
getRobotById(id: string): Promise<RCResult<IRobotInfo | null>>;
|
|
13153
|
+
getMessagesByUIds(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IEngineMessageResult[]>>;
|
|
12851
13154
|
}
|
|
12852
13155
|
|
|
12853
13156
|
declare class RTCPluginContext extends PluginContext {
|
|
@@ -13044,7 +13347,7 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
13044
13347
|
/**
|
|
13045
13348
|
* 会话聊天模块
|
|
13046
13349
|
*/
|
|
13047
|
-
interface IChatService extends Pick<IIPCMethods, 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllSGUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5ByIdentifiers' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent' | 'requestSpeechToTextForMessage' | 'setMessageSpeechToTextVisible' | 'addTagForConversations' | 'getTagsForConversation' | 'setConversationStatusInTag' | 'removeTagForConversations' | 'removeTagsForConversation' | 'getConversationListByTag' | 'getUnreadCountByTag' | 'getUntaggedConversationListByPage' | 'batchSetConversationTranslateStrategy' | 'modifyMessageWithParams' | 'refreshReferenceMessageWithParams' | 'batchDeleteConversations' | 'sendReadReceiptV2' | 'syncRemoteConversations' | 'sendUltraGroupTypingStatus' | 'getUltraGroupList' | 'getRemoteMessagesByUIds' | 'getUGUnreadMentionedDigest' | 'getHistoryMessagesByObjectNames' | 'getContinuousMessages' | 'getMessagesAroundTimestamp' | 'deleteLocalUGMessagesForAllChannel' | 'updateUGMessageExpansion' | 'setUGDefaultNotificationLevel' | 'getUGDefaultNotificationLevel' | 'getUnreadMentionedMessages' | 'getUnreadMentionedCount' | 'getAllUnreadMentionedCount' | 'getTotalUnreadCountByLevels' | 'getConversationUnreadCount' | 'getFirstUnreadMessage' | 'getFirstUnreadMessageDigest' | 'getUGUnreadCountForAllChannels' | 'getUGUnreadInfoList' | 'getUGFirstUnreadMessageDigest' | 'getConversations' | 'clearConversationUnreadCount' | 'markRemoteConversationAsRead' | 'getTopConversationList' | 'getUnreadConversationList' | 'getConversationListByPageIndex' | 'getAllConversationList' | 'getConversationListByTimestamp' | 'clearConversations' | 'getBlockedConversationList' | 'getBlockedUGList' | 'saveEditedMessageDraft' | 'getEditedMessageDraft' | 'clearEditedMessageDraft' | 'getUnreadMentionMeConversationList' | 'sendUltraGroupTypingStatus' | 'updateConversationReadTime' | 'clearUnreadCountByTimestamp' | 'getMessageReader' | 'getMessageReadReceiptV4' | 'sendReadReceiptMessageV4' | 'getConversationsIncludingRobots'> {
|
|
13350
|
+
interface IChatService extends Pick<IIPCMethods, 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllSGUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5ByIdentifiers' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent' | 'requestSpeechToTextForMessage' | 'setMessageSpeechToTextVisible' | 'addTagForConversations' | 'getTagsForConversation' | 'setConversationStatusInTag' | 'removeTagForConversations' | 'removeTagsForConversation' | 'getConversationListByTag' | 'getUnreadCountByTag' | 'getUntaggedConversationListByPage' | 'batchSetConversationTranslateStrategy' | 'modifyMessageWithParams' | 'refreshReferenceMessageWithParams' | 'batchDeleteConversations' | 'sendReadReceiptV2' | 'syncRemoteConversations' | 'sendUltraGroupTypingStatus' | 'getUltraGroupList' | 'getRemoteMessagesByUIds' | 'getUGUnreadMentionedDigest' | 'getHistoryMessagesByObjectNames' | 'getContinuousMessages' | 'getMessagesAroundTimestamp' | 'deleteLocalUGMessagesForAllChannel' | 'updateUGMessageExpansion' | 'setUGDefaultNotificationLevel' | 'getUGDefaultNotificationLevel' | 'getUnreadMentionedMessages' | 'getUnreadMentionedCount' | 'getAllUnreadMentionedCount' | 'getTotalUnreadCountByLevels' | 'getConversationUnreadCount' | 'getFirstUnreadMessage' | 'getFirstUnreadMessageDigest' | 'getUGUnreadCountForAllChannels' | 'getUGUnreadInfoList' | 'getUGFirstUnreadMessageDigest' | 'getConversations' | 'clearConversationUnreadCount' | 'markRemoteConversationAsRead' | 'getTopConversationList' | 'getUnreadConversationList' | 'getConversationListByPageIndex' | 'getAllConversationList' | 'getConversationListByTimestamp' | 'clearConversations' | 'getBlockedConversationList' | 'getBlockedUGList' | 'saveEditedMessageDraft' | 'getEditedMessageDraft' | 'clearEditedMessageDraft' | 'getUnreadMentionMeConversationList' | 'sendUltraGroupTypingStatus' | 'updateConversationReadTime' | 'clearUnreadCountByTimestamp' | 'getMessageReader' | 'getMessageReadReceiptV4' | 'sendReadReceiptMessageV4' | 'getConversationsIncludingRobots' | 'addMessageReaction' | 'removeMessageReaction' | 'batchGetMessageReactionSummaries' | 'getMessageReactions' | 'getMessageReactionUsers'> {
|
|
13048
13351
|
/** 超级群是否已同步完成 */
|
|
13049
13352
|
get ugSynced(): boolean;
|
|
13050
13353
|
getRealtimeConversations(count: number, startTime: number, order: 0 | 1): Promise<RCResult<IReceivedConversation[]>>;
|
|
@@ -13215,4 +13518,4 @@ declare const assert: (key: string, value: any, validator: AssertRules | ((value
|
|
|
13215
13518
|
*/
|
|
13216
13519
|
declare const validate: (key: string, value: any, validator: AssertRules | ((value?: any) => boolean), required?: boolean) => boolean;
|
|
13217
13520
|
|
|
13218
|
-
export { APIContext, AbsCodec, AppSettings, AreaCode, AssertRules, BaseTranslateParam, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationBatchDeletionParams, ConversationListLoader, ConversationType, DataHosting, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FilterRobotType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, GroupReadReceiptVersion, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IAuditInfoKeyInMessage, IAuditInfoValueInMessage, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChartroomUserAction, IChatRoomEntries, IChatRoomEntry, IChatService, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomErrorKeys, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomService, IChatroomUser, IChatroomUserChangeInfo, IClearMessageOption, ICombineMessageContent, ICombineV2MessageContent, ICombinedMessage, ICommandMessageContent, IConnectionStatusListener, IConversationCachePolicy, IConversationFilter, IConversationIdentifier, IConversationListLoaderOptions, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagFilter, IConversationTagListener, IConversationUnreadCount, IConvertHQVoiceMessageToTextOption, IConvertSpeechToTextOption, IConvertVoiceMessageToTextOption, ICreateGroupFail, IDataHostingService, IDataManagementInfo, IDeletedExpansion, IDownloadAuth, IEditedMessageDraft,
|
|
13521
|
+
export { APIContext, AbsCodec, AppSettings, AreaCode, AssertRules, BaseTranslateParam, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationBatchDeletionParams, ConversationListLoader, ConversationType, DataHosting, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FilterRobotType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, GroupReadReceiptVersion, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IAuditInfoKeyInMessage, IAuditInfoValueInMessage, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChartroomUserAction, IChatRoomEntries, IChatRoomEntry, IChatService, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomErrorKeys, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomService, IChatroomUser, IChatroomUserChangeInfo, IClearMessageOption, ICombineMessageContent, ICombineV2MessageContent, ICombinedMessage, ICommandMessageContent, IConnectionStatusListener, IConversationCachePolicy, IConversationFilter, IConversationIdentifier, IConversationListLoaderOptions, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagFilter, IConversationTagListener, IConversationUnreadCount, IConvertHQVoiceMessageToTextOption, IConvertSpeechToTextOption, IConvertVoiceMessageToTextOption, ICreateGroupFail, IDataHostingService, IDataManagementInfo, IDeletedExpansion, IDownloadAuth, IEditedMessageDraft, IEngineMessageResult, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraDataKeyInMessage, IFileMessageContent, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGIFMessageContent, IGetConversationListByTimestampParams, IGetConversationsIncludingRobotsOption, IGetGroupMembersOption, IGetHistoryMessageOption, IGetHistoryMessageResult, IGetHistoryMessagesByTypesOption, IGetMessageReactionUsersParam, IGetMessageReactionsParam, IGetUltraGroupListOption, IGetUnreadMentionMeConversationListParams, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupNotificationMessageContent, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHQVoiceMessageContent, IHarmonyOSPushConfig, IIPCMethods, IIPCMethodsSync, IIPCMethodsWithoutResult, IImageMessageContent, IInformationNotificationMessageContent, IInsertMessage, ILocalTagStatus, ILocationMessageContent, ILogData, ILogger, IMemberInviteResponse, IMentionedInfoKeyInMessage, IMessageAttrsForUpdateExpansion, IMessageDesc, IMessageExtraData, IMessageFilter, IMessageIdentifier, IMessageListnenr, IMessageReaction, IMessageReactionEvent, IMessageReactionEventData, IMessageReactionSummaryQueryParam, IMessageReactionUser, IMessageReactionUsersResult, IMessageReactionsResult, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IMessageSendOptions, IModifyMessageParams, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPlatformOnlineStatus, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IQuoteInfo, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallCommandMessageContent, IRecallMsgOptions, IRecallNotificationMessageContent, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IReferContentInMessage, IReferContentKeyInMessage, IReferenceMessageContent, IRefreshReferenceMessageParams, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRichContentMessageContent, IRobotInfo, IRuntime, ISRSMsgContent, ISearchMessageParams, ISearchMessagesResult, ISendMsgOptions, IServerGroupBaseInfo, ISightMessageContent, ISpeechToTextInfo, ISpeechToTextResponse, IStorage, IStreamMessageContent, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserOnlineStatus, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITextMessageContent, ITimeRange, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdateItem, IUpdateMessageReactionParam, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserExtraKeyInMessage, IUserExtraValueInMessage, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IUserSettingsChangedEvent, IUserSettingsModule, IVoiceMessageContent, IWatcher, IiOSPushConfig, InnerInsertMessageParams, InnerTransParam, InterruptionLevel, ItypingStateListener, KVString, LogDBProxy, LogL, LogLevel, LogSource, Log as LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_U32_INTEGER, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageAuditType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageModifyInfo, MessageModifyStatus, MessageReactionType, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, Platform, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, QuoteMessageStatus, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, ReferenceMessageStatus, SSEModule, SentStatus, SpeechToTextStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, TranslateInfo, TranslateItem, TranslateMessageParam, TranslateMessagesParams, TranslateMode, TranslateStatus, TranslateStrategy, TranslateTextParam, TranslateTextsParams, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, UserSettingsChangedKey, UserType, Validator, VersionManage, assert, createLogDBProxy, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidTargetId, map, notEmptyArray, notEmptyObject, notEmptyString, ok, promiseWithResolvers, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };
|