@rongcloud/engine 5.20.1 → 5.20.2-alpha.1
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 +91 -53
- package/index.esm.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -661,7 +661,7 @@ declare enum ErrorCode {
|
|
|
661
661
|
SYS_CONVERSATION_NOT_SUPPORT_MESSAGE = 20109,
|
|
662
662
|
/**
|
|
663
663
|
* 20512
|
|
664
|
-
* appkey
|
|
664
|
+
* appkey的数据中心与请求云控的数据中心不匹配
|
|
665
665
|
* @since 5.8.5
|
|
666
666
|
*/
|
|
667
667
|
CLOUD_DATA_CENTER_INVALID = 20512,
|
|
@@ -692,12 +692,12 @@ declare enum ErrorCode {
|
|
|
692
692
|
NOT_IN_DISCUSSION = 21406,
|
|
693
693
|
/**
|
|
694
694
|
* 21501
|
|
695
|
-
*
|
|
695
|
+
* 发送的消息中包含敏感词 (发送方发送失败,接收方不会收到消息)
|
|
696
696
|
*/
|
|
697
697
|
SENSITIVE_SHIELD = 21501,
|
|
698
698
|
/**
|
|
699
699
|
* 21502
|
|
700
|
-
*
|
|
700
|
+
* 消息中敏感词已经被替换 (接收方可以收到被替换之后的消息)
|
|
701
701
|
*/
|
|
702
702
|
SENSITIVE_REPLACE = 21502,
|
|
703
703
|
/**
|
|
@@ -737,8 +737,8 @@ declare enum ErrorCode {
|
|
|
737
737
|
NOT_IN_CHATROOM = 23406,
|
|
738
738
|
/**
|
|
739
739
|
* 23407
|
|
740
|
-
* 聊天室禁言白名单人数超限
|
|
741
|
-
*
|
|
740
|
+
* 聊天室禁言白名单人数超限(最多5个)
|
|
741
|
+
* 创建聊天室时,禁言白名单用户列表,支持批量设置,最多不超过 20 个
|
|
742
742
|
*/
|
|
743
743
|
GET_USERINFO_ERROR = 23407,
|
|
744
744
|
/**
|
|
@@ -803,23 +803,23 @@ declare enum ErrorCode {
|
|
|
803
803
|
CHATROOM_KEY_NOT_EXIST = 23427,
|
|
804
804
|
/**
|
|
805
805
|
* 23428
|
|
806
|
-
* 聊天室批量设置或删除
|
|
806
|
+
* 聊天室批量设置或删除KV部分不成功
|
|
807
807
|
*/
|
|
808
808
|
CHATROOM_KV_STORE_NOT_ALL_SUCCESS = 23428,
|
|
809
809
|
/**
|
|
810
810
|
* 23429
|
|
811
|
-
* 聊天室批量设置或删除
|
|
811
|
+
* 聊天室批量设置或删除KV数量超限(最多一次10条)
|
|
812
812
|
*/
|
|
813
813
|
CHATROOM_KV_STORE_OUT_LIMIT = 23429,
|
|
814
814
|
/**
|
|
815
815
|
* 23431
|
|
816
|
-
* 聊天室设置 KV 失败,出现在两人或者多端同时操作一个 KV
|
|
816
|
+
* 聊天室设置 KV 失败,出现在两人或者多端同时操作一个 KV。 如果出现该错误,为避免和其他端同时操作,请延时一定时间再试
|
|
817
817
|
* @since 5.3.0
|
|
818
818
|
*/
|
|
819
819
|
CHATROOM_KV_SET_ERROR = 23431,
|
|
820
820
|
/**
|
|
821
821
|
* 24001
|
|
822
|
-
* 没有注册
|
|
822
|
+
* 没有注册DeviveId 也就是用户没有登陆
|
|
823
823
|
* @deprecated
|
|
824
824
|
*/
|
|
825
825
|
HAVNODEVICEID = 24001,
|
|
@@ -849,7 +849,7 @@ declare enum ErrorCode {
|
|
|
849
849
|
RC_USER_PROFILE_KEY_NOT_ALLOW_SDK_SET = 24360,
|
|
850
850
|
/**
|
|
851
851
|
* 24361
|
|
852
|
-
* 用户托管基本属性的
|
|
852
|
+
* 用户托管基本属性的key列表中没有此key
|
|
853
853
|
* @since 5.9.10
|
|
854
854
|
*/
|
|
855
855
|
RC_USER_PROFILE_KEY_NOT_EXIST = 24361,
|
|
@@ -867,7 +867,7 @@ declare enum ErrorCode {
|
|
|
867
867
|
RC_USER_PROFILE_EXT_KV_COUNT_EXCEED_LIMIT = 24363,
|
|
868
868
|
/**
|
|
869
869
|
* 24364
|
|
870
|
-
* 用户托管基本属性或扩展属性的
|
|
870
|
+
* 用户托管基本属性或扩展属性的Value,字符超过最大上限
|
|
871
871
|
* @since 5.9.10
|
|
872
872
|
*/
|
|
873
873
|
RC_USER_PROFILE_VALUE_LENGTH_EXCEED_LIMIT = 24364,
|
|
@@ -1002,7 +1002,7 @@ declare enum ErrorCode {
|
|
|
1002
1002
|
RC_ENTRUST_SERVER_PARAMETER_ERROR = 25403,
|
|
1003
1003
|
/**
|
|
1004
1004
|
* 25404
|
|
1005
|
-
* 非法操作,非群主修改群权限相关,msg
|
|
1005
|
+
* 非法操作,非群主修改群权限相关,msg中返回传的对应的key
|
|
1006
1006
|
* @since 5.12.0
|
|
1007
1007
|
*/
|
|
1008
1008
|
RC_GROUP_ILLEGAL_ERROR = 25404,
|
|
@@ -1086,7 +1086,7 @@ declare enum ErrorCode {
|
|
|
1086
1086
|
RC_GROUP_OWNER_NOT_ALLOW_QUIT_OR_KICK = 25417,
|
|
1087
1087
|
/**
|
|
1088
1088
|
* 25418
|
|
1089
|
-
* 用户
|
|
1089
|
+
* 用户ID不在群组中
|
|
1090
1090
|
* @since 5.12.0
|
|
1091
1091
|
*/
|
|
1092
1092
|
RC_GROUP_USER_NOT_IN_GROUP = 25418,
|
|
@@ -1158,13 +1158,13 @@ declare enum ErrorCode {
|
|
|
1158
1158
|
RC_GROUP_OLD_GROUP_NOT_ENTRUST = 25429,
|
|
1159
1159
|
/**
|
|
1160
1160
|
* 25430
|
|
1161
|
-
* 群
|
|
1161
|
+
* 群ID不合法,包含特殊字符
|
|
1162
1162
|
* @since 5.12.0
|
|
1163
1163
|
*/
|
|
1164
1164
|
RC_GROUP_ID_INVALID = 25430,
|
|
1165
1165
|
/**
|
|
1166
1166
|
* 25432
|
|
1167
|
-
* pagetoken
|
|
1167
|
+
* pagetoken解析失败
|
|
1168
1168
|
* @since 5.12.0
|
|
1169
1169
|
*/
|
|
1170
1170
|
RC_PAGE_TOKEN_PARSING_FAILED = 25432,
|
|
@@ -1275,7 +1275,7 @@ declare enum ErrorCode {
|
|
|
1275
1275
|
CONVERSATION_TAG_OVERSIZE = 26004,
|
|
1276
1276
|
/**
|
|
1277
1277
|
* 26005
|
|
1278
|
-
* 未开通
|
|
1278
|
+
* 未开通v4已读回执
|
|
1279
1279
|
*/
|
|
1280
1280
|
RC_READ_RECEIPT_V4_INVALID = 26005,
|
|
1281
1281
|
/**
|
|
@@ -1290,7 +1290,7 @@ declare enum ErrorCode {
|
|
|
1290
1290
|
RC_SERVER_PARAMETER_MESSAGEUIDS_CONFUSED = 26007,
|
|
1291
1291
|
/**
|
|
1292
1292
|
* 26009
|
|
1293
|
-
* 消息
|
|
1293
|
+
* 消息id不合法
|
|
1294
1294
|
*/
|
|
1295
1295
|
RC_SERVER_PARAMETER_MESSAGEUID_INVALID = 26009,
|
|
1296
1296
|
/**
|
|
@@ -1305,12 +1305,12 @@ declare enum ErrorCode {
|
|
|
1305
1305
|
RC_SUBSCRIBE_ONLINE_SERVICE_UNAVAILABLE = 26020,
|
|
1306
1306
|
/**
|
|
1307
1307
|
* 26021
|
|
1308
|
-
*
|
|
1308
|
+
* 用户被订阅量达到上限, 详细查看开发文档。
|
|
1309
1309
|
*/
|
|
1310
1310
|
RC_BESUBSCRIBED_USERIDS_COUNT_EXCEED_LIMIT = 26021,
|
|
1311
1311
|
/**
|
|
1312
1312
|
* 26022
|
|
1313
|
-
*
|
|
1313
|
+
* 订阅用户数达到上限, 详细查看开发文档。
|
|
1314
1314
|
*/
|
|
1315
1315
|
RC_SUBSCRIBED_USERIDS_EXCEED_LIMIT = 26022,
|
|
1316
1316
|
/**
|
|
@@ -1397,7 +1397,7 @@ declare enum ErrorCode {
|
|
|
1397
1397
|
/**
|
|
1398
1398
|
* 30012
|
|
1399
1399
|
* PING 失败
|
|
1400
|
-
* @solution 本地网络问题导致
|
|
1400
|
+
* @solution 本地网络问题导致ping失败,SDK 会进入重连逻辑
|
|
1401
1401
|
* @since 5.2.0
|
|
1402
1402
|
*/
|
|
1403
1403
|
RC_PING_EXCEED_LIMIT = 30012,
|
|
@@ -1446,7 +1446,7 @@ declare enum ErrorCode {
|
|
|
1446
1446
|
RC_TCP_DISCONNECTED_NO_RMTP = 30021,
|
|
1447
1447
|
/**
|
|
1448
1448
|
* 31000
|
|
1449
|
-
* 连接
|
|
1449
|
+
* 连接ACK超时
|
|
1450
1450
|
* @solution 网络问题,SDK 会进行重连
|
|
1451
1451
|
* @since 5.2.0
|
|
1452
1452
|
*/
|
|
@@ -1459,7 +1459,7 @@ declare enum ErrorCode {
|
|
|
1459
1459
|
RC_CONN_PROTO_VERSION_ERROR = 31001,
|
|
1460
1460
|
/**
|
|
1461
1461
|
* 31002
|
|
1462
|
-
* 客户端 info 字段格式错误,正确格式:{平台类型}-{设备信息}-{sdk
|
|
1462
|
+
* 客户端 info 字段格式错误,正确格式:{平台类型}-{设备信息}-{sdk版本}。 其中设备信息:{手机类型}|{手机型号}|{网络类型,4G/WIFI}|{运营商标识, 移动/电信/联通}
|
|
1463
1463
|
* @solution 一般是 appkey 错误导致,建议在融云的开发者后台中确认一下当前应用的 appkey 标识是否正确
|
|
1464
1464
|
* @since 5.2.0
|
|
1465
1465
|
*/
|
|
@@ -1534,7 +1534,7 @@ declare enum ErrorCode {
|
|
|
1534
1534
|
RC_CONN_TOKEN_EXPIRED = 31020,
|
|
1535
1535
|
/**
|
|
1536
1536
|
* 31021
|
|
1537
|
-
* Token 中携带 deviceId 时,检测 Token 中
|
|
1537
|
+
* Token 中携带 deviceId 时,检测 Token 中deviceId 与链接设备 deviceId 不一致
|
|
1538
1538
|
* @since 5.7.0
|
|
1539
1539
|
*/
|
|
1540
1540
|
RC_CONN_DEVICE_ERROR = 31021,
|
|
@@ -1564,13 +1564,13 @@ declare enum ErrorCode {
|
|
|
1564
1564
|
RC_CONN_WRONG_CLUSTER = 31025,
|
|
1565
1565
|
/**
|
|
1566
1566
|
* 31026
|
|
1567
|
-
* 开启
|
|
1567
|
+
* 开启AppServer联合鉴权功能后,到AppServer认证失败
|
|
1568
1568
|
* @since 5.2.0
|
|
1569
1569
|
*/
|
|
1570
1570
|
RC_APP_AUTH_NOT_PASS = 31026,
|
|
1571
1571
|
/**
|
|
1572
1572
|
* 31027
|
|
1573
|
-
* 该 token
|
|
1573
|
+
* 该 token 已经被使用过,无法进行连接 一次性 token 只能连接一次,之后再使用会上报此错误
|
|
1574
1574
|
* @since 5.2.0
|
|
1575
1575
|
*/
|
|
1576
1576
|
RC_OTP_USED = 31027,
|
|
@@ -1623,13 +1623,13 @@ declare enum ErrorCode {
|
|
|
1623
1623
|
CONNECTION_REFUSED = 32061,
|
|
1624
1624
|
/**
|
|
1625
1625
|
* 33000
|
|
1626
|
-
*
|
|
1626
|
+
* 将消息存储到本地数据时失败。 发送或插入消息时,消息需要存储到本地数据库,当存库失败时,会回调此错误码
|
|
1627
1627
|
* @since 5.2.0
|
|
1628
1628
|
*/
|
|
1629
1629
|
PROTOCOL_MESSAGE_SAVED_ERROR = 33000,
|
|
1630
1630
|
/**
|
|
1631
1631
|
* 33001
|
|
1632
|
-
* 协议栈未初始化(可能原因:1
|
|
1632
|
+
* 协议栈未初始化(可能原因:1,没有调用SDK初始化接口;2,SDK的so未正常加载)
|
|
1633
1633
|
* @since 5.2.0
|
|
1634
1634
|
*/
|
|
1635
1635
|
BIZ_ERROR_CLIENT_NOT_INIT = 33001,
|
|
@@ -1729,7 +1729,7 @@ declare enum ErrorCode {
|
|
|
1729
1729
|
MESSAGE_EXPANDED_ERROR = 34009,
|
|
1730
1730
|
/**
|
|
1731
1731
|
* 34010
|
|
1732
|
-
*
|
|
1732
|
+
* 消息扩展大小超出限制, 默认消息扩展字典 key 长度不超过 32 个字符,value 长度不超过 4096 个字符,设置的 Expansion 键值对不超过 300 个
|
|
1733
1733
|
* @since 5.2.0
|
|
1734
1734
|
*/
|
|
1735
1735
|
EXPANSION_LIMIT_EXCEET = 34010,
|
|
@@ -1804,7 +1804,7 @@ declare enum ErrorCode {
|
|
|
1804
1804
|
INVALID_PARAMETER_TIMESTAMP = 34202,
|
|
1805
1805
|
/**
|
|
1806
1806
|
* 34203
|
|
1807
|
-
* 开发者接口调用时传入的 uid (服务器消息唯一 id)
|
|
1807
|
+
* 开发者接口调用时传入的 uid (服务器消息唯一 id)非法
|
|
1808
1808
|
*/
|
|
1809
1809
|
INVALID_PARAMETER_MESSAGE_UID = 34203,
|
|
1810
1810
|
/**
|
|
@@ -1879,7 +1879,7 @@ declare enum ErrorCode {
|
|
|
1879
1879
|
INVALID_PARAMETER_TIMESTRING = 34224,
|
|
1880
1880
|
/**
|
|
1881
1881
|
* 34225
|
|
1882
|
-
* RCConversationIdentifier
|
|
1882
|
+
* RCConversationIdentifier 参数非法。 可能原因:开发者调用接口传入的 RCConversationIdentifier 参数类型不对或者参数为空
|
|
1883
1883
|
* @solution conversation is not valid
|
|
1884
1884
|
* @since 5.9.9
|
|
1885
1885
|
*/
|
|
@@ -1967,7 +1967,7 @@ declare enum ErrorCode {
|
|
|
1967
1967
|
INVALID_PARAMETER_KEY = 34260,
|
|
1968
1968
|
/**
|
|
1969
1969
|
* 34261
|
|
1970
|
-
* 参数
|
|
1970
|
+
* 参数keys 非法
|
|
1971
1971
|
*/
|
|
1972
1972
|
INVALID_PARAMETER_KEYS = 34261,
|
|
1973
1973
|
/**
|
|
@@ -1993,14 +1993,14 @@ declare enum ErrorCode {
|
|
|
1993
1993
|
/**
|
|
1994
1994
|
* 34272
|
|
1995
1995
|
* 参数 before 非法
|
|
1996
|
-
* @solution beforeCount 无效,需要输入大于
|
|
1996
|
+
* @solution beforeCount 无效,需要输入大于0 的正整数
|
|
1997
1997
|
* @since 5.9.8
|
|
1998
1998
|
*/
|
|
1999
1999
|
INVALID_PARAMETER_BEFORE = 34272,
|
|
2000
2000
|
/**
|
|
2001
2001
|
* 34273
|
|
2002
2002
|
* 参数 after 非法
|
|
2003
|
-
* @solution afterCount 输入无效,需要输入大于
|
|
2003
|
+
* @solution afterCount 输入无效,需要输入大于0 的正整数
|
|
2004
2004
|
* @since 5.9.8
|
|
2005
2005
|
*/
|
|
2006
2006
|
INVALID_PARAMETER_AFTER = 34273,
|
|
@@ -2036,12 +2036,12 @@ declare enum ErrorCode {
|
|
|
2036
2036
|
INVALID_PARAMETER_LIMIT = 34279,
|
|
2037
2037
|
/**
|
|
2038
2038
|
* 34280
|
|
2039
|
-
* MessageDirection
|
|
2039
|
+
* MessageDirection错误
|
|
2040
2040
|
*/
|
|
2041
2041
|
INVALID_MESSAGE_DIRECTION = 34280,
|
|
2042
2042
|
/**
|
|
2043
2043
|
* 34281
|
|
2044
|
-
* SentStatus
|
|
2044
|
+
* SentStatus错误
|
|
2045
2045
|
*/
|
|
2046
2046
|
INVALID_MESSAGE_SENT_STATUS = 34281,
|
|
2047
2047
|
/**
|
|
@@ -2062,14 +2062,14 @@ declare enum ErrorCode {
|
|
|
2062
2062
|
INVALID_PARAMETER_CONVERSATION_TYPE_LIST = 34284,
|
|
2063
2063
|
/**
|
|
2064
2064
|
* 34287
|
|
2065
|
-
* 开发者调用接口传入的 ConversationIdentifier 数组参数为空、数组长度为 0
|
|
2066
|
-
* @solution 传入的 ConversationList 数组参数为空、数组长度为 0
|
|
2065
|
+
* 开发者调用接口传入的 ConversationIdentifier 数组参数为空、数组长度为 0或超过限制、包含 null 或非法对象
|
|
2066
|
+
* @solution 传入的 ConversationList 数组参数为空、数组长度为 0或超过限制、包含 null 或非法对象
|
|
2067
2067
|
* @since 5.9.9
|
|
2068
2068
|
*/
|
|
2069
2069
|
INVALID_PARAMETER_CONVERSATION_LIST = 34287,
|
|
2070
2070
|
/**
|
|
2071
2071
|
* 34288
|
|
2072
|
-
* 开发者调用接口传入的 ClearMessageOption 数组参数为空、数组长度为 0
|
|
2072
|
+
* 开发者调用接口传入的 ClearMessageOption 数组参数为空、数组长度为 0或超过限制、包含 null 或非法对象
|
|
2073
2073
|
*/
|
|
2074
2074
|
INVALID_PARAMETER_CLEAR_MESSAGE_OPTION_LIST = 34288,
|
|
2075
2075
|
/**
|
|
@@ -2086,12 +2086,12 @@ declare enum ErrorCode {
|
|
|
2086
2086
|
INVALID_PARAMETER_END_MESSAGE_UID = 34290,
|
|
2087
2087
|
/**
|
|
2088
2088
|
* 34291
|
|
2089
|
-
* 不支持
|
|
2089
|
+
* 不支持V4已读回执功能
|
|
2090
2090
|
*/
|
|
2091
2091
|
READ_RECEIPT_V4_NOT_SUPPORT = 34291,
|
|
2092
2092
|
/**
|
|
2093
2093
|
* 34292
|
|
2094
|
-
* 不支持更新
|
|
2094
|
+
* 不支持更新v4已读回执信息
|
|
2095
2095
|
*/
|
|
2096
2096
|
READ_RECEIPT_V4_UPDATE_NOT_SUPPORT = 34292,
|
|
2097
2097
|
/**
|
|
@@ -2133,7 +2133,7 @@ declare enum ErrorCode {
|
|
|
2133
2133
|
INVALID_PARAMETER_SUBSCRIBE_TYPE = 34306,
|
|
2134
2134
|
/**
|
|
2135
2135
|
* 34307
|
|
2136
|
-
* 订阅事件传入的订阅时长非法
|
|
2136
|
+
* 订阅事件传入的订阅时长非法[60s ~ 30天]
|
|
2137
2137
|
*/
|
|
2138
2138
|
INVALID_PARAMETER_SUBSCRIBE_EXPIRY = 34307,
|
|
2139
2139
|
/**
|
|
@@ -2144,7 +2144,7 @@ declare enum ErrorCode {
|
|
|
2144
2144
|
/**
|
|
2145
2145
|
* 34309
|
|
2146
2146
|
* 订阅事件传入的分页大小非法
|
|
2147
|
-
* @solution 订阅相关接口传入的分页大小非法
|
|
2147
|
+
* @solution 订阅相关接口传入的分页大小非法[1~200]
|
|
2148
2148
|
*/
|
|
2149
2149
|
INVALID_PARAMETER_SUBSCRIBE_PAGESIZE = 34309,
|
|
2150
2150
|
/**
|
|
@@ -2338,7 +2338,7 @@ declare enum ErrorCode {
|
|
|
2338
2338
|
HOSTNAME_ERROR = 35009,
|
|
2339
2339
|
/**
|
|
2340
2340
|
* 35010
|
|
2341
|
-
*
|
|
2341
|
+
* 开启`禁止把已在线客户端踢下线`开关后,该错误码标识已有同类型端在线,禁止链接
|
|
2342
2342
|
* @deprecated
|
|
2343
2343
|
*/
|
|
2344
2344
|
HAS_OHTER_SAME_CLIENT_ON_LINE = 35010,
|
|
@@ -2395,7 +2395,7 @@ declare enum ErrorCode {
|
|
|
2395
2395
|
INVALID_PARAMETER_DRAFT = 35028,
|
|
2396
2396
|
/**
|
|
2397
2397
|
* 35029
|
|
2398
|
-
* 开发者调用时传入的 message
|
|
2398
|
+
* 开发者调用时传入的 message 无效, message 应是对象或者 BaseMessage 的子类
|
|
2399
2399
|
*/
|
|
2400
2400
|
INVALID_PARAMETER_MESSAGE = 35029,
|
|
2401
2401
|
/**
|
|
@@ -2541,7 +2541,7 @@ declare enum ErrorCode {
|
|
|
2541
2541
|
SEND_READ_RECEIPT_CONF_ERROR = 35056,
|
|
2542
2542
|
/**
|
|
2543
2543
|
* 36001
|
|
2544
|
-
* 加入聊天室
|
|
2544
|
+
* 加入聊天室Id为空
|
|
2545
2545
|
* @deprecated
|
|
2546
2546
|
*/
|
|
2547
2547
|
CHATROOM_ID_ISNULL = 36001,
|
|
@@ -2625,7 +2625,7 @@ declare enum ErrorCode {
|
|
|
2625
2625
|
STREAM_MESSAGE_SYNCED = 39007,
|
|
2626
2626
|
/**
|
|
2627
2627
|
* 41002
|
|
2628
|
-
* 获取七牛
|
|
2628
|
+
* 获取七牛token失败
|
|
2629
2629
|
* @deprecated
|
|
2630
2630
|
*/
|
|
2631
2631
|
QNTKN_GET_ERROR = 41002,
|
|
@@ -7053,7 +7053,7 @@ interface IGroupApplicationInfo {
|
|
|
7053
7053
|
*/
|
|
7054
7054
|
type: GroupApplicationType;
|
|
7055
7055
|
/**
|
|
7056
|
-
*
|
|
7056
|
+
* 申请发起时间
|
|
7057
7057
|
*/
|
|
7058
7058
|
operationTime: number;
|
|
7059
7059
|
/**
|
|
@@ -8582,6 +8582,7 @@ declare type EnableLogL = LogL.DEBUG | LogL.INFO | LogL.WARN | LogL.ERROR;
|
|
|
8582
8582
|
declare type LogContent = string | number | boolean | null;
|
|
8583
8583
|
declare type LogType = 'IM' | 'RTC';
|
|
8584
8584
|
/**
|
|
8585
|
+
* @hidden
|
|
8585
8586
|
* 日志数据结构
|
|
8586
8587
|
*/
|
|
8587
8588
|
interface ILogData {
|
|
@@ -8622,6 +8623,40 @@ interface ILogData {
|
|
|
8622
8623
|
loggerId?: string;
|
|
8623
8624
|
}
|
|
8624
8625
|
|
|
8626
|
+
declare type LogReader = (startTime: number, endTime: number, level: LogL, realtimeReport: boolean, tableName?: string) => Promise<{
|
|
8627
|
+
logs: ILogData[];
|
|
8628
|
+
}>;
|
|
8629
|
+
declare type LogWriter = (data: ILogData) => void;
|
|
8630
|
+
/**
|
|
8631
|
+
* @hidden
|
|
8632
|
+
*/
|
|
8633
|
+
declare class LogDBProxy {
|
|
8634
|
+
#private;
|
|
8635
|
+
/**
|
|
8636
|
+
* 仅供内部使用,谨慎调用
|
|
8637
|
+
*/
|
|
8638
|
+
read(startTime: number, endTime: number, level: LogL, realtimeReport: boolean, tableName?: string): Promise<{
|
|
8639
|
+
logs: ILogData[];
|
|
8640
|
+
}>;
|
|
8641
|
+
/**
|
|
8642
|
+
* 仅供内部使用,谨慎调用
|
|
8643
|
+
*/
|
|
8644
|
+
write(data: ILogData): void | Promise<void>;
|
|
8645
|
+
/**
|
|
8646
|
+
* 设置日志读取实现
|
|
8647
|
+
*/
|
|
8648
|
+
setLogReader(reader: LogReader): this;
|
|
8649
|
+
/**
|
|
8650
|
+
* 设置日志写入实现
|
|
8651
|
+
*/
|
|
8652
|
+
setLogWriter(writer: LogWriter): this;
|
|
8653
|
+
}
|
|
8654
|
+
/**
|
|
8655
|
+
* @hidden
|
|
8656
|
+
* 创建一个默认的日志代理
|
|
8657
|
+
*/
|
|
8658
|
+
declare function createLogDBProxy(): LogDBProxy;
|
|
8659
|
+
|
|
8625
8660
|
/**
|
|
8626
8661
|
* Logger 抽象基类,定义日志采集接口与进程内打印,
|
|
8627
8662
|
* 由子类继承实现入库逻辑
|
|
@@ -8630,15 +8665,12 @@ declare abstract class BasicLogger {
|
|
|
8630
8665
|
protected readonly _appkey: string;
|
|
8631
8666
|
protected readonly _id: string;
|
|
8632
8667
|
protected readonly _type: LogType;
|
|
8668
|
+
protected readonly logDB: LogDBProxy;
|
|
8633
8669
|
/**
|
|
8634
8670
|
* traceId 计数
|
|
8635
8671
|
*/
|
|
8636
8672
|
private static _traceIdCount;
|
|
8637
|
-
constructor(_appkey: string, _id: string, _type: LogType);
|
|
8638
|
-
/**
|
|
8639
|
-
* 由子类继承实现日志入库
|
|
8640
|
-
*/
|
|
8641
|
-
protected abstract _handleWrite(data: ILogData): void;
|
|
8673
|
+
constructor(_appkey: string, _id: string, _type: LogType, logDB: LogDBProxy);
|
|
8642
8674
|
protected _write(logData: ILogData): void;
|
|
8643
8675
|
/**
|
|
8644
8676
|
* 创建事务追踪 ID,全局唯一,便于跨进程、异步事务追踪,需要考虑多进程
|
|
@@ -8678,6 +8710,8 @@ declare abstract class BasicLogger {
|
|
|
8678
8710
|
* 内部质量数据统计接口
|
|
8679
8711
|
*/
|
|
8680
8712
|
record: (tag: string, content?: LogContent | undefined, traceId?: string | undefined) => void;
|
|
8713
|
+
abstract getTimestamp4RealtimeLog(): number;
|
|
8714
|
+
abstract setTimestamp4RealtimeLog(timestamp: number): void;
|
|
8681
8715
|
}
|
|
8682
8716
|
|
|
8683
8717
|
declare type ILogger = Pick<BasicLogger, 'createTraceId' | 'info' | 'warn' | 'error' | 'debug' | 'setOutputLevel'>;
|
|
@@ -9533,6 +9567,10 @@ interface IAPIContextOption {
|
|
|
9533
9567
|
* 启动线程阻塞检查
|
|
9534
9568
|
*/
|
|
9535
9569
|
eventLoopBlockingCheck?: boolean;
|
|
9570
|
+
/**
|
|
9571
|
+
* 日志存储代理
|
|
9572
|
+
*/
|
|
9573
|
+
loggerProxy?: LogDBProxy;
|
|
9536
9574
|
}
|
|
9537
9575
|
interface IConnectResult {
|
|
9538
9576
|
/**
|
|
@@ -11913,4 +11951,4 @@ declare class AppStorage {
|
|
|
11913
11951
|
}): void;
|
|
11914
11952
|
}
|
|
11915
11953
|
|
|
11916
|
-
export { APIContext, AbsCodec, AppStorage, AreaCode, AssertRules, BasicEngine, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationListFilter, ConversationListFilterType, ConversationType, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GetAllConversationListFilterParams, GetConversationListByPageIndexParams, GetConversationListByTimestampParams, GetConversationListResponse, GetTopConversationListParams, GetUnreadConversationListParams, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatModule, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomModule, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICombineV2MessageContent, ICombinedMessage, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IConversationUnreadCount, ICreateGroupFail, IDataHostingModule, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExtraMethod, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHarmonyOSPushConfig, IIPCMethods, IInsertMessage, IInsertMsgOptions, ILocalTagStatus, ILogData, ILogger, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRuntime, ISendMsgOptions, IServerGroupBaseInfo, IStorage, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IWatcher, IiOSPushConfig, InnerRTCKeyMaps, InterruptionLevel, ItypingStateListener, KVString, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, PlatformInfo, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, SSEModule, SentStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, Validator, ValidatorManage, VersionManage, assert, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedArray, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversation, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidNotificationLevel, isValidTargetId, logger, map, notEmptyArray, notEmptyObject, notEmptyString, ok, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };
|
|
11954
|
+
export { APIContext, AbsCodec, AppStorage, AreaCode, AssertRules, BasicEngine, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationListFilter, ConversationListFilterType, ConversationType, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GetAllConversationListFilterParams, GetConversationListByPageIndexParams, GetConversationListByTimestampParams, GetConversationListResponse, GetTopConversationListParams, GetUnreadConversationListParams, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatModule, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomModule, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICombineV2MessageContent, ICombinedMessage, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IConversationUnreadCount, ICreateGroupFail, IDataHostingModule, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExtraMethod, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHarmonyOSPushConfig, IIPCMethods, IInsertMessage, IInsertMsgOptions, ILocalTagStatus, ILogData, ILogger, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRuntime, ISendMsgOptions, IServerGroupBaseInfo, IStorage, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IWatcher, IiOSPushConfig, InnerRTCKeyMaps, InterruptionLevel, ItypingStateListener, KVString, LogDBProxy, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, PlatformInfo, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, SSEModule, SentStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, Validator, ValidatorManage, VersionManage, assert, createLogDBProxy, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedArray, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversation, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidNotificationLevel, isValidTargetId, logger, map, notEmptyArray, notEmptyObject, notEmptyString, ok, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };
|