mezon-js 2.11.39 → 2.11.41

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/client.ts CHANGED
@@ -2821,7 +2821,7 @@ export class Client {
2821
2821
 
2822
2822
  return this.apiClient
2823
2823
  .updateApp(session.token, roleId, request)
2824
- .then((response: any) => {
2824
+ .then((response: ApiApp) => {
2825
2825
  return Promise.resolve(response);
2826
2826
  });
2827
2827
  }
@@ -8371,35 +8371,6 @@ var _DefaultSocket = class _DefaultSocket {
8371
8371
  return response.last_pin_message_event;
8372
8372
  });
8373
8373
  }
8374
- writeVoiceJoined(id, clanId, clanName, voiceChannelId, voiceChannelLabel, participant, lastScreenshot) {
8375
- return __async(this, null, function* () {
8376
- const response = yield this.send({
8377
- voice_joined_event: {
8378
- clan_id: clanId,
8379
- clan_name: clanName,
8380
- id,
8381
- participant,
8382
- voice_channel_id: voiceChannelId,
8383
- voice_channel_label: voiceChannelLabel,
8384
- last_screenshot: lastScreenshot
8385
- }
8386
- });
8387
- return response.voice_joined_event;
8388
- });
8389
- }
8390
- writeVoiceLeaved(id, clanId, voiceChannelId, voiceUserId) {
8391
- return __async(this, null, function* () {
8392
- const response = yield this.send({
8393
- voice_leaved_event: {
8394
- id,
8395
- clan_id: clanId,
8396
- voice_channel_id: voiceChannelId,
8397
- voice_user_id: voiceUserId
8398
- }
8399
- });
8400
- return response.voice_leaved_event;
8401
- });
8402
- }
8403
8374
  writeCustomStatus(clan_id, status, time_reset, no_clear) {
8404
8375
  return __async(this, null, function* () {
8405
8376
  const response = yield this.send({
@@ -8337,35 +8337,6 @@ var _DefaultSocket = class _DefaultSocket {
8337
8337
  return response.last_pin_message_event;
8338
8338
  });
8339
8339
  }
8340
- writeVoiceJoined(id, clanId, clanName, voiceChannelId, voiceChannelLabel, participant, lastScreenshot) {
8341
- return __async(this, null, function* () {
8342
- const response = yield this.send({
8343
- voice_joined_event: {
8344
- clan_id: clanId,
8345
- clan_name: clanName,
8346
- id,
8347
- participant,
8348
- voice_channel_id: voiceChannelId,
8349
- voice_channel_label: voiceChannelLabel,
8350
- last_screenshot: lastScreenshot
8351
- }
8352
- });
8353
- return response.voice_joined_event;
8354
- });
8355
- }
8356
- writeVoiceLeaved(id, clanId, voiceChannelId, voiceUserId) {
8357
- return __async(this, null, function* () {
8358
- const response = yield this.send({
8359
- voice_leaved_event: {
8360
- id,
8361
- clan_id: clanId,
8362
- voice_channel_id: voiceChannelId,
8363
- voice_user_id: voiceUserId
8364
- }
8365
- });
8366
- return response.voice_leaved_event;
8367
- });
8368
- }
8369
8340
  writeCustomStatus(clan_id, status, time_reset, no_clear) {
8370
8341
  return __async(this, null, function* () {
8371
8342
  const response = yield this.send({
package/dist/socket.d.ts CHANGED
@@ -783,10 +783,6 @@ export interface Socket {
783
783
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
784
784
  /** Send custom user status */
785
785
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
786
- /** send voice joined */
787
- writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
788
- /** send voice leaved */
789
- writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
790
786
  setHeartbeatTimeoutMs(ms: number): void;
791
787
  getHeartbeatTimeoutMs(): number;
792
788
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
@@ -986,8 +982,6 @@ export declare class DefaultSocket implements Socket {
986
982
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
987
983
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
988
984
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
989
- writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
990
- writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
991
985
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
992
986
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
993
987
  forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.11.39",
4
+ "version": "2.11.41",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -1207,25 +1207,6 @@ export interface Socket {
1207
1207
  no_clear: boolean
1208
1208
  ): Promise<CustomStatusEvent>;
1209
1209
 
1210
- /** send voice joined */
1211
- writeVoiceJoined(
1212
- id: string,
1213
- clanId: string,
1214
- clanName: string,
1215
- voiceChannelId: string,
1216
- voiceChannelLabel: string,
1217
- participant: string,
1218
- lastScreenshot: string
1219
- ): Promise<VoiceJoinedEvent>;
1220
-
1221
- /** send voice leaved */
1222
- writeVoiceLeaved(
1223
- id: string,
1224
- clanId: string,
1225
- voiceChannelId: string,
1226
- voiceUserId: string
1227
- ): Promise<VoiceLeavedEvent>;
1228
-
1229
1210
  /* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
1230
1211
  setHeartbeatTimeoutMs(ms: number): void;
1231
1212
 
@@ -2506,46 +2487,6 @@ export class DefaultSocket implements Socket {
2506
2487
  return response.last_pin_message_event;
2507
2488
  }
2508
2489
 
2509
- async writeVoiceJoined(
2510
- id: string,
2511
- clanId: string,
2512
- clanName: string,
2513
- voiceChannelId: string,
2514
- voiceChannelLabel: string,
2515
- participant: string,
2516
- lastScreenshot: string
2517
- ): Promise<VoiceJoinedEvent> {
2518
- const response = await this.send({
2519
- voice_joined_event: {
2520
- clan_id: clanId,
2521
- clan_name: clanName,
2522
- id: id,
2523
- participant: participant,
2524
- voice_channel_id: voiceChannelId,
2525
- voice_channel_label: voiceChannelLabel,
2526
- last_screenshot: lastScreenshot,
2527
- },
2528
- });
2529
- return response.voice_joined_event;
2530
- }
2531
-
2532
- async writeVoiceLeaved(
2533
- id: string,
2534
- clanId: string,
2535
- voiceChannelId: string,
2536
- voiceUserId: string
2537
- ): Promise<VoiceLeavedEvent> {
2538
- const response = await this.send({
2539
- voice_leaved_event: {
2540
- id: id,
2541
- clan_id: clanId,
2542
- voice_channel_id: voiceChannelId,
2543
- voice_user_id: voiceUserId,
2544
- },
2545
- });
2546
- return response.voice_leaved_event;
2547
- }
2548
-
2549
2490
  async writeCustomStatus(
2550
2491
  clan_id: string,
2551
2492
  status: string,