mezon-js 2.12.74 → 2.12.75

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/api.gen.ts CHANGED
@@ -1424,10 +1424,12 @@ export interface ApiGenerateMeetTokenExternalResponse {
1424
1424
  /** */
1425
1425
  export interface ApiMeetParticipantRequest {
1426
1426
  //
1427
- room_id?: string;
1427
+ room_name?: string;
1428
1428
  //
1429
1429
  username?: string;
1430
1430
  //
1431
+ channel_id?: string;
1432
+ //
1431
1433
  clan_id?: string;
1432
1434
  }
1433
1435
 
package/dist/api.gen.d.ts CHANGED
@@ -809,8 +809,9 @@ export interface ApiGenerateMeetTokenExternalResponse {
809
809
  }
810
810
  /** */
811
811
  export interface ApiMeetParticipantRequest {
812
- room_id?: string;
812
+ room_name?: string;
813
813
  username?: string;
814
+ channel_id?: string;
814
815
  clan_id?: string;
815
816
  }
816
817
  /** */
@@ -7343,6 +7343,8 @@ var _DefaultSocket = class _DefaultSocket {
7343
7343
  this.onunpinmessageevent(message.unpin_message_event);
7344
7344
  } else if (message.quick_menu_event) {
7345
7345
  this.onquickmenuevent(message.quick_menu_event);
7346
+ } else if (message.meet_participant_event) {
7347
+ this.onmeetparticipantevent(message.meet_participant_event);
7346
7348
  } else {
7347
7349
  if (this.verbose && window && window.console) {
7348
7350
  console.log("Unrecognized message received: %o", message);
@@ -7720,6 +7722,11 @@ var _DefaultSocket = class _DefaultSocket {
7720
7722
  console.log(event);
7721
7723
  }
7722
7724
  }
7725
+ onmeetparticipantevent(event) {
7726
+ if (this.verbose && window && window.console) {
7727
+ console.log(event);
7728
+ }
7729
+ }
7723
7730
  send(message, sendTimeout = _DefaultSocket.DefaultSendTimeoutMs) {
7724
7731
  const untypedMessage = message;
7725
7732
  return new Promise((resolve, reject) => {
@@ -7309,6 +7309,8 @@ var _DefaultSocket = class _DefaultSocket {
7309
7309
  this.onunpinmessageevent(message.unpin_message_event);
7310
7310
  } else if (message.quick_menu_event) {
7311
7311
  this.onquickmenuevent(message.quick_menu_event);
7312
+ } else if (message.meet_participant_event) {
7313
+ this.onmeetparticipantevent(message.meet_participant_event);
7312
7314
  } else {
7313
7315
  if (this.verbose && window && window.console) {
7314
7316
  console.log("Unrecognized message received: %o", message);
@@ -7686,6 +7688,11 @@ var _DefaultSocket = class _DefaultSocket {
7686
7688
  console.log(event);
7687
7689
  }
7688
7690
  }
7691
+ onmeetparticipantevent(event) {
7692
+ if (this.verbose && window && window.console) {
7693
+ console.log(event);
7694
+ }
7695
+ }
7689
7696
  send(message, sendTimeout = _DefaultSocket.DefaultSendTimeoutMs) {
7690
7697
  const untypedMessage = message;
7691
7698
  return new Promise((resolve, reject) => {
package/dist/socket.d.ts CHANGED
@@ -473,6 +473,13 @@ export interface ClanProfileUpdatedEvent {
473
473
  clan_avatar: string;
474
474
  clan_id: string;
475
475
  }
476
+ export interface MeetParticipantEvent {
477
+ username: string;
478
+ room_name: string;
479
+ channel_id: string;
480
+ clan_id: string;
481
+ action: number;
482
+ }
476
483
  /** Stream identifier */
477
484
  export interface StreamId {
478
485
  /** The type of stream (e.g. chat). */
@@ -1004,7 +1011,8 @@ export interface Socket {
1004
1011
  oneventnotiuserchannel: (noti_user_channel: ApiNotificationUserChannel) => void;
1005
1012
  oneventwebhook: (webhook_event: ApiWebhook) => void;
1006
1013
  onroleassign: (role_assign_event: RoleAssignedEvent) => void;
1007
- ondeleteaccount: (deleteAccountEvent: DeleteAccountEvent) => void;
1014
+ ondeleteaccount: (delete_account_event: DeleteAccountEvent) => void;
1015
+ onmeetparticipantevent: (event: MeetParticipantEvent) => void;
1008
1016
  onstreamingchannelstarted: (streaming_started_event: StreamingStartedEvent) => void;
1009
1017
  onstreamingchannelended: (streaming_ended_event: StreamingEndedEvent) => void;
1010
1018
  onstreamingchanneljoined: (streaming_joined_event: StreamingJoinedEvent) => void;
@@ -1114,6 +1122,7 @@ export declare class DefaultSocket implements Socket {
1114
1122
  onjoinchannelappevent(join_channel_app_data: JoinChannelAppData): void;
1115
1123
  onunpinmessageevent(unpin_message_event: UnpinMessageEvent): void;
1116
1124
  onquickmenuevent(event: QuickMenuEvent): void;
1125
+ onmeetparticipantevent(event: MeetParticipantEvent): void;
1117
1126
  send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | IncomingCallPush | MessageButtonClicked | DropdownBoxSelected | ChannelAppEvent | EphemeralMessageSend | VoiceReactionSend | ListDataSocket | QuickMenuEvent, sendTimeout?: number): Promise<any>;
1118
1127
  followUsers(userIds: string[]): Promise<Status>;
1119
1128
  joinClanChat(clan_id: string): Promise<ClanJoin>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.74",
3
+ "version": "2.12.75",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -765,6 +765,14 @@ export interface ClanProfileUpdatedEvent {
765
765
  clan_id: string;
766
766
  }
767
767
 
768
+ export interface MeetParticipantEvent {
769
+ username: string;
770
+ room_name: string;
771
+ channel_id: string;
772
+ clan_id: string;
773
+ action: number;
774
+ }
775
+
768
776
  /** Stream identifier */
769
777
  export interface StreamId {
770
778
  /** The type of stream (e.g. chat). */
@@ -1732,7 +1740,9 @@ export interface Socket {
1732
1740
 
1733
1741
  onroleassign: (role_assign_event: RoleAssignedEvent) => void;
1734
1742
 
1735
- ondeleteaccount: (deleteAccountEvent: DeleteAccountEvent) => void;
1743
+ ondeleteaccount: (delete_account_event: DeleteAccountEvent) => void;
1744
+
1745
+ onmeetparticipantevent: (event: MeetParticipantEvent) => void;
1736
1746
 
1737
1747
  onstreamingchannelstarted: (
1738
1748
  streaming_started_event: StreamingStartedEvent
@@ -2018,6 +2028,8 @@ export class DefaultSocket implements Socket {
2018
2028
  this.onunpinmessageevent(<UnpinMessageEvent>message.unpin_message_event);
2019
2029
  } else if (message.quick_menu_event) {
2020
2030
  this.onquickmenuevent(<QuickMenuEvent>message.quick_menu_event);
2031
+ } else if (message.meet_participant_event) {
2032
+ this.onmeetparticipantevent(<MeetParticipantEvent>message.meet_participant_event);
2021
2033
  } else {
2022
2034
  if (this.verbose && window && window.console) {
2023
2035
  console.log("Unrecognized message received: %o", message);
@@ -2469,6 +2481,12 @@ export class DefaultSocket implements Socket {
2469
2481
  }
2470
2482
  }
2471
2483
 
2484
+ onmeetparticipantevent(event: MeetParticipantEvent) {
2485
+ if (this.verbose && window && window.console) {
2486
+ console.log(event);
2487
+ }
2488
+ }
2489
+
2472
2490
  send(
2473
2491
  message:
2474
2492
  | ChannelJoin