@rongcloud/engine 4.6.0-beem.1 → 4.6.0-beem.10
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/dist/index.d.ts +142 -49
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCEngine - v4.6.0-beem.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v4.6.0-beem.10
|
|
3
|
+
* CommitId - 380698dd4b968e43299324a459a97dd44ba27b0b
|
|
4
|
+
* Mon Jun 06 2022 13:04:41 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -908,13 +908,17 @@ declare enum ErrorCode {
|
|
|
908
908
|
*/
|
|
909
909
|
RC_CONN_USER_BLOCKED = 31009,
|
|
910
910
|
/**
|
|
911
|
-
* Disconnect
|
|
911
|
+
* Disconnect,该用户其他设备登录,本端被踢下线;
|
|
912
912
|
*/
|
|
913
913
|
RC_DISCONN_KICK = 31010,
|
|
914
914
|
/**
|
|
915
|
-
* Disconnect
|
|
915
|
+
* Disconnect,连接被服务端主动关闭;
|
|
916
916
|
*/
|
|
917
917
|
RC_DISCONN_EXCEPTION = 31011,
|
|
918
|
+
/**
|
|
919
|
+
* 开启禁止把已在线客户端踢下线开关后,该错误码标识已有同类型端在线,禁止链接;
|
|
920
|
+
*/
|
|
921
|
+
RC_DISCONN_SAME_CLIENT_ON_LINE = 31023,
|
|
918
922
|
/**
|
|
919
923
|
* app 验证Token 验证不通过。所有内部超时,访问失败,返回给客户端sdk都是验证不通过,由服务端日志去看具体是那种失败。
|
|
920
924
|
*/
|
|
@@ -1204,7 +1208,19 @@ declare enum RTCMode {
|
|
|
1204
1208
|
/**
|
|
1205
1209
|
* 直播模式
|
|
1206
1210
|
*/
|
|
1207
|
-
LIVE = 2
|
|
1211
|
+
LIVE = 2,
|
|
1212
|
+
/**
|
|
1213
|
+
* sip呼叫
|
|
1214
|
+
*/
|
|
1215
|
+
SIP = 4,
|
|
1216
|
+
/**
|
|
1217
|
+
* 呼叫模式.包括单呼和群呼
|
|
1218
|
+
*/
|
|
1219
|
+
CALL = 5,
|
|
1220
|
+
/**
|
|
1221
|
+
* 会议
|
|
1222
|
+
*/
|
|
1223
|
+
MEETING = 6
|
|
1208
1224
|
}
|
|
1209
1225
|
/**
|
|
1210
1226
|
* 直播类型
|
|
@@ -1617,6 +1633,10 @@ declare enum ConnectionStatus {
|
|
|
1617
1633
|
* appkey 不正确
|
|
1618
1634
|
*/
|
|
1619
1635
|
APPKEY_IS_FAKE = 20,
|
|
1636
|
+
/**
|
|
1637
|
+
* 其他端登录,本端禁止连接和重连
|
|
1638
|
+
*/
|
|
1639
|
+
FORBID_RECONNECT_BY_OTHER_SAME_CLIENT = 31023,
|
|
1620
1640
|
/**
|
|
1621
1641
|
* 互踢次数过多(`count > 5`),此时可能出现:在其它他设备登陆有 reconnect 逻辑
|
|
1622
1642
|
*/
|
|
@@ -2321,6 +2341,7 @@ interface IJoinRTCRoomData extends IRTCUsers {
|
|
|
2321
2341
|
value: string;
|
|
2322
2342
|
}[];
|
|
2323
2343
|
kvEntries: IServerRTCRoomEntry[];
|
|
2344
|
+
offlineKickTime: number;
|
|
2324
2345
|
}
|
|
2325
2346
|
|
|
2326
2347
|
/**
|
|
@@ -2881,6 +2902,10 @@ declare enum MessageType {
|
|
|
2881
2902
|
* 消息送达报告,仅单聊
|
|
2882
2903
|
*/
|
|
2883
2904
|
DELIVERED = "RC:Delivered",
|
|
2905
|
+
/**
|
|
2906
|
+
* 消息送达状态报告,仅群聊
|
|
2907
|
+
*/
|
|
2908
|
+
DELIVERED_MSG = "RC:DRMsg",
|
|
2884
2909
|
CHATROOM_JOIN = "RC:ChrmJoinNtf",
|
|
2885
2910
|
/**
|
|
2886
2911
|
* 用户退出聊天室
|
|
@@ -3243,6 +3268,14 @@ interface IMessageDeliver {
|
|
|
3243
3268
|
conversationType: ConversationType;
|
|
3244
3269
|
targetId: string;
|
|
3245
3270
|
}
|
|
3271
|
+
interface IGroupMessageDeliveredStatusInfo {
|
|
3272
|
+
MessageUId: string;
|
|
3273
|
+
deliveryCount: number;
|
|
3274
|
+
}
|
|
3275
|
+
interface IGroupMessageDeliverStatus {
|
|
3276
|
+
totalCount: number;
|
|
3277
|
+
list: IGroupMessageDeliveredStatusInfo[];
|
|
3278
|
+
}
|
|
3246
3279
|
|
|
3247
3280
|
/**
|
|
3248
3281
|
* engine 基本接口定义,用于约束 Electron 下主进程、渲染进程、JSEngine 的编码一致性
|
|
@@ -3252,8 +3285,17 @@ interface IEngine {
|
|
|
3252
3285
|
* 建立连接
|
|
3253
3286
|
* @param token
|
|
3254
3287
|
* @param naviInfo
|
|
3288
|
+
* @param reconnectKickEnable
|
|
3289
|
+
*/
|
|
3290
|
+
connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
|
|
3291
|
+
/**
|
|
3292
|
+
* 获取导航信息
|
|
3293
|
+
* @param uris
|
|
3294
|
+
* @param appkey
|
|
3295
|
+
* @param token
|
|
3296
|
+
* @param checkCA
|
|
3255
3297
|
*/
|
|
3256
|
-
|
|
3298
|
+
getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
3257
3299
|
/**
|
|
3258
3300
|
* 上报版本信息
|
|
3259
3301
|
* @param version
|
|
@@ -3589,6 +3631,8 @@ interface IEngine {
|
|
|
3589
3631
|
* 获取当前 userId
|
|
3590
3632
|
*/
|
|
3591
3633
|
getCurrentUserId(): string;
|
|
3634
|
+
getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
3635
|
+
getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
3592
3636
|
/**
|
|
3593
3637
|
* 设置用户在线状态监听器
|
|
3594
3638
|
*/
|
|
@@ -3658,16 +3702,33 @@ interface IEngine {
|
|
|
3658
3702
|
*/
|
|
3659
3703
|
setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
|
|
3660
3704
|
/**
|
|
3661
|
-
*
|
|
3662
|
-
|
|
3705
|
+
* 通过关键字与 channelId 搜索所有会话
|
|
3706
|
+
*/
|
|
3663
3707
|
searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3664
3708
|
/**
|
|
3665
|
-
*
|
|
3666
|
-
|
|
3709
|
+
* 通过关键字搜索所有会话
|
|
3710
|
+
*/
|
|
3711
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3712
|
+
/**
|
|
3713
|
+
* 按内容搜索指定会话内的消息
|
|
3714
|
+
*/
|
|
3667
3715
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId: string): IPromiseResult<{
|
|
3668
3716
|
messages: IReceivedMessage[];
|
|
3669
3717
|
count: number;
|
|
3670
3718
|
}>;
|
|
3719
|
+
/**
|
|
3720
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
3721
|
+
*/
|
|
3722
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
3723
|
+
messages: IReceivedMessage[];
|
|
3724
|
+
count: number;
|
|
3725
|
+
}>;
|
|
3726
|
+
/**
|
|
3727
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
3728
|
+
*/
|
|
3729
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
3730
|
+
messages: IReceivedMessage[];
|
|
3731
|
+
}>;
|
|
3671
3732
|
/**
|
|
3672
3733
|
* 获取会话下所有未读的 @ 消息
|
|
3673
3734
|
*/
|
|
@@ -3798,6 +3859,7 @@ declare type ITagListener = () => void;
|
|
|
3798
3859
|
declare type IConversationTagListener = () => void;
|
|
3799
3860
|
declare type ItypingStateListener = (data: ITypingMessage[]) => void;
|
|
3800
3861
|
declare type IMessageDeliveredListener = (data: IMessageDeliver[]) => void;
|
|
3862
|
+
declare type IGroupMessageDeliveredStatusListener = (data: IGroupMessageDeliverStatus) => void;
|
|
3801
3863
|
declare type IMessageBlockedListener = (data: IBlockedMessageInfo) => void;
|
|
3802
3864
|
interface ISendExMsgOptions {
|
|
3803
3865
|
channelId: string;
|
|
@@ -3862,6 +3924,10 @@ interface IWatcher {
|
|
|
3862
3924
|
* 单聊消息送达通知
|
|
3863
3925
|
*/
|
|
3864
3926
|
messageDelivered?: IMessageDeliveredListener;
|
|
3927
|
+
/**
|
|
3928
|
+
* 群聊消息送达状态通知
|
|
3929
|
+
*/
|
|
3930
|
+
groupMessageDeliveredStatus?: IGroupMessageDeliveredStatusListener;
|
|
3865
3931
|
messageBlocked?: IMessageBlockedListener;
|
|
3866
3932
|
}
|
|
3867
3933
|
interface IPluginGenerator<API, InitOption> {
|
|
@@ -4018,6 +4084,7 @@ declare class APIContext {
|
|
|
4018
4084
|
private _typingStatusListener;
|
|
4019
4085
|
private _pullFinishedListener;
|
|
4020
4086
|
private _messageDeliveredListerer;
|
|
4087
|
+
private _groupMessageDeliveredStatusListerer;
|
|
4021
4088
|
private _MessageBlockedListener;
|
|
4022
4089
|
private _callInfoListener;
|
|
4023
4090
|
/**
|
|
@@ -4054,14 +4121,22 @@ declare class APIContext {
|
|
|
4054
4121
|
* 建立连接,连接失败则抛出异常,连接成功后返回用户 userId,否则返回相应的错误码
|
|
4055
4122
|
* @param token
|
|
4056
4123
|
* @param refreshNavi 是否需要重新请求导航,当值为 `false` 时,优先使用有效缓存导航,若缓存失效则重新获取导航
|
|
4124
|
+
* @param reconnectKickEnable 设置断线重连时是否踢出当前正在重连的设备 (仅 Electron 环境有效)
|
|
4125
|
+
* 同一个账号在一台新设备上登录的时候,会把这个账号在之前登录的设备上踢出。
|
|
4126
|
+
由于 SDK 有断线重连功能,存在下面情况。
|
|
4127
|
+
用户在 A 设备登录,A 设备网络不稳定,没有连接成功,SDK 启动重连机制。
|
|
4128
|
+
用户此时又在 B 设备登录,B 设备连接成功。
|
|
4129
|
+
A 设备网络稳定之后,用户在 A 设备连接成功,B 设备被踢出。
|
|
4130
|
+
这个字段就是为这种情况加的。
|
|
4131
|
+
设置 reconnectKickEnable 为 true 时,SDK 重连的时候发现此时已有别的设备连接成功,不再强行踢出已有设备,而是踢出重连设备。
|
|
4057
4132
|
*/
|
|
4058
|
-
connect(token: string, refreshNavi?: boolean): Promise<IConnectResult>;
|
|
4133
|
+
connect(token: string, refreshNavi?: boolean, reconnectKickEnable?: boolean): Promise<IConnectResult>;
|
|
4059
4134
|
/**
|
|
4060
4135
|
* 拉取实时配置 web 端需更新 voipCall 字段
|
|
4061
4136
|
*/
|
|
4062
4137
|
private _pullUserSettings;
|
|
4063
4138
|
disconnect(): Promise<void>;
|
|
4064
|
-
reconnect(): Promise<IConnectResult>;
|
|
4139
|
+
reconnect(reconnectKickEnable?: boolean): Promise<IConnectResult>;
|
|
4065
4140
|
private _getTokenWithoutNavi;
|
|
4066
4141
|
/**
|
|
4067
4142
|
* 获取当前缓存的导航数据
|
|
@@ -4453,10 +4528,18 @@ declare class APIContext {
|
|
|
4453
4528
|
status: string;
|
|
4454
4529
|
}>>;
|
|
4455
4530
|
searchConversationByContent(keyword: string, customMessageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4531
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4456
4532
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
|
|
4457
4533
|
messages: IReceivedMessage[];
|
|
4458
4534
|
count: number;
|
|
4459
4535
|
}>>;
|
|
4536
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): Promise<IAsyncRes<{
|
|
4537
|
+
messages: IReceivedMessage[];
|
|
4538
|
+
count: number;
|
|
4539
|
+
}>>;
|
|
4540
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): Promise<IAsyncRes<{
|
|
4541
|
+
messages: IReceivedMessage[];
|
|
4542
|
+
}>>;
|
|
4460
4543
|
getUnreadMentionedMessages(conversationType: ConversationType, targetId: string, channelId?: string): IReceivedMessage[];
|
|
4461
4544
|
clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<ErrorCode>;
|
|
4462
4545
|
/**
|
|
@@ -4479,6 +4562,8 @@ declare class APIContext {
|
|
|
4479
4562
|
key: string;
|
|
4480
4563
|
value: string;
|
|
4481
4564
|
}>;
|
|
4565
|
+
getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4566
|
+
getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4482
4567
|
/**
|
|
4483
4568
|
* 加入房间
|
|
4484
4569
|
* @param roomId
|
|
@@ -4628,34 +4713,6 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
4628
4713
|
rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): IPromiseResult<IJoinRTCRoomData>;
|
|
4629
4714
|
}
|
|
4630
4715
|
|
|
4631
|
-
declare abstract class ANavi {
|
|
4632
|
-
protected readonly _runtime: IRuntime;
|
|
4633
|
-
protected readonly _options: IAPIContextOption;
|
|
4634
|
-
protected readonly _apiVersion: string;
|
|
4635
|
-
protected readonly _appkey: string;
|
|
4636
|
-
protected _naviInfo: INaviInfo | null;
|
|
4637
|
-
constructor(_runtime: IRuntime, _options: IAPIContextOption);
|
|
4638
|
-
/**
|
|
4639
|
-
* @param uris
|
|
4640
|
-
* @param appkey
|
|
4641
|
-
* @param token
|
|
4642
|
-
*/
|
|
4643
|
-
protected abstract _reqNavi(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4644
|
-
/**
|
|
4645
|
-
* 获取导航数据
|
|
4646
|
-
* @param token
|
|
4647
|
-
* @param dynamicUris token 携带的动态导航地址
|
|
4648
|
-
* @param force 是否强制重新获取并清空缓存数据
|
|
4649
|
-
*/
|
|
4650
|
-
getInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4651
|
-
protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
|
|
4652
|
-
getInfoFromCache(token: string): INaviInfo | null;
|
|
4653
|
-
/**
|
|
4654
|
-
* 清空导航数据:内存数据、缓存数据
|
|
4655
|
-
*/
|
|
4656
|
-
private _clear;
|
|
4657
|
-
}
|
|
4658
|
-
|
|
4659
4716
|
interface IEngineWatcher {
|
|
4660
4717
|
/**
|
|
4661
4718
|
* @param message 消息
|
|
@@ -4675,6 +4732,7 @@ interface IEngineWatcher {
|
|
|
4675
4732
|
onRTCDataChange: (data: IServerRTCRoomEntry[], roomId?: string) => void;
|
|
4676
4733
|
pullFinished: () => void;
|
|
4677
4734
|
messageDelivered: (data: IMessageDeliver[]) => void;
|
|
4735
|
+
groupMessageDeliveredStatus: (data: IGroupMessageDeliverStatus) => void;
|
|
4678
4736
|
callInfo: (data: string) => void;
|
|
4679
4737
|
}
|
|
4680
4738
|
/**
|
|
@@ -4684,23 +4742,38 @@ declare abstract class AEngine implements IEngine {
|
|
|
4684
4742
|
readonly runtime: IRuntime;
|
|
4685
4743
|
protected readonly _watcher: IEngineWatcher;
|
|
4686
4744
|
protected readonly _options: IAPIContextOption;
|
|
4687
|
-
/**
|
|
4688
|
-
* 当前用户 Id
|
|
4689
|
-
*/
|
|
4690
|
-
currentUserId: string;
|
|
4691
4745
|
/**
|
|
4692
4746
|
* 连接时间
|
|
4693
4747
|
*/
|
|
4694
4748
|
abstract getConnectedTime(): number;
|
|
4695
|
-
readonly navi: ANavi;
|
|
4696
4749
|
protected readonly _appkey: string;
|
|
4697
4750
|
protected readonly _apiVer: string;
|
|
4751
|
+
protected readonly _apiVersion: string;
|
|
4752
|
+
protected _naviInfo: INaviInfo | null;
|
|
4698
4753
|
/**
|
|
4699
4754
|
* 引擎初始化
|
|
4700
4755
|
* @param _appkey
|
|
4701
4756
|
*/
|
|
4702
4757
|
constructor(runtime: IRuntime, _watcher: IEngineWatcher, _options: IAPIContextOption);
|
|
4703
|
-
|
|
4758
|
+
/**
|
|
4759
|
+
* @param uris
|
|
4760
|
+
* @param appkey
|
|
4761
|
+
* @param token
|
|
4762
|
+
*/
|
|
4763
|
+
abstract getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4764
|
+
/**
|
|
4765
|
+
* 获取导航数据
|
|
4766
|
+
* @param token
|
|
4767
|
+
* @param dynamicUris token 携带的动态导航地址
|
|
4768
|
+
* @param force 是否强制重新获取并清空缓存数据
|
|
4769
|
+
*/
|
|
4770
|
+
getInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4771
|
+
protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
|
|
4772
|
+
getInfoFromCache(token: string): INaviInfo | null;
|
|
4773
|
+
/**
|
|
4774
|
+
* 清空导航数据:内存数据、缓存数据
|
|
4775
|
+
*/
|
|
4776
|
+
private _clear;
|
|
4704
4777
|
/**
|
|
4705
4778
|
* 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
|
|
4706
4779
|
* 对于未实现的方法,接口响应 Unsupport 错误码
|
|
@@ -4712,8 +4785,9 @@ declare abstract class AEngine implements IEngine {
|
|
|
4712
4785
|
* 建立连接
|
|
4713
4786
|
* @param token
|
|
4714
4787
|
* @param naviInfo
|
|
4788
|
+
* @param reconnectKickEnable
|
|
4715
4789
|
*/
|
|
4716
|
-
abstract connect(token: string, naviInfo: INaviInfo): Promise<ErrorCode>;
|
|
4790
|
+
abstract connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
|
|
4717
4791
|
/**
|
|
4718
4792
|
* 发送SDK版本
|
|
4719
4793
|
* @param versionInfo
|
|
@@ -5063,6 +5137,8 @@ declare abstract class AEngine implements IEngine {
|
|
|
5063
5137
|
* 获取当前 userId
|
|
5064
5138
|
*/
|
|
5065
5139
|
abstract getCurrentUserId(): string;
|
|
5140
|
+
abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
5141
|
+
abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
5066
5142
|
/**
|
|
5067
5143
|
* 设置用户在线状态监听器
|
|
5068
5144
|
*/
|
|
@@ -5135,6 +5211,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5135
5211
|
* 通过关键字搜索会话
|
|
5136
5212
|
*/
|
|
5137
5213
|
abstract searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5214
|
+
/**
|
|
5215
|
+
* 通过关键字搜索所有会话
|
|
5216
|
+
*/
|
|
5217
|
+
abstract searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5138
5218
|
/**
|
|
5139
5219
|
* 按内容搜索会话内的消息
|
|
5140
5220
|
*/
|
|
@@ -5142,6 +5222,19 @@ declare abstract class AEngine implements IEngine {
|
|
|
5142
5222
|
messages: IReceivedMessage[];
|
|
5143
5223
|
count: number;
|
|
5144
5224
|
}>;
|
|
5225
|
+
/**
|
|
5226
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
5227
|
+
*/
|
|
5228
|
+
abstract searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
5229
|
+
messages: IReceivedMessage[];
|
|
5230
|
+
count: number;
|
|
5231
|
+
}>;
|
|
5232
|
+
/**
|
|
5233
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
5234
|
+
*/
|
|
5235
|
+
abstract searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
5236
|
+
messages: IReceivedMessage[];
|
|
5237
|
+
}>;
|
|
5145
5238
|
/**
|
|
5146
5239
|
* 获取会话下所有未读的 @ 消息
|
|
5147
5240
|
*/
|
|
@@ -5685,4 +5778,4 @@ declare enum CONNECTION_TYPE {
|
|
|
5685
5778
|
*/
|
|
5686
5779
|
declare const version: string;
|
|
5687
5780
|
|
|
5688
|
-
export { AEngine,
|
|
5781
|
+
export { AEngine, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBlockedMessageInfo, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IDeliveredUser, IEngine, IEngineWatcher, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusListener, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageBlockedListener, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntriesOption, IRemoveChatRoomEntryOption, IRequest, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|