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
|
@@ -3341,18 +3341,15 @@ var MessageReaction = {
|
|
|
3341
3341
|
}
|
|
3342
3342
|
};
|
|
3343
3343
|
function createBaseMessageAttachment() {
|
|
3344
|
-
return { filename: "", size:
|
|
3344
|
+
return { filename: "", size: 0, url: "", filetype: "", width: 0, height: 0, thumbnail: "", duration: 0 };
|
|
3345
3345
|
}
|
|
3346
3346
|
var MessageAttachment = {
|
|
3347
3347
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
3348
3348
|
if (message.filename !== "") {
|
|
3349
3349
|
writer.uint32(10).string(message.filename);
|
|
3350
3350
|
}
|
|
3351
|
-
if (message.size !==
|
|
3352
|
-
|
|
3353
|
-
throw new globalThis.Error("value provided for field message.size of type int64 too large");
|
|
3354
|
-
}
|
|
3355
|
-
writer.uint32(16).int64(message.size.toString());
|
|
3351
|
+
if (message.size !== 0) {
|
|
3352
|
+
writer.uint32(16).int32(message.size);
|
|
3356
3353
|
}
|
|
3357
3354
|
if (message.url !== "") {
|
|
3358
3355
|
writer.uint32(26).string(message.url);
|
|
@@ -3391,7 +3388,7 @@ var MessageAttachment = {
|
|
|
3391
3388
|
if (tag !== 16) {
|
|
3392
3389
|
break;
|
|
3393
3390
|
}
|
|
3394
|
-
message.size =
|
|
3391
|
+
message.size = reader.int32();
|
|
3395
3392
|
continue;
|
|
3396
3393
|
case 3:
|
|
3397
3394
|
if (tag !== 26) {
|
|
@@ -3440,7 +3437,7 @@ var MessageAttachment = {
|
|
|
3440
3437
|
fromJSON(object) {
|
|
3441
3438
|
return {
|
|
3442
3439
|
filename: isSet2(object.filename) ? globalThis.String(object.filename) : "",
|
|
3443
|
-
size: isSet2(object.size) ?
|
|
3440
|
+
size: isSet2(object.size) ? globalThis.Number(object.size) : 0,
|
|
3444
3441
|
url: isSet2(object.url) ? globalThis.String(object.url) : "",
|
|
3445
3442
|
filetype: isSet2(object.filetype) ? globalThis.String(object.filetype) : "",
|
|
3446
3443
|
width: isSet2(object.width) ? globalThis.Number(object.width) : 0,
|
|
@@ -3454,8 +3451,8 @@ var MessageAttachment = {
|
|
|
3454
3451
|
if (message.filename !== "") {
|
|
3455
3452
|
obj.filename = message.filename;
|
|
3456
3453
|
}
|
|
3457
|
-
if (message.size !==
|
|
3458
|
-
obj.size = message.size
|
|
3454
|
+
if (message.size !== 0) {
|
|
3455
|
+
obj.size = Math.round(message.size);
|
|
3459
3456
|
}
|
|
3460
3457
|
if (message.url !== "") {
|
|
3461
3458
|
obj.url = message.url;
|
|
@@ -3483,7 +3480,7 @@ var MessageAttachment = {
|
|
|
3483
3480
|
fromPartial(object) {
|
|
3484
3481
|
const message = createBaseMessageAttachment();
|
|
3485
3482
|
message.filename = object.filename ?? "";
|
|
3486
|
-
message.size = object.size ??
|
|
3483
|
+
message.size = object.size ?? 0;
|
|
3487
3484
|
message.url = object.url ?? "";
|
|
3488
3485
|
message.filetype = object.filetype ?? "";
|
|
3489
3486
|
message.width = object.width ?? 0;
|
|
@@ -4026,7 +4023,7 @@ function createBaseChannelUserList_ChannelUser() {
|
|
|
4026
4023
|
clan_nick: "",
|
|
4027
4024
|
clan_avatar: "",
|
|
4028
4025
|
clan_id: 0n,
|
|
4029
|
-
added_by:
|
|
4026
|
+
added_by: 0n,
|
|
4030
4027
|
is_banned: false,
|
|
4031
4028
|
expired_ban_time: 0
|
|
4032
4029
|
};
|
|
@@ -4071,8 +4068,11 @@ var ChannelUserList_ChannelUser = {
|
|
|
4071
4068
|
}
|
|
4072
4069
|
writer.uint32(56).int64(message.clan_id.toString());
|
|
4073
4070
|
}
|
|
4074
|
-
if (message.added_by !==
|
|
4075
|
-
|
|
4071
|
+
if (message.added_by !== 0n) {
|
|
4072
|
+
if (BigInt.asIntN(64, message.added_by) !== message.added_by) {
|
|
4073
|
+
throw new globalThis.Error("value provided for field message.added_by of type int64 too large");
|
|
4074
|
+
}
|
|
4075
|
+
writer.uint32(64).int64(message.added_by.toString());
|
|
4076
4076
|
}
|
|
4077
4077
|
if (message.is_banned !== false) {
|
|
4078
4078
|
writer.uint32(72).bool(message.is_banned);
|
|
@@ -4139,10 +4139,10 @@ var ChannelUserList_ChannelUser = {
|
|
|
4139
4139
|
message.clan_id = longToBigint(reader.int64());
|
|
4140
4140
|
continue;
|
|
4141
4141
|
case 8:
|
|
4142
|
-
if (tag !==
|
|
4142
|
+
if (tag !== 64) {
|
|
4143
4143
|
break;
|
|
4144
4144
|
}
|
|
4145
|
-
message.added_by = reader.
|
|
4145
|
+
message.added_by = longToBigint(reader.int64());
|
|
4146
4146
|
continue;
|
|
4147
4147
|
case 9:
|
|
4148
4148
|
if (tag !== 72) {
|
|
@@ -4173,7 +4173,7 @@ var ChannelUserList_ChannelUser = {
|
|
|
4173
4173
|
clan_nick: isSet2(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
|
|
4174
4174
|
clan_avatar: isSet2(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
|
|
4175
4175
|
clan_id: isSet2(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
4176
|
-
added_by: isSet2(object.added_by) ?
|
|
4176
|
+
added_by: isSet2(object.added_by) ? BigInt(object.added_by) : 0n,
|
|
4177
4177
|
is_banned: isSet2(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
|
|
4178
4178
|
expired_ban_time: isSet2(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0
|
|
4179
4179
|
};
|
|
@@ -4201,8 +4201,8 @@ var ChannelUserList_ChannelUser = {
|
|
|
4201
4201
|
if (message.clan_id !== 0n) {
|
|
4202
4202
|
obj.clan_id = message.clan_id.toString();
|
|
4203
4203
|
}
|
|
4204
|
-
if (message.added_by !==
|
|
4205
|
-
obj.added_by = message.added_by;
|
|
4204
|
+
if (message.added_by !== 0n) {
|
|
4205
|
+
obj.added_by = message.added_by.toString();
|
|
4206
4206
|
}
|
|
4207
4207
|
if (message.is_banned !== false) {
|
|
4208
4208
|
obj.is_banned = message.is_banned;
|
|
@@ -4224,7 +4224,7 @@ var ChannelUserList_ChannelUser = {
|
|
|
4224
4224
|
message.clan_nick = object.clan_nick ?? "";
|
|
4225
4225
|
message.clan_avatar = object.clan_avatar ?? "";
|
|
4226
4226
|
message.clan_id = object.clan_id ?? 0n;
|
|
4227
|
-
message.added_by = object.added_by ??
|
|
4227
|
+
message.added_by = object.added_by ?? 0n;
|
|
4228
4228
|
message.is_banned = object.is_banned ?? false;
|
|
4229
4229
|
message.expired_ban_time = object.expired_ban_time ?? 0;
|
|
4230
4230
|
return message;
|
|
@@ -4392,7 +4392,7 @@ function createBaseChannelAttachment() {
|
|
|
4392
4392
|
filetype: "",
|
|
4393
4393
|
filesize: "",
|
|
4394
4394
|
url: "",
|
|
4395
|
-
uploader:
|
|
4395
|
+
uploader: 0n,
|
|
4396
4396
|
create_time_seconds: 0,
|
|
4397
4397
|
message_id: 0n,
|
|
4398
4398
|
width: 0,
|
|
@@ -4419,8 +4419,11 @@ var ChannelAttachment = {
|
|
|
4419
4419
|
if (message.url !== "") {
|
|
4420
4420
|
writer.uint32(42).string(message.url);
|
|
4421
4421
|
}
|
|
4422
|
-
if (message.uploader !==
|
|
4423
|
-
|
|
4422
|
+
if (message.uploader !== 0n) {
|
|
4423
|
+
if (BigInt.asIntN(64, message.uploader) !== message.uploader) {
|
|
4424
|
+
throw new globalThis.Error("value provided for field message.uploader of type int64 too large");
|
|
4425
|
+
}
|
|
4426
|
+
writer.uint32(48).int64(message.uploader.toString());
|
|
4424
4427
|
}
|
|
4425
4428
|
if (message.create_time_seconds !== 0) {
|
|
4426
4429
|
writer.uint32(56).uint32(message.create_time_seconds);
|
|
@@ -4477,10 +4480,10 @@ var ChannelAttachment = {
|
|
|
4477
4480
|
message.url = reader.string();
|
|
4478
4481
|
continue;
|
|
4479
4482
|
case 6:
|
|
4480
|
-
if (tag !==
|
|
4483
|
+
if (tag !== 48) {
|
|
4481
4484
|
break;
|
|
4482
4485
|
}
|
|
4483
|
-
message.uploader = reader.
|
|
4486
|
+
message.uploader = longToBigint(reader.int64());
|
|
4484
4487
|
continue;
|
|
4485
4488
|
case 7:
|
|
4486
4489
|
if (tag !== 56) {
|
|
@@ -4521,7 +4524,7 @@ var ChannelAttachment = {
|
|
|
4521
4524
|
filetype: isSet2(object.filetype) ? globalThis.String(object.filetype) : "",
|
|
4522
4525
|
filesize: isSet2(object.filesize) ? globalThis.String(object.filesize) : "",
|
|
4523
4526
|
url: isSet2(object.url) ? globalThis.String(object.url) : "",
|
|
4524
|
-
uploader: isSet2(object.uploader) ?
|
|
4527
|
+
uploader: isSet2(object.uploader) ? BigInt(object.uploader) : 0n,
|
|
4525
4528
|
create_time_seconds: isSet2(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
4526
4529
|
message_id: isSet2(object.message_id) ? BigInt(object.message_id) : 0n,
|
|
4527
4530
|
width: isSet2(object.width) ? globalThis.Number(object.width) : 0,
|
|
@@ -4545,8 +4548,8 @@ var ChannelAttachment = {
|
|
|
4545
4548
|
if (message.url !== "") {
|
|
4546
4549
|
obj.url = message.url;
|
|
4547
4550
|
}
|
|
4548
|
-
if (message.uploader !==
|
|
4549
|
-
obj.uploader = message.uploader;
|
|
4551
|
+
if (message.uploader !== 0n) {
|
|
4552
|
+
obj.uploader = message.uploader.toString();
|
|
4550
4553
|
}
|
|
4551
4554
|
if (message.create_time_seconds !== 0) {
|
|
4552
4555
|
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
@@ -4572,7 +4575,7 @@ var ChannelAttachment = {
|
|
|
4572
4575
|
message.filetype = object.filetype ?? "";
|
|
4573
4576
|
message.filesize = object.filesize ?? "";
|
|
4574
4577
|
message.url = object.url ?? "";
|
|
4575
|
-
message.uploader = object.uploader ??
|
|
4578
|
+
message.uploader = object.uploader ?? 0n;
|
|
4576
4579
|
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
4577
4580
|
message.message_id = object.message_id ?? 0n;
|
|
4578
4581
|
message.width = object.width ?? 0;
|
|
@@ -6070,7 +6073,7 @@ function createBaseUser() {
|
|
|
6070
6073
|
join_time_seconds: 0,
|
|
6071
6074
|
is_mobile: false,
|
|
6072
6075
|
dob_seconds: 0,
|
|
6073
|
-
mezon_id:
|
|
6076
|
+
mezon_id: "",
|
|
6074
6077
|
list_nick_names: [],
|
|
6075
6078
|
status: ""
|
|
6076
6079
|
};
|
|
@@ -6131,11 +6134,8 @@ var User = {
|
|
|
6131
6134
|
if (message.dob_seconds !== 0) {
|
|
6132
6135
|
writer.uint32(136).uint32(message.dob_seconds);
|
|
6133
6136
|
}
|
|
6134
|
-
if (message.mezon_id !==
|
|
6135
|
-
|
|
6136
|
-
throw new globalThis.Error("value provided for field message.mezon_id of type int64 too large");
|
|
6137
|
-
}
|
|
6138
|
-
writer.uint32(144).int64(message.mezon_id.toString());
|
|
6137
|
+
if (message.mezon_id !== "") {
|
|
6138
|
+
writer.uint32(146).string(message.mezon_id);
|
|
6139
6139
|
}
|
|
6140
6140
|
for (const v of message.list_nick_names) {
|
|
6141
6141
|
writer.uint32(154).string(v);
|
|
@@ -6255,10 +6255,10 @@ var User = {
|
|
|
6255
6255
|
message.dob_seconds = reader.uint32();
|
|
6256
6256
|
continue;
|
|
6257
6257
|
case 18:
|
|
6258
|
-
if (tag !==
|
|
6258
|
+
if (tag !== 146) {
|
|
6259
6259
|
break;
|
|
6260
6260
|
}
|
|
6261
|
-
message.mezon_id =
|
|
6261
|
+
message.mezon_id = reader.string();
|
|
6262
6262
|
continue;
|
|
6263
6263
|
case 19:
|
|
6264
6264
|
if (tag !== 154) {
|
|
@@ -6299,7 +6299,7 @@ var User = {
|
|
|
6299
6299
|
join_time_seconds: isSet2(object.join_time_seconds) ? globalThis.Number(object.join_time_seconds) : 0,
|
|
6300
6300
|
is_mobile: isSet2(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
6301
6301
|
dob_seconds: isSet2(object.dob_seconds) ? globalThis.Number(object.dob_seconds) : 0,
|
|
6302
|
-
mezon_id: isSet2(object.mezon_id) ?
|
|
6302
|
+
mezon_id: isSet2(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
6303
6303
|
list_nick_names: globalThis.Array.isArray(object?.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : [],
|
|
6304
6304
|
status: isSet2(object.status) ? globalThis.String(object.status) : ""
|
|
6305
6305
|
};
|
|
@@ -6357,8 +6357,8 @@ var User = {
|
|
|
6357
6357
|
if (message.dob_seconds !== 0) {
|
|
6358
6358
|
obj.dob_seconds = Math.round(message.dob_seconds);
|
|
6359
6359
|
}
|
|
6360
|
-
if (message.mezon_id !==
|
|
6361
|
-
obj.mezon_id = message.mezon_id
|
|
6360
|
+
if (message.mezon_id !== "") {
|
|
6361
|
+
obj.mezon_id = message.mezon_id;
|
|
6362
6362
|
}
|
|
6363
6363
|
if (message.list_nick_names?.length) {
|
|
6364
6364
|
obj.list_nick_names = message.list_nick_names;
|
|
@@ -6390,7 +6390,7 @@ var User = {
|
|
|
6390
6390
|
message.join_time_seconds = object.join_time_seconds ?? 0;
|
|
6391
6391
|
message.is_mobile = object.is_mobile ?? false;
|
|
6392
6392
|
message.dob_seconds = object.dob_seconds ?? 0;
|
|
6393
|
-
message.mezon_id = object.mezon_id ??
|
|
6393
|
+
message.mezon_id = object.mezon_id ?? "";
|
|
6394
6394
|
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
6395
6395
|
message.status = object.status ?? "";
|
|
6396
6396
|
return message;
|
|
@@ -12601,7 +12601,7 @@ var RoleListEventRequest = {
|
|
|
12601
12601
|
}
|
|
12602
12602
|
};
|
|
12603
12603
|
function createBaseRoleListEventResponse() {
|
|
12604
|
-
return { limit: 0, state: 0, cursor: "", clanId:
|
|
12604
|
+
return { limit: 0, state: 0, cursor: "", clanId: 0n, roles: void 0 };
|
|
12605
12605
|
}
|
|
12606
12606
|
var RoleListEventResponse = {
|
|
12607
12607
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -12614,8 +12614,11 @@ var RoleListEventResponse = {
|
|
|
12614
12614
|
if (message.cursor !== "") {
|
|
12615
12615
|
writer.uint32(26).string(message.cursor);
|
|
12616
12616
|
}
|
|
12617
|
-
if (message.clanId !==
|
|
12618
|
-
|
|
12617
|
+
if (message.clanId !== 0n) {
|
|
12618
|
+
if (BigInt.asIntN(64, message.clanId) !== message.clanId) {
|
|
12619
|
+
throw new globalThis.Error("value provided for field message.clanId of type int64 too large");
|
|
12620
|
+
}
|
|
12621
|
+
writer.uint32(32).int64(message.clanId.toString());
|
|
12619
12622
|
}
|
|
12620
12623
|
if (message.roles !== void 0) {
|
|
12621
12624
|
RoleList.encode(message.roles, writer.uint32(42).fork()).ldelim();
|
|
@@ -12648,10 +12651,10 @@ var RoleListEventResponse = {
|
|
|
12648
12651
|
message.cursor = reader.string();
|
|
12649
12652
|
continue;
|
|
12650
12653
|
case 4:
|
|
12651
|
-
if (tag !==
|
|
12654
|
+
if (tag !== 32) {
|
|
12652
12655
|
break;
|
|
12653
12656
|
}
|
|
12654
|
-
message.clanId = reader.
|
|
12657
|
+
message.clanId = longToBigint(reader.int64());
|
|
12655
12658
|
continue;
|
|
12656
12659
|
case 5:
|
|
12657
12660
|
if (tag !== 42) {
|
|
@@ -12672,7 +12675,7 @@ var RoleListEventResponse = {
|
|
|
12672
12675
|
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
12673
12676
|
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
12674
12677
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
12675
|
-
clanId: isSet2(object.clanId) ?
|
|
12678
|
+
clanId: isSet2(object.clanId) ? BigInt(object.clanId) : 0n,
|
|
12676
12679
|
roles: isSet2(object.roles) ? RoleList.fromJSON(object.roles) : void 0
|
|
12677
12680
|
};
|
|
12678
12681
|
},
|
|
@@ -12687,8 +12690,8 @@ var RoleListEventResponse = {
|
|
|
12687
12690
|
if (message.cursor !== "") {
|
|
12688
12691
|
obj.cursor = message.cursor;
|
|
12689
12692
|
}
|
|
12690
|
-
if (message.clanId !==
|
|
12691
|
-
obj.clanId = message.clanId;
|
|
12693
|
+
if (message.clanId !== 0n) {
|
|
12694
|
+
obj.clanId = message.clanId.toString();
|
|
12692
12695
|
}
|
|
12693
12696
|
if (message.roles !== void 0) {
|
|
12694
12697
|
obj.roles = RoleList.toJSON(message.roles);
|
|
@@ -12703,7 +12706,7 @@ var RoleListEventResponse = {
|
|
|
12703
12706
|
message.limit = object.limit ?? 0;
|
|
12704
12707
|
message.state = object.state ?? 0;
|
|
12705
12708
|
message.cursor = object.cursor ?? "";
|
|
12706
|
-
message.clanId = object.clanId ??
|
|
12709
|
+
message.clanId = object.clanId ?? 0n;
|
|
12707
12710
|
message.roles = object.roles !== void 0 && object.roles !== null ? RoleList.fromPartial(object.roles) : void 0;
|
|
12708
12711
|
return message;
|
|
12709
12712
|
}
|
|
@@ -14010,7 +14013,7 @@ function createBaseTokenSentEvent() {
|
|
|
14010
14013
|
amount: 0,
|
|
14011
14014
|
note: "",
|
|
14012
14015
|
extra_attribute: "",
|
|
14013
|
-
transaction_id:
|
|
14016
|
+
transaction_id: ""
|
|
14014
14017
|
};
|
|
14015
14018
|
}
|
|
14016
14019
|
var TokenSentEvent = {
|
|
@@ -14039,11 +14042,8 @@ var TokenSentEvent = {
|
|
|
14039
14042
|
if (message.extra_attribute !== "") {
|
|
14040
14043
|
writer.uint32(50).string(message.extra_attribute);
|
|
14041
14044
|
}
|
|
14042
|
-
if (message.transaction_id !==
|
|
14043
|
-
|
|
14044
|
-
throw new globalThis.Error("value provided for field message.transaction_id of type int64 too large");
|
|
14045
|
-
}
|
|
14046
|
-
writer.uint32(56).int64(message.transaction_id.toString());
|
|
14045
|
+
if (message.transaction_id !== "") {
|
|
14046
|
+
writer.uint32(58).string(message.transaction_id);
|
|
14047
14047
|
}
|
|
14048
14048
|
return writer;
|
|
14049
14049
|
},
|
|
@@ -14091,10 +14091,10 @@ var TokenSentEvent = {
|
|
|
14091
14091
|
message.extra_attribute = reader.string();
|
|
14092
14092
|
continue;
|
|
14093
14093
|
case 7:
|
|
14094
|
-
if (tag !==
|
|
14094
|
+
if (tag !== 58) {
|
|
14095
14095
|
break;
|
|
14096
14096
|
}
|
|
14097
|
-
message.transaction_id =
|
|
14097
|
+
message.transaction_id = reader.string();
|
|
14098
14098
|
continue;
|
|
14099
14099
|
}
|
|
14100
14100
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -14112,7 +14112,7 @@ var TokenSentEvent = {
|
|
|
14112
14112
|
amount: isSet2(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
14113
14113
|
note: isSet2(object.note) ? globalThis.String(object.note) : "",
|
|
14114
14114
|
extra_attribute: isSet2(object.extra_attribute) ? globalThis.String(object.extra_attribute) : "",
|
|
14115
|
-
transaction_id: isSet2(object.transaction_id) ?
|
|
14115
|
+
transaction_id: isSet2(object.transaction_id) ? globalThis.String(object.transaction_id) : ""
|
|
14116
14116
|
};
|
|
14117
14117
|
},
|
|
14118
14118
|
toJSON(message) {
|
|
@@ -14135,8 +14135,8 @@ var TokenSentEvent = {
|
|
|
14135
14135
|
if (message.extra_attribute !== "") {
|
|
14136
14136
|
obj.extra_attribute = message.extra_attribute;
|
|
14137
14137
|
}
|
|
14138
|
-
if (message.transaction_id !==
|
|
14139
|
-
obj.transaction_id = message.transaction_id
|
|
14138
|
+
if (message.transaction_id !== "") {
|
|
14139
|
+
obj.transaction_id = message.transaction_id;
|
|
14140
14140
|
}
|
|
14141
14141
|
return obj;
|
|
14142
14142
|
},
|
|
@@ -14151,7 +14151,7 @@ var TokenSentEvent = {
|
|
|
14151
14151
|
message.amount = object.amount ?? 0;
|
|
14152
14152
|
message.note = object.note ?? "";
|
|
14153
14153
|
message.extra_attribute = object.extra_attribute ?? "";
|
|
14154
|
-
message.transaction_id = object.transaction_id ??
|
|
14154
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
14155
14155
|
return message;
|
|
14156
14156
|
}
|
|
14157
14157
|
};
|
|
@@ -20132,15 +20132,12 @@ var MessageTypingEvent = {
|
|
|
20132
20132
|
}
|
|
20133
20133
|
};
|
|
20134
20134
|
function createBaseVoiceLeavedEvent() {
|
|
20135
|
-
return { id:
|
|
20135
|
+
return { id: "", clan_id: 0n, voice_channel_id: 0n, voice_user_id: 0n };
|
|
20136
20136
|
}
|
|
20137
20137
|
var VoiceLeavedEvent = {
|
|
20138
20138
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
20139
|
-
if (message.id !==
|
|
20140
|
-
|
|
20141
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
20142
|
-
}
|
|
20143
|
-
writer.uint32(8).int64(message.id.toString());
|
|
20139
|
+
if (message.id !== "") {
|
|
20140
|
+
writer.uint32(10).string(message.id);
|
|
20144
20141
|
}
|
|
20145
20142
|
if (message.clan_id !== 0n) {
|
|
20146
20143
|
if (BigInt.asIntN(64, message.clan_id) !== message.clan_id) {
|
|
@@ -20148,11 +20145,17 @@ var VoiceLeavedEvent = {
|
|
|
20148
20145
|
}
|
|
20149
20146
|
writer.uint32(16).int64(message.clan_id.toString());
|
|
20150
20147
|
}
|
|
20151
|
-
if (message.voice_channel_id !==
|
|
20152
|
-
|
|
20148
|
+
if (message.voice_channel_id !== 0n) {
|
|
20149
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
20150
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
20151
|
+
}
|
|
20152
|
+
writer.uint32(24).int64(message.voice_channel_id.toString());
|
|
20153
20153
|
}
|
|
20154
|
-
if (message.voice_user_id !==
|
|
20155
|
-
|
|
20154
|
+
if (message.voice_user_id !== 0n) {
|
|
20155
|
+
if (BigInt.asIntN(64, message.voice_user_id) !== message.voice_user_id) {
|
|
20156
|
+
throw new globalThis.Error("value provided for field message.voice_user_id of type int64 too large");
|
|
20157
|
+
}
|
|
20158
|
+
writer.uint32(32).int64(message.voice_user_id.toString());
|
|
20156
20159
|
}
|
|
20157
20160
|
return writer;
|
|
20158
20161
|
},
|
|
@@ -20164,10 +20167,10 @@ var VoiceLeavedEvent = {
|
|
|
20164
20167
|
const tag = reader.uint32();
|
|
20165
20168
|
switch (tag >>> 3) {
|
|
20166
20169
|
case 1:
|
|
20167
|
-
if (tag !==
|
|
20170
|
+
if (tag !== 10) {
|
|
20168
20171
|
break;
|
|
20169
20172
|
}
|
|
20170
|
-
message.id =
|
|
20173
|
+
message.id = reader.string();
|
|
20171
20174
|
continue;
|
|
20172
20175
|
case 2:
|
|
20173
20176
|
if (tag !== 16) {
|
|
@@ -20176,16 +20179,16 @@ var VoiceLeavedEvent = {
|
|
|
20176
20179
|
message.clan_id = longToBigint2(reader.int64());
|
|
20177
20180
|
continue;
|
|
20178
20181
|
case 3:
|
|
20179
|
-
if (tag !==
|
|
20182
|
+
if (tag !== 24) {
|
|
20180
20183
|
break;
|
|
20181
20184
|
}
|
|
20182
|
-
message.voice_channel_id = reader.
|
|
20185
|
+
message.voice_channel_id = longToBigint2(reader.int64());
|
|
20183
20186
|
continue;
|
|
20184
20187
|
case 4:
|
|
20185
|
-
if (tag !==
|
|
20188
|
+
if (tag !== 32) {
|
|
20186
20189
|
break;
|
|
20187
20190
|
}
|
|
20188
|
-
message.voice_user_id = reader.
|
|
20191
|
+
message.voice_user_id = longToBigint2(reader.int64());
|
|
20189
20192
|
continue;
|
|
20190
20193
|
}
|
|
20191
20194
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -20197,25 +20200,25 @@ var VoiceLeavedEvent = {
|
|
|
20197
20200
|
},
|
|
20198
20201
|
fromJSON(object) {
|
|
20199
20202
|
return {
|
|
20200
|
-
id: isSet3(object.id) ?
|
|
20203
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
20201
20204
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
20202
|
-
voice_channel_id: isSet3(object.voice_channel_id) ?
|
|
20203
|
-
voice_user_id: isSet3(object.voice_user_id) ?
|
|
20205
|
+
voice_channel_id: isSet3(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n,
|
|
20206
|
+
voice_user_id: isSet3(object.voice_user_id) ? BigInt(object.voice_user_id) : 0n
|
|
20204
20207
|
};
|
|
20205
20208
|
},
|
|
20206
20209
|
toJSON(message) {
|
|
20207
20210
|
const obj = {};
|
|
20208
|
-
if (message.id !==
|
|
20209
|
-
obj.id = message.id
|
|
20211
|
+
if (message.id !== "") {
|
|
20212
|
+
obj.id = message.id;
|
|
20210
20213
|
}
|
|
20211
20214
|
if (message.clan_id !== 0n) {
|
|
20212
20215
|
obj.clan_id = message.clan_id.toString();
|
|
20213
20216
|
}
|
|
20214
|
-
if (message.voice_channel_id !==
|
|
20215
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
20217
|
+
if (message.voice_channel_id !== 0n) {
|
|
20218
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
20216
20219
|
}
|
|
20217
|
-
if (message.voice_user_id !==
|
|
20218
|
-
obj.voice_user_id = message.voice_user_id;
|
|
20220
|
+
if (message.voice_user_id !== 0n) {
|
|
20221
|
+
obj.voice_user_id = message.voice_user_id.toString();
|
|
20219
20222
|
}
|
|
20220
20223
|
return obj;
|
|
20221
20224
|
},
|
|
@@ -20224,10 +20227,10 @@ var VoiceLeavedEvent = {
|
|
|
20224
20227
|
},
|
|
20225
20228
|
fromPartial(object) {
|
|
20226
20229
|
const message = createBaseVoiceLeavedEvent();
|
|
20227
|
-
message.id = object.id ??
|
|
20230
|
+
message.id = object.id ?? "";
|
|
20228
20231
|
message.clan_id = object.clan_id ?? 0n;
|
|
20229
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
20230
|
-
message.voice_user_id = object.voice_user_id ??
|
|
20232
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
20233
|
+
message.voice_user_id = object.voice_user_id ?? 0n;
|
|
20231
20234
|
return message;
|
|
20232
20235
|
}
|
|
20233
20236
|
};
|
|
@@ -20235,11 +20238,11 @@ function createBaseVoiceJoinedEvent() {
|
|
|
20235
20238
|
return {
|
|
20236
20239
|
clan_id: 0n,
|
|
20237
20240
|
clan_name: "",
|
|
20238
|
-
id:
|
|
20241
|
+
id: "",
|
|
20239
20242
|
participant: "",
|
|
20240
20243
|
user_id: 0n,
|
|
20241
20244
|
voice_channel_label: "",
|
|
20242
|
-
voice_channel_id:
|
|
20245
|
+
voice_channel_id: 0n,
|
|
20243
20246
|
last_screenshot: ""
|
|
20244
20247
|
};
|
|
20245
20248
|
}
|
|
@@ -20254,11 +20257,8 @@ var VoiceJoinedEvent = {
|
|
|
20254
20257
|
if (message.clan_name !== "") {
|
|
20255
20258
|
writer.uint32(18).string(message.clan_name);
|
|
20256
20259
|
}
|
|
20257
|
-
if (message.id !==
|
|
20258
|
-
|
|
20259
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
20260
|
-
}
|
|
20261
|
-
writer.uint32(24).int64(message.id.toString());
|
|
20260
|
+
if (message.id !== "") {
|
|
20261
|
+
writer.uint32(26).string(message.id);
|
|
20262
20262
|
}
|
|
20263
20263
|
if (message.participant !== "") {
|
|
20264
20264
|
writer.uint32(34).string(message.participant);
|
|
@@ -20272,8 +20272,11 @@ var VoiceJoinedEvent = {
|
|
|
20272
20272
|
if (message.voice_channel_label !== "") {
|
|
20273
20273
|
writer.uint32(50).string(message.voice_channel_label);
|
|
20274
20274
|
}
|
|
20275
|
-
if (message.voice_channel_id !==
|
|
20276
|
-
|
|
20275
|
+
if (message.voice_channel_id !== 0n) {
|
|
20276
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
20277
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
20278
|
+
}
|
|
20279
|
+
writer.uint32(56).int64(message.voice_channel_id.toString());
|
|
20277
20280
|
}
|
|
20278
20281
|
if (message.last_screenshot !== "") {
|
|
20279
20282
|
writer.uint32(66).string(message.last_screenshot);
|
|
@@ -20300,10 +20303,10 @@ var VoiceJoinedEvent = {
|
|
|
20300
20303
|
message.clan_name = reader.string();
|
|
20301
20304
|
continue;
|
|
20302
20305
|
case 3:
|
|
20303
|
-
if (tag !==
|
|
20306
|
+
if (tag !== 26) {
|
|
20304
20307
|
break;
|
|
20305
20308
|
}
|
|
20306
|
-
message.id =
|
|
20309
|
+
message.id = reader.string();
|
|
20307
20310
|
continue;
|
|
20308
20311
|
case 4:
|
|
20309
20312
|
if (tag !== 34) {
|
|
@@ -20324,10 +20327,10 @@ var VoiceJoinedEvent = {
|
|
|
20324
20327
|
message.voice_channel_label = reader.string();
|
|
20325
20328
|
continue;
|
|
20326
20329
|
case 7:
|
|
20327
|
-
if (tag !==
|
|
20330
|
+
if (tag !== 56) {
|
|
20328
20331
|
break;
|
|
20329
20332
|
}
|
|
20330
|
-
message.voice_channel_id = reader.
|
|
20333
|
+
message.voice_channel_id = longToBigint2(reader.int64());
|
|
20331
20334
|
continue;
|
|
20332
20335
|
case 8:
|
|
20333
20336
|
if (tag !== 66) {
|
|
@@ -20347,11 +20350,11 @@ var VoiceJoinedEvent = {
|
|
|
20347
20350
|
return {
|
|
20348
20351
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
20349
20352
|
clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
20350
|
-
id: isSet3(object.id) ?
|
|
20353
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
20351
20354
|
participant: isSet3(object.participant) ? globalThis.String(object.participant) : "",
|
|
20352
20355
|
user_id: isSet3(object.user_id) ? BigInt(object.user_id) : 0n,
|
|
20353
20356
|
voice_channel_label: isSet3(object.voice_channel_label) ? globalThis.String(object.voice_channel_label) : "",
|
|
20354
|
-
voice_channel_id: isSet3(object.voice_channel_id) ?
|
|
20357
|
+
voice_channel_id: isSet3(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n,
|
|
20355
20358
|
last_screenshot: isSet3(object.last_screenshot) ? globalThis.String(object.last_screenshot) : ""
|
|
20356
20359
|
};
|
|
20357
20360
|
},
|
|
@@ -20363,8 +20366,8 @@ var VoiceJoinedEvent = {
|
|
|
20363
20366
|
if (message.clan_name !== "") {
|
|
20364
20367
|
obj.clan_name = message.clan_name;
|
|
20365
20368
|
}
|
|
20366
|
-
if (message.id !==
|
|
20367
|
-
obj.id = message.id
|
|
20369
|
+
if (message.id !== "") {
|
|
20370
|
+
obj.id = message.id;
|
|
20368
20371
|
}
|
|
20369
20372
|
if (message.participant !== "") {
|
|
20370
20373
|
obj.participant = message.participant;
|
|
@@ -20375,8 +20378,8 @@ var VoiceJoinedEvent = {
|
|
|
20375
20378
|
if (message.voice_channel_label !== "") {
|
|
20376
20379
|
obj.voice_channel_label = message.voice_channel_label;
|
|
20377
20380
|
}
|
|
20378
|
-
if (message.voice_channel_id !==
|
|
20379
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
20381
|
+
if (message.voice_channel_id !== 0n) {
|
|
20382
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
20380
20383
|
}
|
|
20381
20384
|
if (message.last_screenshot !== "") {
|
|
20382
20385
|
obj.last_screenshot = message.last_screenshot;
|
|
@@ -20390,25 +20393,22 @@ var VoiceJoinedEvent = {
|
|
|
20390
20393
|
const message = createBaseVoiceJoinedEvent();
|
|
20391
20394
|
message.clan_id = object.clan_id ?? 0n;
|
|
20392
20395
|
message.clan_name = object.clan_name ?? "";
|
|
20393
|
-
message.id = object.id ??
|
|
20396
|
+
message.id = object.id ?? "";
|
|
20394
20397
|
message.participant = object.participant ?? "";
|
|
20395
20398
|
message.user_id = object.user_id ?? 0n;
|
|
20396
20399
|
message.voice_channel_label = object.voice_channel_label ?? "";
|
|
20397
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
20400
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
20398
20401
|
message.last_screenshot = object.last_screenshot ?? "";
|
|
20399
20402
|
return message;
|
|
20400
20403
|
}
|
|
20401
20404
|
};
|
|
20402
20405
|
function createBaseVoiceStartedEvent() {
|
|
20403
|
-
return { id:
|
|
20406
|
+
return { id: "", clan_id: 0n, voice_channel_id: 0n };
|
|
20404
20407
|
}
|
|
20405
20408
|
var VoiceStartedEvent = {
|
|
20406
20409
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
20407
|
-
if (message.id !==
|
|
20408
|
-
|
|
20409
|
-
throw new globalThis.Error("value provided for field message.id of type int64 too large");
|
|
20410
|
-
}
|
|
20411
|
-
writer.uint32(8).int64(message.id.toString());
|
|
20410
|
+
if (message.id !== "") {
|
|
20411
|
+
writer.uint32(10).string(message.id);
|
|
20412
20412
|
}
|
|
20413
20413
|
if (message.clan_id !== 0n) {
|
|
20414
20414
|
if (BigInt.asIntN(64, message.clan_id) !== message.clan_id) {
|
|
@@ -20416,8 +20416,11 @@ var VoiceStartedEvent = {
|
|
|
20416
20416
|
}
|
|
20417
20417
|
writer.uint32(16).int64(message.clan_id.toString());
|
|
20418
20418
|
}
|
|
20419
|
-
if (message.voice_channel_id !==
|
|
20420
|
-
|
|
20419
|
+
if (message.voice_channel_id !== 0n) {
|
|
20420
|
+
if (BigInt.asIntN(64, message.voice_channel_id) !== message.voice_channel_id) {
|
|
20421
|
+
throw new globalThis.Error("value provided for field message.voice_channel_id of type int64 too large");
|
|
20422
|
+
}
|
|
20423
|
+
writer.uint32(24).int64(message.voice_channel_id.toString());
|
|
20421
20424
|
}
|
|
20422
20425
|
return writer;
|
|
20423
20426
|
},
|
|
@@ -20429,10 +20432,10 @@ var VoiceStartedEvent = {
|
|
|
20429
20432
|
const tag = reader.uint32();
|
|
20430
20433
|
switch (tag >>> 3) {
|
|
20431
20434
|
case 1:
|
|
20432
|
-
if (tag !==
|
|
20435
|
+
if (tag !== 10) {
|
|
20433
20436
|
break;
|
|
20434
20437
|
}
|
|
20435
|
-
message.id =
|
|
20438
|
+
message.id = reader.string();
|
|
20436
20439
|
continue;
|
|
20437
20440
|
case 2:
|
|
20438
20441
|
if (tag !== 16) {
|
|
@@ -20441,10 +20444,10 @@ var VoiceStartedEvent = {
|
|
|
20441
20444
|
message.clan_id = longToBigint2(reader.int64());
|
|
20442
20445
|
continue;
|
|
20443
20446
|
case 3:
|
|
20444
|
-
if (tag !==
|
|
20447
|
+
if (tag !== 24) {
|
|
20445
20448
|
break;
|
|
20446
20449
|
}
|
|
20447
|
-
message.voice_channel_id = reader.
|
|
20450
|
+
message.voice_channel_id = longToBigint2(reader.int64());
|
|
20448
20451
|
continue;
|
|
20449
20452
|
}
|
|
20450
20453
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -20456,21 +20459,21 @@ var VoiceStartedEvent = {
|
|
|
20456
20459
|
},
|
|
20457
20460
|
fromJSON(object) {
|
|
20458
20461
|
return {
|
|
20459
|
-
id: isSet3(object.id) ?
|
|
20462
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
20460
20463
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
20461
|
-
voice_channel_id: isSet3(object.voice_channel_id) ?
|
|
20464
|
+
voice_channel_id: isSet3(object.voice_channel_id) ? BigInt(object.voice_channel_id) : 0n
|
|
20462
20465
|
};
|
|
20463
20466
|
},
|
|
20464
20467
|
toJSON(message) {
|
|
20465
20468
|
const obj = {};
|
|
20466
|
-
if (message.id !==
|
|
20467
|
-
obj.id = message.id
|
|
20469
|
+
if (message.id !== "") {
|
|
20470
|
+
obj.id = message.id;
|
|
20468
20471
|
}
|
|
20469
20472
|
if (message.clan_id !== 0n) {
|
|
20470
20473
|
obj.clan_id = message.clan_id.toString();
|
|
20471
20474
|
}
|
|
20472
|
-
if (message.voice_channel_id !==
|
|
20473
|
-
obj.voice_channel_id = message.voice_channel_id;
|
|
20475
|
+
if (message.voice_channel_id !== 0n) {
|
|
20476
|
+
obj.voice_channel_id = message.voice_channel_id.toString();
|
|
20474
20477
|
}
|
|
20475
20478
|
return obj;
|
|
20476
20479
|
},
|
|
@@ -20479,9 +20482,9 @@ var VoiceStartedEvent = {
|
|
|
20479
20482
|
},
|
|
20480
20483
|
fromPartial(object) {
|
|
20481
20484
|
const message = createBaseVoiceStartedEvent();
|
|
20482
|
-
message.id = object.id ??
|
|
20485
|
+
message.id = object.id ?? "";
|
|
20483
20486
|
message.clan_id = object.clan_id ?? 0n;
|
|
20484
|
-
message.voice_channel_id = object.voice_channel_id ??
|
|
20487
|
+
message.voice_channel_id = object.voice_channel_id ?? 0n;
|
|
20485
20488
|
return message;
|
|
20486
20489
|
}
|
|
20487
20490
|
};
|
|
@@ -20679,7 +20682,7 @@ function createBaseStreamingJoinedEvent() {
|
|
|
20679
20682
|
participant: "",
|
|
20680
20683
|
user_id: 0n,
|
|
20681
20684
|
streaming_channel_label: "",
|
|
20682
|
-
streaming_channel_id:
|
|
20685
|
+
streaming_channel_id: 0n
|
|
20683
20686
|
};
|
|
20684
20687
|
}
|
|
20685
20688
|
var StreamingJoinedEvent = {
|
|
@@ -20711,8 +20714,11 @@ var StreamingJoinedEvent = {
|
|
|
20711
20714
|
if (message.streaming_channel_label !== "") {
|
|
20712
20715
|
writer.uint32(50).string(message.streaming_channel_label);
|
|
20713
20716
|
}
|
|
20714
|
-
if (message.streaming_channel_id !==
|
|
20715
|
-
|
|
20717
|
+
if (message.streaming_channel_id !== 0n) {
|
|
20718
|
+
if (BigInt.asIntN(64, message.streaming_channel_id) !== message.streaming_channel_id) {
|
|
20719
|
+
throw new globalThis.Error("value provided for field message.streaming_channel_id of type int64 too large");
|
|
20720
|
+
}
|
|
20721
|
+
writer.uint32(56).int64(message.streaming_channel_id.toString());
|
|
20716
20722
|
}
|
|
20717
20723
|
return writer;
|
|
20718
20724
|
},
|
|
@@ -20760,10 +20766,10 @@ var StreamingJoinedEvent = {
|
|
|
20760
20766
|
message.streaming_channel_label = reader.string();
|
|
20761
20767
|
continue;
|
|
20762
20768
|
case 7:
|
|
20763
|
-
if (tag !==
|
|
20769
|
+
if (tag !== 56) {
|
|
20764
20770
|
break;
|
|
20765
20771
|
}
|
|
20766
|
-
message.streaming_channel_id = reader.
|
|
20772
|
+
message.streaming_channel_id = longToBigint2(reader.int64());
|
|
20767
20773
|
continue;
|
|
20768
20774
|
}
|
|
20769
20775
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -20781,7 +20787,7 @@ var StreamingJoinedEvent = {
|
|
|
20781
20787
|
participant: isSet3(object.participant) ? globalThis.String(object.participant) : "",
|
|
20782
20788
|
user_id: isSet3(object.user_id) ? BigInt(object.user_id) : 0n,
|
|
20783
20789
|
streaming_channel_label: isSet3(object.streaming_channel_label) ? globalThis.String(object.streaming_channel_label) : "",
|
|
20784
|
-
streaming_channel_id: isSet3(object.streaming_channel_id) ?
|
|
20790
|
+
streaming_channel_id: isSet3(object.streaming_channel_id) ? BigInt(object.streaming_channel_id) : 0n
|
|
20785
20791
|
};
|
|
20786
20792
|
},
|
|
20787
20793
|
toJSON(message) {
|
|
@@ -20804,8 +20810,8 @@ var StreamingJoinedEvent = {
|
|
|
20804
20810
|
if (message.streaming_channel_label !== "") {
|
|
20805
20811
|
obj.streaming_channel_label = message.streaming_channel_label;
|
|
20806
20812
|
}
|
|
20807
|
-
if (message.streaming_channel_id !==
|
|
20808
|
-
obj.streaming_channel_id = message.streaming_channel_id;
|
|
20813
|
+
if (message.streaming_channel_id !== 0n) {
|
|
20814
|
+
obj.streaming_channel_id = message.streaming_channel_id.toString();
|
|
20809
20815
|
}
|
|
20810
20816
|
return obj;
|
|
20811
20817
|
},
|
|
@@ -20820,7 +20826,7 @@ var StreamingJoinedEvent = {
|
|
|
20820
20826
|
message.participant = object.participant ?? "";
|
|
20821
20827
|
message.user_id = object.user_id ?? 0n;
|
|
20822
20828
|
message.streaming_channel_label = object.streaming_channel_label ?? "";
|
|
20823
|
-
message.streaming_channel_id = object.streaming_channel_id ??
|
|
20829
|
+
message.streaming_channel_id = object.streaming_channel_id ?? 0n;
|
|
20824
20830
|
return message;
|
|
20825
20831
|
}
|
|
20826
20832
|
};
|
|
@@ -21375,18 +21381,38 @@ var RoleEvent = {
|
|
|
21375
21381
|
}
|
|
21376
21382
|
writer.uint32(24).int64(message.user_id.toString());
|
|
21377
21383
|
}
|
|
21384
|
+
writer.uint32(34).fork();
|
|
21378
21385
|
for (const v of message.user_add_ids) {
|
|
21379
|
-
|
|
21386
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
21387
|
+
throw new globalThis.Error("a value provided in array field user_add_ids of type int64 is too large");
|
|
21388
|
+
}
|
|
21389
|
+
writer.int64(v.toString());
|
|
21380
21390
|
}
|
|
21391
|
+
writer.ldelim();
|
|
21392
|
+
writer.uint32(42).fork();
|
|
21381
21393
|
for (const v of message.user_remove_ids) {
|
|
21382
|
-
|
|
21394
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
21395
|
+
throw new globalThis.Error("a value provided in array field user_remove_ids of type int64 is too large");
|
|
21396
|
+
}
|
|
21397
|
+
writer.int64(v.toString());
|
|
21383
21398
|
}
|
|
21399
|
+
writer.ldelim();
|
|
21400
|
+
writer.uint32(50).fork();
|
|
21384
21401
|
for (const v of message.active_permission_ids) {
|
|
21385
|
-
|
|
21402
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
21403
|
+
throw new globalThis.Error("a value provided in array field active_permission_ids of type int64 is too large");
|
|
21404
|
+
}
|
|
21405
|
+
writer.int64(v.toString());
|
|
21386
21406
|
}
|
|
21407
|
+
writer.ldelim();
|
|
21408
|
+
writer.uint32(58).fork();
|
|
21387
21409
|
for (const v of message.remove_permission_ids) {
|
|
21388
|
-
|
|
21410
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
21411
|
+
throw new globalThis.Error("a value provided in array field remove_permission_ids of type int64 is too large");
|
|
21412
|
+
}
|
|
21413
|
+
writer.int64(v.toString());
|
|
21389
21414
|
}
|
|
21415
|
+
writer.ldelim();
|
|
21390
21416
|
return writer;
|
|
21391
21417
|
},
|
|
21392
21418
|
decode(input, length) {
|
|
@@ -21415,29 +21441,57 @@ var RoleEvent = {
|
|
|
21415
21441
|
message.user_id = longToBigint2(reader.int64());
|
|
21416
21442
|
continue;
|
|
21417
21443
|
case 4:
|
|
21418
|
-
if (tag
|
|
21419
|
-
|
|
21444
|
+
if (tag === 32) {
|
|
21445
|
+
message.user_add_ids.push(longToBigint2(reader.int64()));
|
|
21446
|
+
continue;
|
|
21420
21447
|
}
|
|
21421
|
-
|
|
21422
|
-
|
|
21448
|
+
if (tag === 34) {
|
|
21449
|
+
const end2 = reader.uint32() + reader.pos;
|
|
21450
|
+
while (reader.pos < end2) {
|
|
21451
|
+
message.user_add_ids.push(longToBigint2(reader.int64()));
|
|
21452
|
+
}
|
|
21453
|
+
continue;
|
|
21454
|
+
}
|
|
21455
|
+
break;
|
|
21423
21456
|
case 5:
|
|
21424
|
-
if (tag
|
|
21425
|
-
|
|
21457
|
+
if (tag === 40) {
|
|
21458
|
+
message.user_remove_ids.push(longToBigint2(reader.int64()));
|
|
21459
|
+
continue;
|
|
21426
21460
|
}
|
|
21427
|
-
|
|
21428
|
-
|
|
21461
|
+
if (tag === 42) {
|
|
21462
|
+
const end2 = reader.uint32() + reader.pos;
|
|
21463
|
+
while (reader.pos < end2) {
|
|
21464
|
+
message.user_remove_ids.push(longToBigint2(reader.int64()));
|
|
21465
|
+
}
|
|
21466
|
+
continue;
|
|
21467
|
+
}
|
|
21468
|
+
break;
|
|
21429
21469
|
case 6:
|
|
21430
|
-
if (tag
|
|
21431
|
-
|
|
21470
|
+
if (tag === 48) {
|
|
21471
|
+
message.active_permission_ids.push(longToBigint2(reader.int64()));
|
|
21472
|
+
continue;
|
|
21432
21473
|
}
|
|
21433
|
-
|
|
21434
|
-
|
|
21474
|
+
if (tag === 50) {
|
|
21475
|
+
const end2 = reader.uint32() + reader.pos;
|
|
21476
|
+
while (reader.pos < end2) {
|
|
21477
|
+
message.active_permission_ids.push(longToBigint2(reader.int64()));
|
|
21478
|
+
}
|
|
21479
|
+
continue;
|
|
21480
|
+
}
|
|
21481
|
+
break;
|
|
21435
21482
|
case 7:
|
|
21436
|
-
if (tag
|
|
21437
|
-
|
|
21483
|
+
if (tag === 56) {
|
|
21484
|
+
message.remove_permission_ids.push(longToBigint2(reader.int64()));
|
|
21485
|
+
continue;
|
|
21438
21486
|
}
|
|
21439
|
-
|
|
21440
|
-
|
|
21487
|
+
if (tag === 58) {
|
|
21488
|
+
const end2 = reader.uint32() + reader.pos;
|
|
21489
|
+
while (reader.pos < end2) {
|
|
21490
|
+
message.remove_permission_ids.push(longToBigint2(reader.int64()));
|
|
21491
|
+
}
|
|
21492
|
+
continue;
|
|
21493
|
+
}
|
|
21494
|
+
break;
|
|
21441
21495
|
}
|
|
21442
21496
|
if ((tag & 7) === 4 || tag === 0) {
|
|
21443
21497
|
break;
|
|
@@ -21451,10 +21505,10 @@ var RoleEvent = {
|
|
|
21451
21505
|
role: isSet3(object.role) ? Role.fromJSON(object.role) : void 0,
|
|
21452
21506
|
status: isSet3(object.status) ? globalThis.Number(object.status) : 0,
|
|
21453
21507
|
user_id: isSet3(object.user_id) ? BigInt(object.user_id) : 0n,
|
|
21454
|
-
user_add_ids: globalThis.Array.isArray(object?.user_add_ids) ? object.user_add_ids.map((e) =>
|
|
21455
|
-
user_remove_ids: globalThis.Array.isArray(object?.user_remove_ids) ? object.user_remove_ids.map((e) =>
|
|
21456
|
-
active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids) ? object.active_permission_ids.map((e) =>
|
|
21457
|
-
remove_permission_ids: globalThis.Array.isArray(object?.remove_permission_ids) ? object.remove_permission_ids.map((e) =>
|
|
21508
|
+
user_add_ids: globalThis.Array.isArray(object?.user_add_ids) ? object.user_add_ids.map((e) => BigInt(e)) : [],
|
|
21509
|
+
user_remove_ids: globalThis.Array.isArray(object?.user_remove_ids) ? object.user_remove_ids.map((e) => BigInt(e)) : [],
|
|
21510
|
+
active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids) ? object.active_permission_ids.map((e) => BigInt(e)) : [],
|
|
21511
|
+
remove_permission_ids: globalThis.Array.isArray(object?.remove_permission_ids) ? object.remove_permission_ids.map((e) => BigInt(e)) : []
|
|
21458
21512
|
};
|
|
21459
21513
|
},
|
|
21460
21514
|
toJSON(message) {
|
|
@@ -21469,16 +21523,16 @@ var RoleEvent = {
|
|
|
21469
21523
|
obj.user_id = message.user_id.toString();
|
|
21470
21524
|
}
|
|
21471
21525
|
if (message.user_add_ids?.length) {
|
|
21472
|
-
obj.user_add_ids = message.user_add_ids;
|
|
21526
|
+
obj.user_add_ids = message.user_add_ids.map((e) => e.toString());
|
|
21473
21527
|
}
|
|
21474
21528
|
if (message.user_remove_ids?.length) {
|
|
21475
|
-
obj.user_remove_ids = message.user_remove_ids;
|
|
21529
|
+
obj.user_remove_ids = message.user_remove_ids.map((e) => e.toString());
|
|
21476
21530
|
}
|
|
21477
21531
|
if (message.active_permission_ids?.length) {
|
|
21478
|
-
obj.active_permission_ids = message.active_permission_ids;
|
|
21532
|
+
obj.active_permission_ids = message.active_permission_ids.map((e) => e.toString());
|
|
21479
21533
|
}
|
|
21480
21534
|
if (message.remove_permission_ids?.length) {
|
|
21481
|
-
obj.remove_permission_ids = message.remove_permission_ids;
|
|
21535
|
+
obj.remove_permission_ids = message.remove_permission_ids.map((e) => e.toString());
|
|
21482
21536
|
}
|
|
21483
21537
|
return obj;
|
|
21484
21538
|
},
|
|
@@ -21618,7 +21672,7 @@ var ChannelDeletedEvent = {
|
|
|
21618
21672
|
}
|
|
21619
21673
|
};
|
|
21620
21674
|
function createBaseClanDeletedEvent() {
|
|
21621
|
-
return { clan_id: 0n, deletor:
|
|
21675
|
+
return { clan_id: 0n, deletor: 0n };
|
|
21622
21676
|
}
|
|
21623
21677
|
var ClanDeletedEvent = {
|
|
21624
21678
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -21628,8 +21682,11 @@ var ClanDeletedEvent = {
|
|
|
21628
21682
|
}
|
|
21629
21683
|
writer.uint32(8).int64(message.clan_id.toString());
|
|
21630
21684
|
}
|
|
21631
|
-
if (message.deletor !==
|
|
21632
|
-
|
|
21685
|
+
if (message.deletor !== 0n) {
|
|
21686
|
+
if (BigInt.asIntN(64, message.deletor) !== message.deletor) {
|
|
21687
|
+
throw new globalThis.Error("value provided for field message.deletor of type int64 too large");
|
|
21688
|
+
}
|
|
21689
|
+
writer.uint32(16).int64(message.deletor.toString());
|
|
21633
21690
|
}
|
|
21634
21691
|
return writer;
|
|
21635
21692
|
},
|
|
@@ -21647,10 +21704,10 @@ var ClanDeletedEvent = {
|
|
|
21647
21704
|
message.clan_id = longToBigint2(reader.int64());
|
|
21648
21705
|
continue;
|
|
21649
21706
|
case 2:
|
|
21650
|
-
if (tag !==
|
|
21707
|
+
if (tag !== 16) {
|
|
21651
21708
|
break;
|
|
21652
21709
|
}
|
|
21653
|
-
message.deletor = reader.
|
|
21710
|
+
message.deletor = longToBigint2(reader.int64());
|
|
21654
21711
|
continue;
|
|
21655
21712
|
}
|
|
21656
21713
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -21663,7 +21720,7 @@ var ClanDeletedEvent = {
|
|
|
21663
21720
|
fromJSON(object) {
|
|
21664
21721
|
return {
|
|
21665
21722
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
21666
|
-
deletor: isSet3(object.deletor) ?
|
|
21723
|
+
deletor: isSet3(object.deletor) ? BigInt(object.deletor) : 0n
|
|
21667
21724
|
};
|
|
21668
21725
|
},
|
|
21669
21726
|
toJSON(message) {
|
|
@@ -21671,8 +21728,8 @@ var ClanDeletedEvent = {
|
|
|
21671
21728
|
if (message.clan_id !== 0n) {
|
|
21672
21729
|
obj.clan_id = message.clan_id.toString();
|
|
21673
21730
|
}
|
|
21674
|
-
if (message.deletor !==
|
|
21675
|
-
obj.deletor = message.deletor;
|
|
21731
|
+
if (message.deletor !== 0n) {
|
|
21732
|
+
obj.deletor = message.deletor.toString();
|
|
21676
21733
|
}
|
|
21677
21734
|
return obj;
|
|
21678
21735
|
},
|
|
@@ -21682,7 +21739,7 @@ var ClanDeletedEvent = {
|
|
|
21682
21739
|
fromPartial(object) {
|
|
21683
21740
|
const message = createBaseClanDeletedEvent();
|
|
21684
21741
|
message.clan_id = object.clan_id ?? 0n;
|
|
21685
|
-
message.deletor = object.deletor ??
|
|
21742
|
+
message.deletor = object.deletor ?? 0n;
|
|
21686
21743
|
return message;
|
|
21687
21744
|
}
|
|
21688
21745
|
};
|
|
@@ -23403,7 +23460,7 @@ function createBaseClanUpdatedEvent() {
|
|
|
23403
23460
|
banner: "",
|
|
23404
23461
|
status: 0,
|
|
23405
23462
|
is_onboarding: false,
|
|
23406
|
-
welcome_channel_id:
|
|
23463
|
+
welcome_channel_id: 0n,
|
|
23407
23464
|
onboarding_banner: "",
|
|
23408
23465
|
community_banner: "",
|
|
23409
23466
|
is_community: false,
|
|
@@ -23435,8 +23492,11 @@ var ClanUpdatedEvent = {
|
|
|
23435
23492
|
if (message.is_onboarding !== false) {
|
|
23436
23493
|
writer.uint32(48).bool(message.is_onboarding);
|
|
23437
23494
|
}
|
|
23438
|
-
if (message.welcome_channel_id !==
|
|
23439
|
-
|
|
23495
|
+
if (message.welcome_channel_id !== 0n) {
|
|
23496
|
+
if (BigInt.asIntN(64, message.welcome_channel_id) !== message.welcome_channel_id) {
|
|
23497
|
+
throw new globalThis.Error("value provided for field message.welcome_channel_id of type int64 too large");
|
|
23498
|
+
}
|
|
23499
|
+
writer.uint32(56).int64(message.welcome_channel_id.toString());
|
|
23440
23500
|
}
|
|
23441
23501
|
if (message.onboarding_banner !== "") {
|
|
23442
23502
|
writer.uint32(66).string(message.onboarding_banner);
|
|
@@ -23502,10 +23562,10 @@ var ClanUpdatedEvent = {
|
|
|
23502
23562
|
message.is_onboarding = reader.bool();
|
|
23503
23563
|
continue;
|
|
23504
23564
|
case 7:
|
|
23505
|
-
if (tag !==
|
|
23565
|
+
if (tag !== 56) {
|
|
23506
23566
|
break;
|
|
23507
23567
|
}
|
|
23508
|
-
message.welcome_channel_id = reader.
|
|
23568
|
+
message.welcome_channel_id = longToBigint2(reader.int64());
|
|
23509
23569
|
continue;
|
|
23510
23570
|
case 8:
|
|
23511
23571
|
if (tag !== 66) {
|
|
@@ -23559,7 +23619,7 @@ var ClanUpdatedEvent = {
|
|
|
23559
23619
|
banner: isSet3(object.banner) ? globalThis.String(object.banner) : "",
|
|
23560
23620
|
status: isSet3(object.status) ? globalThis.Number(object.status) : 0,
|
|
23561
23621
|
is_onboarding: isSet3(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
23562
|
-
welcome_channel_id: isSet3(object.welcome_channel_id) ?
|
|
23622
|
+
welcome_channel_id: isSet3(object.welcome_channel_id) ? BigInt(object.welcome_channel_id) : 0n,
|
|
23563
23623
|
onboarding_banner: isSet3(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
23564
23624
|
community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
23565
23625
|
is_community: isSet3(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
@@ -23588,8 +23648,8 @@ var ClanUpdatedEvent = {
|
|
|
23588
23648
|
if (message.is_onboarding !== false) {
|
|
23589
23649
|
obj.is_onboarding = message.is_onboarding;
|
|
23590
23650
|
}
|
|
23591
|
-
if (message.welcome_channel_id !==
|
|
23592
|
-
obj.welcome_channel_id = message.welcome_channel_id;
|
|
23651
|
+
if (message.welcome_channel_id !== 0n) {
|
|
23652
|
+
obj.welcome_channel_id = message.welcome_channel_id.toString();
|
|
23593
23653
|
}
|
|
23594
23654
|
if (message.onboarding_banner !== "") {
|
|
23595
23655
|
obj.onboarding_banner = message.onboarding_banner;
|
|
@@ -23622,7 +23682,7 @@ var ClanUpdatedEvent = {
|
|
|
23622
23682
|
message.banner = object.banner ?? "";
|
|
23623
23683
|
message.status = object.status ?? 0;
|
|
23624
23684
|
message.is_onboarding = object.is_onboarding ?? false;
|
|
23625
|
-
message.welcome_channel_id = object.welcome_channel_id ??
|
|
23685
|
+
message.welcome_channel_id = object.welcome_channel_id ?? 0n;
|
|
23626
23686
|
message.onboarding_banner = object.onboarding_banner ?? "";
|
|
23627
23687
|
message.community_banner = object.community_banner ?? "";
|
|
23628
23688
|
message.is_community = object.is_community ?? false;
|
|
@@ -23932,9 +23992,14 @@ var UserProfileRedis = {
|
|
|
23932
23992
|
for (const v of message.fcm_tokens) {
|
|
23933
23993
|
FCMTokens.encode(v, writer.uint32(66).fork()).ldelim();
|
|
23934
23994
|
}
|
|
23995
|
+
writer.uint32(74).fork();
|
|
23935
23996
|
for (const v of message.joined_clans) {
|
|
23936
|
-
|
|
23997
|
+
if (BigInt.asIntN(64, v) !== v) {
|
|
23998
|
+
throw new globalThis.Error("a value provided in array field joined_clans of type int64 is too large");
|
|
23999
|
+
}
|
|
24000
|
+
writer.int64(v.toString());
|
|
23937
24001
|
}
|
|
24002
|
+
writer.ldelim();
|
|
23938
24003
|
if (message.app_token !== "") {
|
|
23939
24004
|
writer.uint32(82).string(message.app_token);
|
|
23940
24005
|
}
|
|
@@ -24008,11 +24073,18 @@ var UserProfileRedis = {
|
|
|
24008
24073
|
message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
|
|
24009
24074
|
continue;
|
|
24010
24075
|
case 9:
|
|
24011
|
-
if (tag
|
|
24012
|
-
|
|
24076
|
+
if (tag === 72) {
|
|
24077
|
+
message.joined_clans.push(longToBigint2(reader.int64()));
|
|
24078
|
+
continue;
|
|
24013
24079
|
}
|
|
24014
|
-
|
|
24015
|
-
|
|
24080
|
+
if (tag === 74) {
|
|
24081
|
+
const end2 = reader.uint32() + reader.pos;
|
|
24082
|
+
while (reader.pos < end2) {
|
|
24083
|
+
message.joined_clans.push(longToBigint2(reader.int64()));
|
|
24084
|
+
}
|
|
24085
|
+
continue;
|
|
24086
|
+
}
|
|
24087
|
+
break;
|
|
24016
24088
|
case 10:
|
|
24017
24089
|
if (tag !== 82) {
|
|
24018
24090
|
break;
|
|
@@ -24061,7 +24133,7 @@ var UserProfileRedis = {
|
|
|
24061
24133
|
status: isSet3(object.status) ? globalThis.String(object.status) : "",
|
|
24062
24134
|
online: isSet3(object.online) ? globalThis.Boolean(object.online) : false,
|
|
24063
24135
|
fcm_tokens: globalThis.Array.isArray(object?.fcm_tokens) ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e)) : [],
|
|
24064
|
-
joined_clans: globalThis.Array.isArray(object?.joined_clans) ? object.joined_clans.map((e) =>
|
|
24136
|
+
joined_clans: globalThis.Array.isArray(object?.joined_clans) ? object.joined_clans.map((e) => BigInt(e)) : [],
|
|
24065
24137
|
app_token: isSet3(object.app_token) ? globalThis.String(object.app_token) : "",
|
|
24066
24138
|
create_time_second: isSet3(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
|
|
24067
24139
|
app_url: isSet3(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
@@ -24096,7 +24168,7 @@ var UserProfileRedis = {
|
|
|
24096
24168
|
obj.fcm_tokens = message.fcm_tokens.map((e) => FCMTokens.toJSON(e));
|
|
24097
24169
|
}
|
|
24098
24170
|
if (message.joined_clans?.length) {
|
|
24099
|
-
obj.joined_clans = message.joined_clans;
|
|
24171
|
+
obj.joined_clans = message.joined_clans.map((e) => e.toString());
|
|
24100
24172
|
}
|
|
24101
24173
|
if (message.app_token !== "") {
|
|
24102
24174
|
obj.app_token = message.app_token;
|
|
@@ -27057,7 +27129,7 @@ var MeetParticipantEvent = {
|
|
|
27057
27129
|
}
|
|
27058
27130
|
};
|
|
27059
27131
|
function createBaseTransferOwnershipEvent() {
|
|
27060
|
-
return { clan_id: 0n, prev_owner:
|
|
27132
|
+
return { clan_id: 0n, prev_owner: 0n, curr_owner: 0n };
|
|
27061
27133
|
}
|
|
27062
27134
|
var TransferOwnershipEvent = {
|
|
27063
27135
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -27067,11 +27139,17 @@ var TransferOwnershipEvent = {
|
|
|
27067
27139
|
}
|
|
27068
27140
|
writer.uint32(8).int64(message.clan_id.toString());
|
|
27069
27141
|
}
|
|
27070
|
-
if (message.prev_owner !==
|
|
27071
|
-
|
|
27142
|
+
if (message.prev_owner !== 0n) {
|
|
27143
|
+
if (BigInt.asIntN(64, message.prev_owner) !== message.prev_owner) {
|
|
27144
|
+
throw new globalThis.Error("value provided for field message.prev_owner of type int64 too large");
|
|
27145
|
+
}
|
|
27146
|
+
writer.uint32(16).int64(message.prev_owner.toString());
|
|
27072
27147
|
}
|
|
27073
|
-
if (message.curr_owner !==
|
|
27074
|
-
|
|
27148
|
+
if (message.curr_owner !== 0n) {
|
|
27149
|
+
if (BigInt.asIntN(64, message.curr_owner) !== message.curr_owner) {
|
|
27150
|
+
throw new globalThis.Error("value provided for field message.curr_owner of type int64 too large");
|
|
27151
|
+
}
|
|
27152
|
+
writer.uint32(24).int64(message.curr_owner.toString());
|
|
27075
27153
|
}
|
|
27076
27154
|
return writer;
|
|
27077
27155
|
},
|
|
@@ -27089,16 +27167,16 @@ var TransferOwnershipEvent = {
|
|
|
27089
27167
|
message.clan_id = longToBigint2(reader.int64());
|
|
27090
27168
|
continue;
|
|
27091
27169
|
case 2:
|
|
27092
|
-
if (tag !==
|
|
27170
|
+
if (tag !== 16) {
|
|
27093
27171
|
break;
|
|
27094
27172
|
}
|
|
27095
|
-
message.prev_owner = reader.
|
|
27173
|
+
message.prev_owner = longToBigint2(reader.int64());
|
|
27096
27174
|
continue;
|
|
27097
27175
|
case 3:
|
|
27098
|
-
if (tag !==
|
|
27176
|
+
if (tag !== 24) {
|
|
27099
27177
|
break;
|
|
27100
27178
|
}
|
|
27101
|
-
message.curr_owner = reader.
|
|
27179
|
+
message.curr_owner = longToBigint2(reader.int64());
|
|
27102
27180
|
continue;
|
|
27103
27181
|
}
|
|
27104
27182
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -27111,8 +27189,8 @@ var TransferOwnershipEvent = {
|
|
|
27111
27189
|
fromJSON(object) {
|
|
27112
27190
|
return {
|
|
27113
27191
|
clan_id: isSet3(object.clan_id) ? BigInt(object.clan_id) : 0n,
|
|
27114
|
-
prev_owner: isSet3(object.prev_owner) ?
|
|
27115
|
-
curr_owner: isSet3(object.curr_owner) ?
|
|
27192
|
+
prev_owner: isSet3(object.prev_owner) ? BigInt(object.prev_owner) : 0n,
|
|
27193
|
+
curr_owner: isSet3(object.curr_owner) ? BigInt(object.curr_owner) : 0n
|
|
27116
27194
|
};
|
|
27117
27195
|
},
|
|
27118
27196
|
toJSON(message) {
|
|
@@ -27120,11 +27198,11 @@ var TransferOwnershipEvent = {
|
|
|
27120
27198
|
if (message.clan_id !== 0n) {
|
|
27121
27199
|
obj.clan_id = message.clan_id.toString();
|
|
27122
27200
|
}
|
|
27123
|
-
if (message.prev_owner !==
|
|
27124
|
-
obj.prev_owner = message.prev_owner;
|
|
27201
|
+
if (message.prev_owner !== 0n) {
|
|
27202
|
+
obj.prev_owner = message.prev_owner.toString();
|
|
27125
27203
|
}
|
|
27126
|
-
if (message.curr_owner !==
|
|
27127
|
-
obj.curr_owner = message.curr_owner;
|
|
27204
|
+
if (message.curr_owner !== 0n) {
|
|
27205
|
+
obj.curr_owner = message.curr_owner.toString();
|
|
27128
27206
|
}
|
|
27129
27207
|
return obj;
|
|
27130
27208
|
},
|
|
@@ -27134,8 +27212,8 @@ var TransferOwnershipEvent = {
|
|
|
27134
27212
|
fromPartial(object) {
|
|
27135
27213
|
const message = createBaseTransferOwnershipEvent();
|
|
27136
27214
|
message.clan_id = object.clan_id ?? 0n;
|
|
27137
|
-
message.prev_owner = object.prev_owner ??
|
|
27138
|
-
message.curr_owner = object.curr_owner ??
|
|
27215
|
+
message.prev_owner = object.prev_owner ?? 0n;
|
|
27216
|
+
message.curr_owner = object.curr_owner ?? 0n;
|
|
27139
27217
|
return message;
|
|
27140
27218
|
}
|
|
27141
27219
|
};
|