@rongcloud/engine 5.24.0 → 5.24.1-c-dq.1

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
@@ -167,9 +167,9 @@ declare const LogTagId: {
167
167
  /** 实时日志上报 */
168
168
  readonly L_REALTIME_LOG_R: "L_REALTIME_LOG_R";
169
169
  readonly L_REALTIME_LOG_O: "L_REALTIME_LOG_O";
170
- readonly L_SEND_RMTP_E: "L-send-rmpt-E";
171
- readonly L_RECV_RMTP_O: "L-recv-rmpt-O";
172
- readonly L_RECV_RMTP_E: "L-recv-rmpt-E";
170
+ readonly L_SEND_RMTP_E: "L-send-rmtp-E";
171
+ readonly L_RECV_RMTP_O: "L-recv-rmtp-O";
172
+ readonly L_RECV_RMTP_E: "L-recv-rmtp-E";
173
173
  readonly L_RECV_S_NTF_O: "L-recv_s_ntf_O";
174
174
  readonly L_RECV_S_CMD_O: "L-recv_s_cmd_O";
175
175
  /** 版本号上报 */
@@ -297,6 +297,12 @@ declare const LogTagId: {
297
297
  readonly A_SET_AUTO_TRANSLATE_ENABLED_R: "A-set_auto_translate_enabled-R";
298
298
  readonly A_GET_AUTO_TRANSLATE_ENABLED_T: "A-get_auto_translate_enabled-T";
299
299
  readonly A_GET_AUTO_TRANSLATE_ENABLED_R: "A-get_auto_translate_enabled-R";
300
+ readonly A_MODIFY_MESSAGE_WITH_PARAMS_T: "A-modify_msg_with_params-T";
301
+ readonly A_MODIFY_MESSAGE_WITH_PARAMS_R: "A-modify_msg_with_params-R";
302
+ readonly A_REFRESH_REFERENCE_MESSAGE_WITH_PARAMS_T: "A-refresh_refer_msg_with_params-T";
303
+ readonly A_REFRESH_REFERENCE_MESSAGE_WITH_PARAMS_R: "A-refresh_refer_msg_with_params-R";
304
+ readonly L_PULL_MODIFY_MSG_T: "L-pull_modify_msg-T";
305
+ readonly L_PULL_MODIFY_MSG_R: "L-pull_modify_msg-R";
300
306
  };
301
307
 
302
308
  /**
@@ -705,6 +711,24 @@ declare enum ErrorCode {
705
711
  * @since 5.8.2
706
712
  */
707
713
  SYS_CONVERSATION_NOT_SUPPORT_MESSAGE = 20109,
714
+ /**
715
+ * 20112
716
+ * 消息内容存在敏感词
717
+ * @since 5.26.0
718
+ */
719
+ DANGEROUS_CONTENT = 20112,
720
+ /**
721
+ * 20113
722
+ * 消息内容未通过审核
723
+ * @since 5.26.0
724
+ */
725
+ CONTENT_REVIEW_REJECTED = 20113,
726
+ /**
727
+ * 20115
728
+ * 消息尺寸超出限制
729
+ * @since 5.26.0
730
+ */
731
+ MESSAGE_SIZE_EXCEEDED = 20115,
708
732
  /**
709
733
  * 20512
710
734
  * appkey的数据中心与请求云控的数据中心不匹配
@@ -748,7 +772,7 @@ declare enum ErrorCode {
748
772
  SENSITIVE_REPLACE = 21502,
749
773
  /**
750
774
  * 22201
751
- * 超级群扩展消息,但是原始消息不存在。
775
+ * 原始消息不存在。
752
776
  */
753
777
  MESSAGE_EXPAND_NOT_EXIST = 22201,
754
778
  /**
@@ -1435,6 +1459,54 @@ declare enum ErrorCode {
1435
1459
  * 用量超过限制
1436
1460
  */
1437
1461
  SERVICE_STT_USAGE_EXCEED = 28307,
1462
+ /**
1463
+ * 28400
1464
+ * Translation service not open
1465
+ * @since 5.24.0
1466
+ */
1467
+ TRANS_SERVICE_NOT_OPEN = 28400,
1468
+ /**
1469
+ * 28401
1470
+ * Translation failed
1471
+ * @since 5.24.0
1472
+ */
1473
+ TRANS_FAILED = 28401,
1474
+ /**
1475
+ * 28402
1476
+ * Translation Server error.
1477
+ * @since 5.24.0
1478
+ */
1479
+ TRANS_INTERNAL_ERROR = 28402,
1480
+ /**
1481
+ * 28403
1482
+ * Missing required parameters. Please review and retry.
1483
+ * @since 5.24.0
1484
+ */
1485
+ TRANS_PARAM_MISSING = 28403,
1486
+ /**
1487
+ * 28404
1488
+ * Invalid parameter format
1489
+ * @since 5.24.0
1490
+ */
1491
+ TRANS_PARAM_ERROR = 28404,
1492
+ /**
1493
+ * 28405
1494
+ * Over the usage quota.
1495
+ * @since 5.24.0
1496
+ */
1497
+ TRANS_QUOTA_LIMIT = 28405,
1498
+ /**
1499
+ * 28406
1500
+ * Text length exceeds limit
1501
+ * @since 5.24.0
1502
+ */
1503
+ TRANS_TEXT_LENGTH_EXCEEDS_LIMIT = 28406,
1504
+ /**
1505
+ * 28407
1506
+ * Language not support
1507
+ * @since 5.24.0
1508
+ */
1509
+ TRANS_LANGUAGE_NOT_SUPPORT = 28407,
1438
1510
  /**
1439
1511
  * 30001
1440
1512
  * 当前连接已经被释放
@@ -1809,6 +1881,18 @@ declare enum ErrorCode {
1809
1881
  * @since 5.2.0
1810
1882
  */
1811
1883
  NO_TAG_IN_CONVER = 33102,
1884
+ /**
1885
+ * 33401
1886
+ * 被编辑消息是接收的或者没有发送成功的
1887
+ * @since 5.26.0
1888
+ */
1889
+ MODIFIED_MESSAGE_IS_NOT_SENT = 33401,
1890
+ /**
1891
+ * 33402
1892
+ * 被编辑的消息超过修改时限
1893
+ * @since 5.26.0
1894
+ */
1895
+ MODIFIED_MESSAGE_TIMEOUT = 33402,
1812
1896
  /**
1813
1897
  * 34001
1814
1898
  * 连接已存在
@@ -2415,6 +2499,18 @@ declare enum ErrorCode {
2415
2499
  * @since 5.12.3
2416
2500
  */
2417
2501
  RC_REAL_TIME_CONVERSATION_UNAVAILABLE = 34336,
2502
+ /**
2503
+ * 34344
2504
+ * 服务器数据解析失败
2505
+ * @since 5.26.0
2506
+ */
2507
+ SERVER_DATA_ERROR = 34344,
2508
+ /**
2509
+ * 34345
2510
+ * 参数 messageInfoMap 非法
2511
+ * @since 5.26.0
2512
+ */
2513
+ INVALID_PARAMETER_MESSAGE_INFO_MAP = 34345,
2418
2514
  /**
2419
2515
  * 35001
2420
2516
  * 群组信息异常
@@ -4682,10 +4778,6 @@ interface IReceivedMessage {
4682
4778
  * 超级群专有字段,是否断档,服务端收到大量消息可能会断档,所以消息存在此标志位,断档需要客户手动拉取历史消息
4683
4779
  */
4684
4780
  isInterrupt?: boolean;
4685
- /**
4686
- * 拉取历史消息时表示该消息是否修改过(仅超级群有效)
4687
- */
4688
- isModifyMessage?: boolean;
4689
4781
  /**
4690
4782
  * 拉取历史消息时表示该消息是否为超级群频道类型(仅超级群有效)
4691
4783
  */
@@ -4712,6 +4804,18 @@ interface IReceivedMessage {
4712
4804
  * @since 5.20.0
4713
4805
  */
4714
4806
  sendReceipt?: boolean;
4807
+ /**
4808
+ * 用于判断消息是否被修改过,仅获取历史消息接口时有效;接收在线或离线消息时无效。
4809
+ * * 5.26.0 版本之前,仅支持超级群历史消息
4810
+ * * 从 5.26.0 版本开始,增加支持单聊、群聊历史消息
4811
+ */
4812
+ isModifyMessage?: boolean;
4813
+ /**
4814
+ * 消息修改信息,建议结合 `isModifyMessage` 属性使用。
4815
+ * @since 5.26.0
4816
+ * * 仅支持单聊、群聊历史消息,接收在线、离线消息时无效
4817
+ */
4818
+ modifyInfo?: MessageModifyInfo;
4715
4819
  }
4716
4820
  /**
4717
4821
  * 第一条未读消息信息
@@ -5165,31 +5269,6 @@ interface IUltraExMsgOptions {
5165
5269
  */
5166
5270
  removeAll?: boolean;
5167
5271
  }
5168
- interface IUltraModifyMsgOptions {
5169
- canIncludeExpansion?: boolean;
5170
- channelId: string;
5171
- conversationType: ConversationType;
5172
- targetId: string;
5173
- messageUId: string;
5174
- sendTime: number;
5175
- /**
5176
- * 消息内容
5177
- */
5178
- content: {
5179
- /**
5180
- * 消息内容 key-value,最终会进行 JSON 序列化后发送
5181
- */
5182
- [key: string]: any;
5183
- /**
5184
- * 消息可携带的用户数据
5185
- */
5186
- user?: IUserProfile;
5187
- /**
5188
- * 其他拓展信息
5189
- */
5190
- extra?: string;
5191
- };
5192
- }
5193
5272
  interface IUltraMsgQueryInfo {
5194
5273
  sendTime: number;
5195
5274
  messageUId: string;
@@ -5321,6 +5400,98 @@ declare type IGetHistoryMessageResult = {
5321
5400
  list: IReceivedMessage[];
5322
5401
  hasMore: boolean;
5323
5402
  };
5403
+ /**
5404
+ * 修改消息内容信息
5405
+ * @since 5.26.0
5406
+ */
5407
+ interface MessageModifyInfo {
5408
+ /**
5409
+ * 消息修改时间,单位毫秒。
5410
+ */
5411
+ timestamp: number;
5412
+ /**
5413
+ * 待更新的消息内容,为 Electron 平台独有的临时性缓存数据。
5414
+ * * 仅支持 Electron 平台,Web 平台值始终为空对象
5415
+ * * 仅当消息修改状态 `MessageModifyStatus.UPDATING` 或 `MessageModifyStatus.FAILED` 时值有效。
5416
+ */
5417
+ content: Record<string, any>;
5418
+ /**
5419
+ * 消息修改的更新状态,Web 平台始终为 `MessageModifyStatus.SUCCESS`。
5420
+ */
5421
+ status: MessageModifyStatus;
5422
+ }
5423
+ /**
5424
+ * 修改消息内容的更新状态
5425
+ * @since 5.26.0
5426
+ */
5427
+ declare const MessageModifyStatus: {
5428
+ /**
5429
+ * 成功。
5430
+ */
5431
+ SUCCESS: number;
5432
+ /**
5433
+ * 更新中。
5434
+ */
5435
+ UPDATING: number;
5436
+ /**
5437
+ * 更新失败。
5438
+ */
5439
+ FAILED: number;
5440
+ };
5441
+ declare type MessageModifyStatus = typeof MessageModifyStatus[keyof typeof MessageModifyStatus];
5442
+ /**
5443
+ * 修改消息内容参数
5444
+ * @since 5.26.0
5445
+ */
5446
+ interface IModifyMessageParams {
5447
+ /**
5448
+ * 消息 UId
5449
+ */
5450
+ messageUId: string;
5451
+ /**
5452
+ * 消息内容,修改后的消息内容应与原消息类型结构一致
5453
+ */
5454
+ messageContent: Record<string, any>;
5455
+ /**
5456
+ * 会话信息
5457
+ */
5458
+ conversation: IConversationOption;
5459
+ }
5460
+ /**
5461
+ * 刷新引用消息参数
5462
+ * @since 5.26.0
5463
+ */
5464
+ interface IRefreshReferenceMessageParams {
5465
+ /**
5466
+ * 消息 UId 列表
5467
+ */
5468
+ messageUIds: string[];
5469
+ /**
5470
+ * 会话信息
5471
+ */
5472
+ conversationIdentifier: IConversationOption;
5473
+ /**
5474
+ * 本地消息回调
5475
+ */
5476
+ localMessageBlock: (results: IEnginRefreshReferenceMessageResult[]) => void;
5477
+ /**
5478
+ * 远端消息回调
5479
+ */
5480
+ remoteMessageBlock: (results: IEnginRefreshReferenceMessageResult[]) => void;
5481
+ /**
5482
+ * 消息映射关系,非 Electron 平台为必传参数,Electron 平台无需传递。key 为引用消息 UId,value 为被引用消息 UId。
5483
+ */
5484
+ messageInfoMap?: Record<string, string>;
5485
+ }
5486
+ /**
5487
+ * engine 刷新引用消息结果
5488
+ * @since 5.26.0
5489
+ */
5490
+ interface IEnginRefreshReferenceMessageResult {
5491
+ messageUId: string;
5492
+ message?: IReceivedMessage;
5493
+ code: number;
5494
+ }
5324
5495
 
5325
5496
  /**
5326
5497
  * 消息中的用户附加信息数据
@@ -5773,6 +5944,29 @@ interface ILocationMessageContent extends IExtraDataKeyInMessage, IUserExtraKeyI
5773
5944
  */
5774
5945
  content: string;
5775
5946
  }
5947
+ /**
5948
+ * 被引用消息的状态
5949
+ * @since 5.26.0
5950
+ */
5951
+ declare const ReferenceMessageStatus: {
5952
+ /**
5953
+ * 默认状态。
5954
+ */
5955
+ DEFAULT: number;
5956
+ /**
5957
+ * 状态非法,比如:引用的消息被修改。
5958
+ */
5959
+ INVALID: number;
5960
+ /**
5961
+ * 引用消息被撤回
5962
+ */
5963
+ RECALLED: number;
5964
+ /**
5965
+ * 引用消息被删除
5966
+ */
5967
+ DELETE: number;
5968
+ };
5969
+ declare type ReferenceMessageStatus = typeof ReferenceMessageStatus[keyof typeof ReferenceMessageStatus];
5776
5970
  /**
5777
5971
  * 引用消息 content 数据,仅支持文字回复
5778
5972
  * @category Interface
@@ -5798,6 +5992,12 @@ interface IReferenceMessageContent extends IExtraDataKeyInMessage, IUserExtraKey
5798
5992
  * 发送的引用消息类型
5799
5993
  */
5800
5994
  objName: string;
5995
+ /**
5996
+ * 引用消息状态
5997
+ * @since 5.26.0
5998
+ * @description 该属性仅 Electron 平台支持,Web 不支持该属性
5999
+ */
6000
+ referMsgStatus?: ReferenceMessageStatus;
5801
6001
  }
5802
6002
  /**
5803
6003
  * 富文本消息 content 数据
@@ -6069,7 +6269,7 @@ interface IChatroomListenerData {
6069
6269
  */
6070
6270
  userChange?: IChatroomUserChangeInfo;
6071
6271
  /**
6072
- * 聊天室销毁
6272
+ * 聊天室销毁事件,值为销毁的聊天室 ID
6073
6273
  */
6074
6274
  chatroomDestroyed?: string;
6075
6275
  /**
@@ -6976,6 +7176,12 @@ declare class Validator {
6976
7176
  * @hidden
6977
7177
  */
6978
7178
  constructor(_apiName: string);
7179
+ /**
7180
+ * 检查参数是否合规
7181
+ * @param handler 检查方法
7182
+ * @returns 检查器
7183
+ */
7184
+ check(handler: (validator: Validator) => void): Validator;
6979
7185
  /**
6980
7186
  * 验证参数是否合规
6981
7187
  * @param key
@@ -7402,6 +7608,10 @@ interface INaviInfo {
7402
7608
  * * 0001 - 语音转文字功能:1 开启,0 关闭
7403
7609
  */
7404
7610
  AIBusinessSub?: number;
7611
+ /**
7612
+ * 消息修改时间限制,单位:分钟
7613
+ */
7614
+ msgModifyMinute?: number;
7405
7615
  }
7406
7616
 
7407
7617
  /**
@@ -9157,6 +9367,20 @@ interface IIPCMethods {
9157
9367
  * @param from 翻译来源,0: 消息;1: 自定义文本
9158
9368
  */
9159
9369
  translateWithParams(list: InnerTransParam[], mode: TranslateMode, force: boolean, from: 0 | 1): Promise<RCResult>;
9370
+ /**
9371
+ * 修改消息
9372
+ * @param params 修改消息参数
9373
+ */
9374
+ modifyMessageWithParams(params: IModifyMessageParams): Promise<RCResult>;
9375
+ /**
9376
+ * 刷新引用消息
9377
+ * @param messageUIds 引用的消息 UId 列表
9378
+ * @param conversationIdentifier 所属会话标识
9379
+ * @param remoteMessageBlock 远端消息回调
9380
+ * @param localMessageBlock 本地消息回调
9381
+ * @param messageInfoMap 消息发送时间映射,仅 Web 端超级群会话有效
9382
+ */
9383
+ refreshReferenceMessageWithParams(messageUIds: string[], conversationIdentifier: IConversationOption, remoteMessageBlock: ((results: IEnginRefreshReferenceMessageResult[]) => void) | string, localMessageBlock: ((results: IEnginRefreshReferenceMessageResult[]) => void) | string, messageInfoMap?: Record<string, string>): Promise<RCResult>;
9160
9384
  }
9161
9385
 
9162
9386
  /**
@@ -9335,7 +9559,6 @@ interface IEngineWatcher extends IConnectionListener {
9335
9559
  sgRelationsSynced: () => void;
9336
9560
  operateStatus: (status: IOperateStatusNotify) => void;
9337
9561
  ultraGroupMessageExpansionUpdated: (list: IReceivedMessage[]) => void;
9338
- ultraGroupMessageModified: (list: IReceivedMessage[]) => void;
9339
9562
  ultraGroupMessageRecalled: (list: IReceivedMessage[]) => void;
9340
9563
  ultraGroupChannelChangeType: (list: IUltraChannelChangeInfo[]) => void;
9341
9564
  ultraGroupChannelUserKicked: (list: IUltraChannelUserKickedInfo[]) => void;
@@ -9395,6 +9618,14 @@ interface IEngineWatcher extends IConnectionListener {
9395
9618
  * @param response 翻译结果
9396
9619
  */
9397
9620
  translateResponse: (response: TranslateItem[]) => void;
9621
+ /**
9622
+ * 消息编辑通知
9623
+ */
9624
+ messagesModified?: (messages: IReceivedMessage[]) => void;
9625
+ /**
9626
+ * 消息编辑同步完成(目前只有单、群聊编辑同步事件,超级群不需要同步)
9627
+ */
9628
+ messageModifiedSyncCompleted?: () => void;
9398
9629
  }
9399
9630
 
9400
9631
  declare type IErrorKeys = {
@@ -9715,18 +9946,26 @@ declare type LogReader = (startTime: number, endTime: number, level: LogL, realt
9715
9946
  }>;
9716
9947
  declare type LogWriter = (data: ILogData) => void;
9717
9948
  /**
9718
- * @hidden
9949
+ * 日志存储代理类
9719
9950
  */
9720
9951
  declare class LogDBProxy {
9721
9952
  #private;
9953
+ /**
9954
+ * @hidden
9955
+ * @param reader 日志读取实现
9956
+ * @param writer 日志写入实现
9957
+ */
9958
+ constructor(reader: LogReader, writer: LogWriter);
9722
9959
  /**
9723
9960
  * 仅供内部使用,谨慎调用
9961
+ * @hidden
9724
9962
  */
9725
9963
  read(startTime: number, endTime: number, level: LogL, realtimeReport: boolean, tableName?: string): Promise<{
9726
9964
  logs: ILogData[];
9727
9965
  }>;
9728
9966
  /**
9729
9967
  * 仅供内部使用,谨慎调用
9968
+ * @hidden
9730
9969
  */
9731
9970
  write(data: ILogData): void | Promise<void>;
9732
9971
  /**
@@ -9739,7 +9978,6 @@ declare class LogDBProxy {
9739
9978
  setLogWriter(writer: LogWriter): this;
9740
9979
  }
9741
9980
  /**
9742
- * @hidden
9743
9981
  * 创建一个默认的日志代理
9744
9982
  */
9745
9983
  declare function createLogDBProxy(): LogDBProxy;
@@ -10570,7 +10808,6 @@ interface IWatcher {
10570
10808
  sgRelationsSynced?: () => void;
10571
10809
  operateStatus?: (status: IOperateStatusNotify) => void;
10572
10810
  ultraGroupMessageExpansionUpdated?: (list: IReceivedMessage[]) => void;
10573
- ultraGroupMessageModified?: (list: IReceivedMessage[]) => void;
10574
10811
  ultraGroupMessageRecalled?: (list: IReceivedMessage[]) => void;
10575
10812
  ultraGroupChannelChangeType?: (list: IUltraChannelChangeInfo[]) => void;
10576
10813
  ultraGroupChannelUserKicked?: (list: IUltraChannelUserKickedInfo[]) => void;
@@ -10608,6 +10845,8 @@ interface IWatcher {
10608
10845
  * 翻译结果通知
10609
10846
  */
10610
10847
  translateResponse?: (response: TranslateItem[]) => void;
10848
+ messagesModified?: (messages: IReceivedMessage[]) => void;
10849
+ messageModifiedSyncCompleted?: () => void;
10611
10850
  }
10612
10851
  interface IAPIContextOption {
10613
10852
  /**
@@ -10717,6 +10956,11 @@ declare class AppSettings {
10717
10956
  * @since 5.24.0
10718
10957
  */
10719
10958
  get isConversationListIncludeUltraGroup(): boolean;
10959
+ /**
10960
+ * 消息可编辑的有效时间
10961
+ * @since 5.26.0
10962
+ */
10963
+ get messageModifiableMinutes(): number;
10720
10964
  }
10721
10965
 
10722
10966
  declare class APIContext {
@@ -10867,7 +11111,6 @@ declare class APIContext {
10867
11111
  private _sgRelationsSyncedListener;
10868
11112
  private _operateStatusListener;
10869
11113
  private _ultraGroupMessageExpansionUpdatedListener;
10870
- private _ultraGroupMessageModifiedListener;
10871
11114
  private _ultraGroupMessageRecalledListener;
10872
11115
  private _ultraGroupChannelChangeTypeListener;
10873
11116
  private _ultraGroupChannelUserKickedListener;
@@ -10913,6 +11156,8 @@ declare class APIContext {
10913
11156
  private _readReceiptResponseV5;
10914
11157
  private _speechToTextResponse;
10915
11158
  private _translateResponse;
11159
+ private _messagesModified;
11160
+ private _messageModifiedSyncCompleted;
10916
11161
  /**
10917
11162
  * 业务层事件监听器挂载点
10918
11163
  */
@@ -11381,11 +11626,6 @@ declare class APIContext {
11381
11626
  * @param options 设置的扩展
11382
11627
  */
11383
11628
  expandUltraMessage(options: IUltraExMsgOptions): Promise<IAsyncRes<ErrorCode>>;
11384
- /**
11385
- * 修改已有的超级群消息
11386
- * @param options 设置的扩展
11387
- */
11388
- modifyMessage(options: IUltraModifyMsgOptions): Promise<IAsyncRes<ErrorCode>>;
11389
11629
  /**
11390
11630
  * 根据会话 ID 获取所有子频道 @ 消息未读数
11391
11631
  * @param targetId
@@ -11716,6 +11956,8 @@ declare class APIContext {
11716
11956
  getTranslationLanguage(): Promise<RCResult<string>>;
11717
11957
  setAutoTranslateEnabled(enabled: boolean): Promise<RCResult>;
11718
11958
  getAutoTranslateEnabled(): Promise<RCResult<boolean>>;
11959
+ modifyMessageWithParams(params: IModifyMessageParams): Promise<RCResult>;
11960
+ refreshReferenceMessageWithParams(params: IRefreshReferenceMessageParams): Promise<RCResult>;
11719
11961
  }
11720
11962
 
11721
11963
  declare class RTCPluginContext extends PluginContext {
@@ -11920,7 +12162,7 @@ declare class RTCPluginContext extends PluginContext {
11920
12162
  /**
11921
12163
  * 会话聊天模块
11922
12164
  */
11923
- declare type IChatModule = Pick<IIPCMethods, 'getConversationListByFilter' | 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5ByIdentifiers' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent' | 'requestSpeechToTextForMessage' | 'setMessageSpeechToTextVisible' | 'addTagForConversations' | 'getTagsForConversation' | 'setConversationStatusInTag' | 'removeTagForConversations' | 'removeTagsForConversation' | 'getConversationListByTag' | 'getUnreadCountByTag' | 'getUntaggedConversationListByPage' | 'batchSetConversationTranslateStrategy'>;
12165
+ declare type IChatModule = Pick<IIPCMethods, 'getConversationListByFilter' | 'getTotalUnreadCount' | 'getConversation' | 'batchSetConversationToTop' | 'batchSetConversationNotificationLevel' | 'getConversationNotificationLevel' | 'setConversationTypeNotificationLevel' | 'getConversationTypeNotificationLevel' | 'clearAllUnreadCount' | 'deleteRemoteMessage' | 'deleteRemoteMessageByTimestamp' | 'batchClearRemoteHistoryMessages' | 'sendReadReceiptResponseV5' | 'getMessageReadReceiptInfoV5ByIdentifiers' | 'getMessagesReadReceiptUsersByPageV5' | 'getMessagesReadReceiptByUsersV5' | 'searchConversationByContent' | 'requestSpeechToTextForMessage' | 'setMessageSpeechToTextVisible' | 'addTagForConversations' | 'getTagsForConversation' | 'setConversationStatusInTag' | 'removeTagForConversations' | 'removeTagsForConversation' | 'getConversationListByTag' | 'getUnreadCountByTag' | 'getUntaggedConversationListByPage' | 'batchSetConversationTranslateStrategy' | 'modifyMessageWithParams' | 'refreshReferenceMessageWithParams'>;
11924
12166
 
11925
12167
  /**
11926
12168
  * 聊天室模块
@@ -12326,11 +12568,6 @@ declare abstract class BasicEngine implements IIPCMethodsInEngine {
12326
12568
  * @param options
12327
12569
  */
12328
12570
  abstract expandUltraMessage(options: IUltraExMsgOptions): Promise<IAsyncRes>;
12329
- /**
12330
- * 对已有的消息进行修改
12331
- * @param options
12332
- */
12333
- abstract modifyMessage(options: IUltraModifyMsgOptions): Promise<IAsyncRes>;
12334
12571
  /**
12335
12572
  * 超级群获取历史消息
12336
12573
  * @param targetId
@@ -13010,4 +13247,4 @@ declare class AppStorage {
13010
13247
  }): void;
13011
13248
  }
13012
13249
 
13013
- export { APIContext, AbsCodec, AppSettings, AppStorage, AreaCode, AssertRules, BasicEngine, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationListFilter, ConversationListFilterType, ConversationType, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GetAllConversationListFilterParams, GetConversationListByPageIndexParams, GetConversationListByTimestampParams, GetConversationListResponse, GetTopConversationListParams, GetUnreadConversationListParams, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IAuditInfoKeyInMessage, IAuditInfoValueInMessage, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatModule, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomModule, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICombineMessageContent, ICombineV2MessageContent, ICombinedMessage, ICommandMessageContent, IConnectionStatusListener, IConversationFilter, IConversationIdentifier, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IConversationUnreadCount, IConvertHQVoiceMessageToTextOption, IConvertSpeechToTextOption, IConvertVoiceMessageToTextOption, ICreateGroupFail, IDataHostingModule, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExtraDataKeyInMessage, IFileMessageContent, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGIFMessageContent, IGetHistoryMessageResult, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupNotificationMessageContent, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHQVoiceMessageContent, IHarmonyOSPushConfig, IIPCMethods, IImageMessageContent, IInformationNotificationMessageContent, IInsertMessage, IInsertMsgOptions, ILocalTagStatus, ILocationMessageContent, ILogData, ILogger, IMentionedInfoKeyInMessage, IMessageDeliver, IMessageDeliveredListener, IMessageFilter, IMessageIdentifier, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IReferContentInMessage, IReferContentKeyInMessage, IReferenceMessageContent, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRichContentMessageContent, IRuntime, ISearchMessageParams, ISearchMessagesResult, ISendMsgOptions, IServerGroupBaseInfo, ISightMessageContent, ISpeechToTextInfo, ISpeechToTextResponse, IStorage, IStreamMessageContent, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITextMessageContent, ITimeRange, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserExtraKeyInMessage, IUserExtraValueInMessage, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IUserSettingsChangedEvent, IUserSettingsModule, IVoiceMessageContent, IWatcher, IiOSPushConfig, InnerRTCKeyMaps, InnerTransParam, InterruptionLevel, ItypingStateListener, KVString, LogDBProxy, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_U32_INTEGER, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageAuditType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, PlatformInfo, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, SSEModule, SentStatus, SpeechToTextStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, TranslateInfo, TranslateItem, TranslateMessageParam, TranslateMessagesParams, TranslateMode, TranslateStatus, TranslateStrategy, TranslateTextParam, TranslateTextsParams, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, UserSettingsChangedKey, UserType, Validator, ValidatorManage, VersionManage, assert, createLogDBProxy, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedArray, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversation, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidNotificationLevel, isValidTargetId, logger, map, notEmptyArray, notEmptyObject, notEmptyString, ok, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };
13250
+ export { APIContext, AbsCodec, AppSettings, AppStorage, AreaCode, AssertRules, BasicEngine, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationListFilter, ConversationListFilterType, ConversationType, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GetAllConversationListFilterParams, GetConversationListByPageIndexParams, GetConversationListByTimestampParams, GetConversationListResponse, GetTopConversationListParams, GetUnreadConversationListParams, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAppPushConfig, IAsyncRes, IAuditInfoKeyInMessage, IAuditInfoValueInMessage, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatModule, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomModule, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICombineMessageContent, ICombineV2MessageContent, ICombinedMessage, ICommandMessageContent, IConnectionStatusListener, IConversationFilter, IConversationIdentifier, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IConversationUnreadCount, IConvertHQVoiceMessageToTextOption, IConvertSpeechToTextOption, IConvertVoiceMessageToTextOption, ICreateGroupFail, IDataHostingModule, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEnginRefreshReferenceMessageResult, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExtraDataKeyInMessage, IFileMessageContent, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGIFMessageContent, IGetHistoryMessageResult, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupNotificationMessageContent, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHQVoiceMessageContent, IHarmonyOSPushConfig, IIPCMethods, IImageMessageContent, IInformationNotificationMessageContent, IInsertMessage, IInsertMsgOptions, ILocalTagStatus, ILocationMessageContent, ILogData, ILogger, IMentionedInfoKeyInMessage, IMessageDeliver, IMessageDeliveredListener, IMessageFilter, IMessageIdentifier, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IModifyMessageParams, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IReferContentInMessage, IReferContentKeyInMessage, IReferenceMessageContent, IRefreshReferenceMessageParams, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRichContentMessageContent, IRuntime, ISearchMessageParams, ISearchMessagesResult, ISendMsgOptions, IServerGroupBaseInfo, ISightMessageContent, ISpeechToTextInfo, ISpeechToTextResponse, IStorage, IStreamMessageContent, IStreamMessageResponseChunkData, IStreamMessageResponseEventData, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITextMessageContent, ITimeRange, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraMsgQueryOptions, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserExtraKeyInMessage, IUserExtraValueInMessage, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IUserSettingsChangedEvent, IUserSettingsModule, IVoiceMessageContent, IWatcher, IiOSPushConfig, InnerRTCKeyMaps, InnerTransParam, InterruptionLevel, ItypingStateListener, KVString, LogDBProxy, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_U32_INTEGER, MAX_UPLOAD_FILE_SIZE, MentionedInfo, MentionedType, MessageAuditType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageRegisterParams, MessageType, MessageTypeDescription, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, PlatformInfo, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReadReceiptInfoV5, ReadReceiptResponseV5, ReadReceiptUser, ReadReceiptUsersOption, ReadReceiptUsersResult, ReceivedStatus, SSEModule, SentStatus, SpeechToTextStatus, StreamMessageResponseEventType, SubscribeOperationType, SubscribeType, SuspendablePromise, TranslateInfo, TranslateItem, TranslateMessageParam, TranslateMessagesParams, TranslateMode, TranslateStatus, TranslateStrategy, TranslateTextParam, TranslateTextsParams, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, UserSettingsChangedKey, UserType, Validator, ValidatorManage, VersionManage, assert, createLogDBProxy, fail, fixUrlProtocol, forEach, getMessageTypeDescription, getUUID, getUUID22, hasMessageTypeDescription, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedArray, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversation, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidNotificationLevel, isValidTargetId, logger, map, notEmptyArray, notEmptyObject, notEmptyString, ok, runtime, trans2IReceivedStatusInfo, trans2NotificationLevel, trans2NotificationStatus, transformReceivedStatusFlag, usingCppEngine, validate };