@rongcloud/engine 5.26.1 → 5.28.0-c-tmp.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
@@ -308,7 +308,8 @@ declare const LogTagId: {
308
308
  readonly L_PULL_MODIFY_MSG_R: "L-pull_modify_msg-R";
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
- readonly L_UPDATE_MSG_BOX_TIME_O: "L-update_msg_box_time-O";
311
+ readonly A_SYNC_REMOTE_CONVERSATIONS_T: "A-e_sync_remote_conversations-T";
312
+ readonly A_SYNC_REMOTE_CONVERSATIONS_R: "A-e_sync_remote_conversations-R";
312
313
  };
313
314
 
314
315
  /** [EN]
@@ -5042,7 +5043,7 @@ interface IUpdateItem {
5042
5043
  * Contains @ mention
5043
5044
  */
5044
5045
  /**
5045
- * 存在 @ 信息
5046
+ * 存在 @ 信息变更,不支持 Electron 平台
5046
5047
  */
5047
5048
  hasMentioned?: {
5048
5049
  time: number;
@@ -5052,7 +5053,7 @@ interface IUpdateItem {
5052
5053
  * @ Information
5053
5054
  */
5054
5055
  /**
5055
- * @ 信息
5056
+ * @ 信息变更,不支持 Electron 平台
5056
5057
  */
5057
5058
  mentionedInfo?: {
5058
5059
  time: number;
@@ -5062,7 +5063,7 @@ interface IUpdateItem {
5062
5063
  * Unread count change
5063
5064
  */
5064
5065
  /**
5065
- * 未读数变更
5066
+ * 未读数变更,不支持 Electron 平台
5066
5067
  */
5067
5068
  unreadMessageCount?: {
5068
5069
  time: number;
@@ -5082,7 +5083,7 @@ interface IUpdateItem {
5082
5083
  * The last message in the conversation has changed.
5083
5084
  */
5084
5085
  /**
5085
- * 会话最后一条消息变更
5086
+ * 会话最后一条消息变更,不支持 Electron 平台
5086
5087
  */
5087
5088
  latestMessage?: {
5088
5089
  time: number;
@@ -9767,10 +9768,10 @@ interface INaviInfo {
9767
9768
  */
9768
9769
  ugDriven?: number;
9769
9770
  /**
9770
- * 会话列表配置
9771
- * * 第一位:会话列表是否包含超级群会话,0 为关闭,1 表示开启;
9772
- * * 第二位:协议栈是否拉服务端会话列表,0 为关闭,1 表示开启;
9773
- * * 第三位:协议栈自动拉取服务端会话列表,0 为关闭,1 表示开启;仅当第二位为 1 时有效
9771
+ * 会话列表配置,按位取值:
9772
+ * * 0001:会话列表是否包含超级群会话,0 为关闭,1 表示开启;
9773
+ * * 0010:协议栈是否允许拉取服务端会话列表,0 为关闭,1 表示开启;
9774
+ * * 0100:协议栈是否自动拉取服务端会话列表,0 为关闭,1 表示开启;仅当第二位为 1 时有效
9774
9775
  */
9775
9776
  sessionCfg?: number;
9776
9777
  /**
@@ -12165,6 +12166,10 @@ interface IIPCMethods {
12165
12166
  * @param messageInfoMap 消息发送时间映射,仅 Web 端超级群会话有效
12166
12167
  */
12167
12168
  refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationOption, remoteMessageBlock: ((results: IEnginRefreshReferenceMessageResult[]) => void) | string, localMessageBlock: ((results: IEnginRefreshReferenceMessageResult[]) => void) | string, messageInfoMap?: Record<string, string>): Promise<RCResult>;
12169
+ /**
12170
+ * 同步服务器会话列表至本地数据库
12171
+ */
12172
+ syncRemoteConversations(): Promise<RCResult>;
12168
12173
  }
12169
12174
 
12170
12175
  /**
@@ -12468,7 +12473,7 @@ interface IEngineWatcher extends IConnectionListener<false> {
12468
12473
  */
12469
12474
  conversationTag: () => void;
12470
12475
  ultraGroupEnable: () => void;
12471
- sgRelationsSynced: () => void;
12476
+ sgRelationsSynced: (code: number) => void;
12472
12477
  operateStatus: (status: IOperateStatusNotify) => void;
12473
12478
  ultraGroupMessageExpansionUpdated: (list: IReceivedMessage[]) => void;
12474
12479
  ultraGroupMessageRecalled: (list: IReceivedMessage[]) => void;
@@ -13752,7 +13757,7 @@ interface IWatcher {
13752
13757
  */
13753
13758
  messageBlocked?: IMessageBlockedListener;
13754
13759
  ultraGroupEnable?: () => void;
13755
- sgRelationsSynced?: () => void;
13760
+ sgRelationsSynced?: (code: number) => void;
13756
13761
  operateStatus?: (status: IOperateStatusNotify) => void;
13757
13762
  ultraGroupMessageExpansionUpdated?: (list: IReceivedMessage[]) => void;
13758
13763
  ultraGroupMessageRecalled?: (list: IReceivedMessage[]) => void;
@@ -14311,7 +14316,7 @@ declare class APIContext {
14311
14316
  /**
14312
14317
  * 删除会话
14313
14318
  */
14314
- removeConversation(conversation: IConversationOption): Promise<RCResult>;
14319
+ removeConversation(conversation: IConversationOption, deleteRemotely?: boolean): Promise<RCResult>;
14315
14320
  batchDeleteConversations(params: ConversationBatchDeletionParams): Promise<RCResult>;
14316
14321
  /**
14317
14322
  * 获取超级群会话列表
@@ -14910,6 +14915,10 @@ declare class APIContext {
14910
14915
  getAutoTranslateEnabled(): Promise<RCResult<boolean>>;
14911
14916
  modifyMessageWithParams(params: IModifyMessageParams): Promise<RCResult>;
14912
14917
  refreshReferenceMessageWithParams(params: IRefreshReferenceMessageParams): Promise<RCResult>;
14918
+ /**
14919
+ * Electron 平台下同步服务器会话列表至本地数据库
14920
+ */
14921
+ syncRemoteConversations(): Promise<RCResult>;
14913
14922
  }
14914
14923
 
14915
14924
  declare class RTCPluginContext extends PluginContext {
@@ -15114,7 +15123,7 @@ declare class RTCPluginContext extends PluginContext {
15114
15123
  /**
15115
15124
  * 会话聊天模块
15116
15125
  */
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'>;
15126
+ 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
15127
 
15119
15128
  /**
15120
15129
  * 聊天室模块