mezon-js 2.13.50 → 2.13.51

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.
@@ -8367,15 +8367,15 @@ var _DefaultSocket = class _DefaultSocket {
8367
8367
  return response.custom_status_event;
8368
8368
  });
8369
8369
  }
8370
- writeActiveArchivedThreadDM(clan_id, channel_id) {
8370
+ writeActiveArchivedThread(clan_id, channel_id) {
8371
8371
  return __async(this, null, function* () {
8372
8372
  const response = yield this.send({
8373
- active_archived_thread_dm: {
8373
+ active_archived_thread: {
8374
8374
  clan_id,
8375
8375
  channel_id
8376
8376
  }
8377
8377
  });
8378
- return response.active_archived_thread_dm;
8378
+ return response.active_archived_thread;
8379
8379
  });
8380
8380
  }
8381
8381
  checkDuplicateName(name, condition_id, type) {
@@ -8333,15 +8333,15 @@ var _DefaultSocket = class _DefaultSocket {
8333
8333
  return response.custom_status_event;
8334
8334
  });
8335
8335
  }
8336
- writeActiveArchivedThreadDM(clan_id, channel_id) {
8336
+ writeActiveArchivedThread(clan_id, channel_id) {
8337
8337
  return __async(this, null, function* () {
8338
8338
  const response = yield this.send({
8339
- active_archived_thread_dm: {
8339
+ active_archived_thread: {
8340
8340
  clan_id,
8341
8341
  channel_id
8342
8342
  }
8343
8343
  });
8344
- return response.active_archived_thread_dm;
8344
+ return response.active_archived_thread;
8345
8345
  });
8346
8346
  }
8347
8347
  checkDuplicateName(name, condition_id, type) {
package/dist/socket.d.ts CHANGED
@@ -961,7 +961,7 @@ export interface Socket {
961
961
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
962
962
  /** Send custom user status */
963
963
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
964
- writeActiveArchivedThreadDM(clan_id: string, channel_id: string): Promise<void>;
964
+ writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
965
965
  setHeartbeatTimeoutMs(ms: number): void;
966
966
  getHeartbeatTimeoutMs(): number;
967
967
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
@@ -1181,7 +1181,7 @@ export declare class DefaultSocket implements Socket {
1181
1181
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
1182
1182
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
1183
1183
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
1184
- writeActiveArchivedThreadDM(clan_id: string, channel_id: string): Promise<void>;
1184
+ writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
1185
1185
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
1186
1186
  writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
1187
1187
  forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.13.50",
3
+ "version": "2.13.51",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1598,7 +1598,7 @@ export interface Socket {
1598
1598
  no_clear: boolean
1599
1599
  ): Promise<CustomStatusEvent>;
1600
1600
 
1601
- writeActiveArchivedThreadDM(
1601
+ writeActiveArchivedThread(
1602
1602
  clan_id: string,
1603
1603
  channel_id: string
1604
1604
  ): Promise<void>;
@@ -3041,17 +3041,17 @@ export class DefaultSocket implements Socket {
3041
3041
  return response.custom_status_event;
3042
3042
  }
3043
3043
 
3044
- async writeActiveArchivedThreadDM(
3044
+ async writeActiveArchivedThread(
3045
3045
  clan_id: string,
3046
3046
  channel_id: string
3047
3047
  ): Promise<void> {
3048
3048
  const response = await this.send({
3049
- active_archived_thread_dm: {
3049
+ active_archived_thread: {
3050
3050
  clan_id: clan_id,
3051
3051
  channel_id: channel_id
3052
3052
  },
3053
3053
  });
3054
- return response.active_archived_thread_dm;
3054
+ return response.active_archived_thread;
3055
3055
  }
3056
3056
 
3057
3057
  async checkDuplicateName(