@rongcloud/imlib-next 5.6.2-beem.7 → 5.7.0-beem.10
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 +232 -167
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,143 +1,5 @@
|
|
|
1
|
-
import { LogLevel, EnableLogL, MessageDirection, ReceivedStatus, IReadReceiptInfo, IPushConfig, ConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUserProfile,
|
|
2
|
-
export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption,
|
|
3
|
-
|
|
4
|
-
declare enum Events {
|
|
5
|
-
/**
|
|
6
|
-
* 连接中
|
|
7
|
-
*/
|
|
8
|
-
CONNECTING = "CONNECTING",
|
|
9
|
-
/**
|
|
10
|
-
* 已连接
|
|
11
|
-
*/
|
|
12
|
-
CONNECTED = "CONNECTED",
|
|
13
|
-
/**
|
|
14
|
-
* 断开连接
|
|
15
|
-
*/
|
|
16
|
-
DISCONNECT = "DISCONNECT",
|
|
17
|
-
/**
|
|
18
|
-
* 链接异常断开(自动重连)
|
|
19
|
-
*/
|
|
20
|
-
SUSPEND = "SUSPEND",
|
|
21
|
-
/**
|
|
22
|
-
* 收到消息
|
|
23
|
-
*/
|
|
24
|
-
MESSAGES = "MESSAGES",
|
|
25
|
-
/**
|
|
26
|
-
* 收到已读回执(单聊)
|
|
27
|
-
*/
|
|
28
|
-
READ_RECEIPT_RECEIVED = "READ_RECEIPT_RECEIVED",
|
|
29
|
-
/**
|
|
30
|
-
* 收到已读回执请求(群聊)
|
|
31
|
-
*/
|
|
32
|
-
MESSAGE_RECEIPT_REQUEST = "MESSAGE_RECEIPT_REQUEST",
|
|
33
|
-
/**
|
|
34
|
-
* 收到已读回执响应(群聊)
|
|
35
|
-
*/
|
|
36
|
-
MESSAGE_RECEIPT_RESPONSE = "MESSAGE_RECEIPT_RESPONSE",
|
|
37
|
-
/**
|
|
38
|
-
* 收到会话变更通知
|
|
39
|
-
*/
|
|
40
|
-
CONVERSATION = "CONVERSATION",
|
|
41
|
-
/**
|
|
42
|
-
* 收到聊天室变更通知。注意:如需监听聊天室成员变化,请提交工单申请开通服务。
|
|
43
|
-
*/
|
|
44
|
-
CHATROOM = "CHATROOM",
|
|
45
|
-
/**
|
|
46
|
-
* 收到扩展变更通知
|
|
47
|
-
*/
|
|
48
|
-
EXPANSION = "EXPANSION",
|
|
49
|
-
/**
|
|
50
|
-
* 离线消息拉取完成
|
|
51
|
-
*/
|
|
52
|
-
PULL_OFFLINE_MESSAGE_FINISHED = "PULL_OFFLINE_MESSAGE_FINISHED",
|
|
53
|
-
/**
|
|
54
|
-
* Tag 变更通知,适用于多端场景,收到此通知时需重新获取 Tag 列表以更新 UI 渲染。
|
|
55
|
-
*/
|
|
56
|
-
TAG = "TAG",
|
|
57
|
-
/**
|
|
58
|
-
* 会话上的 Tag 变更通知,适用于多端场景,收到此通知时需根据本地已渲染的会话列表,逐个获取会话的所有标签,以更新 UI 渲染
|
|
59
|
-
*/
|
|
60
|
-
CONVERSATION_TAG = "CONVERSATION_TAG",
|
|
61
|
-
/**
|
|
62
|
-
* 收到正在输入状态通知
|
|
63
|
-
*/
|
|
64
|
-
TYPING_STATUS = "TYPING_STATUS",
|
|
65
|
-
/**
|
|
66
|
-
* 敏感词回调通知。需要提交工单开启服务后才能使用。默认关闭状态。
|
|
67
|
-
* @since 5.2.0
|
|
68
|
-
*/
|
|
69
|
-
MESSAGE_BLOCKED = "MESSAGE_BLOCKED",
|
|
70
|
-
/**
|
|
71
|
-
* 超级群会话列表同步完成,此时可以调用超级群相关接口。
|
|
72
|
-
* @since 5.2.0
|
|
73
|
-
*/
|
|
74
|
-
ULTRA_GROUP_ENABLE = "ULTRA_GROUP_ENABLE",
|
|
75
|
-
/**
|
|
76
|
-
* 超级群输入状态通知
|
|
77
|
-
* @since 5.2.0
|
|
78
|
-
*/
|
|
79
|
-
OPERATE_STATUS = "OPERATE_STATUS",
|
|
80
|
-
/**
|
|
81
|
-
* 超级群消息扩展更新通知
|
|
82
|
-
* @since 5.2.0
|
|
83
|
-
*/
|
|
84
|
-
ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED = "ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED",
|
|
85
|
-
/**
|
|
86
|
-
* 超级群消息被修改通知
|
|
87
|
-
* @since 5.2.0
|
|
88
|
-
*/
|
|
89
|
-
ULTRA_GROUP_MESSAGE_MODIFIED = "ULTRA_GROUP_MESSAGE_MODIFIED",
|
|
90
|
-
/**
|
|
91
|
-
* 超级群消息被撤回通知
|
|
92
|
-
* @since 5.2.0
|
|
93
|
-
*/
|
|
94
|
-
ULTRA_GROUP_MESSAGE_RECALLED = "ULTRA_GROUP_MESSAGE_RECALLED",
|
|
95
|
-
/**
|
|
96
|
-
* 超级群频道类型变更
|
|
97
|
-
* @since 5.4.2
|
|
98
|
-
*/
|
|
99
|
-
ULTRA_GROUP_CHANNEL_TYPE_CHANGE = "ULTRA_GROUP_CHANNEL_TYPE_CHANGE",
|
|
100
|
-
/**
|
|
101
|
-
* 超级群频道被删除
|
|
102
|
-
* @since 5.4.2
|
|
103
|
-
*/
|
|
104
|
-
ULTRA_GROUP_CHANNEL_DELETE = "ULTRA_GROUP_CHANNEL_DELETE",
|
|
105
|
-
/**
|
|
106
|
-
* 超级群私有频道成员变更-退出
|
|
107
|
-
* @since 5.4.2
|
|
108
|
-
*/
|
|
109
|
-
ULTRA_GROUP_CHANNEL_USER_KICKED = "ULTRA_GROUP_CHANNEL_USER_KICKED"
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* 发送状态
|
|
113
|
-
* @category Enum
|
|
114
|
-
*/
|
|
115
|
-
declare enum SentStatus {
|
|
116
|
-
/**
|
|
117
|
-
* 发送中。
|
|
118
|
-
*/
|
|
119
|
-
SENDING = 10,
|
|
120
|
-
/**
|
|
121
|
-
* 发送失败。
|
|
122
|
-
*/
|
|
123
|
-
FAILED = 20,
|
|
124
|
-
/**
|
|
125
|
-
* 已发送。
|
|
126
|
-
*/
|
|
127
|
-
SENT = 30,
|
|
128
|
-
/**
|
|
129
|
-
* 对方已接收。
|
|
130
|
-
*/
|
|
131
|
-
RECEIVED = 40,
|
|
132
|
-
/**
|
|
133
|
-
* 对方已读。
|
|
134
|
-
*/
|
|
135
|
-
READ = 50,
|
|
136
|
-
/**
|
|
137
|
-
* 对方已销毁。
|
|
138
|
-
*/
|
|
139
|
-
DESTROYED = 60
|
|
140
|
-
}
|
|
1
|
+
import { LogLevel, EnableLogL, IRuntime, ConversationType, MessageDirection, ReceivedStatus, SentStatus, IReadReceiptInfo, IPushConfig, UltraGroupChannelType, ConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUserProfile, IConversationOption, ITypingMessage, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IMessageDeliver, IGroupMessageDeliverStatus, IBaseConversationInfo, IConversationState as IConversationState$1, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedType, IMessageReaderResponse, IReceivedMessage, IReceivedConversation, ITagParam, ITagInfo, IConversationTag, FileType, IUploadAuth, UploadMethod, IGroupMessageDeliverInfo, IProxy, IPromiseResult, IResponse } from '@rongcloud/engine';
|
|
2
|
+
export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption, IConversationTag, IDeletedExpansion, IDeliveredUser, IEventListener, IExpansionListenerData, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IMessageDeliver, IMessageReader, IMessageReaderResponse, IOperateInfo, IOperateStatusNotify, IOperateSummary, IProxy, IPushConfig, IRTCRoomBindOption, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogL, LogLevel, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, RCConnectionStatus, ReceivedStatus, SentStatus, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
|
|
141
3
|
|
|
142
4
|
declare type IInitOption = {
|
|
143
5
|
/**
|
|
@@ -177,7 +39,7 @@ declare type IInitOption = {
|
|
|
177
39
|
*/
|
|
178
40
|
indexDBSwitch?: boolean;
|
|
179
41
|
/**
|
|
180
|
-
*
|
|
42
|
+
* @deprecated 已废弃,默认不再在 Electron 平台下校验导航服务的 CA 问题
|
|
181
43
|
*/
|
|
182
44
|
checkCA?: boolean;
|
|
183
45
|
/**
|
|
@@ -205,6 +67,11 @@ declare type IInitOption = {
|
|
|
205
67
|
* IndexDB 数据库内的日志有效期,单位为小时,有效值为 `24` - `168`,默认 IndexDB 内日志数据有效期 168 小时
|
|
206
68
|
*/
|
|
207
69
|
logExpireTime?: number;
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
* 创建自定义的 Runtime 运行时,以便于业务层自行适配不同的运行时环境
|
|
73
|
+
*/
|
|
74
|
+
__runtimeCreator__?: () => IRuntime;
|
|
208
75
|
};
|
|
209
76
|
/**
|
|
210
77
|
* 用户收到的消息结构
|
|
@@ -243,7 +110,7 @@ interface IAReceivedMessage {
|
|
|
243
110
|
* * 8: 手动关注的公众号
|
|
244
111
|
* * 9: RTCLib 房间
|
|
245
112
|
*/
|
|
246
|
-
conversationType:
|
|
113
|
+
conversationType: ConversationType;
|
|
247
114
|
/**
|
|
248
115
|
* 消息在服务器端的发送时间
|
|
249
116
|
*/
|
|
@@ -305,9 +172,10 @@ interface IAReceivedMessage {
|
|
|
305
172
|
*/
|
|
306
173
|
receivedStatus: ReceivedStatus;
|
|
307
174
|
/**
|
|
308
|
-
* 消息的发送状态,Electron
|
|
175
|
+
* 消息的发送状态,Electron 平台可由 SDK 内自动更新和用户设置,
|
|
176
|
+
* web 端仅支持 SDK 内更新为 发送中、已发送和发送失败
|
|
309
177
|
*/
|
|
310
|
-
sentStatus
|
|
178
|
+
sentStatus?: SentStatus;
|
|
311
179
|
/**
|
|
312
180
|
* 消息已读回执信息,导航配置grpRRVer=1时群组类型消息内存在, 其他情况为undefined
|
|
313
181
|
*/
|
|
@@ -320,6 +188,18 @@ interface IAReceivedMessage {
|
|
|
320
188
|
* 消息本地 ID,Electron 平台独有字段
|
|
321
189
|
*/
|
|
322
190
|
messageId?: number;
|
|
191
|
+
/**
|
|
192
|
+
* 超级群专有字段,是否断档,服务端收到大量消息可能会断档,所以消息存在此标志位,断档需要客户手动拉取历史消息
|
|
193
|
+
*/
|
|
194
|
+
isInterrupt?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* 超级群专有字段,拉取历史消息时表示该消息是否修改过(仅超级群有效)
|
|
197
|
+
*/
|
|
198
|
+
isModifyMessage?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* 超级群专有字段,拉取历史消息时表示该消息是否为超级群频道类型(仅超级群有效)
|
|
201
|
+
*/
|
|
202
|
+
channelType?: UltraGroupChannelType;
|
|
323
203
|
}
|
|
324
204
|
declare type GetHistoryMessageOption = {
|
|
325
205
|
/**
|
|
@@ -402,10 +282,131 @@ declare function connect(token: string, reconnectKickEnable?: boolean): Promise<
|
|
|
402
282
|
}>>;
|
|
403
283
|
/**
|
|
404
284
|
* 断开当前用户的连接
|
|
285
|
+
* @param closeDB 是否关闭数据库,默认为 true,仅 Electron 平台有效
|
|
405
286
|
* @category 基础
|
|
406
287
|
* @description 调用后将不再接收消息,不可发送消息,不可获取历史消息,不可获取会话列表
|
|
407
288
|
*/
|
|
408
|
-
declare function disconnect(): Promise<void>;
|
|
289
|
+
declare function disconnect(closeDB?: boolean): Promise<void>;
|
|
290
|
+
|
|
291
|
+
declare enum Events {
|
|
292
|
+
/**
|
|
293
|
+
* 连接中
|
|
294
|
+
*/
|
|
295
|
+
CONNECTING = "CONNECTING",
|
|
296
|
+
/**
|
|
297
|
+
* 已连接
|
|
298
|
+
*/
|
|
299
|
+
CONNECTED = "CONNECTED",
|
|
300
|
+
/**
|
|
301
|
+
* 断开连接
|
|
302
|
+
*/
|
|
303
|
+
DISCONNECT = "DISCONNECT",
|
|
304
|
+
/**
|
|
305
|
+
* 链接异常断开(自动重连)
|
|
306
|
+
*/
|
|
307
|
+
SUSPEND = "SUSPEND",
|
|
308
|
+
/**
|
|
309
|
+
* 收到消息
|
|
310
|
+
*/
|
|
311
|
+
MESSAGES = "MESSAGES",
|
|
312
|
+
/**
|
|
313
|
+
* 收到已读回执(单聊)
|
|
314
|
+
*/
|
|
315
|
+
READ_RECEIPT_RECEIVED = "READ_RECEIPT_RECEIVED",
|
|
316
|
+
/**
|
|
317
|
+
* 收到已读回执请求(群聊)
|
|
318
|
+
*/
|
|
319
|
+
MESSAGE_RECEIPT_REQUEST = "MESSAGE_RECEIPT_REQUEST",
|
|
320
|
+
/**
|
|
321
|
+
* 收到已读回执响应(群聊)
|
|
322
|
+
*/
|
|
323
|
+
MESSAGE_RECEIPT_RESPONSE = "MESSAGE_RECEIPT_RESPONSE",
|
|
324
|
+
/**
|
|
325
|
+
* 收到会话变更通知
|
|
326
|
+
*/
|
|
327
|
+
CONVERSATION = "CONVERSATION",
|
|
328
|
+
/**
|
|
329
|
+
* 收到聊天室变更通知。注意:如需监听聊天室成员变化,请提交工单申请开通服务。
|
|
330
|
+
*/
|
|
331
|
+
CHATROOM = "CHATROOM",
|
|
332
|
+
/**
|
|
333
|
+
* 收到扩展变更通知
|
|
334
|
+
*/
|
|
335
|
+
EXPANSION = "EXPANSION",
|
|
336
|
+
/**
|
|
337
|
+
* 离线消息拉取完成
|
|
338
|
+
*/
|
|
339
|
+
PULL_OFFLINE_MESSAGE_FINISHED = "PULL_OFFLINE_MESSAGE_FINISHED",
|
|
340
|
+
/**
|
|
341
|
+
* Tag 变更通知,适用于多端场景,收到此通知时需重新获取 Tag 列表以更新 UI 渲染。
|
|
342
|
+
*/
|
|
343
|
+
TAG = "TAG",
|
|
344
|
+
/**
|
|
345
|
+
* 会话上的 Tag 变更通知,适用于多端场景,收到此通知时需根据本地已渲染的会话列表,逐个获取会话的所有标签,以更新 UI 渲染
|
|
346
|
+
*/
|
|
347
|
+
CONVERSATION_TAG = "CONVERSATION_TAG",
|
|
348
|
+
/**
|
|
349
|
+
* 收到正在输入状态通知
|
|
350
|
+
*/
|
|
351
|
+
TYPING_STATUS = "TYPING_STATUS",
|
|
352
|
+
/**
|
|
353
|
+
* 敏感词回调通知。需要提交工单开启服务后才能使用。默认关闭状态。
|
|
354
|
+
* @since 5.2.0
|
|
355
|
+
*/
|
|
356
|
+
MESSAGE_BLOCKED = "MESSAGE_BLOCKED",
|
|
357
|
+
/**
|
|
358
|
+
* 超级群会话列表同步完成,此时可以调用超级群相关接口。
|
|
359
|
+
* @since 5.2.0
|
|
360
|
+
*/
|
|
361
|
+
ULTRA_GROUP_ENABLE = "ULTRA_GROUP_ENABLE",
|
|
362
|
+
/**
|
|
363
|
+
* 超级群输入状态通知
|
|
364
|
+
* @since 5.2.0
|
|
365
|
+
*/
|
|
366
|
+
OPERATE_STATUS = "OPERATE_STATUS",
|
|
367
|
+
/**
|
|
368
|
+
* 超级群消息扩展更新通知
|
|
369
|
+
* @since 5.2.0
|
|
370
|
+
*/
|
|
371
|
+
ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED = "ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED",
|
|
372
|
+
/**
|
|
373
|
+
* 超级群消息被修改通知
|
|
374
|
+
* @since 5.2.0
|
|
375
|
+
*/
|
|
376
|
+
ULTRA_GROUP_MESSAGE_MODIFIED = "ULTRA_GROUP_MESSAGE_MODIFIED",
|
|
377
|
+
/**
|
|
378
|
+
* 超级群消息被撤回通知
|
|
379
|
+
* @since 5.2.0
|
|
380
|
+
*/
|
|
381
|
+
ULTRA_GROUP_MESSAGE_RECALLED = "ULTRA_GROUP_MESSAGE_RECALLED",
|
|
382
|
+
/**
|
|
383
|
+
* 超级群频道类型变更
|
|
384
|
+
* @since 5.4.2
|
|
385
|
+
*/
|
|
386
|
+
ULTRA_GROUP_CHANNEL_TYPE_CHANGE = "ULTRA_GROUP_CHANNEL_TYPE_CHANGE",
|
|
387
|
+
/**
|
|
388
|
+
* 超级群频道被删除
|
|
389
|
+
* @since 5.4.2
|
|
390
|
+
*/
|
|
391
|
+
ULTRA_GROUP_CHANNEL_DELETE = "ULTRA_GROUP_CHANNEL_DELETE",
|
|
392
|
+
/**
|
|
393
|
+
* 超级群私有频道成员变更-退出
|
|
394
|
+
* @since 5.4.2
|
|
395
|
+
*/
|
|
396
|
+
ULTRA_GROUP_CHANNEL_USER_KICKED = "ULTRA_GROUP_CHANNEL_USER_KICKED",
|
|
397
|
+
/**
|
|
398
|
+
* 单聊消息送达通知
|
|
399
|
+
* @hidden 暂仅 Beem 使用,无需公开
|
|
400
|
+
* @since 5.6.0
|
|
401
|
+
*/
|
|
402
|
+
PRIVATE_MESSAGE_DELIVERED = "PRIVATE_MESSAGE_DELIVERED",
|
|
403
|
+
/**
|
|
404
|
+
* 群组消息送达状态通知
|
|
405
|
+
* @hidden 暂仅 Beem 使用,无需公开
|
|
406
|
+
* @since 5.6.0
|
|
407
|
+
*/
|
|
408
|
+
GROUP_MESSAGE_DELIVERED = "GROUP_MESSAGE_DELIVERED"
|
|
409
|
+
}
|
|
409
410
|
|
|
410
411
|
declare class BaseMessage<T = any> {
|
|
411
412
|
readonly messageType: string;
|
|
@@ -466,7 +467,7 @@ interface IAReceivedConversation {
|
|
|
466
467
|
* * 8: 手动关注的公众号
|
|
467
468
|
* * 9: RTCLib 房间
|
|
468
469
|
*/
|
|
469
|
-
conversationType:
|
|
470
|
+
conversationType: ConversationType;
|
|
470
471
|
/**
|
|
471
472
|
* 会话 id
|
|
472
473
|
*/
|
|
@@ -516,6 +517,16 @@ interface IAReceivedConversation {
|
|
|
516
517
|
* @deprecated 字段已废弃即将删除,不推荐使用
|
|
517
518
|
*/
|
|
518
519
|
versionTime?: number;
|
|
520
|
+
/**
|
|
521
|
+
* 按照消息搜索会话时,匹配到的消息数量(仅 Electron 有效)
|
|
522
|
+
*/
|
|
523
|
+
matchCount?: number;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* @category Interface
|
|
527
|
+
*/
|
|
528
|
+
interface IAReceivedConversationByTag extends IAReceivedConversation {
|
|
529
|
+
isTopInTag: boolean;
|
|
519
530
|
}
|
|
520
531
|
/**
|
|
521
532
|
* @category Interface
|
|
@@ -749,7 +760,7 @@ interface IMessagesEvent {
|
|
|
749
760
|
/**
|
|
750
761
|
* 接收的消息数据
|
|
751
762
|
*/
|
|
752
|
-
messages:
|
|
763
|
+
messages: IAReceivedMessage[];
|
|
753
764
|
}
|
|
754
765
|
interface IReadReceiptReceivedEvent {
|
|
755
766
|
/**
|
|
@@ -812,14 +823,14 @@ interface IConversationEvent {
|
|
|
812
823
|
/**
|
|
813
824
|
* 会话信息数组
|
|
814
825
|
*/
|
|
815
|
-
|
|
826
|
+
conversationList: IConversationState[];
|
|
816
827
|
}
|
|
817
828
|
|
|
818
829
|
declare type EventListeners = {
|
|
819
830
|
[Events.CONNECTING]: () => void;
|
|
820
831
|
[Events.CONNECTED]: () => void;
|
|
821
|
-
[Events.DISCONNECT]: (
|
|
822
|
-
[Events.SUSPEND]: (
|
|
832
|
+
[Events.DISCONNECT]: (code: ErrorCode) => void;
|
|
833
|
+
[Events.SUSPEND]: (code: ErrorCode) => void;
|
|
823
834
|
[Events.MESSAGES]: (messages: IMessagesEvent) => void;
|
|
824
835
|
[Events.READ_RECEIPT_RECEIVED]: (event: IReadReceiptReceivedEvent) => void;
|
|
825
836
|
[Events.MESSAGE_RECEIPT_REQUEST]: (event: IMessageReceiptRequestEvent) => void;
|
|
@@ -832,14 +843,22 @@ declare type EventListeners = {
|
|
|
832
843
|
[Events.CONVERSATION_TAG]: () => void;
|
|
833
844
|
[Events.TYPING_STATUS]: (event: ITypingStatusEvent) => void;
|
|
834
845
|
[Events.MESSAGE_BLOCKED]: (data: IBlockedMessageInfo) => void;
|
|
835
|
-
[Events.ULTRA_GROUP_ENABLE]: (list:
|
|
846
|
+
[Events.ULTRA_GROUP_ENABLE]: (list: IAReceivedConversation[]) => void;
|
|
836
847
|
[Events.OPERATE_STATUS]: (status: IOperateStatusNotify) => void;
|
|
837
|
-
[Events.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED]: (list:
|
|
838
|
-
[Events.ULTRA_GROUP_MESSAGE_MODIFIED]: (list:
|
|
839
|
-
[Events.ULTRA_GROUP_MESSAGE_RECALLED]: (list:
|
|
848
|
+
[Events.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED]: (list: IAReceivedMessage[]) => void;
|
|
849
|
+
[Events.ULTRA_GROUP_MESSAGE_MODIFIED]: (list: IAReceivedMessage[]) => void;
|
|
850
|
+
[Events.ULTRA_GROUP_MESSAGE_RECALLED]: (list: IAReceivedMessage[]) => void;
|
|
840
851
|
[Events.ULTRA_GROUP_CHANNEL_TYPE_CHANGE]: (list: IUltraChannelChangeInfo[]) => void;
|
|
841
852
|
[Events.ULTRA_GROUP_CHANNEL_DELETE]: (list: IUltraChannelDeleteInfo[]) => void;
|
|
842
853
|
[Events.ULTRA_GROUP_CHANNEL_USER_KICKED]: (list: IUltraChannelUserKickedInfo[]) => void;
|
|
854
|
+
/**
|
|
855
|
+
* @hidden
|
|
856
|
+
*/
|
|
857
|
+
[Events.PRIVATE_MESSAGE_DELIVERED]: (list: IMessageDeliver[]) => void;
|
|
858
|
+
/**
|
|
859
|
+
* @hidden
|
|
860
|
+
*/
|
|
861
|
+
[Events.GROUP_MESSAGE_DELIVERED]: (list: IGroupMessageDeliverStatus[]) => void;
|
|
843
862
|
};
|
|
844
863
|
|
|
845
864
|
/**
|
|
@@ -1024,8 +1043,16 @@ declare function setConversationToTop(options: IConversationOption, isTop?: bool
|
|
|
1024
1043
|
/**
|
|
1025
1044
|
* 获取置顶会话
|
|
1026
1045
|
* @category 会话
|
|
1046
|
+
* @param conversationTypes 会话类型
|
|
1047
|
+
* @param channelId 不传或传 undefined 时获取全部 channelId 类型的置顶会话
|
|
1048
|
+
*/
|
|
1049
|
+
declare function getTopConversationList(conversationTypes?: ConversationType[], channelId?: string): Promise<IAsyncRes<IAReceivedConversation[]>>;
|
|
1050
|
+
/**
|
|
1051
|
+
* 获取未读会话列表
|
|
1052
|
+
* @category 会话
|
|
1053
|
+
* @param conversationTypes 会话类型
|
|
1027
1054
|
*/
|
|
1028
|
-
declare function
|
|
1055
|
+
declare function getUnreadConversationList(conversationTypes?: ConversationType[]): Promise<IAsyncRes<IAReceivedConversation[]>>;
|
|
1029
1056
|
/**
|
|
1030
1057
|
* 获取单个群会话 @ 消息未读数
|
|
1031
1058
|
* @category 会话未读数
|
|
@@ -1063,7 +1090,7 @@ declare function sendUltraGroupTypingStatus(options: IConversationOption): Promi
|
|
|
1063
1090
|
* @category 超级群
|
|
1064
1091
|
*/
|
|
1065
1092
|
declare function getUltraGroupMessageListByMessageUId(options: IConversationOption, msgs: IMessageDesc[]): Promise<IAsyncRes<{
|
|
1066
|
-
[messageUid: string]:
|
|
1093
|
+
[messageUid: string]: IAReceivedMessage | undefined;
|
|
1067
1094
|
}>>;
|
|
1068
1095
|
/**
|
|
1069
1096
|
* 修改消息扩展
|
|
@@ -1605,7 +1632,7 @@ declare function sendSyncReadStatusMessage(conversation: IConversationOption, la
|
|
|
1605
1632
|
code: ErrorCode;
|
|
1606
1633
|
msg?: undefined;
|
|
1607
1634
|
} | {
|
|
1608
|
-
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_FAIL | ErrorCode.RC_HTTP_RECV_FAIL | ErrorCode.
|
|
1635
|
+
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_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.RC_MSG_SEND_FAIL | ErrorCode.RC_MSG_CONTENT_EXCEED_LIMIT | 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.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_TCP_RESET | 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.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL | 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 | ErrorCode.SEARCH_PROPS_LIMIT_ERROR | ErrorCode.INVALID_PARAMETER_PROXY | ErrorCode.INVALID_PARAMETER_TESTHOST | ErrorCode.INVALID_CONNECT_TESTHOST_FAILED | ErrorCode.RC_CONN_PROXY_UNAVAILABLE;
|
|
1609
1636
|
msg: string | undefined;
|
|
1610
1637
|
}>;
|
|
1611
1638
|
/**
|
|
@@ -1686,7 +1713,7 @@ declare function registerMessageType<T>(messageType: string, isPersited: boolean
|
|
|
1686
1713
|
* @category 消息
|
|
1687
1714
|
* @param conversation
|
|
1688
1715
|
*/
|
|
1689
|
-
declare function getFirstUnreadMessage(conversation: IConversationOption): Promise<IAsyncRes<
|
|
1716
|
+
declare function getFirstUnreadMessage(conversation: IConversationOption): Promise<IAsyncRes<IAReceivedMessage | null>>;
|
|
1690
1717
|
/**
|
|
1691
1718
|
* 向本地插入一条消息,不发送到服务器
|
|
1692
1719
|
* @category 消息
|
|
@@ -1702,7 +1729,7 @@ declare function insertMessage$1(conversation: IConversationOption, content: IRe
|
|
|
1702
1729
|
* @category 消息
|
|
1703
1730
|
* @param messageId 本地消息 ID 或 messageUId
|
|
1704
1731
|
*/
|
|
1705
|
-
declare function getMessage(messageId: number): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1732
|
+
declare function getMessage(messageId: number | string): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1706
1733
|
/**
|
|
1707
1734
|
* 获取会话下所有未读的 @ 消息
|
|
1708
1735
|
* @category 消息
|
|
@@ -1829,7 +1856,7 @@ declare function removeTagFromConversations(tagId: string, conversations: IConve
|
|
|
1829
1856
|
* @param count 获取数量
|
|
1830
1857
|
* @param timestamp 会话时间戳
|
|
1831
1858
|
*/
|
|
1832
|
-
declare function getConversationsFromTagByPage(tagId: string, count: number, startTime: number): Promise<IAsyncRes<
|
|
1859
|
+
declare function getConversationsFromTagByPage(tagId: string, count: number, startTime: number): Promise<IAsyncRes<IAReceivedConversationByTag[] | undefined>>;
|
|
1833
1860
|
/**
|
|
1834
1861
|
* 根据标签获取未读消息数
|
|
1835
1862
|
* @category 标签
|
|
@@ -1956,9 +1983,11 @@ declare function searchMessageInTimeRange(conversation: {
|
|
|
1956
1983
|
* @param option 配置参数
|
|
1957
1984
|
*/
|
|
1958
1985
|
declare function getHistoryMessagesByMessageTypes(conversation: IConversationOption, option: IGetHistoryMessagesByTypesOption): Promise<IAsyncRes<{
|
|
1986
|
+
/**
|
|
1987
|
+
* @deprecated 字段已废弃即将删除,推荐使用 list
|
|
1988
|
+
*/
|
|
1959
1989
|
messages: IAReceivedMessage[];
|
|
1960
|
-
|
|
1961
|
-
}>>;
|
|
1990
|
+
} & GetHistoryMessageResult>>;
|
|
1962
1991
|
/**
|
|
1963
1992
|
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
1964
1993
|
* @param conversation 会话
|
|
@@ -2004,13 +2033,26 @@ declare function clearMessages(conversation: IConversationOption): Promise<IAsyn
|
|
|
2004
2033
|
declare function deleteMessagesByTimestamp(conversation: IConversationOption, timestamp: number, cleanSpace: boolean): Promise<IAsyncRes<void>>;
|
|
2005
2034
|
/**
|
|
2006
2035
|
* 向本地插入一条消息,不发送到服务器
|
|
2007
|
-
* @param
|
|
2008
|
-
* @param targetId 目标 ID
|
|
2036
|
+
* @param conversation 会话
|
|
2009
2037
|
* @param message 消息体
|
|
2010
|
-
* @param
|
|
2038
|
+
* @param options
|
|
2011
2039
|
* 注意:插入消息时,messageUid 将不会存入数据库
|
|
2012
2040
|
*/
|
|
2013
|
-
declare function insertMessage(conversation: IConversationOption, message: IAReceivedMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
2041
|
+
declare function insertMessage(conversation: IConversationOption, message: IAReceivedMessage | BaseMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
2042
|
+
/**
|
|
2043
|
+
* 获取单聊消息的送达时间
|
|
2044
|
+
* @param messageUId 消息 UID
|
|
2045
|
+
* @hidden 暂时仅 BEEM 使用,无需在文档公开
|
|
2046
|
+
* @description 暂仅支持 Electron 平台
|
|
2047
|
+
*/
|
|
2048
|
+
declare function getPrivateMessageDeliverTime(messageUId: string): Promise<IAsyncRes<number>>;
|
|
2049
|
+
/**
|
|
2050
|
+
* 获取群组消息的送达状态
|
|
2051
|
+
* @param messageUId 消息 UID
|
|
2052
|
+
* @hidden 暂时仅 BEEM 使用,无需在文档公开
|
|
2053
|
+
* @description 暂仅支持 Electron 平台
|
|
2054
|
+
*/
|
|
2055
|
+
declare function getGroupMessageDeliverList(targetId: string, messageUId: string): Promise<IAsyncRes<IGroupMessageDeliverInfo>>;
|
|
2014
2056
|
|
|
2015
2057
|
/**
|
|
2016
2058
|
* 清除本地数据, 包括消息列表、会话列表、拉取消息的时间戳
|
|
@@ -2031,6 +2073,8 @@ declare const index_deleteMessages: typeof deleteMessages;
|
|
|
2031
2073
|
declare const index_clearMessages: typeof clearMessages;
|
|
2032
2074
|
declare const index_deleteMessagesByTimestamp: typeof deleteMessagesByTimestamp;
|
|
2033
2075
|
declare const index_insertMessage: typeof insertMessage;
|
|
2076
|
+
declare const index_getPrivateMessageDeliverTime: typeof getPrivateMessageDeliverTime;
|
|
2077
|
+
declare const index_getGroupMessageDeliverList: typeof getGroupMessageDeliverList;
|
|
2034
2078
|
declare const index_clearLocalData: typeof clearLocalData;
|
|
2035
2079
|
declare namespace index {
|
|
2036
2080
|
export {
|
|
@@ -2048,8 +2092,29 @@ declare namespace index {
|
|
|
2048
2092
|
index_clearMessages as clearMessages,
|
|
2049
2093
|
index_deleteMessagesByTimestamp as deleteMessagesByTimestamp,
|
|
2050
2094
|
index_insertMessage as insertMessage,
|
|
2095
|
+
index_getPrivateMessageDeliverTime as getPrivateMessageDeliverTime,
|
|
2096
|
+
index_getGroupMessageDeliverList as getGroupMessageDeliverList,
|
|
2051
2097
|
index_clearLocalData as clearLocalData,
|
|
2052
2098
|
};
|
|
2053
2099
|
}
|
|
2054
2100
|
|
|
2055
|
-
|
|
2101
|
+
/**
|
|
2102
|
+
* 设置代理
|
|
2103
|
+
* @param proxy
|
|
2104
|
+
* @returns
|
|
2105
|
+
*/
|
|
2106
|
+
declare function setProxy(proxy: IProxy | null): IPromiseResult<IProxy>;
|
|
2107
|
+
/**
|
|
2108
|
+
* 获取代理
|
|
2109
|
+
* @param proxy
|
|
2110
|
+
* @returns
|
|
2111
|
+
*/
|
|
2112
|
+
declare function getProxy(): IPromiseResult<IProxy>;
|
|
2113
|
+
/**
|
|
2114
|
+
* 测试代理
|
|
2115
|
+
* @param proxy
|
|
2116
|
+
* @returns
|
|
2117
|
+
*/
|
|
2118
|
+
declare function testProxy(proxy: IProxy, testHost: string): IPromiseResult<IResponse>;
|
|
2119
|
+
|
|
2120
|
+
export { BaseMessage, _default$6 as CombineMessage, ConnectType, EventListeners, Events, _default$5 as FileMessage, _default$4 as GIFMessage, GetHistoryMessageOption, GetHistoryMessageResult, _default$9 as HQVoiceMessage, IAReceivedConversation, IAReceivedConversationByTag, IAReceivedMessage, ICombineMessageBody, IConversationEvent, IConversationState, IConversationUpdateItem, IExtraData, IFileMessageBody, IGIFMessageBody, IGetHistoryMessagesByTypesOption, IHQVoiceMessageBody, IImageMessageBody, IImageMessageOption, 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$a as ImageMessage, _default$2 as LocationMessage, MentionedInfo$1 as MentionedInfo, MentionedInfo as MentionedInfoBody, 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, 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, getFileToken, getFileUrl, getFirstUnreadMessage, getHistoryMessages, getMessage, getMessageReader, getProxy, getRemoteHistoryMessages, getServerTime, getTags, getTagsFromConversation, getTextMessageDraft, getTopConversationList, getTotalUnreadCount, getTotalUnreadCountByLevels, getTotalUnreadMentionedCountByLevels, getUltraGroupDefaultNotificationLevel, getUltraGroupFirstUnreadMessageTimestamp, getUltraGroupList, getUltraGroupMessageListByMessageUId, getUltraGroupUnreadCountByTargetId, 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, 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 };
|