@rongcloud/electron-renderer 5.28.0-c-tmp.1 → 5.28.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.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +104 -135
- package/index.esm.js +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
- package/renderer.cjs.js +1 -1
- package/renderer.esm.js +2 -2
package/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BasicEngine,
|
|
1
|
+
import { BasicEngine, IChatroomService, IChatService, IDataHostingModule, IUserSettingsModule, Codec, InnerRTCKeyMaps, IEngineWatcher, IAPIContextOption, IPromiseResult, INaviInfo, LogType, BasicLogger, RCConnectionStatus, IConversationIdentifier, IGetHistoryMessageOption, RCResult, IReceivedMessage, IGetHistoryMessagesByTypesOption, MessageDirection, IRecallMsgOptions, ConversationType, IReceivedConversation, IGetConversationListByTimestampParams, ConversationBatchDeletionParams, NotificationLevel, IFirstUnreadMessageInfo, TranslateStrategy, ISendMsgOptions, IMessageReaderResponse, IAsyncRes, IMessageReadReceiptV4Response, MessageRegisterParams, IChatroomJoinResponse, IChatroomInfo, IGetHistoryMessageResult, IChatroomEntry, IChatroomEntries, IRemoveChatroomEntry, IRemoveChatroomEntries, FileType, IUploadAuth, UploadMethod, ErrorCode, InnerInsertMessageParams, IInsertMessage, IClearMessageOption, ISearchMessageParams, ISearchMessagesResult, IAppPushConfig, IRTCRoomBindOption, ITagParam, ITagInfo, IReceivedConversationByTag, ILocalTagStatus, IConversationTag, IGetUltraGroupListOption, IUltraGroupUnreadInfo, IOSInfo, IProcessInfo, IProxy, IResponse, INetwork, SubscribeType, ISubscribeUserStatusInfo, IUserProfileInfo, IUpdateMyProfileFail, UserProfileVisibility, IServerGroupBaseInfo, ICreateGroupFail, IErrorKeys, IGroupInfo, IQuitGroupConfig, GroupOperationType, GroupMemberRole, IPagingQueryOption, IPagingQueryResult, IGroupMemberInfo, IProcessCode, GroupOperationRole, GroupOperationStatus, GroupApplicationDirection, GroupApplicationStatus, IGroupApplicationInfo, IFollowsInfo, DirectionType, IFriendRelationInfo, QueryFriendsDirectionType, IFriendInfo, FriendApplicationType, FriendApplicationStatus, IFriendApplicationInfo, FriendAddPermission, INotificationQuietHoursSetting, IMessageIdentifier, ReadReceiptInfoV5, ReadReceiptUsersOption, ReadReceiptUsersResult, IConvertSpeechToTextOption, InnerTransParam, TranslateMode, IModifyMessageParams, IEnginRefreshReferenceMessageResult, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IExpansionMsgContent, ISubscribeUserOnlineStatus, IEditedMessageDraft, IGetUnreadMentionMeConversationListParams } from '@rongcloud/engine';
|
|
2
2
|
|
|
3
|
-
declare class RCCppEngine extends BasicEngine implements
|
|
3
|
+
declare class RCCppEngine extends BasicEngine implements IChatroomService, IChatService, IDataHostingModule, IUserSettingsModule {
|
|
4
4
|
#private;
|
|
5
5
|
private _cache;
|
|
6
|
-
get chat():
|
|
7
|
-
get chatroom():
|
|
6
|
+
get chat(): IChatService;
|
|
7
|
+
get chatroom(): IChatroomService;
|
|
8
8
|
get userSettings(): IUserSettingsModule;
|
|
9
9
|
constructor(codec: Codec<InnerRTCKeyMaps>, watcher: IEngineWatcher, options: IAPIContextOption);
|
|
10
10
|
private _setConnectionStatus;
|
|
@@ -21,97 +21,85 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
21
21
|
private _send2Main;
|
|
22
22
|
private _callMainSync;
|
|
23
23
|
refetchNaviInfo(): IPromiseResult<INaviInfo | null>;
|
|
24
|
-
|
|
24
|
+
get naviInfo(): INaviInfo | null;
|
|
25
25
|
createLogger(id: string, type: LogType): BasicLogger;
|
|
26
|
-
|
|
26
|
+
get connectionStatus(): RCConnectionStatus;
|
|
27
27
|
connect(token: string, reconnectKickEnable: boolean, openCallPlus: boolean, traceId: string): IPromiseResult<string>;
|
|
28
28
|
reportSDKInfo(versionInfo: {
|
|
29
29
|
[name: string]: string;
|
|
30
30
|
}): void;
|
|
31
|
-
|
|
32
|
-
getHistoryMessage(
|
|
31
|
+
get connectedTime(): number;
|
|
32
|
+
getHistoryMessage(conversation: IConversationIdentifier, options: Required<IGetHistoryMessageOption>, fromLocal: boolean): Promise<RCResult<{
|
|
33
33
|
list: IReceivedMessage[];
|
|
34
34
|
hasMore: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
list: IReceivedMessage[];
|
|
38
|
-
hasMore: boolean;
|
|
39
|
-
}>;
|
|
40
|
-
getContinuousMessages(conversationType: ConversationType, targetId: string, timestamp: number, count: number, order: 0 | 1, channelId: string): IPromiseResult<{
|
|
35
|
+
}>>;
|
|
36
|
+
getContinuousMessages(conversation: IConversationIdentifier, options: Required<IGetHistoryMessageOption>): Promise<RCResult<{
|
|
41
37
|
list: IReceivedMessage[];
|
|
42
38
|
timestamp: number;
|
|
43
39
|
hasMore: boolean;
|
|
44
|
-
}
|
|
45
|
-
getHistoryMessagesByObjectNames(
|
|
40
|
+
}>>;
|
|
41
|
+
getHistoryMessagesByObjectNames(conversation: IConversationIdentifier, option: Required<IGetHistoryMessagesByTypesOption>): Promise<RCResult<{
|
|
46
42
|
list: IReceivedMessage[];
|
|
47
43
|
hasMore: boolean;
|
|
48
44
|
}>>;
|
|
49
|
-
deleteRemoteMessage(conversation:
|
|
45
|
+
deleteRemoteMessage(conversation: IConversationIdentifier, messages: {
|
|
50
46
|
messageUId: string;
|
|
51
47
|
sentTime: number;
|
|
52
48
|
messageDirection: MessageDirection;
|
|
53
49
|
}[]): Promise<RCResult>;
|
|
54
|
-
recallMsg(conversation:
|
|
55
|
-
deleteRemoteMessageByTimestamp(conversation:
|
|
56
|
-
|
|
50
|
+
recallMsg(conversation: IConversationIdentifier, recallMsgOptions: IRecallMsgOptions): Promise<RCResult<IReceivedMessage>>;
|
|
51
|
+
deleteRemoteMessageByTimestamp(conversation: IConversationIdentifier, timestamp: number): Promise<RCResult>;
|
|
52
|
+
getTopConversationList(includeUG: boolean, conversationTypes?: ConversationType[], channelId?: string): Promise<RCResult<IReceivedConversation[]>>;
|
|
53
|
+
getUnreadConversationList(includeUG: boolean, conversationTypes?: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
|
|
54
|
+
getConversationListByPageIndex(index: number, limit: number): Promise<RCResult<IReceivedConversation[]>>;
|
|
55
|
+
getAllConversationList(includeUG: boolean, channelId?: string): Promise<RCResult<IReceivedConversation[]>>;
|
|
56
|
+
getConversationListByTimestamp(params: IGetConversationListByTimestampParams, includeUG: boolean): Promise<RCResult<IReceivedConversation[]>>;
|
|
57
57
|
getUntaggedConversationListByPage(timestamp: number, count: number, topPriority: boolean): Promise<RCResult<IReceivedConversation[]>>;
|
|
58
|
-
getConversation(
|
|
58
|
+
getConversation(conversation: IConversationIdentifier): Promise<RCResult<IReceivedConversation>>;
|
|
59
59
|
batchDeleteConversations(params: ConversationBatchDeletionParams): Promise<RCResult>;
|
|
60
|
-
getTotalUnreadCount(
|
|
61
|
-
getConversationUnreadCount(
|
|
62
|
-
getTotalUnreadCountByLevels(conversationTypes: ConversationType[], levels: NotificationLevel[], isMentioned?: boolean): Promise<
|
|
63
|
-
clearConversationUnreadCount(
|
|
64
|
-
getFirstUnreadMessage(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
batchSetConversationToTop(conversations:
|
|
70
|
-
batchSetConversationNotificationLevel(conversations:
|
|
71
|
-
batchSetConversationTranslateStrategy(conversations:
|
|
72
|
-
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions, onBefore?: (messageId: number) => void
|
|
60
|
+
getTotalUnreadCount(conversationTypes: ConversationType[], includeMuted: boolean, channelId?: string): Promise<RCResult<number>>;
|
|
61
|
+
getConversationUnreadCount(conversation: IConversationIdentifier): Promise<RCResult<number>>;
|
|
62
|
+
getTotalUnreadCountByLevels(conversationTypes: ConversationType[], levels: NotificationLevel[], isMentioned?: boolean): Promise<RCResult<number>>;
|
|
63
|
+
clearConversationUnreadCount(conversation: IConversationIdentifier): Promise<RCResult>;
|
|
64
|
+
getFirstUnreadMessage(conversation: IConversationIdentifier): Promise<RCResult<IReceivedMessage | null>>;
|
|
65
|
+
getFirstUnreadMessageDigest(identifier: IConversationIdentifier): Promise<RCResult<IFirstUnreadMessageInfo | null>>;
|
|
66
|
+
saveTextMessageDraft(conversation: IConversationIdentifier, draft: string): Promise<RCResult>;
|
|
67
|
+
getTextMessageDraft(conversation: IConversationIdentifier): Promise<RCResult<string>>;
|
|
68
|
+
clearTextMessageDraft(conversation: IConversationIdentifier): Promise<RCResult>;
|
|
69
|
+
batchSetConversationToTop(conversations: IConversationIdentifier[], isTop?: boolean, isUpdateTime?: boolean, isCreateConversation?: boolean): Promise<RCResult>;
|
|
70
|
+
batchSetConversationNotificationLevel(conversations: IConversationIdentifier[], notificationLevel: NotificationLevel): Promise<RCResult>;
|
|
71
|
+
batchSetConversationTranslateStrategy(conversations: IConversationIdentifier[], strategy: TranslateStrategy): Promise<RCResult>;
|
|
72
|
+
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions, traceId: string, onBefore?: (messageId: number) => void): IPromiseResult<IReceivedMessage>;
|
|
73
73
|
sendReadReceiptV2(targetId: string, messageUIds: string[], channelId?: string): Promise<RCResult>;
|
|
74
74
|
getMessageReader(targetId: string, messageUId: string, channelId?: string): IPromiseResult<IMessageReaderResponse>;
|
|
75
75
|
/**
|
|
76
76
|
* 发送已读回执 (V4)
|
|
77
77
|
*/
|
|
78
|
-
sendReadReceiptMessageV4(conversation:
|
|
78
|
+
sendReadReceiptMessageV4(conversation: IConversationIdentifier, startMsgUid: string, endMsgUid: string): Promise<IAsyncRes>;
|
|
79
79
|
/**
|
|
80
80
|
* 获取消息已读回执列表,暂仅支持群聊 (V4)
|
|
81
81
|
*/
|
|
82
|
-
getMessageReadReceiptV4(conversation:
|
|
82
|
+
getMessageReadReceiptV4(conversation: IConversationIdentifier, messageUid: string): IPromiseResult<IMessageReadReceiptV4Response>;
|
|
83
83
|
/**
|
|
84
84
|
* 批量获取消息已读回执列表,暂仅支持群聊 (V4)
|
|
85
85
|
*/
|
|
86
|
-
batchGetMessageReadReceiptInfoV4
|
|
86
|
+
batchGetMessageReadReceiptInfoV4: () => Promise<RCResult<any>>;
|
|
87
87
|
/**
|
|
88
88
|
* 多端同步会话的已读时间 (V4)
|
|
89
89
|
*/
|
|
90
|
-
updateConversationReadTime(conversation:
|
|
90
|
+
updateConversationReadTime(conversation: IConversationIdentifier, timestamp: number): Promise<IAsyncRes>;
|
|
91
91
|
disconnect(closeDB?: boolean, disablePush?: boolean): Promise<void>;
|
|
92
92
|
registerMessageType(objectName: string, desc: MessageRegisterParams): void;
|
|
93
|
-
joinChatroom(chatroomId: string, count: number, extra?: string): Promise<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
getChatroomInfo(chatroomId: string, count: number, order: number): IPromiseResult<IChatroomInfo>;
|
|
93
|
+
joinChatroom(chatroomId: string, count: number, createIfNotExist: boolean, extra?: string): Promise<RCResult<IChatroomJoinResponse>>;
|
|
94
|
+
quitChatroom(chatroomId: string): Promise<RCResult>;
|
|
95
|
+
getChatroomInfo(chatroomId: string, count: number, order: 1 | 2): Promise<RCResult<IChatroomInfo>>;
|
|
97
96
|
getChatroomHistoryMessages(chatroomId: string, timestamp: number, count: number, order: number): Promise<RCResult<IGetHistoryMessageResult>>;
|
|
98
|
-
setChatroomEntry(chatroomId: string, entry:
|
|
99
|
-
setChatroomEntries(chatroomId: string, entryOptions:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
removeChatroomEntry(chatroomId: string, entry: IChrmKVEntry): Promise<ErrorCode>;
|
|
105
|
-
forceRemoveChatroomEntry(chatroomId: string, entry: IChrmKVEntry): Promise<ErrorCode>;
|
|
106
|
-
removeChatroomEntries(chatroomId: string, entryOptions: IChrmKVEntries): Promise<{
|
|
107
|
-
code: ErrorCode;
|
|
108
|
-
data?: any;
|
|
109
|
-
}>;
|
|
110
|
-
getChatroomEntry(chatroomId: string, key: string): IPromiseResult<string | null>;
|
|
111
|
-
getAllChatroomEntry(chatroomId: string): IPromiseResult<{
|
|
112
|
-
[key: string]: string;
|
|
113
|
-
}>;
|
|
114
|
-
removeChatroomFromCatch(chatroomId: string): void;
|
|
97
|
+
setChatroomEntry(chatroomId: string, entry: IChatroomEntry, isForce: boolean): Promise<RCResult>;
|
|
98
|
+
setChatroomEntries(chatroomId: string, entryOptions: IChatroomEntries): Promise<RCResult>;
|
|
99
|
+
removeChatroomEntry(chatroomId: string, entry: IRemoveChatroomEntry, isForce: boolean): Promise<RCResult>;
|
|
100
|
+
removeChatroomEntries(chatroomId: string, entryOptions: IRemoveChatroomEntries): Promise<RCResult>;
|
|
101
|
+
getChatroomEntry(chatroomId: string, key: string): Promise<RCResult<string>>;
|
|
102
|
+
getAllChatroomEntries(chatroomId: string): Promise<RCResult<Record<string, string>>>;
|
|
115
103
|
getFileToken(fileType: FileType, fileName?: string, httpMethod?: string, queryUriString?: string, url?: string, size?: number): Promise<IAsyncRes<IUploadAuth>>;
|
|
116
104
|
getFileUrl(fileType: FileType, uploadMethod: UploadMethod, fileName: string, originName: string): Promise<RCResult<{
|
|
117
105
|
downloadUrl: string;
|
|
@@ -121,41 +109,38 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
121
109
|
getUserStatus(userId: string): IPromiseResult<{
|
|
122
110
|
status: string;
|
|
123
111
|
}>;
|
|
124
|
-
clearConversations(conversationTypes?: ConversationType[], channelId?: string): Promise<
|
|
112
|
+
clearConversations(conversationTypes?: ConversationType[], channelId?: string): Promise<RCResult>;
|
|
125
113
|
addToBlacklist(userId: string): Promise<ErrorCode>;
|
|
126
114
|
removeFromBlacklist(userId: string): Promise<ErrorCode>;
|
|
127
115
|
getBlacklist(): IPromiseResult<string[]>;
|
|
128
116
|
getBlacklistStatus(userId: string): IPromiseResult<number>;
|
|
129
|
-
insertMessage(
|
|
130
|
-
batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean):
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
batchClearRemoteHistoryMessages(options: IClearMessageOption[], isDeleteLocal
|
|
136
|
-
|
|
117
|
+
insertMessage(conversation: IConversationIdentifier, insertOptions: InnerInsertMessageParams): Promise<RCResult<IReceivedMessage>>;
|
|
118
|
+
batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<RCResult<boolean>>;
|
|
119
|
+
getLocalMessageCount(conversation: IConversationIdentifier): Promise<RCResult<number>>;
|
|
120
|
+
deleteLocalMessages(messageIds: number[]): Promise<RCResult>;
|
|
121
|
+
deleteLocalMessagesByTimestamp(conversation: IConversationIdentifier, timestamp: number, cleanSpace: boolean): Promise<RCResult>;
|
|
122
|
+
batchClearLocalMessagesByTimestamp(options: IClearMessageOption[]): Promise<RCResult>;
|
|
123
|
+
batchClearRemoteHistoryMessages(options: IClearMessageOption[], isDeleteLocal: boolean): Promise<RCResult>;
|
|
124
|
+
clearLocalMessages(conversation: IConversationIdentifier): Promise<RCResult>;
|
|
137
125
|
getMessage(messageId: number | string): Promise<RCResult<IReceivedMessage>>;
|
|
138
|
-
setMessageContent(messageId: number, content:
|
|
126
|
+
setMessageContent(messageId: number, content: string, messageType: string): Promise<RCResult>;
|
|
139
127
|
setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
|
|
140
128
|
searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
|
|
141
129
|
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
142
130
|
searchMessagesWithParams(params: ISearchMessageParams): Promise<RCResult<ISearchMessagesResult>>;
|
|
143
|
-
|
|
144
|
-
|
|
131
|
+
getUnreadMentionedMessages(conversation: IConversationIdentifier): Promise<RCResult<IReceivedMessage[]>>;
|
|
132
|
+
getUnreadMentionedCount(conversation: IConversationIdentifier): Promise<RCResult<number>>;
|
|
133
|
+
getMessagesAroundTimestamp(conversation: IConversationIdentifier, timestamp: number, beforeCount: number, afterCount: number): Promise<RCResult<IReceivedMessage[]>>;
|
|
145
134
|
setMessageSentStatus(messageId: number, sentStatus: number): Promise<ErrorCode>;
|
|
146
135
|
setMessageReceivedStatus(messageId: number, receivedStatus: number): Promise<ErrorCode>;
|
|
147
136
|
updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<RCResult<boolean>>;
|
|
148
137
|
clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId: string): Promise<ErrorCode>;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
hasMore: boolean;
|
|
153
|
-
}>;
|
|
154
|
-
getServerTime(): number;
|
|
155
|
-
getDeviceId(): string;
|
|
138
|
+
clearAllSGUnreadCount(): Promise<RCResult>;
|
|
139
|
+
get serverTime(): number;
|
|
140
|
+
get deviceId(): string;
|
|
156
141
|
setPushConfig(config: IAppPushConfig): void;
|
|
157
|
-
|
|
158
|
-
bindRTCRoomForChatroom(options: IRTCRoomBindOption): Promise<
|
|
142
|
+
get userId(): string;
|
|
143
|
+
bindRTCRoomForChatroom(options: IRTCRoomBindOption): Promise<RCResult>;
|
|
159
144
|
rtcSignaling(roomId: string, method: string, isQuery: boolean, sourceData: ArrayBuffer): Promise<{
|
|
160
145
|
code: ErrorCode;
|
|
161
146
|
buffer?: Uint8Array;
|
|
@@ -165,57 +150,30 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
165
150
|
removeTag(tagId: string): Promise<RCResult>;
|
|
166
151
|
updateTag(tag: ITagParam): Promise<RCResult>;
|
|
167
152
|
getTagList(): Promise<RCResult<ITagInfo[]>>;
|
|
168
|
-
addTagForConversations(tagId: string, conversations:
|
|
169
|
-
removeTagForConversations(tagId: string, conversations:
|
|
170
|
-
removeTagsForConversation(conversation:
|
|
153
|
+
addTagForConversations(tagId: string, conversations: IConversationIdentifier[]): Promise<RCResult>;
|
|
154
|
+
removeTagForConversations(tagId: string, conversations: IConversationIdentifier[]): Promise<RCResult>;
|
|
155
|
+
removeTagsForConversation(conversation: IConversationIdentifier, tagIds: string[]): Promise<RCResult>;
|
|
171
156
|
getConversationListByTag(tagId: string, startTime: number, count: number): Promise<RCResult<IReceivedConversationByTag[]>>;
|
|
172
157
|
getUnreadCountByTag(tagId: string, containMuted: boolean): Promise<RCResult<number>>;
|
|
173
|
-
setConversationStatusInTag(tagId: string, conversation:
|
|
174
|
-
getTagsForConversation(conversation:
|
|
158
|
+
setConversationStatusInTag(tagId: string, conversation: IConversationIdentifier, status: ILocalTagStatus): Promise<RCResult>;
|
|
159
|
+
getTagsForConversation(conversation: IConversationIdentifier): Promise<RCResult<IConversationTag[]>>;
|
|
175
160
|
clearLocalData(): Promise<RCResult<boolean>>;
|
|
176
161
|
setCallInfo(targetId: string, key: string, value: string): Promise<IAsyncRes<{
|
|
177
162
|
key: string;
|
|
178
163
|
value: string;
|
|
179
164
|
}>>;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
sendUltraMessage(targetId: string, options: ISendMsgOptions, onSendBefore: (messageId: number) => void): Promise<IAsyncRes<IReceivedMessage>>;
|
|
187
|
-
sendUltraGroupTypingStatus(options: IConversationOption, operationType?: OperateStatus): Promise<IAsyncRes>;
|
|
188
|
-
getUltraGroupMessageListByMessageUId(options: IUltraMsgQueryOptions): Promise<IAsyncRes<{
|
|
189
|
-
[messageUid: string]: IReceivedMessage | undefined;
|
|
190
|
-
}>>;
|
|
191
|
-
expandUltraMessage(options: IUltraExMsgOptions): Promise<IAsyncRes>;
|
|
192
|
-
getUltraHistoryMsg(targetId: string, options: IGetMsgOption): Promise<IAsyncRes<{
|
|
193
|
-
list: IReceivedMessage[];
|
|
194
|
-
syncTime: number;
|
|
195
|
-
hasMore: boolean;
|
|
196
|
-
}>>;
|
|
197
|
-
getConversationNotificationLevel(conversation: IConversationOption): Promise<RCResult<NotificationLevel>>;
|
|
165
|
+
getAllUnreadMentionedCount(): Promise<RCResult<number>>;
|
|
166
|
+
getUltraGroupList(options?: IGetUltraGroupListOption): Promise<RCResult<IReceivedConversation[]>>;
|
|
167
|
+
getBlockedUGList(): Promise<RCResult<IReceivedConversation[]>>;
|
|
168
|
+
getBlockedConversationList(includeUG: boolean): Promise<RCResult<IReceivedConversation[]>>;
|
|
169
|
+
sendUltraMessage(targetId: string, options: ISendMsgOptions, traceId: string, onSendBefore?: (messageId: number) => void): Promise<IAsyncRes<IReceivedMessage>>;
|
|
170
|
+
getConversationNotificationLevel(conversation: IConversationIdentifier): Promise<RCResult<NotificationLevel>>;
|
|
198
171
|
setConversationTypeNotificationLevel(conversationType: ConversationType, level: NotificationLevel): Promise<RCResult>;
|
|
199
172
|
getConversationTypeNotificationLevel(conversationType: ConversationType): Promise<RCResult<NotificationLevel>>;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
getUltraGroupUnreadCountByTargetId(): Promise<{
|
|
205
|
-
code: ErrorCode;
|
|
206
|
-
}>;
|
|
207
|
-
setUltraGroupDefaultNotificationLevel(): Promise<{
|
|
208
|
-
code: ErrorCode;
|
|
209
|
-
}>;
|
|
210
|
-
getUltraGroupUnreadMentionedMessages(): Promise<{
|
|
211
|
-
code: ErrorCode;
|
|
212
|
-
}>;
|
|
213
|
-
getUltraGroupFirstUnreadMessageTimestamp(): Promise<{
|
|
214
|
-
code: ErrorCode;
|
|
215
|
-
}>;
|
|
216
|
-
getUltraGroupUnreadInfoList(): Promise<{
|
|
217
|
-
code: ErrorCode;
|
|
218
|
-
}>;
|
|
173
|
+
getUGUnreadCountForAllChannels(targetId: string, levels: NotificationLevel[], getMentionedCount: boolean): Promise<RCResult<number>>;
|
|
174
|
+
setUGDefaultNotificationLevel(targetId: string, notificationLevel: NotificationLevel, channelId?: string): Promise<RCResult>;
|
|
175
|
+
getUGDefaultNotificationLevel(targetId: string, channelId?: string): Promise<RCResult<NotificationLevel>>;
|
|
176
|
+
getUGUnreadInfoList(targetIds: string[]): Promise<RCResult<IUltraGroupUnreadInfo[]>>;
|
|
219
177
|
/**
|
|
220
178
|
* 获取运行时的系统信息,仅限 Electron 平台可用
|
|
221
179
|
*/
|
|
@@ -248,7 +206,7 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
248
206
|
* 设置聊天室消息去重开关
|
|
249
207
|
* @param enableCheck 是否开启去重
|
|
250
208
|
*/
|
|
251
|
-
setCheckChatRoomDuplicateMessage(enableCheck: boolean): Promise<
|
|
209
|
+
setCheckChatRoomDuplicateMessage(enableCheck: boolean): Promise<RCResult>;
|
|
252
210
|
setNetwork(data: INetwork, isUnPrintLog?: boolean): void;
|
|
253
211
|
/**
|
|
254
212
|
* 订阅用户状态事件
|
|
@@ -263,13 +221,13 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
263
221
|
*/
|
|
264
222
|
getSubscribeUserList(subscribeType: SubscribeType, count: number, offset: number): Promise<IAsyncRes<ISubscribeUserStatusInfo[]>>;
|
|
265
223
|
/**
|
|
266
|
-
*
|
|
224
|
+
* 获取指定用户的在线状态
|
|
267
225
|
*/
|
|
268
|
-
getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<
|
|
226
|
+
getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<RCResult<ISubscribeUserStatusInfo[]>>;
|
|
269
227
|
/**
|
|
270
228
|
* 批量获取会话
|
|
271
229
|
*/
|
|
272
|
-
getConversations(conversations:
|
|
230
|
+
getConversations(conversations: IConversationIdentifier[]): Promise<RCResult<IReceivedConversation[]>>;
|
|
273
231
|
updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<IUpdateMyProfileFail>>;
|
|
274
232
|
getUserProfiles(userIds: string[]): Promise<IAsyncRes<IUserProfileInfo[]>>;
|
|
275
233
|
getMyUserProfile(): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
@@ -324,11 +282,11 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
324
282
|
searchFriendsInfo(nickname: string): Promise<IAsyncRes<IFriendInfo[]>>;
|
|
325
283
|
setFriendAddPermission(permission: FriendAddPermission): Promise<IAsyncRes<void>>;
|
|
326
284
|
getFriendAddPermission(): Promise<IAsyncRes<FriendAddPermission>>;
|
|
327
|
-
getRealtimeConversations
|
|
328
|
-
getRealtimeConTotalUnreadCount()
|
|
329
|
-
clearRealtimeConUnreadCount
|
|
330
|
-
removeRealtimeConversations
|
|
331
|
-
|
|
285
|
+
getRealtimeConversations: () => Promise<RCResult<any>>;
|
|
286
|
+
getRealtimeConTotalUnreadCount: () => Promise<RCResult<any>>;
|
|
287
|
+
clearRealtimeConUnreadCount: () => Promise<RCResult<any>>;
|
|
288
|
+
removeRealtimeConversations: () => Promise<RCResult<any>>;
|
|
289
|
+
batchGetRealtimeConUnreadCount: () => Promise<RCResult<any>>;
|
|
332
290
|
setNotificationQuietHoursWithSetting(opts: INotificationQuietHoursSetting): Promise<RCResult>;
|
|
333
291
|
removeNotificationQuietHoursSetting(): Promise<RCResult>;
|
|
334
292
|
getNotificationQuietHoursSetting(): Promise<RCResult<INotificationQuietHoursSetting>>;
|
|
@@ -336,10 +294,10 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
336
294
|
* 获取统计地址
|
|
337
295
|
*/
|
|
338
296
|
getStatsUrlList(): Promise<RCResult<string[]>>;
|
|
339
|
-
sendReadReceiptResponseV5(conId:
|
|
297
|
+
sendReadReceiptResponseV5(conId: IConversationIdentifier, messageUIdArray: string[]): Promise<RCResult>;
|
|
340
298
|
getMessageReadReceiptInfoV5ByIdentifiers(identifiers: IMessageIdentifier[]): Promise<RCResult<ReadReceiptInfoV5[]>>;
|
|
341
|
-
getMessagesReadReceiptUsersByPageV5(conId:
|
|
342
|
-
getMessagesReadReceiptByUsersV5(conId:
|
|
299
|
+
getMessagesReadReceiptUsersByPageV5(conId: IConversationIdentifier, messageUId: string, opt: ReadReceiptUsersOption): Promise<RCResult<ReadReceiptUsersResult>>;
|
|
300
|
+
getMessagesReadReceiptByUsersV5(conId: IConversationIdentifier, messageUId: string, userList: Array<string>): Promise<RCResult<ReadReceiptUsersResult>>;
|
|
343
301
|
requestSpeechToTextForMessage(messageUId: string, _: IConvertSpeechToTextOption): Promise<RCResult>;
|
|
344
302
|
setMessageSpeechToTextVisible(messageId: number, visible: boolean): Promise<RCResult>;
|
|
345
303
|
translateWithParams(list: InnerTransParam[], mode: TranslateMode, force: boolean, from: 0 | 1): Promise<RCResult>;
|
|
@@ -348,8 +306,19 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
348
306
|
setAutoTranslateEnabled(enabled: boolean): Promise<RCResult>;
|
|
349
307
|
getAutoTranslateEnabled(): Promise<RCResult<boolean>>;
|
|
350
308
|
modifyMessageWithParams(params: IModifyMessageParams): Promise<RCResult>;
|
|
351
|
-
refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier:
|
|
309
|
+
refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationIdentifier, remoteMessageBlock: (results: IEnginRefreshReferenceMessageResult[]) => void, localMessageBlock: (results: IEnginRefreshReferenceMessageResult[]) => void): Promise<RCResult>;
|
|
352
310
|
syncRemoteConversations(): Promise<RCResult>;
|
|
311
|
+
sendUltraGroupTypingStatus(options: IConversationIdentifier): Promise<RCResult>;
|
|
312
|
+
getRemoteMessagesByUIds(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IReceivedMessage[]>>;
|
|
313
|
+
getUGUnreadMentionedDigest(options: IUltraGroupUnreadMentionedOption): Promise<RCResult<IUltraUnreadMsg[]>>;
|
|
314
|
+
deleteLocalUGMessagesForAllChannel(targetId: string, timestamp: number): Promise<RCResult>;
|
|
315
|
+
updateUGMessageExpansion(conversation: IConversationIdentifier, content: IExpansionMsgContent, sentTime: number): Promise<RCResult>;
|
|
316
|
+
getUGFirstUnreadMessageDigest(conversation: IConversationIdentifier): Promise<RCResult<IUltraUnreadMsg>>;
|
|
317
|
+
getSubscribeUsersOnlineStatus(userIds: string[]): Promise<RCResult<ISubscribeUserOnlineStatus[]>>;
|
|
318
|
+
saveEditedMessageDraft(draft: IEditedMessageDraft, conversation: IConversationIdentifier): Promise<RCResult>;
|
|
319
|
+
getEditedMessageDraft(conversation: IConversationIdentifier): Promise<RCResult<IEditedMessageDraft | null>>;
|
|
320
|
+
clearEditedMessageDraft(conversation: IConversationIdentifier): Promise<RCResult>;
|
|
321
|
+
getUnreadMentionMeConversationList(params: IGetUnreadMentionMeConversationListParams, includeUG: boolean): Promise<RCResult<IReceivedConversation[]>>;
|
|
353
322
|
}
|
|
354
323
|
|
|
355
324
|
declare const initContextBridge: () => void;
|