@rongcloud/engine 5.0.1-custom-qihoo.2 → 5.0.2-custom-qihoo.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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * RCEngine - v5.0.1-custom-qihoo.2
3
- * CommitId - 2d87143c16d21bf5a573543297c9d6ade7b2a160
4
- * Tue Nov 23 2021 18:12:26 GMT+0800 (China Standard Time)
2
+ * RCEngine - v5.0.2-custom-qihoo.1
3
+ * CommitId - 9d62204d6200f089a0bcae4da637da8090566ca2
4
+ * Wed Dec 22 2021 19:29:39 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  /**
@@ -738,12 +738,17 @@ interface IUserProfile {
738
738
  name?: string;
739
739
  /**
740
740
  * 用户头像地址
741
+ * @deprecated
741
742
  */
742
743
  portraitUri?: string;
743
744
  /**
744
745
  * user info 中附加信息
745
746
  */
746
747
  extra?: string;
748
+ /**
749
+ * 用户头像地址(向移动端兼容)
750
+ */
751
+ portrait?: string;
747
752
  }
748
753
  interface IRecallMsgOptions {
749
754
  /**
@@ -876,6 +881,10 @@ interface ISendMsgOptions {
876
881
  * 20 个字符长度限制
877
882
  */
878
883
  channelId?: string;
884
+ /**
885
+ * 客户端的消息标识
886
+ */
887
+ messageId?: string;
879
888
  }
880
889
  interface IInsertMsgOptions {
881
890
  senderUserId: string;
@@ -1269,7 +1278,7 @@ declare enum ErrorCode {
1269
1278
  */
1270
1279
  EXPANSION_LIMIT_EXCEET = 34010,
1271
1280
  /**
1272
- * 消息不支持扩展 (错误码与移动端对齐)
1281
+ * 消息不支持扩展,原消息 canIncludeExpansion 值为 false (错误码与移动端对齐)
1273
1282
  */
1274
1283
  MESSAGE_KV_NOT_SUPPORT = 34008,
1275
1284
  CLEAR_HIS_TIME_ERROR = 34011,
@@ -1611,6 +1620,10 @@ interface IReceivedConversation {
1611
1620
  * 搜索到的会话数量
1612
1621
  */
1613
1622
  matchCount?: number;
1623
+ /**
1624
+ * @ 消息未读数
1625
+ */
1626
+ unreadMentionedCount?: number;
1614
1627
  }
1615
1628
  interface IReceivedConversationByTag extends IReceivedConversation {
1616
1629
  isTopInTag: boolean;
@@ -2159,6 +2172,7 @@ interface IJoinRTCRoomData extends IRTCUsers {
2159
2172
  key: string;
2160
2173
  value: string;
2161
2174
  }[];
2175
+ kvEntries: IServerRTCRoomEntry[];
2162
2176
  }
2163
2177
  interface KVString {
2164
2178
  [key: string]: string;
@@ -3680,6 +3694,10 @@ declare class WebSocketChannel extends ADataChannel {
3680
3694
  * @param apiVersion - apiVersion 需符合 `/\d+(\.\d+){2}/` 规则
3681
3695
  */
3682
3696
  connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string, protocolVer: ConnAckProtocolVer): Promise<ErrorCode>;
3697
+ /**
3698
+ * 发起连接请求
3699
+ */
3700
+ private _connect;
3683
3701
  /**
3684
3702
  * 当前累计心跳超时次数
3685
3703
  */
@@ -3729,6 +3747,7 @@ declare class CometChannel extends ADataChannel {
3729
3747
  * @returns
3730
3748
  */
3731
3749
  connect(appkey: string, token: string, hosts: string[], protocol: 'http' | 'https', apiVersion: string, protocolVer: ConnAckProtocolVer): Promise<ErrorCode>;
3750
+ private _connect;
3732
3751
  private _idCount;
3733
3752
  private _generateMessageId;
3734
3753
  sendCometData(writer: BaseWriter, timeout?: number): Promise<void>;
@@ -5694,4 +5713,4 @@ declare enum CONNECTION_TYPE {
5694
5713
  */
5695
5714
  declare const version: string;
5696
5715
 
5697
- export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, 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, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRequest, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
5716
+ export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, 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, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRequest, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };