mezon-js 2.12.55 → 2.12.57
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/dist/mezon-js.cjs.js +7 -4
- package/dist/mezon-js.esm.mjs +7 -4
- package/dist/socket.d.ts +5 -4
- package/package.json +1 -1
- package/socket.ts +14 -3
package/dist/mezon-js.cjs.js
CHANGED
@@ -7739,7 +7739,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7739
7739
|
}
|
7740
7740
|
});
|
7741
7741
|
}
|
7742
|
-
removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id) {
|
7742
|
+
removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id, mentions, references) {
|
7743
7743
|
return __async(this, null, function* () {
|
7744
7744
|
const response = yield this.send({
|
7745
7745
|
channel_message_remove: {
|
@@ -7749,7 +7749,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7749
7749
|
message_id,
|
7750
7750
|
is_public,
|
7751
7751
|
has_attachment,
|
7752
|
-
topic_id
|
7752
|
+
topic_id,
|
7753
|
+
mentions,
|
7754
|
+
references
|
7753
7755
|
}
|
7754
7756
|
});
|
7755
7757
|
return response.channel_message_ack;
|
@@ -7770,7 +7772,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7770
7772
|
unfollowUsers(user_ids) {
|
7771
7773
|
return this.send({ status_unfollow: { user_ids } });
|
7772
7774
|
}
|
7773
|
-
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
|
7775
|
+
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic, old_mentions) {
|
7774
7776
|
return __async(this, null, function* () {
|
7775
7777
|
const response = yield this.send({
|
7776
7778
|
channel_message_update: {
|
@@ -7784,7 +7786,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7784
7786
|
is_public,
|
7785
7787
|
hide_editted: hideEditted,
|
7786
7788
|
topic_id,
|
7787
|
-
is_update_msg_topic
|
7789
|
+
is_update_msg_topic,
|
7790
|
+
old_mentions
|
7788
7791
|
}
|
7789
7792
|
});
|
7790
7793
|
return response.channel_message_ack;
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7705,7 +7705,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7705
7705
|
}
|
7706
7706
|
});
|
7707
7707
|
}
|
7708
|
-
removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id) {
|
7708
|
+
removeChatMessage(clan_id, channel_id, mode, is_public, message_id, has_attachment, topic_id, mentions, references) {
|
7709
7709
|
return __async(this, null, function* () {
|
7710
7710
|
const response = yield this.send({
|
7711
7711
|
channel_message_remove: {
|
@@ -7715,7 +7715,9 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7715
7715
|
message_id,
|
7716
7716
|
is_public,
|
7717
7717
|
has_attachment,
|
7718
|
-
topic_id
|
7718
|
+
topic_id,
|
7719
|
+
mentions,
|
7720
|
+
references
|
7719
7721
|
}
|
7720
7722
|
});
|
7721
7723
|
return response.channel_message_ack;
|
@@ -7736,7 +7738,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7736
7738
|
unfollowUsers(user_ids) {
|
7737
7739
|
return this.send({ status_unfollow: { user_ids } });
|
7738
7740
|
}
|
7739
|
-
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
|
7741
|
+
updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic, old_mentions) {
|
7740
7742
|
return __async(this, null, function* () {
|
7741
7743
|
const response = yield this.send({
|
7742
7744
|
channel_message_update: {
|
@@ -7750,7 +7752,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7750
7752
|
is_public,
|
7751
7753
|
hide_editted: hideEditted,
|
7752
7754
|
topic_id,
|
7753
|
-
is_update_msg_topic
|
7755
|
+
is_update_msg_topic,
|
7756
|
+
old_mentions
|
7754
7757
|
}
|
7755
7758
|
});
|
7756
7759
|
return response.channel_message_ack;
|
package/dist/socket.d.ts
CHANGED
@@ -306,6 +306,7 @@ interface ChannelMessageUpdate {
|
|
306
306
|
is_public: boolean;
|
307
307
|
topic_id?: string;
|
308
308
|
is_update_msg_topic?: boolean;
|
309
|
+
old_mentions?: string;
|
309
310
|
};
|
310
311
|
}
|
311
312
|
/** Remove a message previously sent to a realtime chat channel. */
|
@@ -894,13 +895,13 @@ export interface Socket {
|
|
894
895
|
/** handle user join/leave channel voice on the server. */
|
895
896
|
handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number): Promise<void>;
|
896
897
|
/** Remove a chat message from a chat channel on the server. */
|
897
|
-
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string): Promise<ChannelMessageAck>;
|
898
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
|
898
899
|
/** Execute an RPC function to the server. */
|
899
900
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
900
901
|
/** Unfollow one or more users from their status updates. */
|
901
902
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
902
903
|
/** Update a chat message on a chat channel in the server. */
|
903
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
|
904
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
|
904
905
|
/** Update the status for the current user online. */
|
905
906
|
updateStatus(status?: string): Promise<void>;
|
906
907
|
/** Send a chat message to a chat channel on the server. */
|
@@ -1115,10 +1116,10 @@ export declare class DefaultSocket implements Socket {
|
|
1115
1116
|
joinChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<Channel>;
|
1116
1117
|
handleParticipantMeetState(clan_id: string, channel_id: string, display_name: string, state: number): Promise<void>;
|
1117
1118
|
leaveChat(clan_id: string, channel_id: string, channel_type: number, is_public: boolean): Promise<void>;
|
1118
|
-
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string): Promise<ChannelMessageAck>;
|
1119
|
+
removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: string, references?: string): Promise<ChannelMessageAck>;
|
1119
1120
|
rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
|
1120
1121
|
unfollowUsers(user_ids: string[]): Promise<void>;
|
1121
|
-
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
|
1122
|
+
updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean, old_mentions?: string): Promise<ChannelMessageAck>;
|
1122
1123
|
updateStatus(status?: string): Promise<void>;
|
1123
1124
|
writeQuickMenuEvent(menu_name: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<QuickMenuEvent>;
|
1124
1125
|
writeEphemeralMessage(receiver_id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -478,6 +478,8 @@ interface ChannelMessageUpdate {
|
|
478
478
|
topic_id?: string;
|
479
479
|
//
|
480
480
|
is_update_msg_topic?: boolean;
|
481
|
+
//
|
482
|
+
old_mentions?: string;
|
481
483
|
};
|
482
484
|
}
|
483
485
|
|
@@ -1386,7 +1388,9 @@ export interface Socket {
|
|
1386
1388
|
is_public: boolean,
|
1387
1389
|
message_id: string,
|
1388
1390
|
has_attachment?: boolean,
|
1389
|
-
topic_id?: string
|
1391
|
+
topic_id?: string,
|
1392
|
+
mentions?:string,
|
1393
|
+
references?: string
|
1390
1394
|
): Promise<ChannelMessageAck>;
|
1391
1395
|
|
1392
1396
|
/** Execute an RPC function to the server. */
|
@@ -1407,7 +1411,8 @@ export interface Socket {
|
|
1407
1411
|
attachments?: Array<ApiMessageAttachment>,
|
1408
1412
|
hideEditted?: boolean,
|
1409
1413
|
topic_id?: string,
|
1410
|
-
is_update_msg_topic?: boolean
|
1414
|
+
is_update_msg_topic?: boolean,
|
1415
|
+
old_mentions?: string
|
1411
1416
|
): Promise<ChannelMessageAck>;
|
1412
1417
|
|
1413
1418
|
/** Update the status for the current user online. */
|
@@ -2595,6 +2600,8 @@ export class DefaultSocket implements Socket {
|
|
2595
2600
|
message_id: string,
|
2596
2601
|
has_attachment?: boolean,
|
2597
2602
|
topic_id?: string,
|
2603
|
+
mentions?: string,
|
2604
|
+
references?: string
|
2598
2605
|
): Promise<ChannelMessageAck> {
|
2599
2606
|
const response = await this.send({
|
2600
2607
|
channel_message_remove: {
|
@@ -2605,6 +2612,8 @@ export class DefaultSocket implements Socket {
|
|
2605
2612
|
is_public: is_public,
|
2606
2613
|
has_attachment: has_attachment,
|
2607
2614
|
topic_id: topic_id,
|
2615
|
+
mentions: mentions,
|
2616
|
+
references: references
|
2608
2617
|
},
|
2609
2618
|
});
|
2610
2619
|
|
@@ -2638,7 +2647,8 @@ export class DefaultSocket implements Socket {
|
|
2638
2647
|
attachments?: Array<ApiMessageAttachment>,
|
2639
2648
|
hideEditted?: boolean,
|
2640
2649
|
topic_id?: string,
|
2641
|
-
is_update_msg_topic?: boolean
|
2650
|
+
is_update_msg_topic?: boolean,
|
2651
|
+
old_mentions?: string
|
2642
2652
|
): Promise<ChannelMessageAck> {
|
2643
2653
|
const response = await this.send({
|
2644
2654
|
channel_message_update: {
|
@@ -2653,6 +2663,7 @@ export class DefaultSocket implements Socket {
|
|
2653
2663
|
hide_editted: hideEditted,
|
2654
2664
|
topic_id: topic_id,
|
2655
2665
|
is_update_msg_topic: is_update_msg_topic,
|
2666
|
+
old_mentions: old_mentions
|
2656
2667
|
},
|
2657
2668
|
});
|
2658
2669
|
return response.channel_message_ack;
|