mezon-js 2.10.2 → 2.10.4

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
@@ -501,6 +501,8 @@ export interface ApiAuditLog {
501
501
  //
502
502
  action_log?: string;
503
503
  //
504
+ channel_id?: string;
505
+ //
504
506
  clan_id?: string;
505
507
  //
506
508
  details?: string;
package/dist/api.gen.d.ts CHANGED
@@ -294,6 +294,7 @@ export interface ApiAppList {
294
294
  /** */
295
295
  export interface ApiAuditLog {
296
296
  action_log?: string;
297
+ channel_id?: string;
297
298
  clan_id?: string;
298
299
  details?: string;
299
300
  entity_id?: string;
@@ -7948,7 +7948,7 @@ var _DefaultSocket = class _DefaultSocket {
7948
7948
  return response.webrtc_signaling_fwd;
7949
7949
  });
7950
7950
  }
7951
- joinPTTChannel(clanId, channelId, dataType, jsonData, isTalk) {
7951
+ joinPTTChannel(clanId, channelId, dataType, jsonData) {
7952
7952
  return __async(this, null, function* () {
7953
7953
  const response = yield this.send({
7954
7954
  join_ptt_channel: {
@@ -7956,8 +7956,7 @@ var _DefaultSocket = class _DefaultSocket {
7956
7956
  channel_id: channelId,
7957
7957
  data_type: dataType,
7958
7958
  json_data: jsonData,
7959
- receiver_id: "",
7960
- is_talk: isTalk
7959
+ receiver_id: ""
7961
7960
  }
7962
7961
  });
7963
7962
  return response.join_ptt_channel;
@@ -7914,7 +7914,7 @@ var _DefaultSocket = class _DefaultSocket {
7914
7914
  return response.webrtc_signaling_fwd;
7915
7915
  });
7916
7916
  }
7917
- joinPTTChannel(clanId, channelId, dataType, jsonData, isTalk) {
7917
+ joinPTTChannel(clanId, channelId, dataType, jsonData) {
7918
7918
  return __async(this, null, function* () {
7919
7919
  const response = yield this.send({
7920
7920
  join_ptt_channel: {
@@ -7922,8 +7922,7 @@ var _DefaultSocket = class _DefaultSocket {
7922
7922
  channel_id: channelId,
7923
7923
  data_type: dataType,
7924
7924
  json_data: jsonData,
7925
- receiver_id: "",
7926
- is_talk: isTalk
7925
+ receiver_id: ""
7927
7926
  }
7928
7927
  });
7929
7928
  return response.join_ptt_channel;
package/dist/socket.d.ts CHANGED
@@ -704,7 +704,7 @@ export interface Socket {
704
704
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
705
705
  /** send voice leaved */
706
706
  writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
707
- joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string, isTalk: boolean): Promise<JoinPTTChannel>;
707
+ joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
708
708
  talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
709
709
  setHeartbeatTimeoutMs(ms: number): void;
710
710
  getHeartbeatTimeoutMs(): number;
@@ -893,7 +893,7 @@ export declare class DefaultSocket implements Socket {
893
893
  makeCallPush(receiver_id: string, json_data: string, channel_id: string, caller_id: string): Promise<IncomingCallPush>;
894
894
  handleDropdownBoxSelected(message_id: string, channel_id: string, selectbox_id: string, sender_id: string, user_id: string, value: Array<string>): Promise<DropdownBoxSelected>;
895
895
  handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string, extra_data: string): Promise<MessageButtonClicked>;
896
- joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string, isTalk: boolean): Promise<JoinPTTChannel>;
896
+ joinPTTChannel(clanId: string, channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
897
897
  talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
898
898
  private pingPong;
899
899
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.2",
4
+ "version": "2.10.4",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -1083,7 +1083,6 @@ export interface Socket {
1083
1083
  channelId: string,
1084
1084
  dataType: number,
1085
1085
  jsonData: string,
1086
- isTalk: boolean,
1087
1086
  ): Promise<JoinPTTChannel>;
1088
1087
 
1089
1088
  talkPTTChannel(
@@ -2376,7 +2375,6 @@ export class DefaultSocket implements Socket {
2376
2375
  channelId: string,
2377
2376
  dataType: number,
2378
2377
  jsonData: string,
2379
- isTalk: boolean,
2380
2378
  ): Promise<JoinPTTChannel> {
2381
2379
  const response = await this.send({
2382
2380
  join_ptt_channel: {
@@ -2385,7 +2383,6 @@ export class DefaultSocket implements Socket {
2385
2383
  data_type: dataType,
2386
2384
  json_data: jsonData,
2387
2385
  receiver_id: "",
2388
- is_talk: isTalk,
2389
2386
  },
2390
2387
  });
2391
2388
  return response.join_ptt_channel;