mezon-js-protobuf 1.8.29 → 1.8.31
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 +72 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +53 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +550 -332
- package/dist/mezon-js-protobuf.cjs.js +270 -5
- package/dist/mezon-js-protobuf.esm.mjs +270 -5
- package/package.json +1 -1
- package/rtapi/realtime.ts +273 -1
|
@@ -6378,7 +6378,10 @@ function createBaseClanDesc() {
|
|
|
6378
6378
|
onboarding_banner: "",
|
|
6379
6379
|
clan_order: 0,
|
|
6380
6380
|
is_community: false,
|
|
6381
|
-
community_banner: ""
|
|
6381
|
+
community_banner: "",
|
|
6382
|
+
description: "",
|
|
6383
|
+
about: "",
|
|
6384
|
+
short_url: ""
|
|
6382
6385
|
};
|
|
6383
6386
|
}
|
|
6384
6387
|
var ClanDesc = {
|
|
@@ -6422,6 +6425,15 @@ var ClanDesc = {
|
|
|
6422
6425
|
if (message.community_banner !== "") {
|
|
6423
6426
|
writer.uint32(106).string(message.community_banner);
|
|
6424
6427
|
}
|
|
6428
|
+
if (message.description !== "") {
|
|
6429
|
+
writer.uint32(114).string(message.description);
|
|
6430
|
+
}
|
|
6431
|
+
if (message.about !== "") {
|
|
6432
|
+
writer.uint32(122).string(message.about);
|
|
6433
|
+
}
|
|
6434
|
+
if (message.short_url !== "") {
|
|
6435
|
+
writer.uint32(130).string(message.short_url);
|
|
6436
|
+
}
|
|
6425
6437
|
return writer;
|
|
6426
6438
|
},
|
|
6427
6439
|
decode(input, length) {
|
|
@@ -6509,6 +6521,24 @@ var ClanDesc = {
|
|
|
6509
6521
|
}
|
|
6510
6522
|
message.community_banner = reader.string();
|
|
6511
6523
|
continue;
|
|
6524
|
+
case 14:
|
|
6525
|
+
if (tag !== 114) {
|
|
6526
|
+
break;
|
|
6527
|
+
}
|
|
6528
|
+
message.description = reader.string();
|
|
6529
|
+
continue;
|
|
6530
|
+
case 15:
|
|
6531
|
+
if (tag !== 122) {
|
|
6532
|
+
break;
|
|
6533
|
+
}
|
|
6534
|
+
message.about = reader.string();
|
|
6535
|
+
continue;
|
|
6536
|
+
case 16:
|
|
6537
|
+
if (tag !== 130) {
|
|
6538
|
+
break;
|
|
6539
|
+
}
|
|
6540
|
+
message.short_url = reader.string();
|
|
6541
|
+
continue;
|
|
6512
6542
|
}
|
|
6513
6543
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6514
6544
|
break;
|
|
@@ -6531,7 +6561,10 @@ var ClanDesc = {
|
|
|
6531
6561
|
onboarding_banner: isSet3(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
6532
6562
|
clan_order: isSet3(object.clan_order) ? globalThis.Number(object.clan_order) : 0,
|
|
6533
6563
|
is_community: isSet3(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
6534
|
-
community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : ""
|
|
6564
|
+
community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
6565
|
+
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
6566
|
+
about: isSet3(object.about) ? globalThis.String(object.about) : "",
|
|
6567
|
+
short_url: isSet3(object.short_url) ? globalThis.String(object.short_url) : ""
|
|
6535
6568
|
};
|
|
6536
6569
|
},
|
|
6537
6570
|
toJSON(message) {
|
|
@@ -6575,13 +6608,22 @@ var ClanDesc = {
|
|
|
6575
6608
|
if (message.community_banner !== "") {
|
|
6576
6609
|
obj.community_banner = message.community_banner;
|
|
6577
6610
|
}
|
|
6611
|
+
if (message.description !== "") {
|
|
6612
|
+
obj.description = message.description;
|
|
6613
|
+
}
|
|
6614
|
+
if (message.about !== "") {
|
|
6615
|
+
obj.about = message.about;
|
|
6616
|
+
}
|
|
6617
|
+
if (message.short_url !== "") {
|
|
6618
|
+
obj.short_url = message.short_url;
|
|
6619
|
+
}
|
|
6578
6620
|
return obj;
|
|
6579
6621
|
},
|
|
6580
6622
|
create(base) {
|
|
6581
6623
|
return ClanDesc.fromPartial(base != null ? base : {});
|
|
6582
6624
|
},
|
|
6583
6625
|
fromPartial(object) {
|
|
6584
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
6626
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
6585
6627
|
const message = createBaseClanDesc();
|
|
6586
6628
|
message.creator_id = (_a = object.creator_id) != null ? _a : "";
|
|
6587
6629
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
@@ -6596,6 +6638,9 @@ var ClanDesc = {
|
|
|
6596
6638
|
message.clan_order = (_k = object.clan_order) != null ? _k : 0;
|
|
6597
6639
|
message.is_community = (_l = object.is_community) != null ? _l : false;
|
|
6598
6640
|
message.community_banner = (_m = object.community_banner) != null ? _m : "";
|
|
6641
|
+
message.description = (_n = object.description) != null ? _n : "";
|
|
6642
|
+
message.about = (_o = object.about) != null ? _o : "";
|
|
6643
|
+
message.short_url = (_p = object.short_url) != null ? _p : "";
|
|
6599
6644
|
return message;
|
|
6600
6645
|
}
|
|
6601
6646
|
};
|
|
@@ -14276,7 +14321,9 @@ function createBaseEnvelope() {
|
|
|
14276
14321
|
mark_as_read: void 0,
|
|
14277
14322
|
list_data_socket: void 0,
|
|
14278
14323
|
quick_menu_event: void 0,
|
|
14279
|
-
un_block_friend: void 0
|
|
14324
|
+
un_block_friend: void 0,
|
|
14325
|
+
meet_participant_event: void 0,
|
|
14326
|
+
transfer_ownership_event: void 0
|
|
14280
14327
|
};
|
|
14281
14328
|
}
|
|
14282
14329
|
var Envelope = {
|
|
@@ -14536,6 +14583,12 @@ var Envelope = {
|
|
|
14536
14583
|
if (message.un_block_friend !== void 0) {
|
|
14537
14584
|
UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
|
|
14538
14585
|
}
|
|
14586
|
+
if (message.meet_participant_event !== void 0) {
|
|
14587
|
+
MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
|
|
14588
|
+
}
|
|
14589
|
+
if (message.transfer_ownership_event !== void 0) {
|
|
14590
|
+
TransferOwnershipEvent.encode(message.transfer_ownership_event, writer.uint32(698).fork()).ldelim();
|
|
14591
|
+
}
|
|
14539
14592
|
return writer;
|
|
14540
14593
|
},
|
|
14541
14594
|
decode(input, length) {
|
|
@@ -15055,6 +15108,18 @@ var Envelope = {
|
|
|
15055
15108
|
}
|
|
15056
15109
|
message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
|
|
15057
15110
|
continue;
|
|
15111
|
+
case 86:
|
|
15112
|
+
if (tag !== 690) {
|
|
15113
|
+
break;
|
|
15114
|
+
}
|
|
15115
|
+
message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
|
|
15116
|
+
continue;
|
|
15117
|
+
case 87:
|
|
15118
|
+
if (tag !== 698) {
|
|
15119
|
+
break;
|
|
15120
|
+
}
|
|
15121
|
+
message.transfer_ownership_event = TransferOwnershipEvent.decode(reader, reader.uint32());
|
|
15122
|
+
continue;
|
|
15058
15123
|
}
|
|
15059
15124
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15060
15125
|
break;
|
|
@@ -15149,7 +15214,9 @@ var Envelope = {
|
|
|
15149
15214
|
mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
|
|
15150
15215
|
list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
|
|
15151
15216
|
quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
|
|
15152
|
-
un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
|
|
15217
|
+
un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0,
|
|
15218
|
+
meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0,
|
|
15219
|
+
transfer_ownership_event: isSet4(object.transfer_ownership_event) ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event) : void 0
|
|
15153
15220
|
};
|
|
15154
15221
|
},
|
|
15155
15222
|
toJSON(message) {
|
|
@@ -15411,6 +15478,12 @@ var Envelope = {
|
|
|
15411
15478
|
if (message.un_block_friend !== void 0) {
|
|
15412
15479
|
obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
|
|
15413
15480
|
}
|
|
15481
|
+
if (message.meet_participant_event !== void 0) {
|
|
15482
|
+
obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
|
|
15483
|
+
}
|
|
15484
|
+
if (message.transfer_ownership_event !== void 0) {
|
|
15485
|
+
obj.transfer_ownership_event = TransferOwnershipEvent.toJSON(message.transfer_ownership_event);
|
|
15486
|
+
}
|
|
15414
15487
|
return obj;
|
|
15415
15488
|
},
|
|
15416
15489
|
create(base) {
|
|
@@ -15504,6 +15577,8 @@ var Envelope = {
|
|
|
15504
15577
|
message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
|
|
15505
15578
|
message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
|
|
15506
15579
|
message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
|
|
15580
|
+
message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
|
|
15581
|
+
message.transfer_ownership_event = object.transfer_ownership_event !== void 0 && object.transfer_ownership_event !== null ? TransferOwnershipEvent.fromPartial(object.transfer_ownership_event) : void 0;
|
|
15507
15582
|
return message;
|
|
15508
15583
|
}
|
|
15509
15584
|
};
|
|
@@ -25240,6 +25315,196 @@ var ListDataSocket = {
|
|
|
25240
25315
|
return message;
|
|
25241
25316
|
}
|
|
25242
25317
|
};
|
|
25318
|
+
function createBaseMeetParticipantEvent() {
|
|
25319
|
+
return { username: "", room_name: "", channel_id: "", clan_id: "", action: 0 };
|
|
25320
|
+
}
|
|
25321
|
+
var MeetParticipantEvent = {
|
|
25322
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
25323
|
+
if (message.username !== "") {
|
|
25324
|
+
writer.uint32(10).string(message.username);
|
|
25325
|
+
}
|
|
25326
|
+
if (message.room_name !== "") {
|
|
25327
|
+
writer.uint32(18).string(message.room_name);
|
|
25328
|
+
}
|
|
25329
|
+
if (message.channel_id !== "") {
|
|
25330
|
+
writer.uint32(26).string(message.channel_id);
|
|
25331
|
+
}
|
|
25332
|
+
if (message.clan_id !== "") {
|
|
25333
|
+
writer.uint32(34).string(message.clan_id);
|
|
25334
|
+
}
|
|
25335
|
+
if (message.action !== 0) {
|
|
25336
|
+
writer.uint32(40).int32(message.action);
|
|
25337
|
+
}
|
|
25338
|
+
return writer;
|
|
25339
|
+
},
|
|
25340
|
+
decode(input, length) {
|
|
25341
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
25342
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
25343
|
+
const message = createBaseMeetParticipantEvent();
|
|
25344
|
+
while (reader.pos < end) {
|
|
25345
|
+
const tag = reader.uint32();
|
|
25346
|
+
switch (tag >>> 3) {
|
|
25347
|
+
case 1:
|
|
25348
|
+
if (tag !== 10) {
|
|
25349
|
+
break;
|
|
25350
|
+
}
|
|
25351
|
+
message.username = reader.string();
|
|
25352
|
+
continue;
|
|
25353
|
+
case 2:
|
|
25354
|
+
if (tag !== 18) {
|
|
25355
|
+
break;
|
|
25356
|
+
}
|
|
25357
|
+
message.room_name = reader.string();
|
|
25358
|
+
continue;
|
|
25359
|
+
case 3:
|
|
25360
|
+
if (tag !== 26) {
|
|
25361
|
+
break;
|
|
25362
|
+
}
|
|
25363
|
+
message.channel_id = reader.string();
|
|
25364
|
+
continue;
|
|
25365
|
+
case 4:
|
|
25366
|
+
if (tag !== 34) {
|
|
25367
|
+
break;
|
|
25368
|
+
}
|
|
25369
|
+
message.clan_id = reader.string();
|
|
25370
|
+
continue;
|
|
25371
|
+
case 5:
|
|
25372
|
+
if (tag !== 40) {
|
|
25373
|
+
break;
|
|
25374
|
+
}
|
|
25375
|
+
message.action = reader.int32();
|
|
25376
|
+
continue;
|
|
25377
|
+
}
|
|
25378
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25379
|
+
break;
|
|
25380
|
+
}
|
|
25381
|
+
reader.skipType(tag & 7);
|
|
25382
|
+
}
|
|
25383
|
+
return message;
|
|
25384
|
+
},
|
|
25385
|
+
fromJSON(object) {
|
|
25386
|
+
return {
|
|
25387
|
+
username: isSet4(object.username) ? globalThis.String(object.username) : "",
|
|
25388
|
+
room_name: isSet4(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
25389
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
25390
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
25391
|
+
action: isSet4(object.action) ? globalThis.Number(object.action) : 0
|
|
25392
|
+
};
|
|
25393
|
+
},
|
|
25394
|
+
toJSON(message) {
|
|
25395
|
+
const obj = {};
|
|
25396
|
+
if (message.username !== "") {
|
|
25397
|
+
obj.username = message.username;
|
|
25398
|
+
}
|
|
25399
|
+
if (message.room_name !== "") {
|
|
25400
|
+
obj.room_name = message.room_name;
|
|
25401
|
+
}
|
|
25402
|
+
if (message.channel_id !== "") {
|
|
25403
|
+
obj.channel_id = message.channel_id;
|
|
25404
|
+
}
|
|
25405
|
+
if (message.clan_id !== "") {
|
|
25406
|
+
obj.clan_id = message.clan_id;
|
|
25407
|
+
}
|
|
25408
|
+
if (message.action !== 0) {
|
|
25409
|
+
obj.action = Math.round(message.action);
|
|
25410
|
+
}
|
|
25411
|
+
return obj;
|
|
25412
|
+
},
|
|
25413
|
+
create(base) {
|
|
25414
|
+
return MeetParticipantEvent.fromPartial(base != null ? base : {});
|
|
25415
|
+
},
|
|
25416
|
+
fromPartial(object) {
|
|
25417
|
+
var _a, _b, _c, _d, _e;
|
|
25418
|
+
const message = createBaseMeetParticipantEvent();
|
|
25419
|
+
message.username = (_a = object.username) != null ? _a : "";
|
|
25420
|
+
message.room_name = (_b = object.room_name) != null ? _b : "";
|
|
25421
|
+
message.channel_id = (_c = object.channel_id) != null ? _c : "";
|
|
25422
|
+
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
25423
|
+
message.action = (_e = object.action) != null ? _e : 0;
|
|
25424
|
+
return message;
|
|
25425
|
+
}
|
|
25426
|
+
};
|
|
25427
|
+
function createBaseTransferOwnershipEvent() {
|
|
25428
|
+
return { clan_id: "", prev_owner: "", curr_owner: "" };
|
|
25429
|
+
}
|
|
25430
|
+
var TransferOwnershipEvent = {
|
|
25431
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
25432
|
+
if (message.clan_id !== "") {
|
|
25433
|
+
writer.uint32(10).string(message.clan_id);
|
|
25434
|
+
}
|
|
25435
|
+
if (message.prev_owner !== "") {
|
|
25436
|
+
writer.uint32(18).string(message.prev_owner);
|
|
25437
|
+
}
|
|
25438
|
+
if (message.curr_owner !== "") {
|
|
25439
|
+
writer.uint32(26).string(message.curr_owner);
|
|
25440
|
+
}
|
|
25441
|
+
return writer;
|
|
25442
|
+
},
|
|
25443
|
+
decode(input, length) {
|
|
25444
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
25445
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
25446
|
+
const message = createBaseTransferOwnershipEvent();
|
|
25447
|
+
while (reader.pos < end) {
|
|
25448
|
+
const tag = reader.uint32();
|
|
25449
|
+
switch (tag >>> 3) {
|
|
25450
|
+
case 1:
|
|
25451
|
+
if (tag !== 10) {
|
|
25452
|
+
break;
|
|
25453
|
+
}
|
|
25454
|
+
message.clan_id = reader.string();
|
|
25455
|
+
continue;
|
|
25456
|
+
case 2:
|
|
25457
|
+
if (tag !== 18) {
|
|
25458
|
+
break;
|
|
25459
|
+
}
|
|
25460
|
+
message.prev_owner = reader.string();
|
|
25461
|
+
continue;
|
|
25462
|
+
case 3:
|
|
25463
|
+
if (tag !== 26) {
|
|
25464
|
+
break;
|
|
25465
|
+
}
|
|
25466
|
+
message.curr_owner = reader.string();
|
|
25467
|
+
continue;
|
|
25468
|
+
}
|
|
25469
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25470
|
+
break;
|
|
25471
|
+
}
|
|
25472
|
+
reader.skipType(tag & 7);
|
|
25473
|
+
}
|
|
25474
|
+
return message;
|
|
25475
|
+
},
|
|
25476
|
+
fromJSON(object) {
|
|
25477
|
+
return {
|
|
25478
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
25479
|
+
prev_owner: isSet4(object.prev_owner) ? globalThis.String(object.prev_owner) : "",
|
|
25480
|
+
curr_owner: isSet4(object.curr_owner) ? globalThis.String(object.curr_owner) : ""
|
|
25481
|
+
};
|
|
25482
|
+
},
|
|
25483
|
+
toJSON(message) {
|
|
25484
|
+
const obj = {};
|
|
25485
|
+
if (message.clan_id !== "") {
|
|
25486
|
+
obj.clan_id = message.clan_id;
|
|
25487
|
+
}
|
|
25488
|
+
if (message.prev_owner !== "") {
|
|
25489
|
+
obj.prev_owner = message.prev_owner;
|
|
25490
|
+
}
|
|
25491
|
+
if (message.curr_owner !== "") {
|
|
25492
|
+
obj.curr_owner = message.curr_owner;
|
|
25493
|
+
}
|
|
25494
|
+
return obj;
|
|
25495
|
+
},
|
|
25496
|
+
create(base) {
|
|
25497
|
+
return TransferOwnershipEvent.fromPartial(base != null ? base : {});
|
|
25498
|
+
},
|
|
25499
|
+
fromPartial(object) {
|
|
25500
|
+
var _a, _b, _c;
|
|
25501
|
+
const message = createBaseTransferOwnershipEvent();
|
|
25502
|
+
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
25503
|
+
message.prev_owner = (_b = object.prev_owner) != null ? _b : "";
|
|
25504
|
+
message.curr_owner = (_c = object.curr_owner) != null ? _c : "";
|
|
25505
|
+
return message;
|
|
25506
|
+
}
|
|
25507
|
+
};
|
|
25243
25508
|
function toTimestamp2(date) {
|
|
25244
25509
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
25245
25510
|
const nanos = date.getTime() % 1e3 * 1e6;
|