easemob-websdk 4.10.0-beta.1 → 4.11.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changes to easemob chat
2
2
 
3
+ ## 4.11.0 (Nov 29, 2024)
4
+
5
+ ### 新增特性
6
+
7
+ 1. 获取历史消息时,消息体内增加 isRead, isDelivery 字段,只支持单聊。
8
+ 2. 禁言回调中携带禁言到期的时间戳。
9
+ 3. 去掉 sockjs
10
+ 4. 群组/聊天室禁言事件增加 userId 字段,表示被禁言的人
11
+ 5. uniapp sdk 支持鸿蒙系统
12
+
13
+ ### 修复
14
+
15
+ 1. 修复 pin 消息事件 conversationId 不对
16
+
3
17
  ## 4.10.0 (Oct 10, 2024)
4
18
 
5
19
  ### 新增特性
package/Easemob-chat.d.ts CHANGED
@@ -5391,6 +5391,20 @@ export declare namespace EasemobChat {
5391
5391
  }
5392
5392
  ): Promise<AsyncResult<TranslationLanguageType>>;
5393
5393
 
5394
+ /**
5395
+ * Get all conversations in silent mode.
5396
+ *
5397
+ * ```typescript
5398
+ * connection.getSilentModeRemindTypeConversations({pageSize: 10})
5399
+ * ```
5400
+ */
5401
+ getSilentModeRemindTypeConversations(params: {
5402
+ /** The cursor that specifies where to start to get data. If there will be data on the next page, this method will return the value of this field to indicate the position to start to get data of the next page. If it is null, the data of the first page will be fetched. */
5403
+ cursor?: string;
5404
+ /** The number of data entries per page. The default value is 10. */
5405
+ pageSize: number;
5406
+ }): Promise<AsyncResult<GetSilentModeRemindTypeConversationsResult>>;
5407
+
5394
5408
  /**
5395
5409
  * Adds a reaction to the message.
5396
5410
  *
@@ -5688,6 +5702,8 @@ export declare namespace EasemobChat {
5688
5702
  reason?: string;
5689
5703
  /** The updated announcement. */
5690
5704
  announcement?: string;
5705
+ /** Expiration time for user mute. */
5706
+ muteTimestamp?: { [key: string]: number };
5691
5707
  }
5692
5708
 
5693
5709
  interface GetChatroomAttributesResult {
@@ -6250,6 +6266,7 @@ export declare namespace EasemobChat {
6250
6266
  kicked?: string;
6251
6267
  detail?: GroupModifyInfo;
6252
6268
  ext?: string;
6269
+ muteTimestamp?: { [key: string]: number };
6253
6270
  }
6254
6271
 
6255
6272
  interface ReadMsgSetParameters {
@@ -6521,6 +6538,10 @@ export declare namespace EasemobChat {
6521
6538
  modifiedInfo?: ModifiedMsgInfo;
6522
6539
  /** The list of message recipients. */
6523
6540
  receiverList?: string[];
6541
+ /** Has the message been read (only single chat messages have this field). */
6542
+ isRead?: boolean;
6543
+ /** Has the message been delivered (only single chat messages have this field). */
6544
+ isDelivered?: boolean;
6524
6545
  }
6525
6546
 
6526
6547
  interface CreateTextMsgParameters {
@@ -6614,6 +6635,10 @@ export declare namespace EasemobChat {
6614
6635
  onFileUploadError?: (error: any) => void;
6615
6636
  /** The callback of file upload completion. */
6616
6637
  onFileUploadComplete?: (data: { url: string; secret: string }) => void;
6638
+ /** Has the message been read (only single chat messages have this field). */
6639
+ isRead?: boolean;
6640
+ /** Has the message been delivered (only single chat messages have this field). */
6641
+ isDelivered?: boolean;
6617
6642
  }
6618
6643
 
6619
6644
  type CombineMsgList = Exclude<
@@ -6734,6 +6759,10 @@ export declare namespace EasemobChat {
6734
6759
  deliverOnlineOnly?: boolean;
6735
6760
  /** The list of message recipients. */
6736
6761
  receiverList?: string[];
6762
+ /** Has the message been read (only single chat messages have this field). */
6763
+ isRead?: boolean;
6764
+ /** Has the message been delivered (only single chat messages have this field). */
6765
+ isDelivered?: boolean;
6737
6766
  }
6738
6767
 
6739
6768
  interface CreateCmdMsgParameters {
@@ -6848,6 +6877,10 @@ export declare namespace EasemobChat {
6848
6877
  receiverList?: string[];
6849
6878
  /** Message modified info. */
6850
6879
  modifiedInfo?: ModifiedMsgInfo;
6880
+ /** Has the message been read (only single chat messages have this field). */
6881
+ isRead?: boolean;
6882
+ /** Has the message been delivered (only single chat messages have this field). */
6883
+ isDelivered?: boolean;
6851
6884
  }
6852
6885
 
6853
6886
  interface CreateCustomMsgParameters {
@@ -6968,6 +7001,10 @@ export declare namespace EasemobChat {
6968
7001
  deliverOnlineOnly?: boolean;
6969
7002
  /** The list of message recipients. */
6970
7003
  receiverList?: string[];
7004
+ /** Has the message been read (only single chat messages have this field). */
7005
+ isRead?: boolean;
7006
+ /** Has the message been delivered (only single chat messages have this field). */
7007
+ isDelivered?: boolean;
6971
7008
  }
6972
7009
 
6973
7010
  interface CreateLocationMsgParameters {
@@ -7112,6 +7149,10 @@ export declare namespace EasemobChat {
7112
7149
  * - (Default) `false`: The message is delivered when the recipient(s) is/are online. If the recipient(s) is/are offline, the message will not be delivered to them until they get online.
7113
7150
  */
7114
7151
  deliverOnlineOnly?: boolean;
7152
+ /** Has the message been read (only single chat messages have this field). */
7153
+ isRead?: boolean;
7154
+ /** Has the message been delivered (only single chat messages have this field). */
7155
+ isDelivered?: boolean;
7115
7156
  }
7116
7157
 
7117
7158
  interface CreateFileMsgParameters {
@@ -7258,6 +7299,10 @@ export declare namespace EasemobChat {
7258
7299
  thumbnailWidth?: number;
7259
7300
  /** The thumbnail height. */
7260
7301
  thumbnailHeight?: number;
7302
+ /** Has the message been read (only single chat messages have this field). */
7303
+ isRead?: boolean;
7304
+ /** Has the message been delivered (only single chat messages have this field). */
7305
+ isDelivered?: boolean;
7261
7306
  }
7262
7307
 
7263
7308
  interface CreateImgMsgParameters {
@@ -7407,6 +7452,10 @@ export declare namespace EasemobChat {
7407
7452
  deliverOnlineOnly?: boolean;
7408
7453
  /** The list of message recipients. */
7409
7454
  receiverList?: string[];
7455
+ /** Has the message been read (only single chat messages have this field). */
7456
+ isRead?: boolean;
7457
+ /** Has the message been delivered (only single chat messages have this field). */
7458
+ isDelivered?: boolean;
7410
7459
  }
7411
7460
 
7412
7461
  interface CreateAudioMsgParameters {
@@ -7556,6 +7605,10 @@ export declare namespace EasemobChat {
7556
7605
  deliverOnlineOnly?: boolean;
7557
7606
  /** The list of message recipients. */
7558
7607
  receiverList?: string[];
7608
+ /** Has the message been read (only single chat messages have this field). */
7609
+ isRead?: boolean;
7610
+ /** Has the message been delivered (only single chat messages have this field). */
7611
+ isDelivered?: boolean;
7559
7612
  }
7560
7613
 
7561
7614
  interface CreateVideoMsgParameters {