@rongcloud/engine 5.26.1 → 5.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +22 -12
- package/index.esm.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -309,6 +309,8 @@ declare const LogTagId: {
|
|
|
309
309
|
readonly A_BATCH_DEL_CONVERS_T: "A-batch_del_conversation-T";
|
|
310
310
|
readonly A_BATCH_DEL_CONVERS_R: "A-batch_del_conversation-R";
|
|
311
311
|
readonly L_UPDATE_MSG_BOX_TIME_O: "L-update_msg_box_time-O";
|
|
312
|
+
readonly A_SYNC_REMOTE_CONVERSATIONS_T: "A-e_sync_remote_conversations-T";
|
|
313
|
+
readonly A_SYNC_REMOTE_CONVERSATIONS_R: "A-e_sync_remote_conversations-R";
|
|
312
314
|
};
|
|
313
315
|
|
|
314
316
|
/** [EN]
|
|
@@ -5042,7 +5044,7 @@ interface IUpdateItem {
|
|
|
5042
5044
|
* Contains @ mention
|
|
5043
5045
|
*/
|
|
5044
5046
|
/**
|
|
5045
|
-
* 存在 @
|
|
5047
|
+
* 存在 @ 信息变更,不支持 Electron 平台
|
|
5046
5048
|
*/
|
|
5047
5049
|
hasMentioned?: {
|
|
5048
5050
|
time: number;
|
|
@@ -5052,7 +5054,7 @@ interface IUpdateItem {
|
|
|
5052
5054
|
* @ Information
|
|
5053
5055
|
*/
|
|
5054
5056
|
/**
|
|
5055
|
-
* @
|
|
5057
|
+
* @ 信息变更,不支持 Electron 平台
|
|
5056
5058
|
*/
|
|
5057
5059
|
mentionedInfo?: {
|
|
5058
5060
|
time: number;
|
|
@@ -5062,7 +5064,7 @@ interface IUpdateItem {
|
|
|
5062
5064
|
* Unread count change
|
|
5063
5065
|
*/
|
|
5064
5066
|
/**
|
|
5065
|
-
*
|
|
5067
|
+
* 未读数变更,不支持 Electron 平台
|
|
5066
5068
|
*/
|
|
5067
5069
|
unreadMessageCount?: {
|
|
5068
5070
|
time: number;
|
|
@@ -5082,7 +5084,7 @@ interface IUpdateItem {
|
|
|
5082
5084
|
* The last message in the conversation has changed.
|
|
5083
5085
|
*/
|
|
5084
5086
|
/**
|
|
5085
|
-
*
|
|
5087
|
+
* 会话最后一条消息变更,不支持 Electron 平台
|
|
5086
5088
|
*/
|
|
5087
5089
|
latestMessage?: {
|
|
5088
5090
|
time: number;
|
|
@@ -9767,10 +9769,10 @@ interface INaviInfo {
|
|
|
9767
9769
|
*/
|
|
9768
9770
|
ugDriven?: number;
|
|
9769
9771
|
/**
|
|
9770
|
-
*
|
|
9771
|
-
* *
|
|
9772
|
-
* *
|
|
9773
|
-
* *
|
|
9772
|
+
* 会话列表配置,按位取值:
|
|
9773
|
+
* * 0001:会话列表是否包含超级群会话,0 为关闭,1 表示开启;
|
|
9774
|
+
* * 0010:协议栈是否允许拉取服务端会话列表,0 为关闭,1 表示开启;
|
|
9775
|
+
* * 0100:协议栈是否自动拉取服务端会话列表,0 为关闭,1 表示开启;仅当第二位为 1 时有效
|
|
9774
9776
|
*/
|
|
9775
9777
|
sessionCfg?: number;
|
|
9776
9778
|
/**
|
|
@@ -12165,6 +12167,10 @@ interface IIPCMethods {
|
|
|
12165
12167
|
* @param messageInfoMap 消息发送时间映射,仅 Web 端超级群会话有效
|
|
12166
12168
|
*/
|
|
12167
12169
|
refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationOption, remoteMessageBlock: ((results: IEnginRefreshReferenceMessageResult[]) => void) | string, localMessageBlock: ((results: IEnginRefreshReferenceMessageResult[]) => void) | string, messageInfoMap?: Record<string, string>): Promise<RCResult>;
|
|
12170
|
+
/**
|
|
12171
|
+
* 同步服务器会话列表至本地数据库
|
|
12172
|
+
*/
|
|
12173
|
+
syncRemoteConversations(): Promise<RCResult>;
|
|
12168
12174
|
}
|
|
12169
12175
|
|
|
12170
12176
|
/**
|
|
@@ -12468,7 +12474,7 @@ interface IEngineWatcher extends IConnectionListener<false> {
|
|
|
12468
12474
|
*/
|
|
12469
12475
|
conversationTag: () => void;
|
|
12470
12476
|
ultraGroupEnable: () => void;
|
|
12471
|
-
sgRelationsSynced: () => void;
|
|
12477
|
+
sgRelationsSynced: (code: number) => void;
|
|
12472
12478
|
operateStatus: (status: IOperateStatusNotify) => void;
|
|
12473
12479
|
ultraGroupMessageExpansionUpdated: (list: IReceivedMessage[]) => void;
|
|
12474
12480
|
ultraGroupMessageRecalled: (list: IReceivedMessage[]) => void;
|
|
@@ -13752,7 +13758,7 @@ interface IWatcher {
|
|
|
13752
13758
|
*/
|
|
13753
13759
|
messageBlocked?: IMessageBlockedListener;
|
|
13754
13760
|
ultraGroupEnable?: () => void;
|
|
13755
|
-
sgRelationsSynced?: () => void;
|
|
13761
|
+
sgRelationsSynced?: (code: number) => void;
|
|
13756
13762
|
operateStatus?: (status: IOperateStatusNotify) => void;
|
|
13757
13763
|
ultraGroupMessageExpansionUpdated?: (list: IReceivedMessage[]) => void;
|
|
13758
13764
|
ultraGroupMessageRecalled?: (list: IReceivedMessage[]) => void;
|
|
@@ -14311,7 +14317,7 @@ declare class APIContext {
|
|
|
14311
14317
|
/**
|
|
14312
14318
|
* 删除会话
|
|
14313
14319
|
*/
|
|
14314
|
-
removeConversation(conversation: IConversationOption): Promise<RCResult>;
|
|
14320
|
+
removeConversation(conversation: IConversationOption, deleteRemotely?: boolean): Promise<RCResult>;
|
|
14315
14321
|
batchDeleteConversations(params: ConversationBatchDeletionParams): Promise<RCResult>;
|
|
14316
14322
|
/**
|
|
14317
14323
|
* 获取超级群会话列表
|
|
@@ -14910,6 +14916,10 @@ declare class APIContext {
|
|
|
14910
14916
|
getAutoTranslateEnabled(): Promise<RCResult<boolean>>;
|
|
14911
14917
|
modifyMessageWithParams(params: IModifyMessageParams): Promise<RCResult>;
|
|
14912
14918
|
refreshReferenceMessageWithParams(params: IRefreshReferenceMessageParams): Promise<RCResult>;
|
|
14919
|
+
/**
|
|
14920
|
+
* Electron 平台下同步服务器会话列表至本地数据库
|
|
14921
|
+
*/
|
|
14922
|
+
syncRemoteConversations(): Promise<RCResult>;
|
|
14913
14923
|
}
|
|
14914
14924
|
|
|
14915
14925
|
declare class RTCPluginContext extends PluginContext {
|
|
@@ -15114,7 +15124,7 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
15114
15124
|
/**
|
|
15115
15125
|
* 会话聊天模块
|
|
15116
15126
|
*/
|
|
15117
|
-
declare type IChatModule = Pick<IIPCMethods, 'getConversationListByFilter' | 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5ByIdentifiers' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent' | 'requestSpeechToTextForMessage' | 'setMessageSpeechToTextVisible' | 'addTagForConversations' | 'getTagsForConversation' | 'setConversationStatusInTag' | 'removeTagForConversations' | 'removeTagsForConversation' | 'getConversationListByTag' | 'getUnreadCountByTag' | 'getUntaggedConversationListByPage' | 'batchSetConversationTranslateStrategy' | 'modifyMessageWithParams' | 'refreshReferenceMessageWithParams' | 'batchDeleteConversations' | 'sendReadReceiptV2'>;
|
|
15127
|
+
declare type IChatModule = Pick<IIPCMethods, 'getConversationListByFilter' | 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5ByIdentifiers' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent' | 'requestSpeechToTextForMessage' | 'setMessageSpeechToTextVisible' | 'addTagForConversations' | 'getTagsForConversation' | 'setConversationStatusInTag' | 'removeTagForConversations' | 'removeTagsForConversation' | 'getConversationListByTag' | 'getUnreadCountByTag' | 'getUntaggedConversationListByPage' | 'batchSetConversationTranslateStrategy' | 'modifyMessageWithParams' | 'refreshReferenceMessageWithParams' | 'batchDeleteConversations' | 'sendReadReceiptV2' | 'syncRemoteConversations'>;
|
|
15118
15128
|
|
|
15119
15129
|
/**
|
|
15120
15130
|
* 聊天室模块
|