@rongcloud/engine 5.7.2 → 5.7.4
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 +107 -139
- 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
|
*/
|
|
@@ -2958,6 +2990,7 @@ declare enum NetworkType {
|
|
|
2958
2990
|
UNKONWN = "unknown"
|
|
2959
2991
|
}
|
|
2960
2992
|
interface IWebSocket {
|
|
2993
|
+
id: number;
|
|
2961
2994
|
/**
|
|
2962
2995
|
* 监听连接建立事件,此时 WebSocket 实例已准备好收发数据
|
|
2963
2996
|
* @param callback
|
|
@@ -3324,7 +3357,7 @@ declare abstract class BasicNavi {
|
|
|
3324
3357
|
* @param timeout 请求超时时间
|
|
3325
3358
|
* @param traceId
|
|
3326
3359
|
*/
|
|
3327
|
-
protected abstract httpRequest(uri: string, appkey: string, token: string, version: string, timeout: number, traceId: string): IPromiseResult<INaviInfo>;
|
|
3360
|
+
protected abstract httpRequest(uri: string, appkey: string, token: string, version: string, timeout: number, traceId: string, finished: boolean): IPromiseResult<INaviInfo>;
|
|
3328
3361
|
/**
|
|
3329
3362
|
* 转换 Navi 接口 HTTP 请求状态码为 ErrorCode 定义
|
|
3330
3363
|
* @param code
|
|
@@ -3369,7 +3402,7 @@ declare class WebSocketNavi extends BasicNavi {
|
|
|
3369
3402
|
* 小程序平台服务地址,多个地址以 ',' 分割
|
|
3370
3403
|
*/
|
|
3371
3404
|
miniCmpUris: string, navigators?: string[]);
|
|
3372
|
-
protected httpRequest(uri: string, appkey: string, token: string, version: string, timeout: number, traceId: string): IPromiseResult<INaviInfo>;
|
|
3405
|
+
protected httpRequest(uri: string, appkey: string, token: string, version: string, timeout: number, traceId: string, finished: boolean): IPromiseResult<INaviInfo>;
|
|
3373
3406
|
protected getNaviCache(formatedToken: string): INaviCache | null;
|
|
3374
3407
|
protected setNaviCache(formatedToken: string, naviInfo: INaviInfo): void;
|
|
3375
3408
|
}
|
|
@@ -4420,9 +4453,6 @@ interface IEndRoomPKOptions {
|
|
|
4420
4453
|
keys: string[];
|
|
4421
4454
|
}
|
|
4422
4455
|
|
|
4423
|
-
/**
|
|
4424
|
-
* 消息送达相关接口
|
|
4425
|
-
*/
|
|
4426
4456
|
/**
|
|
4427
4457
|
* 送达的用户信息
|
|
4428
4458
|
* @hidden
|
|
@@ -4466,6 +4496,29 @@ interface IGroupMessageDeliverStatus {
|
|
|
4466
4496
|
list: IGroupMessageDeliveredStatusInfo[];
|
|
4467
4497
|
}
|
|
4468
4498
|
|
|
4499
|
+
/**
|
|
4500
|
+
* 用户组变更数据
|
|
4501
|
+
*/
|
|
4502
|
+
interface IUserGroupChangeData {
|
|
4503
|
+
conversation: IConversationIdentifier;
|
|
4504
|
+
userGroupIds: string[];
|
|
4505
|
+
}
|
|
4506
|
+
/**
|
|
4507
|
+
* 频道和用户组关系变更数据
|
|
4508
|
+
*/
|
|
4509
|
+
interface IChannelAndUserGroupChangeData {
|
|
4510
|
+
conversation: IConversationOption;
|
|
4511
|
+
channelType: UltraGroupChannelType;
|
|
4512
|
+
userGroupIds: string[];
|
|
4513
|
+
}
|
|
4514
|
+
interface IUserGroupStatusInfo {
|
|
4515
|
+
userGroupDisband?: IUserGroupChangeData[];
|
|
4516
|
+
userAdded?: IUserGroupChangeData[];
|
|
4517
|
+
userRemoved?: IUserGroupChangeData[];
|
|
4518
|
+
userGroupBindChannel?: IChannelAndUserGroupChangeData[];
|
|
4519
|
+
userGroupUnBindChannel?: IChannelAndUserGroupChangeData[];
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4469
4522
|
/**
|
|
4470
4523
|
* 定义已废弃,请使用 `IRemoveChatroomEntries` 替换
|
|
4471
4524
|
* @deprecated
|
|
@@ -4621,6 +4674,14 @@ declare const deInitLogDB: () => Promise<void>;
|
|
|
4621
4674
|
*/
|
|
4622
4675
|
declare const transcsv: (log: ILogData) => string;
|
|
4623
4676
|
|
|
4677
|
+
/**
|
|
4678
|
+
* 会话标识
|
|
4679
|
+
* @category Interface
|
|
4680
|
+
*/
|
|
4681
|
+
interface IConversationIdentifier {
|
|
4682
|
+
conversationType: ConversationType;
|
|
4683
|
+
targetId: string;
|
|
4684
|
+
}
|
|
4624
4685
|
/**
|
|
4625
4686
|
* 会话属性
|
|
4626
4687
|
* @category Interface
|
|
@@ -4745,11 +4806,6 @@ interface IWatcher {
|
|
|
4745
4806
|
conversationState?: IConversationStateListener;
|
|
4746
4807
|
chatroomState?: IChatroomListener;
|
|
4747
4808
|
expansion?: IExpansionListener;
|
|
4748
|
-
/**
|
|
4749
|
-
* 为兼容老版本 RTCLib 与 CallLib 接收消息的方式,新版本消息走插件机制
|
|
4750
|
-
* @deprecated
|
|
4751
|
-
*/
|
|
4752
|
-
rtcInnerWatcher?: IRTCInnerListener;
|
|
4753
4809
|
/**
|
|
4754
4810
|
* 标签的增删改监听
|
|
4755
4811
|
*/
|
|
@@ -4786,6 +4842,7 @@ interface IWatcher {
|
|
|
4786
4842
|
ultraGroupChannelChangeType?: (list: IUltraChannelChangeInfo[]) => void;
|
|
4787
4843
|
ultraGroupChannelUserKicked?: (list: IUltraChannelUserKickedInfo[]) => void;
|
|
4788
4844
|
ultraGroupChannelDelete?: (list: IUltraChannelDeleteInfo[]) => void;
|
|
4845
|
+
userGroupStatus?: (data: IUserGroupStatusInfo) => void;
|
|
4789
4846
|
}
|
|
4790
4847
|
interface IAPIContextOption {
|
|
4791
4848
|
/**
|
|
@@ -4918,6 +4975,23 @@ declare class Codec<T> {
|
|
|
4918
4975
|
private fixInt64Values;
|
|
4919
4976
|
}
|
|
4920
4977
|
|
|
4978
|
+
declare const keymaps: CodecPBMaps;
|
|
4979
|
+
/**
|
|
4980
|
+
* 仅限 IM 内部包使用,禁止 RTCLib 直接使用从而导致业务依赖
|
|
4981
|
+
*/
|
|
4982
|
+
declare type RTCKeyMaps = typeof keymaps;
|
|
4983
|
+
|
|
4984
|
+
declare class RTCEntryHandler {
|
|
4985
|
+
private _pullQueue;
|
|
4986
|
+
private _isPulling;
|
|
4987
|
+
private _engine;
|
|
4988
|
+
private _pullTime;
|
|
4989
|
+
constructor(engine: AEngine);
|
|
4990
|
+
private _startPull;
|
|
4991
|
+
pullEntry(roomId: string, timestamp: number): void;
|
|
4992
|
+
reset(): void;
|
|
4993
|
+
}
|
|
4994
|
+
|
|
4921
4995
|
declare class APIContext {
|
|
4922
4996
|
private _runtime;
|
|
4923
4997
|
private static _context?;
|
|
@@ -4941,7 +5015,8 @@ declare class APIContext {
|
|
|
4941
5015
|
* RTC 相关的编解码模块,用于向前兼容 RTC 旧版本的编解码,
|
|
4942
5016
|
* 包括向 CppEngine 提供 RTC 业务编解码能力
|
|
4943
5017
|
*/
|
|
4944
|
-
|
|
5018
|
+
readonly rtcCodec: Codec<RTCKeyMaps>;
|
|
5019
|
+
readonly rtcKVManager: RTCEntryHandler;
|
|
4945
5020
|
/**
|
|
4946
5021
|
* engine 内部日志工具
|
|
4947
5022
|
*/
|
|
@@ -5007,6 +5082,7 @@ declare class APIContext {
|
|
|
5007
5082
|
private _ultraGroupChannelChangeTypeListener;
|
|
5008
5083
|
private _ultraGroupChannelUserKickedListener;
|
|
5009
5084
|
private _ultraGroupChannelDeleteListener;
|
|
5085
|
+
private _userGroupStatusListener;
|
|
5010
5086
|
/**
|
|
5011
5087
|
* rtc 数据变更通知 pluginContext
|
|
5012
5088
|
*/
|
|
@@ -5660,74 +5736,7 @@ declare class APIContext {
|
|
|
5660
5736
|
code: ErrorCode;
|
|
5661
5737
|
buffer?: Uint8Array;
|
|
5662
5738
|
}>;
|
|
5663
|
-
/**
|
|
5664
|
-
* 加入房间
|
|
5665
|
-
* @param roomId
|
|
5666
|
-
* @param mode 房间模式:直播 or 会议
|
|
5667
|
-
* @param mediaType 直播房间模式下的媒体资源类型
|
|
5668
|
-
*/
|
|
5669
|
-
joinRTCRoom(roomId: string, mode: RTCMode, mediaType?: number, joinType?: RTCJoinType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): Promise<IAsyncRes<IJoinRTCRoomData>>;
|
|
5670
|
-
quitRTCRoom(roomId: string): Promise<ErrorCode>;
|
|
5671
5739
|
rtcPing(roomId: string, mode: number, mediaType?: number): Promise<IAsyncRes<any>>;
|
|
5672
|
-
getRTCRoomInfo(roomId: string): Promise<IAsyncRes<IRTCRoomInfo>>;
|
|
5673
|
-
getRTCUserInfoList(roomId: string): Promise<IAsyncRes<IRTCUsers>>;
|
|
5674
|
-
getRTCUserInfo(roomId: string): IPromiseResult<unknown>;
|
|
5675
|
-
setRTCUserInfo(roomId: string, key: string, value: string): Promise<ErrorCode>;
|
|
5676
|
-
removeRTCUserInfo(roomId: string, keys: string[]): Promise<ErrorCode>;
|
|
5677
|
-
setRTCData(roomId: string, key: string, value: string, isInner: boolean, apiType: RTCApiType, message?: {
|
|
5678
|
-
name: string;
|
|
5679
|
-
content: string;
|
|
5680
|
-
}): Promise<ErrorCode>;
|
|
5681
|
-
setRTCTotalRes(roomId: string, message: {
|
|
5682
|
-
name: string;
|
|
5683
|
-
content: string;
|
|
5684
|
-
}, valueInfo: string, objectName: string, mcuValInfo?: string): Promise<ErrorCode>;
|
|
5685
|
-
setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
|
|
5686
|
-
getRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType): Promise<IAsyncRes<KVString>>;
|
|
5687
|
-
removeRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, message?: {
|
|
5688
|
-
name: string;
|
|
5689
|
-
content: string;
|
|
5690
|
-
}): Promise<ErrorCode>;
|
|
5691
|
-
setRTCOutData(roomId: string, rtcData: unknown, type: number, message: unknown): Promise<ErrorCode>;
|
|
5692
|
-
getRTCOutData(roomId: string, userIds: string[]): IPromiseResult<unknown>;
|
|
5693
|
-
getRTCToken(roomId: string, mode: number, broadcastType?: number): Promise<IAsyncRes<IRtcTokenData>>;
|
|
5694
|
-
setRTCState(roomId: string, report: string): Promise<ErrorCode>;
|
|
5695
|
-
getRTCUserList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
5696
|
-
/**
|
|
5697
|
-
* 直播观众加房间
|
|
5698
|
-
*/
|
|
5699
|
-
joinLivingRoomAsAudience(roomId: string, mode: RTCMode, broadcastType?: number): Promise<IAsyncRes<{
|
|
5700
|
-
token: string;
|
|
5701
|
-
kvEntries: IServerRTCRoomEntry[];
|
|
5702
|
-
}>>;
|
|
5703
|
-
/**
|
|
5704
|
-
* 直播观众退出房间
|
|
5705
|
-
*/
|
|
5706
|
-
quitLivingRoomAsAudience(roomId: string): Promise<ErrorCode>;
|
|
5707
|
-
/**
|
|
5708
|
-
* 直播身份切换
|
|
5709
|
-
*/
|
|
5710
|
-
rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): Promise<IAsyncRes<IJoinRTCRoomData>>;
|
|
5711
|
-
/**
|
|
5712
|
-
* 获取加入 RTC 房间的用户信息(当前仅能查自己的)
|
|
5713
|
-
*/
|
|
5714
|
-
getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
|
|
5715
|
-
/**
|
|
5716
|
-
* 连麦 PK 请求
|
|
5717
|
-
*/
|
|
5718
|
-
requestRoomPK(options: IReqRoomPKOptions): Promise<ErrorCode>;
|
|
5719
|
-
/**
|
|
5720
|
-
* 取消连麦 PK 请求
|
|
5721
|
-
*/
|
|
5722
|
-
cancelRoomPK(options: ICancelRoomPKOptions): Promise<ErrorCode>;
|
|
5723
|
-
/**
|
|
5724
|
-
* 响应连麦 PK 请求
|
|
5725
|
-
*/
|
|
5726
|
-
responseRoomPK(options: IResRoomPKOptions): Promise<ErrorCode>;
|
|
5727
|
-
/**
|
|
5728
|
-
* 结束连麦 PK
|
|
5729
|
-
*/
|
|
5730
|
-
endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
|
|
5731
5740
|
/**
|
|
5732
5741
|
* SDK设置聊天室关联的rtc房间
|
|
5733
5742
|
*/
|
|
@@ -5878,11 +5887,11 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
5878
5887
|
*/
|
|
5879
5888
|
rtcPingResVersion(roomId: string, mode: number, broadcastType?: number): Promise<IAsyncRes<any>>;
|
|
5880
5889
|
/**
|
|
5881
|
-
* @deprecated
|
|
5890
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5882
5891
|
*/
|
|
5883
5892
|
getRTCRoomInfo(roomId: string): IPromiseResult<IRTCRoomInfo>;
|
|
5884
5893
|
/**
|
|
5885
|
-
* @deprecated
|
|
5894
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5886
5895
|
*/
|
|
5887
5896
|
getRTCUserInfoList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
5888
5897
|
/**
|
|
@@ -5890,11 +5899,11 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
5890
5899
|
*/
|
|
5891
5900
|
getRTCUserInfo(roomId: string): IPromiseResult<unknown>;
|
|
5892
5901
|
/**
|
|
5893
|
-
* @deprecated
|
|
5902
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5894
5903
|
*/
|
|
5895
5904
|
setRTCUserInfo(roomId: string, key: string, value: string): Promise<ErrorCode>;
|
|
5896
5905
|
/**
|
|
5897
|
-
* @deprecated
|
|
5906
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5898
5907
|
*/
|
|
5899
5908
|
removeRTCUserInfo(roomId: string, keys: string[]): Promise<ErrorCode>;
|
|
5900
5909
|
/**
|
|
@@ -5974,11 +5983,11 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
5974
5983
|
*/
|
|
5975
5984
|
getRTCToken(roomId: string, mode: number, broadcastType?: number): IPromiseResult<IRtcTokenData>;
|
|
5976
5985
|
/**
|
|
5977
|
-
* @deprecated
|
|
5986
|
+
* @deprecated RTC 北极星数据上报
|
|
5978
5987
|
*/
|
|
5979
5988
|
setRTCState(roomId: string, report: string): Promise<ErrorCode>;
|
|
5980
5989
|
/**
|
|
5981
|
-
* @deprecated
|
|
5990
|
+
* @deprecated 兼容 rtc v3 方法调用
|
|
5982
5991
|
*/
|
|
5983
5992
|
getRTCUserList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
5984
5993
|
/**
|
|
@@ -6050,12 +6059,6 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
6050
6059
|
getRTCJoinedUserInfo(userId: string): IPromiseResult<IRTCJoinedInfo[]>;
|
|
6051
6060
|
}
|
|
6052
6061
|
|
|
6053
|
-
declare const keymaps: CodecPBMaps;
|
|
6054
|
-
/**
|
|
6055
|
-
* 仅限 IM 内部包使用,禁止 RTCLib 直接使用从而导致业务依赖
|
|
6056
|
-
*/
|
|
6057
|
-
declare type RTCKeyMaps = typeof keymaps;
|
|
6058
|
-
|
|
6059
6062
|
interface IEngineWatcher extends IConnectionListener {
|
|
6060
6063
|
/**
|
|
6061
6064
|
* @param message 消息
|
|
@@ -6085,6 +6088,7 @@ interface IEngineWatcher extends IConnectionListener {
|
|
|
6085
6088
|
groupMessageDeliveredStatus: (data: IGroupMessageDeliverStatus) => void;
|
|
6086
6089
|
callInfo: (data: string) => void;
|
|
6087
6090
|
onNaviDataChange: (naviInfo: INaviInfo) => void;
|
|
6091
|
+
userGroupStatus: (info: IUserGroupStatusInfo) => void;
|
|
6088
6092
|
}
|
|
6089
6093
|
/**
|
|
6090
6094
|
* 引擎定义
|
|
@@ -6817,51 +6821,7 @@ declare abstract class AEngine {
|
|
|
6817
6821
|
buffer?: Uint8Array;
|
|
6818
6822
|
}>;
|
|
6819
6823
|
abstract rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<IAsyncRes<any>>;
|
|
6820
|
-
joinRTCRoom(roomId: string, mode: RTCMode, broadcastType?: number, joinType?: RTCJoinType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): IPromiseResult<IJoinRTCRoomData>;
|
|
6821
|
-
quitRTCRoom(roomId: string): Promise<ErrorCode>;
|
|
6822
|
-
getRTCRoomInfo(roomId: string): IPromiseResult<IRTCRoomInfo>;
|
|
6823
|
-
getRTCUserInfoList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
6824
|
-
getRTCUserInfo(roomId: string): IPromiseResult<unknown>;
|
|
6825
|
-
setRTCUserInfo(roomId: string, key: string, value: string): Promise<ErrorCode>;
|
|
6826
|
-
removeRTCUserInfo(roomId: string, keys: string[]): Promise<ErrorCode>;
|
|
6827
|
-
setRTCData(roomId: string, key: string, value: string, isInner: boolean, apiType: RTCApiType, message?: {
|
|
6828
|
-
name: string;
|
|
6829
|
-
content: string;
|
|
6830
|
-
}): Promise<ErrorCode>;
|
|
6831
|
-
/**
|
|
6832
|
-
* 全量订阅资源修改
|
|
6833
|
-
* @param roomId 房间 Id
|
|
6834
|
-
* @param message 向前兼容的消息内容
|
|
6835
|
-
* @param valueInfo 全量资源数据
|
|
6836
|
-
* @param objectName 全量 URI 消息名
|
|
6837
|
-
*/
|
|
6838
|
-
setRTCTotalRes(roomId: string, message: {
|
|
6839
|
-
name: string;
|
|
6840
|
-
content: string;
|
|
6841
|
-
}, valueInfo: string, objectName: string, mcuValInfo: string): Promise<ErrorCode>;
|
|
6842
|
-
getRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType): IPromiseResult<KVString>;
|
|
6843
|
-
removeRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, message?: {
|
|
6844
|
-
name: string;
|
|
6845
|
-
content: string;
|
|
6846
|
-
}): Promise<ErrorCode>;
|
|
6847
|
-
setRTCOutData(roomId: string, rtcData: unknown, type: number, message: unknown): Promise<ErrorCode>;
|
|
6848
|
-
getRTCOutData(roomId: string, userIds: string[]): IPromiseResult<unknown>;
|
|
6849
|
-
getRTCToken(roomId: string, mode: number, broadcastType?: number): IPromiseResult<IRtcTokenData>;
|
|
6850
|
-
setRTCState(roomId: string, report: string): Promise<ErrorCode>;
|
|
6851
|
-
getRTCUserList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
6852
|
-
joinLivingRoomAsAudience(roomId: string, mode: RTCMode, broadcastType?: number): Promise<IAsyncRes<{
|
|
6853
|
-
token: string;
|
|
6854
|
-
kvEntries: IServerRTCRoomEntry[];
|
|
6855
|
-
}>>;
|
|
6856
6824
|
pullRTCRoomEntry(roomId: string, _timestamp: number): Promise<IAsyncRes<IChrmKVPullData>>;
|
|
6857
|
-
quitLivingRoomAsAudience(roomId: string): Promise<ErrorCode>;
|
|
6858
|
-
rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): Promise<IAsyncRes<IJoinRTCRoomData>>;
|
|
6859
|
-
getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
|
|
6860
|
-
setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
|
|
6861
|
-
requestRoomPK(options: IReqRoomPKOptions): Promise<ErrorCode>;
|
|
6862
|
-
cancelRoomPK(options: ICancelRoomPKOptions): Promise<ErrorCode>;
|
|
6863
|
-
responseRoomPK(options: IResRoomPKOptions): Promise<ErrorCode>;
|
|
6864
|
-
endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
|
|
6865
6825
|
/**
|
|
6866
6826
|
* 设置聊天室关联的rtc房间
|
|
6867
6827
|
*/
|
|
@@ -7061,7 +7021,7 @@ declare function ID(): string;
|
|
|
7061
7021
|
/**
|
|
7062
7022
|
* @deprecated
|
|
7063
7023
|
*/
|
|
7064
|
-
declare function init(
|
|
7024
|
+
declare function init(_logger: BasicLogger): void;
|
|
7065
7025
|
/**
|
|
7066
7026
|
* @deprecated
|
|
7067
7027
|
*/
|
|
@@ -7348,6 +7308,14 @@ declare const PUBLIC_CLOUD_NAVI_URIS: string[];
|
|
|
7348
7308
|
* 小程序 websocket 连接地址
|
|
7349
7309
|
*/
|
|
7350
7310
|
declare const MINI_SOCKET_CONNECT_URIS: string[];
|
|
7311
|
+
/**
|
|
7312
|
+
* 七牛存储服务地址
|
|
7313
|
+
*/
|
|
7314
|
+
declare const QINIU_STORAGE_SERVER_URI: string;
|
|
7315
|
+
/**
|
|
7316
|
+
* 百度存储服务地址
|
|
7317
|
+
*/
|
|
7318
|
+
declare const BAIDU_STORAGE_SERVER_URI: string;
|
|
7351
7319
|
/**
|
|
7352
7320
|
* IM 接口超时时间,单位毫秒
|
|
7353
7321
|
*/
|
|
@@ -7435,4 +7403,4 @@ declare type AbsCodec<T> = Codec<T>;
|
|
|
7435
7403
|
*/
|
|
7436
7404
|
declare const version: string;
|
|
7437
7405
|
|
|
7438
|
-
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, DEFAULT_LOG_POLICY, 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, 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, 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, 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, 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 };
|
|
7406
|
+
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 };
|