mezon-js 2.10.77 → 2.10.78

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.
@@ -7820,7 +7820,7 @@ var _DefaultSocket = class _DefaultSocket {
7820
7820
  unfollowUsers(user_ids) {
7821
7821
  return this.send({ status_unfollow: { user_ids } });
7822
7822
  }
7823
- updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, mess_topic_id) {
7823
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
7824
7824
  return __async(this, null, function* () {
7825
7825
  const response = yield this.send({
7826
7826
  channel_message_update: {
@@ -7834,7 +7834,7 @@ var _DefaultSocket = class _DefaultSocket {
7834
7834
  is_public,
7835
7835
  hide_editted: hideEditted,
7836
7836
  topic_id,
7837
- mess_topic_id
7837
+ is_update_msg_topic
7838
7838
  }
7839
7839
  });
7840
7840
  return response.channel_message_ack;
@@ -7786,7 +7786,7 @@ var _DefaultSocket = class _DefaultSocket {
7786
7786
  unfollowUsers(user_ids) {
7787
7787
  return this.send({ status_unfollow: { user_ids } });
7788
7788
  }
7789
- updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, mess_topic_id) {
7789
+ updateChatMessage(clan_id, channel_id, mode, is_public, message_id, content, mentions, attachments, hideEditted, topic_id, is_update_msg_topic) {
7790
7790
  return __async(this, null, function* () {
7791
7791
  const response = yield this.send({
7792
7792
  channel_message_update: {
@@ -7800,7 +7800,7 @@ var _DefaultSocket = class _DefaultSocket {
7800
7800
  is_public,
7801
7801
  hide_editted: hideEditted,
7802
7802
  topic_id,
7803
- mess_topic_id
7803
+ is_update_msg_topic
7804
7804
  }
7805
7805
  });
7806
7806
  return response.channel_message_ack;
package/dist/socket.d.ts CHANGED
@@ -221,7 +221,7 @@ interface ChannelMessageUpdate {
221
221
  mode: number;
222
222
  is_public: boolean;
223
223
  topic_id?: string;
224
- mess_topic_id?: string;
224
+ is_update_msg_topic?: boolean;
225
225
  };
226
226
  }
227
227
  /** Remove a message previously sent to a realtime chat channel. */
@@ -686,7 +686,7 @@ export interface Socket {
686
686
  /** Unfollow one or more users from their status updates. */
687
687
  unfollowUsers(user_ids: string[]): Promise<void>;
688
688
  /** Update a chat message on a chat channel in the server. */
689
- 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, mess_topic_id?: string): Promise<ChannelMessageAck>;
689
+ 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): Promise<ChannelMessageAck>;
690
690
  /** Update the status for the current user online. */
691
691
  updateStatus(status?: string): Promise<void>;
692
692
  /** Send a chat message to a chat channel on the server. */
@@ -884,7 +884,7 @@ export declare class DefaultSocket implements Socket {
884
884
  removeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string): Promise<ChannelMessageAck>;
885
885
  rpc(id?: string, payload?: string, http_key?: string): Promise<ApiRpc>;
886
886
  unfollowUsers(user_ids: string[]): Promise<void>;
887
- 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, mess_topic_id?: string): Promise<ChannelMessageAck>;
887
+ 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): Promise<ChannelMessageAck>;
888
888
  updateStatus(status?: string): Promise<void>;
889
889
  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>;
890
890
  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>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.77",
4
+ "version": "2.10.78",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -319,7 +319,7 @@ interface ChannelMessageUpdate {
319
319
  //
320
320
  topic_id?: string;
321
321
  //
322
- mess_topic_id?: string;
322
+ is_update_msg_topic?: boolean;
323
323
  };
324
324
  }
325
325
 
@@ -1000,7 +1000,7 @@ export interface Socket {
1000
1000
  attachments?: Array<ApiMessageAttachment>,
1001
1001
  hideEditted?: boolean,
1002
1002
  topic_id?: string,
1003
- mess_topic_id?: string
1003
+ is_update_msg_topic?: boolean
1004
1004
  ): Promise<ChannelMessageAck>;
1005
1005
 
1006
1006
  /** Update the status for the current user online. */
@@ -2133,7 +2133,7 @@ export class DefaultSocket implements Socket {
2133
2133
  attachments?: Array<ApiMessageAttachment>,
2134
2134
  hideEditted?: boolean,
2135
2135
  topic_id?: string,
2136
- mess_topic_id?: string
2136
+ is_update_msg_topic?: boolean
2137
2137
  ): Promise<ChannelMessageAck> {
2138
2138
  const response = await this.send({
2139
2139
  channel_message_update: {
@@ -2147,7 +2147,7 @@ export class DefaultSocket implements Socket {
2147
2147
  is_public: is_public,
2148
2148
  hide_editted: hideEditted,
2149
2149
  topic_id: topic_id,
2150
- mess_topic_id: mess_topic_id,
2150
+ is_update_msg_topic: is_update_msg_topic,
2151
2151
  },
2152
2152
  });
2153
2153
  return response.channel_message_ack;