mezon-js 2.12.43 → 2.12.44

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.
@@ -7824,7 +7824,7 @@ var _DefaultSocket = class _DefaultSocket {
7824
7824
  return response.channel_message_ack;
7825
7825
  });
7826
7826
  }
7827
- writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id, emoji_recent_id) {
7827
+ writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id, emoji_recent_id, sender_name) {
7828
7828
  return __async(this, null, function* () {
7829
7829
  const response = yield this.send({
7830
7830
  message_reaction_event: {
@@ -7840,7 +7840,8 @@ var _DefaultSocket = class _DefaultSocket {
7840
7840
  message_sender_id,
7841
7841
  action: action_delete,
7842
7842
  topic_id,
7843
- emoji_recent_id
7843
+ emoji_recent_id,
7844
+ sender_name
7844
7845
  }
7845
7846
  });
7846
7847
  return response.message_reaction_event;
@@ -7790,7 +7790,7 @@ var _DefaultSocket = class _DefaultSocket {
7790
7790
  return response.channel_message_ack;
7791
7791
  });
7792
7792
  }
7793
- writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id, emoji_recent_id) {
7793
+ writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id, emoji_recent_id, sender_name) {
7794
7794
  return __async(this, null, function* () {
7795
7795
  const response = yield this.send({
7796
7796
  message_reaction_event: {
@@ -7806,7 +7806,8 @@ var _DefaultSocket = class _DefaultSocket {
7806
7806
  message_sender_id,
7807
7807
  action: action_delete,
7808
7808
  topic_id,
7809
- emoji_recent_id
7809
+ emoji_recent_id,
7810
+ sender_name
7810
7811
  }
7811
7812
  });
7812
7813
  return response.message_reaction_event;
package/dist/socket.d.ts CHANGED
@@ -883,7 +883,7 @@ export interface Socket {
883
883
  /** Send message typing */
884
884
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
885
885
  /** Send message reaction */
886
- 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): Promise<ApiMessageReaction>;
886
+ 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>;
887
887
  /** Send last seen message */
888
888
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
889
889
  /** Send last pin message */
@@ -1091,7 +1091,7 @@ export declare class DefaultSocket implements Socket {
1091
1091
  updateStatus(status?: string): Promise<void>;
1092
1092
  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>;
1093
1093
  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>;
1094
- 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): Promise<ApiMessageReaction>;
1094
+ 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>;
1095
1095
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
1096
1096
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
1097
1097
  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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.43",
3
+ "version": "2.12.44",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1429,7 +1429,8 @@ export interface Socket {
1429
1429
  message_sender_id: string,
1430
1430
  action_delete: boolean,
1431
1431
  topic_id?: string,
1432
- emoji_recent_id?: string
1432
+ emoji_recent_id?: string,
1433
+ sender_name?: string
1433
1434
  ): Promise<ApiMessageReaction>;
1434
1435
 
1435
1436
  /** Send last seen message */
@@ -1451,17 +1452,11 @@ export interface Socket {
1451
1452
  message_id: string,
1452
1453
  timestamp_seconds: number,
1453
1454
  operation: number,
1454
- // avatar
1455
1455
  message_sender_avatar: string,
1456
- // message sender id
1457
1456
  message_sender_id: string,
1458
- // message sender username
1459
1457
  message_sender_username: string,
1460
- // message content
1461
1458
  message_content: string,
1462
- // attachment
1463
1459
  message_attachment: string,
1464
- // create time
1465
1460
  message_created_time: string,
1466
1461
  ): Promise<LastPinMessageEvent>;
1467
1462
 
@@ -2679,7 +2674,8 @@ export class DefaultSocket implements Socket {
2679
2674
  message_sender_id: string,
2680
2675
  action_delete: boolean,
2681
2676
  topic_id?: string,
2682
- emoji_recent_id?: string
2677
+ emoji_recent_id?: string,
2678
+ sender_name?: string
2683
2679
  ): Promise<ApiMessageReaction> {
2684
2680
  const response = await this.send({
2685
2681
  message_reaction_event: {
@@ -2695,7 +2691,8 @@ export class DefaultSocket implements Socket {
2695
2691
  message_sender_id: message_sender_id,
2696
2692
  action: action_delete,
2697
2693
  topic_id: topic_id,
2698
- emoji_recent_id: emoji_recent_id
2694
+ emoji_recent_id: emoji_recent_id,
2695
+ sender_name: sender_name
2699
2696
  },
2700
2697
  });
2701
2698
  return response.message_reaction_event;
@@ -2749,17 +2746,11 @@ export class DefaultSocket implements Socket {
2749
2746
  message_id: string,
2750
2747
  timestamp_seconds: number,
2751
2748
  operation: number,
2752
- // avatar
2753
2749
  message_sender_avatar: string,
2754
- // message sender id
2755
2750
  message_sender_id: string,
2756
- // message sender username
2757
2751
  message_sender_username: string,
2758
- // message content
2759
2752
  message_content: string,
2760
- // attachment
2761
2753
  message_attachment: string,
2762
- // create time
2763
2754
  message_created_time: string,
2764
2755
  ): Promise<LastPinMessageEvent> {
2765
2756
  const response = await this.send({