mezon-js 2.9.99 → 2.10.1

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.
@@ -7890,7 +7890,7 @@ var _DefaultSocket = class _DefaultSocket {
7890
7890
  return response.webrtc_signaling_fwd;
7891
7891
  });
7892
7892
  }
7893
- joinPTTChannel(clanId, channelId, dataType, jsonData) {
7893
+ joinPTTChannel(clanId, channelId, dataType, jsonData, isTalk) {
7894
7894
  return __async(this, null, function* () {
7895
7895
  const response = yield this.send({
7896
7896
  join_ptt_channel: {
@@ -7898,7 +7898,8 @@ var _DefaultSocket = class _DefaultSocket {
7898
7898
  channel_id: channelId,
7899
7899
  data_type: dataType,
7900
7900
  json_data: jsonData,
7901
- receiver_id: ""
7901
+ receiver_id: "",
7902
+ is_talk: isTalk
7902
7903
  }
7903
7904
  });
7904
7905
  return response.join_ptt_channel;
@@ -7856,7 +7856,7 @@ var _DefaultSocket = class _DefaultSocket {
7856
7856
  return response.webrtc_signaling_fwd;
7857
7857
  });
7858
7858
  }
7859
- joinPTTChannel(clanId, channelId, dataType, jsonData) {
7859
+ joinPTTChannel(clanId, channelId, dataType, jsonData, isTalk) {
7860
7860
  return __async(this, null, function* () {
7861
7861
  const response = yield this.send({
7862
7862
  join_ptt_channel: {
@@ -7864,7 +7864,8 @@ var _DefaultSocket = class _DefaultSocket {
7864
7864
  channel_id: channelId,
7865
7865
  data_type: dataType,
7866
7866
  json_data: jsonData,
7867
- receiver_id: ""
7867
+ receiver_id: "",
7868
+ is_talk: isTalk
7868
7869
  }
7869
7870
  });
7870
7871
  return response.join_ptt_channel;
package/dist/socket.d.ts CHANGED
@@ -622,6 +622,8 @@ export interface JoinPTTChannel {
622
622
  receiver_id: string;
623
623
  /** clan id */
624
624
  clan_id: string;
625
+ /** is talk */
626
+ is_talk: boolean;
625
627
  }
626
628
  export interface TalkPTTChannel {
627
629
  channel_id: string;
@@ -702,7 +704,7 @@ export interface Socket {
702
704
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
703
705
  /** send voice leaved */
704
706
  writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
705
- joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
707
+ joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string, isTalk: boolean): Promise<JoinPTTChannel>;
706
708
  talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
707
709
  setHeartbeatTimeoutMs(ms: number): void;
708
710
  getHeartbeatTimeoutMs(): number;
@@ -891,7 +893,7 @@ export declare class DefaultSocket implements Socket {
891
893
  makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
892
894
  handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
893
895
  handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
894
- joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
896
+ joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string, isTalk: boolean): Promise<JoinPTTChannel>;
895
897
  talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
896
898
  private pingPong;
897
899
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.99",
4
+ "version": "2.10.1",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -875,6 +875,8 @@ export interface JoinPTTChannel {
875
875
  receiver_id: string;
876
876
  /** clan id */
877
877
  clan_id: string;
878
+ /** is talk */
879
+ is_talk: boolean;
878
880
  }
879
881
 
880
882
  export interface TalkPTTChannel {
@@ -1080,7 +1082,8 @@ export interface Socket {
1080
1082
  clanId: string,
1081
1083
  channelId: string,
1082
1084
  dataType: number,
1083
- jsonData: string
1085
+ jsonData: string,
1086
+ isTalk: boolean,
1084
1087
  ): Promise<JoinPTTChannel>;
1085
1088
 
1086
1089
  talkPTTChannel(
@@ -2372,7 +2375,8 @@ export class DefaultSocket implements Socket {
2372
2375
  clanId: string,
2373
2376
  channelId: string,
2374
2377
  dataType: number,
2375
- jsonData: string
2378
+ jsonData: string,
2379
+ isTalk: boolean,
2376
2380
  ): Promise<JoinPTTChannel> {
2377
2381
  const response = await this.send({
2378
2382
  join_ptt_channel: {
@@ -2381,6 +2385,7 @@ export class DefaultSocket implements Socket {
2381
2385
  data_type: dataType,
2382
2386
  json_data: jsonData,
2383
2387
  receiver_id: "",
2388
+ is_talk: isTalk,
2384
2389
  },
2385
2390
  });
2386
2391
  return response.join_ptt_channel;