@rongcloud/electron-renderer 5.34.0 → 5.36.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 CHANGED
@@ -1,311 +1,7 @@
1
- import { BasicEngine, IChatroomService, IChatService, IDataHostingService, IUserSettingsModule, BasicLogger, IEngineWatcher, IAPIContextOption, RCResult, INaviInfo, LogType, RCConnectionStatus, IConversationIdentifier, IGetHistoryMessageOption, IReceivedMessage, IGetHistoryMessagesByTypesOption, MessageDirection, IRecallMsgOptions, ConversationType, IReceivedConversation, IGetConversationListByTimestampParams, ConversationBatchDeletionParams, NotificationLevel, IMessageSendOptions, IFirstUnreadMessageInfo, TranslateStrategy, IMessageReaderResponse, 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, INetwork, SubscribeType, ISubscribeUserStatusInfo, IUserProfileInfo, IUpdateMyProfileFail, UserProfileVisibility, IServerGroupBaseInfo, ICreateGroupFail, IErrorKeys, IGroupInfo, IQuitGroupConfig, GroupOperationType, GroupMemberRole, IGetGroupMembersOption, IPagingQueryResult, IGroupMemberInfo, IPagingQueryOption, IProcessCode, IMemberInviteResponse, 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, IRobotInfo, IGetConversationsIncludingRobotsOption } from '@rongcloud/engine';
2
-
3
- declare class RCCppEngine extends BasicEngine implements IChatroomService, IChatService, IDataHostingService, IUserSettingsModule {
4
- #private;
5
- private _cache;
6
- get chat(): IChatService;
7
- get chatroom(): IChatroomService;
8
- get userSettings(): IUserSettingsModule;
9
- get dataHosting(): IDataHostingService;
10
- get logger(): BasicLogger;
11
- get ugSynced(): boolean;
12
- constructor(watcher: IEngineWatcher, options: IAPIContextOption);
13
- private _setConnectionStatus;
14
- private sendHTTPRequest;
15
- private _resolveMaps;
16
- /**
17
- * 建议使用 `_callMain2` 代替
18
- * @deprecated
19
- */
20
- private _callMain;
21
- private _send2Main;
22
- private _callMainSync;
23
- refetchNaviInfo(): Promise<RCResult<INaviInfo | null>>;
24
- get naviInfo(): INaviInfo | null;
25
- createLogger(id: string, type: LogType): BasicLogger;
26
- get connectionStatus(): RCConnectionStatus;
27
- get usingCppEngine(): boolean;
28
- connect(token: string, reconnectKickEnable: boolean, openCallPlus: boolean, traceId: string): Promise<RCResult<string>>;
29
- reportSDKInfo(versionInfo: Record<string, string>): void;
30
- get connectedTime(): number;
31
- getHistoryMessage(conversation: IConversationIdentifier, options: Required<IGetHistoryMessageOption>, fromLocal: boolean): Promise<RCResult<{
32
- list: IReceivedMessage[];
33
- hasMore: boolean;
34
- }>>;
35
- getContinuousMessages(conversation: IConversationIdentifier, options: Required<IGetHistoryMessageOption>): Promise<RCResult<{
36
- list: IReceivedMessage[];
37
- timestamp: number;
38
- hasMore: boolean;
39
- }>>;
40
- getHistoryMessagesByObjectNames(conversation: IConversationIdentifier, option: Required<IGetHistoryMessagesByTypesOption>): Promise<RCResult<{
41
- list: IReceivedMessage[];
42
- hasMore: boolean;
43
- }>>;
44
- deleteRemoteMessage(conversation: IConversationIdentifier, messages: {
45
- messageUId: string;
46
- sentTime: number;
47
- messageDirection: MessageDirection;
48
- }[]): Promise<RCResult>;
49
- recallMsg(conversation: IConversationIdentifier, recallMsgOptions: IRecallMsgOptions): Promise<RCResult<IReceivedMessage>>;
50
- deleteRemoteMessageByTimestamp(conversation: IConversationIdentifier, timestamp: number): Promise<RCResult>;
51
- getTopConversationList(includeUG: boolean, conversationTypes?: ConversationType[], channelId?: string): Promise<RCResult<IReceivedConversation[]>>;
52
- getUnreadConversationList(includeUG: boolean, conversationTypes?: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
53
- getConversationListByPageIndex(index: number, limit: number): Promise<RCResult<IReceivedConversation[]>>;
54
- loadConversationList: () => Promise<RCResult<any>>;
55
- getAllConversationList(includeUG: boolean, channelId?: string): Promise<RCResult<IReceivedConversation[]>>;
56
- getConversationListByTimestamp(params: IGetConversationListByTimestampParams, includeUG: boolean): Promise<RCResult<IReceivedConversation[]>>;
57
- getUntaggedConversationListByPage(timestamp: number, count: number, topPriority: boolean): Promise<RCResult<IReceivedConversation[]>>;
58
- getConversation(conversation: IConversationIdentifier): Promise<RCResult<IReceivedConversation>>;
59
- batchDeleteConversations(params: ConversationBatchDeletionParams): Promise<RCResult>;
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
- markRemoteConversationAsRead(identifier: IConversationIdentifier, sendOpts: IMessageSendOptions, traceId: string): Promise<RCResult>;
65
- getFirstUnreadMessage(conversation: IConversationIdentifier): Promise<RCResult<IReceivedMessage | null>>;
66
- getFirstUnreadMessageDigest(identifier: IConversationIdentifier): Promise<RCResult<IFirstUnreadMessageInfo | null>>;
67
- saveTextMessageDraft(conversation: IConversationIdentifier, draft: string): Promise<RCResult>;
68
- getTextMessageDraft(conversation: IConversationIdentifier): Promise<RCResult<string>>;
69
- clearTextMessageDraft(conversation: IConversationIdentifier): Promise<RCResult>;
70
- batchSetConversationToTop(conversations: IConversationIdentifier[], isTop?: boolean, isUpdateTime?: boolean, isCreateConversation?: boolean): Promise<RCResult>;
71
- batchSetConversationNotificationLevel(conversations: IConversationIdentifier[], notificationLevel: NotificationLevel): Promise<RCResult>;
72
- batchSetConversationTranslateStrategy(conversations: IConversationIdentifier[], strategy: TranslateStrategy): Promise<RCResult>;
73
- sendMessage(identifier: IConversationIdentifier, options: IMessageSendOptions, traceId: string, onBefore?: (messageId: number) => void): Promise<RCResult<IReceivedMessage>>;
74
- sendReadReceiptV2(targetId: string, messageUIds: string[], channelId?: string): Promise<RCResult>;
75
- getMessageReader(targetId: string, messageUId: string, channelId: string): Promise<RCResult<IMessageReaderResponse>>;
76
- /**
77
- * 发送已读回执 (V4)
78
- */
79
- sendReadReceiptMessageV4(conversation: IConversationIdentifier, startMsgUid: string, endMsgUid: string): Promise<RCResult>;
80
- /**
81
- * 获取消息已读回执列表,暂仅支持群聊 (V4)
82
- */
83
- getMessageReadReceiptV4(conversation: IConversationIdentifier, messageUid: string): Promise<RCResult<IMessageReadReceiptV4Response>>;
84
- /**
85
- * 批量获取消息已读回执列表,暂仅支持群聊 (V4)
86
- */
87
- batchGetMessageReadReceiptInfoV4: () => Promise<RCResult<any>>;
88
- /**
89
- * 多端同步会话的已读时间 (V4)
90
- */
91
- updateConversationReadTime(conversation: IConversationIdentifier, timestamp: number): Promise<RCResult>;
92
- disconnect(closeDB?: boolean, disablePush?: boolean): Promise<RCResult>;
93
- registerMessageType(objectName: string, desc: MessageRegisterParams): void;
94
- joinChatroom(chatroomId: string, count: number, createIfNotExist: boolean, extra?: string): Promise<RCResult<IChatroomJoinResponse>>;
95
- quitChatroom(chatroomId: string, extra?: string): Promise<RCResult>;
96
- getChatroomInfo(chatroomId: string, count: number, order: 1 | 2): Promise<RCResult<IChatroomInfo>>;
97
- getChatroomHistoryMessages(chatroomId: string, timestamp: number, count: number, order: number): Promise<RCResult<IGetHistoryMessageResult>>;
98
- setChatroomEntry(chatroomId: string, entry: IChatroomEntry, isForce: boolean): Promise<RCResult>;
99
- setChatroomEntries(chatroomId: string, entryOptions: IChatroomEntries): Promise<RCResult>;
100
- removeChatroomEntry(chatroomId: string, entry: IRemoveChatroomEntry, isForce: boolean): Promise<RCResult>;
101
- removeChatroomEntries(chatroomId: string, entryOptions: IRemoveChatroomEntries): Promise<RCResult>;
102
- getChatroomEntry(chatroomId: string, key: string): Promise<RCResult<string>>;
103
- getAllChatroomEntries(chatroomId: string): Promise<RCResult<Record<string, string>>>;
104
- getFileToken(fileType: FileType, fileName?: string, httpMethod?: string, queryUriString?: string, url?: string, size?: number): Promise<RCResult<IUploadAuth>>;
105
- getFileUrl(fileType: FileType, uploadMethod: UploadMethod, fileName: string, originName: string): Promise<RCResult<{
106
- downloadUrl: string;
107
- }>>;
108
- setUserStatus(status: number): Promise<ErrorCode>;
109
- subscribeUserStatus(userIds: string[]): Promise<ErrorCode>;
110
- getUserStatus(userId: string): Promise<RCResult<{
111
- status: string;
112
- }>>;
113
- clearConversations(conversationTypes?: ConversationType[], channelId?: string): Promise<RCResult>;
114
- addToBlacklist(userId: string): Promise<RCResult>;
115
- removeFromBlacklist(userId: string): Promise<RCResult>;
116
- getBlacklist(): Promise<RCResult<string[]>>;
117
- getBlacklistStatus(userId: string): Promise<RCResult<number>>;
118
- insertMessage(conversation: IConversationIdentifier, insertOptions: InnerInsertMessageParams): Promise<RCResult<IReceivedMessage>>;
119
- batchInsertMessage(messages: IInsertMessage[], checkDuplicate: boolean): Promise<RCResult<boolean>>;
120
- getLocalMessageCount(conversation: IConversationIdentifier): Promise<RCResult<number>>;
121
- deleteLocalMessages(messageIds: number[]): Promise<RCResult>;
122
- deleteLocalMessagesByTimestamp(conversation: IConversationIdentifier, timestamp: number, cleanSpace: boolean): Promise<RCResult>;
123
- batchClearLocalMessagesByTimestamp(options: IClearMessageOption[]): Promise<RCResult>;
124
- batchClearRemoteHistoryMessages(options: IClearMessageOption[], isDeleteLocal: boolean): Promise<RCResult>;
125
- clearLocalMessages(conversation: IConversationIdentifier): Promise<RCResult>;
126
- getMessage(messageId: number | string): Promise<RCResult<IReceivedMessage>>;
127
- setMessageContent(messageId: number, content: string, messageType: string): Promise<RCResult>;
128
- setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
129
- searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
130
- searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
131
- searchMessagesWithParams(params: ISearchMessageParams): Promise<RCResult<ISearchMessagesResult>>;
132
- getUnreadMentionedMessages(conversation: IConversationIdentifier): Promise<RCResult<IReceivedMessage[]>>;
133
- getUnreadMentionedCount(conversation: IConversationIdentifier): Promise<RCResult<number>>;
134
- getMessagesAroundTimestamp(conversation: IConversationIdentifier, timestamp: number, beforeCount: number, afterCount: number): Promise<RCResult<IReceivedMessage[]>>;
135
- setMessageSentStatus(messageId: number, sentStatus: number): Promise<RCResult>;
136
- setMessageReceivedStatus(messageId: number, receivedStatus: number): Promise<RCResult>;
137
- updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<RCResult<boolean>>;
138
- clearUnreadCountByTimestamp(conversation: IConversationIdentifier, timestamp: number): Promise<RCResult>;
139
- clearAllSGUnreadCount(): Promise<RCResult>;
140
- get serverTime(): number;
141
- get deviceId(): string;
142
- setPushConfig(config: IAppPushConfig): void;
143
- get userId(): string;
144
- bindRTCRoomForChatroom(options: IRTCRoomBindOption): Promise<RCResult>;
145
- rtcSignaling(roomId: string, method: string, isQuery: boolean, sourceData: ArrayBuffer): Promise<RCResult<Uint8Array>>;
146
- rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<RCResult<any>>;
147
- createTag(tag: ITagParam): Promise<RCResult>;
148
- removeTag(tagId: string): Promise<RCResult>;
149
- updateTag(tag: ITagParam): Promise<RCResult>;
150
- getTagList(): Promise<RCResult<ITagInfo[]>>;
151
- addTagForConversations(tagId: string, conversations: IConversationIdentifier[]): Promise<RCResult>;
152
- removeTagForConversations(tagId: string, conversations: IConversationIdentifier[]): Promise<RCResult>;
153
- removeTagsForConversation(conversation: IConversationIdentifier, tagIds: string[]): Promise<RCResult>;
154
- getConversationListByTag(tagId: string, startTime: number, count: number): Promise<RCResult<IReceivedConversationByTag[]>>;
155
- getUnreadCountByTag(tagId: string, containMuted: boolean): Promise<RCResult<number>>;
156
- setConversationStatusInTag(tagId: string, conversation: IConversationIdentifier, status: ILocalTagStatus): Promise<RCResult>;
157
- getTagsForConversation(conversation: IConversationIdentifier): Promise<RCResult<IConversationTag[]>>;
158
- clearLocalData(): Promise<RCResult<boolean>>;
159
- setCallInfo(targetId: string, key: string, value: string): Promise<RCResult<{
160
- key: string;
161
- value: string;
162
- }>>;
163
- getAllUnreadMentionedCount(): Promise<RCResult<number>>;
164
- getUltraGroupList(options?: IGetUltraGroupListOption): Promise<RCResult<IReceivedConversation[]>>;
165
- getBlockedUGList(): Promise<RCResult<IReceivedConversation[]>>;
166
- getBlockedConversationList(includeUG: boolean): Promise<RCResult<IReceivedConversation[]>>;
167
- sendUltraMessage(conversation: IConversationIdentifier, options: IMessageSendOptions, traceId: string, onSendBefore?: (messageId: number) => void): Promise<RCResult<IReceivedMessage>>;
168
- getConversationNotificationLevel(conversation: IConversationIdentifier): Promise<RCResult<NotificationLevel>>;
169
- setConversationTypeNotificationLevel(conversationType: ConversationType, level: NotificationLevel): Promise<RCResult>;
170
- getConversationTypeNotificationLevel(conversationType: ConversationType): Promise<RCResult<NotificationLevel>>;
171
- getUGUnreadCountForAllChannels(targetId: string, levels: NotificationLevel[], getMentionedCount: boolean): Promise<RCResult<number>>;
172
- setUGDefaultNotificationLevel(targetId: string, notificationLevel: NotificationLevel, channelId?: string): Promise<RCResult>;
173
- getUGDefaultNotificationLevel(targetId: string, channelId?: string): Promise<RCResult<NotificationLevel>>;
174
- getUGUnreadInfoList(targetIds: string[]): Promise<RCResult<IUltraGroupUnreadInfo[]>>;
175
- /**
176
- * 获取运行时的系统信息,仅限 Electron 平台可用
177
- */
178
- getOSInfo(): Promise<RCResult<IOSInfo>>;
179
- /**
180
- * 获取当前渲染进程信息,仅限 Electron 平台可用
181
- */
182
- getProcessInfo(): Promise<RCResult<IProcessInfo>>;
183
- /**
184
- * 获取应用主进程信息,仅限 Electron 平台可用
185
- */
186
- getMainProcessInfo(): Promise<RCResult<IProcessInfo>>;
187
- /**
188
- * 设置代理
189
- */
190
- setProxy(proxy: IProxy | null): Promise<RCResult>;
191
- /**
192
- * 获取代理
193
- */
194
- getProxy(): Promise<RCResult<IProxy>>;
195
- /**
196
- * 测试代理
197
- */
198
- testProxy(proxy: IProxy, testHost: string): Promise<RCResult>;
199
- /**
200
- * 设置融云消息重排开关
201
- */
202
- setCheckDuplicateMessage(enableCheck: boolean): Promise<RCResult<boolean>>;
203
- /**
204
- * 设置聊天室消息去重开关
205
- * @param enableCheck 是否开启去重
206
- */
207
- setCheckChatRoomDuplicateMessage(enableCheck: boolean): Promise<RCResult>;
208
- setNetwork(data: INetwork, isUnPrintLog?: boolean): void;
209
- subscribeUser(userIds: string[], subscribeType: SubscribeType, expiry: number): Promise<RCResult<string[]>>;
210
- /**
211
- * 取消订阅用户状态事件
212
- */
213
- unSubscribeUser(userIds: string[], subscribeType: SubscribeType): Promise<RCResult>;
214
- /**
215
- * 获取已订阅列表
216
- */
217
- getSubscribeUserList(subscribeType: SubscribeType, count: number, offset: number): Promise<RCResult<ISubscribeUserStatusInfo[]>>;
218
- /**
219
- * 获取指定用户的在线状态
220
- */
221
- getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<RCResult<ISubscribeUserStatusInfo[]>>;
222
- /**
223
- * 批量获取会话
224
- */
225
- getConversations(conversations: IConversationIdentifier[]): Promise<RCResult<IReceivedConversation[]>>;
226
- updateMyUserProfile(profile: IUserProfileInfo): Promise<RCResult<IUpdateMyProfileFail>>;
227
- getUserProfiles(userIds: string[]): Promise<RCResult<IUserProfileInfo[]>>;
228
- getMyUserProfile(): Promise<RCResult<IUserProfileInfo>>;
229
- updateMyUserProfileVisibility(visibility: UserProfileVisibility): Promise<RCResult>;
230
- getMyUserProfileVisibility(): Promise<RCResult<UserProfileVisibility>>;
231
- searchUserProfileByUniqueId(uniqueId: string): Promise<RCResult<IUserProfileInfo>>;
232
- createGroup(groupId: string, baseInfo: IServerGroupBaseInfo, extProfile?: Record<string, string>, inviteeUserIds?: string[]): Promise<RCResult<ICreateGroupFail>>;
233
- updateGroupInfo(groupId: string, baseInfo: IServerGroupBaseInfo, extProfile?: Record<string, string>): Promise<RCResult<IErrorKeys>>;
234
- getGroupsInfo(groupIds: string[]): Promise<RCResult<IGroupInfo[]>>;
235
- kickGroupMembers(groupId: string, userIds: string[], config: Required<IQuitGroupConfig>): Promise<RCResult>;
236
- quitGroup(groupId: string, config: Required<IQuitGroupConfig>): Promise<RCResult>;
237
- dismissGroup(groupId: string): Promise<RCResult>;
238
- transferGroupOwner(groupId: string, newOwnerId: string, quitGroupAfterTransfer: boolean, config: Required<IQuitGroupConfig>): Promise<RCResult>;
239
- setGroupManagers(type: GroupOperationType, groupId: string, userIds: string[]): Promise<RCResult>;
240
- getGroupMembersByRole(groupId: string, role: GroupMemberRole, option: Required<IGetGroupMembersOption>): Promise<RCResult<IPagingQueryResult<IGroupMemberInfo>>>;
241
- getGroupMembers(groupId: string, userIds: string[]): Promise<RCResult<IGroupMemberInfo[]>>;
242
- setGroupMemberInfo(groupId: string, userId: string, nickname: string, extra: string): Promise<RCResult<IErrorKeys>>;
243
- searchGroupMembers(groupId: string, nickName: string, option: Required<IPagingQueryOption>): Promise<RCResult<IPagingQueryResult<IGroupMemberInfo>>>;
244
- joinGroup(groupId: string): Promise<RCResult<IProcessCode>>;
245
- inviteUsersToGroup(groupId: string, userIds: string[]): Promise<RCResult<IProcessCode>>;
246
- memberInviteResponse(params: IMemberInviteResponse): Promise<RCResult<IProcessCode>>;
247
- getGroupApplications(option: Required<IPagingQueryOption>, directions: GroupApplicationDirection[], status: GroupApplicationStatus[]): Promise<RCResult<IPagingQueryResult<IGroupApplicationInfo>>>;
248
- getJoinedGroupsByRole(role: GroupMemberRole, option: Required<IPagingQueryOption>): Promise<RCResult<IPagingQueryResult<IGroupInfo>>>;
249
- searchJoinedGroups(groupName: string, option: Required<IPagingQueryOption>): Promise<RCResult<IPagingQueryResult<IGroupInfo>>>;
250
- getJoinedGroups(groupIds: string[]): Promise<RCResult<IGroupInfo[]>>;
251
- setGroupRemark(groupId: string, remark: string): Promise<RCResult>;
252
- setGroupFollows(optType: GroupOperationType, groupId: string, userIds: string[]): Promise<RCResult>;
253
- getGroupFollows(groupId: string): Promise<RCResult<IFollowsInfo[]>>;
254
- addFriend(userId: string, directionType: DirectionType, extra: string): Promise<RCResult<IProcessCode>>;
255
- deleteFriends(userIds: string[], directionType: DirectionType): Promise<RCResult>;
256
- acceptFriendRequest(userId: string): Promise<RCResult>;
257
- refuseFriendRequest(userId: string, reason?: string): Promise<RCResult>;
258
- setFriendInfo(userId: string, remark: string, extProfile: {
259
- [key: string]: string;
260
- }): Promise<RCResult<IErrorKeys>>;
261
- checkFriends(userIds: string[], directionType: DirectionType): Promise<RCResult<IFriendRelationInfo[]>>;
262
- getFriends(directionType: QueryFriendsDirectionType, option: Required<IPagingQueryOption>): Promise<RCResult<IPagingQueryResult<IFriendInfo>>>;
263
- getFriendApplications(option: Required<IPagingQueryOption>, types: FriendApplicationType[], status: FriendApplicationStatus[]): Promise<RCResult<IPagingQueryResult<IFriendApplicationInfo>>>;
264
- getFriendsInfo(userIds: string[]): Promise<RCResult<IFriendInfo[]>>;
265
- searchFriendsInfo(nickname: string): Promise<RCResult<IFriendInfo[]>>;
266
- setFriendAddPermission(permission: FriendAddPermission): Promise<RCResult>;
267
- getFriendAddPermission(): Promise<RCResult<FriendAddPermission>>;
268
- getRealtimeConversations: () => Promise<RCResult<any>>;
269
- getRealtimeConTotalUnreadCount: () => Promise<RCResult<any>>;
270
- clearRealtimeConUnreadCount: () => Promise<RCResult<any>>;
271
- removeRealtimeConversations: () => Promise<RCResult<any>>;
272
- batchGetRealtimeConUnreadCount: () => Promise<RCResult<any>>;
273
- setNotificationQuietHoursWithSetting(opts: INotificationQuietHoursSetting): Promise<RCResult>;
274
- removeNotificationQuietHoursSetting(): Promise<RCResult>;
275
- getNotificationQuietHoursSetting(): Promise<RCResult<INotificationQuietHoursSetting>>;
276
- /**
277
- * 获取统计地址
278
- */
279
- getStatsUrlList(): Promise<RCResult<string[]>>;
280
- sendReadReceiptResponseV5(conId: IConversationIdentifier, messageUIdArray: string[]): Promise<RCResult>;
281
- getMessageReadReceiptInfoV5ByIdentifiers(identifiers: IMessageIdentifier[]): Promise<RCResult<ReadReceiptInfoV5[]>>;
282
- getMessagesReadReceiptUsersByPageV5(conId: IConversationIdentifier, messageUId: string, opt: ReadReceiptUsersOption): Promise<RCResult<ReadReceiptUsersResult>>;
283
- getMessagesReadReceiptByUsersV5(conId: IConversationIdentifier, messageUId: string, userList: Array<string>): Promise<RCResult<ReadReceiptUsersResult>>;
284
- requestSpeechToTextForMessage(messageUId: string, _: IConvertSpeechToTextOption): Promise<RCResult>;
285
- setMessageSpeechToTextVisible(messageId: number, visible: boolean): Promise<RCResult>;
286
- translateWithParams(list: InnerTransParam[], mode: TranslateMode, force: boolean, from: 0 | 1): Promise<RCResult>;
287
- setTranslationLanguage(language: string): Promise<RCResult>;
288
- getTranslationLanguage(): Promise<RCResult<string>>;
289
- setAutoTranslateEnabled(enabled: boolean): Promise<RCResult>;
290
- getAutoTranslateEnabled(): Promise<RCResult<boolean>>;
291
- modifyMessageWithParams(params: IModifyMessageParams): Promise<RCResult>;
292
- refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationIdentifier, remoteMessageBlock: (results: IEnginRefreshReferenceMessageResult[]) => void, localMessageBlock: (results: IEnginRefreshReferenceMessageResult[]) => void): Promise<RCResult>;
293
- syncRemoteConversations(): Promise<RCResult>;
294
- sendUltraGroupTypingStatus(options: IConversationIdentifier): Promise<RCResult>;
295
- getRemoteMessagesByUIds(conversation: IConversationIdentifier, messageUIds: string[]): Promise<RCResult<IReceivedMessage[]>>;
296
- getUGUnreadMentionedDigest(options: IUltraGroupUnreadMentionedOption): Promise<RCResult<IUltraUnreadMsg[]>>;
297
- deleteLocalUGMessagesForAllChannel(targetId: string, timestamp: number): Promise<RCResult>;
298
- updateUGMessageExpansion(conversation: IConversationIdentifier, content: IExpansionMsgContent, sentTime: number): Promise<RCResult>;
299
- getUGFirstUnreadMessageDigest(conversation: IConversationIdentifier): Promise<RCResult<IUltraUnreadMsg>>;
300
- getSubscribeUsersOnlineStatus(userIds: string[]): Promise<RCResult<ISubscribeUserOnlineStatus[]>>;
301
- saveEditedMessageDraft(draft: IEditedMessageDraft, conversation: IConversationIdentifier): Promise<RCResult>;
302
- getEditedMessageDraft(conversation: IConversationIdentifier): Promise<RCResult<IEditedMessageDraft | null>>;
303
- clearEditedMessageDraft(conversation: IConversationIdentifier): Promise<RCResult>;
304
- getUnreadMentionMeConversationList(params: IGetUnreadMentionMeConversationListParams, includeUG: boolean): Promise<RCResult<IReceivedConversation[]>>;
305
- getAllRobots(): Promise<RCResult<IRobotInfo[]>>;
306
- getConversationsIncludingRobots(options: Required<IGetConversationsIncludingRobotsOption>): Promise<RCResult<IReceivedConversation[]>>;
307
- }
308
-
1
+ /**
2
+ * 已废弃,SDK 不再需要业务层主动调用该方法
3
+ * @deprecated
4
+ */
309
5
  declare const initContextBridge: () => void;
310
6
 
311
- export { RCCppEngine, initContextBridge };
7
+ export { initContextBridge };