mezon-js 2.9.87 → 2.9.89

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.
@@ -7659,7 +7659,7 @@ var _DefaultSocket = class _DefaultSocket {
7659
7659
  return response.dropdown_box_selected;
7660
7660
  });
7661
7661
  }
7662
- handleMessageButtonClick(message_id, channel_id, button_id, sender_id, user_id) {
7662
+ handleMessageButtonClick(message_id, channel_id, button_id, sender_id, user_id, extra_data) {
7663
7663
  return __async(this, null, function* () {
7664
7664
  const response = yield this.send({
7665
7665
  message_button_clicked: {
@@ -7667,7 +7667,8 @@ var _DefaultSocket = class _DefaultSocket {
7667
7667
  channel_id,
7668
7668
  button_id,
7669
7669
  sender_id,
7670
- user_id
7670
+ user_id,
7671
+ extra_data
7671
7672
  }
7672
7673
  });
7673
7674
  return response.webrtc_signaling_fwd;
@@ -7629,7 +7629,7 @@ var _DefaultSocket = class _DefaultSocket {
7629
7629
  return response.dropdown_box_selected;
7630
7630
  });
7631
7631
  }
7632
- handleMessageButtonClick(message_id, channel_id, button_id, sender_id, user_id) {
7632
+ handleMessageButtonClick(message_id, channel_id, button_id, sender_id, user_id, extra_data) {
7633
7633
  return __async(this, null, function* () {
7634
7634
  const response = yield this.send({
7635
7635
  message_button_clicked: {
@@ -7637,7 +7637,8 @@ var _DefaultSocket = class _DefaultSocket {
7637
7637
  channel_id,
7638
7638
  button_id,
7639
7639
  sender_id,
7640
- user_id
7640
+ user_id,
7641
+ extra_data
7641
7642
  }
7642
7643
  });
7643
7644
  return response.webrtc_signaling_fwd;
package/dist/socket.d.ts CHANGED
@@ -287,6 +287,7 @@ export interface ChannelUpdatedEvent {
287
287
  meeting_code: string;
288
288
  is_error: boolean;
289
289
  app_url: string;
290
+ e2ee: number;
290
291
  }
291
292
  export interface ChannelCreatedEvent {
292
293
  clan_id: string;
@@ -592,6 +593,7 @@ export interface MessageButtonClicked {
592
593
  button_id: string;
593
594
  sender_id: string;
594
595
  user_id: string;
596
+ extra_data: string;
595
597
  }
596
598
  export interface IncomingCallPush {
597
599
  receiver_id: string;
@@ -672,7 +674,7 @@ export interface Socket {
672
674
  setHeartbeatTimeoutMs(ms: number): void;
673
675
  getHeartbeatTimeoutMs(): number;
674
676
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
675
- handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string) => Promise<MessageButtonClicked>;
677
+ handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string) => Promise<MessageButtonClicked>;
676
678
  handleDropdownBoxSelected: (message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>) => Promise<DropdownBoxSelected>;
677
679
  forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
678
680
  makeCallPush: (receiverId: string, jsonData: string, channelId: string, caller_id: string) => Promise<IncomingCallPush>;
@@ -851,7 +853,7 @@ export declare class DefaultSocket implements Socket {
851
853
  forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
852
854
  makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
853
855
  handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
854
- handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string): Promise<MessageButtonClicked>;
856
+ handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
855
857
  joinPTTChannel(channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
856
858
  talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
857
859
  private pingPong;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.87",
4
+ "version": "2.9.89",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -421,6 +421,8 @@ export interface ChannelUpdatedEvent {
421
421
  is_error: boolean;
422
422
  // app url
423
423
  app_url: string;
424
+ // e2ee
425
+ e2ee: number;
424
426
  }
425
427
 
426
428
  export interface ChannelCreatedEvent {
@@ -837,6 +839,7 @@ export interface MessageButtonClicked {
837
839
  button_id: string;
838
840
  sender_id: string;
839
841
  user_id: string;
842
+ extra_data: string;
840
843
  }
841
844
 
842
845
  export interface IncomingCallPush {
@@ -1063,7 +1066,8 @@ export interface Socket {
1063
1066
  channel_id: string,
1064
1067
  button_id: string,
1065
1068
  sender_id: string,
1066
- user_id: string
1069
+ user_id: string,
1070
+ extra_data: string
1067
1071
  ) => Promise<MessageButtonClicked>;
1068
1072
 
1069
1073
  handleDropdownBoxSelected: (
@@ -2285,7 +2289,8 @@ export class DefaultSocket implements Socket {
2285
2289
  channel_id: string,
2286
2290
  button_id: string,
2287
2291
  sender_id: string,
2288
- user_id: string
2292
+ user_id: string,
2293
+ extra_data: string
2289
2294
  ): Promise<MessageButtonClicked> {
2290
2295
  const response = await this.send({
2291
2296
  message_button_clicked: {
@@ -2294,6 +2299,7 @@ export class DefaultSocket implements Socket {
2294
2299
  button_id: button_id,
2295
2300
  sender_id: sender_id,
2296
2301
  user_id: user_id,
2302
+ extra_data: extra_data
2297
2303
  },
2298
2304
  });
2299
2305
  return response.webrtc_signaling_fwd;