@rongcloud/engine 5.32.0-c-dq.3 → 5.32.1-c-test-alpha.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.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +63 -96
- package/index.esm.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -557,10 +557,6 @@ declare const Log: {
|
|
|
557
557
|
readonly A_UPDATE_MY_USER_PROFILE_R: "A-update_my_user_profile-R";
|
|
558
558
|
readonly A_GET_CONVERSATIONS_INCLUDING_ROBOTS_T: "A-get_conversations_including_robots-T";
|
|
559
559
|
readonly A_GET_CONVERSATIONS_INCLUDING_ROBOTS_R: "A-get_conversations_including_robots-R";
|
|
560
|
-
readonly L_PULL_SG_UNREAD_COUNT_T: "L-pull_sg_unread_count-T";
|
|
561
|
-
readonly L_PULL_SG_UNREAD_COUNT_R: "L-pull_sg_unread_count-R";
|
|
562
|
-
readonly A_MARK_REMOTE_CONVERSATION_AS_READ_T: "A-mark_remote_conversation_as_read-T";
|
|
563
|
-
readonly A_MARK_REMOTE_CONVERSATION_AS_READ_R: "A-mark_remote_conversation_as_read-R";
|
|
564
560
|
};
|
|
565
561
|
|
|
566
562
|
/** [EN]
|
|
@@ -3120,18 +3116,6 @@ declare enum ErrorCode {
|
|
|
3120
3116
|
* @since 5.26.0
|
|
3121
3117
|
*/
|
|
3122
3118
|
INVALID_PARAMETER_MESSAGE_INFO_MAP = 34345,
|
|
3123
|
-
/**
|
|
3124
|
-
* 34435
|
|
3125
|
-
* 服务端记录会话未读数功能开启时禁止调用此方法
|
|
3126
|
-
* @since 5.32.0
|
|
3127
|
-
*/
|
|
3128
|
-
SERVER_RECORD_UNREAD_COUNT_ENABLED_FORBIDDEN = 34435,
|
|
3129
|
-
/**
|
|
3130
|
-
* 34436
|
|
3131
|
-
* 服务端记录会话未读数功能未开启
|
|
3132
|
-
* @since 5.32.0
|
|
3133
|
-
*/
|
|
3134
|
-
SERVER_RECORD_UNREAD_COUNT_DISABLED = 34436,
|
|
3135
3119
|
/**
|
|
3136
3120
|
* 35001
|
|
3137
3121
|
* 【已废弃】群组信息异常
|
|
@@ -4557,10 +4541,6 @@ declare const FilterRobotType: {
|
|
|
4557
4541
|
};
|
|
4558
4542
|
declare type FilterRobotType = (typeof FilterRobotType)[keyof typeof FilterRobotType];
|
|
4559
4543
|
|
|
4560
|
-
/** [EN]
|
|
4561
|
-
* Message moderation status
|
|
4562
|
-
* @category Enum
|
|
4563
|
-
*/
|
|
4564
4544
|
/**
|
|
4565
4545
|
* 消息审核类型
|
|
4566
4546
|
* @category Enum
|
|
@@ -6345,7 +6325,7 @@ interface IReadReceiptData {
|
|
|
6345
6325
|
* @since 5.9.0
|
|
6346
6326
|
* @hidden
|
|
6347
6327
|
*/
|
|
6348
|
-
interface IPrivateReadReceiptData extends
|
|
6328
|
+
interface IPrivateReadReceiptData extends IConversationOption {
|
|
6349
6329
|
/**
|
|
6350
6330
|
* 最后已读消息时间 (单聊)
|
|
6351
6331
|
*/
|
|
@@ -6357,7 +6337,7 @@ interface IPrivateReadReceiptData extends IConversationIdentifier {
|
|
|
6357
6337
|
* @since 5.9.0
|
|
6358
6338
|
* @hidden
|
|
6359
6339
|
*/
|
|
6360
|
-
interface IGroupReadReceiptData extends
|
|
6340
|
+
interface IGroupReadReceiptData extends IConversationOption {
|
|
6361
6341
|
/**
|
|
6362
6342
|
* 已读人数 (群聊)
|
|
6363
6343
|
*/
|
|
@@ -6377,7 +6357,7 @@ interface IGroupReadReceiptData extends IConversationIdentifier {
|
|
|
6377
6357
|
* @since 5.9.0
|
|
6378
6358
|
* @hidden
|
|
6379
6359
|
*/
|
|
6380
|
-
interface ISyncReadStatusData extends
|
|
6360
|
+
interface ISyncReadStatusData extends IConversationOption {
|
|
6381
6361
|
/**
|
|
6382
6362
|
* 已读消息时间
|
|
6383
6363
|
*/
|
|
@@ -6435,23 +6415,15 @@ interface IMessageExtraData {
|
|
|
6435
6415
|
*/
|
|
6436
6416
|
sentTime?: number;
|
|
6437
6417
|
}
|
|
6418
|
+
/** [EN]
|
|
6419
|
+
* Message data received from the server
|
|
6420
|
+
* @category Interface
|
|
6421
|
+
*/
|
|
6438
6422
|
/**
|
|
6439
|
-
*
|
|
6440
|
-
* @
|
|
6423
|
+
* 从服务端接收到的消息数据
|
|
6424
|
+
* @category Interface
|
|
6441
6425
|
*/
|
|
6442
|
-
interface
|
|
6443
|
-
/**
|
|
6444
|
-
* 内部数据,用于内部业务处理
|
|
6445
|
-
* @hidden
|
|
6446
|
-
*/
|
|
6447
|
-
__innerData__?: {
|
|
6448
|
-
/**
|
|
6449
|
-
* 接收到的该条撤回消息,是否保持本地未读数不变,仅当消息为 RC:RcCmd 撤回消息时有效
|
|
6450
|
-
* * 开启服务器记录会话未读数功能时,从服务器解析获取。
|
|
6451
|
-
* * 未开启服务器记录会话未读数功能时,该值默认赋值为 false,表示需要本地未读数 -1,保持原有逻辑不变
|
|
6452
|
-
*/
|
|
6453
|
-
keepUnreadCount?: boolean;
|
|
6454
|
-
};
|
|
6426
|
+
interface IReceivedMessage<T = any> {
|
|
6455
6427
|
/** [EN]
|
|
6456
6428
|
* The business identifier of the conversation
|
|
6457
6429
|
*/
|
|
@@ -6710,22 +6682,11 @@ interface IInnerMessage<T = any> {
|
|
|
6710
6682
|
*/
|
|
6711
6683
|
modifyInfo?: MessageModifyInfo;
|
|
6712
6684
|
/**
|
|
6713
|
-
* 业务层发送消息时的透传数据,仅允许通过 serverApi 进行发送,SDK
|
|
6685
|
+
* 业务层发送消息时的透传数据,仅允许通过 serverApi 进行发送,SDK 不发送支持自定义
|
|
6714
6686
|
* @hidden 暂为和讯网定制化需求
|
|
6715
|
-
* @since 5.30.1
|
|
6716
6687
|
*/
|
|
6717
6688
|
extraData?: IMessageExtraData;
|
|
6718
6689
|
}
|
|
6719
|
-
/** [EN]
|
|
6720
|
-
* Message data received from the server
|
|
6721
|
-
* @category Interface
|
|
6722
|
-
*/
|
|
6723
|
-
/**
|
|
6724
|
-
* 从服务端接收到的消息数据
|
|
6725
|
-
* @category Interface
|
|
6726
|
-
*/
|
|
6727
|
-
interface IReceivedMessage<T = any> extends Omit<IInnerMessage<T>, '__innerData__'> {
|
|
6728
|
-
}
|
|
6729
6690
|
/** [EN]
|
|
6730
6691
|
* First unread message information
|
|
6731
6692
|
* @category Interface
|
|
@@ -7397,7 +7358,7 @@ interface MentionedInfo {
|
|
|
7397
7358
|
/**
|
|
7398
7359
|
* @category Interface
|
|
7399
7360
|
*/
|
|
7400
|
-
interface IClearMessageOption extends
|
|
7361
|
+
interface IClearMessageOption extends IConversationOption {
|
|
7401
7362
|
/** [EN]
|
|
7402
7363
|
* Timestamp
|
|
7403
7364
|
*/
|
|
@@ -7465,7 +7426,7 @@ interface IModifyMessageParams {
|
|
|
7465
7426
|
/**
|
|
7466
7427
|
* 会话信息
|
|
7467
7428
|
*/
|
|
7468
|
-
conversation:
|
|
7429
|
+
conversation: IConversationOption;
|
|
7469
7430
|
}
|
|
7470
7431
|
/**
|
|
7471
7432
|
* 刷新引用消息参数
|
|
@@ -7479,7 +7440,7 @@ interface IRefreshReferenceMessageParams {
|
|
|
7479
7440
|
/**
|
|
7480
7441
|
* 会话信息
|
|
7481
7442
|
*/
|
|
7482
|
-
conversationIdentifier:
|
|
7443
|
+
conversationIdentifier: IConversationOption;
|
|
7483
7444
|
/**
|
|
7484
7445
|
* 本地消息回调
|
|
7485
7446
|
*/
|
|
@@ -9882,10 +9843,9 @@ declare class EventDispatcher<T> {
|
|
|
9882
9843
|
* 连接目标事件监听器,本实例派发的事件会被传递给入参事件监听器
|
|
9883
9844
|
* 举例:a.pipe(b) 后,当 a.emit 后,b 的所有监听器也会触发,但会晚于所有 a 的监听器;
|
|
9884
9845
|
* @param emitter
|
|
9885
|
-
* @param types 指定事件类型列表,如果指定,则只有指定类型的事件会被传递给入参事件监听器
|
|
9886
9846
|
* @hidden
|
|
9887
9847
|
*/
|
|
9888
|
-
pipe(emitter: EventDispatcher<
|
|
9848
|
+
pipe<K extends T>(emitter: EventDispatcher<K>): void;
|
|
9889
9849
|
}
|
|
9890
9850
|
|
|
9891
9851
|
declare class RCResult<T = void> {
|
|
@@ -10338,8 +10298,8 @@ interface INaviInfo {
|
|
|
10338
10298
|
grpRRVer?: number;
|
|
10339
10299
|
/**
|
|
10340
10300
|
* 会话驱动类型
|
|
10341
|
-
*
|
|
10342
|
-
*
|
|
10301
|
+
* 0: 默认,客户端离线消息驱动计算未读数 (客户端通过 pullMsg 结果计算)
|
|
10302
|
+
* 1: 服务端会话驱动计算未读数 (调用 pullSes 进行初始化),暂只影响更新会话已读时间接口
|
|
10343
10303
|
*/
|
|
10344
10304
|
sesDriven?: number;
|
|
10345
10305
|
/**
|
|
@@ -10457,13 +10417,6 @@ interface INaviInfo {
|
|
|
10457
10417
|
* 2. 拉取历史消息时,不再返回 RC:RcCmd 消息。
|
|
10458
10418
|
*/
|
|
10459
10419
|
supportRecallRefactor?: 0 | 1;
|
|
10460
|
-
/**
|
|
10461
|
-
* 是否开启服务器记录单群聊会话未读数;
|
|
10462
|
-
* 0: 关闭,未读数由客户端计算,保持原有逻辑不变;
|
|
10463
|
-
* 1: 开启,未读数由服务器保存,SDK 连接后先同步服务器未读数信息,再拉离线消息。
|
|
10464
|
-
* @since 5.34.0
|
|
10465
|
-
*/
|
|
10466
|
-
serverSaveUnread?: 0 | 1;
|
|
10467
10420
|
}
|
|
10468
10421
|
|
|
10469
10422
|
/** [EN]
|
|
@@ -12248,10 +12201,6 @@ interface IIPCMethods {
|
|
|
12248
12201
|
* 连接时间
|
|
12249
12202
|
*/
|
|
12250
12203
|
getConnectedTime(): number;
|
|
12251
|
-
/**
|
|
12252
|
-
* 忽视缓存,重新请求导航数据
|
|
12253
|
-
*/
|
|
12254
|
-
refetchNaviInfo(): Promise<RCResult<INaviInfo | null>>;
|
|
12255
12204
|
/**
|
|
12256
12205
|
* 获取历史消息
|
|
12257
12206
|
*/
|
|
@@ -12561,6 +12510,12 @@ interface IIPCMethods {
|
|
|
12561
12510
|
* 获取当前 userId
|
|
12562
12511
|
*/
|
|
12563
12512
|
getCurrentUserId(): string;
|
|
12513
|
+
/**
|
|
12514
|
+
* 设置用户在线状态监听器
|
|
12515
|
+
*/
|
|
12516
|
+
setUserStatusListener(config: {
|
|
12517
|
+
userIds: string[];
|
|
12518
|
+
}, listener: Function): void;
|
|
12564
12519
|
/**
|
|
12565
12520
|
* 设置当前用户在线状态
|
|
12566
12521
|
*/
|
|
@@ -12669,10 +12624,6 @@ interface IIPCMethods {
|
|
|
12669
12624
|
* 删除时间戳前的未读数
|
|
12670
12625
|
*/
|
|
12671
12626
|
clearUnreadCountByTimestamp(conversation: IConversationIdentifier, timestamp: number): Promise<RCResult>;
|
|
12672
|
-
/**
|
|
12673
|
-
* 标记远程会话为已读,发送 SRSMsg 消息到服务器,并在发送成功后清理本地未读数信息
|
|
12674
|
-
*/
|
|
12675
|
-
markRemoteConversationAsRead(identifier: IConversationIdentifier, sendOpts: IMessageSendOptions, traceId: string): Promise<RCResult>;
|
|
12676
12627
|
/**
|
|
12677
12628
|
* 获取所有群聊会话 @ 消息未读数,不包含超级群会话
|
|
12678
12629
|
*/
|
|
@@ -13006,15 +12957,14 @@ interface IIPCMethods {
|
|
|
13006
12957
|
|
|
13007
12958
|
/**
|
|
13008
12959
|
* 连接事件监听器
|
|
12960
|
+
* @typeParam T - onConnected 是否包含 fromSuspend 参数
|
|
13009
12961
|
*/
|
|
13010
|
-
declare type IConnectionListener = {
|
|
12962
|
+
declare type IConnectionListener<T extends boolean = false> = {
|
|
13011
12963
|
/**
|
|
13012
12964
|
* 连接成功
|
|
13013
12965
|
* @description 仅 Electron 平台会返回 processCache 参数,用于同步主进程缓存数据
|
|
13014
|
-
* @param fromSuspend 是否从暂停状态连接
|
|
13015
|
-
* @param processCache 主进程缓存数据,仅 Electron 平台有效
|
|
13016
12966
|
*/
|
|
13017
|
-
onConnected(fromSuspend: boolean
|
|
12967
|
+
onConnected: T extends true ? (fromSuspend: boolean) => void : (processCache?: IProcessCache) => void;
|
|
13018
12968
|
/**
|
|
13019
12969
|
* 连接中止,SDK 内部会进行重连
|
|
13020
12970
|
* @param code 中止原因
|
|
@@ -13287,7 +13237,7 @@ interface IUserGroupStatusInfo {
|
|
|
13287
13237
|
userGroupUnBindChannel?: IChannelAndUserGroupChangeData[];
|
|
13288
13238
|
}
|
|
13289
13239
|
|
|
13290
|
-
interface IEngineWatcher extends IConnectionListener {
|
|
13240
|
+
interface IEngineWatcher extends IConnectionListener<false> {
|
|
13291
13241
|
/**
|
|
13292
13242
|
* @param message 消息
|
|
13293
13243
|
* @param leftCount 参数废弃,值始终为 undefined
|
|
@@ -13673,12 +13623,12 @@ declare abstract class BasicLogger {
|
|
|
13673
13623
|
protected readonly _appkey: string;
|
|
13674
13624
|
protected readonly _id: string;
|
|
13675
13625
|
protected readonly _type: LogType;
|
|
13676
|
-
protected readonly
|
|
13626
|
+
protected readonly logDB: LogDBProxy;
|
|
13677
13627
|
/**
|
|
13678
13628
|
* traceId 计数
|
|
13679
13629
|
*/
|
|
13680
13630
|
private static _traceIdCount;
|
|
13681
|
-
constructor(_appkey: string, _id: string, _type: LogType,
|
|
13631
|
+
constructor(_appkey: string, _id: string, _type: LogType, logDB: LogDBProxy);
|
|
13682
13632
|
protected _write(logData: ILogData): void;
|
|
13683
13633
|
/**
|
|
13684
13634
|
* 生成事务追踪 ID,全局唯一,便于跨进程、异步事务追踪,需要考虑多进程
|
|
@@ -14929,9 +14879,7 @@ declare class DataHosting extends BaseModule {
|
|
|
14929
14879
|
/**
|
|
14930
14880
|
* 会话聊天模块
|
|
14931
14881
|
*/
|
|
14932
|
-
interface IChatService extends Pick<IIPCMethods, 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllSGUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5ByIdentifiers' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent' | 'requestSpeechToTextForMessage' | 'setMessageSpeechToTextVisible' | 'addTagForConversations' | 'getTagsForConversation' | 'setConversationStatusInTag' | 'removeTagForConversations' | 'removeTagsForConversation' | 'getConversationListByTag' | 'getUnreadCountByTag' | 'getUntaggedConversationListByPage' | 'batchSetConversationTranslateStrategy' | 'modifyMessageWithParams' | 'refreshReferenceMessageWithParams' | 'batchDeleteConversations' | 'sendReadReceiptV2' | 'syncRemoteConversations' | 'sendUltraGroupTypingStatus' | 'getUltraGroupList' | 'getRemoteMessagesByUIds' | 'getUGUnreadMentionedDigest' | 'getHistoryMessagesByObjectNames' | 'getContinuousMessages' | 'getMessagesAroundTimestamp' | 'deleteLocalUGMessagesForAllChannel' | 'updateUGMessageExpansion' | 'setUGDefaultNotificationLevel' | 'getUGDefaultNotificationLevel' | 'getUnreadMentionedMessages' | 'getUnreadMentionedCount' | 'getAllUnreadMentionedCount' | 'getTotalUnreadCountByLevels' | 'getConversationUnreadCount' | 'getFirstUnreadMessage' | 'getFirstUnreadMessageDigest' | 'getUGUnreadCountForAllChannels' | 'getUGUnreadInfoList' | 'getUGFirstUnreadMessageDigest' | 'getConversations' | 'clearConversationUnreadCount' | '
|
|
14933
|
-
/** 超级群是否已同步完成 */
|
|
14934
|
-
get ugSynced(): boolean;
|
|
14882
|
+
interface IChatService extends Pick<IIPCMethods, 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllSGUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5ByIdentifiers' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent' | 'requestSpeechToTextForMessage' | 'setMessageSpeechToTextVisible' | 'addTagForConversations' | 'getTagsForConversation' | 'setConversationStatusInTag' | 'removeTagForConversations' | 'removeTagsForConversation' | 'getConversationListByTag' | 'getUnreadCountByTag' | 'getUntaggedConversationListByPage' | 'batchSetConversationTranslateStrategy' | 'modifyMessageWithParams' | 'refreshReferenceMessageWithParams' | 'batchDeleteConversations' | 'sendReadReceiptV2' | 'syncRemoteConversations' | 'sendUltraGroupTypingStatus' | 'getUltraGroupList' | 'getRemoteMessagesByUIds' | 'getUGUnreadMentionedDigest' | 'getHistoryMessagesByObjectNames' | 'getContinuousMessages' | 'getMessagesAroundTimestamp' | 'deleteLocalUGMessagesForAllChannel' | 'updateUGMessageExpansion' | 'setUGDefaultNotificationLevel' | 'getUGDefaultNotificationLevel' | 'getUnreadMentionedMessages' | 'getUnreadMentionedCount' | 'getAllUnreadMentionedCount' | 'getTotalUnreadCountByLevels' | 'getConversationUnreadCount' | 'getFirstUnreadMessage' | 'getFirstUnreadMessageDigest' | 'getUGUnreadCountForAllChannels' | 'getUGUnreadInfoList' | 'getUGFirstUnreadMessageDigest' | 'getConversations' | 'clearConversationUnreadCount' | 'getTopConversationList' | 'getUnreadConversationList' | 'getConversationListByPageIndex' | 'getAllConversationList' | 'getConversationListByTimestamp' | 'clearConversations' | 'getBlockedConversationList' | 'getBlockedUGList' | 'saveEditedMessageDraft' | 'getEditedMessageDraft' | 'clearEditedMessageDraft' | 'getUnreadMentionMeConversationList' | 'sendUltraGroupTypingStatus' | 'updateConversationReadTime' | 'clearUnreadCountByTimestamp' | 'getMessageReader' | 'getMessageReadReceiptV4' | 'sendReadReceiptMessageV4' | 'getConversationsIncludingRobots'> {
|
|
14935
14883
|
getRealtimeConversations(count: number, startTime: number, order: 0 | 1): Promise<RCResult<IReceivedConversation[]>>;
|
|
14936
14884
|
getRealtimeConTotalUnreadCount(): Promise<RCResult<number>>;
|
|
14937
14885
|
clearRealtimeConUnreadCount(identifier: IConversationIdentifier): Promise<RCResult>;
|
|
@@ -14986,7 +14934,7 @@ declare class ConversationListLoader extends BaseModule {
|
|
|
14986
14934
|
get isLoading(): boolean;
|
|
14987
14935
|
/**
|
|
14988
14936
|
* 加载会话列表
|
|
14989
|
-
* @param count
|
|
14937
|
+
* @param count 获取数量
|
|
14990
14938
|
*/
|
|
14991
14939
|
load(count: number): Promise<RCResult<IReceivedConversation[]>>;
|
|
14992
14940
|
}
|
|
@@ -15016,14 +14964,6 @@ declare class ChatModule extends BaseModule {
|
|
|
15016
14964
|
* @param timestamp 同步时间戳
|
|
15017
14965
|
*/
|
|
15018
14966
|
sendSyncReadStatusMessage(identifier: IConversationIdentifier, timestamp: number): Promise<RCResult>;
|
|
15019
|
-
/**
|
|
15020
|
-
* 清除会话消息未读数
|
|
15021
|
-
*/
|
|
15022
|
-
clearUnreadCount(identifier: IConversationIdentifier): Promise<RCResult>;
|
|
15023
|
-
/**
|
|
15024
|
-
* 清除全部会话消息未读数,不包含超级群会话
|
|
15025
|
-
*/
|
|
15026
|
-
clearAllUnreadCount(): Promise<RCResult>;
|
|
15027
14967
|
clearUnreadCountByTimestamp(identifier: IConversationIdentifier, timestamp: number): Promise<RCResult>;
|
|
15028
14968
|
/**
|
|
15029
14969
|
* 发送群已读回执请求(v1 版本)
|
|
@@ -15062,7 +15002,6 @@ declare class ChatModule extends BaseModule {
|
|
|
15062
15002
|
getMessageReadReceiptV4(conversation: IConversationIdentifier, messageUId: string): Promise<RCResult<IMessageReadReceiptV4Response>>;
|
|
15063
15003
|
batchGetMessageReadReceiptInfoV4(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IGroupReadReceiptData[]>>;
|
|
15064
15004
|
getConversationsIncludingRobots(options: IGetConversationsIncludingRobotsOption): Promise<RCResult<IReceivedConversation[]>>;
|
|
15065
|
-
markRemoteConversationAsRead(identifier: IConversationIdentifier): Promise<RCResult>;
|
|
15066
15005
|
}
|
|
15067
15006
|
|
|
15068
15007
|
declare class APIContext {
|
|
@@ -15101,6 +15040,10 @@ declare class APIContext {
|
|
|
15101
15040
|
* engine 内部日志工具
|
|
15102
15041
|
*/
|
|
15103
15042
|
readonly logger: BasicLogger;
|
|
15043
|
+
/**
|
|
15044
|
+
* 超级群同步完成记录
|
|
15045
|
+
*/
|
|
15046
|
+
private _ugSynced;
|
|
15104
15047
|
constructor(options: IAPIContextOption);
|
|
15105
15048
|
/**
|
|
15106
15049
|
* 安装使用插件,并初始化插件实例
|
|
@@ -15404,6 +15347,14 @@ declare class APIContext {
|
|
|
15404
15347
|
* 获取超级群免打扰列表
|
|
15405
15348
|
*/
|
|
15406
15349
|
getBlockedUGList(): Promise<RCResult<IReceivedConversation[]>>;
|
|
15350
|
+
/**
|
|
15351
|
+
* 清除会话消息未读数
|
|
15352
|
+
*/
|
|
15353
|
+
clearUnreadCount(conversation: IConversationOption): Promise<RCResult>;
|
|
15354
|
+
/**
|
|
15355
|
+
* 清除全部会话消息未读数,不包含超级群会话
|
|
15356
|
+
*/
|
|
15357
|
+
clearAllUnreadCount(): Promise<RCResult>;
|
|
15407
15358
|
/**
|
|
15408
15359
|
* 获取指定会话消息未读数
|
|
15409
15360
|
*/
|
|
@@ -15619,6 +15570,12 @@ declare class APIContext {
|
|
|
15619
15570
|
* 删除所有会话,目前仅 v2 提供
|
|
15620
15571
|
*/
|
|
15621
15572
|
clearConversations(conversationTypes?: ConversationType[], tag?: string): Promise<RCResult>;
|
|
15573
|
+
/**
|
|
15574
|
+
* 设置用户连接状态监听器
|
|
15575
|
+
*/
|
|
15576
|
+
setUserStatusListener(config: {
|
|
15577
|
+
userIds: string[];
|
|
15578
|
+
}, listener: Function): void;
|
|
15622
15579
|
/**
|
|
15623
15580
|
* 添加用户黑名单
|
|
15624
15581
|
*/
|
|
@@ -16017,10 +15974,11 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
16017
15974
|
*/
|
|
16018
15975
|
declare type IUserSettingsModule = Pick<IIPCMethods, 'setTranslationLanguage' | 'getTranslationLanguage' | 'setAutoTranslateEnabled' | 'getAutoTranslateEnabled'>;
|
|
16019
15976
|
|
|
16020
|
-
declare type IIPCMethodsInEngine = Pick<IIPCMethods, 'searchMessagesWithParams' | 'createTag' | 'removeTag' | 'updateTag' | 'getTagList' | 'translateWithParams' | 'getFileUrl' | 'saveTextMessageDraft' | 'getTextMessageDraft' | 'clearTextMessageDraft' | 'getHistoryMessage' | 'clearLocalMessages' | 'deleteLocalMessages' | 'deleteLocalMessagesByTimestamp' | 'batchClearLocalMessagesByTimestamp' | 'insertMessage' | 'batchInsertMessage' | 'setMessageContent' | 'getLocalMessageCount' | 'recallMsg' | 'getSubscribeUsersOnlineStatus' | 'getSubscribeUserStatus' | 'subscribeUser' | 'unSubscribeUser' | 'getSubscribeUserList' | 'getUserProfiles' | 'getMyUserProfile' | 'updateMyUserProfile' | 'sendMessage' | '
|
|
15977
|
+
declare type IIPCMethodsInEngine = Pick<IIPCMethods, 'searchMessagesWithParams' | 'createTag' | 'removeTag' | 'updateTag' | 'getTagList' | 'translateWithParams' | 'getFileUrl' | 'saveTextMessageDraft' | 'getTextMessageDraft' | 'clearTextMessageDraft' | 'getHistoryMessage' | 'clearLocalMessages' | 'deleteLocalMessages' | 'deleteLocalMessagesByTimestamp' | 'batchClearLocalMessagesByTimestamp' | 'insertMessage' | 'batchInsertMessage' | 'setMessageContent' | 'getLocalMessageCount' | 'recallMsg' | 'getSubscribeUsersOnlineStatus' | 'getSubscribeUserStatus' | 'subscribeUser' | 'unSubscribeUser' | 'getSubscribeUserList' | 'getUserProfiles' | 'getMyUserProfile' | 'updateMyUserProfile' | 'sendMessage' | 'connect' | 'disconnect' | 'addToBlacklist' | 'removeFromBlacklist' | 'getBlacklist' | 'getBlacklistStatus' | 'setMessageReceivedStatus' | 'setMessageSentStatus' | 'setCheckDuplicateMessage' | 'setProxy' | 'getProxy' | 'testProxy' | 'setUserStatusListener' | 'getFileToken' | 'rtcSignaling' | 'rtcPing' | 'setCallInfo' | 'getUserStatus' | 'searchConversationByContentWithAllChannel' | 'getAllRobots'>;
|
|
16021
15978
|
declare abstract class BasicEngine implements IIPCMethodsInEngine, IModuleContext {
|
|
16022
15979
|
protected readonly _watcher: IEngineWatcher;
|
|
16023
15980
|
protected readonly _options: IAPIContextOption;
|
|
15981
|
+
private readonly _logger;
|
|
16024
15982
|
/**
|
|
16025
15983
|
* 连接时间
|
|
16026
15984
|
*/
|
|
@@ -16041,7 +15999,7 @@ declare abstract class BasicEngine implements IIPCMethodsInEngine, IModuleContex
|
|
|
16041
15999
|
get initOption(): IAPIContextOption;
|
|
16042
16000
|
abstract get connectionStatus(): RCConnectionStatus;
|
|
16043
16001
|
abstract get userId(): string;
|
|
16044
|
-
|
|
16002
|
+
get logger(): BasicLogger;
|
|
16045
16003
|
abstract get usingCppEngine(): boolean;
|
|
16046
16004
|
/**
|
|
16047
16005
|
* 用户信息托管模块
|
|
@@ -16051,14 +16009,17 @@ declare abstract class BasicEngine implements IIPCMethodsInEngine, IModuleContex
|
|
|
16051
16009
|
* 引擎初始化
|
|
16052
16010
|
* @param _appkey
|
|
16053
16011
|
*/
|
|
16054
|
-
constructor(_watcher: IEngineWatcher, _options: IAPIContextOption);
|
|
16012
|
+
constructor(_watcher: IEngineWatcher, _options: IAPIContextOption, _logger: BasicLogger);
|
|
16055
16013
|
protected _rtcSignalingListener?: (buffer: Uint8Array) => void;
|
|
16056
16014
|
/**
|
|
16057
16015
|
* 注册 RTC KV 变更监听器
|
|
16058
16016
|
* @param listener
|
|
16059
16017
|
*/
|
|
16060
16018
|
registerRTCSignalingListener(listener: ((buffer: Uint8Array) => void) | undefined): void;
|
|
16061
|
-
|
|
16019
|
+
/**
|
|
16020
|
+
* 忽视缓存,重新请求导航数据
|
|
16021
|
+
*/
|
|
16022
|
+
abstract refetchNaviInfo(): IPromiseResult<INaviInfo | null>;
|
|
16062
16023
|
/**
|
|
16063
16024
|
* 为非 engine 包创建 logger 工具实例
|
|
16064
16025
|
*/
|
|
@@ -16162,6 +16123,12 @@ declare abstract class BasicEngine implements IIPCMethodsInEngine, IModuleContex
|
|
|
16162
16123
|
* @param options
|
|
16163
16124
|
*/
|
|
16164
16125
|
abstract sendUltraMessage(identifier: IConversationIdentifier, options: IMessageSendOptions, traceId: string, onSendBefore?: (messageId: number) => void): Promise<RCResult<IReceivedMessage>>;
|
|
16126
|
+
/**
|
|
16127
|
+
* 设置用户在线状态监听器
|
|
16128
|
+
*/
|
|
16129
|
+
abstract setUserStatusListener(config: {
|
|
16130
|
+
userIds: string[];
|
|
16131
|
+
}, listener: Function): void;
|
|
16165
16132
|
/**
|
|
16166
16133
|
* 设置当前用户在线状态
|
|
16167
16134
|
*/
|