mezon-js 2.13.49 → 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,6 +8367,17 @@ var _DefaultSocket = class _DefaultSocket {
8367
8367
  return response.custom_status_event;
8368
8368
  });
8369
8369
  }
8370
+ writeActiveArchivedThread(clan_id, channel_id) {
8371
+ return __async(this, null, function* () {
8372
+ const response = yield this.send({
8373
+ active_archived_thread: {
8374
+ clan_id,
8375
+ channel_id
8376
+ }
8377
+ });
8378
+ return response.active_archived_thread;
8379
+ });
8380
+ }
8370
8381
  checkDuplicateName(name, condition_id, type) {
8371
8382
  return __async(this, null, function* () {
8372
8383
  const response = yield this.send({
@@ -8333,6 +8333,17 @@ var _DefaultSocket = class _DefaultSocket {
8333
8333
  return response.custom_status_event;
8334
8334
  });
8335
8335
  }
8336
+ writeActiveArchivedThread(clan_id, channel_id) {
8337
+ return __async(this, null, function* () {
8338
+ const response = yield this.send({
8339
+ active_archived_thread: {
8340
+ clan_id,
8341
+ channel_id
8342
+ }
8343
+ });
8344
+ return response.active_archived_thread;
8345
+ });
8346
+ }
8336
8347
  checkDuplicateName(name, condition_id, type) {
8337
8348
  return __async(this, null, function* () {
8338
8349
  const response = yield this.send({
package/dist/socket.d.ts CHANGED
@@ -961,6 +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
+ writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
964
965
  setHeartbeatTimeoutMs(ms: number): void;
965
966
  getHeartbeatTimeoutMs(): number;
966
967
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
@@ -1180,6 +1181,7 @@ export declare class DefaultSocket implements Socket {
1180
1181
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
1181
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>;
1182
1183
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
1184
+ writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
1183
1185
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
1184
1186
  writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
1185
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.49",
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,6 +1598,11 @@ export interface Socket {
1598
1598
  no_clear: boolean
1599
1599
  ): Promise<CustomStatusEvent>;
1600
1600
 
1601
+ writeActiveArchivedThread(
1602
+ clan_id: string,
1603
+ channel_id: string
1604
+ ): Promise<void>;
1605
+
1601
1606
  /* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
1602
1607
  setHeartbeatTimeoutMs(ms: number): void;
1603
1608
 
@@ -3036,6 +3041,19 @@ export class DefaultSocket implements Socket {
3036
3041
  return response.custom_status_event;
3037
3042
  }
3038
3043
 
3044
+ async writeActiveArchivedThread(
3045
+ clan_id: string,
3046
+ channel_id: string
3047
+ ): Promise<void> {
3048
+ const response = await this.send({
3049
+ active_archived_thread: {
3050
+ clan_id: clan_id,
3051
+ channel_id: channel_id
3052
+ },
3053
+ });
3054
+ return response.active_archived_thread;
3055
+ }
3056
+
3039
3057
  async checkDuplicateName(
3040
3058
  name: string,
3041
3059
  condition_id: string,