mezon-js 2.7.82 → 2.7.84

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -402,6 +402,8 @@ export interface ApiChannelMessage {
402
402
  //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
403
403
  create_time?: string;
404
404
  //
405
+ display_name?: string;
406
+ //
405
407
  mentions?: string;
406
408
  //The unique ID of this message.
407
409
  message_id: string;
@@ -928,6 +930,14 @@ export interface ApiMessageRef {
928
930
  ref_type?: number;
929
931
  //
930
932
  message_sender_id?: string;
933
+ // original message sendre username
934
+ message_sender_username?: string;
935
+ // original message sender avatar
936
+ mesages_sender_avatar?: string;
937
+ // original sender clan nick name
938
+ message_sender_clan_nick?: string;
939
+ // original sender display name
940
+ message_sender_display_name?:string;
931
941
  //
932
942
  content?:string;
933
943
  //
package/client.ts CHANGED
@@ -238,6 +238,8 @@ export interface ChannelMessage {
238
238
  username?: string;
239
239
  // The clan nick name
240
240
  clan_nick?: string;
241
+ //
242
+ display_name?: string;
241
243
  }
242
244
 
243
245
  /** A list of channel messages, usually a result of a list operation. */
@@ -1069,6 +1071,7 @@ export class Client {
1069
1071
  sender_id: m.sender_id,
1070
1072
  update_time: m.update_time,
1071
1073
  username: m.username,
1074
+ display_name: m.display_name,
1072
1075
  avatar: m.avatar,
1073
1076
  content: m.content ? JSON.parse(m.content) : undefined,
1074
1077
  channel_label: m.channel_label,
package/dist/api.gen.d.ts CHANGED
@@ -228,6 +228,7 @@ export interface ApiChannelMessage {
228
228
  code: number;
229
229
  content: string;
230
230
  create_time?: string;
231
+ display_name?: string;
231
232
  mentions?: string;
232
233
  message_id: string;
233
234
  reactions?: string;
@@ -533,6 +534,10 @@ export interface ApiMessageRef {
533
534
  message_ref_id?: string;
534
535
  ref_type?: number;
535
536
  message_sender_id?: string;
537
+ message_sender_username?: string;
538
+ mesages_sender_avatar?: string;
539
+ message_sender_clan_nick?: string;
540
+ message_sender_display_name?: string;
536
541
  content?: string;
537
542
  has_attachment: boolean;
538
543
  }
package/dist/client.d.ts CHANGED
@@ -112,6 +112,7 @@ export interface ChannelMessage {
112
112
  category_name?: string;
113
113
  username?: string;
114
114
  clan_nick?: string;
115
+ display_name?: string;
115
116
  }
116
117
  /** A list of channel messages, usually a result of a list operation. */
117
118
  export interface ChannelMessageList {
@@ -4647,6 +4647,7 @@ var _DefaultSocket = class _DefaultSocket {
4647
4647
  category_name: message.channel_message.category_name,
4648
4648
  username: message.channel_message.username,
4649
4649
  clan_nick: message.clan_nick,
4650
+ display_name: message.display_name,
4650
4651
  content,
4651
4652
  reactions,
4652
4653
  mentions,
@@ -5536,6 +5537,7 @@ var Client = class {
5536
5537
  sender_id: m.sender_id,
5537
5538
  update_time: m.update_time,
5538
5539
  username: m.username,
5540
+ display_name: m.display_name,
5539
5541
  avatar: m.avatar,
5540
5542
  content: m.content ? JSON.parse(m.content) : void 0,
5541
5543
  channel_label: m.channel_label,
@@ -4618,6 +4618,7 @@ var _DefaultSocket = class _DefaultSocket {
4618
4618
  category_name: message.channel_message.category_name,
4619
4619
  username: message.channel_message.username,
4620
4620
  clan_nick: message.clan_nick,
4621
+ display_name: message.display_name,
4621
4622
  content,
4622
4623
  reactions,
4623
4624
  mentions,
@@ -5507,6 +5508,7 @@ var Client = class {
5507
5508
  sender_id: m.sender_id,
5508
5509
  update_time: m.update_time,
5509
5510
  username: m.username,
5511
+ display_name: m.display_name,
5510
5512
  avatar: m.avatar,
5511
5513
  content: m.content ? JSON.parse(m.content) : void 0,
5512
5514
  channel_label: m.channel_label,
package/dist/socket.d.ts CHANGED
@@ -189,6 +189,7 @@ export interface ChannelMessageEvent {
189
189
  category_name: string;
190
190
  username: string;
191
191
  clan_nick: string;
192
+ display_name: string;
192
193
  reactions?: Array<ApiMessageReaction>;
193
194
  mentions?: Array<ApiMessageMention>;
194
195
  attachments?: Array<ApiMessageAttachment>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.82",
3
+ "version": "2.7.84",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -261,6 +261,8 @@ export interface ChannelMessageEvent {
261
261
  username: string;
262
262
  // The clan nick name
263
263
  clan_nick: string;
264
+ // The display name
265
+ display_name: string;
264
266
  //
265
267
  reactions?: Array<ApiMessageReaction>;
266
268
  //
@@ -801,6 +803,7 @@ export class DefaultSocket implements Socket {
801
803
  category_name: message.channel_message.category_name,
802
804
  username: message.channel_message.username,
803
805
  clan_nick: message.clan_nick,
806
+ display_name: message.display_name,
804
807
  content: content,
805
808
  reactions: reactions,
806
809
  mentions: mentions,