mezon-js 2.8.68 → 2.8.70

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
@@ -487,7 +487,7 @@ export interface ApiChannelDescription {
487
487
  //The parrent channel this message belongs to.
488
488
  parrent_id?: string;
489
489
  //
490
- status?: number;
490
+ is_online?: Array<boolean>;
491
491
  //The channel type.
492
492
  type?: number;
493
493
  //
package/dist/api.gen.d.ts CHANGED
@@ -281,7 +281,7 @@ export interface ApiChannelDescription {
281
281
  meeting_code?: string;
282
282
  meeting_uri?: string;
283
283
  parrent_id?: string;
284
- status?: number;
284
+ is_online?: Array<boolean>;
285
285
  type?: number;
286
286
  update_time_seconds?: number;
287
287
  user_id?: Array<string>;
@@ -5175,9 +5175,9 @@ var _DefaultSocket = class _DefaultSocket {
5175
5175
  return response.message_reaction_event;
5176
5176
  });
5177
5177
  }
5178
- writeMessageTyping(clan_id, channel_id, mode) {
5178
+ writeMessageTyping(clan_id, channel_id, mode, is_public) {
5179
5179
  return __async(this, null, function* () {
5180
- const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode } });
5180
+ const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode, is_public } });
5181
5181
  return response.message_typing_event;
5182
5182
  });
5183
5183
  }
@@ -5146,9 +5146,9 @@ var _DefaultSocket = class _DefaultSocket {
5146
5146
  return response.message_reaction_event;
5147
5147
  });
5148
5148
  }
5149
- writeMessageTyping(clan_id, channel_id, mode) {
5149
+ writeMessageTyping(clan_id, channel_id, mode, is_public) {
5150
5150
  return __async(this, null, function* () {
5151
- const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode } });
5151
+ const response = yield this.send({ message_typing_event: { clan_id, channel_id, mode, is_public } });
5152
5152
  return response.message_typing_event;
5153
5153
  });
5154
5154
  }
package/dist/socket.d.ts CHANGED
@@ -671,7 +671,7 @@ export declare class DefaultSocket implements Socket {
671
671
  updateStatus(status?: string): Promise<void>;
672
672
  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): Promise<ChannelMessageAck>;
673
673
  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>;
674
- writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent>;
674
+ writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
675
675
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
676
676
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
677
677
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.8.68",
3
+ "version": "2.8.70",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1445,8 +1445,8 @@ export class DefaultSocket implements Socket {
1445
1445
  return response.message_reaction_event
1446
1446
  }
1447
1447
 
1448
- async writeMessageTyping(clan_id: string, channel_id: string, mode: number): Promise<MessageTypingEvent> {
1449
- const response = await this.send({message_typing_event: {clan_id: clan_id, channel_id: channel_id, mode:mode}});
1448
+ async writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent> {
1449
+ const response = await this.send({message_typing_event: {clan_id: clan_id, channel_id: channel_id, mode:mode, is_public: is_public}});
1450
1450
  return response.message_typing_event
1451
1451
  }
1452
1452