mezon-js-protobuf 1.8.38 → 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 +177 -143
- package/dist/mezon-js-protobuf/api/api.d.ts +446 -372
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1107 -991
- package/dist/mezon-js-protobuf.cjs.js +202 -172
- package/dist/mezon-js-protobuf.esm.mjs +202 -172
- package/package.json +1 -1
- package/rtapi/realtime.ts +45 -27
package/api/api.ts
CHANGED
|
@@ -1093,7 +1093,7 @@ export interface User {
|
|
|
1093
1093
|
location: string;
|
|
1094
1094
|
/** The timezone set by the user. */
|
|
1095
1095
|
timezone: string;
|
|
1096
|
-
/**
|
|
1096
|
+
/** custom status */
|
|
1097
1097
|
user_status: string;
|
|
1098
1098
|
/** Indicates whether the user is currently online. */
|
|
1099
1099
|
online: boolean;
|
|
@@ -1125,6 +1125,8 @@ export interface User {
|
|
|
1125
1125
|
mezon_id: string;
|
|
1126
1126
|
/** list clan nick name */
|
|
1127
1127
|
list_nick_names: string[];
|
|
1128
|
+
/** online, offline, invisible, idle, do not disturb */
|
|
1129
|
+
status: string;
|
|
1128
1130
|
}
|
|
1129
1131
|
|
|
1130
1132
|
/** A collection of zero or more users. */
|
|
@@ -1497,6 +1499,10 @@ export interface ChannelDescription {
|
|
|
1497
1499
|
channel_label: string;
|
|
1498
1500
|
/** The channel private */
|
|
1499
1501
|
channel_private: number;
|
|
1502
|
+
/** DM avatars */
|
|
1503
|
+
avatars: string[];
|
|
1504
|
+
/** List DM user ids */
|
|
1505
|
+
user_ids: string[];
|
|
1500
1506
|
/** last message id */
|
|
1501
1507
|
last_sent_message:
|
|
1502
1508
|
| ChannelMessageHeader
|
|
@@ -1505,6 +1511,8 @@ export interface ChannelDescription {
|
|
|
1505
1511
|
last_seen_message:
|
|
1506
1512
|
| ChannelMessageHeader
|
|
1507
1513
|
| undefined;
|
|
1514
|
+
/** DM status */
|
|
1515
|
+
onlines: boolean[];
|
|
1508
1516
|
/** meeting code */
|
|
1509
1517
|
meeting_code: string;
|
|
1510
1518
|
/** count message unread */
|
|
@@ -1513,36 +1521,30 @@ export interface ChannelDescription {
|
|
|
1513
1521
|
active: number;
|
|
1514
1522
|
/** last pin message */
|
|
1515
1523
|
last_pin_message: string;
|
|
1524
|
+
/** List DM usernames */
|
|
1525
|
+
usernames: string[];
|
|
1516
1526
|
/** creator name */
|
|
1517
1527
|
creator_name: string;
|
|
1518
1528
|
/** create time ms */
|
|
1519
1529
|
create_time_seconds: number;
|
|
1520
1530
|
/** update time ms */
|
|
1521
1531
|
update_time_seconds: number;
|
|
1532
|
+
/** List DM diplay names */
|
|
1533
|
+
display_names: string[];
|
|
1534
|
+
/** channel avatar */
|
|
1535
|
+
channel_avatar: string;
|
|
1522
1536
|
/** clan_name */
|
|
1523
1537
|
clan_name: string;
|
|
1524
|
-
/** app
|
|
1538
|
+
/** app id */
|
|
1525
1539
|
app_id: string;
|
|
1526
1540
|
/** channel all message */
|
|
1527
1541
|
is_mute: boolean;
|
|
1528
1542
|
/** age restricted */
|
|
1529
1543
|
age_restricted: number;
|
|
1530
|
-
/** channel avatar */
|
|
1531
|
-
channel_avatar: string;
|
|
1532
|
-
/** e2ee */
|
|
1533
|
-
e2ee: number;
|
|
1534
1544
|
/** channel description topic */
|
|
1535
1545
|
topic: string;
|
|
1536
|
-
/**
|
|
1537
|
-
|
|
1538
|
-
/** List DM usernames */
|
|
1539
|
-
usernames: string[];
|
|
1540
|
-
/** List DM diplay names */
|
|
1541
|
-
display_names: string[];
|
|
1542
|
-
/** DM status */
|
|
1543
|
-
onlines: boolean[];
|
|
1544
|
-
/** DM avatars */
|
|
1545
|
-
avatars: string[];
|
|
1546
|
+
/** e2ee */
|
|
1547
|
+
e2ee: number;
|
|
1546
1548
|
}
|
|
1547
1549
|
|
|
1548
1550
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -1664,6 +1666,8 @@ export interface UpdateChannelDescRequest {
|
|
|
1664
1666
|
age_restricted: number;
|
|
1665
1667
|
/** */
|
|
1666
1668
|
e2ee: number;
|
|
1669
|
+
/** channel avatar */
|
|
1670
|
+
channel_avatar: string;
|
|
1667
1671
|
}
|
|
1668
1672
|
|
|
1669
1673
|
/** Update fields in a given channel. */
|
|
@@ -10678,6 +10682,7 @@ function createBaseUser(): User {
|
|
|
10678
10682
|
dob: undefined,
|
|
10679
10683
|
mezon_id: "",
|
|
10680
10684
|
list_nick_names: [],
|
|
10685
|
+
status: "",
|
|
10681
10686
|
};
|
|
10682
10687
|
}
|
|
10683
10688
|
|
|
@@ -10740,6 +10745,9 @@ export const User = {
|
|
|
10740
10745
|
for (const v of message.list_nick_names) {
|
|
10741
10746
|
writer.uint32(154).string(v!);
|
|
10742
10747
|
}
|
|
10748
|
+
if (message.status !== "") {
|
|
10749
|
+
writer.uint32(162).string(message.status);
|
|
10750
|
+
}
|
|
10743
10751
|
return writer;
|
|
10744
10752
|
},
|
|
10745
10753
|
|
|
@@ -10883,6 +10891,13 @@ export const User = {
|
|
|
10883
10891
|
|
|
10884
10892
|
message.list_nick_names.push(reader.string());
|
|
10885
10893
|
continue;
|
|
10894
|
+
case 20:
|
|
10895
|
+
if (tag !== 162) {
|
|
10896
|
+
break;
|
|
10897
|
+
}
|
|
10898
|
+
|
|
10899
|
+
message.status = reader.string();
|
|
10900
|
+
continue;
|
|
10886
10901
|
}
|
|
10887
10902
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10888
10903
|
break;
|
|
@@ -10915,6 +10930,7 @@ export const User = {
|
|
|
10915
10930
|
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
10916
10931
|
? object.list_nick_names.map((e: any) => globalThis.String(e))
|
|
10917
10932
|
: [],
|
|
10933
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
10918
10934
|
};
|
|
10919
10935
|
},
|
|
10920
10936
|
|
|
@@ -10977,6 +10993,9 @@ export const User = {
|
|
|
10977
10993
|
if (message.list_nick_names?.length) {
|
|
10978
10994
|
obj.list_nick_names = message.list_nick_names;
|
|
10979
10995
|
}
|
|
10996
|
+
if (message.status !== "") {
|
|
10997
|
+
obj.status = message.status;
|
|
10998
|
+
}
|
|
10980
10999
|
return obj;
|
|
10981
11000
|
},
|
|
10982
11001
|
|
|
@@ -11004,6 +11023,7 @@ export const User = {
|
|
|
11004
11023
|
message.dob = object.dob ?? undefined;
|
|
11005
11024
|
message.mezon_id = object.mezon_id ?? "";
|
|
11006
11025
|
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
11026
|
+
message.status = object.status ?? "";
|
|
11007
11027
|
return message;
|
|
11008
11028
|
},
|
|
11009
11029
|
};
|
|
@@ -14157,27 +14177,27 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
14157
14177
|
creator_id: "",
|
|
14158
14178
|
channel_label: "",
|
|
14159
14179
|
channel_private: 0,
|
|
14180
|
+
avatars: [],
|
|
14181
|
+
user_ids: [],
|
|
14160
14182
|
last_sent_message: undefined,
|
|
14161
14183
|
last_seen_message: undefined,
|
|
14184
|
+
onlines: [],
|
|
14162
14185
|
meeting_code: "",
|
|
14163
14186
|
count_mess_unread: 0,
|
|
14164
14187
|
active: 0,
|
|
14165
14188
|
last_pin_message: "",
|
|
14189
|
+
usernames: [],
|
|
14166
14190
|
creator_name: "",
|
|
14167
14191
|
create_time_seconds: 0,
|
|
14168
14192
|
update_time_seconds: 0,
|
|
14193
|
+
display_names: [],
|
|
14194
|
+
channel_avatar: "",
|
|
14169
14195
|
clan_name: "",
|
|
14170
14196
|
app_id: "",
|
|
14171
14197
|
is_mute: false,
|
|
14172
14198
|
age_restricted: 0,
|
|
14173
|
-
channel_avatar: "",
|
|
14174
|
-
e2ee: 0,
|
|
14175
14199
|
topic: "",
|
|
14176
|
-
|
|
14177
|
-
usernames: [],
|
|
14178
|
-
display_names: [],
|
|
14179
|
-
onlines: [],
|
|
14180
|
-
avatars: [],
|
|
14200
|
+
e2ee: 0,
|
|
14181
14201
|
};
|
|
14182
14202
|
}
|
|
14183
14203
|
|
|
@@ -14210,70 +14230,70 @@ export const ChannelDescription = {
|
|
|
14210
14230
|
if (message.channel_private !== 0) {
|
|
14211
14231
|
writer.uint32(72).int32(message.channel_private);
|
|
14212
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
|
+
}
|
|
14213
14239
|
if (message.last_sent_message !== undefined) {
|
|
14214
|
-
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(
|
|
14240
|
+
ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
|
|
14215
14241
|
}
|
|
14216
14242
|
if (message.last_seen_message !== undefined) {
|
|
14217
|
-
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(
|
|
14243
|
+
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
|
|
14244
|
+
}
|
|
14245
|
+
writer.uint32(114).fork();
|
|
14246
|
+
for (const v of message.onlines) {
|
|
14247
|
+
writer.bool(v);
|
|
14218
14248
|
}
|
|
14249
|
+
writer.ldelim();
|
|
14219
14250
|
if (message.meeting_code !== "") {
|
|
14220
|
-
writer.uint32(
|
|
14251
|
+
writer.uint32(122).string(message.meeting_code);
|
|
14221
14252
|
}
|
|
14222
14253
|
if (message.count_mess_unread !== 0) {
|
|
14223
|
-
writer.uint32(
|
|
14254
|
+
writer.uint32(128).int32(message.count_mess_unread);
|
|
14224
14255
|
}
|
|
14225
14256
|
if (message.active !== 0) {
|
|
14226
|
-
writer.uint32(
|
|
14257
|
+
writer.uint32(136).int32(message.active);
|
|
14227
14258
|
}
|
|
14228
14259
|
if (message.last_pin_message !== "") {
|
|
14229
|
-
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!);
|
|
14230
14264
|
}
|
|
14231
14265
|
if (message.creator_name !== "") {
|
|
14232
|
-
writer.uint32(
|
|
14266
|
+
writer.uint32(162).string(message.creator_name);
|
|
14233
14267
|
}
|
|
14234
14268
|
if (message.create_time_seconds !== 0) {
|
|
14235
|
-
writer.uint32(
|
|
14269
|
+
writer.uint32(168).uint32(message.create_time_seconds);
|
|
14236
14270
|
}
|
|
14237
14271
|
if (message.update_time_seconds !== 0) {
|
|
14238
|
-
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);
|
|
14239
14279
|
}
|
|
14240
14280
|
if (message.clan_name !== "") {
|
|
14241
|
-
writer.uint32(
|
|
14281
|
+
writer.uint32(202).string(message.clan_name);
|
|
14242
14282
|
}
|
|
14243
14283
|
if (message.app_id !== "") {
|
|
14244
|
-
writer.uint32(
|
|
14284
|
+
writer.uint32(210).string(message.app_id);
|
|
14245
14285
|
}
|
|
14246
14286
|
if (message.is_mute !== false) {
|
|
14247
|
-
writer.uint32(
|
|
14287
|
+
writer.uint32(216).bool(message.is_mute);
|
|
14248
14288
|
}
|
|
14249
14289
|
if (message.age_restricted !== 0) {
|
|
14250
|
-
writer.uint32(
|
|
14251
|
-
}
|
|
14252
|
-
if (message.channel_avatar !== "") {
|
|
14253
|
-
writer.uint32(186).string(message.channel_avatar);
|
|
14254
|
-
}
|
|
14255
|
-
if (message.e2ee !== 0) {
|
|
14256
|
-
writer.uint32(192).int32(message.e2ee);
|
|
14290
|
+
writer.uint32(224).int32(message.age_restricted);
|
|
14257
14291
|
}
|
|
14258
14292
|
if (message.topic !== "") {
|
|
14259
|
-
writer.uint32(
|
|
14293
|
+
writer.uint32(234).string(message.topic);
|
|
14260
14294
|
}
|
|
14261
|
-
|
|
14262
|
-
writer.uint32(
|
|
14263
|
-
}
|
|
14264
|
-
for (const v of message.usernames) {
|
|
14265
|
-
writer.uint32(218).string(v!);
|
|
14266
|
-
}
|
|
14267
|
-
for (const v of message.display_names) {
|
|
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!);
|
|
14295
|
+
if (message.e2ee !== 0) {
|
|
14296
|
+
writer.uint32(240).int32(message.e2ee);
|
|
14277
14297
|
}
|
|
14278
14298
|
return writer;
|
|
14279
14299
|
},
|
|
@@ -14353,157 +14373,157 @@ export const ChannelDescription = {
|
|
|
14353
14373
|
break;
|
|
14354
14374
|
}
|
|
14355
14375
|
|
|
14356
|
-
message.
|
|
14376
|
+
message.avatars.push(reader.string());
|
|
14357
14377
|
continue;
|
|
14358
14378
|
case 11:
|
|
14359
14379
|
if (tag !== 90) {
|
|
14360
14380
|
break;
|
|
14361
14381
|
}
|
|
14362
14382
|
|
|
14363
|
-
message.
|
|
14383
|
+
message.user_ids.push(reader.string());
|
|
14364
14384
|
continue;
|
|
14365
14385
|
case 12:
|
|
14366
14386
|
if (tag !== 98) {
|
|
14367
14387
|
break;
|
|
14368
14388
|
}
|
|
14369
14389
|
|
|
14370
|
-
message.
|
|
14390
|
+
message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
14371
14391
|
continue;
|
|
14372
14392
|
case 13:
|
|
14373
|
-
if (tag !==
|
|
14393
|
+
if (tag !== 106) {
|
|
14374
14394
|
break;
|
|
14375
14395
|
}
|
|
14376
14396
|
|
|
14377
|
-
message.
|
|
14397
|
+
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
14378
14398
|
continue;
|
|
14379
14399
|
case 14:
|
|
14380
|
-
if (tag
|
|
14381
|
-
|
|
14400
|
+
if (tag === 112) {
|
|
14401
|
+
message.onlines.push(reader.bool());
|
|
14402
|
+
|
|
14403
|
+
continue;
|
|
14382
14404
|
}
|
|
14383
14405
|
|
|
14384
|
-
|
|
14385
|
-
|
|
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;
|
|
14386
14416
|
case 15:
|
|
14387
14417
|
if (tag !== 122) {
|
|
14388
14418
|
break;
|
|
14389
14419
|
}
|
|
14390
14420
|
|
|
14391
|
-
message.
|
|
14421
|
+
message.meeting_code = reader.string();
|
|
14392
14422
|
continue;
|
|
14393
14423
|
case 16:
|
|
14394
|
-
if (tag !==
|
|
14424
|
+
if (tag !== 128) {
|
|
14395
14425
|
break;
|
|
14396
14426
|
}
|
|
14397
14427
|
|
|
14398
|
-
message.
|
|
14428
|
+
message.count_mess_unread = reader.int32();
|
|
14399
14429
|
continue;
|
|
14400
14430
|
case 17:
|
|
14401
14431
|
if (tag !== 136) {
|
|
14402
14432
|
break;
|
|
14403
14433
|
}
|
|
14404
14434
|
|
|
14405
|
-
message.
|
|
14435
|
+
message.active = reader.int32();
|
|
14406
14436
|
continue;
|
|
14407
14437
|
case 18:
|
|
14408
|
-
if (tag !==
|
|
14438
|
+
if (tag !== 146) {
|
|
14409
14439
|
break;
|
|
14410
14440
|
}
|
|
14411
14441
|
|
|
14412
|
-
message.
|
|
14442
|
+
message.last_pin_message = reader.string();
|
|
14413
14443
|
continue;
|
|
14414
14444
|
case 19:
|
|
14415
14445
|
if (tag !== 154) {
|
|
14416
14446
|
break;
|
|
14417
14447
|
}
|
|
14418
14448
|
|
|
14419
|
-
message.
|
|
14449
|
+
message.usernames.push(reader.string());
|
|
14420
14450
|
continue;
|
|
14421
14451
|
case 20:
|
|
14422
14452
|
if (tag !== 162) {
|
|
14423
14453
|
break;
|
|
14424
14454
|
}
|
|
14425
14455
|
|
|
14426
|
-
message.
|
|
14456
|
+
message.creator_name = reader.string();
|
|
14427
14457
|
continue;
|
|
14428
14458
|
case 21:
|
|
14429
14459
|
if (tag !== 168) {
|
|
14430
14460
|
break;
|
|
14431
14461
|
}
|
|
14432
14462
|
|
|
14433
|
-
message.
|
|
14463
|
+
message.create_time_seconds = reader.uint32();
|
|
14434
14464
|
continue;
|
|
14435
14465
|
case 22:
|
|
14436
14466
|
if (tag !== 176) {
|
|
14437
14467
|
break;
|
|
14438
14468
|
}
|
|
14439
14469
|
|
|
14440
|
-
message.
|
|
14470
|
+
message.update_time_seconds = reader.uint32();
|
|
14441
14471
|
continue;
|
|
14442
14472
|
case 23:
|
|
14443
14473
|
if (tag !== 186) {
|
|
14444
14474
|
break;
|
|
14445
14475
|
}
|
|
14446
14476
|
|
|
14447
|
-
message.
|
|
14477
|
+
message.display_names.push(reader.string());
|
|
14448
14478
|
continue;
|
|
14449
14479
|
case 24:
|
|
14450
|
-
if (tag !==
|
|
14480
|
+
if (tag !== 194) {
|
|
14451
14481
|
break;
|
|
14452
14482
|
}
|
|
14453
14483
|
|
|
14454
|
-
message.
|
|
14484
|
+
message.channel_avatar = reader.string();
|
|
14455
14485
|
continue;
|
|
14456
14486
|
case 25:
|
|
14457
14487
|
if (tag !== 202) {
|
|
14458
14488
|
break;
|
|
14459
14489
|
}
|
|
14460
14490
|
|
|
14461
|
-
message.
|
|
14491
|
+
message.clan_name = reader.string();
|
|
14462
14492
|
continue;
|
|
14463
14493
|
case 26:
|
|
14464
14494
|
if (tag !== 210) {
|
|
14465
14495
|
break;
|
|
14466
14496
|
}
|
|
14467
14497
|
|
|
14468
|
-
message.
|
|
14498
|
+
message.app_id = reader.string();
|
|
14469
14499
|
continue;
|
|
14470
14500
|
case 27:
|
|
14471
|
-
if (tag !==
|
|
14501
|
+
if (tag !== 216) {
|
|
14472
14502
|
break;
|
|
14473
14503
|
}
|
|
14474
14504
|
|
|
14475
|
-
message.
|
|
14505
|
+
message.is_mute = reader.bool();
|
|
14476
14506
|
continue;
|
|
14477
14507
|
case 28:
|
|
14478
|
-
if (tag !==
|
|
14508
|
+
if (tag !== 224) {
|
|
14479
14509
|
break;
|
|
14480
14510
|
}
|
|
14481
14511
|
|
|
14482
|
-
message.
|
|
14512
|
+
message.age_restricted = reader.int32();
|
|
14483
14513
|
continue;
|
|
14484
14514
|
case 29:
|
|
14485
|
-
if (tag
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
continue;
|
|
14489
|
-
}
|
|
14490
|
-
|
|
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;
|
|
14515
|
+
if (tag !== 234) {
|
|
14516
|
+
break;
|
|
14498
14517
|
}
|
|
14499
14518
|
|
|
14500
|
-
|
|
14519
|
+
message.topic = reader.string();
|
|
14520
|
+
continue;
|
|
14501
14521
|
case 30:
|
|
14502
|
-
if (tag !==
|
|
14522
|
+
if (tag !== 240) {
|
|
14503
14523
|
break;
|
|
14504
14524
|
}
|
|
14505
14525
|
|
|
14506
|
-
message.
|
|
14526
|
+
message.e2ee = reader.int32();
|
|
14507
14527
|
continue;
|
|
14508
14528
|
}
|
|
14509
14529
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -14525,37 +14545,35 @@ export const ChannelDescription = {
|
|
|
14525
14545
|
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
|
|
14526
14546
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
14527
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)) : [],
|
|
14528
14550
|
last_sent_message: isSet(object.last_sent_message)
|
|
14529
14551
|
? ChannelMessageHeader.fromJSON(object.last_sent_message)
|
|
14530
14552
|
: undefined,
|
|
14531
14553
|
last_seen_message: isSet(object.last_seen_message)
|
|
14532
14554
|
? ChannelMessageHeader.fromJSON(object.last_seen_message)
|
|
14533
14555
|
: undefined,
|
|
14556
|
+
onlines: globalThis.Array.isArray(object?.onlines) ? object.onlines.map((e: any) => globalThis.Boolean(e)) : [],
|
|
14534
14557
|
meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
14535
14558
|
count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
14536
14559
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
14537
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
|
+
: [],
|
|
14538
14564
|
creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
14539
14565
|
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
14540
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) : "",
|
|
14541
14571
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
14542
14572
|
app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
14543
14573
|
is_mute: isSet(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
14544
14574
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
14545
|
-
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
14546
|
-
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
14547
14575
|
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
14548
|
-
|
|
14549
|
-
usernames: globalThis.Array.isArray(object?.usernames)
|
|
14550
|
-
? object.usernames.map((e: any) => globalThis.String(e))
|
|
14551
|
-
: [],
|
|
14552
|
-
display_names: globalThis.Array.isArray(object?.display_names)
|
|
14553
|
-
? object.display_names.map((e: any) => globalThis.String(e))
|
|
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)) : [],
|
|
14576
|
+
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
14559
14577
|
};
|
|
14560
14578
|
},
|
|
14561
14579
|
|
|
@@ -14588,12 +14606,21 @@ export const ChannelDescription = {
|
|
|
14588
14606
|
if (message.channel_private !== 0) {
|
|
14589
14607
|
obj.channel_private = Math.round(message.channel_private);
|
|
14590
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
|
+
}
|
|
14591
14615
|
if (message.last_sent_message !== undefined) {
|
|
14592
14616
|
obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
|
|
14593
14617
|
}
|
|
14594
14618
|
if (message.last_seen_message !== undefined) {
|
|
14595
14619
|
obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
|
|
14596
14620
|
}
|
|
14621
|
+
if (message.onlines?.length) {
|
|
14622
|
+
obj.onlines = message.onlines;
|
|
14623
|
+
}
|
|
14597
14624
|
if (message.meeting_code !== "") {
|
|
14598
14625
|
obj.meeting_code = message.meeting_code;
|
|
14599
14626
|
}
|
|
@@ -14606,6 +14633,9 @@ export const ChannelDescription = {
|
|
|
14606
14633
|
if (message.last_pin_message !== "") {
|
|
14607
14634
|
obj.last_pin_message = message.last_pin_message;
|
|
14608
14635
|
}
|
|
14636
|
+
if (message.usernames?.length) {
|
|
14637
|
+
obj.usernames = message.usernames;
|
|
14638
|
+
}
|
|
14609
14639
|
if (message.creator_name !== "") {
|
|
14610
14640
|
obj.creator_name = message.creator_name;
|
|
14611
14641
|
}
|
|
@@ -14615,6 +14645,12 @@ export const ChannelDescription = {
|
|
|
14615
14645
|
if (message.update_time_seconds !== 0) {
|
|
14616
14646
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
14617
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
|
+
}
|
|
14618
14654
|
if (message.clan_name !== "") {
|
|
14619
14655
|
obj.clan_name = message.clan_name;
|
|
14620
14656
|
}
|
|
@@ -14627,29 +14663,11 @@ export const ChannelDescription = {
|
|
|
14627
14663
|
if (message.age_restricted !== 0) {
|
|
14628
14664
|
obj.age_restricted = Math.round(message.age_restricted);
|
|
14629
14665
|
}
|
|
14630
|
-
if (message.channel_avatar !== "") {
|
|
14631
|
-
obj.channel_avatar = message.channel_avatar;
|
|
14632
|
-
}
|
|
14633
|
-
if (message.e2ee !== 0) {
|
|
14634
|
-
obj.e2ee = Math.round(message.e2ee);
|
|
14635
|
-
}
|
|
14636
14666
|
if (message.topic !== "") {
|
|
14637
14667
|
obj.topic = message.topic;
|
|
14638
14668
|
}
|
|
14639
|
-
if (message.
|
|
14640
|
-
obj.
|
|
14641
|
-
}
|
|
14642
|
-
if (message.usernames?.length) {
|
|
14643
|
-
obj.usernames = message.usernames;
|
|
14644
|
-
}
|
|
14645
|
-
if (message.display_names?.length) {
|
|
14646
|
-
obj.display_names = message.display_names;
|
|
14647
|
-
}
|
|
14648
|
-
if (message.onlines?.length) {
|
|
14649
|
-
obj.onlines = message.onlines;
|
|
14650
|
-
}
|
|
14651
|
-
if (message.avatars?.length) {
|
|
14652
|
-
obj.avatars = message.avatars;
|
|
14669
|
+
if (message.e2ee !== 0) {
|
|
14670
|
+
obj.e2ee = Math.round(message.e2ee);
|
|
14653
14671
|
}
|
|
14654
14672
|
return obj;
|
|
14655
14673
|
},
|
|
@@ -14668,31 +14686,31 @@ export const ChannelDescription = {
|
|
|
14668
14686
|
message.creator_id = object.creator_id ?? "";
|
|
14669
14687
|
message.channel_label = object.channel_label ?? "";
|
|
14670
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) || [];
|
|
14671
14691
|
message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
|
|
14672
14692
|
? ChannelMessageHeader.fromPartial(object.last_sent_message)
|
|
14673
14693
|
: undefined;
|
|
14674
14694
|
message.last_seen_message = (object.last_seen_message !== undefined && object.last_seen_message !== null)
|
|
14675
14695
|
? ChannelMessageHeader.fromPartial(object.last_seen_message)
|
|
14676
14696
|
: undefined;
|
|
14697
|
+
message.onlines = object.onlines?.map((e) => e) || [];
|
|
14677
14698
|
message.meeting_code = object.meeting_code ?? "";
|
|
14678
14699
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
14679
14700
|
message.active = object.active ?? 0;
|
|
14680
14701
|
message.last_pin_message = object.last_pin_message ?? "";
|
|
14702
|
+
message.usernames = object.usernames?.map((e) => e) || [];
|
|
14681
14703
|
message.creator_name = object.creator_name ?? "";
|
|
14682
14704
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
14683
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 ?? "";
|
|
14684
14708
|
message.clan_name = object.clan_name ?? "";
|
|
14685
14709
|
message.app_id = object.app_id ?? "";
|
|
14686
14710
|
message.is_mute = object.is_mute ?? false;
|
|
14687
14711
|
message.age_restricted = object.age_restricted ?? 0;
|
|
14688
|
-
message.channel_avatar = object.channel_avatar ?? "";
|
|
14689
|
-
message.e2ee = object.e2ee ?? 0;
|
|
14690
14712
|
message.topic = object.topic ?? "";
|
|
14691
|
-
message.
|
|
14692
|
-
message.usernames = object.usernames?.map((e) => e) || [];
|
|
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) || [];
|
|
14713
|
+
message.e2ee = object.e2ee ?? 0;
|
|
14696
14714
|
return message;
|
|
14697
14715
|
},
|
|
14698
14716
|
};
|
|
@@ -15475,6 +15493,7 @@ function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
|
|
|
15475
15493
|
topic: "",
|
|
15476
15494
|
age_restricted: 0,
|
|
15477
15495
|
e2ee: 0,
|
|
15496
|
+
channel_avatar: "",
|
|
15478
15497
|
};
|
|
15479
15498
|
}
|
|
15480
15499
|
|
|
@@ -15504,6 +15523,9 @@ export const UpdateChannelDescRequest = {
|
|
|
15504
15523
|
if (message.e2ee !== 0) {
|
|
15505
15524
|
writer.uint32(64).int32(message.e2ee);
|
|
15506
15525
|
}
|
|
15526
|
+
if (message.channel_avatar !== "") {
|
|
15527
|
+
writer.uint32(74).string(message.channel_avatar);
|
|
15528
|
+
}
|
|
15507
15529
|
return writer;
|
|
15508
15530
|
},
|
|
15509
15531
|
|
|
@@ -15570,6 +15592,13 @@ export const UpdateChannelDescRequest = {
|
|
|
15570
15592
|
|
|
15571
15593
|
message.e2ee = reader.int32();
|
|
15572
15594
|
continue;
|
|
15595
|
+
case 9:
|
|
15596
|
+
if (tag !== 74) {
|
|
15597
|
+
break;
|
|
15598
|
+
}
|
|
15599
|
+
|
|
15600
|
+
message.channel_avatar = reader.string();
|
|
15601
|
+
continue;
|
|
15573
15602
|
}
|
|
15574
15603
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15575
15604
|
break;
|
|
@@ -15589,6 +15618,7 @@ export const UpdateChannelDescRequest = {
|
|
|
15589
15618
|
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
15590
15619
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
15591
15620
|
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
15621
|
+
channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
|
|
15592
15622
|
};
|
|
15593
15623
|
},
|
|
15594
15624
|
|
|
@@ -15618,6 +15648,9 @@ export const UpdateChannelDescRequest = {
|
|
|
15618
15648
|
if (message.e2ee !== 0) {
|
|
15619
15649
|
obj.e2ee = Math.round(message.e2ee);
|
|
15620
15650
|
}
|
|
15651
|
+
if (message.channel_avatar !== "") {
|
|
15652
|
+
obj.channel_avatar = message.channel_avatar;
|
|
15653
|
+
}
|
|
15621
15654
|
return obj;
|
|
15622
15655
|
},
|
|
15623
15656
|
|
|
@@ -15634,6 +15667,7 @@ export const UpdateChannelDescRequest = {
|
|
|
15634
15667
|
message.topic = object.topic ?? "";
|
|
15635
15668
|
message.age_restricted = object.age_restricted ?? 0;
|
|
15636
15669
|
message.e2ee = object.e2ee ?? 0;
|
|
15670
|
+
message.channel_avatar = object.channel_avatar ?? "";
|
|
15637
15671
|
return message;
|
|
15638
15672
|
},
|
|
15639
15673
|
};
|