@rongcloud/engine 5.3.3 → 5.4.0-enterprise.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.d.ts +398 -307
- package/index.esm.js +6 -6
- package/index.js +6 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -962,7 +962,7 @@ interface ISendMsgOptions {
|
|
|
962
962
|
interface IInsertMsgOptions {
|
|
963
963
|
senderUserId: string;
|
|
964
964
|
messageType: string;
|
|
965
|
-
content:
|
|
965
|
+
content: any;
|
|
966
966
|
messageDirection: number;
|
|
967
967
|
readStatus?: number;
|
|
968
968
|
sentStatus?: number;
|
|
@@ -1190,9 +1190,9 @@ declare enum ErrorCode {
|
|
|
1190
1190
|
*/
|
|
1191
1191
|
CHATROOM_KEY_NOT_EXIST = 23427,
|
|
1192
1192
|
/*!
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1193
|
+
聊天室设置 KV 失败,出现在两人或者多端同时操作一个 kv。
|
|
1194
|
+
如果出现该错误,为避免和其他端同时操作,请延时一定时间再试
|
|
1195
|
+
*/
|
|
1196
1196
|
CHATROOM_KV_SET_ERROR = 23431,
|
|
1197
1197
|
/**
|
|
1198
1198
|
* 敏感词屏蔽
|
|
@@ -1327,6 +1327,10 @@ declare enum ErrorCode {
|
|
|
1327
1327
|
* Disconnect,由服务器返回,比如用户互踢。
|
|
1328
1328
|
*/
|
|
1329
1329
|
RC_DISCONN_EXCEPTION = 31011,
|
|
1330
|
+
/**
|
|
1331
|
+
* 开启禁止把已在线客户端踢下线开关后,该错误码标识已有同类型端在线,禁止链接;
|
|
1332
|
+
*/
|
|
1333
|
+
RC_DISCONN_SAME_CLIENT_ON_LINE = 31023,
|
|
1330
1334
|
/**
|
|
1331
1335
|
* app 验证Token 验证不通过。所有内部超时,访问失败,返回给客户端sdk都是验证不通过,由服务端日志去看具体是那种失败。
|
|
1332
1336
|
*/
|
|
@@ -1416,11 +1420,11 @@ declare enum ErrorCode {
|
|
|
1416
1420
|
CONVER_CLEAR_ERROR = 34007,
|
|
1417
1421
|
/**
|
|
1418
1422
|
* 扩展存储 key value 超出限制 (错误码与移动端对齐)
|
|
1419
|
-
|
|
1423
|
+
*/
|
|
1420
1424
|
EXPANSION_LIMIT_EXCEET = 34010,
|
|
1421
1425
|
/**
|
|
1422
1426
|
* 消息不支持扩展,原消息 canIncludeExpansion 值为 false (错误码与移动端对齐)
|
|
1423
|
-
|
|
1427
|
+
*/
|
|
1424
1428
|
MESSAGE_KV_NOT_SUPPORT = 34008,
|
|
1425
1429
|
CLEAR_HIS_TIME_ERROR = 34011,
|
|
1426
1430
|
/**
|
|
@@ -2272,6 +2276,10 @@ interface IChatroomEntries {
|
|
|
2272
2276
|
* 用户退出聊天室时是否清除此属性
|
|
2273
2277
|
*/
|
|
2274
2278
|
isAutoDelete?: boolean;
|
|
2279
|
+
/**
|
|
2280
|
+
* 是否强制覆盖
|
|
2281
|
+
*/
|
|
2282
|
+
isForce?: boolean;
|
|
2275
2283
|
}
|
|
2276
2284
|
|
|
2277
2285
|
interface IUploadAuth {
|
|
@@ -2679,6 +2687,10 @@ declare enum ConnectionStatus {
|
|
|
2679
2687
|
* appkey 不正确
|
|
2680
2688
|
*/
|
|
2681
2689
|
APPKEY_IS_FAKE = 20,
|
|
2690
|
+
/**
|
|
2691
|
+
* 其他端登录,本端禁止连接和重连
|
|
2692
|
+
*/
|
|
2693
|
+
FORBID_RECONNECT_BY_OTHER_SAME_CLIENT = 31023,
|
|
2682
2694
|
/**
|
|
2683
2695
|
* 互踢次数过多(`count > 5`),此时可能出现:在其它他设备登陆有 reconnect 逻辑
|
|
2684
2696
|
*/
|
|
@@ -2933,44 +2945,83 @@ interface IMetionedData {
|
|
|
2933
2945
|
}
|
|
2934
2946
|
|
|
2935
2947
|
declare enum LogLevel {
|
|
2936
|
-
/**
|
|
2937
|
-
* 等同于 `LogLevel.DEBUG`
|
|
2938
|
-
*/
|
|
2939
2948
|
LOG = 0,
|
|
2940
|
-
/**
|
|
2941
|
-
* 0
|
|
2942
|
-
*/
|
|
2943
2949
|
DEBUG = 0,
|
|
2944
|
-
/**
|
|
2945
|
-
* 1
|
|
2946
|
-
*/
|
|
2947
2950
|
INFO = 1,
|
|
2948
|
-
/**
|
|
2949
|
-
* 2
|
|
2950
|
-
*/
|
|
2951
2951
|
WARN = 2,
|
|
2952
|
-
/**
|
|
2953
|
-
* 3
|
|
2954
|
-
*/
|
|
2955
2952
|
ERROR = 3,
|
|
2956
|
-
/**
|
|
2957
|
-
* 4
|
|
2958
|
-
*/
|
|
2959
2953
|
FATAL = 4,
|
|
2960
|
-
/**
|
|
2961
|
-
* 统计日志类型
|
|
2962
|
-
*/
|
|
2963
2954
|
STATISTICS = 6,
|
|
2964
|
-
/**
|
|
2965
|
-
* 不展示任何日志
|
|
2966
|
-
*/
|
|
2967
2955
|
NONE = 1000
|
|
2968
2956
|
}
|
|
2969
|
-
|
|
2970
|
-
declare enum LogType {
|
|
2957
|
+
declare enum LogSource {
|
|
2971
2958
|
IM = "IM",
|
|
2972
2959
|
RTC = "RTC"
|
|
2973
2960
|
}
|
|
2961
|
+
declare enum LogTagId {
|
|
2962
|
+
L_IMSDK_VER_O = "L-imsdk_ver-O",
|
|
2963
|
+
A_INIT_O = "A-init-O",
|
|
2964
|
+
L_INIT_O = "L-init-O",
|
|
2965
|
+
P_INIT_O = "P-init-O",
|
|
2966
|
+
A_CONNECT_T = "A-connect-T",
|
|
2967
|
+
A_CONNECT_R = "A-connect-R",
|
|
2968
|
+
A_CONNECT_S = "A-connect-S",
|
|
2969
|
+
A_DISCONNECT_O = "A-disconnect-O",
|
|
2970
|
+
A_RECONNECT_T = "A-reconnect-T",
|
|
2971
|
+
A_RECONNECT_R = "A_RECONNECT_R",
|
|
2972
|
+
L_CONNECT_T = "L-connect-T",
|
|
2973
|
+
L_CONNECT_R = "L-connect-R",
|
|
2974
|
+
L_CONNECT_S = "L-connect-S",
|
|
2975
|
+
P_CONNECT_O = "P-connect-O",
|
|
2976
|
+
P_CONNECT_S = "P-connect-S",
|
|
2977
|
+
A_SEND_MSG_T = "A-send_msg-T",
|
|
2978
|
+
A_SEND_MSG_R = "A-send_msg-R",
|
|
2979
|
+
P_SEND_MSG_T = "P-send_msg-T",
|
|
2980
|
+
P_SEND_MSG_R = "P-send_msg-R",
|
|
2981
|
+
L_SEND_MSG_T = "L-send_msg-T",
|
|
2982
|
+
L_SEND_MSG_R = "L-send_msg-R",
|
|
2983
|
+
L_PULL_MSG_T = "L-pull_msg-T",
|
|
2984
|
+
L_PULL_MSG_R = "L-pull_msg-R",
|
|
2985
|
+
L_PULL_ULTRA_MSG_T = "L-pull_ultra_msg-T",
|
|
2986
|
+
L_PULL_ULTRA_MSG_R = "L-pull_ultra_msg-R",
|
|
2987
|
+
L_PULL_CHATROOM_KV_T = "L-pull_chatroom_kv-T",
|
|
2988
|
+
L_PULL_CHATROOM_KV_R = "L-pull_chatroom_kv-R",
|
|
2989
|
+
L_PULL_CHATROOM_MSG_T = "L-pull_chatroom_msg-T",
|
|
2990
|
+
L_PULL_CHATROOM_MSG_R = "L-pull_chatroom_msg-R",
|
|
2991
|
+
A_DELETE_MESSAGES_S = "A-delete_messages-S",
|
|
2992
|
+
P_DELETE_MSG_S = "P-delete_msg-S",
|
|
2993
|
+
L_PULL_CONVERSATION_S = "L-pull_conversation-S",
|
|
2994
|
+
L_RECALL_ULTRA_MSG_S = "L-recall_ultra_msg-S",
|
|
2995
|
+
A_REGTYP_O = "A-regtyp-O",
|
|
2996
|
+
P_REGTYP_O = "P-regtype-O",
|
|
2997
|
+
P_REGTYP_E = "P-regtype-E",
|
|
2998
|
+
L_GET_NAVI_T = "L-get_navi-T",
|
|
2999
|
+
L_GET_NAVI_R = "L-get_navi-R",
|
|
3000
|
+
L_ENV_S = "L-Env-S",
|
|
3001
|
+
L_GET_INDEX_NAVI_S = "L-get_index_navi-S",
|
|
3002
|
+
A_JOIN_CHATROOM_T = "A-join_chatroom-T",
|
|
3003
|
+
A_JOIN_CHATROOM_R = "A-join_chatroom-R",
|
|
3004
|
+
L_JOIN_CHATROOM_T = "L-join_chatroom-T",
|
|
3005
|
+
L_JOIN_CHATROOM_R = "L-join_chatroom-R",
|
|
3006
|
+
A_QUIT_CHATROOM_T = "A-quit_chatroom-T",
|
|
3007
|
+
A_QUIT_CHATROOM_R = "A-quit_chatroom-R",
|
|
3008
|
+
L_REJOIN_CHATROOM_T = "L-rejoin_chatroom-T",
|
|
3009
|
+
L_REJOIN_CHATROOM_R = "L-rejoin_chatroom-R",
|
|
3010
|
+
L_MEDIA_S = "L-media-S",
|
|
3011
|
+
L_MEDIA_UPLOAD_T = "L-media_upload-T",
|
|
3012
|
+
L_MEDIA_UPLOAD_R = "L-media_upload-R",
|
|
3013
|
+
G_UPLOAD_LOG_S = "G-upload_log-S",
|
|
3014
|
+
G_UPLOAD_LOG_E = "G-upload_log-E",
|
|
3015
|
+
G_GET_REAL_TIMELOG_COMMAND_S = "G-get_real_timelog_command-S",
|
|
3016
|
+
L_CHECK_ALIVE_IM_T = "L-check_alive_im-T",
|
|
3017
|
+
L_CHECK_ALIVE_IM_R = "L-check_alive_im-R",
|
|
3018
|
+
A_GET_HISTORY_MSG_T = "A-get_history_msg-T",
|
|
3019
|
+
A_GET_HISTORY_MSG_R = "A-get_history_msg-R",
|
|
3020
|
+
L_GET_HISTORY_MSG_T = "L-get_history_msg-T",
|
|
3021
|
+
L_GET_HISTORY_MSG_R = "L-get_history_msg-R",
|
|
3022
|
+
A_CALLBACK_O = "A-callback-O",
|
|
3023
|
+
A_CALLBACK_E = "A-callback-E"
|
|
3024
|
+
}
|
|
2974
3025
|
|
|
2975
3026
|
/**
|
|
2976
3027
|
* 拓展方法定义,便于 electron-solution 实现时保持接口类型推导可用
|
|
@@ -3164,6 +3215,13 @@ interface IEngine {
|
|
|
3164
3215
|
list: IReceivedMessage[];
|
|
3165
3216
|
hasMore: boolean;
|
|
3166
3217
|
}>;
|
|
3218
|
+
/**
|
|
3219
|
+
* 获取指定消息类型的历史消息
|
|
3220
|
+
*/
|
|
3221
|
+
getHistoryMessagesByObjectNames(conversationType: ConversationType, targetId: string, timestamp: number, count: number, messageTypes: string[], order: number, channelId: string): Promise<IAsyncRes<{
|
|
3222
|
+
list: IReceivedMessage[];
|
|
3223
|
+
hasMore: boolean;
|
|
3224
|
+
}>>;
|
|
3167
3225
|
/**
|
|
3168
3226
|
* 删除历史消息 通过 messageUId
|
|
3169
3227
|
*/
|
|
@@ -3217,6 +3275,10 @@ interface IEngine {
|
|
|
3217
3275
|
* 会话的业务标识
|
|
3218
3276
|
*/
|
|
3219
3277
|
channelId?: string): IPromiseResult<IReceivedConversation[]>;
|
|
3278
|
+
/**
|
|
3279
|
+
* 分页获取会话列表,仅 electron中使用
|
|
3280
|
+
*/
|
|
3281
|
+
getConversationsByPage(conversationTypes: ConversationType[], startTime: number, count: number, channelId: string): IPromiseResult<IReceivedConversation[]>;
|
|
3220
3282
|
/**
|
|
3221
3283
|
* 获取指定会话
|
|
3222
3284
|
*/
|
|
@@ -3268,7 +3330,7 @@ interface IEngine {
|
|
|
3268
3330
|
* 批量设置会话 置顶、免打扰
|
|
3269
3331
|
*/
|
|
3270
3332
|
batchSetConversationStatus(statusList: ISetConversationStatusOptions[]): Promise<ErrorCode>;
|
|
3271
|
-
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions, onBefore?: (messageId: number) => void): IPromiseResult<IReceivedMessage>;
|
|
3333
|
+
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions, onBefore?: (messageId: number) => void, traceId?: string): IPromiseResult<IReceivedMessage>;
|
|
3272
3334
|
/**
|
|
3273
3335
|
* 断开连接
|
|
3274
3336
|
*/
|
|
@@ -3489,7 +3551,7 @@ interface IEngine {
|
|
|
3489
3551
|
/**
|
|
3490
3552
|
* 获取指定人员在黑名单中的状态
|
|
3491
3553
|
*/
|
|
3492
|
-
getBlacklistStatus(userId: string): IPromiseResult<
|
|
3554
|
+
getBlacklistStatus(userId: string): IPromiseResult<number>;
|
|
3493
3555
|
/**
|
|
3494
3556
|
* 向本地插入一条消息,不发送到服务器
|
|
3495
3557
|
*/
|
|
@@ -3497,7 +3559,7 @@ interface IEngine {
|
|
|
3497
3559
|
/**
|
|
3498
3560
|
* 删除本地消息
|
|
3499
3561
|
*/
|
|
3500
|
-
deleteMessages(
|
|
3562
|
+
deleteMessages(messageIds: number[]): Promise<ErrorCode>;
|
|
3501
3563
|
/**
|
|
3502
3564
|
* 通过时间戳删除本地消息
|
|
3503
3565
|
*/
|
|
@@ -3519,9 +3581,10 @@ interface IEngine {
|
|
|
3519
3581
|
*/
|
|
3520
3582
|
setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
|
|
3521
3583
|
/**
|
|
3522
|
-
|
|
3584
|
+
* 通过关键字与 channelId 搜索所有会话
|
|
3523
3585
|
*/
|
|
3524
3586
|
searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3587
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
3525
3588
|
/**
|
|
3526
3589
|
* 按内容搜索会话内的消息
|
|
3527
3590
|
*/
|
|
@@ -3529,6 +3592,19 @@ interface IEngine {
|
|
|
3529
3592
|
messages: IReceivedMessage[];
|
|
3530
3593
|
count: number;
|
|
3531
3594
|
}>;
|
|
3595
|
+
/**
|
|
3596
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
3597
|
+
*/
|
|
3598
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
3599
|
+
messages: IReceivedMessage[];
|
|
3600
|
+
count: number;
|
|
3601
|
+
}>;
|
|
3602
|
+
/**
|
|
3603
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
3604
|
+
*/
|
|
3605
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
3606
|
+
messages: IReceivedMessage[];
|
|
3607
|
+
}>;
|
|
3532
3608
|
/**
|
|
3533
3609
|
* 获取会话下所有未读的 @ 消息
|
|
3534
3610
|
*/
|
|
@@ -3541,6 +3617,10 @@ interface IEngine {
|
|
|
3541
3617
|
* 设置消息接收状态
|
|
3542
3618
|
*/
|
|
3543
3619
|
setMessageReceivedStatus(messageId: number, receivedStatus: number): Promise<ErrorCode>;
|
|
3620
|
+
/**
|
|
3621
|
+
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
3622
|
+
*/
|
|
3623
|
+
updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): IPromiseResult<boolean>;
|
|
3544
3624
|
/**
|
|
3545
3625
|
* 删除时间戳前的未读数
|
|
3546
3626
|
*/
|
|
@@ -3572,6 +3652,7 @@ interface IEngine {
|
|
|
3572
3652
|
* 获取所有群聊会话 @ 消息未读数
|
|
3573
3653
|
*/
|
|
3574
3654
|
getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
|
|
3655
|
+
clearData(): Promise<IAsyncRes<boolean>>;
|
|
3575
3656
|
joinRTCRoom(roomId: string, mode: RTCMode, broadcastType?: number, joinType?: RTCJoinType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): IPromiseResult<IJoinRTCRoomData>;
|
|
3576
3657
|
quitRTCRoom(roomId: string): Promise<ErrorCode>;
|
|
3577
3658
|
rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<ErrorCode>;
|
|
@@ -3705,6 +3786,32 @@ interface ITypingMessage {
|
|
|
3705
3786
|
list: Array<ITypingUser>;
|
|
3706
3787
|
}
|
|
3707
3788
|
|
|
3789
|
+
/**
|
|
3790
|
+
* IndexDB中存储的log数据
|
|
3791
|
+
*/
|
|
3792
|
+
interface ILogInfo {
|
|
3793
|
+
sessionId: string;
|
|
3794
|
+
time: number;
|
|
3795
|
+
level: LogLevel;
|
|
3796
|
+
content: string;
|
|
3797
|
+
userId?: string;
|
|
3798
|
+
logSource?: LogSource;
|
|
3799
|
+
tagId?: LogTagId;
|
|
3800
|
+
}
|
|
3801
|
+
interface IRealTimeLog {
|
|
3802
|
+
level: LogLevel;
|
|
3803
|
+
content: string;
|
|
3804
|
+
}
|
|
3805
|
+
interface ILogExtensions {
|
|
3806
|
+
traceId?: string;
|
|
3807
|
+
logSource?: LogSource;
|
|
3808
|
+
}
|
|
3809
|
+
interface ILogInit {
|
|
3810
|
+
userId?: string;
|
|
3811
|
+
localLogLevel?: LogLevel;
|
|
3812
|
+
customLogPrint?: (logLevel: LogLevel, msg: string) => void;
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3708
3815
|
/**
|
|
3709
3816
|
* 定义已废弃,请使用 `IRemoveChatroomEntries` 替换
|
|
3710
3817
|
* @deprecated
|
|
@@ -3965,7 +4072,7 @@ declare class DataCodec {
|
|
|
3965
4072
|
/**
|
|
3966
4073
|
* 设置会话状态 (置顶、免打扰)
|
|
3967
4074
|
*/
|
|
3968
|
-
encodeSetConversationStatus(statusList: Array<ISetConversationStatusOptions
|
|
4075
|
+
encodeSetConversationStatus(statusList: Array<ISetConversationStatusOptions>, conversationUpdatedTime: number): any;
|
|
3969
4076
|
/**
|
|
3970
4077
|
* 序列化发送群组已读回执
|
|
3971
4078
|
*/
|
|
@@ -4230,32 +4337,6 @@ declare class CometChannel extends ADataChannel {
|
|
|
4230
4337
|
close(): void;
|
|
4231
4338
|
}
|
|
4232
4339
|
|
|
4233
|
-
interface IPluginGenerator<API, InitOption> {
|
|
4234
|
-
/**
|
|
4235
|
-
* 只读插件标识
|
|
4236
|
-
*/
|
|
4237
|
-
readonly tag: string;
|
|
4238
|
-
/**
|
|
4239
|
-
* 版本号
|
|
4240
|
-
*/
|
|
4241
|
-
readonly version?: string;
|
|
4242
|
-
/**
|
|
4243
|
-
* 插件名称
|
|
4244
|
-
*/
|
|
4245
|
-
readonly name?: string;
|
|
4246
|
-
/**
|
|
4247
|
-
* 插件安装前的环境检测,通过返回 boolean 值确认插件是否可运行
|
|
4248
|
-
*/
|
|
4249
|
-
verify(runtime: IRuntime): boolean;
|
|
4250
|
-
/**
|
|
4251
|
-
* 插件初始化
|
|
4252
|
-
* @param context 插件调用上下文,用于实现插件的消息注册、消息首发等
|
|
4253
|
-
* @param runtime 运行时实例,用于标识最终的运行时平台
|
|
4254
|
-
* @param options 初始化参数
|
|
4255
|
-
*/
|
|
4256
|
-
setup(context: PluginContext, runtime: IRuntime, options: InitOption): API;
|
|
4257
|
-
}
|
|
4258
|
-
|
|
4259
4340
|
declare type IMessageListnenr = (message: IReceivedMessage, leftCount?: number, hasMore?: boolean) => void;
|
|
4260
4341
|
declare type IMessagesListnenr = (messages: IReceivedMessage[], leftCount?: number, hasMore?: boolean) => void;
|
|
4261
4342
|
declare type IConnectionStatusListener = (status: ConnectionStatus) => void;
|
|
@@ -4375,6 +4456,32 @@ interface IAPIContextOption {
|
|
|
4375
4456
|
checkCA?: boolean;
|
|
4376
4457
|
}
|
|
4377
4458
|
|
|
4459
|
+
interface IPluginGenerator<API, InitOption> {
|
|
4460
|
+
/**
|
|
4461
|
+
* 只读插件标识
|
|
4462
|
+
*/
|
|
4463
|
+
readonly tag: string;
|
|
4464
|
+
/**
|
|
4465
|
+
* 版本号
|
|
4466
|
+
*/
|
|
4467
|
+
readonly version?: string;
|
|
4468
|
+
/**
|
|
4469
|
+
* 插件名称
|
|
4470
|
+
*/
|
|
4471
|
+
readonly name?: string;
|
|
4472
|
+
/**
|
|
4473
|
+
* 插件安装前的环境检测,通过返回 boolean 值确认插件是否可运行
|
|
4474
|
+
*/
|
|
4475
|
+
verify(runtime: IRuntime): boolean;
|
|
4476
|
+
/**
|
|
4477
|
+
* 插件初始化
|
|
4478
|
+
* @param context 插件调用上下文,用于实现插件的消息注册、消息首发等
|
|
4479
|
+
* @param runtime 运行时实例,用于标识最终的运行时平台
|
|
4480
|
+
* @param options 初始化参数
|
|
4481
|
+
*/
|
|
4482
|
+
setup(context: PluginContext, runtime: IRuntime, options: InitOption): API;
|
|
4483
|
+
}
|
|
4484
|
+
|
|
4378
4485
|
declare class APIContext {
|
|
4379
4486
|
private _runtime;
|
|
4380
4487
|
private static _context?;
|
|
@@ -4501,7 +4608,7 @@ declare class APIContext {
|
|
|
4501
4608
|
这个字段就是为这种情况加的。
|
|
4502
4609
|
设置 reconnectKickEnable 为 true 时,SDK 重连的时候发现此时已有别的设备连接成功,不再强行踢出已有设备,而是踢出重连设备。
|
|
4503
4610
|
*/
|
|
4504
|
-
connect(token: string, refreshNavi?: boolean, reconnectKickEnable?: boolean): Promise<IConnectResult>;
|
|
4611
|
+
connect(token: string, refreshNavi?: boolean, reconnectKickEnable?: boolean, traceId?: string): Promise<IConnectResult>;
|
|
4505
4612
|
/**
|
|
4506
4613
|
* 拉取实时配置 web 端需更新 voipCall 字段
|
|
4507
4614
|
*/
|
|
@@ -4531,7 +4638,7 @@ declare class APIContext {
|
|
|
4531
4638
|
* @param content
|
|
4532
4639
|
* @param options
|
|
4533
4640
|
*/
|
|
4534
|
-
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions, onBefore?: (messageId: number) => void): Promise<IAsyncRes<IReceivedMessage>>;
|
|
4641
|
+
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions, onBefore?: (messageId: number) => void, traceId?: string): Promise<IAsyncRes<IReceivedMessage>>;
|
|
4535
4642
|
/**
|
|
4536
4643
|
* 发送扩展消息
|
|
4537
4644
|
* @param messageUId 消息 Id
|
|
@@ -4565,7 +4672,11 @@ declare class APIContext {
|
|
|
4565
4672
|
* @param channelId
|
|
4566
4673
|
* @param objectName
|
|
4567
4674
|
*/
|
|
4568
|
-
getHistoryMessage(conversationType: ConversationType, targetId: string, timestamp?: number, count?: number, order?: 0 | 1, channelId?: string, objectName?: string): Promise<IAsyncRes<{
|
|
4675
|
+
getHistoryMessage(conversationType: ConversationType, targetId: string, timestamp?: number, count?: number, order?: 0 | 1, channelId?: string, objectName?: string, traceId?: string): Promise<IAsyncRes<{
|
|
4676
|
+
list: IReceivedMessage[];
|
|
4677
|
+
hasMore: boolean;
|
|
4678
|
+
}>>;
|
|
4679
|
+
getHistoryMessagesByObjectNames(conversationType: ConversationType, targetId: string, timestamp: number, count: number, messageTypes: string[], order: number, channelId: string): Promise<IAsyncRes<{
|
|
4569
4680
|
list: IReceivedMessage[];
|
|
4570
4681
|
hasMore: boolean;
|
|
4571
4682
|
}>>;
|
|
@@ -4574,6 +4685,10 @@ declare class APIContext {
|
|
|
4574
4685
|
* @param count 指定获取数量, 不传则获取全部会话列表,默认 `300`
|
|
4575
4686
|
*/
|
|
4576
4687
|
getConversationList(count?: number, conversationType?: ConversationType, startTime?: number, order?: 0 | 1, channelId?: string): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4688
|
+
/**
|
|
4689
|
+
* 分页获取会话列表,仅 electron中使用
|
|
4690
|
+
*/
|
|
4691
|
+
getConversationsByPage(conversationTypes: ConversationType[], startTime: number, count: number, channelId: string): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4577
4692
|
/**
|
|
4578
4693
|
* 获取单一会话数据
|
|
4579
4694
|
* @param conversationType
|
|
@@ -4662,13 +4777,13 @@ declare class APIContext {
|
|
|
4662
4777
|
* @param roomId 聊天室房间 Id
|
|
4663
4778
|
* @param count 进入聊天室成功后,自动拉取的历史消息数量,默认值为 `10`,最大有效值为 `50`,`-1` 为不拉取
|
|
4664
4779
|
*/
|
|
4665
|
-
joinChatroom(roomId: string, count?: number): Promise<ErrorCode>;
|
|
4780
|
+
joinChatroom(roomId: string, count?: number, traceId?: string): Promise<ErrorCode>;
|
|
4666
4781
|
/**
|
|
4667
4782
|
* 加入聊天室,若聊天室不存在则抛出异常
|
|
4668
4783
|
* @param roomId 聊天室房间 Id
|
|
4669
4784
|
* @param count 进入聊天室成功后,自动拉取的历史消息数量,默认值为 `10`,最大有效值为 `50`,`-1` 为不拉取
|
|
4670
4785
|
*/
|
|
4671
|
-
joinExistChatroom(roomId: string, count?: number): Promise<ErrorCode>;
|
|
4786
|
+
joinExistChatroom(roomId: string, count?: number, traceId?: string): Promise<ErrorCode>;
|
|
4672
4787
|
/**
|
|
4673
4788
|
* 退出聊天室
|
|
4674
4789
|
* @param roomId
|
|
@@ -4774,6 +4889,7 @@ declare class APIContext {
|
|
|
4774
4889
|
getFileToken(fileType: FileType, fileName?: string, httpMethod?: 'POST' | 'PUT', queryString?: string): Promise<IUploadAuth & {
|
|
4775
4890
|
bos: string;
|
|
4776
4891
|
qiniu: string;
|
|
4892
|
+
ossConfig: string;
|
|
4777
4893
|
}>;
|
|
4778
4894
|
/**
|
|
4779
4895
|
* 获取 七牛、百度、阿里云 上传成功可下载的 URL
|
|
@@ -4934,7 +5050,7 @@ declare class APIContext {
|
|
|
4934
5050
|
/**
|
|
4935
5051
|
* 获取指定人员在黑名单中的状态
|
|
4936
5052
|
*/
|
|
4937
|
-
getBlacklistStatus(userId: string): Promise<IAsyncRes<
|
|
5053
|
+
getBlacklistStatus(userId: string): Promise<IAsyncRes<number>>;
|
|
4938
5054
|
/**
|
|
4939
5055
|
* 向本地插入一条消息,不发送到服务器
|
|
4940
5056
|
*/
|
|
@@ -4942,7 +5058,7 @@ declare class APIContext {
|
|
|
4942
5058
|
/**
|
|
4943
5059
|
* 删除本地消息
|
|
4944
5060
|
*/
|
|
4945
|
-
deleteMessages(
|
|
5061
|
+
deleteMessages(messageIds: number[]): Promise<ErrorCode>;
|
|
4946
5062
|
/**
|
|
4947
5063
|
* 从本地消息数据库中删除某一会话指定时间之前的消息数据
|
|
4948
5064
|
*/
|
|
@@ -4971,6 +5087,10 @@ declare class APIContext {
|
|
|
4971
5087
|
* 设置消息接收状态
|
|
4972
5088
|
*/
|
|
4973
5089
|
setMessageReceivedStatus(messageId: number, receivedStatus: number): Promise<ErrorCode>;
|
|
5090
|
+
/**
|
|
5091
|
+
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
5092
|
+
*/
|
|
5093
|
+
setMessageStatusToRead(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<IAsyncRes<boolean>>;
|
|
4974
5094
|
/**
|
|
4975
5095
|
* 设置当前用户在线状态
|
|
4976
5096
|
*/
|
|
@@ -4986,10 +5106,18 @@ declare class APIContext {
|
|
|
4986
5106
|
status: string;
|
|
4987
5107
|
}>>;
|
|
4988
5108
|
searchConversationByContent(keyword: string, customMessageTypes?: string[], channelId?: string, conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
5109
|
+
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes?: string[], conversationTypes?: ConversationType[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4989
5110
|
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId?: string): Promise<IAsyncRes<{
|
|
4990
5111
|
messages: IReceivedMessage[];
|
|
4991
5112
|
count: number;
|
|
4992
5113
|
}>>;
|
|
5114
|
+
searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): Promise<IAsyncRes<{
|
|
5115
|
+
messages: IReceivedMessage[];
|
|
5116
|
+
count: number;
|
|
5117
|
+
}>>;
|
|
5118
|
+
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): Promise<IAsyncRes<{
|
|
5119
|
+
messages: IReceivedMessage[];
|
|
5120
|
+
}>>;
|
|
4993
5121
|
getUnreadMentionedMessages(conversationType: ConversationType, targetId: string, channelId?: string): IReceivedMessage[];
|
|
4994
5122
|
clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<ErrorCode>;
|
|
4995
5123
|
/**
|
|
@@ -5018,6 +5146,7 @@ declare class APIContext {
|
|
|
5018
5146
|
}>>;
|
|
5019
5147
|
getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
5020
5148
|
getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
5149
|
+
clearData(): Promise<IAsyncRes<boolean>>;
|
|
5021
5150
|
/**
|
|
5022
5151
|
* 加入房间
|
|
5023
5152
|
* @param roomId
|
|
@@ -5358,7 +5487,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5358
5487
|
* @param naviInfo
|
|
5359
5488
|
* @param reconnectKickEnable
|
|
5360
5489
|
*/
|
|
5361
|
-
abstract connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
|
|
5490
|
+
abstract connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean, traceId?: string): Promise<ErrorCode>;
|
|
5362
5491
|
/**
|
|
5363
5492
|
* 发送SDK版本
|
|
5364
5493
|
* @param versionInfo
|
|
@@ -5396,10 +5525,17 @@ declare abstract class AEngine implements IEngine {
|
|
|
5396
5525
|
/**
|
|
5397
5526
|
* 消息类型
|
|
5398
5527
|
*/
|
|
5399
|
-
objectName: string): IPromiseResult<{
|
|
5528
|
+
objectName: string, traceId?: string): IPromiseResult<{
|
|
5400
5529
|
list: IReceivedMessage[];
|
|
5401
5530
|
hasMore: boolean;
|
|
5402
5531
|
}>;
|
|
5532
|
+
/**
|
|
5533
|
+
* 获取指定消息类型的历史消息
|
|
5534
|
+
*/
|
|
5535
|
+
abstract getHistoryMessagesByObjectNames(conversationType: ConversationType, targetId: string, timestamp: number, count: number, messageTypes: string[], order: number, channelId: string): Promise<IAsyncRes<{
|
|
5536
|
+
list: IReceivedMessage[];
|
|
5537
|
+
hasMore: boolean;
|
|
5538
|
+
}>>;
|
|
5403
5539
|
/**
|
|
5404
5540
|
* 删除历史消息 通过 messageUId
|
|
5405
5541
|
*/
|
|
@@ -5453,6 +5589,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5453
5589
|
* 会话的业务标识
|
|
5454
5590
|
*/
|
|
5455
5591
|
channelId?: string): IPromiseResult<IReceivedConversation[]>;
|
|
5592
|
+
/**
|
|
5593
|
+
* 分页获取会话列表,仅 electron中使用
|
|
5594
|
+
*/
|
|
5595
|
+
abstract getConversationsByPage(conversationTypes: ConversationType[], startTime: number, count: number, channelId: string): IPromiseResult<IReceivedConversation[]>;
|
|
5456
5596
|
/**
|
|
5457
5597
|
* 获取指定会话
|
|
5458
5598
|
*/
|
|
@@ -5512,7 +5652,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5512
5652
|
/**
|
|
5513
5653
|
* c++ 消息写库后存在自增 Id,必要时需要向业务层暴露,JSEngine 无需实现
|
|
5514
5654
|
*/
|
|
5515
|
-
onBefore?: (messageId: number) => void): IPromiseResult<IReceivedMessage>;
|
|
5655
|
+
onBefore?: (messageId: number) => void, traceId?: string): IPromiseResult<IReceivedMessage>;
|
|
5516
5656
|
/**
|
|
5517
5657
|
* 发送群组消息已读回执
|
|
5518
5658
|
* 导航下发已读回执开关为 true 时调用
|
|
@@ -5550,12 +5690,12 @@ declare abstract class AEngine implements IEngine {
|
|
|
5550
5690
|
* 加入聊天室
|
|
5551
5691
|
* @param count 拉取消息数量
|
|
5552
5692
|
*/
|
|
5553
|
-
abstract joinChatroom(chatroomId: string, count: number): Promise<ErrorCode>;
|
|
5693
|
+
abstract joinChatroom(chatroomId: string, count: number, traceId?: string): Promise<ErrorCode>;
|
|
5554
5694
|
/**
|
|
5555
5695
|
* 加入已存在的聊天室
|
|
5556
5696
|
* @param count 拉取消息数量
|
|
5557
5697
|
*/
|
|
5558
|
-
abstract joinExistChatroom(chatroomId: string, count: number): Promise<ErrorCode>;
|
|
5698
|
+
abstract joinExistChatroom(chatroomId: string, count: number, traceId?: string): Promise<ErrorCode>;
|
|
5559
5699
|
/**
|
|
5560
5700
|
* 退出聊天室
|
|
5561
5701
|
*/
|
|
@@ -5750,7 +5890,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5750
5890
|
* @param targetId
|
|
5751
5891
|
* @param options
|
|
5752
5892
|
*/
|
|
5753
|
-
abstract sendUltraMessage(targetId: string, options: ISendMsgOptions): Promise<IAsyncRes>;
|
|
5893
|
+
abstract sendUltraMessage(targetId: string, options: ISendMsgOptions, onSendBefore?: (messageId: number) => void, traceId?: string): Promise<IAsyncRes>;
|
|
5754
5894
|
/**
|
|
5755
5895
|
* 超级群消息正在输入中
|
|
5756
5896
|
* @param options
|
|
@@ -5776,7 +5916,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5776
5916
|
* @param targetId
|
|
5777
5917
|
* @param options
|
|
5778
5918
|
*/
|
|
5779
|
-
abstract getUltraHistoryMsg(targetId: string, options: IGetMsgOption): Promise<IAsyncRes>;
|
|
5919
|
+
abstract getUltraHistoryMsg(targetId: string, options: IGetMsgOption, traceId?: string): Promise<IAsyncRes>;
|
|
5780
5920
|
abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
5781
5921
|
abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
5782
5922
|
/**
|
|
@@ -5818,7 +5958,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5818
5958
|
/**
|
|
5819
5959
|
* 获取指定人员在黑名单中的状态
|
|
5820
5960
|
*/
|
|
5821
|
-
abstract getBlacklistStatus(userId: string): IPromiseResult<
|
|
5961
|
+
abstract getBlacklistStatus(userId: string): IPromiseResult<number>;
|
|
5822
5962
|
/**
|
|
5823
5963
|
* 向本地插入一条消息,不发送到服务器
|
|
5824
5964
|
*/
|
|
@@ -5826,7 +5966,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5826
5966
|
/**
|
|
5827
5967
|
* 删除本地消息
|
|
5828
5968
|
*/
|
|
5829
|
-
abstract deleteMessages(
|
|
5969
|
+
abstract deleteMessages(messageIds: number[]): Promise<ErrorCode>;
|
|
5830
5970
|
/**
|
|
5831
5971
|
* 通过时间戳删除本地消息
|
|
5832
5972
|
*/
|
|
@@ -5851,6 +5991,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5851
5991
|
* 通过关键字搜索会话
|
|
5852
5992
|
*/
|
|
5853
5993
|
abstract searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5994
|
+
/**
|
|
5995
|
+
* 通过关键字搜索所有会话
|
|
5996
|
+
*/
|
|
5997
|
+
abstract searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
5854
5998
|
/**
|
|
5855
5999
|
* 按内容搜索会话内的消息
|
|
5856
6000
|
*/
|
|
@@ -5858,6 +6002,19 @@ declare abstract class AEngine implements IEngine {
|
|
|
5858
6002
|
messages: IReceivedMessage[];
|
|
5859
6003
|
count: number;
|
|
5860
6004
|
}>;
|
|
6005
|
+
/**
|
|
6006
|
+
* 按内容搜索指定会话(不区分 channelId)的消息
|
|
6007
|
+
*/
|
|
6008
|
+
abstract searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number): IPromiseResult<{
|
|
6009
|
+
messages: IReceivedMessage[];
|
|
6010
|
+
count: number;
|
|
6011
|
+
}>;
|
|
6012
|
+
/**
|
|
6013
|
+
* 按内容搜索时间范围内指定会话(不区分 channelId)的消息
|
|
6014
|
+
*/
|
|
6015
|
+
abstract searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
6016
|
+
messages: IReceivedMessage[];
|
|
6017
|
+
}>;
|
|
5861
6018
|
/**
|
|
5862
6019
|
* 获取会话下所有未读的 @ 消息
|
|
5863
6020
|
*/
|
|
@@ -5870,6 +6027,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5870
6027
|
* 设置消息接收状态
|
|
5871
6028
|
*/
|
|
5872
6029
|
abstract setMessageReceivedStatus(messageId: number, receivedStatus: number): Promise<ErrorCode>;
|
|
6030
|
+
/**
|
|
6031
|
+
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
6032
|
+
*/
|
|
6033
|
+
abstract updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): IPromiseResult<boolean>;
|
|
5873
6034
|
/**
|
|
5874
6035
|
* 删除时间戳前的未读数
|
|
5875
6036
|
*/
|
|
@@ -5923,6 +6084,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5923
6084
|
* 获取本地全部会话的状态
|
|
5924
6085
|
*/
|
|
5925
6086
|
abstract getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
|
|
6087
|
+
abstract clearData(): Promise<IAsyncRes<boolean>>;
|
|
5926
6088
|
abstract joinRTCRoom(roomId: string, mode: RTCMode, broadcastType?: number, joinType?: RTCJoinType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): IPromiseResult<IJoinRTCRoomData>;
|
|
5927
6089
|
abstract quitRTCRoom(roomId: string): Promise<ErrorCode>;
|
|
5928
6090
|
abstract rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<ErrorCode>;
|
|
@@ -5997,232 +6159,6 @@ declare const appendUrl: (url: string, query?: {
|
|
|
5997
6159
|
[key: string]: string | number | null;
|
|
5998
6160
|
} | undefined) => string;
|
|
5999
6161
|
|
|
6000
|
-
/**
|
|
6001
|
-
* IndexDB中存储的log数据
|
|
6002
|
-
*/
|
|
6003
|
-
interface ILogInfo {
|
|
6004
|
-
sessionId: string;
|
|
6005
|
-
time: number;
|
|
6006
|
-
level: LogLevel;
|
|
6007
|
-
content: string;
|
|
6008
|
-
userId: string;
|
|
6009
|
-
}
|
|
6010
|
-
interface IRealTimeLog {
|
|
6011
|
-
level: LogLevel;
|
|
6012
|
-
content: string;
|
|
6013
|
-
}
|
|
6014
|
-
|
|
6015
|
-
interface ILogPolicy {
|
|
6016
|
-
url: string;
|
|
6017
|
-
level: number;
|
|
6018
|
-
itv: number;
|
|
6019
|
-
times: number;
|
|
6020
|
-
}
|
|
6021
|
-
interface IReportLogInitInfo {
|
|
6022
|
-
runtime: IRuntime;
|
|
6023
|
-
logSwitch: number;
|
|
6024
|
-
logPolicy: ILogPolicy;
|
|
6025
|
-
appkey: string;
|
|
6026
|
-
version: string;
|
|
6027
|
-
userId?: string;
|
|
6028
|
-
sessionId?: string;
|
|
6029
|
-
}
|
|
6030
|
-
/**
|
|
6031
|
-
* 更新上传日志属性
|
|
6032
|
-
*/
|
|
6033
|
-
interface IReportLogUpdateInfo {
|
|
6034
|
-
runtime?: IRuntime;
|
|
6035
|
-
logSwitch?: number;
|
|
6036
|
-
logPolicy?: ILogPolicy;
|
|
6037
|
-
appkey?: string;
|
|
6038
|
-
version?: string;
|
|
6039
|
-
userId?: string;
|
|
6040
|
-
sessionId?: string;
|
|
6041
|
-
}
|
|
6042
|
-
/**
|
|
6043
|
-
* 初始化上传日志属性
|
|
6044
|
-
*/
|
|
6045
|
-
interface IFullLogParams {
|
|
6046
|
-
startTime: number;
|
|
6047
|
-
endTime: number;
|
|
6048
|
-
platform: string;
|
|
6049
|
-
logId: string;
|
|
6050
|
-
uri: string;
|
|
6051
|
-
packageName?: string;
|
|
6052
|
-
}
|
|
6053
|
-
/**
|
|
6054
|
-
* 日志上报类
|
|
6055
|
-
*/
|
|
6056
|
-
declare class UploadLog {
|
|
6057
|
-
private info;
|
|
6058
|
-
private logUrl;
|
|
6059
|
-
level: number;
|
|
6060
|
-
itv: number;
|
|
6061
|
-
times: number;
|
|
6062
|
-
private deviceId;
|
|
6063
|
-
private deviceInfo;
|
|
6064
|
-
logSwitch: number;
|
|
6065
|
-
static currentRTTimes: number;
|
|
6066
|
-
static reportSwitch: boolean;
|
|
6067
|
-
private static _instance;
|
|
6068
|
-
constructor(info: IReportLogInitInfo);
|
|
6069
|
-
/**
|
|
6070
|
-
* 重新设置类属性
|
|
6071
|
-
*/
|
|
6072
|
-
updateUploadLogAttr(info: IReportLogUpdateInfo): void;
|
|
6073
|
-
static init(info: IReportLogInitInfo): UploadLog;
|
|
6074
|
-
static getInstance(): UploadLog | null;
|
|
6075
|
-
/**
|
|
6076
|
-
* 上报实时日志
|
|
6077
|
-
*/
|
|
6078
|
-
reportRealtimeLog(list: IRealTimeLog[]): Promise<void>;
|
|
6079
|
-
/**
|
|
6080
|
-
* 上报全量日志
|
|
6081
|
-
*/
|
|
6082
|
-
reportFullLog(params: IFullLogParams): Promise<void>;
|
|
6083
|
-
distroy(): void;
|
|
6084
|
-
}
|
|
6085
|
-
|
|
6086
|
-
/** 统计数据标签 **/
|
|
6087
|
-
declare enum StatisticsTag {
|
|
6088
|
-
'IM_NAVI' = "IM-stats_navi-S",
|
|
6089
|
-
'IM_WEBSOCKET' = "IM-stats_websocket-S",
|
|
6090
|
-
'IM_COMET' = "IM-stats_comet-S",
|
|
6091
|
-
'IM_CONNECTION_DURATION' = "IM-stats_con_dur-S"
|
|
6092
|
-
}
|
|
6093
|
-
|
|
6094
|
-
/** 统计日志公共数据参数 */
|
|
6095
|
-
interface IUpdateBaseStatisticsDataOption {
|
|
6096
|
-
sdkPrivate?: number;
|
|
6097
|
-
serverPrivate?: number;
|
|
6098
|
-
bundleId?: string;
|
|
6099
|
-
}
|
|
6100
|
-
/** 统计日志公共数据 */
|
|
6101
|
-
interface IBaseStatisticsData {
|
|
6102
|
-
sdkPrivate: number;
|
|
6103
|
-
serverPrivate: number;
|
|
6104
|
-
bundleId: string;
|
|
6105
|
-
}
|
|
6106
|
-
|
|
6107
|
-
declare class Logger {
|
|
6108
|
-
readonly tag: string;
|
|
6109
|
-
readonly type?: LogType | undefined;
|
|
6110
|
-
private readonly initiator?;
|
|
6111
|
-
/**
|
|
6112
|
-
*
|
|
6113
|
-
* @param tag 标签
|
|
6114
|
-
* @param type 类型
|
|
6115
|
-
* @param initiator 发起方(A: APP 层,L: Lib 层)
|
|
6116
|
-
*/
|
|
6117
|
-
constructor(tag: string, type?: LogType | undefined, initiator?: string | undefined);
|
|
6118
|
-
/**
|
|
6119
|
-
* 输出等级
|
|
6120
|
-
*/
|
|
6121
|
-
private _outLevel;
|
|
6122
|
-
/**
|
|
6123
|
-
* 为向前兼容,暂不删除
|
|
6124
|
-
*/
|
|
6125
|
-
private _stdout?;
|
|
6126
|
-
/**
|
|
6127
|
-
* 输出函数
|
|
6128
|
-
*/
|
|
6129
|
-
private _logStdout?;
|
|
6130
|
-
/**
|
|
6131
|
-
* 本地存储日志列表
|
|
6132
|
-
*/
|
|
6133
|
-
static databaseLogList: ILogInfo[];
|
|
6134
|
-
/**
|
|
6135
|
-
* 定时上传日志列表
|
|
6136
|
-
*/
|
|
6137
|
-
static realTimeLogList: IRealTimeLog[];
|
|
6138
|
-
static readonly sessionId: string;
|
|
6139
|
-
static userId: string;
|
|
6140
|
-
static init(userId: string): void;
|
|
6141
|
-
static reset(): void;
|
|
6142
|
-
/**
|
|
6143
|
-
* 默认输出函数
|
|
6144
|
-
* @param level
|
|
6145
|
-
* @param args
|
|
6146
|
-
*/
|
|
6147
|
-
private _defaultStdout;
|
|
6148
|
-
/**
|
|
6149
|
-
* 向 databaseLogList 中 push 日志
|
|
6150
|
-
* @param level 打印等级
|
|
6151
|
-
* @param content 日志内容
|
|
6152
|
-
* @param tag 日志tag
|
|
6153
|
-
*/
|
|
6154
|
-
__pushLocalLog(level: LogLevel, content: string, tag: string): void;
|
|
6155
|
-
/**
|
|
6156
|
-
* 向数据库中插入 log 数据
|
|
6157
|
-
*/
|
|
6158
|
-
__insertLogIntoDatabase(): Promise<boolean>;
|
|
6159
|
-
/**
|
|
6160
|
-
* 修改 log 输出等级
|
|
6161
|
-
* @param logLevel
|
|
6162
|
-
*/
|
|
6163
|
-
setLogLevel(logLevel?: LogLevel): void;
|
|
6164
|
-
setLogStdout(stdout?: (level: LogLevel, content: string) => void): void;
|
|
6165
|
-
log(level: LogLevel, ...args: any[]): void;
|
|
6166
|
-
debug: (...args: any[]) => void;
|
|
6167
|
-
info: (...args: any[]) => void;
|
|
6168
|
-
warn: (...args: any[]) => void;
|
|
6169
|
-
error: (...args: any[]) => void;
|
|
6170
|
-
fatal: (...args: any[]) => void;
|
|
6171
|
-
/**
|
|
6172
|
-
* 日志实时上报
|
|
6173
|
-
* @param level 日志等级
|
|
6174
|
-
* @param tag 日志标签
|
|
6175
|
-
* @param content 日志内容
|
|
6176
|
-
*/
|
|
6177
|
-
reportLog(level: LogLevel, tag: string, content: string): void;
|
|
6178
|
-
/**
|
|
6179
|
-
* @deprecated
|
|
6180
|
-
* 函数已废弃,使用 `setLogLevel` 与 `setStdout` 方法替代
|
|
6181
|
-
*/
|
|
6182
|
-
set(outLevel: LogLevel, stdout?: (level: LogLevel, ...args: any[]) => void): void;
|
|
6183
|
-
/**
|
|
6184
|
-
* 接口已废弃,改用 `setLogStdout`
|
|
6185
|
-
* @param stdout
|
|
6186
|
-
* @deprecated
|
|
6187
|
-
*/
|
|
6188
|
-
setStdout(stdout?: (level: LogLevel, msgTag: string, ...args: any[]) => void): void;
|
|
6189
|
-
__clearRealTimeLog(): void;
|
|
6190
|
-
/** 日志上传实例 */
|
|
6191
|
-
static _reportLog: UploadLog;
|
|
6192
|
-
/** 初始化日志上传 */
|
|
6193
|
-
initReportLog(info: IReportLogInitInfo): void;
|
|
6194
|
-
/**
|
|
6195
|
-
* 设置日志上传实例属性
|
|
6196
|
-
*/
|
|
6197
|
-
updateUploadLogAttr(info: IReportLogUpdateInfo): void;
|
|
6198
|
-
/**
|
|
6199
|
-
* 开始上报实时日志(定时上传)
|
|
6200
|
-
* @returns void
|
|
6201
|
-
*/
|
|
6202
|
-
startReport(): void;
|
|
6203
|
-
/**
|
|
6204
|
-
* 上报统计日志
|
|
6205
|
-
* @param tag 统计日志类型
|
|
6206
|
-
* @param content 日志内容
|
|
6207
|
-
*/
|
|
6208
|
-
reportStatisticsLog(tag: StatisticsTag | string, content: any): Promise<void>;
|
|
6209
|
-
/** 统计日志缓存数据 */
|
|
6210
|
-
private statisticsCaches;
|
|
6211
|
-
private baseStatisData;
|
|
6212
|
-
/**
|
|
6213
|
-
* 更新统计日志共用数据 updateStatisticsBaseData
|
|
6214
|
-
*/
|
|
6215
|
-
updateStatisticsBaseData(options: IUpdateBaseStatisticsDataOption): void;
|
|
6216
|
-
/** 获取统计日志共用数据 getStatisticsBaseData */
|
|
6217
|
-
getStatisticsBaseData(): IBaseStatisticsData;
|
|
6218
|
-
/** 设置统计日志数据 setStatisticsData */
|
|
6219
|
-
setStatisticsData<T>(tag: StatisticsTag | string, options?: T | {
|
|
6220
|
-
[key: string]: any;
|
|
6221
|
-
}, isReset?: boolean): void;
|
|
6222
|
-
/** 获取数据 getStatisticsData */
|
|
6223
|
-
getStatisticsData<T>(tag: StatisticsTag | string): T | any;
|
|
6224
|
-
}
|
|
6225
|
-
|
|
6226
6162
|
declare type IEventListener = (...args: any[]) => void;
|
|
6227
6163
|
declare class EventEmitter {
|
|
6228
6164
|
private readonly _map;
|
|
@@ -6337,6 +6273,7 @@ declare const isHttpUrl: (value: any) => boolean;
|
|
|
6337
6273
|
*/
|
|
6338
6274
|
declare const notEmptyObject: (val: Object) => boolean;
|
|
6339
6275
|
declare const isValidConversationType: (conversation: number) => boolean;
|
|
6276
|
+
declare const isValidChannelId: (value: any) => boolean;
|
|
6340
6277
|
/**
|
|
6341
6278
|
* 判断是否是一个有效的文件类型
|
|
6342
6279
|
*/
|
|
@@ -6350,6 +6287,152 @@ declare const isValidExpansion: (expansion: {
|
|
|
6350
6287
|
[key: string]: string;
|
|
6351
6288
|
} | undefined) => IIsValidExpansion;
|
|
6352
6289
|
|
|
6290
|
+
/** ******************************************新重构logger,按照Web新日志规范上报 ********************************** **/
|
|
6291
|
+
declare const sessionId: string;
|
|
6292
|
+
/**
|
|
6293
|
+
* logLevelTransformer
|
|
6294
|
+
* @description 数据中心与前端日志规范LogLevel定义不统一
|
|
6295
|
+
* WebLogLevel(前端日志级别) -> ServerLogLevel(服务器日志级别)
|
|
6296
|
+
* @param level { LogLevel }
|
|
6297
|
+
* @returns serverLogLevel
|
|
6298
|
+
*/
|
|
6299
|
+
declare function logLevelTransformer(level: LogLevel): number;
|
|
6300
|
+
/**
|
|
6301
|
+
* 序列化引用型数据为字符串
|
|
6302
|
+
* @value value
|
|
6303
|
+
*/
|
|
6304
|
+
declare const formatLogObj: (value: unknown) => unknown;
|
|
6305
|
+
/**
|
|
6306
|
+
* 缓存日志
|
|
6307
|
+
* @param logLevel 打印等级
|
|
6308
|
+
* @param logObj 日志内容
|
|
6309
|
+
* @param tagId 日志tag
|
|
6310
|
+
*/
|
|
6311
|
+
declare function insertIntoLogCache(logLevel: LogLevel, tagId: string, logObj: any, logSource?: LogSource): ILogInfo;
|
|
6312
|
+
/**
|
|
6313
|
+
* 本地默认输出函数
|
|
6314
|
+
* @param level
|
|
6315
|
+
* @param args
|
|
6316
|
+
*/
|
|
6317
|
+
declare function _defaultStdout(level: LogLevel, msgTag: string, ...logContents: any[]): void;
|
|
6318
|
+
/**
|
|
6319
|
+
* Trace ID 生成器
|
|
6320
|
+
*/
|
|
6321
|
+
declare function ID(): string;
|
|
6322
|
+
declare function init(userLogInfo: ILogInit): void;
|
|
6323
|
+
declare function log(logLevel: LogLevel, tagId: LogTagId | string, logObj?: Object, logExtens?: ILogExtensions): void;
|
|
6324
|
+
declare const debug: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6325
|
+
declare const info: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6326
|
+
declare const warn: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6327
|
+
declare const error: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6328
|
+
declare const fatal: (tagId: string, logObj?: Object | undefined, logExtens?: ILogExtensions | undefined) => void;
|
|
6329
|
+
|
|
6330
|
+
declare const base_sessionId: typeof sessionId;
|
|
6331
|
+
declare const base_logLevelTransformer: typeof logLevelTransformer;
|
|
6332
|
+
declare const base_formatLogObj: typeof formatLogObj;
|
|
6333
|
+
declare const base_insertIntoLogCache: typeof insertIntoLogCache;
|
|
6334
|
+
declare const base__defaultStdout: typeof _defaultStdout;
|
|
6335
|
+
declare const base_ID: typeof ID;
|
|
6336
|
+
declare const base_init: typeof init;
|
|
6337
|
+
declare const base_log: typeof log;
|
|
6338
|
+
declare const base_debug: typeof debug;
|
|
6339
|
+
declare const base_info: typeof info;
|
|
6340
|
+
declare const base_warn: typeof warn;
|
|
6341
|
+
declare const base_error: typeof error;
|
|
6342
|
+
declare const base_fatal: typeof fatal;
|
|
6343
|
+
declare namespace base {
|
|
6344
|
+
export {
|
|
6345
|
+
base_sessionId as sessionId,
|
|
6346
|
+
base_logLevelTransformer as logLevelTransformer,
|
|
6347
|
+
base_formatLogObj as formatLogObj,
|
|
6348
|
+
base_insertIntoLogCache as insertIntoLogCache,
|
|
6349
|
+
base__defaultStdout as _defaultStdout,
|
|
6350
|
+
base_ID as ID,
|
|
6351
|
+
base_init as init,
|
|
6352
|
+
base_log as log,
|
|
6353
|
+
base_debug as debug,
|
|
6354
|
+
base_info as info,
|
|
6355
|
+
base_warn as warn,
|
|
6356
|
+
base_error as error,
|
|
6357
|
+
base_fatal as fatal,
|
|
6358
|
+
};
|
|
6359
|
+
}
|
|
6360
|
+
|
|
6361
|
+
/** *********************实时日志上报***************** */
|
|
6362
|
+
|
|
6363
|
+
/**
|
|
6364
|
+
* 缓存日志实时
|
|
6365
|
+
* @param logLevel 日志等级
|
|
6366
|
+
* @param tagId 日志标签
|
|
6367
|
+
* @param content 日志内容
|
|
6368
|
+
*/
|
|
6369
|
+
declare function reportLog(logLevel: LogLevel, tagId: string, content: string, logSource?: LogSource): void;
|
|
6370
|
+
|
|
6371
|
+
/** ******************************************旧Logger类,fix兼容用,逐步废弃 ********************************** **/
|
|
6372
|
+
|
|
6373
|
+
/**
|
|
6374
|
+
* @description 兼容旧版用法,建议用Logger静态方法
|
|
6375
|
+
* 1、不符合新版Web日志规范
|
|
6376
|
+
* 2、不支持自定义TagId
|
|
6377
|
+
* 3、后续可能删除,要逐步迁移新Web规范
|
|
6378
|
+
*/
|
|
6379
|
+
declare class Logger {
|
|
6380
|
+
readonly tagId: string;
|
|
6381
|
+
readonly logSource?: LogSource | undefined;
|
|
6382
|
+
private readonly initiator?;
|
|
6383
|
+
/**
|
|
6384
|
+
*
|
|
6385
|
+
* @param tagId
|
|
6386
|
+
* @param logSource 类型
|
|
6387
|
+
* @param initiator 发起方(A: APP 层,L: Lib 层)
|
|
6388
|
+
*/
|
|
6389
|
+
constructor(tagId: string, logSource?: LogSource | undefined, initiator?: string | undefined);
|
|
6390
|
+
/**
|
|
6391
|
+
* 本地控制台日志输出级别
|
|
6392
|
+
*/
|
|
6393
|
+
private _localLogLevel;
|
|
6394
|
+
/**
|
|
6395
|
+
* 自定义本地日志输出函数
|
|
6396
|
+
*/
|
|
6397
|
+
private _customLogPrint?;
|
|
6398
|
+
/**
|
|
6399
|
+
* 为向前兼容,暂不删除
|
|
6400
|
+
*/
|
|
6401
|
+
private _stdout?;
|
|
6402
|
+
/**
|
|
6403
|
+
* 自定义本地打印日志级别
|
|
6404
|
+
* @param logLevel
|
|
6405
|
+
*/
|
|
6406
|
+
setLogLevel(logLevel?: LogLevel): void;
|
|
6407
|
+
/**
|
|
6408
|
+
* 自定义本地打印函数
|
|
6409
|
+
*/
|
|
6410
|
+
setLogStdout(stdout?: (level: LogLevel, content: string) => void): void;
|
|
6411
|
+
log(logLevel: LogLevel, ...args: any[]): void;
|
|
6412
|
+
debug: (...args: any[]) => void;
|
|
6413
|
+
info: (...args: any[]) => void;
|
|
6414
|
+
warn: (...args: any[]) => void;
|
|
6415
|
+
error: (...args: any[]) => void;
|
|
6416
|
+
fatal: (...args: any[]) => void;
|
|
6417
|
+
/**
|
|
6418
|
+
* @deprecated
|
|
6419
|
+
* 函数已废弃,使用 `setLogLevel` 与 `setStdout` 方法替代
|
|
6420
|
+
*/
|
|
6421
|
+
set(outLevel: LogLevel, stdout?: (level: LogLevel, ...args: any[]) => void): void;
|
|
6422
|
+
/**
|
|
6423
|
+
* 接口已废弃,改用 `setLogStdout`
|
|
6424
|
+
* @param stdout
|
|
6425
|
+
* @deprecated
|
|
6426
|
+
*/
|
|
6427
|
+
setStdout(stdout?: (level: LogLevel, msgTag: string, ...args: any[]) => void): void;
|
|
6428
|
+
reportLog: typeof reportLog;
|
|
6429
|
+
}
|
|
6430
|
+
declare const _default: Logger;
|
|
6431
|
+
|
|
6432
|
+
declare const randomNum: (min: number, max: number) => number;
|
|
6433
|
+
declare const getUUID: () => string;
|
|
6434
|
+
declare const getUUID22: () => string;
|
|
6435
|
+
|
|
6353
6436
|
/**
|
|
6354
6437
|
* 预定义的验证规则,只包含`值类型`数据验证
|
|
6355
6438
|
* 引用类型数据需使用自定义 validator 校验函数进行校验
|
|
@@ -6386,7 +6469,11 @@ declare enum AssertRules {
|
|
|
6386
6469
|
/**
|
|
6387
6470
|
* ChannelId 验证,必须为 String 且不超过 20 位 且不能包含下划线
|
|
6388
6471
|
*/
|
|
6389
|
-
CHANNEL_ID = 7
|
|
6472
|
+
CHANNEL_ID = 7,
|
|
6473
|
+
/**
|
|
6474
|
+
* 类型为会话
|
|
6475
|
+
*/
|
|
6476
|
+
CONVERSATION = 8
|
|
6390
6477
|
}
|
|
6391
6478
|
declare class RCAssertError extends Error {
|
|
6392
6479
|
constructor(message?: string);
|
|
@@ -6577,10 +6664,14 @@ declare enum CONNECTION_TYPE {
|
|
|
6577
6664
|
WEBSOCKET = "websocket",
|
|
6578
6665
|
COMET = "comet"
|
|
6579
6666
|
}
|
|
6667
|
+
declare const REAT_TIME_LOG_SIZE = 500;
|
|
6668
|
+
declare const DB_LOG_MAX_SIZE = 100000;
|
|
6669
|
+
declare const DB_LOG_FLUSH_FREQUENCY = 3000;
|
|
6670
|
+
declare const ONE_LOG_SIZE_MAX = 1000;
|
|
6580
6671
|
|
|
6581
6672
|
/**
|
|
6582
6673
|
* engine 版本号
|
|
6583
6674
|
*/
|
|
6584
6675
|
declare const version: string;
|
|
6585
6676
|
|
|
6586
|
-
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, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_CHATROOM_PULL_INTERVAL_TIME, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRecallMsgContent, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUltraExMsgOptions, IUltraGroupOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel,
|
|
6677
|
+
export { AEngine, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogExtensions, ILogInfo, ILogInit, IM_CHATROOM_PULL_INTERVAL_TIME, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptInfo, IRealTimeLog, IRecallMsgContent, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUltraExMsgOptions, IUltraGroupOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogSource, LogTagId, Logger, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, clone, cloneByJSON, _default as engineLogger, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, randomNum, todo, usingCppEngine, validate, version };
|