@rongcloud/engine 5.5.1 → 5.5.2

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 CHANGED
@@ -540,7 +540,7 @@ declare enum ErrorCode {
540
540
  /**
541
541
  * HTTP 请求失败。
542
542
  */
543
- RC_HTTP_REQ_TIMEOUT = 30005,
543
+ RC_HTTP_REQ_FAIL = 30005,
544
544
  /**
545
545
  * HTTP 接收失败。
546
546
  */
@@ -2249,6 +2249,44 @@ interface IBlockedMessageInfo {
2249
2249
  [key: string]: any;
2250
2250
  };
2251
2251
  }
2252
+ /**
2253
+ * 超级群获取指定会话未读 @ 消息列表参数
2254
+ */
2255
+ interface IUltraGroupUnreadMentionedOption {
2256
+ /**
2257
+ * 会话 ID
2258
+ */
2259
+ targetId: string;
2260
+ /**
2261
+ * 频道 ID
2262
+ */
2263
+ channelId?: string;
2264
+ /**
2265
+ * 消息的时间戳,首次获取传 0, 后续查询传未读 @ 列表中的消息时间戳
2266
+ */
2267
+ sentTime: number;
2268
+ /**
2269
+ * 数据个数,最大50
2270
+ */
2271
+ count: number;
2272
+ }
2273
+ /**
2274
+ * 超级群获取指定会话 @ 未读消息列表结果
2275
+ */
2276
+ interface IUltraUnreadMsg {
2277
+ /**
2278
+ * 消息 ID
2279
+ */
2280
+ messageUId?: string;
2281
+ /**
2282
+ * 消息时间戳
2283
+ */
2284
+ sentTime: number;
2285
+ /**
2286
+ * @ 类型: 1 所有人;2: 部分人
2287
+ */
2288
+ mentionedType?: number;
2289
+ }
2252
2290
 
2253
2291
  /**
2254
2292
  * TODO: 确定对外暴露的必要性
@@ -2339,6 +2377,10 @@ interface IReceivedConversationByTag extends IReceivedConversation {
2339
2377
  }
2340
2378
  interface IUltraGroupConversation extends IReceivedConversation {
2341
2379
  channelType?: UltraGroupChannelType;
2380
+ /**
2381
+ * 第一条未读消息
2382
+ */
2383
+ firstUnreadMessage?: IUltraUnreadMsg | null;
2342
2384
  }
2343
2385
  /**
2344
2386
  * 设置会话状态 参数 信息
@@ -2433,6 +2475,13 @@ interface IUltraChannelDeleteInfo {
2433
2475
  channelType: UltraGroupChannelType;
2434
2476
  deleteTime: number;
2435
2477
  }
2478
+ /**
2479
+ * 获取超级群获取指定会话未读 @ 消息列表
2480
+ */
2481
+ interface IUltraUnreadConversation {
2482
+ targetId: string;
2483
+ channelId?: string;
2484
+ }
2436
2485
 
2437
2486
  /**
2438
2487
  * 导航信息数据就结构
@@ -2590,7 +2639,12 @@ interface INaviInfo {
2590
2639
  bosAddr?: string;
2591
2640
  /**
2592
2641
  * 阿里上传配置,字符串数组,数组顺序代表 七牛、百度、阿里云 上传权重
2593
- * @example "[{"qiniu":"upload.qiniup.com","p":"1"},{"baidu":"gz.bcebos.com","p":"2"},{"aliyun":"oss-cn-beijing.aliyuncs.com","p":"3"}]"
2642
+ * @example
2643
+ * ```
2644
+ * `[{"qiniu":"upload.qiniup.com","p":"1"},
2645
+ * {"baidu":"gz.bcebos.com","p":"2"},
2646
+ * {"aliyun":"oss-cn-beijing.aliyuncs.com","p":"3"}]`
2647
+ * ```
2594
2648
  */
2595
2649
  ossConfig?: string;
2596
2650
  /**
@@ -3944,6 +3998,10 @@ declare class DataCodec {
3944
3998
  * 格式化超级群变更后消息列表
3945
3999
  */
3946
4000
  private _formatUltraMsgList;
4001
+ /**
4002
+ * 格式化超级群获取指定会话未读 @ 消息列表
4003
+ */
4004
+ private _formatUltraGroupUnreadMentionedList;
3947
4005
  /**
3948
4006
  * 格式化会话列表
3949
4007
  */
@@ -4065,8 +4123,12 @@ declare class DataCodec {
4065
4123
  */
4066
4124
  encodeMsgQuery(option: IUltraMsgQueryOptions): any[];
4067
4125
  /**
4068
- * 正在输入中
4126
+ * 序列化获取超级群获取指定会话未读 @ 消息列表参数
4069
4127
  */
4128
+ encodeUnreadMentionedMsgQuery(option: IUltraGroupUnreadMentionedOption): any[];
4129
+ /**
4130
+ * 正在输入中
4131
+ */
4070
4132
  encodeOperateStatus(targetId: string, conversationType: ConversationType, channelId: string, operationType: OperateStatus): any[];
4071
4133
  /**
4072
4134
  * 加入退出聊天室
@@ -5050,6 +5112,18 @@ declare class APIContext {
5050
5112
  */
5051
5113
  getAllUltraGroupUnreadCount(isMentioned?: boolean): Promise<IAsyncRes<number>>;
5052
5114
  getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
5115
+ /**
5116
+ * 超级群类型获取未读 @ 消息列表
5117
+ * @param options
5118
+ * @returns 指定会话未读 @ 消息列表
5119
+ */
5120
+ getUltraGroupUnreadMentionedMessages(options: IUltraGroupUnreadMentionedOption): Promise<IAsyncRes<IUltraUnreadMsg[]>>;
5121
+ /**
5122
+ * 超级群获取指定会话第一条未读消息时间戳
5123
+ * @param conversation
5124
+ * @returns 指定会话第一条未读消息时间戳
5125
+ */
5126
+ getUltraGroupFirstUnreadMessageTimestamp(options: IUltraGroupOption): Promise<IAsyncRes<IUltraUnreadMsg>>;
5053
5127
  /**
5054
5128
  * 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
5055
5129
  * 对于未实现的方法,接口响应 Unsupport 错误码
@@ -6247,6 +6321,14 @@ declare abstract class AEngine implements IEngine {
6247
6321
  */
6248
6322
  abstract getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
6249
6323
  abstract clearData(): Promise<IAsyncRes<boolean>>;
6324
+ /**
6325
+ * 超级群获取指定会话未读 @ 消息列表
6326
+ */
6327
+ abstract getUltraGroupUnreadMentionedMessages(options: IUltraGroupUnreadMentionedOption): Promise<IAsyncRes<IUltraUnreadMsg[]>>;
6328
+ /**
6329
+ * 超级群获取指定会话第一条未读消息时间戳
6330
+ */
6331
+ abstract getUltraGroupFirstUnreadMessageTimestamp(options: IUltraGroupOption): Promise<IAsyncRes<IUltraUnreadMsg>>;
6250
6332
  /**
6251
6333
  * RTC 通用调用接口
6252
6334
  * 在非 Comet 协议下,入参 sourceData 应为 ArrayBuffer 数据,返回结果为 Uint8Array 数据
@@ -6867,4 +6949,4 @@ declare const ONE_LOG_SIZE_MAX = 1000;
6867
6949
  */
6868
6950
  declare const version: string;
6869
6951
 
6870
- export { AEngine, APIContext, AbsCodec, 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, IGetUltraGroupListOption, 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, IUltraGroupConversation, 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, MessageBlockSourceType, 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, RTCKeyMaps, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, clone, cloneByJSON, _default as engineLogger, forEach, formatConnectResponseCode, getBrowser, getClientMessageId, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, randomNum, todo, usingCppEngine, validate, version };
6952
+ export { AEngine, APIContext, AbsCodec, 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, IGetUltraGroupListOption, 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, IOperateStatusNotify, 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, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, 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, MessageBlockSourceType, 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, RTCKeyMaps, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, clone, cloneByJSON, _default as engineLogger, forEach, formatConnectResponseCode, getBrowser, getClientMessageId, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, randomNum, todo, usingCppEngine, validate, version };