@rongcloud/imlib-next 5.8.4 → 5.8.5-alpha.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
@@ -1,7 +1,8 @@
1
- import { LogLevel, EnableLogL, IRuntime, AreaCode, ConversationType, MessageDirection, ReceivedStatus, SentStatus, IReadReceiptInfo, IPushConfig, UltraGroupChannelType, RCConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUltraUnreadMsg, IUserProfile, IConversationOption, ITypingMessage, IUpdateItem, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUserGroupStatusInfo, IMessageDeliver, IGroupMessageDeliverStatus, IBaseConversationInfo, IConversationState as IConversationState$1, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraGroupUnreadInfo, IChatroomJoinResponse, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedInfoBody, IMessageReaderResponse, IReceivedMessage, IReceivedConversation, ITagParam, ITagInfo, IConversationTag, FileType, IUploadAuth, IDownloadAuth, UploadMethod, IInsertMessage, IGroupMessageDeliverInfo, IProxy, IPromiseResult, IResponse } from '@rongcloud/engine';
2
- export { AreaCode, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationIdentifier, IConversationOption, IConversationTag, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEventListener, IExpansionListenerData, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IInsertMessage, IMessageDeliver, IMessageReader, IMessageReaderResponse, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPromiseResult, IProxy, IPushConfig, IRTCRoomBindOption, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IResponse, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdateItem, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IiOSPushConfig, LogL, LogLevel, MentionedInfoBody, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, OperateStatus, RCConnectionStatus, ReceivedStatus, SentStatus, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
3
- import { IUploadInfo, IUploadResult } from '@rc-embed/upload/type';
1
+ import { LogLevel, EnableLogL, IRuntime, AreaCode, ConversationType, MessageDirection, ReceivedStatus, SentStatus, IReadReceiptInfo, IPushConfig, UltraGroupChannelType, RCConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUltraUnreadMsg, IUserProfile, IConversationOption, ITypingMessage, IUpdateItem, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUserGroupStatusInfo, IMessageDeliver, IGroupMessageDeliverStatus, IReadReceiptData, ISyncReadStatusData, IBaseConversationInfo, IConversationState as IConversationState$1, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraGroupUnreadInfo, IChatroomJoinResponse, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedInfoBody, ICombineV2MessageContent, IMessageReader, IMessageReaderResponse, IReceivedMessage, IReceivedConversation, ITagParam, ITagInfo, IConversationTag, FileType, IUploadAuth, IDownloadAuth, UploadMethod, IInsertMessage, IGroupMessageDeliverInfo, IProxy, IPromiseResult, IResponse } from '@rongcloud/engine';
2
+ export { AreaCode, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, ICombinedMessage, IConversationIdentifier, IConversationOption, IConversationTag, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEventListener, IExpansionListenerData, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupReadReceiptData, IInsertMessage, IMessageDeliver, IMessageReader, IMessageReaderResponse, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPrivateReadReceiptData, IPromiseResult, IProxy, IPushConfig, IRTCRoomBindOption, IReadReceiptData, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IResponse, ISyncReadStatusData, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdateItem, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IiOSPushConfig, LogL, LogLevel, MentionedInfoBody, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, OperateStatus, RCConnectionStatus, ReceivedStatus, SentStatus, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
4
3
  export { IUploadInfo, IUploadResult } from '@rc-embed/upload/type';
4
+ import { IUploadInfo, UploadTask, IUploadResult } from '@rc-embed/upload';
5
+ export { UploadTask } from '@rc-embed/upload';
5
6
 
6
7
  declare type IInitOption = {
7
8
  /**
@@ -333,6 +334,16 @@ declare enum Events {
333
334
  * 收到已读回执响应(群聊)
334
335
  */
335
336
  MESSAGE_RECEIPT_RESPONSE = "MESSAGE_RECEIPT_RESPONSE",
337
+ /**
338
+ * 收到已读回执(V4 版本)
339
+ * @since todo
340
+ */
341
+ MESSAGE_READ_RECEIPT = "MESSAGE_READ_RECEIPT",
342
+ /**
343
+ * 收到会话已读时间同步(V4 版本),收到此通知时 SDK 内会处理清除会话未读数
344
+ * @since todo
345
+ */
346
+ SYNC_READ_STATUS = "SYNC_READ_STATUS",
336
347
  /**
337
348
  * 收到会话变更通知
338
349
  */
@@ -549,6 +560,10 @@ interface IAReceivedConversation {
549
560
  * @since 5.8.4
550
561
  */
551
562
  operationTime?: number;
563
+ /**
564
+ * 会话草稿
565
+ */
566
+ draft?: string;
552
567
  }
553
568
  /**
554
569
  * @category Interface
@@ -897,6 +912,11 @@ declare type EventListeners = {
897
912
  * @hidden
898
913
  */
899
914
  [Events.GROUP_MESSAGE_DELIVERED]: (list: IGroupMessageDeliverStatus[]) => void;
915
+ [Events.MESSAGE_READ_RECEIPT]: (data: IReadReceiptData) => void;
916
+ /**
917
+ * @hidden
918
+ */
919
+ [Events.SYNC_READ_STATUS]: (list: ISyncReadStatusData) => void;
900
920
  };
901
921
 
902
922
  /**
@@ -1249,7 +1269,7 @@ declare function quitChatRoom(targetId: string): Promise<IAsyncRes<void>>;
1249
1269
  * @category 聊天室
1250
1270
  * @description count 或 order 有一个为0时,只返回成员总数,不返回成员列表信息
1251
1271
  */
1252
- declare function getChatRoomInfo(targetId: string, options: {
1272
+ declare function getChatRoomInfo(targetId: string, options?: {
1253
1273
  /**
1254
1274
  * 获取聊天室的人数,传值范围:0-20,默认为 0
1255
1275
  */
@@ -1378,7 +1398,7 @@ interface IImageMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
1378
1398
  */
1379
1399
  imageUri: string;
1380
1400
  }
1381
- declare const _default$d: MessageConstructor<IImageMessageBody>;
1401
+ declare const _default$e: MessageConstructor<IImageMessageBody>;
1382
1402
 
1383
1403
  /**
1384
1404
  * 图片消息
@@ -1398,7 +1418,7 @@ interface IHQVoiceMessageBody extends IUserInfo, IExtraData, IMentionedInfo {
1398
1418
  */
1399
1419
  duration: number;
1400
1420
  }
1401
- declare const _default$c: MessageConstructor<IHQVoiceMessageBody>;
1421
+ declare const _default$d: MessageConstructor<IHQVoiceMessageBody>;
1402
1422
 
1403
1423
  /**
1404
1424
  * 短视频消息
@@ -1427,7 +1447,7 @@ interface ISightMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
1427
1447
  */
1428
1448
  name: string;
1429
1449
  }
1430
- declare const _default$b: MessageConstructor<ISightMessageBody>;
1450
+ declare const _default$c: MessageConstructor<ISightMessageBody>;
1431
1451
 
1432
1452
  /**
1433
1453
  * 文本消息
@@ -1439,7 +1459,7 @@ interface ITextMessageBody extends IUserInfo, IExtraData, IMentionedInfo {
1439
1459
  */
1440
1460
  content: string;
1441
1461
  }
1442
- declare const _default$a: MessageConstructor<ITextMessageBody>;
1462
+ declare const _default$b: MessageConstructor<ITextMessageBody>;
1443
1463
 
1444
1464
  /**
1445
1465
  * 富文本消息
@@ -1463,7 +1483,10 @@ interface ICombineMessageBody extends IExtraData, IUserInfo, IMentionedInfo {
1463
1483
  */
1464
1484
  conversationType: ConversationType;
1465
1485
  }
1466
- declare const _default$9: MessageConstructor<ICombineMessageBody>;
1486
+ declare const _default$a: MessageConstructor<ICombineMessageBody>;
1487
+
1488
+ declare type CombineV2MessageContent = ICombineV2MessageContent & IExtraData & IUserInfo & IMentionedInfo;
1489
+ declare const _default$9: MessageConstructor<CombineV2MessageContent>;
1467
1490
 
1468
1491
  /**
1469
1492
  * 文件消息
@@ -1726,17 +1749,75 @@ declare function sendReadReceiptResponseV2(targetId: string, messageList: {
1726
1749
  }, channelId?: string): Promise<IAsyncRes<void>>;
1727
1750
  /**
1728
1751
  * 多端同步阅读状态
1729
- * @category 消息
1730
- * @param conversation
1731
- * @param timestamp
1732
- */
1733
- declare function sendSyncReadStatusMessage(conversation: IConversationOption, lastMessageSendTime: number): Promise<{
1734
- code: ErrorCode;
1735
- msg?: undefined;
1736
- } | {
1737
- code: ErrorCode.TIMEOUT | ErrorCode.ACTIVE_DISCONNECT | ErrorCode.REJECTED_BY_BLACKLIST | ErrorCode.SYS_CONVERSATION_NOT_SUPPORT_MESSAGE | ErrorCode.SEND_FREQUENCY_TOO_FAST | ErrorCode.OPERATION_BLOCKED | ErrorCode.OPERATION_NOT_SUPPORT | ErrorCode.REQUEST_OVER_FREQUENCY | ErrorCode.NOT_IN_DISCUSSION | ErrorCode.SENSITIVE_SHIELD | ErrorCode.SENSITIVE_REPLACE | ErrorCode.MESSAGE_EXPAND_NOT_EXIST | ErrorCode.MESSAGE_EXPAND_NOT_SUPPORT | ErrorCode.MESSAGE_EXPAND_FORMAT_ERROR | ErrorCode.MESSAGE_EXPAND_NOT_AUTHORIZED | ErrorCode.NOT_IN_GROUP | ErrorCode.FORBIDDEN_IN_GROUP | ErrorCode.NOT_IN_CHATROOM | ErrorCode.GET_USERINFO_ERROR | ErrorCode.FORBIDDEN_IN_CHATROOM | ErrorCode.RC_CHATROOM_USER_KICKED | ErrorCode.RC_CHATROOM_NOT_EXIST | ErrorCode.RC_CHATROOM_IS_FULL | ErrorCode.RC_CHATROOM_PATAMETER_INVALID | ErrorCode.CHATROOM_GET_HISTORYMSG_ERROR | ErrorCode.CHATROOM_NOT_OPEN_HISTORYMSG_STORE | ErrorCode.CHATROOM_KV_EXCEED | ErrorCode.CHATROOM_KV_OVERWRITE_INVALID | ErrorCode.CHATROOM_SET_PROPERTY_OVER_FREQUENCY | ErrorCode.CHATROOM_KV_STORE_NOT_OPEN | ErrorCode.CHATROOM_KEY_NOT_EXIST | ErrorCode.CHATROOM_KV_STORE_NOT_ALL_SUCCESS | ErrorCode.CHATROOM_KV_STORE_OUT_LIMIT | ErrorCode.CHATROOM_KV_SET_ERROR | ErrorCode.ULTRA_GROUP_SERVICE_UNAVAILABLE | ErrorCode.ULTRA_GROUP_SERVICE_ERROR | ErrorCode.ULTRA_GROUP_PARAMETER_ERROR | ErrorCode.ULTRA_GROUP_UNKNOWN_ERROR | ErrorCode.NOT_IN_ULTRA_GROUP | ErrorCode.FORBIDDEN_IN_ULTRA_GROUP | ErrorCode.ULTRA_GROUP_NOT_EXIST | ErrorCode.ULTRA_GROUP_MEMBERS_OVERSIZE | ErrorCode.ULTRA_GROUP_JOINED_OVERSIZE | ErrorCode.ULTRA_GROUP_CHANNELS_OVERSIZE | ErrorCode.ULTRA_GROUP_CHANNEL_ID_NOT_EXIST | ErrorCode.ULTRA_GROUP_MESSAGE_SENT_OVER_FREQUENCY | ErrorCode.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL | ErrorCode.RECALL_MESSAGE | ErrorCode.MESSAGE_STORAGE_SERVICE_UNAVAILABLE | ErrorCode.RECALL_MESSAGE_USER_INVALID | ErrorCode.PUSH_PARAMETER_INVALID | ErrorCode.USER_SETTING_SYNCED_ERROR | ErrorCode.CONVERSATION_TAG_OVERSIZE | ErrorCode.RC_NET_CHANNEL_INVALID | ErrorCode.RC_NET_UNAVAILABLE | ErrorCode.RC_MSG_RESP_TIMEOUT | ErrorCode.RC_HTTP_SEND_FAIL | ErrorCode.RC_HTTP_REQ_FAIL | ErrorCode.RC_HTTP_RECV_FAIL | ErrorCode.RC_NAVI_REQ_FAILED | ErrorCode.RC_NODE_NOT_FOUND | ErrorCode.RC_DOMAIN_NOT_RESOLVE | ErrorCode.RC_SOCKET_NOT_CREATED | ErrorCode.RC_SOCKET_DISCONNECTED | ErrorCode.RC_PING_EXCEED_LIMIT | ErrorCode.PONG_RECEIVED_ERROR | ErrorCode.RC_MSG_SEND_FAIL | ErrorCode.CONNECT_OVER_FREQUENCY | ErrorCode.RC_MSG_CONTENT_EXCEED_LIMIT | ErrorCode.RC_NETWORK_DOWN | ErrorCode.RC_TCP_DISCONNECTED_NO_RMTP | ErrorCode.RC_CONN_ACK_TIMEOUT | ErrorCode.RC_CONN_PROTO_VERSION_ERROR | ErrorCode.RC_CONN_IDENTIFIER_REJECTED | ErrorCode.RC_CONN_SERVER_UNAVAILABLE | ErrorCode.RC_CONN_TOKEN_INCORRECT | ErrorCode.RC_CONN_NOT_AUTHRORIZED | ErrorCode.RC_CONN_REDIRECTED | ErrorCode.RC_CONN_PACKAGE_NAME_INVALID | ErrorCode.RC_CONN_APP_BLOCKED_OR_DELETED | ErrorCode.RC_CONN_USER_BLOCKED | ErrorCode.RC_DISCONN_KICK | ErrorCode.RC_DISCONN_EXCEPTION | ErrorCode.CONNECTION_ENCRYPT_AUTHORIZED_ERROR | ErrorCode.RC_CONN_TOKEN_EXPIRED | ErrorCode.RC_CONN_DEVICE_ERROR | ErrorCode.RC_CONN_HOSTNAME_ERROR | ErrorCode.RC_DISCONN_SAME_CLIENT_ON_LINE | ErrorCode.RC_LISCENSE_COUNT_OUT_OF_LIMIT | ErrorCode.RC_CONN_WRONG_CLUSTER | ErrorCode.RC_APP_AUTH_NOT_PASS | ErrorCode.RC_OTP_USED | ErrorCode.RC_PLATFORM_ERROR | ErrorCode.RC_ACCOUNT_CANCELLATION | ErrorCode.RC_LICENSE_EXPIRED | ErrorCode.RC_QUERY_ACK_NO_DATA | ErrorCode.RC_MSG_DATA_INCOMPLETE | ErrorCode.RC_UDP_DISCONNECTED | ErrorCode.RC_TCP_RESET | ErrorCode.CONNECTION_REFUSED | ErrorCode.PROTOCOL_MESSAGE_SAVED_ERROR | ErrorCode.BIZ_ERROR_CLIENT_NOT_INIT | ErrorCode.BIZ_ERROR_DATABASE_ERROR | ErrorCode.BIZ_ERROR_INVALID_PARAMETER | ErrorCode.BIZ_ERROR_NO_CHANNEL | ErrorCode.BIZ_ERROR_RECONNECT_SUCCESS | ErrorCode.BIZ_ERROR_CONNECTING | ErrorCode.MSG_ROAMING_SERVICE_UNAVAILABLE | ErrorCode.MSG_INSERT_ERROR | ErrorCode.MSG_DEL_ERROR | ErrorCode.TAG_NOT_EXIST | ErrorCode.TAG_EXISTS | ErrorCode.NO_TAG_IN_CONVER | ErrorCode.RC_CONNECTION_EXIST | ErrorCode.PACKAGE_ENVIRONMENT_ERROR | ErrorCode.CONNECTION_TIMEOUT | ErrorCode.MESSAGE_KV_NOT_SUPPORT | ErrorCode.MESSAGE_EXPANDED_ERROR | ErrorCode.EXPANSION_LIMIT_EXCEET | ErrorCode.UPLOAD_FAIL | ErrorCode.CONVER_OUT_LIMIT_ERROR | ErrorCode.READ_RECEIPT_ERROR | ErrorCode.PUSH_CONTENT_CONFIG_SERVICE_UNAVAILABLE | ErrorCode.MESSAGE_INTERCEPTION_PRODUCED_NULL_MESSAGE | ErrorCode.MESSAGE_NOT_REGISTERED | ErrorCode.METHOD_NOT_SUPPORT | ErrorCode.ULTRA_GROUP_CHANNEL_NOT_EXIST | ErrorCode.INCONSISTENT_CONVERSATION_TYPE | ErrorCode.CONVERSATION_TYPE_NOT_SUPPORT | ErrorCode.MSG_LIMIT_ERROR | ErrorCode.INVALID_PARAMETER_PROXY | ErrorCode.INVALID_PARAMETER_TESTHOST | ErrorCode.INVALID_CONNECT_TESTHOST_FAILED | ErrorCode.RC_CONN_PROXY_UNAVAILABLE | ErrorCode.NOT_SUPPORT | ErrorCode.MAIN_PROCESS_ERROR | ErrorCode.SERVER_UNAVAILABLE | ErrorCode.METHOD_NOT_AVAILABLE | ErrorCode.DRAFT_SAVE_ERROR | ErrorCode.DRAFT_REMOVE_ERROR | ErrorCode.CONVER_REMOVE_ERROR | ErrorCode.CONVER_GET_ERROR | ErrorCode.SEARCH_PROPS_LIMIT_ERROR | ErrorCode.UNKNOWN | ErrorCode.PARAMETER_ERROR | ErrorCode.EXTRA_METHOD_UNDEFINED | ErrorCode.PARAMETER_CHANGED | ErrorCode.CANCEL | ErrorCode.HANGUP | ErrorCode.BUSYLINE | ErrorCode.NO_RESPONSE | ErrorCode.ENGINE_UN_SUPPORTED | ErrorCode.NETWORK_ERROR | ErrorCode.REMOTE_CANCEL | ErrorCode.REMOTE_REJECT | ErrorCode.REMOTE_HANGUP | ErrorCode.REMOTE_BUSYLINE | ErrorCode.REMOTE_NO_RESPONSE | ErrorCode.REMOTE_ENGINE_UN_SUPPORTED | ErrorCode.REMOTE_NETWORK_ERROR | ErrorCode.VOIP_NOT_AVALIABLE | ErrorCode.JOIN_IN_DISCUSSION | ErrorCode.CREATE_DISCUSSION | ErrorCode.INVITE_DICUSSION | ErrorCode.HAVNODEVICEID | ErrorCode.DEVICEIDISHAVE | ErrorCode.FEILD | ErrorCode.VOIPISNULL | ErrorCode.NOENGINETYPE | ErrorCode.NULLCHANNELNAME | ErrorCode.VOIPDYANMICERROR | ErrorCode.NOVOIP | ErrorCode.INTERNALERRROR | ErrorCode.VOIPCLOSE | ErrorCode.GROUP_SYNC_ERROR | ErrorCode.GROUP_MATCH_ERROR | ErrorCode.CAN_NOT_RECONNECT | ErrorCode.HOSTNAME_ERROR | ErrorCode.HAS_OHTER_SAME_CLIENT_ON_LINE | ErrorCode.METHOD_ONLY_SUPPORT_ULTRA_GROUP | ErrorCode.CHATROOM_ID_ISNULL | ErrorCode.CHARTOOM_JOIN_ERROR | ErrorCode.CHATROOM_HISMESSAGE_ERROR | ErrorCode.CHATROOM_KV_NOT_FOUND | ErrorCode.BLACK_ADD_ERROR | ErrorCode.BLACK_GETSTATUS_ERROR | ErrorCode.BLACK_REMOVE_ERROR | ErrorCode.DRAF_GET_ERROR | ErrorCode.SUBSCRIBE_ERROR | ErrorCode.QNTKN_FILETYPE_ERROR | ErrorCode.QNTKN_GET_ERROR | ErrorCode.COOKIE_ENABLE;
1738
- msg: string | undefined;
1739
- }>;
1752
+ * @param conversation 会话信息
1753
+ * @param timestamp 时间戳
1754
+ * @example
1755
+ * ```js
1756
+ * const con = {
1757
+ * conversationType: ConversationType.Group,
1758
+ * targetId: 'targetId'
1759
+ * }
1760
+ * sendSyncReadStatusMessage(con, Date.now()).then(res => {
1761
+ * if (res.code === ErrorCode.success) {
1762
+ * console.log('send success', res.data)
1763
+ * } else {
1764
+ * console.log('send error', res.msg)
1765
+ * }
1766
+ * })
1767
+ * ```
1768
+ */
1769
+ declare function sendSyncReadStatusMessage(conversation: IConversationOption, lastMessageSendTime: number): Promise<IAsyncRes<unknown>>;
1770
+ /**
1771
+ * 发送已读回执(V4 版本)
1772
+ *
1773
+ * 调用此接口后,消息的发送者会收到 EVENTS.MESSAGE_READ_RECEIPT 事件通知
1774
+ *
1775
+ * 调用此接口需在开发者后台开通服务
1776
+ * @since todo
1777
+ * @param conversation 会话信息,支持单聊、群聊
1778
+ * @param endMsgUId 结束消息 UId
1779
+ * @param startMsgUId 开始消息UId, 仅群聊时有效
1780
+ * @example
1781
+ * ```js
1782
+ * const con = {
1783
+ * conversationType: ConversationType.Group,
1784
+ * targetId: 'targetId'
1785
+ * }
1786
+ * sendReadReceiptMessageV4(con, 'endMsgUId', 'startMsgUId').then(res => {
1787
+ * if (res.code === ErrorCode.success) {
1788
+ * console.log('send success')
1789
+ * } else {
1790
+ * console.log('send error', res.msg)
1791
+ * }
1792
+ * })
1793
+ * ```
1794
+ */
1795
+ declare function sendReadReceiptMessageV4(conversation: IConversationOption, endMsgUId: string, startMsgUId?: string): Promise<IAsyncRes<unknown>>;
1796
+ /**
1797
+ * 获取消息的已读回执列表
1798
+ *
1799
+ * 调用此接口需在开发者后台开通服务
1800
+ * @since todo
1801
+ * @param conversation 会话信息, 仅支持群聊
1802
+ * @param messageUid 消息 UId
1803
+ * @example
1804
+ * ```js
1805
+ * const con = {
1806
+ * conversationType: ConversationType.Group,
1807
+ * targetId: 'targetId'
1808
+ * }
1809
+ * getMessageReadReceiptV4(con, 'MsgUId').then(res => {
1810
+ * if (res.code === ErrorCode.success) {
1811
+ * console.log('send success', res.data)
1812
+ * } else {
1813
+ * console.log('send error', res.msg)
1814
+ * }
1815
+ * })
1816
+ * ```
1817
+ */
1818
+ declare function getMessageReadReceiptV4(conversation: IConversationOption, messageUid: string): Promise<IAsyncRes<{
1819
+ list: IMessageReader[];
1820
+ }>>;
1740
1821
  /**
1741
1822
  * 撤回消息
1742
1823
  * @category 消息
@@ -1975,6 +2056,7 @@ declare function getUnreadCountByTag(tagId: string, containMuted: boolean): Prom
1975
2056
  */
1976
2057
  declare function setConversationToTopInTag(tagId: string, conversation: IConversationOption, isTop: boolean): Promise<IAsyncRes<void>>;
1977
2058
 
2059
+ declare function createUploadTask(uploadInfo: IUploadInfo): IAsyncRes<UploadTask>;
1978
2060
  declare function upload(uploadInfo: IUploadInfo): Promise<IAsyncRes<IUploadResult>>;
1979
2061
  /**
1980
2062
  * 获取文件 token
@@ -2042,6 +2124,7 @@ declare const MessageType: {
2042
2124
  FILE: string;
2043
2125
  SIGHT: string;
2044
2126
  COMBINE: string;
2127
+ COMBINE_V2: string;
2045
2128
  CHRM_KV_NOTIFY: string;
2046
2129
  LOG_COMMAND: string;
2047
2130
  EXPANSION_NOTIFY: string;
@@ -2168,7 +2251,7 @@ declare function insertMessage(conversation: IConversationOption, message: IARec
2168
2251
  * @param checkDuplicate 选择是否排重,默认 false
2169
2252
  * @returns
2170
2253
  */
2171
- declare function batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<IAsyncRes<any>>;
2254
+ declare function batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<IAsyncRes<boolean>>;
2172
2255
  /**
2173
2256
  * 获取会话所有消息数
2174
2257
  * @param conversation
@@ -2202,12 +2285,14 @@ declare function getGroupMessageDeliverList(targetId: string, messageUId: string
2202
2285
  *
2203
2286
  * @param enableCheck 是否使用融云消息重排机制 true: 开启, false: 关闭
2204
2287
  * @description
2288
+ * @returns data => true: 成功,false: 失败
2205
2289
  *
2206
2290
  */
2207
2291
  declare function setCheckDuplicateMessage(enableCheck: boolean): Promise<IAsyncRes<boolean>>;
2208
2292
 
2209
2293
  /**
2210
2294
  * 清除本地数据, 包括消息列表、会话列表、拉取消息的时间戳
2295
+ * @returns data => true: 成功,false: 失败
2211
2296
  */
2212
2297
  declare function clearLocalData(): Promise<IAsyncRes<boolean>>;
2213
2298
  /**
@@ -2284,4 +2369,4 @@ declare function getProxy(): IPromiseResult<IProxy>;
2284
2369
  */
2285
2370
  declare function testProxy(proxy: IProxy, testHost: string): IPromiseResult<IResponse>;
2286
2371
 
2287
- export { BaseMessage, _default$9 as CombineMessage, _default$2 as CommandMessage, ConnectType, EventListeners, Events, _default$8 as FileMessage, _default$7 as GIFMessage, GetHistoryMessageOption, GetHistoryMessageResult, _default as GroupNotificationMessage, _default$c as HQVoiceMessage, IAReceivedConversation, IAReceivedConversationByTag, IAReceivedMessage, IAUltraGroupReceivedConversation, ICombineMessageBody, ICommandMessageBody, IConversationEvent, IConversationState, IConversationUpdateItem, IExtraData, IFileMessageBody, IGIFMessageBody, IGetHistoryMessagesByTypesOption, IGroupNotificationMessageBody, IHQVoiceMessageBody, IImageMessageBody, IImageMessageOption, IInformationNotificationMessageBody, IInitOption, IInsertOptions, ILocationMessageBody, IMessageDesc, IMessageReceiptRequestEvent, IMessageReceiptResponseEvent, IMessagesEvent, IReadReceiptReceivedEvent, IRecallMessageOptions, IReceivedUpdateConversation, IReferenceMessageBody, IRichContentMessageBody, ISearchMessageInTimeRangeOption, ISendBody, ISendFileMessageOptions, ISendImageMessageOptions, ISendMessageOptions, ISendSightMessageOptions, ISightMessageBody, ITextMessageBody, IThumbnailConfig, ITypingStatusEvent, IUploadHooks, IUploadMessageOption, IUserInfo, IVoiceMessageBody, _default$d as ImageMessage, _default$1 as InformationNotificationMessage, _default$5 as LocationMessage, MentionedInfo, MessageConstructor, MessageType, _default$4 as ReferenceMessage, _default$3 as RichContentMessage, _default$b as SightMessage, _default$a as TextMessage, _default$6 as VoiceMessage, __addSDKVersion, addConversationsToTag, addEventListener, addTag, addToBlacklist, bindRTCRoomForChatroom, clearAllMessagesUnreadStatus, clearEventListeners, clearHistoryMessages, clearMessages$1 as clearMessages, clearMessagesUnreadStatus, clearTextMessageDraft, clearUnreadCountByTimestamp, connect, deleteLocalMessagesByTimestamp, deleteMessages$1 as deleteMessages, destroy, disconnect, index as electronExtension, forceRemoveChatRoomEntry, forceSetChatRoomEntry, getAllChatRoomEntries, getAllConversationState, getAllUltraGroupUnreadCount, getAllUltraGroupUnreadMentionedCount, getAllUnreadMentionedCount, getBlacklist, getBlacklistStatus, getBlockUltraGroupList, getBlockedConversationList, getChatRoomEntry, getChatRoomInfo, getChatroomHistoryMessages, getConnectionStatus, getConversation, getConversationList$1 as getConversationList, getConversationNotificationLevel, getConversationNotificationStatus, getConversationsFromTagByPage, getCurrentUserId, getDeviceId, getDownloadAuth, getFileToken, getFileUrl, getFirstUnreadMessage, getHistoryMessages, getMessage, getMessageReader, getProxy, getRemoteHistoryMessages, getServerTime, getTags, getTagsFromConversation, getTextMessageDraft, getTopConversationList, getTotalUnreadCount, getTotalUnreadCountByLevels, getTotalUnreadMentionedCountByLevels, getUltraGroupDefaultNotificationLevel, getUltraGroupFirstUnreadMessageTimestamp, getUltraGroupList, getUltraGroupMessageListByMessageUId, getUltraGroupUnreadCountByTargetId, getUltraGroupUnreadInfoList, getUltraGroupUnreadMentionedCountByTargetId, getUltraGroupUnreadMentionedMessages, getUnreadConversationList, getUnreadCount, getUnreadCountByTag, getUnreadMentionedCount, getUnreadMentionedMessages, init, insertMessage$1 as insertMessage, installPlugin, joinChatRoom, joinExistChatRoom, modifyMessage, onceEventListener, quitChatRoom, recallMessage, registerMessageType, removeAllExpansionForUltraGroupMessage, removeChatRoomEntries, removeChatRoomEntry, removeConversation, removeConversationsFromTag, removeEventListener, removeEventListeners, removeExpansionForUltraGroupMessage, removeFromBlacklist, removeMessageExpansionForKey, removeTag, removeTagFromConversations, removeTagsFromConversation, saveTextMessageDraft, searchConversationByContent$1 as searchConversationByContent, searchMessages$1 as searchMessages, sendFileMessage, sendGIFMessage, sendHQVoiceMessage, sendImageMessage, sendMessage, sendReadReceiptMessage, sendReadReceiptRequest, sendReadReceiptResponse, sendReadReceiptResponseV2, sendSightMessage, sendSyncReadStatusMessage, sendTextMessage, sendTypingStatusMessage, sendUltraGroupTypingStatus, setChatRoomEntries, setChatRoomEntry, setConversationNotificationLevel, setConversationNotificationStatus, setConversationToTop, setConversationToTopInTag, setMessageReceivedStatus$1 as setMessageReceivedStatus, setProxy, setUltraGroupDefaultNotificationLevel, testProxy, updateExpansionForUltraGroupMessage, updateMessageExpansion, updateTag, upload };
2372
+ export { BaseMessage, _default$a as CombineMessage, _default$9 as CombineV2Message, CombineV2MessageContent, _default$2 as CommandMessage, ConnectType, EventListeners, Events, _default$8 as FileMessage, _default$7 as GIFMessage, GetHistoryMessageOption, GetHistoryMessageResult, _default as GroupNotificationMessage, _default$d as HQVoiceMessage, IAReceivedConversation, IAReceivedConversationByTag, IAReceivedMessage, IAUltraGroupReceivedConversation, ICombineMessageBody, ICommandMessageBody, IConversationEvent, IConversationState, IConversationUpdateItem, IExtraData, IFileMessageBody, IGIFMessageBody, IGetHistoryMessagesByTypesOption, IGroupNotificationMessageBody, IHQVoiceMessageBody, IImageMessageBody, IImageMessageOption, IInformationNotificationMessageBody, IInitOption, IInsertOptions, ILocationMessageBody, IMessageDesc, IMessageReceiptRequestEvent, IMessageReceiptResponseEvent, IMessagesEvent, IReadReceiptReceivedEvent, IRecallMessageOptions, IReceivedUpdateConversation, IReferenceMessageBody, IRichContentMessageBody, ISearchMessageInTimeRangeOption, ISendBody, ISendFileMessageOptions, ISendImageMessageOptions, ISendMessageOptions, ISendSightMessageOptions, ISightMessageBody, ITextMessageBody, IThumbnailConfig, ITypingStatusEvent, IUploadHooks, IUploadMessageOption, IUserInfo, IVoiceMessageBody, _default$e as ImageMessage, _default$1 as InformationNotificationMessage, _default$5 as LocationMessage, MentionedInfo, MessageConstructor, MessageType, _default$4 as ReferenceMessage, _default$3 as RichContentMessage, _default$c as SightMessage, _default$b as TextMessage, _default$6 as VoiceMessage, __addSDKVersion, addConversationsToTag, addEventListener, addTag, addToBlacklist, bindRTCRoomForChatroom, clearAllMessagesUnreadStatus, clearEventListeners, clearHistoryMessages, clearMessages$1 as clearMessages, clearMessagesUnreadStatus, clearTextMessageDraft, clearUnreadCountByTimestamp, connect, createUploadTask, deleteLocalMessagesByTimestamp, deleteMessages$1 as deleteMessages, destroy, disconnect, index as electronExtension, forceRemoveChatRoomEntry, forceSetChatRoomEntry, getAllChatRoomEntries, getAllConversationState, getAllUltraGroupUnreadCount, getAllUltraGroupUnreadMentionedCount, getAllUnreadMentionedCount, getBlacklist, getBlacklistStatus, getBlockUltraGroupList, getBlockedConversationList, getChatRoomEntry, getChatRoomInfo, getChatroomHistoryMessages, getConnectionStatus, getConversation, getConversationList$1 as getConversationList, getConversationNotificationLevel, getConversationNotificationStatus, getConversationsFromTagByPage, getCurrentUserId, getDeviceId, getDownloadAuth, getFileToken, getFileUrl, getFirstUnreadMessage, getHistoryMessages, getMessage, getMessageReadReceiptV4, getMessageReader, getProxy, getRemoteHistoryMessages, getServerTime, getTags, getTagsFromConversation, getTextMessageDraft, getTopConversationList, getTotalUnreadCount, getTotalUnreadCountByLevels, getTotalUnreadMentionedCountByLevels, getUltraGroupDefaultNotificationLevel, getUltraGroupFirstUnreadMessageTimestamp, getUltraGroupList, getUltraGroupMessageListByMessageUId, getUltraGroupUnreadCountByTargetId, getUltraGroupUnreadInfoList, getUltraGroupUnreadMentionedCountByTargetId, getUltraGroupUnreadMentionedMessages, getUnreadConversationList, getUnreadCount, getUnreadCountByTag, getUnreadMentionedCount, getUnreadMentionedMessages, init, insertMessage$1 as insertMessage, installPlugin, joinChatRoom, joinExistChatRoom, modifyMessage, onceEventListener, quitChatRoom, recallMessage, registerMessageType, removeAllExpansionForUltraGroupMessage, removeChatRoomEntries, removeChatRoomEntry, removeConversation, removeConversationsFromTag, removeEventListener, removeEventListeners, removeExpansionForUltraGroupMessage, removeFromBlacklist, removeMessageExpansionForKey, removeTag, removeTagFromConversations, removeTagsFromConversation, saveTextMessageDraft, searchConversationByContent$1 as searchConversationByContent, searchMessages$1 as searchMessages, sendFileMessage, sendGIFMessage, sendHQVoiceMessage, sendImageMessage, sendMessage, sendReadReceiptMessage, sendReadReceiptMessageV4, sendReadReceiptRequest, sendReadReceiptResponse, sendReadReceiptResponseV2, sendSightMessage, sendSyncReadStatusMessage, sendTextMessage, sendTypingStatusMessage, sendUltraGroupTypingStatus, setChatRoomEntries, setChatRoomEntry, setConversationNotificationLevel, setConversationNotificationStatus, setConversationToTop, setConversationToTopInTag, setMessageReceivedStatus$1 as setMessageReceivedStatus, setProxy, setUltraGroupDefaultNotificationLevel, testProxy, updateExpansionForUltraGroupMessage, updateMessageExpansion, updateTag, upload };