mezon-js-protobuf 1.8.36 → 1.8.38
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/api.ts +300 -1109
- package/dist/mezon-js-protobuf/api/api.d.ts +614 -1694
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1689 -1843
- package/dist/mezon-js-protobuf.cjs.js +190 -205
- package/dist/mezon-js-protobuf.esm.mjs +190 -205
- package/package.json +1 -1
- package/rtapi/realtime.ts +47 -47
package/api/api.ts
CHANGED
|
@@ -620,114 +620,6 @@ export interface UpdateUsersRequest {
|
|
|
620
620
|
avatar_url: string;
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
-
/** A group in the server. */
|
|
624
|
-
export interface Group {
|
|
625
|
-
/** The id of a group. */
|
|
626
|
-
id: string;
|
|
627
|
-
/** The id of the user who created the group. */
|
|
628
|
-
creator_id: string;
|
|
629
|
-
/** The unique name of the group. */
|
|
630
|
-
name: string;
|
|
631
|
-
/** A description for the group. */
|
|
632
|
-
description: string;
|
|
633
|
-
/** The language expected to be a tag which follows the BCP-47 spec. */
|
|
634
|
-
lang_tag: string;
|
|
635
|
-
/** Additional information stored as a JSON object. */
|
|
636
|
-
metadata: string;
|
|
637
|
-
/** A URL for an avatar image. */
|
|
638
|
-
avatar_url: string;
|
|
639
|
-
/** Anyone can join open groups, otherwise only admins can accept members. */
|
|
640
|
-
open:
|
|
641
|
-
| boolean
|
|
642
|
-
| undefined;
|
|
643
|
-
/** The current count of all members in the group. */
|
|
644
|
-
edge_count: number;
|
|
645
|
-
/** The maximum number of members allowed. */
|
|
646
|
-
max_count: number;
|
|
647
|
-
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created. */
|
|
648
|
-
create_time:
|
|
649
|
-
| Date
|
|
650
|
-
| undefined;
|
|
651
|
-
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was last updated. */
|
|
652
|
-
update_time: Date | undefined;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/** One or more groups returned from a listing operation. */
|
|
656
|
-
export interface GroupList {
|
|
657
|
-
/** One or more groups. */
|
|
658
|
-
groups: Group[];
|
|
659
|
-
/** A cursor used to get the next page. */
|
|
660
|
-
cursor: string;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/** A list of users belonging to a group, along with their role. */
|
|
664
|
-
export interface GroupUserList {
|
|
665
|
-
/** User-role pairs for a group. */
|
|
666
|
-
group_users: GroupUserList_GroupUser[];
|
|
667
|
-
/** Cursor for the next page of results, if any. */
|
|
668
|
-
cursor: string;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
/** A single user-role pair. */
|
|
672
|
-
export interface GroupUserList_GroupUser {
|
|
673
|
-
/** User. */
|
|
674
|
-
user:
|
|
675
|
-
| User
|
|
676
|
-
| undefined;
|
|
677
|
-
/** Their relationship to the group. */
|
|
678
|
-
state: number | undefined;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
/** The group role status. */
|
|
682
|
-
export enum GroupUserList_GroupUser_State {
|
|
683
|
-
/** SUPERADMIN - The user is a superadmin with full control of the group. */
|
|
684
|
-
SUPERADMIN = 0,
|
|
685
|
-
/** ADMIN - The user is an admin with additional privileges. */
|
|
686
|
-
ADMIN = 1,
|
|
687
|
-
/** MEMBER - The user is a regular member. */
|
|
688
|
-
MEMBER = 2,
|
|
689
|
-
/** JOIN_REQUEST - The user has requested to join the group */
|
|
690
|
-
JOIN_REQUEST = 3,
|
|
691
|
-
UNRECOGNIZED = -1,
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
export function groupUserList_GroupUser_StateFromJSON(object: any): GroupUserList_GroupUser_State {
|
|
695
|
-
switch (object) {
|
|
696
|
-
case 0:
|
|
697
|
-
case "SUPERADMIN":
|
|
698
|
-
return GroupUserList_GroupUser_State.SUPERADMIN;
|
|
699
|
-
case 1:
|
|
700
|
-
case "ADMIN":
|
|
701
|
-
return GroupUserList_GroupUser_State.ADMIN;
|
|
702
|
-
case 2:
|
|
703
|
-
case "MEMBER":
|
|
704
|
-
return GroupUserList_GroupUser_State.MEMBER;
|
|
705
|
-
case 3:
|
|
706
|
-
case "JOIN_REQUEST":
|
|
707
|
-
return GroupUserList_GroupUser_State.JOIN_REQUEST;
|
|
708
|
-
case -1:
|
|
709
|
-
case "UNRECOGNIZED":
|
|
710
|
-
default:
|
|
711
|
-
return GroupUserList_GroupUser_State.UNRECOGNIZED;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
export function groupUserList_GroupUser_StateToJSON(object: GroupUserList_GroupUser_State): string {
|
|
716
|
-
switch (object) {
|
|
717
|
-
case GroupUserList_GroupUser_State.SUPERADMIN:
|
|
718
|
-
return "SUPERADMIN";
|
|
719
|
-
case GroupUserList_GroupUser_State.ADMIN:
|
|
720
|
-
return "ADMIN";
|
|
721
|
-
case GroupUserList_GroupUser_State.MEMBER:
|
|
722
|
-
return "MEMBER";
|
|
723
|
-
case GroupUserList_GroupUser_State.JOIN_REQUEST:
|
|
724
|
-
return "JOIN_REQUEST";
|
|
725
|
-
case GroupUserList_GroupUser_State.UNRECOGNIZED:
|
|
726
|
-
default:
|
|
727
|
-
return "UNRECOGNIZED";
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
|
|
731
623
|
/** A list of users belonging to a channel, along with their role. */
|
|
732
624
|
export interface ChannelUserList {
|
|
733
625
|
/** User-role pairs for a channel. */
|
|
@@ -1202,7 +1094,7 @@ export interface User {
|
|
|
1202
1094
|
/** The timezone set by the user. */
|
|
1203
1095
|
timezone: string;
|
|
1204
1096
|
/** Additional information stored as a JSON object. */
|
|
1205
|
-
|
|
1097
|
+
user_status: string;
|
|
1206
1098
|
/** Indicates whether the user is currently online. */
|
|
1207
1099
|
online: boolean;
|
|
1208
1100
|
/** The phone number */
|
|
@@ -1235,74 +1127,6 @@ export interface User {
|
|
|
1235
1127
|
list_nick_names: string[];
|
|
1236
1128
|
}
|
|
1237
1129
|
|
|
1238
|
-
/** A list of groups belonging to a user, along with the user's role in each group. */
|
|
1239
|
-
export interface UserGroupList {
|
|
1240
|
-
/** Group-role pairs for a user. */
|
|
1241
|
-
user_groups: UserGroupList_UserGroup[];
|
|
1242
|
-
/** Cursor for the next page of results, if any. */
|
|
1243
|
-
cursor: string;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
/** A single group-role pair. */
|
|
1247
|
-
export interface UserGroupList_UserGroup {
|
|
1248
|
-
/** Group. */
|
|
1249
|
-
group:
|
|
1250
|
-
| Group
|
|
1251
|
-
| undefined;
|
|
1252
|
-
/** The user's relationship to the group. */
|
|
1253
|
-
state: number | undefined;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
/** The group role status. */
|
|
1257
|
-
export enum UserGroupList_UserGroup_State {
|
|
1258
|
-
/** SUPERADMIN - The user is a superadmin with full control of the group. */
|
|
1259
|
-
SUPERADMIN = 0,
|
|
1260
|
-
/** ADMIN - The user is an admin with additional privileges. */
|
|
1261
|
-
ADMIN = 1,
|
|
1262
|
-
/** MEMBER - The user is a regular member. */
|
|
1263
|
-
MEMBER = 2,
|
|
1264
|
-
/** JOIN_REQUEST - The user has requested to join the group */
|
|
1265
|
-
JOIN_REQUEST = 3,
|
|
1266
|
-
UNRECOGNIZED = -1,
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
export function userGroupList_UserGroup_StateFromJSON(object: any): UserGroupList_UserGroup_State {
|
|
1270
|
-
switch (object) {
|
|
1271
|
-
case 0:
|
|
1272
|
-
case "SUPERADMIN":
|
|
1273
|
-
return UserGroupList_UserGroup_State.SUPERADMIN;
|
|
1274
|
-
case 1:
|
|
1275
|
-
case "ADMIN":
|
|
1276
|
-
return UserGroupList_UserGroup_State.ADMIN;
|
|
1277
|
-
case 2:
|
|
1278
|
-
case "MEMBER":
|
|
1279
|
-
return UserGroupList_UserGroup_State.MEMBER;
|
|
1280
|
-
case 3:
|
|
1281
|
-
case "JOIN_REQUEST":
|
|
1282
|
-
return UserGroupList_UserGroup_State.JOIN_REQUEST;
|
|
1283
|
-
case -1:
|
|
1284
|
-
case "UNRECOGNIZED":
|
|
1285
|
-
default:
|
|
1286
|
-
return UserGroupList_UserGroup_State.UNRECOGNIZED;
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
export function userGroupList_UserGroup_StateToJSON(object: UserGroupList_UserGroup_State): string {
|
|
1291
|
-
switch (object) {
|
|
1292
|
-
case UserGroupList_UserGroup_State.SUPERADMIN:
|
|
1293
|
-
return "SUPERADMIN";
|
|
1294
|
-
case UserGroupList_UserGroup_State.ADMIN:
|
|
1295
|
-
return "ADMIN";
|
|
1296
|
-
case UserGroupList_UserGroup_State.MEMBER:
|
|
1297
|
-
return "MEMBER";
|
|
1298
|
-
case UserGroupList_UserGroup_State.JOIN_REQUEST:
|
|
1299
|
-
return "JOIN_REQUEST";
|
|
1300
|
-
case UserGroupList_UserGroup_State.UNRECOGNIZED:
|
|
1301
|
-
default:
|
|
1302
|
-
return "UNRECOGNIZED";
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
1130
|
/** A collection of zero or more users. */
|
|
1307
1131
|
export interface Users {
|
|
1308
1132
|
/** The User objects. */
|
|
@@ -1673,10 +1497,6 @@ export interface ChannelDescription {
|
|
|
1673
1497
|
channel_label: string;
|
|
1674
1498
|
/** The channel private */
|
|
1675
1499
|
channel_private: number;
|
|
1676
|
-
/** The channel avatar */
|
|
1677
|
-
channel_avatar: string[];
|
|
1678
|
-
/** The user id */
|
|
1679
|
-
user_id: string[];
|
|
1680
1500
|
/** last message id */
|
|
1681
1501
|
last_sent_message:
|
|
1682
1502
|
| ChannelMessageHeader
|
|
@@ -1685,8 +1505,6 @@ export interface ChannelDescription {
|
|
|
1685
1505
|
last_seen_message:
|
|
1686
1506
|
| ChannelMessageHeader
|
|
1687
1507
|
| undefined;
|
|
1688
|
-
/** status */
|
|
1689
|
-
is_online: boolean[];
|
|
1690
1508
|
/** meeting code */
|
|
1691
1509
|
meeting_code: string;
|
|
1692
1510
|
/** count message unread */
|
|
@@ -1695,18 +1513,12 @@ export interface ChannelDescription {
|
|
|
1695
1513
|
active: number;
|
|
1696
1514
|
/** last pin message */
|
|
1697
1515
|
last_pin_message: string;
|
|
1698
|
-
/** the usernames */
|
|
1699
|
-
usernames: string[];
|
|
1700
1516
|
/** creator name */
|
|
1701
1517
|
creator_name: string;
|
|
1702
1518
|
/** create time ms */
|
|
1703
1519
|
create_time_seconds: number;
|
|
1704
1520
|
/** update time ms */
|
|
1705
1521
|
update_time_seconds: number;
|
|
1706
|
-
/** Additional information stored as a JSON object. */
|
|
1707
|
-
metadata: string[];
|
|
1708
|
-
/** about_me */
|
|
1709
|
-
about_me: string[];
|
|
1710
1522
|
/** clan_name */
|
|
1711
1523
|
clan_name: string;
|
|
1712
1524
|
/** app url */
|
|
@@ -1715,12 +1527,22 @@ export interface ChannelDescription {
|
|
|
1715
1527
|
is_mute: boolean;
|
|
1716
1528
|
/** age restricted */
|
|
1717
1529
|
age_restricted: number;
|
|
1718
|
-
/**
|
|
1719
|
-
|
|
1530
|
+
/** channel avatar */
|
|
1531
|
+
channel_avatar: string;
|
|
1720
1532
|
/** e2ee */
|
|
1721
1533
|
e2ee: number;
|
|
1722
|
-
/**
|
|
1534
|
+
/** channel description topic */
|
|
1535
|
+
topic: string;
|
|
1536
|
+
/** List DM user ids */
|
|
1537
|
+
user_ids: string[];
|
|
1538
|
+
/** List DM usernames */
|
|
1539
|
+
usernames: string[];
|
|
1540
|
+
/** List DM diplay names */
|
|
1723
1541
|
display_names: string[];
|
|
1542
|
+
/** DM status */
|
|
1543
|
+
onlines: boolean[];
|
|
1544
|
+
/** DM avatars */
|
|
1545
|
+
avatars: string[];
|
|
1724
1546
|
}
|
|
1725
1547
|
|
|
1726
1548
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -7378,68 +7200,134 @@ export const UpdateUsersRequest = {
|
|
|
7378
7200
|
},
|
|
7379
7201
|
};
|
|
7380
7202
|
|
|
7381
|
-
function
|
|
7382
|
-
return {
|
|
7383
|
-
id: "",
|
|
7384
|
-
creator_id: "",
|
|
7385
|
-
name: "",
|
|
7386
|
-
description: "",
|
|
7387
|
-
lang_tag: "",
|
|
7388
|
-
metadata: "",
|
|
7389
|
-
avatar_url: "",
|
|
7390
|
-
open: undefined,
|
|
7391
|
-
edge_count: 0,
|
|
7392
|
-
max_count: 0,
|
|
7393
|
-
create_time: undefined,
|
|
7394
|
-
update_time: undefined,
|
|
7395
|
-
};
|
|
7203
|
+
function createBaseChannelUserList(): ChannelUserList {
|
|
7204
|
+
return { channel_users: [], cursor: "", channel_id: "" };
|
|
7396
7205
|
}
|
|
7397
7206
|
|
|
7398
|
-
export const
|
|
7399
|
-
encode(message:
|
|
7400
|
-
|
|
7401
|
-
writer.uint32(10).
|
|
7207
|
+
export const ChannelUserList = {
|
|
7208
|
+
encode(message: ChannelUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7209
|
+
for (const v of message.channel_users) {
|
|
7210
|
+
ChannelUserList_ChannelUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7402
7211
|
}
|
|
7403
|
-
if (message.
|
|
7404
|
-
writer.uint32(18).string(message.
|
|
7212
|
+
if (message.cursor !== "") {
|
|
7213
|
+
writer.uint32(18).string(message.cursor);
|
|
7405
7214
|
}
|
|
7406
|
-
if (message.
|
|
7407
|
-
writer.uint32(26).string(message.
|
|
7215
|
+
if (message.channel_id !== "") {
|
|
7216
|
+
writer.uint32(26).string(message.channel_id);
|
|
7408
7217
|
}
|
|
7409
|
-
|
|
7410
|
-
|
|
7218
|
+
return writer;
|
|
7219
|
+
},
|
|
7220
|
+
|
|
7221
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelUserList {
|
|
7222
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7223
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7224
|
+
const message = createBaseChannelUserList();
|
|
7225
|
+
while (reader.pos < end) {
|
|
7226
|
+
const tag = reader.uint32();
|
|
7227
|
+
switch (tag >>> 3) {
|
|
7228
|
+
case 1:
|
|
7229
|
+
if (tag !== 10) {
|
|
7230
|
+
break;
|
|
7231
|
+
}
|
|
7232
|
+
|
|
7233
|
+
message.channel_users.push(ChannelUserList_ChannelUser.decode(reader, reader.uint32()));
|
|
7234
|
+
continue;
|
|
7235
|
+
case 2:
|
|
7236
|
+
if (tag !== 18) {
|
|
7237
|
+
break;
|
|
7238
|
+
}
|
|
7239
|
+
|
|
7240
|
+
message.cursor = reader.string();
|
|
7241
|
+
continue;
|
|
7242
|
+
case 3:
|
|
7243
|
+
if (tag !== 26) {
|
|
7244
|
+
break;
|
|
7245
|
+
}
|
|
7246
|
+
|
|
7247
|
+
message.channel_id = reader.string();
|
|
7248
|
+
continue;
|
|
7249
|
+
}
|
|
7250
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7251
|
+
break;
|
|
7252
|
+
}
|
|
7253
|
+
reader.skipType(tag & 7);
|
|
7411
7254
|
}
|
|
7412
|
-
|
|
7413
|
-
|
|
7255
|
+
return message;
|
|
7256
|
+
},
|
|
7257
|
+
|
|
7258
|
+
fromJSON(object: any): ChannelUserList {
|
|
7259
|
+
return {
|
|
7260
|
+
channel_users: globalThis.Array.isArray(object?.channel_users)
|
|
7261
|
+
? object.channel_users.map((e: any) => ChannelUserList_ChannelUser.fromJSON(e))
|
|
7262
|
+
: [],
|
|
7263
|
+
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7264
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7265
|
+
};
|
|
7266
|
+
},
|
|
7267
|
+
|
|
7268
|
+
toJSON(message: ChannelUserList): unknown {
|
|
7269
|
+
const obj: any = {};
|
|
7270
|
+
if (message.channel_users?.length) {
|
|
7271
|
+
obj.channel_users = message.channel_users.map((e) => ChannelUserList_ChannelUser.toJSON(e));
|
|
7414
7272
|
}
|
|
7415
|
-
if (message.
|
|
7416
|
-
|
|
7273
|
+
if (message.cursor !== "") {
|
|
7274
|
+
obj.cursor = message.cursor;
|
|
7417
7275
|
}
|
|
7418
|
-
if (message.
|
|
7419
|
-
|
|
7276
|
+
if (message.channel_id !== "") {
|
|
7277
|
+
obj.channel_id = message.channel_id;
|
|
7420
7278
|
}
|
|
7421
|
-
|
|
7422
|
-
|
|
7279
|
+
return obj;
|
|
7280
|
+
},
|
|
7281
|
+
|
|
7282
|
+
create<I extends Exact<DeepPartial<ChannelUserList>, I>>(base?: I): ChannelUserList {
|
|
7283
|
+
return ChannelUserList.fromPartial(base ?? ({} as any));
|
|
7284
|
+
},
|
|
7285
|
+
fromPartial<I extends Exact<DeepPartial<ChannelUserList>, I>>(object: I): ChannelUserList {
|
|
7286
|
+
const message = createBaseChannelUserList();
|
|
7287
|
+
message.channel_users = object.channel_users?.map((e) => ChannelUserList_ChannelUser.fromPartial(e)) || [];
|
|
7288
|
+
message.cursor = object.cursor ?? "";
|
|
7289
|
+
message.channel_id = object.channel_id ?? "";
|
|
7290
|
+
return message;
|
|
7291
|
+
},
|
|
7292
|
+
};
|
|
7293
|
+
|
|
7294
|
+
function createBaseChannelUserList_ChannelUser(): ChannelUserList_ChannelUser {
|
|
7295
|
+
return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "", added_by: "" };
|
|
7296
|
+
}
|
|
7297
|
+
|
|
7298
|
+
export const ChannelUserList_ChannelUser = {
|
|
7299
|
+
encode(message: ChannelUserList_ChannelUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7300
|
+
if (message.user_id !== "") {
|
|
7301
|
+
writer.uint32(10).string(message.user_id);
|
|
7423
7302
|
}
|
|
7424
|
-
|
|
7425
|
-
writer.uint32(
|
|
7303
|
+
for (const v of message.role_id) {
|
|
7304
|
+
writer.uint32(18).string(v!);
|
|
7426
7305
|
}
|
|
7427
|
-
if (message.
|
|
7428
|
-
writer.uint32(
|
|
7306
|
+
if (message.id !== "") {
|
|
7307
|
+
writer.uint32(26).string(message.id);
|
|
7429
7308
|
}
|
|
7430
|
-
if (message.
|
|
7431
|
-
|
|
7309
|
+
if (message.thread_id !== "") {
|
|
7310
|
+
writer.uint32(34).string(message.thread_id);
|
|
7432
7311
|
}
|
|
7433
|
-
if (message.
|
|
7434
|
-
|
|
7312
|
+
if (message.clan_nick !== "") {
|
|
7313
|
+
writer.uint32(42).string(message.clan_nick);
|
|
7314
|
+
}
|
|
7315
|
+
if (message.clan_avatar !== "") {
|
|
7316
|
+
writer.uint32(50).string(message.clan_avatar);
|
|
7317
|
+
}
|
|
7318
|
+
if (message.clan_id !== "") {
|
|
7319
|
+
writer.uint32(58).string(message.clan_id);
|
|
7320
|
+
}
|
|
7321
|
+
if (message.added_by !== "") {
|
|
7322
|
+
writer.uint32(66).string(message.added_by);
|
|
7435
7323
|
}
|
|
7436
7324
|
return writer;
|
|
7437
7325
|
},
|
|
7438
7326
|
|
|
7439
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
7327
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelUserList_ChannelUser {
|
|
7440
7328
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7441
7329
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7442
|
-
const message =
|
|
7330
|
+
const message = createBaseChannelUserList_ChannelUser();
|
|
7443
7331
|
while (reader.pos < end) {
|
|
7444
7332
|
const tag = reader.uint32();
|
|
7445
7333
|
switch (tag >>> 3) {
|
|
@@ -7448,592 +7336,65 @@ export const Group = {
|
|
|
7448
7336
|
break;
|
|
7449
7337
|
}
|
|
7450
7338
|
|
|
7451
|
-
message.
|
|
7339
|
+
message.user_id = reader.string();
|
|
7452
7340
|
continue;
|
|
7453
7341
|
case 2:
|
|
7454
7342
|
if (tag !== 18) {
|
|
7455
7343
|
break;
|
|
7456
7344
|
}
|
|
7457
7345
|
|
|
7458
|
-
message.
|
|
7346
|
+
message.role_id.push(reader.string());
|
|
7459
7347
|
continue;
|
|
7460
7348
|
case 3:
|
|
7461
7349
|
if (tag !== 26) {
|
|
7462
7350
|
break;
|
|
7463
7351
|
}
|
|
7464
7352
|
|
|
7465
|
-
message.
|
|
7353
|
+
message.id = reader.string();
|
|
7466
7354
|
continue;
|
|
7467
7355
|
case 4:
|
|
7468
7356
|
if (tag !== 34) {
|
|
7469
7357
|
break;
|
|
7470
7358
|
}
|
|
7471
7359
|
|
|
7472
|
-
message.
|
|
7360
|
+
message.thread_id = reader.string();
|
|
7473
7361
|
continue;
|
|
7474
7362
|
case 5:
|
|
7475
7363
|
if (tag !== 42) {
|
|
7476
7364
|
break;
|
|
7477
7365
|
}
|
|
7478
7366
|
|
|
7479
|
-
message.
|
|
7367
|
+
message.clan_nick = reader.string();
|
|
7480
7368
|
continue;
|
|
7481
7369
|
case 6:
|
|
7482
7370
|
if (tag !== 50) {
|
|
7483
7371
|
break;
|
|
7484
7372
|
}
|
|
7485
7373
|
|
|
7486
|
-
message.
|
|
7374
|
+
message.clan_avatar = reader.string();
|
|
7487
7375
|
continue;
|
|
7488
7376
|
case 7:
|
|
7489
7377
|
if (tag !== 58) {
|
|
7490
7378
|
break;
|
|
7491
7379
|
}
|
|
7492
7380
|
|
|
7493
|
-
message.
|
|
7381
|
+
message.clan_id = reader.string();
|
|
7494
7382
|
continue;
|
|
7495
7383
|
case 8:
|
|
7496
7384
|
if (tag !== 66) {
|
|
7497
7385
|
break;
|
|
7498
7386
|
}
|
|
7499
7387
|
|
|
7500
|
-
message.
|
|
7388
|
+
message.added_by = reader.string();
|
|
7501
7389
|
continue;
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
if (tag !== 80) {
|
|
7511
|
-
break;
|
|
7512
|
-
}
|
|
7513
|
-
|
|
7514
|
-
message.max_count = reader.int32();
|
|
7515
|
-
continue;
|
|
7516
|
-
case 11:
|
|
7517
|
-
if (tag !== 90) {
|
|
7518
|
-
break;
|
|
7519
|
-
}
|
|
7520
|
-
|
|
7521
|
-
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
7522
|
-
continue;
|
|
7523
|
-
case 12:
|
|
7524
|
-
if (tag !== 98) {
|
|
7525
|
-
break;
|
|
7526
|
-
}
|
|
7527
|
-
|
|
7528
|
-
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
7529
|
-
continue;
|
|
7530
|
-
}
|
|
7531
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7532
|
-
break;
|
|
7533
|
-
}
|
|
7534
|
-
reader.skipType(tag & 7);
|
|
7535
|
-
}
|
|
7536
|
-
return message;
|
|
7537
|
-
},
|
|
7538
|
-
|
|
7539
|
-
fromJSON(object: any): Group {
|
|
7540
|
-
return {
|
|
7541
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
7542
|
-
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7543
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
7544
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
7545
|
-
lang_tag: isSet(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
|
|
7546
|
-
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
7547
|
-
avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
7548
|
-
open: isSet(object.open) ? Boolean(object.open) : undefined,
|
|
7549
|
-
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
7550
|
-
max_count: isSet(object.max_count) ? globalThis.Number(object.max_count) : 0,
|
|
7551
|
-
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
7552
|
-
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
7553
|
-
};
|
|
7554
|
-
},
|
|
7555
|
-
|
|
7556
|
-
toJSON(message: Group): unknown {
|
|
7557
|
-
const obj: any = {};
|
|
7558
|
-
if (message.id !== "") {
|
|
7559
|
-
obj.id = message.id;
|
|
7560
|
-
}
|
|
7561
|
-
if (message.creator_id !== "") {
|
|
7562
|
-
obj.creator_id = message.creator_id;
|
|
7563
|
-
}
|
|
7564
|
-
if (message.name !== "") {
|
|
7565
|
-
obj.name = message.name;
|
|
7566
|
-
}
|
|
7567
|
-
if (message.description !== "") {
|
|
7568
|
-
obj.description = message.description;
|
|
7569
|
-
}
|
|
7570
|
-
if (message.lang_tag !== "") {
|
|
7571
|
-
obj.lang_tag = message.lang_tag;
|
|
7572
|
-
}
|
|
7573
|
-
if (message.metadata !== "") {
|
|
7574
|
-
obj.metadata = message.metadata;
|
|
7575
|
-
}
|
|
7576
|
-
if (message.avatar_url !== "") {
|
|
7577
|
-
obj.avatar_url = message.avatar_url;
|
|
7578
|
-
}
|
|
7579
|
-
if (message.open !== undefined) {
|
|
7580
|
-
obj.open = message.open;
|
|
7581
|
-
}
|
|
7582
|
-
if (message.edge_count !== 0) {
|
|
7583
|
-
obj.edge_count = Math.round(message.edge_count);
|
|
7584
|
-
}
|
|
7585
|
-
if (message.max_count !== 0) {
|
|
7586
|
-
obj.max_count = Math.round(message.max_count);
|
|
7587
|
-
}
|
|
7588
|
-
if (message.create_time !== undefined) {
|
|
7589
|
-
obj.create_time = message.create_time.toISOString();
|
|
7590
|
-
}
|
|
7591
|
-
if (message.update_time !== undefined) {
|
|
7592
|
-
obj.update_time = message.update_time.toISOString();
|
|
7593
|
-
}
|
|
7594
|
-
return obj;
|
|
7595
|
-
},
|
|
7596
|
-
|
|
7597
|
-
create<I extends Exact<DeepPartial<Group>, I>>(base?: I): Group {
|
|
7598
|
-
return Group.fromPartial(base ?? ({} as any));
|
|
7599
|
-
},
|
|
7600
|
-
fromPartial<I extends Exact<DeepPartial<Group>, I>>(object: I): Group {
|
|
7601
|
-
const message = createBaseGroup();
|
|
7602
|
-
message.id = object.id ?? "";
|
|
7603
|
-
message.creator_id = object.creator_id ?? "";
|
|
7604
|
-
message.name = object.name ?? "";
|
|
7605
|
-
message.description = object.description ?? "";
|
|
7606
|
-
message.lang_tag = object.lang_tag ?? "";
|
|
7607
|
-
message.metadata = object.metadata ?? "";
|
|
7608
|
-
message.avatar_url = object.avatar_url ?? "";
|
|
7609
|
-
message.open = object.open ?? undefined;
|
|
7610
|
-
message.edge_count = object.edge_count ?? 0;
|
|
7611
|
-
message.max_count = object.max_count ?? 0;
|
|
7612
|
-
message.create_time = object.create_time ?? undefined;
|
|
7613
|
-
message.update_time = object.update_time ?? undefined;
|
|
7614
|
-
return message;
|
|
7615
|
-
},
|
|
7616
|
-
};
|
|
7617
|
-
|
|
7618
|
-
function createBaseGroupList(): GroupList {
|
|
7619
|
-
return { groups: [], cursor: "" };
|
|
7620
|
-
}
|
|
7621
|
-
|
|
7622
|
-
export const GroupList = {
|
|
7623
|
-
encode(message: GroupList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7624
|
-
for (const v of message.groups) {
|
|
7625
|
-
Group.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7626
|
-
}
|
|
7627
|
-
if (message.cursor !== "") {
|
|
7628
|
-
writer.uint32(18).string(message.cursor);
|
|
7629
|
-
}
|
|
7630
|
-
return writer;
|
|
7631
|
-
},
|
|
7632
|
-
|
|
7633
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GroupList {
|
|
7634
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7635
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7636
|
-
const message = createBaseGroupList();
|
|
7637
|
-
while (reader.pos < end) {
|
|
7638
|
-
const tag = reader.uint32();
|
|
7639
|
-
switch (tag >>> 3) {
|
|
7640
|
-
case 1:
|
|
7641
|
-
if (tag !== 10) {
|
|
7642
|
-
break;
|
|
7643
|
-
}
|
|
7644
|
-
|
|
7645
|
-
message.groups.push(Group.decode(reader, reader.uint32()));
|
|
7646
|
-
continue;
|
|
7647
|
-
case 2:
|
|
7648
|
-
if (tag !== 18) {
|
|
7649
|
-
break;
|
|
7650
|
-
}
|
|
7651
|
-
|
|
7652
|
-
message.cursor = reader.string();
|
|
7653
|
-
continue;
|
|
7654
|
-
}
|
|
7655
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7656
|
-
break;
|
|
7657
|
-
}
|
|
7658
|
-
reader.skipType(tag & 7);
|
|
7659
|
-
}
|
|
7660
|
-
return message;
|
|
7661
|
-
},
|
|
7662
|
-
|
|
7663
|
-
fromJSON(object: any): GroupList {
|
|
7664
|
-
return {
|
|
7665
|
-
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e: any) => Group.fromJSON(e)) : [],
|
|
7666
|
-
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7667
|
-
};
|
|
7668
|
-
},
|
|
7669
|
-
|
|
7670
|
-
toJSON(message: GroupList): unknown {
|
|
7671
|
-
const obj: any = {};
|
|
7672
|
-
if (message.groups?.length) {
|
|
7673
|
-
obj.groups = message.groups.map((e) => Group.toJSON(e));
|
|
7674
|
-
}
|
|
7675
|
-
if (message.cursor !== "") {
|
|
7676
|
-
obj.cursor = message.cursor;
|
|
7677
|
-
}
|
|
7678
|
-
return obj;
|
|
7679
|
-
},
|
|
7680
|
-
|
|
7681
|
-
create<I extends Exact<DeepPartial<GroupList>, I>>(base?: I): GroupList {
|
|
7682
|
-
return GroupList.fromPartial(base ?? ({} as any));
|
|
7683
|
-
},
|
|
7684
|
-
fromPartial<I extends Exact<DeepPartial<GroupList>, I>>(object: I): GroupList {
|
|
7685
|
-
const message = createBaseGroupList();
|
|
7686
|
-
message.groups = object.groups?.map((e) => Group.fromPartial(e)) || [];
|
|
7687
|
-
message.cursor = object.cursor ?? "";
|
|
7688
|
-
return message;
|
|
7689
|
-
},
|
|
7690
|
-
};
|
|
7691
|
-
|
|
7692
|
-
function createBaseGroupUserList(): GroupUserList {
|
|
7693
|
-
return { group_users: [], cursor: "" };
|
|
7694
|
-
}
|
|
7695
|
-
|
|
7696
|
-
export const GroupUserList = {
|
|
7697
|
-
encode(message: GroupUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7698
|
-
for (const v of message.group_users) {
|
|
7699
|
-
GroupUserList_GroupUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7700
|
-
}
|
|
7701
|
-
if (message.cursor !== "") {
|
|
7702
|
-
writer.uint32(18).string(message.cursor);
|
|
7703
|
-
}
|
|
7704
|
-
return writer;
|
|
7705
|
-
},
|
|
7706
|
-
|
|
7707
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GroupUserList {
|
|
7708
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7709
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7710
|
-
const message = createBaseGroupUserList();
|
|
7711
|
-
while (reader.pos < end) {
|
|
7712
|
-
const tag = reader.uint32();
|
|
7713
|
-
switch (tag >>> 3) {
|
|
7714
|
-
case 1:
|
|
7715
|
-
if (tag !== 10) {
|
|
7716
|
-
break;
|
|
7717
|
-
}
|
|
7718
|
-
|
|
7719
|
-
message.group_users.push(GroupUserList_GroupUser.decode(reader, reader.uint32()));
|
|
7720
|
-
continue;
|
|
7721
|
-
case 2:
|
|
7722
|
-
if (tag !== 18) {
|
|
7723
|
-
break;
|
|
7724
|
-
}
|
|
7725
|
-
|
|
7726
|
-
message.cursor = reader.string();
|
|
7727
|
-
continue;
|
|
7728
|
-
}
|
|
7729
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7730
|
-
break;
|
|
7731
|
-
}
|
|
7732
|
-
reader.skipType(tag & 7);
|
|
7733
|
-
}
|
|
7734
|
-
return message;
|
|
7735
|
-
},
|
|
7736
|
-
|
|
7737
|
-
fromJSON(object: any): GroupUserList {
|
|
7738
|
-
return {
|
|
7739
|
-
group_users: globalThis.Array.isArray(object?.group_users)
|
|
7740
|
-
? object.group_users.map((e: any) => GroupUserList_GroupUser.fromJSON(e))
|
|
7741
|
-
: [],
|
|
7742
|
-
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7743
|
-
};
|
|
7744
|
-
},
|
|
7745
|
-
|
|
7746
|
-
toJSON(message: GroupUserList): unknown {
|
|
7747
|
-
const obj: any = {};
|
|
7748
|
-
if (message.group_users?.length) {
|
|
7749
|
-
obj.group_users = message.group_users.map((e) => GroupUserList_GroupUser.toJSON(e));
|
|
7750
|
-
}
|
|
7751
|
-
if (message.cursor !== "") {
|
|
7752
|
-
obj.cursor = message.cursor;
|
|
7753
|
-
}
|
|
7754
|
-
return obj;
|
|
7755
|
-
},
|
|
7756
|
-
|
|
7757
|
-
create<I extends Exact<DeepPartial<GroupUserList>, I>>(base?: I): GroupUserList {
|
|
7758
|
-
return GroupUserList.fromPartial(base ?? ({} as any));
|
|
7759
|
-
},
|
|
7760
|
-
fromPartial<I extends Exact<DeepPartial<GroupUserList>, I>>(object: I): GroupUserList {
|
|
7761
|
-
const message = createBaseGroupUserList();
|
|
7762
|
-
message.group_users = object.group_users?.map((e) => GroupUserList_GroupUser.fromPartial(e)) || [];
|
|
7763
|
-
message.cursor = object.cursor ?? "";
|
|
7764
|
-
return message;
|
|
7765
|
-
},
|
|
7766
|
-
};
|
|
7767
|
-
|
|
7768
|
-
function createBaseGroupUserList_GroupUser(): GroupUserList_GroupUser {
|
|
7769
|
-
return { user: undefined, state: undefined };
|
|
7770
|
-
}
|
|
7771
|
-
|
|
7772
|
-
export const GroupUserList_GroupUser = {
|
|
7773
|
-
encode(message: GroupUserList_GroupUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7774
|
-
if (message.user !== undefined) {
|
|
7775
|
-
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
7776
|
-
}
|
|
7777
|
-
if (message.state !== undefined) {
|
|
7778
|
-
Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
|
|
7779
|
-
}
|
|
7780
|
-
return writer;
|
|
7781
|
-
},
|
|
7782
|
-
|
|
7783
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GroupUserList_GroupUser {
|
|
7784
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7785
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7786
|
-
const message = createBaseGroupUserList_GroupUser();
|
|
7787
|
-
while (reader.pos < end) {
|
|
7788
|
-
const tag = reader.uint32();
|
|
7789
|
-
switch (tag >>> 3) {
|
|
7790
|
-
case 1:
|
|
7791
|
-
if (tag !== 10) {
|
|
7792
|
-
break;
|
|
7793
|
-
}
|
|
7794
|
-
|
|
7795
|
-
message.user = User.decode(reader, reader.uint32());
|
|
7796
|
-
continue;
|
|
7797
|
-
case 2:
|
|
7798
|
-
if (tag !== 18) {
|
|
7799
|
-
break;
|
|
7800
|
-
}
|
|
7801
|
-
|
|
7802
|
-
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
7803
|
-
continue;
|
|
7804
|
-
}
|
|
7805
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7806
|
-
break;
|
|
7807
|
-
}
|
|
7808
|
-
reader.skipType(tag & 7);
|
|
7809
|
-
}
|
|
7810
|
-
return message;
|
|
7811
|
-
},
|
|
7812
|
-
|
|
7813
|
-
fromJSON(object: any): GroupUserList_GroupUser {
|
|
7814
|
-
return {
|
|
7815
|
-
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
7816
|
-
state: isSet(object.state) ? Number(object.state) : undefined,
|
|
7817
|
-
};
|
|
7818
|
-
},
|
|
7819
|
-
|
|
7820
|
-
toJSON(message: GroupUserList_GroupUser): unknown {
|
|
7821
|
-
const obj: any = {};
|
|
7822
|
-
if (message.user !== undefined) {
|
|
7823
|
-
obj.user = User.toJSON(message.user);
|
|
7824
|
-
}
|
|
7825
|
-
if (message.state !== undefined) {
|
|
7826
|
-
obj.state = message.state;
|
|
7827
|
-
}
|
|
7828
|
-
return obj;
|
|
7829
|
-
},
|
|
7830
|
-
|
|
7831
|
-
create<I extends Exact<DeepPartial<GroupUserList_GroupUser>, I>>(base?: I): GroupUserList_GroupUser {
|
|
7832
|
-
return GroupUserList_GroupUser.fromPartial(base ?? ({} as any));
|
|
7833
|
-
},
|
|
7834
|
-
fromPartial<I extends Exact<DeepPartial<GroupUserList_GroupUser>, I>>(object: I): GroupUserList_GroupUser {
|
|
7835
|
-
const message = createBaseGroupUserList_GroupUser();
|
|
7836
|
-
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
7837
|
-
message.state = object.state ?? undefined;
|
|
7838
|
-
return message;
|
|
7839
|
-
},
|
|
7840
|
-
};
|
|
7841
|
-
|
|
7842
|
-
function createBaseChannelUserList(): ChannelUserList {
|
|
7843
|
-
return { channel_users: [], cursor: "", channel_id: "" };
|
|
7844
|
-
}
|
|
7845
|
-
|
|
7846
|
-
export const ChannelUserList = {
|
|
7847
|
-
encode(message: ChannelUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7848
|
-
for (const v of message.channel_users) {
|
|
7849
|
-
ChannelUserList_ChannelUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7850
|
-
}
|
|
7851
|
-
if (message.cursor !== "") {
|
|
7852
|
-
writer.uint32(18).string(message.cursor);
|
|
7853
|
-
}
|
|
7854
|
-
if (message.channel_id !== "") {
|
|
7855
|
-
writer.uint32(26).string(message.channel_id);
|
|
7856
|
-
}
|
|
7857
|
-
return writer;
|
|
7858
|
-
},
|
|
7859
|
-
|
|
7860
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelUserList {
|
|
7861
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7862
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7863
|
-
const message = createBaseChannelUserList();
|
|
7864
|
-
while (reader.pos < end) {
|
|
7865
|
-
const tag = reader.uint32();
|
|
7866
|
-
switch (tag >>> 3) {
|
|
7867
|
-
case 1:
|
|
7868
|
-
if (tag !== 10) {
|
|
7869
|
-
break;
|
|
7870
|
-
}
|
|
7871
|
-
|
|
7872
|
-
message.channel_users.push(ChannelUserList_ChannelUser.decode(reader, reader.uint32()));
|
|
7873
|
-
continue;
|
|
7874
|
-
case 2:
|
|
7875
|
-
if (tag !== 18) {
|
|
7876
|
-
break;
|
|
7877
|
-
}
|
|
7878
|
-
|
|
7879
|
-
message.cursor = reader.string();
|
|
7880
|
-
continue;
|
|
7881
|
-
case 3:
|
|
7882
|
-
if (tag !== 26) {
|
|
7883
|
-
break;
|
|
7884
|
-
}
|
|
7885
|
-
|
|
7886
|
-
message.channel_id = reader.string();
|
|
7887
|
-
continue;
|
|
7888
|
-
}
|
|
7889
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7890
|
-
break;
|
|
7891
|
-
}
|
|
7892
|
-
reader.skipType(tag & 7);
|
|
7893
|
-
}
|
|
7894
|
-
return message;
|
|
7895
|
-
},
|
|
7896
|
-
|
|
7897
|
-
fromJSON(object: any): ChannelUserList {
|
|
7898
|
-
return {
|
|
7899
|
-
channel_users: globalThis.Array.isArray(object?.channel_users)
|
|
7900
|
-
? object.channel_users.map((e: any) => ChannelUserList_ChannelUser.fromJSON(e))
|
|
7901
|
-
: [],
|
|
7902
|
-
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7903
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7904
|
-
};
|
|
7905
|
-
},
|
|
7906
|
-
|
|
7907
|
-
toJSON(message: ChannelUserList): unknown {
|
|
7908
|
-
const obj: any = {};
|
|
7909
|
-
if (message.channel_users?.length) {
|
|
7910
|
-
obj.channel_users = message.channel_users.map((e) => ChannelUserList_ChannelUser.toJSON(e));
|
|
7911
|
-
}
|
|
7912
|
-
if (message.cursor !== "") {
|
|
7913
|
-
obj.cursor = message.cursor;
|
|
7914
|
-
}
|
|
7915
|
-
if (message.channel_id !== "") {
|
|
7916
|
-
obj.channel_id = message.channel_id;
|
|
7917
|
-
}
|
|
7918
|
-
return obj;
|
|
7919
|
-
},
|
|
7920
|
-
|
|
7921
|
-
create<I extends Exact<DeepPartial<ChannelUserList>, I>>(base?: I): ChannelUserList {
|
|
7922
|
-
return ChannelUserList.fromPartial(base ?? ({} as any));
|
|
7923
|
-
},
|
|
7924
|
-
fromPartial<I extends Exact<DeepPartial<ChannelUserList>, I>>(object: I): ChannelUserList {
|
|
7925
|
-
const message = createBaseChannelUserList();
|
|
7926
|
-
message.channel_users = object.channel_users?.map((e) => ChannelUserList_ChannelUser.fromPartial(e)) || [];
|
|
7927
|
-
message.cursor = object.cursor ?? "";
|
|
7928
|
-
message.channel_id = object.channel_id ?? "";
|
|
7929
|
-
return message;
|
|
7930
|
-
},
|
|
7931
|
-
};
|
|
7932
|
-
|
|
7933
|
-
function createBaseChannelUserList_ChannelUser(): ChannelUserList_ChannelUser {
|
|
7934
|
-
return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "", added_by: "" };
|
|
7935
|
-
}
|
|
7936
|
-
|
|
7937
|
-
export const ChannelUserList_ChannelUser = {
|
|
7938
|
-
encode(message: ChannelUserList_ChannelUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7939
|
-
if (message.user_id !== "") {
|
|
7940
|
-
writer.uint32(10).string(message.user_id);
|
|
7941
|
-
}
|
|
7942
|
-
for (const v of message.role_id) {
|
|
7943
|
-
writer.uint32(18).string(v!);
|
|
7944
|
-
}
|
|
7945
|
-
if (message.id !== "") {
|
|
7946
|
-
writer.uint32(26).string(message.id);
|
|
7947
|
-
}
|
|
7948
|
-
if (message.thread_id !== "") {
|
|
7949
|
-
writer.uint32(34).string(message.thread_id);
|
|
7950
|
-
}
|
|
7951
|
-
if (message.clan_nick !== "") {
|
|
7952
|
-
writer.uint32(42).string(message.clan_nick);
|
|
7953
|
-
}
|
|
7954
|
-
if (message.clan_avatar !== "") {
|
|
7955
|
-
writer.uint32(50).string(message.clan_avatar);
|
|
7956
|
-
}
|
|
7957
|
-
if (message.clan_id !== "") {
|
|
7958
|
-
writer.uint32(58).string(message.clan_id);
|
|
7959
|
-
}
|
|
7960
|
-
if (message.added_by !== "") {
|
|
7961
|
-
writer.uint32(66).string(message.added_by);
|
|
7962
|
-
}
|
|
7963
|
-
return writer;
|
|
7964
|
-
},
|
|
7965
|
-
|
|
7966
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelUserList_ChannelUser {
|
|
7967
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7968
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7969
|
-
const message = createBaseChannelUserList_ChannelUser();
|
|
7970
|
-
while (reader.pos < end) {
|
|
7971
|
-
const tag = reader.uint32();
|
|
7972
|
-
switch (tag >>> 3) {
|
|
7973
|
-
case 1:
|
|
7974
|
-
if (tag !== 10) {
|
|
7975
|
-
break;
|
|
7976
|
-
}
|
|
7977
|
-
|
|
7978
|
-
message.user_id = reader.string();
|
|
7979
|
-
continue;
|
|
7980
|
-
case 2:
|
|
7981
|
-
if (tag !== 18) {
|
|
7982
|
-
break;
|
|
7983
|
-
}
|
|
7984
|
-
|
|
7985
|
-
message.role_id.push(reader.string());
|
|
7986
|
-
continue;
|
|
7987
|
-
case 3:
|
|
7988
|
-
if (tag !== 26) {
|
|
7989
|
-
break;
|
|
7990
|
-
}
|
|
7991
|
-
|
|
7992
|
-
message.id = reader.string();
|
|
7993
|
-
continue;
|
|
7994
|
-
case 4:
|
|
7995
|
-
if (tag !== 34) {
|
|
7996
|
-
break;
|
|
7997
|
-
}
|
|
7998
|
-
|
|
7999
|
-
message.thread_id = reader.string();
|
|
8000
|
-
continue;
|
|
8001
|
-
case 5:
|
|
8002
|
-
if (tag !== 42) {
|
|
8003
|
-
break;
|
|
8004
|
-
}
|
|
8005
|
-
|
|
8006
|
-
message.clan_nick = reader.string();
|
|
8007
|
-
continue;
|
|
8008
|
-
case 6:
|
|
8009
|
-
if (tag !== 50) {
|
|
8010
|
-
break;
|
|
8011
|
-
}
|
|
8012
|
-
|
|
8013
|
-
message.clan_avatar = reader.string();
|
|
8014
|
-
continue;
|
|
8015
|
-
case 7:
|
|
8016
|
-
if (tag !== 58) {
|
|
8017
|
-
break;
|
|
8018
|
-
}
|
|
8019
|
-
|
|
8020
|
-
message.clan_id = reader.string();
|
|
8021
|
-
continue;
|
|
8022
|
-
case 8:
|
|
8023
|
-
if (tag !== 66) {
|
|
8024
|
-
break;
|
|
8025
|
-
}
|
|
8026
|
-
|
|
8027
|
-
message.added_by = reader.string();
|
|
8028
|
-
continue;
|
|
8029
|
-
}
|
|
8030
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8031
|
-
break;
|
|
8032
|
-
}
|
|
8033
|
-
reader.skipType(tag & 7);
|
|
8034
|
-
}
|
|
8035
|
-
return message;
|
|
8036
|
-
},
|
|
7390
|
+
}
|
|
7391
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7392
|
+
break;
|
|
7393
|
+
}
|
|
7394
|
+
reader.skipType(tag & 7);
|
|
7395
|
+
}
|
|
7396
|
+
return message;
|
|
7397
|
+
},
|
|
8037
7398
|
|
|
8038
7399
|
fromJSON(object: any): ChannelUserList_ChannelUser {
|
|
8039
7400
|
return {
|
|
@@ -11305,7 +10666,7 @@ function createBaseUser(): User {
|
|
|
11305
10666
|
lang_tag: "",
|
|
11306
10667
|
location: "",
|
|
11307
10668
|
timezone: "",
|
|
11308
|
-
|
|
10669
|
+
user_status: "",
|
|
11309
10670
|
online: false,
|
|
11310
10671
|
phone_number: "",
|
|
11311
10672
|
edge_count: 0,
|
|
@@ -11343,8 +10704,8 @@ export const User = {
|
|
|
11343
10704
|
if (message.timezone !== "") {
|
|
11344
10705
|
writer.uint32(58).string(message.timezone);
|
|
11345
10706
|
}
|
|
11346
|
-
if (message.
|
|
11347
|
-
writer.uint32(66).string(message.
|
|
10707
|
+
if (message.user_status !== "") {
|
|
10708
|
+
writer.uint32(66).string(message.user_status);
|
|
11348
10709
|
}
|
|
11349
10710
|
if (message.online !== false) {
|
|
11350
10711
|
writer.uint32(72).bool(message.online);
|
|
@@ -11443,7 +10804,7 @@ export const User = {
|
|
|
11443
10804
|
break;
|
|
11444
10805
|
}
|
|
11445
10806
|
|
|
11446
|
-
message.
|
|
10807
|
+
message.user_status = reader.string();
|
|
11447
10808
|
continue;
|
|
11448
10809
|
case 9:
|
|
11449
10810
|
if (tag !== 72) {
|
|
@@ -11540,7 +10901,7 @@ export const User = {
|
|
|
11540
10901
|
lang_tag: isSet(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
|
|
11541
10902
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
11542
10903
|
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
11543
|
-
|
|
10904
|
+
user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
11544
10905
|
online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
|
|
11545
10906
|
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
11546
10907
|
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
@@ -11580,8 +10941,8 @@ export const User = {
|
|
|
11580
10941
|
if (message.timezone !== "") {
|
|
11581
10942
|
obj.timezone = message.timezone;
|
|
11582
10943
|
}
|
|
11583
|
-
if (message.
|
|
11584
|
-
obj.
|
|
10944
|
+
if (message.user_status !== "") {
|
|
10945
|
+
obj.user_status = message.user_status;
|
|
11585
10946
|
}
|
|
11586
10947
|
if (message.online !== false) {
|
|
11587
10948
|
obj.online = message.online;
|
|
@@ -11593,206 +10954,56 @@ export const User = {
|
|
|
11593
10954
|
obj.edge_count = Math.round(message.edge_count);
|
|
11594
10955
|
}
|
|
11595
10956
|
if (message.create_time !== undefined) {
|
|
11596
|
-
obj.create_time = message.create_time.toISOString();
|
|
11597
|
-
}
|
|
11598
|
-
if (message.update_time !== undefined) {
|
|
11599
|
-
obj.update_time = message.update_time.toISOString();
|
|
11600
|
-
}
|
|
11601
|
-
if (message.about_me !== "") {
|
|
11602
|
-
obj.about_me = message.about_me;
|
|
11603
|
-
}
|
|
11604
|
-
if (message.join_time !== undefined) {
|
|
11605
|
-
obj.join_time = message.join_time.toISOString();
|
|
11606
|
-
}
|
|
11607
|
-
if (message.is_mobile !== false) {
|
|
11608
|
-
obj.is_mobile = message.is_mobile;
|
|
11609
|
-
}
|
|
11610
|
-
if (message.dob !== undefined) {
|
|
11611
|
-
obj.dob = message.dob.toISOString();
|
|
11612
|
-
}
|
|
11613
|
-
if (message.mezon_id !== "") {
|
|
11614
|
-
obj.mezon_id = message.mezon_id;
|
|
11615
|
-
}
|
|
11616
|
-
if (message.list_nick_names?.length) {
|
|
11617
|
-
obj.list_nick_names = message.list_nick_names;
|
|
11618
|
-
}
|
|
11619
|
-
return obj;
|
|
11620
|
-
},
|
|
11621
|
-
|
|
11622
|
-
create<I extends Exact<DeepPartial<User>, I>>(base?: I): User {
|
|
11623
|
-
return User.fromPartial(base ?? ({} as any));
|
|
11624
|
-
},
|
|
11625
|
-
fromPartial<I extends Exact<DeepPartial<User>, I>>(object: I): User {
|
|
11626
|
-
const message = createBaseUser();
|
|
11627
|
-
message.id = object.id ?? "";
|
|
11628
|
-
message.username = object.username ?? "";
|
|
11629
|
-
message.display_name = object.display_name ?? "";
|
|
11630
|
-
message.avatar_url = object.avatar_url ?? "";
|
|
11631
|
-
message.lang_tag = object.lang_tag ?? "";
|
|
11632
|
-
message.location = object.location ?? "";
|
|
11633
|
-
message.timezone = object.timezone ?? "";
|
|
11634
|
-
message.metadata = object.metadata ?? "";
|
|
11635
|
-
message.online = object.online ?? false;
|
|
11636
|
-
message.phone_number = object.phone_number ?? "";
|
|
11637
|
-
message.edge_count = object.edge_count ?? 0;
|
|
11638
|
-
message.create_time = object.create_time ?? undefined;
|
|
11639
|
-
message.update_time = object.update_time ?? undefined;
|
|
11640
|
-
message.about_me = object.about_me ?? "";
|
|
11641
|
-
message.join_time = object.join_time ?? undefined;
|
|
11642
|
-
message.is_mobile = object.is_mobile ?? false;
|
|
11643
|
-
message.dob = object.dob ?? undefined;
|
|
11644
|
-
message.mezon_id = object.mezon_id ?? "";
|
|
11645
|
-
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11646
|
-
return message;
|
|
11647
|
-
},
|
|
11648
|
-
};
|
|
11649
|
-
|
|
11650
|
-
function createBaseUserGroupList(): UserGroupList {
|
|
11651
|
-
return { user_groups: [], cursor: "" };
|
|
11652
|
-
}
|
|
11653
|
-
|
|
11654
|
-
export const UserGroupList = {
|
|
11655
|
-
encode(message: UserGroupList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
11656
|
-
for (const v of message.user_groups) {
|
|
11657
|
-
UserGroupList_UserGroup.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
11658
|
-
}
|
|
11659
|
-
if (message.cursor !== "") {
|
|
11660
|
-
writer.uint32(18).string(message.cursor);
|
|
11661
|
-
}
|
|
11662
|
-
return writer;
|
|
11663
|
-
},
|
|
11664
|
-
|
|
11665
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UserGroupList {
|
|
11666
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11667
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11668
|
-
const message = createBaseUserGroupList();
|
|
11669
|
-
while (reader.pos < end) {
|
|
11670
|
-
const tag = reader.uint32();
|
|
11671
|
-
switch (tag >>> 3) {
|
|
11672
|
-
case 1:
|
|
11673
|
-
if (tag !== 10) {
|
|
11674
|
-
break;
|
|
11675
|
-
}
|
|
11676
|
-
|
|
11677
|
-
message.user_groups.push(UserGroupList_UserGroup.decode(reader, reader.uint32()));
|
|
11678
|
-
continue;
|
|
11679
|
-
case 2:
|
|
11680
|
-
if (tag !== 18) {
|
|
11681
|
-
break;
|
|
11682
|
-
}
|
|
11683
|
-
|
|
11684
|
-
message.cursor = reader.string();
|
|
11685
|
-
continue;
|
|
11686
|
-
}
|
|
11687
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11688
|
-
break;
|
|
11689
|
-
}
|
|
11690
|
-
reader.skipType(tag & 7);
|
|
10957
|
+
obj.create_time = message.create_time.toISOString();
|
|
11691
10958
|
}
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
fromJSON(object: any): UserGroupList {
|
|
11696
|
-
return {
|
|
11697
|
-
user_groups: globalThis.Array.isArray(object?.user_groups)
|
|
11698
|
-
? object.user_groups.map((e: any) => UserGroupList_UserGroup.fromJSON(e))
|
|
11699
|
-
: [],
|
|
11700
|
-
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
11701
|
-
};
|
|
11702
|
-
},
|
|
11703
|
-
|
|
11704
|
-
toJSON(message: UserGroupList): unknown {
|
|
11705
|
-
const obj: any = {};
|
|
11706
|
-
if (message.user_groups?.length) {
|
|
11707
|
-
obj.user_groups = message.user_groups.map((e) => UserGroupList_UserGroup.toJSON(e));
|
|
10959
|
+
if (message.update_time !== undefined) {
|
|
10960
|
+
obj.update_time = message.update_time.toISOString();
|
|
11708
10961
|
}
|
|
11709
|
-
if (message.
|
|
11710
|
-
obj.
|
|
10962
|
+
if (message.about_me !== "") {
|
|
10963
|
+
obj.about_me = message.about_me;
|
|
11711
10964
|
}
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
create<I extends Exact<DeepPartial<UserGroupList>, I>>(base?: I): UserGroupList {
|
|
11716
|
-
return UserGroupList.fromPartial(base ?? ({} as any));
|
|
11717
|
-
},
|
|
11718
|
-
fromPartial<I extends Exact<DeepPartial<UserGroupList>, I>>(object: I): UserGroupList {
|
|
11719
|
-
const message = createBaseUserGroupList();
|
|
11720
|
-
message.user_groups = object.user_groups?.map((e) => UserGroupList_UserGroup.fromPartial(e)) || [];
|
|
11721
|
-
message.cursor = object.cursor ?? "";
|
|
11722
|
-
return message;
|
|
11723
|
-
},
|
|
11724
|
-
};
|
|
11725
|
-
|
|
11726
|
-
function createBaseUserGroupList_UserGroup(): UserGroupList_UserGroup {
|
|
11727
|
-
return { group: undefined, state: undefined };
|
|
11728
|
-
}
|
|
11729
|
-
|
|
11730
|
-
export const UserGroupList_UserGroup = {
|
|
11731
|
-
encode(message: UserGroupList_UserGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
11732
|
-
if (message.group !== undefined) {
|
|
11733
|
-
Group.encode(message.group, writer.uint32(10).fork()).ldelim();
|
|
10965
|
+
if (message.join_time !== undefined) {
|
|
10966
|
+
obj.join_time = message.join_time.toISOString();
|
|
11734
10967
|
}
|
|
11735
|
-
if (message.
|
|
11736
|
-
|
|
10968
|
+
if (message.is_mobile !== false) {
|
|
10969
|
+
obj.is_mobile = message.is_mobile;
|
|
11737
10970
|
}
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UserGroupList_UserGroup {
|
|
11742
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11743
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11744
|
-
const message = createBaseUserGroupList_UserGroup();
|
|
11745
|
-
while (reader.pos < end) {
|
|
11746
|
-
const tag = reader.uint32();
|
|
11747
|
-
switch (tag >>> 3) {
|
|
11748
|
-
case 1:
|
|
11749
|
-
if (tag !== 10) {
|
|
11750
|
-
break;
|
|
11751
|
-
}
|
|
11752
|
-
|
|
11753
|
-
message.group = Group.decode(reader, reader.uint32());
|
|
11754
|
-
continue;
|
|
11755
|
-
case 2:
|
|
11756
|
-
if (tag !== 18) {
|
|
11757
|
-
break;
|
|
11758
|
-
}
|
|
11759
|
-
|
|
11760
|
-
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
11761
|
-
continue;
|
|
11762
|
-
}
|
|
11763
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11764
|
-
break;
|
|
11765
|
-
}
|
|
11766
|
-
reader.skipType(tag & 7);
|
|
10971
|
+
if (message.dob !== undefined) {
|
|
10972
|
+
obj.dob = message.dob.toISOString();
|
|
11767
10973
|
}
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
fromJSON(object: any): UserGroupList_UserGroup {
|
|
11772
|
-
return {
|
|
11773
|
-
group: isSet(object.group) ? Group.fromJSON(object.group) : undefined,
|
|
11774
|
-
state: isSet(object.state) ? Number(object.state) : undefined,
|
|
11775
|
-
};
|
|
11776
|
-
},
|
|
11777
|
-
|
|
11778
|
-
toJSON(message: UserGroupList_UserGroup): unknown {
|
|
11779
|
-
const obj: any = {};
|
|
11780
|
-
if (message.group !== undefined) {
|
|
11781
|
-
obj.group = Group.toJSON(message.group);
|
|
10974
|
+
if (message.mezon_id !== "") {
|
|
10975
|
+
obj.mezon_id = message.mezon_id;
|
|
11782
10976
|
}
|
|
11783
|
-
if (message.
|
|
11784
|
-
obj.
|
|
10977
|
+
if (message.list_nick_names?.length) {
|
|
10978
|
+
obj.list_nick_names = message.list_nick_names;
|
|
11785
10979
|
}
|
|
11786
10980
|
return obj;
|
|
11787
10981
|
},
|
|
11788
10982
|
|
|
11789
|
-
create<I extends Exact<DeepPartial<
|
|
11790
|
-
return
|
|
10983
|
+
create<I extends Exact<DeepPartial<User>, I>>(base?: I): User {
|
|
10984
|
+
return User.fromPartial(base ?? ({} as any));
|
|
11791
10985
|
},
|
|
11792
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
11793
|
-
const message =
|
|
11794
|
-
message.
|
|
11795
|
-
message.
|
|
10986
|
+
fromPartial<I extends Exact<DeepPartial<User>, I>>(object: I): User {
|
|
10987
|
+
const message = createBaseUser();
|
|
10988
|
+
message.id = object.id ?? "";
|
|
10989
|
+
message.username = object.username ?? "";
|
|
10990
|
+
message.display_name = object.display_name ?? "";
|
|
10991
|
+
message.avatar_url = object.avatar_url ?? "";
|
|
10992
|
+
message.lang_tag = object.lang_tag ?? "";
|
|
10993
|
+
message.location = object.location ?? "";
|
|
10994
|
+
message.timezone = object.timezone ?? "";
|
|
10995
|
+
message.user_status = object.user_status ?? "";
|
|
10996
|
+
message.online = object.online ?? false;
|
|
10997
|
+
message.phone_number = object.phone_number ?? "";
|
|
10998
|
+
message.edge_count = object.edge_count ?? 0;
|
|
10999
|
+
message.create_time = object.create_time ?? undefined;
|
|
11000
|
+
message.update_time = object.update_time ?? undefined;
|
|
11001
|
+
message.about_me = object.about_me ?? "";
|
|
11002
|
+
message.join_time = object.join_time ?? undefined;
|
|
11003
|
+
message.is_mobile = object.is_mobile ?? false;
|
|
11004
|
+
message.dob = object.dob ?? undefined;
|
|
11005
|
+
message.mezon_id = object.mezon_id ?? "";
|
|
11006
|
+
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11796
11007
|
return message;
|
|
11797
11008
|
},
|
|
11798
11009
|
};
|
|
@@ -14946,28 +14157,27 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
14946
14157
|
creator_id: "",
|
|
14947
14158
|
channel_label: "",
|
|
14948
14159
|
channel_private: 0,
|
|
14949
|
-
channel_avatar: [],
|
|
14950
|
-
user_id: [],
|
|
14951
14160
|
last_sent_message: undefined,
|
|
14952
14161
|
last_seen_message: undefined,
|
|
14953
|
-
is_online: [],
|
|
14954
14162
|
meeting_code: "",
|
|
14955
14163
|
count_mess_unread: 0,
|
|
14956
14164
|
active: 0,
|
|
14957
14165
|
last_pin_message: "",
|
|
14958
|
-
usernames: [],
|
|
14959
14166
|
creator_name: "",
|
|
14960
14167
|
create_time_seconds: 0,
|
|
14961
14168
|
update_time_seconds: 0,
|
|
14962
|
-
metadata: [],
|
|
14963
|
-
about_me: [],
|
|
14964
14169
|
clan_name: "",
|
|
14965
14170
|
app_id: "",
|
|
14966
14171
|
is_mute: false,
|
|
14967
14172
|
age_restricted: 0,
|
|
14968
|
-
|
|
14173
|
+
channel_avatar: "",
|
|
14969
14174
|
e2ee: 0,
|
|
14175
|
+
topic: "",
|
|
14176
|
+
user_ids: [],
|
|
14177
|
+
usernames: [],
|
|
14970
14178
|
display_names: [],
|
|
14179
|
+
onlines: [],
|
|
14180
|
+
avatars: [],
|
|
14971
14181
|
};
|
|
14972
14182
|
}
|
|
14973
14183
|
|
|
@@ -15000,73 +14210,70 @@ export const ChannelDescription = {
|
|
|
15000
14210
|
if (message.channel_private !== 0) {
|
|
15001
14211
|
writer.uint32(72).int32(message.channel_private);
|
|
15002
14212
|
}
|
|
15003
|
-
for (const v of message.channel_avatar) {
|
|
15004
|
-
writer.uint32(82).string(v!);
|
|
15005
|
-
}
|
|
15006
|
-
for (const v of message.user_id) {
|
|
15007
|
-
writer.uint32(90).string(v!);
|
|
15008
|
-
}
|
|
15009
14213
|
if (message.last_sent_message !== undefined) {
|
|
15010
|
-
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(
|
|
14214
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
|
|
15011
14215
|
}
|
|
15012
14216
|
if (message.last_seen_message !== undefined) {
|
|
15013
|
-
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(
|
|
14217
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(90).fork()).ldelim();
|
|
15014
14218
|
}
|
|
15015
|
-
writer.uint32(114).fork();
|
|
15016
|
-
for (const v of message.is_online) {
|
|
15017
|
-
writer.bool(v);
|
|
15018
|
-
}
|
|
15019
|
-
writer.ldelim();
|
|
15020
14219
|
if (message.meeting_code !== "") {
|
|
15021
|
-
writer.uint32(
|
|
14220
|
+
writer.uint32(98).string(message.meeting_code);
|
|
15022
14221
|
}
|
|
15023
14222
|
if (message.count_mess_unread !== 0) {
|
|
15024
|
-
writer.uint32(
|
|
14223
|
+
writer.uint32(104).int32(message.count_mess_unread);
|
|
15025
14224
|
}
|
|
15026
14225
|
if (message.active !== 0) {
|
|
15027
|
-
writer.uint32(
|
|
14226
|
+
writer.uint32(112).int32(message.active);
|
|
15028
14227
|
}
|
|
15029
14228
|
if (message.last_pin_message !== "") {
|
|
15030
|
-
writer.uint32(
|
|
15031
|
-
}
|
|
15032
|
-
for (const v of message.usernames) {
|
|
15033
|
-
writer.uint32(154).string(v!);
|
|
14229
|
+
writer.uint32(122).string(message.last_pin_message);
|
|
15034
14230
|
}
|
|
15035
14231
|
if (message.creator_name !== "") {
|
|
15036
|
-
writer.uint32(
|
|
14232
|
+
writer.uint32(130).string(message.creator_name);
|
|
15037
14233
|
}
|
|
15038
14234
|
if (message.create_time_seconds !== 0) {
|
|
15039
|
-
writer.uint32(
|
|
14235
|
+
writer.uint32(136).uint32(message.create_time_seconds);
|
|
15040
14236
|
}
|
|
15041
14237
|
if (message.update_time_seconds !== 0) {
|
|
15042
|
-
writer.uint32(
|
|
15043
|
-
}
|
|
15044
|
-
for (const v of message.metadata) {
|
|
15045
|
-
writer.uint32(186).string(v!);
|
|
15046
|
-
}
|
|
15047
|
-
for (const v of message.about_me) {
|
|
15048
|
-
writer.uint32(194).string(v!);
|
|
14238
|
+
writer.uint32(144).uint32(message.update_time_seconds);
|
|
15049
14239
|
}
|
|
15050
14240
|
if (message.clan_name !== "") {
|
|
15051
|
-
writer.uint32(
|
|
14241
|
+
writer.uint32(154).string(message.clan_name);
|
|
15052
14242
|
}
|
|
15053
14243
|
if (message.app_id !== "") {
|
|
15054
|
-
writer.uint32(
|
|
14244
|
+
writer.uint32(162).string(message.app_id);
|
|
15055
14245
|
}
|
|
15056
14246
|
if (message.is_mute !== false) {
|
|
15057
|
-
writer.uint32(
|
|
14247
|
+
writer.uint32(168).bool(message.is_mute);
|
|
15058
14248
|
}
|
|
15059
14249
|
if (message.age_restricted !== 0) {
|
|
15060
|
-
writer.uint32(
|
|
14250
|
+
writer.uint32(176).int32(message.age_restricted);
|
|
15061
14251
|
}
|
|
15062
|
-
if (message.
|
|
15063
|
-
writer.uint32(
|
|
14252
|
+
if (message.channel_avatar !== "") {
|
|
14253
|
+
writer.uint32(186).string(message.channel_avatar);
|
|
15064
14254
|
}
|
|
15065
14255
|
if (message.e2ee !== 0) {
|
|
15066
|
-
writer.uint32(
|
|
14256
|
+
writer.uint32(192).int32(message.e2ee);
|
|
14257
|
+
}
|
|
14258
|
+
if (message.topic !== "") {
|
|
14259
|
+
writer.uint32(202).string(message.topic);
|
|
14260
|
+
}
|
|
14261
|
+
for (const v of message.user_ids) {
|
|
14262
|
+
writer.uint32(210).string(v!);
|
|
14263
|
+
}
|
|
14264
|
+
for (const v of message.usernames) {
|
|
14265
|
+
writer.uint32(218).string(v!);
|
|
15067
14266
|
}
|
|
15068
14267
|
for (const v of message.display_names) {
|
|
15069
|
-
writer.uint32(
|
|
14268
|
+
writer.uint32(226).string(v!);
|
|
14269
|
+
}
|
|
14270
|
+
writer.uint32(234).fork();
|
|
14271
|
+
for (const v of message.onlines) {
|
|
14272
|
+
writer.bool(v);
|
|
14273
|
+
}
|
|
14274
|
+
writer.ldelim();
|
|
14275
|
+
for (const v of message.avatars) {
|
|
14276
|
+
writer.uint32(242).string(v!);
|
|
15070
14277
|
}
|
|
15071
14278
|
return writer;
|
|
15072
14279
|
},
|
|
@@ -15146,164 +14353,157 @@ export const ChannelDescription = {
|
|
|
15146
14353
|
break;
|
|
15147
14354
|
}
|
|
15148
14355
|
|
|
15149
|
-
message.
|
|
14356
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
15150
14357
|
continue;
|
|
15151
14358
|
case 11:
|
|
15152
14359
|
if (tag !== 90) {
|
|
15153
14360
|
break;
|
|
15154
14361
|
}
|
|
15155
14362
|
|
|
15156
|
-
message.
|
|
14363
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
15157
14364
|
continue;
|
|
15158
14365
|
case 12:
|
|
15159
14366
|
if (tag !== 98) {
|
|
15160
14367
|
break;
|
|
15161
14368
|
}
|
|
15162
14369
|
|
|
15163
|
-
message.
|
|
14370
|
+
message.meeting_code = reader.string();
|
|
15164
14371
|
continue;
|
|
15165
14372
|
case 13:
|
|
15166
|
-
if (tag !==
|
|
14373
|
+
if (tag !== 104) {
|
|
15167
14374
|
break;
|
|
15168
14375
|
}
|
|
15169
14376
|
|
|
15170
|
-
message.
|
|
14377
|
+
message.count_mess_unread = reader.int32();
|
|
15171
14378
|
continue;
|
|
15172
14379
|
case 14:
|
|
15173
|
-
if (tag
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
continue;
|
|
15177
|
-
}
|
|
15178
|
-
|
|
15179
|
-
if (tag === 114) {
|
|
15180
|
-
const end2 = reader.uint32() + reader.pos;
|
|
15181
|
-
while (reader.pos < end2) {
|
|
15182
|
-
message.is_online.push(reader.bool());
|
|
15183
|
-
}
|
|
15184
|
-
|
|
15185
|
-
continue;
|
|
14380
|
+
if (tag !== 112) {
|
|
14381
|
+
break;
|
|
15186
14382
|
}
|
|
15187
14383
|
|
|
15188
|
-
|
|
14384
|
+
message.active = reader.int32();
|
|
14385
|
+
continue;
|
|
15189
14386
|
case 15:
|
|
15190
14387
|
if (tag !== 122) {
|
|
15191
14388
|
break;
|
|
15192
14389
|
}
|
|
15193
14390
|
|
|
15194
|
-
message.
|
|
14391
|
+
message.last_pin_message = reader.string();
|
|
15195
14392
|
continue;
|
|
15196
14393
|
case 16:
|
|
15197
|
-
if (tag !==
|
|
14394
|
+
if (tag !== 130) {
|
|
15198
14395
|
break;
|
|
15199
14396
|
}
|
|
15200
14397
|
|
|
15201
|
-
message.
|
|
14398
|
+
message.creator_name = reader.string();
|
|
15202
14399
|
continue;
|
|
15203
14400
|
case 17:
|
|
15204
14401
|
if (tag !== 136) {
|
|
15205
14402
|
break;
|
|
15206
14403
|
}
|
|
15207
14404
|
|
|
15208
|
-
message.
|
|
14405
|
+
message.create_time_seconds = reader.uint32();
|
|
15209
14406
|
continue;
|
|
15210
14407
|
case 18:
|
|
15211
|
-
if (tag !==
|
|
14408
|
+
if (tag !== 144) {
|
|
15212
14409
|
break;
|
|
15213
14410
|
}
|
|
15214
14411
|
|
|
15215
|
-
message.
|
|
14412
|
+
message.update_time_seconds = reader.uint32();
|
|
15216
14413
|
continue;
|
|
15217
14414
|
case 19:
|
|
15218
14415
|
if (tag !== 154) {
|
|
15219
14416
|
break;
|
|
15220
14417
|
}
|
|
15221
14418
|
|
|
15222
|
-
message.
|
|
14419
|
+
message.clan_name = reader.string();
|
|
15223
14420
|
continue;
|
|
15224
14421
|
case 20:
|
|
15225
14422
|
if (tag !== 162) {
|
|
15226
14423
|
break;
|
|
15227
14424
|
}
|
|
15228
14425
|
|
|
15229
|
-
message.
|
|
14426
|
+
message.app_id = reader.string();
|
|
15230
14427
|
continue;
|
|
15231
14428
|
case 21:
|
|
15232
14429
|
if (tag !== 168) {
|
|
15233
14430
|
break;
|
|
15234
14431
|
}
|
|
15235
14432
|
|
|
15236
|
-
message.
|
|
14433
|
+
message.is_mute = reader.bool();
|
|
15237
14434
|
continue;
|
|
15238
14435
|
case 22:
|
|
15239
14436
|
if (tag !== 176) {
|
|
15240
14437
|
break;
|
|
15241
14438
|
}
|
|
15242
14439
|
|
|
15243
|
-
message.
|
|
14440
|
+
message.age_restricted = reader.int32();
|
|
15244
14441
|
continue;
|
|
15245
14442
|
case 23:
|
|
15246
14443
|
if (tag !== 186) {
|
|
15247
14444
|
break;
|
|
15248
14445
|
}
|
|
15249
14446
|
|
|
15250
|
-
message.
|
|
14447
|
+
message.channel_avatar = reader.string();
|
|
15251
14448
|
continue;
|
|
15252
14449
|
case 24:
|
|
15253
|
-
if (tag !==
|
|
14450
|
+
if (tag !== 192) {
|
|
15254
14451
|
break;
|
|
15255
14452
|
}
|
|
15256
14453
|
|
|
15257
|
-
message.
|
|
14454
|
+
message.e2ee = reader.int32();
|
|
15258
14455
|
continue;
|
|
15259
14456
|
case 25:
|
|
15260
14457
|
if (tag !== 202) {
|
|
15261
14458
|
break;
|
|
15262
14459
|
}
|
|
15263
14460
|
|
|
15264
|
-
message.
|
|
14461
|
+
message.topic = reader.string();
|
|
15265
14462
|
continue;
|
|
15266
14463
|
case 26:
|
|
15267
14464
|
if (tag !== 210) {
|
|
15268
14465
|
break;
|
|
15269
14466
|
}
|
|
15270
14467
|
|
|
15271
|
-
message.
|
|
14468
|
+
message.user_ids.push(reader.string());
|
|
15272
14469
|
continue;
|
|
15273
14470
|
case 27:
|
|
15274
|
-
if (tag !==
|
|
14471
|
+
if (tag !== 218) {
|
|
15275
14472
|
break;
|
|
15276
14473
|
}
|
|
15277
14474
|
|
|
15278
|
-
message.
|
|
14475
|
+
message.usernames.push(reader.string());
|
|
15279
14476
|
continue;
|
|
15280
14477
|
case 28:
|
|
15281
|
-
if (tag !==
|
|
14478
|
+
if (tag !== 226) {
|
|
15282
14479
|
break;
|
|
15283
14480
|
}
|
|
15284
14481
|
|
|
15285
|
-
message.
|
|
14482
|
+
message.display_names.push(reader.string());
|
|
15286
14483
|
continue;
|
|
15287
14484
|
case 29:
|
|
15288
|
-
if (tag
|
|
15289
|
-
|
|
14485
|
+
if (tag === 232) {
|
|
14486
|
+
message.onlines.push(reader.bool());
|
|
14487
|
+
|
|
14488
|
+
continue;
|
|
15290
14489
|
}
|
|
15291
14490
|
|
|
15292
|
-
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
|
|
15296
|
-
|
|
14491
|
+
if (tag === 234) {
|
|
14492
|
+
const end2 = reader.uint32() + reader.pos;
|
|
14493
|
+
while (reader.pos < end2) {
|
|
14494
|
+
message.onlines.push(reader.bool());
|
|
14495
|
+
}
|
|
14496
|
+
|
|
14497
|
+
continue;
|
|
15297
14498
|
}
|
|
15298
14499
|
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
if (tag !== 250) {
|
|
14500
|
+
break;
|
|
14501
|
+
case 30:
|
|
14502
|
+
if (tag !== 242) {
|
|
15303
14503
|
break;
|
|
15304
14504
|
}
|
|
15305
14505
|
|
|
15306
|
-
message.
|
|
14506
|
+
message.avatars.push(reader.string());
|
|
15307
14507
|
continue;
|
|
15308
14508
|
}
|
|
15309
14509
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -15325,42 +14525,37 @@ export const ChannelDescription = {
|
|
|
15325
14525
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
15326
14526
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
15327
14527
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
15328
|
-
channel_avatar: globalThis.Array.isArray(object?.channel_avatar)
|
|
15329
|
-
? object.channel_avatar.map((e: any) => globalThis.String(e))
|
|
15330
|
-
: [],
|
|
15331
|
-
user_id: globalThis.Array.isArray(object?.user_id) ? object.user_id.map((e: any) => globalThis.String(e)) : [],
|
|
15332
14528
|
last_sent_message: isSet(object.last_sent_message)
|
|
15333
14529
|
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
15334
14530
|
: undefined,
|
|
15335
14531
|
last_seen_message: isSet(object.last_seen_message)
|
|
15336
14532
|
? ChannelMessageHeader.fromJSON(object.last_seen_message)
|
|
15337
14533
|
: undefined,
|
|
15338
|
-
is_online: globalThis.Array.isArray(object?.is_online)
|
|
15339
|
-
? object.is_online.map((e: any) => globalThis.Boolean(e))
|
|
15340
|
-
: [],
|
|
15341
14534
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
15342
14535
|
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
15343
14536
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
15344
14537
|
last_pin_message: isSet(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
15345
|
-
usernames: globalThis.Array.isArray(object?.usernames)
|
|
15346
|
-
? object.usernames.map((e: any) => globalThis.String(e))
|
|
15347
|
-
: [],
|
|
15348
14538
|
creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
15349
14539
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
15350
14540
|
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
15351
|
-
metadata: globalThis.Array.isArray(object?.metadata)
|
|
15352
|
-
? object.metadata.map((e: any) => globalThis.String(e))
|
|
15353
|
-
: [],
|
|
15354
|
-
about_me: globalThis.Array.isArray(object?.about_me) ? object.about_me.map((e: any) => globalThis.String(e)) : [],
|
|
15355
14541
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
15356
14542
|
app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
15357
14543
|
is_mute: isSet(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
15358
14544
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
15359
|
-
|
|
14545
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
15360
14546
|
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
14547
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
14548
|
+
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
14549
|
+
usernames: globalThis.Array.isArray(object?.usernames)
|
|
14550
|
+
? object.usernames.map((e: any) => globalThis.String(e))
|
|
14551
|
+
: [],
|
|
15361
14552
|
display_names: globalThis.Array.isArray(object?.display_names)
|
|
15362
14553
|
? object.display_names.map((e: any) => globalThis.String(e))
|
|
15363
14554
|
: [],
|
|
14555
|
+
onlines: globalThis.Array.isArray(object?.onlines)
|
|
14556
|
+
? object.onlines.map((e: any) => globalThis.Boolean(e))
|
|
14557
|
+
: [],
|
|
14558
|
+
avatars: globalThis.Array.isArray(object?.avatars) ? object.avatars.map((e: any) => globalThis.String(e)) : [],
|
|
15364
14559
|
};
|
|
15365
14560
|
},
|
|
15366
14561
|
|
|
@@ -15393,21 +14588,12 @@ export const ChannelDescription = {
|
|
|
15393
14588
|
if (message.channel_private !== 0) {
|
|
15394
14589
|
obj.channel_private = Math.round(message.channel_private);
|
|
15395
14590
|
}
|
|
15396
|
-
if (message.channel_avatar?.length) {
|
|
15397
|
-
obj.channel_avatar = message.channel_avatar;
|
|
15398
|
-
}
|
|
15399
|
-
if (message.user_id?.length) {
|
|
15400
|
-
obj.user_id = message.user_id;
|
|
15401
|
-
}
|
|
15402
14591
|
if (message.last_sent_message !== undefined) {
|
|
15403
14592
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
15404
14593
|
}
|
|
15405
14594
|
if (message.last_seen_message !== undefined) {
|
|
15406
14595
|
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
15407
14596
|
}
|
|
15408
|
-
if (message.is_online?.length) {
|
|
15409
|
-
obj.is_online = message.is_online;
|
|
15410
|
-
}
|
|
15411
14597
|
if (message.meeting_code !== "") {
|
|
15412
14598
|
obj.meeting_code = message.meeting_code;
|
|
15413
14599
|
}
|
|
@@ -15420,9 +14606,6 @@ export const ChannelDescription = {
|
|
|
15420
14606
|
if (message.last_pin_message !== "") {
|
|
15421
14607
|
obj.last_pin_message = message.last_pin_message;
|
|
15422
14608
|
}
|
|
15423
|
-
if (message.usernames?.length) {
|
|
15424
|
-
obj.usernames = message.usernames;
|
|
15425
|
-
}
|
|
15426
14609
|
if (message.creator_name !== "") {
|
|
15427
14610
|
obj.creator_name = message.creator_name;
|
|
15428
14611
|
}
|
|
@@ -15432,12 +14615,6 @@ export const ChannelDescription = {
|
|
|
15432
14615
|
if (message.update_time_seconds !== 0) {
|
|
15433
14616
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
15434
14617
|
}
|
|
15435
|
-
if (message.metadata?.length) {
|
|
15436
|
-
obj.metadata = message.metadata;
|
|
15437
|
-
}
|
|
15438
|
-
if (message.about_me?.length) {
|
|
15439
|
-
obj.about_me = message.about_me;
|
|
15440
|
-
}
|
|
15441
14618
|
if (message.clan_name !== "") {
|
|
15442
14619
|
obj.clan_name = message.clan_name;
|
|
15443
14620
|
}
|
|
@@ -15450,15 +14627,30 @@ export const ChannelDescription = {
|
|
|
15450
14627
|
if (message.age_restricted !== 0) {
|
|
15451
14628
|
obj.age_restricted = Math.round(message.age_restricted);
|
|
15452
14629
|
}
|
|
15453
|
-
if (message.
|
|
15454
|
-
obj.
|
|
14630
|
+
if (message.channel_avatar !== "") {
|
|
14631
|
+
obj.channel_avatar = message.channel_avatar;
|
|
15455
14632
|
}
|
|
15456
14633
|
if (message.e2ee !== 0) {
|
|
15457
14634
|
obj.e2ee = Math.round(message.e2ee);
|
|
15458
14635
|
}
|
|
14636
|
+
if (message.topic !== "") {
|
|
14637
|
+
obj.topic = message.topic;
|
|
14638
|
+
}
|
|
14639
|
+
if (message.user_ids?.length) {
|
|
14640
|
+
obj.user_ids = message.user_ids;
|
|
14641
|
+
}
|
|
14642
|
+
if (message.usernames?.length) {
|
|
14643
|
+
obj.usernames = message.usernames;
|
|
14644
|
+
}
|
|
15459
14645
|
if (message.display_names?.length) {
|
|
15460
14646
|
obj.display_names = message.display_names;
|
|
15461
14647
|
}
|
|
14648
|
+
if (message.onlines?.length) {
|
|
14649
|
+
obj.onlines = message.onlines;
|
|
14650
|
+
}
|
|
14651
|
+
if (message.avatars?.length) {
|
|
14652
|
+
obj.avatars = message.avatars;
|
|
14653
|
+
}
|
|
15462
14654
|
return obj;
|
|
15463
14655
|
},
|
|
15464
14656
|
|
|
@@ -15476,32 +14668,31 @@ export const ChannelDescription = {
|
|
|
15476
14668
|
message.creator_id = object.creator_id ?? "";
|
|
15477
14669
|
message.channel_label = object.channel_label ?? "";
|
|
15478
14670
|
message.channel_private = object.channel_private ?? 0;
|
|
15479
|
-
message.channel_avatar = object.channel_avatar?.map((e) => e) || [];
|
|
15480
|
-
message.user_id = object.user_id?.map((e) => e) || [];
|
|
15481
14671
|
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
15482
14672
|
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
15483
14673
|
: undefined;
|
|
15484
14674
|
message.last_seen_message = (object.last_seen_message !== undefined && object.last_seen_message !== null)
|
|
15485
14675
|
? ChannelMessageHeader.fromPartial(object.last_seen_message)
|
|
15486
14676
|
: undefined;
|
|
15487
|
-
message.is_online = object.is_online?.map((e) => e) || [];
|
|
15488
14677
|
message.meeting_code = object.meeting_code ?? "";
|
|
15489
14678
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
15490
14679
|
message.active = object.active ?? 0;
|
|
15491
14680
|
message.last_pin_message = object.last_pin_message ?? "";
|
|
15492
|
-
message.usernames = object.usernames?.map((e) => e) || [];
|
|
15493
14681
|
message.creator_name = object.creator_name ?? "";
|
|
15494
14682
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
15495
14683
|
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
15496
|
-
message.metadata = object.metadata?.map((e) => e) || [];
|
|
15497
|
-
message.about_me = object.about_me?.map((e) => e) || [];
|
|
15498
14684
|
message.clan_name = object.clan_name ?? "";
|
|
15499
14685
|
message.app_id = object.app_id ?? "";
|
|
15500
14686
|
message.is_mute = object.is_mute ?? false;
|
|
15501
14687
|
message.age_restricted = object.age_restricted ?? 0;
|
|
15502
|
-
message.
|
|
14688
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
15503
14689
|
message.e2ee = object.e2ee ?? 0;
|
|
14690
|
+
message.topic = object.topic ?? "";
|
|
14691
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
14692
|
+
message.usernames = object.usernames?.map((e) => e) || [];
|
|
15504
14693
|
message.display_names = object.display_names?.map((e) => e) || [];
|
|
14694
|
+
message.onlines = object.onlines?.map((e) => e) || [];
|
|
14695
|
+
message.avatars = object.avatars?.map((e) => e) || [];
|
|
15505
14696
|
return message;
|
|
15506
14697
|
},
|
|
15507
14698
|
};
|