@rongcloud/engine 5.5.0-enterprise.1 → 5.5.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 +148 -16
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -540,7 +540,7 @@ declare enum ErrorCode {
|
|
|
540
540
|
/**
|
|
541
541
|
* HTTP 请求失败。
|
|
542
542
|
*/
|
|
543
|
-
|
|
543
|
+
RC_HTTP_REQ_FAIL = 30005,
|
|
544
544
|
/**
|
|
545
545
|
* HTTP 接收失败。
|
|
546
546
|
*/
|
|
@@ -931,7 +931,8 @@ declare enum ErrorCode {
|
|
|
931
931
|
/**
|
|
932
932
|
* 聊天室设置批量kv,一次不能超过10个
|
|
933
933
|
*/
|
|
934
|
-
CHATROOM_KV_STORE_OUT_LIMIT = 23429
|
|
934
|
+
CHATROOM_KV_STORE_OUT_LIMIT = 23429,
|
|
935
|
+
SEARCH_PROPS_LIMIT_ERROR = 35022
|
|
935
936
|
}
|
|
936
937
|
|
|
937
938
|
/**
|
|
@@ -1363,12 +1364,16 @@ declare enum LogTagId {
|
|
|
1363
1364
|
L_SEND_MSG_R = "L-send_msg-R",
|
|
1364
1365
|
L_PULL_MSG_T = "L-pull_msg-T",
|
|
1365
1366
|
L_PULL_MSG_R = "L-pull_msg-R",
|
|
1367
|
+
L_PULL_MSG_O = "L-pull_msg-O",
|
|
1368
|
+
A_PULL_MSG_O = "A-pull_msg-O",
|
|
1366
1369
|
L_PULL_ULTRA_MSG_T = "L-pull_ultra_msg-T",
|
|
1367
1370
|
L_PULL_ULTRA_MSG_R = "L-pull_ultra_msg-R",
|
|
1368
1371
|
L_PULL_CHATROOM_KV_T = "L-pull_chatroom_kv-T",
|
|
1369
1372
|
L_PULL_CHATROOM_KV_R = "L-pull_chatroom_kv-R",
|
|
1370
1373
|
L_PULL_CHATROOM_MSG_T = "L-pull_chatroom_msg-T",
|
|
1371
1374
|
L_PULL_CHATROOM_MSG_R = "L-pull_chatroom_msg-R",
|
|
1375
|
+
L_RECEIVE_MSG_O = "L-receive_msg-O",
|
|
1376
|
+
L_RECEIVE_SYNC_MSG_O = "L-receive_sync_msg-O",
|
|
1372
1377
|
A_DELETE_MESSAGES_S = "A-delete_messages-S",
|
|
1373
1378
|
P_DELETE_MSG_S = "P-delete_msg-S",
|
|
1374
1379
|
L_PULL_CONVERSATION_S = "L-pull_conversation-S",
|
|
@@ -1407,7 +1412,8 @@ declare enum LogTagId {
|
|
|
1407
1412
|
* PB 数据编码错误
|
|
1408
1413
|
*/
|
|
1409
1414
|
L_PB_ENCODE_E = "L-pb-encode-E",
|
|
1410
|
-
L_PB_DECODE_E = "L-pb-decode-E"
|
|
1415
|
+
L_PB_DECODE_E = "L-pb-decode-E",
|
|
1416
|
+
L_NOTIFY_NAVI_CHANGE_E = "L-notify_navi_change-E"
|
|
1411
1417
|
}
|
|
1412
1418
|
|
|
1413
1419
|
/**
|
|
@@ -2114,8 +2120,9 @@ interface ISendMsgOptions {
|
|
|
2114
2120
|
channelId?: string;
|
|
2115
2121
|
/**
|
|
2116
2122
|
* 客户端的消息标识
|
|
2123
|
+
* 重发消息时用到,重发消息的消息 ID
|
|
2117
2124
|
*/
|
|
2118
|
-
messageId?:
|
|
2125
|
+
messageId?: number;
|
|
2119
2126
|
/**
|
|
2120
2127
|
* 超级群专有字段,是否断档,若断档需要客户判断是否拉取
|
|
2121
2128
|
*/
|
|
@@ -2242,6 +2249,44 @@ interface IBlockedMessageInfo {
|
|
|
2242
2249
|
[key: string]: any;
|
|
2243
2250
|
};
|
|
2244
2251
|
}
|
|
2252
|
+
/**
|
|
2253
|
+
* 超级群获取指定会话未读 @ 消息列表参数
|
|
2254
|
+
*/
|
|
2255
|
+
interface IUltraGroupUnreadMentionedOption {
|
|
2256
|
+
/**
|
|
2257
|
+
* 会话 ID
|
|
2258
|
+
*/
|
|
2259
|
+
targetId: string;
|
|
2260
|
+
/**
|
|
2261
|
+
* 频道 ID
|
|
2262
|
+
*/
|
|
2263
|
+
channelId?: string;
|
|
2264
|
+
/**
|
|
2265
|
+
* 消息的时间戳,首次获取传 0, 后续查询传未读 @ 列表中的消息时间戳
|
|
2266
|
+
*/
|
|
2267
|
+
sentTime: number;
|
|
2268
|
+
/**
|
|
2269
|
+
* 数据个数,最大50
|
|
2270
|
+
*/
|
|
2271
|
+
count: number;
|
|
2272
|
+
}
|
|
2273
|
+
/**
|
|
2274
|
+
* 超级群获取指定会话 @ 未读消息列表结果
|
|
2275
|
+
*/
|
|
2276
|
+
interface IUltraUnreadMsg {
|
|
2277
|
+
/**
|
|
2278
|
+
* 消息 ID
|
|
2279
|
+
*/
|
|
2280
|
+
messageUId?: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* 消息时间戳
|
|
2283
|
+
*/
|
|
2284
|
+
sentTime: number;
|
|
2285
|
+
/**
|
|
2286
|
+
* @ 类型: 1 所有人;2: 部分人
|
|
2287
|
+
*/
|
|
2288
|
+
mentionedType?: number;
|
|
2289
|
+
}
|
|
2245
2290
|
|
|
2246
2291
|
/**
|
|
2247
2292
|
* TODO: 确定对外暴露的必要性
|
|
@@ -2332,6 +2377,10 @@ interface IReceivedConversationByTag extends IReceivedConversation {
|
|
|
2332
2377
|
}
|
|
2333
2378
|
interface IUltraGroupConversation extends IReceivedConversation {
|
|
2334
2379
|
channelType?: UltraGroupChannelType;
|
|
2380
|
+
/**
|
|
2381
|
+
* 第一条未读消息
|
|
2382
|
+
*/
|
|
2383
|
+
firstUnreadMessage?: IUltraUnreadMsg | null;
|
|
2335
2384
|
}
|
|
2336
2385
|
/**
|
|
2337
2386
|
* 设置会话状态 参数 信息
|
|
@@ -2426,6 +2475,13 @@ interface IUltraChannelDeleteInfo {
|
|
|
2426
2475
|
channelType: UltraGroupChannelType;
|
|
2427
2476
|
deleteTime: number;
|
|
2428
2477
|
}
|
|
2478
|
+
/**
|
|
2479
|
+
* 获取超级群获取指定会话未读 @ 消息列表
|
|
2480
|
+
*/
|
|
2481
|
+
interface IUltraUnreadConversation {
|
|
2482
|
+
targetId: string;
|
|
2483
|
+
channelId?: string;
|
|
2484
|
+
}
|
|
2429
2485
|
|
|
2430
2486
|
/**
|
|
2431
2487
|
* 导航信息数据就结构
|
|
@@ -2583,7 +2639,12 @@ interface INaviInfo {
|
|
|
2583
2639
|
bosAddr?: string;
|
|
2584
2640
|
/**
|
|
2585
2641
|
* 阿里上传配置,字符串数组,数组顺序代表 七牛、百度、阿里云 上传权重
|
|
2586
|
-
* @example
|
|
2642
|
+
* @example
|
|
2643
|
+
* ```
|
|
2644
|
+
* `[{"qiniu":"upload.qiniup.com","p":"1"},
|
|
2645
|
+
* {"baidu":"gz.bcebos.com","p":"2"},
|
|
2646
|
+
* {"aliyun":"oss-cn-beijing.aliyuncs.com","p":"3"}]`
|
|
2647
|
+
* ```
|
|
2587
2648
|
*/
|
|
2588
2649
|
ossConfig?: string;
|
|
2589
2650
|
/**
|
|
@@ -2640,6 +2701,10 @@ interface INaviInfo {
|
|
|
2640
2701
|
* 防黑产开关, 1: 打开,0:关闭
|
|
2641
2702
|
*/
|
|
2642
2703
|
openAnti?: number;
|
|
2704
|
+
/**
|
|
2705
|
+
* 鉴权认证
|
|
2706
|
+
*/
|
|
2707
|
+
jwt?: string;
|
|
2643
2708
|
}
|
|
2644
2709
|
|
|
2645
2710
|
interface IChatroomEntryListenerData {
|
|
@@ -3933,6 +3998,10 @@ declare class DataCodec {
|
|
|
3933
3998
|
* 格式化超级群变更后消息列表
|
|
3934
3999
|
*/
|
|
3935
4000
|
private _formatUltraMsgList;
|
|
4001
|
+
/**
|
|
4002
|
+
* 格式化超级群获取指定会话未读 @ 消息列表
|
|
4003
|
+
*/
|
|
4004
|
+
private _formatUltraGroupUnreadMentionedList;
|
|
3936
4005
|
/**
|
|
3937
4006
|
* 格式化会话列表
|
|
3938
4007
|
*/
|
|
@@ -4054,8 +4123,12 @@ declare class DataCodec {
|
|
|
4054
4123
|
*/
|
|
4055
4124
|
encodeMsgQuery(option: IUltraMsgQueryOptions): any[];
|
|
4056
4125
|
/**
|
|
4057
|
-
*
|
|
4126
|
+
* 序列化获取超级群获取指定会话未读 @ 消息列表参数
|
|
4058
4127
|
*/
|
|
4128
|
+
encodeUnreadMentionedMsgQuery(option: IUltraGroupUnreadMentionedOption): any[];
|
|
4129
|
+
/**
|
|
4130
|
+
* 正在输入中
|
|
4131
|
+
*/
|
|
4059
4132
|
encodeOperateStatus(targetId: string, conversationType: ConversationType, channelId: string, operationType: OperateStatus): any[];
|
|
4060
4133
|
/**
|
|
4061
4134
|
* 加入退出聊天室
|
|
@@ -4568,6 +4641,10 @@ declare class APIContext {
|
|
|
4568
4641
|
* rtc 数据变更通知 pluginContext
|
|
4569
4642
|
*/
|
|
4570
4643
|
private _rtcDataChange;
|
|
4644
|
+
/**
|
|
4645
|
+
* 导航数据变更通知
|
|
4646
|
+
*/
|
|
4647
|
+
private _naviDataChange;
|
|
4571
4648
|
/**
|
|
4572
4649
|
* 业务层事件监听器挂载点
|
|
4573
4650
|
*/
|
|
@@ -4621,6 +4698,11 @@ declare class APIContext {
|
|
|
4621
4698
|
* 获取当前缓存的导航数据
|
|
4622
4699
|
*/
|
|
4623
4700
|
getInfoFromCache(): INaviInfo | null;
|
|
4701
|
+
/**
|
|
4702
|
+
* 请求服务导航数据
|
|
4703
|
+
*/
|
|
4704
|
+
reqNaviInfo(refreshNavi: boolean, traceId?: string): IPromiseResult<INaviInfo | null>;
|
|
4705
|
+
private _registerMessageSearchPropsMapping;
|
|
4624
4706
|
/**
|
|
4625
4707
|
* 消息注册
|
|
4626
4708
|
* @description 消息注册需在应用初始化完成前进行
|
|
@@ -4636,6 +4718,7 @@ declare class APIContext {
|
|
|
4636
4718
|
* @param listener
|
|
4637
4719
|
*/
|
|
4638
4720
|
registerRTCSignalingListener(listener?: (buffer: Uint8Array) => void): void;
|
|
4721
|
+
checkSearchPropsMsg(messageType: string, msgContent: any): IAsyncRes;
|
|
4639
4722
|
/**
|
|
4640
4723
|
* 发送消息
|
|
4641
4724
|
* @param conversationType
|
|
@@ -4737,6 +4820,13 @@ declare class APIContext {
|
|
|
4737
4820
|
* @param includeMuted 包含已设置免打扰的会话
|
|
4738
4821
|
*/
|
|
4739
4822
|
getTotalUnreadCount(channelId: string, conversationTypes?: ConversationType[], includeMuted?: boolean): Promise<IAsyncRes<number>>;
|
|
4823
|
+
/**
|
|
4824
|
+
* 获取会话指定免打扰级别未读消息总数
|
|
4825
|
+
* @param conversationTypes 会话类型
|
|
4826
|
+
* @param levels 免打扰级别
|
|
4827
|
+
* @param isMentioned 是否是 @ 消息未读数
|
|
4828
|
+
*/
|
|
4829
|
+
getTotalUnreadCountByLevels(conversationTypes: ConversationType[], levels: NotificationLevel[], isMentioned?: boolean): Promise<IAsyncRes<number>>;
|
|
4740
4830
|
/**
|
|
4741
4831
|
* 获取第一个未读消息
|
|
4742
4832
|
*/
|
|
@@ -4749,10 +4839,8 @@ declare class APIContext {
|
|
|
4749
4839
|
* * 0: 未设置(向上查询群或者APP级别设置)//存量数据中0表示未设置
|
|
4750
4840
|
* * 1: 群聊超级群仅@消息通知(现在通知)单聊代表全部消息通知
|
|
4751
4841
|
* * 2: @ 指定用户通知
|
|
4752
|
-
* * 3: @ 群用户组通知,通知用户组暂未实现,暂不暴露出去
|
|
4753
4842
|
* * 4: @ 群全员通知
|
|
4754
4843
|
* * 5: 消息通知被屏蔽,即不接收消息通知
|
|
4755
|
-
* @desc 注意单聊的 level 只有 -1、0、1
|
|
4756
4844
|
*/
|
|
4757
4845
|
setConversationNotificationLevel(conversationType: ConversationType, targetId: string, notificationLevel?: NotificationLevel, channelId?: string): Promise<ErrorCode>;
|
|
4758
4846
|
setConversationStatus(conversationType: ConversationType, targetId: string, isTop?: boolean, notificationStatus?: 1 | 2, channelId?: string): Promise<ErrorCode>;
|
|
@@ -5010,13 +5098,13 @@ declare class APIContext {
|
|
|
5010
5098
|
* @todo
|
|
5011
5099
|
* @param targetId
|
|
5012
5100
|
*/
|
|
5013
|
-
getUltraGroupUnreadMentionedCountByTargetId(targetId: string): Promise<IAsyncRes<number>>;
|
|
5101
|
+
getUltraGroupUnreadMentionedCountByTargetId(targetId: string, levels?: NotificationLevel[]): Promise<IAsyncRes<number>>;
|
|
5014
5102
|
/**
|
|
5015
5103
|
* 获取指定超级群所有频道未读数
|
|
5016
5104
|
* @param targetId 超级群 Id
|
|
5017
5105
|
* @returns 未读数
|
|
5018
5106
|
*/
|
|
5019
|
-
getUltraGroupUnreadCountByTargetId(targetId: string): Promise<IAsyncRes<number>>;
|
|
5107
|
+
getUltraGroupUnreadCountByTargetId(targetId: string, levels?: NotificationLevel[]): Promise<IAsyncRes<number>>;
|
|
5020
5108
|
/**
|
|
5021
5109
|
* 超级群类型未读数
|
|
5022
5110
|
* @param isMentioned 是否是 @ 消息,默认为 false
|
|
@@ -5024,6 +5112,18 @@ declare class APIContext {
|
|
|
5024
5112
|
*/
|
|
5025
5113
|
getAllUltraGroupUnreadCount(isMentioned?: boolean): Promise<IAsyncRes<number>>;
|
|
5026
5114
|
getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
|
|
5115
|
+
/**
|
|
5116
|
+
* 超级群类型获取未读 @ 消息列表
|
|
5117
|
+
* @param options
|
|
5118
|
+
* @returns 指定会话未读 @ 消息列表
|
|
5119
|
+
*/
|
|
5120
|
+
getUltraGroupUnreadMentionedMessages(options: IUltraGroupUnreadMentionedOption): Promise<IAsyncRes<IUltraUnreadMsg[]>>;
|
|
5121
|
+
/**
|
|
5122
|
+
* 超级群获取指定会话第一条未读消息时间戳
|
|
5123
|
+
* @param conversation
|
|
5124
|
+
* @returns 指定会话第一条未读消息时间戳
|
|
5125
|
+
*/
|
|
5126
|
+
getUltraGroupFirstUnreadMessageTimestamp(options: IUltraGroupOption): Promise<IAsyncRes<IUltraUnreadMsg>>;
|
|
5027
5127
|
/**
|
|
5028
5128
|
* 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
|
|
5029
5129
|
* 对于未实现的方法,接口响应 Unsupport 错误码
|
|
@@ -5234,6 +5334,10 @@ declare class APIContext {
|
|
|
5234
5334
|
declare class PluginContext {
|
|
5235
5335
|
protected readonly _context: APIContext;
|
|
5236
5336
|
constructor(_context: APIContext);
|
|
5337
|
+
/**
|
|
5338
|
+
* 重新请求服务导航数据
|
|
5339
|
+
*/
|
|
5340
|
+
refetchNaviInfo(): IPromiseResult<INaviInfo | null>;
|
|
5237
5341
|
/**
|
|
5238
5342
|
* 获取 context
|
|
5239
5343
|
*/
|
|
@@ -5253,6 +5357,8 @@ declare class PluginContext {
|
|
|
5253
5357
|
* 用户主动断开连接的事件通知
|
|
5254
5358
|
*/
|
|
5255
5359
|
ondisconnect?(): void;
|
|
5360
|
+
/** 导航数据变更通知 */
|
|
5361
|
+
onnavidatachange?(naviInfo: INaviInfo): void;
|
|
5256
5362
|
/**
|
|
5257
5363
|
* 接收 IM 连接状态变更通知
|
|
5258
5364
|
* @param status
|
|
@@ -5555,6 +5661,8 @@ interface IEngineWatcher {
|
|
|
5555
5661
|
*/
|
|
5556
5662
|
onRTCDataChange: (data: IServerRTCRoomEntry[], roomId?: string) => void;
|
|
5557
5663
|
pullFinished: () => void;
|
|
5664
|
+
/** 导航数据变更 */
|
|
5665
|
+
onNaviDataChange: (naviInfo: INaviInfo) => void;
|
|
5558
5666
|
}
|
|
5559
5667
|
/**
|
|
5560
5668
|
* 引擎定义
|
|
@@ -5584,6 +5692,7 @@ declare abstract class AEngine implements IEngine {
|
|
|
5584
5692
|
*/
|
|
5585
5693
|
registerRTCSignalingListener(listener: ((buffer: Uint8Array) => void) | undefined): void;
|
|
5586
5694
|
abstract requestNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
5695
|
+
abstract updateNaviInfo(naviInfo: INaviInfo): void;
|
|
5587
5696
|
/**
|
|
5588
5697
|
* 获取导航数据
|
|
5589
5698
|
* @param token
|
|
@@ -5734,6 +5843,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5734
5843
|
* @param includeMuted 包含已设置免打扰的会话
|
|
5735
5844
|
*/
|
|
5736
5845
|
abstract getAllConversationUnreadCount(channelId: string, conversationTypes: ConversationType[], includeMuted: boolean): IPromiseResult<number>;
|
|
5846
|
+
/**
|
|
5847
|
+
* 获取会话指定免打扰级别的未读总数
|
|
5848
|
+
*/
|
|
5849
|
+
abstract getTotalUnreadCountByLevels(conversationTypes: ConversationType[], levels: NotificationLevel[], isMentioned?: boolean): Promise<IAsyncRes<number>>;
|
|
5737
5850
|
/**
|
|
5738
5851
|
* 获取指定会话未读数
|
|
5739
5852
|
*/
|
|
@@ -5995,13 +6108,13 @@ declare abstract class AEngine implements IEngine {
|
|
|
5995
6108
|
* @todo
|
|
5996
6109
|
* @param targetId
|
|
5997
6110
|
*/
|
|
5998
|
-
abstract getUltraGroupUnreadMentionedCountByTargetId(targetId: string): Promise<IAsyncRes<number>>;
|
|
6111
|
+
abstract getUltraGroupUnreadMentionedCountByTargetId(targetId: string, levels?: NotificationLevel[]): Promise<IAsyncRes<number>>;
|
|
5999
6112
|
/**
|
|
6000
6113
|
* 获取指定超级群所有子频道未读数
|
|
6001
6114
|
* @param targetId 超级群 Id
|
|
6002
6115
|
* @returns 未读数
|
|
6003
6116
|
*/
|
|
6004
|
-
abstract getUltraGroupUnreadCountByTargetId(targetId: string): IPromiseResult<number>;
|
|
6117
|
+
abstract getUltraGroupUnreadCountByTargetId(targetId: string, levels?: NotificationLevel[]): IPromiseResult<number>;
|
|
6005
6118
|
/**
|
|
6006
6119
|
* 超级群类型未读数
|
|
6007
6120
|
* @param isMentioned 是否是 @ 消息
|
|
@@ -6208,6 +6321,14 @@ declare abstract class AEngine implements IEngine {
|
|
|
6208
6321
|
*/
|
|
6209
6322
|
abstract getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
|
|
6210
6323
|
abstract clearData(): Promise<IAsyncRes<boolean>>;
|
|
6324
|
+
/**
|
|
6325
|
+
* 超级群获取指定会话未读 @ 消息列表
|
|
6326
|
+
*/
|
|
6327
|
+
abstract getUltraGroupUnreadMentionedMessages(options: IUltraGroupUnreadMentionedOption): Promise<IAsyncRes<IUltraUnreadMsg[]>>;
|
|
6328
|
+
/**
|
|
6329
|
+
* 超级群获取指定会话第一条未读消息时间戳
|
|
6330
|
+
*/
|
|
6331
|
+
abstract getUltraGroupFirstUnreadMessageTimestamp(options: IUltraGroupOption): Promise<IAsyncRes<IUltraUnreadMsg>>;
|
|
6211
6332
|
/**
|
|
6212
6333
|
* RTC 通用调用接口
|
|
6213
6334
|
* 在非 Comet 协议下,入参 sourceData 应为 ArrayBuffer 数据,返回结果为 Uint8Array 数据
|
|
@@ -6416,6 +6537,7 @@ declare const isHttpUrl: (value: any) => boolean;
|
|
|
6416
6537
|
*/
|
|
6417
6538
|
declare const notEmptyObject: (val: Object) => boolean;
|
|
6418
6539
|
declare const isValidConversationType: (conversation: number) => boolean;
|
|
6540
|
+
declare const isValidNotificationLevel: (level: number) => boolean;
|
|
6419
6541
|
declare const isValidChannelId: (value: any) => boolean;
|
|
6420
6542
|
/**
|
|
6421
6543
|
* 判断是否是一个有效的文件类型
|
|
@@ -6430,7 +6552,6 @@ declare const isValidExpansion: (expansion: {
|
|
|
6430
6552
|
[key: string]: string;
|
|
6431
6553
|
} | undefined) => IIsValidExpansion;
|
|
6432
6554
|
|
|
6433
|
-
/** ******************************************新重构logger,按照Web新日志规范上报 ********************************** **/
|
|
6434
6555
|
declare const sessionId: string;
|
|
6435
6556
|
/**
|
|
6436
6557
|
* logLevelTransformer
|
|
@@ -6511,8 +6632,6 @@ declare namespace base {
|
|
|
6511
6632
|
*/
|
|
6512
6633
|
declare function reportLog(logLevel: LogLevel, tagId: string, content: string, logSource?: LogSource): void;
|
|
6513
6634
|
|
|
6514
|
-
/** ******************************************旧Logger类,fix兼容用,逐步废弃 ********************************** **/
|
|
6515
|
-
|
|
6516
6635
|
/**
|
|
6517
6636
|
* @description 兼容旧版用法,建议用Logger静态方法
|
|
6518
6637
|
* 1、不符合新版Web日志规范
|
|
@@ -6672,6 +6791,19 @@ declare const pushJSONToConfigs: (pushStr: string, pushId: string) => {
|
|
|
6672
6791
|
};
|
|
6673
6792
|
declare const isValidChrmEntryKey: (key: string) => Boolean;
|
|
6674
6793
|
declare const isValidChrmEntryValue: (value: string) => Boolean;
|
|
6794
|
+
/**
|
|
6795
|
+
* 端上生成 MessageId
|
|
6796
|
+
* 规则与协议栈生成 clientUid 一致, 得到 64 位数字。
|
|
6797
|
+
* 生成规则:
|
|
6798
|
+
* 1st: 取时间戳低 32 位, (前边空一位)。
|
|
6799
|
+
* 2nd: 偏移量 [0 -> 2047] 自增,超出从 0 开始, 占 11 位。
|
|
6800
|
+
* 3rd: 随机数 [0 -> 2^20 - 1], 占 20 位。
|
|
6801
|
+
* 作用:
|
|
6802
|
+
* 1. 用于消息发送前在消息列表中渲染,发送成功或失败后更新消息的 标识。
|
|
6803
|
+
* 2. 消息滤重,参考文档:https://rongcloud.yuque.com/tbvylv/znhprz/zwlg5d
|
|
6804
|
+
* 注意: 这里的 messageId 与 websocketChannel 中的 messageId 不是同一个。
|
|
6805
|
+
*/
|
|
6806
|
+
declare const getClientMessageId: () => number;
|
|
6675
6807
|
|
|
6676
6808
|
/**
|
|
6677
6809
|
* @todo 后期禁用此方法,容易滥用,且会丢失上下文的数据类型跟踪
|
|
@@ -6817,4 +6949,4 @@ declare const ONE_LOG_SIZE_MAX = 1000;
|
|
|
6817
6949
|
*/
|
|
6818
6950
|
declare const version: string;
|
|
6819
6951
|
|
|
6820
|
-
export { AEngine, APIContext, AbsCodec, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, 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, IUltraGroupConversation, IUltraGroupOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, 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, MessageBlockSourceType, 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, RTCKeyMaps, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, 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 };
|
|
6952
|
+
export { AEngine, APIContext, AbsCodec, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, 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, IOperateStatusNotify, 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, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, 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, MessageBlockSourceType, 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, RTCKeyMaps, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, clone, cloneByJSON, _default as engineLogger, forEach, formatConnectResponseCode, getBrowser, getClientMessageId, getMimeKey, getUUID, getUUID22, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, randomNum, todo, usingCppEngine, validate, version };
|