mezon-js 2.9.48 → 2.9.50

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
@@ -641,7 +641,7 @@ export interface ApiChannelDescription {
641
641
  //
642
642
  count_mess_unread?: number;
643
643
  //
644
- create_time_seconds?: number;
644
+ create_time_second?: number;
645
645
  //creator ID.
646
646
  creator_id?: string;
647
647
  //
@@ -665,7 +665,7 @@ export interface ApiChannelDescription {
665
665
  //The channel type.
666
666
  type?: number;
667
667
  //
668
- update_time_seconds?: number;
668
+ update_time_second?: number;
669
669
  //
670
670
  user_id?: Array<string>;
671
671
  //
@@ -707,7 +707,7 @@ export interface ApiChannelMessage {
707
707
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
708
708
  create_time?: string;
709
709
  //
710
- create_time_seconds?: number;
710
+ create_time_second?: number;
711
711
  //
712
712
  display_name?: string;
713
713
  //
@@ -725,7 +725,7 @@ export interface ApiChannelMessage {
725
725
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
726
726
  update_time?: string;
727
727
  //
728
- update_time_seconds?: number;
728
+ update_time_second?: number;
729
729
  //The username of the message sender, if any.
730
730
  username?: string;
731
731
  // channel mode
@@ -1666,7 +1666,7 @@ export interface ApiPinMessage {
1666
1666
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
1667
1667
  create_time?: string;
1668
1668
  //
1669
- create_time_seconds?: number;
1669
+ create_time_second?: number;
1670
1670
  //
1671
1671
  id?: string;
1672
1672
  //
package/client.ts CHANGED
@@ -218,9 +218,9 @@ export interface ChannelMessage {
218
218
  //
219
219
  display_name?: string;
220
220
  //
221
- create_time_seconds?: number;
221
+ create_time_second?: number;
222
222
  //
223
- update_time_seconds?: number;
223
+ update_time_second?: number;
224
224
  //
225
225
  mode?: number;
226
226
  //
@@ -283,6 +283,8 @@ export interface User {
283
283
  update_time?: string;
284
284
  /** The username of the user's account. */
285
285
  username?: string;
286
+ //
287
+ is_mobile?: boolean;
286
288
  }
287
289
 
288
290
  /** A collection of zero or more users. */
@@ -1434,8 +1436,8 @@ export class Client {
1434
1436
  reactions: reactions,
1435
1437
  references: references,
1436
1438
  clan_id: m.clan_id,
1437
- create_time_seconds: m.create_time_seconds,
1438
- update_time_seconds: m.update_time_seconds,
1439
+ create_time_second: m.create_time_second,
1440
+ update_time_second: m.update_time_second,
1439
1441
  hide_editted: m.hide_editted,
1440
1442
  });
1441
1443
  });
@@ -2161,6 +2163,7 @@ export class Client {
2161
2163
  timezone: f.user!.timezone,
2162
2164
  update_time: f.user!.update_time,
2163
2165
  username: f.user!.username,
2166
+ is_mobile: f.user?.is_mobile,
2164
2167
  metadata: f.user!.metadata
2165
2168
  ? JSON.parse(f.user!.metadata!)
2166
2169
  : undefined,
package/dist/api.gen.d.ts CHANGED
@@ -376,7 +376,7 @@ export interface ApiChannelDescription {
376
376
  clan_id?: string;
377
377
  clan_name?: string;
378
378
  count_mess_unread?: number;
379
- create_time_seconds?: number;
379
+ create_time_second?: number;
380
380
  creator_id?: string;
381
381
  creator_name?: string;
382
382
  is_mute?: boolean;
@@ -388,7 +388,7 @@ export interface ApiChannelDescription {
388
388
  parrent_id?: string;
389
389
  is_online?: Array<boolean>;
390
390
  type?: number;
391
- update_time_seconds?: number;
391
+ update_time_second?: number;
392
392
  user_id?: Array<string>;
393
393
  usernames?: string;
394
394
  status?: number;
@@ -410,7 +410,7 @@ export interface ApiChannelMessage {
410
410
  code: number;
411
411
  content: string;
412
412
  create_time?: string;
413
- create_time_seconds?: number;
413
+ create_time_second?: number;
414
414
  display_name?: string;
415
415
  mentions?: string;
416
416
  message_id: string;
@@ -419,7 +419,7 @@ export interface ApiChannelMessage {
419
419
  references?: string;
420
420
  sender_id: string;
421
421
  update_time?: string;
422
- update_time_seconds?: number;
422
+ update_time_second?: number;
423
423
  username?: string;
424
424
  mode?: number;
425
425
  hide_editted?: boolean;
@@ -968,7 +968,7 @@ export interface ApiPinMessage {
968
968
  channel_id?: string;
969
969
  content?: string;
970
970
  create_time?: string;
971
- create_time_seconds?: number;
971
+ create_time_second?: number;
972
972
  id?: string;
973
973
  message_id?: string;
974
974
  sender_id?: string;
package/dist/client.d.ts CHANGED
@@ -69,8 +69,8 @@ export interface ChannelMessage {
69
69
  clan_nick?: string;
70
70
  clan_avatar?: string;
71
71
  display_name?: string;
72
- create_time_seconds?: number;
73
- update_time_seconds?: number;
72
+ create_time_second?: number;
73
+ update_time_second?: number;
74
74
  mode?: number;
75
75
  message_id?: string;
76
76
  hide_editted?: boolean;
@@ -127,6 +127,7 @@ export interface User {
127
127
  update_time?: string;
128
128
  /** The username of the user's account. */
129
129
  username?: string;
130
+ is_mobile?: boolean;
130
131
  }
131
132
  /** A collection of zero or more users. */
132
133
  export interface Users {
@@ -6249,8 +6249,8 @@ var _DefaultSocket = class _DefaultSocket {
6249
6249
  references,
6250
6250
  hide_editted: message.channel_message.hide_editted,
6251
6251
  is_public: message.channel_message.is_public,
6252
- create_time_seconds: message.channel_message.create_time_seconds,
6253
- update_time_seconds: message.channel_message.update_time_seconds
6252
+ create_time_second: message.channel_message.create_time_second,
6253
+ update_time_second: message.channel_message.update_time_second
6254
6254
  };
6255
6255
  this.onchannelmessage(e);
6256
6256
  } else if (message.message_typing_event) {
@@ -7348,8 +7348,8 @@ var Client = class {
7348
7348
  reactions,
7349
7349
  references,
7350
7350
  clan_id: m.clan_id,
7351
- create_time_seconds: m.create_time_seconds,
7352
- update_time_seconds: m.update_time_seconds,
7351
+ create_time_second: m.create_time_second,
7352
+ update_time_second: m.update_time_second,
7353
7353
  hide_editted: m.hide_editted
7354
7354
  });
7355
7355
  });
@@ -7785,6 +7785,7 @@ var Client = class {
7785
7785
  return Promise.resolve(result);
7786
7786
  }
7787
7787
  response.friends.forEach((f) => {
7788
+ var _a;
7788
7789
  result.friends.push({
7789
7790
  user: {
7790
7791
  avatar_url: f.user.avatar_url,
@@ -7802,6 +7803,7 @@ var Client = class {
7802
7803
  timezone: f.user.timezone,
7803
7804
  update_time: f.user.update_time,
7804
7805
  username: f.user.username,
7806
+ is_mobile: (_a = f.user) == null ? void 0 : _a.is_mobile,
7805
7807
  metadata: f.user.metadata ? JSON.parse(f.user.metadata) : void 0
7806
7808
  },
7807
7809
  state: f.state
@@ -6220,8 +6220,8 @@ var _DefaultSocket = class _DefaultSocket {
6220
6220
  references,
6221
6221
  hide_editted: message.channel_message.hide_editted,
6222
6222
  is_public: message.channel_message.is_public,
6223
- create_time_seconds: message.channel_message.create_time_seconds,
6224
- update_time_seconds: message.channel_message.update_time_seconds
6223
+ create_time_second: message.channel_message.create_time_second,
6224
+ update_time_second: message.channel_message.update_time_second
6225
6225
  };
6226
6226
  this.onchannelmessage(e);
6227
6227
  } else if (message.message_typing_event) {
@@ -7319,8 +7319,8 @@ var Client = class {
7319
7319
  reactions,
7320
7320
  references,
7321
7321
  clan_id: m.clan_id,
7322
- create_time_seconds: m.create_time_seconds,
7323
- update_time_seconds: m.update_time_seconds,
7322
+ create_time_second: m.create_time_second,
7323
+ update_time_second: m.update_time_second,
7324
7324
  hide_editted: m.hide_editted
7325
7325
  });
7326
7326
  });
@@ -7756,6 +7756,7 @@ var Client = class {
7756
7756
  return Promise.resolve(result);
7757
7757
  }
7758
7758
  response.friends.forEach((f) => {
7759
+ var _a;
7759
7760
  result.friends.push({
7760
7761
  user: {
7761
7762
  avatar_url: f.user.avatar_url,
@@ -7773,6 +7774,7 @@ var Client = class {
7773
7774
  timezone: f.user.timezone,
7774
7775
  update_time: f.user.update_time,
7775
7776
  username: f.user.username,
7777
+ is_mobile: (_a = f.user) == null ? void 0 : _a.is_mobile,
7776
7778
  metadata: f.user.metadata ? JSON.parse(f.user.metadata) : void 0
7777
7779
  },
7778
7780
  state: f.state
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.48",
4
+ "version": "2.9.50",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -1151,8 +1151,8 @@ export class DefaultSocket implements Socket {
1151
1151
  references: references,
1152
1152
  hide_editted: message.channel_message.hide_editted,
1153
1153
  is_public: message.channel_message.is_public,
1154
- create_time_seconds: message.channel_message.create_time_seconds,
1155
- update_time_seconds: message.channel_message.update_time_seconds,
1154
+ create_time_second: message.channel_message.create_time_second,
1155
+ update_time_second: message.channel_message.update_time_second,
1156
1156
  };
1157
1157
  this.onchannelmessage(e);
1158
1158
  } else if (message.message_typing_event) {