mezon-js 2.11.36 → 2.11.37

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.
@@ -8302,14 +8302,15 @@ var _DefaultSocket = class _DefaultSocket {
8302
8302
  return response.message_reaction_event;
8303
8303
  });
8304
8304
  }
8305
- writeMessageTyping(clan_id, channel_id, mode, is_public) {
8305
+ writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name) {
8306
8306
  return __async(this, null, function* () {
8307
8307
  const response = yield this.send({
8308
8308
  message_typing_event: {
8309
8309
  clan_id,
8310
8310
  channel_id,
8311
8311
  mode,
8312
- is_public
8312
+ is_public,
8313
+ sender_display_name
8313
8314
  }
8314
8315
  });
8315
8316
  return response.message_typing_event;
@@ -8268,14 +8268,15 @@ var _DefaultSocket = class _DefaultSocket {
8268
8268
  return response.message_reaction_event;
8269
8269
  });
8270
8270
  }
8271
- writeMessageTyping(clan_id, channel_id, mode, is_public) {
8271
+ writeMessageTyping(clan_id, channel_id, mode, is_public, sender_display_name) {
8272
8272
  return __async(this, null, function* () {
8273
8273
  const response = yield this.send({
8274
8274
  message_typing_event: {
8275
8275
  clan_id,
8276
8276
  channel_id,
8277
8277
  mode,
8278
- is_public
8278
+ is_public,
8279
+ sender_display_name
8279
8280
  }
8280
8281
  });
8281
8282
  return response.message_typing_event;
package/dist/socket.d.ts CHANGED
@@ -179,6 +179,8 @@ export interface MessageTypingEvent {
179
179
  /** Message sender, usually a user ID. */
180
180
  sender_id: string;
181
181
  is_public: boolean;
182
+ sender_username: string;
183
+ sender_display_name: string;
182
184
  }
183
185
  export interface UserProfileUpdatedEvent {
184
186
  user_id: string;
@@ -772,7 +774,7 @@ export interface Socket {
772
774
  /** Send a chat message to a chat channel on the server. */
773
775
  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>;
774
776
  /** Send message typing */
775
- writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
777
+ writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
776
778
  /** Send message reaction */
777
779
  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>;
778
780
  /** Send last seen message */
@@ -981,7 +983,7 @@ export declare class DefaultSocket implements Socket {
981
983
  updateStatus(status?: string): Promise<void>;
982
984
  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>;
983
985
  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>;
984
- writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
986
+ writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string): Promise<MessageTypingEvent>;
985
987
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
986
988
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
987
989
  writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.11.36",
4
+ "version": "2.11.37",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -261,6 +261,10 @@ export interface MessageTypingEvent {
261
261
  sender_id: string;
262
262
  // Is public
263
263
  is_public: boolean;
264
+ // sender username
265
+ sender_username: string;
266
+ // sender display name
267
+ sender_display_name: string;
264
268
  }
265
269
 
266
270
  // user profile updated event
@@ -1153,7 +1157,8 @@ export interface Socket {
1153
1157
  clan_id: string,
1154
1158
  channel_id: string,
1155
1159
  mode: number,
1156
- is_public: boolean
1160
+ is_public: boolean,
1161
+ sender_display_name: string,
1157
1162
  ): Promise<MessageTypingEvent>;
1158
1163
 
1159
1164
  /** Send message reaction */
@@ -2442,7 +2447,8 @@ export class DefaultSocket implements Socket {
2442
2447
  clan_id: string,
2443
2448
  channel_id: string,
2444
2449
  mode: number,
2445
- is_public: boolean
2450
+ is_public: boolean,
2451
+ sender_display_name: string
2446
2452
  ): Promise<MessageTypingEvent> {
2447
2453
  const response = await this.send({
2448
2454
  message_typing_event: {
@@ -2450,6 +2456,7 @@ export class DefaultSocket implements Socket {
2450
2456
  channel_id: channel_id,
2451
2457
  mode: mode,
2452
2458
  is_public: is_public,
2459
+ sender_display_name: sender_display_name
2453
2460
  },
2454
2461
  });
2455
2462
  return response.message_typing_event;