mezon-js 2.12.77 → 2.12.78

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.
@@ -7805,14 +7805,15 @@ var _DefaultSocket = class _DefaultSocket {
7805
7805
  return response.channel;
7806
7806
  });
7807
7807
  }
7808
- handleParticipantMeetState(clan_id, channel_id, display_name, state) {
7808
+ handleParticipantMeetState(clan_id, channel_id, display_name, state, room_name) {
7809
7809
  return __async(this, null, function* () {
7810
7810
  const response = yield this.send({
7811
7811
  handle_participant_meet_state_event: {
7812
7812
  clan_id,
7813
7813
  channel_id,
7814
7814
  display_name,
7815
- state
7815
+ state,
7816
+ room_name
7816
7817
  }
7817
7818
  });
7818
7819
  return response.handle_participant_meet_state_event;
@@ -7771,14 +7771,15 @@ var _DefaultSocket = class _DefaultSocket {
7771
7771
  return response.channel;
7772
7772
  });
7773
7773
  }
7774
- handleParticipantMeetState(clan_id, channel_id, display_name, state) {
7774
+ handleParticipantMeetState(clan_id, channel_id, display_name, state, room_name) {
7775
7775
  return __async(this, null, function* () {
7776
7776
  const response = yield this.send({
7777
7777
  handle_participant_meet_state_event: {
7778
7778
  clan_id,
7779
7779
  channel_id,
7780
7780
  display_name,
7781
- state
7781
+ state,
7782
+ room_name
7782
7783
  }
7783
7784
  });
7784
7785
  return response.handle_participant_meet_state_event;
package/dist/socket.d.ts CHANGED
@@ -739,6 +739,8 @@ export interface HandleParticipantMeetStateEvent {
739
739
  display_name: string;
740
740
  /** state (0: join, 1: leave) */
741
741
  state: number;
742
+ /** room name */
743
+ room_name: string;
742
744
  }
743
745
  export interface PermissionSet {
744
746
  /** Role ID */
@@ -908,7 +910,7 @@ export interface Socket {
908
910
  /** Leave a chat channel on the server. */
909
911
  leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
910
912
  /** handle user join/leave channel voice on the server. */
911
- handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number): Promise<void>;
913
+ handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number, room_name: string): Promise<void>;
912
914
  /** Remove a chat message from a chat channel on the server. */
913
915
  removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
914
916
  /** Execute an RPC function to the server. */
@@ -1135,7 +1137,7 @@ export declare class DefaultSocket implements Socket {
1135
1137
  joinClanChat(clan_id: string): Promise<ClanJoin>;
1136
1138
  follower(): Promise<void>;
1137
1139
  joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
1138
- handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number): Promise<void>;
1140
+ handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number, room_name: string): Promise<void>;
1139
1141
  leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
1140
1142
  removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
1141
1143
  rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.77",
3
+ "version": "2.12.78",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1103,6 +1103,8 @@ export interface HandleParticipantMeetStateEvent {
1103
1103
  display_name: string;
1104
1104
  /** state (0: join, 1: leave) */
1105
1105
  state: number;
1106
+ /** room name */
1107
+ room_name: string;
1106
1108
  }
1107
1109
 
1108
1110
  export interface PermissionSet {
@@ -1396,7 +1398,8 @@ export interface Socket {
1396
1398
  clan_id: string,
1397
1399
  channel_id: string,
1398
1400
  display_name: string,
1399
- state: number
1401
+ state: number,
1402
+ room_name: string
1400
1403
  ): Promise<void>
1401
1404
 
1402
1405
  /** Remove a chat message from a chat channel on the server. */
@@ -2611,7 +2614,8 @@ export class DefaultSocket implements Socket {
2611
2614
  clan_id: string,
2612
2615
  channel_id: string,
2613
2616
  display_name: string,
2614
- state: number
2617
+ state: number,
2618
+ room_name: string,
2615
2619
  ): Promise<void> {
2616
2620
  const response = await this.send({
2617
2621
  handle_participant_meet_state_event: {
@@ -2619,6 +2623,7 @@ export class DefaultSocket implements Socket {
2619
2623
  channel_id: channel_id,
2620
2624
  display_name: display_name,
2621
2625
  state: state,
2626
+ room_name: room_name,
2622
2627
  },
2623
2628
  });
2624
2629