mezon-js-protobuf 1.7.3 → 1.7.4
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 +38149 -38046
- package/dist/mezon-js-protobuf/api/api.d.ts +205 -135
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +372 -332
- package/dist/mezon-js-protobuf.cjs.js +28 -13
- package/dist/mezon-js-protobuf.esm.mjs +28 -13
- package/package.json +1 -1
- package/rtapi/realtime.ts +11512 -11512
|
@@ -4201,7 +4201,7 @@ function createBaseChannelDescription() {
|
|
|
4201
4201
|
count_mess_unread: 0,
|
|
4202
4202
|
active: 0,
|
|
4203
4203
|
last_pin_message: "",
|
|
4204
|
-
usernames:
|
|
4204
|
+
usernames: [],
|
|
4205
4205
|
creator_name: "",
|
|
4206
4206
|
create_time_seconds: 0,
|
|
4207
4207
|
update_time_seconds: 0,
|
|
@@ -4212,7 +4212,8 @@ function createBaseChannelDescription() {
|
|
|
4212
4212
|
is_mute: false,
|
|
4213
4213
|
age_restricted: 0,
|
|
4214
4214
|
topic: "",
|
|
4215
|
-
e2ee: 0
|
|
4215
|
+
e2ee: 0,
|
|
4216
|
+
display_names: []
|
|
4216
4217
|
};
|
|
4217
4218
|
}
|
|
4218
4219
|
var ChannelDescription = {
|
|
@@ -4273,8 +4274,8 @@ var ChannelDescription = {
|
|
|
4273
4274
|
if (message.last_pin_message !== "") {
|
|
4274
4275
|
writer.uint32(146).string(message.last_pin_message);
|
|
4275
4276
|
}
|
|
4276
|
-
|
|
4277
|
-
writer.uint32(154).string(
|
|
4277
|
+
for (const v of message.usernames) {
|
|
4278
|
+
writer.uint32(154).string(v);
|
|
4278
4279
|
}
|
|
4279
4280
|
if (message.creator_name !== "") {
|
|
4280
4281
|
writer.uint32(162).string(message.creator_name);
|
|
@@ -4309,6 +4310,9 @@ var ChannelDescription = {
|
|
|
4309
4310
|
if (message.e2ee !== 0) {
|
|
4310
4311
|
writer.uint32(240).int32(message.e2ee);
|
|
4311
4312
|
}
|
|
4313
|
+
for (const v of message.display_names) {
|
|
4314
|
+
writer.uint32(250).string(v);
|
|
4315
|
+
}
|
|
4312
4316
|
return writer;
|
|
4313
4317
|
},
|
|
4314
4318
|
decode(input, length) {
|
|
@@ -4437,7 +4441,7 @@ var ChannelDescription = {
|
|
|
4437
4441
|
if (tag !== 154) {
|
|
4438
4442
|
break;
|
|
4439
4443
|
}
|
|
4440
|
-
message.usernames
|
|
4444
|
+
message.usernames.push(reader.string());
|
|
4441
4445
|
continue;
|
|
4442
4446
|
case 20:
|
|
4443
4447
|
if (tag !== 162) {
|
|
@@ -4505,6 +4509,12 @@ var ChannelDescription = {
|
|
|
4505
4509
|
}
|
|
4506
4510
|
message.e2ee = reader.int32();
|
|
4507
4511
|
continue;
|
|
4512
|
+
case 31:
|
|
4513
|
+
if (tag !== 250) {
|
|
4514
|
+
break;
|
|
4515
|
+
}
|
|
4516
|
+
message.display_names.push(reader.string());
|
|
4517
|
+
continue;
|
|
4508
4518
|
}
|
|
4509
4519
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4510
4520
|
break;
|
|
@@ -4533,7 +4543,7 @@ var ChannelDescription = {
|
|
|
4533
4543
|
count_mess_unread: isSet3(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
4534
4544
|
active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
|
|
4535
4545
|
last_pin_message: isSet3(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
4536
|
-
usernames:
|
|
4546
|
+
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
4537
4547
|
creator_name: isSet3(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
4538
4548
|
create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
4539
4549
|
update_time_seconds: isSet3(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
@@ -4544,11 +4554,12 @@ var ChannelDescription = {
|
|
|
4544
4554
|
is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
4545
4555
|
age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
4546
4556
|
topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
|
|
4547
|
-
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0
|
|
4557
|
+
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
4558
|
+
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : []
|
|
4548
4559
|
};
|
|
4549
4560
|
},
|
|
4550
4561
|
toJSON(message) {
|
|
4551
|
-
var _a, _b, _c, _d, _e;
|
|
4562
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
4552
4563
|
const obj = {};
|
|
4553
4564
|
if (message.clan_id !== "") {
|
|
4554
4565
|
obj.clan_id = message.clan_id;
|
|
@@ -4604,7 +4615,7 @@ var ChannelDescription = {
|
|
|
4604
4615
|
if (message.last_pin_message !== "") {
|
|
4605
4616
|
obj.last_pin_message = message.last_pin_message;
|
|
4606
4617
|
}
|
|
4607
|
-
if (message.usernames
|
|
4618
|
+
if ((_d = message.usernames) == null ? void 0 : _d.length) {
|
|
4608
4619
|
obj.usernames = message.usernames;
|
|
4609
4620
|
}
|
|
4610
4621
|
if (message.creator_name !== "") {
|
|
@@ -4616,10 +4627,10 @@ var ChannelDescription = {
|
|
|
4616
4627
|
if (message.update_time_seconds !== 0) {
|
|
4617
4628
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
4618
4629
|
}
|
|
4619
|
-
if ((
|
|
4630
|
+
if ((_e = message.metadata) == null ? void 0 : _e.length) {
|
|
4620
4631
|
obj.metadata = message.metadata;
|
|
4621
4632
|
}
|
|
4622
|
-
if ((
|
|
4633
|
+
if ((_f = message.about_me) == null ? void 0 : _f.length) {
|
|
4623
4634
|
obj.about_me = message.about_me;
|
|
4624
4635
|
}
|
|
4625
4636
|
if (message.clan_name !== "") {
|
|
@@ -4640,13 +4651,16 @@ var ChannelDescription = {
|
|
|
4640
4651
|
if (message.e2ee !== 0) {
|
|
4641
4652
|
obj.e2ee = Math.round(message.e2ee);
|
|
4642
4653
|
}
|
|
4654
|
+
if ((_g = message.display_names) == null ? void 0 : _g.length) {
|
|
4655
|
+
obj.display_names = message.display_names;
|
|
4656
|
+
}
|
|
4643
4657
|
return obj;
|
|
4644
4658
|
},
|
|
4645
4659
|
create(base) {
|
|
4646
4660
|
return ChannelDescription.fromPartial(base != null ? base : {});
|
|
4647
4661
|
},
|
|
4648
4662
|
fromPartial(object) {
|
|
4649
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
|
|
4663
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C;
|
|
4650
4664
|
const message = createBaseChannelDescription();
|
|
4651
4665
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
4652
4666
|
message.parrent_id = (_b = object.parrent_id) != null ? _b : "";
|
|
@@ -4666,7 +4680,7 @@ var ChannelDescription = {
|
|
|
4666
4680
|
message.count_mess_unread = (_n = object.count_mess_unread) != null ? _n : 0;
|
|
4667
4681
|
message.active = (_o = object.active) != null ? _o : 0;
|
|
4668
4682
|
message.last_pin_message = (_p = object.last_pin_message) != null ? _p : "";
|
|
4669
|
-
message.usernames = (_q = object.usernames)
|
|
4683
|
+
message.usernames = ((_q = object.usernames) == null ? void 0 : _q.map((e) => e)) || [];
|
|
4670
4684
|
message.creator_name = (_r = object.creator_name) != null ? _r : "";
|
|
4671
4685
|
message.create_time_seconds = (_s = object.create_time_seconds) != null ? _s : 0;
|
|
4672
4686
|
message.update_time_seconds = (_t = object.update_time_seconds) != null ? _t : 0;
|
|
@@ -4678,6 +4692,7 @@ var ChannelDescription = {
|
|
|
4678
4692
|
message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
|
|
4679
4693
|
message.topic = (_A = object.topic) != null ? _A : "";
|
|
4680
4694
|
message.e2ee = (_B = object.e2ee) != null ? _B : 0;
|
|
4695
|
+
message.display_names = ((_C = object.display_names) == null ? void 0 : _C.map((e) => e)) || [];
|
|
4681
4696
|
return message;
|
|
4682
4697
|
}
|
|
4683
4698
|
};
|
|
@@ -4188,7 +4188,7 @@ function createBaseChannelDescription() {
|
|
|
4188
4188
|
count_mess_unread: 0,
|
|
4189
4189
|
active: 0,
|
|
4190
4190
|
last_pin_message: "",
|
|
4191
|
-
usernames:
|
|
4191
|
+
usernames: [],
|
|
4192
4192
|
creator_name: "",
|
|
4193
4193
|
create_time_seconds: 0,
|
|
4194
4194
|
update_time_seconds: 0,
|
|
@@ -4199,7 +4199,8 @@ function createBaseChannelDescription() {
|
|
|
4199
4199
|
is_mute: false,
|
|
4200
4200
|
age_restricted: 0,
|
|
4201
4201
|
topic: "",
|
|
4202
|
-
e2ee: 0
|
|
4202
|
+
e2ee: 0,
|
|
4203
|
+
display_names: []
|
|
4203
4204
|
};
|
|
4204
4205
|
}
|
|
4205
4206
|
var ChannelDescription = {
|
|
@@ -4260,8 +4261,8 @@ var ChannelDescription = {
|
|
|
4260
4261
|
if (message.last_pin_message !== "") {
|
|
4261
4262
|
writer.uint32(146).string(message.last_pin_message);
|
|
4262
4263
|
}
|
|
4263
|
-
|
|
4264
|
-
writer.uint32(154).string(
|
|
4264
|
+
for (const v of message.usernames) {
|
|
4265
|
+
writer.uint32(154).string(v);
|
|
4265
4266
|
}
|
|
4266
4267
|
if (message.creator_name !== "") {
|
|
4267
4268
|
writer.uint32(162).string(message.creator_name);
|
|
@@ -4296,6 +4297,9 @@ var ChannelDescription = {
|
|
|
4296
4297
|
if (message.e2ee !== 0) {
|
|
4297
4298
|
writer.uint32(240).int32(message.e2ee);
|
|
4298
4299
|
}
|
|
4300
|
+
for (const v of message.display_names) {
|
|
4301
|
+
writer.uint32(250).string(v);
|
|
4302
|
+
}
|
|
4299
4303
|
return writer;
|
|
4300
4304
|
},
|
|
4301
4305
|
decode(input, length) {
|
|
@@ -4424,7 +4428,7 @@ var ChannelDescription = {
|
|
|
4424
4428
|
if (tag !== 154) {
|
|
4425
4429
|
break;
|
|
4426
4430
|
}
|
|
4427
|
-
message.usernames
|
|
4431
|
+
message.usernames.push(reader.string());
|
|
4428
4432
|
continue;
|
|
4429
4433
|
case 20:
|
|
4430
4434
|
if (tag !== 162) {
|
|
@@ -4492,6 +4496,12 @@ var ChannelDescription = {
|
|
|
4492
4496
|
}
|
|
4493
4497
|
message.e2ee = reader.int32();
|
|
4494
4498
|
continue;
|
|
4499
|
+
case 31:
|
|
4500
|
+
if (tag !== 250) {
|
|
4501
|
+
break;
|
|
4502
|
+
}
|
|
4503
|
+
message.display_names.push(reader.string());
|
|
4504
|
+
continue;
|
|
4495
4505
|
}
|
|
4496
4506
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4497
4507
|
break;
|
|
@@ -4520,7 +4530,7 @@ var ChannelDescription = {
|
|
|
4520
4530
|
count_mess_unread: isSet3(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
|
|
4521
4531
|
active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
|
|
4522
4532
|
last_pin_message: isSet3(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
|
|
4523
|
-
usernames:
|
|
4533
|
+
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
4524
4534
|
creator_name: isSet3(object.creator_name) ? globalThis.String(object.creator_name) : "",
|
|
4525
4535
|
create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
4526
4536
|
update_time_seconds: isSet3(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
@@ -4531,11 +4541,12 @@ var ChannelDescription = {
|
|
|
4531
4541
|
is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
|
|
4532
4542
|
age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
4533
4543
|
topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
|
|
4534
|
-
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0
|
|
4544
|
+
e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
4545
|
+
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : []
|
|
4535
4546
|
};
|
|
4536
4547
|
},
|
|
4537
4548
|
toJSON(message) {
|
|
4538
|
-
var _a, _b, _c, _d, _e;
|
|
4549
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
4539
4550
|
const obj = {};
|
|
4540
4551
|
if (message.clan_id !== "") {
|
|
4541
4552
|
obj.clan_id = message.clan_id;
|
|
@@ -4591,7 +4602,7 @@ var ChannelDescription = {
|
|
|
4591
4602
|
if (message.last_pin_message !== "") {
|
|
4592
4603
|
obj.last_pin_message = message.last_pin_message;
|
|
4593
4604
|
}
|
|
4594
|
-
if (message.usernames
|
|
4605
|
+
if ((_d = message.usernames) == null ? void 0 : _d.length) {
|
|
4595
4606
|
obj.usernames = message.usernames;
|
|
4596
4607
|
}
|
|
4597
4608
|
if (message.creator_name !== "") {
|
|
@@ -4603,10 +4614,10 @@ var ChannelDescription = {
|
|
|
4603
4614
|
if (message.update_time_seconds !== 0) {
|
|
4604
4615
|
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
4605
4616
|
}
|
|
4606
|
-
if ((
|
|
4617
|
+
if ((_e = message.metadata) == null ? void 0 : _e.length) {
|
|
4607
4618
|
obj.metadata = message.metadata;
|
|
4608
4619
|
}
|
|
4609
|
-
if ((
|
|
4620
|
+
if ((_f = message.about_me) == null ? void 0 : _f.length) {
|
|
4610
4621
|
obj.about_me = message.about_me;
|
|
4611
4622
|
}
|
|
4612
4623
|
if (message.clan_name !== "") {
|
|
@@ -4627,13 +4638,16 @@ var ChannelDescription = {
|
|
|
4627
4638
|
if (message.e2ee !== 0) {
|
|
4628
4639
|
obj.e2ee = Math.round(message.e2ee);
|
|
4629
4640
|
}
|
|
4641
|
+
if ((_g = message.display_names) == null ? void 0 : _g.length) {
|
|
4642
|
+
obj.display_names = message.display_names;
|
|
4643
|
+
}
|
|
4630
4644
|
return obj;
|
|
4631
4645
|
},
|
|
4632
4646
|
create(base) {
|
|
4633
4647
|
return ChannelDescription.fromPartial(base != null ? base : {});
|
|
4634
4648
|
},
|
|
4635
4649
|
fromPartial(object) {
|
|
4636
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
|
|
4650
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C;
|
|
4637
4651
|
const message = createBaseChannelDescription();
|
|
4638
4652
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
4639
4653
|
message.parrent_id = (_b = object.parrent_id) != null ? _b : "";
|
|
@@ -4653,7 +4667,7 @@ var ChannelDescription = {
|
|
|
4653
4667
|
message.count_mess_unread = (_n = object.count_mess_unread) != null ? _n : 0;
|
|
4654
4668
|
message.active = (_o = object.active) != null ? _o : 0;
|
|
4655
4669
|
message.last_pin_message = (_p = object.last_pin_message) != null ? _p : "";
|
|
4656
|
-
message.usernames = (_q = object.usernames)
|
|
4670
|
+
message.usernames = ((_q = object.usernames) == null ? void 0 : _q.map((e) => e)) || [];
|
|
4657
4671
|
message.creator_name = (_r = object.creator_name) != null ? _r : "";
|
|
4658
4672
|
message.create_time_seconds = (_s = object.create_time_seconds) != null ? _s : 0;
|
|
4659
4673
|
message.update_time_seconds = (_t = object.update_time_seconds) != null ? _t : 0;
|
|
@@ -4665,6 +4679,7 @@ var ChannelDescription = {
|
|
|
4665
4679
|
message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
|
|
4666
4680
|
message.topic = (_A = object.topic) != null ? _A : "";
|
|
4667
4681
|
message.e2ee = (_B = object.e2ee) != null ? _B : 0;
|
|
4682
|
+
message.display_names = ((_C = object.display_names) == null ? void 0 : _C.map((e) => e)) || [];
|
|
4668
4683
|
return message;
|
|
4669
4684
|
}
|
|
4670
4685
|
};
|
package/package.json
CHANGED