mezon-js 2.13.48 → 2.13.50
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 +14 -2
- package/dist/mezon-js.esm.mjs +14 -2
- package/dist/socket.d.ts +5 -3
- package/package.json +1 -1
- package/socket.ts +25 -3
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -8231,7 +8231,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8231
8231
|
return response.ephemeral_message_send;
|
|
8232
8232
|
});
|
|
8233
8233
|
}
|
|
8234
|
-
writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id) {
|
|
8234
|
+
writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id, id) {
|
|
8235
8235
|
return __async(this, null, function* () {
|
|
8236
8236
|
const response = yield this.send({
|
|
8237
8237
|
ephemeral_message_send: {
|
|
@@ -8249,7 +8249,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8249
8249
|
mention_everyone,
|
|
8250
8250
|
avatar,
|
|
8251
8251
|
code,
|
|
8252
|
-
topic_id
|
|
8252
|
+
topic_id,
|
|
8253
|
+
id
|
|
8253
8254
|
}
|
|
8254
8255
|
}
|
|
8255
8256
|
});
|
|
@@ -8366,6 +8367,17 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8366
8367
|
return response.custom_status_event;
|
|
8367
8368
|
});
|
|
8368
8369
|
}
|
|
8370
|
+
writeActiveArchivedThreadDM(clan_id, channel_id) {
|
|
8371
|
+
return __async(this, null, function* () {
|
|
8372
|
+
const response = yield this.send({
|
|
8373
|
+
active_archived_thread_dm: {
|
|
8374
|
+
clan_id,
|
|
8375
|
+
channel_id
|
|
8376
|
+
}
|
|
8377
|
+
});
|
|
8378
|
+
return response.active_archived_thread_dm;
|
|
8379
|
+
});
|
|
8380
|
+
}
|
|
8369
8381
|
checkDuplicateName(name, condition_id, type) {
|
|
8370
8382
|
return __async(this, null, function* () {
|
|
8371
8383
|
const response = yield this.send({
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -8197,7 +8197,7 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8197
8197
|
return response.ephemeral_message_send;
|
|
8198
8198
|
});
|
|
8199
8199
|
}
|
|
8200
|
-
writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id) {
|
|
8200
|
+
writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id, id) {
|
|
8201
8201
|
return __async(this, null, function* () {
|
|
8202
8202
|
const response = yield this.send({
|
|
8203
8203
|
ephemeral_message_send: {
|
|
@@ -8215,7 +8215,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8215
8215
|
mention_everyone,
|
|
8216
8216
|
avatar,
|
|
8217
8217
|
code,
|
|
8218
|
-
topic_id
|
|
8218
|
+
topic_id,
|
|
8219
|
+
id
|
|
8219
8220
|
}
|
|
8220
8221
|
}
|
|
8221
8222
|
});
|
|
@@ -8332,6 +8333,17 @@ var _DefaultSocket = class _DefaultSocket {
|
|
|
8332
8333
|
return response.custom_status_event;
|
|
8333
8334
|
});
|
|
8334
8335
|
}
|
|
8336
|
+
writeActiveArchivedThreadDM(clan_id, channel_id) {
|
|
8337
|
+
return __async(this, null, function* () {
|
|
8338
|
+
const response = yield this.send({
|
|
8339
|
+
active_archived_thread_dm: {
|
|
8340
|
+
clan_id,
|
|
8341
|
+
channel_id
|
|
8342
|
+
}
|
|
8343
|
+
});
|
|
8344
|
+
return response.active_archived_thread_dm;
|
|
8345
|
+
});
|
|
8346
|
+
}
|
|
8335
8347
|
checkDuplicateName(name, condition_id, type) {
|
|
8336
8348
|
return __async(this, null, function* () {
|
|
8337
8349
|
const response = yield this.send({
|
package/dist/socket.d.ts
CHANGED
|
@@ -946,11 +946,11 @@ export interface Socket {
|
|
|
946
946
|
/** Update the status for the current user online. */
|
|
947
947
|
updateStatus(status?: string): Promise<void>;
|
|
948
948
|
/** Send a chat message to a chat channel on the server. */
|
|
949
|
-
writeChatMessage(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>;
|
|
949
|
+
writeChatMessage(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, id?: string): Promise<ChannelMessageAck>;
|
|
950
950
|
/** Send a chat message to a chat channel on the server. */
|
|
951
951
|
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>;
|
|
952
952
|
/** Send a quick menu event to a chat channel on the server. */
|
|
953
|
-
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>;
|
|
953
|
+
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, id?: string): Promise<QuickMenuEvent>;
|
|
954
954
|
/** Send message typing */
|
|
955
955
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
|
|
956
956
|
/** Send message reaction */
|
|
@@ -961,6 +961,7 @@ export interface Socket {
|
|
|
961
961
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
|
|
962
962
|
/** Send custom user status */
|
|
963
963
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
964
|
+
writeActiveArchivedThreadDM(clan_id: string, channel_id: string): Promise<void>;
|
|
964
965
|
setHeartbeatTimeoutMs(ms: number): void;
|
|
965
966
|
getHeartbeatTimeoutMs(): number;
|
|
966
967
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
|
@@ -1173,13 +1174,14 @@ export declare class DefaultSocket implements Socket {
|
|
|
1173
1174
|
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>;
|
|
1174
1175
|
updateStatus(status?: string): Promise<void>;
|
|
1175
1176
|
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>;
|
|
1176
|
-
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>;
|
|
1177
|
+
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, id?: string): Promise<ChannelMessageAck>;
|
|
1177
1178
|
writeChatMessage(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>;
|
|
1178
1179
|
writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string, emoji_recent_id?: string, sender_name?: string): Promise<ApiMessageReaction>;
|
|
1179
1180
|
writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
|
|
1180
1181
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
|
1181
1182
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number, message_sender_avatar: string, message_sender_id: string, message_sender_username: string, message_content: string, message_attachment: string, message_created_time: string): Promise<LastPinMessageEvent>;
|
|
1182
1183
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
|
1184
|
+
writeActiveArchivedThreadDM(clan_id: string, channel_id: string): Promise<void>;
|
|
1183
1185
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
|
1184
1186
|
writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
|
|
1185
1187
|
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
|
@@ -1494,7 +1494,8 @@ export interface Socket {
|
|
|
1494
1494
|
mention_everyone?: boolean,
|
|
1495
1495
|
avatar?: string,
|
|
1496
1496
|
code?: number,
|
|
1497
|
-
topic_id?: string
|
|
1497
|
+
topic_id?: string,
|
|
1498
|
+
id?: string
|
|
1498
1499
|
): Promise<ChannelMessageAck>;
|
|
1499
1500
|
|
|
1500
1501
|
/** Send a chat message to a chat channel on the server. */
|
|
@@ -1530,7 +1531,8 @@ export interface Socket {
|
|
|
1530
1531
|
mention_everyone?: boolean,
|
|
1531
1532
|
avatar?: string,
|
|
1532
1533
|
code?: number,
|
|
1533
|
-
topic_id?: string
|
|
1534
|
+
topic_id?: string,
|
|
1535
|
+
id?: string
|
|
1534
1536
|
): Promise<QuickMenuEvent>;
|
|
1535
1537
|
|
|
1536
1538
|
/** Send message typing */
|
|
@@ -1596,6 +1598,11 @@ export interface Socket {
|
|
|
1596
1598
|
no_clear: boolean
|
|
1597
1599
|
): Promise<CustomStatusEvent>;
|
|
1598
1600
|
|
|
1601
|
+
writeActiveArchivedThreadDM(
|
|
1602
|
+
clan_id: string,
|
|
1603
|
+
channel_id: string
|
|
1604
|
+
): Promise<void>;
|
|
1605
|
+
|
|
1599
1606
|
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
|
1600
1607
|
setHeartbeatTimeoutMs(ms: number): void;
|
|
1601
1608
|
|
|
@@ -2841,7 +2848,8 @@ export class DefaultSocket implements Socket {
|
|
|
2841
2848
|
mention_everyone?: Boolean,
|
|
2842
2849
|
avatar?: string,
|
|
2843
2850
|
code?: number,
|
|
2844
|
-
topic_id?: string
|
|
2851
|
+
topic_id?: string,
|
|
2852
|
+
id?: string
|
|
2845
2853
|
): Promise<ChannelMessageAck> {
|
|
2846
2854
|
const response = await this.send({
|
|
2847
2855
|
ephemeral_message_send: {
|
|
@@ -2860,6 +2868,7 @@ export class DefaultSocket implements Socket {
|
|
|
2860
2868
|
avatar: avatar,
|
|
2861
2869
|
code: code,
|
|
2862
2870
|
topic_id: topic_id,
|
|
2871
|
+
id: id,
|
|
2863
2872
|
}
|
|
2864
2873
|
}
|
|
2865
2874
|
});
|
|
@@ -3032,6 +3041,19 @@ export class DefaultSocket implements Socket {
|
|
|
3032
3041
|
return response.custom_status_event;
|
|
3033
3042
|
}
|
|
3034
3043
|
|
|
3044
|
+
async writeActiveArchivedThreadDM(
|
|
3045
|
+
clan_id: string,
|
|
3046
|
+
channel_id: string
|
|
3047
|
+
): Promise<void> {
|
|
3048
|
+
const response = await this.send({
|
|
3049
|
+
active_archived_thread_dm: {
|
|
3050
|
+
clan_id: clan_id,
|
|
3051
|
+
channel_id: channel_id
|
|
3052
|
+
},
|
|
3053
|
+
});
|
|
3054
|
+
return response.active_archived_thread_dm;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3035
3057
|
async checkDuplicateName(
|
|
3036
3058
|
name: string,
|
|
3037
3059
|
condition_id: string,
|