@rongcloud/engine 5.7.1 → 5.7.2-beem.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +269 -145
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -454,7 +454,7 @@ declare enum ErrorCode {
|
|
|
454
454
|
*/
|
|
455
455
|
CHATROOM_KV_OVERWRITE_INVALID = 23424,
|
|
456
456
|
/**
|
|
457
|
-
*
|
|
457
|
+
* 未开通聊天室属性自定义设置。请在开发者后台"免费基础功能"页面开通"聊天室属性自定义设置
|
|
458
458
|
*/
|
|
459
459
|
CHATROOM_KV_STORE_NOT_OPEN = 23426,
|
|
460
460
|
/**
|
|
@@ -1462,7 +1462,8 @@ declare enum LogTagId {
|
|
|
1462
1462
|
A_SET_MSG_CONTENT_O = "A_SET_MSG_CONTENT_O",
|
|
1463
1463
|
A_REMOVE_PROXY_O = "A-remove_proxy-O",
|
|
1464
1464
|
A_SET_PROXY_O = "A-set_proxy-O",
|
|
1465
|
-
A_TEST_PROXY_O = "A-test_proxy-O"
|
|
1465
|
+
A_TEST_PROXY_O = "A-test_proxy-O",
|
|
1466
|
+
L_WEBSOCKET_DISACCORD_E = "L-websocket_disaccord-e"
|
|
1466
1467
|
}
|
|
1467
1468
|
|
|
1468
1469
|
/**
|
|
@@ -1530,7 +1531,8 @@ declare enum UltraMsgChangeType {
|
|
|
1530
1531
|
MSG_EXPANSION = 1,
|
|
1531
1532
|
MSG_MODIFY = 2,
|
|
1532
1533
|
MSG_RECALL = 3,
|
|
1533
|
-
CHANNEL_CHANGE = 4
|
|
1534
|
+
CHANNEL_CHANGE = 4,
|
|
1535
|
+
USER_GROUP_CHANGE = 5
|
|
1534
1536
|
}
|
|
1535
1537
|
/** PB 结构 MsgChange 属性 subChangeType 对应枚举值 */
|
|
1536
1538
|
declare enum UltraMsgSubChangeType {
|
|
@@ -1541,6 +1543,13 @@ declare enum UltraMsgSubChangeType {
|
|
|
1541
1543
|
CHANNEL_USER_KICKED = 5,
|
|
1542
1544
|
PUBLIC_TO_PRIVATE_USER_NOT_IN = 6
|
|
1543
1545
|
}
|
|
1546
|
+
declare enum UserGroupChangeType {
|
|
1547
|
+
REMOVE_USER_GROUP = 1,
|
|
1548
|
+
JOIN_USER_GROUP = 2,
|
|
1549
|
+
EXIT_USER_GROUP = 3,
|
|
1550
|
+
CHANNEL_BIND_USER_GROUP = 4,
|
|
1551
|
+
CHANNEL_UNBIND_USER_GROUP = 5
|
|
1552
|
+
}
|
|
1544
1553
|
|
|
1545
1554
|
/**
|
|
1546
1555
|
* 音视频模式
|
|
@@ -1686,10 +1695,33 @@ interface IAndroidPushConfig {
|
|
|
1686
1695
|
* 小米的 channelId
|
|
1687
1696
|
*/
|
|
1688
1697
|
channelIdMi?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* 小米 Large icon 链接
|
|
1700
|
+
* Large icon 可以出现在大图版和多字版消息中,显示在右边。
|
|
1701
|
+
* 国内版仅 MIUI12 以上版本支持,以下版本均不支持;国际版支持。
|
|
1702
|
+
* 图片要求:大小 120 * 120px,格式为 png 或者 jpg 格式。
|
|
1703
|
+
*/
|
|
1704
|
+
miLargeIconUrl?: string;
|
|
1689
1705
|
/**
|
|
1690
1706
|
* 华为的 channelId
|
|
1691
1707
|
*/
|
|
1692
1708
|
channelIdHW?: string;
|
|
1709
|
+
/**
|
|
1710
|
+
* 华为推送消息分类
|
|
1711
|
+
* 更多信息请参考华为消息分类标准文档: https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/message-classification-0000001149358835
|
|
1712
|
+
* 5.7.3 版本开始支持
|
|
1713
|
+
*/
|
|
1714
|
+
categoryHW?: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* 华为推送消息级别
|
|
1717
|
+
* LOW: 表示消息为资讯营销
|
|
1718
|
+
* NORMAL: 消息为服务与通讯
|
|
1719
|
+
*/
|
|
1720
|
+
importanceHW?: 'NORMAL' | 'LOW';
|
|
1721
|
+
/**
|
|
1722
|
+
* 华为通知类型的推送所使用的通知图片 url
|
|
1723
|
+
*/
|
|
1724
|
+
imageUrlHW?: string;
|
|
1693
1725
|
/**
|
|
1694
1726
|
* OPPO 的 channelId
|
|
1695
1727
|
*/
|
|
@@ -1916,6 +1948,10 @@ interface IReceivedMessage {
|
|
|
1916
1948
|
* 拉取历史消息时表示该消息是否为超级群频道类型(仅超级群有效)
|
|
1917
1949
|
*/
|
|
1918
1950
|
channelType?: UltraGroupChannelType;
|
|
1951
|
+
/**
|
|
1952
|
+
* 扩展内容
|
|
1953
|
+
*/
|
|
1954
|
+
extraContent?: string;
|
|
1919
1955
|
}
|
|
1920
1956
|
/**
|
|
1921
1957
|
* @category Interface
|
|
@@ -2134,6 +2170,10 @@ interface ISendMsgOptions {
|
|
|
2134
2170
|
* 超级群专有字段,是否断档,若断档需要客户判断是否拉取
|
|
2135
2171
|
*/
|
|
2136
2172
|
isInterrupt?: boolean;
|
|
2173
|
+
/**
|
|
2174
|
+
* 标识该消息是否为重发消息,仅 electron 中有效。
|
|
2175
|
+
*/
|
|
2176
|
+
isResend?: boolean;
|
|
2137
2177
|
}
|
|
2138
2178
|
interface IInsertMsgOptions {
|
|
2139
2179
|
senderUserId: string;
|
|
@@ -2151,6 +2191,37 @@ interface IInsertMsgOptions {
|
|
|
2151
2191
|
expansionMsg?: string;
|
|
2152
2192
|
channelId: string;
|
|
2153
2193
|
}
|
|
2194
|
+
interface IInsertMessage {
|
|
2195
|
+
conversationType: number;
|
|
2196
|
+
targetId: string;
|
|
2197
|
+
channelId: string;
|
|
2198
|
+
messageDirection: number;
|
|
2199
|
+
messageType: string;
|
|
2200
|
+
content: any;
|
|
2201
|
+
messageUId: string;
|
|
2202
|
+
senderUserId: string;
|
|
2203
|
+
sentStatus?: number;
|
|
2204
|
+
sentTime?: number;
|
|
2205
|
+
disableNotification?: boolean;
|
|
2206
|
+
canIncludeExpansion?: boolean;
|
|
2207
|
+
expansion?: {
|
|
2208
|
+
[key: string]: any;
|
|
2209
|
+
} | null;
|
|
2210
|
+
receivedStatus?: number;
|
|
2211
|
+
/**
|
|
2212
|
+
* 插入消息是否计入未读数: true 计数 false 不计数, 默认不计数
|
|
2213
|
+
*/
|
|
2214
|
+
isUnread?: boolean;
|
|
2215
|
+
/**
|
|
2216
|
+
* 消息搜索关键字
|
|
2217
|
+
*/
|
|
2218
|
+
searchContent?: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* 来源
|
|
2221
|
+
*/
|
|
2222
|
+
source?: string;
|
|
2223
|
+
isMentioned?: boolean;
|
|
2224
|
+
}
|
|
2154
2225
|
interface ISendExMsgOptions {
|
|
2155
2226
|
channelId: string;
|
|
2156
2227
|
conversationType: ConversationType;
|
|
@@ -2927,6 +2998,7 @@ declare enum NetworkType {
|
|
|
2927
2998
|
UNKONWN = "unknown"
|
|
2928
2999
|
}
|
|
2929
3000
|
interface IWebSocket {
|
|
3001
|
+
id: number;
|
|
2930
3002
|
/**
|
|
2931
3003
|
* 监听连接建立事件,此时 WebSocket 实例已准备好收发数据
|
|
2932
3004
|
* @param callback
|
|
@@ -3016,7 +3088,32 @@ interface IExtraMethod {
|
|
|
3016
3088
|
}
|
|
3017
3089
|
|
|
3018
3090
|
/**
|
|
3019
|
-
*
|
|
3091
|
+
* 连接协议
|
|
3092
|
+
* 截止 5.7.4 版本,暂不支持 rpp 和 quic
|
|
3093
|
+
* v2 版本文档: https://a5bq662kv5.feishu.cn/wiki/wikcnfo3lEo2CPbonDxuXFvU0Kb#K7nbeN
|
|
3094
|
+
*/
|
|
3095
|
+
declare enum EConnectProtocol {
|
|
3096
|
+
RMTP = 1,
|
|
3097
|
+
TLS = 2,
|
|
3098
|
+
RPP = 3,
|
|
3099
|
+
QUIC = 4,
|
|
3100
|
+
WS = 5,
|
|
3101
|
+
WSS = 6
|
|
3102
|
+
}
|
|
3103
|
+
interface INaviRequestOption {
|
|
3104
|
+
appkey: string;
|
|
3105
|
+
uri: string;
|
|
3106
|
+
token: string;
|
|
3107
|
+
platform: string;
|
|
3108
|
+
isTcp?: boolean;
|
|
3109
|
+
}
|
|
3110
|
+
interface ICmpData {
|
|
3111
|
+
addr: string;
|
|
3112
|
+
protocol: EConnectProtocol;
|
|
3113
|
+
weight: number;
|
|
3114
|
+
}
|
|
3115
|
+
/**
|
|
3116
|
+
* 导航信息数据结构
|
|
3020
3117
|
*/
|
|
3021
3118
|
interface INaviInfo {
|
|
3022
3119
|
/**
|
|
@@ -3043,15 +3140,18 @@ interface INaviInfo {
|
|
|
3043
3140
|
/**
|
|
3044
3141
|
* CMP 服务 Websocket 连接地址,包含域名与端口,不含 ws 或 wss 协议头
|
|
3045
3142
|
* @example a.domain.com:443
|
|
3143
|
+
* @note 在 V2 版本废弃
|
|
3046
3144
|
*/
|
|
3047
3145
|
server: string;
|
|
3048
3146
|
/**
|
|
3049
3147
|
* 备用 CMP 服务地址,包含域名与端口,不含 ws 或 wss 协议头,多个备用地址以 ',' 分割
|
|
3050
3148
|
* @example a.domain.com:443,b.domain.com:443
|
|
3149
|
+
* @note 在 V2 版本废弃
|
|
3051
3150
|
*/
|
|
3052
3151
|
backupServer?: string;
|
|
3053
3152
|
/**
|
|
3054
3153
|
* 备用 CMP 服务地址,POST 请求 TCP 连接返回的是 bs 字段,非 backupServer 字段
|
|
3154
|
+
* @note 在 V2 版本废弃
|
|
3055
3155
|
*/
|
|
3056
3156
|
bs?: string;
|
|
3057
3157
|
/**
|
|
@@ -3090,6 +3190,7 @@ interface INaviInfo {
|
|
|
3090
3190
|
* @description
|
|
3091
3191
|
* 1. 公有云下,该地址为七牛云服务器地址
|
|
3092
3192
|
* 2. 私有云下,该地址为私有云自研文件服务器地址
|
|
3193
|
+
* @note 在 V2 版本废弃
|
|
3093
3194
|
*/
|
|
3094
3195
|
uploadServer: string;
|
|
3095
3196
|
/**
|
|
@@ -3138,6 +3239,7 @@ interface INaviInfo {
|
|
|
3138
3239
|
* @todo
|
|
3139
3240
|
* 1. 确定其控制的功能
|
|
3140
3241
|
* 2. 确定 web 相关性
|
|
3242
|
+
* @note 在 V2 版本废弃
|
|
3141
3243
|
*/
|
|
3142
3244
|
isFormatted: number;
|
|
3143
3245
|
/**
|
|
@@ -3172,6 +3274,7 @@ interface INaviInfo {
|
|
|
3172
3274
|
* 百度 BOS 存储服务地址
|
|
3173
3275
|
* @description 公有云独有配置
|
|
3174
3276
|
* @example `gz.bcebos.com`
|
|
3277
|
+
* @deprecated 已废弃
|
|
3175
3278
|
*/
|
|
3176
3279
|
bosAddr?: string;
|
|
3177
3280
|
/**
|
|
@@ -3228,6 +3331,7 @@ interface INaviInfo {
|
|
|
3228
3331
|
onlinelogserver?: string;
|
|
3229
3332
|
/**
|
|
3230
3333
|
* 链路加密字段,内容为 JSON 字符串,仅限 C++ 可用
|
|
3334
|
+
* @note 在 V2 版本废弃
|
|
3231
3335
|
*/
|
|
3232
3336
|
crypto?: string;
|
|
3233
3337
|
/**
|
|
@@ -3242,6 +3346,24 @@ interface INaviInfo {
|
|
|
3242
3346
|
* 鉴权认证
|
|
3243
3347
|
*/
|
|
3244
3348
|
jwt?: string;
|
|
3349
|
+
/**
|
|
3350
|
+
* 数据中心
|
|
3351
|
+
*/
|
|
3352
|
+
dc?: string;
|
|
3353
|
+
/**
|
|
3354
|
+
* 是否开启 tls
|
|
3355
|
+
*/
|
|
3356
|
+
openTLS?: number;
|
|
3357
|
+
/**
|
|
3358
|
+
* V2 版本中新增字段
|
|
3359
|
+
* 服务地址列表
|
|
3360
|
+
*/
|
|
3361
|
+
serverAddr?: ICmpData[];
|
|
3362
|
+
/**
|
|
3363
|
+
* V2 版本中新增字段
|
|
3364
|
+
* 新版本控制tag
|
|
3365
|
+
*/
|
|
3366
|
+
excludeLogTag?: string;
|
|
3245
3367
|
}
|
|
3246
3368
|
|
|
3247
3369
|
declare type INaviCache = {
|
|
@@ -3293,7 +3415,17 @@ declare abstract class BasicNavi {
|
|
|
3293
3415
|
* @param timeout 请求超时时间
|
|
3294
3416
|
* @param traceId
|
|
3295
3417
|
*/
|
|
3296
|
-
protected abstract httpRequest(uri: string, appkey: string, token: string,
|
|
3418
|
+
protected abstract httpRequest(uri: string, appkey: string, token: string, traceId: string, finished: boolean): IPromiseResult<INaviInfo>;
|
|
3419
|
+
/**
|
|
3420
|
+
* 向目标导航服务发送请求
|
|
3421
|
+
* @param uri 导航服务地址
|
|
3422
|
+
* @param appkey
|
|
3423
|
+
* @param token
|
|
3424
|
+
* @param version
|
|
3425
|
+
* @param timeout 请求超时时间
|
|
3426
|
+
* @param traceId
|
|
3427
|
+
*/
|
|
3428
|
+
protected abstract httpRequestV2(uri: string, appkey: string, token: string, traceId: string, finished: boolean): IPromiseResult<INaviInfo>;
|
|
3297
3429
|
/**
|
|
3298
3430
|
* 转换 Navi 接口 HTTP 请求状态码为 ErrorCode 定义
|
|
3299
3431
|
* @param code
|
|
@@ -3322,6 +3454,12 @@ declare abstract class BasicNavi {
|
|
|
3322
3454
|
* @param voipCallInfo
|
|
3323
3455
|
*/
|
|
3324
3456
|
updateVoipCallInfo(token: string, voipCallInfo: string): void;
|
|
3457
|
+
protected getNaviV2RequestOption(option: INaviRequestOption): IRequest;
|
|
3458
|
+
/**
|
|
3459
|
+
* 是否使用 v2 版本导航
|
|
3460
|
+
* 仅私有云 rcx 使用 v1 版本
|
|
3461
|
+
*/
|
|
3462
|
+
useV2Navi(): boolean;
|
|
3325
3463
|
}
|
|
3326
3464
|
|
|
3327
3465
|
/**
|
|
@@ -3337,8 +3475,9 @@ declare class WebSocketNavi extends BasicNavi {
|
|
|
3337
3475
|
/**
|
|
3338
3476
|
* 小程序平台服务地址,多个地址以 ',' 分割
|
|
3339
3477
|
*/
|
|
3340
|
-
miniCmpUris: string, navigators?: string[]);
|
|
3341
|
-
protected httpRequest(uri: string, appkey: string, token: string,
|
|
3478
|
+
miniCmpUris: string[], navigators?: string[]);
|
|
3479
|
+
protected httpRequest(uri: string, appkey: string, token: string, traceId: string, finished: boolean): IPromiseResult<INaviInfo>;
|
|
3480
|
+
protected httpRequestV2(uri: string, appkey: string, token: string, traceId: string): IPromiseResult<INaviInfo>;
|
|
3342
3481
|
protected getNaviCache(formatedToken: string): INaviCache | null;
|
|
3343
3482
|
protected setNaviCache(formatedToken: string, naviInfo: INaviInfo): void;
|
|
3344
3483
|
}
|
|
@@ -3506,6 +3645,11 @@ declare abstract class AConnectionMgr {
|
|
|
3506
3645
|
* @returns
|
|
3507
3646
|
*/
|
|
3508
3647
|
getCurrentUserId(): string;
|
|
3648
|
+
/**
|
|
3649
|
+
* 缓存的 cmp 权重
|
|
3650
|
+
* disconnect 时重置
|
|
3651
|
+
*/
|
|
3652
|
+
private cmpWeightCache?;
|
|
3509
3653
|
/**
|
|
3510
3654
|
* 修改连接状态
|
|
3511
3655
|
* @param status
|
|
@@ -3605,6 +3749,15 @@ declare abstract class AConnectionMgr {
|
|
|
3605
3749
|
* 清理重连计时器
|
|
3606
3750
|
*/
|
|
3607
3751
|
private stopReconnectTimer;
|
|
3752
|
+
/**
|
|
3753
|
+
* 获取 CMP 列表
|
|
3754
|
+
*/
|
|
3755
|
+
protected getCmpList(navi: INaviInfo, isTcp?: boolean): ICmpData[];
|
|
3756
|
+
/**
|
|
3757
|
+
* 修改 CMP 权重
|
|
3758
|
+
*/
|
|
3759
|
+
protected updateCmpWeight(cmpUrl: string, isRise?: boolean): void;
|
|
3760
|
+
private clearCmpWeightCache;
|
|
3608
3761
|
}
|
|
3609
3762
|
|
|
3610
3763
|
/**
|
|
@@ -4058,6 +4211,10 @@ interface IEngine {
|
|
|
4058
4211
|
* 获取消息
|
|
4059
4212
|
*/
|
|
4060
4213
|
getMessage(messageId: number | string): IPromiseResult<IReceivedMessage>;
|
|
4214
|
+
/**
|
|
4215
|
+
* 设置消息附加信息
|
|
4216
|
+
*/
|
|
4217
|
+
setTextMessageExtra(messageId: number, content: any): Promise<ErrorCode>;
|
|
4061
4218
|
/**
|
|
4062
4219
|
* 设置消息内容
|
|
4063
4220
|
*/
|
|
@@ -4389,9 +4546,6 @@ interface IEndRoomPKOptions {
|
|
|
4389
4546
|
keys: string[];
|
|
4390
4547
|
}
|
|
4391
4548
|
|
|
4392
|
-
/**
|
|
4393
|
-
* 消息送达相关接口
|
|
4394
|
-
*/
|
|
4395
4549
|
/**
|
|
4396
4550
|
* 送达的用户信息
|
|
4397
4551
|
* @hidden
|
|
@@ -4435,6 +4589,29 @@ interface IGroupMessageDeliverStatus {
|
|
|
4435
4589
|
list: IGroupMessageDeliveredStatusInfo[];
|
|
4436
4590
|
}
|
|
4437
4591
|
|
|
4592
|
+
/**
|
|
4593
|
+
* 用户组变更数据
|
|
4594
|
+
*/
|
|
4595
|
+
interface IUserGroupChangeData {
|
|
4596
|
+
conversation: IConversationIdentifier;
|
|
4597
|
+
userGroupIds: string[];
|
|
4598
|
+
}
|
|
4599
|
+
/**
|
|
4600
|
+
* 频道和用户组关系变更数据
|
|
4601
|
+
*/
|
|
4602
|
+
interface IChannelAndUserGroupChangeData {
|
|
4603
|
+
conversation: IConversationOption;
|
|
4604
|
+
channelType: UltraGroupChannelType;
|
|
4605
|
+
userGroupIds: string[];
|
|
4606
|
+
}
|
|
4607
|
+
interface IUserGroupStatusInfo {
|
|
4608
|
+
userGroupDisband?: IUserGroupChangeData[];
|
|
4609
|
+
userAdded?: IUserGroupChangeData[];
|
|
4610
|
+
userRemoved?: IUserGroupChangeData[];
|
|
4611
|
+
userGroupBindChannel?: IChannelAndUserGroupChangeData[];
|
|
4612
|
+
userGroupUnBindChannel?: IChannelAndUserGroupChangeData[];
|
|
4613
|
+
}
|
|
4614
|
+
|
|
4438
4615
|
/**
|
|
4439
4616
|
* 定义已废弃,请使用 `IRemoveChatroomEntries` 替换
|
|
4440
4617
|
* @deprecated
|
|
@@ -4590,6 +4767,14 @@ declare const deInitLogDB: () => Promise<void>;
|
|
|
4590
4767
|
*/
|
|
4591
4768
|
declare const transcsv: (log: ILogData) => string;
|
|
4592
4769
|
|
|
4770
|
+
/**
|
|
4771
|
+
* 会话标识
|
|
4772
|
+
* @category Interface
|
|
4773
|
+
*/
|
|
4774
|
+
interface IConversationIdentifier {
|
|
4775
|
+
conversationType: ConversationType;
|
|
4776
|
+
targetId: string;
|
|
4777
|
+
}
|
|
4593
4778
|
/**
|
|
4594
4779
|
* 会话属性
|
|
4595
4780
|
* @category Interface
|
|
@@ -4714,11 +4899,6 @@ interface IWatcher {
|
|
|
4714
4899
|
conversationState?: IConversationStateListener;
|
|
4715
4900
|
chatroomState?: IChatroomListener;
|
|
4716
4901
|
expansion?: IExpansionListener;
|
|
4717
|
-
/**
|
|
4718
|
-
* 为兼容老版本 RTCLib 与 CallLib 接收消息的方式,新版本消息走插件机制
|
|
4719
|
-
* @deprecated
|
|
4720
|
-
*/
|
|
4721
|
-
rtcInnerWatcher?: IRTCInnerListener;
|
|
4722
4902
|
/**
|
|
4723
4903
|
* 标签的增删改监听
|
|
4724
4904
|
*/
|
|
@@ -4755,6 +4935,7 @@ interface IWatcher {
|
|
|
4755
4935
|
ultraGroupChannelChangeType?: (list: IUltraChannelChangeInfo[]) => void;
|
|
4756
4936
|
ultraGroupChannelUserKicked?: (list: IUltraChannelUserKickedInfo[]) => void;
|
|
4757
4937
|
ultraGroupChannelDelete?: (list: IUltraChannelDeleteInfo[]) => void;
|
|
4938
|
+
userGroupStatus?: (data: IUserGroupStatusInfo) => void;
|
|
4758
4939
|
}
|
|
4759
4940
|
interface IAPIContextOption {
|
|
4760
4941
|
/**
|
|
@@ -4887,6 +5068,23 @@ declare class Codec<T> {
|
|
|
4887
5068
|
private fixInt64Values;
|
|
4888
5069
|
}
|
|
4889
5070
|
|
|
5071
|
+
declare const keymaps: CodecPBMaps;
|
|
5072
|
+
/**
|
|
5073
|
+
* 仅限 IM 内部包使用,禁止 RTCLib 直接使用从而导致业务依赖
|
|
5074
|
+
*/
|
|
5075
|
+
declare type RTCKeyMaps = typeof keymaps;
|
|
5076
|
+
|
|
5077
|
+
declare class RTCEntryHandler {
|
|
5078
|
+
private _pullQueue;
|
|
5079
|
+
private _isPulling;
|
|
5080
|
+
private _engine;
|
|
5081
|
+
private _pullTime;
|
|
5082
|
+
constructor(engine: AEngine);
|
|
5083
|
+
private _startPull;
|
|
5084
|
+
pullEntry(roomId: string, timestamp: number): void;
|
|
5085
|
+
reset(): void;
|
|
5086
|
+
}
|
|
5087
|
+
|
|
4890
5088
|
declare class APIContext {
|
|
4891
5089
|
private _runtime;
|
|
4892
5090
|
private static _context?;
|
|
@@ -4910,7 +5108,8 @@ declare class APIContext {
|
|
|
4910
5108
|
* RTC 相关的编解码模块,用于向前兼容 RTC 旧版本的编解码,
|
|
4911
5109
|
* 包括向 CppEngine 提供 RTC 业务编解码能力
|
|
4912
5110
|
*/
|
|
4913
|
-
|
|
5111
|
+
readonly rtcCodec: Codec<RTCKeyMaps>;
|
|
5112
|
+
readonly rtcKVManager: RTCEntryHandler;
|
|
4914
5113
|
/**
|
|
4915
5114
|
* engine 内部日志工具
|
|
4916
5115
|
*/
|
|
@@ -4976,6 +5175,7 @@ declare class APIContext {
|
|
|
4976
5175
|
private _ultraGroupChannelChangeTypeListener;
|
|
4977
5176
|
private _ultraGroupChannelUserKickedListener;
|
|
4978
5177
|
private _ultraGroupChannelDeleteListener;
|
|
5178
|
+
private _userGroupStatusListener;
|
|
4979
5179
|
/**
|
|
4980
5180
|
* rtc 数据变更通知 pluginContext
|
|
4981
5181
|
*/
|
|
@@ -5010,7 +5210,7 @@ declare class APIContext {
|
|
|
5010
5210
|
getServerTime(): number;
|
|
5011
5211
|
getDeviceId(): string;
|
|
5012
5212
|
getCurrentUserId(): string;
|
|
5013
|
-
getConnectionStatus():
|
|
5213
|
+
getConnectionStatus(): RCConnectionStatus;
|
|
5014
5214
|
get token(): string;
|
|
5015
5215
|
refetchNaviInfo(): IPromiseResult<INaviInfo | null>;
|
|
5016
5216
|
/**
|
|
@@ -5176,6 +5376,8 @@ declare class APIContext {
|
|
|
5176
5376
|
*/
|
|
5177
5377
|
setConversationNotificationLevel(conversationType: ConversationType, targetId: string, notificationLevel?: NotificationLevel, channelId?: string): Promise<ErrorCode>;
|
|
5178
5378
|
setConversationStatus(conversationType: ConversationType, targetId: string, isTop?: boolean, notificationStatus?: 1 | 2, channelId?: string): Promise<ErrorCode>;
|
|
5379
|
+
setConversationsMuteStatus(statusList: ISetConversationStatusOptions[]): Promise<ErrorCode>;
|
|
5380
|
+
setConversationsTopStatus(statusList: ISetConversationStatusOptions[]): Promise<ErrorCode>;
|
|
5179
5381
|
saveConversationMessageDraft(conversationType: ConversationType, targetId: string, draft: string, channelId?: string): Promise<ErrorCode>;
|
|
5180
5382
|
getConversationMessageDraft(conversationType: ConversationType, targetId: string, channelId?: string): Promise<IAsyncRes<string>>;
|
|
5181
5383
|
clearConversationMessageDraft(conversationType: ConversationType, targetId: string, channelId?: string): Promise<ErrorCode>;
|
|
@@ -5523,6 +5725,11 @@ declare class APIContext {
|
|
|
5523
5725
|
* 向本地插入一条消息,不发送到服务器
|
|
5524
5726
|
*/
|
|
5525
5727
|
insertMessage(conversationType: ConversationType, targetId: string, insertOptions: IInsertMsgOptions): Promise<IAsyncRes<IReceivedMessage>>;
|
|
5728
|
+
batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<IAsyncRes<boolean>>;
|
|
5729
|
+
/**
|
|
5730
|
+
* 获取会话所有消息数
|
|
5731
|
+
*/
|
|
5732
|
+
getMessageCount(conversationType: ConversationType, targetId: string, channelId?: string): Promise<IAsyncRes<number>>;
|
|
5526
5733
|
/**
|
|
5527
5734
|
* 删除本地消息
|
|
5528
5735
|
*/
|
|
@@ -5539,6 +5746,10 @@ declare class APIContext {
|
|
|
5539
5746
|
* 获取本地消息
|
|
5540
5747
|
*/
|
|
5541
5748
|
getMessage(messageId: number | string): Promise<IAsyncRes<IReceivedMessage>>;
|
|
5749
|
+
/**
|
|
5750
|
+
* 设置消息附加信息
|
|
5751
|
+
*/
|
|
5752
|
+
setTextMessageExtra(messageId: number, value: string): Promise<ErrorCode>;
|
|
5542
5753
|
/**
|
|
5543
5754
|
* 设置消息内容
|
|
5544
5755
|
*/
|
|
@@ -5624,74 +5835,7 @@ declare class APIContext {
|
|
|
5624
5835
|
code: ErrorCode;
|
|
5625
5836
|
buffer?: Uint8Array;
|
|
5626
5837
|
}>;
|
|
5627
|
-
/**
|
|
5628
|
-
* 加入房间
|
|
5629
|
-
* @param roomId
|
|
5630
|
-
* @param mode 房间模式:直播 or 会议
|
|
5631
|
-
* @param mediaType 直播房间模式下的媒体资源类型
|
|
5632
|
-
*/
|
|
5633
|
-
joinRTCRoom(roomId: string, mode: RTCMode, mediaType?: number, joinType?: RTCJoinType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): Promise<IAsyncRes<IJoinRTCRoomData>>;
|
|
5634
|
-
quitRTCRoom(roomId: string): Promise<ErrorCode>;
|
|
5635
5838
|
rtcPing(roomId: string, mode: number, mediaType?: number): Promise<IAsyncRes<any>>;
|
|
5636
|
-
getRTCRoomInfo(roomId: string): Promise<IAsyncRes<IRTCRoomInfo>>;
|
|
5637
|
-
getRTCUserInfoList(roomId: string): Promise<IAsyncRes<IRTCUsers>>;
|
|
5638
|
-
getRTCUserInfo(roomId: string): IPromiseResult<unknown>;
|
|
5639
|
-
setRTCUserInfo(roomId: string, key: string, value: string): Promise<ErrorCode>;
|
|
5640
|
-
removeRTCUserInfo(roomId: string, keys: string[]): Promise<ErrorCode>;
|
|
5641
|
-
setRTCData(roomId: string, key: string, value: string, isInner: boolean, apiType: RTCApiType, message?: {
|
|
5642
|
-
name: string;
|
|
5643
|
-
content: string;
|
|
5644
|
-
}): Promise<ErrorCode>;
|
|
5645
|
-
setRTCTotalRes(roomId: string, message: {
|
|
5646
|
-
name: string;
|
|
5647
|
-
content: string;
|
|
5648
|
-
}, valueInfo: string, objectName: string, mcuValInfo?: string): Promise<ErrorCode>;
|
|
5649
|
-
setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
|
|
5650
|
-
getRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType): Promise<IAsyncRes<KVString>>;
|
|
5651
|
-
removeRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, message?: {
|
|
5652
|
-
name: string;
|
|
5653
|
-
content: string;
|
|
5654
|
-
}): Promise<ErrorCode>;
|
|
5655
|
-
setRTCOutData(roomId: string, rtcData: unknown, type: number, message: unknown): Promise<ErrorCode>;
|
|
5656
|
-
getRTCOutData(roomId: string, userIds: string[]): IPromiseResult<unknown>;
|
|
5657
|
-
getRTCToken(roomId: string, mode: number, broadcastType?: number): Promise<IAsyncRes<IRtcTokenData>>;
|
|
5658
|
-
setRTCState(roomId: string, report: string): Promise<ErrorCode>;
|
|
5659
|
-
getRTCUserList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
5660
|
-
/**
|
|
5661
|
-
* 直播观众加房间
|
|
5662
|
-
*/
|
|
5663
|
-
joinLivingRoomAsAudience(roomId: string, mode: RTCMode, broadcastType?: number): Promise<IAsyncRes<{
|
|
5664
|
-
token: string;
|
|
5665
|
-
kvEntries: IServerRTCRoomEntry[];
|
|
5666
|
-
}>>;
|
|
5667
|
-
/**
|
|
5668
|
-
* 直播观众退出房间
|
|
5669
|
-
*/
|
|
5670
|
-
quitLivingRoomAsAudience(roomId: string): Promise<ErrorCode>;
|
|
5671
|
-
/**
|
|
5672
|
-
* 直播身份切换
|
|
5673
|
-
*/
|
|
5674
|
-
rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): Promise<IAsyncRes<IJoinRTCRoomData>>;
|
|
5675
|
-
/**
|
|
5676
|
-
* 获取加入 RTC 房间的用户信息(当前仅能查自己的)
|
|
5677
|
-
*/
|
|
5678
|
-
getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
|
|
5679
|
-
/**
|
|
5680
|
-
* 连麦 PK 请求
|
|
5681
|
-
*/
|
|
5682
|
-
requestRoomPK(options: IReqRoomPKOptions): Promise<ErrorCode>;
|
|
5683
|
-
/**
|
|
5684
|
-
* 取消连麦 PK 请求
|
|
5685
|
-
*/
|
|
5686
|
-
cancelRoomPK(options: ICancelRoomPKOptions): Promise<ErrorCode>;
|
|
5687
|
-
/**
|
|
5688
|
-
* 响应连麦 PK 请求
|
|
5689
|
-
*/
|
|
5690
|
-
responseRoomPK(options: IResRoomPKOptions): Promise<ErrorCode>;
|
|
5691
|
-
/**
|
|
5692
|
-
* 结束连麦 PK
|
|
5693
|
-
*/
|
|
5694
|
-
endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
|
|
5695
5839
|
/**
|
|
5696
5840
|
* SDK设置聊天室关联的rtc房间
|
|
5697
5841
|
*/
|
|
@@ -5772,7 +5916,7 @@ declare class PluginContext {
|
|
|
5772
5916
|
/**
|
|
5773
5917
|
* 获取当前连接状态
|
|
5774
5918
|
*/
|
|
5775
|
-
getConnectionStatus():
|
|
5919
|
+
getConnectionStatus(): RCConnectionStatus;
|
|
5776
5920
|
getDeviceId(): string;
|
|
5777
5921
|
/**
|
|
5778
5922
|
* 发送消息
|
|
@@ -5842,11 +5986,11 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
5842
5986
|
*/
|
|
5843
5987
|
rtcPingResVersion(roomId: string, mode: number, broadcastType?: number): Promise<IAsyncRes<any>>;
|
|
5844
5988
|
/**
|
|
5845
|
-
* @deprecated
|
|
5989
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5846
5990
|
*/
|
|
5847
5991
|
getRTCRoomInfo(roomId: string): IPromiseResult<IRTCRoomInfo>;
|
|
5848
5992
|
/**
|
|
5849
|
-
* @deprecated
|
|
5993
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5850
5994
|
*/
|
|
5851
5995
|
getRTCUserInfoList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
5852
5996
|
/**
|
|
@@ -5854,11 +5998,11 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
5854
5998
|
*/
|
|
5855
5999
|
getRTCUserInfo(roomId: string): IPromiseResult<unknown>;
|
|
5856
6000
|
/**
|
|
5857
|
-
* @deprecated
|
|
6001
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5858
6002
|
*/
|
|
5859
6003
|
setRTCUserInfo(roomId: string, key: string, value: string): Promise<ErrorCode>;
|
|
5860
6004
|
/**
|
|
5861
|
-
* @deprecated
|
|
6005
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5862
6006
|
*/
|
|
5863
6007
|
removeRTCUserInfo(roomId: string, keys: string[]): Promise<ErrorCode>;
|
|
5864
6008
|
/**
|
|
@@ -5938,11 +6082,11 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
5938
6082
|
*/
|
|
5939
6083
|
getRTCToken(roomId: string, mode: number, broadcastType?: number): IPromiseResult<IRtcTokenData>;
|
|
5940
6084
|
/**
|
|
5941
|
-
* @deprecated
|
|
6085
|
+
* @deprecated RTC 北极星数据上报
|
|
5942
6086
|
*/
|
|
5943
6087
|
setRTCState(roomId: string, report: string): Promise<ErrorCode>;
|
|
5944
6088
|
/**
|
|
5945
|
-
* @deprecated
|
|
6089
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5946
6090
|
*/
|
|
5947
6091
|
getRTCUserList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
5948
6092
|
/**
|
|
@@ -6014,12 +6158,6 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
6014
6158
|
getRTCJoinedUserInfo(userId: string): IPromiseResult<IRTCJoinedInfo[]>;
|
|
6015
6159
|
}
|
|
6016
6160
|
|
|
6017
|
-
declare const keymaps: CodecPBMaps;
|
|
6018
|
-
/**
|
|
6019
|
-
* 仅限 IM 内部包使用,禁止 RTCLib 直接使用从而导致业务依赖
|
|
6020
|
-
*/
|
|
6021
|
-
declare type RTCKeyMaps = typeof keymaps;
|
|
6022
|
-
|
|
6023
6161
|
interface IEngineWatcher extends IConnectionListener {
|
|
6024
6162
|
/**
|
|
6025
6163
|
* @param message 消息
|
|
@@ -6049,6 +6187,7 @@ interface IEngineWatcher extends IConnectionListener {
|
|
|
6049
6187
|
groupMessageDeliveredStatus: (data: IGroupMessageDeliverStatus) => void;
|
|
6050
6188
|
callInfo: (data: string) => void;
|
|
6051
6189
|
onNaviDataChange: (naviInfo: INaviInfo) => void;
|
|
6190
|
+
userGroupStatus: (info: IUserGroupStatusInfo) => void;
|
|
6052
6191
|
}
|
|
6053
6192
|
/**
|
|
6054
6193
|
* 引擎定义
|
|
@@ -6274,6 +6413,8 @@ declare abstract class AEngine {
|
|
|
6274
6413
|
* 批量设置会话 置顶、免打扰
|
|
6275
6414
|
*/
|
|
6276
6415
|
abstract batchSetConversationStatus(statusList: ISetConversationStatusOptions[]): Promise<ErrorCode>;
|
|
6416
|
+
abstract setConversationsMuteStatus(statusList: ISetConversationStatusOptions[]): Promise<ErrorCode>;
|
|
6417
|
+
abstract setConversationsTopStatus(statusList: ISetConversationStatusOptions[]): Promise<ErrorCode>;
|
|
6277
6418
|
abstract sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions,
|
|
6278
6419
|
/**
|
|
6279
6420
|
* c++ 消息写库后存在自增 Id,必要时需要向业务层暴露,JSEngine 无需实现
|
|
@@ -6600,6 +6741,16 @@ declare abstract class AEngine {
|
|
|
6600
6741
|
* 向本地插入一条消息,不发送到服务器
|
|
6601
6742
|
*/
|
|
6602
6743
|
abstract insertMessage(conversationType: ConversationType, targetId: string, insertOptions: IInsertMsgOptions): IPromiseResult<IReceivedMessage>;
|
|
6744
|
+
/**
|
|
6745
|
+
* 向本地批量插入消息
|
|
6746
|
+
* @param messages
|
|
6747
|
+
* @param checkDuplicate
|
|
6748
|
+
*/
|
|
6749
|
+
abstract batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): IPromiseResult<boolean>;
|
|
6750
|
+
/**
|
|
6751
|
+
* 查询会话消息数
|
|
6752
|
+
*/
|
|
6753
|
+
abstract getMessageCount(conversationType: ConversationType, targetId: string, channelId: string): IPromiseResult<number>;
|
|
6603
6754
|
/**
|
|
6604
6755
|
* 删除本地消息
|
|
6605
6756
|
*/
|
|
@@ -6616,6 +6767,10 @@ declare abstract class AEngine {
|
|
|
6616
6767
|
* 获取消息
|
|
6617
6768
|
*/
|
|
6618
6769
|
abstract getMessage(messageId: number | string): IPromiseResult<IReceivedMessage>;
|
|
6770
|
+
/**
|
|
6771
|
+
* 设置消息附加信息
|
|
6772
|
+
*/
|
|
6773
|
+
abstract setTextMessageExtra(messageId: number, value: string): Promise<ErrorCode>;
|
|
6619
6774
|
/**
|
|
6620
6775
|
* 设置消息内容
|
|
6621
6776
|
*/
|
|
@@ -6771,51 +6926,7 @@ declare abstract class AEngine {
|
|
|
6771
6926
|
buffer?: Uint8Array;
|
|
6772
6927
|
}>;
|
|
6773
6928
|
abstract rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<IAsyncRes<any>>;
|
|
6774
|
-
joinRTCRoom(roomId: string, mode: RTCMode, broadcastType?: number, joinType?: RTCJoinType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): IPromiseResult<IJoinRTCRoomData>;
|
|
6775
|
-
quitRTCRoom(roomId: string): Promise<ErrorCode>;
|
|
6776
|
-
getRTCRoomInfo(roomId: string): IPromiseResult<IRTCRoomInfo>;
|
|
6777
|
-
getRTCUserInfoList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
6778
|
-
getRTCUserInfo(roomId: string): IPromiseResult<unknown>;
|
|
6779
|
-
setRTCUserInfo(roomId: string, key: string, value: string): Promise<ErrorCode>;
|
|
6780
|
-
removeRTCUserInfo(roomId: string, keys: string[]): Promise<ErrorCode>;
|
|
6781
|
-
setRTCData(roomId: string, key: string, value: string, isInner: boolean, apiType: RTCApiType, message?: {
|
|
6782
|
-
name: string;
|
|
6783
|
-
content: string;
|
|
6784
|
-
}): Promise<ErrorCode>;
|
|
6785
|
-
/**
|
|
6786
|
-
* 全量订阅资源修改
|
|
6787
|
-
* @param roomId 房间 Id
|
|
6788
|
-
* @param message 向前兼容的消息内容
|
|
6789
|
-
* @param valueInfo 全量资源数据
|
|
6790
|
-
* @param objectName 全量 URI 消息名
|
|
6791
|
-
*/
|
|
6792
|
-
setRTCTotalRes(roomId: string, message: {
|
|
6793
|
-
name: string;
|
|
6794
|
-
content: string;
|
|
6795
|
-
}, valueInfo: string, objectName: string, mcuValInfo: string): Promise<ErrorCode>;
|
|
6796
|
-
getRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType): IPromiseResult<KVString>;
|
|
6797
|
-
removeRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, message?: {
|
|
6798
|
-
name: string;
|
|
6799
|
-
content: string;
|
|
6800
|
-
}): Promise<ErrorCode>;
|
|
6801
|
-
setRTCOutData(roomId: string, rtcData: unknown, type: number, message: unknown): Promise<ErrorCode>;
|
|
6802
|
-
getRTCOutData(roomId: string, userIds: string[]): IPromiseResult<unknown>;
|
|
6803
|
-
getRTCToken(roomId: string, mode: number, broadcastType?: number): IPromiseResult<IRtcTokenData>;
|
|
6804
|
-
setRTCState(roomId: string, report: string): Promise<ErrorCode>;
|
|
6805
|
-
getRTCUserList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
6806
|
-
joinLivingRoomAsAudience(roomId: string, mode: RTCMode, broadcastType?: number): Promise<IAsyncRes<{
|
|
6807
|
-
token: string;
|
|
6808
|
-
kvEntries: IServerRTCRoomEntry[];
|
|
6809
|
-
}>>;
|
|
6810
6929
|
pullRTCRoomEntry(roomId: string, _timestamp: number): Promise<IAsyncRes<IChrmKVPullData>>;
|
|
6811
|
-
quitLivingRoomAsAudience(roomId: string): Promise<ErrorCode>;
|
|
6812
|
-
rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): Promise<IAsyncRes<IJoinRTCRoomData>>;
|
|
6813
|
-
getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
|
|
6814
|
-
setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
|
|
6815
|
-
requestRoomPK(options: IReqRoomPKOptions): Promise<ErrorCode>;
|
|
6816
|
-
cancelRoomPK(options: ICancelRoomPKOptions): Promise<ErrorCode>;
|
|
6817
|
-
responseRoomPK(options: IResRoomPKOptions): Promise<ErrorCode>;
|
|
6818
|
-
endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
|
|
6819
6930
|
/**
|
|
6820
6931
|
* 设置聊天室关联的rtc房间
|
|
6821
6932
|
*/
|
|
@@ -7015,7 +7126,7 @@ declare function ID(): string;
|
|
|
7015
7126
|
/**
|
|
7016
7127
|
* @deprecated
|
|
7017
7128
|
*/
|
|
7018
|
-
declare function init(
|
|
7129
|
+
declare function init(_logger: BasicLogger): void;
|
|
7019
7130
|
/**
|
|
7020
7131
|
* @deprecated
|
|
7021
7132
|
*/
|
|
@@ -7302,6 +7413,14 @@ declare const PUBLIC_CLOUD_NAVI_URIS: string[];
|
|
|
7302
7413
|
* 小程序 websocket 连接地址
|
|
7303
7414
|
*/
|
|
7304
7415
|
declare const MINI_SOCKET_CONNECT_URIS: string[];
|
|
7416
|
+
/**
|
|
7417
|
+
* 七牛存储服务地址
|
|
7418
|
+
*/
|
|
7419
|
+
declare const QINIU_STORAGE_SERVER_URI: string;
|
|
7420
|
+
/**
|
|
7421
|
+
* 百度存储服务地址
|
|
7422
|
+
*/
|
|
7423
|
+
declare const BAIDU_STORAGE_SERVER_URI: string;
|
|
7305
7424
|
/**
|
|
7306
7425
|
* IM 接口超时时间,单位毫秒
|
|
7307
7426
|
*/
|
|
@@ -7363,8 +7482,13 @@ declare const REAT_TIME_LOG_SIZE: number;
|
|
|
7363
7482
|
declare const DB_LOG_MAX_SIZE = 100000;
|
|
7364
7483
|
declare const DB_LOG_FLUSH_FREQUENCY = 3000;
|
|
7365
7484
|
declare const ONE_LOG_SIZE_MAX = 1000;
|
|
7366
|
-
/**
|
|
7367
|
-
declare const
|
|
7485
|
+
/** 日志上报默认策略 */
|
|
7486
|
+
declare const DEFAULT_LOG_POLICY: {
|
|
7487
|
+
url: string;
|
|
7488
|
+
level: number;
|
|
7489
|
+
itv: number;
|
|
7490
|
+
times: number;
|
|
7491
|
+
};
|
|
7368
7492
|
/** SDK 版本号 */
|
|
7369
7493
|
declare const VERSION: string;
|
|
7370
7494
|
/**
|
|
@@ -7384,4 +7508,4 @@ declare type AbsCodec<T> = Codec<T>;
|
|
|
7384
7508
|
*/
|
|
7385
7509
|
declare const version: string;
|
|
7386
7510
|
|
|
7387
|
-
export { AConnectionMgr, AEngine, APIContext, AbsCodec, AppStorage, AssertRules, BasicLogger, BasicNavi, BasicReporter, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, Codec, CodecPBMaps, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, EnableLogL, ErrorCode, EventEmitter, FORMATED_VERSION, FileType, HTTP_TIMEOUT, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionListener, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDeletedExpansion, IDeliveredUser, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogDB, ILogData, ILogger, IM_CHATROOM_PULL_INTERVAL_TIME, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviCache, INaviInfo, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPluginGenerator, IProcessCache, IProcessInfo, IPromiseResult, IProxy, 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, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, IndexDBLogger, IndexDBReporter, RTCKeyMaps as InnerRTCKeyMaps, ItypingStateListener, KVString,
|
|
7511
|
+
export { AConnectionMgr, AEngine, APIContext, AbsCodec, AppStorage, AssertRules, BAIDU_STORAGE_SERVER_URI, BasicLogger, BasicNavi, BasicReporter, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, Codec, CodecPBMaps, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DEFAULT_LOG_POLICY, DelayTimer, EnableLogL, ErrorCode, EventEmitter, FORMATED_VERSION, FileType, HTTP_TIMEOUT, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionListener, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDeletedExpansion, IDeliveredUser, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IInsertMessage, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogDB, ILogData, ILogger, IM_CHATROOM_PULL_INTERVAL_TIME, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviCache, INaviInfo, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPluginGenerator, IProcessCache, IProcessInfo, IPromiseResult, IProxy, 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, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, IndexDBLogger, IndexDBReporter, RTCKeyMaps as InnerRTCKeyMaps, ItypingStateListener, KVString, LiveRole, LiveType, LogContent, LogL, LogLevel, LogSource, LogTagId, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OperateStatus, PUBLIC_CLOUD_NAVI_URIS, PluginContext, QINIU_STORAGE_SERVER_URI, RCAssertError, RCConnectionStatus, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, SentStatus, StoreKeys, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, UserGroupChangeType, VERSION, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketNavi, appendUrl, assert, clone, cloneByJSON, deInitLogDB, logger as engineLogger, forEach, getBrowser, getClientMessageId, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, initLogDB, isArray, isArrayBuffer, isBoolean, isConnnectAckCode as isConnnectAck, isDisconnectCode as isDisconnectedByServer, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isTypeInConversationList, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, transcsv, usingCppEngine, validate, version };
|