mezon-js-protobuf 1.8.39 → 1.8.40
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 +180 -182
- package/dist/mezon-js-protobuf/api/api.d.ts +439 -439
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +910 -910
- package/dist/mezon-js-protobuf.cjs.js +181 -181
- package/dist/mezon-js-protobuf.esm.mjs +181 -181
- 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,30 @@ 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
|
-
/** List DM usernames */
|
|
1541
|
-
usernames: string[];
|
|
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
1548
|
}
|
|
1549
1549
|
|
|
1550
1550
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -10671,7 +10671,6 @@ function createBaseUser(): User {
|
|
|
10671
10671
|
location: "",
|
|
10672
10672
|
timezone: "",
|
|
10673
10673
|
user_status: "",
|
|
10674
|
-
status: "",
|
|
10675
10674
|
online: false,
|
|
10676
10675
|
phone_number: "",
|
|
10677
10676
|
edge_count: 0,
|
|
@@ -10683,6 +10682,7 @@ function createBaseUser(): User {
|
|
|
10683
10682
|
dob: undefined,
|
|
10684
10683
|
mezon_id: "",
|
|
10685
10684
|
list_nick_names: [],
|
|
10685
|
+
status: "",
|
|
10686
10686
|
};
|
|
10687
10687
|
}
|
|
10688
10688
|
|
|
@@ -10712,41 +10712,41 @@ export const User = {
|
|
|
10712
10712
|
if (message.user_status !== "") {
|
|
10713
10713
|
writer.uint32(66).string(message.user_status);
|
|
10714
10714
|
}
|
|
10715
|
-
if (message.status !== "") {
|
|
10716
|
-
writer.uint32(74).string(message.status);
|
|
10717
|
-
}
|
|
10718
10715
|
if (message.online !== false) {
|
|
10719
|
-
writer.uint32(
|
|
10716
|
+
writer.uint32(72).bool(message.online);
|
|
10720
10717
|
}
|
|
10721
10718
|
if (message.phone_number !== "") {
|
|
10722
|
-
writer.uint32(
|
|
10719
|
+
writer.uint32(82).string(message.phone_number);
|
|
10723
10720
|
}
|
|
10724
10721
|
if (message.edge_count !== 0) {
|
|
10725
|
-
writer.uint32(
|
|
10722
|
+
writer.uint32(88).int32(message.edge_count);
|
|
10726
10723
|
}
|
|
10727
10724
|
if (message.create_time !== undefined) {
|
|
10728
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(
|
|
10725
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
|
|
10729
10726
|
}
|
|
10730
10727
|
if (message.update_time !== undefined) {
|
|
10731
|
-
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(
|
|
10728
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
|
|
10732
10729
|
}
|
|
10733
10730
|
if (message.about_me !== "") {
|
|
10734
|
-
writer.uint32(
|
|
10731
|
+
writer.uint32(114).string(message.about_me);
|
|
10735
10732
|
}
|
|
10736
10733
|
if (message.join_time !== undefined) {
|
|
10737
|
-
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(
|
|
10734
|
+
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
|
|
10738
10735
|
}
|
|
10739
10736
|
if (message.is_mobile !== false) {
|
|
10740
|
-
writer.uint32(
|
|
10737
|
+
writer.uint32(128).bool(message.is_mobile);
|
|
10741
10738
|
}
|
|
10742
10739
|
if (message.dob !== undefined) {
|
|
10743
|
-
Timestamp.encode(toTimestamp(message.dob), writer.uint32(
|
|
10740
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
|
|
10744
10741
|
}
|
|
10745
10742
|
if (message.mezon_id !== "") {
|
|
10746
|
-
writer.uint32(
|
|
10743
|
+
writer.uint32(146).string(message.mezon_id);
|
|
10747
10744
|
}
|
|
10748
10745
|
for (const v of message.list_nick_names) {
|
|
10749
|
-
writer.uint32(
|
|
10746
|
+
writer.uint32(154).string(v!);
|
|
10747
|
+
}
|
|
10748
|
+
if (message.status !== "") {
|
|
10749
|
+
writer.uint32(162).string(message.status);
|
|
10750
10750
|
}
|
|
10751
10751
|
return writer;
|
|
10752
10752
|
},
|
|
@@ -10815,88 +10815,88 @@ export const User = {
|
|
|
10815
10815
|
message.user_status = reader.string();
|
|
10816
10816
|
continue;
|
|
10817
10817
|
case 9:
|
|
10818
|
-
if (tag !==
|
|
10818
|
+
if (tag !== 72) {
|
|
10819
10819
|
break;
|
|
10820
10820
|
}
|
|
10821
10821
|
|
|
10822
|
-
message.
|
|
10822
|
+
message.online = reader.bool();
|
|
10823
10823
|
continue;
|
|
10824
10824
|
case 10:
|
|
10825
|
-
if (tag !==
|
|
10825
|
+
if (tag !== 82) {
|
|
10826
10826
|
break;
|
|
10827
10827
|
}
|
|
10828
10828
|
|
|
10829
|
-
message.
|
|
10829
|
+
message.phone_number = reader.string();
|
|
10830
10830
|
continue;
|
|
10831
10831
|
case 11:
|
|
10832
|
-
if (tag !==
|
|
10832
|
+
if (tag !== 88) {
|
|
10833
10833
|
break;
|
|
10834
10834
|
}
|
|
10835
10835
|
|
|
10836
|
-
message.
|
|
10836
|
+
message.edge_count = reader.int32();
|
|
10837
10837
|
continue;
|
|
10838
10838
|
case 12:
|
|
10839
|
-
if (tag !==
|
|
10839
|
+
if (tag !== 98) {
|
|
10840
10840
|
break;
|
|
10841
10841
|
}
|
|
10842
10842
|
|
|
10843
|
-
message.
|
|
10843
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10844
10844
|
continue;
|
|
10845
10845
|
case 13:
|
|
10846
10846
|
if (tag !== 106) {
|
|
10847
10847
|
break;
|
|
10848
10848
|
}
|
|
10849
10849
|
|
|
10850
|
-
message.
|
|
10850
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10851
10851
|
continue;
|
|
10852
10852
|
case 14:
|
|
10853
10853
|
if (tag !== 114) {
|
|
10854
10854
|
break;
|
|
10855
10855
|
}
|
|
10856
10856
|
|
|
10857
|
-
message.
|
|
10857
|
+
message.about_me = reader.string();
|
|
10858
10858
|
continue;
|
|
10859
10859
|
case 15:
|
|
10860
10860
|
if (tag !== 122) {
|
|
10861
10861
|
break;
|
|
10862
10862
|
}
|
|
10863
10863
|
|
|
10864
|
-
message.
|
|
10864
|
+
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10865
10865
|
continue;
|
|
10866
10866
|
case 16:
|
|
10867
|
-
if (tag !==
|
|
10867
|
+
if (tag !== 128) {
|
|
10868
10868
|
break;
|
|
10869
10869
|
}
|
|
10870
10870
|
|
|
10871
|
-
message.
|
|
10871
|
+
message.is_mobile = reader.bool();
|
|
10872
10872
|
continue;
|
|
10873
10873
|
case 17:
|
|
10874
|
-
if (tag !==
|
|
10874
|
+
if (tag !== 138) {
|
|
10875
10875
|
break;
|
|
10876
10876
|
}
|
|
10877
10877
|
|
|
10878
|
-
message.
|
|
10878
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10879
10879
|
continue;
|
|
10880
10880
|
case 18:
|
|
10881
10881
|
if (tag !== 146) {
|
|
10882
10882
|
break;
|
|
10883
10883
|
}
|
|
10884
10884
|
|
|
10885
|
-
message.
|
|
10885
|
+
message.mezon_id = reader.string();
|
|
10886
10886
|
continue;
|
|
10887
10887
|
case 19:
|
|
10888
10888
|
if (tag !== 154) {
|
|
10889
10889
|
break;
|
|
10890
10890
|
}
|
|
10891
10891
|
|
|
10892
|
-
message.
|
|
10892
|
+
message.list_nick_names.push(reader.string());
|
|
10893
10893
|
continue;
|
|
10894
10894
|
case 20:
|
|
10895
10895
|
if (tag !== 162) {
|
|
10896
10896
|
break;
|
|
10897
10897
|
}
|
|
10898
10898
|
|
|
10899
|
-
message.
|
|
10899
|
+
message.status = reader.string();
|
|
10900
10900
|
continue;
|
|
10901
10901
|
}
|
|
10902
10902
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -10917,7 +10917,6 @@ export const User = {
|
|
|
10917
10917
|
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
10918
10918
|
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
10919
10919
|
user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
10920
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
10921
10920
|
online: isSet(object.online) ? globalThis.Boolean(object.online) : false,
|
|
10922
10921
|
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
10923
10922
|
edge_count: isSet(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
@@ -10931,6 +10930,7 @@ export const User = {
|
|
|
10931
10930
|
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
10932
10931
|
? object.list_nick_names.map((e: any) => globalThis.String(e))
|
|
10933
10932
|
: [],
|
|
10933
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
10934
10934
|
};
|
|
10935
10935
|
},
|
|
10936
10936
|
|
|
@@ -10960,9 +10960,6 @@ export const User = {
|
|
|
10960
10960
|
if (message.user_status !== "") {
|
|
10961
10961
|
obj.user_status = message.user_status;
|
|
10962
10962
|
}
|
|
10963
|
-
if (message.status !== "") {
|
|
10964
|
-
obj.status = message.status;
|
|
10965
|
-
}
|
|
10966
10963
|
if (message.online !== false) {
|
|
10967
10964
|
obj.online = message.online;
|
|
10968
10965
|
}
|
|
@@ -10996,6 +10993,9 @@ export const User = {
|
|
|
10996
10993
|
if (message.list_nick_names?.length) {
|
|
10997
10994
|
obj.list_nick_names = message.list_nick_names;
|
|
10998
10995
|
}
|
|
10996
|
+
if (message.status !== "") {
|
|
10997
|
+
obj.status = message.status;
|
|
10998
|
+
}
|
|
10999
10999
|
return obj;
|
|
11000
11000
|
},
|
|
11001
11001
|
|
|
@@ -11012,7 +11012,6 @@ export const User = {
|
|
|
11012
11012
|
message.location = object.location ?? "";
|
|
11013
11013
|
message.timezone = object.timezone ?? "";
|
|
11014
11014
|
message.user_status = object.user_status ?? "";
|
|
11015
|
-
message.status = object.status ?? "";
|
|
11016
11015
|
message.online = object.online ?? false;
|
|
11017
11016
|
message.phone_number = object.phone_number ?? "";
|
|
11018
11017
|
message.edge_count = object.edge_count ?? 0;
|
|
@@ -11024,6 +11023,7 @@ export const User = {
|
|
|
11024
11023
|
message.dob = object.dob ?? undefined;
|
|
11025
11024
|
message.mezon_id = object.mezon_id ?? "";
|
|
11026
11025
|
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11026
|
+
message.status = object.status ?? "";
|
|
11027
11027
|
return message;
|
|
11028
11028
|
},
|
|
11029
11029
|
};
|
|
@@ -14177,27 +14177,27 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
14177
14177
|
creator_id: "",
|
|
14178
14178
|
channel_label: "",
|
|
14179
14179
|
channel_private: 0,
|
|
14180
|
+
avatars: [],
|
|
14181
|
+
user_ids: [],
|
|
14180
14182
|
last_sent_message: undefined,
|
|
14181
14183
|
last_seen_message: undefined,
|
|
14184
|
+
onlines: [],
|
|
14182
14185
|
meeting_code: "",
|
|
14183
14186
|
count_mess_unread: 0,
|
|
14184
14187
|
active: 0,
|
|
14185
14188
|
last_pin_message: "",
|
|
14189
|
+
usernames: [],
|
|
14186
14190
|
creator_name: "",
|
|
14187
14191
|
create_time_seconds: 0,
|
|
14188
14192
|
update_time_seconds: 0,
|
|
14193
|
+
display_names: [],
|
|
14194
|
+
channel_avatar: "",
|
|
14189
14195
|
clan_name: "",
|
|
14190
14196
|
app_id: "",
|
|
14191
14197
|
is_mute: false,
|
|
14192
14198
|
age_restricted: 0,
|
|
14193
|
-
channel_avatar: "",
|
|
14194
|
-
e2ee: 0,
|
|
14195
14199
|
topic: "",
|
|
14196
|
-
|
|
14197
|
-
usernames: [],
|
|
14198
|
-
display_names: [],
|
|
14199
|
-
onlines: [],
|
|
14200
|
-
avatars: [],
|
|
14200
|
+
e2ee: 0,
|
|
14201
14201
|
};
|
|
14202
14202
|
}
|
|
14203
14203
|
|
|
@@ -14230,70 +14230,70 @@ export const ChannelDescription = {
|
|
|
14230
14230
|
if (message.channel_private !== 0) {
|
|
14231
14231
|
writer.uint32(72).int32(message.channel_private);
|
|
14232
14232
|
}
|
|
14233
|
+
for (const v of message.avatars) {
|
|
14234
|
+
writer.uint32(82).string(v!);
|
|
14235
|
+
}
|
|
14236
|
+
for (const v of message.user_ids) {
|
|
14237
|
+
writer.uint32(90).string(v!);
|
|
14238
|
+
}
|
|
14233
14239
|
if (message.last_sent_message !== undefined) {
|
|
14234
|
-
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(
|
|
14240
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
|
|
14235
14241
|
}
|
|
14236
14242
|
if (message.last_seen_message !== undefined) {
|
|
14237
|
-
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(
|
|
14243
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
|
|
14238
14244
|
}
|
|
14245
|
+
writer.uint32(114).fork();
|
|
14246
|
+
for (const v of message.onlines) {
|
|
14247
|
+
writer.bool(v);
|
|
14248
|
+
}
|
|
14249
|
+
writer.ldelim();
|
|
14239
14250
|
if (message.meeting_code !== "") {
|
|
14240
|
-
writer.uint32(
|
|
14251
|
+
writer.uint32(122).string(message.meeting_code);
|
|
14241
14252
|
}
|
|
14242
14253
|
if (message.count_mess_unread !== 0) {
|
|
14243
|
-
writer.uint32(
|
|
14254
|
+
writer.uint32(128).int32(message.count_mess_unread);
|
|
14244
14255
|
}
|
|
14245
14256
|
if (message.active !== 0) {
|
|
14246
|
-
writer.uint32(
|
|
14257
|
+
writer.uint32(136).int32(message.active);
|
|
14247
14258
|
}
|
|
14248
14259
|
if (message.last_pin_message !== "") {
|
|
14249
|
-
writer.uint32(
|
|
14260
|
+
writer.uint32(146).string(message.last_pin_message);
|
|
14261
|
+
}
|
|
14262
|
+
for (const v of message.usernames) {
|
|
14263
|
+
writer.uint32(154).string(v!);
|
|
14250
14264
|
}
|
|
14251
14265
|
if (message.creator_name !== "") {
|
|
14252
|
-
writer.uint32(
|
|
14266
|
+
writer.uint32(162).string(message.creator_name);
|
|
14253
14267
|
}
|
|
14254
14268
|
if (message.create_time_seconds !== 0) {
|
|
14255
|
-
writer.uint32(
|
|
14269
|
+
writer.uint32(168).uint32(message.create_time_seconds);
|
|
14256
14270
|
}
|
|
14257
14271
|
if (message.update_time_seconds !== 0) {
|
|
14258
|
-
writer.uint32(
|
|
14272
|
+
writer.uint32(176).uint32(message.update_time_seconds);
|
|
14273
|
+
}
|
|
14274
|
+
for (const v of message.display_names) {
|
|
14275
|
+
writer.uint32(186).string(v!);
|
|
14276
|
+
}
|
|
14277
|
+
if (message.channel_avatar !== "") {
|
|
14278
|
+
writer.uint32(194).string(message.channel_avatar);
|
|
14259
14279
|
}
|
|
14260
14280
|
if (message.clan_name !== "") {
|
|
14261
|
-
writer.uint32(
|
|
14281
|
+
writer.uint32(202).string(message.clan_name);
|
|
14262
14282
|
}
|
|
14263
14283
|
if (message.app_id !== "") {
|
|
14264
|
-
writer.uint32(
|
|
14284
|
+
writer.uint32(210).string(message.app_id);
|
|
14265
14285
|
}
|
|
14266
14286
|
if (message.is_mute !== false) {
|
|
14267
|
-
writer.uint32(
|
|
14287
|
+
writer.uint32(216).bool(message.is_mute);
|
|
14268
14288
|
}
|
|
14269
14289
|
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);
|
|
14290
|
+
writer.uint32(224).int32(message.age_restricted);
|
|
14277
14291
|
}
|
|
14278
14292
|
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!);
|
|
14289
|
-
}
|
|
14290
|
-
writer.uint32(234).fork();
|
|
14291
|
-
for (const v of message.onlines) {
|
|
14292
|
-
writer.bool(v);
|
|
14293
|
+
writer.uint32(234).string(message.topic);
|
|
14293
14294
|
}
|
|
14294
|
-
|
|
14295
|
-
|
|
14296
|
-
writer.uint32(242).string(v!);
|
|
14295
|
+
if (message.e2ee !== 0) {
|
|
14296
|
+
writer.uint32(240).int32(message.e2ee);
|
|
14297
14297
|
}
|
|
14298
14298
|
return writer;
|
|
14299
14299
|
},
|
|
@@ -14373,157 +14373,157 @@ export const ChannelDescription = {
|
|
|
14373
14373
|
break;
|
|
14374
14374
|
}
|
|
14375
14375
|
|
|
14376
|
-
message.
|
|
14376
|
+
message.avatars.push(reader.string());
|
|
14377
14377
|
continue;
|
|
14378
14378
|
case 11:
|
|
14379
14379
|
if (tag !== 90) {
|
|
14380
14380
|
break;
|
|
14381
14381
|
}
|
|
14382
14382
|
|
|
14383
|
-
message.
|
|
14383
|
+
message.user_ids.push(reader.string());
|
|
14384
14384
|
continue;
|
|
14385
14385
|
case 12:
|
|
14386
14386
|
if (tag !== 98) {
|
|
14387
14387
|
break;
|
|
14388
14388
|
}
|
|
14389
14389
|
|
|
14390
|
-
message.
|
|
14390
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
14391
14391
|
continue;
|
|
14392
14392
|
case 13:
|
|
14393
|
-
if (tag !==
|
|
14393
|
+
if (tag !== 106) {
|
|
14394
14394
|
break;
|
|
14395
14395
|
}
|
|
14396
14396
|
|
|
14397
|
-
message.
|
|
14397
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
14398
14398
|
continue;
|
|
14399
14399
|
case 14:
|
|
14400
|
-
if (tag
|
|
14401
|
-
|
|
14400
|
+
if (tag === 112) {
|
|
14401
|
+
message.onlines.push(reader.bool());
|
|
14402
|
+
|
|
14403
|
+
continue;
|
|
14402
14404
|
}
|
|
14403
14405
|
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
+
if (tag === 114) {
|
|
14407
|
+
const end2 = reader.uint32() + reader.pos;
|
|
14408
|
+
while (reader.pos < end2) {
|
|
14409
|
+
message.onlines.push(reader.bool());
|
|
14410
|
+
}
|
|
14411
|
+
|
|
14412
|
+
continue;
|
|
14413
|
+
}
|
|
14414
|
+
|
|
14415
|
+
break;
|
|
14406
14416
|
case 15:
|
|
14407
14417
|
if (tag !== 122) {
|
|
14408
14418
|
break;
|
|
14409
14419
|
}
|
|
14410
14420
|
|
|
14411
|
-
message.
|
|
14421
|
+
message.meeting_code = reader.string();
|
|
14412
14422
|
continue;
|
|
14413
14423
|
case 16:
|
|
14414
|
-
if (tag !==
|
|
14424
|
+
if (tag !== 128) {
|
|
14415
14425
|
break;
|
|
14416
14426
|
}
|
|
14417
14427
|
|
|
14418
|
-
message.
|
|
14428
|
+
message.count_mess_unread = reader.int32();
|
|
14419
14429
|
continue;
|
|
14420
14430
|
case 17:
|
|
14421
14431
|
if (tag !== 136) {
|
|
14422
14432
|
break;
|
|
14423
14433
|
}
|
|
14424
14434
|
|
|
14425
|
-
message.
|
|
14435
|
+
message.active = reader.int32();
|
|
14426
14436
|
continue;
|
|
14427
14437
|
case 18:
|
|
14428
|
-
if (tag !==
|
|
14438
|
+
if (tag !== 146) {
|
|
14429
14439
|
break;
|
|
14430
14440
|
}
|
|
14431
14441
|
|
|
14432
|
-
message.
|
|
14442
|
+
message.last_pin_message = reader.string();
|
|
14433
14443
|
continue;
|
|
14434
14444
|
case 19:
|
|
14435
14445
|
if (tag !== 154) {
|
|
14436
14446
|
break;
|
|
14437
14447
|
}
|
|
14438
14448
|
|
|
14439
|
-
message.
|
|
14449
|
+
message.usernames.push(reader.string());
|
|
14440
14450
|
continue;
|
|
14441
14451
|
case 20:
|
|
14442
14452
|
if (tag !== 162) {
|
|
14443
14453
|
break;
|
|
14444
14454
|
}
|
|
14445
14455
|
|
|
14446
|
-
message.
|
|
14456
|
+
message.creator_name = reader.string();
|
|
14447
14457
|
continue;
|
|
14448
14458
|
case 21:
|
|
14449
14459
|
if (tag !== 168) {
|
|
14450
14460
|
break;
|
|
14451
14461
|
}
|
|
14452
14462
|
|
|
14453
|
-
message.
|
|
14463
|
+
message.create_time_seconds = reader.uint32();
|
|
14454
14464
|
continue;
|
|
14455
14465
|
case 22:
|
|
14456
14466
|
if (tag !== 176) {
|
|
14457
14467
|
break;
|
|
14458
14468
|
}
|
|
14459
14469
|
|
|
14460
|
-
message.
|
|
14470
|
+
message.update_time_seconds = reader.uint32();
|
|
14461
14471
|
continue;
|
|
14462
14472
|
case 23:
|
|
14463
14473
|
if (tag !== 186) {
|
|
14464
14474
|
break;
|
|
14465
14475
|
}
|
|
14466
14476
|
|
|
14467
|
-
message.
|
|
14477
|
+
message.display_names.push(reader.string());
|
|
14468
14478
|
continue;
|
|
14469
14479
|
case 24:
|
|
14470
|
-
if (tag !==
|
|
14480
|
+
if (tag !== 194) {
|
|
14471
14481
|
break;
|
|
14472
14482
|
}
|
|
14473
14483
|
|
|
14474
|
-
message.
|
|
14484
|
+
message.channel_avatar = reader.string();
|
|
14475
14485
|
continue;
|
|
14476
14486
|
case 25:
|
|
14477
14487
|
if (tag !== 202) {
|
|
14478
14488
|
break;
|
|
14479
14489
|
}
|
|
14480
14490
|
|
|
14481
|
-
message.
|
|
14491
|
+
message.clan_name = reader.string();
|
|
14482
14492
|
continue;
|
|
14483
14493
|
case 26:
|
|
14484
14494
|
if (tag !== 210) {
|
|
14485
14495
|
break;
|
|
14486
14496
|
}
|
|
14487
14497
|
|
|
14488
|
-
message.
|
|
14498
|
+
message.app_id = reader.string();
|
|
14489
14499
|
continue;
|
|
14490
14500
|
case 27:
|
|
14491
|
-
if (tag !==
|
|
14501
|
+
if (tag !== 216) {
|
|
14492
14502
|
break;
|
|
14493
14503
|
}
|
|
14494
14504
|
|
|
14495
|
-
message.
|
|
14505
|
+
message.is_mute = reader.bool();
|
|
14496
14506
|
continue;
|
|
14497
14507
|
case 28:
|
|
14498
|
-
if (tag !==
|
|
14508
|
+
if (tag !== 224) {
|
|
14499
14509
|
break;
|
|
14500
14510
|
}
|
|
14501
14511
|
|
|
14502
|
-
message.
|
|
14512
|
+
message.age_restricted = reader.int32();
|
|
14503
14513
|
continue;
|
|
14504
14514
|
case 29:
|
|
14505
|
-
if (tag
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
continue;
|
|
14509
|
-
}
|
|
14510
|
-
|
|
14511
|
-
if (tag === 234) {
|
|
14512
|
-
const end2 = reader.uint32() + reader.pos;
|
|
14513
|
-
while (reader.pos < end2) {
|
|
14514
|
-
message.onlines.push(reader.bool());
|
|
14515
|
-
}
|
|
14516
|
-
|
|
14517
|
-
continue;
|
|
14515
|
+
if (tag !== 234) {
|
|
14516
|
+
break;
|
|
14518
14517
|
}
|
|
14519
14518
|
|
|
14520
|
-
|
|
14519
|
+
message.topic = reader.string();
|
|
14520
|
+
continue;
|
|
14521
14521
|
case 30:
|
|
14522
|
-
if (tag !==
|
|
14522
|
+
if (tag !== 240) {
|
|
14523
14523
|
break;
|
|
14524
14524
|
}
|
|
14525
14525
|
|
|
14526
|
-
message.
|
|
14526
|
+
message.e2ee = reader.int32();
|
|
14527
14527
|
continue;
|
|
14528
14528
|
}
|
|
14529
14529
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -14545,37 +14545,35 @@ export const ChannelDescription = {
|
|
|
14545
14545
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
14546
14546
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
14547
14547
|
channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
14548
|
+
avatars: globalThis.Array.isArray(object?.avatars) ? object.avatars.map((e: any) => globalThis.String(e)) : [],
|
|
14549
|
+
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
14548
14550
|
last_sent_message: isSet(object.last_sent_message)
|
|
14549
14551
|
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
14550
14552
|
: undefined,
|
|
14551
14553
|
last_seen_message: isSet(object.last_seen_message)
|
|
14552
14554
|
? ChannelMessageHeader.fromJSON(object.last_seen_message)
|
|
14553
14555
|
: undefined,
|
|
14556
|
+
onlines: globalThis.Array.isArray(object?.onlines) ? object.onlines.map((e: any) => globalThis.Boolean(e)) : [],
|
|
14554
14557
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
14555
14558
|
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
14556
14559
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
14557
14560
|
last_pin_message: isSet(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
14561
|
+
usernames: globalThis.Array.isArray(object?.usernames)
|
|
14562
|
+
? object.usernames.map((e: any) => globalThis.String(e))
|
|
14563
|
+
: [],
|
|
14558
14564
|
creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
14559
14565
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
14560
14566
|
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
14567
|
+
display_names: globalThis.Array.isArray(object?.display_names)
|
|
14568
|
+
? object.display_names.map((e: any) => globalThis.String(e))
|
|
14569
|
+
: [],
|
|
14570
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
14561
14571
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
14562
14572
|
app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
14563
14573
|
is_mute: isSet(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
14564
14574
|
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
14575
|
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
14568
|
-
|
|
14569
|
-
usernames: globalThis.Array.isArray(object?.usernames)
|
|
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)) : [],
|
|
14576
|
+
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
14579
14577
|
};
|
|
14580
14578
|
},
|
|
14581
14579
|
|
|
@@ -14608,12 +14606,21 @@ export const ChannelDescription = {
|
|
|
14608
14606
|
if (message.channel_private !== 0) {
|
|
14609
14607
|
obj.channel_private = Math.round(message.channel_private);
|
|
14610
14608
|
}
|
|
14609
|
+
if (message.avatars?.length) {
|
|
14610
|
+
obj.avatars = message.avatars;
|
|
14611
|
+
}
|
|
14612
|
+
if (message.user_ids?.length) {
|
|
14613
|
+
obj.user_ids = message.user_ids;
|
|
14614
|
+
}
|
|
14611
14615
|
if (message.last_sent_message !== undefined) {
|
|
14612
14616
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
14613
14617
|
}
|
|
14614
14618
|
if (message.last_seen_message !== undefined) {
|
|
14615
14619
|
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
14616
14620
|
}
|
|
14621
|
+
if (message.onlines?.length) {
|
|
14622
|
+
obj.onlines = message.onlines;
|
|
14623
|
+
}
|
|
14617
14624
|
if (message.meeting_code !== "") {
|
|
14618
14625
|
obj.meeting_code = message.meeting_code;
|
|
14619
14626
|
}
|
|
@@ -14626,6 +14633,9 @@ export const ChannelDescription = {
|
|
|
14626
14633
|
if (message.last_pin_message !== "") {
|
|
14627
14634
|
obj.last_pin_message = message.last_pin_message;
|
|
14628
14635
|
}
|
|
14636
|
+
if (message.usernames?.length) {
|
|
14637
|
+
obj.usernames = message.usernames;
|
|
14638
|
+
}
|
|
14629
14639
|
if (message.creator_name !== "") {
|
|
14630
14640
|
obj.creator_name = message.creator_name;
|
|
14631
14641
|
}
|
|
@@ -14635,6 +14645,12 @@ export const ChannelDescription = {
|
|
|
14635
14645
|
if (message.update_time_seconds !== 0) {
|
|
14636
14646
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
14637
14647
|
}
|
|
14648
|
+
if (message.display_names?.length) {
|
|
14649
|
+
obj.display_names = message.display_names;
|
|
14650
|
+
}
|
|
14651
|
+
if (message.channel_avatar !== "") {
|
|
14652
|
+
obj.channel_avatar = message.channel_avatar;
|
|
14653
|
+
}
|
|
14638
14654
|
if (message.clan_name !== "") {
|
|
14639
14655
|
obj.clan_name = message.clan_name;
|
|
14640
14656
|
}
|
|
@@ -14647,29 +14663,11 @@ export const ChannelDescription = {
|
|
|
14647
14663
|
if (message.age_restricted !== 0) {
|
|
14648
14664
|
obj.age_restricted = Math.round(message.age_restricted);
|
|
14649
14665
|
}
|
|
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
14666
|
if (message.topic !== "") {
|
|
14657
14667
|
obj.topic = message.topic;
|
|
14658
14668
|
}
|
|
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;
|
|
14670
|
-
}
|
|
14671
|
-
if (message.avatars?.length) {
|
|
14672
|
-
obj.avatars = message.avatars;
|
|
14669
|
+
if (message.e2ee !== 0) {
|
|
14670
|
+
obj.e2ee = Math.round(message.e2ee);
|
|
14673
14671
|
}
|
|
14674
14672
|
return obj;
|
|
14675
14673
|
},
|
|
@@ -14688,31 +14686,31 @@ export const ChannelDescription = {
|
|
|
14688
14686
|
message.creator_id = object.creator_id ?? "";
|
|
14689
14687
|
message.channel_label = object.channel_label ?? "";
|
|
14690
14688
|
message.channel_private = object.channel_private ?? 0;
|
|
14689
|
+
message.avatars = object.avatars?.map((e) => e) || [];
|
|
14690
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
14691
14691
|
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
14692
14692
|
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
14693
14693
|
: undefined;
|
|
14694
14694
|
message.last_seen_message = (object.last_seen_message !== undefined && object.last_seen_message !== null)
|
|
14695
14695
|
? ChannelMessageHeader.fromPartial(object.last_seen_message)
|
|
14696
14696
|
: undefined;
|
|
14697
|
+
message.onlines = object.onlines?.map((e) => e) || [];
|
|
14697
14698
|
message.meeting_code = object.meeting_code ?? "";
|
|
14698
14699
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
14699
14700
|
message.active = object.active ?? 0;
|
|
14700
14701
|
message.last_pin_message = object.last_pin_message ?? "";
|
|
14702
|
+
message.usernames = object.usernames?.map((e) => e) || [];
|
|
14701
14703
|
message.creator_name = object.creator_name ?? "";
|
|
14702
14704
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
14703
14705
|
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
14706
|
+
message.display_names = object.display_names?.map((e) => e) || [];
|
|
14707
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
14704
14708
|
message.clan_name = object.clan_name ?? "";
|
|
14705
14709
|
message.app_id = object.app_id ?? "";
|
|
14706
14710
|
message.is_mute = object.is_mute ?? false;
|
|
14707
14711
|
message.age_restricted = object.age_restricted ?? 0;
|
|
14708
|
-
message.channel_avatar = object.channel_avatar ?? "";
|
|
14709
|
-
message.e2ee = object.e2ee ?? 0;
|
|
14710
14712
|
message.topic = object.topic ?? "";
|
|
14711
|
-
message.
|
|
14712
|
-
message.usernames = object.usernames?.map((e) => e) || [];
|
|
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) || [];
|
|
14713
|
+
message.e2ee = object.e2ee ?? 0;
|
|
14716
14714
|
return message;
|
|
14717
14715
|
},
|
|
14718
14716
|
};
|