@rongcloud/imlib-next 5.6.2-beem.5 → 5.7.0
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 +116 -28
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LogLevel, EnableLogL, MessageDirection, ReceivedStatus, IReadReceiptInfo, IPushConfig, ConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUserProfile,
|
|
2
|
-
export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption,
|
|
1
|
+
import { LogLevel, EnableLogL, ConversationType, MessageDirection, ReceivedStatus, IReadReceiptInfo, IPushConfig, UltraGroupChannelType, ConnectionStatus, IPluginGenerator, IAsyncRes, NotificationStatus, NotificationLevel, IUserProfile, IConversationOption, ITypingMessage, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IMessageDeliver, IGroupMessageDeliverStatus, IBaseConversationInfo, IConversationState as IConversationState$1, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedType, IMessageReaderResponse, IReceivedMessage, IReceivedConversation, ITagParam, ITagInfo, IConversationTag, FileType, IUploadAuth, UploadMethod, IGroupMessageDeliverInfo, IProxy, IPromiseResult, IResponse } from '@rongcloud/engine';
|
|
2
|
+
export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption, IConversationTag, IDeletedExpansion, IDeliveredUser, IEventListener, IExpansionListenerData, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IMessageDeliver, IMessageReader, IMessageReaderResponse, IOperateInfo, IOperateStatusNotify, IOperateSummary, IProxy, IPushConfig, IRTCRoomBindOption, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogL, LogLevel, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, ReceivedStatus, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
|
|
3
3
|
|
|
4
4
|
declare enum Events {
|
|
5
5
|
/**
|
|
@@ -106,7 +106,19 @@ declare enum Events {
|
|
|
106
106
|
* 超级群私有频道成员变更-退出
|
|
107
107
|
* @since 5.4.2
|
|
108
108
|
*/
|
|
109
|
-
ULTRA_GROUP_CHANNEL_USER_KICKED = "ULTRA_GROUP_CHANNEL_USER_KICKED"
|
|
109
|
+
ULTRA_GROUP_CHANNEL_USER_KICKED = "ULTRA_GROUP_CHANNEL_USER_KICKED",
|
|
110
|
+
/**
|
|
111
|
+
* 单聊消息送达通知
|
|
112
|
+
* @hidden 暂仅 Beem 使用,无需公开
|
|
113
|
+
* @since 5.6.0
|
|
114
|
+
*/
|
|
115
|
+
PRIVATE_MESSAGE_DELIVERED = "PRIVATE_MESSAGE_DELIVERED",
|
|
116
|
+
/**
|
|
117
|
+
* 群组消息送达状态通知
|
|
118
|
+
* @hidden 暂仅 Beem 使用,无需公开
|
|
119
|
+
* @since 5.6.0
|
|
120
|
+
*/
|
|
121
|
+
GROUP_MESSAGE_DELIVERED = "GROUP_MESSAGE_DELIVERED"
|
|
110
122
|
}
|
|
111
123
|
/**
|
|
112
124
|
* 发送状态
|
|
@@ -177,7 +189,7 @@ declare type IInitOption = {
|
|
|
177
189
|
*/
|
|
178
190
|
indexDBSwitch?: boolean;
|
|
179
191
|
/**
|
|
180
|
-
*
|
|
192
|
+
* @deprecated 已废弃,默认不再在 Electron 平台下校验导航服务的 CA 问题
|
|
181
193
|
*/
|
|
182
194
|
checkCA?: boolean;
|
|
183
195
|
/**
|
|
@@ -243,7 +255,7 @@ interface IAReceivedMessage {
|
|
|
243
255
|
* * 8: 手动关注的公众号
|
|
244
256
|
* * 9: RTCLib 房间
|
|
245
257
|
*/
|
|
246
|
-
conversationType:
|
|
258
|
+
conversationType: ConversationType;
|
|
247
259
|
/**
|
|
248
260
|
* 消息在服务器端的发送时间
|
|
249
261
|
*/
|
|
@@ -307,7 +319,7 @@ interface IAReceivedMessage {
|
|
|
307
319
|
/**
|
|
308
320
|
* 消息的发送状态,Electron 平台独有字段
|
|
309
321
|
*/
|
|
310
|
-
sentStatus
|
|
322
|
+
sentStatus?: SentStatus;
|
|
311
323
|
/**
|
|
312
324
|
* 消息已读回执信息,导航配置grpRRVer=1时群组类型消息内存在, 其他情况为undefined
|
|
313
325
|
*/
|
|
@@ -320,6 +332,18 @@ interface IAReceivedMessage {
|
|
|
320
332
|
* 消息本地 ID,Electron 平台独有字段
|
|
321
333
|
*/
|
|
322
334
|
messageId?: number;
|
|
335
|
+
/**
|
|
336
|
+
* 超级群专有字段,是否断档,服务端收到大量消息可能会断档,所以消息存在此标志位,断档需要客户手动拉取历史消息
|
|
337
|
+
*/
|
|
338
|
+
isInterrupt?: boolean;
|
|
339
|
+
/**
|
|
340
|
+
* 超级群专有字段,拉取历史消息时表示该消息是否修改过(仅超级群有效)
|
|
341
|
+
*/
|
|
342
|
+
isModifyMessage?: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* 超级群专有字段,拉取历史消息时表示该消息是否为超级群频道类型(仅超级群有效)
|
|
345
|
+
*/
|
|
346
|
+
channelType?: UltraGroupChannelType;
|
|
323
347
|
}
|
|
324
348
|
declare type GetHistoryMessageOption = {
|
|
325
349
|
/**
|
|
@@ -466,7 +490,7 @@ interface IAReceivedConversation {
|
|
|
466
490
|
* * 8: 手动关注的公众号
|
|
467
491
|
* * 9: RTCLib 房间
|
|
468
492
|
*/
|
|
469
|
-
conversationType:
|
|
493
|
+
conversationType: ConversationType;
|
|
470
494
|
/**
|
|
471
495
|
* 会话 id
|
|
472
496
|
*/
|
|
@@ -516,6 +540,16 @@ interface IAReceivedConversation {
|
|
|
516
540
|
* @deprecated 字段已废弃即将删除,不推荐使用
|
|
517
541
|
*/
|
|
518
542
|
versionTime?: number;
|
|
543
|
+
/**
|
|
544
|
+
* 按照消息搜索会话时,匹配到的消息数量(仅 Electron 有效)
|
|
545
|
+
*/
|
|
546
|
+
matchCount?: number;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* @category Interface
|
|
550
|
+
*/
|
|
551
|
+
interface IAReceivedConversationByTag extends IAReceivedConversation {
|
|
552
|
+
isTopInTag: boolean;
|
|
519
553
|
}
|
|
520
554
|
/**
|
|
521
555
|
* @category Interface
|
|
@@ -749,7 +783,7 @@ interface IMessagesEvent {
|
|
|
749
783
|
/**
|
|
750
784
|
* 接收的消息数据
|
|
751
785
|
*/
|
|
752
|
-
messages:
|
|
786
|
+
messages: IAReceivedMessage[];
|
|
753
787
|
}
|
|
754
788
|
interface IReadReceiptReceivedEvent {
|
|
755
789
|
/**
|
|
@@ -812,14 +846,14 @@ interface IConversationEvent {
|
|
|
812
846
|
/**
|
|
813
847
|
* 会话信息数组
|
|
814
848
|
*/
|
|
815
|
-
|
|
849
|
+
conversationList: IConversationState[];
|
|
816
850
|
}
|
|
817
851
|
|
|
818
852
|
declare type EventListeners = {
|
|
819
853
|
[Events.CONNECTING]: () => void;
|
|
820
854
|
[Events.CONNECTED]: () => void;
|
|
821
|
-
[Events.DISCONNECT]: (
|
|
822
|
-
[Events.SUSPEND]: (
|
|
855
|
+
[Events.DISCONNECT]: (code: ErrorCode) => void;
|
|
856
|
+
[Events.SUSPEND]: (code: ErrorCode) => void;
|
|
823
857
|
[Events.MESSAGES]: (messages: IMessagesEvent) => void;
|
|
824
858
|
[Events.READ_RECEIPT_RECEIVED]: (event: IReadReceiptReceivedEvent) => void;
|
|
825
859
|
[Events.MESSAGE_RECEIPT_REQUEST]: (event: IMessageReceiptRequestEvent) => void;
|
|
@@ -832,14 +866,22 @@ declare type EventListeners = {
|
|
|
832
866
|
[Events.CONVERSATION_TAG]: () => void;
|
|
833
867
|
[Events.TYPING_STATUS]: (event: ITypingStatusEvent) => void;
|
|
834
868
|
[Events.MESSAGE_BLOCKED]: (data: IBlockedMessageInfo) => void;
|
|
835
|
-
[Events.ULTRA_GROUP_ENABLE]: (list:
|
|
869
|
+
[Events.ULTRA_GROUP_ENABLE]: (list: IAReceivedConversation[]) => void;
|
|
836
870
|
[Events.OPERATE_STATUS]: (status: IOperateStatusNotify) => void;
|
|
837
|
-
[Events.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED]: (list:
|
|
838
|
-
[Events.ULTRA_GROUP_MESSAGE_MODIFIED]: (list:
|
|
839
|
-
[Events.ULTRA_GROUP_MESSAGE_RECALLED]: (list:
|
|
871
|
+
[Events.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED]: (list: IAReceivedMessage[]) => void;
|
|
872
|
+
[Events.ULTRA_GROUP_MESSAGE_MODIFIED]: (list: IAReceivedMessage[]) => void;
|
|
873
|
+
[Events.ULTRA_GROUP_MESSAGE_RECALLED]: (list: IAReceivedMessage[]) => void;
|
|
840
874
|
[Events.ULTRA_GROUP_CHANNEL_TYPE_CHANGE]: (list: IUltraChannelChangeInfo[]) => void;
|
|
841
875
|
[Events.ULTRA_GROUP_CHANNEL_DELETE]: (list: IUltraChannelDeleteInfo[]) => void;
|
|
842
876
|
[Events.ULTRA_GROUP_CHANNEL_USER_KICKED]: (list: IUltraChannelUserKickedInfo[]) => void;
|
|
877
|
+
/**
|
|
878
|
+
* @hidden
|
|
879
|
+
*/
|
|
880
|
+
[Events.PRIVATE_MESSAGE_DELIVERED]: (list: IMessageDeliver[]) => void;
|
|
881
|
+
/**
|
|
882
|
+
* @hidden
|
|
883
|
+
*/
|
|
884
|
+
[Events.GROUP_MESSAGE_DELIVERED]: (list: IGroupMessageDeliverStatus[]) => void;
|
|
843
885
|
};
|
|
844
886
|
|
|
845
887
|
/**
|
|
@@ -1024,8 +1066,16 @@ declare function setConversationToTop(options: IConversationOption, isTop?: bool
|
|
|
1024
1066
|
/**
|
|
1025
1067
|
* 获取置顶会话
|
|
1026
1068
|
* @category 会话
|
|
1069
|
+
* @param conversationTypes 会话类型
|
|
1070
|
+
* @param channelId 不传或传 undefined 时获取全部 channelId 类型的置顶会话
|
|
1027
1071
|
*/
|
|
1028
|
-
declare function getTopConversationList(): Promise<IAsyncRes<
|
|
1072
|
+
declare function getTopConversationList(conversationTypes?: ConversationType[], channelId?: string): Promise<IAsyncRes<IAReceivedConversation[]>>;
|
|
1073
|
+
/**
|
|
1074
|
+
* 获取未读会话列表
|
|
1075
|
+
* @category 会话
|
|
1076
|
+
* @param conversationTypes 会话类型
|
|
1077
|
+
*/
|
|
1078
|
+
declare function getUnreadConversationList(conversationTypes?: ConversationType[]): Promise<IAsyncRes<IAReceivedConversation[]>>;
|
|
1029
1079
|
/**
|
|
1030
1080
|
* 获取单个群会话 @ 消息未读数
|
|
1031
1081
|
* @category 会话未读数
|
|
@@ -1063,7 +1113,7 @@ declare function sendUltraGroupTypingStatus(options: IConversationOption): Promi
|
|
|
1063
1113
|
* @category 超级群
|
|
1064
1114
|
*/
|
|
1065
1115
|
declare function getUltraGroupMessageListByMessageUId(options: IConversationOption, msgs: IMessageDesc[]): Promise<IAsyncRes<{
|
|
1066
|
-
[messageUid: string]:
|
|
1116
|
+
[messageUid: string]: IAReceivedMessage | undefined;
|
|
1067
1117
|
}>>;
|
|
1068
1118
|
/**
|
|
1069
1119
|
* 修改消息扩展
|
|
@@ -1605,7 +1655,7 @@ declare function sendSyncReadStatusMessage(conversation: IConversationOption, la
|
|
|
1605
1655
|
code: ErrorCode;
|
|
1606
1656
|
msg?: undefined;
|
|
1607
1657
|
} | {
|
|
1608
|
-
code: ErrorCode.TIMEOUT | ErrorCode.UNKNOWN | ErrorCode.PARAMETER_ERROR | ErrorCode.EXTRA_METHOD_UNDEFINED | ErrorCode.MAIN_PROCESS_ERROR | ErrorCode.PARAMETER_CHANGED | ErrorCode.RC_DISCUSSION_GROUP_ID_INVALID | ErrorCode.SEND_FREQUENCY_TOO_FAST | ErrorCode.NOT_IN_DISCUSSION | ErrorCode.FORBIDDEN_IN_GROUP | ErrorCode.RECALL_MESSAGE | ErrorCode.NOT_IN_GROUP | ErrorCode.NOT_IN_CHATROOM | ErrorCode.FORBIDDEN_IN_CHATROOM | ErrorCode.RC_CHATROOM_USER_KICKED | ErrorCode.RC_CHATROOM_NOT_EXIST | ErrorCode.RC_CHATROOM_IS_FULL | ErrorCode.RC_CHATROOM_PATAMETER_INVALID | ErrorCode.CHATROOM_GET_HISTORYMSG_ERROR | ErrorCode.CHATROOM_NOT_OPEN_HISTORYMSG_STORE | ErrorCode.CHATROOM_KV_EXCEED | ErrorCode.CHATROOM_KV_OVERWRITE_INVALID | ErrorCode.CHATROOM_KV_STORE_NOT_OPEN | ErrorCode.CHATROOM_KEY_NOT_EXIST | ErrorCode.CHATROOM_KV_SET_ERROR | ErrorCode.SENSITIVE_SHIELD | ErrorCode.SENSITIVE_REPLACE | ErrorCode.JOIN_IN_DISCUSSION | ErrorCode.CREATE_DISCUSSION | ErrorCode.INVITE_DICUSSION | ErrorCode.GET_USERINFO_ERROR | ErrorCode.REJECTED_BY_BLACKLIST | ErrorCode.RC_NET_CHANNEL_INVALID | ErrorCode.RC_NET_UNAVAILABLE | ErrorCode.RC_MSG_RESP_TIMEOUT | ErrorCode.RC_HTTP_SEND_FAIL | ErrorCode.RC_HTTP_REQ_FAIL | ErrorCode.RC_HTTP_RECV_FAIL | ErrorCode.
|
|
1658
|
+
code: ErrorCode.TIMEOUT | ErrorCode.UNKNOWN | ErrorCode.PARAMETER_ERROR | ErrorCode.EXTRA_METHOD_UNDEFINED | ErrorCode.MAIN_PROCESS_ERROR | ErrorCode.PARAMETER_CHANGED | ErrorCode.RC_DISCUSSION_GROUP_ID_INVALID | ErrorCode.SEND_FREQUENCY_TOO_FAST | ErrorCode.NOT_IN_DISCUSSION | ErrorCode.FORBIDDEN_IN_GROUP | ErrorCode.RECALL_MESSAGE | ErrorCode.NOT_IN_GROUP | ErrorCode.NOT_IN_CHATROOM | ErrorCode.FORBIDDEN_IN_CHATROOM | ErrorCode.RC_CHATROOM_USER_KICKED | ErrorCode.RC_CHATROOM_NOT_EXIST | ErrorCode.RC_CHATROOM_IS_FULL | ErrorCode.RC_CHATROOM_PATAMETER_INVALID | ErrorCode.CHATROOM_GET_HISTORYMSG_ERROR | ErrorCode.CHATROOM_NOT_OPEN_HISTORYMSG_STORE | ErrorCode.CHATROOM_KV_EXCEED | ErrorCode.CHATROOM_KV_OVERWRITE_INVALID | ErrorCode.CHATROOM_KV_STORE_NOT_OPEN | ErrorCode.CHATROOM_KEY_NOT_EXIST | ErrorCode.CHATROOM_KV_SET_ERROR | ErrorCode.SENSITIVE_SHIELD | ErrorCode.SENSITIVE_REPLACE | ErrorCode.JOIN_IN_DISCUSSION | ErrorCode.CREATE_DISCUSSION | ErrorCode.INVITE_DICUSSION | ErrorCode.GET_USERINFO_ERROR | ErrorCode.REJECTED_BY_BLACKLIST | ErrorCode.RC_NET_CHANNEL_INVALID | ErrorCode.RC_NET_UNAVAILABLE | ErrorCode.RC_MSG_RESP_TIMEOUT | ErrorCode.RC_HTTP_SEND_FAIL | ErrorCode.RC_HTTP_REQ_FAIL | ErrorCode.RC_HTTP_RECV_FAIL | ErrorCode.RC_NAVI_REQ_FAILED | ErrorCode.RC_NODE_NOT_FOUND | ErrorCode.RC_DOMAIN_NOT_RESOLVE | ErrorCode.RC_SOCKET_NOT_CREATED | ErrorCode.RC_SOCKET_DISCONNECTED | ErrorCode.RC_PING_EXCEED_LIMIT | ErrorCode.RC_MSG_SEND_FAIL | ErrorCode.RC_MSG_CONTENT_EXCEED_LIMIT | ErrorCode.RC_CONN_ACK_TIMEOUT | ErrorCode.RC_CONN_PROTO_VERSION_ERROR | ErrorCode.RC_CONN_IDENTIFIER_REJECTED | ErrorCode.RC_CONN_SERVER_UNAVAILABLE | ErrorCode.RC_CONN_TOKEN_INCORRECT | ErrorCode.RC_CONN_NOT_AUTHRORIZED | ErrorCode.RC_CONN_REDIRECTED | ErrorCode.RC_CONN_PACKAGE_NAME_INVALID | ErrorCode.RC_CONN_APP_BLOCKED_OR_DELETED | ErrorCode.RC_CONN_USER_BLOCKED | ErrorCode.RC_DISCONN_KICK | ErrorCode.RC_DISCONN_EXCEPTION | ErrorCode.RC_CONN_TOKEN_EXPIRED | ErrorCode.RC_CONN_DEVICE_ERROR | ErrorCode.RC_CONN_HOSTNAME_ERROR | ErrorCode.RC_DISCONN_SAME_CLIENT_ON_LINE | ErrorCode.RC_LISCENSE_COUNT_OUT_OF_LIMIT | ErrorCode.RC_CONN_WRONG_CLUSTER | ErrorCode.RC_APP_AUTH_NOT_PASS | ErrorCode.RC_OTP_USED | ErrorCode.RC_PLATFORM_ERROR | ErrorCode.RC_ACCOUNT_CANCELLATION | ErrorCode.RC_LICENSE_EXPIRED | ErrorCode.RC_QUERY_ACK_NO_DATA | ErrorCode.RC_MSG_DATA_INCOMPLETE | ErrorCode.RC_TCP_RESET | ErrorCode.BIZ_ERROR_CLIENT_NOT_INIT | ErrorCode.BIZ_ERROR_DATABASE_ERROR | ErrorCode.BIZ_ERROR_INVALID_PARAMETER | ErrorCode.BIZ_ERROR_NO_CHANNEL | ErrorCode.BIZ_ERROR_RECONNECT_SUCCESS | ErrorCode.BIZ_ERROR_CONNECTING | ErrorCode.MSG_ROAMING_SERVICE_UNAVAILABLE | ErrorCode.MSG_INSERT_ERROR | ErrorCode.MSG_DEL_ERROR | ErrorCode.TAG_EXISTS | ErrorCode.TAG_NOT_EXIST | ErrorCode.NO_TAG_IN_CONVER | ErrorCode.CONVER_REMOVE_ERROR | ErrorCode.CONVER_GETLIST_ERROR | ErrorCode.CONVER_SETOP_ERROR | ErrorCode.CONVER_TOTAL_UNREAD_ERROR | ErrorCode.CONVER_TYPE_UNREAD_ERROR | ErrorCode.CONVER_ID_TYPE_UNREAD_ERROR | ErrorCode.EXPANSION_LIMIT_EXCEET | ErrorCode.MESSAGE_KV_NOT_SUPPORT | ErrorCode.CONVER_OUT_LIMIT_ERROR | ErrorCode.CONVER_GET_ERROR | ErrorCode.GROUP_SYNC_ERROR | ErrorCode.GROUP_MATCH_ERROR | ErrorCode.READ_RECEIPT_ERROR | ErrorCode.PACKAGE_ENVIRONMENT_ERROR | ErrorCode.CAN_NOT_RECONNECT | ErrorCode.SERVER_UNAVAILABLE | ErrorCode.HOSTNAME_ERROR | ErrorCode.HAS_OHTER_SAME_CLIENT_ON_LINE | ErrorCode.METHOD_NOT_AVAILABLE | ErrorCode.METHOD_NOT_SUPPORT | ErrorCode.MSG_LIMIT_ERROR | ErrorCode.METHOD_ONLY_SUPPORT_ULTRA_GROUP | ErrorCode.UPLOAD_FILE_FAILED | ErrorCode.CHATROOM_ID_ISNULL | ErrorCode.CHARTOOM_JOIN_ERROR | ErrorCode.CHATROOM_HISMESSAGE_ERROR | ErrorCode.CHATROOM_KV_NOT_FOUND | ErrorCode.BLACK_ADD_ERROR | ErrorCode.BLACK_GETSTATUS_ERROR | ErrorCode.BLACK_REMOVE_ERROR | ErrorCode.DRAF_GET_ERROR | ErrorCode.DRAF_SAVE_ERROR | ErrorCode.DRAF_REMOVE_ERROR | ErrorCode.SUBSCRIBE_ERROR | ErrorCode.NOT_SUPPORT | ErrorCode.QNTKN_FILETYPE_ERROR | ErrorCode.QNTKN_GET_ERROR | ErrorCode.COOKIE_ENABLE | ErrorCode.HAVNODEVICEID | ErrorCode.DEVICEIDISHAVE | ErrorCode.FEILD | ErrorCode.VOIPISNULL | ErrorCode.NOENGINETYPE | ErrorCode.NULLCHANNELNAME | ErrorCode.VOIPDYANMICERROR | ErrorCode.NOVOIP | ErrorCode.INTERNALERRROR | ErrorCode.VOIPCLOSE | ErrorCode.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL | ErrorCode.CANCEL | ErrorCode.REJECT | ErrorCode.HANGUP | ErrorCode.BUSYLINE | ErrorCode.NO_RESPONSE | ErrorCode.ENGINE_UN_SUPPORTED | ErrorCode.NETWORK_ERROR | ErrorCode.REMOTE_CANCEL | ErrorCode.REMOTE_REJECT | ErrorCode.REMOTE_HANGUP | ErrorCode.REMOTE_BUSYLINE | ErrorCode.REMOTE_NO_RESPONSE | ErrorCode.REMOTE_ENGINE_UN_SUPPORTED | ErrorCode.REMOTE_NETWORK_ERROR | ErrorCode.VOIP_NOT_AVALIABLE | ErrorCode.CHATROOM_KV_STORE_NOT_ALL_SUCCESS | ErrorCode.CHATROOM_KV_STORE_OUT_LIMIT | ErrorCode.SEARCH_PROPS_LIMIT_ERROR | ErrorCode.INVALID_PARAMETER_PROXY | ErrorCode.INVALID_PARAMETER_TESTHOST | ErrorCode.INVALID_CONNECT_TESTHOST_FAILED | ErrorCode.RC_CONN_PROXY_UNAVAILABLE;
|
|
1609
1659
|
msg: string | undefined;
|
|
1610
1660
|
}>;
|
|
1611
1661
|
/**
|
|
@@ -1686,7 +1736,7 @@ declare function registerMessageType<T>(messageType: string, isPersited: boolean
|
|
|
1686
1736
|
* @category 消息
|
|
1687
1737
|
* @param conversation
|
|
1688
1738
|
*/
|
|
1689
|
-
declare function getFirstUnreadMessage(conversation: IConversationOption): Promise<IAsyncRes<
|
|
1739
|
+
declare function getFirstUnreadMessage(conversation: IConversationOption): Promise<IAsyncRes<IAReceivedMessage | null>>;
|
|
1690
1740
|
/**
|
|
1691
1741
|
* 向本地插入一条消息,不发送到服务器
|
|
1692
1742
|
* @category 消息
|
|
@@ -1702,7 +1752,7 @@ declare function insertMessage$1(conversation: IConversationOption, content: IRe
|
|
|
1702
1752
|
* @category 消息
|
|
1703
1753
|
* @param messageId 本地消息 ID 或 messageUId
|
|
1704
1754
|
*/
|
|
1705
|
-
declare function getMessage(messageId: number): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1755
|
+
declare function getMessage(messageId: number | string): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1706
1756
|
/**
|
|
1707
1757
|
* 获取会话下所有未读的 @ 消息
|
|
1708
1758
|
* @category 消息
|
|
@@ -1829,7 +1879,7 @@ declare function removeTagFromConversations(tagId: string, conversations: IConve
|
|
|
1829
1879
|
* @param count 获取数量
|
|
1830
1880
|
* @param timestamp 会话时间戳
|
|
1831
1881
|
*/
|
|
1832
|
-
declare function getConversationsFromTagByPage(tagId: string, count: number, startTime: number): Promise<IAsyncRes<
|
|
1882
|
+
declare function getConversationsFromTagByPage(tagId: string, count: number, startTime: number): Promise<IAsyncRes<IAReceivedConversationByTag[] | undefined>>;
|
|
1833
1883
|
/**
|
|
1834
1884
|
* 根据标签获取未读消息数
|
|
1835
1885
|
* @category 标签
|
|
@@ -1956,9 +2006,11 @@ declare function searchMessageInTimeRange(conversation: {
|
|
|
1956
2006
|
* @param option 配置参数
|
|
1957
2007
|
*/
|
|
1958
2008
|
declare function getHistoryMessagesByMessageTypes(conversation: IConversationOption, option: IGetHistoryMessagesByTypesOption): Promise<IAsyncRes<{
|
|
2009
|
+
/**
|
|
2010
|
+
* @deprecated 字段已废弃即将删除,推荐使用 list
|
|
2011
|
+
*/
|
|
1959
2012
|
messages: IAReceivedMessage[];
|
|
1960
|
-
|
|
1961
|
-
}>>;
|
|
2013
|
+
} & GetHistoryMessageResult>>;
|
|
1962
2014
|
/**
|
|
1963
2015
|
* 将自己发送的指定时间之前的消息标记对方已读,状态值为 SentStatus.READ
|
|
1964
2016
|
* @param conversation 会话
|
|
@@ -2004,13 +2056,26 @@ declare function clearMessages(conversation: IConversationOption): Promise<IAsyn
|
|
|
2004
2056
|
declare function deleteMessagesByTimestamp(conversation: IConversationOption, timestamp: number, cleanSpace: boolean): Promise<IAsyncRes<void>>;
|
|
2005
2057
|
/**
|
|
2006
2058
|
* 向本地插入一条消息,不发送到服务器
|
|
2007
|
-
* @param
|
|
2008
|
-
* @param targetId 目标 ID
|
|
2059
|
+
* @param conversation 会话
|
|
2009
2060
|
* @param message 消息体
|
|
2010
|
-
* @param
|
|
2061
|
+
* @param options
|
|
2011
2062
|
* 注意:插入消息时,messageUid 将不会存入数据库
|
|
2012
2063
|
*/
|
|
2013
|
-
declare function insertMessage(conversation: IConversationOption, message: IAReceivedMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
2064
|
+
declare function insertMessage(conversation: IConversationOption, message: IAReceivedMessage | BaseMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
2065
|
+
/**
|
|
2066
|
+
* 获取单聊消息的送达时间
|
|
2067
|
+
* @param messageUId 消息 UID
|
|
2068
|
+
* @hidden 暂时仅 BEEM 使用,无需在文档公开
|
|
2069
|
+
* @description 暂仅支持 Electron 平台
|
|
2070
|
+
*/
|
|
2071
|
+
declare function getPrivateMessageDeliverTime(messageUId: string): Promise<IAsyncRes<number>>;
|
|
2072
|
+
/**
|
|
2073
|
+
* 获取群组消息的送达状态
|
|
2074
|
+
* @param messageUId 消息 UID
|
|
2075
|
+
* @hidden 暂时仅 BEEM 使用,无需在文档公开
|
|
2076
|
+
* @description 暂仅支持 Electron 平台
|
|
2077
|
+
*/
|
|
2078
|
+
declare function getGroupMessageDeliverList(targetId: string, messageUId: string): Promise<IAsyncRes<IGroupMessageDeliverInfo>>;
|
|
2014
2079
|
|
|
2015
2080
|
/**
|
|
2016
2081
|
* 清除本地数据, 包括消息列表、会话列表、拉取消息的时间戳
|
|
@@ -2031,6 +2096,8 @@ declare const index_deleteMessages: typeof deleteMessages;
|
|
|
2031
2096
|
declare const index_clearMessages: typeof clearMessages;
|
|
2032
2097
|
declare const index_deleteMessagesByTimestamp: typeof deleteMessagesByTimestamp;
|
|
2033
2098
|
declare const index_insertMessage: typeof insertMessage;
|
|
2099
|
+
declare const index_getPrivateMessageDeliverTime: typeof getPrivateMessageDeliverTime;
|
|
2100
|
+
declare const index_getGroupMessageDeliverList: typeof getGroupMessageDeliverList;
|
|
2034
2101
|
declare const index_clearLocalData: typeof clearLocalData;
|
|
2035
2102
|
declare namespace index {
|
|
2036
2103
|
export {
|
|
@@ -2048,8 +2115,29 @@ declare namespace index {
|
|
|
2048
2115
|
index_clearMessages as clearMessages,
|
|
2049
2116
|
index_deleteMessagesByTimestamp as deleteMessagesByTimestamp,
|
|
2050
2117
|
index_insertMessage as insertMessage,
|
|
2118
|
+
index_getPrivateMessageDeliverTime as getPrivateMessageDeliverTime,
|
|
2119
|
+
index_getGroupMessageDeliverList as getGroupMessageDeliverList,
|
|
2051
2120
|
index_clearLocalData as clearLocalData,
|
|
2052
2121
|
};
|
|
2053
2122
|
}
|
|
2054
2123
|
|
|
2055
|
-
|
|
2124
|
+
/**
|
|
2125
|
+
* 设置代理
|
|
2126
|
+
* @param proxy
|
|
2127
|
+
* @returns
|
|
2128
|
+
*/
|
|
2129
|
+
declare function setProxy(proxy: IProxy | null): IPromiseResult<IProxy>;
|
|
2130
|
+
/**
|
|
2131
|
+
* 获取代理
|
|
2132
|
+
* @param proxy
|
|
2133
|
+
* @returns
|
|
2134
|
+
*/
|
|
2135
|
+
declare function getProxy(): IPromiseResult<IProxy>;
|
|
2136
|
+
/**
|
|
2137
|
+
* 测试代理
|
|
2138
|
+
* @param proxy
|
|
2139
|
+
* @returns
|
|
2140
|
+
*/
|
|
2141
|
+
declare function testProxy(proxy: IProxy, testHost: string): IPromiseResult<IResponse>;
|
|
2142
|
+
|
|
2143
|
+
export { BaseMessage, _default$6 as CombineMessage, ConnectType, EventListeners, Events, _default$5 as FileMessage, _default$4 as GIFMessage, GetHistoryMessageOption, GetHistoryMessageResult, _default$9 as HQVoiceMessage, IAReceivedConversation, IAReceivedConversationByTag, IAReceivedMessage, ICombineMessageBody, IConversationEvent, IConversationState, IConversationUpdateItem, IExtraData, IFileMessageBody, IGIFMessageBody, IGetHistoryMessagesByTypesOption, IHQVoiceMessageBody, IImageMessageBody, IImageMessageOption, IInitOption, IInsertOptions, ILocationMessageBody, IMessageDesc, IMessageReceiptRequestEvent, IMessageReceiptResponseEvent, IMessagesEvent, IReadReceiptReceivedEvent, IRecallMessageOptions, IReceivedUpdateConversation, IReferenceMessageBody, IRichContentMessageBody, ISearchMessageInTimeRangeOption, ISendBody, ISendFileMessageOptions, ISendImageMessageOptions, ISendMessageOptions, ISendSightMessageOptions, ISightMessageBody, ITextMessageBody, IThumbnailConfig, ITypingStatusEvent, IUploadHooks, IUploadMessageOption, IUserInfo, IVoiceMessageBody, _default$a as ImageMessage, _default$2 as LocationMessage, MentionedInfo$1 as MentionedInfo, MentionedInfo as MentionedInfoBody, MessageConstructor, MessageType, _default$1 as ReferenceMessage, _default as RichContentMessage, SentStatus, _default$8 as SightMessage, _default$7 as TextMessage, _default$3 as VoiceMessage, __addSDKVersion, addConversationsToTag, addEventListener, addTag, addToBlacklist, bindRTCRoomForChatroom, clearAllMessagesUnreadStatus, clearEventListeners, clearHistoryMessages, clearMessages$1 as clearMessages, clearMessagesUnreadStatus, clearTextMessageDraft, clearUnreadCountByTimestamp, connect, deleteLocalMessagesByTimestamp, deleteMessages$1 as deleteMessages, destroy, disconnect, index as electronExtension, forceRemoveChatRoomEntry, forceSetChatRoomEntry, getAllChatRoomEntries, getAllConversationState, getAllUltraGroupUnreadCount, getAllUltraGroupUnreadMentionedCount, getAllUnreadMentionedCount, getBlacklist, getBlacklistStatus, getBlockUltraGroupList, getBlockedConversationList, getChatRoomEntry, getChatRoomInfo, getChatroomHistoryMessages, getConnectionStatus, getConversation, getConversationList$1 as getConversationList, getConversationNotificationLevel, getConversationNotificationStatus, getConversationsFromTagByPage, getCurrentUserId, getDeviceId, getFileToken, getFileUrl, getFirstUnreadMessage, getHistoryMessages, getMessage, getMessageReader, getProxy, getRemoteHistoryMessages, getServerTime, getTags, getTagsFromConversation, getTextMessageDraft, getTopConversationList, getTotalUnreadCount, getTotalUnreadCountByLevels, getTotalUnreadMentionedCountByLevels, getUltraGroupDefaultNotificationLevel, getUltraGroupFirstUnreadMessageTimestamp, getUltraGroupList, getUltraGroupMessageListByMessageUId, getUltraGroupUnreadCountByTargetId, getUltraGroupUnreadMentionedCountByTargetId, getUltraGroupUnreadMentionedMessages, getUnreadConversationList, getUnreadCount, getUnreadCountByTag, getUnreadMentionedCount, getUnreadMentionedMessages, init, insertMessage$1 as insertMessage, installPlugin, joinChatRoom, joinExistChatRoom, modifyMessage, onceEventListener, quitChatRoom, recallMessage, registerMessageType, removeAllExpansionForUltraGroupMessage, removeChatRoomEntries, removeChatRoomEntry, removeConversation, removeConversationsFromTag, removeEventListener, removeEventListeners, removeExpansionForUltraGroupMessage, removeFromBlacklist, removeMessageExpansionForKey, removeTag, removeTagFromConversations, removeTagsFromConversation, saveTextMessageDraft, searchConversationByContent$1 as searchConversationByContent, searchMessages$1 as searchMessages, sendFileMessage, sendHQVoiceMessage, sendImageMessage, sendMessage, sendReadReceiptMessage, sendReadReceiptRequest, sendReadReceiptResponse, sendReadReceiptResponseV2, sendSightMessage, sendSyncReadStatusMessage, sendTextMessage, sendTypingStatusMessage, sendUltraGroupTypingStatus, setChatRoomEntries, setChatRoomEntry, setConversationNotificationLevel, setConversationNotificationStatus, setConversationToTop, setConversationToTopInTag, setMessageReceivedStatus$1 as setMessageReceivedStatus, setProxy, setUltraGroupDefaultNotificationLevel, testProxy, updateExpansionForUltraGroupMessage, updateMessageExpansion, updateTag };
|