mezon-sdk 2.8.26 → 2.8.27
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/dist/cjs/api/api.d.ts +357 -73
- package/dist/cjs/api/api.js +754 -177
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/constants/enum.d.ts +4 -1
- package/dist/cjs/constants/enum.js +3 -0
- package/dist/cjs/constants/enum.js.map +1 -1
- package/dist/cjs/interfaces/client.d.ts +1 -0
- package/dist/cjs/interfaces/client.js.map +1 -1
- package/dist/cjs/interfaces/socket.d.ts +1 -1
- package/dist/cjs/mezon-client/manager/socket_manager.js +1 -1
- package/dist/cjs/mezon-client/manager/socket_manager.js.map +1 -1
- package/dist/cjs/mezon-client/structures/TextChannel.d.ts +5 -1
- package/dist/cjs/mezon-client/structures/TextChannel.js +46 -32
- package/dist/cjs/mezon-client/structures/TextChannel.js.map +1 -1
- package/dist/cjs/rtapi/realtime.d.ts +624 -641
- package/dist/cjs/rtapi/realtime.js +265 -43
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/cjs/socket.d.ts +1 -1
- package/dist/cjs/socket.js +2 -1
- package/dist/cjs/socket.js.map +1 -1
- package/dist/esm/api/api.d.ts +357 -73
- package/dist/esm/api/api.js +718 -152
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/constants/enum.d.ts +4 -1
- package/dist/esm/constants/enum.js +3 -0
- package/dist/esm/constants/enum.js.map +1 -1
- package/dist/esm/interfaces/client.d.ts +1 -0
- package/dist/esm/interfaces/client.js.map +1 -1
- package/dist/esm/interfaces/socket.d.ts +1 -1
- package/dist/esm/mezon-client/manager/socket_manager.js +1 -1
- package/dist/esm/mezon-client/manager/socket_manager.js.map +1 -1
- package/dist/esm/mezon-client/structures/TextChannel.d.ts +5 -1
- package/dist/esm/mezon-client/structures/TextChannel.js +75 -29
- package/dist/esm/mezon-client/structures/TextChannel.js.map +1 -1
- package/dist/esm/rtapi/realtime.d.ts +624 -641
- package/dist/esm/rtapi/realtime.js +253 -33
- package/dist/esm/rtapi/realtime.js.map +1 -1
- package/dist/esm/socket.d.ts +1 -1
- package/dist/esm/socket.js +2 -1
- package/dist/esm/socket.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/esm/api/api.js
CHANGED
|
@@ -207,7 +207,7 @@ function createBaseAccount() {
|
|
|
207
207
|
return {
|
|
208
208
|
user: undefined,
|
|
209
209
|
email: "",
|
|
210
|
-
|
|
210
|
+
qr_code: "",
|
|
211
211
|
verify_time: undefined,
|
|
212
212
|
disable_time: undefined,
|
|
213
213
|
logo: "",
|
|
@@ -224,8 +224,8 @@ export const Account = {
|
|
|
224
224
|
if (message.email !== "") {
|
|
225
225
|
writer.uint32(18).string(message.email);
|
|
226
226
|
}
|
|
227
|
-
if (message.
|
|
228
|
-
writer.uint32(26).string(message.
|
|
227
|
+
if (message.qr_code !== "") {
|
|
228
|
+
writer.uint32(26).string(message.qr_code);
|
|
229
229
|
}
|
|
230
230
|
if (message.verify_time !== undefined) {
|
|
231
231
|
Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(34).fork()).ldelim();
|
|
@@ -270,7 +270,7 @@ export const Account = {
|
|
|
270
270
|
if (tag !== 26) {
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
|
-
message.
|
|
273
|
+
message.qr_code = reader.string();
|
|
274
274
|
continue;
|
|
275
275
|
case 4:
|
|
276
276
|
if (tag !== 34) {
|
|
@@ -320,7 +320,7 @@ export const Account = {
|
|
|
320
320
|
return {
|
|
321
321
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
322
322
|
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
323
|
-
|
|
323
|
+
qr_code: isSet(object.qr_code) ? globalThis.String(object.qr_code) : "",
|
|
324
324
|
verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
|
|
325
325
|
disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
|
|
326
326
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
@@ -337,8 +337,8 @@ export const Account = {
|
|
|
337
337
|
if (message.email !== "") {
|
|
338
338
|
obj.email = message.email;
|
|
339
339
|
}
|
|
340
|
-
if (message.
|
|
341
|
-
obj.
|
|
340
|
+
if (message.qr_code !== "") {
|
|
341
|
+
obj.qr_code = message.qr_code;
|
|
342
342
|
}
|
|
343
343
|
if (message.verify_time !== undefined) {
|
|
344
344
|
obj.verify_time = message.verify_time.toISOString();
|
|
@@ -367,7 +367,7 @@ export const Account = {
|
|
|
367
367
|
const message = createBaseAccount();
|
|
368
368
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
369
369
|
message.email = object.email ?? "";
|
|
370
|
-
message.
|
|
370
|
+
message.qr_code = object.qr_code ?? "";
|
|
371
371
|
message.verify_time = object.verify_time ?? undefined;
|
|
372
372
|
message.disable_time = object.disable_time ?? undefined;
|
|
373
373
|
message.logo = object.logo ?? "";
|
|
@@ -596,6 +596,74 @@ export const AddFriendsRequest = {
|
|
|
596
596
|
return message;
|
|
597
597
|
},
|
|
598
598
|
};
|
|
599
|
+
function createBaseAddFriendsResponse() {
|
|
600
|
+
return { ids: [], usernames: [] };
|
|
601
|
+
}
|
|
602
|
+
export const AddFriendsResponse = {
|
|
603
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
604
|
+
for (const v of message.ids) {
|
|
605
|
+
writer.uint32(10).string(v);
|
|
606
|
+
}
|
|
607
|
+
for (const v of message.usernames) {
|
|
608
|
+
writer.uint32(18).string(v);
|
|
609
|
+
}
|
|
610
|
+
return writer;
|
|
611
|
+
},
|
|
612
|
+
decode(input, length) {
|
|
613
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
614
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
615
|
+
const message = createBaseAddFriendsResponse();
|
|
616
|
+
while (reader.pos < end) {
|
|
617
|
+
const tag = reader.uint32();
|
|
618
|
+
switch (tag >>> 3) {
|
|
619
|
+
case 1:
|
|
620
|
+
if (tag !== 10) {
|
|
621
|
+
break;
|
|
622
|
+
}
|
|
623
|
+
message.ids.push(reader.string());
|
|
624
|
+
continue;
|
|
625
|
+
case 2:
|
|
626
|
+
if (tag !== 18) {
|
|
627
|
+
break;
|
|
628
|
+
}
|
|
629
|
+
message.usernames.push(reader.string());
|
|
630
|
+
continue;
|
|
631
|
+
}
|
|
632
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
reader.skipType(tag & 7);
|
|
636
|
+
}
|
|
637
|
+
return message;
|
|
638
|
+
},
|
|
639
|
+
fromJSON(object) {
|
|
640
|
+
return {
|
|
641
|
+
ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e) => globalThis.String(e)) : [],
|
|
642
|
+
usernames: globalThis.Array.isArray(object?.usernames)
|
|
643
|
+
? object.usernames.map((e) => globalThis.String(e))
|
|
644
|
+
: [],
|
|
645
|
+
};
|
|
646
|
+
},
|
|
647
|
+
toJSON(message) {
|
|
648
|
+
const obj = {};
|
|
649
|
+
if (message.ids?.length) {
|
|
650
|
+
obj.ids = message.ids;
|
|
651
|
+
}
|
|
652
|
+
if (message.usernames?.length) {
|
|
653
|
+
obj.usernames = message.usernames;
|
|
654
|
+
}
|
|
655
|
+
return obj;
|
|
656
|
+
},
|
|
657
|
+
create(base) {
|
|
658
|
+
return AddFriendsResponse.fromPartial(base ?? {});
|
|
659
|
+
},
|
|
660
|
+
fromPartial(object) {
|
|
661
|
+
const message = createBaseAddFriendsResponse();
|
|
662
|
+
message.ids = object.ids?.map((e) => e) || [];
|
|
663
|
+
message.usernames = object.usernames?.map((e) => e) || [];
|
|
664
|
+
return message;
|
|
665
|
+
},
|
|
666
|
+
};
|
|
599
667
|
function createBaseAddGroupUsersRequest() {
|
|
600
668
|
return { group_id: "", user_ids: [] };
|
|
601
669
|
}
|
|
@@ -935,6 +1003,122 @@ export const SessionLogoutRequest = {
|
|
|
935
1003
|
return message;
|
|
936
1004
|
},
|
|
937
1005
|
};
|
|
1006
|
+
function createBaseIsBannedResponse() {
|
|
1007
|
+
return { is_banned: false, expired_ban_time: 0 };
|
|
1008
|
+
}
|
|
1009
|
+
export const IsBannedResponse = {
|
|
1010
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1011
|
+
if (message.is_banned !== false) {
|
|
1012
|
+
writer.uint32(8).bool(message.is_banned);
|
|
1013
|
+
}
|
|
1014
|
+
if (message.expired_ban_time !== 0) {
|
|
1015
|
+
writer.uint32(16).int32(message.expired_ban_time);
|
|
1016
|
+
}
|
|
1017
|
+
return writer;
|
|
1018
|
+
},
|
|
1019
|
+
decode(input, length) {
|
|
1020
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1021
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1022
|
+
const message = createBaseIsBannedResponse();
|
|
1023
|
+
while (reader.pos < end) {
|
|
1024
|
+
const tag = reader.uint32();
|
|
1025
|
+
switch (tag >>> 3) {
|
|
1026
|
+
case 1:
|
|
1027
|
+
if (tag !== 8) {
|
|
1028
|
+
break;
|
|
1029
|
+
}
|
|
1030
|
+
message.is_banned = reader.bool();
|
|
1031
|
+
continue;
|
|
1032
|
+
case 2:
|
|
1033
|
+
if (tag !== 16) {
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
1036
|
+
message.expired_ban_time = reader.int32();
|
|
1037
|
+
continue;
|
|
1038
|
+
}
|
|
1039
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1040
|
+
break;
|
|
1041
|
+
}
|
|
1042
|
+
reader.skipType(tag & 7);
|
|
1043
|
+
}
|
|
1044
|
+
return message;
|
|
1045
|
+
},
|
|
1046
|
+
fromJSON(object) {
|
|
1047
|
+
return {
|
|
1048
|
+
is_banned: isSet(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
|
|
1049
|
+
expired_ban_time: isSet(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0,
|
|
1050
|
+
};
|
|
1051
|
+
},
|
|
1052
|
+
toJSON(message) {
|
|
1053
|
+
const obj = {};
|
|
1054
|
+
if (message.is_banned !== false) {
|
|
1055
|
+
obj.is_banned = message.is_banned;
|
|
1056
|
+
}
|
|
1057
|
+
if (message.expired_ban_time !== 0) {
|
|
1058
|
+
obj.expired_ban_time = Math.round(message.expired_ban_time);
|
|
1059
|
+
}
|
|
1060
|
+
return obj;
|
|
1061
|
+
},
|
|
1062
|
+
create(base) {
|
|
1063
|
+
return IsBannedResponse.fromPartial(base ?? {});
|
|
1064
|
+
},
|
|
1065
|
+
fromPartial(object) {
|
|
1066
|
+
const message = createBaseIsBannedResponse();
|
|
1067
|
+
message.is_banned = object.is_banned ?? false;
|
|
1068
|
+
message.expired_ban_time = object.expired_ban_time ?? 0;
|
|
1069
|
+
return message;
|
|
1070
|
+
},
|
|
1071
|
+
};
|
|
1072
|
+
function createBaseIsBannedRequest() {
|
|
1073
|
+
return { channel_id: "" };
|
|
1074
|
+
}
|
|
1075
|
+
export const IsBannedRequest = {
|
|
1076
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1077
|
+
if (message.channel_id !== "") {
|
|
1078
|
+
writer.uint32(10).string(message.channel_id);
|
|
1079
|
+
}
|
|
1080
|
+
return writer;
|
|
1081
|
+
},
|
|
1082
|
+
decode(input, length) {
|
|
1083
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1084
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1085
|
+
const message = createBaseIsBannedRequest();
|
|
1086
|
+
while (reader.pos < end) {
|
|
1087
|
+
const tag = reader.uint32();
|
|
1088
|
+
switch (tag >>> 3) {
|
|
1089
|
+
case 1:
|
|
1090
|
+
if (tag !== 10) {
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
message.channel_id = reader.string();
|
|
1094
|
+
continue;
|
|
1095
|
+
}
|
|
1096
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1097
|
+
break;
|
|
1098
|
+
}
|
|
1099
|
+
reader.skipType(tag & 7);
|
|
1100
|
+
}
|
|
1101
|
+
return message;
|
|
1102
|
+
},
|
|
1103
|
+
fromJSON(object) {
|
|
1104
|
+
return { channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "" };
|
|
1105
|
+
},
|
|
1106
|
+
toJSON(message) {
|
|
1107
|
+
const obj = {};
|
|
1108
|
+
if (message.channel_id !== "") {
|
|
1109
|
+
obj.channel_id = message.channel_id;
|
|
1110
|
+
}
|
|
1111
|
+
return obj;
|
|
1112
|
+
},
|
|
1113
|
+
create(base) {
|
|
1114
|
+
return IsBannedRequest.fromPartial(base ?? {});
|
|
1115
|
+
},
|
|
1116
|
+
fromPartial(object) {
|
|
1117
|
+
const message = createBaseIsBannedRequest();
|
|
1118
|
+
message.channel_id = object.channel_id ?? "";
|
|
1119
|
+
return message;
|
|
1120
|
+
},
|
|
1121
|
+
};
|
|
938
1122
|
function createBaseBanGroupUsersRequest() {
|
|
939
1123
|
return { group_id: "", user_ids: [] };
|
|
940
1124
|
}
|
|
@@ -3429,7 +3613,18 @@ export const ChannelUserList = {
|
|
|
3429
3613
|
},
|
|
3430
3614
|
};
|
|
3431
3615
|
function createBaseChannelUserList_ChannelUser() {
|
|
3432
|
-
return {
|
|
3616
|
+
return {
|
|
3617
|
+
user_id: "",
|
|
3618
|
+
role_id: [],
|
|
3619
|
+
id: "",
|
|
3620
|
+
thread_id: "",
|
|
3621
|
+
clan_nick: "",
|
|
3622
|
+
clan_avatar: "",
|
|
3623
|
+
clan_id: "",
|
|
3624
|
+
added_by: "",
|
|
3625
|
+
is_banned: false,
|
|
3626
|
+
expired_ban_time: 0,
|
|
3627
|
+
};
|
|
3433
3628
|
}
|
|
3434
3629
|
export const ChannelUserList_ChannelUser = {
|
|
3435
3630
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -3457,6 +3652,12 @@ export const ChannelUserList_ChannelUser = {
|
|
|
3457
3652
|
if (message.added_by !== "") {
|
|
3458
3653
|
writer.uint32(66).string(message.added_by);
|
|
3459
3654
|
}
|
|
3655
|
+
if (message.is_banned !== false) {
|
|
3656
|
+
writer.uint32(72).bool(message.is_banned);
|
|
3657
|
+
}
|
|
3658
|
+
if (message.expired_ban_time !== 0) {
|
|
3659
|
+
writer.uint32(80).int32(message.expired_ban_time);
|
|
3660
|
+
}
|
|
3460
3661
|
return writer;
|
|
3461
3662
|
},
|
|
3462
3663
|
decode(input, length) {
|
|
@@ -3514,6 +3715,18 @@ export const ChannelUserList_ChannelUser = {
|
|
|
3514
3715
|
}
|
|
3515
3716
|
message.added_by = reader.string();
|
|
3516
3717
|
continue;
|
|
3718
|
+
case 9:
|
|
3719
|
+
if (tag !== 72) {
|
|
3720
|
+
break;
|
|
3721
|
+
}
|
|
3722
|
+
message.is_banned = reader.bool();
|
|
3723
|
+
continue;
|
|
3724
|
+
case 10:
|
|
3725
|
+
if (tag !== 80) {
|
|
3726
|
+
break;
|
|
3727
|
+
}
|
|
3728
|
+
message.expired_ban_time = reader.int32();
|
|
3729
|
+
continue;
|
|
3517
3730
|
}
|
|
3518
3731
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3519
3732
|
break;
|
|
@@ -3532,6 +3745,8 @@ export const ChannelUserList_ChannelUser = {
|
|
|
3532
3745
|
clan_avatar: isSet(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
|
|
3533
3746
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3534
3747
|
added_by: isSet(object.added_by) ? globalThis.String(object.added_by) : "",
|
|
3748
|
+
is_banned: isSet(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
|
|
3749
|
+
expired_ban_time: isSet(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0,
|
|
3535
3750
|
};
|
|
3536
3751
|
},
|
|
3537
3752
|
toJSON(message) {
|
|
@@ -3560,6 +3775,12 @@ export const ChannelUserList_ChannelUser = {
|
|
|
3560
3775
|
if (message.added_by !== "") {
|
|
3561
3776
|
obj.added_by = message.added_by;
|
|
3562
3777
|
}
|
|
3778
|
+
if (message.is_banned !== false) {
|
|
3779
|
+
obj.is_banned = message.is_banned;
|
|
3780
|
+
}
|
|
3781
|
+
if (message.expired_ban_time !== 0) {
|
|
3782
|
+
obj.expired_ban_time = Math.round(message.expired_ban_time);
|
|
3783
|
+
}
|
|
3563
3784
|
return obj;
|
|
3564
3785
|
},
|
|
3565
3786
|
create(base) {
|
|
@@ -3575,6 +3796,8 @@ export const ChannelUserList_ChannelUser = {
|
|
|
3575
3796
|
message.clan_avatar = object.clan_avatar ?? "";
|
|
3576
3797
|
message.clan_id = object.clan_id ?? "";
|
|
3577
3798
|
message.added_by = object.added_by ?? "";
|
|
3799
|
+
message.is_banned = object.is_banned ?? false;
|
|
3800
|
+
message.expired_ban_time = object.expired_ban_time ?? 0;
|
|
3578
3801
|
return message;
|
|
3579
3802
|
},
|
|
3580
3803
|
};
|
|
@@ -6057,9 +6280,58 @@ export const Session = {
|
|
|
6057
6280
|
return message;
|
|
6058
6281
|
},
|
|
6059
6282
|
};
|
|
6283
|
+
function createBaseUpdateUsernameRequest() {
|
|
6284
|
+
return { username: "" };
|
|
6285
|
+
}
|
|
6286
|
+
export const UpdateUsernameRequest = {
|
|
6287
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
6288
|
+
if (message.username !== "") {
|
|
6289
|
+
writer.uint32(10).string(message.username);
|
|
6290
|
+
}
|
|
6291
|
+
return writer;
|
|
6292
|
+
},
|
|
6293
|
+
decode(input, length) {
|
|
6294
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
6295
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6296
|
+
const message = createBaseUpdateUsernameRequest();
|
|
6297
|
+
while (reader.pos < end) {
|
|
6298
|
+
const tag = reader.uint32();
|
|
6299
|
+
switch (tag >>> 3) {
|
|
6300
|
+
case 1:
|
|
6301
|
+
if (tag !== 10) {
|
|
6302
|
+
break;
|
|
6303
|
+
}
|
|
6304
|
+
message.username = reader.string();
|
|
6305
|
+
continue;
|
|
6306
|
+
}
|
|
6307
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6308
|
+
break;
|
|
6309
|
+
}
|
|
6310
|
+
reader.skipType(tag & 7);
|
|
6311
|
+
}
|
|
6312
|
+
return message;
|
|
6313
|
+
},
|
|
6314
|
+
fromJSON(object) {
|
|
6315
|
+
return { username: isSet(object.username) ? globalThis.String(object.username) : "" };
|
|
6316
|
+
},
|
|
6317
|
+
toJSON(message) {
|
|
6318
|
+
const obj = {};
|
|
6319
|
+
if (message.username !== "") {
|
|
6320
|
+
obj.username = message.username;
|
|
6321
|
+
}
|
|
6322
|
+
return obj;
|
|
6323
|
+
},
|
|
6324
|
+
create(base) {
|
|
6325
|
+
return UpdateUsernameRequest.fromPartial(base ?? {});
|
|
6326
|
+
},
|
|
6327
|
+
fromPartial(object) {
|
|
6328
|
+
const message = createBaseUpdateUsernameRequest();
|
|
6329
|
+
message.username = object.username ?? "";
|
|
6330
|
+
return message;
|
|
6331
|
+
},
|
|
6332
|
+
};
|
|
6060
6333
|
function createBaseUpdateAccountRequest() {
|
|
6061
6334
|
return {
|
|
6062
|
-
username: undefined,
|
|
6063
6335
|
display_name: undefined,
|
|
6064
6336
|
avatar_url: undefined,
|
|
6065
6337
|
lang_tag: undefined,
|
|
@@ -6075,41 +6347,38 @@ function createBaseUpdateAccountRequest() {
|
|
|
6075
6347
|
}
|
|
6076
6348
|
export const UpdateAccountRequest = {
|
|
6077
6349
|
encode(message, writer = _m0.Writer.create()) {
|
|
6078
|
-
if (message.username !== undefined) {
|
|
6079
|
-
StringValue.encode({ value: message.username }, writer.uint32(10).fork()).ldelim();
|
|
6080
|
-
}
|
|
6081
6350
|
if (message.display_name !== undefined) {
|
|
6082
|
-
StringValue.encode({ value: message.display_name }, writer.uint32(
|
|
6351
|
+
StringValue.encode({ value: message.display_name }, writer.uint32(10).fork()).ldelim();
|
|
6083
6352
|
}
|
|
6084
6353
|
if (message.avatar_url !== undefined) {
|
|
6085
|
-
StringValue.encode({ value: message.avatar_url }, writer.uint32(
|
|
6354
|
+
StringValue.encode({ value: message.avatar_url }, writer.uint32(18).fork()).ldelim();
|
|
6086
6355
|
}
|
|
6087
6356
|
if (message.lang_tag !== undefined) {
|
|
6088
|
-
StringValue.encode({ value: message.lang_tag }, writer.uint32(
|
|
6357
|
+
StringValue.encode({ value: message.lang_tag }, writer.uint32(26).fork()).ldelim();
|
|
6089
6358
|
}
|
|
6090
6359
|
if (message.location !== undefined) {
|
|
6091
|
-
StringValue.encode({ value: message.location }, writer.uint32(
|
|
6360
|
+
StringValue.encode({ value: message.location }, writer.uint32(34).fork()).ldelim();
|
|
6092
6361
|
}
|
|
6093
6362
|
if (message.timezone !== undefined) {
|
|
6094
|
-
StringValue.encode({ value: message.timezone }, writer.uint32(
|
|
6363
|
+
StringValue.encode({ value: message.timezone }, writer.uint32(42).fork()).ldelim();
|
|
6095
6364
|
}
|
|
6096
6365
|
if (message.about_me !== undefined) {
|
|
6097
|
-
StringValue.encode({ value: message.about_me }, writer.uint32(
|
|
6366
|
+
StringValue.encode({ value: message.about_me }, writer.uint32(50).fork()).ldelim();
|
|
6098
6367
|
}
|
|
6099
6368
|
if (message.dob !== undefined) {
|
|
6100
|
-
Timestamp.encode(toTimestamp(message.dob), writer.uint32(
|
|
6369
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(58).fork()).ldelim();
|
|
6101
6370
|
}
|
|
6102
6371
|
if (message.logo !== undefined) {
|
|
6103
|
-
StringValue.encode({ value: message.logo }, writer.uint32(
|
|
6372
|
+
StringValue.encode({ value: message.logo }, writer.uint32(66).fork()).ldelim();
|
|
6104
6373
|
}
|
|
6105
6374
|
if (message.splash_screen !== undefined) {
|
|
6106
|
-
StringValue.encode({ value: message.splash_screen }, writer.uint32(
|
|
6375
|
+
StringValue.encode({ value: message.splash_screen }, writer.uint32(74).fork()).ldelim();
|
|
6107
6376
|
}
|
|
6108
6377
|
if (message.encrypt_private_key !== "") {
|
|
6109
|
-
writer.uint32(
|
|
6378
|
+
writer.uint32(82).string(message.encrypt_private_key);
|
|
6110
6379
|
}
|
|
6111
6380
|
if (message.email !== undefined) {
|
|
6112
|
-
StringValue.encode({ value: message.email }, writer.uint32(
|
|
6381
|
+
StringValue.encode({ value: message.email }, writer.uint32(90).fork()).ldelim();
|
|
6113
6382
|
}
|
|
6114
6383
|
return writer;
|
|
6115
6384
|
},
|
|
@@ -6124,72 +6393,66 @@ export const UpdateAccountRequest = {
|
|
|
6124
6393
|
if (tag !== 10) {
|
|
6125
6394
|
break;
|
|
6126
6395
|
}
|
|
6127
|
-
message.
|
|
6396
|
+
message.display_name = StringValue.decode(reader, reader.uint32()).value;
|
|
6128
6397
|
continue;
|
|
6129
6398
|
case 2:
|
|
6130
6399
|
if (tag !== 18) {
|
|
6131
6400
|
break;
|
|
6132
6401
|
}
|
|
6133
|
-
message.
|
|
6402
|
+
message.avatar_url = StringValue.decode(reader, reader.uint32()).value;
|
|
6134
6403
|
continue;
|
|
6135
6404
|
case 3:
|
|
6136
6405
|
if (tag !== 26) {
|
|
6137
6406
|
break;
|
|
6138
6407
|
}
|
|
6139
|
-
message.
|
|
6408
|
+
message.lang_tag = StringValue.decode(reader, reader.uint32()).value;
|
|
6140
6409
|
continue;
|
|
6141
6410
|
case 4:
|
|
6142
6411
|
if (tag !== 34) {
|
|
6143
6412
|
break;
|
|
6144
6413
|
}
|
|
6145
|
-
message.
|
|
6414
|
+
message.location = StringValue.decode(reader, reader.uint32()).value;
|
|
6146
6415
|
continue;
|
|
6147
6416
|
case 5:
|
|
6148
6417
|
if (tag !== 42) {
|
|
6149
6418
|
break;
|
|
6150
6419
|
}
|
|
6151
|
-
message.
|
|
6420
|
+
message.timezone = StringValue.decode(reader, reader.uint32()).value;
|
|
6152
6421
|
continue;
|
|
6153
6422
|
case 6:
|
|
6154
6423
|
if (tag !== 50) {
|
|
6155
6424
|
break;
|
|
6156
6425
|
}
|
|
6157
|
-
message.
|
|
6426
|
+
message.about_me = StringValue.decode(reader, reader.uint32()).value;
|
|
6158
6427
|
continue;
|
|
6159
6428
|
case 7:
|
|
6160
6429
|
if (tag !== 58) {
|
|
6161
6430
|
break;
|
|
6162
6431
|
}
|
|
6163
|
-
message.
|
|
6432
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6164
6433
|
continue;
|
|
6165
6434
|
case 8:
|
|
6166
6435
|
if (tag !== 66) {
|
|
6167
6436
|
break;
|
|
6168
6437
|
}
|
|
6169
|
-
message.
|
|
6438
|
+
message.logo = StringValue.decode(reader, reader.uint32()).value;
|
|
6170
6439
|
continue;
|
|
6171
6440
|
case 9:
|
|
6172
6441
|
if (tag !== 74) {
|
|
6173
6442
|
break;
|
|
6174
6443
|
}
|
|
6175
|
-
message.
|
|
6444
|
+
message.splash_screen = StringValue.decode(reader, reader.uint32()).value;
|
|
6176
6445
|
continue;
|
|
6177
6446
|
case 10:
|
|
6178
6447
|
if (tag !== 82) {
|
|
6179
6448
|
break;
|
|
6180
6449
|
}
|
|
6181
|
-
message.
|
|
6450
|
+
message.encrypt_private_key = reader.string();
|
|
6182
6451
|
continue;
|
|
6183
6452
|
case 11:
|
|
6184
6453
|
if (tag !== 90) {
|
|
6185
6454
|
break;
|
|
6186
6455
|
}
|
|
6187
|
-
message.encrypt_private_key = reader.string();
|
|
6188
|
-
continue;
|
|
6189
|
-
case 12:
|
|
6190
|
-
if (tag !== 98) {
|
|
6191
|
-
break;
|
|
6192
|
-
}
|
|
6193
6456
|
message.email = StringValue.decode(reader, reader.uint32()).value;
|
|
6194
6457
|
continue;
|
|
6195
6458
|
}
|
|
@@ -6202,7 +6465,6 @@ export const UpdateAccountRequest = {
|
|
|
6202
6465
|
},
|
|
6203
6466
|
fromJSON(object) {
|
|
6204
6467
|
return {
|
|
6205
|
-
username: isSet(object.username) ? String(object.username) : undefined,
|
|
6206
6468
|
display_name: isSet(object.display_name) ? String(object.display_name) : undefined,
|
|
6207
6469
|
avatar_url: isSet(object.avatar_url) ? String(object.avatar_url) : undefined,
|
|
6208
6470
|
lang_tag: isSet(object.lang_tag) ? String(object.lang_tag) : undefined,
|
|
@@ -6218,9 +6480,6 @@ export const UpdateAccountRequest = {
|
|
|
6218
6480
|
},
|
|
6219
6481
|
toJSON(message) {
|
|
6220
6482
|
const obj = {};
|
|
6221
|
-
if (message.username !== undefined) {
|
|
6222
|
-
obj.username = message.username;
|
|
6223
|
-
}
|
|
6224
6483
|
if (message.display_name !== undefined) {
|
|
6225
6484
|
obj.display_name = message.display_name;
|
|
6226
6485
|
}
|
|
@@ -6261,7 +6520,6 @@ export const UpdateAccountRequest = {
|
|
|
6261
6520
|
},
|
|
6262
6521
|
fromPartial(object) {
|
|
6263
6522
|
const message = createBaseUpdateAccountRequest();
|
|
6264
|
-
message.username = object.username ?? undefined;
|
|
6265
6523
|
message.display_name = object.display_name ?? undefined;
|
|
6266
6524
|
message.avatar_url = object.avatar_url ?? undefined;
|
|
6267
6525
|
message.lang_tag = object.lang_tag ?? undefined;
|
|
@@ -7549,7 +7807,7 @@ function createBaseUpdateClanDescRequest() {
|
|
|
7549
7807
|
return {
|
|
7550
7808
|
clan_id: "",
|
|
7551
7809
|
clan_name: "",
|
|
7552
|
-
logo:
|
|
7810
|
+
logo: undefined,
|
|
7553
7811
|
banner: undefined,
|
|
7554
7812
|
status: 0,
|
|
7555
7813
|
is_onboarding: undefined,
|
|
@@ -7557,8 +7815,8 @@ function createBaseUpdateClanDescRequest() {
|
|
|
7557
7815
|
onboarding_banner: undefined,
|
|
7558
7816
|
is_community: undefined,
|
|
7559
7817
|
community_banner: undefined,
|
|
7560
|
-
description:
|
|
7561
|
-
about:
|
|
7818
|
+
description: undefined,
|
|
7819
|
+
about: undefined,
|
|
7562
7820
|
short_url: undefined,
|
|
7563
7821
|
prevent_anonymous: false,
|
|
7564
7822
|
};
|
|
@@ -7571,8 +7829,8 @@ export const UpdateClanDescRequest = {
|
|
|
7571
7829
|
if (message.clan_name !== "") {
|
|
7572
7830
|
writer.uint32(18).string(message.clan_name);
|
|
7573
7831
|
}
|
|
7574
|
-
if (message.logo !==
|
|
7575
|
-
writer.uint32(26).
|
|
7832
|
+
if (message.logo !== undefined) {
|
|
7833
|
+
StringValue.encode({ value: message.logo }, writer.uint32(26).fork()).ldelim();
|
|
7576
7834
|
}
|
|
7577
7835
|
if (message.banner !== undefined) {
|
|
7578
7836
|
StringValue.encode({ value: message.banner }, writer.uint32(34).fork()).ldelim();
|
|
@@ -7595,11 +7853,11 @@ export const UpdateClanDescRequest = {
|
|
|
7595
7853
|
if (message.community_banner !== undefined) {
|
|
7596
7854
|
StringValue.encode({ value: message.community_banner }, writer.uint32(82).fork()).ldelim();
|
|
7597
7855
|
}
|
|
7598
|
-
if (message.description !==
|
|
7599
|
-
writer.uint32(90).
|
|
7856
|
+
if (message.description !== undefined) {
|
|
7857
|
+
StringValue.encode({ value: message.description }, writer.uint32(90).fork()).ldelim();
|
|
7600
7858
|
}
|
|
7601
|
-
if (message.about !==
|
|
7602
|
-
writer.uint32(98).
|
|
7859
|
+
if (message.about !== undefined) {
|
|
7860
|
+
StringValue.encode({ value: message.about }, writer.uint32(98).fork()).ldelim();
|
|
7603
7861
|
}
|
|
7604
7862
|
if (message.short_url !== undefined) {
|
|
7605
7863
|
StringValue.encode({ value: message.short_url }, writer.uint32(106).fork()).ldelim();
|
|
@@ -7632,7 +7890,7 @@ export const UpdateClanDescRequest = {
|
|
|
7632
7890
|
if (tag !== 26) {
|
|
7633
7891
|
break;
|
|
7634
7892
|
}
|
|
7635
|
-
message.logo = reader.
|
|
7893
|
+
message.logo = StringValue.decode(reader, reader.uint32()).value;
|
|
7636
7894
|
continue;
|
|
7637
7895
|
case 4:
|
|
7638
7896
|
if (tag !== 34) {
|
|
@@ -7680,13 +7938,13 @@ export const UpdateClanDescRequest = {
|
|
|
7680
7938
|
if (tag !== 90) {
|
|
7681
7939
|
break;
|
|
7682
7940
|
}
|
|
7683
|
-
message.description = reader.
|
|
7941
|
+
message.description = StringValue.decode(reader, reader.uint32()).value;
|
|
7684
7942
|
continue;
|
|
7685
7943
|
case 12:
|
|
7686
7944
|
if (tag !== 98) {
|
|
7687
7945
|
break;
|
|
7688
7946
|
}
|
|
7689
|
-
message.about = reader.
|
|
7947
|
+
message.about = StringValue.decode(reader, reader.uint32()).value;
|
|
7690
7948
|
continue;
|
|
7691
7949
|
case 13:
|
|
7692
7950
|
if (tag !== 106) {
|
|
@@ -7712,7 +7970,7 @@ export const UpdateClanDescRequest = {
|
|
|
7712
7970
|
return {
|
|
7713
7971
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
7714
7972
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
7715
|
-
logo: isSet(object.logo) ?
|
|
7973
|
+
logo: isSet(object.logo) ? String(object.logo) : undefined,
|
|
7716
7974
|
banner: isSet(object.banner) ? String(object.banner) : undefined,
|
|
7717
7975
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
7718
7976
|
is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
|
|
@@ -7720,8 +7978,8 @@ export const UpdateClanDescRequest = {
|
|
|
7720
7978
|
onboarding_banner: isSet(object.onboarding_banner) ? String(object.onboarding_banner) : undefined,
|
|
7721
7979
|
is_community: isSet(object.is_community) ? Boolean(object.is_community) : undefined,
|
|
7722
7980
|
community_banner: isSet(object.community_banner) ? String(object.community_banner) : undefined,
|
|
7723
|
-
description: isSet(object.description) ?
|
|
7724
|
-
about: isSet(object.about) ?
|
|
7981
|
+
description: isSet(object.description) ? String(object.description) : undefined,
|
|
7982
|
+
about: isSet(object.about) ? String(object.about) : undefined,
|
|
7725
7983
|
short_url: isSet(object.short_url) ? String(object.short_url) : undefined,
|
|
7726
7984
|
prevent_anonymous: isSet(object.prevent_anonymous) ? globalThis.Boolean(object.prevent_anonymous) : false,
|
|
7727
7985
|
};
|
|
@@ -7734,7 +7992,7 @@ export const UpdateClanDescRequest = {
|
|
|
7734
7992
|
if (message.clan_name !== "") {
|
|
7735
7993
|
obj.clan_name = message.clan_name;
|
|
7736
7994
|
}
|
|
7737
|
-
if (message.logo !==
|
|
7995
|
+
if (message.logo !== undefined) {
|
|
7738
7996
|
obj.logo = message.logo;
|
|
7739
7997
|
}
|
|
7740
7998
|
if (message.banner !== undefined) {
|
|
@@ -7758,10 +8016,10 @@ export const UpdateClanDescRequest = {
|
|
|
7758
8016
|
if (message.community_banner !== undefined) {
|
|
7759
8017
|
obj.community_banner = message.community_banner;
|
|
7760
8018
|
}
|
|
7761
|
-
if (message.description !==
|
|
8019
|
+
if (message.description !== undefined) {
|
|
7762
8020
|
obj.description = message.description;
|
|
7763
8021
|
}
|
|
7764
|
-
if (message.about !==
|
|
8022
|
+
if (message.about !== undefined) {
|
|
7765
8023
|
obj.about = message.about;
|
|
7766
8024
|
}
|
|
7767
8025
|
if (message.short_url !== undefined) {
|
|
@@ -7779,7 +8037,7 @@ export const UpdateClanDescRequest = {
|
|
|
7779
8037
|
const message = createBaseUpdateClanDescRequest();
|
|
7780
8038
|
message.clan_id = object.clan_id ?? "";
|
|
7781
8039
|
message.clan_name = object.clan_name ?? "";
|
|
7782
|
-
message.logo = object.logo ??
|
|
8040
|
+
message.logo = object.logo ?? undefined;
|
|
7783
8041
|
message.banner = object.banner ?? undefined;
|
|
7784
8042
|
message.status = object.status ?? 0;
|
|
7785
8043
|
message.is_onboarding = object.is_onboarding ?? undefined;
|
|
@@ -7787,8 +8045,8 @@ export const UpdateClanDescRequest = {
|
|
|
7787
8045
|
message.onboarding_banner = object.onboarding_banner ?? undefined;
|
|
7788
8046
|
message.is_community = object.is_community ?? undefined;
|
|
7789
8047
|
message.community_banner = object.community_banner ?? undefined;
|
|
7790
|
-
message.description = object.description ??
|
|
7791
|
-
message.about = object.about ??
|
|
8048
|
+
message.description = object.description ?? undefined;
|
|
8049
|
+
message.about = object.about ?? undefined;
|
|
7792
8050
|
message.short_url = object.short_url ?? undefined;
|
|
7793
8051
|
message.prevent_anonymous = object.prevent_anonymous ?? false;
|
|
7794
8052
|
return message;
|
|
@@ -8753,18 +9011,18 @@ export const ClanProfileRequest = {
|
|
|
8753
9011
|
},
|
|
8754
9012
|
};
|
|
8755
9013
|
function createBaseUpdateClanProfileRequest() {
|
|
8756
|
-
return { clan_id: "", nick_name:
|
|
9014
|
+
return { clan_id: "", nick_name: undefined, avatar: undefined };
|
|
8757
9015
|
}
|
|
8758
9016
|
export const UpdateClanProfileRequest = {
|
|
8759
9017
|
encode(message, writer = _m0.Writer.create()) {
|
|
8760
9018
|
if (message.clan_id !== "") {
|
|
8761
9019
|
writer.uint32(10).string(message.clan_id);
|
|
8762
9020
|
}
|
|
8763
|
-
if (message.nick_name !==
|
|
8764
|
-
writer.uint32(18).
|
|
9021
|
+
if (message.nick_name !== undefined) {
|
|
9022
|
+
StringValue.encode({ value: message.nick_name }, writer.uint32(18).fork()).ldelim();
|
|
8765
9023
|
}
|
|
8766
|
-
if (message.avatar !==
|
|
8767
|
-
writer.uint32(26).
|
|
9024
|
+
if (message.avatar !== undefined) {
|
|
9025
|
+
StringValue.encode({ value: message.avatar }, writer.uint32(26).fork()).ldelim();
|
|
8768
9026
|
}
|
|
8769
9027
|
return writer;
|
|
8770
9028
|
},
|
|
@@ -8785,13 +9043,13 @@ export const UpdateClanProfileRequest = {
|
|
|
8785
9043
|
if (tag !== 18) {
|
|
8786
9044
|
break;
|
|
8787
9045
|
}
|
|
8788
|
-
message.nick_name = reader.
|
|
9046
|
+
message.nick_name = StringValue.decode(reader, reader.uint32()).value;
|
|
8789
9047
|
continue;
|
|
8790
9048
|
case 3:
|
|
8791
9049
|
if (tag !== 26) {
|
|
8792
9050
|
break;
|
|
8793
9051
|
}
|
|
8794
|
-
message.avatar = reader.
|
|
9052
|
+
message.avatar = StringValue.decode(reader, reader.uint32()).value;
|
|
8795
9053
|
continue;
|
|
8796
9054
|
}
|
|
8797
9055
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -8804,8 +9062,8 @@ export const UpdateClanProfileRequest = {
|
|
|
8804
9062
|
fromJSON(object) {
|
|
8805
9063
|
return {
|
|
8806
9064
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8807
|
-
nick_name: isSet(object.nick_name) ?
|
|
8808
|
-
avatar: isSet(object.avatar) ?
|
|
9065
|
+
nick_name: isSet(object.nick_name) ? String(object.nick_name) : undefined,
|
|
9066
|
+
avatar: isSet(object.avatar) ? String(object.avatar) : undefined,
|
|
8809
9067
|
};
|
|
8810
9068
|
},
|
|
8811
9069
|
toJSON(message) {
|
|
@@ -8813,10 +9071,10 @@ export const UpdateClanProfileRequest = {
|
|
|
8813
9071
|
if (message.clan_id !== "") {
|
|
8814
9072
|
obj.clan_id = message.clan_id;
|
|
8815
9073
|
}
|
|
8816
|
-
if (message.nick_name !==
|
|
9074
|
+
if (message.nick_name !== undefined) {
|
|
8817
9075
|
obj.nick_name = message.nick_name;
|
|
8818
9076
|
}
|
|
8819
|
-
if (message.avatar !==
|
|
9077
|
+
if (message.avatar !== undefined) {
|
|
8820
9078
|
obj.avatar = message.avatar;
|
|
8821
9079
|
}
|
|
8822
9080
|
return obj;
|
|
@@ -8827,8 +9085,8 @@ export const UpdateClanProfileRequest = {
|
|
|
8827
9085
|
fromPartial(object) {
|
|
8828
9086
|
const message = createBaseUpdateClanProfileRequest();
|
|
8829
9087
|
message.clan_id = object.clan_id ?? "";
|
|
8830
|
-
message.nick_name = object.nick_name ??
|
|
8831
|
-
message.avatar = object.avatar ??
|
|
9088
|
+
message.nick_name = object.nick_name ?? undefined;
|
|
9089
|
+
message.avatar = object.avatar ?? undefined;
|
|
8832
9090
|
return message;
|
|
8833
9091
|
},
|
|
8834
9092
|
};
|
|
@@ -11025,7 +11283,7 @@ function createBaseUpdateChannelDescRequest() {
|
|
|
11025
11283
|
topic: "",
|
|
11026
11284
|
age_restricted: 0,
|
|
11027
11285
|
e2ee: 0,
|
|
11028
|
-
channel_avatar:
|
|
11286
|
+
channel_avatar: undefined,
|
|
11029
11287
|
};
|
|
11030
11288
|
}
|
|
11031
11289
|
export const UpdateChannelDescRequest = {
|
|
@@ -11054,8 +11312,8 @@ export const UpdateChannelDescRequest = {
|
|
|
11054
11312
|
if (message.e2ee !== 0) {
|
|
11055
11313
|
writer.uint32(64).int32(message.e2ee);
|
|
11056
11314
|
}
|
|
11057
|
-
if (message.channel_avatar !==
|
|
11058
|
-
writer.uint32(74).
|
|
11315
|
+
if (message.channel_avatar !== undefined) {
|
|
11316
|
+
StringValue.encode({ value: message.channel_avatar }, writer.uint32(74).fork()).ldelim();
|
|
11059
11317
|
}
|
|
11060
11318
|
return writer;
|
|
11061
11319
|
},
|
|
@@ -11118,7 +11376,7 @@ export const UpdateChannelDescRequest = {
|
|
|
11118
11376
|
if (tag !== 74) {
|
|
11119
11377
|
break;
|
|
11120
11378
|
}
|
|
11121
|
-
message.channel_avatar = reader.
|
|
11379
|
+
message.channel_avatar = StringValue.decode(reader, reader.uint32()).value;
|
|
11122
11380
|
continue;
|
|
11123
11381
|
}
|
|
11124
11382
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -11138,7 +11396,7 @@ export const UpdateChannelDescRequest = {
|
|
|
11138
11396
|
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
11139
11397
|
age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
|
|
11140
11398
|
e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
|
|
11141
|
-
channel_avatar: isSet(object.channel_avatar) ?
|
|
11399
|
+
channel_avatar: isSet(object.channel_avatar) ? String(object.channel_avatar) : undefined,
|
|
11142
11400
|
};
|
|
11143
11401
|
},
|
|
11144
11402
|
toJSON(message) {
|
|
@@ -11167,7 +11425,7 @@ export const UpdateChannelDescRequest = {
|
|
|
11167
11425
|
if (message.e2ee !== 0) {
|
|
11168
11426
|
obj.e2ee = Math.round(message.e2ee);
|
|
11169
11427
|
}
|
|
11170
|
-
if (message.channel_avatar !==
|
|
11428
|
+
if (message.channel_avatar !== undefined) {
|
|
11171
11429
|
obj.channel_avatar = message.channel_avatar;
|
|
11172
11430
|
}
|
|
11173
11431
|
return obj;
|
|
@@ -11185,7 +11443,7 @@ export const UpdateChannelDescRequest = {
|
|
|
11185
11443
|
message.topic = object.topic ?? "";
|
|
11186
11444
|
message.age_restricted = object.age_restricted ?? 0;
|
|
11187
11445
|
message.e2ee = object.e2ee ?? 0;
|
|
11188
|
-
message.channel_avatar = object.channel_avatar ??
|
|
11446
|
+
message.channel_avatar = object.channel_avatar ?? undefined;
|
|
11189
11447
|
return message;
|
|
11190
11448
|
},
|
|
11191
11449
|
};
|
|
@@ -11495,6 +11753,342 @@ export const RemoveClanUsersRequest = {
|
|
|
11495
11753
|
return message;
|
|
11496
11754
|
},
|
|
11497
11755
|
};
|
|
11756
|
+
function createBaseBanClanUsersRequest() {
|
|
11757
|
+
return { clan_id: "", channel_id: "", user_ids: [], ban_time: 0, reason: "" };
|
|
11758
|
+
}
|
|
11759
|
+
export const BanClanUsersRequest = {
|
|
11760
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
11761
|
+
if (message.clan_id !== "") {
|
|
11762
|
+
writer.uint32(10).string(message.clan_id);
|
|
11763
|
+
}
|
|
11764
|
+
if (message.channel_id !== "") {
|
|
11765
|
+
writer.uint32(18).string(message.channel_id);
|
|
11766
|
+
}
|
|
11767
|
+
for (const v of message.user_ids) {
|
|
11768
|
+
writer.uint32(26).string(v);
|
|
11769
|
+
}
|
|
11770
|
+
if (message.ban_time !== 0) {
|
|
11771
|
+
writer.uint32(32).int32(message.ban_time);
|
|
11772
|
+
}
|
|
11773
|
+
if (message.reason !== "") {
|
|
11774
|
+
writer.uint32(42).string(message.reason);
|
|
11775
|
+
}
|
|
11776
|
+
return writer;
|
|
11777
|
+
},
|
|
11778
|
+
decode(input, length) {
|
|
11779
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11780
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11781
|
+
const message = createBaseBanClanUsersRequest();
|
|
11782
|
+
while (reader.pos < end) {
|
|
11783
|
+
const tag = reader.uint32();
|
|
11784
|
+
switch (tag >>> 3) {
|
|
11785
|
+
case 1:
|
|
11786
|
+
if (tag !== 10) {
|
|
11787
|
+
break;
|
|
11788
|
+
}
|
|
11789
|
+
message.clan_id = reader.string();
|
|
11790
|
+
continue;
|
|
11791
|
+
case 2:
|
|
11792
|
+
if (tag !== 18) {
|
|
11793
|
+
break;
|
|
11794
|
+
}
|
|
11795
|
+
message.channel_id = reader.string();
|
|
11796
|
+
continue;
|
|
11797
|
+
case 3:
|
|
11798
|
+
if (tag !== 26) {
|
|
11799
|
+
break;
|
|
11800
|
+
}
|
|
11801
|
+
message.user_ids.push(reader.string());
|
|
11802
|
+
continue;
|
|
11803
|
+
case 4:
|
|
11804
|
+
if (tag !== 32) {
|
|
11805
|
+
break;
|
|
11806
|
+
}
|
|
11807
|
+
message.ban_time = reader.int32();
|
|
11808
|
+
continue;
|
|
11809
|
+
case 5:
|
|
11810
|
+
if (tag !== 42) {
|
|
11811
|
+
break;
|
|
11812
|
+
}
|
|
11813
|
+
message.reason = reader.string();
|
|
11814
|
+
continue;
|
|
11815
|
+
}
|
|
11816
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
11817
|
+
break;
|
|
11818
|
+
}
|
|
11819
|
+
reader.skipType(tag & 7);
|
|
11820
|
+
}
|
|
11821
|
+
return message;
|
|
11822
|
+
},
|
|
11823
|
+
fromJSON(object) {
|
|
11824
|
+
return {
|
|
11825
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
11826
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
11827
|
+
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
11828
|
+
ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
|
|
11829
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
11830
|
+
};
|
|
11831
|
+
},
|
|
11832
|
+
toJSON(message) {
|
|
11833
|
+
const obj = {};
|
|
11834
|
+
if (message.clan_id !== "") {
|
|
11835
|
+
obj.clan_id = message.clan_id;
|
|
11836
|
+
}
|
|
11837
|
+
if (message.channel_id !== "") {
|
|
11838
|
+
obj.channel_id = message.channel_id;
|
|
11839
|
+
}
|
|
11840
|
+
if (message.user_ids?.length) {
|
|
11841
|
+
obj.user_ids = message.user_ids;
|
|
11842
|
+
}
|
|
11843
|
+
if (message.ban_time !== 0) {
|
|
11844
|
+
obj.ban_time = Math.round(message.ban_time);
|
|
11845
|
+
}
|
|
11846
|
+
if (message.reason !== "") {
|
|
11847
|
+
obj.reason = message.reason;
|
|
11848
|
+
}
|
|
11849
|
+
return obj;
|
|
11850
|
+
},
|
|
11851
|
+
create(base) {
|
|
11852
|
+
return BanClanUsersRequest.fromPartial(base ?? {});
|
|
11853
|
+
},
|
|
11854
|
+
fromPartial(object) {
|
|
11855
|
+
const message = createBaseBanClanUsersRequest();
|
|
11856
|
+
message.clan_id = object.clan_id ?? "";
|
|
11857
|
+
message.channel_id = object.channel_id ?? "";
|
|
11858
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
11859
|
+
message.ban_time = object.ban_time ?? 0;
|
|
11860
|
+
message.reason = object.reason ?? "";
|
|
11861
|
+
return message;
|
|
11862
|
+
},
|
|
11863
|
+
};
|
|
11864
|
+
function createBaseBannedUser() {
|
|
11865
|
+
return { channel_id: "", banned_id: "", banner_id: "", ban_time: 0, reason: "" };
|
|
11866
|
+
}
|
|
11867
|
+
export const BannedUser = {
|
|
11868
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
11869
|
+
if (message.channel_id !== "") {
|
|
11870
|
+
writer.uint32(10).string(message.channel_id);
|
|
11871
|
+
}
|
|
11872
|
+
if (message.banned_id !== "") {
|
|
11873
|
+
writer.uint32(18).string(message.banned_id);
|
|
11874
|
+
}
|
|
11875
|
+
if (message.banner_id !== "") {
|
|
11876
|
+
writer.uint32(26).string(message.banner_id);
|
|
11877
|
+
}
|
|
11878
|
+
if (message.ban_time !== 0) {
|
|
11879
|
+
writer.uint32(32).int32(message.ban_time);
|
|
11880
|
+
}
|
|
11881
|
+
if (message.reason !== "") {
|
|
11882
|
+
writer.uint32(42).string(message.reason);
|
|
11883
|
+
}
|
|
11884
|
+
return writer;
|
|
11885
|
+
},
|
|
11886
|
+
decode(input, length) {
|
|
11887
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11888
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11889
|
+
const message = createBaseBannedUser();
|
|
11890
|
+
while (reader.pos < end) {
|
|
11891
|
+
const tag = reader.uint32();
|
|
11892
|
+
switch (tag >>> 3) {
|
|
11893
|
+
case 1:
|
|
11894
|
+
if (tag !== 10) {
|
|
11895
|
+
break;
|
|
11896
|
+
}
|
|
11897
|
+
message.channel_id = reader.string();
|
|
11898
|
+
continue;
|
|
11899
|
+
case 2:
|
|
11900
|
+
if (tag !== 18) {
|
|
11901
|
+
break;
|
|
11902
|
+
}
|
|
11903
|
+
message.banned_id = reader.string();
|
|
11904
|
+
continue;
|
|
11905
|
+
case 3:
|
|
11906
|
+
if (tag !== 26) {
|
|
11907
|
+
break;
|
|
11908
|
+
}
|
|
11909
|
+
message.banner_id = reader.string();
|
|
11910
|
+
continue;
|
|
11911
|
+
case 4:
|
|
11912
|
+
if (tag !== 32) {
|
|
11913
|
+
break;
|
|
11914
|
+
}
|
|
11915
|
+
message.ban_time = reader.int32();
|
|
11916
|
+
continue;
|
|
11917
|
+
case 5:
|
|
11918
|
+
if (tag !== 42) {
|
|
11919
|
+
break;
|
|
11920
|
+
}
|
|
11921
|
+
message.reason = reader.string();
|
|
11922
|
+
continue;
|
|
11923
|
+
}
|
|
11924
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
11925
|
+
break;
|
|
11926
|
+
}
|
|
11927
|
+
reader.skipType(tag & 7);
|
|
11928
|
+
}
|
|
11929
|
+
return message;
|
|
11930
|
+
},
|
|
11931
|
+
fromJSON(object) {
|
|
11932
|
+
return {
|
|
11933
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
11934
|
+
banned_id: isSet(object.banned_id) ? globalThis.String(object.banned_id) : "",
|
|
11935
|
+
banner_id: isSet(object.banner_id) ? globalThis.String(object.banner_id) : "",
|
|
11936
|
+
ban_time: isSet(object.ban_time) ? globalThis.Number(object.ban_time) : 0,
|
|
11937
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
11938
|
+
};
|
|
11939
|
+
},
|
|
11940
|
+
toJSON(message) {
|
|
11941
|
+
const obj = {};
|
|
11942
|
+
if (message.channel_id !== "") {
|
|
11943
|
+
obj.channel_id = message.channel_id;
|
|
11944
|
+
}
|
|
11945
|
+
if (message.banned_id !== "") {
|
|
11946
|
+
obj.banned_id = message.banned_id;
|
|
11947
|
+
}
|
|
11948
|
+
if (message.banner_id !== "") {
|
|
11949
|
+
obj.banner_id = message.banner_id;
|
|
11950
|
+
}
|
|
11951
|
+
if (message.ban_time !== 0) {
|
|
11952
|
+
obj.ban_time = Math.round(message.ban_time);
|
|
11953
|
+
}
|
|
11954
|
+
if (message.reason !== "") {
|
|
11955
|
+
obj.reason = message.reason;
|
|
11956
|
+
}
|
|
11957
|
+
return obj;
|
|
11958
|
+
},
|
|
11959
|
+
create(base) {
|
|
11960
|
+
return BannedUser.fromPartial(base ?? {});
|
|
11961
|
+
},
|
|
11962
|
+
fromPartial(object) {
|
|
11963
|
+
const message = createBaseBannedUser();
|
|
11964
|
+
message.channel_id = object.channel_id ?? "";
|
|
11965
|
+
message.banned_id = object.banned_id ?? "";
|
|
11966
|
+
message.banner_id = object.banner_id ?? "";
|
|
11967
|
+
message.ban_time = object.ban_time ?? 0;
|
|
11968
|
+
message.reason = object.reason ?? "";
|
|
11969
|
+
return message;
|
|
11970
|
+
},
|
|
11971
|
+
};
|
|
11972
|
+
function createBaseBannedUserListRequest() {
|
|
11973
|
+
return { clan_id: "", channel_id: "" };
|
|
11974
|
+
}
|
|
11975
|
+
export const BannedUserListRequest = {
|
|
11976
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
11977
|
+
if (message.clan_id !== "") {
|
|
11978
|
+
writer.uint32(10).string(message.clan_id);
|
|
11979
|
+
}
|
|
11980
|
+
if (message.channel_id !== "") {
|
|
11981
|
+
writer.uint32(18).string(message.channel_id);
|
|
11982
|
+
}
|
|
11983
|
+
return writer;
|
|
11984
|
+
},
|
|
11985
|
+
decode(input, length) {
|
|
11986
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11987
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11988
|
+
const message = createBaseBannedUserListRequest();
|
|
11989
|
+
while (reader.pos < end) {
|
|
11990
|
+
const tag = reader.uint32();
|
|
11991
|
+
switch (tag >>> 3) {
|
|
11992
|
+
case 1:
|
|
11993
|
+
if (tag !== 10) {
|
|
11994
|
+
break;
|
|
11995
|
+
}
|
|
11996
|
+
message.clan_id = reader.string();
|
|
11997
|
+
continue;
|
|
11998
|
+
case 2:
|
|
11999
|
+
if (tag !== 18) {
|
|
12000
|
+
break;
|
|
12001
|
+
}
|
|
12002
|
+
message.channel_id = reader.string();
|
|
12003
|
+
continue;
|
|
12004
|
+
}
|
|
12005
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12006
|
+
break;
|
|
12007
|
+
}
|
|
12008
|
+
reader.skipType(tag & 7);
|
|
12009
|
+
}
|
|
12010
|
+
return message;
|
|
12011
|
+
},
|
|
12012
|
+
fromJSON(object) {
|
|
12013
|
+
return {
|
|
12014
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
12015
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12016
|
+
};
|
|
12017
|
+
},
|
|
12018
|
+
toJSON(message) {
|
|
12019
|
+
const obj = {};
|
|
12020
|
+
if (message.clan_id !== "") {
|
|
12021
|
+
obj.clan_id = message.clan_id;
|
|
12022
|
+
}
|
|
12023
|
+
if (message.channel_id !== "") {
|
|
12024
|
+
obj.channel_id = message.channel_id;
|
|
12025
|
+
}
|
|
12026
|
+
return obj;
|
|
12027
|
+
},
|
|
12028
|
+
create(base) {
|
|
12029
|
+
return BannedUserListRequest.fromPartial(base ?? {});
|
|
12030
|
+
},
|
|
12031
|
+
fromPartial(object) {
|
|
12032
|
+
const message = createBaseBannedUserListRequest();
|
|
12033
|
+
message.clan_id = object.clan_id ?? "";
|
|
12034
|
+
message.channel_id = object.channel_id ?? "";
|
|
12035
|
+
return message;
|
|
12036
|
+
},
|
|
12037
|
+
};
|
|
12038
|
+
function createBaseBannedUserList() {
|
|
12039
|
+
return { banned_users: [] };
|
|
12040
|
+
}
|
|
12041
|
+
export const BannedUserList = {
|
|
12042
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
12043
|
+
for (const v of message.banned_users) {
|
|
12044
|
+
BannedUser.encode(v, writer.uint32(10).fork()).ldelim();
|
|
12045
|
+
}
|
|
12046
|
+
return writer;
|
|
12047
|
+
},
|
|
12048
|
+
decode(input, length) {
|
|
12049
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12050
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12051
|
+
const message = createBaseBannedUserList();
|
|
12052
|
+
while (reader.pos < end) {
|
|
12053
|
+
const tag = reader.uint32();
|
|
12054
|
+
switch (tag >>> 3) {
|
|
12055
|
+
case 1:
|
|
12056
|
+
if (tag !== 10) {
|
|
12057
|
+
break;
|
|
12058
|
+
}
|
|
12059
|
+
message.banned_users.push(BannedUser.decode(reader, reader.uint32()));
|
|
12060
|
+
continue;
|
|
12061
|
+
}
|
|
12062
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12063
|
+
break;
|
|
12064
|
+
}
|
|
12065
|
+
reader.skipType(tag & 7);
|
|
12066
|
+
}
|
|
12067
|
+
return message;
|
|
12068
|
+
},
|
|
12069
|
+
fromJSON(object) {
|
|
12070
|
+
return {
|
|
12071
|
+
banned_users: globalThis.Array.isArray(object?.banned_users)
|
|
12072
|
+
? object.banned_users.map((e) => BannedUser.fromJSON(e))
|
|
12073
|
+
: [],
|
|
12074
|
+
};
|
|
12075
|
+
},
|
|
12076
|
+
toJSON(message) {
|
|
12077
|
+
const obj = {};
|
|
12078
|
+
if (message.banned_users?.length) {
|
|
12079
|
+
obj.banned_users = message.banned_users.map((e) => BannedUser.toJSON(e));
|
|
12080
|
+
}
|
|
12081
|
+
return obj;
|
|
12082
|
+
},
|
|
12083
|
+
create(base) {
|
|
12084
|
+
return BannedUserList.fromPartial(base ?? {});
|
|
12085
|
+
},
|
|
12086
|
+
fromPartial(object) {
|
|
12087
|
+
const message = createBaseBannedUserList();
|
|
12088
|
+
message.banned_users = object.banned_users?.map((e) => BannedUser.fromPartial(e)) || [];
|
|
12089
|
+
return message;
|
|
12090
|
+
},
|
|
12091
|
+
};
|
|
11498
12092
|
function createBaseLeaveThreadRequest() {
|
|
11499
12093
|
return { clan_id: "", channel_id: "" };
|
|
11500
12094
|
}
|
|
@@ -13188,7 +13782,7 @@ export const NotificationSettingList = {
|
|
|
13188
13782
|
},
|
|
13189
13783
|
};
|
|
13190
13784
|
function createBaseSetNotificationRequest() {
|
|
13191
|
-
return { channel_category_id: "", notification_type: 0,
|
|
13785
|
+
return { channel_category_id: "", notification_type: 0, clan_id: "" };
|
|
13192
13786
|
}
|
|
13193
13787
|
export const SetNotificationRequest = {
|
|
13194
13788
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -13198,11 +13792,8 @@ export const SetNotificationRequest = {
|
|
|
13198
13792
|
if (message.notification_type !== 0) {
|
|
13199
13793
|
writer.uint32(16).int32(message.notification_type);
|
|
13200
13794
|
}
|
|
13201
|
-
if (message.time_mute !== undefined) {
|
|
13202
|
-
Timestamp.encode(toTimestamp(message.time_mute), writer.uint32(26).fork()).ldelim();
|
|
13203
|
-
}
|
|
13204
13795
|
if (message.clan_id !== "") {
|
|
13205
|
-
writer.uint32(
|
|
13796
|
+
writer.uint32(26).string(message.clan_id);
|
|
13206
13797
|
}
|
|
13207
13798
|
return writer;
|
|
13208
13799
|
},
|
|
@@ -13229,12 +13820,6 @@ export const SetNotificationRequest = {
|
|
|
13229
13820
|
if (tag !== 26) {
|
|
13230
13821
|
break;
|
|
13231
13822
|
}
|
|
13232
|
-
message.time_mute = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
13233
|
-
continue;
|
|
13234
|
-
case 4:
|
|
13235
|
-
if (tag !== 34) {
|
|
13236
|
-
break;
|
|
13237
|
-
}
|
|
13238
13823
|
message.clan_id = reader.string();
|
|
13239
13824
|
continue;
|
|
13240
13825
|
}
|
|
@@ -13249,7 +13834,6 @@ export const SetNotificationRequest = {
|
|
|
13249
13834
|
return {
|
|
13250
13835
|
channel_category_id: isSet(object.channel_category_id) ? globalThis.String(object.channel_category_id) : "",
|
|
13251
13836
|
notification_type: isSet(object.notification_type) ? globalThis.Number(object.notification_type) : 0,
|
|
13252
|
-
time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
|
|
13253
13837
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
13254
13838
|
};
|
|
13255
13839
|
},
|
|
@@ -13261,9 +13845,6 @@ export const SetNotificationRequest = {
|
|
|
13261
13845
|
if (message.notification_type !== 0) {
|
|
13262
13846
|
obj.notification_type = Math.round(message.notification_type);
|
|
13263
13847
|
}
|
|
13264
|
-
if (message.time_mute !== undefined) {
|
|
13265
|
-
obj.time_mute = message.time_mute.toISOString();
|
|
13266
|
-
}
|
|
13267
13848
|
if (message.clan_id !== "") {
|
|
13268
13849
|
obj.clan_id = message.clan_id;
|
|
13269
13850
|
}
|
|
@@ -13276,7 +13857,6 @@ export const SetNotificationRequest = {
|
|
|
13276
13857
|
const message = createBaseSetNotificationRequest();
|
|
13277
13858
|
message.channel_category_id = object.channel_category_id ?? "";
|
|
13278
13859
|
message.notification_type = object.notification_type ?? 0;
|
|
13279
|
-
message.time_mute = object.time_mute ?? undefined;
|
|
13280
13860
|
message.clan_id = object.clan_id ?? "";
|
|
13281
13861
|
return message;
|
|
13282
13862
|
},
|
|
@@ -13361,26 +13941,29 @@ export const PinMessageRequest = {
|
|
|
13361
13941
|
return message;
|
|
13362
13942
|
},
|
|
13363
13943
|
};
|
|
13364
|
-
function
|
|
13365
|
-
return { id: "",
|
|
13944
|
+
function createBaseSetMuteRequest() {
|
|
13945
|
+
return { id: "", mute_time: 0, active: 0, clan_id: "" };
|
|
13366
13946
|
}
|
|
13367
|
-
export const
|
|
13947
|
+
export const SetMuteRequest = {
|
|
13368
13948
|
encode(message, writer = _m0.Writer.create()) {
|
|
13369
13949
|
if (message.id !== "") {
|
|
13370
13950
|
writer.uint32(10).string(message.id);
|
|
13371
13951
|
}
|
|
13372
|
-
if (message.
|
|
13373
|
-
writer.uint32(16).int32(message.
|
|
13952
|
+
if (message.mute_time !== 0) {
|
|
13953
|
+
writer.uint32(16).int32(message.mute_time);
|
|
13374
13954
|
}
|
|
13375
13955
|
if (message.active !== 0) {
|
|
13376
13956
|
writer.uint32(24).int32(message.active);
|
|
13377
13957
|
}
|
|
13958
|
+
if (message.clan_id !== "") {
|
|
13959
|
+
writer.uint32(34).string(message.clan_id);
|
|
13960
|
+
}
|
|
13378
13961
|
return writer;
|
|
13379
13962
|
},
|
|
13380
13963
|
decode(input, length) {
|
|
13381
13964
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
13382
13965
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
13383
|
-
const message =
|
|
13966
|
+
const message = createBaseSetMuteRequest();
|
|
13384
13967
|
while (reader.pos < end) {
|
|
13385
13968
|
const tag = reader.uint32();
|
|
13386
13969
|
switch (tag >>> 3) {
|
|
@@ -13394,7 +13977,7 @@ export const SetMuteNotificationRequest = {
|
|
|
13394
13977
|
if (tag !== 16) {
|
|
13395
13978
|
break;
|
|
13396
13979
|
}
|
|
13397
|
-
message.
|
|
13980
|
+
message.mute_time = reader.int32();
|
|
13398
13981
|
continue;
|
|
13399
13982
|
case 3:
|
|
13400
13983
|
if (tag !== 24) {
|
|
@@ -13402,6 +13985,12 @@ export const SetMuteNotificationRequest = {
|
|
|
13402
13985
|
}
|
|
13403
13986
|
message.active = reader.int32();
|
|
13404
13987
|
continue;
|
|
13988
|
+
case 4:
|
|
13989
|
+
if (tag !== 34) {
|
|
13990
|
+
break;
|
|
13991
|
+
}
|
|
13992
|
+
message.clan_id = reader.string();
|
|
13993
|
+
continue;
|
|
13405
13994
|
}
|
|
13406
13995
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13407
13996
|
break;
|
|
@@ -13413,8 +14002,9 @@ export const SetMuteNotificationRequest = {
|
|
|
13413
14002
|
fromJSON(object) {
|
|
13414
14003
|
return {
|
|
13415
14004
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
13416
|
-
|
|
14005
|
+
mute_time: isSet(object.mute_time) ? globalThis.Number(object.mute_time) : 0,
|
|
13417
14006
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
14007
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
13418
14008
|
};
|
|
13419
14009
|
},
|
|
13420
14010
|
toJSON(message) {
|
|
@@ -13422,22 +14012,26 @@ export const SetMuteNotificationRequest = {
|
|
|
13422
14012
|
if (message.id !== "") {
|
|
13423
14013
|
obj.id = message.id;
|
|
13424
14014
|
}
|
|
13425
|
-
if (message.
|
|
13426
|
-
obj.
|
|
14015
|
+
if (message.mute_time !== 0) {
|
|
14016
|
+
obj.mute_time = Math.round(message.mute_time);
|
|
13427
14017
|
}
|
|
13428
14018
|
if (message.active !== 0) {
|
|
13429
14019
|
obj.active = Math.round(message.active);
|
|
13430
14020
|
}
|
|
14021
|
+
if (message.clan_id !== "") {
|
|
14022
|
+
obj.clan_id = message.clan_id;
|
|
14023
|
+
}
|
|
13431
14024
|
return obj;
|
|
13432
14025
|
},
|
|
13433
14026
|
create(base) {
|
|
13434
|
-
return
|
|
14027
|
+
return SetMuteRequest.fromPartial(base ?? {});
|
|
13435
14028
|
},
|
|
13436
14029
|
fromPartial(object) {
|
|
13437
|
-
const message =
|
|
14030
|
+
const message = createBaseSetMuteRequest();
|
|
13438
14031
|
message.id = object.id ?? "";
|
|
13439
|
-
message.
|
|
14032
|
+
message.mute_time = object.mute_time ?? 0;
|
|
13440
14033
|
message.active = object.active ?? 0;
|
|
14034
|
+
message.clan_id = object.clan_id ?? "";
|
|
13441
14035
|
return message;
|
|
13442
14036
|
},
|
|
13443
14037
|
};
|
|
@@ -13970,21 +14564,15 @@ export const SetDefaultNotificationRequest = {
|
|
|
13970
14564
|
},
|
|
13971
14565
|
};
|
|
13972
14566
|
function createBaseRoleList() {
|
|
13973
|
-
return { roles: [],
|
|
14567
|
+
return { roles: [], max_level_permission: 0 };
|
|
13974
14568
|
}
|
|
13975
14569
|
export const RoleList = {
|
|
13976
14570
|
encode(message, writer = _m0.Writer.create()) {
|
|
13977
14571
|
for (const v of message.roles) {
|
|
13978
14572
|
Role.encode(v, writer.uint32(10).fork()).ldelim();
|
|
13979
14573
|
}
|
|
13980
|
-
if (message.
|
|
13981
|
-
writer.uint32(
|
|
13982
|
-
}
|
|
13983
|
-
if (message.prev_cursor !== "") {
|
|
13984
|
-
writer.uint32(26).string(message.prev_cursor);
|
|
13985
|
-
}
|
|
13986
|
-
if (message.cacheable_cursor !== "") {
|
|
13987
|
-
writer.uint32(34).string(message.cacheable_cursor);
|
|
14574
|
+
if (message.max_level_permission !== 0) {
|
|
14575
|
+
writer.uint32(16).int32(message.max_level_permission);
|
|
13988
14576
|
}
|
|
13989
14577
|
return writer;
|
|
13990
14578
|
},
|
|
@@ -14002,22 +14590,10 @@ export const RoleList = {
|
|
|
14002
14590
|
message.roles.push(Role.decode(reader, reader.uint32()));
|
|
14003
14591
|
continue;
|
|
14004
14592
|
case 2:
|
|
14005
|
-
if (tag !==
|
|
14006
|
-
break;
|
|
14007
|
-
}
|
|
14008
|
-
message.next_cursor = reader.string();
|
|
14009
|
-
continue;
|
|
14010
|
-
case 3:
|
|
14011
|
-
if (tag !== 26) {
|
|
14012
|
-
break;
|
|
14013
|
-
}
|
|
14014
|
-
message.prev_cursor = reader.string();
|
|
14015
|
-
continue;
|
|
14016
|
-
case 4:
|
|
14017
|
-
if (tag !== 34) {
|
|
14593
|
+
if (tag !== 16) {
|
|
14018
14594
|
break;
|
|
14019
14595
|
}
|
|
14020
|
-
message.
|
|
14596
|
+
message.max_level_permission = reader.int32();
|
|
14021
14597
|
continue;
|
|
14022
14598
|
}
|
|
14023
14599
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -14030,9 +14606,7 @@ export const RoleList = {
|
|
|
14030
14606
|
fromJSON(object) {
|
|
14031
14607
|
return {
|
|
14032
14608
|
roles: globalThis.Array.isArray(object?.roles) ? object.roles.map((e) => Role.fromJSON(e)) : [],
|
|
14033
|
-
|
|
14034
|
-
prev_cursor: isSet(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
|
|
14035
|
-
cacheable_cursor: isSet(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : "",
|
|
14609
|
+
max_level_permission: isSet(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0,
|
|
14036
14610
|
};
|
|
14037
14611
|
},
|
|
14038
14612
|
toJSON(message) {
|
|
@@ -14040,14 +14614,8 @@ export const RoleList = {
|
|
|
14040
14614
|
if (message.roles?.length) {
|
|
14041
14615
|
obj.roles = message.roles.map((e) => Role.toJSON(e));
|
|
14042
14616
|
}
|
|
14043
|
-
if (message.
|
|
14044
|
-
obj.
|
|
14045
|
-
}
|
|
14046
|
-
if (message.prev_cursor !== "") {
|
|
14047
|
-
obj.prev_cursor = message.prev_cursor;
|
|
14048
|
-
}
|
|
14049
|
-
if (message.cacheable_cursor !== "") {
|
|
14050
|
-
obj.cacheable_cursor = message.cacheable_cursor;
|
|
14617
|
+
if (message.max_level_permission !== 0) {
|
|
14618
|
+
obj.max_level_permission = Math.round(message.max_level_permission);
|
|
14051
14619
|
}
|
|
14052
14620
|
return obj;
|
|
14053
14621
|
},
|
|
@@ -14057,9 +14625,7 @@ export const RoleList = {
|
|
|
14057
14625
|
fromPartial(object) {
|
|
14058
14626
|
const message = createBaseRoleList();
|
|
14059
14627
|
message.roles = object.roles?.map((e) => Role.fromPartial(e)) || [];
|
|
14060
|
-
message.
|
|
14061
|
-
message.prev_cursor = object.prev_cursor ?? "";
|
|
14062
|
-
message.cacheable_cursor = object.cacheable_cursor ?? "";
|
|
14628
|
+
message.max_level_permission = object.max_level_permission ?? 0;
|
|
14063
14629
|
return message;
|
|
14064
14630
|
},
|
|
14065
14631
|
};
|