@rongcloud/imlib-v2-adapter 5.18.0 → 5.20.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,5 +1,5 @@
1
1
  import { IPushConfig, IUserProfile, ConversationType, MessageDirection, ReceivedStatus, IReadReceiptInfo, IReadReceiptResponseInfo, IConversationTag, LogLevel, EnableLogL, RCConnectionStatus, ErrorCode, ITypingMessage, IBlockedMessageInfo, IChatroomListenerData, IMessageDeliver, IGroupMessageDeliverStatus, ILogger, APIContext, AppStorage, IMessageReaderResponse, IInsertMessage, NotificationStatus, IGroupMessageDeliverInfo, IRemoveChatroomEntry, RTCMode, IPluginGenerator, INaviInfo, IChatroomEntry, IChatroomEntries, FileType, IUploadAuth, UploadMethod, ITagParam, ITagInfo, IExtraMethod, MentionedType as MentionedType$1 } from '@rongcloud/engine';
2
- export { AreaCode, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationTag, IDeletedExpansion, IEventListener, IExpansionListenerData, IGooglePushConfig, IInsertMessage, IMessageReader, IMessageReaderResponse, IPushConfig, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatroomEntry, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogL, LogLevel, LogSource, LogTagId, MentionedInfoBody, MessageBlockType, MessageDirection, NotificationStatus, RCConnectionStatus, RTCApiType, RTCMode, ReceivedStatus, UploadMethod, logger } from '@rongcloud/engine';
2
+ export { AreaCode, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBlockedMessageInfo, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationTag, IDeletedExpansion, IEventListener, IExpansionListenerData, IGooglePushConfig, IInsertMessage, IMessageReader, IMessageReaderResponse, IPushConfig, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatroomEntry, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, LogL, LogLevel, LogSource, MentionedInfo as MentionedInfoBody, MessageBlockType, MessageDirection, NotificationStatus, RCConnectionStatus, RTCApiType, RTCMode, ReceivedStatus, UploadMethod, logger } from '@rongcloud/engine';
3
3
 
4
4
  declare enum SentStatus {
5
5
  /**
@@ -40,7 +40,7 @@ interface ISendOptionsV2 {
40
40
  */
41
41
  userIds?: string[];
42
42
  /**
43
- * 为 ture 时, 当对方为 iOS 设备且未在线时,其将收到 Voip Push. 此配置对 Android 无影响
43
+ * 为 ture 时,当对方为 iOS 设备且未在线时,其将收到 Voip Push. 此配置对 Android 无影响
44
44
  */
45
45
  isVoipPush?: boolean;
46
46
  /**
@@ -134,7 +134,7 @@ interface IReceivedMessageV2 {
134
134
  } | null;
135
135
  disableNotification: boolean;
136
136
  /**
137
- * 消息已读回执信息,导航配置grpRRVer=1时群组类型消息内存在, 其他情况为undefined
137
+ * 消息已读回执信息,导航配置 grpRRVer=1 时群组类型消息内存在,其他情况为 undefined
138
138
  */
139
139
  readReceiptInfo?: IReadReceiptInfo | IReadReceiptResponseInfo;
140
140
  pushConfig?: IPushConfig;
@@ -197,7 +197,7 @@ interface IConversationStatus {
197
197
  */
198
198
  notificationStatus?: 1 | 2;
199
199
  /**
200
- * 标签
200
+ * @deprecated 参数无效
201
201
  */
202
202
  tags?: IConversationTag[];
203
203
  }
@@ -277,7 +277,7 @@ interface IInitOption {
277
277
  /**
278
278
  * @deprecated 配置已废弃
279
279
  */
280
- logStdout?: (logLevel: LogLevel, content: string) => void;
280
+ logStdout?: (logLevel: LogLevel, content: string) => void | Promise<void>;
281
281
  /**
282
282
  * 调试模式,开启后 SDK 自动向控制台输出日志
283
283
  * @deprecated
@@ -324,7 +324,7 @@ interface IInitOption {
324
324
  typingExpireTime?: number;
325
325
  /**
326
326
  * @deprecate
327
- * 是否打开 IndexDB 存储, 默认为 true
327
+ * 是否打开 IndexDB 存储,默认为 true
328
328
  */
329
329
  indexDBSwitch?: boolean;
330
330
  /**
@@ -332,7 +332,7 @@ interface IInitOption {
332
332
  */
333
333
  checkCA?: boolean;
334
334
  /**
335
- * 群聊天回执超时时间, 最大值15天,最小1天,单位:天
335
+ * 群聊天回执超时时间,最大值 15 天,最小 1 天,单位:天
336
336
  * @defaultValue 1
337
337
  */
338
338
  readReceiptTimeout?: number;
@@ -344,6 +344,11 @@ interface IInitOption {
344
344
  * 私有云环境配置
345
345
  */
346
346
  environment?: string;
347
+ /**
348
+ * 启动事件循环阻塞检查;当值为 `true` 时,SDK 会启动事件循环阻塞检查,并在发现事件循环阻塞时记录日志。
349
+ * @since 5.20.0
350
+ */
351
+ eventLoopBlockingCheck?: boolean;
347
352
  }
348
353
  /**
349
354
  * 消息监听器
@@ -355,7 +360,7 @@ interface IReceiveMessageListener {
355
360
  * @param leftCount 该参数废弃,值将始终为 undefined
356
361
  * @param hasMore c++ 协议栈配套参数,消息是否收取结束
357
362
  */
358
- onReceived(message: IReceivedMessageV2, leftCount?: number, hasMore?: boolean): void;
363
+ onReceived(message: IReceivedMessageV2, leftCount?: number, hasMore?: boolean): void | Promise<void>;
359
364
  }
360
365
  /**
361
366
  * 连接监听器
@@ -369,7 +374,7 @@ interface IConnectionStatusListener {
369
374
  * * RCConnectionStatus.SUSPEND - 连接中断,SDK 会尝试重连,可以通过 `code` 确认中断原因
370
375
  * @param code 当 status 值为 `RCConnectionStatus.DISCONNECTED` 或 `RCConnectionStatus.SUSPEND` 时,code 有值
371
376
  */
372
- onChanged(status: RCConnectionStatus, code?: ErrorCode): void;
377
+ onChanged(status: RCConnectionStatus, code?: ErrorCode): void | Promise<void>;
373
378
  }
374
379
  /**
375
380
  * 会话状态监听器
@@ -378,56 +383,56 @@ interface IConversationStatusListener {
378
383
  /**
379
384
  * 状态回调
380
385
  */
381
- onChanged(status: IReceivedConversationStatus[]): void;
386
+ onChanged(status: IReceivedConversationStatus[]): void | Promise<void>;
382
387
  }
383
388
  /**
384
389
  * 消息扩展监听器
385
390
  */
386
391
  interface IMessageExpansionListener {
387
- onUpdated(data: IReceivedUpdatedExpansion): void;
388
- onDeleted(data: IReceivedDeletedExpansion): void;
392
+ onUpdated(data: IReceivedUpdatedExpansion): void | Promise<void>;
393
+ onDeleted(data: IReceivedDeletedExpansion): void | Promise<void>;
389
394
  }
390
395
  /**
391
396
  * 标签监听器
392
397
  */
393
398
  interface ITagListener {
394
- onChanged(): void;
399
+ onChanged(): void | Promise<void>;
395
400
  }
396
401
  /**
397
402
  * 离线拉取完成监听器
398
403
  */
399
404
  interface IPullFinishedListener {
400
- onFinished(): void;
405
+ onFinished(): void | Promise<void>;
401
406
  }
402
407
  /**
403
- * typing监听器
408
+ * typing 监听器
404
409
  */
405
410
  interface ITypingListener {
406
- onChanged(info: ITypingMessage[]): void;
411
+ onChanged(info: ITypingMessage[]): void | Promise<void>;
407
412
  }
408
413
  /**
409
414
  * 消息送达通知监听器
410
415
  */
411
416
  interface IMessageDeliveredListener {
412
- onDelivered(info: IMessageDeliver[]): void;
417
+ onDelivered(info: IMessageDeliver[]): void | Promise<void>;
413
418
  }
414
419
  /**
415
420
  * 消息送达通知监听器
416
421
  */
417
422
  interface IGroupMessageDeliveredStatusListener {
418
- onDelivered(info: IGroupMessageDeliverStatus): void;
423
+ onDelivered(info: IGroupMessageDeliverStatus): void | Promise<void>;
419
424
  }
420
425
  /**
421
426
  * 敏感词回调监听器
422
427
  */
423
428
  interface IMessageBlockedListener {
424
- onReceived(info: IBlockedMessageInfo): void;
429
+ onReceived(info: IBlockedMessageInfo): void | Promise<void>;
425
430
  }
426
431
  /**
427
432
  * 聊天室监听器
428
433
  */
429
434
  interface IChatRoomListener {
430
- onChanged(info: IChatroomListenerData): void;
435
+ onChanged(info: IChatroomListenerData): void | Promise<void>;
431
436
  }
432
437
  /**
433
438
  * 连接回调
@@ -437,16 +442,16 @@ interface IConnectCallback {
437
442
  * 连接成功回调
438
443
  * @param userId
439
444
  */
440
- onSuccess(userId: string): void;
445
+ onSuccess(userId: string): void | Promise<void>;
441
446
  /**
442
447
  * 连接用 token 失效回调
443
448
  */
444
- onTokenIncorrect(): void;
449
+ onTokenIncorrect(): void | Promise<void>;
445
450
  /**
446
451
  * 连接失败回调
447
452
  * @param errorcode 错误码
448
453
  */
449
- onError(errorcode: number): void;
454
+ onError(errorcode: number): void | Promise<void>;
450
455
  }
451
456
  /**
452
457
  * 重连配置
@@ -458,11 +463,11 @@ interface IReconnectOptions {
458
463
  */
459
464
  auto?: boolean;
460
465
  /**
461
- * 用于网络嗅探的地址。auto 为 true 时, 此参数必填
466
+ * 用于网络嗅探的地址。auto 为 true 时,此参数必填
462
467
  */
463
468
  url?: string;
464
469
  /**
465
- * 网络嗅探频率, 单位为毫秒。auto 为 true 时, 此参数必填
470
+ * 网络嗅探频率,单位为毫秒。auto 为 true 时,此参数必填
466
471
  */
467
472
  rate?: number[];
468
473
  }
@@ -471,19 +476,19 @@ interface IErrorCallback {
471
476
  * 失败回调
472
477
  * @param error
473
478
  */
474
- onError(error: ErrorCode, data?: unknown): void;
479
+ onError(error: ErrorCode, data?: unknown): void | Promise<void>;
475
480
  }
476
481
  interface ISuccessCallback<T, O = void> {
477
482
  /**
478
483
  * 成功回调
479
484
  * @param data
480
485
  */
481
- onSuccess(data: T, other?: O): void;
486
+ onSuccess(data: T, other?: O): void | Promise<void>;
482
487
  }
483
488
  interface ICallback<T = void, O = void> extends ISuccessCallback<T, O>, IErrorCallback {
484
489
  }
485
490
  interface ISendCallback<T = void, O = void> extends ICallback<T, O> {
486
- onBefore?(messageId: number): void;
491
+ onBefore?(messageId: number): void | Promise<void>;
487
492
  }
488
493
  /**
489
494
  * V2 API Conversation
@@ -516,7 +521,7 @@ interface IV2Conversation {
516
521
  */
517
522
  latestMessageId?: number;
518
523
  /**
519
- * ~~会话中最后一条消息的消息标识, 融云内置消息以 "RC:" 开头~~
524
+ * ~~会话中最后一条消息的消息标识,融云内置消息以 "RC:" 开头~~
520
525
  * @deprecated
521
526
  * 该属性已废弃,请通过 `latestMessage` 取值
522
527
  */
@@ -532,7 +537,7 @@ interface IV2Conversation {
532
537
  */
533
538
  isTop: boolean;
534
539
  /**
535
- * 会话免打扰状态: 1 开启免打扰、 2 关闭免打扰
540
+ * 会话免打扰状态:1 开启免打扰、2 关闭免打扰
536
541
  */
537
542
  notificationStatus: 1 | 2;
538
543
  /**
@@ -541,9 +546,6 @@ interface IV2Conversation {
541
546
  * 该属性已废弃,请通过 `latestMessage` 取值
542
547
  */
543
548
  receivedStatus?: number;
544
- /**
545
- * 会话中最后一条消息发送状态 TODO 待确认是否弃用
546
- */
547
549
  /**
548
550
  * 按照消息搜索会话时,匹配到的消息数量
549
551
  */
@@ -554,7 +556,7 @@ interface IV2Conversation {
554
556
  */
555
557
  interface IV2ConversationContainTag extends IV2Conversation {
556
558
  /**
557
- * 在tag中是否置顶
559
+ * 在 tag 中是否置顶
558
560
  */
559
561
  isTopInTag: boolean;
560
562
  }
@@ -614,7 +616,7 @@ interface IV2ChatRoomInfo {
614
616
  }
615
617
  interface IInsertOptions {
616
618
  /**
617
- * 插入消息是否计入未读数: true 计数 false 不计数, 默认不计数
619
+ * 插入消息是否计入未读数:true 计数 false 不计数,默认不计数
618
620
  */
619
621
  isUnread?: boolean;
620
622
  /**
@@ -624,7 +626,7 @@ interface IInsertOptions {
624
626
  }
625
627
  interface IIMClientOptions {
626
628
  /**
627
- * 群回执超时时间,单位天,最大15天
629
+ * 群回执超时时间,单位天,最大 15
628
630
  */
629
631
  readReceiptTimeout: number;
630
632
  }
@@ -689,7 +691,7 @@ declare class ChannelClient {
689
691
  * 获取当前组织下的所有会话的消息未读数
690
692
  * @description
691
693
  * 1. 清除浏览器缓存会导致会话未读数不准确
692
- * 2. 会话消息未读数存储在 WebStorage 中, 若浏览器不支持或禁用 WebStorage,未读消息数将不会保存,浏览器页面刷新未读消息数将不会存在
694
+ * 2. 会话消息未读数存储在 WebStorage 中,若浏览器不支持或禁用 WebStorage,未读消息数将不会保存,浏览器页面刷新未读消息数将不会存在
693
695
  * @param callback
694
696
  * @param conversationTypes 要获取未读数的会话类型,若为空,则默认获取单聊、群聊及系统消息未读数
695
697
  * @param includeMuted 是否包含免打扰会话(web 暂未实现)
@@ -748,7 +750,7 @@ declare class ChannelClient {
748
750
  * @param isMentioned `是否为 @ 消息`
749
751
  * @param pushContent 移动端在接收到消息推送时用于显示的推送信息
750
752
  * @param pushData Push 通知时附加信息
751
- * @param methodType 1 : 多客服(客服后台使用); 2 : 消息撤回
753
+ * @param methodType 1 : 多客服 (客服后台使用); 2 : 消息撤回
752
754
  * @param options 其他设置项
753
755
  */
754
756
  sendMessage(conversationType: ConversationType, targetId: string, msg: BaseMessage, callback: ISendCallback<IReceivedMessageV2>, isMentioned?: boolean, pushContent?: string, pushData?: string, options?: ISendOptionsV2): void;
@@ -807,8 +809,8 @@ declare class ChannelClient {
807
809
  * 从服务端拉取指定会话的历史消息
808
810
  * @param conversationType 会话类型
809
811
  * @param targetId 会话 ID
810
- * @param timestamp 获取时间戳, 0 为从当前时间拉取
811
- * @param count 拉取条数,获取条数, 范围 1 - 20
812
+ * @param timestamp 获取时间戳,0 为从当前时间拉取
813
+ * @param count 拉取条数,获取条数,范围 1 - 20
812
814
  * @param order 获取顺序,默认为 0。0 为升序,获取消息发送时间比 timestamp 更早的消息;1 为降序。
813
815
  * @param objectname
814
816
  */
@@ -865,8 +867,8 @@ declare class ChannelClient {
865
867
  * 协议栈获取远端历史消息
866
868
  * @param conversationType 会话类型
867
869
  * @param targetId 会话 ID
868
- * @param timestamp 获取时间戳, 0 为从当前时间拉取
869
- * @param count 拉取条数,获取条数, 范围 1 - 20
870
+ * @param timestamp 获取时间戳,0 为从当前时间拉取
871
+ * @param count 拉取条数,获取条数,范围 1 - 20
870
872
  */
871
873
  getRemoteHistoryMessages(conversationType: ConversationType, targetId: string, timestamp: number, count: number, callback: ICallback<Array<IReceivedMessageV2>, boolean>, options: {
872
874
  order?: 0 | 1;
@@ -893,7 +895,7 @@ declare class ChannelClient {
893
895
  * @param keyword 搜索内容
894
896
  * @param conversationType 会话类型
895
897
  * @param targetId 目标 ID
896
- * @param timestamp 搜索时间, 搜索该时间之前的消息
898
+ * @param timestamp 搜索时间,搜索该时间之前的消息
897
899
  * @param count 获取的数量
898
900
  */
899
901
  searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, callback: ICallback<IReceivedMessageV2[], number>): void;
@@ -1013,7 +1015,7 @@ declare class IMClient {
1013
1015
  */
1014
1016
  disconnect(closeDB?: boolean): Promise<void>;
1015
1017
  /**
1016
- * 该方法等价于 disconnect
1018
+ * @deprecated 请使用 disconnect 方法
1017
1019
  */
1018
1020
  logout(): Promise<void>;
1019
1021
  /**
@@ -1079,7 +1081,7 @@ declare class IMClient {
1079
1081
  * 获取所有会话的消息未读数
1080
1082
  * @description
1081
1083
  * 1. 清除浏览器缓存会导致会话未读数不准确
1082
- * 2. 会话消息未读数存储在 WebStorage 中, 若浏览器不支持或禁用 WebStorage,未读消息数将不会保存,浏览器页面刷新未读消息数将不会存在
1084
+ * 2. 会话消息未读数存储在 WebStorage 中,若浏览器不支持或禁用 WebStorage,未读消息数将不会保存,浏览器页面刷新未读消息数将不会存在
1083
1085
  * @param callback
1084
1086
  * @param conversationTypes 要获取未读数的会话类型,若为空,则默认获取单聊、群聊及系统消息未读数(web 暂未实现)
1085
1087
  * @param includeMuted 是否包含免打扰会话(web 暂未实现)
@@ -1139,7 +1141,7 @@ declare class IMClient {
1139
1141
  * @param isMentioned `是否为 @ 消息`
1140
1142
  * @param pushContent 移动端在接收到消息推送时用于显示的推送信息
1141
1143
  * @param pushData Push 通知时附加信息
1142
- * @param methodType 该参数已废弃 ~~1 : 多客服(客服后台使用); 2 : 消息撤回~~
1144
+ * @param methodType 该参数已废弃 ~~1 : 多客服 (客服后台使用); 2 : 消息撤回~~
1143
1145
  * @param options 其他设置项
1144
1146
  */
1145
1147
  sendMessage(conversationType: ConversationType, targetId: string, msg: BaseMessage, callback: ISendCallback<IReceivedMessageV2>, isMentioned?: boolean, pushContent?: string, pushData?: string, methodType?: number, options?: ISendOptionsV2): void;
@@ -1198,8 +1200,8 @@ declare class IMClient {
1198
1200
  * 从服务端拉取指定会话的历史消息
1199
1201
  * @param conversationType 会话类型
1200
1202
  * @param targetId 会话 ID
1201
- * @param timestamp 获取时间戳, 0 为从当前时间拉取
1202
- * @param count 拉取条数,获取条数, 范围 1 - 20
1203
+ * @param timestamp 获取时间戳,0 为从当前时间拉取
1204
+ * @param count 拉取条数,获取条数,范围 1 - 20
1203
1205
  * @param callback
1204
1206
  * @param objectName
1205
1207
  * @param order 获取顺序,默认为 0。0 为升序,获取消息发送时间比 timestamp 更早的消息;1 为降序。
@@ -1221,7 +1223,7 @@ declare class IMClient {
1221
1223
  /**
1222
1224
  * 获取聊天室信息
1223
1225
  * @param chatRoomId 聊天室 id
1224
- * @param count 获取人数, 范围 0 - 20
1226
+ * @param count 获取人数,范围 0 - 20
1225
1227
  * 1. 传入 0 获取到的聊天室信息将或仅包含成员总数,不包含具体的成员列表
1226
1228
  * 2. 传入其他大于 0 的值返回聊天室信息,结果仅包含包含不多于 20 人的成员信息和当前成员总数。最大值为 20
1227
1229
  * @param order 排序方式,1 为正序,2 为倒序
@@ -1238,7 +1240,7 @@ declare class IMClient {
1238
1240
  setChatroomEntry(chatRoomId: string, chatroomEntry: IChatroomEntry, callback: ICallback): void;
1239
1241
  /**
1240
1242
  * 批量设置聊天室自定义属性
1241
- * @param options ISetChatroomEntryOption数组
1243
+ * @param options ISetChatroomEntryOption 数组
1242
1244
  */
1243
1245
  setChatRoomEntries(chatRoomId: string, options: IChatroomEntries, callback: ICallback): void;
1244
1246
  /**
@@ -1260,7 +1262,7 @@ declare class IMClient {
1260
1262
  /**
1261
1263
  * 批量删除聊天室属性
1262
1264
  * @description 仅限于删除自己设置的聊天室属性
1263
- * @param options entries属性名称集合, 支持英文字母、数字、+、=、-、_ 的组合方式, 最大长度 128 字符
1265
+ * @param options entries 属性名称集合,支持英文字母、数字、+、=、-、_ 的组合方式,最大长度 128 字符
1264
1266
  */
1265
1267
  removeChatRoomEntries(chatRoomId: string, options: {
1266
1268
  entries: string[];
@@ -1291,12 +1293,12 @@ declare class IMClient {
1291
1293
  /**
1292
1294
  * 拉取聊天室内的历史消息
1293
1295
  * @param chatRoomId
1294
- * @param count 拉取消息条数, 有效值范围 1 - 20
1296
+ * @param count 拉取消息条数,有效值范围 1 - 20
1295
1297
  * @param order 获取顺序,默认值为 0。
1296
1298
  * * 0:降序,用于获取早于指定时间戳发送的消息
1297
1299
  * * 1:升序,用于获取晚于指定时间戳发送的消息
1298
1300
  * @param callback
1299
- * @param timestamp v3.0 版本中的新增参数,用于指定拉取消息用到的时间戳。默认值为0,表示按当前时间拉取
1301
+ * @param timestamp v3.0 版本中的新增参数,用于指定拉取消息用到的时间戳。默认值为 0,表示按当前时间拉取
1300
1302
  */
1301
1303
  getChatRoomHistoryMessages(chatRoomId: string, count: number, order: 0 | 1, callback: ICallback<IReceivedMessageV2[], boolean>, timestamp?: number): void;
1302
1304
  /**
@@ -1321,7 +1323,7 @@ declare class IMClient {
1321
1323
  * 通过时间戳删除消息
1322
1324
  * @param conversationType 会话类型
1323
1325
  * @param targetId 会话 id
1324
- * @param timestamp 清除时间点, 该时间之前的消息将被清除
1326
+ * @param timestamp 清除时间点,该时间之前的消息将被清除
1325
1327
  * @param callback
1326
1328
  */
1327
1329
  /**
@@ -1339,10 +1341,10 @@ declare class IMClient {
1339
1341
  * @param queryString STC 分段上传时的查询字符串
1340
1342
  * @description
1341
1343
  * `httpMethod` 与 `queryString` 为 STC S3 分段上传时的专属参数,STC 分段上传包含三个过程:
1342
- * 1. 开始分段前调用,此时 `httpMethod` 值应为 `POST`, `queryString` 值为 `uploads`,filename为空
1344
+ * 1. 开始分段前调用,此时 `httpMethod` 值应为 `POST`,`queryString` 值为 `uploads`,filename 为空
1343
1345
  * 2. 上传请求前调用,此时 `httpMethod` 值应为 `PUT`,`queryString` 值为 `partNumber={partamNumer}&uploadId={uploadId}`,
1344
- * filename为第一个步骤生成的filename
1345
- * 3. 上传结束前调用,此时 `httpMethod` 值应为 `POST`,`queryString` 值为 `uploadId={uploadId}`,filename为第一个步骤生成的filename
1346
+ * filename 为第一个步骤生成的 filename
1347
+ * 3. 上传结束前调用,此时 `httpMethod` 值应为 `POST`,`queryString` 值为 `uploadId={uploadId}`,filename 为第一个步骤生成的 filename
1346
1348
  * @returns
1347
1349
  */
1348
1350
  getFileToken(fileType: FileType, callback: ICallback<IUploadAuth & {
@@ -1406,20 +1408,20 @@ declare class IMClient {
1406
1408
  removeTagsForConversation(conversation: IConversationOption, tagIds: string[], callback: ICallback): void;
1407
1409
  /**
1408
1410
  * 分页获取标签下会话列表
1409
- * @param tagId 标签id
1411
+ * @param tagId 标签 id
1410
1412
  * @param count 获取数量
1411
1413
  * @param timestamp 会话时间戳
1412
1414
  */
1413
1415
  getConversationListByTag(tagId: string, count: number, startTime: number, callback: ICallback<IV2ConversationContainTag[]>): void;
1414
1416
  /**
1415
1417
  * 根据标签获取未读消息数
1416
- * @param tagId 标签id
1418
+ * @param tagId 标签 id
1417
1419
  * @param containMuted 是否包含免打扰
1418
1420
  */
1419
1421
  getUnreadCountByTag(tagId: string, containMuted: boolean, callback: ICallback<number>): void;
1420
1422
  /**
1421
1423
  * 设置标签中会话置顶
1422
- * @param tagId 标签id
1424
+ * @param tagId 标签 id
1423
1425
  * @param conversation 会话
1424
1426
  * @param status 状态
1425
1427
  */
@@ -1434,7 +1436,7 @@ declare class IMClient {
1434
1436
  */
1435
1437
  callExtra(method: string | keyof IExtraMethod, callback: ICallback<unknown, unknown>, ...args: any[]): void;
1436
1438
  /**
1437
- * 是否有远端未读消息 ( C++ )
1439
+ * 是否有远端未读消息(C++ )
1438
1440
  * @description
1439
1441
  */
1440
1442
  hasRemoteUnreadMessages(token: string, callback: ICallback<Boolean>): void;
@@ -1502,9 +1504,9 @@ declare class IMClient {
1502
1504
  * 获取远端历史消息
1503
1505
  * @param conversationType 会话类型
1504
1506
  * @param targetId 会话 ID
1505
- * @param timestamp 获取时间戳, 0 为从当前时间拉取
1506
- * @param count 拉取条数,获取条数, 范围 1 - 20
1507
- * @param options.order 获取顺序, 默认为 0
1507
+ * @param timestamp 获取时间戳,0 为从当前时间拉取
1508
+ * @param count 拉取条数,获取条数,范围 1 - 20
1509
+ * @param options.order 获取顺序,默认为 0
1508
1510
  */
1509
1511
  getRemoteHistoryMessages(conversationType: ConversationType, targetId: string, timestamp: number, count: number, callback: ICallback<Array<IReceivedMessageV2>, boolean>, options?: {
1510
1512
  order?: 0 | 1;
@@ -1565,14 +1567,14 @@ declare class IMClient {
1565
1567
  * 按内容搜索会话
1566
1568
  * @param keyword 关键字
1567
1569
  * @param conversationTypes 会话类型数组
1568
- * @param customMessageTypes 自定义消息类型,若关键字属于自定义消息类型,需传入
1570
+ * @param customMessageTypes 自定义消息类型,若关键字属于自定义消息类型,需传入
1569
1571
  */
1570
1572
  searchConversationByContent(keyword: string, callback: ICallback<IV2Conversation[]>, conversationTypes?: ConversationType[], customMessageTypes?: string[]): void;
1571
1573
  /**
1572
- * 按内容搜索全部会话(包含全部 channel)
1574
+ * 按内容搜索全部会话 (包含全部 channel)
1573
1575
  * @param keyword 关键字
1574
1576
  * @param callback 回调函数
1575
- * @param customMessageTypes 自定义消息类型,若关键字属于自定义消息类型,需传入
1577
+ * @param customMessageTypes 自定义消息类型,若关键字属于自定义消息类型,需传入
1576
1578
  * @param conversationTypes 会话类型数组
1577
1579
  */
1578
1580
  searchConversationByContentWithAllChannel(keyword: string, callback: ICallback<IV2Conversation[]>, customMessageTypes?: string[], conversationTypes?: ConversationType[]): void;
@@ -1581,7 +1583,7 @@ declare class IMClient {
1581
1583
  * @param keyword 搜索内容
1582
1584
  * @param conversationType 会话类型
1583
1585
  * @param targetId 目标 ID
1584
- * @param timestamp 搜索时间, 搜索该时间之前的消息
1586
+ * @param timestamp 搜索时间,搜索该时间之前的消息
1585
1587
  * @param count 获取的数量
1586
1588
  */
1587
1589
  searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, callback: ICallback<IReceivedMessageV2[], number>): void;
@@ -1590,7 +1592,7 @@ declare class IMClient {
1590
1592
  * @param conversationType 会话类型
1591
1593
  * @param targetId 目标 ID
1592
1594
  * @param keyword 搜索内容
1593
- * @param timestamp 搜索时间, 搜索该时间之前的消息
1595
+ * @param timestamp 搜索时间,搜索该时间之前的消息
1594
1596
  * @param count 获取的数量
1595
1597
  */
1596
1598
  searchMessageByContentWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, callback: ICallback<IReceivedMessageV2[], number>): void;
@@ -1711,11 +1713,11 @@ declare const _default$i: {
1711
1713
  */
1712
1714
  setMessageExpansionListener(listener: IMessageExpansionListener): void;
1713
1715
  /**
1714
- * tag监听
1716
+ * tag 监听
1715
1717
  */
1716
1718
  setTagListener(listener: ITagListener): void;
1717
1719
  /**
1718
- * 会话中tag状态监听
1720
+ * 会话中 tag 状态监听
1719
1721
  */
1720
1722
  setConversationTagListener(listener: ITagListener): void;
1721
1723
  /**
@@ -1723,7 +1725,7 @@ declare const _default$i: {
1723
1725
  */
1724
1726
  setPullOffLineFinished(listener: IPullFinishedListener): void;
1725
1727
  /**
1726
- * typing监听
1728
+ * typing 监听
1727
1729
  */
1728
1730
  setTypingStatusListener(listenner: ITypingListener): void;
1729
1731
  /**
@@ -1844,7 +1846,7 @@ interface ImageMessageOptions extends IExtraData, IMentionedInfo, IUserInfo, IBu
1844
1846
  /**
1845
1847
  * 图片的略缩图
1846
1848
  * @description
1847
- * 1. 必须是 base64 字符串, 图片类型为 JPG
1849
+ * 1. 必须是 base64 字符串,图片类型为 JPG
1848
1850
  * 2. base64 字符串大小不可超过 80 KB
1849
1851
  * 3. 字符串前无媒体类型前缀
1850
1852
  */
@@ -1883,7 +1885,7 @@ interface HQVoiceMessageOptions extends IExtraData, IMentionedInfo, IBurnDuratio
1883
1885
  */
1884
1886
  type?: string;
1885
1887
  /**
1886
- * 语音消息的时长,最大值为 60 (单位:秒)
1888
+ * 语音消息的时长,最大值为 60(单位:秒)
1887
1889
  */
1888
1890
  duration: number;
1889
1891
  }
@@ -1895,7 +1897,7 @@ interface FileMessageOptions extends IExtraData, IUserInfo {
1895
1897
  */
1896
1898
  name: string;
1897
1899
  /**
1898
- * 文件尺寸,单位: Byte
1900
+ * 文件尺寸,单位:Byte
1899
1901
  */
1900
1902
  size: number;
1901
1903
  /**
@@ -1980,7 +1982,7 @@ declare const _default$6: new (content: ReadReceiptRequestMessageContent) => Bas
1980
1982
 
1981
1983
  interface ReadReceiptResponseMessageContent {
1982
1984
  /**
1983
- * 回复已读通知信息,{userId: [messageUId]}
1985
+ * 回复已读通知信息,{userId: [messageUId]}
1984
1986
  */
1985
1987
  receiptMessageDic: {
1986
1988
  [userId: string]: string[];
@@ -2002,7 +2004,7 @@ interface CombineMessageOptions extends IExtraData, IUserInfo {
2002
2004
  */
2003
2005
  summaryList: string;
2004
2006
  /**
2005
- * 会话类型,目前合并转发功能支持二人会话及群聊会话,二人会话是 1 、群组会话是 3
2007
+ * 会话类型,目前合并转发功能支持二人会话及群聊会话,二人会话是 1、群组会话是 3
2006
2008
  */
2007
2009
  conversationType: ConversationType;
2008
2010
  }
@@ -2181,8 +2183,8 @@ declare const ConnectionState: {
2181
2183
  UNACCEPTABLE_PROTOCOL_VERSION: number;
2182
2184
  /**
2183
2185
  * 客户端(移动端 TCP 连接建立时)`info` 字段格式错误
2184
- * @description 格式:`{平台类型}-{设备信息}-{sdk版本}`。
2185
- * 其中设备信息为:{手机类型}{手机型号}{网络类型,4G/WIFI}{运营商标识, 移动/电信/联通}
2186
+ * @description 格式:`{平台类型}-{设备信息}-{sdk 版本}`。
2187
+ * 其中设备信息为:{手机类型}{手机型号}{网络类型,4G/WIFI}{运营商标识,移动/电信/联通}
2186
2188
  */
2187
2189
  IDENTIFIER_REJECTED: number;
2188
2190
  /**
@@ -2227,7 +2229,7 @@ declare const ConnectionState: {
2227
2229
  */
2228
2230
  HOSTNAME_ERROR: number;
2229
2231
  /**
2230
- * 开启`禁止把已在线客户端踢下线`开关后,该错误码标识已有同类型端在线,禁止链接
2232
+ * 开启 `禁止把已在线客户端踢下线` 开关后,该错误码标识已有同类型端在线,禁止链接
2231
2233
  */
2232
2234
  HASOHTERSAMECLIENTONLINE: number;
2233
2235
  /**