@rongcloud/engine 5.4.0 → 5.4.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.d.ts +19 -15
- package/index.esm.js +3 -3
- package/index.js +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1119,7 +1119,6 @@ declare enum ErrorCode {
|
|
|
1119
1119
|
* 成功
|
|
1120
1120
|
*/
|
|
1121
1121
|
SUCCESS = 0,
|
|
1122
|
-
RC_MSG_UNAUTHORIZED = 20406,
|
|
1123
1122
|
/**
|
|
1124
1123
|
* 群组 Id 无效
|
|
1125
1124
|
*/
|
|
@@ -1198,6 +1197,9 @@ declare enum ErrorCode {
|
|
|
1198
1197
|
* 敏感词屏蔽
|
|
1199
1198
|
*/
|
|
1200
1199
|
SENSITIVE_SHIELD = 21501,
|
|
1200
|
+
/**
|
|
1201
|
+
* 消息中含敏感词且敏感词已被替换
|
|
1202
|
+
*/
|
|
1201
1203
|
SENSITIVE_REPLACE = 21502,
|
|
1202
1204
|
/**
|
|
1203
1205
|
* 加入讨论失败
|
|
@@ -1379,7 +1381,13 @@ declare enum ErrorCode {
|
|
|
1379
1381
|
* 消息漫游服务未开通
|
|
1380
1382
|
*/
|
|
1381
1383
|
MSG_ROAMING_SERVICE_UNAVAILABLE = 33007,
|
|
1384
|
+
/**
|
|
1385
|
+
* 消息存入本地数据库失败
|
|
1386
|
+
*/
|
|
1382
1387
|
MSG_INSERT_ERROR = 33008,
|
|
1388
|
+
/**
|
|
1389
|
+
* 删除本地消息失败
|
|
1390
|
+
*/
|
|
1383
1391
|
MSG_DEL_ERROR = 33009,
|
|
1384
1392
|
/**
|
|
1385
1393
|
* 标签已存在
|
|
@@ -1417,7 +1425,6 @@ declare enum ErrorCode {
|
|
|
1417
1425
|
* 获取指定用户ID&会话类型未读消息数异常
|
|
1418
1426
|
*/
|
|
1419
1427
|
CONVER_ID_TYPE_UNREAD_ERROR = 34006,
|
|
1420
|
-
CONVER_CLEAR_ERROR = 34007,
|
|
1421
1428
|
/**
|
|
1422
1429
|
* 扩展存储 key value 超出限制 (错误码与移动端对齐)
|
|
1423
1430
|
*/
|
|
@@ -1426,11 +1433,13 @@ declare enum ErrorCode {
|
|
|
1426
1433
|
* 消息不支持扩展,原消息 canIncludeExpansion 值为 false (错误码与移动端对齐)
|
|
1427
1434
|
*/
|
|
1428
1435
|
MESSAGE_KV_NOT_SUPPORT = 34008,
|
|
1429
|
-
CLEAR_HIS_TIME_ERROR = 34011,
|
|
1430
1436
|
/**
|
|
1431
1437
|
* 会话数量超出上限
|
|
1432
1438
|
*/
|
|
1433
1439
|
CONVER_OUT_LIMIT_ERROR = 34013,
|
|
1440
|
+
/**
|
|
1441
|
+
* 获取会话失败
|
|
1442
|
+
*/
|
|
1434
1443
|
CONVER_GET_ERROR = 35021,
|
|
1435
1444
|
/**
|
|
1436
1445
|
* 群组信息异常
|
|
@@ -1544,7 +1553,6 @@ declare enum ErrorCode {
|
|
|
1544
1553
|
* cookie被禁用
|
|
1545
1554
|
*/
|
|
1546
1555
|
COOKIE_ENABLE = 51001,
|
|
1547
|
-
GET_MESSAGE_BY_ID_ERROR = 61001,
|
|
1548
1556
|
HAVNODEVICEID = 24001,
|
|
1549
1557
|
DEVICEIDISHAVE = 24002,
|
|
1550
1558
|
FEILD = 24009,
|
|
@@ -1555,14 +1563,6 @@ declare enum ErrorCode {
|
|
|
1555
1563
|
NOVOIP = 24014,
|
|
1556
1564
|
INTERNALERRROR = 24015,
|
|
1557
1565
|
VOIPCLOSE = 24016,
|
|
1558
|
-
CLOSE_BEFORE_OPEN = 51001,
|
|
1559
|
-
ALREADY_IN_USE = 51002,
|
|
1560
|
-
INVALID_CHANNEL_NAME = 51003,
|
|
1561
|
-
VIDEO_CONTAINER_IS_NULL = 51004,
|
|
1562
|
-
/**
|
|
1563
|
-
* 删除消息数组长度为 0 .
|
|
1564
|
-
*/
|
|
1565
|
-
DELETE_MESSAGE_ID_IS_NULL = 61001,
|
|
1566
1566
|
/**
|
|
1567
1567
|
* 己方取消已发出的通话请求
|
|
1568
1568
|
*/
|
|
@@ -2958,6 +2958,10 @@ declare enum LogSource {
|
|
|
2958
2958
|
IM = "IM",
|
|
2959
2959
|
RTC = "RTC"
|
|
2960
2960
|
}
|
|
2961
|
+
/**
|
|
2962
|
+
* IMLib 埋点日志 Id 枚举
|
|
2963
|
+
* @desc 参考文档-https://rongcloud.yuque.com/tbvylv/znhprz/dpt9wf#fE9u
|
|
2964
|
+
*/
|
|
2961
2965
|
declare enum LogTagId {
|
|
2962
2966
|
L_IMSDK_VER_O = "L-imsdk_ver-O",
|
|
2963
2967
|
A_INIT_O = "A-init-O",
|
|
@@ -3163,6 +3167,7 @@ interface IEngine {
|
|
|
3163
3167
|
*/
|
|
3164
3168
|
connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
|
|
3165
3169
|
requestNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
3170
|
+
getNaviInfoFromCache(): INaviInfo | null;
|
|
3166
3171
|
/**
|
|
3167
3172
|
* 上报版本信息
|
|
3168
3173
|
* @param version
|
|
@@ -5454,7 +5459,6 @@ declare abstract class AEngine implements IEngine {
|
|
|
5454
5459
|
protected readonly _appkey: string;
|
|
5455
5460
|
protected readonly _apiVer: string;
|
|
5456
5461
|
protected readonly _apiVersion: string;
|
|
5457
|
-
protected _naviInfo: INaviInfo | null;
|
|
5458
5462
|
/**
|
|
5459
5463
|
* 引擎初始化
|
|
5460
5464
|
* @param _appkey
|
|
@@ -5469,7 +5473,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5469
5473
|
*/
|
|
5470
5474
|
getNaviInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
5471
5475
|
protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
|
|
5472
|
-
|
|
5476
|
+
abstract getNaviInfoFromCache(): INaviInfo | null;
|
|
5473
5477
|
/**
|
|
5474
5478
|
* 清空导航数据:内存数据、缓存数据
|
|
5475
5479
|
*/
|
|
@@ -6674,4 +6678,4 @@ declare const ONE_LOG_SIZE_MAX = 1000;
|
|
|
6674
6678
|
*/
|
|
6675
6679
|
declare const version: string;
|
|
6676
6680
|
|
|
6677
|
-
export { AEngine, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType
|
|
6681
|
+
export { AEngine, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGooglePushConfig, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogExtensions, ILogInfo, ILogInit, IM_CHATROOM_PULL_INTERVAL_TIME, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRealTimeLog, IRecallMsgContent, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUltraExMsgOptions, IUltraGroupOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogSource, LogTagId, Logger, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, clone, cloneByJSON, _default as engineLogger, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, randomNum, todo, usingCppEngine, validate, version };
|