mezon-js 2.7.99 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -23,7 +23,7 @@ export interface ChannelUserListChannelUser {
23
23
  /** A single user-role pair. */
24
24
  export interface ClanUserListClanUser {
25
25
  //from the `nick_name` field in the `clan_desc_profile` table.
26
- nick_name?: string;
26
+ clan_nick?: string;
27
27
  //Their relationship to the role.
28
28
  role_id?: string;
29
29
  //User.
package/client.ts CHANGED
@@ -126,6 +126,7 @@ export enum ChannelType {
126
126
  CHANNEL_TYPE_VOICE = 4,
127
127
  CHANNEL_TYPE_FORUM = 5,
128
128
  CHANNEL_TYPE_ANNOUNCEMENT = 6,
129
+ CHANNEL_TYPE_THREAD = 7,
129
130
  }
130
131
  export enum ChannelStreamMode {
131
132
  STREAM_MODE_CHANNEL = 2,
@@ -1242,7 +1243,8 @@ export class Client {
1242
1243
  username: gu.user!.username,
1243
1244
  metadata: gu.user!.metadata ? JSON.parse(gu.user!.metadata!) : undefined
1244
1245
  },
1245
- role_id: gu!.role_id
1246
+ role_id: gu!.role_id,
1247
+ clan_nick: gu!.clan_nick
1246
1248
  })
1247
1249
  });
1248
1250
  return Promise.resolve(result);
package/dist/api.gen.d.ts CHANGED
@@ -9,7 +9,7 @@ export interface ChannelUserListChannelUser {
9
9
  }
10
10
  /** A single user-role pair. */
11
11
  export interface ClanUserListClanUser {
12
- nick_name?: string;
12
+ clan_nick?: string;
13
13
  role_id?: string;
14
14
  user?: ApiUser;
15
15
  }
package/dist/client.d.ts CHANGED
@@ -23,7 +23,8 @@ export declare enum ChannelType {
23
23
  CHANNEL_TYPE_DM = 3,
24
24
  CHANNEL_TYPE_VOICE = 4,
25
25
  CHANNEL_TYPE_FORUM = 5,
26
- CHANNEL_TYPE_ANNOUNCEMENT = 6
26
+ CHANNEL_TYPE_ANNOUNCEMENT = 6,
27
+ CHANNEL_TYPE_THREAD = 7
27
28
  }
28
29
  export declare enum ChannelStreamMode {
29
30
  STREAM_MODE_CHANNEL = 2,
@@ -5196,6 +5196,7 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
5196
5196
  ChannelType2[ChannelType2["CHANNEL_TYPE_VOICE"] = 4] = "CHANNEL_TYPE_VOICE";
5197
5197
  ChannelType2[ChannelType2["CHANNEL_TYPE_FORUM"] = 5] = "CHANNEL_TYPE_FORUM";
5198
5198
  ChannelType2[ChannelType2["CHANNEL_TYPE_ANNOUNCEMENT"] = 6] = "CHANNEL_TYPE_ANNOUNCEMENT";
5199
+ ChannelType2[ChannelType2["CHANNEL_TYPE_THREAD"] = 7] = "CHANNEL_TYPE_THREAD";
5199
5200
  return ChannelType2;
5200
5201
  })(ChannelType || {});
5201
5202
  var ChannelStreamMode = /* @__PURE__ */ ((ChannelStreamMode2) => {
@@ -5867,7 +5868,8 @@ var Client = class {
5867
5868
  username: gu.user.username,
5868
5869
  metadata: gu.user.metadata ? JSON.parse(gu.user.metadata) : void 0
5869
5870
  },
5870
- role_id: gu.role_id
5871
+ role_id: gu.role_id,
5872
+ clan_nick: gu.clan_nick
5871
5873
  });
5872
5874
  });
5873
5875
  return Promise.resolve(result);
@@ -5167,6 +5167,7 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
5167
5167
  ChannelType2[ChannelType2["CHANNEL_TYPE_VOICE"] = 4] = "CHANNEL_TYPE_VOICE";
5168
5168
  ChannelType2[ChannelType2["CHANNEL_TYPE_FORUM"] = 5] = "CHANNEL_TYPE_FORUM";
5169
5169
  ChannelType2[ChannelType2["CHANNEL_TYPE_ANNOUNCEMENT"] = 6] = "CHANNEL_TYPE_ANNOUNCEMENT";
5170
+ ChannelType2[ChannelType2["CHANNEL_TYPE_THREAD"] = 7] = "CHANNEL_TYPE_THREAD";
5170
5171
  return ChannelType2;
5171
5172
  })(ChannelType || {});
5172
5173
  var ChannelStreamMode = /* @__PURE__ */ ((ChannelStreamMode2) => {
@@ -5838,7 +5839,8 @@ var Client = class {
5838
5839
  username: gu.user.username,
5839
5840
  metadata: gu.user.metadata ? JSON.parse(gu.user.metadata) : void 0
5840
5841
  },
5841
- role_id: gu.role_id
5842
+ role_id: gu.role_id,
5843
+ clan_nick: gu.clan_nick
5842
5844
  });
5843
5845
  });
5844
5846
  return Promise.resolve(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.99",
3
+ "version": "2.8.2",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },