mezon-js 2.13.1 → 2.13.2

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.
@@ -8086,7 +8086,7 @@ var _DefaultSocket = class _DefaultSocket {
8086
8086
  return response.message_reaction_event;
8087
8087
  });
8088
8088
  }
8089
- writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name) {
8089
+ writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name, topic_id) {
8090
8090
  return __async(this, null, function* () {
8091
8091
  const response = yield this.send({
8092
8092
  message_typing_event: {
@@ -8094,7 +8094,8 @@ var _DefaultSocket = class _DefaultSocket {
8094
8094
  channel_id,
8095
8095
  mode,
8096
8096
  is_public,
8097
- sender_display_name
8097
+ sender_display_name,
8098
+ topic_id
8098
8099
  }
8099
8100
  });
8100
8101
  return response.message_typing_event;
@@ -8052,7 +8052,7 @@ var _DefaultSocket = class _DefaultSocket {
8052
8052
  return response.message_reaction_event;
8053
8053
  });
8054
8054
  }
8055
- writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name) {
8055
+ writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name, topic_id) {
8056
8056
  return __async(this, null, function* () {
8057
8057
  const response = yield this.send({
8058
8058
  message_typing_event: {
@@ -8060,7 +8060,8 @@ var _DefaultSocket = class _DefaultSocket {
8060
8060
  channel_id,
8061
8061
  mode,
8062
8062
  is_public,
8063
- sender_display_name
8063
+ sender_display_name,
8064
+ topic_id
8064
8065
  }
8065
8066
  });
8066
8067
  return response.message_typing_event;
package/dist/socket.d.ts CHANGED
@@ -193,6 +193,7 @@ export interface MessageTypingEvent {
193
193
  is_public: boolean;
194
194
  sender_username: string;
195
195
  sender_display_name: string;
196
+ topic_id?: string;
196
197
  }
197
198
  export interface UserProfileUpdatedEvent {
198
199
  user_id: string;
@@ -935,7 +936,7 @@ export interface Socket {
935
936
  /** Send a quick menu event to a chat channel on the server. */
936
937
  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>;
937
938
  /** Send message typing */
938
- writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
939
+ writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
939
940
  /** Send message reaction */
940
941
  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>;
941
942
  /** Send last seen message */
@@ -1157,7 +1158,7 @@ export declare class DefaultSocket implements Socket {
1157
1158
  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>;
1158
1159
  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>;
1159
1160
  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>;
1160
- writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
1161
+ writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
1161
1162
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
1162
1163
  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>;
1163
1164
  writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.13.1",
3
+ "version": "2.13.2",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -317,6 +317,8 @@ export interface MessageTypingEvent {
317
317
  sender_username: string;
318
318
  // sender display name
319
319
  sender_display_name: string;
320
+ // topic id
321
+ topic_id?: string;
320
322
  }
321
323
 
322
324
  // user profile updated event
@@ -1513,6 +1515,7 @@ export interface Socket {
1513
1515
  mode: number,
1514
1516
  is_public: boolean,
1515
1517
  sender_display_name: string,
1518
+ topic_id?: string
1516
1519
  ): Promise<MessageTypingEvent>;
1517
1520
 
1518
1521
  /** Send message reaction */
@@ -2905,7 +2908,8 @@ export class DefaultSocket implements Socket {
2905
2908
  channel_id: string,
2906
2909
  mode: number,
2907
2910
  is_public: boolean,
2908
- sender_display_name: string
2911
+ sender_display_name: string,
2912
+ topic_id?: string
2909
2913
  ): Promise<MessageTypingEvent> {
2910
2914
  const response = await this.send({
2911
2915
  message_typing_event: {
@@ -2913,7 +2917,8 @@ export class DefaultSocket implements Socket {
2913
2917
  channel_id: channel_id,
2914
2918
  mode: mode,
2915
2919
  is_public: is_public,
2916
- sender_display_name: sender_display_name
2920
+ sender_display_name: sender_display_name,
2921
+ topic_id: topic_id
2917
2922
  },
2918
2923
  });
2919
2924
  return response.message_typing_event;