mezon-js 2.12.42 → 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;
@@ -7875,7 +7876,7 @@ var _DefaultSocket = class _DefaultSocket {
7875
7876
  return response.last_seen_message_event;
7876
7877
  });
7877
7878
  }
7878
- writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation) {
7879
+ writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation, message_sender_avatar, message_sender_id, message_sender_username, message_content, message_attachment, message_created_time) {
7879
7880
  return __async(this, null, function* () {
7880
7881
  const response = yield this.send({
7881
7882
  last_pin_message_event: {
@@ -7885,7 +7886,13 @@ var _DefaultSocket = class _DefaultSocket {
7885
7886
  is_public,
7886
7887
  message_id,
7887
7888
  timestamp_seconds,
7888
- operation
7889
+ operation,
7890
+ message_sender_avatar,
7891
+ message_sender_id,
7892
+ message_sender_username,
7893
+ message_content,
7894
+ message_attachment,
7895
+ message_created_time
7889
7896
  }
7890
7897
  });
7891
7898
  return response.last_pin_message_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;
@@ -7841,7 +7842,7 @@ var _DefaultSocket = class _DefaultSocket {
7841
7842
  return response.last_seen_message_event;
7842
7843
  });
7843
7844
  }
7844
- writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation) {
7845
+ writeLastPinMessage(clan_id, channel_id, mode, is_public, message_id, timestamp_seconds, operation, message_sender_avatar, message_sender_id, message_sender_username, message_content, message_attachment, message_created_time) {
7845
7846
  return __async(this, null, function* () {
7846
7847
  const response = yield this.send({
7847
7848
  last_pin_message_event: {
@@ -7851,7 +7852,13 @@ var _DefaultSocket = class _DefaultSocket {
7851
7852
  is_public,
7852
7853
  message_id,
7853
7854
  timestamp_seconds,
7854
- operation
7855
+ operation,
7856
+ message_sender_avatar,
7857
+ message_sender_id,
7858
+ message_sender_username,
7859
+ message_content,
7860
+ message_attachment,
7861
+ message_created_time
7855
7862
  }
7856
7863
  });
7857
7864
  return response.last_pin_message_event;
package/dist/socket.d.ts CHANGED
@@ -883,11 +883,11 @@ 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 */
890
- writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
890
+ 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>;
891
891
  /** Send custom user status */
892
892
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
893
893
  setHeartbeatTimeoutMs(ms: number): void;
@@ -1091,10 +1091,10 @@ 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
- writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
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>;
1098
1098
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
1099
1099
  checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
1100
1100
  writeVoiceReaction(emojis: Array<string>, channel_id: string): Promise<VoiceReactionSend>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.42",
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 */
@@ -1450,7 +1451,13 @@ export interface Socket {
1450
1451
  is_public: boolean,
1451
1452
  message_id: string,
1452
1453
  timestamp_seconds: number,
1453
- operation: number
1454
+ operation: number,
1455
+ message_sender_avatar: string,
1456
+ message_sender_id: string,
1457
+ message_sender_username: string,
1458
+ message_content: string,
1459
+ message_attachment: string,
1460
+ message_created_time: string,
1454
1461
  ): Promise<LastPinMessageEvent>;
1455
1462
 
1456
1463
  /** Send custom user status */
@@ -2667,7 +2674,8 @@ export class DefaultSocket implements Socket {
2667
2674
  message_sender_id: string,
2668
2675
  action_delete: boolean,
2669
2676
  topic_id?: string,
2670
- emoji_recent_id?: string
2677
+ emoji_recent_id?: string,
2678
+ sender_name?: string
2671
2679
  ): Promise<ApiMessageReaction> {
2672
2680
  const response = await this.send({
2673
2681
  message_reaction_event: {
@@ -2683,7 +2691,8 @@ export class DefaultSocket implements Socket {
2683
2691
  message_sender_id: message_sender_id,
2684
2692
  action: action_delete,
2685
2693
  topic_id: topic_id,
2686
- emoji_recent_id: emoji_recent_id
2694
+ emoji_recent_id: emoji_recent_id,
2695
+ sender_name: sender_name
2687
2696
  },
2688
2697
  });
2689
2698
  return response.message_reaction_event;
@@ -2736,7 +2745,13 @@ export class DefaultSocket implements Socket {
2736
2745
  is_public: boolean,
2737
2746
  message_id: string,
2738
2747
  timestamp_seconds: number,
2739
- operation: number
2748
+ operation: number,
2749
+ message_sender_avatar: string,
2750
+ message_sender_id: string,
2751
+ message_sender_username: string,
2752
+ message_content: string,
2753
+ message_attachment: string,
2754
+ message_created_time: string,
2740
2755
  ): Promise<LastPinMessageEvent> {
2741
2756
  const response = await this.send({
2742
2757
  last_pin_message_event: {
@@ -2747,6 +2762,12 @@ export class DefaultSocket implements Socket {
2747
2762
  message_id: message_id,
2748
2763
  timestamp_seconds: timestamp_seconds,
2749
2764
  operation: operation,
2765
+ message_sender_avatar: message_sender_avatar,
2766
+ message_sender_id: message_sender_id,
2767
+ message_sender_username: message_sender_username,
2768
+ message_content: message_content,
2769
+ message_attachment: message_attachment,
2770
+ message_created_time: message_created_time,
2750
2771
  },
2751
2772
  });
2752
2773
  return response.last_pin_message_event;