@rongcloud/engine 4.6.0-beem.4 → 4.6.0-beem.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +47 -35
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCEngine - v4.6.0-beem.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCEngine - v4.6.0-beem.7
|
|
3
|
+
* CommitId - 53335a45028994e9963a13ab79a6ea9d6cc95f7f
|
|
4
|
+
* Thu May 26 2022 16:53:40 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -1204,7 +1204,19 @@ declare enum RTCMode {
|
|
|
1204
1204
|
/**
|
|
1205
1205
|
* 直播模式
|
|
1206
1206
|
*/
|
|
1207
|
-
LIVE = 2
|
|
1207
|
+
LIVE = 2,
|
|
1208
|
+
/**
|
|
1209
|
+
* sip呼叫
|
|
1210
|
+
*/
|
|
1211
|
+
SIP = 4,
|
|
1212
|
+
/**
|
|
1213
|
+
* 呼叫模式.包括单呼和群呼
|
|
1214
|
+
*/
|
|
1215
|
+
CALL = 5,
|
|
1216
|
+
/**
|
|
1217
|
+
* 会议
|
|
1218
|
+
*/
|
|
1219
|
+
MEETING = 6
|
|
1208
1220
|
}
|
|
1209
1221
|
/**
|
|
1210
1222
|
* 直播类型
|
|
@@ -2321,6 +2333,7 @@ interface IJoinRTCRoomData extends IRTCUsers {
|
|
|
2321
2333
|
value: string;
|
|
2322
2334
|
}[];
|
|
2323
2335
|
kvEntries: IServerRTCRoomEntry[];
|
|
2336
|
+
offlineKickTime: number;
|
|
2324
2337
|
}
|
|
2325
2338
|
|
|
2326
2339
|
/**
|
|
@@ -3267,6 +3280,14 @@ interface IEngine {
|
|
|
3267
3280
|
* @param reconnectKickEnable
|
|
3268
3281
|
*/
|
|
3269
3282
|
connect(token: string, naviInfo: INaviInfo, reconnectKickEnable?: boolean): Promise<ErrorCode>;
|
|
3283
|
+
/**
|
|
3284
|
+
* 获取导航信息
|
|
3285
|
+
* @param uris
|
|
3286
|
+
* @param appkey
|
|
3287
|
+
* @param token
|
|
3288
|
+
* @param checkCA
|
|
3289
|
+
*/
|
|
3290
|
+
getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
3270
3291
|
/**
|
|
3271
3292
|
* 上报版本信息
|
|
3272
3293
|
* @param version
|
|
@@ -4684,34 +4705,6 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
4684
4705
|
rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): IPromiseResult<IJoinRTCRoomData>;
|
|
4685
4706
|
}
|
|
4686
4707
|
|
|
4687
|
-
declare abstract class ANavi {
|
|
4688
|
-
protected readonly _runtime: IRuntime;
|
|
4689
|
-
protected readonly _options: IAPIContextOption;
|
|
4690
|
-
protected readonly _apiVersion: string;
|
|
4691
|
-
protected readonly _appkey: string;
|
|
4692
|
-
protected _naviInfo: INaviInfo | null;
|
|
4693
|
-
constructor(_runtime: IRuntime, _options: IAPIContextOption);
|
|
4694
|
-
/**
|
|
4695
|
-
* @param uris
|
|
4696
|
-
* @param appkey
|
|
4697
|
-
* @param token
|
|
4698
|
-
*/
|
|
4699
|
-
protected abstract _reqNavi(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4700
|
-
/**
|
|
4701
|
-
* 获取导航数据
|
|
4702
|
-
* @param token
|
|
4703
|
-
* @param dynamicUris token 携带的动态导航地址
|
|
4704
|
-
* @param force 是否强制重新获取并清空缓存数据
|
|
4705
|
-
*/
|
|
4706
|
-
getInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4707
|
-
protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
|
|
4708
|
-
getInfoFromCache(token: string): INaviInfo | null;
|
|
4709
|
-
/**
|
|
4710
|
-
* 清空导航数据:内存数据、缓存数据
|
|
4711
|
-
*/
|
|
4712
|
-
private _clear;
|
|
4713
|
-
}
|
|
4714
|
-
|
|
4715
4708
|
interface IEngineWatcher {
|
|
4716
4709
|
/**
|
|
4717
4710
|
* @param message 消息
|
|
@@ -4749,15 +4742,34 @@ declare abstract class AEngine implements IEngine {
|
|
|
4749
4742
|
* 连接时间
|
|
4750
4743
|
*/
|
|
4751
4744
|
abstract getConnectedTime(): number;
|
|
4752
|
-
readonly navi: ANavi;
|
|
4753
4745
|
protected readonly _appkey: string;
|
|
4754
4746
|
protected readonly _apiVer: string;
|
|
4747
|
+
protected readonly _apiVersion: string;
|
|
4748
|
+
protected _naviInfo: INaviInfo | null;
|
|
4755
4749
|
/**
|
|
4756
4750
|
* 引擎初始化
|
|
4757
4751
|
* @param _appkey
|
|
4758
4752
|
*/
|
|
4759
4753
|
constructor(runtime: IRuntime, _watcher: IEngineWatcher, _options: IAPIContextOption);
|
|
4760
|
-
|
|
4754
|
+
/**
|
|
4755
|
+
* @param uris
|
|
4756
|
+
* @param appkey
|
|
4757
|
+
* @param token
|
|
4758
|
+
*/
|
|
4759
|
+
abstract getNaviInfo(uris: string[], appkey: string, token: string, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4760
|
+
/**
|
|
4761
|
+
* 获取导航数据
|
|
4762
|
+
* @param token
|
|
4763
|
+
* @param dynamicUris token 携带的动态导航地址
|
|
4764
|
+
* @param force 是否强制重新获取并清空缓存数据
|
|
4765
|
+
*/
|
|
4766
|
+
getInfo(token: string, dynamicUris: string[], force: boolean, checkCA?: boolean): Promise<INaviInfo | null>;
|
|
4767
|
+
protected setNaviInfo2Cache(token: string, naviInfo: INaviInfo): void;
|
|
4768
|
+
getInfoFromCache(token: string): INaviInfo | null;
|
|
4769
|
+
/**
|
|
4770
|
+
* 清空导航数据:内存数据、缓存数据
|
|
4771
|
+
*/
|
|
4772
|
+
private _clear;
|
|
4761
4773
|
/**
|
|
4762
4774
|
* 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
|
|
4763
4775
|
* 对于未实现的方法,接口响应 Unsupport 错误码
|
|
@@ -5762,4 +5774,4 @@ declare enum CONNECTION_TYPE {
|
|
|
5762
5774
|
*/
|
|
5763
5775
|
declare const version: string;
|
|
5764
5776
|
|
|
5765
|
-
export { AEngine,
|
|
5777
|
+
export { AEngine, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBlockedMessageInfo, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IDeliveredUser, IEngine, IEngineWatcher, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusListener, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageBlockedListener, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntriesOption, IRemoveChatRoomEntryOption, IRequest, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|