@rongcloud/engine 5.20.2-enterprise.1 → 5.20.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 +125 -133
- package/index.esm.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -251,13 +251,6 @@ declare const LogTagId: {
|
|
|
251
251
|
readonly L_EVENT_LOOP_BLOCKING_S: "L-event_loop_blocking-S";
|
|
252
252
|
readonly A_E_SEARCH_CONVERSATION_BY_CONTENT_T: "A-e_search_conversation_by_content-T";
|
|
253
253
|
readonly A_E_SEARCH_CONVERSATION_BY_CONTENT_R: "A-e_search_conversation_by_content-R";
|
|
254
|
-
readonly P_GET_SYS_VERSION_E: "P-get_sys_version-E";
|
|
255
|
-
/** 清除本地缓存 */
|
|
256
|
-
readonly A_CLEAR_LOCAL_CACHE_O: "A-clear_local_cache-O";
|
|
257
|
-
readonly A_E_SET_MESSAGE_STATUS_TO_READ_T: "A-e_set_message_status_to_read-T";
|
|
258
|
-
readonly A_E_SET_MESSAGE_STATUS_TO_READ_R: "A-e_set_message_status_to_read-R";
|
|
259
|
-
readonly A_SEARCH_MSGS_BY_PARAMS_T: "A-search_msgs_by_params-T";
|
|
260
|
-
readonly A_SEARCH_MSGS_BY_PARAMS_R: "A-search_msgs_by_params-R";
|
|
261
254
|
};
|
|
262
255
|
|
|
263
256
|
/**
|
|
@@ -3307,7 +3300,6 @@ declare enum HttpMethod {
|
|
|
3307
3300
|
declare const MAX_MESSAGE_CONTENT_BYTES: number;
|
|
3308
3301
|
declare const MAX_UPLOAD_FILE_SIZE: number;
|
|
3309
3302
|
declare const UPLOAD_FILE_CHUNK_SIZE: number;
|
|
3310
|
-
declare const MAX_U32_INTEGER: number;
|
|
3311
3303
|
|
|
3312
3304
|
declare class VersionManage {
|
|
3313
3305
|
static add(name: string, version: string): void;
|
|
@@ -3425,13 +3417,6 @@ declare class RCResult<T = void> {
|
|
|
3425
3417
|
* @hidden
|
|
3426
3418
|
*/
|
|
3427
3419
|
or(onfail: (code: number) => Promise<RCResult<T>>): Promise<RCResult<T>>;
|
|
3428
|
-
/**
|
|
3429
|
-
* 当结果为 ok 时,直接返回当前值;若结果为 fail 是,调用 onfail 等待处理,并返回处理结果
|
|
3430
|
-
* @param onfail
|
|
3431
|
-
* @description 回调函数返回的数据类型需与原类型保持一致
|
|
3432
|
-
* @hidden
|
|
3433
|
-
*/
|
|
3434
|
-
orSync(onfail: (code: number) => RCResult<T>): RCResult<T>;
|
|
3435
3420
|
/**
|
|
3436
3421
|
* 结果为 ok 时,对 data 进行数据转换
|
|
3437
3422
|
* @hidden
|
|
@@ -6122,6 +6107,33 @@ interface IGroupMessageDeliverStatus {
|
|
|
6122
6107
|
list: IGroupMessageDeliveredStatusInfo[];
|
|
6123
6108
|
}
|
|
6124
6109
|
|
|
6110
|
+
/**
|
|
6111
|
+
* 异步任务结果结构
|
|
6112
|
+
* @description 该结构即将废弃,请使用 {@link RCResult} 替代
|
|
6113
|
+
* @category Interface
|
|
6114
|
+
*/
|
|
6115
|
+
declare type IAsyncRes<T = void> = Pick<RCResult<T>, 'code' | 'data'> & {
|
|
6116
|
+
msg?: string;
|
|
6117
|
+
};
|
|
6118
|
+
/**
|
|
6119
|
+
* 异步任务结果定义
|
|
6120
|
+
* @description
|
|
6121
|
+
* 通过 `Promise.resolve` 来处理预期内的异常,进而通过 Uncatch Promise Error 暴露预期外的异常
|
|
6122
|
+
* @category Type
|
|
6123
|
+
*/
|
|
6124
|
+
declare type IPromiseResult<T = void> = Promise<IAsyncRes<T>>;
|
|
6125
|
+
|
|
6126
|
+
/**
|
|
6127
|
+
* 拓展方法定义,便于 electron-solution 实现时保持接口类型推导可用
|
|
6128
|
+
*/
|
|
6129
|
+
interface IExtraMethod {
|
|
6130
|
+
getHistoryMessagesByObjectNames(conversationType: ConversationType, targetId: string, sentTime: number, count: number, objectNames: string[], desc: 0 | 1, tag: string): Promise<IAsyncRes<{
|
|
6131
|
+
list: IReceivedMessage[];
|
|
6132
|
+
hasMore: boolean;
|
|
6133
|
+
}>>;
|
|
6134
|
+
updateMessageReceiptStatus(conersationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<IAsyncRes<boolean>>;
|
|
6135
|
+
}
|
|
6136
|
+
|
|
6125
6137
|
interface IServerAddressData {
|
|
6126
6138
|
addr: string;
|
|
6127
6139
|
protocol: EConnectProtocol;
|
|
@@ -6480,22 +6492,6 @@ interface INaviInfo {
|
|
|
6480
6492
|
};
|
|
6481
6493
|
}
|
|
6482
6494
|
|
|
6483
|
-
/**
|
|
6484
|
-
* 异步任务结果结构
|
|
6485
|
-
* @description 该结构即将废弃,请使用 {@link RCResult} 替代
|
|
6486
|
-
* @category Interface
|
|
6487
|
-
*/
|
|
6488
|
-
declare type IAsyncRes<T = void> = Pick<RCResult<T>, 'code' | 'data'> & {
|
|
6489
|
-
msg?: string;
|
|
6490
|
-
};
|
|
6491
|
-
/**
|
|
6492
|
-
* 异步任务结果定义
|
|
6493
|
-
* @description
|
|
6494
|
-
* 通过 `Promise.resolve` 来处理预期内的异常,进而通过 Uncatch Promise Error 暴露预期外的异常
|
|
6495
|
-
* @category Type
|
|
6496
|
-
*/
|
|
6497
|
-
declare type IPromiseResult<T = void> = Promise<IAsyncRes<T>>;
|
|
6498
|
-
|
|
6499
6495
|
/**
|
|
6500
6496
|
* 用户信息
|
|
6501
6497
|
* @since 5.10.1
|
|
@@ -7057,7 +7053,7 @@ interface IGroupApplicationInfo {
|
|
|
7057
7053
|
*/
|
|
7058
7054
|
type: GroupApplicationType;
|
|
7059
7055
|
/**
|
|
7060
|
-
*
|
|
7056
|
+
* 操作时间:时间戳精确到毫秒
|
|
7061
7057
|
*/
|
|
7062
7058
|
operationTime: number;
|
|
7063
7059
|
/**
|
|
@@ -7542,70 +7538,6 @@ declare type ReadReceiptInfoV5 = {
|
|
|
7542
7538
|
totalCount: number;
|
|
7543
7539
|
};
|
|
7544
7540
|
|
|
7545
|
-
/**
|
|
7546
|
-
* 时间范围
|
|
7547
|
-
*/
|
|
7548
|
-
declare type ITimeRange = {
|
|
7549
|
-
/** 开始时间,默认值为 0 */
|
|
7550
|
-
startTime?: number;
|
|
7551
|
-
/** 结束时间,默认值为当前系统时间 */
|
|
7552
|
-
endTime?: number;
|
|
7553
|
-
};
|
|
7554
|
-
/**
|
|
7555
|
-
* 会话过滤条件
|
|
7556
|
-
*/
|
|
7557
|
-
declare type IConversationFilter = {
|
|
7558
|
-
/** 会话类型列表,不传或长度为空则不限制 */
|
|
7559
|
-
conversationTypes?: ConversationType[];
|
|
7560
|
-
/** TargetId 列表,不传或长度为空则不限制 */
|
|
7561
|
-
targetIds?: string[];
|
|
7562
|
-
/** 单群聊组织 ID 列表,不传或长度为空则不限制 */
|
|
7563
|
-
channelIds?: string[];
|
|
7564
|
-
};
|
|
7565
|
-
/**
|
|
7566
|
-
* 消息过滤条件
|
|
7567
|
-
*/
|
|
7568
|
-
declare type IMessageFilter = {
|
|
7569
|
-
/** 发送者 ID 列表,不传或长度为空则不限制 */
|
|
7570
|
-
senderIds?: string[];
|
|
7571
|
-
/** 消息类型列表,不传或长度为空则不限制 */
|
|
7572
|
-
objectNames?: string[];
|
|
7573
|
-
};
|
|
7574
|
-
|
|
7575
|
-
declare type ISearchMessageParams = {
|
|
7576
|
-
/** 搜索关键字,如果为空,则搜索所有消息 */
|
|
7577
|
-
keyword?: string;
|
|
7578
|
-
/** 获取数量,有效值 [1,100],超出范围时将被强制修改为 100 */
|
|
7579
|
-
limit: number;
|
|
7580
|
-
/** 默认值 0 */
|
|
7581
|
-
offset?: number;
|
|
7582
|
-
/**
|
|
7583
|
-
* * 0 - 降序
|
|
7584
|
-
* * 1 - 升序
|
|
7585
|
-
*/
|
|
7586
|
-
order: 0 | 1;
|
|
7587
|
-
/** 查询的时间范围 */
|
|
7588
|
-
timeRange?: ITimeRange;
|
|
7589
|
-
/** 会话查询范围,默认全会话查询 */
|
|
7590
|
-
conversationFilter?: IConversationFilter;
|
|
7591
|
-
/** 消息查询范围 */
|
|
7592
|
-
messageFilter?: IMessageFilter;
|
|
7593
|
-
};
|
|
7594
|
-
declare type ISearchMessagesResult = {
|
|
7595
|
-
/**
|
|
7596
|
-
* 搜索到的消息列表
|
|
7597
|
-
*/
|
|
7598
|
-
messages: IReceivedMessage[];
|
|
7599
|
-
/**
|
|
7600
|
-
* 按 keyword 与会话条件匹配到的数量,当 keyword 或 conversationFilter 为空时,totalMatched 可能返回全部消息数量
|
|
7601
|
-
*/
|
|
7602
|
-
totalMatched: number;
|
|
7603
|
-
/**
|
|
7604
|
-
* 按匹配条件匹配到的数量
|
|
7605
|
-
*/
|
|
7606
|
-
conditionsMatched: number;
|
|
7607
|
-
};
|
|
7608
|
-
|
|
7609
7541
|
/**
|
|
7610
7542
|
* 进程内缓存数据
|
|
7611
7543
|
*/
|
|
@@ -7643,6 +7575,13 @@ interface IIPCMethods {
|
|
|
7643
7575
|
* 连接时间
|
|
7644
7576
|
*/
|
|
7645
7577
|
getConnectedTime(): number;
|
|
7578
|
+
/**
|
|
7579
|
+
* 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
|
|
7580
|
+
* 对于未实现的方法,接口响应 Unsupport 错误码
|
|
7581
|
+
* @param method
|
|
7582
|
+
* @param args
|
|
7583
|
+
*/
|
|
7584
|
+
callExtra(method: string | keyof IExtraMethod, ...args: any[]): Promise<IAsyncRes<unknown>>;
|
|
7646
7585
|
/**
|
|
7647
7586
|
* 获取历史消息
|
|
7648
7587
|
* @param conversationType
|
|
@@ -8045,10 +7984,25 @@ interface IIPCMethods {
|
|
|
8045
7984
|
searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
|
|
8046
7985
|
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
8047
7986
|
/**
|
|
8048
|
-
*
|
|
8049
|
-
* @param params
|
|
7987
|
+
* 按内容搜索会话内的消息
|
|
8050
7988
|
*/
|
|
8051
|
-
|
|
7989
|
+
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId: string): IPromiseResult<{
|
|
7990
|
+
messages: IReceivedMessage[];
|
|
7991
|
+
count: number;
|
|
7992
|
+
}>;
|
|
7993
|
+
/**
|
|
7994
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
7995
|
+
*/
|
|
7996
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
7997
|
+
messages: IReceivedMessage[];
|
|
7998
|
+
count: number;
|
|
7999
|
+
}>;
|
|
8000
|
+
/**
|
|
8001
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
8002
|
+
*/
|
|
8003
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
8004
|
+
messages: IReceivedMessage[];
|
|
8005
|
+
}>;
|
|
8052
8006
|
/**
|
|
8053
8007
|
* 获取会话下所有未读的 @ 消息
|
|
8054
8008
|
*/
|
|
@@ -8064,7 +8018,7 @@ interface IIPCMethods {
|
|
|
8064
8018
|
/**
|
|
8065
8019
|
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
8066
8020
|
*/
|
|
8067
|
-
updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string):
|
|
8021
|
+
updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): IPromiseResult<boolean>;
|
|
8068
8022
|
/**
|
|
8069
8023
|
* 删除时间戳前的未读数
|
|
8070
8024
|
*/
|
|
@@ -8080,7 +8034,7 @@ interface IIPCMethods {
|
|
|
8080
8034
|
* 获取所有群聊会话 @ 消息未读数
|
|
8081
8035
|
*/
|
|
8082
8036
|
getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
|
|
8083
|
-
|
|
8037
|
+
clearData(): Promise<IAsyncRes<boolean>>;
|
|
8084
8038
|
/**
|
|
8085
8039
|
* 获取运行时的系统信息,仅限 Electron 平台可用
|
|
8086
8040
|
*/
|
|
@@ -9579,15 +9533,6 @@ interface IAPIContextOption {
|
|
|
9579
9533
|
* 启动线程阻塞检查
|
|
9580
9534
|
*/
|
|
9581
9535
|
eventLoopBlockingCheck?: boolean;
|
|
9582
|
-
/**
|
|
9583
|
-
* 开启已读回执信息本地存储
|
|
9584
|
-
*/
|
|
9585
|
-
enableReadReceiptStorage: boolean;
|
|
9586
|
-
/**
|
|
9587
|
-
* 启动导航服务 V2,默认关闭,仅私有云有效
|
|
9588
|
-
* @since 5.22.0
|
|
9589
|
-
*/
|
|
9590
|
-
useNaviV2?: boolean;
|
|
9591
9536
|
}
|
|
9592
9537
|
interface IConnectResult {
|
|
9593
9538
|
/**
|
|
@@ -10301,6 +10246,13 @@ declare class APIContext {
|
|
|
10301
10246
|
* 根据超级群的 targetId 数组,获取每个超级群下所有频道会话信息
|
|
10302
10247
|
*/
|
|
10303
10248
|
getUltraGroupUnreadInfoList(targetIds: string[]): Promise<IAsyncRes<IUltraGroupUnreadInfo[]>>;
|
|
10249
|
+
/**
|
|
10250
|
+
* 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
|
|
10251
|
+
* 对于未实现的方法,接口响应 Unsupport 错误码
|
|
10252
|
+
* @param method 方法名
|
|
10253
|
+
* @param args
|
|
10254
|
+
*/
|
|
10255
|
+
callExtra(method: string | keyof IExtraMethod, ...args: any[]): Promise<IAsyncRes<unknown>>;
|
|
10304
10256
|
/**
|
|
10305
10257
|
* 获取运行时的系统信息,仅限 Electron 平台可用
|
|
10306
10258
|
*/
|
|
@@ -10423,7 +10375,7 @@ declare class APIContext {
|
|
|
10423
10375
|
/**
|
|
10424
10376
|
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
10425
10377
|
*/
|
|
10426
|
-
setMessageStatusToRead(
|
|
10378
|
+
setMessageStatusToRead(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<IAsyncRes<boolean>>;
|
|
10427
10379
|
/**
|
|
10428
10380
|
* 设置当前用户在线状态
|
|
10429
10381
|
* @deprecated 老版 V2 中用到
|
|
@@ -10442,21 +10394,26 @@ declare class APIContext {
|
|
|
10442
10394
|
status: string;
|
|
10443
10395
|
}>>;
|
|
10444
10396
|
searchConversationByContent(keyword: string, messageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
|
|
10445
|
-
searchConversationByContentWithAllChannel(keyword: string,
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
*/
|
|
10458
|
-
searchMessagesWithParams(params: ISearchMessageParams): Promise<RCResult<ISearchMessagesResult>>;
|
|
10397
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
10398
|
+
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
|
|
10399
|
+
messages: IReceivedMessage[];
|
|
10400
|
+
count: number;
|
|
10401
|
+
}>>;
|
|
10402
|
+
searchMessageByContentAndMessageType(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, messageTypes: string[], channelId?: string): IPromiseResult<{
|
|
10403
|
+
messages: IReceivedMessage[];
|
|
10404
|
+
count: number;
|
|
10405
|
+
}>;
|
|
10406
|
+
searchMessagesByUser(conversationType: ConversationType, targetId: string, userId: string, timestamp: number, count?: number, channelId?: string): Promise<IAsyncRes<{
|
|
10407
|
+
messages: IReceivedMessage[];
|
|
10408
|
+
}>>;
|
|
10459
10409
|
getMessagesByTimestamp(conversation: IConversationOption, timestamp: number, beforeCount: number, afterCount: number): IPromiseResult<IReceivedMessage[]>;
|
|
10410
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): Promise<IAsyncRes<{
|
|
10411
|
+
messages: IReceivedMessage[];
|
|
10412
|
+
count: number;
|
|
10413
|
+
}>>;
|
|
10414
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): Promise<IAsyncRes<{
|
|
10415
|
+
messages: IReceivedMessage[];
|
|
10416
|
+
}>>;
|
|
10460
10417
|
getUnreadMentionedMessages(conversationType: ConversationType, targetId: string, channelId?: string): IReceivedMessage[];
|
|
10461
10418
|
clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<ErrorCode>;
|
|
10462
10419
|
/**
|
|
@@ -10481,7 +10438,7 @@ declare class APIContext {
|
|
|
10481
10438
|
list: IReceivedMessage[];
|
|
10482
10439
|
hasMore: boolean;
|
|
10483
10440
|
}>>;
|
|
10484
|
-
|
|
10441
|
+
clearData(): Promise<IAsyncRes<boolean>>;
|
|
10485
10442
|
createLogger(id: string, type: LogType): BasicLogger;
|
|
10486
10443
|
getConversations(conversationList: IConversationOption[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
10487
10444
|
/**
|
|
@@ -10794,8 +10751,7 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
10794
10751
|
*/
|
|
10795
10752
|
declare type IChatModule = Pick<IIPCMethods, 'getConversationListByFilter' | 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent'>;
|
|
10796
10753
|
|
|
10797
|
-
declare
|
|
10798
|
-
declare abstract class BasicEngine implements IIPCMethodsInEngine {
|
|
10754
|
+
declare abstract class BasicEngine {
|
|
10799
10755
|
protected readonly rtcCodec: Codec<InnerRTCKeyMaps>;
|
|
10800
10756
|
protected readonly _watcher: IEngineWatcher;
|
|
10801
10757
|
protected readonly _options: IAPIContextOption;
|
|
@@ -10837,6 +10793,13 @@ declare abstract class BasicEngine implements IIPCMethodsInEngine {
|
|
|
10837
10793
|
* 获取 engine 包内部 logger 工具
|
|
10838
10794
|
*/
|
|
10839
10795
|
getInnerLogger(): BasicLogger;
|
|
10796
|
+
/**
|
|
10797
|
+
* 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
|
|
10798
|
+
* 对于未实现的方法,接口响应 Unsupport 错误码
|
|
10799
|
+
* @param method
|
|
10800
|
+
* @param args
|
|
10801
|
+
*/
|
|
10802
|
+
abstract callExtra(method: string | keyof IExtraMethod, ...args: any[]): Promise<IAsyncRes<unknown>>;
|
|
10840
10803
|
/**
|
|
10841
10804
|
* 建立连接
|
|
10842
10805
|
* @param token
|
|
@@ -11337,8 +11300,37 @@ declare abstract class BasicEngine implements IIPCMethodsInEngine {
|
|
|
11337
11300
|
/**
|
|
11338
11301
|
* 通过关键字搜索所有会话
|
|
11339
11302
|
*/
|
|
11340
|
-
abstract searchConversationByContentWithAllChannel(keyword: string,
|
|
11341
|
-
|
|
11303
|
+
abstract searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
11304
|
+
/**
|
|
11305
|
+
* 按内容搜索会话内的消息
|
|
11306
|
+
*/
|
|
11307
|
+
abstract searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId: string): IPromiseResult<{
|
|
11308
|
+
messages: IReceivedMessage[];
|
|
11309
|
+
count: number;
|
|
11310
|
+
}>;
|
|
11311
|
+
abstract searchMessageByContentAndMessageType(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, messageTypes: string[], channelId?: string): IPromiseResult<{
|
|
11312
|
+
messages: IReceivedMessage[];
|
|
11313
|
+
count: number;
|
|
11314
|
+
}>;
|
|
11315
|
+
/**
|
|
11316
|
+
* 按用户 ID 搜索会话内的消息
|
|
11317
|
+
*/
|
|
11318
|
+
abstract searchMessagesByUser(conversationType: ConversationType, targetId: string, userId: string, timestamp: number, count: number, channelId: string): IPromiseResult<{
|
|
11319
|
+
messages: IReceivedMessage[];
|
|
11320
|
+
}>;
|
|
11321
|
+
/**
|
|
11322
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
11323
|
+
*/
|
|
11324
|
+
abstract searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
11325
|
+
messages: IReceivedMessage[];
|
|
11326
|
+
count: number;
|
|
11327
|
+
}>;
|
|
11328
|
+
/**
|
|
11329
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
11330
|
+
*/
|
|
11331
|
+
abstract searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
11332
|
+
messages: IReceivedMessage[];
|
|
11333
|
+
}>;
|
|
11342
11334
|
/**
|
|
11343
11335
|
* 获取会话下所有未读的 @ 消息
|
|
11344
11336
|
*/
|
|
@@ -11354,7 +11346,7 @@ declare abstract class BasicEngine implements IIPCMethodsInEngine {
|
|
|
11354
11346
|
/**
|
|
11355
11347
|
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
11356
11348
|
*/
|
|
11357
|
-
abstract updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string):
|
|
11349
|
+
abstract updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): IPromiseResult<boolean>;
|
|
11358
11350
|
/**
|
|
11359
11351
|
* 删除时间戳前的未读数
|
|
11360
11352
|
*/
|
|
@@ -11398,7 +11390,7 @@ declare abstract class BasicEngine implements IIPCMethodsInEngine {
|
|
|
11398
11390
|
* 获取所有群聊会话 @ 消息未读数
|
|
11399
11391
|
*/
|
|
11400
11392
|
abstract getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
|
|
11401
|
-
abstract
|
|
11393
|
+
abstract clearData(): Promise<IAsyncRes<boolean>>;
|
|
11402
11394
|
/**
|
|
11403
11395
|
* 超级群获取指定会话未读 @ 消息列表
|
|
11404
11396
|
*/
|
|
@@ -11921,4 +11913,4 @@ declare class AppStorage {
|
|
|
11921
11913
|
}): void;
|
|
11922
11914
|
}
|
|
11923
11915
|
|
|
11924
|
-
export { APIContext, AbsCodec, AppStorage, AreaCode, AssertRules, BasicEngine, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationListFilter, ConversationListFilterType, ConversationType, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GetAllConversationListFilterParams, GetConversationListByPageIndexParams, GetConversationListByTimestampParams, GetConversationListResponse, GetTopConversationListParams, GetUnreadConversationListParams, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatModule, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomModule, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICombineV2MessageContent, ICombinedMessage, IConnectionStatusListener,
|
|
11916
|
+
export { APIContext, AbsCodec, AppStorage, AreaCode, AssertRules, BasicEngine, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationListFilter, ConversationListFilterType, ConversationType, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GetAllConversationListFilterParams, GetConversationListByPageIndexParams, GetConversationListByTimestampParams, GetConversationListResponse, GetTopConversationListParams, GetUnreadConversationListParams, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatModule, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomModule, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICombineV2MessageContent, ICombinedMessage, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IConversationUnreadCount, ICreateGroupFail, IDataHostingModule, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExtraMethod, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHarmonyOSPushConfig, IIPCMethods, IInsertMessage, IInsertMsgOptions, ILocalTagStatus, ILogData, ILogger, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRuntime, ISendMsgOptions, IServerGroupBaseInfo, IStorage, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IWatcher, IiOSPushConfig, InnerRTCKeyMaps, InterruptionLevel, ItypingStateListener, KVString, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, PlatformInfo, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, SSEModule, SentStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, Validator, ValidatorManage, VersionManage, assert, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedArray, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversation, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidNotificationLevel, isValidTargetId, logger, map, notEmptyArray, notEmptyObject, notEmptyString, ok, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };
|