mezon-js 2.10.38 → 2.10.39

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/api.gen.ts CHANGED
@@ -1575,6 +1575,8 @@ export interface ApiMessageReaction {
1575
1575
  channel_label: string;
1576
1576
  /** The message that user react */
1577
1577
  message_id: string;
1578
+ //
1579
+ topic_id?: string;
1578
1580
  }
1579
1581
 
1580
1582
  export interface ApiListChannelAppsResponse {
package/dist/api.gen.d.ts CHANGED
@@ -914,6 +914,7 @@ export interface ApiMessageReaction {
914
914
  channel_label: string;
915
915
  /** The message that user react */
916
916
  message_id: string;
917
+ topic_id?: string;
917
918
  }
918
919
  export interface ApiListChannelAppsResponse {
919
920
  channel_apps?: Array<ApiChannelAppResponse>;
@@ -7785,7 +7785,7 @@ var _DefaultSocket = class _DefaultSocket {
7785
7785
  unfollowUsers(user_ids) {
7786
7786
  return this.send({ status_unfollow: { user_ids } });
7787
7787
  }
7788
- updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted) {
7788
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id) {
7789
7789
  return __async(this, null, function* () {
7790
7790
  const response = yield this.send({
7791
7791
  channel_message_update: {
@@ -7797,7 +7797,8 @@ var _DefaultSocket = class _DefaultSocket {
7797
7797
  attachments,
7798
7798
  mode,
7799
7799
  is_public,
7800
- hide_editted: hideEditted
7800
+ hide_editted: hideEditted,
7801
+ topic_id
7801
7802
  }
7802
7803
  });
7803
7804
  return response.channel_message_ack;
@@ -7828,7 +7829,7 @@ var _DefaultSocket = class _DefaultSocket {
7828
7829
  return response.channel_message_ack;
7829
7830
  });
7830
7831
  }
7831
- writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete) {
7832
+ writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id) {
7832
7833
  return __async(this, null, function* () {
7833
7834
  const response = yield this.send({
7834
7835
  message_reaction_event: {
@@ -7842,7 +7843,8 @@ var _DefaultSocket = class _DefaultSocket {
7842
7843
  emoji,
7843
7844
  count,
7844
7845
  message_sender_id,
7845
- action: action_delete
7846
+ action: action_delete,
7847
+ topic_id
7846
7848
  }
7847
7849
  });
7848
7850
  return response.message_reaction_event;
@@ -7751,7 +7751,7 @@ var _DefaultSocket = class _DefaultSocket {
7751
7751
  unfollowUsers(user_ids) {
7752
7752
  return this.send({ status_unfollow: { user_ids } });
7753
7753
  }
7754
- updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted) {
7754
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id) {
7755
7755
  return __async(this, null, function* () {
7756
7756
  const response = yield this.send({
7757
7757
  channel_message_update: {
@@ -7763,7 +7763,8 @@ var _DefaultSocket = class _DefaultSocket {
7763
7763
  attachments,
7764
7764
  mode,
7765
7765
  is_public,
7766
- hide_editted: hideEditted
7766
+ hide_editted: hideEditted,
7767
+ topic_id
7767
7768
  }
7768
7769
  });
7769
7770
  return response.channel_message_ack;
@@ -7794,7 +7795,7 @@ var _DefaultSocket = class _DefaultSocket {
7794
7795
  return response.channel_message_ack;
7795
7796
  });
7796
7797
  }
7797
- writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete) {
7798
+ writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id) {
7798
7799
  return __async(this, null, function* () {
7799
7800
  const response = yield this.send({
7800
7801
  message_reaction_event: {
@@ -7808,7 +7809,8 @@ var _DefaultSocket = class _DefaultSocket {
7808
7809
  emoji,
7809
7810
  count,
7810
7811
  message_sender_id,
7811
- action: action_delete
7812
+ action: action_delete,
7813
+ topic_id
7812
7814
  }
7813
7815
  });
7814
7816
  return response.message_reaction_event;
package/dist/socket.d.ts CHANGED
@@ -218,6 +218,7 @@ interface ChannelMessageUpdate {
218
218
  /** The mode payload. */
219
219
  mode: number;
220
220
  is_public: boolean;
221
+ topic_id?: string;
221
222
  };
222
223
  }
223
224
  /** Remove a message previously sent to a realtime chat channel. */
@@ -703,7 +704,7 @@ export interface Socket {
703
704
  /** Unfollow one or more users from their status updates. */
704
705
  unfollowUsers(user_ids: string[]): Promise<void>;
705
706
  /** Update a chat message on a chat channel in the server. */
706
- 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): Promise<ChannelMessageAck>;
707
+ 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): Promise<ChannelMessageAck>;
707
708
  /** Update the status for the current user online. */
708
709
  updateStatus(status?: string): Promise<void>;
709
710
  /** Send a chat message to a chat channel on the server. */
@@ -711,7 +712,7 @@ export interface Socket {
711
712
  /** Send message typing */
712
713
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
713
714
  /** Send message reaction */
714
- 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): Promise<ApiMessageReaction>;
715
+ 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): Promise<ApiMessageReaction>;
715
716
  /** Send last seen message */
716
717
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
717
718
  /** Send last pin message */
@@ -897,10 +898,10 @@ export declare class DefaultSocket implements Socket {
897
898
  removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean): Promise<ChannelMessageAck>;
898
899
  rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
899
900
  unfollowUsers(user_ids: string[]): Promise<void>;
900
- 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): Promise<ChannelMessageAck>;
901
+ 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): Promise<ChannelMessageAck>;
901
902
  updateStatus(status?: string): Promise<void>;
902
903
  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>;
903
- 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): Promise<ApiMessageReaction>;
904
+ 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): Promise<ApiMessageReaction>;
904
905
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
905
906
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
906
907
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.38",
4
+ "version": "2.10.39",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -311,6 +311,8 @@ interface ChannelMessageUpdate {
311
311
  mode: number;
312
312
  // Is public
313
313
  is_public: boolean;
314
+ //
315
+ topic_id?: string;
314
316
  };
315
317
  }
316
318
 
@@ -1011,7 +1013,8 @@ export interface Socket {
1011
1013
  content: any,
1012
1014
  mentions?: Array<ApiMessageMention>,
1013
1015
  attachments?: Array<ApiMessageAttachment>,
1014
- hideEditted?: boolean
1016
+ hideEditted?: boolean,
1017
+ topic_id?: string
1015
1018
  ): Promise<ChannelMessageAck>;
1016
1019
 
1017
1020
  /** Update the status for the current user online. */
@@ -1054,7 +1057,8 @@ export interface Socket {
1054
1057
  emoji: string,
1055
1058
  count: number,
1056
1059
  message_sender_id: string,
1057
- action_delete: boolean
1060
+ action_delete: boolean,
1061
+ topic_id?: string
1058
1062
  ): Promise<ApiMessageReaction>;
1059
1063
 
1060
1064
  /** Send last seen message */
@@ -2110,7 +2114,8 @@ export class DefaultSocket implements Socket {
2110
2114
  content: any,
2111
2115
  mentions?: Array<ApiMessageMention>,
2112
2116
  attachments?: Array<ApiMessageAttachment>,
2113
- hideEditted?: boolean
2117
+ hideEditted?: boolean,
2118
+ topic_id?: string
2114
2119
  ): Promise<ChannelMessageAck> {
2115
2120
  const response = await this.send({
2116
2121
  channel_message_update: {
@@ -2123,6 +2128,7 @@ export class DefaultSocket implements Socket {
2123
2128
  mode: mode,
2124
2129
  is_public: is_public,
2125
2130
  hide_editted: hideEditted,
2131
+ topic_id: topic_id,
2126
2132
  },
2127
2133
  });
2128
2134
  return response.channel_message_ack;
@@ -2178,7 +2184,8 @@ export class DefaultSocket implements Socket {
2178
2184
  emoji: string,
2179
2185
  count: number,
2180
2186
  message_sender_id: string,
2181
- action_delete: boolean
2187
+ action_delete: boolean,
2188
+ topic_id?: string
2182
2189
  ): Promise<ApiMessageReaction> {
2183
2190
  const response = await this.send({
2184
2191
  message_reaction_event: {
@@ -2193,6 +2200,7 @@ export class DefaultSocket implements Socket {
2193
2200
  count: count,
2194
2201
  message_sender_id: message_sender_id,
2195
2202
  action: action_delete,
2203
+ topic_id: topic_id,
2196
2204
  },
2197
2205
  });
2198
2206
  return response.message_reaction_event;