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 +2 -5
- package/dist/mezon-js/proto/gen/api/api_pb.d.ts +24 -8
- package/dist/mezon-js/proto/gen/rtapi/realtime_pb.d.ts +2 -2
- package/dist/mezon-js/types/index.d.ts +32 -32
- package/dist/mezon-js.cjs.js +27 -27
- package/dist/mezon-js.esm.mjs +27 -27
- package/dist/mezon-js.esm.mjs.map +1 -1
- package/dist/proto/gen/api/api_pb.d.ts +24 -8
- package/dist/proto/gen/rtapi/realtime_pb.d.ts +2 -2
- package/dist/types/index.d.ts +32 -32
- package/package.json +2 -2
- package/proto/gen/api/api_pb.ts +29 -9
- package/proto/gen/rtapi/realtime_pb.ts +3 -3
- package/socket.ts +9 -9
- package/types/index.ts +32 -32
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
|
-
|
|
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
|
|
526
|
+
* @generated from field: uint32 create_time_seconds = 6;
|
|
527
527
|
*/
|
|
528
|
-
|
|
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
|
|
8511
|
+
* @generated from field: int64 create_time_seconds = 3;
|
|
8512
8512
|
*/
|
|
8513
|
-
|
|
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:
|
|
10575
|
+
* @generated from field: string attachment_link = 8;
|
|
10576
10576
|
*/
|
|
10577
|
-
|
|
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:
|
|
10595
|
+
* @generated from field: repeated string mention_ids = 13;
|
|
10596
10596
|
*/
|
|
10597
|
-
|
|
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
|
|
3330
|
+
* @generated from field: uint32 create_time_seconds = 6;
|
|
3331
3331
|
*/
|
|
3332
|
-
|
|
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
|
-
|
|
1029
|
+
channel_id?: string;
|
|
1030
1030
|
mode?: number;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
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
|
-
|
|
1063
|
+
create_time?: string;
|
|
1064
1064
|
id?: string;
|
|
1065
|
-
|
|
1065
|
+
user_id?: string;
|
|
1066
1066
|
username?: string;
|
|
1067
|
-
|
|
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
|
-
|
|
1072
|
+
channel_id?: string;
|
|
1073
1073
|
mode?: number;
|
|
1074
|
-
|
|
1074
|
+
channel_label?: string;
|
|
1075
1075
|
/** The message that user react */
|
|
1076
|
-
|
|
1076
|
+
message_id?: string;
|
|
1077
1077
|
/** Message sender, usually a user ID. */
|
|
1078
|
-
|
|
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
|
-
|
|
1088
|
+
emoji_id: string;
|
|
1089
1089
|
emoji: string;
|
|
1090
1090
|
id?: string;
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
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
|
-
|
|
1096
|
+
channel_id: string;
|
|
1097
1097
|
mode: number;
|
|
1098
|
-
|
|
1099
|
-
|
|
1098
|
+
is_public: boolean;
|
|
1099
|
+
channel_label: string;
|
|
1100
1100
|
/** The message that user react */
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
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
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
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
|
-
|
|
1177
|
+
has_attachment: boolean;
|
|
1178
1178
|
/** The channel this message belongs to. */
|
|
1179
|
-
|
|
1179
|
+
channel_id: string;
|
|
1180
1180
|
mode: number;
|
|
1181
|
-
|
|
1181
|
+
channel_label: string;
|
|
1182
1182
|
}
|
|
1183
1183
|
/** A notification in the server. */
|
|
1184
1184
|
export interface ApiNotification {
|