mezon-js 2.9.47 → 2.9.49

Sign up to get free protection for your applications and to get access to all the features.
package/client.ts CHANGED
@@ -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. */
@@ -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/client.d.ts CHANGED
@@ -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 {
@@ -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
@@ -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/dist/socket.d.ts CHANGED
@@ -29,6 +29,7 @@ export interface Presence {
29
29
  node: string;
30
30
  /** The status of the user */
31
31
  status: string;
32
+ is_mobile: boolean;
32
33
  }
33
34
  /** A response from a channel join operation. */
34
35
  export interface Channel {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.47",
4
+ "version": "2.9.49",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -36,6 +36,8 @@ export interface Presence {
36
36
  node: string;
37
37
  /** The status of the user */
38
38
  status: string;
39
+ //
40
+ is_mobile: boolean
39
41
  }
40
42
 
41
43
  /** A response from a channel join operation. */