mezon-js 2.13.90 → 2.13.91

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
@@ -316,7 +316,6 @@ import {
316
316
  ApiLoginIDResponse,
317
317
  ApiLoginRequest,
318
318
  ApiMessageRef,
319
- ApiChannelMessageHeader,
320
319
  ApiMessageReaction,
321
320
  NotificationList,
322
321
  } from "./types";
@@ -1481,10 +1480,8 @@ export class Client {
1481
1480
 
1482
1481
  var response: ChannelMessageList = {
1483
1482
  messages: [],
1484
- lastSeenMessage:
1485
- channelMessageList.lastSeenMessage as unknown as ApiChannelMessageHeader,
1486
- lastSentMessage:
1487
- channelMessageList.lastSentMessage as unknown as ApiChannelMessageHeader,
1483
+ lastSeenMessage: channelMessageList.lastSeenMessage,
1484
+ lastSentMessage: channelMessageList.lastSentMessage,
1488
1485
  };
1489
1486
 
1490
1487
  if (channelMessageList.messages == null) {
@@ -523,9 +523,9 @@ export type MessageMention = Message<"mezon.api.MessageMention"> & {
523
523
  /**
524
524
  * The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
525
525
  *
526
- * @generated from field: uint32 create_time_second = 6;
526
+ * @generated from field: uint32 create_time_seconds = 6;
527
527
  */
528
- createTimeSecond: number;
528
+ createTimeSeconds: number;
529
529
  /**
530
530
  * start position from text
531
531
  *
@@ -8508,9 +8508,9 @@ export type LoginIDResponse = Message<"mezon.api.LoginIDResponse"> & {
8508
8508
  /**
8509
8509
  * create time
8510
8510
  *
8511
- * @generated from field: int64 create_time_second = 3;
8511
+ * @generated from field: int64 create_time_seconds = 3;
8512
8512
  */
8513
- createTimeSecond: bigint;
8513
+ createTimeSeconds: bigint;
8514
8514
  /**
8515
8515
  * platform
8516
8516
  *
@@ -10572,9 +10572,9 @@ export type DirectFcmProto = Message<"mezon.api.DirectFcmProto"> & {
10572
10572
  */
10573
10573
  clanId: string;
10574
10574
  /**
10575
- * @generated from field: bytes attachments = 8;
10575
+ * @generated from field: string attachment_link = 8;
10576
10576
  */
10577
- attachments: Uint8Array;
10577
+ attachmentLink: string;
10578
10578
  /**
10579
10579
  * @generated from field: string display_name = 9;
10580
10580
  */
@@ -10592,9 +10592,25 @@ export type DirectFcmProto = Message<"mezon.api.DirectFcmProto"> & {
10592
10592
  */
10593
10593
  username: string;
10594
10594
  /**
10595
- * @generated from field: bytes mentions = 13;
10595
+ * @generated from field: repeated string mention_ids = 13;
10596
10596
  */
10597
- mentions: Uint8Array;
10597
+ mentionIds: string[];
10598
+ /**
10599
+ * @generated from field: repeated int32 position_s = 14;
10600
+ */
10601
+ positionS: number[];
10602
+ /**
10603
+ * @generated from field: repeated int32 positiin_e = 15;
10604
+ */
10605
+ positiinE: number[];
10606
+ /**
10607
+ * @generated from field: string attachment_type = 16;
10608
+ */
10609
+ attachmentType: string;
10610
+ /**
10611
+ * @generated from field: bool has_more_attachment = 17;
10612
+ */
10613
+ hasMoreAttachment: boolean;
10598
10614
  };
10599
10615
  /**
10600
10616
  * Describes the message mezon.api.DirectFcmProto.
@@ -3327,9 +3327,9 @@ export type UserChannelAdded = Message<"mezon.realtime.UserChannelAdded"> & {
3327
3327
  */
3328
3328
  caller?: UserProfileRedis;
3329
3329
  /**
3330
- * @generated from field: uint32 create_time_second = 6;
3330
+ * @generated from field: uint32 create_time_seconds = 6;
3331
3331
  */
3332
- createTimeSecond: number;
3332
+ createTimeSeconds: number;
3333
3333
  /**
3334
3334
  * @generated from field: int32 active = 7;
3335
3335
  */
@@ -1026,11 +1026,11 @@ export interface ApiMessageAttachment {
1026
1026
  url?: string;
1027
1027
  width?: number;
1028
1028
  thumbnail?: string;
1029
- channelId?: string;
1029
+ channel_id?: string;
1030
1030
  mode?: number;
1031
- channelLabel?: string;
1032
- messageId?: string;
1033
- senderId?: string;
1031
+ channel_label?: string;
1032
+ message_id?: string;
1033
+ sender_id?: string;
1034
1034
  duration?: number;
1035
1035
  }
1036
1036
  /** */
@@ -1060,22 +1060,22 @@ export interface ApiMarkAsReadRequest {
1060
1060
  }
1061
1061
  /** */
1062
1062
  export interface ApiMessageMention {
1063
- createTime?: string;
1063
+ create_time?: string;
1064
1064
  id?: string;
1065
- userId?: string;
1065
+ user_id?: string;
1066
1066
  username?: string;
1067
- roleId?: string;
1067
+ role_id?: string;
1068
1068
  rolename?: string;
1069
1069
  s?: number;
1070
1070
  e?: number;
1071
1071
  /** The channel this message belongs to. */
1072
- channelId?: string;
1072
+ channel_id?: string;
1073
1073
  mode?: number;
1074
- channelLabel?: string;
1074
+ channel_label?: string;
1075
1075
  /** The message that user react */
1076
- messageId?: string;
1076
+ message_id?: string;
1077
1077
  /** Message sender, usually a user ID. */
1078
- senderId?: string;
1078
+ sender_id?: string;
1079
1079
  }
1080
1080
  /** */
1081
1081
  export interface ApiLoginRequest {
@@ -1085,22 +1085,22 @@ export interface ApiLoginRequest {
1085
1085
  /** */
1086
1086
  export interface ApiMessageReaction {
1087
1087
  action?: boolean;
1088
- emojiId: string;
1088
+ emoji_id: string;
1089
1089
  emoji: string;
1090
1090
  id?: string;
1091
- senderId?: string;
1092
- senderName?: string;
1093
- senderAvatar?: string;
1091
+ sender_id?: string;
1092
+ sender_name?: string;
1093
+ sender_avatar?: string;
1094
1094
  count: number;
1095
1095
  /** The channel this message belongs to. */
1096
- channelId: string;
1096
+ channel_id: string;
1097
1097
  mode: number;
1098
- isPublic: boolean;
1099
- channelLabel: string;
1098
+ is_public: boolean;
1099
+ channel_label: string;
1100
1100
  /** The message that user react */
1101
- messageId: string;
1102
- topicId?: string;
1103
- emojiRecentId?: string;
1101
+ message_id: string;
1102
+ topic_id?: string;
1103
+ emoji_recent_id?: string;
1104
1104
  }
1105
1105
  export interface ApiListChannelAppsResponse {
1106
1106
  channelApps?: Array<ApiChannelAppResponse>;
@@ -1165,20 +1165,20 @@ export interface ApiMezonOauthClientList {
1165
1165
  }
1166
1166
  /** */
1167
1167
  export interface ApiMessageRef {
1168
- messageId?: string;
1169
- messageRefId?: string;
1170
- refType?: number;
1171
- messageSenderId?: string;
1172
- messageSenderUsername?: string;
1173
- mesagesSenderAvatar?: string;
1174
- messageSenderClanNick?: string;
1175
- messageSenderDisplayName?: string;
1168
+ message_id?: string;
1169
+ message_ref_id?: string;
1170
+ ref_type?: number;
1171
+ message_sender_id?: string;
1172
+ message_sender_username?: string;
1173
+ mesages_sender_avatar?: string;
1174
+ message_sender_clan_nick?: string;
1175
+ message_sender_display_name?: string;
1176
1176
  content?: string;
1177
- hasAttachment: boolean;
1177
+ has_attachment: boolean;
1178
1178
  /** The channel this message belongs to. */
1179
- channelId: string;
1179
+ channel_id: string;
1180
1180
  mode: number;
1181
- channelLabel: string;
1181
+ channel_label: string;
1182
1182
  }
1183
1183
  /** A notification in the server. */
1184
1184
  export interface ApiNotification {