mezon-js 2.7.79 → 2.7.80
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 +10 -4
- package/client.ts +4 -4
- package/dist/api.gen.d.ts +5 -2
- package/dist/client.d.ts +2 -2
- package/dist/mezon-js.cjs.js +4 -4
- package/dist/mezon-js.esm.mjs +4 -4
- package/dist/socket.d.ts +4 -4
- package/package.json +1 -1
- package/socket.ts +6 -6
package/api.gen.ts
CHANGED
@@ -369,6 +369,8 @@ export interface ApiChannelDescription {
|
|
369
369
|
type?: number;
|
370
370
|
//
|
371
371
|
user_id?: Array<string>;
|
372
|
+
//
|
373
|
+
usernames?: string;
|
372
374
|
}
|
373
375
|
|
374
376
|
/** A message sent on a channel. */
|
@@ -377,12 +379,16 @@ export interface ApiChannelMessage {
|
|
377
379
|
attachments?: string;
|
378
380
|
//
|
379
381
|
avatar?: string;
|
382
|
+
//
|
383
|
+
category_name?: string;
|
380
384
|
//The channel this message belongs to.
|
381
385
|
channel_id: string;
|
382
386
|
//The name of the chat room, or an empty string if this message was not sent through a chat room.
|
383
387
|
channel_label: string;
|
384
388
|
//The clan this message belong to.
|
385
389
|
clan_id?: string;
|
390
|
+
//
|
391
|
+
clan_logo?: string;
|
386
392
|
//The code representing a message type or category.
|
387
393
|
code: number;
|
388
394
|
//The content payload.
|
@@ -403,10 +409,6 @@ export interface ApiChannelMessage {
|
|
403
409
|
sender_id: string;
|
404
410
|
//The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
|
405
411
|
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
412
|
//The username of the message sender, if any.
|
411
413
|
username?: string;
|
412
414
|
}
|
@@ -702,11 +704,15 @@ export interface ApiDirectChannelVoice {
|
|
702
704
|
//
|
703
705
|
channel_label?: string;
|
704
706
|
//
|
707
|
+
channel_private?: number;
|
708
|
+
//
|
705
709
|
clan_id?: string;
|
706
710
|
//
|
707
711
|
clan_name?: string;
|
708
712
|
//
|
709
713
|
meeting_code?: string;
|
714
|
+
//
|
715
|
+
type?: number;
|
710
716
|
}
|
711
717
|
|
712
718
|
/** 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
|
-
|
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
|
-
|
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
|
-
|
1073
|
-
|
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
@@ -211,14 +211,17 @@ export interface ApiChannelDescription {
|
|
211
211
|
status?: number;
|
212
212
|
type?: number;
|
213
213
|
user_id?: Array<string>;
|
214
|
+
usernames?: string;
|
214
215
|
}
|
215
216
|
/** A message sent on a channel. */
|
216
217
|
export interface ApiChannelMessage {
|
217
218
|
attachments?: string;
|
218
219
|
avatar?: string;
|
220
|
+
category_name?: string;
|
219
221
|
channel_id: string;
|
220
222
|
channel_label: string;
|
221
223
|
clan_id?: string;
|
224
|
+
clan_logo?: string;
|
222
225
|
code: number;
|
223
226
|
content: string;
|
224
227
|
create_time?: string;
|
@@ -229,8 +232,6 @@ export interface ApiChannelMessage {
|
|
229
232
|
references?: string;
|
230
233
|
sender_id: string;
|
231
234
|
update_time?: string;
|
232
|
-
user_id_one?: string;
|
233
|
-
user_id_two?: string;
|
234
235
|
username?: string;
|
235
236
|
}
|
236
237
|
/** */
|
@@ -403,9 +404,11 @@ export interface ApiDeleteStorageObjectsRequest {
|
|
403
404
|
export interface ApiDirectChannelVoice {
|
404
405
|
channel_id?: string;
|
405
406
|
channel_label?: string;
|
407
|
+
channel_private?: number;
|
406
408
|
clan_id?: string;
|
407
409
|
clan_name?: string;
|
408
410
|
meeting_code?: string;
|
411
|
+
type?: number;
|
409
412
|
}
|
410
413
|
/** Represents an event to be passed through the server to registered event handlers. */
|
411
414
|
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
|
-
|
112
|
-
|
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. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -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
|
-
|
4619
|
-
|
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
|
-
|
5514
|
-
|
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) : [],
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -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
|
-
|
4590
|
-
|
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
|
-
|
5485
|
-
|
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
|
-
|
43
|
-
|
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
|
-
|
189
|
-
|
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
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
799
|
-
|
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,
|