mezon-js-protobuf 1.8.88 → 1.8.89
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 +117 -129
- package/dist/mezon-js/api/api.d.ts +235 -235
- package/dist/mezon-js/utils.d.ts +1 -1
- package/dist/mezon-js-protobuf/api/api.d.ts +235 -235
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +479 -479
- package/dist/mezon-js-protobuf.cjs.js +288 -210
- package/dist/mezon-js-protobuf.esm.mjs +288 -210
- package/package.json +1 -1
- package/rtapi/realtime.ts +304 -181
|
@@ -3328,18 +3328,15 @@ var MessageReaction = {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
};
|
|
3330
3330
|
function createBaseMessageAttachment() {
|
|
3331
|
-
return { filename: "", size:
|
|
3331
|
+
return { filename: "", size: 0, url: "", filetype: "", width: 0, height: 0, thumbnail: "", duration: 0 };
|
|
3332
3332
|
}
|
|
3333
3333
|
var MessageAttachment = {
|
|
3334
3334
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
3335
3335
|
if (message.filename !== "") {
|
|
3336
3336
|
writer.uint32(10).string(message.filename);
|
|
3337
3337
|
}
|
|
3338
|
-
if (message.size !==
|
|
3339
|
-
|
|
3340
|
-
throw new globalThis.Error("value provided for field message.size of type int64 too large");
|
|
3341
|
-
}
|
|
3342
|
-
writer.uint32(16).int64(message.size.toString());
|
|
3338
|
+
if (message.size !== 0) {
|
|
3339
|
+
writer.uint32(16).int32(message.size);
|
|
3343
3340
|
}
|
|
3344
3341
|
if (message.url !== "") {
|
|
3345
3342
|
writer.uint32(26).string(message.url);
|
|
@@ -3378,7 +3375,7 @@ var MessageAttachment = {
|
|
|
3378
3375
|
if (tag !== 16) {
|
|
3379
3376
|
break;
|
|
3380
3377
|
}
|
|
3381
|
-
message.size =
|
|
3378
|
+
message.size = reader.int32();
|
|
3382
3379
|
continue;
|
|
3383
3380
|
case 3:
|
|
3384
3381
|
if (tag !== 26) {
|
|
@@ -3427,7 +3424,7 @@ var MessageAttachment = {
|
|
|
3427
3424
|
fromJSON(object) {
|
|
3428
3425
|
return {
|
|
3429
3426
|
filename: isSet2(object.filename) ? globalThis.String(object.filename) : "",
|
|
3430
|
-
size: isSet2(object.size) ?
|
|
3427
|
+
size: isSet2(object.size) ? globalThis.Number(object.size) : 0,
|
|
3431
3428
|
url: isSet2(object.url) ? globalThis.String(object.url) : "",
|
|
3432
3429
|
filetype: isSet2(object.filetype) ? globalThis.String(object.filetype) : "",
|
|
3433
3430
|
width: isSet2(object.width) ? globalThis.Number(object.width) : 0,
|
|
@@ -3441,8 +3438,8 @@ var MessageAttachment = {
|
|
|
3441
3438
|
if (message.filename !== "") {
|
|
3442
3439
|
obj.filename = message.filename;
|
|
3443
3440
|
}
|
|
3444
|
-
if (message.size !==
|
|
3445
|
-
obj.size = message.size
|
|
3441
|
+
if (message.size !== 0) {
|
|
3442
|
+
obj.size = Math.round(message.size);
|
|
3446
3443
|
}
|
|
3447
3444
|
if (message.url !== "") {
|
|
3448
3445
|
obj.url = message.url;
|
|
@@ -3470,7 +3467,7 @@ var MessageAttachment = {
|
|
|
3470
3467
|
fromPartial(object) {
|
|
3471
3468
|
const message = createBaseMessageAttachment();
|
|
3472
3469
|
message.filename = object.filename ?? "";
|
|
3473
|
-
message.size = object.size ??
|
|
3470
|
+
message.size = object.size ?? 0;
|
|
3474
3471
|
message.url = object.url ?? "";
|
|
3475
3472
|
message.filetype = object.filetype ?? "";
|
|
3476
3473
|
message.width = object.width ?? 0;
|
|
@@ -4013,7 +4010,7 @@ function createBaseChannelUserList_ChannelUser() {
|
|
|
4013
4010
|
clan_nick: "",
|
|
4014
4011
|
clan_avatar: "",
|
|
4015
4012
|
clan_id: 0n,
|
|
4016
|
-
added_by:
|
|
4013
|
+
added_by: 0n,
|
|
4017
4014
|
is_banned: false,
|
|
4018
4015
|
expired_ban_time: 0
|
|
4019
4016
|
};
|
|
@@ -4058,8 +4055,11 @@ var ChannelUserList_ChannelUser = {
|
|
|
4058
4055
|
}
|
|
4059
4056
|
writer.uint32(56).int64(message.clan_id.toString());
|
|
4060
4057
|
}
|
|
4061
|
-
if (message.added_by !==
|
|
4062
|
-
|
|
4058
|
+
if (message.added_by !== 0n) {
|
|
4059
|
+
if (BigInt.asIntN(64, message.added_by) !== message.added_by) {
|
|
4060
|
+
throw new globalThis.Error("value provided for field message.added_by of type int64 too large");
|
|
4061
|
+
}
|
|
4062
|
+
writer.uint32(64).int64(message.added_by.toString());
|
|
4063
4063
|
}
|
|
4064
4064
|
if (message.is_banned !== false) {
|
|
4065
4065
|
writer.uint32(72).bool(message.is_banned);
|
|
@@ -4126,10 +4126,10 @@ var ChannelUserList_ChannelUser = {
|
|
|
4126
4126
|
message.clan_id = longToBigint(reader.int64());
|
|
4127
4127
|
continue;
|
|
4128
4128
|
case 8:
|
|
4129
|
-
if (tag !==
|
|
4129
|
+
if (tag !== 64) {
|
|
4130
4130
|
break;
|
|
4131
4131
|
}
|
|
4132
|
-
message.added_by = reader.
|
|
4132
|
+
message.added_by = longToBigint(reader.int64());
|
|
4133
4133
|
continue;
|
|
4134
4134
|
case 9:
|
|
4135
4135
|
if (tag !== 72) {
|
|
@@ -4160,7 +4160,7 @@ var ChannelUserList_ChannelUser = {
|
|
|
4160
4160
|
clan_nick: isSet2(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
|
|
4161
4161
|
clan_avatar: isSet2(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
|
|
4162
4162
|
clan_id: isSet2(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
4163
|
-
added_by: isSet2(object.added_by) ?
|
|
4163
|
+
added_by: isSet2(object.added_by) ? BigInt(object.added_by) : 0n,
|
|
4164
4164
|
is_banned: isSet2(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
|
|
4165
4165
|
expired_ban_time: isSet2(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0
|
|
4166
4166
|
};
|
|
@@ -4188,8 +4188,8 @@ var ChannelUserList_ChannelUser = {
|
|
|
4188
4188
|
if (message.clan_id !== 0n) {
|
|
4189
4189
|
obj.clan_id = message.clan_id.toString();
|
|
4190
4190
|
}
|
|
4191
|
-
if (message.added_by !==
|
|
4192
|
-
obj.added_by = message.added_by;
|
|
4191
|
+
if (message.added_by !== 0n) {
|
|
4192
|
+
obj.added_by = message.added_by.toString();
|
|
4193
4193
|
}
|
|
4194
4194
|
if (message.is_banned !== false) {
|
|
4195
4195
|
obj.is_banned = message.is_banned;
|
|
@@ -4211,7 +4211,7 @@ var ChannelUserList_ChannelUser = {
|
|
|
4211
4211
|
message.clan_nick = object.clan_nick ?? "";
|
|
4212
4212
|
message.clan_avatar = object.clan_avatar ?? "";
|
|
4213
4213
|
message.clan_id = object.clan_id ?? 0n;
|
|
4214
|
-
message.added_by = object.added_by ??
|
|
4214
|
+
message.added_by = object.added_by ?? 0n;
|
|
4215
4215
|
message.is_banned = object.is_banned ?? false;
|
|
4216
4216
|
message.expired_ban_time = object.expired_ban_time ?? 0;
|
|
4217
4217
|
return message;
|
|
@@ -4379,7 +4379,7 @@ function createBaseChannelAttachment() {
|
|
|
4379
4379
|
filetype: "",
|
|
4380
4380
|
filesize: "",
|
|
4381
4381
|
url: "",
|
|
4382
|
-
uploader:
|
|
4382
|
+
uploader: 0n,
|
|
4383
4383
|
create_time_seconds: 0,
|
|
4384
4384
|
message_id: 0n,
|
|
4385
4385
|
width: 0,
|
|
@@ -4406,8 +4406,11 @@ var ChannelAttachment = {
|
|
|
4406
4406
|
if (message.url !== "") {
|
|
4407
4407
|
writer.uint32(42).string(message.url);
|
|
4408
4408
|
}
|
|
4409
|
-
if (message.uploader !==
|
|
4410
|
-
|
|
4409
|
+
if (message.uploader !== 0n) {
|
|
4410
|
+
if (BigInt.asIntN(64, message.uploader) !== message.uploader) {
|
|
4411
|
+
throw new globalThis.Error("value provided for field message.uploader of type int64 too large");
|
|
4412
|
+
}
|
|
4413
|
+
writer.uint32(48).int64(message.uploader.toString());
|
|
4411
4414
|
}
|
|
4412
4415
|
if (message.create_time_seconds !== 0) {
|
|
4413
4416
|
writer.uint32(56).uint32(message.create_time_seconds);
|
|
@@ -4464,10 +4467,10 @@ var ChannelAttachment = {
|
|
|
4464
4467
|
message.url = reader.string();
|
|
4465
4468
|
continue;
|
|
4466
4469
|
case 6:
|
|
4467
|
-
if (tag !==
|
|
4470
|
+
if (tag !== 48) {
|
|
4468
4471
|
break;
|
|
4469
4472
|
}
|
|
4470
|
-
message.uploader = reader.
|
|
4473
|
+
message.uploader = longToBigint(reader.int64());
|
|
4471
4474
|
continue;
|
|
4472
4475
|
case 7:
|
|
4473
4476
|
if (tag !== 56) {
|
|
@@ -4508,7 +4511,7 @@ var ChannelAttachment = {
|
|
|
4508
4511
|
filetype: isSet2(object.filetype) ? globalThis.String(object.filetype) : "",
|
|
4509
4512
|
filesize: isSet2(object.filesize) ? globalThis.String(object.filesize) : "",
|
|
4510
4513
|
url: isSet2(object.url) ? globalThis.String(object.url) : "",
|
|
4511
|
-
uploader: isSet2(object.uploader) ?
|
|
4514
|
+
uploader: isSet2(object.uploader) ? BigInt(object.uploader) : 0n,
|
|
4512
4515
|
create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
4513
4516
|
message_id: isSet2(object.message_id) ? BigInt(object.message_id) : 0n,
|
|
4514
4517
|
width: isSet2(object.width) ? globalThis.Number(object.width) : 0,
|
|
@@ -4532,8 +4535,8 @@ var ChannelAttachment = {
|
|
|
4532
4535
|
if (message.url !== "") {
|
|
4533
4536
|
obj.url = message.url;
|
|
4534
4537
|
}
|
|
4535
|
-
if (message.uploader !==
|
|
4536
|
-
obj.uploader = message.uploader;
|
|
4538
|
+
if (message.uploader !== 0n) {
|
|
4539
|
+
obj.uploader = message.uploader.toString();
|
|
4537
4540
|
}
|
|
4538
4541
|
if (message.create_time_seconds !== 0) {
|
|
4539
4542
|
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
@@ -4559,7 +4562,7 @@ var ChannelAttachment = {
|
|
|
4559
4562
|
message.filetype = object.filetype ?? "";
|
|
4560
4563
|
message.filesize = object.filesize ?? "";
|
|
4561
4564
|
message.url = object.url ?? "";
|
|
4562
|
-
message.uploader = object.uploader ??
|
|
4565
|
+
message.uploader = object.uploader ?? 0n;
|
|
4563
4566
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
4564
4567
|
message.message_id = object.message_id ?? 0n;
|
|
4565
4568
|
message.width = object.width ?? 0;
|
|
@@ -6057,7 +6060,7 @@ function createBaseUser() {
|
|
|
6057
6060
|
join_time_seconds: 0,
|
|
6058
6061
|
is_mobile: false,
|
|
6059
6062
|
dob_seconds: 0,
|
|
6060
|
-
mezon_id:
|
|
6063
|
+
mezon_id: "",
|
|
6061
6064
|
list_nick_names: [],
|
|
6062
6065
|
status: ""
|
|
6063
6066
|
};
|
|
@@ -6118,11 +6121,8 @@ var User = {
|
|
|
6118
6121
|
if (message.dob_seconds !== 0) {
|
|
6119
6122
|
writer.uint32(136).uint32(message.dob_seconds);
|
|
6120
6123
|
}
|
|
6121
|
-
if (message.mezon_id !==
|
|
6122
|
-
|
|
6123
|
-
throw new globalThis.Error("value provided for field message.mezon_id of type int64 too large");
|
|
6124
|
-
}
|
|
6125
|
-
writer.uint32(144).int64(message.mezon_id.toString());
|
|
6124
|
+
if (message.mezon_id !== "") {
|
|
6125
|
+
writer.uint32(146).string(message.mezon_id);
|
|
6126
6126
|
}
|
|
6127
6127
|
for (const v of message.list_nick_names) {
|
|
6128
6128
|
writer.uint32(154).string(v);
|
|
@@ -6242,10 +6242,10 @@ var User = {
|
|
|
6242
6242
|
message.dob_seconds = reader.uint32();
|
|
6243
6243
|
continue;
|
|
6244
6244
|
case 18:
|
|
6245
|
-
if (tag !==
|
|
6245
|
+
if (tag !== 146) {
|
|
6246
6246
|
break;
|
|
6247
6247
|
}
|
|
6248
|
-
message.mezon_id =
|
|
6248
|
+
message.mezon_id = reader.string();
|
|
6249
6249
|
continue;
|
|
6250
6250
|
case 19:
|
|
6251
6251
|
if (tag !== 154) {
|
|
@@ -6286,7 +6286,7 @@ var User = {
|
|
|
6286
6286
|
join_time_seconds: isSet2(object.join_time_seconds) ? globalThis.Number(object.join_time_seconds) : 0,
|
|
6287
6287
|
is_mobile: isSet2(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
6288
6288
|
dob_seconds: isSet2(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
|
|
6289
|
-
mezon_id: isSet2(object.mezon_id) ?
|
|
6289
|
+
mezon_id: isSet2(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
6290
6290
|
list_nick_names: globalThis.Array.isArray(object?.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : [],
|
|
6291
6291
|
status: isSet2(object.status) ? globalThis.String(object.status) : ""
|
|
6292
6292
|
};
|
|
@@ -6344,8 +6344,8 @@ var User = {
|
|
|
6344
6344
|
if (message.dob_seconds !== 0) {
|
|
6345
6345
|
obj.dob_seconds = Math.round(message.dob_seconds);
|
|
6346
6346
|
}
|
|
6347
|
-
if (message.mezon_id !==
|
|
6348
|
-
obj.mezon_id = message.mezon_id
|
|
6347
|
+
if (message.mezon_id !== "") {
|
|
6348
|
+
obj.mezon_id = message.mezon_id;
|
|
6349
6349
|
}
|
|
6350
6350
|
if (message.list_nick_names?.length) {
|
|
6351
6351
|
obj.list_nick_names = message.list_nick_names;
|
|
@@ -6377,7 +6377,7 @@ var User = {
|
|
|
6377
6377
|
message.join_time_seconds = object.join_time_seconds ?? 0;
|
|
6378
6378
|
message.is_mobile = object.is_mobile ?? false;
|
|
6379
6379
|
message.dob_seconds = object.dob_seconds ?? 0;
|
|
6380
|
-
message.mezon_id = object.mezon_id ??
|
|
6380
|
+
message.mezon_id = object.mezon_id ?? "";
|
|
6381
6381
|
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
6382
6382
|
message.status = object.status ?? "";
|
|
6383
6383
|
return message;
|
|
@@ -12588,7 +12588,7 @@ var RoleListEventRequest = {
|
|
|
12588
12588
|
}
|
|
12589
12589
|
};
|
|
12590
12590
|
function createBaseRoleListEventResponse() {
|
|
12591
|
-
return { limit: 0, state: 0, cursor: "", clanId:
|
|
12591
|
+
return { limit: 0, state: 0, cursor: "", clanId: 0n, roles: void 0 };
|
|
12592
12592
|
}
|
|
12593
12593
|
var RoleListEventResponse = {
|
|
12594
12594
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -12601,8 +12601,11 @@ var RoleListEventResponse = {
|
|
|
12601
12601
|
if (message.cursor !== "") {
|
|
12602
12602
|
writer.uint32(26).string(message.cursor);
|
|
12603
12603
|
}
|
|
12604
|
-
if (message.clanId !==
|
|
12605
|
-
|
|
12604
|
+
if (message.clanId !== 0n) {
|
|
12605
|
+
if (BigInt.asIntN(64, message.clanId) !== message.clanId) {
|
|
12606
|
+
throw new globalThis.Error("value provided for field message.clanId of type int64 too large");
|
|
12607
|
+
}
|
|
12608
|
+
writer.uint32(32).int64(message.clanId.toString());
|
|
12606
12609
|
}
|
|
12607
12610
|
if (message.roles !== void 0) {
|
|
12608
12611
|
RoleList.encode(message.roles, writer.uint32(42).fork()).ldelim();
|
|
@@ -12635,10 +12638,10 @@ var RoleListEventResponse = {
|
|
|
12635
12638
|
message.cursor = reader.string();
|
|
12636
12639
|
continue;
|
|
12637
12640
|
case 4:
|
|
12638
|
-
if (tag !==
|
|
12641
|
+
if (tag !== 32) {
|
|
12639
12642
|
break;
|
|
12640
12643
|
}
|
|
12641
|
-
message.clanId = reader.
|
|
12644
|
+
message.clanId = longToBigint(reader.int64());
|
|
12642
12645
|
continue;
|
|
12643
12646
|
case 5:
|
|
12644
12647
|
if (tag !== 42) {
|
|
@@ -12659,7 +12662,7 @@ var RoleListEventResponse = {
|
|
|
12659
12662
|
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
12660
12663
|
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
12661
12664
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
12662
|
-
clanId: isSet2(object.clanId) ?
|
|
12665
|
+
clanId: isSet2(object.clanId) ? BigInt(object.clanId) : 0n,
|
|
12663
12666
|
roles: isSet2(object.roles) ? RoleList.fromJSON(object.roles) : void 0
|
|
12664
12667
|
};
|
|
12665
12668
|
},
|
|
@@ -12674,8 +12677,8 @@ var RoleListEventResponse = {
|
|
|
12674
12677
|
if (message.cursor !== "") {
|
|
12675
12678
|
obj.cursor = message.cursor;
|
|
12676
12679
|
}
|
|
12677
|
-
if (message.clanId !==
|
|
12678
|
-
obj.clanId = message.clanId;
|
|
12680
|
+
if (message.clanId !== 0n) {
|
|
12681
|
+
obj.clanId = message.clanId.toString();
|
|
12679
12682
|
}
|
|
12680
12683
|
if (message.roles !== void 0) {
|
|
12681
12684
|
obj.roles = RoleList.toJSON(message.roles);
|
|
@@ -12690,7 +12693,7 @@ var RoleListEventResponse = {
|
|
|
12690
12693
|
message.limit = object.limit ?? 0;
|
|
12691
12694
|
message.state = object.state ?? 0;
|
|
12692
12695
|
message.cursor = object.cursor ?? "";
|
|
12693
|
-
message.clanId = object.clanId ??
|
|
12696
|
+
message.clanId = object.clanId ?? 0n;
|
|
12694
12697
|
message.roles = object.roles !== void 0 && object.roles !== null ? RoleList.fromPartial(object.roles) : void 0;
|
|
12695
12698
|
return message;
|
|
12696
12699
|
}
|
|
@@ -13997,7 +14000,7 @@ function createBaseTokenSentEvent() {
|
|
|
13997
14000
|
amount: 0,
|
|
13998
14001
|
note: "",
|
|
13999
14002
|
extra_attribute: "",
|
|
14000
|
-
transaction_id:
|
|
14003
|
+
transaction_id: ""
|
|
14001
14004
|
};
|
|
14002
14005
|
}
|
|
14003
14006
|
var TokenSentEvent = {
|
|
@@ -14026,11 +14029,8 @@ var TokenSentEvent = {
|
|
|
14026
14029
|
if (message.extra_attribute !== "") {
|
|
14027
14030
|
writer.uint32(50).string(message.extra_attribute);
|
|
14028
14031
|
}
|
|
14029
|
-
if (message.transaction_id !==
|
|
14030
|
-
|
|
14031
|
-
throw new globalThis.Error("value provided for field message.transaction_id of type int64 too large");
|
|
14032
|
-
}
|
|
14033
|
-
writer.uint32(56).int64(message.transaction_id.toString());
|
|
14032
|
+
if (message.transaction_id !== "") {
|
|
14033
|
+
writer.uint32(58).string(message.transaction_id);
|
|
14034
14034
|
}
|
|
14035
14035
|
return writer;
|
|
14036
14036
|
},
|
|
@@ -14078,10 +14078,10 @@ var TokenSentEvent = {
|
|
|
14078
14078
|
message.extra_attribute = reader.string();
|
|
14079
14079
|
continue;
|
|
14080
14080
|
case 7:
|
|
14081
|
-
if (tag !==
|
|
14081
|
+
if (tag !== 58) {
|
|
14082
14082
|
break;
|
|
14083
14083
|
}
|
|
14084
|
-
message.transaction_id =
|
|
14084
|
+
message.transaction_id = reader.string();
|
|
14085
14085
|
continue;
|
|
14086
14086
|
}
|
|
14087
14087
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -14099,7 +14099,7 @@ var TokenSentEvent = {
|
|
|
14099
14099
|
amount: isSet2(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
14100
14100
|
note: isSet2(object.note) ? globalThis.String(object.note) : "",
|
|
14101
14101
|
extra_attribute: isSet2(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
|
|
14102
|
-
transaction_id: isSet2(object.transaction_id) ?
|
|
14102
|
+
transaction_id: isSet2(object.transaction_id) ? globalThis.String(object.transaction_id) : ""
|
|
14103
14103
|
};
|
|
14104
14104
|
},
|
|
14105
14105
|
toJSON(message) {
|
|
@@ -14122,8 +14122,8 @@ var TokenSentEvent = {
|
|
|
14122
14122
|
if (message.extra_attribute !== "") {
|
|
14123
14123
|
obj.extra_attribute = message.extra_attribute;
|
|
14124
14124
|
}
|
|
14125
|
-
if (message.transaction_id !==
|
|
14126
|
-
obj.transaction_id = message.transaction_id
|
|
14125
|
+
if (message.transaction_id !== "") {
|
|
14126
|
+
obj.transaction_id = message.transaction_id;
|
|
14127
14127
|
}
|
|
14128
14128
|
return obj;
|
|
14129
14129
|
},
|
|
@@ -14138,7 +14138,7 @@ var TokenSentEvent = {
|
|
|
14138
14138
|
message.amount = object.amount ?? 0;
|
|
14139
14139
|
message.note = object.note ?? "";
|
|
14140
14140
|
message.extra_attribute = object.extra_attribute ?? "";
|
|
14141
|
-
message.transaction_id = object.transaction_id ??
|
|
14141
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
14142
14142
|
return message;
|
|
14143
14143
|
}
|
|
14144
14144
|
};
|
|
@@ -20119,15 +20119,12 @@ var MessageTypingEvent = {
|
|
|
20119
20119
|
}
|
|
20120
20120
|
};
|
|
20121
20121
|
function createBaseVoiceLeavedEvent() {
|
|
20122
|
-
return { id:
|
|
20122
|
+
return { id: "", clan_id: 0n, voice_channel_id: 0n, voice_user_id: 0n };
|
|
20123
20123
|
}
|
|
20124
20124
|
var VoiceLeavedEvent = {
|
|
20125
20125
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
20126
|
-
if (message.id !==
|
|
20127
|
-
|
|
20128
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
20129
|
-
}
|
|
20130
|
-
writer.uint32(8).int64(message.id.toString());
|
|
20126
|
+
if (message.id !== "") {
|
|
20127
|
+
writer.uint32(10).string(message.id);
|
|
20131
20128
|
}
|
|
20132
20129
|
if (message.clan_id !== 0n) {
|
|
20133
20130
|
if (BigInt.asIntN(64, message.clan_id) !== message.clan_id) {
|
|
@@ -20135,11 +20132,17 @@ var VoiceLeavedEvent = {
|
|
|
20135
20132
|
}
|
|
20136
20133
|
writer.uint32(16).int64(message.clan_id.toString());
|
|
20137
20134
|
}
|
|
20138
|
-
if (message.voice_channel_id !==
|
|
20139
|
-
|
|
20135
|
+
if (message.voice_channel_id !== 0n) {
|
|
20136
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
20137
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
20138
|
+
}
|
|
20139
|
+
writer.uint32(24).int64(message.voice_channel_id.toString());
|
|
20140
20140
|
}
|
|
20141
|
-
if (message.voice_user_id !==
|
|
20142
|
-
|
|
20141
|
+
if (message.voice_user_id !== 0n) {
|
|
20142
|
+
if (BigInt.asIntN(64, message.voice_user_id) !== message.voice_user_id) {
|
|
20143
|
+
throw new globalThis.Error("value provided for field message.voice_user_id of type int64 too large");
|
|
20144
|
+
}
|
|
20145
|
+
writer.uint32(32).int64(message.voice_user_id.toString());
|
|
20143
20146
|
}
|
|
20144
20147
|
return writer;
|
|
20145
20148
|
},
|
|
@@ -20151,10 +20154,10 @@ var VoiceLeavedEvent = {
|
|
|
20151
20154
|
const tag = reader.uint32();
|
|
20152
20155
|
switch (tag >>> 3) {
|
|
20153
20156
|
case 1:
|
|
20154
|
-
if (tag !==
|
|
20157
|
+
if (tag !== 10) {
|
|
20155
20158
|
break;
|
|
20156
20159
|
}
|
|
20157
|
-
message.id =
|
|
20160
|
+
message.id = reader.string();
|
|
20158
20161
|
continue;
|
|
20159
20162
|
case 2:
|
|
20160
20163
|
if (tag !== 16) {
|
|
@@ -20163,16 +20166,16 @@ var VoiceLeavedEvent = {
|
|
|
20163
20166
|
message.clan_id = longToBigint2(reader.int64());
|
|
20164
20167
|
continue;
|
|
20165
20168
|
case 3:
|
|
20166
|
-
if (tag !==
|
|
20169
|
+
if (tag !== 24) {
|
|
20167
20170
|
break;
|
|
20168
20171
|
}
|
|
20169
|
-
message.voice_channel_id = reader.
|
|
20172
|
+
message.voice_channel_id = longToBigint2(reader.int64());
|
|
20170
20173
|
continue;
|
|
20171
20174
|
case 4:
|
|
20172
|
-
if (tag !==
|
|
20175
|
+
if (tag !== 32) {
|
|
20173
20176
|
break;
|
|
20174
20177
|
}
|
|
20175
|
-
message.voice_user_id = reader.
|
|
20178
|
+
message.voice_user_id = longToBigint2(reader.int64());
|
|
20176
20179
|
continue;
|
|
20177
20180
|
}
|
|
20178
20181
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -20184,25 +20187,25 @@ var VoiceLeavedEvent = {
|
|
|
20184
20187
|
},
|
|
20185
20188
|
fromJSON(object) {
|
|
20186
20189
|
return {
|
|
20187
|
-
id: isSet3(object.id) ?
|
|
20190
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
20188
20191
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
20189
|
-
voice_channel_id: isSet3(object.voice_channel_id) ?
|
|
20190
|
-
voice_user_id: isSet3(object.voice_user_id) ?
|
|
20192
|
+
voice_channel_id: isSet3(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n,
|
|
20193
|
+
voice_user_id: isSet3(object.voice_user_id) ? BigInt(object.voice_user_id) : 0n
|
|
20191
20194
|
};
|
|
20192
20195
|
},
|
|
20193
20196
|
toJSON(message) {
|
|
20194
20197
|
const obj = {};
|
|
20195
|
-
if (message.id !==
|
|
20196
|
-
obj.id = message.id
|
|
20198
|
+
if (message.id !== "") {
|
|
20199
|
+
obj.id = message.id;
|
|
20197
20200
|
}
|
|
20198
20201
|
if (message.clan_id !== 0n) {
|
|
20199
20202
|
obj.clan_id = message.clan_id.toString();
|
|
20200
20203
|
}
|
|
20201
|
-
if (message.voice_channel_id !==
|
|
20202
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
20204
|
+
if (message.voice_channel_id !== 0n) {
|
|
20205
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
20203
20206
|
}
|
|
20204
|
-
if (message.voice_user_id !==
|
|
20205
|
-
obj.voice_user_id = message.voice_user_id;
|
|
20207
|
+
if (message.voice_user_id !== 0n) {
|
|
20208
|
+
obj.voice_user_id = message.voice_user_id.toString();
|
|
20206
20209
|
}
|
|
20207
20210
|
return obj;
|
|
20208
20211
|
},
|
|
@@ -20211,10 +20214,10 @@ var VoiceLeavedEvent = {
|
|
|
20211
20214
|
},
|
|
20212
20215
|
fromPartial(object) {
|
|
20213
20216
|
const message = createBaseVoiceLeavedEvent();
|
|
20214
|
-
message.id = object.id ??
|
|
20217
|
+
message.id = object.id ?? "";
|
|
20215
20218
|
message.clan_id = object.clan_id ?? 0n;
|
|
20216
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
20217
|
-
message.voice_user_id = object.voice_user_id ??
|
|
20219
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
20220
|
+
message.voice_user_id = object.voice_user_id ?? 0n;
|
|
20218
20221
|
return message;
|
|
20219
20222
|
}
|
|
20220
20223
|
};
|
|
@@ -20222,11 +20225,11 @@ function createBaseVoiceJoinedEvent() {
|
|
|
20222
20225
|
return {
|
|
20223
20226
|
clan_id: 0n,
|
|
20224
20227
|
clan_name: "",
|
|
20225
|
-
id:
|
|
20228
|
+
id: "",
|
|
20226
20229
|
participant: "",
|
|
20227
20230
|
user_id: 0n,
|
|
20228
20231
|
voice_channel_label: "",
|
|
20229
|
-
voice_channel_id:
|
|
20232
|
+
voice_channel_id: 0n,
|
|
20230
20233
|
last_screenshot: ""
|
|
20231
20234
|
};
|
|
20232
20235
|
}
|
|
@@ -20241,11 +20244,8 @@ var VoiceJoinedEvent = {
|
|
|
20241
20244
|
if (message.clan_name !== "") {
|
|
20242
20245
|
writer.uint32(18).string(message.clan_name);
|
|
20243
20246
|
}
|
|
20244
|
-
if (message.id !==
|
|
20245
|
-
|
|
20246
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
20247
|
-
}
|
|
20248
|
-
writer.uint32(24).int64(message.id.toString());
|
|
20247
|
+
if (message.id !== "") {
|
|
20248
|
+
writer.uint32(26).string(message.id);
|
|
20249
20249
|
}
|
|
20250
20250
|
if (message.participant !== "") {
|
|
20251
20251
|
writer.uint32(34).string(message.participant);
|
|
@@ -20259,8 +20259,11 @@ var VoiceJoinedEvent = {
|
|
|
20259
20259
|
if (message.voice_channel_label !== "") {
|
|
20260
20260
|
writer.uint32(50).string(message.voice_channel_label);
|
|
20261
20261
|
}
|
|
20262
|
-
if (message.voice_channel_id !==
|
|
20263
|
-
|
|
20262
|
+
if (message.voice_channel_id !== 0n) {
|
|
20263
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
20264
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
20265
|
+
}
|
|
20266
|
+
writer.uint32(56).int64(message.voice_channel_id.toString());
|
|
20264
20267
|
}
|
|
20265
20268
|
if (message.last_screenshot !== "") {
|
|
20266
20269
|
writer.uint32(66).string(message.last_screenshot);
|
|
@@ -20287,10 +20290,10 @@ var VoiceJoinedEvent = {
|
|
|
20287
20290
|
message.clan_name = reader.string();
|
|
20288
20291
|
continue;
|
|
20289
20292
|
case 3:
|
|
20290
|
-
if (tag !==
|
|
20293
|
+
if (tag !== 26) {
|
|
20291
20294
|
break;
|
|
20292
20295
|
}
|
|
20293
|
-
message.id =
|
|
20296
|
+
message.id = reader.string();
|
|
20294
20297
|
continue;
|
|
20295
20298
|
case 4:
|
|
20296
20299
|
if (tag !== 34) {
|
|
@@ -20311,10 +20314,10 @@ var VoiceJoinedEvent = {
|
|
|
20311
20314
|
message.voice_channel_label = reader.string();
|
|
20312
20315
|
continue;
|
|
20313
20316
|
case 7:
|
|
20314
|
-
if (tag !==
|
|
20317
|
+
if (tag !== 56) {
|
|
20315
20318
|
break;
|
|
20316
20319
|
}
|
|
20317
|
-
message.voice_channel_id = reader.
|
|
20320
|
+
message.voice_channel_id = longToBigint2(reader.int64());
|
|
20318
20321
|
continue;
|
|
20319
20322
|
case 8:
|
|
20320
20323
|
if (tag !== 66) {
|
|
@@ -20334,11 +20337,11 @@ var VoiceJoinedEvent = {
|
|
|
20334
20337
|
return {
|
|
20335
20338
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
20336
20339
|
clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
20337
|
-
id: isSet3(object.id) ?
|
|
20340
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
20338
20341
|
participant: isSet3(object.participant) ? globalThis.String(object.participant) : "",
|
|
20339
20342
|
user_id: isSet3(object.user_id) ? BigInt(object.user_id) : 0n,
|
|
20340
20343
|
voice_channel_label: isSet3(object.voice_channel_label) ? globalThis.String(object.voice_channel_label) : "",
|
|
20341
|
-
voice_channel_id: isSet3(object.voice_channel_id) ?
|
|
20344
|
+
voice_channel_id: isSet3(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n,
|
|
20342
20345
|
last_screenshot: isSet3(object.last_screenshot) ? globalThis.String(object.last_screenshot) : ""
|
|
20343
20346
|
};
|
|
20344
20347
|
},
|
|
@@ -20350,8 +20353,8 @@ var VoiceJoinedEvent = {
|
|
|
20350
20353
|
if (message.clan_name !== "") {
|
|
20351
20354
|
obj.clan_name = message.clan_name;
|
|
20352
20355
|
}
|
|
20353
|
-
if (message.id !==
|
|
20354
|
-
obj.id = message.id
|
|
20356
|
+
if (message.id !== "") {
|
|
20357
|
+
obj.id = message.id;
|
|
20355
20358
|
}
|
|
20356
20359
|
if (message.participant !== "") {
|
|
20357
20360
|
obj.participant = message.participant;
|
|
@@ -20362,8 +20365,8 @@ var VoiceJoinedEvent = {
|
|
|
20362
20365
|
if (message.voice_channel_label !== "") {
|
|
20363
20366
|
obj.voice_channel_label = message.voice_channel_label;
|
|
20364
20367
|
}
|
|
20365
|
-
if (message.voice_channel_id !==
|
|
20366
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
20368
|
+
if (message.voice_channel_id !== 0n) {
|
|
20369
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
20367
20370
|
}
|
|
20368
20371
|
if (message.last_screenshot !== "") {
|
|
20369
20372
|
obj.last_screenshot = message.last_screenshot;
|
|
@@ -20377,25 +20380,22 @@ var VoiceJoinedEvent = {
|
|
|
20377
20380
|
const message = createBaseVoiceJoinedEvent();
|
|
20378
20381
|
message.clan_id = object.clan_id ?? 0n;
|
|
20379
20382
|
message.clan_name = object.clan_name ?? "";
|
|
20380
|
-
message.id = object.id ??
|
|
20383
|
+
message.id = object.id ?? "";
|
|
20381
20384
|
message.participant = object.participant ?? "";
|
|
20382
20385
|
message.user_id = object.user_id ?? 0n;
|
|
20383
20386
|
message.voice_channel_label = object.voice_channel_label ?? "";
|
|
20384
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
20387
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
20385
20388
|
message.last_screenshot = object.last_screenshot ?? "";
|
|
20386
20389
|
return message;
|
|
20387
20390
|
}
|
|
20388
20391
|
};
|
|
20389
20392
|
function createBaseVoiceStartedEvent() {
|
|
20390
|
-
return { id:
|
|
20393
|
+
return { id: "", clan_id: 0n, voice_channel_id: 0n };
|
|
20391
20394
|
}
|
|
20392
20395
|
var VoiceStartedEvent = {
|
|
20393
20396
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
20394
|
-
if (message.id !==
|
|
20395
|
-
|
|
20396
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
20397
|
-
}
|
|
20398
|
-
writer.uint32(8).int64(message.id.toString());
|
|
20397
|
+
if (message.id !== "") {
|
|
20398
|
+
writer.uint32(10).string(message.id);
|
|
20399
20399
|
}
|
|
20400
20400
|
if (message.clan_id !== 0n) {
|
|
20401
20401
|
if (BigInt.asIntN(64, message.clan_id) !== message.clan_id) {
|
|
@@ -20403,8 +20403,11 @@ var VoiceStartedEvent = {
|
|
|
20403
20403
|
}
|
|
20404
20404
|
writer.uint32(16).int64(message.clan_id.toString());
|
|
20405
20405
|
}
|
|
20406
|
-
if (message.voice_channel_id !==
|
|
20407
|
-
|
|
20406
|
+
if (message.voice_channel_id !== 0n) {
|
|
20407
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
20408
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
20409
|
+
}
|
|
20410
|
+
writer.uint32(24).int64(message.voice_channel_id.toString());
|
|
20408
20411
|
}
|
|
20409
20412
|
return writer;
|
|
20410
20413
|
},
|
|
@@ -20416,10 +20419,10 @@ var VoiceStartedEvent = {
|
|
|
20416
20419
|
const tag = reader.uint32();
|
|
20417
20420
|
switch (tag >>> 3) {
|
|
20418
20421
|
case 1:
|
|
20419
|
-
if (tag !==
|
|
20422
|
+
if (tag !== 10) {
|
|
20420
20423
|
break;
|
|
20421
20424
|
}
|
|
20422
|
-
message.id =
|
|
20425
|
+
message.id = reader.string();
|
|
20423
20426
|
continue;
|
|
20424
20427
|
case 2:
|
|
20425
20428
|
if (tag !== 16) {
|
|
@@ -20428,10 +20431,10 @@ var VoiceStartedEvent = {
|
|
|
20428
20431
|
message.clan_id = longToBigint2(reader.int64());
|
|
20429
20432
|
continue;
|
|
20430
20433
|
case 3:
|
|
20431
|
-
if (tag !==
|
|
20434
|
+
if (tag !== 24) {
|
|
20432
20435
|
break;
|
|
20433
20436
|
}
|
|
20434
|
-
message.voice_channel_id = reader.
|
|
20437
|
+
message.voice_channel_id = longToBigint2(reader.int64());
|
|
20435
20438
|
continue;
|
|
20436
20439
|
}
|
|
20437
20440
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -20443,21 +20446,21 @@ var VoiceStartedEvent = {
|
|
|
20443
20446
|
},
|
|
20444
20447
|
fromJSON(object) {
|
|
20445
20448
|
return {
|
|
20446
|
-
id: isSet3(object.id) ?
|
|
20449
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
20447
20450
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
20448
|
-
voice_channel_id: isSet3(object.voice_channel_id) ?
|
|
20451
|
+
voice_channel_id: isSet3(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n
|
|
20449
20452
|
};
|
|
20450
20453
|
},
|
|
20451
20454
|
toJSON(message) {
|
|
20452
20455
|
const obj = {};
|
|
20453
|
-
if (message.id !==
|
|
20454
|
-
obj.id = message.id
|
|
20456
|
+
if (message.id !== "") {
|
|
20457
|
+
obj.id = message.id;
|
|
20455
20458
|
}
|
|
20456
20459
|
if (message.clan_id !== 0n) {
|
|
20457
20460
|
obj.clan_id = message.clan_id.toString();
|
|
20458
20461
|
}
|
|
20459
|
-
if (message.voice_channel_id !==
|
|
20460
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
20462
|
+
if (message.voice_channel_id !== 0n) {
|
|
20463
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
20461
20464
|
}
|
|
20462
20465
|
return obj;
|
|
20463
20466
|
},
|
|
@@ -20466,9 +20469,9 @@ var VoiceStartedEvent = {
|
|
|
20466
20469
|
},
|
|
20467
20470
|
fromPartial(object) {
|
|
20468
20471
|
const message = createBaseVoiceStartedEvent();
|
|
20469
|
-
message.id = object.id ??
|
|
20472
|
+
message.id = object.id ?? "";
|
|
20470
20473
|
message.clan_id = object.clan_id ?? 0n;
|
|
20471
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
20474
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
20472
20475
|
return message;
|
|
20473
20476
|
}
|
|
20474
20477
|
};
|
|
@@ -20666,7 +20669,7 @@ function createBaseStreamingJoinedEvent() {
|
|
|
20666
20669
|
participant: "",
|
|
20667
20670
|
user_id: 0n,
|
|
20668
20671
|
streaming_channel_label: "",
|
|
20669
|
-
streaming_channel_id:
|
|
20672
|
+
streaming_channel_id: 0n
|
|
20670
20673
|
};
|
|
20671
20674
|
}
|
|
20672
20675
|
var StreamingJoinedEvent = {
|
|
@@ -20698,8 +20701,11 @@ var StreamingJoinedEvent = {
|
|
|
20698
20701
|
if (message.streaming_channel_label !== "") {
|
|
20699
20702
|
writer.uint32(50).string(message.streaming_channel_label);
|
|
20700
20703
|
}
|
|
20701
|
-
if (message.streaming_channel_id !==
|
|
20702
|
-
|
|
20704
|
+
if (message.streaming_channel_id !== 0n) {
|
|
20705
|
+
if (BigInt.asIntN(64, message.streaming_channel_id) !== message.streaming_channel_id) {
|
|
20706
|
+
throw new globalThis.Error("value provided for field message.streaming_channel_id of type int64 too large");
|
|
20707
|
+
}
|
|
20708
|
+
writer.uint32(56).int64(message.streaming_channel_id.toString());
|
|
20703
20709
|
}
|
|
20704
20710
|
return writer;
|
|
20705
20711
|
},
|
|
@@ -20747,10 +20753,10 @@ var StreamingJoinedEvent = {
|
|
|
20747
20753
|
message.streaming_channel_label = reader.string();
|
|
20748
20754
|
continue;
|
|
20749
20755
|
case 7:
|
|
20750
|
-
if (tag !==
|
|
20756
|
+
if (tag !== 56) {
|
|
20751
20757
|
break;
|
|
20752
20758
|
}
|
|
20753
|
-
message.streaming_channel_id = reader.
|
|
20759
|
+
message.streaming_channel_id = longToBigint2(reader.int64());
|
|
20754
20760
|
continue;
|
|
20755
20761
|
}
|
|
20756
20762
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -20768,7 +20774,7 @@ var StreamingJoinedEvent = {
|
|
|
20768
20774
|
participant: isSet3(object.participant) ? globalThis.String(object.participant) : "",
|
|
20769
20775
|
user_id: isSet3(object.user_id) ? BigInt(object.user_id) : 0n,
|
|
20770
20776
|
streaming_channel_label: isSet3(object.streaming_channel_label) ? globalThis.String(object.streaming_channel_label) : "",
|
|
20771
|
-
streaming_channel_id: isSet3(object.streaming_channel_id) ?
|
|
20777
|
+
streaming_channel_id: isSet3(object.streaming_channel_id) ? BigInt(object.streaming_channel_id) : 0n
|
|
20772
20778
|
};
|
|
20773
20779
|
},
|
|
20774
20780
|
toJSON(message) {
|
|
@@ -20791,8 +20797,8 @@ var StreamingJoinedEvent = {
|
|
|
20791
20797
|
if (message.streaming_channel_label !== "") {
|
|
20792
20798
|
obj.streaming_channel_label = message.streaming_channel_label;
|
|
20793
20799
|
}
|
|
20794
|
-
if (message.streaming_channel_id !==
|
|
20795
|
-
obj.streaming_channel_id = message.streaming_channel_id;
|
|
20800
|
+
if (message.streaming_channel_id !== 0n) {
|
|
20801
|
+
obj.streaming_channel_id = message.streaming_channel_id.toString();
|
|
20796
20802
|
}
|
|
20797
20803
|
return obj;
|
|
20798
20804
|
},
|
|
@@ -20807,7 +20813,7 @@ var StreamingJoinedEvent = {
|
|
|
20807
20813
|
message.participant = object.participant ?? "";
|
|
20808
20814
|
message.user_id = object.user_id ?? 0n;
|
|
20809
20815
|
message.streaming_channel_label = object.streaming_channel_label ?? "";
|
|
20810
|
-
message.streaming_channel_id = object.streaming_channel_id ??
|
|
20816
|
+
message.streaming_channel_id = object.streaming_channel_id ?? 0n;
|
|
20811
20817
|
return message;
|
|
20812
20818
|
}
|
|
20813
20819
|
};
|
|
@@ -21362,18 +21368,38 @@ var RoleEvent = {
|
|
|
21362
21368
|
}
|
|
21363
21369
|
writer.uint32(24).int64(message.user_id.toString());
|
|
21364
21370
|
}
|
|
21371
|
+
writer.uint32(34).fork();
|
|
21365
21372
|
for (const v of message.user_add_ids) {
|
|
21366
|
-
|
|
21373
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
21374
|
+
throw new globalThis.Error("a value provided in array field user_add_ids of type int64 is too large");
|
|
21375
|
+
}
|
|
21376
|
+
writer.int64(v.toString());
|
|
21367
21377
|
}
|
|
21378
|
+
writer.ldelim();
|
|
21379
|
+
writer.uint32(42).fork();
|
|
21368
21380
|
for (const v of message.user_remove_ids) {
|
|
21369
|
-
|
|
21381
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
21382
|
+
throw new globalThis.Error("a value provided in array field user_remove_ids of type int64 is too large");
|
|
21383
|
+
}
|
|
21384
|
+
writer.int64(v.toString());
|
|
21370
21385
|
}
|
|
21386
|
+
writer.ldelim();
|
|
21387
|
+
writer.uint32(50).fork();
|
|
21371
21388
|
for (const v of message.active_permission_ids) {
|
|
21372
|
-
|
|
21389
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
21390
|
+
throw new globalThis.Error("a value provided in array field active_permission_ids of type int64 is too large");
|
|
21391
|
+
}
|
|
21392
|
+
writer.int64(v.toString());
|
|
21373
21393
|
}
|
|
21394
|
+
writer.ldelim();
|
|
21395
|
+
writer.uint32(58).fork();
|
|
21374
21396
|
for (const v of message.remove_permission_ids) {
|
|
21375
|
-
|
|
21397
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
21398
|
+
throw new globalThis.Error("a value provided in array field remove_permission_ids of type int64 is too large");
|
|
21399
|
+
}
|
|
21400
|
+
writer.int64(v.toString());
|
|
21376
21401
|
}
|
|
21402
|
+
writer.ldelim();
|
|
21377
21403
|
return writer;
|
|
21378
21404
|
},
|
|
21379
21405
|
decode(input, length) {
|
|
@@ -21402,29 +21428,57 @@ var RoleEvent = {
|
|
|
21402
21428
|
message.user_id = longToBigint2(reader.int64());
|
|
21403
21429
|
continue;
|
|
21404
21430
|
case 4:
|
|
21405
|
-
if (tag
|
|
21406
|
-
|
|
21431
|
+
if (tag === 32) {
|
|
21432
|
+
message.user_add_ids.push(longToBigint2(reader.int64()));
|
|
21433
|
+
continue;
|
|
21407
21434
|
}
|
|
21408
|
-
|
|
21409
|
-
|
|
21435
|
+
if (tag === 34) {
|
|
21436
|
+
const end2 = reader.uint32() + reader.pos;
|
|
21437
|
+
while (reader.pos < end2) {
|
|
21438
|
+
message.user_add_ids.push(longToBigint2(reader.int64()));
|
|
21439
|
+
}
|
|
21440
|
+
continue;
|
|
21441
|
+
}
|
|
21442
|
+
break;
|
|
21410
21443
|
case 5:
|
|
21411
|
-
if (tag
|
|
21412
|
-
|
|
21444
|
+
if (tag === 40) {
|
|
21445
|
+
message.user_remove_ids.push(longToBigint2(reader.int64()));
|
|
21446
|
+
continue;
|
|
21413
21447
|
}
|
|
21414
|
-
|
|
21415
|
-
|
|
21448
|
+
if (tag === 42) {
|
|
21449
|
+
const end2 = reader.uint32() + reader.pos;
|
|
21450
|
+
while (reader.pos < end2) {
|
|
21451
|
+
message.user_remove_ids.push(longToBigint2(reader.int64()));
|
|
21452
|
+
}
|
|
21453
|
+
continue;
|
|
21454
|
+
}
|
|
21455
|
+
break;
|
|
21416
21456
|
case 6:
|
|
21417
|
-
if (tag
|
|
21418
|
-
|
|
21457
|
+
if (tag === 48) {
|
|
21458
|
+
message.active_permission_ids.push(longToBigint2(reader.int64()));
|
|
21459
|
+
continue;
|
|
21419
21460
|
}
|
|
21420
|
-
|
|
21421
|
-
|
|
21461
|
+
if (tag === 50) {
|
|
21462
|
+
const end2 = reader.uint32() + reader.pos;
|
|
21463
|
+
while (reader.pos < end2) {
|
|
21464
|
+
message.active_permission_ids.push(longToBigint2(reader.int64()));
|
|
21465
|
+
}
|
|
21466
|
+
continue;
|
|
21467
|
+
}
|
|
21468
|
+
break;
|
|
21422
21469
|
case 7:
|
|
21423
|
-
if (tag
|
|
21424
|
-
|
|
21470
|
+
if (tag === 56) {
|
|
21471
|
+
message.remove_permission_ids.push(longToBigint2(reader.int64()));
|
|
21472
|
+
continue;
|
|
21425
21473
|
}
|
|
21426
|
-
|
|
21427
|
-
|
|
21474
|
+
if (tag === 58) {
|
|
21475
|
+
const end2 = reader.uint32() + reader.pos;
|
|
21476
|
+
while (reader.pos < end2) {
|
|
21477
|
+
message.remove_permission_ids.push(longToBigint2(reader.int64()));
|
|
21478
|
+
}
|
|
21479
|
+
continue;
|
|
21480
|
+
}
|
|
21481
|
+
break;
|
|
21428
21482
|
}
|
|
21429
21483
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21430
21484
|
break;
|
|
@@ -21438,10 +21492,10 @@ var RoleEvent = {
|
|
|
21438
21492
|
role: isSet3(object.role) ? Role.fromJSON(object.role) : void 0,
|
|
21439
21493
|
status: isSet3(object.status) ? globalThis.Number(object.status) : 0,
|
|
21440
21494
|
user_id: isSet3(object.user_id) ? BigInt(object.user_id) : 0n,
|
|
21441
|
-
user_add_ids: globalThis.Array.isArray(object?.user_add_ids) ? object.user_add_ids.map((e) =>
|
|
21442
|
-
user_remove_ids: globalThis.Array.isArray(object?.user_remove_ids) ? object.user_remove_ids.map((e) =>
|
|
21443
|
-
active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids) ? object.active_permission_ids.map((e) =>
|
|
21444
|
-
remove_permission_ids: globalThis.Array.isArray(object?.remove_permission_ids) ? object.remove_permission_ids.map((e) =>
|
|
21495
|
+
user_add_ids: globalThis.Array.isArray(object?.user_add_ids) ? object.user_add_ids.map((e) => BigInt(e)) : [],
|
|
21496
|
+
user_remove_ids: globalThis.Array.isArray(object?.user_remove_ids) ? object.user_remove_ids.map((e) => BigInt(e)) : [],
|
|
21497
|
+
active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids) ? object.active_permission_ids.map((e) => BigInt(e)) : [],
|
|
21498
|
+
remove_permission_ids: globalThis.Array.isArray(object?.remove_permission_ids) ? object.remove_permission_ids.map((e) => BigInt(e)) : []
|
|
21445
21499
|
};
|
|
21446
21500
|
},
|
|
21447
21501
|
toJSON(message) {
|
|
@@ -21456,16 +21510,16 @@ var RoleEvent = {
|
|
|
21456
21510
|
obj.user_id = message.user_id.toString();
|
|
21457
21511
|
}
|
|
21458
21512
|
if (message.user_add_ids?.length) {
|
|
21459
|
-
obj.user_add_ids = message.user_add_ids;
|
|
21513
|
+
obj.user_add_ids = message.user_add_ids.map((e) => e.toString());
|
|
21460
21514
|
}
|
|
21461
21515
|
if (message.user_remove_ids?.length) {
|
|
21462
|
-
obj.user_remove_ids = message.user_remove_ids;
|
|
21516
|
+
obj.user_remove_ids = message.user_remove_ids.map((e) => e.toString());
|
|
21463
21517
|
}
|
|
21464
21518
|
if (message.active_permission_ids?.length) {
|
|
21465
|
-
obj.active_permission_ids = message.active_permission_ids;
|
|
21519
|
+
obj.active_permission_ids = message.active_permission_ids.map((e) => e.toString());
|
|
21466
21520
|
}
|
|
21467
21521
|
if (message.remove_permission_ids?.length) {
|
|
21468
|
-
obj.remove_permission_ids = message.remove_permission_ids;
|
|
21522
|
+
obj.remove_permission_ids = message.remove_permission_ids.map((e) => e.toString());
|
|
21469
21523
|
}
|
|
21470
21524
|
return obj;
|
|
21471
21525
|
},
|
|
@@ -21605,7 +21659,7 @@ var ChannelDeletedEvent = {
|
|
|
21605
21659
|
}
|
|
21606
21660
|
};
|
|
21607
21661
|
function createBaseClanDeletedEvent() {
|
|
21608
|
-
return { clan_id: 0n, deletor:
|
|
21662
|
+
return { clan_id: 0n, deletor: 0n };
|
|
21609
21663
|
}
|
|
21610
21664
|
var ClanDeletedEvent = {
|
|
21611
21665
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -21615,8 +21669,11 @@ var ClanDeletedEvent = {
|
|
|
21615
21669
|
}
|
|
21616
21670
|
writer.uint32(8).int64(message.clan_id.toString());
|
|
21617
21671
|
}
|
|
21618
|
-
if (message.deletor !==
|
|
21619
|
-
|
|
21672
|
+
if (message.deletor !== 0n) {
|
|
21673
|
+
if (BigInt.asIntN(64, message.deletor) !== message.deletor) {
|
|
21674
|
+
throw new globalThis.Error("value provided for field message.deletor of type int64 too large");
|
|
21675
|
+
}
|
|
21676
|
+
writer.uint32(16).int64(message.deletor.toString());
|
|
21620
21677
|
}
|
|
21621
21678
|
return writer;
|
|
21622
21679
|
},
|
|
@@ -21634,10 +21691,10 @@ var ClanDeletedEvent = {
|
|
|
21634
21691
|
message.clan_id = longToBigint2(reader.int64());
|
|
21635
21692
|
continue;
|
|
21636
21693
|
case 2:
|
|
21637
|
-
if (tag !==
|
|
21694
|
+
if (tag !== 16) {
|
|
21638
21695
|
break;
|
|
21639
21696
|
}
|
|
21640
|
-
message.deletor = reader.
|
|
21697
|
+
message.deletor = longToBigint2(reader.int64());
|
|
21641
21698
|
continue;
|
|
21642
21699
|
}
|
|
21643
21700
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -21650,7 +21707,7 @@ var ClanDeletedEvent = {
|
|
|
21650
21707
|
fromJSON(object) {
|
|
21651
21708
|
return {
|
|
21652
21709
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
21653
|
-
deletor: isSet3(object.deletor) ?
|
|
21710
|
+
deletor: isSet3(object.deletor) ? BigInt(object.deletor) : 0n
|
|
21654
21711
|
};
|
|
21655
21712
|
},
|
|
21656
21713
|
toJSON(message) {
|
|
@@ -21658,8 +21715,8 @@ var ClanDeletedEvent = {
|
|
|
21658
21715
|
if (message.clan_id !== 0n) {
|
|
21659
21716
|
obj.clan_id = message.clan_id.toString();
|
|
21660
21717
|
}
|
|
21661
|
-
if (message.deletor !==
|
|
21662
|
-
obj.deletor = message.deletor;
|
|
21718
|
+
if (message.deletor !== 0n) {
|
|
21719
|
+
obj.deletor = message.deletor.toString();
|
|
21663
21720
|
}
|
|
21664
21721
|
return obj;
|
|
21665
21722
|
},
|
|
@@ -21669,7 +21726,7 @@ var ClanDeletedEvent = {
|
|
|
21669
21726
|
fromPartial(object) {
|
|
21670
21727
|
const message = createBaseClanDeletedEvent();
|
|
21671
21728
|
message.clan_id = object.clan_id ?? 0n;
|
|
21672
|
-
message.deletor = object.deletor ??
|
|
21729
|
+
message.deletor = object.deletor ?? 0n;
|
|
21673
21730
|
return message;
|
|
21674
21731
|
}
|
|
21675
21732
|
};
|
|
@@ -23390,7 +23447,7 @@ function createBaseClanUpdatedEvent() {
|
|
|
23390
23447
|
banner: "",
|
|
23391
23448
|
status: 0,
|
|
23392
23449
|
is_onboarding: false,
|
|
23393
|
-
welcome_channel_id:
|
|
23450
|
+
welcome_channel_id: 0n,
|
|
23394
23451
|
onboarding_banner: "",
|
|
23395
23452
|
community_banner: "",
|
|
23396
23453
|
is_community: false,
|
|
@@ -23422,8 +23479,11 @@ var ClanUpdatedEvent = {
|
|
|
23422
23479
|
if (message.is_onboarding !== false) {
|
|
23423
23480
|
writer.uint32(48).bool(message.is_onboarding);
|
|
23424
23481
|
}
|
|
23425
|
-
if (message.welcome_channel_id !==
|
|
23426
|
-
|
|
23482
|
+
if (message.welcome_channel_id !== 0n) {
|
|
23483
|
+
if (BigInt.asIntN(64, message.welcome_channel_id) !== message.welcome_channel_id) {
|
|
23484
|
+
throw new globalThis.Error("value provided for field message.welcome_channel_id of type int64 too large");
|
|
23485
|
+
}
|
|
23486
|
+
writer.uint32(56).int64(message.welcome_channel_id.toString());
|
|
23427
23487
|
}
|
|
23428
23488
|
if (message.onboarding_banner !== "") {
|
|
23429
23489
|
writer.uint32(66).string(message.onboarding_banner);
|
|
@@ -23489,10 +23549,10 @@ var ClanUpdatedEvent = {
|
|
|
23489
23549
|
message.is_onboarding = reader.bool();
|
|
23490
23550
|
continue;
|
|
23491
23551
|
case 7:
|
|
23492
|
-
if (tag !==
|
|
23552
|
+
if (tag !== 56) {
|
|
23493
23553
|
break;
|
|
23494
23554
|
}
|
|
23495
|
-
message.welcome_channel_id = reader.
|
|
23555
|
+
message.welcome_channel_id = longToBigint2(reader.int64());
|
|
23496
23556
|
continue;
|
|
23497
23557
|
case 8:
|
|
23498
23558
|
if (tag !== 66) {
|
|
@@ -23546,7 +23606,7 @@ var ClanUpdatedEvent = {
|
|
|
23546
23606
|
banner: isSet3(object.banner) ? globalThis.String(object.banner) : "",
|
|
23547
23607
|
status: isSet3(object.status) ? globalThis.Number(object.status) : 0,
|
|
23548
23608
|
is_onboarding: isSet3(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
23549
|
-
welcome_channel_id: isSet3(object.welcome_channel_id) ?
|
|
23609
|
+
welcome_channel_id: isSet3(object.welcome_channel_id) ? BigInt(object.welcome_channel_id) : 0n,
|
|
23550
23610
|
onboarding_banner: isSet3(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
23551
23611
|
community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
23552
23612
|
is_community: isSet3(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
@@ -23575,8 +23635,8 @@ var ClanUpdatedEvent = {
|
|
|
23575
23635
|
if (message.is_onboarding !== false) {
|
|
23576
23636
|
obj.is_onboarding = message.is_onboarding;
|
|
23577
23637
|
}
|
|
23578
|
-
if (message.welcome_channel_id !==
|
|
23579
|
-
obj.welcome_channel_id = message.welcome_channel_id;
|
|
23638
|
+
if (message.welcome_channel_id !== 0n) {
|
|
23639
|
+
obj.welcome_channel_id = message.welcome_channel_id.toString();
|
|
23580
23640
|
}
|
|
23581
23641
|
if (message.onboarding_banner !== "") {
|
|
23582
23642
|
obj.onboarding_banner = message.onboarding_banner;
|
|
@@ -23609,7 +23669,7 @@ var ClanUpdatedEvent = {
|
|
|
23609
23669
|
message.banner = object.banner ?? "";
|
|
23610
23670
|
message.status = object.status ?? 0;
|
|
23611
23671
|
message.is_onboarding = object.is_onboarding ?? false;
|
|
23612
|
-
message.welcome_channel_id = object.welcome_channel_id ??
|
|
23672
|
+
message.welcome_channel_id = object.welcome_channel_id ?? 0n;
|
|
23613
23673
|
message.onboarding_banner = object.onboarding_banner ?? "";
|
|
23614
23674
|
message.community_banner = object.community_banner ?? "";
|
|
23615
23675
|
message.is_community = object.is_community ?? false;
|
|
@@ -23919,9 +23979,14 @@ var UserProfileRedis = {
|
|
|
23919
23979
|
for (const v of message.fcm_tokens) {
|
|
23920
23980
|
FCMTokens.encode(v, writer.uint32(66).fork()).ldelim();
|
|
23921
23981
|
}
|
|
23982
|
+
writer.uint32(74).fork();
|
|
23922
23983
|
for (const v of message.joined_clans) {
|
|
23923
|
-
|
|
23984
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
23985
|
+
throw new globalThis.Error("a value provided in array field joined_clans of type int64 is too large");
|
|
23986
|
+
}
|
|
23987
|
+
writer.int64(v.toString());
|
|
23924
23988
|
}
|
|
23989
|
+
writer.ldelim();
|
|
23925
23990
|
if (message.app_token !== "") {
|
|
23926
23991
|
writer.uint32(82).string(message.app_token);
|
|
23927
23992
|
}
|
|
@@ -23995,11 +24060,18 @@ var UserProfileRedis = {
|
|
|
23995
24060
|
message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
|
|
23996
24061
|
continue;
|
|
23997
24062
|
case 9:
|
|
23998
|
-
if (tag
|
|
23999
|
-
|
|
24063
|
+
if (tag === 72) {
|
|
24064
|
+
message.joined_clans.push(longToBigint2(reader.int64()));
|
|
24065
|
+
continue;
|
|
24000
24066
|
}
|
|
24001
|
-
|
|
24002
|
-
|
|
24067
|
+
if (tag === 74) {
|
|
24068
|
+
const end2 = reader.uint32() + reader.pos;
|
|
24069
|
+
while (reader.pos < end2) {
|
|
24070
|
+
message.joined_clans.push(longToBigint2(reader.int64()));
|
|
24071
|
+
}
|
|
24072
|
+
continue;
|
|
24073
|
+
}
|
|
24074
|
+
break;
|
|
24003
24075
|
case 10:
|
|
24004
24076
|
if (tag !== 82) {
|
|
24005
24077
|
break;
|
|
@@ -24048,7 +24120,7 @@ var UserProfileRedis = {
|
|
|
24048
24120
|
status: isSet3(object.status) ? globalThis.String(object.status) : "",
|
|
24049
24121
|
online: isSet3(object.online) ? globalThis.Boolean(object.online) : false,
|
|
24050
24122
|
fcm_tokens: globalThis.Array.isArray(object?.fcm_tokens) ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e)) : [],
|
|
24051
|
-
joined_clans: globalThis.Array.isArray(object?.joined_clans) ? object.joined_clans.map((e) =>
|
|
24123
|
+
joined_clans: globalThis.Array.isArray(object?.joined_clans) ? object.joined_clans.map((e) => BigInt(e)) : [],
|
|
24052
24124
|
app_token: isSet3(object.app_token) ? globalThis.String(object.app_token) : "",
|
|
24053
24125
|
create_time_second: isSet3(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
24054
24126
|
app_url: isSet3(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
@@ -24083,7 +24155,7 @@ var UserProfileRedis = {
|
|
|
24083
24155
|
obj.fcm_tokens = message.fcm_tokens.map((e) => FCMTokens.toJSON(e));
|
|
24084
24156
|
}
|
|
24085
24157
|
if (message.joined_clans?.length) {
|
|
24086
|
-
obj.joined_clans = message.joined_clans;
|
|
24158
|
+
obj.joined_clans = message.joined_clans.map((e) => e.toString());
|
|
24087
24159
|
}
|
|
24088
24160
|
if (message.app_token !== "") {
|
|
24089
24161
|
obj.app_token = message.app_token;
|
|
@@ -27044,7 +27116,7 @@ var MeetParticipantEvent = {
|
|
|
27044
27116
|
}
|
|
27045
27117
|
};
|
|
27046
27118
|
function createBaseTransferOwnershipEvent() {
|
|
27047
|
-
return { clan_id: 0n, prev_owner:
|
|
27119
|
+
return { clan_id: 0n, prev_owner: 0n, curr_owner: 0n };
|
|
27048
27120
|
}
|
|
27049
27121
|
var TransferOwnershipEvent = {
|
|
27050
27122
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -27054,11 +27126,17 @@ var TransferOwnershipEvent = {
|
|
|
27054
27126
|
}
|
|
27055
27127
|
writer.uint32(8).int64(message.clan_id.toString());
|
|
27056
27128
|
}
|
|
27057
|
-
if (message.prev_owner !==
|
|
27058
|
-
|
|
27129
|
+
if (message.prev_owner !== 0n) {
|
|
27130
|
+
if (BigInt.asIntN(64, message.prev_owner) !== message.prev_owner) {
|
|
27131
|
+
throw new globalThis.Error("value provided for field message.prev_owner of type int64 too large");
|
|
27132
|
+
}
|
|
27133
|
+
writer.uint32(16).int64(message.prev_owner.toString());
|
|
27059
27134
|
}
|
|
27060
|
-
if (message.curr_owner !==
|
|
27061
|
-
|
|
27135
|
+
if (message.curr_owner !== 0n) {
|
|
27136
|
+
if (BigInt.asIntN(64, message.curr_owner) !== message.curr_owner) {
|
|
27137
|
+
throw new globalThis.Error("value provided for field message.curr_owner of type int64 too large");
|
|
27138
|
+
}
|
|
27139
|
+
writer.uint32(24).int64(message.curr_owner.toString());
|
|
27062
27140
|
}
|
|
27063
27141
|
return writer;
|
|
27064
27142
|
},
|
|
@@ -27076,16 +27154,16 @@ var TransferOwnershipEvent = {
|
|
|
27076
27154
|
message.clan_id = longToBigint2(reader.int64());
|
|
27077
27155
|
continue;
|
|
27078
27156
|
case 2:
|
|
27079
|
-
if (tag !==
|
|
27157
|
+
if (tag !== 16) {
|
|
27080
27158
|
break;
|
|
27081
27159
|
}
|
|
27082
|
-
message.prev_owner = reader.
|
|
27160
|
+
message.prev_owner = longToBigint2(reader.int64());
|
|
27083
27161
|
continue;
|
|
27084
27162
|
case 3:
|
|
27085
|
-
if (tag !==
|
|
27163
|
+
if (tag !== 24) {
|
|
27086
27164
|
break;
|
|
27087
27165
|
}
|
|
27088
|
-
message.curr_owner = reader.
|
|
27166
|
+
message.curr_owner = longToBigint2(reader.int64());
|
|
27089
27167
|
continue;
|
|
27090
27168
|
}
|
|
27091
27169
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -27098,8 +27176,8 @@ var TransferOwnershipEvent = {
|
|
|
27098
27176
|
fromJSON(object) {
|
|
27099
27177
|
return {
|
|
27100
27178
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
27101
|
-
prev_owner: isSet3(object.prev_owner) ?
|
|
27102
|
-
curr_owner: isSet3(object.curr_owner) ?
|
|
27179
|
+
prev_owner: isSet3(object.prev_owner) ? BigInt(object.prev_owner) : 0n,
|
|
27180
|
+
curr_owner: isSet3(object.curr_owner) ? BigInt(object.curr_owner) : 0n
|
|
27103
27181
|
};
|
|
27104
27182
|
},
|
|
27105
27183
|
toJSON(message) {
|
|
@@ -27107,11 +27185,11 @@ var TransferOwnershipEvent = {
|
|
|
27107
27185
|
if (message.clan_id !== 0n) {
|
|
27108
27186
|
obj.clan_id = message.clan_id.toString();
|
|
27109
27187
|
}
|
|
27110
|
-
if (message.prev_owner !==
|
|
27111
|
-
obj.prev_owner = message.prev_owner;
|
|
27188
|
+
if (message.prev_owner !== 0n) {
|
|
27189
|
+
obj.prev_owner = message.prev_owner.toString();
|
|
27112
27190
|
}
|
|
27113
|
-
if (message.curr_owner !==
|
|
27114
|
-
obj.curr_owner = message.curr_owner;
|
|
27191
|
+
if (message.curr_owner !== 0n) {
|
|
27192
|
+
obj.curr_owner = message.curr_owner.toString();
|
|
27115
27193
|
}
|
|
27116
27194
|
return obj;
|
|
27117
27195
|
},
|
|
@@ -27121,8 +27199,8 @@ var TransferOwnershipEvent = {
|
|
|
27121
27199
|
fromPartial(object) {
|
|
27122
27200
|
const message = createBaseTransferOwnershipEvent();
|
|
27123
27201
|
message.clan_id = object.clan_id ?? 0n;
|
|
27124
|
-
message.prev_owner = object.prev_owner ??
|
|
27125
|
-
message.curr_owner = object.curr_owner ??
|
|
27202
|
+
message.prev_owner = object.prev_owner ?? 0n;
|
|
27203
|
+
message.curr_owner = object.curr_owner ?? 0n;
|
|
27126
27204
|
return message;
|
|
27127
27205
|
}
|
|
27128
27206
|
};
|