@rongcloud/engine 5.34.0-alpha.1 → 5.36.0-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.d.ts CHANGED
@@ -10460,6 +10460,14 @@ interface INaviInfo {
10460
10460
  * @since 5.34.0
10461
10461
  */
10462
10462
  serverSaveUnread?: 0 | 1;
10463
+ /**
10464
+ * 是否开启多端离线消息补偿。
10465
+ * @description 只有导航明确下发值为 0 时,才表示关闭多端离线消息补偿。其他情况均表示开启多端离线消息补偿。
10466
+ * 0: 关闭。
10467
+ * 1: 开启。
10468
+ * @since 5.36.0
10469
+ */
10470
+ openHistoryMsg?: 0 | 1;
10463
10471
  }
10464
10472
 
10465
10473
  /** [EN]
@@ -12180,6 +12188,94 @@ interface IExpansionMsgContent {
12180
12188
  clear?: number;
12181
12189
  }
12182
12190
 
12191
+ /** [EN]
12192
+ * Log level definitions
12193
+ * @category Enum
12194
+ */
12195
+ /**
12196
+ * 日志打印等级定义
12197
+ * @category Enum
12198
+ */
12199
+ declare enum LogL {
12200
+ /**
12201
+ * IM 质量数据日志,控制台不打印
12202
+ */
12203
+ STATISTICS = -2,
12204
+ /**
12205
+ * 未明确使用场景,暂未使用,控制台不打印
12206
+ */
12207
+ RECORD = -1,
12208
+ /**
12209
+ * 未明确使用场景,暂未使用,控制台不打印
12210
+ */
12211
+ FATAL = 0,
12212
+ /**
12213
+ * ERROR 级
12214
+ */
12215
+ ERROR = 1,
12216
+ /**
12217
+ * WARN 级
12218
+ */
12219
+ WARN = 2,
12220
+ /**
12221
+ * INFO 级
12222
+ */
12223
+ INFO = 3,
12224
+ /**
12225
+ * DEBUG 级
12226
+ */
12227
+ DEBUG = 4
12228
+ }
12229
+
12230
+ /**
12231
+ * 有效的日志等级声明
12232
+ * @category Type
12233
+ */
12234
+ declare type EnableLogL = LogL.DEBUG | LogL.INFO | LogL.WARN | LogL.ERROR;
12235
+ declare type LogContent = string | number | boolean | null;
12236
+ declare type LogType = 'IM' | 'RTC';
12237
+ /**
12238
+ * @hidden
12239
+ * 日志数据结构
12240
+ */
12241
+ interface ILogData {
12242
+ /**
12243
+ * 日志原始内容
12244
+ */
12245
+ content?: LogContent;
12246
+ /**
12247
+ * 日志标签,如 `L-INIT-O`
12248
+ */
12249
+ tag: string;
12250
+ /**
12251
+ * 日志生成时间
12252
+ */
12253
+ time: number;
12254
+ /**
12255
+ * 应用的声明周期 sessionId
12256
+ * @description
12257
+ * Electron 环境下,以主进程 sessionId 入库,渲染进程 sessionId 存储于 content 内。
12258
+ * 日志上报时,通过 `${mainSessionId}:${renderSessionId}` 形式作为 sessionId 上报
12259
+ */
12260
+ sessionId: string;
12261
+ /**
12262
+ * 日志类型,仅用于大数据后台查阅统计
12263
+ */
12264
+ type: LogType;
12265
+ /**
12266
+ * 日志等级,该等级与服务器统计等级保持一致,为入库等级
12267
+ */
12268
+ level: LogL;
12269
+ /**
12270
+ * 事务跟踪 ID
12271
+ */
12272
+ traceId?: string;
12273
+ /**
12274
+ * logger 实例 Id,用于确定日志由谁埋点,如 `RCEngien` 为 engine 包埋点日志
12275
+ */
12276
+ loggerId?: string;
12277
+ }
12278
+
12183
12279
  /**
12184
12280
  * 进程内缓存数据
12185
12281
  */
@@ -12223,6 +12319,11 @@ interface IIPCMethodsWithoutResult {
12223
12319
  reportSDKInfo(version: {
12224
12320
  [name: string]: string;
12225
12321
  }): void;
12322
+ /**
12323
+ * 接收渲染进程日志
12324
+ * @param log 日志数据
12325
+ */
12326
+ onReceiveRendererLog(log: ILogData): void;
12226
12327
  }
12227
12328
  /**
12228
12329
  * 约束跨平台、跨进程通信方法定义,以便于代码检查
@@ -12532,11 +12633,7 @@ interface IIPCMethods {
12532
12633
  /**
12533
12634
  * 设置当前用户在线状态
12534
12635
  */
12535
- setUserStatus(status: number): Promise<ErrorCode>;
12536
- /**
12537
- * 订阅用户在线状态
12538
- */
12539
- subscribeUserStatus(userIds: string[]): Promise<ErrorCode>;
12636
+ setUserStatus(status: number): Promise<RCResult>;
12540
12637
  /**
12541
12638
  * 获取用户状态
12542
12639
  */
@@ -12601,8 +12698,9 @@ interface IIPCMethods {
12601
12698
  setMessageContent(messageId: number, content: string, messageType: string): Promise<RCResult>;
12602
12699
  /**
12603
12700
  * 设置消息搜索字段
12701
+ * @deprecated 老版 V2 中用到
12604
12702
  */
12605
- setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
12703
+ setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<RCResult>;
12606
12704
  /**
12607
12705
  * 通过关键字与 channelId 搜索所有会话
12608
12706
  */
@@ -12776,6 +12874,9 @@ interface IIPCMethods {
12776
12874
  setNotificationQuietHoursWithSetting(opts: INotificationQuietHoursSetting): Promise<RCResult>;
12777
12875
  removeNotificationQuietHoursSetting(): Promise<RCResult>;
12778
12876
  getNotificationQuietHoursSetting(): Promise<RCResult<INotificationQuietHoursSetting>>;
12877
+ /**
12878
+ * 获取统计地址
12879
+ */
12779
12880
  getStatsUrlList(): Promise<RCResult<string[]>>;
12780
12881
  /**
12781
12882
  * 发送消息已读回执(V5 版本)
@@ -12815,6 +12916,13 @@ interface IIPCMethods {
12815
12916
  }>>;
12816
12917
  rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<RCResult<any>>;
12817
12918
  bindRTCRoomForChatroom(options: IRTCRoomBindOption): Promise<RCResult>;
12919
+ /**
12920
+ * RTC 通用调用接口
12921
+ * @param roomId 房间 ID
12922
+ * @param method CMP 接口方法名
12923
+ * @param isQuery 使用 `qry` or `pub` 进行请求,按服务要求传递
12924
+ * @param sourceData PB 数据
12925
+ */
12818
12926
  rtcSignaling(roomId: string, method: string, isQuery: boolean, sourceData: any): Promise<RCResult<Uint8Array>>;
12819
12927
  requestSpeechToTextForMessage(messageUId: string, option?: IConvertSpeechToTextOption): Promise<RCResult>;
12820
12928
  setMessageSpeechToTextVisible(messageId: number, isVisible: boolean): Promise<RCResult>;
@@ -13309,9 +13417,9 @@ interface IEngineWatcher extends IConnectionListener {
13309
13417
  ultraGroupChannelUserKicked: (list: IUltraChannelUserKickedInfo[]) => void;
13310
13418
  ultraGroupChannelDelete: (list: IUltraChannelDeleteInfo[]) => void;
13311
13419
  /**
13312
- * RTC 数据变更
13420
+ * RTC KV 数据变更通知,由 RTC 插件自行解析和处理
13313
13421
  */
13314
- onRTCDataChange: (data: IServerRTCRoomEntry[], roomId?: string) => void;
13422
+ onRTCDataChange: (buffer: Uint8Array) => void;
13315
13423
  pullFinished: () => void;
13316
13424
  callInfo: (data: string) => void;
13317
13425
  onNaviDataChange: (naviInfo: INaviInfo) => void;
@@ -13531,94 +13639,6 @@ declare const trans2IReceivedStatusInfo: (status: ReceivedStatus) => IReceivedSt
13531
13639
  */
13532
13640
  declare const transformReceivedStatusFlag: (receivedStatusInfo: IReceivedStatusInfo) => number;
13533
13641
 
13534
- /** [EN]
13535
- * Log level definitions
13536
- * @category Enum
13537
- */
13538
- /**
13539
- * 日志打印等级定义
13540
- * @category Enum
13541
- */
13542
- declare enum LogL {
13543
- /**
13544
- * IM 质量数据日志,控制台不打印
13545
- */
13546
- STATISTICS = -2,
13547
- /**
13548
- * 未明确使用场景,暂未使用,控制台不打印
13549
- */
13550
- RECORD = -1,
13551
- /**
13552
- * 未明确使用场景,暂未使用,控制台不打印
13553
- */
13554
- FATAL = 0,
13555
- /**
13556
- * ERROR 级
13557
- */
13558
- ERROR = 1,
13559
- /**
13560
- * WARN 级
13561
- */
13562
- WARN = 2,
13563
- /**
13564
- * INFO 级
13565
- */
13566
- INFO = 3,
13567
- /**
13568
- * DEBUG 级
13569
- */
13570
- DEBUG = 4
13571
- }
13572
-
13573
- /**
13574
- * 有效的日志等级声明
13575
- * @category Type
13576
- */
13577
- declare type EnableLogL = LogL.DEBUG | LogL.INFO | LogL.WARN | LogL.ERROR;
13578
- declare type LogContent = string | number | boolean | null;
13579
- declare type LogType = 'IM' | 'RTC';
13580
- /**
13581
- * @hidden
13582
- * 日志数据结构
13583
- */
13584
- interface ILogData {
13585
- /**
13586
- * 日志原始内容
13587
- */
13588
- content?: LogContent;
13589
- /**
13590
- * 日志标签,如 `L-INIT-O`
13591
- */
13592
- tag: string;
13593
- /**
13594
- * 日志生成时间
13595
- */
13596
- time: number;
13597
- /**
13598
- * 应用的声明周期 sessionId
13599
- * @description
13600
- * Electron 环境下,以主进程 sessionId 入库,渲染进程 sessionId 存储于 content 内。
13601
- * 日志上报时,通过 `${mainSessionId}:${renderSessionId}` 形式作为 sessionId 上报
13602
- */
13603
- sessionId: string;
13604
- /**
13605
- * 日志类型,仅用于大数据后台查阅统计
13606
- */
13607
- type: LogType;
13608
- /**
13609
- * 日志等级,该等级与服务器统计等级保持一致,为入库等级
13610
- */
13611
- level: LogL;
13612
- /**
13613
- * 事务跟踪 ID
13614
- */
13615
- traceId?: string;
13616
- /**
13617
- * logger 实例 Id,用于确定日志由谁埋点,如 `RCEngien` 为 engine 包埋点日志
13618
- */
13619
- loggerId?: string;
13620
- }
13621
-
13622
13642
  declare type LogReader = (startTime: number, endTime: number, level: LogL, realtimeReport: boolean, tableName?: string) => Promise<{
13623
13643
  logs: ILogData[];
13624
13644
  }>;
@@ -14693,10 +14713,6 @@ interface IModuleContext extends Pick<IIPCMethods, 'sendMessage'> {
14693
14713
  * 应用 Key
14694
14714
  */
14695
14715
  get appkey(): string;
14696
- /**
14697
- * 初始化选项
14698
- */
14699
- get initOption(): IAPIContextOption;
14700
14716
  /**
14701
14717
  * 当前连接状态
14702
14718
  */
@@ -14915,34 +14931,6 @@ declare class DataHosting extends BaseModule {
14915
14931
  getJoinedGroups(groupIds: string[]): Promise<RCResult<IGroupInfo[]>>;
14916
14932
  }
14917
14933
 
14918
- /**
14919
- * 会话聊天模块
14920
- */
14921
- 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' | 'markRemoteConversationAsRead' | 'getTopConversationList' | 'getUnreadConversationList' | 'getConversationListByPageIndex' | 'getAllConversationList' | 'getConversationListByTimestamp' | 'clearConversations' | 'getBlockedConversationList' | 'getBlockedUGList' | 'saveEditedMessageDraft' | 'getEditedMessageDraft' | 'clearEditedMessageDraft' | 'getUnreadMentionMeConversationList' | 'sendUltraGroupTypingStatus' | 'updateConversationReadTime' | 'clearUnreadCountByTimestamp' | 'getMessageReader' | 'getMessageReadReceiptV4' | 'sendReadReceiptMessageV4' | 'getConversationsIncludingRobots'> {
14922
- /** 超级群是否已同步完成 */
14923
- get ugSynced(): boolean;
14924
- getRealtimeConversations(count: number, startTime: number, order: 0 | 1): Promise<RCResult<IReceivedConversation[]>>;
14925
- getRealtimeConTotalUnreadCount(): Promise<RCResult<number>>;
14926
- clearRealtimeConUnreadCount(identifier: IConversationIdentifier): Promise<RCResult>;
14927
- removeRealtimeConversations(identifiers: IConversationIdentifier[]): Promise<RCResult>;
14928
- batchGetRealtimeConUnreadCount(identifiers: IConversationIdentifier[]): Promise<RCResult<IConversationUnreadCount[]>>;
14929
- /**
14930
- * 分页加载会话列表
14931
- * @param pageToken 分页 token
14932
- * @param count 分页数量
14933
- * @param options 会话列表加载器选项,仅 pageToken 无值时有效
14934
- */
14935
- loadConversationList(pageToken: string, count: number, options: IConversationListLoaderOptions): Promise<RCResult<{
14936
- pageToken: string;
14937
- finished: boolean;
14938
- list: IReceivedConversation[];
14939
- }>>;
14940
- /**
14941
- * 批量获取消息已读回执信息,暂仅支持群聊 (V4)
14942
- */
14943
- batchGetMessageReadReceiptInfoV4(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IGroupReadReceiptData[]>>;
14944
- }
14945
-
14946
14934
  /**
14947
14935
  * 会话列表加载器,暂不支持用于获取超级群会话列表,不支持 Electron 平台
14948
14936
  * @since 5.32.0
@@ -15173,10 +15161,6 @@ declare class APIContext {
15173
15161
  private _friendApplicationStatusChanged;
15174
15162
  private _friendCleared;
15175
15163
  private _friendInfoChangedSync;
15176
- /**
15177
- * rtc 数据变更通知 pluginContext
15178
- */
15179
- private _rtcDataChange;
15180
15164
  /**
15181
15165
  * 导航数据变更通知
15182
15166
  */
@@ -15271,6 +15255,8 @@ declare class APIContext {
15271
15255
  * @param isStatusMessage 是否是状态消息
15272
15256
  */
15273
15257
  registerMessageType(objectName: string, isPersited: boolean, isCounted: boolean, searchProps?: string[], isStatusMessage?: boolean): void;
15258
+ private _rtcListener?;
15259
+ private _rtcDataChange;
15274
15260
  /**
15275
15261
  * 注册 RTC KV 通知监听器
15276
15262
  * @param listener
@@ -15661,8 +15647,9 @@ declare class APIContext {
15661
15647
  setMessageContent(messageId: number, content: any, messageType: string): Promise<RCResult>;
15662
15648
  /**
15663
15649
  * 设置消息搜索字段
15650
+ * @deprecated 老版 V2 中用到
15664
15651
  */
15665
- setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
15652
+ setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<RCResult>;
15666
15653
  /**
15667
15654
  * 设置消息发送状态
15668
15655
  */
@@ -15679,12 +15666,7 @@ declare class APIContext {
15679
15666
  * 设置当前用户在线状态
15680
15667
  * @deprecated 老版 V2 中用到
15681
15668
  */
15682
- setUserStatus(status: number): Promise<ErrorCode>;
15683
- /**
15684
- * 订阅用户在线状态
15685
- * @deprecated 老版 V2 中用到
15686
- */
15687
- subscribeUserStatus(userIds: string[]): Promise<ErrorCode>;
15669
+ setUserStatus(status: number): Promise<RCResult>;
15688
15670
  /**
15689
15671
  * 获取用户在线状态
15690
15672
  * @deprecated 老版 V2 中用到
@@ -16002,326 +15984,38 @@ declare class RTCPluginContext extends PluginContext {
16002
15984
  }
16003
15985
 
16004
15986
  /**
16005
- * 用户设置模块
15987
+ * 会话聊天模块
16006
15988
  */
16007
- declare type IUserSettingsModule = Pick<IIPCMethods, 'setTranslationLanguage' | 'getTranslationLanguage' | 'setAutoTranslateEnabled' | 'getAutoTranslateEnabled'>;
16008
-
16009
- 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' | 'refetchNaviInfo' | 'connect' | 'disconnect' | 'addToBlacklist' | 'removeFromBlacklist' | 'getBlacklist' | 'getBlacklistStatus' | 'setMessageReceivedStatus' | 'setMessageSentStatus' | 'setCheckDuplicateMessage' | 'setProxy' | 'getProxy' | 'testProxy' | 'getFileToken' | 'rtcSignaling' | 'rtcPing' | 'setCallInfo' | 'getUserStatus' | 'searchConversationByContentWithAllChannel' | 'getAllRobots' | 'getOSInfo' | 'getMainProcessInfo'>;
16010
- declare abstract class BasicEngine implements IIPCMethodsInEngine, IModuleContext, IIPCMethodsWithoutResult {
16011
- protected readonly _watcher: IEngineWatcher;
16012
- protected readonly _options: IAPIContextOption;
16013
- /**
16014
- * 连接时间
16015
- */
16016
- abstract get connectedTime(): number;
16017
- protected readonly _appkey: string;
16018
- private _rtcKVManager;
16019
- /**
16020
- * 会话聊天模块
16021
- */
16022
- abstract get chat(): IChatService;
16023
- abstract get chatroom(): IChatroomService;
16024
- /**
16025
- * 用户级配置模块
16026
- */
16027
- abstract get userSettings(): IUserSettingsModule;
16028
- abstract get naviInfo(): INaviInfo | null;
16029
- get appkey(): string;
16030
- get initOption(): IAPIContextOption;
16031
- abstract get connectionStatus(): RCConnectionStatus;
16032
- abstract get userId(): string;
16033
- abstract get logger(): BasicLogger;
16034
- abstract get usingCppEngine(): boolean;
16035
- /**
16036
- * 用户信息托管模块
16037
- */
16038
- abstract get dataHosting(): IDataHostingService;
16039
- /**
16040
- * 引擎初始化
16041
- * @param _appkey
16042
- */
16043
- constructor(_watcher: IEngineWatcher, _options: IAPIContextOption);
16044
- protected _rtcSignalingListener?: (buffer: Uint8Array) => void;
16045
- /**
16046
- * 注册 RTC KV 变更监听器
16047
- * @param listener
16048
- */
16049
- registerRTCSignalingListener(listener: ((buffer: Uint8Array) => void) | undefined): void;
16050
- abstract refetchNaviInfo(): Promise<RCResult<INaviInfo | null>>;
16051
- /**
16052
- * 为非 engine 包创建 logger 工具实例
16053
- */
16054
- abstract createLogger(id: string, type: LogType): BasicLogger;
16055
- /**
16056
- * 建立连接
16057
- * @param token
16058
- * @param reconnectKickEnable
16059
- * @param openCallPlus
16060
- * @param traceId
16061
- */
16062
- abstract connect(token: string, reconnectKickEnable: boolean, openCallPlus: boolean, traceId: string): Promise<RCResult<string>>;
16063
- /**
16064
- * 发送 SDK 版本
16065
- * @param versionInfo
16066
- */
16067
- abstract reportSDKInfo(versionInfo: Record<string, string>): void;
16068
- abstract getHistoryMessage(conversation: IConversationOption, options: Required<IGetHistoryMessageOption>, fromLocal: boolean): Promise<RCResult<{
16069
- list: IReceivedMessage[];
16070
- hasMore: boolean;
16071
- }>>;
16072
- abstract recallMsg(conversation: IConversationOption, recallMsgOptions: IRecallMsgOptions): Promise<RCResult<IReceivedMessage>>;
16073
- abstract saveTextMessageDraft(conversation: IConversationOption, draft: string): Promise<RCResult>;
16074
- /**
16075
- * 获取指定会话消息草稿
16076
- */
16077
- abstract getTextMessageDraft(conversation: IConversationOption): Promise<RCResult<string>>;
16078
- /**
16079
- * 清除指定会话消息草稿
16080
- */
16081
- abstract clearTextMessageDraft(conversation: IConversationOption): Promise<RCResult>;
16082
- /**
16083
- * 发送消息
16084
- * @param identifier 会话标识
16085
- * @param options 消息发送配置
16086
- * @param traceId 追踪 ID
16087
- * @param onBefore 消息发送之前的回调,用于返回消息的 messageId
16088
- */
16089
- abstract sendMessage(identifier: IConversationIdentifier, options: IMessageSendOptions, traceId: string, onBefore?: (messageId: number) => void): Promise<RCResult<IReceivedMessage>>;
16090
- /**
16091
- * 断开连接
16092
- * @param closeDB 是否关闭数据库,默认为 true,仅 Electron 平台有效
16093
- * @param disablePush 是否禁用推送,默认为 false(≥ 5.20.0)
16094
- */
16095
- abstract disconnect(closeDB?: boolean, disablePush?: boolean): Promise<RCResult>;
16096
- /**
16097
- * 消息注册
16098
- * @description
16099
- * 消息注册需在应用初始化完成前进行,否则在搭配 C++ 协议栈使用时,本端发出的消息将不默认作为未知消息处理,不存储、不计数
16100
- */
16101
- abstract registerMessageType(objectName: string, desc: MessageRegisterParams): void;
16102
- abstract getFileToken(fileType: FileType, fileName?: string, httpMethod?: string, queryUriString?: string, url?: string, size?: number): Promise<RCResult<IUploadAuth>>;
16103
- /**
16104
- * 获取文件的下载地址
16105
- * @param fileType 文件类型
16106
- * @param serverType 使用的存储服务标识
16107
- * @param fileName 文件名
16108
- * @param saveName 下载后的存储文件名
16109
- * @returns
16110
- */
16111
- abstract getFileUrl(fileType: FileType, serverType: UploadMethod, fileName: string, originName: string): Promise<RCResult<{
16112
- downloadUrl: string;
16113
- }>>;
16114
- /**
16115
- * 创建标签
16116
- * @param tag 标签
16117
- */
16118
- abstract createTag(tag: ITagParam): Promise<RCResult>;
16119
- /**
16120
- * 删除标签
16121
- * @param tagId 标签 id
16122
- */
16123
- abstract removeTag(tagId: string): Promise<RCResult>;
16124
- /**
16125
- * 编辑标签
16126
- * @param tag 标签
16127
- */
16128
- abstract updateTag(tag: ITagParam): Promise<RCResult>;
16129
- /**
16130
- * 获取标签列表
16131
- */
16132
- abstract getTagList(): Promise<RCResult<ITagInfo[]>>;
16133
- /**
16134
- * 获取服务器时间
16135
- */
16136
- abstract get serverTime(): number;
16137
- /**
16138
- * 获取设备 ID
16139
- */
16140
- abstract get deviceId(): string;
16141
- /**
16142
- * 设置推送配置
16143
- * @param config 推送配置
16144
- */
16145
- abstract setPushConfig(config: IAppPushConfig): void;
16146
- /**
16147
- * 超级群消息发送
16148
- * @param targetId
16149
- * @param options
16150
- */
16151
- abstract sendUltraMessage(identifier: IConversationIdentifier, options: IMessageSendOptions, traceId: string, onSendBefore?: (messageId: number) => void): Promise<RCResult<IReceivedMessage>>;
16152
- /**
16153
- * 设置当前用户在线状态
16154
- */
16155
- abstract setUserStatus(status: number): Promise<ErrorCode>;
16156
- /**
16157
- * 订阅用户在线状态
16158
- */
16159
- abstract subscribeUserStatus(userIds: string[]): Promise<ErrorCode>;
16160
- /**
16161
- * 获取用户状态
16162
- */
16163
- abstract getUserStatus(userId: string): Promise<RCResult<{
16164
- status: string;
16165
- }>>;
16166
- /**
16167
- * 加入黑名单
16168
- */
16169
- abstract addToBlacklist(userId: string): Promise<RCResult>;
16170
- /**
16171
- * 将指定用户移除黑名单
16172
- */
16173
- abstract removeFromBlacklist(userId: string): Promise<RCResult>;
16174
- /**
16175
- * 获取黑名单列表
16176
- */
16177
- abstract getBlacklist(): Promise<RCResult<string[]>>;
16178
- /**
16179
- * 获取指定人员在黑名单中的状态
16180
- */
16181
- abstract getBlacklistStatus(userId: string): Promise<RCResult<number>>;
16182
- /**
16183
- * 向本地插入一条消息,不发送到服务器
16184
- */
16185
- abstract insertMessage(conversation: IConversationOption, insertOptions: InnerInsertMessageParams): Promise<RCResult<IReceivedMessage>>;
16186
- /**
16187
- * 向本地批量插入消息
16188
- * @param messages
16189
- * @param checkDuplicate
16190
- */
16191
- abstract batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<RCResult<boolean>>;
16192
- /**
16193
- * 删除本地消息
16194
- */
16195
- abstract deleteLocalMessages(messageIds: number[]): Promise<RCResult>;
16196
- /**
16197
- * 通过时间戳删除本地消息
16198
- */
16199
- abstract deleteLocalMessagesByTimestamp(conversation: IConversationOption, timestamp: number, cleanSpace: boolean): Promise<RCResult>;
16200
- /**
16201
- * 通过时间戳批量清除本地消息
16202
- */
16203
- abstract batchClearLocalMessagesByTimestamp(options: IClearMessageOption[]): Promise<RCResult>;
16204
- /**
16205
- * 清空会话下历史消息
16206
- */
16207
- abstract clearLocalMessages(conversation: IConversationOption): Promise<RCResult>;
16208
- /**
16209
- * 获取消息
16210
- */
16211
- abstract getMessage(messageId: number | string): Promise<RCResult<IReceivedMessage>>;
16212
- /**
16213
- * 设置消息内容
16214
- */
16215
- abstract setMessageContent(messageId: number, content: any, messageType: string): Promise<RCResult>;
16216
- /**
16217
- * 设置消息搜索字段
16218
- */
16219
- abstract setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
16220
- /**
16221
- * 通过关键字搜索所有会话
16222
- */
16223
- abstract searchConversationByContentWithAllChannel(keyword: string, messageTypes: string[], conversationTypes: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
16224
- abstract searchMessagesWithParams(params: ISearchMessageParams): Promise<RCResult<ISearchMessagesResult>>;
16225
- /**
16226
- * 设置消息发送状态
16227
- */
16228
- abstract setMessageSentStatus(messageId: number, sentStatus: number): Promise<RCResult>;
16229
- /**
16230
- * 设置消息接收状态
16231
- */
16232
- abstract setMessageReceivedStatus(messageId: number, receivedStatus: number): Promise<RCResult>;
15989
+ 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' | 'markRemoteConversationAsRead' | 'getTopConversationList' | 'getUnreadConversationList' | 'getConversationListByPageIndex' | 'getAllConversationList' | 'getConversationListByTimestamp' | 'clearConversations' | 'getBlockedConversationList' | 'getBlockedUGList' | 'saveEditedMessageDraft' | 'getEditedMessageDraft' | 'clearEditedMessageDraft' | 'getUnreadMentionMeConversationList' | 'sendUltraGroupTypingStatus' | 'updateConversationReadTime' | 'clearUnreadCountByTimestamp' | 'getMessageReader' | 'getMessageReadReceiptV4' | 'sendReadReceiptMessageV4' | 'getConversationsIncludingRobots'> {
15990
+ /** 超级群是否已同步完成 */
15991
+ get ugSynced(): boolean;
15992
+ getRealtimeConversations(count: number, startTime: number, order: 0 | 1): Promise<RCResult<IReceivedConversation[]>>;
15993
+ getRealtimeConTotalUnreadCount(): Promise<RCResult<number>>;
15994
+ clearRealtimeConUnreadCount(identifier: IConversationIdentifier): Promise<RCResult>;
15995
+ removeRealtimeConversations(identifiers: IConversationIdentifier[]): Promise<RCResult>;
15996
+ batchGetRealtimeConUnreadCount(identifiers: IConversationIdentifier[]): Promise<RCResult<IConversationUnreadCount[]>>;
16233
15997
  /**
16234
- * 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
15998
+ * 分页加载会话列表
15999
+ * @param pageToken 分页 token
16000
+ * @param count 分页数量
16001
+ * @param options 会话列表加载器选项,仅 pageToken 无值时有效
16235
16002
  */
16236
- abstract updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<RCResult<boolean>>;
16237
- abstract setCallInfo(targetId: string, key: string, value: string): Promise<RCResult<{
16238
- key: string;
16239
- value: string;
16003
+ loadConversationList(pageToken: string, count: number, options: IConversationListLoaderOptions): Promise<RCResult<{
16004
+ pageToken: string;
16005
+ finished: boolean;
16006
+ list: IReceivedConversation[];
16240
16007
  }>>;
16241
- abstract clearLocalData(): Promise<RCResult<boolean>>;
16242
- /**
16243
- * 获取运行时的系统信息,仅限 Electron 平台可用
16244
- */
16245
- abstract getOSInfo(): Promise<RCResult<IOSInfo>>;
16246
- /**
16247
- * 获取当前渲染进程信息,仅限 Electron 平台可用
16248
- */
16249
- abstract getProcessInfo(): Promise<RCResult<IProcessInfo>>;
16250
- /**
16251
- * 获取应用主进程信息,仅限 Electron 平台可用
16252
- */
16253
- abstract getMainProcessInfo(): Promise<RCResult<IProcessInfo>>;
16254
- /**
16255
- * 设置融云消息重排开关
16256
- */
16257
- abstract setCheckDuplicateMessage(enableCheck: boolean): Promise<RCResult<boolean>>;
16258
- /**
16259
- * RTC 通用调用接口
16260
- * 在非 Comet 协议下,入参 sourceData 应为 ArrayBuffer 数据,返回结果为 Uint8Array 数据
16261
- * @param roomId 房间 ID
16262
- * @param method CMP 接口方法名
16263
- * @param isQuery 使用 `qry` or `pub` 进行请求,按服务要求传递
16264
- * @param sourceData PB 数据
16265
- */
16266
- abstract rtcSignaling(roomId: string, method: string, isQuery: boolean, sourceData: ArrayBuffer): Promise<RCResult<Uint8Array>>;
16267
- abstract rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<RCResult<any>>;
16268
- pullRTCRoomEntry(roomId: string, _timestamp: number): Promise<RCResult<number>>;
16269
- /**
16270
- * 接收 rtc 资源变更
16271
- */
16272
- protected _receiveRtcKv(buffer: Uint8Array): void;
16273
16008
  /**
16274
- * Engine 反初始化
16275
- */
16276
- destroy(): void;
16277
- /**
16278
- * 设置代理
16279
- */
16280
- abstract setProxy(proxy: IProxy | null): Promise<RCResult>;
16281
- /**
16282
- * 获取代理
16283
- */
16284
- abstract getProxy(): Promise<RCResult<IProxy>>;
16285
- /**
16286
- * 测试代理
16287
- */
16288
- abstract testProxy(proxy: IProxy, testHost: string): Promise<RCResult>;
16289
- /**
16290
- * 设置当前网络
16291
- */
16292
- abstract setNetwork(data: INetwork, isUnPrintLog?: boolean): void;
16293
- /**
16294
- * 订阅用户状态事件
16295
- */
16296
- abstract subscribeUser(userIds: string[], subscribeType: SubscribeType, expiry: number): Promise<RCResult<string[]>>;
16297
- /**
16298
- * 取消订阅用户状态事件
16299
- */
16300
- abstract unSubscribeUser(userIds: string[], subscribeType: SubscribeType): Promise<RCResult>;
16301
- /**
16302
- * 获取已订阅列表
16303
- */
16304
- abstract getSubscribeUserList(subscribeType: SubscribeType, count: number, offset: number): Promise<RCResult<ISubscribeUserStatusInfo[]>>;
16305
- /**
16306
- * 获取指定用户的在线状态
16307
- */
16308
- abstract getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<RCResult<ISubscribeUserStatusInfo[]>>;
16309
- abstract updateMyUserProfile(profile: IUserProfileInfo): Promise<RCResult<IUpdateMyProfileFail>>;
16310
- abstract getUserProfiles(userIds: string[]): Promise<RCResult<IUserProfileInfo[]>>;
16311
- abstract getMyUserProfile(): Promise<RCResult<IUserProfileInfo>>;
16312
- abstract setNotificationQuietHoursWithSetting(opts: INotificationQuietHoursSetting): Promise<RCResult>;
16313
- abstract removeNotificationQuietHoursSetting(): Promise<RCResult>;
16314
- abstract getNotificationQuietHoursSetting(): Promise<RCResult<INotificationQuietHoursSetting>>;
16315
- /**
16316
- * 获取统计地址
16009
+ * 批量获取消息已读回执信息,暂仅支持群聊 (V4)
16317
16010
  */
16318
- abstract getStatsUrlList(): Promise<RCResult<string[]>>;
16319
- abstract translateWithParams(list: InnerTransParam[], mode: TranslateMode, force: boolean, from: 0 | 1): Promise<RCResult>;
16320
- abstract getLocalMessageCount(conversation: IConversationOption): Promise<RCResult<number>>;
16321
- abstract getSubscribeUsersOnlineStatus(userIds: string[]): Promise<RCResult<ISubscribeUserOnlineStatus[]>>;
16322
- abstract getAllRobots(): Promise<RCResult<IRobotInfo[]>>;
16011
+ batchGetMessageReadReceiptInfoV4(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IGroupReadReceiptData[]>>;
16323
16012
  }
16324
16013
 
16014
+ /**
16015
+ * 用户设置模块
16016
+ */
16017
+ declare type IUserSettingsModule = Pick<IIPCMethods, 'setTranslationLanguage' | 'getTranslationLanguage' | 'setAutoTranslateEnabled' | 'getAutoTranslateEnabled'>;
16018
+
16325
16019
  /**
16326
16020
  * 流式消息数据拉取响应事件类型
16327
16021
  * @category Enum
@@ -16444,4 +16138,4 @@ declare const assert: (key: string, value: any, validator: AssertRules | ((value
16444
16138
  */
16445
16139
  declare const validate: (key: string, value: any, validator: AssertRules | ((value?: any) => boolean), required?: boolean) => boolean;
16446
16140
 
16447
- export { APIContext, AbsCodec, AppSettings, AreaCode, AssertRules, BasicEngine, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationBatchDeletionParams, ConversationListLoader, ConversationType, DataHosting, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FilterRobotType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, GroupReadReceiptVersion, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IAuditInfoKeyInMessage, IAuditInfoValueInMessage, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatService, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomErrorKeys, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomService, IChatroomUser, IChatroomUserChangeInfo, IClearMessageOption, ICombineMessageContent, ICombineV2MessageContent, ICombinedMessage, ICommandMessageContent, IConnectionStatusListener, IConversationFilter, IConversationIdentifier, IConversationListLoaderOptions, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagFilter, IConversationTagListener, IConversationUnreadCount, IConvertHQVoiceMessageToTextOption, IConvertSpeechToTextOption, IConvertVoiceMessageToTextOption, ICreateGroupFail, IDataHostingService, IDeletedExpansion, IDownloadAuth, IEditedMessageDraft, IEnginRefreshReferenceMessageResult, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraDataKeyInMessage, IFileMessageContent, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGIFMessageContent, IGetConversationListByTimestampParams, IGetConversationsIncludingRobotsOption, IGetGroupMembersOption, IGetHistoryMessageOption, IGetHistoryMessageResult, IGetHistoryMessagesByTypesOption, IGetUltraGroupListOption, IGetUnreadMentionMeConversationListParams, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupNotificationMessageContent, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHQVoiceMessageContent, IHarmonyOSPushConfig, IIPCMethods, IIPCMethodsSync, IIPCMethodsWithoutResult, IImageMessageContent, IInformationNotificationMessageContent, IInsertMessage, ILocalTagStatus, ILocationMessageContent, ILogData, ILogger, IMemberInviteResponse, IMentionedInfoKeyInMessage, IMessageAttrsForUpdateExpansion, IMessageDesc, IMessageExtraData, IMessageFilter, IMessageIdentifier, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IMessageSendOptions, IModifyMessageParams, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPlatformOnlineStatus, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallCommandMessageContent, IRecallMsgOptions, IRecallNotificationMessageContent, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IReferContentInMessage, IReferContentKeyInMessage, IReferenceMessageContent, IRefreshReferenceMessageParams, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRichContentMessageContent, IRobotInfo, IRuntime, ISearchMessageParams, ISearchMessagesResult, ISendMsgOptions, IServerGroupBaseInfo, ISightMessageContent, ISpeechToTextInfo, ISpeechToTextResponse, IStorage, IStreamMessageContent, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserOnlineStatus, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITextMessageContent, ITimeRange, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserExtraKeyInMessage, IUserExtraValueInMessage, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IUserSettingsChangedEvent, IUserSettingsModule, IVoiceMessageContent, IWatcher, IiOSPushConfig, InnerInsertMessageParams, InnerTransParam, InterruptionLevel, ItypingStateListener, KVString, LogDBProxy, LogL, LogLevel, LogSource, Log as LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_U32_INTEGER, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageAuditType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, Platform, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, ReferenceMessageStatus, SSEModule, SentStatus, SpeechToTextStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, TranslateInfo, TranslateItem, TranslateMessageParam, TranslateMessagesParams, TranslateMode, TranslateStatus, TranslateStrategy, TranslateTextParam, TranslateTextsParams, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, UserSettingsChangedKey, UserType, Validator, VersionManage, assert, createLogDBProxy, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidTargetId, map, notEmptyArray, notEmptyObject, notEmptyString, ok, promiseWithResolvers, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };
16141
+ export { APIContext, AbsCodec, AppSettings, AreaCode, AssertRules, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationBatchDeletionParams, ConversationListLoader, ConversationType, DataHosting, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FilterRobotType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, GroupReadReceiptVersion, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IAuditInfoKeyInMessage, IAuditInfoValueInMessage, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatService, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomErrorKeys, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomService, IChatroomUser, IChatroomUserChangeInfo, IClearMessageOption, ICombineMessageContent, ICombineV2MessageContent, ICombinedMessage, ICommandMessageContent, IConnectionStatusListener, IConversationFilter, IConversationIdentifier, IConversationListLoaderOptions, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagFilter, IConversationTagListener, IConversationUnreadCount, IConvertHQVoiceMessageToTextOption, IConvertSpeechToTextOption, IConvertVoiceMessageToTextOption, ICreateGroupFail, IDataHostingService, IDeletedExpansion, IDownloadAuth, IEditedMessageDraft, IEnginRefreshReferenceMessageResult, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraDataKeyInMessage, IFileMessageContent, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGIFMessageContent, IGetConversationListByTimestampParams, IGetConversationsIncludingRobotsOption, IGetGroupMembersOption, IGetHistoryMessageOption, IGetHistoryMessageResult, IGetHistoryMessagesByTypesOption, IGetUltraGroupListOption, IGetUnreadMentionMeConversationListParams, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupNotificationMessageContent, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHQVoiceMessageContent, IHarmonyOSPushConfig, IIPCMethods, IIPCMethodsSync, IIPCMethodsWithoutResult, IImageMessageContent, IInformationNotificationMessageContent, IInsertMessage, ILocalTagStatus, ILocationMessageContent, ILogData, ILogger, IMemberInviteResponse, IMentionedInfoKeyInMessage, IMessageAttrsForUpdateExpansion, IMessageDesc, IMessageExtraData, IMessageFilter, IMessageIdentifier, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IMessageSendOptions, IModifyMessageParams, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPlatformOnlineStatus, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallCommandMessageContent, IRecallMsgOptions, IRecallNotificationMessageContent, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IReferContentInMessage, IReferContentKeyInMessage, IReferenceMessageContent, IRefreshReferenceMessageParams, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRichContentMessageContent, IRobotInfo, IRuntime, ISearchMessageParams, ISearchMessagesResult, ISendMsgOptions, IServerGroupBaseInfo, ISightMessageContent, ISpeechToTextInfo, ISpeechToTextResponse, IStorage, IStreamMessageContent, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserOnlineStatus, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITextMessageContent, ITimeRange, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserExtraKeyInMessage, IUserExtraValueInMessage, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IUserSettingsChangedEvent, IUserSettingsModule, IVoiceMessageContent, IWatcher, IiOSPushConfig, InnerInsertMessageParams, InnerTransParam, InterruptionLevel, ItypingStateListener, KVString, LogDBProxy, LogL, LogLevel, LogSource, Log as LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_U32_INTEGER, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageAuditType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, Platform, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, ReferenceMessageStatus, SSEModule, SentStatus, SpeechToTextStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, TranslateInfo, TranslateItem, TranslateMessageParam, TranslateMessagesParams, TranslateMode, TranslateStatus, TranslateStrategy, TranslateTextParam, TranslateTextsParams, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, UserSettingsChangedKey, UserType, Validator, VersionManage, assert, createLogDBProxy, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidTargetId, map, notEmptyArray, notEmptyObject, notEmptyString, ok, promiseWithResolvers, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };