@rongcloud/imlib-next 5.5.5-beem → 5.5.5
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 +78 -313
- 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, MessageDirection, ReceivedStatus, IReadReceiptInfo, IPushConfig,
|
|
2
|
-
export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption, IConversationState, IConversationTag, IDeletedExpansion, IEventListener, IExpansionListenerData, IGetUltraGroupListOption, IGooglePushConfig, IMessageReader, IMessageReaderResponse, IOperateStatusNotify, IPushConfig, IRTCRoomBindOption, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, ITagInfo, ITagParam, ITypingMessage, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogLevel, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, ReceivedStatus, UltraGroupChannelType, UploadMethod } from '@rongcloud/engine';
|
|
1
|
+
import { LogLevel, MessageDirection, ReceivedStatus, IReadReceiptInfo, IPushConfig, NotificationStatus, NotificationLevel, IUserProfile, IReceivedMessage, IConversationOption, ITypingMessage, ConnectionStatus, ErrorCode, IChatroomListenerData, IExpansionListenerData, IBlockedMessageInfo, IReceivedConversation, IOperateStatusNotify, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IPluginGenerator, IAsyncRes, ConversationType, IBaseConversationInfo, IConversationState, IGetUltraGroupListOption, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IChatroomInfo, IChatRoomEntry, IChatroomEntries, IRemoveChatRoomEntry, IRemoveChatRoomEntries, IRTCRoomBindOption, MentionedType, IMessageReaderResponse, ITagParam, ITagInfo, IConversationTag, IReceivedConversationByTag, FileType, IUploadAuth, UploadMethod } from '@rongcloud/engine';
|
|
2
|
+
export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationOption, IConversationState, IConversationTag, IDeletedExpansion, IEventListener, IExpansionListenerData, IGetUltraGroupListOption, IGooglePushConfig, ILogExtensions, ILogInfo, ILogInit, IMessageReader, IMessageReaderResponse, IOperateStatusNotify, IPluginGenerator, IPushConfig, IRTCRoomBindOption, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, ITagInfo, ITagParam, ITypingMessage, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadMentionedOption, IUltraUnreadMsg, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogLevel, LogSource, LogTagId, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, NotificationLevel, NotificationStatus, ReceivedStatus, UltraGroupChannelType, UploadMethod, logger } from '@rongcloud/engine';
|
|
3
3
|
|
|
4
4
|
declare enum Events {
|
|
5
5
|
CONNECTING = "CONNECTING",
|
|
@@ -27,10 +27,6 @@ declare enum Events {
|
|
|
27
27
|
ULTRA_GROUP_CHANNEL_DELETE = "ULTRA_GROUP_CHANNEL_DELETE",
|
|
28
28
|
ULTRA_GROUP_CHANNEL_USER_KICKED = "ULTRA_GROUP_CHANNEL_USER_KICKED"
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
31
|
-
* 发送状态
|
|
32
|
-
* @category Enum
|
|
33
|
-
*/
|
|
34
30
|
declare enum SentStatus {
|
|
35
31
|
/**
|
|
36
32
|
* 发送中。
|
|
@@ -77,7 +73,6 @@ declare type IInitOption = {
|
|
|
77
73
|
navigators?: string[];
|
|
78
74
|
/**
|
|
79
75
|
* 连接方式,默认使用 'websocket'
|
|
80
|
-
* @deprecated 自 5.6.0 版本开始,不再支持 Comet 连接,该配置项失效。
|
|
81
76
|
*/
|
|
82
77
|
connectType?: 'websocket' | 'comet';
|
|
83
78
|
/**
|
|
@@ -96,39 +91,9 @@ declare type IInitOption = {
|
|
|
96
91
|
* 七牛上传文件地址域名(仅私有云)
|
|
97
92
|
*/
|
|
98
93
|
uploadDomain?: string;
|
|
99
|
-
/**
|
|
100
|
-
* 开启后,SDK 内的 HTTP 请求将由 Electron 主进程内发送。
|
|
101
|
-
* @since 5.6.0
|
|
102
|
-
* @description
|
|
103
|
-
* 仅在 Electron 环境中搭配 `@rongcloud/electron-renderer` 与 `@rongcloud/electron` 包时有效。
|
|
104
|
-
* * 当值为 `true` 时,HTTP 请求由 Electron 主进程内发送,不受浏览器安全沙箱策略限制。
|
|
105
|
-
* * 当值为 `false` 时,保持使用 Chromium 的 XMLHttpRequest 发送 HTTP 协议请求,
|
|
106
|
-
* 请求由渲染进程内发出,受浏览器安全沙箱策略限制。
|
|
107
|
-
* @defautl `false`
|
|
108
|
-
*/
|
|
109
|
-
httpInMainProcess?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* TODO: 自定义策略覆盖服务策略有安全风险,等产品确认通用化逻辑,是否前后端共同建立双重开关
|
|
112
|
-
* 目前仅 Beem Web-Meeting 使用
|
|
113
|
-
* @hidden
|
|
114
|
-
* 实时日志收集功能自定义上传策略
|
|
115
|
-
* @param {number} logSwitch 日志收集功能开关,0 关闭;1 开启
|
|
116
|
-
* @param {number} level 日志上传级别
|
|
117
|
-
* @param {number} itv: interval 即日志上传间隔,单位秒,最小时间间隔 1 秒
|
|
118
|
-
*/
|
|
119
|
-
logPolicy?: {
|
|
120
|
-
logSwitch?: number;
|
|
121
|
-
level?: number;
|
|
122
|
-
/**
|
|
123
|
-
* 时间间隔不可定制
|
|
124
|
-
* @deprecated
|
|
125
|
-
*/
|
|
126
|
-
itv?: number;
|
|
127
|
-
};
|
|
128
94
|
};
|
|
129
95
|
/**
|
|
130
96
|
* 用户收到的消息结构
|
|
131
|
-
* @category Interface
|
|
132
97
|
*/
|
|
133
98
|
interface IAReceivedMessage {
|
|
134
99
|
/**
|
|
@@ -257,9 +222,6 @@ declare type GetHistoryMessageOption = {
|
|
|
257
222
|
*/
|
|
258
223
|
order?: 0 | 1;
|
|
259
224
|
};
|
|
260
|
-
/**
|
|
261
|
-
* @category Interface
|
|
262
|
-
*/
|
|
263
225
|
interface IGetHistoryMessagesByTypesOption extends GetHistoryMessageOption {
|
|
264
226
|
/**
|
|
265
227
|
* 消息类型
|
|
@@ -271,62 +233,6 @@ declare type GetHistoryMessageResult = {
|
|
|
271
233
|
hasMore: boolean;
|
|
272
234
|
};
|
|
273
235
|
|
|
274
|
-
declare function init(options: IInitOption): void;
|
|
275
|
-
/**
|
|
276
|
-
* 反初始化
|
|
277
|
-
*/
|
|
278
|
-
declare function destroy(): Promise<void>;
|
|
279
|
-
/**
|
|
280
|
-
* 获取 IM 连接状态
|
|
281
|
-
* @category 基础
|
|
282
|
-
*/
|
|
283
|
-
declare function getConnectionStatus(): ConnectionStatus;
|
|
284
|
-
/**
|
|
285
|
-
* 当前服务器时间
|
|
286
|
-
* 校准时间,可能存在误差
|
|
287
|
-
* @category 基础
|
|
288
|
-
*/
|
|
289
|
-
declare function getServerTime(): number;
|
|
290
|
-
/**
|
|
291
|
-
* 获取 IM 连接用户的 id
|
|
292
|
-
* @category 基础
|
|
293
|
-
*/
|
|
294
|
-
declare function getCurrentUserId(): string;
|
|
295
|
-
/**
|
|
296
|
-
* (内部方法)用于统计各组件版本信息
|
|
297
|
-
* @param name
|
|
298
|
-
* @param version
|
|
299
|
-
*/
|
|
300
|
-
declare function __addSDKVersion(name: string, version: string): void;
|
|
301
|
-
/**
|
|
302
|
-
* 获取 deviceId
|
|
303
|
-
* @category 基础
|
|
304
|
-
*/
|
|
305
|
-
declare function getDeviceId(): string;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* 装载 plugin 插件,并返回相应的插件实例,需在调用 `connect` 方法之前使用
|
|
309
|
-
* @category 基础
|
|
310
|
-
* @param plugins
|
|
311
|
-
*/
|
|
312
|
-
declare function installPlugin<T, O>(plugin: IPluginGenerator<T, O>, options: O): T | null;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* 建立 IM 连接
|
|
316
|
-
* @category 基础
|
|
317
|
-
* @param token
|
|
318
|
-
* @param reconnectKickEnable 设置断线重连时是否踢出当前正在重连的设备 (仅 Electron 环境有效)
|
|
319
|
-
*/
|
|
320
|
-
declare function connect(token: string, reconnectKickEnable?: boolean): Promise<IAsyncRes<{
|
|
321
|
-
userId: string;
|
|
322
|
-
}>>;
|
|
323
|
-
/**
|
|
324
|
-
* 断开当前用户的连接
|
|
325
|
-
* @category 基础
|
|
326
|
-
* @description 调用后将不再接收消息,不可发送消息,不可获取历史消息,不可获取会话列表
|
|
327
|
-
*/
|
|
328
|
-
declare function disconnect(): Promise<void>;
|
|
329
|
-
|
|
330
236
|
declare class BaseMessage<T = any> {
|
|
331
237
|
readonly messageType: string;
|
|
332
238
|
content: T;
|
|
@@ -336,9 +242,6 @@ declare class BaseMessage<T = any> {
|
|
|
336
242
|
}
|
|
337
243
|
declare type MessageConstructor<T> = new (content: T) => BaseMessage<T>;
|
|
338
244
|
|
|
339
|
-
/**
|
|
340
|
-
* @category Interface
|
|
341
|
-
*/
|
|
342
245
|
interface IConversationUpdateItem {
|
|
343
246
|
time: number;
|
|
344
247
|
val: any;
|
|
@@ -353,9 +256,6 @@ declare type MentionedInfo$1 = {
|
|
|
353
256
|
*/
|
|
354
257
|
userIdList?: Array<string>;
|
|
355
258
|
};
|
|
356
|
-
/**
|
|
357
|
-
* @category Interface
|
|
358
|
-
*/
|
|
359
259
|
interface IReceivedUpdateConversation {
|
|
360
260
|
updatedItems: {
|
|
361
261
|
[key: string]: IConversationUpdateItem;
|
|
@@ -372,7 +272,6 @@ interface IReceivedUpdateConversation {
|
|
|
372
272
|
}
|
|
373
273
|
/**
|
|
374
274
|
* 用户收到的会话结构
|
|
375
|
-
* @category Interface
|
|
376
275
|
*/
|
|
377
276
|
interface IAReceivedConversation {
|
|
378
277
|
/**
|
|
@@ -433,9 +332,6 @@ interface IAReceivedConversation {
|
|
|
433
332
|
*/
|
|
434
333
|
unreadMentionedCount?: number;
|
|
435
334
|
}
|
|
436
|
-
/**
|
|
437
|
-
* @category Interface
|
|
438
|
-
*/
|
|
439
335
|
interface ISendMessageOptions {
|
|
440
336
|
/**
|
|
441
337
|
* 是否是状态消息,一般为无需注册的自定义消息
|
|
@@ -513,7 +409,6 @@ interface ISendMessageOptions {
|
|
|
513
409
|
}
|
|
514
410
|
/**
|
|
515
411
|
* 文件消息配置
|
|
516
|
-
* @category Interface
|
|
517
412
|
*/
|
|
518
413
|
interface IUploadMessageOption extends ISendMessageOptions {
|
|
519
414
|
/**
|
|
@@ -526,7 +421,6 @@ interface IUploadMessageOption extends ISendMessageOptions {
|
|
|
526
421
|
}
|
|
527
422
|
/**
|
|
528
423
|
* 缩略图配置
|
|
529
|
-
* @category Interface
|
|
530
424
|
*/
|
|
531
425
|
interface IThumbnailConfig {
|
|
532
426
|
maxHeight?: number;
|
|
@@ -536,14 +430,10 @@ interface IThumbnailConfig {
|
|
|
536
430
|
}
|
|
537
431
|
/**
|
|
538
432
|
* 图片消息配置
|
|
539
|
-
* @category Interface
|
|
540
433
|
*/
|
|
541
434
|
interface IImageMessageOption extends IUploadMessageOption {
|
|
542
435
|
thumbnailConfig?: IThumbnailConfig;
|
|
543
436
|
}
|
|
544
|
-
/**
|
|
545
|
-
* @category Interface
|
|
546
|
-
*/
|
|
547
437
|
interface IInsertOptions {
|
|
548
438
|
/**
|
|
549
439
|
* 插入消息是否计入未读数: true 计数 false 不计数, 默认不计数
|
|
@@ -554,9 +444,6 @@ interface IInsertOptions {
|
|
|
554
444
|
*/
|
|
555
445
|
searchContent?: string;
|
|
556
446
|
}
|
|
557
|
-
/**
|
|
558
|
-
* @category Interface
|
|
559
|
-
*/
|
|
560
447
|
interface IUserInfo {
|
|
561
448
|
user?: {
|
|
562
449
|
/**
|
|
@@ -582,25 +469,18 @@ interface IUserInfo {
|
|
|
582
469
|
portrait?: string;
|
|
583
470
|
};
|
|
584
471
|
}
|
|
585
|
-
/**
|
|
586
|
-
* @category Interface
|
|
587
|
-
*/
|
|
588
472
|
interface IExtraData {
|
|
589
473
|
/**
|
|
590
474
|
* 消息中的附加信息
|
|
591
475
|
*/
|
|
592
476
|
extra?: string;
|
|
593
477
|
}
|
|
594
|
-
/**
|
|
595
|
-
* @category Interface
|
|
596
|
-
*/
|
|
597
478
|
interface IMessageDesc {
|
|
598
479
|
messageUId: string;
|
|
599
480
|
sendTime: number;
|
|
600
481
|
}
|
|
601
482
|
/**
|
|
602
483
|
* 撤回消息 option 参数
|
|
603
|
-
* @category Interface
|
|
604
484
|
*/
|
|
605
485
|
interface IRecallMessageOptions {
|
|
606
486
|
/**
|
|
@@ -636,7 +516,6 @@ interface IRecallMessageOptions {
|
|
|
636
516
|
}
|
|
637
517
|
/**
|
|
638
518
|
* 上传过程中的回调钩子
|
|
639
|
-
* @category Interface
|
|
640
519
|
*/
|
|
641
520
|
interface IUploadHooks {
|
|
642
521
|
/**
|
|
@@ -652,7 +531,6 @@ interface IUploadHooks {
|
|
|
652
531
|
}
|
|
653
532
|
/**
|
|
654
533
|
* 在时间区间内搜索消息的参数配置
|
|
655
|
-
* @category Interface
|
|
656
534
|
*/
|
|
657
535
|
interface ISearchMessageInTimeRangeOption {
|
|
658
536
|
keyword: string;
|
|
@@ -727,7 +605,7 @@ declare type EventListeners = {
|
|
|
727
605
|
[Events.CONNECTED]: () => void;
|
|
728
606
|
[Events.DISCONNECT]: (status: ConnectionStatus) => void;
|
|
729
607
|
[Events.SUSPEND]: (status: ConnectionStatus | ErrorCode) => void;
|
|
730
|
-
[Events.MESSAGES]: (
|
|
608
|
+
[Events.MESSAGES]: (event: IMessagesEvent) => void;
|
|
731
609
|
[Events.READ_RECEIPT_RECEIVED]: (event: IReadReceiptReceivedEvent) => void;
|
|
732
610
|
[Events.MESSAGE_RECEIPT_REQUEST]: (event: IMessageReceiptRequestEvent) => void;
|
|
733
611
|
[Events.MESSAGE_RECEIPT_RESPONSE]: (event: IMessageReceiptResponseEvent) => void;
|
|
@@ -748,39 +626,70 @@ declare type EventListeners = {
|
|
|
748
626
|
[Events.ULTRA_GROUP_CHANNEL_DELETE]: (list: IUltraChannelDeleteInfo[]) => void;
|
|
749
627
|
[Events.ULTRA_GROUP_CHANNEL_USER_KICKED]: (list: IUltraChannelUserKickedInfo[]) => void;
|
|
750
628
|
};
|
|
751
|
-
|
|
629
|
+
/**
|
|
630
|
+
* 初始化
|
|
631
|
+
* @param initOption
|
|
632
|
+
*/
|
|
633
|
+
declare const init: (initOption: IInitOption) => void;
|
|
634
|
+
/**
|
|
635
|
+
* 装载 plugin 插件,并返回相应的插件实例,需在调用 `connect` 方法之前使用
|
|
636
|
+
* @param plugins
|
|
637
|
+
*/
|
|
638
|
+
declare function installPlugin<T, O>(plugin: IPluginGenerator<T, O>, options: O): T | null;
|
|
639
|
+
/**
|
|
640
|
+
* 建立 IM 连接
|
|
641
|
+
* @param token
|
|
642
|
+
* @param reconnectKickEnable 设置断线重连时是否踢出当前正在重连的设备 (仅 Electron 环境有效)
|
|
643
|
+
*/
|
|
644
|
+
declare function connect(token: string, reconnectKickEnable?: boolean): Promise<IAsyncRes<{
|
|
645
|
+
userId: string;
|
|
646
|
+
}>>;
|
|
647
|
+
/**
|
|
648
|
+
* 断开当前用户的连接
|
|
649
|
+
* @description 调用后将不再接收消息,不可发送消息,不可获取历史消息,不可获取会话列表
|
|
650
|
+
*/
|
|
651
|
+
declare function disconnect(): Promise<void>;
|
|
652
|
+
/**
|
|
653
|
+
* 获取 IM 连接状态
|
|
654
|
+
*/
|
|
655
|
+
declare function getConnectionStatus(): ConnectionStatus;
|
|
656
|
+
/**
|
|
657
|
+
* 当前服务器时间
|
|
658
|
+
* 校准时间,可能存在误差
|
|
659
|
+
*/
|
|
660
|
+
declare function getServerTime(): number;
|
|
661
|
+
/**
|
|
662
|
+
* 获取 IM 连接用户的 id
|
|
663
|
+
*/
|
|
664
|
+
declare function getCurrentUserId(): string;
|
|
752
665
|
/**
|
|
753
666
|
* 绑定事件
|
|
754
|
-
* @category 基础
|
|
755
667
|
* @param eventType
|
|
756
668
|
* @param listener
|
|
757
669
|
* @param target
|
|
758
670
|
*/
|
|
759
671
|
declare function addEventListener<T extends Events>(eventType: T, listener: EventListeners[T], target?: any): void;
|
|
760
|
-
/**
|
|
761
|
-
* 绑定仅执行一次的事件
|
|
762
|
-
* @category 基础
|
|
763
|
-
*/
|
|
764
672
|
declare function onceEventListener<T extends Events>(eventType: T, listener: EventListeners[T], target?: any): void;
|
|
765
673
|
/**
|
|
766
674
|
* 移除事件
|
|
767
|
-
* @category 基础
|
|
768
675
|
*/
|
|
769
676
|
declare function removeEventListener<T extends Events>(eventType: T, listener: EventListeners[T], target?: any): void;
|
|
770
677
|
/**
|
|
771
678
|
* 移除同一类型下的所有事件
|
|
772
|
-
* @category 基础
|
|
773
679
|
*/
|
|
774
680
|
declare function removeEventListeners(eventType: string): void;
|
|
775
681
|
/**
|
|
776
682
|
* 清理所有事件
|
|
777
|
-
* @category 基础
|
|
778
683
|
*/
|
|
779
684
|
declare function clearEventListeners(): void;
|
|
685
|
+
declare function __addSDKVersion(name: string, version: string): void;
|
|
686
|
+
/**
|
|
687
|
+
* 获取 deviceId
|
|
688
|
+
*/
|
|
689
|
+
declare function getDeviceId(): string;
|
|
780
690
|
|
|
781
691
|
/**
|
|
782
692
|
* 获取会话列表
|
|
783
|
-
* @category 会话
|
|
784
693
|
* @param options
|
|
785
694
|
*/
|
|
786
695
|
declare function getConversationList$1(options?: {
|
|
@@ -805,25 +714,21 @@ declare function getConversationList$1(options?: {
|
|
|
805
714
|
/**
|
|
806
715
|
* 获取指定会话数据
|
|
807
716
|
* @description 通过该方法获取的会话可能并不存在于当前的会话列表中,此处只作为功能性封装语法糖
|
|
808
|
-
* @category 会话
|
|
809
717
|
* @param options
|
|
810
718
|
*/
|
|
811
719
|
declare function getConversation(options: IConversationOption): Promise<IAsyncRes<IAReceivedConversation | null | undefined>>;
|
|
812
720
|
/**
|
|
813
721
|
* 移除指定的会话实例
|
|
814
|
-
* @category 会话
|
|
815
722
|
*/
|
|
816
723
|
declare function removeConversation(options: IConversationOption): Promise<IAsyncRes<void>>;
|
|
817
724
|
/**
|
|
818
725
|
* 获取会话文本草稿
|
|
819
|
-
* @category 草稿
|
|
820
726
|
* @params conversationType 会话类型
|
|
821
727
|
* @params targetId 目标 ID
|
|
822
728
|
*/
|
|
823
729
|
declare function getTextMessageDraft(options: IConversationOption): Promise<IAsyncRes<string>>;
|
|
824
730
|
/**
|
|
825
731
|
* 设置会话文本草稿
|
|
826
|
-
* @category 草稿
|
|
827
732
|
* @params conversationType 会话类型
|
|
828
733
|
* @params targetId 目标 ID
|
|
829
734
|
* @params draft 草稿内容
|
|
@@ -831,14 +736,12 @@ declare function getTextMessageDraft(options: IConversationOption): Promise<IAsy
|
|
|
831
736
|
declare function saveTextMessageDraft(options: IConversationOption, draft: string): Promise<IAsyncRes<void>>;
|
|
832
737
|
/**
|
|
833
738
|
* 删除会话文本草稿
|
|
834
|
-
* @category 草稿
|
|
835
739
|
* @params conversationType 会话类型
|
|
836
740
|
* @params targetId 目标 ID
|
|
837
741
|
*/
|
|
838
742
|
declare function clearTextMessageDraft(options: IConversationOption): Promise<IAsyncRes<void>>;
|
|
839
743
|
/**
|
|
840
744
|
* 获取当前所有会话的消息未读数
|
|
841
|
-
* @category 会话未读数
|
|
842
745
|
* @description
|
|
843
746
|
* 1. 清除浏览器缓存会导致会话未读数不准确
|
|
844
747
|
* 2. 会话消息未读数存储在 WebStorage 中, 若浏览器不支持或禁用 WebStorage,未读消息数将不会保存,浏览器页面刷新未读消息数将不会存在
|
|
@@ -849,7 +752,6 @@ declare function clearTextMessageDraft(options: IConversationOption): Promise<IA
|
|
|
849
752
|
declare function getTotalUnreadCount(includeMuted?: boolean, conversationTypes?: ConversationType[]): Promise<IAsyncRes<number>>;
|
|
850
753
|
/**
|
|
851
754
|
* 获取会话指定免打扰级别的未读数
|
|
852
|
-
* @category 会话未读数
|
|
853
755
|
* @param conversationTypes 会话类型列表
|
|
854
756
|
* @param levels 免打扰级别列表,传空数组则获取全部免打扰级别未读数
|
|
855
757
|
* @return number 未读总数
|
|
@@ -857,7 +759,6 @@ declare function getTotalUnreadCount(includeMuted?: boolean, conversationTypes?:
|
|
|
857
759
|
declare function getTotalUnreadCountByLevels(conversationTypes: ConversationType[], levels: NotificationLevel[]): Promise<IAsyncRes<number>>;
|
|
858
760
|
/**
|
|
859
761
|
* 获取会话指定免打扰级别未读 @ 消息数
|
|
860
|
-
* @category 会话未读数
|
|
861
762
|
* @param conversationTypes 会话类型列表
|
|
862
763
|
* @param levels 免打扰级别列表,传空数组则获取全部免打扰级别未读数
|
|
863
764
|
* @return number 未读总数
|
|
@@ -865,18 +766,16 @@ declare function getTotalUnreadCountByLevels(conversationTypes: ConversationType
|
|
|
865
766
|
declare function getTotalUnreadMentionedCountByLevels(conversationTypes: ConversationType[], levels: NotificationLevel[]): Promise<IAsyncRes<number>>;
|
|
866
767
|
/**
|
|
867
768
|
* 获取单个会话的未读数
|
|
868
|
-
*
|
|
769
|
+
*
|
|
869
770
|
*/
|
|
870
771
|
declare function getUnreadCount(options: IConversationOption): Promise<IAsyncRes<number>>;
|
|
871
772
|
/**
|
|
872
773
|
* 清除会话未读数
|
|
873
774
|
* 原:clearUnreadCount
|
|
874
|
-
* @category 会话未读数
|
|
875
775
|
*/
|
|
876
|
-
declare function clearMessagesUnreadStatus(options: IConversationOption): Promise<IAsyncRes
|
|
776
|
+
declare function clearMessagesUnreadStatus(options: IConversationOption): Promise<IAsyncRes>;
|
|
877
777
|
/**
|
|
878
778
|
* 清理全部未读数
|
|
879
|
-
* @category 会话未读数
|
|
880
779
|
* @returns
|
|
881
780
|
*/
|
|
882
781
|
declare function clearAllMessagesUnreadStatus(): Promise<IAsyncRes<ErrorCode>>;
|
|
@@ -891,7 +790,6 @@ declare function clearAllMessagesUnreadStatus(): Promise<IAsyncRes<ErrorCode>>;
|
|
|
891
790
|
* * 3: @ 群用户组通知,通知用户组暂未实现,暂不暴露出去
|
|
892
791
|
* * 4: @ 群全员通知
|
|
893
792
|
* * 5: 消息通知被屏蔽,即不接收消息通知
|
|
894
|
-
* @category 会话
|
|
895
793
|
*/
|
|
896
794
|
declare function setConversationNotificationLevel(options: IConversationOption, notificationLevel: NotificationLevel): Promise<IAsyncRes<void>>;
|
|
897
795
|
/**
|
|
@@ -901,126 +799,103 @@ declare function setConversationNotificationLevel(options: IConversationOption,
|
|
|
901
799
|
* 是否免打扰
|
|
902
800
|
* * 1: 开启免打扰
|
|
903
801
|
* * 2: 关闭免打扰
|
|
904
|
-
* @category 会话
|
|
905
802
|
*/
|
|
906
803
|
declare function setConversationNotificationStatus(options: IConversationOption, notificationStatus: NotificationStatus): Promise<IAsyncRes<void>>;
|
|
907
804
|
/**
|
|
908
805
|
* 查询指定会话和频道免打扰
|
|
909
806
|
* 原: getConversationNotificationStatus 已废弃
|
|
910
|
-
* @category 会话
|
|
911
807
|
*/
|
|
912
808
|
declare function getConversationNotificationLevel(options: IConversationOption): Promise<IAsyncRes<NotificationLevel | undefined>>;
|
|
913
809
|
/**
|
|
914
810
|
* 获取免打扰状态
|
|
915
811
|
* getConversationNotificationStatus
|
|
916
|
-
* @category 会话
|
|
917
812
|
* @deprecated 已废弃,请使用 getConversationNotificationLevel
|
|
918
813
|
*/
|
|
919
814
|
declare function getConversationNotificationStatus(options: IConversationOption): Promise<IAsyncRes<NotificationStatus | undefined>>;
|
|
920
815
|
/**
|
|
921
816
|
* 获取免打扰状态列表
|
|
922
817
|
* getBlockedConversationList
|
|
923
|
-
* @category 会话
|
|
924
818
|
*/
|
|
925
819
|
declare function getBlockedConversationList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
|
|
926
820
|
/**
|
|
927
821
|
* 设置会话是否置顶
|
|
928
|
-
* @category 会话
|
|
929
822
|
*/
|
|
930
823
|
declare function setConversationToTop(options: IConversationOption, isTop?: boolean): Promise<IAsyncRes<void>>;
|
|
931
824
|
/**
|
|
932
825
|
* 获取置顶会话
|
|
933
|
-
* @category 会话
|
|
934
826
|
*/
|
|
935
827
|
declare function getTopConversationList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
|
|
936
828
|
/**
|
|
937
829
|
* 获取单个群会话 @ 消息未读数
|
|
938
|
-
* @category 会话未读数
|
|
939
830
|
* @param targetId 目标 ID
|
|
940
831
|
*/
|
|
941
832
|
declare function getUnreadMentionedCount(options: IConversationOption): Promise<IAsyncRes<number>>;
|
|
942
833
|
/**
|
|
943
834
|
* 获取所有群会话 @ 消息未读数
|
|
944
|
-
* @category 会话未读数
|
|
945
835
|
*/
|
|
946
836
|
declare function getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
|
|
947
837
|
/**
|
|
948
838
|
* 获取本地全部会话的状态
|
|
949
|
-
* @category 会话
|
|
950
839
|
*/
|
|
951
840
|
declare function getAllConversationState(): Promise<IAsyncRes<IConversationState[]>>;
|
|
952
841
|
|
|
953
842
|
/**
|
|
954
843
|
* 获取超级群会话列表
|
|
955
|
-
* @category 超级群
|
|
956
844
|
*/
|
|
957
845
|
declare function getUltraGroupList(options?: IGetUltraGroupListOption): Promise<IAsyncRes<IUltraGroupConversation[]>>;
|
|
958
846
|
/**
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
*/
|
|
847
|
+
* 获取超级群免打扰列表
|
|
848
|
+
*/
|
|
962
849
|
declare function getBlockUltraGroupList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
|
|
963
850
|
/**
|
|
964
851
|
* 通知服务端正在输入中
|
|
965
|
-
* @category 超级群
|
|
966
852
|
*/
|
|
967
|
-
declare function sendUltraGroupTypingStatus(options: IConversationOption): Promise<IAsyncRes
|
|
853
|
+
declare function sendUltraGroupTypingStatus(options: IConversationOption): Promise<IAsyncRes>;
|
|
968
854
|
/**
|
|
969
855
|
* 根据消息 ID 获取消息
|
|
970
|
-
* @category 超级群
|
|
971
856
|
*/
|
|
972
|
-
declare function getUltraGroupMessageListByMessageUId(options: IConversationOption, msgs: IMessageDesc[]): Promise<IAsyncRes
|
|
973
|
-
[messageUid: string]: IReceivedMessage | undefined;
|
|
974
|
-
}>>;
|
|
857
|
+
declare function getUltraGroupMessageListByMessageUId(options: IConversationOption, msgs: IMessageDesc[]): Promise<IAsyncRes>;
|
|
975
858
|
/**
|
|
976
859
|
* 修改消息扩展
|
|
977
|
-
* @category 超级群
|
|
978
860
|
*/
|
|
979
861
|
declare function updateExpansionForUltraGroupMessage(expansion: {
|
|
980
862
|
[key: string]: any;
|
|
981
|
-
}, message: IAReceivedMessage): Promise<IAsyncRes
|
|
863
|
+
}, message: IAReceivedMessage): Promise<IAsyncRes>;
|
|
982
864
|
/**
|
|
983
865
|
* 删除消息扩展
|
|
984
|
-
* @category 超级群
|
|
985
866
|
*/
|
|
986
|
-
declare function removeExpansionForUltraGroupMessage(expansion: string[], message: IAReceivedMessage): Promise<IAsyncRes
|
|
867
|
+
declare function removeExpansionForUltraGroupMessage(expansion: string[], message: IAReceivedMessage): Promise<IAsyncRes>;
|
|
987
868
|
/**
|
|
988
869
|
* 删除指定消息上的所有扩展
|
|
989
|
-
* @category 超级群
|
|
990
870
|
*/
|
|
991
|
-
declare function removeAllExpansionForUltraGroupMessage(message: IAReceivedMessage): Promise<IAsyncRes
|
|
871
|
+
declare function removeAllExpansionForUltraGroupMessage(message: IAReceivedMessage): Promise<IAsyncRes>;
|
|
992
872
|
/**
|
|
993
873
|
* 修改消息
|
|
994
|
-
* @category 超级群
|
|
995
874
|
*/
|
|
996
875
|
declare function modifyMessage(content: {
|
|
997
876
|
[key: string]: any;
|
|
998
|
-
}, message: IAReceivedMessage): Promise<IAsyncRes
|
|
877
|
+
}, message: IAReceivedMessage): Promise<IAsyncRes>;
|
|
999
878
|
/**
|
|
1000
879
|
* 获取超级群所有子频道的未读数
|
|
1001
|
-
* @category 超级群
|
|
1002
880
|
* @param targetId 超级群 Id
|
|
1003
881
|
* @param notificationLevels 免打扰级别,不传或传空数组则获取全部级别
|
|
1004
882
|
*/
|
|
1005
|
-
declare function getUltraGroupUnreadMentionedCountByTargetId(targetId: string, notificationLevels?: NotificationLevel[]): Promise<IAsyncRes
|
|
883
|
+
declare function getUltraGroupUnreadMentionedCountByTargetId(targetId: string, notificationLevels?: NotificationLevel[]): Promise<IAsyncRes>;
|
|
1006
884
|
/**
|
|
1007
885
|
* 查询指定超级群默认通知配置
|
|
1008
|
-
* @category 超级群
|
|
1009
886
|
*/
|
|
1010
887
|
declare function getUltraGroupDefaultNotificationLevel(options: IUltraGroupOption): Promise<IAsyncRes<NotificationLevel>>;
|
|
1011
888
|
/**
|
|
1012
889
|
* 设置指定超级群默认通知配置
|
|
1013
|
-
* @category 超级群
|
|
1014
890
|
* @param options
|
|
1015
|
-
* * 设置超级群默认通知配置 options:
|
|
1016
|
-
* * 设置超级群指定频道默认通知配置 options:
|
|
891
|
+
* * 设置超级群默认通知配置 options: { targetId: 'xxx' }, channelId 不传或传 ''
|
|
892
|
+
* * 设置超级群指定频道默认通知配置 options: { targetId: 'xxx', channelId: 'xxx' }
|
|
1017
893
|
* @param notificationLevel
|
|
1018
894
|
* * NotificationLevel
|
|
1019
895
|
*/
|
|
1020
896
|
declare function setUltraGroupDefaultNotificationLevel(options: IUltraGroupOption, notificationLevel: NotificationLevel): Promise<IAsyncRes<void>>;
|
|
1021
897
|
/**
|
|
1022
898
|
* 获取指定超级群所有频道未读数
|
|
1023
|
-
* @category 超级群
|
|
1024
899
|
* @param targetId 超级群 Id
|
|
1025
900
|
* @param notificationLevels 免打扰级别,不传或传空数组则获取全部级别
|
|
1026
901
|
* @returns 未读数
|
|
@@ -1028,26 +903,22 @@ declare function setUltraGroupDefaultNotificationLevel(options: IUltraGroupOptio
|
|
|
1028
903
|
declare function getUltraGroupUnreadCountByTargetId(targetId: string, notificationLevels?: NotificationLevel[]): Promise<IAsyncRes<number>>;
|
|
1029
904
|
/**
|
|
1030
905
|
* 超级群类型所有未读数
|
|
1031
|
-
* @category 超级群
|
|
1032
906
|
* @returns 未读数
|
|
1033
907
|
*/
|
|
1034
908
|
declare function getAllUltraGroupUnreadCount(): Promise<IAsyncRes<number>>;
|
|
1035
909
|
/**
|
|
1036
910
|
* 超级群类型所有 @ 消息未读数
|
|
1037
|
-
* @category 超级群
|
|
1038
911
|
* @returns 未读数
|
|
1039
912
|
*/
|
|
1040
913
|
declare function getAllUltraGroupUnreadMentionedCount(): Promise<IAsyncRes<number>>;
|
|
1041
914
|
/**
|
|
1042
915
|
* 超级群获取指定会话未读 @ 消息列表
|
|
1043
|
-
* @category 超级群
|
|
1044
916
|
* @param options
|
|
1045
917
|
* @returns 指定会话 @ 未读数消息列表
|
|
1046
918
|
*/
|
|
1047
919
|
declare function getUltraGroupUnreadMentionedMessages(options: IUltraGroupUnreadMentionedOption): Promise<IAsyncRes<IUltraUnreadMsg[]>>;
|
|
1048
920
|
/**
|
|
1049
921
|
* 超级群获取指定会话第一条未读消息时间戳
|
|
1050
|
-
* @category 超级群
|
|
1051
922
|
* @param conversation
|
|
1052
923
|
* @returns 指定会话第一条未读消息时间戳
|
|
1053
924
|
*/
|
|
@@ -1055,17 +926,15 @@ declare function getUltraGroupFirstUnreadMessageTimestamp(conversation: IUltraGr
|
|
|
1055
926
|
|
|
1056
927
|
/**
|
|
1057
928
|
* 加入聊天室
|
|
1058
|
-
* @category 聊天室
|
|
1059
929
|
*/
|
|
1060
930
|
declare function joinChatRoom(targetId: string, options: {
|
|
1061
931
|
/**
|
|
1062
|
-
|
|
1063
|
-
|
|
932
|
+
* 拉取消息数
|
|
933
|
+
*/
|
|
1064
934
|
count: number;
|
|
1065
935
|
}): Promise<IAsyncRes<void>>;
|
|
1066
936
|
/**
|
|
1067
937
|
* 加入已存在的聊天室
|
|
1068
|
-
* @category 聊天室
|
|
1069
938
|
*/
|
|
1070
939
|
declare function joinExistChatRoom(targetId: string, options: {
|
|
1071
940
|
/**
|
|
@@ -1075,12 +944,10 @@ declare function joinExistChatRoom(targetId: string, options: {
|
|
|
1075
944
|
}): Promise<IAsyncRes<void>>;
|
|
1076
945
|
/**
|
|
1077
946
|
* 退出聊天室
|
|
1078
|
-
* @category 聊天室
|
|
1079
947
|
*/
|
|
1080
948
|
declare function quitChatRoom(targetId: string): Promise<IAsyncRes<void>>;
|
|
1081
949
|
/**
|
|
1082
950
|
* 获取聊天室房间数据
|
|
1083
|
-
* @category 聊天室
|
|
1084
951
|
* @description count 或 order 有一个为0时,只返回成员总数,不返回成员列表信息
|
|
1085
952
|
*/
|
|
1086
953
|
declare function getChatRoomInfo(targetId: string, options: {
|
|
@@ -1097,25 +964,21 @@ declare function getChatRoomInfo(targetId: string, options: {
|
|
|
1097
964
|
}): Promise<IAsyncRes<IChatroomInfo>>;
|
|
1098
965
|
/**
|
|
1099
966
|
* 设置聊天室自定义属性
|
|
1100
|
-
* @category 聊天室
|
|
1101
967
|
* @description 仅聊天室中不存在此属性或属性设置者为己方时可设置成功
|
|
1102
968
|
*/
|
|
1103
969
|
declare function setChatRoomEntry(targetId: string, options: IChatRoomEntry): Promise<IAsyncRes<void>>;
|
|
1104
970
|
/**
|
|
1105
971
|
* 批量设置聊天室自定义属性
|
|
1106
|
-
* @category 聊天室
|
|
1107
972
|
* @param options ISetChatroomEntryOption数组
|
|
1108
973
|
*/
|
|
1109
974
|
declare function setChatRoomEntries(targetId: string, options: IChatroomEntries): Promise<IAsyncRes<void>>;
|
|
1110
975
|
/**
|
|
1111
976
|
* 强制 增加/修改 任意聊天室属性
|
|
1112
|
-
* @category 聊天室
|
|
1113
977
|
* @description 仅聊天室中不存在此属性或属性设置者为己方时可设置成功
|
|
1114
978
|
*/
|
|
1115
979
|
declare function forceSetChatRoomEntry(targetId: string, options: IChatRoomEntry): Promise<IAsyncRes<void>>;
|
|
1116
980
|
/**
|
|
1117
981
|
* 删除聊天室属性
|
|
1118
|
-
* @category 聊天室
|
|
1119
982
|
* @description 仅限于删除自己设置的聊天室属性
|
|
1120
983
|
* @param key 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式,最大长度 128 字符
|
|
1121
984
|
* @param isSendNotification? 删除成功后是否发送通知消息
|
|
@@ -1124,7 +987,6 @@ declare function forceSetChatRoomEntry(targetId: string, options: IChatRoomEntry
|
|
|
1124
987
|
declare function removeChatRoomEntry(targetId: string, options: IRemoveChatRoomEntry): Promise<IAsyncRes<void>>;
|
|
1125
988
|
/**
|
|
1126
989
|
* 批量删除聊天室属性
|
|
1127
|
-
* @category 聊天室
|
|
1128
990
|
* @description 仅限于删除自己设置的聊天室属性
|
|
1129
991
|
* @param entries[] 属性名称, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
|
|
1130
992
|
* @param notificationExtra? RC:chrmKVNotiMsg 通知消息中携带的附加信息
|
|
@@ -1132,13 +994,11 @@ declare function removeChatRoomEntry(targetId: string, options: IRemoveChatRoomE
|
|
|
1132
994
|
declare function removeChatRoomEntries(targetId: string, options: IRemoveChatRoomEntries): Promise<IAsyncRes<void>>;
|
|
1133
995
|
/**
|
|
1134
996
|
* 强制删除聊天室内的任意属性
|
|
1135
|
-
* @category 聊天室
|
|
1136
997
|
* @description
|
|
1137
998
|
*/
|
|
1138
999
|
declare function forceRemoveChatRoomEntry(targetId: string, options: IRemoveChatRoomEntry): Promise<IAsyncRes<void>>;
|
|
1139
1000
|
/**
|
|
1140
1001
|
* 获取聊天室的指定属性
|
|
1141
|
-
* @category 聊天室
|
|
1142
1002
|
*/
|
|
1143
1003
|
declare function getChatRoomEntry(targetId: string,
|
|
1144
1004
|
/**
|
|
@@ -1147,42 +1007,32 @@ declare function getChatRoomEntry(targetId: string,
|
|
|
1147
1007
|
key: string): Promise<IAsyncRes<string | number | boolean>>;
|
|
1148
1008
|
/**
|
|
1149
1009
|
* 获取聊天室的所有属性
|
|
1150
|
-
* @category 聊天室
|
|
1151
1010
|
*/
|
|
1152
1011
|
declare function getAllChatRoomEntries(targetId: string): Promise<IAsyncRes<{
|
|
1153
1012
|
[key: string]: string | number | boolean;
|
|
1154
1013
|
}>>;
|
|
1155
1014
|
/**
|
|
1156
1015
|
* 获取聊天室的历史消息
|
|
1157
|
-
* @category 聊天室
|
|
1158
1016
|
*/
|
|
1159
1017
|
declare function getChatroomHistoryMessages(targetId: string, options: GetHistoryMessageOption): Promise<IAsyncRes<GetHistoryMessageResult>>;
|
|
1160
|
-
|
|
1161
|
-
* 将聊天室和 RTC 房间绑定
|
|
1162
|
-
* @category 聊天室
|
|
1163
|
-
*/
|
|
1164
|
-
declare function bindRTCRoomForChatroom(option: IRTCRoomBindOption): Promise<IAsyncRes<void>>;
|
|
1018
|
+
declare function bindRTCRoomForChatroom(option: IRTCRoomBindOption): Promise<IAsyncRes>;
|
|
1165
1019
|
|
|
1166
1020
|
/**
|
|
1167
1021
|
* 添加用户到黑名单
|
|
1168
|
-
* @category 黑名单
|
|
1169
1022
|
* @param userId 用户 ID
|
|
1170
1023
|
*/
|
|
1171
|
-
declare function addToBlacklist(userId: string): Promise<IAsyncRes
|
|
1024
|
+
declare function addToBlacklist(userId: string): Promise<IAsyncRes>;
|
|
1172
1025
|
/**
|
|
1173
1026
|
* 从黑名单中移除用户
|
|
1174
|
-
* @category 黑名单
|
|
1175
1027
|
* @param userId 用户 ID
|
|
1176
1028
|
*/
|
|
1177
|
-
declare function removeFromBlacklist(userId: string): Promise<IAsyncRes
|
|
1029
|
+
declare function removeFromBlacklist(userId: string): Promise<IAsyncRes>;
|
|
1178
1030
|
/**
|
|
1179
1031
|
* 获取黑名单列表
|
|
1180
|
-
* @category 黑名单
|
|
1181
1032
|
*/
|
|
1182
1033
|
declare function getBlacklist(): Promise<IAsyncRes<string[]>>;
|
|
1183
1034
|
/**
|
|
1184
1035
|
* 查询用户是否在黑名单中
|
|
1185
|
-
* @category 黑名单
|
|
1186
1036
|
* @param userId 用户 ID
|
|
1187
1037
|
*/
|
|
1188
1038
|
declare function getBlacklistStatus(userId: string): Promise<IAsyncRes<boolean>>;
|
|
@@ -1203,10 +1053,6 @@ interface IMentionedInfo {
|
|
|
1203
1053
|
mentionedInfo?: MentionedInfo;
|
|
1204
1054
|
}
|
|
1205
1055
|
|
|
1206
|
-
/**
|
|
1207
|
-
* 图片消息
|
|
1208
|
-
* @category Interface
|
|
1209
|
-
*/
|
|
1210
1056
|
interface IImageMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1211
1057
|
/**
|
|
1212
1058
|
* 图片的略缩图
|
|
@@ -1223,10 +1069,6 @@ interface IImageMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
|
1223
1069
|
}
|
|
1224
1070
|
declare const _default$a: MessageConstructor<IImageMessageBody>;
|
|
1225
1071
|
|
|
1226
|
-
/**
|
|
1227
|
-
* 图片消息
|
|
1228
|
-
* @category Interface
|
|
1229
|
-
*/
|
|
1230
1072
|
interface IHQVoiceMessageBody extends IUserInfo, IExtraData, IMentionedInfo {
|
|
1231
1073
|
/**
|
|
1232
1074
|
* 远程媒体资源地址
|
|
@@ -1243,10 +1085,6 @@ interface IHQVoiceMessageBody extends IUserInfo, IExtraData, IMentionedInfo {
|
|
|
1243
1085
|
}
|
|
1244
1086
|
declare const _default$9: MessageConstructor<IHQVoiceMessageBody>;
|
|
1245
1087
|
|
|
1246
|
-
/**
|
|
1247
|
-
* 短视频消息
|
|
1248
|
-
* @category Interface
|
|
1249
|
-
*/
|
|
1250
1088
|
interface ISightMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1251
1089
|
/**
|
|
1252
1090
|
* 远程视频资源 url 地址
|
|
@@ -1274,7 +1112,6 @@ declare const _default$8: MessageConstructor<ISightMessageBody>;
|
|
|
1274
1112
|
|
|
1275
1113
|
/**
|
|
1276
1114
|
* 文本消息
|
|
1277
|
-
* @category Interface
|
|
1278
1115
|
*/
|
|
1279
1116
|
interface ITextMessageBody extends IUserInfo, IExtraData, IMentionedInfo {
|
|
1280
1117
|
/**
|
|
@@ -1284,10 +1121,6 @@ interface ITextMessageBody extends IUserInfo, IExtraData, IMentionedInfo {
|
|
|
1284
1121
|
}
|
|
1285
1122
|
declare const _default$7: MessageConstructor<ITextMessageBody>;
|
|
1286
1123
|
|
|
1287
|
-
/**
|
|
1288
|
-
* 富文本消息
|
|
1289
|
-
* @category Interface
|
|
1290
|
-
*/
|
|
1291
1124
|
interface ICombineMessageBody extends IExtraData, IUserInfo {
|
|
1292
1125
|
/**
|
|
1293
1126
|
* 存储在融云服务器的远端 HTML 文件路径
|
|
@@ -1308,10 +1141,6 @@ interface ICombineMessageBody extends IExtraData, IUserInfo {
|
|
|
1308
1141
|
}
|
|
1309
1142
|
declare const _default$6: MessageConstructor<ICombineMessageBody>;
|
|
1310
1143
|
|
|
1311
|
-
/**
|
|
1312
|
-
* 文件消息
|
|
1313
|
-
* @category Interface
|
|
1314
|
-
*/
|
|
1315
1144
|
interface IFileMessageBody extends IExtraData, IUserInfo {
|
|
1316
1145
|
/**
|
|
1317
1146
|
* 文件名称
|
|
@@ -1332,9 +1161,6 @@ interface IFileMessageBody extends IExtraData, IUserInfo {
|
|
|
1332
1161
|
}
|
|
1333
1162
|
declare const _default$5: MessageConstructor<IFileMessageBody>;
|
|
1334
1163
|
|
|
1335
|
-
/**
|
|
1336
|
-
* @category Interface
|
|
1337
|
-
*/
|
|
1338
1164
|
interface IGIFMessageBody extends IExtraData, IUserInfo {
|
|
1339
1165
|
/**
|
|
1340
1166
|
* GIF 图片文件大小,单位为 KB
|
|
@@ -1355,9 +1181,6 @@ interface IGIFMessageBody extends IExtraData, IUserInfo {
|
|
|
1355
1181
|
}
|
|
1356
1182
|
declare const _default$4: MessageConstructor<IGIFMessageBody>;
|
|
1357
1183
|
|
|
1358
|
-
/**
|
|
1359
|
-
* @category Interface
|
|
1360
|
-
*/
|
|
1361
1184
|
interface IVoiceMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1362
1185
|
content: string;
|
|
1363
1186
|
duration: number;
|
|
@@ -1365,9 +1188,6 @@ interface IVoiceMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
|
1365
1188
|
}
|
|
1366
1189
|
declare const _default$3: MessageConstructor<IVoiceMessageBody>;
|
|
1367
1190
|
|
|
1368
|
-
/**
|
|
1369
|
-
* @category Interface
|
|
1370
|
-
*/
|
|
1371
1191
|
interface ILocationMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1372
1192
|
/**
|
|
1373
1193
|
* 经度
|
|
@@ -1388,9 +1208,6 @@ interface ILocationMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
|
1388
1208
|
}
|
|
1389
1209
|
declare const _default$2: MessageConstructor<ILocationMessageBody>;
|
|
1390
1210
|
|
|
1391
|
-
/**
|
|
1392
|
-
* @category Interface
|
|
1393
|
-
*/
|
|
1394
1211
|
interface IReferenceMessageBody extends IExtraData, IMentionedInfo, IUserInfo {
|
|
1395
1212
|
/**
|
|
1396
1213
|
* 被引用消息的发送用户 Id
|
|
@@ -1417,23 +1234,15 @@ interface IArticle {
|
|
|
1417
1234
|
imageUri: string;
|
|
1418
1235
|
url: string;
|
|
1419
1236
|
}
|
|
1420
|
-
/**
|
|
1421
|
-
* @category Interface
|
|
1422
|
-
*/
|
|
1423
1237
|
interface IRichContentMessageBody extends IArticle, IExtraData, IMentionedInfo, IUserInfo {
|
|
1424
1238
|
}
|
|
1425
1239
|
declare const _default: MessageConstructor<IRichContentMessageBody>;
|
|
1426
1240
|
|
|
1427
1241
|
/**
|
|
1428
1242
|
* 发送消息
|
|
1429
|
-
* @category 消息
|
|
1430
1243
|
* @param options
|
|
1431
1244
|
*/
|
|
1432
1245
|
declare function sendMessage(conversation: IConversationOption, message: BaseMessage, options?: ISendMessageOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1433
|
-
/**
|
|
1434
|
-
* 发送文本消息
|
|
1435
|
-
* @category 消息
|
|
1436
|
-
*/
|
|
1437
1246
|
declare function sendTextMessage(conversation: IConversationOption, messageBody: ITextMessageBody, options?: ISendMessageOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1438
1247
|
declare type ISendBody = IUserInfo & IExtraData & {
|
|
1439
1248
|
file: Blob;
|
|
@@ -1441,18 +1250,15 @@ declare type ISendBody = IUserInfo & IExtraData & {
|
|
|
1441
1250
|
declare type ISendFileMessageOptions = ISendBody;
|
|
1442
1251
|
/**
|
|
1443
1252
|
* 发送文件消息
|
|
1444
|
-
* @category 消息
|
|
1445
1253
|
*/
|
|
1446
1254
|
declare const sendFileMessage: (conversation: IConversationOption, msgBody: ISendBody, hooks?: IUploadHooks | undefined, sendOptions?: IUploadMessageOption | undefined) => Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1447
1255
|
declare type ISendImageMessageOptions = ISendBody;
|
|
1448
1256
|
/**
|
|
1449
1257
|
* 发送图片消息
|
|
1450
|
-
* @category 消息
|
|
1451
1258
|
*/
|
|
1452
1259
|
declare const sendImageMessage: (conversation: IConversationOption, msgBody: ISendBody, hooks?: IUploadHooks | undefined, sendOptions?: IImageMessageOption | undefined) => Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1453
1260
|
/**
|
|
1454
1261
|
* 发送高清语音消息,待发送的文件必须为 AAC 音频文件
|
|
1455
|
-
* @category 消息
|
|
1456
1262
|
*/
|
|
1457
1263
|
declare const sendHQVoiceMessage: (conversation: IConversationOption, msgBody: ISendBody, hooks?: IUploadHooks | undefined, sendOptions?: IUploadMessageOption | undefined) => Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1458
1264
|
declare type ISendSightMessageOptions = {
|
|
@@ -1462,41 +1268,34 @@ declare type ISendSightMessageOptions = {
|
|
|
1462
1268
|
} & ISendBody;
|
|
1463
1269
|
/**
|
|
1464
1270
|
* 发送小视频消息
|
|
1465
|
-
* @category 消息
|
|
1466
1271
|
* @description 发送的小视频消息必须是 MP4 文件,且音频编码为 AAC,视频编码 H264,否则可能造成 iOS 或 Android 接收后不可播放问题
|
|
1467
1272
|
*/
|
|
1468
1273
|
declare const sendSightMessage: (conversation: IConversationOption, msgBody: ISendSightMessageOptions, hooks?: IUploadHooks | undefined, sendOptions?: IUploadMessageOption | undefined) => Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1469
1274
|
/**
|
|
1470
1275
|
* 获取历史消息
|
|
1471
|
-
* @category 消息
|
|
1472
1276
|
*/
|
|
1473
1277
|
declare function getHistoryMessages(conversation: IConversationOption, options?: GetHistoryMessageOption): Promise<IAsyncRes<GetHistoryMessageResult>>;
|
|
1474
1278
|
/**
|
|
1475
1279
|
* 获取远程历史消息
|
|
1476
|
-
* @category 消息
|
|
1477
1280
|
*/
|
|
1478
1281
|
declare function getRemoteHistoryMessages(conversation: IConversationOption, options?: GetHistoryMessageOption): Promise<IAsyncRes<GetHistoryMessageResult>>;
|
|
1479
1282
|
/**
|
|
1480
1283
|
* 发送单聊已读回执
|
|
1481
|
-
* @category 消息
|
|
1482
1284
|
*/
|
|
1483
1285
|
declare function sendReadReceiptMessage(targetId: string, messageUId: string, timestamp: number, channelId?: string): Promise<IAsyncRes<void>>;
|
|
1484
1286
|
/**
|
|
1485
1287
|
* 发送群已读回执请求
|
|
1486
|
-
* @category 消息
|
|
1487
1288
|
* @param messageUIds 消息UID列表
|
|
1488
1289
|
*/
|
|
1489
1290
|
declare function sendReadReceiptRequest(targetId: string, messageUId: string, channelId?: string): Promise<IAsyncRes<void>>;
|
|
1490
1291
|
/**
|
|
1491
|
-
* @category 消息
|
|
1492
1292
|
* @deprecated 已废弃,请使用 sendReadReceiptResponseV2
|
|
1493
1293
|
*/
|
|
1494
1294
|
declare function sendReadReceiptResponse(targetId: string, messageUIds: string[], channelId?: string): Promise<IAsyncRes<void>>;
|
|
1495
1295
|
/**
|
|
1496
1296
|
* 发送群阅读回执响应V2
|
|
1497
|
-
* @category 消息
|
|
1498
1297
|
* @param targetId 群组Id
|
|
1499
|
-
* @param messageList 要回执的消息列表,结构为:
|
|
1298
|
+
* @param messageList 要回执的消息列表,结构为: {senderUserId: [messageUId1, messageUId2]}
|
|
1500
1299
|
* @param channelId
|
|
1501
1300
|
*/
|
|
1502
1301
|
declare function sendReadReceiptResponseV2(targetId: string, messageList: {
|
|
@@ -1504,26 +1303,23 @@ declare function sendReadReceiptResponseV2(targetId: string, messageList: {
|
|
|
1504
1303
|
}, channelId?: string): Promise<IAsyncRes<void>>;
|
|
1505
1304
|
/**
|
|
1506
1305
|
* 多端同步阅读状态
|
|
1507
|
-
* @category 消息
|
|
1508
1306
|
* @param conversation
|
|
1509
1307
|
* @param timestamp
|
|
1510
1308
|
*/
|
|
1511
1309
|
declare function sendSyncReadStatusMessage(conversation: IConversationOption, lastMessageSendTime: number): Promise<{
|
|
1512
|
-
code: ErrorCode;
|
|
1310
|
+
code: ErrorCode.SUCCESS;
|
|
1513
1311
|
msg?: undefined;
|
|
1514
1312
|
} | {
|
|
1515
|
-
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_RESOURCE_ERROR | ErrorCode.RC_NODE_NOT_FOUND | ErrorCode.RC_DOMAIN_NOT_RESOLVE | ErrorCode.RC_SOCKET_NOT_CREATED | ErrorCode.RC_SOCKET_DISCONNECTED | ErrorCode.RC_PING_SEND_FAIL | ErrorCode.RC_PONG_RECV_FAIL | 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_ID_REJECT | ErrorCode.RC_CONN_SERVER_UNAVAILABLE | ErrorCode.RC_CONN_USER_OR_PASSWD_ERROR | 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_DISCONN_SAME_CLIENT_ON_LINE | ErrorCode.RC_APP_AUTH_NOT_PASS | ErrorCode.RC_OTP_USED | ErrorCode.RC_PLATFORM_ERROR | ErrorCode.
|
|
1313
|
+
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_RESOURCE_ERROR | ErrorCode.RC_NODE_NOT_FOUND | ErrorCode.RC_DOMAIN_NOT_RESOLVE | ErrorCode.RC_SOCKET_NOT_CREATED | ErrorCode.RC_SOCKET_DISCONNECTED | ErrorCode.RC_PING_SEND_FAIL | ErrorCode.RC_PONG_RECV_FAIL | 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_ID_REJECT | ErrorCode.RC_CONN_SERVER_UNAVAILABLE | ErrorCode.RC_CONN_USER_OR_PASSWD_ERROR | 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_DISCONN_SAME_CLIENT_ON_LINE | ErrorCode.RC_APP_AUTH_NOT_PASS | ErrorCode.RC_OTP_USED | ErrorCode.RC_PLATFORM_ERROR | ErrorCode.RC_QUERY_ACK_NO_DATA | ErrorCode.RC_MSG_DATA_INCOMPLETE | 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;
|
|
1516
1314
|
msg: string | undefined;
|
|
1517
1315
|
}>;
|
|
1518
1316
|
/**
|
|
1519
1317
|
* 撤回消息
|
|
1520
|
-
* @category 消息
|
|
1521
1318
|
* @param options
|
|
1522
1319
|
*/
|
|
1523
1320
|
declare function recallMessage(conversation: IConversationOption, options: IRecallMessageOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1524
1321
|
/**
|
|
1525
1322
|
* 按消息 UId 删除消息
|
|
1526
|
-
* @category 消息
|
|
1527
1323
|
*/
|
|
1528
1324
|
declare function deleteMessages$1(conversation: IConversationOption, messages: {
|
|
1529
1325
|
/**
|
|
@@ -1543,14 +1339,12 @@ declare function deleteMessages$1(conversation: IConversationOption, messages: {
|
|
|
1543
1339
|
}[]): Promise<IAsyncRes<void>>;
|
|
1544
1340
|
/**
|
|
1545
1341
|
* 按时间戳删除消息
|
|
1546
|
-
* @category 消息
|
|
1547
1342
|
* @param conversation 会话
|
|
1548
1343
|
* @param timestamp 清除时间点, 该时间之前的消息将被清除
|
|
1549
1344
|
*/
|
|
1550
1345
|
declare function clearHistoryMessages(conversation: IConversationOption, timestamp: number): Promise<IAsyncRes<void>>;
|
|
1551
1346
|
/**
|
|
1552
1347
|
* 更新(添加、替换)消息扩展属性
|
|
1553
|
-
* @category 消息
|
|
1554
1348
|
* @param expansion 要更新的消息扩展信息键值对
|
|
1555
1349
|
* @param message 要更新的原始消息体
|
|
1556
1350
|
*/
|
|
@@ -1559,43 +1353,37 @@ declare function updateMessageExpansion(expansion: {
|
|
|
1559
1353
|
}, message: IAReceivedMessage): Promise<IAsyncRes<void>>;
|
|
1560
1354
|
/**
|
|
1561
1355
|
* 删除扩展存储
|
|
1562
|
-
* @category 消息
|
|
1563
1356
|
* @params keys 需删除消息扩展的 keys
|
|
1564
1357
|
* @params message 原始消息体
|
|
1565
1358
|
*/
|
|
1566
1359
|
declare function removeMessageExpansionForKey(keys: string[], message: IAReceivedMessage): Promise<IAsyncRes<void>>;
|
|
1567
1360
|
/**
|
|
1568
1361
|
* 发送typing消息
|
|
1569
|
-
* @category 消息
|
|
1570
1362
|
* @param typingContentType 输入状态消息类型
|
|
1571
1363
|
* @returns
|
|
1572
1364
|
*/
|
|
1573
1365
|
declare function sendTypingStatusMessage(conversation: IConversationOption, typingContentType: string): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1574
1366
|
/**
|
|
1575
1367
|
* 获取群已读列表
|
|
1576
|
-
* @category 消息
|
|
1577
1368
|
* @param messageUId 消息UID
|
|
1578
1369
|
* @returns
|
|
1579
1370
|
*/
|
|
1580
1371
|
declare function getMessageReader(targetId: string, messageUId: string, channelId: string): Promise<IAsyncRes<IMessageReaderResponse>>;
|
|
1581
1372
|
/**
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
*/
|
|
1373
|
+
* 注册自定义消息
|
|
1374
|
+
* @param messageType 消息类型
|
|
1375
|
+
* @param isPersited 是否存储
|
|
1376
|
+
* @param isCounted 是否计数
|
|
1377
|
+
* @param prototypes 消息属性名称
|
|
1378
|
+
*/
|
|
1589
1379
|
declare function registerMessageType<T>(messageType: string, isPersited: boolean, isCounted: boolean, prototypes?: string[], isStatusMessage?: boolean): new (content: T) => BaseMessage<T>;
|
|
1590
1380
|
/**
|
|
1591
1381
|
* 获取第一条未读消息
|
|
1592
|
-
* @category 消息
|
|
1593
1382
|
* @param conversation
|
|
1594
1383
|
*/
|
|
1595
1384
|
declare function getFirstUnreadMessage(conversation: IConversationOption): Promise<IAsyncRes<IReceivedMessage | null>>;
|
|
1596
1385
|
/**
|
|
1597
1386
|
* 向本地插入一条消息,不发送到服务器
|
|
1598
|
-
* @category 消息
|
|
1599
1387
|
* @param conversationType 会话类型
|
|
1600
1388
|
* @param targetId 目标 ID
|
|
1601
1389
|
* @param content 消息体
|
|
@@ -1605,20 +1393,17 @@ declare function getFirstUnreadMessage(conversation: IConversationOption): Promi
|
|
|
1605
1393
|
declare function insertMessage$1(conversation: IConversationOption, content: IReceivedMessage, options?: IInsertOptions): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1606
1394
|
/**
|
|
1607
1395
|
* 获取消息
|
|
1608
|
-
* @category 消息
|
|
1609
1396
|
* @param messageId 本地消息 ID 或 messageUId
|
|
1610
1397
|
*/
|
|
1611
1398
|
declare function getMessage(messageId: number): Promise<IAsyncRes<IAReceivedMessage>>;
|
|
1612
1399
|
/**
|
|
1613
1400
|
* 获取会话下所有未读的 @ 消息
|
|
1614
|
-
* @category 消息
|
|
1615
1401
|
* @param conversationType 会话类型
|
|
1616
1402
|
* @param targetId 目标 ID
|
|
1617
1403
|
*/
|
|
1618
1404
|
declare function getUnreadMentionedMessages(conversation: IConversationOption): IAsyncRes<IAReceivedMessage[]>;
|
|
1619
1405
|
/**
|
|
1620
1406
|
* 按关键字搜索会话内的消息
|
|
1621
|
-
* @category 消息
|
|
1622
1407
|
* @deprecated 已废弃,推荐使用 electronExtension.searchMessages 方法
|
|
1623
1408
|
* @param conversation 会话
|
|
1624
1409
|
* @param keyword 搜索内容
|
|
@@ -1632,7 +1417,6 @@ declare function searchMessages$1(conversation: IConversationOption, keyword: st
|
|
|
1632
1417
|
}>>;
|
|
1633
1418
|
/**
|
|
1634
1419
|
* 从本地消息数据库中删除某一会话指定时间之前的消息数据
|
|
1635
|
-
* @category 消息
|
|
1636
1420
|
* @param conversation 会话
|
|
1637
1421
|
* @param timestamp 指定删除该时间戳之前的消息
|
|
1638
1422
|
* @param cleanSpace 指定删除该时间戳之前的消息。是否清理数据条目所使用的磁盘空间。清理磁盘空间会阻塞进程且耗时较长,不推荐使用。
|
|
@@ -1642,14 +1426,12 @@ declare function searchMessages$1(conversation: IConversationOption, keyword: st
|
|
|
1642
1426
|
declare function deleteLocalMessagesByTimestamp(conversation: IConversationOption, timestamp: number, cleanSpace: boolean): Promise<IAsyncRes<void>>;
|
|
1643
1427
|
/**
|
|
1644
1428
|
* 清空会话下历史消息
|
|
1645
|
-
* @category 消息
|
|
1646
1429
|
* @param conversation 会话
|
|
1647
1430
|
* @deprecated
|
|
1648
1431
|
*/
|
|
1649
1432
|
declare function clearMessages$1(conversation: IConversationOption): Promise<IAsyncRes<void>>;
|
|
1650
1433
|
/**
|
|
1651
1434
|
* 按内容搜索会话
|
|
1652
|
-
* @category 消息
|
|
1653
1435
|
* @param keyword 关键字
|
|
1654
1436
|
* @param conversationTypes 会话类型数组
|
|
1655
1437
|
* @deprecated
|
|
@@ -1657,7 +1439,6 @@ declare function clearMessages$1(conversation: IConversationOption): Promise<IAs
|
|
|
1657
1439
|
declare function searchConversationByContent$1(keyword: string, conversationTypes?: ConversationType[], customMessageType?: string[], channelId?: string): Promise<IAsyncRes<IReceivedConversation[] | undefined>>;
|
|
1658
1440
|
/**
|
|
1659
1441
|
* 清除时间戳前的未读数
|
|
1660
|
-
* @category 消息
|
|
1661
1442
|
* @param conversationType 会话类型
|
|
1662
1443
|
* @param targetId 目标 ID
|
|
1663
1444
|
* @param timestamp 目标 ID
|
|
@@ -1666,71 +1447,60 @@ declare function searchConversationByContent$1(keyword: string, conversationType
|
|
|
1666
1447
|
declare function clearUnreadCountByTimestamp(conversation: IConversationOption, timestamp: number): Promise<IAsyncRes<void>>;
|
|
1667
1448
|
/**
|
|
1668
1449
|
* 设置消息接收状态
|
|
1669
|
-
* @category 消息
|
|
1670
1450
|
* @deprecated
|
|
1671
1451
|
*/
|
|
1672
1452
|
declare function setMessageReceivedStatus$1(messageId: number, receivedStatus: number): Promise<IAsyncRes<void>>;
|
|
1673
1453
|
|
|
1674
1454
|
/**
|
|
1675
1455
|
* 创建标签
|
|
1676
|
-
* @category 标签
|
|
1677
1456
|
* @param tag 标签信息
|
|
1678
1457
|
*/
|
|
1679
1458
|
declare function addTag(tag: ITagParam): Promise<IAsyncRes<void>>;
|
|
1680
1459
|
/**
|
|
1681
1460
|
* 删除标签
|
|
1682
|
-
* @category 标签
|
|
1683
1461
|
* @param tagId 标签 ID
|
|
1684
1462
|
*/
|
|
1685
1463
|
declare function removeTag(tagId: string): Promise<IAsyncRes<void>>;
|
|
1686
1464
|
/**
|
|
1687
1465
|
* 编辑标签
|
|
1688
|
-
* @category 标签
|
|
1689
1466
|
* @param tag 标签信息
|
|
1690
1467
|
*/
|
|
1691
1468
|
declare function updateTag(tag: ITagParam): Promise<IAsyncRes<void>>;
|
|
1692
1469
|
/**
|
|
1693
1470
|
* 获取标签列表
|
|
1694
|
-
* @category 标签
|
|
1695
1471
|
*/
|
|
1696
1472
|
declare function getTags(): Promise<IAsyncRes<ITagInfo[] | undefined>>;
|
|
1697
1473
|
/**
|
|
1698
1474
|
* 获取会话下的标签
|
|
1699
|
-
* @category 标签
|
|
1700
1475
|
* @param conversation 会话信息
|
|
1701
1476
|
*/
|
|
1702
1477
|
declare function getTagsFromConversation(conversation: IConversationOption): Promise<IAsyncRes<IConversationTag[] | undefined>>;
|
|
1703
1478
|
/**
|
|
1704
1479
|
* 添加会话到指定标签
|
|
1705
|
-
* @category 标签
|
|
1706
1480
|
* @param tagId 标签 ID
|
|
1707
1481
|
* @param conversations 要添加的会话列表
|
|
1708
1482
|
*/
|
|
1709
1483
|
declare function addConversationsToTag(tagId: string, conversations: IConversationOption[]): Promise<IAsyncRes<void>>;
|
|
1710
1484
|
/**
|
|
1711
1485
|
* 删除指定标签中会话
|
|
1712
|
-
* @category 标签
|
|
1713
1486
|
* @param tagId 标签 ID
|
|
1714
1487
|
* @param conversations 要删除的会话列表
|
|
1715
1488
|
*/
|
|
1716
1489
|
declare function removeConversationsFromTag(tagId: string, conversations: IConversationOption[]): Promise<IAsyncRes<void>>;
|
|
1717
1490
|
/**
|
|
1718
1491
|
* 从指定会话中删除多个标签
|
|
1719
|
-
* @category 标签
|
|
1720
1492
|
* @param conversation 会话
|
|
1721
1493
|
* @param tagIds 要删除的标签列表
|
|
1722
1494
|
*/
|
|
1723
1495
|
declare function removeTagsFromConversation(conversation: IConversationOption, tagIds: string[]): Promise<IAsyncRes<void>>;
|
|
1724
1496
|
/**
|
|
1725
1497
|
* 从多个会话中删除指定的标签
|
|
1726
|
-
* @category 标签
|
|
1727
1498
|
* @param tagId 标签 ID
|
|
1728
1499
|
* @param conversations 要删除的会话列表
|
|
1729
1500
|
*/
|
|
1730
1501
|
declare function removeTagFromConversations(tagId: string, conversations: IConversationOption[]): Promise<IAsyncRes<void>>;
|
|
1731
1502
|
/**
|
|
1732
1503
|
* 分页获取标签下会话列表
|
|
1733
|
-
* @category 标签
|
|
1734
1504
|
* @param tagId 标签id
|
|
1735
1505
|
* @param count 获取数量
|
|
1736
1506
|
* @param timestamp 会话时间戳
|
|
@@ -1738,14 +1508,12 @@ declare function removeTagFromConversations(tagId: string, conversations: IConve
|
|
|
1738
1508
|
declare function getConversationsFromTagByPage(tagId: string, count: number, startTime: number): Promise<IAsyncRes<IReceivedConversationByTag[] | undefined>>;
|
|
1739
1509
|
/**
|
|
1740
1510
|
* 根据标签获取未读消息数
|
|
1741
|
-
* @category 标签
|
|
1742
1511
|
* @param tagId 标签id
|
|
1743
1512
|
* @param containMuted 是否包含免打扰
|
|
1744
1513
|
*/
|
|
1745
1514
|
declare function getUnreadCountByTag(tagId: string, containMuted: boolean): Promise<IAsyncRes<number | undefined>>;
|
|
1746
1515
|
/**
|
|
1747
1516
|
* 设置标签中会话置顶
|
|
1748
|
-
* @category 标签
|
|
1749
1517
|
* @param tagId 标签id
|
|
1750
1518
|
* @param conversation 会话
|
|
1751
1519
|
* @param status 状态
|
|
@@ -1755,7 +1523,6 @@ declare function setConversationToTopInTag(tagId: string, conversation: IConvers
|
|
|
1755
1523
|
/**
|
|
1756
1524
|
* 获取文件 token
|
|
1757
1525
|
* @description 上传文件时,获取文件 token
|
|
1758
|
-
* @hidden
|
|
1759
1526
|
* @param fileType 上传类型, 通过 RongIMLib.FILE_TYPE 获取
|
|
1760
1527
|
* @param fileName 上传文件名,Server 通过文件名生成百度上传认证, 若不传 engine 自动生成
|
|
1761
1528
|
* @param httpMethod STC 分段上传时的必填参数,有效值为 PUT | POST
|
|
@@ -1769,11 +1536,9 @@ declare function setConversationToTopInTag(tagId: string, conversation: IConvers
|
|
|
1769
1536
|
declare function getFileToken(fileType: FileType, fileName?: string, httpMethod?: 'POST' | 'PUT', queryString?: string): Promise<IAsyncRes<IUploadAuth & {
|
|
1770
1537
|
bos: string;
|
|
1771
1538
|
qiniu: string;
|
|
1772
|
-
ossConfig: string;
|
|
1773
1539
|
}>>;
|
|
1774
1540
|
/**
|
|
1775
1541
|
* 获取文件的下载地址
|
|
1776
|
-
* @hidden
|
|
1777
1542
|
* @param fileType 文件类型
|
|
1778
1543
|
* @param fileName 文件名
|
|
1779
1544
|
* @param saveName 下载后的存储文件名
|
|
@@ -1789,8 +1554,8 @@ declare function getFileUrl(fileType: FileType, filename?: string, saveName?: st
|
|
|
1789
1554
|
}>>;
|
|
1790
1555
|
|
|
1791
1556
|
/**
|
|
1792
|
-
*
|
|
1793
|
-
|
|
1557
|
+
* 业务层枚举, 此处枚举会暴露给开发者
|
|
1558
|
+
*/
|
|
1794
1559
|
declare const ConnectType: {
|
|
1795
1560
|
COMET: string;
|
|
1796
1561
|
WEBSOCKET: string;
|
|
@@ -1876,25 +1641,25 @@ declare function setMessageStatusToRead(conversation: IConversationOption, times
|
|
|
1876
1641
|
* @param messageId 消息 ID
|
|
1877
1642
|
* @param receivedStatus 接受状态
|
|
1878
1643
|
*/
|
|
1879
|
-
declare function setMessageReceivedStatus(messageId: number, receivedStatus: ReceivedStatus): Promise<IAsyncRes
|
|
1644
|
+
declare function setMessageReceivedStatus(messageId: number, receivedStatus: ReceivedStatus): Promise<IAsyncRes>;
|
|
1880
1645
|
/**
|
|
1881
1646
|
* 设置自己发送的消息的发送状态
|
|
1882
1647
|
* @param messageId 消息ID
|
|
1883
1648
|
* @param sentStatus 发送状态
|
|
1884
1649
|
*/
|
|
1885
|
-
declare function setMessageSentStatus(messageId: number, sentStatus: SentStatus): Promise<IAsyncRes
|
|
1650
|
+
declare function setMessageSentStatus(messageId: number, sentStatus: SentStatus): Promise<IAsyncRes>;
|
|
1886
1651
|
/**
|
|
1887
1652
|
* 修改消息内容
|
|
1888
1653
|
* @param messageId 消息 ID
|
|
1889
1654
|
* @param content 消息 content
|
|
1890
1655
|
* @param messageType 消息类型,如果设置了消息类型,会使该消息无法被搜索
|
|
1891
1656
|
*/
|
|
1892
|
-
declare function setMessageContent(messageId: number, content: Object, messageType?: string): Promise<IAsyncRes
|
|
1657
|
+
declare function setMessageContent(messageId: number, content: Object, messageType?: string): Promise<IAsyncRes>;
|
|
1893
1658
|
/**
|
|
1894
1659
|
* 删除消息
|
|
1895
1660
|
* @param messageIds 消息 ID 列表, 需是同一会话的消息
|
|
1896
1661
|
*/
|
|
1897
|
-
declare function deleteMessages(messageIds: number[]): Promise<IAsyncRes
|
|
1662
|
+
declare function deleteMessages(messageIds: number[]): Promise<IAsyncRes>;
|
|
1898
1663
|
/**
|
|
1899
1664
|
* 清空会话下历史消息
|
|
1900
1665
|
* @param conversation 会话
|
|
@@ -1957,4 +1722,4 @@ declare namespace index {
|
|
|
1957
1722
|
};
|
|
1958
1723
|
}
|
|
1959
1724
|
|
|
1960
|
-
export { BaseMessage, _default$6 as CombineMessage, ConnectType, EventListeners, Events, _default$5 as FileMessage, _default$4 as GIFMessage, GetHistoryMessageOption, GetHistoryMessageResult, _default$9 as HQVoiceMessage, IAReceivedConversation, IAReceivedMessage, ICombineMessageBody, IConversationEvent, 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,
|
|
1725
|
+
export { BaseMessage, _default$6 as CombineMessage, ConnectType, EventListeners, Events, _default$5 as FileMessage, _default$4 as GIFMessage, GetHistoryMessageOption, GetHistoryMessageResult, _default$9 as HQVoiceMessage, IAReceivedConversation, IAReceivedMessage, ICombineMessageBody, IConversationEvent, 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, 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, getRemoteHistoryMessages, getServerTime, getTags, getTagsFromConversation, getTextMessageDraft, getTopConversationList, getTotalUnreadCount, getTotalUnreadCountByLevels, getTotalUnreadMentionedCountByLevels, getUltraGroupDefaultNotificationLevel, getUltraGroupFirstUnreadMessageTimestamp, getUltraGroupList, getUltraGroupMessageListByMessageUId, getUltraGroupUnreadCountByTargetId, getUltraGroupUnreadMentionedCountByTargetId, getUltraGroupUnreadMentionedMessages, 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, setUltraGroupDefaultNotificationLevel, updateExpansionForUltraGroupMessage, updateMessageExpansion, updateTag };
|