mezon-js 2.8.37 → 2.8.38
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 +2 -25
- package/dist/api.gen.d.ts +1 -14
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +3 -3
package/api.gen.ts
CHANGED
|
@@ -66,31 +66,6 @@ export interface ApiAddAppRequest {
|
|
|
66
66
|
token?: string;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
/** App information. */
|
|
71
|
-
export interface ApiApp {
|
|
72
|
-
//
|
|
73
|
-
applogo?: string;
|
|
74
|
-
//
|
|
75
|
-
appname?: string;
|
|
76
|
-
//
|
|
77
|
-
creator_id?: string;
|
|
78
|
-
//The UNIX time when the app was disabled.
|
|
79
|
-
disable_time?: string;
|
|
80
|
-
//
|
|
81
|
-
online?: boolean;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/** A list of apps. */
|
|
85
|
-
export interface ApiAppList {
|
|
86
|
-
//A list of apps.
|
|
87
|
-
apps?: Array<ApiApp>;
|
|
88
|
-
//Next cursor.
|
|
89
|
-
next_cursor?: string;
|
|
90
|
-
//Approximate total number of apps.
|
|
91
|
-
total_count?: number;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
69
|
/**
|
|
95
70
|
* - USER_ROLE_ADMIN: All access
|
|
96
71
|
- USER_ROLE_DEVELOPER: Best for developers, also enables APIs and API explorer
|
|
@@ -361,6 +336,8 @@ export interface ApiAddRoleChannelDescRequest {
|
|
|
361
336
|
|
|
362
337
|
/** App information. */
|
|
363
338
|
export interface ApiApp {
|
|
339
|
+
// app id
|
|
340
|
+
id: string;
|
|
364
341
|
//
|
|
365
342
|
applogo?: string;
|
|
366
343
|
//
|
package/dist/api.gen.d.ts
CHANGED
|
@@ -34,20 +34,6 @@ export interface ApiAddAppRequest {
|
|
|
34
34
|
role?: ApiAppRole;
|
|
35
35
|
token?: string;
|
|
36
36
|
}
|
|
37
|
-
/** App information. */
|
|
38
|
-
export interface ApiApp {
|
|
39
|
-
applogo?: string;
|
|
40
|
-
appname?: string;
|
|
41
|
-
creator_id?: string;
|
|
42
|
-
disable_time?: string;
|
|
43
|
-
online?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/** A list of apps. */
|
|
46
|
-
export interface ApiAppList {
|
|
47
|
-
apps?: Array<ApiApp>;
|
|
48
|
-
next_cursor?: string;
|
|
49
|
-
total_count?: number;
|
|
50
|
-
}
|
|
51
37
|
/**
|
|
52
38
|
* - USER_ROLE_ADMIN: All access
|
|
53
39
|
- USER_ROLE_DEVELOPER: Best for developers, also enables APIs and API explorer
|
|
@@ -211,6 +197,7 @@ export interface ApiAddRoleChannelDescRequest {
|
|
|
211
197
|
}
|
|
212
198
|
/** App information. */
|
|
213
199
|
export interface ApiApp {
|
|
200
|
+
id: string;
|
|
214
201
|
applogo?: string;
|
|
215
202
|
appname?: string;
|
|
216
203
|
creator_id?: string;
|
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -5015,9 +5015,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
5015
5015
|
unfollowUsers(user_ids) {
|
|
5016
5016
|
return this.send({ status_unfollow: { user_ids } });
|
|
5017
5017
|
}
|
|
5018
|
-
updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments) {
|
|
5018
|
+
updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments, showEditted) {
|
|
5019
5019
|
return __async(this, null, function* () {
|
|
5020
|
-
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode } });
|
|
5020
|
+
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, showEditted } });
|
|
5021
5021
|
return response.channel_message_ack;
|
|
5022
5022
|
});
|
|
5023
5023
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -4986,9 +4986,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
4986
4986
|
unfollowUsers(user_ids) {
|
|
4987
4987
|
return this.send({ status_unfollow: { user_ids } });
|
|
4988
4988
|
}
|
|
4989
|
-
updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments) {
|
|
4989
|
+
updateChatMessage(clan_id, channel_id, mode, message_id, content, mentions, attachments, showEditted) {
|
|
4990
4990
|
return __async(this, null, function* () {
|
|
4991
|
-
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode } });
|
|
4991
|
+
const response = yield this.send({ channel_message_update: { clan_id, channel_id, message_id, content, mentions, attachments, mode, showEditted } });
|
|
4992
4992
|
return response.channel_message_ack;
|
|
4993
4993
|
});
|
|
4994
4994
|
}
|
package/dist/socket.d.ts
CHANGED
|
@@ -465,7 +465,7 @@ export interface Socket {
|
|
|
465
465
|
/** Unfollow one or more users from their status updates. */
|
|
466
466
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
|
467
467
|
/** Update a chat message on a chat channel in the server. */
|
|
468
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment
|
|
468
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, showEditted?: boolean): Promise<ChannelMessageAck>;
|
|
469
469
|
/** Update the status for the current user online. */
|
|
470
470
|
updateStatus(status?: string): Promise<void>;
|
|
471
471
|
/** Send a chat message to a chat channel on the server. */
|
|
@@ -607,7 +607,7 @@ export declare class DefaultSocket implements Socket {
|
|
|
607
607
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
|
608
608
|
sendPartyData(party_id: string, op_code: number, data: string | Uint8Array): Promise<void>;
|
|
609
609
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
|
610
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment
|
|
610
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, showEditted?: boolean): Promise<ChannelMessageAck>;
|
|
611
611
|
updateStatus(status?: string): Promise<void>;
|
|
612
612
|
writeChatMessage(clan_id: string, channel_id: string, mode: number, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string): Promise<ChannelMessageAck>;
|
|
613
613
|
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean): Promise<ApiMessageReaction>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -679,7 +679,7 @@ export interface Socket {
|
|
|
679
679
|
unfollowUsers(user_ids : string[]) : Promise<void>;
|
|
680
680
|
|
|
681
681
|
/** Update a chat message on a chat channel in the server. */
|
|
682
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment
|
|
682
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, showEditted?: boolean) : Promise<ChannelMessageAck>;
|
|
683
683
|
|
|
684
684
|
/** Update the status for the current user online. */
|
|
685
685
|
updateStatus(status? : string) : Promise<void>;
|
|
@@ -1301,8 +1301,8 @@ export class DefaultSocket implements Socket {
|
|
|
1301
1301
|
return this.send({status_unfollow: {user_ids: user_ids}});
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
|
-
async updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment
|
|
1305
|
-
const response = await this.send({channel_message_update: {clan_id: clan_id, channel_id: channel_id, message_id: message_id, content: content, mentions: mentions, attachments: attachments, mode: mode}});
|
|
1304
|
+
async updateChatMessage(clan_id: string, channel_id: string, mode: number, message_id : string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, showEditted?: boolean): Promise<ChannelMessageAck> {
|
|
1305
|
+
const response = await this.send({channel_message_update: {clan_id: clan_id, channel_id: channel_id, message_id: message_id, content: content, mentions: mentions, attachments: attachments, mode: mode, showEditted: showEditted}});
|
|
1306
1306
|
return response.channel_message_ack;
|
|
1307
1307
|
}
|
|
1308
1308
|
|