@rongcloud/engine 5.0.3-alpha.1 → 5.1.0-enterprise-alpha.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/dist/index.d.ts +171 -4
- 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 - v5.0
|
|
3
|
-
* CommitId -
|
|
4
|
-
* Tue Jan
|
|
2
|
+
* RCEngine - v5.1.0-enterprise-alpha.1
|
|
3
|
+
* CommitId - 4e1b091833ff5f25c75e60793939b43653f05bdd
|
|
4
|
+
* Tue Jan 11 2022 12:35:46 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -2742,6 +2742,111 @@ interface IExtraMethod {
|
|
|
2742
2742
|
updateMessageReceiptStatus(conersationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<IAsyncRes<boolean>>;
|
|
2743
2743
|
}
|
|
2744
2744
|
|
|
2745
|
+
interface IReqRoomPKOptions {
|
|
2746
|
+
/**
|
|
2747
|
+
* 当前房间 ID
|
|
2748
|
+
*/
|
|
2749
|
+
roomId: string;
|
|
2750
|
+
/**
|
|
2751
|
+
* 被邀请房间 ID
|
|
2752
|
+
*/
|
|
2753
|
+
invitedRoomId: string;
|
|
2754
|
+
/**
|
|
2755
|
+
* 被邀请用户 ID
|
|
2756
|
+
*/
|
|
2757
|
+
invitedUserId: string;
|
|
2758
|
+
/**
|
|
2759
|
+
* 本次邀请超时时间
|
|
2760
|
+
*/
|
|
2761
|
+
inviteTimeout: number;
|
|
2762
|
+
/**
|
|
2763
|
+
* 本次邀请额外信息
|
|
2764
|
+
*/
|
|
2765
|
+
inviteInfo: string;
|
|
2766
|
+
/**
|
|
2767
|
+
* 本次邀请唯一 ID
|
|
2768
|
+
*/
|
|
2769
|
+
inviteSessionId: string;
|
|
2770
|
+
}
|
|
2771
|
+
interface ICancelRoomPKOptions {
|
|
2772
|
+
/**
|
|
2773
|
+
* 当前房间 ID
|
|
2774
|
+
*/
|
|
2775
|
+
roomId: string;
|
|
2776
|
+
/**
|
|
2777
|
+
* 被邀请房间 ID
|
|
2778
|
+
*/
|
|
2779
|
+
invitedRoomId: string;
|
|
2780
|
+
/**
|
|
2781
|
+
* 被邀请用户 ID
|
|
2782
|
+
*/
|
|
2783
|
+
invitedUserId: string;
|
|
2784
|
+
/**
|
|
2785
|
+
* 本次邀请额外信息
|
|
2786
|
+
*/
|
|
2787
|
+
inviteInfo: string;
|
|
2788
|
+
/**
|
|
2789
|
+
* 本次邀请唯一 ID
|
|
2790
|
+
*/
|
|
2791
|
+
inviteSessionId: string;
|
|
2792
|
+
}
|
|
2793
|
+
interface IResRoomPKOptions {
|
|
2794
|
+
/**
|
|
2795
|
+
* 当前房间 ID
|
|
2796
|
+
*/
|
|
2797
|
+
roomId: string;
|
|
2798
|
+
/**
|
|
2799
|
+
* 邀请者 ID
|
|
2800
|
+
*/
|
|
2801
|
+
inviteUserId: string;
|
|
2802
|
+
/**
|
|
2803
|
+
* 邀请者房间 ID
|
|
2804
|
+
*/
|
|
2805
|
+
inviteRoomId: string;
|
|
2806
|
+
/**
|
|
2807
|
+
* 邀请的 session ID
|
|
2808
|
+
*/
|
|
2809
|
+
inviteSessionId: string;
|
|
2810
|
+
/**
|
|
2811
|
+
* 需要转发的信息
|
|
2812
|
+
*/
|
|
2813
|
+
content: string;
|
|
2814
|
+
/**
|
|
2815
|
+
* 同意邀请时要设置的 key, 放在room级别的k和v,新加入房间的能拉取到
|
|
2816
|
+
*/
|
|
2817
|
+
key: string;
|
|
2818
|
+
/**
|
|
2819
|
+
* 同意邀请时要设置的 value, 放在room级别的k和v,新加入房间的能拉取到
|
|
2820
|
+
*/
|
|
2821
|
+
value: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* 是否同意邀请
|
|
2824
|
+
*/
|
|
2825
|
+
agree: boolean;
|
|
2826
|
+
}
|
|
2827
|
+
interface IEndRoomPKOptions {
|
|
2828
|
+
/**
|
|
2829
|
+
* 当前房间 ID
|
|
2830
|
+
*/
|
|
2831
|
+
roomId: string;
|
|
2832
|
+
/**
|
|
2833
|
+
* 需要结束的连麦房间 ID
|
|
2834
|
+
*/
|
|
2835
|
+
endRoomId: string;
|
|
2836
|
+
/**
|
|
2837
|
+
* 需要结束连麦的 sessionID
|
|
2838
|
+
*/
|
|
2839
|
+
sessionId: string;
|
|
2840
|
+
/**
|
|
2841
|
+
* 结束连麦的信息
|
|
2842
|
+
*/
|
|
2843
|
+
content: string;
|
|
2844
|
+
/**
|
|
2845
|
+
* 需要删除连麦的信息的 keys
|
|
2846
|
+
*/
|
|
2847
|
+
keys: string[];
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2745
2850
|
/**
|
|
2746
2851
|
* engine 基本接口定义,用于约束 Electron 下主进程、渲染进程、JSEngine 的编码一致性
|
|
2747
2852
|
*/
|
|
@@ -3087,6 +3192,8 @@ interface IEngine {
|
|
|
3087
3192
|
* 获取当前 userId
|
|
3088
3193
|
*/
|
|
3089
3194
|
getCurrentUserId(): string;
|
|
3195
|
+
getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
3196
|
+
getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
3090
3197
|
/**
|
|
3091
3198
|
* 设置用户在线状态监听器
|
|
3092
3199
|
*/
|
|
@@ -3243,6 +3350,10 @@ interface IEngine {
|
|
|
3243
3350
|
setRTCState(roomId: string, reportId: string): Promise<ErrorCode>;
|
|
3244
3351
|
getRTCUserList(roomId: string): IPromiseResult<IRTCUsers>;
|
|
3245
3352
|
setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
|
|
3353
|
+
requestRoomPK(options: IReqRoomPKOptions): Promise<ErrorCode>;
|
|
3354
|
+
cancelRoomPK(options: ICancelRoomPKOptions): Promise<ErrorCode>;
|
|
3355
|
+
responseRoomPK(options: IResRoomPKOptions): Promise<ErrorCode>;
|
|
3356
|
+
endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
|
|
3246
3357
|
}
|
|
3247
3358
|
|
|
3248
3359
|
interface IExpansionMsgContent {
|
|
@@ -3635,6 +3746,22 @@ declare class DataCodec {
|
|
|
3635
3746
|
* RTC 查询在房间内用户的信息
|
|
3636
3747
|
*/
|
|
3637
3748
|
encodeQueryUserJoinedInfo(userId: string): any;
|
|
3749
|
+
/**
|
|
3750
|
+
* 连麦 PK 请求
|
|
3751
|
+
*/
|
|
3752
|
+
encodeRequestRoomPK(options: IReqRoomPKOptions): any;
|
|
3753
|
+
/**
|
|
3754
|
+
* 取消连麦 PK 请求
|
|
3755
|
+
*/
|
|
3756
|
+
encodeCancelRoomPK(options: ICancelRoomPKOptions): any;
|
|
3757
|
+
/**
|
|
3758
|
+
* 响应连麦 PK 请求
|
|
3759
|
+
*/
|
|
3760
|
+
encodeResponseRoomPK(options: IResRoomPKOptions): any;
|
|
3761
|
+
/**
|
|
3762
|
+
* 结束连麦 PK
|
|
3763
|
+
*/
|
|
3764
|
+
encodeEndRoomPK(options: IEndRoomPKOptions): any;
|
|
3638
3765
|
}
|
|
3639
3766
|
|
|
3640
3767
|
interface IDataChannelWatcher {
|
|
@@ -4464,6 +4591,8 @@ declare class APIContext {
|
|
|
4464
4591
|
list: IReceivedMessage[];
|
|
4465
4592
|
hasMore: boolean;
|
|
4466
4593
|
}>>;
|
|
4594
|
+
getConversationListWithAllChannel(): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4595
|
+
getConversationListWithAllChannelByPage(index: number, limit: number): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4467
4596
|
/**
|
|
4468
4597
|
* 加入房间
|
|
4469
4598
|
* @param roomId
|
|
@@ -4516,6 +4645,22 @@ declare class APIContext {
|
|
|
4516
4645
|
* 获取加入 RTC 房间的用户信息(当前仅能查自己的)
|
|
4517
4646
|
*/
|
|
4518
4647
|
getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
|
|
4648
|
+
/**
|
|
4649
|
+
* 连麦 PK 请求
|
|
4650
|
+
*/
|
|
4651
|
+
requestRoomPK(options: IReqRoomPKOptions): Promise<ErrorCode>;
|
|
4652
|
+
/**
|
|
4653
|
+
* 取消连麦 PK 请求
|
|
4654
|
+
*/
|
|
4655
|
+
cancelRoomPK(options: ICancelRoomPKOptions): Promise<ErrorCode>;
|
|
4656
|
+
/**
|
|
4657
|
+
* 响应连麦 PK 请求
|
|
4658
|
+
*/
|
|
4659
|
+
responseRoomPK(options: IResRoomPKOptions): Promise<ErrorCode>;
|
|
4660
|
+
/**
|
|
4661
|
+
* 结束连麦 PK
|
|
4662
|
+
*/
|
|
4663
|
+
endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
|
|
4519
4664
|
}
|
|
4520
4665
|
|
|
4521
4666
|
declare class PluginContext {
|
|
@@ -4686,6 +4831,22 @@ declare class RTCPluginContext extends PluginContext {
|
|
|
4686
4831
|
* 直播身份切换
|
|
4687
4832
|
*/
|
|
4688
4833
|
rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): IPromiseResult<IJoinRTCRoomData>;
|
|
4834
|
+
/**
|
|
4835
|
+
* 连麦 PK 请求
|
|
4836
|
+
*/
|
|
4837
|
+
requestRoomPK(options: IReqRoomPKOptions): Promise<ErrorCode>;
|
|
4838
|
+
/**
|
|
4839
|
+
* 取消连麦 PK 请求
|
|
4840
|
+
*/
|
|
4841
|
+
cancelRoomPK(options: ICancelRoomPKOptions): Promise<ErrorCode>;
|
|
4842
|
+
/**
|
|
4843
|
+
* 响应连麦 PK 请求
|
|
4844
|
+
*/
|
|
4845
|
+
responseRoomPK(options: IResRoomPKOptions): Promise<ErrorCode>;
|
|
4846
|
+
/**
|
|
4847
|
+
* 结束连麦 PK
|
|
4848
|
+
*/
|
|
4849
|
+
endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
|
|
4689
4850
|
}
|
|
4690
4851
|
|
|
4691
4852
|
declare abstract class ANavi {
|
|
@@ -5121,6 +5282,8 @@ declare abstract class AEngine implements IEngine {
|
|
|
5121
5282
|
* 获取当前 userId
|
|
5122
5283
|
*/
|
|
5123
5284
|
abstract getCurrentUserId(): string;
|
|
5285
|
+
abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
5286
|
+
abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
5124
5287
|
/**
|
|
5125
5288
|
* 设置用户在线状态监听器
|
|
5126
5289
|
*/
|
|
@@ -5284,6 +5447,10 @@ declare abstract class AEngine implements IEngine {
|
|
|
5284
5447
|
abstract rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): Promise<IAsyncRes<IJoinRTCRoomData>>;
|
|
5285
5448
|
abstract getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
|
|
5286
5449
|
abstract setRTCCDNUris(roomId: string, objectName: string, CDNUris: string): Promise<ErrorCode>;
|
|
5450
|
+
abstract requestRoomPK(options: IReqRoomPKOptions): Promise<ErrorCode>;
|
|
5451
|
+
abstract cancelRoomPK(options: ICancelRoomPKOptions): Promise<ErrorCode>;
|
|
5452
|
+
abstract responseRoomPK(options: IResRoomPKOptions): Promise<ErrorCode>;
|
|
5453
|
+
abstract endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
|
|
5287
5454
|
}
|
|
5288
5455
|
|
|
5289
5456
|
declare class AppStorage {
|
|
@@ -5751,4 +5918,4 @@ declare enum CONNECTION_TYPE {
|
|
|
5751
5918
|
*/
|
|
5752
5919
|
declare const version: string;
|
|
5753
5920
|
|
|
5754
|
-
export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, 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, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, 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 };
|
|
5921
|
+
export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, 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, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, 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, 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 };
|