mezon-js 2.13.47 → 2.13.49

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/client.ts CHANGED
@@ -515,7 +515,7 @@ export class Client {
515
515
  apiSession.created || false,
516
516
  apiSession.api_url || "",
517
517
  apiSession.id_token || "",
518
- false,
518
+ apiSession.is_remember || false,
519
519
  );
520
520
  });
521
521
  }
@@ -562,7 +562,7 @@ export class Client {
562
562
  });
563
563
  }
564
564
 
565
- async confirmEmailOTP(
565
+ async confirmAuthenticateOTP(
566
566
  request: ApiLinkAccountConfirmRequest,
567
567
  ): Promise<Session> {
568
568
  return this.apiClient
@@ -574,7 +574,7 @@ export class Client {
574
574
  apiSession.created || false,
575
575
  apiSession.api_url || "",
576
576
  apiSession.id_token || "",
577
- false,
577
+ apiSession.is_remember || false,
578
578
  );
579
579
  });
580
580
  }
@@ -604,7 +604,7 @@ export class Client {
604
604
  apiSession.created || false,
605
605
  apiSession.api_url || "",
606
606
  apiSession.id_token || "",
607
- false,
607
+ apiSession.is_remember || false,
608
608
  );
609
609
  });
610
610
  }
package/dist/client.d.ts CHANGED
@@ -244,7 +244,7 @@ export declare class Client {
244
244
  authenticateSMSOTPRequest(phoneno: string, username?: string, vars?: Record<string, string>): Promise<ApiLinkAccountConfirmRequest>;
245
245
  /** Authenticate a user with an email+otp against the server. */
246
246
  authenticateEmailOTPRequest(email: string, username?: string, vars?: Record<string, string>): Promise<ApiLinkAccountConfirmRequest>;
247
- confirmEmailOTP(request: ApiLinkAccountConfirmRequest): Promise<Session>;
247
+ confirmAuthenticateOTP(request: ApiLinkAccountConfirmRequest): Promise<Session>;
248
248
  /** Authenticate a user with an email+password against the server. */
249
249
  authenticateEmail(email: string, password: string, username?: string, vars?: Record<string, string>): Promise<Session>;
250
250
  /** set base path */
@@ -8231,7 +8231,7 @@ var _DefaultSocket = class _DefaultSocket {
8231
8231
  return response.ephemeral_message_send;
8232
8232
  });
8233
8233
  }
8234
- writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id) {
8234
+ writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id, id) {
8235
8235
  return __async(this, null, function* () {
8236
8236
  const response = yield this.send({
8237
8237
  ephemeral_message_send: {
@@ -8249,7 +8249,8 @@ var _DefaultSocket = class _DefaultSocket {
8249
8249
  mention_everyone,
8250
8250
  avatar,
8251
8251
  code,
8252
- topic_id
8252
+ topic_id,
8253
+ id
8253
8254
  }
8254
8255
  }
8255
8256
  });
@@ -8582,7 +8583,7 @@ var Client = class {
8582
8583
  apiSession.created || false,
8583
8584
  apiSession.api_url || "",
8584
8585
  apiSession.id_token || "",
8585
- false
8586
+ apiSession.is_remember || false
8586
8587
  );
8587
8588
  });
8588
8589
  }
@@ -8612,7 +8613,7 @@ var Client = class {
8612
8613
  return Promise.resolve(response);
8613
8614
  });
8614
8615
  }
8615
- confirmEmailOTP(request) {
8616
+ confirmAuthenticateOTP(request) {
8616
8617
  return __async(this, null, function* () {
8617
8618
  return this.apiClient.confirmAuthenticateOTP(this.serverkey, "", request).then((apiSession) => {
8618
8619
  return new Session(
@@ -8621,7 +8622,7 @@ var Client = class {
8621
8622
  apiSession.created || false,
8622
8623
  apiSession.api_url || "",
8623
8624
  apiSession.id_token || "",
8624
- false
8625
+ apiSession.is_remember || false
8625
8626
  );
8626
8627
  });
8627
8628
  });
@@ -8643,7 +8644,7 @@ var Client = class {
8643
8644
  apiSession.created || false,
8644
8645
  apiSession.api_url || "",
8645
8646
  apiSession.id_token || "",
8646
- false
8647
+ apiSession.is_remember || false
8647
8648
  );
8648
8649
  });
8649
8650
  }
@@ -8197,7 +8197,7 @@ var _DefaultSocket = class _DefaultSocket {
8197
8197
  return response.ephemeral_message_send;
8198
8198
  });
8199
8199
  }
8200
- writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id) {
8200
+ writeEphemeralMessage(receiver_id, clan_id, channel_id, mode, is_public, content, mentions, attachments, references, anonymous_message, mention_everyone, avatar, code, topic_id, id) {
8201
8201
  return __async(this, null, function* () {
8202
8202
  const response = yield this.send({
8203
8203
  ephemeral_message_send: {
@@ -8215,7 +8215,8 @@ var _DefaultSocket = class _DefaultSocket {
8215
8215
  mention_everyone,
8216
8216
  avatar,
8217
8217
  code,
8218
- topic_id
8218
+ topic_id,
8219
+ id
8219
8220
  }
8220
8221
  }
8221
8222
  });
@@ -8548,7 +8549,7 @@ var Client = class {
8548
8549
  apiSession.created || false,
8549
8550
  apiSession.api_url || "",
8550
8551
  apiSession.id_token || "",
8551
- false
8552
+ apiSession.is_remember || false
8552
8553
  );
8553
8554
  });
8554
8555
  }
@@ -8578,7 +8579,7 @@ var Client = class {
8578
8579
  return Promise.resolve(response);
8579
8580
  });
8580
8581
  }
8581
- confirmEmailOTP(request) {
8582
+ confirmAuthenticateOTP(request) {
8582
8583
  return __async(this, null, function* () {
8583
8584
  return this.apiClient.confirmAuthenticateOTP(this.serverkey, "", request).then((apiSession) => {
8584
8585
  return new Session(
@@ -8587,7 +8588,7 @@ var Client = class {
8587
8588
  apiSession.created || false,
8588
8589
  apiSession.api_url || "",
8589
8590
  apiSession.id_token || "",
8590
- false
8591
+ apiSession.is_remember || false
8591
8592
  );
8592
8593
  });
8593
8594
  });
@@ -8609,7 +8610,7 @@ var Client = class {
8609
8610
  apiSession.created || false,
8610
8611
  apiSession.api_url || "",
8611
8612
  apiSession.id_token || "",
8612
- false
8613
+ apiSession.is_remember || false
8613
8614
  );
8614
8615
  });
8615
8616
  }
package/dist/socket.d.ts CHANGED
@@ -946,11 +946,11 @@ export interface Socket {
946
946
  /** Update the status for the current user online. */
947
947
  updateStatus(status?: string): Promise<void>;
948
948
  /** Send a chat message to a chat channel on the server. */
949
- 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>;
949
+ 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, id?: string): Promise<ChannelMessageAck>;
950
950
  /** Send a chat message to a chat channel on the server. */
951
951
  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>;
952
952
  /** Send a quick menu event to a chat channel on the server. */
953
- 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>;
953
+ 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, id?: string): Promise<QuickMenuEvent>;
954
954
  /** Send message typing */
955
955
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
956
956
  /** Send message reaction */
@@ -1173,7 +1173,7 @@ export declare class DefaultSocket implements Socket {
1173
1173
  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, old_mentions?: string): Promise<ChannelMessageAck>;
1174
1174
  updateStatus(status?: string): Promise<void>;
1175
1175
  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>;
1176
- 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>;
1176
+ 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, id?: string): Promise<ChannelMessageAck>;
1177
1177
  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>;
1178
1178
  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>;
1179
1179
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean, sender_display_name: string, topic_id?: string): Promise<MessageTypingEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.13.47",
3
+ "version": "2.13.49",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -1494,7 +1494,8 @@ export interface Socket {
1494
1494
  mention_everyone?: boolean,
1495
1495
  avatar?: string,
1496
1496
  code?: number,
1497
- topic_id?: string
1497
+ topic_id?: string,
1498
+ id?: string
1498
1499
  ): Promise<ChannelMessageAck>;
1499
1500
 
1500
1501
  /** Send a chat message to a chat channel on the server. */
@@ -1530,7 +1531,8 @@ export interface Socket {
1530
1531
  mention_everyone?: boolean,
1531
1532
  avatar?: string,
1532
1533
  code?: number,
1533
- topic_id?: string
1534
+ topic_id?: string,
1535
+ id?: string
1534
1536
  ): Promise<QuickMenuEvent>;
1535
1537
 
1536
1538
  /** Send message typing */
@@ -2841,7 +2843,8 @@ export class DefaultSocket implements Socket {
2841
2843
  mention_everyone?: Boolean,
2842
2844
  avatar?: string,
2843
2845
  code?: number,
2844
- topic_id?: string
2846
+ topic_id?: string,
2847
+ id?: string
2845
2848
  ): Promise<ChannelMessageAck> {
2846
2849
  const response = await this.send({
2847
2850
  ephemeral_message_send: {
@@ -2860,6 +2863,7 @@ export class DefaultSocket implements Socket {
2860
2863
  avatar: avatar,
2861
2864
  code: code,
2862
2865
  topic_id: topic_id,
2866
+ id: id,
2863
2867
  }
2864
2868
  }
2865
2869
  });