mezon-js 2.7.79 → 2.7.81

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -352,6 +352,8 @@ export interface ApiChannelDescription {
352
352
  //creator ID.
353
353
  creator_id?: string;
354
354
  //
355
+ creator_name?: string;
356
+ //
355
357
  last_pin_message?: string;
356
358
  //
357
359
  last_seen_message?: ApiChannelMessageHeader;
@@ -369,6 +371,8 @@ export interface ApiChannelDescription {
369
371
  type?: number;
370
372
  //
371
373
  user_id?: Array<string>;
374
+ //
375
+ usernames?: string;
372
376
  }
373
377
 
374
378
  /** A message sent on a channel. */
@@ -377,12 +381,16 @@ export interface ApiChannelMessage {
377
381
  attachments?: string;
378
382
  //
379
383
  avatar?: string;
384
+ //
385
+ category_name?: string;
380
386
  //The channel this message belongs to.
381
387
  channel_id: string;
382
388
  //The name of the chat room, or an empty string if this message was not sent through a chat room.
383
389
  channel_label: string;
384
390
  //The clan this message belong to.
385
391
  clan_id?: string;
392
+ //
393
+ clan_logo?: string;
386
394
  //The code representing a message type or category.
387
395
  code: number;
388
396
  //The content payload.
@@ -403,10 +411,6 @@ export interface ApiChannelMessage {
403
411
  sender_id: string;
404
412
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
405
413
  update_time?: string;
406
- //The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
407
- user_id_one?: string;
408
- //The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
409
- user_id_two?: string;
410
414
  //The username of the message sender, if any.
411
415
  username?: string;
412
416
  }
@@ -702,11 +706,15 @@ export interface ApiDirectChannelVoice {
702
706
  //
703
707
  channel_label?: string;
704
708
  //
709
+ channel_private?: number;
710
+ //
705
711
  clan_id?: string;
706
712
  //
707
713
  clan_name?: string;
708
714
  //
709
715
  meeting_code?: string;
716
+ //
717
+ type?: number;
710
718
  }
711
719
 
712
720
  /** Represents an event to be passed through the server to registered event handlers. */
package/client.ts CHANGED
@@ -230,9 +230,9 @@ export interface ChannelMessage {
230
230
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
231
231
  update_time?: string;
232
232
  //The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
233
- user_id_one?: string;
233
+ clan_logo?: string;
234
234
  //The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
235
- user_id_two?: string;
235
+ category_name?: string;
236
236
  //The username of the message sender, if any.
237
237
  username?: string;
238
238
  }
@@ -1069,8 +1069,8 @@ export class Client {
1069
1069
  avatar: m.avatar,
1070
1070
  content: m.content ? JSON.parse(m.content) : undefined,
1071
1071
  channel_label: m.channel_label,
1072
- user_id_one: m.user_id_one,
1073
- user_id_two: m.user_id_two,
1072
+ clan_logo: m.clan_logo,
1073
+ category_name: m.category_name,
1074
1074
  attachments: m.attachments ? JSON.parse(m.attachments) : [],
1075
1075
  mentions: m.mentions ? JSON.parse(m.mentions) : [],
1076
1076
  reactions: m.reactions ? JSON.parse(m.reactions) : [],
package/dist/api.gen.d.ts CHANGED
@@ -202,6 +202,7 @@ export interface ApiChannelDescription {
202
202
  clan_id?: string;
203
203
  count_mess_unread?: number;
204
204
  creator_id?: string;
205
+ creator_name?: string;
205
206
  last_pin_message?: string;
206
207
  last_seen_message?: ApiChannelMessageHeader;
207
208
  last_sent_message?: ApiChannelMessageHeader;
@@ -211,14 +212,17 @@ export interface ApiChannelDescription {
211
212
  status?: number;
212
213
  type?: number;
213
214
  user_id?: Array<string>;
215
+ usernames?: string;
214
216
  }
215
217
  /** A message sent on a channel. */
216
218
  export interface ApiChannelMessage {
217
219
  attachments?: string;
218
220
  avatar?: string;
221
+ category_name?: string;
219
222
  channel_id: string;
220
223
  channel_label: string;
221
224
  clan_id?: string;
225
+ clan_logo?: string;
222
226
  code: number;
223
227
  content: string;
224
228
  create_time?: string;
@@ -229,8 +233,6 @@ export interface ApiChannelMessage {
229
233
  references?: string;
230
234
  sender_id: string;
231
235
  update_time?: string;
232
- user_id_one?: string;
233
- user_id_two?: string;
234
236
  username?: string;
235
237
  }
236
238
  /** */
@@ -403,9 +405,11 @@ export interface ApiDeleteStorageObjectsRequest {
403
405
  export interface ApiDirectChannelVoice {
404
406
  channel_id?: string;
405
407
  channel_label?: string;
408
+ channel_private?: number;
406
409
  clan_id?: string;
407
410
  clan_name?: string;
408
411
  meeting_code?: string;
412
+ type?: number;
409
413
  }
410
414
  /** Represents an event to be passed through the server to registered event handlers. */
411
415
  export interface ApiEvent {
package/dist/client.d.ts CHANGED
@@ -108,8 +108,8 @@ export interface ChannelMessage {
108
108
  persistent?: boolean;
109
109
  sender_id: string;
110
110
  update_time?: string;
111
- user_id_one?: string;
112
- user_id_two?: string;
111
+ clan_logo?: string;
112
+ category_name?: string;
113
113
  username?: string;
114
114
  }
115
115
  /** A list of channel messages, usually a result of a list operation. */
@@ -4615,8 +4615,8 @@ var _DefaultSocket = class _DefaultSocket {
4615
4615
  id: message.channel_message.message_id,
4616
4616
  sender_id: message.channel_message.sender_id,
4617
4617
  update_time: message.channel_message.update_time,
4618
- user_id_one: message.channel_message.user_id_one,
4619
- user_id_two: message.channel_message.user_id_two,
4618
+ clan_logo: message.channel_message.clan_logo,
4619
+ category_name: message.channel_message.category_name,
4620
4620
  username: message.channel_message.username,
4621
4621
  content,
4622
4622
  reactions,
@@ -5510,8 +5510,8 @@ var Client = class {
5510
5510
  avatar: m.avatar,
5511
5511
  content: m.content ? JSON.parse(m.content) : void 0,
5512
5512
  channel_label: m.channel_label,
5513
- user_id_one: m.user_id_one,
5514
- user_id_two: m.user_id_two,
5513
+ clan_logo: m.clan_logo,
5514
+ category_name: m.category_name,
5515
5515
  attachments: m.attachments ? JSON.parse(m.attachments) : [],
5516
5516
  mentions: m.mentions ? JSON.parse(m.mentions) : [],
5517
5517
  reactions: m.reactions ? JSON.parse(m.reactions) : [],
@@ -4586,8 +4586,8 @@ var _DefaultSocket = class _DefaultSocket {
4586
4586
  id: message.channel_message.message_id,
4587
4587
  sender_id: message.channel_message.sender_id,
4588
4588
  update_time: message.channel_message.update_time,
4589
- user_id_one: message.channel_message.user_id_one,
4590
- user_id_two: message.channel_message.user_id_two,
4589
+ clan_logo: message.channel_message.clan_logo,
4590
+ category_name: message.channel_message.category_name,
4591
4591
  username: message.channel_message.username,
4592
4592
  content,
4593
4593
  reactions,
@@ -5481,8 +5481,8 @@ var Client = class {
5481
5481
  avatar: m.avatar,
5482
5482
  content: m.content ? JSON.parse(m.content) : void 0,
5483
5483
  channel_label: m.channel_label,
5484
- user_id_one: m.user_id_one,
5485
- user_id_two: m.user_id_two,
5484
+ clan_logo: m.clan_logo,
5485
+ category_name: m.category_name,
5486
5486
  attachments: m.attachments ? JSON.parse(m.attachments) : [],
5487
5487
  mentions: m.mentions ? JSON.parse(m.mentions) : [],
5488
5488
  reactions: m.reactions ? JSON.parse(m.reactions) : [],
package/dist/socket.d.ts CHANGED
@@ -39,8 +39,8 @@ export interface Channel {
39
39
  presences: Presence[];
40
40
  /** The presence of the current user, i.e. yourself. */
41
41
  self: Presence;
42
- user_id_one: string;
43
- user_id_two: string;
42
+ clan_logo: string;
43
+ category_name: string;
44
44
  }
45
45
  export interface ClanJoin {
46
46
  clan_join: {
@@ -185,8 +185,8 @@ export interface ChannelMessageEvent {
185
185
  persistent?: boolean;
186
186
  sender_id: string;
187
187
  update_time: string;
188
- user_id_one: string;
189
- user_id_two: string;
188
+ clan_logo: string;
189
+ category_name: string;
190
190
  username: string;
191
191
  reactions?: Array<ApiMessageReaction>;
192
192
  mentions?: Array<ApiMessageMention>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.79",
3
+ "version": "2.7.81",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -49,9 +49,9 @@ export interface Channel {
49
49
  /** The presence of the current user, i.e. yourself. */
50
50
  self: Presence;
51
51
  // The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
52
- user_id_one: string;
52
+ clan_logo: string;
53
53
  // The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
54
- user_id_two: string;
54
+ category_name: string;
55
55
  }
56
56
 
57
57
  export interface ClanJoin {
@@ -254,9 +254,9 @@ export interface ChannelMessageEvent {
254
254
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
255
255
  update_time: string;
256
256
  //The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
257
- user_id_one: string;
257
+ clan_logo: string;
258
258
  //The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
259
- user_id_two: string;
259
+ category_name: string;
260
260
  //The username of the message sender, if any.
261
261
  username: string;
262
262
  //
@@ -795,8 +795,8 @@ export class DefaultSocket implements Socket {
795
795
  id: message.channel_message.message_id,
796
796
  sender_id: message.channel_message.sender_id,
797
797
  update_time: message.channel_message.update_time,
798
- user_id_one: message.channel_message.user_id_one,
799
- user_id_two: message.channel_message.user_id_two,
798
+ clan_logo: message.channel_message.clan_logo,
799
+ category_name: message.channel_message.category_name,
800
800
  username: message.channel_message.username,
801
801
  content: content,
802
802
  reactions: reactions,