mezon-js-protobuf 1.8.35 → 1.8.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api.ts +356 -1148
- package/dist/mezon-js-protobuf/api/api.d.ts +616 -1690
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1749 -1841
- package/dist/mezon-js-protobuf.cjs.js +284 -204
- package/dist/mezon-js-protobuf.esm.mjs +284 -204
- package/package.json +1 -1
- package/rtapi/realtime.ts +167 -48
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. */
|
|
@@ -1537,6 +1361,8 @@ export interface ClanProfile {
|
|
|
1537
1361
|
avatar: string;
|
|
1538
1362
|
/** id clan */
|
|
1539
1363
|
clan_id: string;
|
|
1364
|
+
/** about clan */
|
|
1365
|
+
about: string;
|
|
1540
1366
|
}
|
|
1541
1367
|
|
|
1542
1368
|
/** information user by clan requset */
|
|
@@ -1671,10 +1497,6 @@ export interface ChannelDescription {
|
|
|
1671
1497
|
channel_label: string;
|
|
1672
1498
|
/** The channel private */
|
|
1673
1499
|
channel_private: number;
|
|
1674
|
-
/** The channel avatar */
|
|
1675
|
-
channel_avatar: string[];
|
|
1676
|
-
/** The user id */
|
|
1677
|
-
user_id: string[];
|
|
1678
1500
|
/** last message id */
|
|
1679
1501
|
last_sent_message:
|
|
1680
1502
|
| ChannelMessageHeader
|
|
@@ -1683,8 +1505,6 @@ export interface ChannelDescription {
|
|
|
1683
1505
|
last_seen_message:
|
|
1684
1506
|
| ChannelMessageHeader
|
|
1685
1507
|
| undefined;
|
|
1686
|
-
/** status */
|
|
1687
|
-
is_online: boolean[];
|
|
1688
1508
|
/** meeting code */
|
|
1689
1509
|
meeting_code: string;
|
|
1690
1510
|
/** count message unread */
|
|
@@ -1693,18 +1513,12 @@ export interface ChannelDescription {
|
|
|
1693
1513
|
active: number;
|
|
1694
1514
|
/** last pin message */
|
|
1695
1515
|
last_pin_message: string;
|
|
1696
|
-
/** the usernames */
|
|
1697
|
-
usernames: string[];
|
|
1698
1516
|
/** creator name */
|
|
1699
1517
|
creator_name: string;
|
|
1700
1518
|
/** create time ms */
|
|
1701
1519
|
create_time_seconds: number;
|
|
1702
1520
|
/** update time ms */
|
|
1703
1521
|
update_time_seconds: number;
|
|
1704
|
-
/** Additional information stored as a JSON object. */
|
|
1705
|
-
metadata: string[];
|
|
1706
|
-
/** about_me */
|
|
1707
|
-
about_me: string[];
|
|
1708
1522
|
/** clan_name */
|
|
1709
1523
|
clan_name: string;
|
|
1710
1524
|
/** app url */
|
|
@@ -1713,12 +1527,22 @@ export interface ChannelDescription {
|
|
|
1713
1527
|
is_mute: boolean;
|
|
1714
1528
|
/** age restricted */
|
|
1715
1529
|
age_restricted: number;
|
|
1716
|
-
/**
|
|
1717
|
-
|
|
1530
|
+
/** channel avatar */
|
|
1531
|
+
channel_avatar: string;
|
|
1718
1532
|
/** e2ee */
|
|
1719
1533
|
e2ee: number;
|
|
1720
|
-
/**
|
|
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 */
|
|
1721
1541
|
display_names: string[];
|
|
1542
|
+
/** DM status */
|
|
1543
|
+
onlines: boolean[];
|
|
1544
|
+
/** DM avatars */
|
|
1545
|
+
avatars: string[];
|
|
1722
1546
|
}
|
|
1723
1547
|
|
|
1724
1548
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -7376,68 +7200,134 @@ export const UpdateUsersRequest = {
|
|
|
7376
7200
|
},
|
|
7377
7201
|
};
|
|
7378
7202
|
|
|
7379
|
-
function
|
|
7380
|
-
return {
|
|
7381
|
-
id: "",
|
|
7382
|
-
creator_id: "",
|
|
7383
|
-
name: "",
|
|
7384
|
-
description: "",
|
|
7385
|
-
lang_tag: "",
|
|
7386
|
-
metadata: "",
|
|
7387
|
-
avatar_url: "",
|
|
7388
|
-
open: undefined,
|
|
7389
|
-
edge_count: 0,
|
|
7390
|
-
max_count: 0,
|
|
7391
|
-
create_time: undefined,
|
|
7392
|
-
update_time: undefined,
|
|
7393
|
-
};
|
|
7203
|
+
function createBaseChannelUserList(): ChannelUserList {
|
|
7204
|
+
return { channel_users: [], cursor: "", channel_id: "" };
|
|
7394
7205
|
}
|
|
7395
7206
|
|
|
7396
|
-
export const
|
|
7397
|
-
encode(message:
|
|
7398
|
-
|
|
7399
|
-
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();
|
|
7400
7211
|
}
|
|
7401
|
-
if (message.
|
|
7402
|
-
writer.uint32(18).string(message.
|
|
7212
|
+
if (message.cursor !== "") {
|
|
7213
|
+
writer.uint32(18).string(message.cursor);
|
|
7403
7214
|
}
|
|
7404
|
-
if (message.
|
|
7405
|
-
writer.uint32(26).string(message.
|
|
7215
|
+
if (message.channel_id !== "") {
|
|
7216
|
+
writer.uint32(26).string(message.channel_id);
|
|
7406
7217
|
}
|
|
7407
|
-
|
|
7408
|
-
|
|
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);
|
|
7409
7254
|
}
|
|
7410
|
-
|
|
7411
|
-
|
|
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));
|
|
7412
7272
|
}
|
|
7413
|
-
if (message.
|
|
7414
|
-
|
|
7273
|
+
if (message.cursor !== "") {
|
|
7274
|
+
obj.cursor = message.cursor;
|
|
7415
7275
|
}
|
|
7416
|
-
if (message.
|
|
7417
|
-
|
|
7276
|
+
if (message.channel_id !== "") {
|
|
7277
|
+
obj.channel_id = message.channel_id;
|
|
7418
7278
|
}
|
|
7419
|
-
|
|
7420
|
-
|
|
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);
|
|
7421
7302
|
}
|
|
7422
|
-
|
|
7423
|
-
writer.uint32(
|
|
7303
|
+
for (const v of message.role_id) {
|
|
7304
|
+
writer.uint32(18).string(v!);
|
|
7424
7305
|
}
|
|
7425
|
-
if (message.
|
|
7426
|
-
writer.uint32(
|
|
7306
|
+
if (message.id !== "") {
|
|
7307
|
+
writer.uint32(26).string(message.id);
|
|
7427
7308
|
}
|
|
7428
|
-
if (message.
|
|
7429
|
-
|
|
7309
|
+
if (message.thread_id !== "") {
|
|
7310
|
+
writer.uint32(34).string(message.thread_id);
|
|
7430
7311
|
}
|
|
7431
|
-
if (message.
|
|
7432
|
-
|
|
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);
|
|
7433
7323
|
}
|
|
7434
7324
|
return writer;
|
|
7435
7325
|
},
|
|
7436
7326
|
|
|
7437
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
7327
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelUserList_ChannelUser {
|
|
7438
7328
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7439
7329
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7440
|
-
const message =
|
|
7330
|
+
const message = createBaseChannelUserList_ChannelUser();
|
|
7441
7331
|
while (reader.pos < end) {
|
|
7442
7332
|
const tag = reader.uint32();
|
|
7443
7333
|
switch (tag >>> 3) {
|
|
@@ -7446,583 +7336,56 @@ export const Group = {
|
|
|
7446
7336
|
break;
|
|
7447
7337
|
}
|
|
7448
7338
|
|
|
7449
|
-
message.
|
|
7339
|
+
message.user_id = reader.string();
|
|
7450
7340
|
continue;
|
|
7451
7341
|
case 2:
|
|
7452
7342
|
if (tag !== 18) {
|
|
7453
7343
|
break;
|
|
7454
7344
|
}
|
|
7455
7345
|
|
|
7456
|
-
message.
|
|
7346
|
+
message.role_id.push(reader.string());
|
|
7457
7347
|
continue;
|
|
7458
7348
|
case 3:
|
|
7459
7349
|
if (tag !== 26) {
|
|
7460
7350
|
break;
|
|
7461
7351
|
}
|
|
7462
7352
|
|
|
7463
|
-
message.
|
|
7353
|
+
message.id = reader.string();
|
|
7464
7354
|
continue;
|
|
7465
7355
|
case 4:
|
|
7466
7356
|
if (tag !== 34) {
|
|
7467
7357
|
break;
|
|
7468
7358
|
}
|
|
7469
7359
|
|
|
7470
|
-
message.
|
|
7360
|
+
message.thread_id = reader.string();
|
|
7471
7361
|
continue;
|
|
7472
7362
|
case 5:
|
|
7473
7363
|
if (tag !== 42) {
|
|
7474
7364
|
break;
|
|
7475
7365
|
}
|
|
7476
7366
|
|
|
7477
|
-
message.
|
|
7367
|
+
message.clan_nick = reader.string();
|
|
7478
7368
|
continue;
|
|
7479
7369
|
case 6:
|
|
7480
7370
|
if (tag !== 50) {
|
|
7481
7371
|
break;
|
|
7482
7372
|
}
|
|
7483
7373
|
|
|
7484
|
-
message.
|
|
7374
|
+
message.clan_avatar = reader.string();
|
|
7485
7375
|
continue;
|
|
7486
7376
|
case 7:
|
|
7487
7377
|
if (tag !== 58) {
|
|
7488
7378
|
break;
|
|
7489
7379
|
}
|
|
7490
7380
|
|
|
7491
|
-
message.
|
|
7381
|
+
message.clan_id = reader.string();
|
|
7492
7382
|
continue;
|
|
7493
7383
|
case 8:
|
|
7494
7384
|
if (tag !== 66) {
|
|
7495
7385
|
break;
|
|
7496
7386
|
}
|
|
7497
7387
|
|
|
7498
|
-
message.
|
|
7499
|
-
continue;
|
|
7500
|
-
case 9:
|
|
7501
|
-
if (tag !== 72) {
|
|
7502
|
-
break;
|
|
7503
|
-
}
|
|
7504
|
-
|
|
7505
|
-
message.edge_count = reader.int32();
|
|
7506
|
-
continue;
|
|
7507
|
-
case 10:
|
|
7508
|
-
if (tag !== 80) {
|
|
7509
|
-
break;
|
|
7510
|
-
}
|
|
7511
|
-
|
|
7512
|
-
message.max_count = reader.int32();
|
|
7513
|
-
continue;
|
|
7514
|
-
case 11:
|
|
7515
|
-
if (tag !== 90) {
|
|
7516
|
-
break;
|
|
7517
|
-
}
|
|
7518
|
-
|
|
7519
|
-
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
7520
|
-
continue;
|
|
7521
|
-
case 12:
|
|
7522
|
-
if (tag !== 98) {
|
|
7523
|
-
break;
|
|
7524
|
-
}
|
|
7525
|
-
|
|
7526
|
-
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
7527
|
-
continue;
|
|
7528
|
-
}
|
|
7529
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7530
|
-
break;
|
|
7531
|
-
}
|
|
7532
|
-
reader.skipType(tag & 7);
|
|
7533
|
-
}
|
|
7534
|
-
return message;
|
|
7535
|
-
},
|
|
7536
|
-
|
|
7537
|
-
fromJSON(object: any): Group {
|
|
7538
|
-
return {
|
|
7539
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
7540
|
-
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
7541
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
7542
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
7543
|
-
lang_tag: isSet(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
|
|
7544
|
-
metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
7545
|
-
avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
7546
|
-
open: isSet(object.open) ? Boolean(object.open) : undefined,
|
|
7547
|
-
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
7548
|
-
max_count: isSet(object.max_count) ? globalThis.Number(object.max_count) : 0,
|
|
7549
|
-
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
7550
|
-
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
7551
|
-
};
|
|
7552
|
-
},
|
|
7553
|
-
|
|
7554
|
-
toJSON(message: Group): unknown {
|
|
7555
|
-
const obj: any = {};
|
|
7556
|
-
if (message.id !== "") {
|
|
7557
|
-
obj.id = message.id;
|
|
7558
|
-
}
|
|
7559
|
-
if (message.creator_id !== "") {
|
|
7560
|
-
obj.creator_id = message.creator_id;
|
|
7561
|
-
}
|
|
7562
|
-
if (message.name !== "") {
|
|
7563
|
-
obj.name = message.name;
|
|
7564
|
-
}
|
|
7565
|
-
if (message.description !== "") {
|
|
7566
|
-
obj.description = message.description;
|
|
7567
|
-
}
|
|
7568
|
-
if (message.lang_tag !== "") {
|
|
7569
|
-
obj.lang_tag = message.lang_tag;
|
|
7570
|
-
}
|
|
7571
|
-
if (message.metadata !== "") {
|
|
7572
|
-
obj.metadata = message.metadata;
|
|
7573
|
-
}
|
|
7574
|
-
if (message.avatar_url !== "") {
|
|
7575
|
-
obj.avatar_url = message.avatar_url;
|
|
7576
|
-
}
|
|
7577
|
-
if (message.open !== undefined) {
|
|
7578
|
-
obj.open = message.open;
|
|
7579
|
-
}
|
|
7580
|
-
if (message.edge_count !== 0) {
|
|
7581
|
-
obj.edge_count = Math.round(message.edge_count);
|
|
7582
|
-
}
|
|
7583
|
-
if (message.max_count !== 0) {
|
|
7584
|
-
obj.max_count = Math.round(message.max_count);
|
|
7585
|
-
}
|
|
7586
|
-
if (message.create_time !== undefined) {
|
|
7587
|
-
obj.create_time = message.create_time.toISOString();
|
|
7588
|
-
}
|
|
7589
|
-
if (message.update_time !== undefined) {
|
|
7590
|
-
obj.update_time = message.update_time.toISOString();
|
|
7591
|
-
}
|
|
7592
|
-
return obj;
|
|
7593
|
-
},
|
|
7594
|
-
|
|
7595
|
-
create<I extends Exact<DeepPartial<Group>, I>>(base?: I): Group {
|
|
7596
|
-
return Group.fromPartial(base ?? ({} as any));
|
|
7597
|
-
},
|
|
7598
|
-
fromPartial<I extends Exact<DeepPartial<Group>, I>>(object: I): Group {
|
|
7599
|
-
const message = createBaseGroup();
|
|
7600
|
-
message.id = object.id ?? "";
|
|
7601
|
-
message.creator_id = object.creator_id ?? "";
|
|
7602
|
-
message.name = object.name ?? "";
|
|
7603
|
-
message.description = object.description ?? "";
|
|
7604
|
-
message.lang_tag = object.lang_tag ?? "";
|
|
7605
|
-
message.metadata = object.metadata ?? "";
|
|
7606
|
-
message.avatar_url = object.avatar_url ?? "";
|
|
7607
|
-
message.open = object.open ?? undefined;
|
|
7608
|
-
message.edge_count = object.edge_count ?? 0;
|
|
7609
|
-
message.max_count = object.max_count ?? 0;
|
|
7610
|
-
message.create_time = object.create_time ?? undefined;
|
|
7611
|
-
message.update_time = object.update_time ?? undefined;
|
|
7612
|
-
return message;
|
|
7613
|
-
},
|
|
7614
|
-
};
|
|
7615
|
-
|
|
7616
|
-
function createBaseGroupList(): GroupList {
|
|
7617
|
-
return { groups: [], cursor: "" };
|
|
7618
|
-
}
|
|
7619
|
-
|
|
7620
|
-
export const GroupList = {
|
|
7621
|
-
encode(message: GroupList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7622
|
-
for (const v of message.groups) {
|
|
7623
|
-
Group.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7624
|
-
}
|
|
7625
|
-
if (message.cursor !== "") {
|
|
7626
|
-
writer.uint32(18).string(message.cursor);
|
|
7627
|
-
}
|
|
7628
|
-
return writer;
|
|
7629
|
-
},
|
|
7630
|
-
|
|
7631
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GroupList {
|
|
7632
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7633
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7634
|
-
const message = createBaseGroupList();
|
|
7635
|
-
while (reader.pos < end) {
|
|
7636
|
-
const tag = reader.uint32();
|
|
7637
|
-
switch (tag >>> 3) {
|
|
7638
|
-
case 1:
|
|
7639
|
-
if (tag !== 10) {
|
|
7640
|
-
break;
|
|
7641
|
-
}
|
|
7642
|
-
|
|
7643
|
-
message.groups.push(Group.decode(reader, reader.uint32()));
|
|
7644
|
-
continue;
|
|
7645
|
-
case 2:
|
|
7646
|
-
if (tag !== 18) {
|
|
7647
|
-
break;
|
|
7648
|
-
}
|
|
7649
|
-
|
|
7650
|
-
message.cursor = reader.string();
|
|
7651
|
-
continue;
|
|
7652
|
-
}
|
|
7653
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7654
|
-
break;
|
|
7655
|
-
}
|
|
7656
|
-
reader.skipType(tag & 7);
|
|
7657
|
-
}
|
|
7658
|
-
return message;
|
|
7659
|
-
},
|
|
7660
|
-
|
|
7661
|
-
fromJSON(object: any): GroupList {
|
|
7662
|
-
return {
|
|
7663
|
-
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e: any) => Group.fromJSON(e)) : [],
|
|
7664
|
-
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7665
|
-
};
|
|
7666
|
-
},
|
|
7667
|
-
|
|
7668
|
-
toJSON(message: GroupList): unknown {
|
|
7669
|
-
const obj: any = {};
|
|
7670
|
-
if (message.groups?.length) {
|
|
7671
|
-
obj.groups = message.groups.map((e) => Group.toJSON(e));
|
|
7672
|
-
}
|
|
7673
|
-
if (message.cursor !== "") {
|
|
7674
|
-
obj.cursor = message.cursor;
|
|
7675
|
-
}
|
|
7676
|
-
return obj;
|
|
7677
|
-
},
|
|
7678
|
-
|
|
7679
|
-
create<I extends Exact<DeepPartial<GroupList>, I>>(base?: I): GroupList {
|
|
7680
|
-
return GroupList.fromPartial(base ?? ({} as any));
|
|
7681
|
-
},
|
|
7682
|
-
fromPartial<I extends Exact<DeepPartial<GroupList>, I>>(object: I): GroupList {
|
|
7683
|
-
const message = createBaseGroupList();
|
|
7684
|
-
message.groups = object.groups?.map((e) => Group.fromPartial(e)) || [];
|
|
7685
|
-
message.cursor = object.cursor ?? "";
|
|
7686
|
-
return message;
|
|
7687
|
-
},
|
|
7688
|
-
};
|
|
7689
|
-
|
|
7690
|
-
function createBaseGroupUserList(): GroupUserList {
|
|
7691
|
-
return { group_users: [], cursor: "" };
|
|
7692
|
-
}
|
|
7693
|
-
|
|
7694
|
-
export const GroupUserList = {
|
|
7695
|
-
encode(message: GroupUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7696
|
-
for (const v of message.group_users) {
|
|
7697
|
-
GroupUserList_GroupUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7698
|
-
}
|
|
7699
|
-
if (message.cursor !== "") {
|
|
7700
|
-
writer.uint32(18).string(message.cursor);
|
|
7701
|
-
}
|
|
7702
|
-
return writer;
|
|
7703
|
-
},
|
|
7704
|
-
|
|
7705
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GroupUserList {
|
|
7706
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7707
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7708
|
-
const message = createBaseGroupUserList();
|
|
7709
|
-
while (reader.pos < end) {
|
|
7710
|
-
const tag = reader.uint32();
|
|
7711
|
-
switch (tag >>> 3) {
|
|
7712
|
-
case 1:
|
|
7713
|
-
if (tag !== 10) {
|
|
7714
|
-
break;
|
|
7715
|
-
}
|
|
7716
|
-
|
|
7717
|
-
message.group_users.push(GroupUserList_GroupUser.decode(reader, reader.uint32()));
|
|
7718
|
-
continue;
|
|
7719
|
-
case 2:
|
|
7720
|
-
if (tag !== 18) {
|
|
7721
|
-
break;
|
|
7722
|
-
}
|
|
7723
|
-
|
|
7724
|
-
message.cursor = reader.string();
|
|
7725
|
-
continue;
|
|
7726
|
-
}
|
|
7727
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7728
|
-
break;
|
|
7729
|
-
}
|
|
7730
|
-
reader.skipType(tag & 7);
|
|
7731
|
-
}
|
|
7732
|
-
return message;
|
|
7733
|
-
},
|
|
7734
|
-
|
|
7735
|
-
fromJSON(object: any): GroupUserList {
|
|
7736
|
-
return {
|
|
7737
|
-
group_users: globalThis.Array.isArray(object?.group_users)
|
|
7738
|
-
? object.group_users.map((e: any) => GroupUserList_GroupUser.fromJSON(e))
|
|
7739
|
-
: [],
|
|
7740
|
-
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7741
|
-
};
|
|
7742
|
-
},
|
|
7743
|
-
|
|
7744
|
-
toJSON(message: GroupUserList): unknown {
|
|
7745
|
-
const obj: any = {};
|
|
7746
|
-
if (message.group_users?.length) {
|
|
7747
|
-
obj.group_users = message.group_users.map((e) => GroupUserList_GroupUser.toJSON(e));
|
|
7748
|
-
}
|
|
7749
|
-
if (message.cursor !== "") {
|
|
7750
|
-
obj.cursor = message.cursor;
|
|
7751
|
-
}
|
|
7752
|
-
return obj;
|
|
7753
|
-
},
|
|
7754
|
-
|
|
7755
|
-
create<I extends Exact<DeepPartial<GroupUserList>, I>>(base?: I): GroupUserList {
|
|
7756
|
-
return GroupUserList.fromPartial(base ?? ({} as any));
|
|
7757
|
-
},
|
|
7758
|
-
fromPartial<I extends Exact<DeepPartial<GroupUserList>, I>>(object: I): GroupUserList {
|
|
7759
|
-
const message = createBaseGroupUserList();
|
|
7760
|
-
message.group_users = object.group_users?.map((e) => GroupUserList_GroupUser.fromPartial(e)) || [];
|
|
7761
|
-
message.cursor = object.cursor ?? "";
|
|
7762
|
-
return message;
|
|
7763
|
-
},
|
|
7764
|
-
};
|
|
7765
|
-
|
|
7766
|
-
function createBaseGroupUserList_GroupUser(): GroupUserList_GroupUser {
|
|
7767
|
-
return { user: undefined, state: undefined };
|
|
7768
|
-
}
|
|
7769
|
-
|
|
7770
|
-
export const GroupUserList_GroupUser = {
|
|
7771
|
-
encode(message: GroupUserList_GroupUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7772
|
-
if (message.user !== undefined) {
|
|
7773
|
-
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
7774
|
-
}
|
|
7775
|
-
if (message.state !== undefined) {
|
|
7776
|
-
Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
|
|
7777
|
-
}
|
|
7778
|
-
return writer;
|
|
7779
|
-
},
|
|
7780
|
-
|
|
7781
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GroupUserList_GroupUser {
|
|
7782
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7783
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7784
|
-
const message = createBaseGroupUserList_GroupUser();
|
|
7785
|
-
while (reader.pos < end) {
|
|
7786
|
-
const tag = reader.uint32();
|
|
7787
|
-
switch (tag >>> 3) {
|
|
7788
|
-
case 1:
|
|
7789
|
-
if (tag !== 10) {
|
|
7790
|
-
break;
|
|
7791
|
-
}
|
|
7792
|
-
|
|
7793
|
-
message.user = User.decode(reader, reader.uint32());
|
|
7794
|
-
continue;
|
|
7795
|
-
case 2:
|
|
7796
|
-
if (tag !== 18) {
|
|
7797
|
-
break;
|
|
7798
|
-
}
|
|
7799
|
-
|
|
7800
|
-
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
7801
|
-
continue;
|
|
7802
|
-
}
|
|
7803
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7804
|
-
break;
|
|
7805
|
-
}
|
|
7806
|
-
reader.skipType(tag & 7);
|
|
7807
|
-
}
|
|
7808
|
-
return message;
|
|
7809
|
-
},
|
|
7810
|
-
|
|
7811
|
-
fromJSON(object: any): GroupUserList_GroupUser {
|
|
7812
|
-
return {
|
|
7813
|
-
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
7814
|
-
state: isSet(object.state) ? Number(object.state) : undefined,
|
|
7815
|
-
};
|
|
7816
|
-
},
|
|
7817
|
-
|
|
7818
|
-
toJSON(message: GroupUserList_GroupUser): unknown {
|
|
7819
|
-
const obj: any = {};
|
|
7820
|
-
if (message.user !== undefined) {
|
|
7821
|
-
obj.user = User.toJSON(message.user);
|
|
7822
|
-
}
|
|
7823
|
-
if (message.state !== undefined) {
|
|
7824
|
-
obj.state = message.state;
|
|
7825
|
-
}
|
|
7826
|
-
return obj;
|
|
7827
|
-
},
|
|
7828
|
-
|
|
7829
|
-
create<I extends Exact<DeepPartial<GroupUserList_GroupUser>, I>>(base?: I): GroupUserList_GroupUser {
|
|
7830
|
-
return GroupUserList_GroupUser.fromPartial(base ?? ({} as any));
|
|
7831
|
-
},
|
|
7832
|
-
fromPartial<I extends Exact<DeepPartial<GroupUserList_GroupUser>, I>>(object: I): GroupUserList_GroupUser {
|
|
7833
|
-
const message = createBaseGroupUserList_GroupUser();
|
|
7834
|
-
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
7835
|
-
message.state = object.state ?? undefined;
|
|
7836
|
-
return message;
|
|
7837
|
-
},
|
|
7838
|
-
};
|
|
7839
|
-
|
|
7840
|
-
function createBaseChannelUserList(): ChannelUserList {
|
|
7841
|
-
return { channel_users: [], cursor: "", channel_id: "" };
|
|
7842
|
-
}
|
|
7843
|
-
|
|
7844
|
-
export const ChannelUserList = {
|
|
7845
|
-
encode(message: ChannelUserList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7846
|
-
for (const v of message.channel_users) {
|
|
7847
|
-
ChannelUserList_ChannelUser.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
7848
|
-
}
|
|
7849
|
-
if (message.cursor !== "") {
|
|
7850
|
-
writer.uint32(18).string(message.cursor);
|
|
7851
|
-
}
|
|
7852
|
-
if (message.channel_id !== "") {
|
|
7853
|
-
writer.uint32(26).string(message.channel_id);
|
|
7854
|
-
}
|
|
7855
|
-
return writer;
|
|
7856
|
-
},
|
|
7857
|
-
|
|
7858
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelUserList {
|
|
7859
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7860
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7861
|
-
const message = createBaseChannelUserList();
|
|
7862
|
-
while (reader.pos < end) {
|
|
7863
|
-
const tag = reader.uint32();
|
|
7864
|
-
switch (tag >>> 3) {
|
|
7865
|
-
case 1:
|
|
7866
|
-
if (tag !== 10) {
|
|
7867
|
-
break;
|
|
7868
|
-
}
|
|
7869
|
-
|
|
7870
|
-
message.channel_users.push(ChannelUserList_ChannelUser.decode(reader, reader.uint32()));
|
|
7871
|
-
continue;
|
|
7872
|
-
case 2:
|
|
7873
|
-
if (tag !== 18) {
|
|
7874
|
-
break;
|
|
7875
|
-
}
|
|
7876
|
-
|
|
7877
|
-
message.cursor = reader.string();
|
|
7878
|
-
continue;
|
|
7879
|
-
case 3:
|
|
7880
|
-
if (tag !== 26) {
|
|
7881
|
-
break;
|
|
7882
|
-
}
|
|
7883
|
-
|
|
7884
|
-
message.channel_id = reader.string();
|
|
7885
|
-
continue;
|
|
7886
|
-
}
|
|
7887
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7888
|
-
break;
|
|
7889
|
-
}
|
|
7890
|
-
reader.skipType(tag & 7);
|
|
7891
|
-
}
|
|
7892
|
-
return message;
|
|
7893
|
-
},
|
|
7894
|
-
|
|
7895
|
-
fromJSON(object: any): ChannelUserList {
|
|
7896
|
-
return {
|
|
7897
|
-
channel_users: globalThis.Array.isArray(object?.channel_users)
|
|
7898
|
-
? object.channel_users.map((e: any) => ChannelUserList_ChannelUser.fromJSON(e))
|
|
7899
|
-
: [],
|
|
7900
|
-
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7901
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7902
|
-
};
|
|
7903
|
-
},
|
|
7904
|
-
|
|
7905
|
-
toJSON(message: ChannelUserList): unknown {
|
|
7906
|
-
const obj: any = {};
|
|
7907
|
-
if (message.channel_users?.length) {
|
|
7908
|
-
obj.channel_users = message.channel_users.map((e) => ChannelUserList_ChannelUser.toJSON(e));
|
|
7909
|
-
}
|
|
7910
|
-
if (message.cursor !== "") {
|
|
7911
|
-
obj.cursor = message.cursor;
|
|
7912
|
-
}
|
|
7913
|
-
if (message.channel_id !== "") {
|
|
7914
|
-
obj.channel_id = message.channel_id;
|
|
7915
|
-
}
|
|
7916
|
-
return obj;
|
|
7917
|
-
},
|
|
7918
|
-
|
|
7919
|
-
create<I extends Exact<DeepPartial<ChannelUserList>, I>>(base?: I): ChannelUserList {
|
|
7920
|
-
return ChannelUserList.fromPartial(base ?? ({} as any));
|
|
7921
|
-
},
|
|
7922
|
-
fromPartial<I extends Exact<DeepPartial<ChannelUserList>, I>>(object: I): ChannelUserList {
|
|
7923
|
-
const message = createBaseChannelUserList();
|
|
7924
|
-
message.channel_users = object.channel_users?.map((e) => ChannelUserList_ChannelUser.fromPartial(e)) || [];
|
|
7925
|
-
message.cursor = object.cursor ?? "";
|
|
7926
|
-
message.channel_id = object.channel_id ?? "";
|
|
7927
|
-
return message;
|
|
7928
|
-
},
|
|
7929
|
-
};
|
|
7930
|
-
|
|
7931
|
-
function createBaseChannelUserList_ChannelUser(): ChannelUserList_ChannelUser {
|
|
7932
|
-
return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "", added_by: "" };
|
|
7933
|
-
}
|
|
7934
|
-
|
|
7935
|
-
export const ChannelUserList_ChannelUser = {
|
|
7936
|
-
encode(message: ChannelUserList_ChannelUser, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
7937
|
-
if (message.user_id !== "") {
|
|
7938
|
-
writer.uint32(10).string(message.user_id);
|
|
7939
|
-
}
|
|
7940
|
-
for (const v of message.role_id) {
|
|
7941
|
-
writer.uint32(18).string(v!);
|
|
7942
|
-
}
|
|
7943
|
-
if (message.id !== "") {
|
|
7944
|
-
writer.uint32(26).string(message.id);
|
|
7945
|
-
}
|
|
7946
|
-
if (message.thread_id !== "") {
|
|
7947
|
-
writer.uint32(34).string(message.thread_id);
|
|
7948
|
-
}
|
|
7949
|
-
if (message.clan_nick !== "") {
|
|
7950
|
-
writer.uint32(42).string(message.clan_nick);
|
|
7951
|
-
}
|
|
7952
|
-
if (message.clan_avatar !== "") {
|
|
7953
|
-
writer.uint32(50).string(message.clan_avatar);
|
|
7954
|
-
}
|
|
7955
|
-
if (message.clan_id !== "") {
|
|
7956
|
-
writer.uint32(58).string(message.clan_id);
|
|
7957
|
-
}
|
|
7958
|
-
if (message.added_by !== "") {
|
|
7959
|
-
writer.uint32(66).string(message.added_by);
|
|
7960
|
-
}
|
|
7961
|
-
return writer;
|
|
7962
|
-
},
|
|
7963
|
-
|
|
7964
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ChannelUserList_ChannelUser {
|
|
7965
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7966
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7967
|
-
const message = createBaseChannelUserList_ChannelUser();
|
|
7968
|
-
while (reader.pos < end) {
|
|
7969
|
-
const tag = reader.uint32();
|
|
7970
|
-
switch (tag >>> 3) {
|
|
7971
|
-
case 1:
|
|
7972
|
-
if (tag !== 10) {
|
|
7973
|
-
break;
|
|
7974
|
-
}
|
|
7975
|
-
|
|
7976
|
-
message.user_id = reader.string();
|
|
7977
|
-
continue;
|
|
7978
|
-
case 2:
|
|
7979
|
-
if (tag !== 18) {
|
|
7980
|
-
break;
|
|
7981
|
-
}
|
|
7982
|
-
|
|
7983
|
-
message.role_id.push(reader.string());
|
|
7984
|
-
continue;
|
|
7985
|
-
case 3:
|
|
7986
|
-
if (tag !== 26) {
|
|
7987
|
-
break;
|
|
7988
|
-
}
|
|
7989
|
-
|
|
7990
|
-
message.id = reader.string();
|
|
7991
|
-
continue;
|
|
7992
|
-
case 4:
|
|
7993
|
-
if (tag !== 34) {
|
|
7994
|
-
break;
|
|
7995
|
-
}
|
|
7996
|
-
|
|
7997
|
-
message.thread_id = reader.string();
|
|
7998
|
-
continue;
|
|
7999
|
-
case 5:
|
|
8000
|
-
if (tag !== 42) {
|
|
8001
|
-
break;
|
|
8002
|
-
}
|
|
8003
|
-
|
|
8004
|
-
message.clan_nick = reader.string();
|
|
8005
|
-
continue;
|
|
8006
|
-
case 6:
|
|
8007
|
-
if (tag !== 50) {
|
|
8008
|
-
break;
|
|
8009
|
-
}
|
|
8010
|
-
|
|
8011
|
-
message.clan_avatar = reader.string();
|
|
8012
|
-
continue;
|
|
8013
|
-
case 7:
|
|
8014
|
-
if (tag !== 58) {
|
|
8015
|
-
break;
|
|
8016
|
-
}
|
|
8017
|
-
|
|
8018
|
-
message.clan_id = reader.string();
|
|
8019
|
-
continue;
|
|
8020
|
-
case 8:
|
|
8021
|
-
if (tag !== 66) {
|
|
8022
|
-
break;
|
|
8023
|
-
}
|
|
8024
|
-
|
|
8025
|
-
message.added_by = reader.string();
|
|
7388
|
+
message.added_by = reader.string();
|
|
8026
7389
|
continue;
|
|
8027
7390
|
}
|
|
8028
7391
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -11303,7 +10666,7 @@ function createBaseUser(): User {
|
|
|
11303
10666
|
lang_tag: "",
|
|
11304
10667
|
location: "",
|
|
11305
10668
|
timezone: "",
|
|
11306
|
-
|
|
10669
|
+
user_status: "",
|
|
11307
10670
|
online: false,
|
|
11308
10671
|
phone_number: "",
|
|
11309
10672
|
edge_count: 0,
|
|
@@ -11341,8 +10704,8 @@ export const User = {
|
|
|
11341
10704
|
if (message.timezone !== "") {
|
|
11342
10705
|
writer.uint32(58).string(message.timezone);
|
|
11343
10706
|
}
|
|
11344
|
-
if (message.
|
|
11345
|
-
writer.uint32(66).string(message.
|
|
10707
|
+
if (message.user_status !== "") {
|
|
10708
|
+
writer.uint32(66).string(message.user_status);
|
|
11346
10709
|
}
|
|
11347
10710
|
if (message.online !== false) {
|
|
11348
10711
|
writer.uint32(72).bool(message.online);
|
|
@@ -11441,7 +10804,7 @@ export const User = {
|
|
|
11441
10804
|
break;
|
|
11442
10805
|
}
|
|
11443
10806
|
|
|
11444
|
-
message.
|
|
10807
|
+
message.user_status = reader.string();
|
|
11445
10808
|
continue;
|
|
11446
10809
|
case 9:
|
|
11447
10810
|
if (tag !== 72) {
|
|
@@ -11538,259 +10901,109 @@ export const User = {
|
|
|
11538
10901
|
lang_tag: isSet(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
|
|
11539
10902
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
11540
10903
|
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
11541
|
-
|
|
10904
|
+
user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
11542
10905
|
online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
|
|
11543
10906
|
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
11544
10907
|
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
11545
10908
|
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
11546
10909
|
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
11547
10910
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
11548
|
-
join_time: isSet(object.join_time) ? fromJsonTimestamp(object.join_time) : undefined,
|
|
11549
|
-
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
11550
|
-
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
11551
|
-
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
11552
|
-
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
11553
|
-
? object.list_nick_names.map((e: any) => globalThis.String(e))
|
|
11554
|
-
: [],
|
|
11555
|
-
};
|
|
11556
|
-
},
|
|
11557
|
-
|
|
11558
|
-
toJSON(message: User): unknown {
|
|
11559
|
-
const obj: any = {};
|
|
11560
|
-
if (message.id !== "") {
|
|
11561
|
-
obj.id = message.id;
|
|
11562
|
-
}
|
|
11563
|
-
if (message.username !== "") {
|
|
11564
|
-
obj.username = message.username;
|
|
11565
|
-
}
|
|
11566
|
-
if (message.display_name !== "") {
|
|
11567
|
-
obj.display_name = message.display_name;
|
|
11568
|
-
}
|
|
11569
|
-
if (message.avatar_url !== "") {
|
|
11570
|
-
obj.avatar_url = message.avatar_url;
|
|
11571
|
-
}
|
|
11572
|
-
if (message.lang_tag !== "") {
|
|
11573
|
-
obj.lang_tag = message.lang_tag;
|
|
11574
|
-
}
|
|
11575
|
-
if (message.location !== "") {
|
|
11576
|
-
obj.location = message.location;
|
|
11577
|
-
}
|
|
11578
|
-
if (message.timezone !== "") {
|
|
11579
|
-
obj.timezone = message.timezone;
|
|
11580
|
-
}
|
|
11581
|
-
if (message.metadata !== "") {
|
|
11582
|
-
obj.metadata = message.metadata;
|
|
11583
|
-
}
|
|
11584
|
-
if (message.online !== false) {
|
|
11585
|
-
obj.online = message.online;
|
|
11586
|
-
}
|
|
11587
|
-
if (message.phone_number !== "") {
|
|
11588
|
-
obj.phone_number = message.phone_number;
|
|
11589
|
-
}
|
|
11590
|
-
if (message.edge_count !== 0) {
|
|
11591
|
-
obj.edge_count = Math.round(message.edge_count);
|
|
11592
|
-
}
|
|
11593
|
-
if (message.create_time !== undefined) {
|
|
11594
|
-
obj.create_time = message.create_time.toISOString();
|
|
11595
|
-
}
|
|
11596
|
-
if (message.update_time !== undefined) {
|
|
11597
|
-
obj.update_time = message.update_time.toISOString();
|
|
11598
|
-
}
|
|
11599
|
-
if (message.about_me !== "") {
|
|
11600
|
-
obj.about_me = message.about_me;
|
|
11601
|
-
}
|
|
11602
|
-
if (message.join_time !== undefined) {
|
|
11603
|
-
obj.join_time = message.join_time.toISOString();
|
|
11604
|
-
}
|
|
11605
|
-
if (message.is_mobile !== false) {
|
|
11606
|
-
obj.is_mobile = message.is_mobile;
|
|
11607
|
-
}
|
|
11608
|
-
if (message.dob !== undefined) {
|
|
11609
|
-
obj.dob = message.dob.toISOString();
|
|
11610
|
-
}
|
|
11611
|
-
if (message.mezon_id !== "") {
|
|
11612
|
-
obj.mezon_id = message.mezon_id;
|
|
11613
|
-
}
|
|
11614
|
-
if (message.list_nick_names?.length) {
|
|
11615
|
-
obj.list_nick_names = message.list_nick_names;
|
|
11616
|
-
}
|
|
11617
|
-
return obj;
|
|
11618
|
-
},
|
|
11619
|
-
|
|
11620
|
-
create<I extends Exact<DeepPartial<User>, I>>(base?: I): User {
|
|
11621
|
-
return User.fromPartial(base ?? ({} as any));
|
|
11622
|
-
},
|
|
11623
|
-
fromPartial<I extends Exact<DeepPartial<User>, I>>(object: I): User {
|
|
11624
|
-
const message = createBaseUser();
|
|
11625
|
-
message.id = object.id ?? "";
|
|
11626
|
-
message.username = object.username ?? "";
|
|
11627
|
-
message.display_name = object.display_name ?? "";
|
|
11628
|
-
message.avatar_url = object.avatar_url ?? "";
|
|
11629
|
-
message.lang_tag = object.lang_tag ?? "";
|
|
11630
|
-
message.location = object.location ?? "";
|
|
11631
|
-
message.timezone = object.timezone ?? "";
|
|
11632
|
-
message.metadata = object.metadata ?? "";
|
|
11633
|
-
message.online = object.online ?? false;
|
|
11634
|
-
message.phone_number = object.phone_number ?? "";
|
|
11635
|
-
message.edge_count = object.edge_count ?? 0;
|
|
11636
|
-
message.create_time = object.create_time ?? undefined;
|
|
11637
|
-
message.update_time = object.update_time ?? undefined;
|
|
11638
|
-
message.about_me = object.about_me ?? "";
|
|
11639
|
-
message.join_time = object.join_time ?? undefined;
|
|
11640
|
-
message.is_mobile = object.is_mobile ?? false;
|
|
11641
|
-
message.dob = object.dob ?? undefined;
|
|
11642
|
-
message.mezon_id = object.mezon_id ?? "";
|
|
11643
|
-
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11644
|
-
return message;
|
|
11645
|
-
},
|
|
11646
|
-
};
|
|
11647
|
-
|
|
11648
|
-
function createBaseUserGroupList(): UserGroupList {
|
|
11649
|
-
return { user_groups: [], cursor: "" };
|
|
11650
|
-
}
|
|
11651
|
-
|
|
11652
|
-
export const UserGroupList = {
|
|
11653
|
-
encode(message: UserGroupList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
11654
|
-
for (const v of message.user_groups) {
|
|
11655
|
-
UserGroupList_UserGroup.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
11656
|
-
}
|
|
11657
|
-
if (message.cursor !== "") {
|
|
11658
|
-
writer.uint32(18).string(message.cursor);
|
|
11659
|
-
}
|
|
11660
|
-
return writer;
|
|
11661
|
-
},
|
|
11662
|
-
|
|
11663
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UserGroupList {
|
|
11664
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11665
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11666
|
-
const message = createBaseUserGroupList();
|
|
11667
|
-
while (reader.pos < end) {
|
|
11668
|
-
const tag = reader.uint32();
|
|
11669
|
-
switch (tag >>> 3) {
|
|
11670
|
-
case 1:
|
|
11671
|
-
if (tag !== 10) {
|
|
11672
|
-
break;
|
|
11673
|
-
}
|
|
11674
|
-
|
|
11675
|
-
message.user_groups.push(UserGroupList_UserGroup.decode(reader, reader.uint32()));
|
|
11676
|
-
continue;
|
|
11677
|
-
case 2:
|
|
11678
|
-
if (tag !== 18) {
|
|
11679
|
-
break;
|
|
11680
|
-
}
|
|
11681
|
-
|
|
11682
|
-
message.cursor = reader.string();
|
|
11683
|
-
continue;
|
|
11684
|
-
}
|
|
11685
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11686
|
-
break;
|
|
11687
|
-
}
|
|
11688
|
-
reader.skipType(tag & 7);
|
|
11689
|
-
}
|
|
11690
|
-
return message;
|
|
11691
|
-
},
|
|
11692
|
-
|
|
11693
|
-
fromJSON(object: any): UserGroupList {
|
|
11694
|
-
return {
|
|
11695
|
-
user_groups: globalThis.Array.isArray(object?.user_groups)
|
|
11696
|
-
? object.user_groups.map((e: any) => UserGroupList_UserGroup.fromJSON(e))
|
|
11697
|
-
: [],
|
|
11698
|
-
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
11699
|
-
};
|
|
11700
|
-
},
|
|
11701
|
-
|
|
11702
|
-
toJSON(message: UserGroupList): unknown {
|
|
11703
|
-
const obj: any = {};
|
|
11704
|
-
if (message.user_groups?.length) {
|
|
11705
|
-
obj.user_groups = message.user_groups.map((e) => UserGroupList_UserGroup.toJSON(e));
|
|
11706
|
-
}
|
|
11707
|
-
if (message.cursor !== "") {
|
|
11708
|
-
obj.cursor = message.cursor;
|
|
11709
|
-
}
|
|
11710
|
-
return obj;
|
|
11711
|
-
},
|
|
11712
|
-
|
|
11713
|
-
create<I extends Exact<DeepPartial<UserGroupList>, I>>(base?: I): UserGroupList {
|
|
11714
|
-
return UserGroupList.fromPartial(base ?? ({} as any));
|
|
11715
|
-
},
|
|
11716
|
-
fromPartial<I extends Exact<DeepPartial<UserGroupList>, I>>(object: I): UserGroupList {
|
|
11717
|
-
const message = createBaseUserGroupList();
|
|
11718
|
-
message.user_groups = object.user_groups?.map((e) => UserGroupList_UserGroup.fromPartial(e)) || [];
|
|
11719
|
-
message.cursor = object.cursor ?? "";
|
|
11720
|
-
return message;
|
|
11721
|
-
},
|
|
11722
|
-
};
|
|
11723
|
-
|
|
11724
|
-
function createBaseUserGroupList_UserGroup(): UserGroupList_UserGroup {
|
|
11725
|
-
return { group: undefined, state: undefined };
|
|
11726
|
-
}
|
|
11727
|
-
|
|
11728
|
-
export const UserGroupList_UserGroup = {
|
|
11729
|
-
encode(message: UserGroupList_UserGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
11730
|
-
if (message.group !== undefined) {
|
|
11731
|
-
Group.encode(message.group, writer.uint32(10).fork()).ldelim();
|
|
11732
|
-
}
|
|
11733
|
-
if (message.state !== undefined) {
|
|
11734
|
-
Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
|
|
11735
|
-
}
|
|
11736
|
-
return writer;
|
|
11737
|
-
},
|
|
11738
|
-
|
|
11739
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UserGroupList_UserGroup {
|
|
11740
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11741
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11742
|
-
const message = createBaseUserGroupList_UserGroup();
|
|
11743
|
-
while (reader.pos < end) {
|
|
11744
|
-
const tag = reader.uint32();
|
|
11745
|
-
switch (tag >>> 3) {
|
|
11746
|
-
case 1:
|
|
11747
|
-
if (tag !== 10) {
|
|
11748
|
-
break;
|
|
11749
|
-
}
|
|
11750
|
-
|
|
11751
|
-
message.group = Group.decode(reader, reader.uint32());
|
|
11752
|
-
continue;
|
|
11753
|
-
case 2:
|
|
11754
|
-
if (tag !== 18) {
|
|
11755
|
-
break;
|
|
11756
|
-
}
|
|
11757
|
-
|
|
11758
|
-
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
11759
|
-
continue;
|
|
11760
|
-
}
|
|
11761
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
11762
|
-
break;
|
|
11763
|
-
}
|
|
11764
|
-
reader.skipType(tag & 7);
|
|
11765
|
-
}
|
|
11766
|
-
return message;
|
|
11767
|
-
},
|
|
11768
|
-
|
|
11769
|
-
fromJSON(object: any): UserGroupList_UserGroup {
|
|
11770
|
-
return {
|
|
11771
|
-
group: isSet(object.group) ? Group.fromJSON(object.group) : undefined,
|
|
11772
|
-
state: isSet(object.state) ? Number(object.state) : undefined,
|
|
10911
|
+
join_time: isSet(object.join_time) ? fromJsonTimestamp(object.join_time) : undefined,
|
|
10912
|
+
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
10913
|
+
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
10914
|
+
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
10915
|
+
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
10916
|
+
? object.list_nick_names.map((e: any) => globalThis.String(e))
|
|
10917
|
+
: [],
|
|
11773
10918
|
};
|
|
11774
10919
|
},
|
|
11775
10920
|
|
|
11776
|
-
toJSON(message:
|
|
10921
|
+
toJSON(message: User): unknown {
|
|
11777
10922
|
const obj: any = {};
|
|
11778
|
-
if (message.
|
|
11779
|
-
obj.
|
|
10923
|
+
if (message.id !== "") {
|
|
10924
|
+
obj.id = message.id;
|
|
11780
10925
|
}
|
|
11781
|
-
if (message.
|
|
11782
|
-
obj.
|
|
10926
|
+
if (message.username !== "") {
|
|
10927
|
+
obj.username = message.username;
|
|
10928
|
+
}
|
|
10929
|
+
if (message.display_name !== "") {
|
|
10930
|
+
obj.display_name = message.display_name;
|
|
10931
|
+
}
|
|
10932
|
+
if (message.avatar_url !== "") {
|
|
10933
|
+
obj.avatar_url = message.avatar_url;
|
|
10934
|
+
}
|
|
10935
|
+
if (message.lang_tag !== "") {
|
|
10936
|
+
obj.lang_tag = message.lang_tag;
|
|
10937
|
+
}
|
|
10938
|
+
if (message.location !== "") {
|
|
10939
|
+
obj.location = message.location;
|
|
10940
|
+
}
|
|
10941
|
+
if (message.timezone !== "") {
|
|
10942
|
+
obj.timezone = message.timezone;
|
|
10943
|
+
}
|
|
10944
|
+
if (message.user_status !== "") {
|
|
10945
|
+
obj.user_status = message.user_status;
|
|
10946
|
+
}
|
|
10947
|
+
if (message.online !== false) {
|
|
10948
|
+
obj.online = message.online;
|
|
10949
|
+
}
|
|
10950
|
+
if (message.phone_number !== "") {
|
|
10951
|
+
obj.phone_number = message.phone_number;
|
|
10952
|
+
}
|
|
10953
|
+
if (message.edge_count !== 0) {
|
|
10954
|
+
obj.edge_count = Math.round(message.edge_count);
|
|
10955
|
+
}
|
|
10956
|
+
if (message.create_time !== undefined) {
|
|
10957
|
+
obj.create_time = message.create_time.toISOString();
|
|
10958
|
+
}
|
|
10959
|
+
if (message.update_time !== undefined) {
|
|
10960
|
+
obj.update_time = message.update_time.toISOString();
|
|
10961
|
+
}
|
|
10962
|
+
if (message.about_me !== "") {
|
|
10963
|
+
obj.about_me = message.about_me;
|
|
10964
|
+
}
|
|
10965
|
+
if (message.join_time !== undefined) {
|
|
10966
|
+
obj.join_time = message.join_time.toISOString();
|
|
10967
|
+
}
|
|
10968
|
+
if (message.is_mobile !== false) {
|
|
10969
|
+
obj.is_mobile = message.is_mobile;
|
|
10970
|
+
}
|
|
10971
|
+
if (message.dob !== undefined) {
|
|
10972
|
+
obj.dob = message.dob.toISOString();
|
|
10973
|
+
}
|
|
10974
|
+
if (message.mezon_id !== "") {
|
|
10975
|
+
obj.mezon_id = message.mezon_id;
|
|
10976
|
+
}
|
|
10977
|
+
if (message.list_nick_names?.length) {
|
|
10978
|
+
obj.list_nick_names = message.list_nick_names;
|
|
11783
10979
|
}
|
|
11784
10980
|
return obj;
|
|
11785
10981
|
},
|
|
11786
10982
|
|
|
11787
|
-
create<I extends Exact<DeepPartial<
|
|
11788
|
-
return
|
|
10983
|
+
create<I extends Exact<DeepPartial<User>, I>>(base?: I): User {
|
|
10984
|
+
return User.fromPartial(base ?? ({} as any));
|
|
11789
10985
|
},
|
|
11790
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
11791
|
-
const message =
|
|
11792
|
-
message.
|
|
11793
|
-
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) || [];
|
|
11794
11007
|
return message;
|
|
11795
11008
|
},
|
|
11796
11009
|
};
|
|
@@ -13611,7 +12824,7 @@ export const LinkInviteUser = {
|
|
|
13611
12824
|
};
|
|
13612
12825
|
|
|
13613
12826
|
function createBaseClanProfile(): ClanProfile {
|
|
13614
|
-
return { user_id: "", nick_name: "", avatar: "", clan_id: "" };
|
|
12827
|
+
return { user_id: "", nick_name: "", avatar: "", clan_id: "", about: "" };
|
|
13615
12828
|
}
|
|
13616
12829
|
|
|
13617
12830
|
export const ClanProfile = {
|
|
@@ -13628,6 +12841,9 @@ export const ClanProfile = {
|
|
|
13628
12841
|
if (message.clan_id !== "") {
|
|
13629
12842
|
writer.uint32(34).string(message.clan_id);
|
|
13630
12843
|
}
|
|
12844
|
+
if (message.about !== "") {
|
|
12845
|
+
writer.uint32(42).string(message.about);
|
|
12846
|
+
}
|
|
13631
12847
|
return writer;
|
|
13632
12848
|
},
|
|
13633
12849
|
|
|
@@ -13666,6 +12882,13 @@ export const ClanProfile = {
|
|
|
13666
12882
|
|
|
13667
12883
|
message.clan_id = reader.string();
|
|
13668
12884
|
continue;
|
|
12885
|
+
case 5:
|
|
12886
|
+
if (tag !== 42) {
|
|
12887
|
+
break;
|
|
12888
|
+
}
|
|
12889
|
+
|
|
12890
|
+
message.about = reader.string();
|
|
12891
|
+
continue;
|
|
13669
12892
|
}
|
|
13670
12893
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13671
12894
|
break;
|
|
@@ -13681,6 +12904,7 @@ export const ClanProfile = {
|
|
|
13681
12904
|
nick_name: isSet(object.nick_name) ? globalThis.String(object.nick_name) : "",
|
|
13682
12905
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
13683
12906
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
12907
|
+
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
13684
12908
|
};
|
|
13685
12909
|
},
|
|
13686
12910
|
|
|
@@ -13698,6 +12922,9 @@ export const ClanProfile = {
|
|
|
13698
12922
|
if (message.clan_id !== "") {
|
|
13699
12923
|
obj.clan_id = message.clan_id;
|
|
13700
12924
|
}
|
|
12925
|
+
if (message.about !== "") {
|
|
12926
|
+
obj.about = message.about;
|
|
12927
|
+
}
|
|
13701
12928
|
return obj;
|
|
13702
12929
|
},
|
|
13703
12930
|
|
|
@@ -13710,6 +12937,7 @@ export const ClanProfile = {
|
|
|
13710
12937
|
message.nick_name = object.nick_name ?? "";
|
|
13711
12938
|
message.avatar = object.avatar ?? "";
|
|
13712
12939
|
message.clan_id = object.clan_id ?? "";
|
|
12940
|
+
message.about = object.about ?? "";
|
|
13713
12941
|
return message;
|
|
13714
12942
|
},
|
|
13715
12943
|
};
|
|
@@ -14929,28 +14157,27 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
14929
14157
|
creator_id: "",
|
|
14930
14158
|
channel_label: "",
|
|
14931
14159
|
channel_private: 0,
|
|
14932
|
-
channel_avatar: [],
|
|
14933
|
-
user_id: [],
|
|
14934
14160
|
last_sent_message: undefined,
|
|
14935
14161
|
last_seen_message: undefined,
|
|
14936
|
-
is_online: [],
|
|
14937
14162
|
meeting_code: "",
|
|
14938
14163
|
count_mess_unread: 0,
|
|
14939
14164
|
active: 0,
|
|
14940
14165
|
last_pin_message: "",
|
|
14941
|
-
usernames: [],
|
|
14942
14166
|
creator_name: "",
|
|
14943
14167
|
create_time_seconds: 0,
|
|
14944
14168
|
update_time_seconds: 0,
|
|
14945
|
-
metadata: [],
|
|
14946
|
-
about_me: [],
|
|
14947
14169
|
clan_name: "",
|
|
14948
14170
|
app_id: "",
|
|
14949
14171
|
is_mute: false,
|
|
14950
14172
|
age_restricted: 0,
|
|
14951
|
-
|
|
14173
|
+
channel_avatar: "",
|
|
14952
14174
|
e2ee: 0,
|
|
14175
|
+
topic: "",
|
|
14176
|
+
user_ids: [],
|
|
14177
|
+
usernames: [],
|
|
14953
14178
|
display_names: [],
|
|
14179
|
+
onlines: [],
|
|
14180
|
+
avatars: [],
|
|
14954
14181
|
};
|
|
14955
14182
|
}
|
|
14956
14183
|
|
|
@@ -14983,73 +14210,70 @@ export const ChannelDescription = {
|
|
|
14983
14210
|
if (message.channel_private !== 0) {
|
|
14984
14211
|
writer.uint32(72).int32(message.channel_private);
|
|
14985
14212
|
}
|
|
14986
|
-
for (const v of message.channel_avatar) {
|
|
14987
|
-
writer.uint32(82).string(v!);
|
|
14988
|
-
}
|
|
14989
|
-
for (const v of message.user_id) {
|
|
14990
|
-
writer.uint32(90).string(v!);
|
|
14991
|
-
}
|
|
14992
14213
|
if (message.last_sent_message !== undefined) {
|
|
14993
|
-
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(
|
|
14214
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
|
|
14994
14215
|
}
|
|
14995
14216
|
if (message.last_seen_message !== undefined) {
|
|
14996
|
-
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(
|
|
14217
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(90).fork()).ldelim();
|
|
14997
14218
|
}
|
|
14998
|
-
writer.uint32(114).fork();
|
|
14999
|
-
for (const v of message.is_online) {
|
|
15000
|
-
writer.bool(v);
|
|
15001
|
-
}
|
|
15002
|
-
writer.ldelim();
|
|
15003
14219
|
if (message.meeting_code !== "") {
|
|
15004
|
-
writer.uint32(
|
|
14220
|
+
writer.uint32(98).string(message.meeting_code);
|
|
15005
14221
|
}
|
|
15006
14222
|
if (message.count_mess_unread !== 0) {
|
|
15007
|
-
writer.uint32(
|
|
14223
|
+
writer.uint32(104).int32(message.count_mess_unread);
|
|
15008
14224
|
}
|
|
15009
14225
|
if (message.active !== 0) {
|
|
15010
|
-
writer.uint32(
|
|
14226
|
+
writer.uint32(112).int32(message.active);
|
|
15011
14227
|
}
|
|
15012
14228
|
if (message.last_pin_message !== "") {
|
|
15013
|
-
writer.uint32(
|
|
15014
|
-
}
|
|
15015
|
-
for (const v of message.usernames) {
|
|
15016
|
-
writer.uint32(154).string(v!);
|
|
14229
|
+
writer.uint32(122).string(message.last_pin_message);
|
|
15017
14230
|
}
|
|
15018
14231
|
if (message.creator_name !== "") {
|
|
15019
|
-
writer.uint32(
|
|
14232
|
+
writer.uint32(130).string(message.creator_name);
|
|
15020
14233
|
}
|
|
15021
14234
|
if (message.create_time_seconds !== 0) {
|
|
15022
|
-
writer.uint32(
|
|
14235
|
+
writer.uint32(136).uint32(message.create_time_seconds);
|
|
15023
14236
|
}
|
|
15024
14237
|
if (message.update_time_seconds !== 0) {
|
|
15025
|
-
writer.uint32(
|
|
15026
|
-
}
|
|
15027
|
-
for (const v of message.metadata) {
|
|
15028
|
-
writer.uint32(186).string(v!);
|
|
15029
|
-
}
|
|
15030
|
-
for (const v of message.about_me) {
|
|
15031
|
-
writer.uint32(194).string(v!);
|
|
14238
|
+
writer.uint32(144).uint32(message.update_time_seconds);
|
|
15032
14239
|
}
|
|
15033
14240
|
if (message.clan_name !== "") {
|
|
15034
|
-
writer.uint32(
|
|
14241
|
+
writer.uint32(154).string(message.clan_name);
|
|
15035
14242
|
}
|
|
15036
14243
|
if (message.app_id !== "") {
|
|
15037
|
-
writer.uint32(
|
|
14244
|
+
writer.uint32(162).string(message.app_id);
|
|
15038
14245
|
}
|
|
15039
14246
|
if (message.is_mute !== false) {
|
|
15040
|
-
writer.uint32(
|
|
14247
|
+
writer.uint32(168).bool(message.is_mute);
|
|
15041
14248
|
}
|
|
15042
14249
|
if (message.age_restricted !== 0) {
|
|
15043
|
-
writer.uint32(
|
|
14250
|
+
writer.uint32(176).int32(message.age_restricted);
|
|
15044
14251
|
}
|
|
15045
|
-
if (message.
|
|
15046
|
-
writer.uint32(
|
|
14252
|
+
if (message.channel_avatar !== "") {
|
|
14253
|
+
writer.uint32(186).string(message.channel_avatar);
|
|
15047
14254
|
}
|
|
15048
14255
|
if (message.e2ee !== 0) {
|
|
15049
|
-
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!);
|
|
15050
14266
|
}
|
|
15051
14267
|
for (const v of message.display_names) {
|
|
15052
|
-
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!);
|
|
15053
14277
|
}
|
|
15054
14278
|
return writer;
|
|
15055
14279
|
},
|
|
@@ -15129,164 +14353,157 @@ export const ChannelDescription = {
|
|
|
15129
14353
|
break;
|
|
15130
14354
|
}
|
|
15131
14355
|
|
|
15132
|
-
message.
|
|
14356
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
15133
14357
|
continue;
|
|
15134
14358
|
case 11:
|
|
15135
14359
|
if (tag !== 90) {
|
|
15136
14360
|
break;
|
|
15137
14361
|
}
|
|
15138
14362
|
|
|
15139
|
-
message.
|
|
14363
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
15140
14364
|
continue;
|
|
15141
14365
|
case 12:
|
|
15142
14366
|
if (tag !== 98) {
|
|
15143
14367
|
break;
|
|
15144
14368
|
}
|
|
15145
14369
|
|
|
15146
|
-
message.
|
|
14370
|
+
message.meeting_code = reader.string();
|
|
15147
14371
|
continue;
|
|
15148
14372
|
case 13:
|
|
15149
|
-
if (tag !==
|
|
14373
|
+
if (tag !== 104) {
|
|
15150
14374
|
break;
|
|
15151
14375
|
}
|
|
15152
14376
|
|
|
15153
|
-
message.
|
|
14377
|
+
message.count_mess_unread = reader.int32();
|
|
15154
14378
|
continue;
|
|
15155
14379
|
case 14:
|
|
15156
|
-
if (tag
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
continue;
|
|
15160
|
-
}
|
|
15161
|
-
|
|
15162
|
-
if (tag === 114) {
|
|
15163
|
-
const end2 = reader.uint32() + reader.pos;
|
|
15164
|
-
while (reader.pos < end2) {
|
|
15165
|
-
message.is_online.push(reader.bool());
|
|
15166
|
-
}
|
|
15167
|
-
|
|
15168
|
-
continue;
|
|
14380
|
+
if (tag !== 112) {
|
|
14381
|
+
break;
|
|
15169
14382
|
}
|
|
15170
14383
|
|
|
15171
|
-
|
|
14384
|
+
message.active = reader.int32();
|
|
14385
|
+
continue;
|
|
15172
14386
|
case 15:
|
|
15173
14387
|
if (tag !== 122) {
|
|
15174
14388
|
break;
|
|
15175
14389
|
}
|
|
15176
14390
|
|
|
15177
|
-
message.
|
|
14391
|
+
message.last_pin_message = reader.string();
|
|
15178
14392
|
continue;
|
|
15179
14393
|
case 16:
|
|
15180
|
-
if (tag !==
|
|
14394
|
+
if (tag !== 130) {
|
|
15181
14395
|
break;
|
|
15182
14396
|
}
|
|
15183
14397
|
|
|
15184
|
-
message.
|
|
14398
|
+
message.creator_name = reader.string();
|
|
15185
14399
|
continue;
|
|
15186
14400
|
case 17:
|
|
15187
14401
|
if (tag !== 136) {
|
|
15188
14402
|
break;
|
|
15189
14403
|
}
|
|
15190
14404
|
|
|
15191
|
-
message.
|
|
14405
|
+
message.create_time_seconds = reader.uint32();
|
|
15192
14406
|
continue;
|
|
15193
14407
|
case 18:
|
|
15194
|
-
if (tag !==
|
|
14408
|
+
if (tag !== 144) {
|
|
15195
14409
|
break;
|
|
15196
14410
|
}
|
|
15197
14411
|
|
|
15198
|
-
message.
|
|
14412
|
+
message.update_time_seconds = reader.uint32();
|
|
15199
14413
|
continue;
|
|
15200
14414
|
case 19:
|
|
15201
14415
|
if (tag !== 154) {
|
|
15202
14416
|
break;
|
|
15203
14417
|
}
|
|
15204
14418
|
|
|
15205
|
-
message.
|
|
14419
|
+
message.clan_name = reader.string();
|
|
15206
14420
|
continue;
|
|
15207
14421
|
case 20:
|
|
15208
14422
|
if (tag !== 162) {
|
|
15209
14423
|
break;
|
|
15210
14424
|
}
|
|
15211
14425
|
|
|
15212
|
-
message.
|
|
14426
|
+
message.app_id = reader.string();
|
|
15213
14427
|
continue;
|
|
15214
14428
|
case 21:
|
|
15215
14429
|
if (tag !== 168) {
|
|
15216
14430
|
break;
|
|
15217
14431
|
}
|
|
15218
14432
|
|
|
15219
|
-
message.
|
|
14433
|
+
message.is_mute = reader.bool();
|
|
15220
14434
|
continue;
|
|
15221
14435
|
case 22:
|
|
15222
14436
|
if (tag !== 176) {
|
|
15223
14437
|
break;
|
|
15224
14438
|
}
|
|
15225
14439
|
|
|
15226
|
-
message.
|
|
14440
|
+
message.age_restricted = reader.int32();
|
|
15227
14441
|
continue;
|
|
15228
14442
|
case 23:
|
|
15229
14443
|
if (tag !== 186) {
|
|
15230
14444
|
break;
|
|
15231
14445
|
}
|
|
15232
14446
|
|
|
15233
|
-
message.
|
|
14447
|
+
message.channel_avatar = reader.string();
|
|
15234
14448
|
continue;
|
|
15235
14449
|
case 24:
|
|
15236
|
-
if (tag !==
|
|
14450
|
+
if (tag !== 192) {
|
|
15237
14451
|
break;
|
|
15238
14452
|
}
|
|
15239
14453
|
|
|
15240
|
-
message.
|
|
14454
|
+
message.e2ee = reader.int32();
|
|
15241
14455
|
continue;
|
|
15242
14456
|
case 25:
|
|
15243
14457
|
if (tag !== 202) {
|
|
15244
14458
|
break;
|
|
15245
14459
|
}
|
|
15246
14460
|
|
|
15247
|
-
message.
|
|
14461
|
+
message.topic = reader.string();
|
|
15248
14462
|
continue;
|
|
15249
14463
|
case 26:
|
|
15250
14464
|
if (tag !== 210) {
|
|
15251
14465
|
break;
|
|
15252
14466
|
}
|
|
15253
14467
|
|
|
15254
|
-
message.
|
|
14468
|
+
message.user_ids.push(reader.string());
|
|
15255
14469
|
continue;
|
|
15256
14470
|
case 27:
|
|
15257
|
-
if (tag !==
|
|
14471
|
+
if (tag !== 218) {
|
|
15258
14472
|
break;
|
|
15259
14473
|
}
|
|
15260
14474
|
|
|
15261
|
-
message.
|
|
14475
|
+
message.usernames.push(reader.string());
|
|
15262
14476
|
continue;
|
|
15263
14477
|
case 28:
|
|
15264
|
-
if (tag !==
|
|
14478
|
+
if (tag !== 226) {
|
|
15265
14479
|
break;
|
|
15266
14480
|
}
|
|
15267
14481
|
|
|
15268
|
-
message.
|
|
14482
|
+
message.display_names.push(reader.string());
|
|
15269
14483
|
continue;
|
|
15270
14484
|
case 29:
|
|
15271
|
-
if (tag
|
|
15272
|
-
|
|
14485
|
+
if (tag === 232) {
|
|
14486
|
+
message.onlines.push(reader.bool());
|
|
14487
|
+
|
|
14488
|
+
continue;
|
|
15273
14489
|
}
|
|
15274
14490
|
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
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;
|
|
15280
14498
|
}
|
|
15281
14499
|
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15285
|
-
if (tag !== 250) {
|
|
14500
|
+
break;
|
|
14501
|
+
case 30:
|
|
14502
|
+
if (tag !== 242) {
|
|
15286
14503
|
break;
|
|
15287
14504
|
}
|
|
15288
14505
|
|
|
15289
|
-
message.
|
|
14506
|
+
message.avatars.push(reader.string());
|
|
15290
14507
|
continue;
|
|
15291
14508
|
}
|
|
15292
14509
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -15308,42 +14525,37 @@ export const ChannelDescription = {
|
|
|
15308
14525
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
15309
14526
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
15310
14527
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
15311
|
-
channel_avatar: globalThis.Array.isArray(object?.channel_avatar)
|
|
15312
|
-
? object.channel_avatar.map((e: any) => globalThis.String(e))
|
|
15313
|
-
: [],
|
|
15314
|
-
user_id: globalThis.Array.isArray(object?.user_id) ? object.user_id.map((e: any) => globalThis.String(e)) : [],
|
|
15315
14528
|
last_sent_message: isSet(object.last_sent_message)
|
|
15316
14529
|
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
15317
14530
|
: undefined,
|
|
15318
14531
|
last_seen_message: isSet(object.last_seen_message)
|
|
15319
14532
|
? ChannelMessageHeader.fromJSON(object.last_seen_message)
|
|
15320
14533
|
: undefined,
|
|
15321
|
-
is_online: globalThis.Array.isArray(object?.is_online)
|
|
15322
|
-
? object.is_online.map((e: any) => globalThis.Boolean(e))
|
|
15323
|
-
: [],
|
|
15324
14534
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
15325
14535
|
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
15326
14536
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
15327
14537
|
last_pin_message: isSet(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
15328
|
-
usernames: globalThis.Array.isArray(object?.usernames)
|
|
15329
|
-
? object.usernames.map((e: any) => globalThis.String(e))
|
|
15330
|
-
: [],
|
|
15331
14538
|
creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
15332
14539
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
15333
14540
|
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
15334
|
-
metadata: globalThis.Array.isArray(object?.metadata)
|
|
15335
|
-
? object.metadata.map((e: any) => globalThis.String(e))
|
|
15336
|
-
: [],
|
|
15337
|
-
about_me: globalThis.Array.isArray(object?.about_me) ? object.about_me.map((e: any) => globalThis.String(e)) : [],
|
|
15338
14541
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
15339
14542
|
app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
15340
14543
|
is_mute: isSet(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
15341
14544
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
15342
|
-
|
|
14545
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
15343
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
|
+
: [],
|
|
15344
14552
|
display_names: globalThis.Array.isArray(object?.display_names)
|
|
15345
14553
|
? object.display_names.map((e: any) => globalThis.String(e))
|
|
15346
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)) : [],
|
|
15347
14559
|
};
|
|
15348
14560
|
},
|
|
15349
14561
|
|
|
@@ -15376,21 +14588,12 @@ export const ChannelDescription = {
|
|
|
15376
14588
|
if (message.channel_private !== 0) {
|
|
15377
14589
|
obj.channel_private = Math.round(message.channel_private);
|
|
15378
14590
|
}
|
|
15379
|
-
if (message.channel_avatar?.length) {
|
|
15380
|
-
obj.channel_avatar = message.channel_avatar;
|
|
15381
|
-
}
|
|
15382
|
-
if (message.user_id?.length) {
|
|
15383
|
-
obj.user_id = message.user_id;
|
|
15384
|
-
}
|
|
15385
14591
|
if (message.last_sent_message !== undefined) {
|
|
15386
14592
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
15387
14593
|
}
|
|
15388
14594
|
if (message.last_seen_message !== undefined) {
|
|
15389
14595
|
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
15390
14596
|
}
|
|
15391
|
-
if (message.is_online?.length) {
|
|
15392
|
-
obj.is_online = message.is_online;
|
|
15393
|
-
}
|
|
15394
14597
|
if (message.meeting_code !== "") {
|
|
15395
14598
|
obj.meeting_code = message.meeting_code;
|
|
15396
14599
|
}
|
|
@@ -15403,9 +14606,6 @@ export const ChannelDescription = {
|
|
|
15403
14606
|
if (message.last_pin_message !== "") {
|
|
15404
14607
|
obj.last_pin_message = message.last_pin_message;
|
|
15405
14608
|
}
|
|
15406
|
-
if (message.usernames?.length) {
|
|
15407
|
-
obj.usernames = message.usernames;
|
|
15408
|
-
}
|
|
15409
14609
|
if (message.creator_name !== "") {
|
|
15410
14610
|
obj.creator_name = message.creator_name;
|
|
15411
14611
|
}
|
|
@@ -15415,12 +14615,6 @@ export const ChannelDescription = {
|
|
|
15415
14615
|
if (message.update_time_seconds !== 0) {
|
|
15416
14616
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
15417
14617
|
}
|
|
15418
|
-
if (message.metadata?.length) {
|
|
15419
|
-
obj.metadata = message.metadata;
|
|
15420
|
-
}
|
|
15421
|
-
if (message.about_me?.length) {
|
|
15422
|
-
obj.about_me = message.about_me;
|
|
15423
|
-
}
|
|
15424
14618
|
if (message.clan_name !== "") {
|
|
15425
14619
|
obj.clan_name = message.clan_name;
|
|
15426
14620
|
}
|
|
@@ -15433,15 +14627,30 @@ export const ChannelDescription = {
|
|
|
15433
14627
|
if (message.age_restricted !== 0) {
|
|
15434
14628
|
obj.age_restricted = Math.round(message.age_restricted);
|
|
15435
14629
|
}
|
|
15436
|
-
if (message.
|
|
15437
|
-
obj.
|
|
14630
|
+
if (message.channel_avatar !== "") {
|
|
14631
|
+
obj.channel_avatar = message.channel_avatar;
|
|
15438
14632
|
}
|
|
15439
14633
|
if (message.e2ee !== 0) {
|
|
15440
14634
|
obj.e2ee = Math.round(message.e2ee);
|
|
15441
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
|
+
}
|
|
15442
14645
|
if (message.display_names?.length) {
|
|
15443
14646
|
obj.display_names = message.display_names;
|
|
15444
14647
|
}
|
|
14648
|
+
if (message.onlines?.length) {
|
|
14649
|
+
obj.onlines = message.onlines;
|
|
14650
|
+
}
|
|
14651
|
+
if (message.avatars?.length) {
|
|
14652
|
+
obj.avatars = message.avatars;
|
|
14653
|
+
}
|
|
15445
14654
|
return obj;
|
|
15446
14655
|
},
|
|
15447
14656
|
|
|
@@ -15459,32 +14668,31 @@ export const ChannelDescription = {
|
|
|
15459
14668
|
message.creator_id = object.creator_id ?? "";
|
|
15460
14669
|
message.channel_label = object.channel_label ?? "";
|
|
15461
14670
|
message.channel_private = object.channel_private ?? 0;
|
|
15462
|
-
message.channel_avatar = object.channel_avatar?.map((e) => e) || [];
|
|
15463
|
-
message.user_id = object.user_id?.map((e) => e) || [];
|
|
15464
14671
|
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
15465
14672
|
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
15466
14673
|
: undefined;
|
|
15467
14674
|
message.last_seen_message = (object.last_seen_message !== undefined && object.last_seen_message !== null)
|
|
15468
14675
|
? ChannelMessageHeader.fromPartial(object.last_seen_message)
|
|
15469
14676
|
: undefined;
|
|
15470
|
-
message.is_online = object.is_online?.map((e) => e) || [];
|
|
15471
14677
|
message.meeting_code = object.meeting_code ?? "";
|
|
15472
14678
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
15473
14679
|
message.active = object.active ?? 0;
|
|
15474
14680
|
message.last_pin_message = object.last_pin_message ?? "";
|
|
15475
|
-
message.usernames = object.usernames?.map((e) => e) || [];
|
|
15476
14681
|
message.creator_name = object.creator_name ?? "";
|
|
15477
14682
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
15478
14683
|
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
15479
|
-
message.metadata = object.metadata?.map((e) => e) || [];
|
|
15480
|
-
message.about_me = object.about_me?.map((e) => e) || [];
|
|
15481
14684
|
message.clan_name = object.clan_name ?? "";
|
|
15482
14685
|
message.app_id = object.app_id ?? "";
|
|
15483
14686
|
message.is_mute = object.is_mute ?? false;
|
|
15484
14687
|
message.age_restricted = object.age_restricted ?? 0;
|
|
15485
|
-
message.
|
|
14688
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
15486
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) || [];
|
|
15487
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) || [];
|
|
15488
14696
|
return message;
|
|
15489
14697
|
},
|
|
15490
14698
|
};
|