mezon-js 2.13.50 → 2.13.52

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
@@ -116,18 +116,12 @@ export interface UserProfileRedis {
116
116
  avatar: string;
117
117
  /** Display name */
118
118
  display_name: string;
119
- /** about me */
120
- about_me: string;
121
119
  /** custom status */
122
120
  custom_status: string;
123
- /** create time */
124
- create_time_second: number;
125
121
  /** online */
126
122
  online: boolean;
127
123
  /** clans */
128
124
  joined_clans: number[];
129
- pubkey: string;
130
- mezon_id: string;
131
125
  app_url: string;
132
126
  is_bot: boolean;
133
127
  }
@@ -961,7 +955,7 @@ export interface Socket {
961
955
  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
956
  /** Send custom user status */
963
957
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
964
- writeActiveArchivedThreadDM(clan_id: string, channel_id: string): Promise<void>;
958
+ writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
965
959
  setHeartbeatTimeoutMs(ms: number): void;
966
960
  getHeartbeatTimeoutMs(): number;
967
961
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
@@ -1181,7 +1175,7 @@ export declare class DefaultSocket implements Socket {
1181
1175
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
1182
1176
  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
1177
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
1184
- writeActiveArchivedThreadDM(clan_id: string, channel_id: string): Promise<void>;
1178
+ writeActiveArchivedThread(clan_id: string, channel_id: string): Promise<void>;
1185
1179
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
1186
1180
  writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
1187
1181
  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.52",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -195,20 +195,12 @@ export interface UserProfileRedis {
195
195
  avatar: string;
196
196
  /** Display name */
197
197
  display_name: string;
198
- /** about me */
199
- about_me: string;
200
198
  /** custom status */
201
199
  custom_status: string;
202
- /** create time */
203
- create_time_second: number;
204
200
  /** online */
205
201
  online: boolean;
206
202
  /** clans */
207
203
  joined_clans: number[];
208
- // public key
209
- pubkey: string;
210
- // mezon id
211
- mezon_id: string;
212
204
  // app url
213
205
  app_url: string;
214
206
  // is bot
@@ -1598,7 +1590,7 @@ export interface Socket {
1598
1590
  no_clear: boolean
1599
1591
  ): Promise<CustomStatusEvent>;
1600
1592
 
1601
- writeActiveArchivedThreadDM(
1593
+ writeActiveArchivedThread(
1602
1594
  clan_id: string,
1603
1595
  channel_id: string
1604
1596
  ): Promise<void>;
@@ -3041,17 +3033,17 @@ export class DefaultSocket implements Socket {
3041
3033
  return response.custom_status_event;
3042
3034
  }
3043
3035
 
3044
- async writeActiveArchivedThreadDM(
3036
+ async writeActiveArchivedThread(
3045
3037
  clan_id: string,
3046
3038
  channel_id: string
3047
3039
  ): Promise<void> {
3048
3040
  const response = await this.send({
3049
- active_archived_thread_dm: {
3041
+ active_archived_thread: {
3050
3042
  clan_id: clan_id,
3051
3043
  channel_id: channel_id
3052
3044
  },
3053
3045
  });
3054
- return response.active_archived_thread_dm;
3046
+ return response.active_archived_thread;
3055
3047
  }
3056
3048
 
3057
3049
  async checkDuplicateName(