mezon-js-protobuf 1.8.39 → 1.8.41
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 +195 -179
- package/dist/mezon-js-protobuf/api/api.d.ts +485 -439
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1020 -910
- package/dist/mezon-js-protobuf.cjs.js +195 -180
- package/dist/mezon-js-protobuf.esm.mjs +195 -180
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1095,8 +1095,6 @@ export interface User {
|
|
|
1095
1095
|
timezone: string;
|
|
1096
1096
|
/** custom status */
|
|
1097
1097
|
user_status: string;
|
|
1098
|
-
/** online, offline, invisible, idle, do not disturb */
|
|
1099
|
-
status: string;
|
|
1100
1098
|
/** Indicates whether the user is currently online. */
|
|
1101
1099
|
online: boolean;
|
|
1102
1100
|
/** The phone number */
|
|
@@ -1127,6 +1125,8 @@ export interface User {
|
|
|
1127
1125
|
mezon_id: string;
|
|
1128
1126
|
/** list clan nick name */
|
|
1129
1127
|
list_nick_names: string[];
|
|
1128
|
+
/** online, offline, invisible, idle, do not disturb */
|
|
1129
|
+
status: string;
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
1132
|
/** A collection of zero or more users. */
|
|
@@ -1499,6 +1499,10 @@ export interface ChannelDescription {
|
|
|
1499
1499
|
channel_label: string;
|
|
1500
1500
|
/** The channel private */
|
|
1501
1501
|
channel_private: number;
|
|
1502
|
+
/** DM avatars */
|
|
1503
|
+
avatars: string[];
|
|
1504
|
+
/** List DM user ids */
|
|
1505
|
+
user_ids: string[];
|
|
1502
1506
|
/** last message id */
|
|
1503
1507
|
last_sent_message:
|
|
1504
1508
|
| ChannelMessageHeader
|
|
@@ -1507,6 +1511,8 @@ export interface ChannelDescription {
|
|
|
1507
1511
|
last_seen_message:
|
|
1508
1512
|
| ChannelMessageHeader
|
|
1509
1513
|
| undefined;
|
|
1514
|
+
/** DM status */
|
|
1515
|
+
onlines: boolean[];
|
|
1510
1516
|
/** meeting code */
|
|
1511
1517
|
meeting_code: string;
|
|
1512
1518
|
/** count message unread */
|
|
@@ -1515,36 +1521,32 @@ export interface ChannelDescription {
|
|
|
1515
1521
|
active: number;
|
|
1516
1522
|
/** last pin message */
|
|
1517
1523
|
last_pin_message: string;
|
|
1524
|
+
/** List DM usernames */
|
|
1525
|
+
usernames: string[];
|
|
1518
1526
|
/** creator name */
|
|
1519
1527
|
creator_name: string;
|
|
1520
1528
|
/** create time ms */
|
|
1521
1529
|
create_time_seconds: number;
|
|
1522
1530
|
/** update time ms */
|
|
1523
1531
|
update_time_seconds: number;
|
|
1532
|
+
/** List DM diplay names */
|
|
1533
|
+
display_names: string[];
|
|
1534
|
+
/** channel avatar */
|
|
1535
|
+
channel_avatar: string;
|
|
1524
1536
|
/** clan_name */
|
|
1525
1537
|
clan_name: string;
|
|
1526
|
-
/** app
|
|
1538
|
+
/** app id */
|
|
1527
1539
|
app_id: string;
|
|
1528
1540
|
/** channel all message */
|
|
1529
1541
|
is_mute: boolean;
|
|
1530
1542
|
/** age restricted */
|
|
1531
1543
|
age_restricted: number;
|
|
1532
|
-
/** channel avatar */
|
|
1533
|
-
channel_avatar: string;
|
|
1534
|
-
/** e2ee */
|
|
1535
|
-
e2ee: number;
|
|
1536
1544
|
/** channel description topic */
|
|
1537
1545
|
topic: string;
|
|
1538
|
-
/**
|
|
1539
|
-
|
|
1540
|
-
/**
|
|
1541
|
-
|
|
1542
|
-
/** List DM diplay names */
|
|
1543
|
-
display_names: string[];
|
|
1544
|
-
/** DM status */
|
|
1545
|
-
onlines: boolean[];
|
|
1546
|
-
/** DM avatars */
|
|
1547
|
-
avatars: string[];
|
|
1546
|
+
/** e2ee */
|
|
1547
|
+
e2ee: number;
|
|
1548
|
+
/** channel member count */
|
|
1549
|
+
member_count: number;
|
|
1548
1550
|
}
|
|
1549
1551
|
|
|
1550
1552
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -10671,7 +10673,6 @@ function createBaseUser(): User {
|
|
|
10671
10673
|
location: "",
|
|
10672
10674
|
timezone: "",
|
|
10673
10675
|
user_status: "",
|
|
10674
|
-
status: "",
|
|
10675
10676
|
online: false,
|
|
10676
10677
|
phone_number: "",
|
|
10677
10678
|
edge_count: 0,
|
|
@@ -10683,6 +10684,7 @@ function createBaseUser(): User {
|
|
|
10683
10684
|
dob: undefined,
|
|
10684
10685
|
mezon_id: "",
|
|
10685
10686
|
list_nick_names: [],
|
|
10687
|
+
status: "",
|
|
10686
10688
|
};
|
|
10687
10689
|
}
|
|
10688
10690
|
|
|
@@ -10712,41 +10714,41 @@ export const User = {
|
|
|
10712
10714
|
if (message.user_status !== "") {
|
|
10713
10715
|
writer.uint32(66).string(message.user_status);
|
|
10714
10716
|
}
|
|
10715
|
-
if (message.status !== "") {
|
|
10716
|
-
writer.uint32(74).string(message.status);
|
|
10717
|
-
}
|
|
10718
10717
|
if (message.online !== false) {
|
|
10719
|
-
writer.uint32(
|
|
10718
|
+
writer.uint32(72).bool(message.online);
|
|
10720
10719
|
}
|
|
10721
10720
|
if (message.phone_number !== "") {
|
|
10722
|
-
writer.uint32(
|
|
10721
|
+
writer.uint32(82).string(message.phone_number);
|
|
10723
10722
|
}
|
|
10724
10723
|
if (message.edge_count !== 0) {
|
|
10725
|
-
writer.uint32(
|
|
10724
|
+
writer.uint32(88).int32(message.edge_count);
|
|
10726
10725
|
}
|
|
10727
10726
|
if (message.create_time !== undefined) {
|
|
10728
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(
|
|
10727
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
|
|
10729
10728
|
}
|
|
10730
10729
|
if (message.update_time !== undefined) {
|
|
10731
|
-
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(
|
|
10730
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
|
|
10732
10731
|
}
|
|
10733
10732
|
if (message.about_me !== "") {
|
|
10734
|
-
writer.uint32(
|
|
10733
|
+
writer.uint32(114).string(message.about_me);
|
|
10735
10734
|
}
|
|
10736
10735
|
if (message.join_time !== undefined) {
|
|
10737
|
-
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(
|
|
10736
|
+
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
|
|
10738
10737
|
}
|
|
10739
10738
|
if (message.is_mobile !== false) {
|
|
10740
|
-
writer.uint32(
|
|
10739
|
+
writer.uint32(128).bool(message.is_mobile);
|
|
10741
10740
|
}
|
|
10742
10741
|
if (message.dob !== undefined) {
|
|
10743
|
-
Timestamp.encode(toTimestamp(message.dob), writer.uint32(
|
|
10742
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
|
|
10744
10743
|
}
|
|
10745
10744
|
if (message.mezon_id !== "") {
|
|
10746
|
-
writer.uint32(
|
|
10745
|
+
writer.uint32(146).string(message.mezon_id);
|
|
10747
10746
|
}
|
|
10748
10747
|
for (const v of message.list_nick_names) {
|
|
10749
|
-
writer.uint32(
|
|
10748
|
+
writer.uint32(154).string(v!);
|
|
10749
|
+
}
|
|
10750
|
+
if (message.status !== "") {
|
|
10751
|
+
writer.uint32(162).string(message.status);
|
|
10750
10752
|
}
|
|
10751
10753
|
return writer;
|
|
10752
10754
|
},
|
|
@@ -10815,88 +10817,88 @@ export const User = {
|
|
|
10815
10817
|
message.user_status = reader.string();
|
|
10816
10818
|
continue;
|
|
10817
10819
|
case 9:
|
|
10818
|
-
if (tag !==
|
|
10820
|
+
if (tag !== 72) {
|
|
10819
10821
|
break;
|
|
10820
10822
|
}
|
|
10821
10823
|
|
|
10822
|
-
message.
|
|
10824
|
+
message.online = reader.bool();
|
|
10823
10825
|
continue;
|
|
10824
10826
|
case 10:
|
|
10825
|
-
if (tag !==
|
|
10827
|
+
if (tag !== 82) {
|
|
10826
10828
|
break;
|
|
10827
10829
|
}
|
|
10828
10830
|
|
|
10829
|
-
message.
|
|
10831
|
+
message.phone_number = reader.string();
|
|
10830
10832
|
continue;
|
|
10831
10833
|
case 11:
|
|
10832
|
-
if (tag !==
|
|
10834
|
+
if (tag !== 88) {
|
|
10833
10835
|
break;
|
|
10834
10836
|
}
|
|
10835
10837
|
|
|
10836
|
-
message.
|
|
10838
|
+
message.edge_count = reader.int32();
|
|
10837
10839
|
continue;
|
|
10838
10840
|
case 12:
|
|
10839
|
-
if (tag !==
|
|
10841
|
+
if (tag !== 98) {
|
|
10840
10842
|
break;
|
|
10841
10843
|
}
|
|
10842
10844
|
|
|
10843
|
-
message.
|
|
10845
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10844
10846
|
continue;
|
|
10845
10847
|
case 13:
|
|
10846
10848
|
if (tag !== 106) {
|
|
10847
10849
|
break;
|
|
10848
10850
|
}
|
|
10849
10851
|
|
|
10850
|
-
message.
|
|
10852
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10851
10853
|
continue;
|
|
10852
10854
|
case 14:
|
|
10853
10855
|
if (tag !== 114) {
|
|
10854
10856
|
break;
|
|
10855
10857
|
}
|
|
10856
10858
|
|
|
10857
|
-
message.
|
|
10859
|
+
message.about_me = reader.string();
|
|
10858
10860
|
continue;
|
|
10859
10861
|
case 15:
|
|
10860
10862
|
if (tag !== 122) {
|
|
10861
10863
|
break;
|
|
10862
10864
|
}
|
|
10863
10865
|
|
|
10864
|
-
message.
|
|
10866
|
+
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10865
10867
|
continue;
|
|
10866
10868
|
case 16:
|
|
10867
|
-
if (tag !==
|
|
10869
|
+
if (tag !== 128) {
|
|
10868
10870
|
break;
|
|
10869
10871
|
}
|
|
10870
10872
|
|
|
10871
|
-
message.
|
|
10873
|
+
message.is_mobile = reader.bool();
|
|
10872
10874
|
continue;
|
|
10873
10875
|
case 17:
|
|
10874
|
-
if (tag !==
|
|
10876
|
+
if (tag !== 138) {
|
|
10875
10877
|
break;
|
|
10876
10878
|
}
|
|
10877
10879
|
|
|
10878
|
-
message.
|
|
10880
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10879
10881
|
continue;
|
|
10880
10882
|
case 18:
|
|
10881
10883
|
if (tag !== 146) {
|
|
10882
10884
|
break;
|
|
10883
10885
|
}
|
|
10884
10886
|
|
|
10885
|
-
message.
|
|
10887
|
+
message.mezon_id = reader.string();
|
|
10886
10888
|
continue;
|
|
10887
10889
|
case 19:
|
|
10888
10890
|
if (tag !== 154) {
|
|
10889
10891
|
break;
|
|
10890
10892
|
}
|
|
10891
10893
|
|
|
10892
|
-
message.
|
|
10894
|
+
message.list_nick_names.push(reader.string());
|
|
10893
10895
|
continue;
|
|
10894
10896
|
case 20:
|
|
10895
10897
|
if (tag !== 162) {
|
|
10896
10898
|
break;
|
|
10897
10899
|
}
|
|
10898
10900
|
|
|
10899
|
-
message.
|
|
10901
|
+
message.status = reader.string();
|
|
10900
10902
|
continue;
|
|
10901
10903
|
}
|
|
10902
10904
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -10917,7 +10919,6 @@ export const User = {
|
|
|
10917
10919
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
10918
10920
|
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
10919
10921
|
user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
10920
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
10921
10922
|
online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
|
|
10922
10923
|
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
10923
10924
|
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
@@ -10931,6 +10932,7 @@ export const User = {
|
|
|
10931
10932
|
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
10932
10933
|
? object.list_nick_names.map((e: any) => globalThis.String(e))
|
|
10933
10934
|
: [],
|
|
10935
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
10934
10936
|
};
|
|
10935
10937
|
},
|
|
10936
10938
|
|
|
@@ -10960,9 +10962,6 @@ export const User = {
|
|
|
10960
10962
|
if (message.user_status !== "") {
|
|
10961
10963
|
obj.user_status = message.user_status;
|
|
10962
10964
|
}
|
|
10963
|
-
if (message.status !== "") {
|
|
10964
|
-
obj.status = message.status;
|
|
10965
|
-
}
|
|
10966
10965
|
if (message.online !== false) {
|
|
10967
10966
|
obj.online = message.online;
|
|
10968
10967
|
}
|
|
@@ -10996,6 +10995,9 @@ export const User = {
|
|
|
10996
10995
|
if (message.list_nick_names?.length) {
|
|
10997
10996
|
obj.list_nick_names = message.list_nick_names;
|
|
10998
10997
|
}
|
|
10998
|
+
if (message.status !== "") {
|
|
10999
|
+
obj.status = message.status;
|
|
11000
|
+
}
|
|
10999
11001
|
return obj;
|
|
11000
11002
|
},
|
|
11001
11003
|
|
|
@@ -11012,7 +11014,6 @@ export const User = {
|
|
|
11012
11014
|
message.location = object.location ?? "";
|
|
11013
11015
|
message.timezone = object.timezone ?? "";
|
|
11014
11016
|
message.user_status = object.user_status ?? "";
|
|
11015
|
-
message.status = object.status ?? "";
|
|
11016
11017
|
message.online = object.online ?? false;
|
|
11017
11018
|
message.phone_number = object.phone_number ?? "";
|
|
11018
11019
|
message.edge_count = object.edge_count ?? 0;
|
|
@@ -11024,6 +11025,7 @@ export const User = {
|
|
|
11024
11025
|
message.dob = object.dob ?? undefined;
|
|
11025
11026
|
message.mezon_id = object.mezon_id ?? "";
|
|
11026
11027
|
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11028
|
+
message.status = object.status ?? "";
|
|
11027
11029
|
return message;
|
|
11028
11030
|
},
|
|
11029
11031
|
};
|
|
@@ -14177,27 +14179,28 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
14177
14179
|
creator_id: "",
|
|
14178
14180
|
channel_label: "",
|
|
14179
14181
|
channel_private: 0,
|
|
14182
|
+
avatars: [],
|
|
14183
|
+
user_ids: [],
|
|
14180
14184
|
last_sent_message: undefined,
|
|
14181
14185
|
last_seen_message: undefined,
|
|
14186
|
+
onlines: [],
|
|
14182
14187
|
meeting_code: "",
|
|
14183
14188
|
count_mess_unread: 0,
|
|
14184
14189
|
active: 0,
|
|
14185
14190
|
last_pin_message: "",
|
|
14191
|
+
usernames: [],
|
|
14186
14192
|
creator_name: "",
|
|
14187
14193
|
create_time_seconds: 0,
|
|
14188
14194
|
update_time_seconds: 0,
|
|
14195
|
+
display_names: [],
|
|
14196
|
+
channel_avatar: "",
|
|
14189
14197
|
clan_name: "",
|
|
14190
14198
|
app_id: "",
|
|
14191
14199
|
is_mute: false,
|
|
14192
14200
|
age_restricted: 0,
|
|
14193
|
-
channel_avatar: "",
|
|
14194
|
-
e2ee: 0,
|
|
14195
14201
|
topic: "",
|
|
14196
|
-
|
|
14197
|
-
|
|
14198
|
-
display_names: [],
|
|
14199
|
-
onlines: [],
|
|
14200
|
-
avatars: [],
|
|
14202
|
+
e2ee: 0,
|
|
14203
|
+
member_count: 0,
|
|
14201
14204
|
};
|
|
14202
14205
|
}
|
|
14203
14206
|
|
|
@@ -14230,70 +14233,73 @@ export const ChannelDescription = {
|
|
|
14230
14233
|
if (message.channel_private !== 0) {
|
|
14231
14234
|
writer.uint32(72).int32(message.channel_private);
|
|
14232
14235
|
}
|
|
14236
|
+
for (const v of message.avatars) {
|
|
14237
|
+
writer.uint32(82).string(v!);
|
|
14238
|
+
}
|
|
14239
|
+
for (const v of message.user_ids) {
|
|
14240
|
+
writer.uint32(90).string(v!);
|
|
14241
|
+
}
|
|
14233
14242
|
if (message.last_sent_message !== undefined) {
|
|
14234
|
-
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(
|
|
14243
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
|
|
14235
14244
|
}
|
|
14236
14245
|
if (message.last_seen_message !== undefined) {
|
|
14237
|
-
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(
|
|
14246
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
|
|
14247
|
+
}
|
|
14248
|
+
writer.uint32(114).fork();
|
|
14249
|
+
for (const v of message.onlines) {
|
|
14250
|
+
writer.bool(v);
|
|
14238
14251
|
}
|
|
14252
|
+
writer.ldelim();
|
|
14239
14253
|
if (message.meeting_code !== "") {
|
|
14240
|
-
writer.uint32(
|
|
14254
|
+
writer.uint32(122).string(message.meeting_code);
|
|
14241
14255
|
}
|
|
14242
14256
|
if (message.count_mess_unread !== 0) {
|
|
14243
|
-
writer.uint32(
|
|
14257
|
+
writer.uint32(128).int32(message.count_mess_unread);
|
|
14244
14258
|
}
|
|
14245
14259
|
if (message.active !== 0) {
|
|
14246
|
-
writer.uint32(
|
|
14260
|
+
writer.uint32(136).int32(message.active);
|
|
14247
14261
|
}
|
|
14248
14262
|
if (message.last_pin_message !== "") {
|
|
14249
|
-
writer.uint32(
|
|
14263
|
+
writer.uint32(146).string(message.last_pin_message);
|
|
14264
|
+
}
|
|
14265
|
+
for (const v of message.usernames) {
|
|
14266
|
+
writer.uint32(154).string(v!);
|
|
14250
14267
|
}
|
|
14251
14268
|
if (message.creator_name !== "") {
|
|
14252
|
-
writer.uint32(
|
|
14269
|
+
writer.uint32(162).string(message.creator_name);
|
|
14253
14270
|
}
|
|
14254
14271
|
if (message.create_time_seconds !== 0) {
|
|
14255
|
-
writer.uint32(
|
|
14272
|
+
writer.uint32(168).uint32(message.create_time_seconds);
|
|
14256
14273
|
}
|
|
14257
14274
|
if (message.update_time_seconds !== 0) {
|
|
14258
|
-
writer.uint32(
|
|
14275
|
+
writer.uint32(176).uint32(message.update_time_seconds);
|
|
14276
|
+
}
|
|
14277
|
+
for (const v of message.display_names) {
|
|
14278
|
+
writer.uint32(186).string(v!);
|
|
14279
|
+
}
|
|
14280
|
+
if (message.channel_avatar !== "") {
|
|
14281
|
+
writer.uint32(194).string(message.channel_avatar);
|
|
14259
14282
|
}
|
|
14260
14283
|
if (message.clan_name !== "") {
|
|
14261
|
-
writer.uint32(
|
|
14284
|
+
writer.uint32(202).string(message.clan_name);
|
|
14262
14285
|
}
|
|
14263
14286
|
if (message.app_id !== "") {
|
|
14264
|
-
writer.uint32(
|
|
14287
|
+
writer.uint32(210).string(message.app_id);
|
|
14265
14288
|
}
|
|
14266
14289
|
if (message.is_mute !== false) {
|
|
14267
|
-
writer.uint32(
|
|
14290
|
+
writer.uint32(216).bool(message.is_mute);
|
|
14268
14291
|
}
|
|
14269
14292
|
if (message.age_restricted !== 0) {
|
|
14270
|
-
writer.uint32(
|
|
14271
|
-
}
|
|
14272
|
-
if (message.channel_avatar !== "") {
|
|
14273
|
-
writer.uint32(186).string(message.channel_avatar);
|
|
14274
|
-
}
|
|
14275
|
-
if (message.e2ee !== 0) {
|
|
14276
|
-
writer.uint32(192).int32(message.e2ee);
|
|
14293
|
+
writer.uint32(224).int32(message.age_restricted);
|
|
14277
14294
|
}
|
|
14278
14295
|
if (message.topic !== "") {
|
|
14279
|
-
writer.uint32(
|
|
14280
|
-
}
|
|
14281
|
-
for (const v of message.user_ids) {
|
|
14282
|
-
writer.uint32(210).string(v!);
|
|
14283
|
-
}
|
|
14284
|
-
for (const v of message.usernames) {
|
|
14285
|
-
writer.uint32(218).string(v!);
|
|
14286
|
-
}
|
|
14287
|
-
for (const v of message.display_names) {
|
|
14288
|
-
writer.uint32(226).string(v!);
|
|
14296
|
+
writer.uint32(234).string(message.topic);
|
|
14289
14297
|
}
|
|
14290
|
-
|
|
14291
|
-
|
|
14292
|
-
writer.bool(v);
|
|
14298
|
+
if (message.e2ee !== 0) {
|
|
14299
|
+
writer.uint32(240).int32(message.e2ee);
|
|
14293
14300
|
}
|
|
14294
|
-
|
|
14295
|
-
|
|
14296
|
-
writer.uint32(242).string(v!);
|
|
14301
|
+
if (message.member_count !== 0) {
|
|
14302
|
+
writer.uint32(248).int32(message.member_count);
|
|
14297
14303
|
}
|
|
14298
14304
|
return writer;
|
|
14299
14305
|
},
|
|
@@ -14373,157 +14379,164 @@ export const ChannelDescription = {
|
|
|
14373
14379
|
break;
|
|
14374
14380
|
}
|
|
14375
14381
|
|
|
14376
|
-
message.
|
|
14382
|
+
message.avatars.push(reader.string());
|
|
14377
14383
|
continue;
|
|
14378
14384
|
case 11:
|
|
14379
14385
|
if (tag !== 90) {
|
|
14380
14386
|
break;
|
|
14381
14387
|
}
|
|
14382
14388
|
|
|
14383
|
-
message.
|
|
14389
|
+
message.user_ids.push(reader.string());
|
|
14384
14390
|
continue;
|
|
14385
14391
|
case 12:
|
|
14386
14392
|
if (tag !== 98) {
|
|
14387
14393
|
break;
|
|
14388
14394
|
}
|
|
14389
14395
|
|
|
14390
|
-
message.
|
|
14396
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
14391
14397
|
continue;
|
|
14392
14398
|
case 13:
|
|
14393
|
-
if (tag !==
|
|
14399
|
+
if (tag !== 106) {
|
|
14394
14400
|
break;
|
|
14395
14401
|
}
|
|
14396
14402
|
|
|
14397
|
-
message.
|
|
14403
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
14398
14404
|
continue;
|
|
14399
14405
|
case 14:
|
|
14400
|
-
if (tag
|
|
14401
|
-
|
|
14406
|
+
if (tag === 112) {
|
|
14407
|
+
message.onlines.push(reader.bool());
|
|
14408
|
+
|
|
14409
|
+
continue;
|
|
14402
14410
|
}
|
|
14403
14411
|
|
|
14404
|
-
|
|
14405
|
-
|
|
14412
|
+
if (tag === 114) {
|
|
14413
|
+
const end2 = reader.uint32() + reader.pos;
|
|
14414
|
+
while (reader.pos < end2) {
|
|
14415
|
+
message.onlines.push(reader.bool());
|
|
14416
|
+
}
|
|
14417
|
+
|
|
14418
|
+
continue;
|
|
14419
|
+
}
|
|
14420
|
+
|
|
14421
|
+
break;
|
|
14406
14422
|
case 15:
|
|
14407
14423
|
if (tag !== 122) {
|
|
14408
14424
|
break;
|
|
14409
14425
|
}
|
|
14410
14426
|
|
|
14411
|
-
message.
|
|
14427
|
+
message.meeting_code = reader.string();
|
|
14412
14428
|
continue;
|
|
14413
14429
|
case 16:
|
|
14414
|
-
if (tag !==
|
|
14430
|
+
if (tag !== 128) {
|
|
14415
14431
|
break;
|
|
14416
14432
|
}
|
|
14417
14433
|
|
|
14418
|
-
message.
|
|
14434
|
+
message.count_mess_unread = reader.int32();
|
|
14419
14435
|
continue;
|
|
14420
14436
|
case 17:
|
|
14421
14437
|
if (tag !== 136) {
|
|
14422
14438
|
break;
|
|
14423
14439
|
}
|
|
14424
14440
|
|
|
14425
|
-
message.
|
|
14441
|
+
message.active = reader.int32();
|
|
14426
14442
|
continue;
|
|
14427
14443
|
case 18:
|
|
14428
|
-
if (tag !==
|
|
14444
|
+
if (tag !== 146) {
|
|
14429
14445
|
break;
|
|
14430
14446
|
}
|
|
14431
14447
|
|
|
14432
|
-
message.
|
|
14448
|
+
message.last_pin_message = reader.string();
|
|
14433
14449
|
continue;
|
|
14434
14450
|
case 19:
|
|
14435
14451
|
if (tag !== 154) {
|
|
14436
14452
|
break;
|
|
14437
14453
|
}
|
|
14438
14454
|
|
|
14439
|
-
message.
|
|
14455
|
+
message.usernames.push(reader.string());
|
|
14440
14456
|
continue;
|
|
14441
14457
|
case 20:
|
|
14442
14458
|
if (tag !== 162) {
|
|
14443
14459
|
break;
|
|
14444
14460
|
}
|
|
14445
14461
|
|
|
14446
|
-
message.
|
|
14462
|
+
message.creator_name = reader.string();
|
|
14447
14463
|
continue;
|
|
14448
14464
|
case 21:
|
|
14449
14465
|
if (tag !== 168) {
|
|
14450
14466
|
break;
|
|
14451
14467
|
}
|
|
14452
14468
|
|
|
14453
|
-
message.
|
|
14469
|
+
message.create_time_seconds = reader.uint32();
|
|
14454
14470
|
continue;
|
|
14455
14471
|
case 22:
|
|
14456
14472
|
if (tag !== 176) {
|
|
14457
14473
|
break;
|
|
14458
14474
|
}
|
|
14459
14475
|
|
|
14460
|
-
message.
|
|
14476
|
+
message.update_time_seconds = reader.uint32();
|
|
14461
14477
|
continue;
|
|
14462
14478
|
case 23:
|
|
14463
14479
|
if (tag !== 186) {
|
|
14464
14480
|
break;
|
|
14465
14481
|
}
|
|
14466
14482
|
|
|
14467
|
-
message.
|
|
14483
|
+
message.display_names.push(reader.string());
|
|
14468
14484
|
continue;
|
|
14469
14485
|
case 24:
|
|
14470
|
-
if (tag !==
|
|
14486
|
+
if (tag !== 194) {
|
|
14471
14487
|
break;
|
|
14472
14488
|
}
|
|
14473
14489
|
|
|
14474
|
-
message.
|
|
14490
|
+
message.channel_avatar = reader.string();
|
|
14475
14491
|
continue;
|
|
14476
14492
|
case 25:
|
|
14477
14493
|
if (tag !== 202) {
|
|
14478
14494
|
break;
|
|
14479
14495
|
}
|
|
14480
14496
|
|
|
14481
|
-
message.
|
|
14497
|
+
message.clan_name = reader.string();
|
|
14482
14498
|
continue;
|
|
14483
14499
|
case 26:
|
|
14484
14500
|
if (tag !== 210) {
|
|
14485
14501
|
break;
|
|
14486
14502
|
}
|
|
14487
14503
|
|
|
14488
|
-
message.
|
|
14504
|
+
message.app_id = reader.string();
|
|
14489
14505
|
continue;
|
|
14490
14506
|
case 27:
|
|
14491
|
-
if (tag !==
|
|
14507
|
+
if (tag !== 216) {
|
|
14492
14508
|
break;
|
|
14493
14509
|
}
|
|
14494
14510
|
|
|
14495
|
-
message.
|
|
14511
|
+
message.is_mute = reader.bool();
|
|
14496
14512
|
continue;
|
|
14497
14513
|
case 28:
|
|
14498
|
-
if (tag !==
|
|
14514
|
+
if (tag !== 224) {
|
|
14499
14515
|
break;
|
|
14500
14516
|
}
|
|
14501
14517
|
|
|
14502
|
-
message.
|
|
14518
|
+
message.age_restricted = reader.int32();
|
|
14503
14519
|
continue;
|
|
14504
14520
|
case 29:
|
|
14505
|
-
if (tag
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
continue;
|
|
14521
|
+
if (tag !== 234) {
|
|
14522
|
+
break;
|
|
14509
14523
|
}
|
|
14510
14524
|
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
continue;
|
|
14525
|
+
message.topic = reader.string();
|
|
14526
|
+
continue;
|
|
14527
|
+
case 30:
|
|
14528
|
+
if (tag !== 240) {
|
|
14529
|
+
break;
|
|
14518
14530
|
}
|
|
14519
14531
|
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14532
|
+
message.e2ee = reader.int32();
|
|
14533
|
+
continue;
|
|
14534
|
+
case 31:
|
|
14535
|
+
if (tag !== 248) {
|
|
14523
14536
|
break;
|
|
14524
14537
|
}
|
|
14525
14538
|
|
|
14526
|
-
message.
|
|
14539
|
+
message.member_count = reader.int32();
|
|
14527
14540
|
continue;
|
|
14528
14541
|
}
|
|
14529
14542
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -14545,37 +14558,36 @@ export const ChannelDescription = {
|
|
|
14545
14558
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
14546
14559
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
14547
14560
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
14561
|
+
avatars: globalThis.Array.isArray(object?.avatars) ? object.avatars.map((e: any) => globalThis.String(e)) : [],
|
|
14562
|
+
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
14548
14563
|
last_sent_message: isSet(object.last_sent_message)
|
|
14549
14564
|
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
14550
14565
|
: undefined,
|
|
14551
14566
|
last_seen_message: isSet(object.last_seen_message)
|
|
14552
14567
|
? ChannelMessageHeader.fromJSON(object.last_seen_message)
|
|
14553
14568
|
: undefined,
|
|
14569
|
+
onlines: globalThis.Array.isArray(object?.onlines) ? object.onlines.map((e: any) => globalThis.Boolean(e)) : [],
|
|
14554
14570
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
14555
14571
|
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
14556
14572
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
14557
14573
|
last_pin_message: isSet(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
14574
|
+
usernames: globalThis.Array.isArray(object?.usernames)
|
|
14575
|
+
? object.usernames.map((e: any) => globalThis.String(e))
|
|
14576
|
+
: [],
|
|
14558
14577
|
creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
14559
14578
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
14560
14579
|
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
14580
|
+
display_names: globalThis.Array.isArray(object?.display_names)
|
|
14581
|
+
? object.display_names.map((e: any) => globalThis.String(e))
|
|
14582
|
+
: [],
|
|
14583
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
14561
14584
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
14562
14585
|
app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
14563
14586
|
is_mute: isSet(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
14564
14587
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
14565
|
-
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
14566
|
-
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
14567
14588
|
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
? object.usernames.map((e: any) => globalThis.String(e))
|
|
14571
|
-
: [],
|
|
14572
|
-
display_names: globalThis.Array.isArray(object?.display_names)
|
|
14573
|
-
? object.display_names.map((e: any) => globalThis.String(e))
|
|
14574
|
-
: [],
|
|
14575
|
-
onlines: globalThis.Array.isArray(object?.onlines)
|
|
14576
|
-
? object.onlines.map((e: any) => globalThis.Boolean(e))
|
|
14577
|
-
: [],
|
|
14578
|
-
avatars: globalThis.Array.isArray(object?.avatars) ? object.avatars.map((e: any) => globalThis.String(e)) : [],
|
|
14589
|
+
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
14590
|
+
member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
|
|
14579
14591
|
};
|
|
14580
14592
|
},
|
|
14581
14593
|
|
|
@@ -14608,12 +14620,21 @@ export const ChannelDescription = {
|
|
|
14608
14620
|
if (message.channel_private !== 0) {
|
|
14609
14621
|
obj.channel_private = Math.round(message.channel_private);
|
|
14610
14622
|
}
|
|
14623
|
+
if (message.avatars?.length) {
|
|
14624
|
+
obj.avatars = message.avatars;
|
|
14625
|
+
}
|
|
14626
|
+
if (message.user_ids?.length) {
|
|
14627
|
+
obj.user_ids = message.user_ids;
|
|
14628
|
+
}
|
|
14611
14629
|
if (message.last_sent_message !== undefined) {
|
|
14612
14630
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
14613
14631
|
}
|
|
14614
14632
|
if (message.last_seen_message !== undefined) {
|
|
14615
14633
|
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
14616
14634
|
}
|
|
14635
|
+
if (message.onlines?.length) {
|
|
14636
|
+
obj.onlines = message.onlines;
|
|
14637
|
+
}
|
|
14617
14638
|
if (message.meeting_code !== "") {
|
|
14618
14639
|
obj.meeting_code = message.meeting_code;
|
|
14619
14640
|
}
|
|
@@ -14626,6 +14647,9 @@ export const ChannelDescription = {
|
|
|
14626
14647
|
if (message.last_pin_message !== "") {
|
|
14627
14648
|
obj.last_pin_message = message.last_pin_message;
|
|
14628
14649
|
}
|
|
14650
|
+
if (message.usernames?.length) {
|
|
14651
|
+
obj.usernames = message.usernames;
|
|
14652
|
+
}
|
|
14629
14653
|
if (message.creator_name !== "") {
|
|
14630
14654
|
obj.creator_name = message.creator_name;
|
|
14631
14655
|
}
|
|
@@ -14635,6 +14659,12 @@ export const ChannelDescription = {
|
|
|
14635
14659
|
if (message.update_time_seconds !== 0) {
|
|
14636
14660
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
14637
14661
|
}
|
|
14662
|
+
if (message.display_names?.length) {
|
|
14663
|
+
obj.display_names = message.display_names;
|
|
14664
|
+
}
|
|
14665
|
+
if (message.channel_avatar !== "") {
|
|
14666
|
+
obj.channel_avatar = message.channel_avatar;
|
|
14667
|
+
}
|
|
14638
14668
|
if (message.clan_name !== "") {
|
|
14639
14669
|
obj.clan_name = message.clan_name;
|
|
14640
14670
|
}
|
|
@@ -14647,29 +14677,14 @@ export const ChannelDescription = {
|
|
|
14647
14677
|
if (message.age_restricted !== 0) {
|
|
14648
14678
|
obj.age_restricted = Math.round(message.age_restricted);
|
|
14649
14679
|
}
|
|
14650
|
-
if (message.channel_avatar !== "") {
|
|
14651
|
-
obj.channel_avatar = message.channel_avatar;
|
|
14652
|
-
}
|
|
14653
|
-
if (message.e2ee !== 0) {
|
|
14654
|
-
obj.e2ee = Math.round(message.e2ee);
|
|
14655
|
-
}
|
|
14656
14680
|
if (message.topic !== "") {
|
|
14657
14681
|
obj.topic = message.topic;
|
|
14658
14682
|
}
|
|
14659
|
-
if (message.
|
|
14660
|
-
obj.
|
|
14661
|
-
}
|
|
14662
|
-
if (message.usernames?.length) {
|
|
14663
|
-
obj.usernames = message.usernames;
|
|
14664
|
-
}
|
|
14665
|
-
if (message.display_names?.length) {
|
|
14666
|
-
obj.display_names = message.display_names;
|
|
14667
|
-
}
|
|
14668
|
-
if (message.onlines?.length) {
|
|
14669
|
-
obj.onlines = message.onlines;
|
|
14683
|
+
if (message.e2ee !== 0) {
|
|
14684
|
+
obj.e2ee = Math.round(message.e2ee);
|
|
14670
14685
|
}
|
|
14671
|
-
if (message.
|
|
14672
|
-
obj.
|
|
14686
|
+
if (message.member_count !== 0) {
|
|
14687
|
+
obj.member_count = Math.round(message.member_count);
|
|
14673
14688
|
}
|
|
14674
14689
|
return obj;
|
|
14675
14690
|
},
|
|
@@ -14688,31 +14703,32 @@ export const ChannelDescription = {
|
|
|
14688
14703
|
message.creator_id = object.creator_id ?? "";
|
|
14689
14704
|
message.channel_label = object.channel_label ?? "";
|
|
14690
14705
|
message.channel_private = object.channel_private ?? 0;
|
|
14706
|
+
message.avatars = object.avatars?.map((e) => e) || [];
|
|
14707
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
14691
14708
|
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
14692
14709
|
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
14693
14710
|
: undefined;
|
|
14694
14711
|
message.last_seen_message = (object.last_seen_message !== undefined && object.last_seen_message !== null)
|
|
14695
14712
|
? ChannelMessageHeader.fromPartial(object.last_seen_message)
|
|
14696
14713
|
: undefined;
|
|
14714
|
+
message.onlines = object.onlines?.map((e) => e) || [];
|
|
14697
14715
|
message.meeting_code = object.meeting_code ?? "";
|
|
14698
14716
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
14699
14717
|
message.active = object.active ?? 0;
|
|
14700
14718
|
message.last_pin_message = object.last_pin_message ?? "";
|
|
14719
|
+
message.usernames = object.usernames?.map((e) => e) || [];
|
|
14701
14720
|
message.creator_name = object.creator_name ?? "";
|
|
14702
14721
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
14703
14722
|
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
14723
|
+
message.display_names = object.display_names?.map((e) => e) || [];
|
|
14724
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
14704
14725
|
message.clan_name = object.clan_name ?? "";
|
|
14705
14726
|
message.app_id = object.app_id ?? "";
|
|
14706
14727
|
message.is_mute = object.is_mute ?? false;
|
|
14707
14728
|
message.age_restricted = object.age_restricted ?? 0;
|
|
14708
|
-
message.channel_avatar = object.channel_avatar ?? "";
|
|
14709
|
-
message.e2ee = object.e2ee ?? 0;
|
|
14710
14729
|
message.topic = object.topic ?? "";
|
|
14711
|
-
message.
|
|
14712
|
-
message.
|
|
14713
|
-
message.display_names = object.display_names?.map((e) => e) || [];
|
|
14714
|
-
message.onlines = object.onlines?.map((e) => e) || [];
|
|
14715
|
-
message.avatars = object.avatars?.map((e) => e) || [];
|
|
14730
|
+
message.e2ee = object.e2ee ?? 0;
|
|
14731
|
+
message.member_count = object.member_count ?? 0;
|
|
14716
14732
|
return message;
|
|
14717
14733
|
},
|
|
14718
14734
|
};
|