@rongcloud/engine 5.38.0-alpha.2 → 5.40.0-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/index.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +25 -75
- package/index.esm.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -559,8 +559,6 @@ declare const Log: {
|
|
|
559
559
|
readonly A_MARK_REMOTE_CONVERSATION_AS_READ_R: "A-mark_remote_conversation_as_read-R";
|
|
560
560
|
/** 执行自定义会话存储淘汰策略异常 */
|
|
561
561
|
readonly L_EXEC_CUSTOM_CONVERSATION_STORAGE_EVICTION_E: "L-exec_custom_conversation_storage_eviction-E";
|
|
562
|
-
readonly A_GET_MESSAGES_T: "A-get_msgs-T";
|
|
563
|
-
readonly A_GET_MESSAGES_R: "A-get_msgs-R";
|
|
564
562
|
};
|
|
565
563
|
|
|
566
564
|
/**
|
|
@@ -2193,18 +2191,6 @@ declare enum ErrorCode {
|
|
|
2193
2191
|
* @since 5.26.0
|
|
2194
2192
|
*/
|
|
2195
2193
|
MODIFIED_MESSAGE_TIMEOUT = 33402,
|
|
2196
|
-
/**
|
|
2197
|
-
* 33403
|
|
2198
|
-
* 引用消息不存在
|
|
2199
|
-
* @since 5.38.0
|
|
2200
|
-
*/
|
|
2201
|
-
QUOTE_MSG_NOT_FOUND = 33403,
|
|
2202
|
-
/**
|
|
2203
|
-
* 33404
|
|
2204
|
-
* 引用信息不合法
|
|
2205
|
-
* @since 5.38.0
|
|
2206
|
-
*/
|
|
2207
|
-
INVALID_PARAMETER_QUOTE_INFO = 33404,
|
|
2208
2194
|
/**
|
|
2209
2195
|
* 34001
|
|
2210
2196
|
* 连接已存在。
|
|
@@ -4002,22 +3988,6 @@ declare const GroupReadReceiptVersion: {
|
|
|
4002
3988
|
};
|
|
4003
3989
|
declare type GroupReadReceiptVersion = typeof GroupReadReceiptVersion[keyof typeof GroupReadReceiptVersion];
|
|
4004
3990
|
|
|
4005
|
-
declare const QuoteMessageStatus: {
|
|
4006
|
-
/**
|
|
4007
|
-
* 默认状态。
|
|
4008
|
-
*/
|
|
4009
|
-
readonly DEFAULT: 0;
|
|
4010
|
-
/**
|
|
4011
|
-
* 引用消息被删除
|
|
4012
|
-
*/
|
|
4013
|
-
readonly DELETED: 1;
|
|
4014
|
-
/**
|
|
4015
|
-
* 引用消息被撤回
|
|
4016
|
-
*/
|
|
4017
|
-
readonly RECALLED: 2;
|
|
4018
|
-
};
|
|
4019
|
-
declare type QuoteMessageStatus = typeof QuoteMessageStatus[keyof typeof QuoteMessageStatus];
|
|
4020
|
-
|
|
4021
3991
|
/**
|
|
4022
3992
|
* 网络状态枚举
|
|
4023
3993
|
*/
|
|
@@ -5526,11 +5496,6 @@ interface IInnerMessage<T = any> {
|
|
|
5526
5496
|
* @since 5.30.1
|
|
5527
5497
|
*/
|
|
5528
5498
|
extraData?: IMessageExtraData;
|
|
5529
|
-
/**
|
|
5530
|
-
* 引用消息信息
|
|
5531
|
-
* @since 5.38.0
|
|
5532
|
-
*/
|
|
5533
|
-
quoteInfo?: IQuoteInfo;
|
|
5534
5499
|
}
|
|
5535
5500
|
/**
|
|
5536
5501
|
* 从服务端接收到的消息数据
|
|
@@ -5783,33 +5748,6 @@ interface IMessageSendOptions {
|
|
|
5783
5748
|
* @since 5.20.0
|
|
5784
5749
|
*/
|
|
5785
5750
|
needReceipt?: boolean;
|
|
5786
|
-
/**
|
|
5787
|
-
* 引用消息信息
|
|
5788
|
-
* @since 5.38.0
|
|
5789
|
-
*/
|
|
5790
|
-
quoteInfo?: IQuoteInfo;
|
|
5791
|
-
}
|
|
5792
|
-
/**
|
|
5793
|
-
* 引用消息信息
|
|
5794
|
-
* @since 5.38.0
|
|
5795
|
-
*/
|
|
5796
|
-
interface IQuoteInfo {
|
|
5797
|
-
/**
|
|
5798
|
-
* 引用消息类型
|
|
5799
|
-
*/
|
|
5800
|
-
objectName: string;
|
|
5801
|
-
/**
|
|
5802
|
-
* 引用消息 UId
|
|
5803
|
-
*/
|
|
5804
|
-
messageUId: string;
|
|
5805
|
-
/**
|
|
5806
|
-
* 引用消息发送者 ID
|
|
5807
|
-
*/
|
|
5808
|
-
senderId: string;
|
|
5809
|
-
/**
|
|
5810
|
-
* 引用消息状态,该状态值仅 Electron 平台有效,Web 平台始终为 QuoteMessageStatus.DEFAULT
|
|
5811
|
-
*/
|
|
5812
|
-
quoteMessageStatus?: QuoteMessageStatus;
|
|
5813
5751
|
}
|
|
5814
5752
|
interface InnerInsertMessageParams {
|
|
5815
5753
|
senderUserId: string;
|
|
@@ -5828,7 +5766,6 @@ interface InnerInsertMessageParams {
|
|
|
5828
5766
|
expansion?: Record<string, string>;
|
|
5829
5767
|
directedUserIds?: string[];
|
|
5830
5768
|
disableUpdateLastMessage?: boolean;
|
|
5831
|
-
quoteInfo?: IQuoteInfo;
|
|
5832
5769
|
}
|
|
5833
5770
|
/**
|
|
5834
5771
|
* 插入消息结构
|
|
@@ -5921,11 +5858,6 @@ interface IInsertMessage {
|
|
|
5921
5858
|
* 禁止更新到会话最新一条消息,默认 false: 更新,true: 不更新
|
|
5922
5859
|
*/
|
|
5923
5860
|
disableUpdateLastMessage?: boolean;
|
|
5924
|
-
/**
|
|
5925
|
-
* 消息引用信息
|
|
5926
|
-
* @since 5.38.0
|
|
5927
|
-
*/
|
|
5928
|
-
quoteInfo?: IQuoteInfo;
|
|
5929
5861
|
}
|
|
5930
5862
|
/**
|
|
5931
5863
|
* 被拦截的消息信息
|
|
@@ -6115,11 +6047,11 @@ interface IRefreshReferenceMessageParams {
|
|
|
6115
6047
|
/**
|
|
6116
6048
|
* 本地消息回调
|
|
6117
6049
|
*/
|
|
6118
|
-
localMessageBlock: (results:
|
|
6050
|
+
localMessageBlock: (results: IEnginRefreshReferenceMessageResult[]) => void;
|
|
6119
6051
|
/**
|
|
6120
6052
|
* 远端消息回调
|
|
6121
6053
|
*/
|
|
6122
|
-
remoteMessageBlock: (results:
|
|
6054
|
+
remoteMessageBlock: (results: IEnginRefreshReferenceMessageResult[]) => void;
|
|
6123
6055
|
/**
|
|
6124
6056
|
* 消息映射关系,非 Electron 平台为必传参数,Electron 平台无需传递。key 为引用消息 UId,value 为被引用消息 UId。
|
|
6125
6057
|
*/
|
|
@@ -6129,7 +6061,7 @@ interface IRefreshReferenceMessageParams {
|
|
|
6129
6061
|
* engine 刷新引用消息结果
|
|
6130
6062
|
* @since 5.26.0
|
|
6131
6063
|
*/
|
|
6132
|
-
interface
|
|
6064
|
+
interface IEnginRefreshReferenceMessageResult {
|
|
6133
6065
|
messageUId: string;
|
|
6134
6066
|
message?: IReceivedMessage;
|
|
6135
6067
|
code: number;
|
|
@@ -8369,6 +8301,21 @@ interface INaviInfo {
|
|
|
8369
8301
|
* @since 5.36.0
|
|
8370
8302
|
*/
|
|
8371
8303
|
openHistoryMsg?: 0 | 1;
|
|
8304
|
+
/**
|
|
8305
|
+
* 消息尺寸限制,当获取不到时保持原逻辑 128 KB 限制;
|
|
8306
|
+
*
|
|
8307
|
+
* 以下内置消息类型不受此配置限制,保持最大 128 KB 尺寸限制:
|
|
8308
|
+
* * RC:VcMsg
|
|
8309
|
+
* * RC:ImgMsg
|
|
8310
|
+
* * RC:LBSMsg
|
|
8311
|
+
* * RC:ReferenceMsg
|
|
8312
|
+
* * RC:StreamMsg
|
|
8313
|
+
* * RC:CombineV2Msg
|
|
8314
|
+
* * RC:CombineMsg
|
|
8315
|
+
* * RC:SightMsg
|
|
8316
|
+
* @since 5.40.0
|
|
8317
|
+
*/
|
|
8318
|
+
msgMaxLengthV2?: number;
|
|
8372
8319
|
}
|
|
8373
8320
|
|
|
8374
8321
|
/**
|
|
@@ -10216,7 +10163,7 @@ interface IIPCMethods {
|
|
|
10216
10163
|
* @param localMessageBlock 本地消息回调
|
|
10217
10164
|
* @param messageInfoMap 消息发送时间映射,仅 Web 端超级群会话有效
|
|
10218
10165
|
*/
|
|
10219
|
-
refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationOption, remoteMessageBlock: ((results:
|
|
10166
|
+
refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationOption, remoteMessageBlock: ((results: IEnginRefreshReferenceMessageResult[]) => void) | string, localMessageBlock: ((results: IEnginRefreshReferenceMessageResult[]) => void) | string, messageInfoMap?: Record<string, string>): Promise<RCResult>;
|
|
10220
10167
|
/**
|
|
10221
10168
|
* 同步服务器会话列表至本地数据库
|
|
10222
10169
|
*/
|
|
@@ -10347,7 +10294,6 @@ interface IIPCMethods {
|
|
|
10347
10294
|
setCheckDuplicateMessage(enableCheck: boolean): Promise<RCResult<boolean>>;
|
|
10348
10295
|
getAllRobots(): Promise<RCResult<IRobotInfo[]>>;
|
|
10349
10296
|
getConversationsIncludingRobots(options: Required<IGetConversationsIncludingRobotsOption>): Promise<RCResult<IReceivedConversation[]>>;
|
|
10350
|
-
getMessagesByUIds(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IEngineMessageResult[]>>;
|
|
10351
10297
|
}
|
|
10352
10298
|
|
|
10353
10299
|
/**
|
|
@@ -11805,6 +11751,11 @@ declare class AppSettings {
|
|
|
11805
11751
|
* @since 5.36.0
|
|
11806
11752
|
*/
|
|
11807
11753
|
get isServerSaveUnreadEnabled(): boolean;
|
|
11754
|
+
/**
|
|
11755
|
+
* 消息发送限制,未配置的情况下返回 0
|
|
11756
|
+
* @since 5.40.0
|
|
11757
|
+
*/
|
|
11758
|
+
get messageSizeLimit(): number;
|
|
11808
11759
|
}
|
|
11809
11760
|
|
|
11810
11761
|
/**
|
|
@@ -12897,7 +12848,6 @@ declare class APIContext {
|
|
|
12897
12848
|
getUnreadMentionMeConversationList(params: IGetUnreadMentionMeConversationListParams): Promise<RCResult<IReceivedConversation[]>>;
|
|
12898
12849
|
getAllRobots(): Promise<RCResult<IRobotInfo[]>>;
|
|
12899
12850
|
getRobotById(id: string): Promise<RCResult<IRobotInfo | null>>;
|
|
12900
|
-
getMessagesByUIds(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IEngineMessageResult[]>>;
|
|
12901
12851
|
}
|
|
12902
12852
|
|
|
12903
12853
|
declare class RTCPluginContext extends PluginContext {
|
|
@@ -13265,4 +13215,4 @@ declare const assert: (key: string, value: any, validator: AssertRules | ((value
|
|
|
13265
13215
|
*/
|
|
13266
13216
|
declare const validate: (key: string, value: any, validator: AssertRules | ((value?: any) => boolean), required?: boolean) => boolean;
|
|
13267
13217
|
|
|
13268
|
-
export { APIContext, AbsCodec, AppSettings, AreaCode, AssertRules, BaseTranslateParam, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationBatchDeletionParams, ConversationListLoader, ConversationType, DataHosting, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FilterRobotType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, GroupReadReceiptVersion, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IAuditInfoKeyInMessage, IAuditInfoValueInMessage, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChartroomUserAction, IChatRoomEntries, IChatRoomEntry, IChatService, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomErrorKeys, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomService, IChatroomUser, IChatroomUserChangeInfo, IClearMessageOption, ICombineMessageContent, ICombineV2MessageContent, ICombinedMessage, ICommandMessageContent, IConnectionStatusListener, IConversationCachePolicy, IConversationFilter, IConversationIdentifier, IConversationListLoaderOptions, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagFilter, IConversationTagListener, IConversationUnreadCount, IConvertHQVoiceMessageToTextOption, IConvertSpeechToTextOption, IConvertVoiceMessageToTextOption, ICreateGroupFail, IDataHostingService, IDataManagementInfo, IDeletedExpansion, IDownloadAuth, IEditedMessageDraft,
|
|
13218
|
+
export { APIContext, AbsCodec, AppSettings, AreaCode, AssertRules, BaseTranslateParam, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationBatchDeletionParams, ConversationListLoader, ConversationType, DataHosting, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FilterRobotType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, GroupReadReceiptVersion, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IAuditInfoKeyInMessage, IAuditInfoValueInMessage, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChartroomUserAction, IChatRoomEntries, IChatRoomEntry, IChatService, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomErrorKeys, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomService, IChatroomUser, IChatroomUserChangeInfo, IClearMessageOption, ICombineMessageContent, ICombineV2MessageContent, ICombinedMessage, ICommandMessageContent, IConnectionStatusListener, IConversationCachePolicy, IConversationFilter, IConversationIdentifier, IConversationListLoaderOptions, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagFilter, IConversationTagListener, IConversationUnreadCount, IConvertHQVoiceMessageToTextOption, IConvertSpeechToTextOption, IConvertVoiceMessageToTextOption, ICreateGroupFail, IDataHostingService, IDataManagementInfo, IDeletedExpansion, IDownloadAuth, IEditedMessageDraft, IEnginRefreshReferenceMessageResult, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraDataKeyInMessage, IFileMessageContent, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGIFMessageContent, IGetConversationListByTimestampParams, IGetConversationsIncludingRobotsOption, IGetGroupMembersOption, IGetHistoryMessageOption, IGetHistoryMessageResult, IGetHistoryMessagesByTypesOption, IGetUltraGroupListOption, IGetUnreadMentionMeConversationListParams, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupNotificationMessageContent, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHQVoiceMessageContent, IHarmonyOSPushConfig, IIPCMethods, IIPCMethodsSync, IIPCMethodsWithoutResult, IImageMessageContent, IInformationNotificationMessageContent, IInsertMessage, ILocalTagStatus, ILocationMessageContent, ILogData, ILogger, IMemberInviteResponse, IMentionedInfoKeyInMessage, IMessageAttrsForUpdateExpansion, IMessageDesc, IMessageExtraData, IMessageFilter, IMessageIdentifier, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IMessageSendOptions, IModifyMessageParams, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPlatformOnlineStatus, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallCommandMessageContent, IRecallMsgOptions, IRecallNotificationMessageContent, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IReferContentInMessage, IReferContentKeyInMessage, IReferenceMessageContent, IRefreshReferenceMessageParams, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRichContentMessageContent, IRobotInfo, IRuntime, ISRSMsgContent, ISearchMessageParams, ISearchMessagesResult, ISendMsgOptions, IServerGroupBaseInfo, ISightMessageContent, ISpeechToTextInfo, ISpeechToTextResponse, IStorage, IStreamMessageContent, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserOnlineStatus, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITextMessageContent, ITimeRange, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserExtraKeyInMessage, IUserExtraValueInMessage, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IUserSettingsChangedEvent, IUserSettingsModule, IVoiceMessageContent, IWatcher, IiOSPushConfig, InnerInsertMessageParams, InnerTransParam, InterruptionLevel, ItypingStateListener, KVString, LogDBProxy, LogL, LogLevel, LogSource, Log as LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_U32_INTEGER, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageAuditType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageModifyInfo, MessageModifyStatus, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, Platform, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, ReferenceMessageStatus, SSEModule, SentStatus, SpeechToTextStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, TranslateInfo, TranslateItem, TranslateMessageParam, TranslateMessagesParams, TranslateMode, TranslateStatus, TranslateStrategy, TranslateTextParam, TranslateTextsParams, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, UserSettingsChangedKey, UserType, Validator, VersionManage, assert, createLogDBProxy, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidTargetId, map, notEmptyArray, notEmptyObject, notEmptyString, ok, promiseWithResolvers, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };
|