easemob-websdk 4.1.2 → 4.1.3-beta

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/Easemob-chat.d.ts CHANGED
@@ -619,13 +619,13 @@ export declare namespace EasemobChat {
619
619
  /** The phone number. */
620
620
  phone?: string;
621
621
  /** Gender. */
622
- gender?: string | number | boolean;
622
+ gender?: string;
623
623
  /** Sign. */
624
624
  sign?: string;
625
625
  /** Birthday. */
626
626
  birth?: string;
627
627
  /** Extension. */
628
- ext?: { [key: string]: string | number | boolean };
628
+ ext?: string;
629
629
  }
630
630
 
631
631
  /** Configurable field. */
@@ -933,7 +933,7 @@ export declare namespace EasemobChat {
933
933
  /** The Historical messages. */
934
934
  messages: MessageBody[];
935
935
  }
936
- interface conversationList {
936
+ interface ConversationList {
937
937
  /** The conversation ID. */
938
938
  channel_id: string;
939
939
  /** Overview of the latest news. */
@@ -941,7 +941,10 @@ export declare namespace EasemobChat {
941
941
  /** The number of unread messages. */
942
942
  unread_num: number;
943
943
  }
944
-
944
+ interface ConversationInfo {
945
+ /** The conversation list. */
946
+ channel_infos: ConversationList[];
947
+ }
945
948
  interface SilentModeConversationType {
946
949
  /** Silent mode type. */
947
950
  type: string;
@@ -2184,6 +2187,21 @@ export declare namespace EasemobChat {
2184
2187
  }
2185
2188
  ): Promise<AsyncResult<IsChatRoomWhiteUserResult>>;
2186
2189
 
2190
+ /**
2191
+ * Check whether you are on the chat room mute list.
2192
+ *
2193
+ * ```typescript
2194
+ * connection.isInChatRoomMutelist({chatRoomId: 'chatRoomId'})
2195
+ * ```
2196
+ */
2197
+ isInChatRoomMutelist(
2198
+ this: any,
2199
+ params: {
2200
+ /** The chat room ID. */
2201
+ chatRoomId: string;
2202
+ }
2203
+ ): Promise<boolean>;
2204
+
2187
2205
  /**
2188
2206
  * Gets the announcement of the chat room.
2189
2207
  *
@@ -3508,6 +3526,21 @@ export declare namespace EasemobChat {
3508
3526
  }
3509
3527
  ): Promise<AsyncResult<IsInGroupWhiteListResult>>;
3510
3528
 
3529
+ /**
3530
+ * Check whether you are on the group mute list.
3531
+ *
3532
+ * ```typescript
3533
+ * connection.isInGroupMutelist({groupId: 'groupId'})
3534
+ * ```
3535
+ */
3536
+ isInGroupMutelist(
3537
+ this: Connection,
3538
+ params: {
3539
+ /** The group ID. */
3540
+ groupId: string;
3541
+ }
3542
+ ): Promise<boolean>;
3543
+
3511
3544
  /**
3512
3545
  * Checks which members have read group message. This is a [value-added function] and .
3513
3546
  *
@@ -3792,10 +3825,14 @@ export declare namespace EasemobChat {
3792
3825
  getConversationlist(
3793
3826
  this: Connection,
3794
3827
  params?: {
3795
- success?: (res: AsyncResult<SessionInfo[]>) => void;
3828
+ /** The page number, starting from 1. */
3829
+ pageNum?: number;
3830
+ /** The number of conversation per page. The value cannot exceed 20. */
3831
+ pageSize?: number;
3832
+ success?: (res: AsyncResult<ConversationInfo>) => void;
3796
3833
  error?: (error: ErrorEvent) => void;
3797
3834
  }
3798
- ): Promise<AsyncResult<conversationList[]>>;
3835
+ ): Promise<AsyncResult<ConversationInfo>>;
3799
3836
 
3800
3837
  /**
3801
3838
  * @deprecated Use Use {@link deleteConversation} instead.
@@ -3865,7 +3902,7 @@ export declare namespace EasemobChat {
3865
3902
  updateOwnUserInfo(
3866
3903
  this: Connection,
3867
3904
  params: UpdateOwnUserInfoParams | ConfigurableKey,
3868
- value?: any
3905
+ value?: string
3869
3906
  ): Promise<AsyncResult<UpdateOwnUserInfoParams>>;
3870
3907
 
3871
3908
  /**
@@ -3880,7 +3917,7 @@ export declare namespace EasemobChat {
3880
3917
  updateUserInfo(
3881
3918
  this: Connection,
3882
3919
  params: UpdateOwnUserInfoParams | ConfigurableKey,
3883
- value?: any
3920
+ value?: string
3884
3921
  ): Promise<AsyncResult<UpdateOwnUserInfoParams>>;
3885
3922
 
3886
3923
  /**
@@ -4991,6 +5028,7 @@ export declare namespace EasemobChat {
4991
5028
 
4992
5029
  interface GroupEvent {
4993
5030
  /** The type of operation. <br/>
5031
+ * create: Occurs when the current user created a group on another device.<br/>
4994
5032
  * destroy: Occurs when the group was destroyed.<br/>
4995
5033
  * requestToJoin: Occurs when someone applied to join the group. Only the group owner and administrator will receive this event. <br/>
4996
5034
  * acceptRequest: Occurs when your group adding application is approved. Only the person who applies for group will receive this event.<br/>
@@ -5018,12 +5056,20 @@ export declare namespace EasemobChat {
5018
5056
  * unmuteAllMembers: Occurs when the group lifted the ban. <br/>
5019
5057
  */
5020
5058
  operation:
5059
+ | 'create'
5021
5060
  | 'destroy'
5061
+ | 'requestToJoin'
5062
+ | 'acceptRequest'
5063
+ | 'inviteToJoin'
5064
+ | 'acceptInvite'
5065
+ | 'rejectInvite'
5022
5066
  | 'removeMember'
5023
5067
  | 'unblockMember'
5024
5068
  | 'updateInfo'
5025
5069
  | 'memberPresence'
5026
5070
  | 'memberAbsence'
5071
+ | 'directJoined'
5072
+ | 'changeOwner'
5027
5073
  | 'setAdmin'
5028
5074
  | 'removeAdmin'
5029
5075
  | 'muteMember'
@@ -5035,9 +5081,7 @@ export declare namespace EasemobChat {
5035
5081
  | 'addUserToAllowlist'
5036
5082
  | 'removeAllowlistMember'
5037
5083
  | 'muteAllMembers'
5038
- | 'unmuteAllMembers'
5039
- | 'updateChatRoomAttributes'
5040
- | 'removeChatRoomAttributes';
5084
+ | 'unmuteAllMembers';
5041
5085
  /** The ID of a group. */
5042
5086
  id: string;
5043
5087
  /** Message sender. */