@rongcloud/imlib-next 5.3.3 → 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 CHANGED
@@ -1,5 +1,55 @@
1
- import { LogLevel, MessageDirection, IReadReceiptInfo, IPushConfig, IPluginGenerator, IAsyncRes, ConnectionStatus, IEventListener, NotificationStatus, NotificationLevel, IUserProfile, IConversationOption, ConversationType, ErrorCode, IBaseConversationInfo, IConversationState, IReceivedConversation, IUltraGroupOption, IChatroomInfo, IChatRoomEntry, IChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedType, IMessageReaderResponse, IReceivedMessage, ITagParam, ITagInfo, IConversationTag, IReceivedConversationByTag, FileType, IUploadAuth, UploadMethod } from '@rongcloud/engine';
2
- export { ConnectionStatus, ConversationType, ErrorCode, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomListenerData, IConversationOption, IConversationState, IDeletedExpansion, IExpansionListenerData, IPluginGenerator, IRTCRoomBindOption, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IUpdatedExpansion, LogLevel, MentionedType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, ReceivedStatus, UploadMethod } from '@rongcloud/engine';
1
+ import { LogLevel, MessageDirection, ReceivedStatus, IReadReceiptInfo, IPushConfig, IPluginGenerator, IAsyncRes, ConnectionStatus, IEventListener, NotificationStatus, NotificationLevel, IUserProfile, IConversationOption, ConversationType, ErrorCode, IBaseConversationInfo, IConversationState, IReceivedConversation, IUltraGroupOption, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedType, IMessageReaderResponse, IReceivedMessage, ITagParam, ITagInfo, IConversationTag, IReceivedConversationByTag, FileType, IUploadAuth, UploadMethod } from '@rongcloud/engine';
2
+ export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption, IConversationState, IConversationTag, IDeletedExpansion, IEventListener, IExpansionListenerData, IGooglePushConfig, ILogExtensions, ILogInfo, ILogInit, IMessageReader, IMessageReaderResponse, IPluginGenerator, IPushConfig, IRTCRoomBindOption, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, ITagInfo, ITagParam, IUltraGroupOption, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogLevel, LogSource, LogTagId, MentionedType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, ReceivedStatus, UploadMethod, logger } from '@rongcloud/engine';
3
+
4
+ declare enum Events {
5
+ CONNECTING = "CONNECTING",
6
+ CONNECTED = "CONNECTED",
7
+ DISCONNECT = "DISCONNECT",
8
+ SUSPEND = "SUSPEND",
9
+ MESSAGES = "MESSAGES",
10
+ READ_RECEIPT_RECEIVED = "READ_RECEIPT_RECEIVED",
11
+ MESSAGE_RECEIPT_REQUEST = "MESSAGE_RECEIPT_REQUEST",
12
+ MESSAGE_RECEIPT_RESPONSE = "MESSAGE_RECEIPT_RESPONSE",
13
+ CONVERSATION = "CONVERSATION",
14
+ CHATROOM = "CHATROOM",
15
+ EXPANSION = "EXPANSION",
16
+ PULL_OFFLINE_MESSAGE_FINISHED = "PULL_OFFLINE_MESSAGE_FINISHED",
17
+ TAG = "TAG",
18
+ CONVERSATION_TAG = "CONVERSATION_TAG",
19
+ TYPING_STATUS = "TYPING_STATUS",
20
+ MESSAGE_BLOCKED = "MESSAGE_BLOCKED",
21
+ ULTRA_GROUP_ENABLE = "ULTRA_GROUP_ENABLE",
22
+ OPERATE_STATUS = "OPERATE_STATUS",
23
+ ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED = "ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED",
24
+ ULTRA_GROUP_MESSAGE_MODIFIED = "ULTRA_GROUP_MESSAGE_MODIFIED",
25
+ ULTRA_GROUP_MESSAGE_RECALLED = "ULTRA_GROUP_MESSAGE_RECALLED"
26
+ }
27
+ declare enum SentStatus {
28
+ /**
29
+ * 发送中。
30
+ */
31
+ SENDING = 10,
32
+ /**
33
+ * 发送失败。
34
+ */
35
+ FAILED = 20,
36
+ /**
37
+ * 已发送。
38
+ */
39
+ SENT = 30,
40
+ /**
41
+ * 对方已接收。
42
+ */
43
+ RECEIVED = 40,
44
+ /**
45
+ * 对方已读。
46
+ */
47
+ READ = 50,
48
+ /**
49
+ * 对方已销毁。
50
+ */
51
+ DESTROYED = 60
52
+ }
3
53
 
4
54
  declare type IInitOption = {
5
55
  /**
@@ -34,6 +84,10 @@ declare type IInitOption = {
34
84
  * 是否校验证书,默认为 true
35
85
  */
36
86
  checkCA?: boolean;
87
+ /**
88
+ * 七牛上传文件地址域名(仅私有云)
89
+ */
90
+ uploadDomain?: string;
37
91
  };
38
92
  /**
39
93
  * 用户收到的消息结构
@@ -131,7 +185,11 @@ interface IAReceivedMessage {
131
185
  /**
132
186
  * 消息接收状态
133
187
  */
134
- receivedStatus: number;
188
+ receivedStatus: ReceivedStatus;
189
+ /**
190
+ * 消息的发送状态,Electron 平台独有字段
191
+ */
192
+ sentStatus: SentStatus;
135
193
  /**
136
194
  * 消息已读回执信息,导航配置grpRRVer=1时群组类型消息内存在, 其他情况为undefined
137
195
  */
@@ -141,7 +199,7 @@ interface IAReceivedMessage {
141
199
  */
142
200
  pushConfig?: IPushConfig;
143
201
  /**
144
- * CPP 独有字段 消息本地 ID
202
+ * 消息本地 ID,Electron 平台独有字段
145
203
  */
146
204
  messageId?: number;
147
205
  }
@@ -161,6 +219,12 @@ declare type GetHistoryMessageOption = {
161
219
  */
162
220
  order?: 0 | 1;
163
221
  };
222
+ interface IGetHistoryMessagesByTypesOption extends GetHistoryMessageOption {
223
+ /**
224
+ * 消息类型
225
+ */
226
+ messageTypes: string[];
227
+ }
164
228
  declare type GetHistoryMessageResult = {
165
229
  list: IAReceivedMessage[];
166
230
  hasMore: boolean;
@@ -220,6 +284,10 @@ declare function removeEventListeners(eventType: string): void;
220
284
  */
221
285
  declare function clearEventListeners(): void;
222
286
  declare function __addSDKVersion(name: string, version: string): void;
287
+ /**
288
+ * 获取 deviceId
289
+ */
290
+ declare function getDeviceId(): string;
223
291
 
224
292
  declare class BaseMessage<T = any> {
225
293
  readonly messageType: string;
@@ -384,6 +452,10 @@ interface ISendMessageOptions {
384
452
  * 移动端推送配置
385
453
  */
386
454
  pushConfig?: IPushConfig;
455
+ /**
456
+ * 消息发送之前的回调
457
+ */
458
+ onSendBefore?: (message: IAReceivedMessage) => void;
387
459
  }
388
460
  /**
389
461
  * 文件消息配置
@@ -507,12 +579,22 @@ interface IUploadHooks {
507
579
  url: string;
508
580
  }) => (void | BaseMessage);
509
581
  }
582
+ /**
583
+ * 在时间区间内搜索消息的参数配置
584
+ */
585
+ interface ISearchMessageInTimeRangeOption {
586
+ keyword: string;
587
+ startTime: number;
588
+ endTime: number;
589
+ offset?: number;
590
+ limit?: number;
591
+ }
510
592
 
511
593
  /**
512
594
  * 获取会话列表
513
595
  * @param options
514
596
  */
515
- declare function getConversationList(options?: {
597
+ declare function getConversationList$1(options?: {
516
598
  /**
517
599
  * 会话数量
518
600
  */
@@ -764,7 +846,7 @@ declare function setChatRoomEntry(targetId: string, options: IChatRoomEntry): Pr
764
846
  * 批量设置聊天室自定义属性
765
847
  * @param options ISetChatroomEntryOption数组
766
848
  */
767
- declare function setChatRoomEntries(targetId: string, options: IChatRoomEntries): Promise<IAsyncRes<void>>;
849
+ declare function setChatRoomEntries(targetId: string, options: IChatroomEntries): Promise<IAsyncRes<void>>;
768
850
  /**
769
851
  * 强制 增加/修改 任意聊天室属性
770
852
  * @description 仅聊天室中不存在此属性或属性设置者为己方时可设置成功
@@ -810,6 +892,26 @@ declare function getAllChatRoomEntries(targetId: string): Promise<IAsyncRes<{
810
892
  declare function getChatroomHistoryMessages(targetId: string, options: GetHistoryMessageOption): Promise<IAsyncRes<GetHistoryMessageResult>>;
811
893
  declare function bindRTCRoomForChatroom(option: IRTCRoomBindOption): Promise<IAsyncRes>;
812
894
 
895
+ /**
896
+ * 添加用户到黑名单
897
+ * @param userId 用户 ID
898
+ */
899
+ declare function addToBlacklist(userId: string): Promise<IAsyncRes>;
900
+ /**
901
+ * 从黑名单中移除用户
902
+ * @param userId 用户 ID
903
+ */
904
+ declare function removeFromBlacklist(userId: string): Promise<IAsyncRes>;
905
+ /**
906
+ * 获取黑名单列表
907
+ */
908
+ declare function getBlacklist(): Promise<IAsyncRes<string[]>>;
909
+ /**
910
+ * 查询用户是否在黑名单中
911
+ * @param userId 用户 ID
912
+ */
913
+ declare function getBlacklistStatus(userId: string): Promise<IAsyncRes<boolean>>;
914
+
813
915
  /**
814
916
  * 群组内的消息包含的 @ 数据
815
917
  */
@@ -1083,7 +1185,7 @@ declare function sendSyncReadStatusMessage(conversation: IConversationOption, la
1083
1185
  code: ErrorCode.SUCCESS;
1084
1186
  msg?: undefined;
1085
1187
  } | {
1086
- code: ErrorCode.TIMEOUT | ErrorCode.UNKNOWN | ErrorCode.PARAMETER_ERROR | ErrorCode.EXTRA_METHOD_UNDEFINED | ErrorCode.MAIN_PROCESS_ERROR | ErrorCode.PARAMETER_CHANGED | ErrorCode.RC_MSG_UNAUTHORIZED | ErrorCode.RC_DISCUSSION_GROUP_ID_INVALID | ErrorCode.SEND_FREQUENCY_TOO_FAST | ErrorCode.NOT_IN_DISCUSSION | ErrorCode.FORBIDDEN_IN_GROUP | ErrorCode.RECALL_MESSAGE | ErrorCode.NOT_IN_GROUP | ErrorCode.NOT_IN_CHATROOM | 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_KV_STORE_NOT_OPEN | ErrorCode.CHATROOM_KEY_NOT_EXIST | ErrorCode.CHATROOM_KV_SET_ERROR | ErrorCode.SENSITIVE_SHIELD | ErrorCode.SENSITIVE_REPLACE | ErrorCode.JOIN_IN_DISCUSSION | ErrorCode.CREATE_DISCUSSION | ErrorCode.INVITE_DICUSSION | ErrorCode.GET_USERINFO_ERROR | ErrorCode.REJECTED_BY_BLACKLIST | ErrorCode.RC_NET_CHANNEL_INVALID | ErrorCode.RC_NET_UNAVAILABLE | ErrorCode.RC_MSG_RESP_TIMEOUT | ErrorCode.RC_HTTP_SEND_FAIL | ErrorCode.RC_HTTP_REQ_TIMEOUT | ErrorCode.RC_HTTP_RECV_FAIL | ErrorCode.RC_NAVI_RESOURCE_ERROR | ErrorCode.RC_NODE_NOT_FOUND | ErrorCode.RC_DOMAIN_NOT_RESOLVE | ErrorCode.RC_SOCKET_NOT_CREATED | ErrorCode.RC_SOCKET_DISCONNECTED | ErrorCode.RC_PING_SEND_FAIL | ErrorCode.RC_PONG_RECV_FAIL | ErrorCode.RC_MSG_SEND_FAIL | ErrorCode.RC_MSG_CONTENT_EXCEED_LIMIT | ErrorCode.RC_CONN_ACK_TIMEOUT | ErrorCode.RC_CONN_PROTO_VERSION_ERROR | ErrorCode.RC_CONN_ID_REJECT | ErrorCode.RC_CONN_SERVER_UNAVAILABLE | ErrorCode.RC_CONN_USER_OR_PASSWD_ERROR | 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.RC_APP_AUTH_NOT_PASS | ErrorCode.RC_OTP_USED | ErrorCode.RC_PLATFORM_ERROR | ErrorCode.RC_QUERY_ACK_NO_DATA | ErrorCode.RC_MSG_DATA_INCOMPLETE | 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_EXISTS | ErrorCode.TAG_NOT_EXIST | ErrorCode.NO_TAG_IN_CONVER | ErrorCode.CONVER_REMOVE_ERROR | ErrorCode.CONVER_GETLIST_ERROR | ErrorCode.CONVER_SETOP_ERROR | ErrorCode.CONVER_TOTAL_UNREAD_ERROR | ErrorCode.CONVER_TYPE_UNREAD_ERROR | ErrorCode.CONVER_ID_TYPE_UNREAD_ERROR | ErrorCode.CONVER_CLEAR_ERROR | ErrorCode.EXPANSION_LIMIT_EXCEET | ErrorCode.MESSAGE_KV_NOT_SUPPORT | ErrorCode.CLEAR_HIS_TIME_ERROR | ErrorCode.CONVER_OUT_LIMIT_ERROR | ErrorCode.CONVER_GET_ERROR | ErrorCode.GROUP_SYNC_ERROR | ErrorCode.GROUP_MATCH_ERROR | ErrorCode.READ_RECEIPT_ERROR | ErrorCode.PACKAGE_ENVIRONMENT_ERROR | ErrorCode.CAN_NOT_RECONNECT | ErrorCode.SERVER_UNAVAILABLE | ErrorCode.HOSTNAME_ERROR | ErrorCode.HAS_OHTER_SAME_CLIENT_ON_LINE | ErrorCode.METHOD_NOT_AVAILABLE | ErrorCode.METHOD_NOT_SUPPORT | ErrorCode.MSG_LIMIT_ERROR | ErrorCode.METHOD_ONLY_SUPPORT_ULTRA_GROUP | ErrorCode.UPLOAD_FILE_FAILED | 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.DRAF_SAVE_ERROR | ErrorCode.DRAF_REMOVE_ERROR | ErrorCode.SUBSCRIBE_ERROR | ErrorCode.NOT_SUPPORT | ErrorCode.QNTKN_FILETYPE_ERROR | ErrorCode.QNTKN_GET_ERROR | ErrorCode.COOKIE_ENABLE | ErrorCode.GET_MESSAGE_BY_ID_ERROR | ErrorCode.HAVNODEVICEID | ErrorCode.DEVICEIDISHAVE | ErrorCode.FEILD | ErrorCode.VOIPISNULL | ErrorCode.NOENGINETYPE | ErrorCode.NULLCHANNELNAME | ErrorCode.VOIPDYANMICERROR | ErrorCode.NOVOIP | ErrorCode.INTERNALERRROR | ErrorCode.VOIPCLOSE | ErrorCode.ALREADY_IN_USE | ErrorCode.INVALID_CHANNEL_NAME | ErrorCode.VIDEO_CONTAINER_IS_NULL | ErrorCode.CANCEL | ErrorCode.REJECT | 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.CHATROOM_KV_STORE_NOT_ALL_SUCCESS | ErrorCode.CHATROOM_KV_STORE_OUT_LIMIT;
1188
+ code: ErrorCode.TIMEOUT | ErrorCode.UNKNOWN | ErrorCode.PARAMETER_ERROR | ErrorCode.EXTRA_METHOD_UNDEFINED | ErrorCode.MAIN_PROCESS_ERROR | ErrorCode.PARAMETER_CHANGED | ErrorCode.RC_DISCUSSION_GROUP_ID_INVALID | ErrorCode.SEND_FREQUENCY_TOO_FAST | ErrorCode.NOT_IN_DISCUSSION | ErrorCode.FORBIDDEN_IN_GROUP | ErrorCode.RECALL_MESSAGE | ErrorCode.NOT_IN_GROUP | ErrorCode.NOT_IN_CHATROOM | 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_KV_STORE_NOT_OPEN | ErrorCode.CHATROOM_KEY_NOT_EXIST | ErrorCode.CHATROOM_KV_SET_ERROR | ErrorCode.SENSITIVE_SHIELD | ErrorCode.SENSITIVE_REPLACE | ErrorCode.JOIN_IN_DISCUSSION | ErrorCode.CREATE_DISCUSSION | ErrorCode.INVITE_DICUSSION | ErrorCode.GET_USERINFO_ERROR | ErrorCode.REJECTED_BY_BLACKLIST | ErrorCode.RC_NET_CHANNEL_INVALID | ErrorCode.RC_NET_UNAVAILABLE | ErrorCode.RC_MSG_RESP_TIMEOUT | ErrorCode.RC_HTTP_SEND_FAIL | ErrorCode.RC_HTTP_REQ_TIMEOUT | ErrorCode.RC_HTTP_RECV_FAIL | ErrorCode.RC_NAVI_RESOURCE_ERROR | ErrorCode.RC_NODE_NOT_FOUND | ErrorCode.RC_DOMAIN_NOT_RESOLVE | ErrorCode.RC_SOCKET_NOT_CREATED | ErrorCode.RC_SOCKET_DISCONNECTED | ErrorCode.RC_PING_SEND_FAIL | ErrorCode.RC_PONG_RECV_FAIL | ErrorCode.RC_MSG_SEND_FAIL | ErrorCode.RC_MSG_CONTENT_EXCEED_LIMIT | ErrorCode.RC_CONN_ACK_TIMEOUT | ErrorCode.RC_CONN_PROTO_VERSION_ERROR | ErrorCode.RC_CONN_ID_REJECT | ErrorCode.RC_CONN_SERVER_UNAVAILABLE | ErrorCode.RC_CONN_USER_OR_PASSWD_ERROR | 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.RC_DISCONN_SAME_CLIENT_ON_LINE | ErrorCode.RC_APP_AUTH_NOT_PASS | ErrorCode.RC_OTP_USED | ErrorCode.RC_PLATFORM_ERROR | ErrorCode.RC_QUERY_ACK_NO_DATA | ErrorCode.RC_MSG_DATA_INCOMPLETE | 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_EXISTS | ErrorCode.TAG_NOT_EXIST | ErrorCode.NO_TAG_IN_CONVER | ErrorCode.CONVER_REMOVE_ERROR | ErrorCode.CONVER_GETLIST_ERROR | ErrorCode.CONVER_SETOP_ERROR | ErrorCode.CONVER_TOTAL_UNREAD_ERROR | ErrorCode.CONVER_TYPE_UNREAD_ERROR | ErrorCode.CONVER_ID_TYPE_UNREAD_ERROR | ErrorCode.EXPANSION_LIMIT_EXCEET | ErrorCode.MESSAGE_KV_NOT_SUPPORT | ErrorCode.CONVER_OUT_LIMIT_ERROR | ErrorCode.CONVER_GET_ERROR | ErrorCode.GROUP_SYNC_ERROR | ErrorCode.GROUP_MATCH_ERROR | ErrorCode.READ_RECEIPT_ERROR | ErrorCode.PACKAGE_ENVIRONMENT_ERROR | ErrorCode.CAN_NOT_RECONNECT | ErrorCode.SERVER_UNAVAILABLE | ErrorCode.HOSTNAME_ERROR | ErrorCode.HAS_OHTER_SAME_CLIENT_ON_LINE | ErrorCode.METHOD_NOT_AVAILABLE | ErrorCode.METHOD_NOT_SUPPORT | ErrorCode.MSG_LIMIT_ERROR | ErrorCode.METHOD_ONLY_SUPPORT_ULTRA_GROUP | ErrorCode.UPLOAD_FILE_FAILED | 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.DRAF_SAVE_ERROR | ErrorCode.DRAF_REMOVE_ERROR | ErrorCode.SUBSCRIBE_ERROR | ErrorCode.NOT_SUPPORT | ErrorCode.QNTKN_FILETYPE_ERROR | ErrorCode.QNTKN_GET_ERROR | ErrorCode.COOKIE_ENABLE | ErrorCode.HAVNODEVICEID | ErrorCode.DEVICEIDISHAVE | ErrorCode.FEILD | ErrorCode.VOIPISNULL | ErrorCode.NOENGINETYPE | ErrorCode.NULLCHANNELNAME | ErrorCode.VOIPDYANMICERROR | ErrorCode.NOVOIP | ErrorCode.INTERNALERRROR | ErrorCode.VOIPCLOSE | ErrorCode.CANCEL | ErrorCode.REJECT | 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.CHATROOM_KV_STORE_NOT_ALL_SUCCESS | ErrorCode.CHATROOM_KV_STORE_OUT_LIMIT;
1087
1189
  msg: string | undefined;
1088
1190
  }>;
1089
1191
  /**
@@ -1092,9 +1194,9 @@ declare function sendSyncReadStatusMessage(conversation: IConversationOption, la
1092
1194
  */
1093
1195
  declare function recallMessage(conversation: IConversationOption, options: IRecallMessageOptions): Promise<IAsyncRes<IAReceivedMessage>>;
1094
1196
  /**
1095
- * 按消息 id 删除消息
1197
+ * 按消息 UId 删除消息
1096
1198
  */
1097
- declare function deleteMessages(conversation: IConversationOption, messages: {
1199
+ declare function deleteMessages$1(conversation: IConversationOption, messages: {
1098
1200
  /**
1099
1201
  * 消息 id
1100
1202
  */
@@ -1161,8 +1263,9 @@ declare function getFirstUnreadMessage(conversation: IConversationOption): Promi
1161
1263
  * @param targetId 目标 ID
1162
1264
  * @param content 消息体
1163
1265
  * @param callback
1266
+ * @deprecated
1164
1267
  */
1165
- declare function insertMessage(conversation: IConversationOption, content: IReceivedMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
1268
+ declare function insertMessage$1(conversation: IConversationOption, content: IReceivedMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
1166
1269
  /**
1167
1270
  * 获取消息
1168
1271
  * @param messageId 本地消息 ID 或 messageUId
@@ -1176,12 +1279,14 @@ declare function getMessage(messageId: number): Promise<IAsyncRes<IAReceivedMess
1176
1279
  declare function getUnreadMentionedMessages(conversation: IConversationOption): IAsyncRes<IAReceivedMessage[]>;
1177
1280
  /**
1178
1281
  * 按关键字搜索会话内的消息
1282
+ * @deprecated 已废弃,推荐使用 electronExtension.searchMessages 方法
1179
1283
  * @param conversation 会话
1180
1284
  * @param keyword 搜索内容
1181
1285
  * @param timestamp 搜索时间, 搜索该时间之前的消息
1182
1286
  * @param count 获取的数量
1287
+ * @deprecated
1183
1288
  */
1184
- declare function searchMessages(conversation: IConversationOption, keyword: string, timestamp: number, count: number): Promise<IAsyncRes<{
1289
+ declare function searchMessages$1(conversation: IConversationOption, keyword: string, timestamp: number, count: number): Promise<IAsyncRes<{
1185
1290
  messages: IAReceivedMessage[];
1186
1291
  count: number | undefined;
1187
1292
  }>>;
@@ -1191,21 +1296,22 @@ declare function searchMessages(conversation: IConversationOption, keyword: stri
1191
1296
  * @param timestamp 指定删除该时间戳之前的消息
1192
1297
  * @param cleanSpace 指定删除该时间戳之前的消息。是否清理数据条目所使用的磁盘空间。清理磁盘空间会阻塞进程且耗时较长,不推荐使用。
1193
1298
  * 数据在被抹除的情况下,未清理的磁盘空间会在后续存储操作中复用,且对数据查询无影响
1299
+ * @deprecated
1194
1300
  */
1195
1301
  declare function deleteLocalMessagesByTimestamp(conversation: IConversationOption, timestamp: number, cleanSpace: boolean): Promise<IAsyncRes<void>>;
1196
1302
  /**
1197
1303
  * 清空会话下历史消息
1198
- * @param conversationType 会话类型
1199
- * @param targetId 目标 ID
1200
- * @param callback
1304
+ * @param conversation 会话
1305
+ * @deprecated
1201
1306
  */
1202
- declare function clearMessages(conversation: IConversationOption): Promise<IAsyncRes<void>>;
1307
+ declare function clearMessages$1(conversation: IConversationOption): Promise<IAsyncRes<void>>;
1203
1308
  /**
1204
1309
  * 按内容搜索会话
1205
1310
  * @param keyword 关键字
1206
1311
  * @param conversationTypes 会话类型数组
1312
+ * @deprecated
1207
1313
  */
1208
- declare function searchConversationByContent(keyword: string, conversationTypes?: ConversationType[], customMessageType?: string[], channelId?: string): Promise<IAsyncRes<IReceivedConversation[] | undefined>>;
1314
+ declare function searchConversationByContent$1(keyword: string, conversationTypes?: ConversationType[], customMessageType?: string[], channelId?: string): Promise<IAsyncRes<IReceivedConversation[] | undefined>>;
1209
1315
  /**
1210
1316
  * 清除时间戳前的未读数
1211
1317
  * @param conversationType 会话类型
@@ -1216,8 +1322,9 @@ declare function searchConversationByContent(keyword: string, conversationTypes?
1216
1322
  declare function clearUnreadCountByTimestamp(conversation: IConversationOption, timestamp: number): Promise<IAsyncRes<void>>;
1217
1323
  /**
1218
1324
  * 设置消息接收状态
1325
+ * @deprecated
1219
1326
  */
1220
- declare function setMessageReceivedStatus(messageId: number, receivedStatus: number): Promise<IAsyncRes<void>>;
1327
+ declare function setMessageReceivedStatus$1(messageId: number, receivedStatus: number): Promise<IAsyncRes<void>>;
1221
1328
 
1222
1329
  /**
1223
1330
  * 创建标签
@@ -1288,30 +1395,6 @@ declare function getUnreadCountByTag(tagId: string, containMuted: boolean): Prom
1288
1395
  */
1289
1396
  declare function setConversationToTopInTag(tagId: string, conversation: IConversationOption, isTop: boolean): Promise<IAsyncRes<void>>;
1290
1397
 
1291
- declare enum Events {
1292
- CONNECTING = "CONNECTING",
1293
- CONNECTED = "CONNECTED",
1294
- DISCONNECT = "DISCONNECT",
1295
- SUSPEND = "SUSPEND",
1296
- MESSAGES = "MESSAGES",
1297
- READ_RECEIPT_RECEIVED = "READ_RECEIPT_RECEIVED",
1298
- MESSAGE_RECEIPT_REQUEST = "MESSAGE_RECEIPT_REQUEST",
1299
- MESSAGE_RECEIPT_RESPONSE = "MESSAGE_RECEIPT_RESPONSE",
1300
- CONVERSATION = "CONVERSATION",
1301
- CHATROOM = "CHATROOM",
1302
- EXPANSION = "EXPANSION",
1303
- PULL_OFFLINE_MESSAGE_FINISHED = "PULL_OFFLINE_MESSAGE_FINISHED",
1304
- TAG = "TAG",
1305
- CONVERSATION_TAG = "CONVERSATION_TAG",
1306
- TYPING_STATUS = "TYPING_STATUS",
1307
- MESSAGE_BLOCKED = "MESSAGE_BLOCKED",
1308
- ULTRA_GROUP_ENABLE = "ULTRA_GROUP_ENABLE",
1309
- OPERATE_STATUS = "OPERATE_STATUS",
1310
- ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED = "ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED",
1311
- ULTRA_GROUP_MESSAGE_MODIFIED = "ULTRA_GROUP_MESSAGE_MODIFIED",
1312
- ULTRA_GROUP_MESSAGE_RECALLED = "ULTRA_GROUP_MESSAGE_RECALLED"
1313
- }
1314
-
1315
1398
  /**
1316
1399
  * 获取文件 token
1317
1400
  * @description 上传文件时,获取文件 token
@@ -1369,4 +1452,148 @@ declare const MessageType: {
1369
1452
  RECALL_MESSAGE_TYPE: string;
1370
1453
  };
1371
1454
 
1372
- export { BaseMessage, _default$6 as CombineMessage, ConnectType, Events, _default$5 as FileMessage, _default$4 as GIFMessage, GetHistoryMessageOption, GetHistoryMessageResult, _default$9 as HQVoiceMessage, IAReceivedConversation, IAReceivedMessage, ICombineMessageBody, IConversationUpdateItem, IFileMessageBody, IGIFMessageBody, IHQVoiceMessageBody, IImageMessageBody, IImageMessageOption, IInitOption, ILocationMessageBody, IReceivedUpdateConversation, IReferenceMessageBody, IRichContentMessageBody, ISendFileMessageOptions, ISendImageMessageOptions, ISendMessageOptions, ISightMessageBody, ITextMessageBody, IThumbnailConfig, IUploadHooks, IUploadMessageOption, IVoiceMessageBody, _default$a as ImageMessage, _default$2 as LocationMessage, MentionedInfo$1 as MentionedInfo, MessageConstructor, MessageType, _default$1 as ReferenceMessage, _default as RichContentMessage, _default$8 as SightMessage, _default$7 as TextMessage, _default$3 as VoiceMessage, __addSDKVersion, addConversationsToTag, addEventListener, addTag, bindRTCRoomForChatroom, clearAllMessagesUnreadStatus, clearEventListeners, clearHistoryMessages, clearMessages, clearMessagesUnreadStatus, clearTextMessageDraft, clearUnreadCountByTimestamp, connect, deleteLocalMessagesByTimestamp, deleteMessages, disconnect, forceRemoveChatRoomEntry, forceSetChatRoomEntry, getAllChatRoomEntries, getAllConversationState, getAllUltraGroupUnreadCount, getAllUltraGroupUnreadMentionedCount, getAllUnreadMentionedCount, getBlockUltraGroupList, getBlockedConversationList, getChatRoomEntry, getChatRoomInfo, getChatroomHistoryMessages, getConnectionStatus, getConversation, getConversationList, getConversationNotificationLevel, getConversationNotificationStatus, getConversationsFromTagByPage, getCurrentUserId, getFileToken, getFileUrl, getFirstUnreadMessage, getHistoryMessages, getMessage, getMessageReader, getRemoteHistoryMessages, getServerTime, getTags, getTagsFromConversation, getTextMessageDraft, getTopConversationList, getTotalUnreadCount, getUltraGroupDefaultNotificationLevel, getUltraGroupList, getUltraGroupMessageListByMessageUId, getUltraGroupUnreadCountByTargetId, getUltraGroupUnreadMentionedCountByTargetId, getUnreadCount, getUnreadCountByTag, getUnreadMentionedCount, getUnreadMentionedMessages, init, insertMessage, installPlugin, joinChatRoom, joinExistChatRoom, modifyMessage, onceEventListener, quitChatRoom, recallMessage, registerMessageType, removeAllExpansionForUltraGroupMessage, removeChatRoomEntries, removeChatRoomEntry, removeConversation, removeConversationsFromTag, removeEventListener, removeEventListeners, removeExpansionForUltraGroupMessage, removeMessageExpansionForKey, removeTag, removeTagFromConversations, removeTagsFromConversation, saveTextMessageDraft, searchConversationByContent, searchMessages, sendFileMessage, sendHQVoiceMessage, sendImageMessage, sendMessage, sendReadReceiptMessage, sendReadReceiptRequest, sendReadReceiptResponse, sendReadReceiptResponseV2, sendSightMessage, sendSyncReadStatusMessage, sendTextMessage, sendTypingStatusMessage, sendUltraGroupTypingStatus, setChatRoomEntries, setChatRoomEntry, setConversationNotificationLevel, setConversationNotificationStatus, setConversationToTop, setConversationToTopInTag, setMessageReceivedStatus, setUltraGroupDefaultNotificationLevel, updateExpansionForUltraGroupMessage, updateMessageExpansion, updateTag };
1455
+ /**
1456
+ * 获取全部会话列表
1457
+ * @param channelId 频道 ID,不传则获取全部频道 ID 类型
1458
+ */
1459
+ declare function getAllConversationList(channelId?: string): Promise<IAsyncRes<IAReceivedConversation[]>>;
1460
+ /**
1461
+ * 获取会话列表
1462
+ * @param startTime 起始时间
1463
+ * @param count 数量
1464
+ * @param channelId 频道 ID,不传则获取全部频道 ID 类型
1465
+ */
1466
+ declare function getConversationList(startTime: number, count: number, channelId?: string): Promise<IAsyncRes<IAReceivedConversation[]>>;
1467
+ /**
1468
+ * 根据消息内容搜索会话列表
1469
+ * @param keyword 搜索关键字
1470
+ * @param messageTypes 消息类型
1471
+ * @param channelId 频道 ID,不传则获取全部频道 ID 类型
1472
+ */
1473
+ declare function searchConversationByContent(keyword: string, messageTypes: string[], channelId?: string): Promise<IAsyncRes<IAReceivedConversation[]>>;
1474
+
1475
+ /**
1476
+ * 搜索消息
1477
+ * 如果不传 channelId,则在所有 channelId 中搜索消息
1478
+ * @param conversation 会话
1479
+ * @param keyword 搜索关键字
1480
+ * @param startTime 搜索起始时间
1481
+ * @param count 数量
1482
+ */
1483
+ declare function searchMessages(conversation: IConversationOption, keyword: string, startTime: number, count: number): Promise<IAsyncRes<{
1484
+ messages: IAReceivedMessage[];
1485
+ count: number | undefined;
1486
+ }>>;
1487
+ /**
1488
+ * 在时间范围内搜索消息
1489
+ * @param conversation 会话
1490
+ * @param option 配置
1491
+ */
1492
+ declare function searchMessageInTimeRange(conversation: {
1493
+ conversationType: ConversationType;
1494
+ targetId: string;
1495
+ }, option: ISearchMessageInTimeRangeOption): Promise<IAsyncRes<{
1496
+ messages: IAReceivedMessage[];
1497
+ }>>;
1498
+ /**
1499
+ * 获取指定消息类型的历史消息
1500
+ * @param conversation 会话
1501
+ * @param option 配置参数
1502
+ */
1503
+ declare function getHistoryMessagesByMessageTypes(conversation: IConversationOption, option: IGetHistoryMessagesByTypesOption): Promise<IAsyncRes<{
1504
+ messages: IAReceivedMessage[];
1505
+ hasMore: boolean;
1506
+ }>>;
1507
+ /**
1508
+ * 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
1509
+ * @param conversation 会话
1510
+ * @param timestamp 时间戳
1511
+ */
1512
+ declare function setMessageStatusToRead(conversation: IConversationOption, timestamp: number): Promise<IAsyncRes<boolean>>;
1513
+ /**
1514
+ * 设置对方发送的消息 自己的接受状态
1515
+ * @param messageId 消息 ID
1516
+ * @param receivedStatus 接受状态
1517
+ */
1518
+ declare function setMessageReceivedStatus(messageId: number, receivedStatus: ReceivedStatus): Promise<IAsyncRes>;
1519
+ /**
1520
+ * 设置自己发送的消息的发送状态
1521
+ * @param messageId 消息ID
1522
+ * @param sentStatus 发送状态
1523
+ */
1524
+ declare function setMessageSentStatus(messageId: number, sentStatus: SentStatus): Promise<IAsyncRes>;
1525
+ /**
1526
+ * 修改消息内容
1527
+ * @param messageId 消息 ID
1528
+ * @param content 消息 content
1529
+ * @param messageType 消息类型,如果设置了消息类型,会使该消息无法被搜索
1530
+ */
1531
+ declare function setMessageContent(messageId: number, content: Object, messageType?: string): Promise<IAsyncRes>;
1532
+ /**
1533
+ * 删除消息
1534
+ * @param messageIds 消息 ID 列表, 需是同一会话的消息
1535
+ */
1536
+ declare function deleteMessages(messageIds: number[]): Promise<IAsyncRes>;
1537
+ /**
1538
+ * 清空会话下历史消息
1539
+ * @param conversation 会话
1540
+ */
1541
+ declare function clearMessages(conversation: IConversationOption): Promise<IAsyncRes<void>>;
1542
+ /**
1543
+ * 从本地消息数据库中删除某一会话指定时间之前的消息数据
1544
+ * @param conversation 会话
1545
+ * @param timestamp 指定删除该时间戳之前的消息
1546
+ * @param cleanSpace 指定删除该时间戳之前的消息。是否清理数据条目所使用的磁盘空间。清理磁盘空间会阻塞进程且耗时较长,不推荐使用。
1547
+ * 数据在被抹除的情况下,未清理的磁盘空间会在后续存储操作中复用,且对数据查询无影响
1548
+ */
1549
+ declare function deleteMessagesByTimestamp(conversation: IConversationOption, timestamp: number, cleanSpace: boolean): Promise<IAsyncRes<void>>;
1550
+ /**
1551
+ * 向本地插入一条消息,不发送到服务器
1552
+ * @param conversationType 会话类型
1553
+ * @param targetId 目标 ID
1554
+ * @param message 消息体
1555
+ * @param callback
1556
+ */
1557
+ declare function insertMessage(conversation: IConversationOption, message: IAReceivedMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
1558
+
1559
+ /**
1560
+ * 清除本地数据, 包括消息列表、会话列表、拉取消息的时间戳
1561
+ */
1562
+ declare function clearLocalData(): Promise<IAsyncRes<boolean>>;
1563
+
1564
+ declare const index_getAllConversationList: typeof getAllConversationList;
1565
+ declare const index_getConversationList: typeof getConversationList;
1566
+ declare const index_searchConversationByContent: typeof searchConversationByContent;
1567
+ declare const index_searchMessages: typeof searchMessages;
1568
+ declare const index_searchMessageInTimeRange: typeof searchMessageInTimeRange;
1569
+ declare const index_getHistoryMessagesByMessageTypes: typeof getHistoryMessagesByMessageTypes;
1570
+ declare const index_setMessageStatusToRead: typeof setMessageStatusToRead;
1571
+ declare const index_setMessageReceivedStatus: typeof setMessageReceivedStatus;
1572
+ declare const index_setMessageSentStatus: typeof setMessageSentStatus;
1573
+ declare const index_setMessageContent: typeof setMessageContent;
1574
+ declare const index_deleteMessages: typeof deleteMessages;
1575
+ declare const index_clearMessages: typeof clearMessages;
1576
+ declare const index_deleteMessagesByTimestamp: typeof deleteMessagesByTimestamp;
1577
+ declare const index_insertMessage: typeof insertMessage;
1578
+ declare const index_clearLocalData: typeof clearLocalData;
1579
+ declare namespace index {
1580
+ export {
1581
+ index_getAllConversationList as getAllConversationList,
1582
+ index_getConversationList as getConversationList,
1583
+ index_searchConversationByContent as searchConversationByContent,
1584
+ index_searchMessages as searchMessages,
1585
+ index_searchMessageInTimeRange as searchMessageInTimeRange,
1586
+ index_getHistoryMessagesByMessageTypes as getHistoryMessagesByMessageTypes,
1587
+ index_setMessageStatusToRead as setMessageStatusToRead,
1588
+ index_setMessageReceivedStatus as setMessageReceivedStatus,
1589
+ index_setMessageSentStatus as setMessageSentStatus,
1590
+ index_setMessageContent as setMessageContent,
1591
+ index_deleteMessages as deleteMessages,
1592
+ index_clearMessages as clearMessages,
1593
+ index_deleteMessagesByTimestamp as deleteMessagesByTimestamp,
1594
+ index_insertMessage as insertMessage,
1595
+ index_clearLocalData as clearLocalData,
1596
+ };
1597
+ }
1598
+
1599
+ export { BaseMessage, _default$6 as CombineMessage, ConnectType, Events, _default$5 as FileMessage, _default$4 as GIFMessage, GetHistoryMessageOption, GetHistoryMessageResult, _default$9 as HQVoiceMessage, IAReceivedConversation, IAReceivedMessage, ICombineMessageBody, IConversationUpdateItem, IExtraData, IFileMessageBody, IGIFMessageBody, IGetHistoryMessagesByTypesOption, IHQVoiceMessageBody, IImageMessageBody, IImageMessageOption, IInitOption, IInsertOptions, ILocationMessageBody, IMessageDesc, IRecallMessageOptions, IReceivedUpdateConversation, IReferenceMessageBody, IRichContentMessageBody, ISearchMessageInTimeRangeOption, ISendBody, ISendFileMessageOptions, ISendImageMessageOptions, ISendMessageOptions, ISendSightMessageOptions, ISightMessageBody, ITextMessageBody, IThumbnailConfig, IUploadHooks, IUploadMessageOption, IUserInfo, IVoiceMessageBody, _default$a as ImageMessage, _default$2 as LocationMessage, MentionedInfo$1 as MentionedInfo, MentionedInfo as MentionedInfoBody, MessageConstructor, MessageType, _default$1 as ReferenceMessage, _default as RichContentMessage, SentStatus, _default$8 as SightMessage, _default$7 as TextMessage, _default$3 as VoiceMessage, __addSDKVersion, addConversationsToTag, addEventListener, addTag, addToBlacklist, bindRTCRoomForChatroom, clearAllMessagesUnreadStatus, clearEventListeners, clearHistoryMessages, clearMessages$1 as clearMessages, clearMessagesUnreadStatus, clearTextMessageDraft, clearUnreadCountByTimestamp, connect, deleteLocalMessagesByTimestamp, deleteMessages$1 as deleteMessages, 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, getFileToken, getFileUrl, getFirstUnreadMessage, getHistoryMessages, getMessage, getMessageReader, getRemoteHistoryMessages, getServerTime, getTags, getTagsFromConversation, getTextMessageDraft, getTopConversationList, getTotalUnreadCount, getUltraGroupDefaultNotificationLevel, getUltraGroupList, getUltraGroupMessageListByMessageUId, getUltraGroupUnreadCountByTargetId, getUltraGroupUnreadMentionedCountByTargetId, 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, sendHQVoiceMessage, sendImageMessage, sendMessage, sendReadReceiptMessage, sendReadReceiptRequest, sendReadReceiptResponse, sendReadReceiptResponseV2, sendSightMessage, sendSyncReadStatusMessage, sendTextMessage, sendTypingStatusMessage, sendUltraGroupTypingStatus, setChatRoomEntries, setChatRoomEntry, setConversationNotificationLevel, setConversationNotificationStatus, setConversationToTop, setConversationToTopInTag, setMessageReceivedStatus$1 as setMessageReceivedStatus, setUltraGroupDefaultNotificationLevel, updateExpansionForUltraGroupMessage, updateMessageExpansion, updateTag };