mezon-sdk 2.7.98 → 2.8.0
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 +708 -196
- package/dist/cjs/api/api.js +983 -274
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/interfaces/api.d.ts +4 -0
- package/dist/cjs/interfaces/client.d.ts +16 -0
- package/dist/cjs/interfaces/client.js.map +1 -1
- package/dist/cjs/interfaces/socket.d.ts +2 -0
- package/dist/cjs/mezon-client/client/MezonClient.js +32 -23
- package/dist/cjs/mezon-client/client/MezonClient.js.map +1 -1
- package/dist/cjs/mezon-client/manager/channel_manager.js +1 -1
- package/dist/cjs/mezon-client/manager/channel_manager.js.map +1 -1
- package/dist/cjs/mezon-client/manager/socket_manager.d.ts +2 -1
- package/dist/cjs/mezon-client/manager/socket_manager.js +13 -5
- package/dist/cjs/mezon-client/manager/socket_manager.js.map +1 -1
- package/dist/cjs/mezon-client/structures/Clan.d.ts +2 -0
- package/dist/cjs/mezon-client/structures/Clan.js +1 -0
- package/dist/cjs/mezon-client/structures/Clan.js.map +1 -1
- package/dist/cjs/mezon-client/structures/Message.d.ts +1 -1
- package/dist/cjs/mezon-client/structures/Message.js +3 -1
- package/dist/cjs/mezon-client/structures/Message.js.map +1 -1
- package/dist/cjs/mezon-client/structures/TextChannel.d.ts +1 -0
- package/dist/cjs/mezon-client/structures/TextChannel.js +34 -0
- package/dist/cjs/mezon-client/structures/TextChannel.js.map +1 -1
- package/dist/cjs/mezon-client/utils/AsyncThrottleQueue.d.ts +6 -4
- package/dist/cjs/mezon-client/utils/AsyncThrottleQueue.js +29 -24
- package/dist/cjs/mezon-client/utils/AsyncThrottleQueue.js.map +1 -1
- package/dist/cjs/rtapi/realtime.d.ts +33241 -11758
- package/dist/cjs/rtapi/realtime.js +2099 -239
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/cjs/socket.d.ts +4 -2
- package/dist/cjs/socket.js +34 -0
- package/dist/cjs/socket.js.map +1 -1
- package/dist/esm/api/api.d.ts +708 -196
- package/dist/esm/api/api.js +962 -265
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/interfaces/api.d.ts +4 -0
- package/dist/esm/interfaces/client.d.ts +16 -0
- package/dist/esm/interfaces/client.js.map +1 -1
- package/dist/esm/interfaces/socket.d.ts +2 -0
- package/dist/esm/mezon-client/client/MezonClient.js +31 -22
- package/dist/esm/mezon-client/client/MezonClient.js.map +1 -1
- package/dist/esm/mezon-client/manager/channel_manager.js +1 -1
- package/dist/esm/mezon-client/manager/channel_manager.js.map +1 -1
- package/dist/esm/mezon-client/manager/socket_manager.d.ts +2 -1
- package/dist/esm/mezon-client/manager/socket_manager.js +11 -4
- package/dist/esm/mezon-client/manager/socket_manager.js.map +1 -1
- package/dist/esm/mezon-client/structures/Clan.d.ts +2 -0
- package/dist/esm/mezon-client/structures/Clan.js +2 -0
- package/dist/esm/mezon-client/structures/Clan.js.map +1 -1
- package/dist/esm/mezon-client/structures/Message.d.ts +1 -1
- package/dist/esm/mezon-client/structures/Message.js +3 -1
- package/dist/esm/mezon-client/structures/Message.js.map +1 -1
- package/dist/esm/mezon-client/structures/TextChannel.d.ts +1 -0
- package/dist/esm/mezon-client/structures/TextChannel.js +34 -0
- package/dist/esm/mezon-client/structures/TextChannel.js.map +1 -1
- package/dist/esm/mezon-client/utils/AsyncThrottleQueue.d.ts +6 -4
- package/dist/esm/mezon-client/utils/AsyncThrottleQueue.js +30 -25
- package/dist/esm/mezon-client/utils/AsyncThrottleQueue.js.map +1 -1
- package/dist/esm/rtapi/realtime.d.ts +33241 -11758
- package/dist/esm/rtapi/realtime.js +2066 -213
- package/dist/esm/rtapi/realtime.js.map +1 -1
- package/dist/esm/socket.d.ts +4 -2
- package/dist/esm/socket.js +33 -0
- 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
|
@@ -3217,7 +3217,7 @@ export const Event_PropertiesEntry = {
|
|
|
3217
3217
|
},
|
|
3218
3218
|
};
|
|
3219
3219
|
function createBaseFriend() {
|
|
3220
|
-
return { user: undefined, state: undefined, update_time: undefined };
|
|
3220
|
+
return { user: undefined, state: undefined, update_time: undefined, source_id: "" };
|
|
3221
3221
|
}
|
|
3222
3222
|
export const Friend = {
|
|
3223
3223
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -3230,6 +3230,9 @@ export const Friend = {
|
|
|
3230
3230
|
if (message.update_time !== undefined) {
|
|
3231
3231
|
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(26).fork()).ldelim();
|
|
3232
3232
|
}
|
|
3233
|
+
if (message.source_id !== "") {
|
|
3234
|
+
writer.uint32(34).string(message.source_id);
|
|
3235
|
+
}
|
|
3233
3236
|
return writer;
|
|
3234
3237
|
},
|
|
3235
3238
|
decode(input, length) {
|
|
@@ -3257,6 +3260,12 @@ export const Friend = {
|
|
|
3257
3260
|
}
|
|
3258
3261
|
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3259
3262
|
continue;
|
|
3263
|
+
case 4:
|
|
3264
|
+
if (tag !== 34) {
|
|
3265
|
+
break;
|
|
3266
|
+
}
|
|
3267
|
+
message.source_id = reader.string();
|
|
3268
|
+
continue;
|
|
3260
3269
|
}
|
|
3261
3270
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3262
3271
|
break;
|
|
@@ -3270,6 +3279,7 @@ export const Friend = {
|
|
|
3270
3279
|
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
3271
3280
|
state: isSet(object.state) ? Number(object.state) : undefined,
|
|
3272
3281
|
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
3282
|
+
source_id: isSet(object.source_id) ? globalThis.String(object.source_id) : "",
|
|
3273
3283
|
};
|
|
3274
3284
|
},
|
|
3275
3285
|
toJSON(message) {
|
|
@@ -3283,6 +3293,9 @@ export const Friend = {
|
|
|
3283
3293
|
if (message.update_time !== undefined) {
|
|
3284
3294
|
obj.update_time = message.update_time.toISOString();
|
|
3285
3295
|
}
|
|
3296
|
+
if (message.source_id !== "") {
|
|
3297
|
+
obj.source_id = message.source_id;
|
|
3298
|
+
}
|
|
3286
3299
|
return obj;
|
|
3287
3300
|
},
|
|
3288
3301
|
create(base) {
|
|
@@ -3293,6 +3306,7 @@ export const Friend = {
|
|
|
3293
3306
|
message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
|
|
3294
3307
|
message.state = object.state ?? undefined;
|
|
3295
3308
|
message.update_time = object.update_time ?? undefined;
|
|
3309
|
+
message.source_id = object.source_id ?? "";
|
|
3296
3310
|
return message;
|
|
3297
3311
|
},
|
|
3298
3312
|
};
|
|
@@ -4731,7 +4745,7 @@ export const ClanUserList_ClanUser = {
|
|
|
4731
4745
|
},
|
|
4732
4746
|
};
|
|
4733
4747
|
function createBaseRegistFcmDeviceTokenRequest() {
|
|
4734
|
-
return { token: "", device_id: "", platform: "" };
|
|
4748
|
+
return { token: "", device_id: "", platform: "", voip_token: "" };
|
|
4735
4749
|
}
|
|
4736
4750
|
export const RegistFcmDeviceTokenRequest = {
|
|
4737
4751
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -4744,6 +4758,9 @@ export const RegistFcmDeviceTokenRequest = {
|
|
|
4744
4758
|
if (message.platform !== "") {
|
|
4745
4759
|
writer.uint32(26).string(message.platform);
|
|
4746
4760
|
}
|
|
4761
|
+
if (message.voip_token !== "") {
|
|
4762
|
+
writer.uint32(34).string(message.voip_token);
|
|
4763
|
+
}
|
|
4747
4764
|
return writer;
|
|
4748
4765
|
},
|
|
4749
4766
|
decode(input, length) {
|
|
@@ -4771,6 +4788,12 @@ export const RegistFcmDeviceTokenRequest = {
|
|
|
4771
4788
|
}
|
|
4772
4789
|
message.platform = reader.string();
|
|
4773
4790
|
continue;
|
|
4791
|
+
case 4:
|
|
4792
|
+
if (tag !== 34) {
|
|
4793
|
+
break;
|
|
4794
|
+
}
|
|
4795
|
+
message.voip_token = reader.string();
|
|
4796
|
+
continue;
|
|
4774
4797
|
}
|
|
4775
4798
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4776
4799
|
break;
|
|
@@ -4784,6 +4807,7 @@ export const RegistFcmDeviceTokenRequest = {
|
|
|
4784
4807
|
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
4785
4808
|
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
4786
4809
|
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
4810
|
+
voip_token: isSet(object.voip_token) ? globalThis.String(object.voip_token) : "",
|
|
4787
4811
|
};
|
|
4788
4812
|
},
|
|
4789
4813
|
toJSON(message) {
|
|
@@ -4797,6 +4821,9 @@ export const RegistFcmDeviceTokenRequest = {
|
|
|
4797
4821
|
if (message.platform !== "") {
|
|
4798
4822
|
obj.platform = message.platform;
|
|
4799
4823
|
}
|
|
4824
|
+
if (message.voip_token !== "") {
|
|
4825
|
+
obj.voip_token = message.voip_token;
|
|
4826
|
+
}
|
|
4800
4827
|
return obj;
|
|
4801
4828
|
},
|
|
4802
4829
|
create(base) {
|
|
@@ -4807,6 +4834,7 @@ export const RegistFcmDeviceTokenRequest = {
|
|
|
4807
4834
|
message.token = object.token ?? "";
|
|
4808
4835
|
message.device_id = object.device_id ?? "";
|
|
4809
4836
|
message.platform = object.platform ?? "";
|
|
4837
|
+
message.voip_token = object.voip_token ?? "";
|
|
4810
4838
|
return message;
|
|
4811
4839
|
},
|
|
4812
4840
|
};
|
|
@@ -7051,6 +7079,7 @@ function createBaseUser() {
|
|
|
7051
7079
|
is_mobile: false,
|
|
7052
7080
|
dob: undefined,
|
|
7053
7081
|
mezon_id: "",
|
|
7082
|
+
list_nick_names: [],
|
|
7054
7083
|
};
|
|
7055
7084
|
}
|
|
7056
7085
|
export const User = {
|
|
@@ -7121,6 +7150,9 @@ export const User = {
|
|
|
7121
7150
|
if (message.mezon_id !== "") {
|
|
7122
7151
|
writer.uint32(178).string(message.mezon_id);
|
|
7123
7152
|
}
|
|
7153
|
+
for (const v of message.list_nick_names) {
|
|
7154
|
+
writer.uint32(186).string(v);
|
|
7155
|
+
}
|
|
7124
7156
|
return writer;
|
|
7125
7157
|
},
|
|
7126
7158
|
decode(input, length) {
|
|
@@ -7262,6 +7294,12 @@ export const User = {
|
|
|
7262
7294
|
}
|
|
7263
7295
|
message.mezon_id = reader.string();
|
|
7264
7296
|
continue;
|
|
7297
|
+
case 23:
|
|
7298
|
+
if (tag !== 186) {
|
|
7299
|
+
break;
|
|
7300
|
+
}
|
|
7301
|
+
message.list_nick_names.push(reader.string());
|
|
7302
|
+
continue;
|
|
7265
7303
|
}
|
|
7266
7304
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7267
7305
|
break;
|
|
@@ -7294,6 +7332,9 @@ export const User = {
|
|
|
7294
7332
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
7295
7333
|
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
7296
7334
|
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
7335
|
+
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
7336
|
+
? object.list_nick_names.map((e) => globalThis.String(e))
|
|
7337
|
+
: [],
|
|
7297
7338
|
};
|
|
7298
7339
|
},
|
|
7299
7340
|
toJSON(message) {
|
|
@@ -7364,6 +7405,9 @@ export const User = {
|
|
|
7364
7405
|
if (message.mezon_id !== "") {
|
|
7365
7406
|
obj.mezon_id = message.mezon_id;
|
|
7366
7407
|
}
|
|
7408
|
+
if (message.list_nick_names?.length) {
|
|
7409
|
+
obj.list_nick_names = message.list_nick_names;
|
|
7410
|
+
}
|
|
7367
7411
|
return obj;
|
|
7368
7412
|
},
|
|
7369
7413
|
create(base) {
|
|
@@ -7393,6 +7437,7 @@ export const User = {
|
|
|
7393
7437
|
message.is_mobile = object.is_mobile ?? false;
|
|
7394
7438
|
message.dob = object.dob ?? undefined;
|
|
7395
7439
|
message.mezon_id = object.mezon_id ?? "";
|
|
7440
|
+
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
7396
7441
|
return message;
|
|
7397
7442
|
},
|
|
7398
7443
|
};
|
|
@@ -17418,7 +17463,17 @@ export const RegistrationEmailRequest_VarsEntry = {
|
|
|
17418
17463
|
},
|
|
17419
17464
|
};
|
|
17420
17465
|
function createBaseClanEmoji() {
|
|
17421
|
-
return {
|
|
17466
|
+
return {
|
|
17467
|
+
id: "",
|
|
17468
|
+
src: "",
|
|
17469
|
+
shortname: "",
|
|
17470
|
+
category: "",
|
|
17471
|
+
creator_id: "",
|
|
17472
|
+
clan_id: "",
|
|
17473
|
+
logo: "",
|
|
17474
|
+
clan_name: "",
|
|
17475
|
+
is_for_sale: false,
|
|
17476
|
+
};
|
|
17422
17477
|
}
|
|
17423
17478
|
export const ClanEmoji = {
|
|
17424
17479
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -17446,6 +17501,9 @@ export const ClanEmoji = {
|
|
|
17446
17501
|
if (message.clan_name !== "") {
|
|
17447
17502
|
writer.uint32(66).string(message.clan_name);
|
|
17448
17503
|
}
|
|
17504
|
+
if (message.is_for_sale !== false) {
|
|
17505
|
+
writer.uint32(72).bool(message.is_for_sale);
|
|
17506
|
+
}
|
|
17449
17507
|
return writer;
|
|
17450
17508
|
},
|
|
17451
17509
|
decode(input, length) {
|
|
@@ -17503,6 +17561,12 @@ export const ClanEmoji = {
|
|
|
17503
17561
|
}
|
|
17504
17562
|
message.clan_name = reader.string();
|
|
17505
17563
|
continue;
|
|
17564
|
+
case 9:
|
|
17565
|
+
if (tag !== 72) {
|
|
17566
|
+
break;
|
|
17567
|
+
}
|
|
17568
|
+
message.is_for_sale = reader.bool();
|
|
17569
|
+
continue;
|
|
17506
17570
|
}
|
|
17507
17571
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17508
17572
|
break;
|
|
@@ -17521,6 +17585,7 @@ export const ClanEmoji = {
|
|
|
17521
17585
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17522
17586
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
17523
17587
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
17588
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
17524
17589
|
};
|
|
17525
17590
|
},
|
|
17526
17591
|
toJSON(message) {
|
|
@@ -17549,6 +17614,9 @@ export const ClanEmoji = {
|
|
|
17549
17614
|
if (message.clan_name !== "") {
|
|
17550
17615
|
obj.clan_name = message.clan_name;
|
|
17551
17616
|
}
|
|
17617
|
+
if (message.is_for_sale !== false) {
|
|
17618
|
+
obj.is_for_sale = message.is_for_sale;
|
|
17619
|
+
}
|
|
17552
17620
|
return obj;
|
|
17553
17621
|
},
|
|
17554
17622
|
create(base) {
|
|
@@ -17564,6 +17632,7 @@ export const ClanEmoji = {
|
|
|
17564
17632
|
message.clan_id = object.clan_id ?? "";
|
|
17565
17633
|
message.logo = object.logo ?? "";
|
|
17566
17634
|
message.clan_name = object.clan_name ?? "";
|
|
17635
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
17567
17636
|
return message;
|
|
17568
17637
|
},
|
|
17569
17638
|
};
|
|
@@ -17686,6 +17755,8 @@ function createBaseClanSticker() {
|
|
|
17686
17755
|
clan_id: "",
|
|
17687
17756
|
logo: "",
|
|
17688
17757
|
clan_name: "",
|
|
17758
|
+
media_type: 0,
|
|
17759
|
+
is_for_sale: false,
|
|
17689
17760
|
};
|
|
17690
17761
|
}
|
|
17691
17762
|
export const ClanSticker = {
|
|
@@ -17717,6 +17788,12 @@ export const ClanSticker = {
|
|
|
17717
17788
|
if (message.clan_name !== "") {
|
|
17718
17789
|
writer.uint32(74).string(message.clan_name);
|
|
17719
17790
|
}
|
|
17791
|
+
if (message.media_type !== 0) {
|
|
17792
|
+
writer.uint32(80).int32(message.media_type);
|
|
17793
|
+
}
|
|
17794
|
+
if (message.is_for_sale !== false) {
|
|
17795
|
+
writer.uint32(88).bool(message.is_for_sale);
|
|
17796
|
+
}
|
|
17720
17797
|
return writer;
|
|
17721
17798
|
},
|
|
17722
17799
|
decode(input, length) {
|
|
@@ -17780,6 +17857,18 @@ export const ClanSticker = {
|
|
|
17780
17857
|
}
|
|
17781
17858
|
message.clan_name = reader.string();
|
|
17782
17859
|
continue;
|
|
17860
|
+
case 10:
|
|
17861
|
+
if (tag !== 80) {
|
|
17862
|
+
break;
|
|
17863
|
+
}
|
|
17864
|
+
message.media_type = reader.int32();
|
|
17865
|
+
continue;
|
|
17866
|
+
case 11:
|
|
17867
|
+
if (tag !== 88) {
|
|
17868
|
+
break;
|
|
17869
|
+
}
|
|
17870
|
+
message.is_for_sale = reader.bool();
|
|
17871
|
+
continue;
|
|
17783
17872
|
}
|
|
17784
17873
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17785
17874
|
break;
|
|
@@ -17799,6 +17888,8 @@ export const ClanSticker = {
|
|
|
17799
17888
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17800
17889
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
17801
17890
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
17891
|
+
media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
|
|
17892
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
17802
17893
|
};
|
|
17803
17894
|
},
|
|
17804
17895
|
toJSON(message) {
|
|
@@ -17830,6 +17921,12 @@ export const ClanSticker = {
|
|
|
17830
17921
|
if (message.clan_name !== "") {
|
|
17831
17922
|
obj.clan_name = message.clan_name;
|
|
17832
17923
|
}
|
|
17924
|
+
if (message.media_type !== 0) {
|
|
17925
|
+
obj.media_type = Math.round(message.media_type);
|
|
17926
|
+
}
|
|
17927
|
+
if (message.is_for_sale !== false) {
|
|
17928
|
+
obj.is_for_sale = message.is_for_sale;
|
|
17929
|
+
}
|
|
17833
17930
|
return obj;
|
|
17834
17931
|
},
|
|
17835
17932
|
create(base) {
|
|
@@ -17846,6 +17943,8 @@ export const ClanSticker = {
|
|
|
17846
17943
|
message.clan_id = object.clan_id ?? "";
|
|
17847
17944
|
message.logo = object.logo ?? "";
|
|
17848
17945
|
message.clan_name = object.clan_name ?? "";
|
|
17946
|
+
message.media_type = object.media_type ?? 0;
|
|
17947
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
17849
17948
|
return message;
|
|
17850
17949
|
},
|
|
17851
17950
|
};
|
|
@@ -17996,7 +18095,7 @@ export const AllUsersAddChannelResponse = {
|
|
|
17996
18095
|
},
|
|
17997
18096
|
};
|
|
17998
18097
|
function createBaseClanEmojiCreateRequest() {
|
|
17999
|
-
return { clan_id: "", source: "", shortname: "", category: "", id: "" };
|
|
18098
|
+
return { clan_id: "", source: "", shortname: "", category: "", id: "", is_for_sale: false };
|
|
18000
18099
|
}
|
|
18001
18100
|
export const ClanEmojiCreateRequest = {
|
|
18002
18101
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -18015,6 +18114,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
18015
18114
|
if (message.id !== "") {
|
|
18016
18115
|
writer.uint32(42).string(message.id);
|
|
18017
18116
|
}
|
|
18117
|
+
if (message.is_for_sale !== false) {
|
|
18118
|
+
writer.uint32(48).bool(message.is_for_sale);
|
|
18119
|
+
}
|
|
18018
18120
|
return writer;
|
|
18019
18121
|
},
|
|
18020
18122
|
decode(input, length) {
|
|
@@ -18054,6 +18156,12 @@ export const ClanEmojiCreateRequest = {
|
|
|
18054
18156
|
}
|
|
18055
18157
|
message.id = reader.string();
|
|
18056
18158
|
continue;
|
|
18159
|
+
case 6:
|
|
18160
|
+
if (tag !== 48) {
|
|
18161
|
+
break;
|
|
18162
|
+
}
|
|
18163
|
+
message.is_for_sale = reader.bool();
|
|
18164
|
+
continue;
|
|
18057
18165
|
}
|
|
18058
18166
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18059
18167
|
break;
|
|
@@ -18069,6 +18177,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18069
18177
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
18070
18178
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
18071
18179
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
18180
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
18072
18181
|
};
|
|
18073
18182
|
},
|
|
18074
18183
|
toJSON(message) {
|
|
@@ -18088,6 +18197,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
18088
18197
|
if (message.id !== "") {
|
|
18089
18198
|
obj.id = message.id;
|
|
18090
18199
|
}
|
|
18200
|
+
if (message.is_for_sale !== false) {
|
|
18201
|
+
obj.is_for_sale = message.is_for_sale;
|
|
18202
|
+
}
|
|
18091
18203
|
return obj;
|
|
18092
18204
|
},
|
|
18093
18205
|
create(base) {
|
|
@@ -18100,6 +18212,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18100
18212
|
message.shortname = object.shortname ?? "";
|
|
18101
18213
|
message.category = object.category ?? "";
|
|
18102
18214
|
message.id = object.id ?? "";
|
|
18215
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
18103
18216
|
return message;
|
|
18104
18217
|
},
|
|
18105
18218
|
};
|
|
@@ -19241,7 +19354,7 @@ export const CheckDuplicateClanNameResponse = {
|
|
|
19241
19354
|
},
|
|
19242
19355
|
};
|
|
19243
19356
|
function createBaseClanStickerAddRequest() {
|
|
19244
|
-
return { source: "", shortname: "", category: "", clan_id:
|
|
19357
|
+
return { source: "", shortname: "", category: "", clan_id: "", id: "", media_type: 0, is_for_sale: false };
|
|
19245
19358
|
}
|
|
19246
19359
|
export const ClanStickerAddRequest = {
|
|
19247
19360
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -19254,12 +19367,18 @@ export const ClanStickerAddRequest = {
|
|
|
19254
19367
|
if (message.category !== "") {
|
|
19255
19368
|
writer.uint32(26).string(message.category);
|
|
19256
19369
|
}
|
|
19257
|
-
if (message.clan_id !==
|
|
19258
|
-
writer.uint32(
|
|
19370
|
+
if (message.clan_id !== "") {
|
|
19371
|
+
writer.uint32(34).string(message.clan_id);
|
|
19259
19372
|
}
|
|
19260
19373
|
if (message.id !== "") {
|
|
19261
19374
|
writer.uint32(42).string(message.id);
|
|
19262
19375
|
}
|
|
19376
|
+
if (message.media_type !== 0) {
|
|
19377
|
+
writer.uint32(48).int32(message.media_type);
|
|
19378
|
+
}
|
|
19379
|
+
if (message.is_for_sale !== false) {
|
|
19380
|
+
writer.uint32(56).bool(message.is_for_sale);
|
|
19381
|
+
}
|
|
19263
19382
|
return writer;
|
|
19264
19383
|
},
|
|
19265
19384
|
decode(input, length) {
|
|
@@ -19288,10 +19407,10 @@ export const ClanStickerAddRequest = {
|
|
|
19288
19407
|
message.category = reader.string();
|
|
19289
19408
|
continue;
|
|
19290
19409
|
case 4:
|
|
19291
|
-
if (tag !==
|
|
19410
|
+
if (tag !== 34) {
|
|
19292
19411
|
break;
|
|
19293
19412
|
}
|
|
19294
|
-
message.clan_id =
|
|
19413
|
+
message.clan_id = reader.string();
|
|
19295
19414
|
continue;
|
|
19296
19415
|
case 5:
|
|
19297
19416
|
if (tag !== 42) {
|
|
@@ -19299,6 +19418,18 @@ export const ClanStickerAddRequest = {
|
|
|
19299
19418
|
}
|
|
19300
19419
|
message.id = reader.string();
|
|
19301
19420
|
continue;
|
|
19421
|
+
case 6:
|
|
19422
|
+
if (tag !== 48) {
|
|
19423
|
+
break;
|
|
19424
|
+
}
|
|
19425
|
+
message.media_type = reader.int32();
|
|
19426
|
+
continue;
|
|
19427
|
+
case 7:
|
|
19428
|
+
if (tag !== 56) {
|
|
19429
|
+
break;
|
|
19430
|
+
}
|
|
19431
|
+
message.is_for_sale = reader.bool();
|
|
19432
|
+
continue;
|
|
19302
19433
|
}
|
|
19303
19434
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19304
19435
|
break;
|
|
@@ -19312,8 +19443,10 @@ export const ClanStickerAddRequest = {
|
|
|
19312
19443
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
19313
19444
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
19314
19445
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
19315
|
-
clan_id: isSet(object.clan_id) ? globalThis.
|
|
19446
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
19316
19447
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
19448
|
+
media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
|
|
19449
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
19317
19450
|
};
|
|
19318
19451
|
},
|
|
19319
19452
|
toJSON(message) {
|
|
@@ -19327,12 +19460,18 @@ export const ClanStickerAddRequest = {
|
|
|
19327
19460
|
if (message.category !== "") {
|
|
19328
19461
|
obj.category = message.category;
|
|
19329
19462
|
}
|
|
19330
|
-
if (message.clan_id !==
|
|
19331
|
-
obj.clan_id =
|
|
19463
|
+
if (message.clan_id !== "") {
|
|
19464
|
+
obj.clan_id = message.clan_id;
|
|
19332
19465
|
}
|
|
19333
19466
|
if (message.id !== "") {
|
|
19334
19467
|
obj.id = message.id;
|
|
19335
19468
|
}
|
|
19469
|
+
if (message.media_type !== 0) {
|
|
19470
|
+
obj.media_type = Math.round(message.media_type);
|
|
19471
|
+
}
|
|
19472
|
+
if (message.is_for_sale !== false) {
|
|
19473
|
+
obj.is_for_sale = message.is_for_sale;
|
|
19474
|
+
}
|
|
19336
19475
|
return obj;
|
|
19337
19476
|
},
|
|
19338
19477
|
create(base) {
|
|
@@ -19343,8 +19482,10 @@ export const ClanStickerAddRequest = {
|
|
|
19343
19482
|
message.source = object.source ?? "";
|
|
19344
19483
|
message.shortname = object.shortname ?? "";
|
|
19345
19484
|
message.category = object.category ?? "";
|
|
19346
|
-
message.clan_id = object.clan_id ??
|
|
19485
|
+
message.clan_id = object.clan_id ?? "";
|
|
19347
19486
|
message.id = object.id ?? "";
|
|
19487
|
+
message.media_type = object.media_type ?? 0;
|
|
19488
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
19348
19489
|
return message;
|
|
19349
19490
|
},
|
|
19350
19491
|
};
|
|
@@ -20240,6 +20381,7 @@ function createBaseUpdateAppRequest() {
|
|
|
20240
20381
|
token: undefined,
|
|
20241
20382
|
about: "",
|
|
20242
20383
|
app_url: "",
|
|
20384
|
+
is_shadow: "",
|
|
20243
20385
|
};
|
|
20244
20386
|
}
|
|
20245
20387
|
export const UpdateAppRequest = {
|
|
@@ -20265,6 +20407,9 @@ export const UpdateAppRequest = {
|
|
|
20265
20407
|
if (message.app_url !== "") {
|
|
20266
20408
|
writer.uint32(58).string(message.app_url);
|
|
20267
20409
|
}
|
|
20410
|
+
if (message.is_shadow !== "") {
|
|
20411
|
+
writer.uint32(74).string(message.is_shadow);
|
|
20412
|
+
}
|
|
20268
20413
|
return writer;
|
|
20269
20414
|
},
|
|
20270
20415
|
decode(input, length) {
|
|
@@ -20316,6 +20461,12 @@ export const UpdateAppRequest = {
|
|
|
20316
20461
|
}
|
|
20317
20462
|
message.app_url = reader.string();
|
|
20318
20463
|
continue;
|
|
20464
|
+
case 9:
|
|
20465
|
+
if (tag !== 74) {
|
|
20466
|
+
break;
|
|
20467
|
+
}
|
|
20468
|
+
message.is_shadow = reader.string();
|
|
20469
|
+
continue;
|
|
20319
20470
|
}
|
|
20320
20471
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20321
20472
|
break;
|
|
@@ -20333,6 +20484,7 @@ export const UpdateAppRequest = {
|
|
|
20333
20484
|
token: isSet(object.token) ? String(object.token) : undefined,
|
|
20334
20485
|
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
20335
20486
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
20487
|
+
is_shadow: isSet(object.is_shadow) ? globalThis.String(object.is_shadow) : "",
|
|
20336
20488
|
};
|
|
20337
20489
|
},
|
|
20338
20490
|
toJSON(message) {
|
|
@@ -20358,6 +20510,9 @@ export const UpdateAppRequest = {
|
|
|
20358
20510
|
if (message.app_url !== "") {
|
|
20359
20511
|
obj.app_url = message.app_url;
|
|
20360
20512
|
}
|
|
20513
|
+
if (message.is_shadow !== "") {
|
|
20514
|
+
obj.is_shadow = message.is_shadow;
|
|
20515
|
+
}
|
|
20361
20516
|
return obj;
|
|
20362
20517
|
},
|
|
20363
20518
|
create(base) {
|
|
@@ -20372,6 +20527,7 @@ export const UpdateAppRequest = {
|
|
|
20372
20527
|
message.token = object.token ?? undefined;
|
|
20373
20528
|
message.about = object.about ?? "";
|
|
20374
20529
|
message.app_url = object.app_url ?? "";
|
|
20530
|
+
message.is_shadow = object.is_shadow ?? "";
|
|
20375
20531
|
return message;
|
|
20376
20532
|
},
|
|
20377
20533
|
};
|
|
@@ -22010,18 +22166,18 @@ export const AllUserClans = {
|
|
|
22010
22166
|
},
|
|
22011
22167
|
};
|
|
22012
22168
|
function createBaseRoleListEventRequest() {
|
|
22013
|
-
return { clan_id: "", limit:
|
|
22169
|
+
return { clan_id: "", limit: 0, state: 0, cursor: "" };
|
|
22014
22170
|
}
|
|
22015
22171
|
export const RoleListEventRequest = {
|
|
22016
22172
|
encode(message, writer = _m0.Writer.create()) {
|
|
22017
22173
|
if (message.clan_id !== "") {
|
|
22018
22174
|
writer.uint32(10).string(message.clan_id);
|
|
22019
22175
|
}
|
|
22020
|
-
if (message.limit !==
|
|
22021
|
-
writer.uint32(
|
|
22176
|
+
if (message.limit !== 0) {
|
|
22177
|
+
writer.uint32(16).int32(message.limit);
|
|
22022
22178
|
}
|
|
22023
|
-
if (message.state !==
|
|
22024
|
-
writer.uint32(
|
|
22179
|
+
if (message.state !== 0) {
|
|
22180
|
+
writer.uint32(24).int32(message.state);
|
|
22025
22181
|
}
|
|
22026
22182
|
if (message.cursor !== "") {
|
|
22027
22183
|
writer.uint32(34).string(message.cursor);
|
|
@@ -22042,16 +22198,16 @@ export const RoleListEventRequest = {
|
|
|
22042
22198
|
message.clan_id = reader.string();
|
|
22043
22199
|
continue;
|
|
22044
22200
|
case 2:
|
|
22045
|
-
if (tag !==
|
|
22201
|
+
if (tag !== 16) {
|
|
22046
22202
|
break;
|
|
22047
22203
|
}
|
|
22048
|
-
message.limit = reader.
|
|
22204
|
+
message.limit = reader.int32();
|
|
22049
22205
|
continue;
|
|
22050
22206
|
case 3:
|
|
22051
|
-
if (tag !==
|
|
22207
|
+
if (tag !== 24) {
|
|
22052
22208
|
break;
|
|
22053
22209
|
}
|
|
22054
|
-
message.state = reader.
|
|
22210
|
+
message.state = reader.int32();
|
|
22055
22211
|
continue;
|
|
22056
22212
|
case 4:
|
|
22057
22213
|
if (tag !== 34) {
|
|
@@ -22070,8 +22226,8 @@ export const RoleListEventRequest = {
|
|
|
22070
22226
|
fromJSON(object) {
|
|
22071
22227
|
return {
|
|
22072
22228
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
22073
|
-
limit: isSet(object.limit) ? globalThis.
|
|
22074
|
-
state: isSet(object.state) ? globalThis.
|
|
22229
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
22230
|
+
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
22075
22231
|
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
22076
22232
|
};
|
|
22077
22233
|
},
|
|
@@ -22080,11 +22236,11 @@ export const RoleListEventRequest = {
|
|
|
22080
22236
|
if (message.clan_id !== "") {
|
|
22081
22237
|
obj.clan_id = message.clan_id;
|
|
22082
22238
|
}
|
|
22083
|
-
if (message.limit !==
|
|
22084
|
-
obj.limit = message.limit;
|
|
22239
|
+
if (message.limit !== 0) {
|
|
22240
|
+
obj.limit = Math.round(message.limit);
|
|
22085
22241
|
}
|
|
22086
|
-
if (message.state !==
|
|
22087
|
-
obj.state = message.state;
|
|
22242
|
+
if (message.state !== 0) {
|
|
22243
|
+
obj.state = Math.round(message.state);
|
|
22088
22244
|
}
|
|
22089
22245
|
if (message.cursor !== "") {
|
|
22090
22246
|
obj.cursor = message.cursor;
|
|
@@ -22097,22 +22253,22 @@ export const RoleListEventRequest = {
|
|
|
22097
22253
|
fromPartial(object) {
|
|
22098
22254
|
const message = createBaseRoleListEventRequest();
|
|
22099
22255
|
message.clan_id = object.clan_id ?? "";
|
|
22100
|
-
message.limit = object.limit ??
|
|
22101
|
-
message.state = object.state ??
|
|
22256
|
+
message.limit = object.limit ?? 0;
|
|
22257
|
+
message.state = object.state ?? 0;
|
|
22102
22258
|
message.cursor = object.cursor ?? "";
|
|
22103
22259
|
return message;
|
|
22104
22260
|
},
|
|
22105
22261
|
};
|
|
22106
22262
|
function createBaseRoleListEventResponse() {
|
|
22107
|
-
return { limit:
|
|
22263
|
+
return { limit: 0, state: 0, cursor: "", clanId: "", roles: undefined };
|
|
22108
22264
|
}
|
|
22109
22265
|
export const RoleListEventResponse = {
|
|
22110
22266
|
encode(message, writer = _m0.Writer.create()) {
|
|
22111
|
-
if (message.limit !==
|
|
22112
|
-
writer.uint32(
|
|
22267
|
+
if (message.limit !== 0) {
|
|
22268
|
+
writer.uint32(8).int32(message.limit);
|
|
22113
22269
|
}
|
|
22114
|
-
if (message.state !==
|
|
22115
|
-
writer.uint32(
|
|
22270
|
+
if (message.state !== 0) {
|
|
22271
|
+
writer.uint32(16).int32(message.state);
|
|
22116
22272
|
}
|
|
22117
22273
|
if (message.cursor !== "") {
|
|
22118
22274
|
writer.uint32(26).string(message.cursor);
|
|
@@ -22133,16 +22289,16 @@ export const RoleListEventResponse = {
|
|
|
22133
22289
|
const tag = reader.uint32();
|
|
22134
22290
|
switch (tag >>> 3) {
|
|
22135
22291
|
case 1:
|
|
22136
|
-
if (tag !==
|
|
22292
|
+
if (tag !== 8) {
|
|
22137
22293
|
break;
|
|
22138
22294
|
}
|
|
22139
|
-
message.limit = reader.
|
|
22295
|
+
message.limit = reader.int32();
|
|
22140
22296
|
continue;
|
|
22141
22297
|
case 2:
|
|
22142
|
-
if (tag !==
|
|
22298
|
+
if (tag !== 16) {
|
|
22143
22299
|
break;
|
|
22144
22300
|
}
|
|
22145
|
-
message.state = reader.
|
|
22301
|
+
message.state = reader.int32();
|
|
22146
22302
|
continue;
|
|
22147
22303
|
case 3:
|
|
22148
22304
|
if (tag !== 26) {
|
|
@@ -22172,8 +22328,8 @@ export const RoleListEventResponse = {
|
|
|
22172
22328
|
},
|
|
22173
22329
|
fromJSON(object) {
|
|
22174
22330
|
return {
|
|
22175
|
-
limit: isSet(object.limit) ? globalThis.
|
|
22176
|
-
state: isSet(object.state) ? globalThis.
|
|
22331
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
22332
|
+
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
22177
22333
|
cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
22178
22334
|
clanId: isSet(object.clanId) ? globalThis.String(object.clanId) : "",
|
|
22179
22335
|
roles: isSet(object.roles) ? RoleList.fromJSON(object.roles) : undefined,
|
|
@@ -22181,11 +22337,11 @@ export const RoleListEventResponse = {
|
|
|
22181
22337
|
},
|
|
22182
22338
|
toJSON(message) {
|
|
22183
22339
|
const obj = {};
|
|
22184
|
-
if (message.limit !==
|
|
22185
|
-
obj.limit = message.limit;
|
|
22340
|
+
if (message.limit !== 0) {
|
|
22341
|
+
obj.limit = Math.round(message.limit);
|
|
22186
22342
|
}
|
|
22187
|
-
if (message.state !==
|
|
22188
|
-
obj.state = message.state;
|
|
22343
|
+
if (message.state !== 0) {
|
|
22344
|
+
obj.state = Math.round(message.state);
|
|
22189
22345
|
}
|
|
22190
22346
|
if (message.cursor !== "") {
|
|
22191
22347
|
obj.cursor = message.cursor;
|
|
@@ -22203,8 +22359,8 @@ export const RoleListEventResponse = {
|
|
|
22203
22359
|
},
|
|
22204
22360
|
fromPartial(object) {
|
|
22205
22361
|
const message = createBaseRoleListEventResponse();
|
|
22206
|
-
message.limit = object.limit ??
|
|
22207
|
-
message.state = object.state ??
|
|
22362
|
+
message.limit = object.limit ?? 0;
|
|
22363
|
+
message.state = object.state ?? 0;
|
|
22208
22364
|
message.cursor = object.cursor ?? "";
|
|
22209
22365
|
message.clanId = object.clanId ?? "";
|
|
22210
22366
|
message.roles = (object.roles !== undefined && object.roles !== null)
|
|
@@ -25777,28 +25933,37 @@ export const TokenSentEvent = {
|
|
|
25777
25933
|
return message;
|
|
25778
25934
|
},
|
|
25779
25935
|
};
|
|
25780
|
-
function
|
|
25781
|
-
return {
|
|
25936
|
+
function createBaseUnlockItemRequest() {
|
|
25937
|
+
return { item_id: "", item_type: 0 };
|
|
25782
25938
|
}
|
|
25783
|
-
export const
|
|
25939
|
+
export const UnlockItemRequest = {
|
|
25784
25940
|
encode(message, writer = _m0.Writer.create()) {
|
|
25785
|
-
if (message.
|
|
25786
|
-
writer.uint32(
|
|
25941
|
+
if (message.item_id !== "") {
|
|
25942
|
+
writer.uint32(10).string(message.item_id);
|
|
25943
|
+
}
|
|
25944
|
+
if (message.item_type !== 0) {
|
|
25945
|
+
writer.uint32(16).int32(message.item_type);
|
|
25787
25946
|
}
|
|
25788
25947
|
return writer;
|
|
25789
25948
|
},
|
|
25790
25949
|
decode(input, length) {
|
|
25791
25950
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
25792
25951
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25793
|
-
const message =
|
|
25952
|
+
const message = createBaseUnlockItemRequest();
|
|
25794
25953
|
while (reader.pos < end) {
|
|
25795
25954
|
const tag = reader.uint32();
|
|
25796
25955
|
switch (tag >>> 3) {
|
|
25797
25956
|
case 1:
|
|
25798
|
-
if (tag !==
|
|
25957
|
+
if (tag !== 10) {
|
|
25799
25958
|
break;
|
|
25800
25959
|
}
|
|
25801
|
-
message.
|
|
25960
|
+
message.item_id = reader.string();
|
|
25961
|
+
continue;
|
|
25962
|
+
case 2:
|
|
25963
|
+
if (tag !== 16) {
|
|
25964
|
+
break;
|
|
25965
|
+
}
|
|
25966
|
+
message.item_type = reader.int32();
|
|
25802
25967
|
continue;
|
|
25803
25968
|
}
|
|
25804
25969
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -25809,21 +25974,78 @@ export const WithdrawTokenRequest = {
|
|
|
25809
25974
|
return message;
|
|
25810
25975
|
},
|
|
25811
25976
|
fromJSON(object) {
|
|
25812
|
-
return {
|
|
25977
|
+
return {
|
|
25978
|
+
item_id: isSet(object.item_id) ? globalThis.String(object.item_id) : "",
|
|
25979
|
+
item_type: isSet(object.item_type) ? globalThis.Number(object.item_type) : 0,
|
|
25980
|
+
};
|
|
25813
25981
|
},
|
|
25814
25982
|
toJSON(message) {
|
|
25815
25983
|
const obj = {};
|
|
25816
|
-
if (message.
|
|
25817
|
-
obj.
|
|
25984
|
+
if (message.item_id !== "") {
|
|
25985
|
+
obj.item_id = message.item_id;
|
|
25986
|
+
}
|
|
25987
|
+
if (message.item_type !== 0) {
|
|
25988
|
+
obj.item_type = Math.round(message.item_type);
|
|
25818
25989
|
}
|
|
25819
25990
|
return obj;
|
|
25820
25991
|
},
|
|
25821
25992
|
create(base) {
|
|
25822
|
-
return
|
|
25993
|
+
return UnlockItemRequest.fromPartial(base ?? {});
|
|
25823
25994
|
},
|
|
25824
25995
|
fromPartial(object) {
|
|
25825
|
-
const message =
|
|
25826
|
-
message.
|
|
25996
|
+
const message = createBaseUnlockItemRequest();
|
|
25997
|
+
message.item_id = object.item_id ?? "";
|
|
25998
|
+
message.item_type = object.item_type ?? 0;
|
|
25999
|
+
return message;
|
|
26000
|
+
},
|
|
26001
|
+
};
|
|
26002
|
+
function createBaseUnlockedItemResponse() {
|
|
26003
|
+
return { source: "" };
|
|
26004
|
+
}
|
|
26005
|
+
export const UnlockedItemResponse = {
|
|
26006
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
26007
|
+
if (message.source !== "") {
|
|
26008
|
+
writer.uint32(10).string(message.source);
|
|
26009
|
+
}
|
|
26010
|
+
return writer;
|
|
26011
|
+
},
|
|
26012
|
+
decode(input, length) {
|
|
26013
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26014
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26015
|
+
const message = createBaseUnlockedItemResponse();
|
|
26016
|
+
while (reader.pos < end) {
|
|
26017
|
+
const tag = reader.uint32();
|
|
26018
|
+
switch (tag >>> 3) {
|
|
26019
|
+
case 1:
|
|
26020
|
+
if (tag !== 10) {
|
|
26021
|
+
break;
|
|
26022
|
+
}
|
|
26023
|
+
message.source = reader.string();
|
|
26024
|
+
continue;
|
|
26025
|
+
}
|
|
26026
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26027
|
+
break;
|
|
26028
|
+
}
|
|
26029
|
+
reader.skipType(tag & 7);
|
|
26030
|
+
}
|
|
26031
|
+
return message;
|
|
26032
|
+
},
|
|
26033
|
+
fromJSON(object) {
|
|
26034
|
+
return { source: isSet(object.source) ? globalThis.String(object.source) : "" };
|
|
26035
|
+
},
|
|
26036
|
+
toJSON(message) {
|
|
26037
|
+
const obj = {};
|
|
26038
|
+
if (message.source !== "") {
|
|
26039
|
+
obj.source = message.source;
|
|
26040
|
+
}
|
|
26041
|
+
return obj;
|
|
26042
|
+
},
|
|
26043
|
+
create(base) {
|
|
26044
|
+
return UnlockedItemResponse.fromPartial(base ?? {});
|
|
26045
|
+
},
|
|
26046
|
+
fromPartial(object) {
|
|
26047
|
+
const message = createBaseUnlockedItemResponse();
|
|
26048
|
+
message.source = object.source ?? "";
|
|
25827
26049
|
return message;
|
|
25828
26050
|
},
|
|
25829
26051
|
};
|
|
@@ -28101,15 +28323,15 @@ export const WalletLedgerList = {
|
|
|
28101
28323
|
},
|
|
28102
28324
|
};
|
|
28103
28325
|
function createBaseWalletLedgerListReq() {
|
|
28104
|
-
return { limit: undefined,
|
|
28326
|
+
return { limit: undefined, filter: 0, transaction_id: "", page: undefined };
|
|
28105
28327
|
}
|
|
28106
28328
|
export const WalletLedgerListReq = {
|
|
28107
28329
|
encode(message, writer = _m0.Writer.create()) {
|
|
28108
28330
|
if (message.limit !== undefined) {
|
|
28109
28331
|
Int32Value.encode({ value: message.limit }, writer.uint32(10).fork()).ldelim();
|
|
28110
28332
|
}
|
|
28111
|
-
if (message.
|
|
28112
|
-
writer.uint32(
|
|
28333
|
+
if (message.filter !== 0) {
|
|
28334
|
+
writer.uint32(16).int32(message.filter);
|
|
28113
28335
|
}
|
|
28114
28336
|
if (message.transaction_id !== "") {
|
|
28115
28337
|
writer.uint32(26).string(message.transaction_id);
|
|
@@ -28133,10 +28355,10 @@ export const WalletLedgerListReq = {
|
|
|
28133
28355
|
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
28134
28356
|
continue;
|
|
28135
28357
|
case 2:
|
|
28136
|
-
if (tag !==
|
|
28358
|
+
if (tag !== 16) {
|
|
28137
28359
|
break;
|
|
28138
28360
|
}
|
|
28139
|
-
message.
|
|
28361
|
+
message.filter = reader.int32();
|
|
28140
28362
|
continue;
|
|
28141
28363
|
case 3:
|
|
28142
28364
|
if (tag !== 26) {
|
|
@@ -28161,7 +28383,7 @@ export const WalletLedgerListReq = {
|
|
|
28161
28383
|
fromJSON(object) {
|
|
28162
28384
|
return {
|
|
28163
28385
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
28164
|
-
|
|
28386
|
+
filter: isSet(object.filter) ? globalThis.Number(object.filter) : 0,
|
|
28165
28387
|
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
28166
28388
|
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
28167
28389
|
};
|
|
@@ -28171,8 +28393,8 @@ export const WalletLedgerListReq = {
|
|
|
28171
28393
|
if (message.limit !== undefined) {
|
|
28172
28394
|
obj.limit = message.limit;
|
|
28173
28395
|
}
|
|
28174
|
-
if (message.
|
|
28175
|
-
obj.
|
|
28396
|
+
if (message.filter !== 0) {
|
|
28397
|
+
obj.filter = Math.round(message.filter);
|
|
28176
28398
|
}
|
|
28177
28399
|
if (message.transaction_id !== "") {
|
|
28178
28400
|
obj.transaction_id = message.transaction_id;
|
|
@@ -28188,7 +28410,7 @@ export const WalletLedgerListReq = {
|
|
|
28188
28410
|
fromPartial(object) {
|
|
28189
28411
|
const message = createBaseWalletLedgerListReq();
|
|
28190
28412
|
message.limit = object.limit ?? undefined;
|
|
28191
|
-
message.
|
|
28413
|
+
message.filter = object.filter ?? 0;
|
|
28192
28414
|
message.transaction_id = object.transaction_id ?? "";
|
|
28193
28415
|
message.page = object.page ?? undefined;
|
|
28194
28416
|
return message;
|
|
@@ -29021,29 +29243,20 @@ export const GenerateMeetTokenRequest = {
|
|
|
29021
29243
|
return message;
|
|
29022
29244
|
},
|
|
29023
29245
|
};
|
|
29024
|
-
function
|
|
29025
|
-
return {
|
|
29246
|
+
function createBaseGenerateMeetTokenResponse() {
|
|
29247
|
+
return { token: "" };
|
|
29026
29248
|
}
|
|
29027
|
-
export const
|
|
29249
|
+
export const GenerateMeetTokenResponse = {
|
|
29028
29250
|
encode(message, writer = _m0.Writer.create()) {
|
|
29029
|
-
if (message.body !== undefined) {
|
|
29030
|
-
Struct.encode(Struct.wrap(message.body), writer.uint32(10).fork()).ldelim();
|
|
29031
|
-
}
|
|
29032
29251
|
if (message.token !== "") {
|
|
29033
|
-
writer.uint32(
|
|
29034
|
-
}
|
|
29035
|
-
if (message.display_name !== "") {
|
|
29036
|
-
writer.uint32(26).string(message.display_name);
|
|
29037
|
-
}
|
|
29038
|
-
if (message.is_guest !== false) {
|
|
29039
|
-
writer.uint32(32).bool(message.is_guest);
|
|
29252
|
+
writer.uint32(10).string(message.token);
|
|
29040
29253
|
}
|
|
29041
29254
|
return writer;
|
|
29042
29255
|
},
|
|
29043
29256
|
decode(input, length) {
|
|
29044
29257
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29045
29258
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29046
|
-
const message =
|
|
29259
|
+
const message = createBaseGenerateMeetTokenResponse();
|
|
29047
29260
|
while (reader.pos < end) {
|
|
29048
29261
|
const tag = reader.uint32();
|
|
29049
29262
|
switch (tag >>> 3) {
|
|
@@ -29051,26 +29264,8 @@ export const GenerateMeetTokenExternalRequest = {
|
|
|
29051
29264
|
if (tag !== 10) {
|
|
29052
29265
|
break;
|
|
29053
29266
|
}
|
|
29054
|
-
message.body = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
29055
|
-
continue;
|
|
29056
|
-
case 2:
|
|
29057
|
-
if (tag !== 18) {
|
|
29058
|
-
break;
|
|
29059
|
-
}
|
|
29060
29267
|
message.token = reader.string();
|
|
29061
29268
|
continue;
|
|
29062
|
-
case 3:
|
|
29063
|
-
if (tag !== 26) {
|
|
29064
|
-
break;
|
|
29065
|
-
}
|
|
29066
|
-
message.display_name = reader.string();
|
|
29067
|
-
continue;
|
|
29068
|
-
case 4:
|
|
29069
|
-
if (tag !== 32) {
|
|
29070
|
-
break;
|
|
29071
|
-
}
|
|
29072
|
-
message.is_guest = reader.bool();
|
|
29073
|
-
continue;
|
|
29074
29269
|
}
|
|
29075
29270
|
if ((tag & 7) === 4 || tag === 0) {
|
|
29076
29271
|
break;
|
|
@@ -29080,178 +29275,31 @@ export const GenerateMeetTokenExternalRequest = {
|
|
|
29080
29275
|
return message;
|
|
29081
29276
|
},
|
|
29082
29277
|
fromJSON(object) {
|
|
29083
|
-
return {
|
|
29084
|
-
body: isObject(object.body) ? object.body : undefined,
|
|
29085
|
-
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
29086
|
-
display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
29087
|
-
is_guest: isSet(object.is_guest) ? globalThis.Boolean(object.is_guest) : false,
|
|
29088
|
-
};
|
|
29278
|
+
return { token: isSet(object.token) ? globalThis.String(object.token) : "" };
|
|
29089
29279
|
},
|
|
29090
29280
|
toJSON(message) {
|
|
29091
29281
|
const obj = {};
|
|
29092
|
-
if (message.body !== undefined) {
|
|
29093
|
-
obj.body = message.body;
|
|
29094
|
-
}
|
|
29095
29282
|
if (message.token !== "") {
|
|
29096
29283
|
obj.token = message.token;
|
|
29097
29284
|
}
|
|
29098
|
-
if (message.display_name !== "") {
|
|
29099
|
-
obj.display_name = message.display_name;
|
|
29100
|
-
}
|
|
29101
|
-
if (message.is_guest !== false) {
|
|
29102
|
-
obj.is_guest = message.is_guest;
|
|
29103
|
-
}
|
|
29104
29285
|
return obj;
|
|
29105
29286
|
},
|
|
29106
29287
|
create(base) {
|
|
29107
|
-
return
|
|
29288
|
+
return GenerateMeetTokenResponse.fromPartial(base ?? {});
|
|
29108
29289
|
},
|
|
29109
29290
|
fromPartial(object) {
|
|
29110
|
-
const message =
|
|
29111
|
-
message.body = object.body ?? undefined;
|
|
29291
|
+
const message = createBaseGenerateMeetTokenResponse();
|
|
29112
29292
|
message.token = object.token ?? "";
|
|
29113
|
-
message.display_name = object.display_name ?? "";
|
|
29114
|
-
message.is_guest = object.is_guest ?? false;
|
|
29115
29293
|
return message;
|
|
29116
29294
|
},
|
|
29117
29295
|
};
|
|
29118
|
-
function
|
|
29119
|
-
return {
|
|
29296
|
+
function createBaseGenerateMezonMeetResponse() {
|
|
29297
|
+
return { meet_id: "", room_name: "", external_link: "", creator_id: "", event_id: "" };
|
|
29120
29298
|
}
|
|
29121
|
-
export const
|
|
29299
|
+
export const GenerateMezonMeetResponse = {
|
|
29122
29300
|
encode(message, writer = _m0.Writer.create()) {
|
|
29123
|
-
if (message.
|
|
29124
|
-
writer.uint32(10).string(message.
|
|
29125
|
-
}
|
|
29126
|
-
return writer;
|
|
29127
|
-
},
|
|
29128
|
-
decode(input, length) {
|
|
29129
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29130
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29131
|
-
const message = createBaseGenerateMeetTokenResponse();
|
|
29132
|
-
while (reader.pos < end) {
|
|
29133
|
-
const tag = reader.uint32();
|
|
29134
|
-
switch (tag >>> 3) {
|
|
29135
|
-
case 1:
|
|
29136
|
-
if (tag !== 10) {
|
|
29137
|
-
break;
|
|
29138
|
-
}
|
|
29139
|
-
message.token = reader.string();
|
|
29140
|
-
continue;
|
|
29141
|
-
}
|
|
29142
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
29143
|
-
break;
|
|
29144
|
-
}
|
|
29145
|
-
reader.skipType(tag & 7);
|
|
29146
|
-
}
|
|
29147
|
-
return message;
|
|
29148
|
-
},
|
|
29149
|
-
fromJSON(object) {
|
|
29150
|
-
return { token: isSet(object.token) ? globalThis.String(object.token) : "" };
|
|
29151
|
-
},
|
|
29152
|
-
toJSON(message) {
|
|
29153
|
-
const obj = {};
|
|
29154
|
-
if (message.token !== "") {
|
|
29155
|
-
obj.token = message.token;
|
|
29156
|
-
}
|
|
29157
|
-
return obj;
|
|
29158
|
-
},
|
|
29159
|
-
create(base) {
|
|
29160
|
-
return GenerateMeetTokenResponse.fromPartial(base ?? {});
|
|
29161
|
-
},
|
|
29162
|
-
fromPartial(object) {
|
|
29163
|
-
const message = createBaseGenerateMeetTokenResponse();
|
|
29164
|
-
message.token = object.token ?? "";
|
|
29165
|
-
return message;
|
|
29166
|
-
},
|
|
29167
|
-
};
|
|
29168
|
-
function createBaseGenerateMeetTokenExternalResponse() {
|
|
29169
|
-
return { token: "", guest_user_id: "", guest_access_token: "" };
|
|
29170
|
-
}
|
|
29171
|
-
export const GenerateMeetTokenExternalResponse = {
|
|
29172
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
29173
|
-
if (message.token !== "") {
|
|
29174
|
-
writer.uint32(10).string(message.token);
|
|
29175
|
-
}
|
|
29176
|
-
if (message.guest_user_id !== "") {
|
|
29177
|
-
writer.uint32(18).string(message.guest_user_id);
|
|
29178
|
-
}
|
|
29179
|
-
if (message.guest_access_token !== "") {
|
|
29180
|
-
writer.uint32(26).string(message.guest_access_token);
|
|
29181
|
-
}
|
|
29182
|
-
return writer;
|
|
29183
|
-
},
|
|
29184
|
-
decode(input, length) {
|
|
29185
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
29186
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29187
|
-
const message = createBaseGenerateMeetTokenExternalResponse();
|
|
29188
|
-
while (reader.pos < end) {
|
|
29189
|
-
const tag = reader.uint32();
|
|
29190
|
-
switch (tag >>> 3) {
|
|
29191
|
-
case 1:
|
|
29192
|
-
if (tag !== 10) {
|
|
29193
|
-
break;
|
|
29194
|
-
}
|
|
29195
|
-
message.token = reader.string();
|
|
29196
|
-
continue;
|
|
29197
|
-
case 2:
|
|
29198
|
-
if (tag !== 18) {
|
|
29199
|
-
break;
|
|
29200
|
-
}
|
|
29201
|
-
message.guest_user_id = reader.string();
|
|
29202
|
-
continue;
|
|
29203
|
-
case 3:
|
|
29204
|
-
if (tag !== 26) {
|
|
29205
|
-
break;
|
|
29206
|
-
}
|
|
29207
|
-
message.guest_access_token = reader.string();
|
|
29208
|
-
continue;
|
|
29209
|
-
}
|
|
29210
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
29211
|
-
break;
|
|
29212
|
-
}
|
|
29213
|
-
reader.skipType(tag & 7);
|
|
29214
|
-
}
|
|
29215
|
-
return message;
|
|
29216
|
-
},
|
|
29217
|
-
fromJSON(object) {
|
|
29218
|
-
return {
|
|
29219
|
-
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
29220
|
-
guest_user_id: isSet(object.guest_user_id) ? globalThis.String(object.guest_user_id) : "",
|
|
29221
|
-
guest_access_token: isSet(object.guest_access_token) ? globalThis.String(object.guest_access_token) : "",
|
|
29222
|
-
};
|
|
29223
|
-
},
|
|
29224
|
-
toJSON(message) {
|
|
29225
|
-
const obj = {};
|
|
29226
|
-
if (message.token !== "") {
|
|
29227
|
-
obj.token = message.token;
|
|
29228
|
-
}
|
|
29229
|
-
if (message.guest_user_id !== "") {
|
|
29230
|
-
obj.guest_user_id = message.guest_user_id;
|
|
29231
|
-
}
|
|
29232
|
-
if (message.guest_access_token !== "") {
|
|
29233
|
-
obj.guest_access_token = message.guest_access_token;
|
|
29234
|
-
}
|
|
29235
|
-
return obj;
|
|
29236
|
-
},
|
|
29237
|
-
create(base) {
|
|
29238
|
-
return GenerateMeetTokenExternalResponse.fromPartial(base ?? {});
|
|
29239
|
-
},
|
|
29240
|
-
fromPartial(object) {
|
|
29241
|
-
const message = createBaseGenerateMeetTokenExternalResponse();
|
|
29242
|
-
message.token = object.token ?? "";
|
|
29243
|
-
message.guest_user_id = object.guest_user_id ?? "";
|
|
29244
|
-
message.guest_access_token = object.guest_access_token ?? "";
|
|
29245
|
-
return message;
|
|
29246
|
-
},
|
|
29247
|
-
};
|
|
29248
|
-
function createBaseGenerateMezonMeetResponse() {
|
|
29249
|
-
return { meet_id: "", room_name: "", external_link: "", creator_id: "", event_id: "" };
|
|
29250
|
-
}
|
|
29251
|
-
export const GenerateMezonMeetResponse = {
|
|
29252
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
29253
|
-
if (message.meet_id !== "") {
|
|
29254
|
-
writer.uint32(10).string(message.meet_id);
|
|
29301
|
+
if (message.meet_id !== "") {
|
|
29302
|
+
writer.uint32(10).string(message.meet_id);
|
|
29255
29303
|
}
|
|
29256
29304
|
if (message.room_name !== "") {
|
|
29257
29305
|
writer.uint32(18).string(message.room_name);
|
|
@@ -30225,11 +30273,11 @@ export const MezonOauthClient = {
|
|
|
30225
30273
|
},
|
|
30226
30274
|
};
|
|
30227
30275
|
function createBaseMezonOauthClientList() {
|
|
30228
|
-
return {
|
|
30276
|
+
return { list_mezon_oauth_client: [] };
|
|
30229
30277
|
}
|
|
30230
30278
|
export const MezonOauthClientList = {
|
|
30231
30279
|
encode(message, writer = _m0.Writer.create()) {
|
|
30232
|
-
for (const v of message.
|
|
30280
|
+
for (const v of message.list_mezon_oauth_client) {
|
|
30233
30281
|
MezonOauthClient.encode(v, writer.uint32(10).fork()).ldelim();
|
|
30234
30282
|
}
|
|
30235
30283
|
return writer;
|
|
@@ -30245,7 +30293,7 @@ export const MezonOauthClientList = {
|
|
|
30245
30293
|
if (tag !== 10) {
|
|
30246
30294
|
break;
|
|
30247
30295
|
}
|
|
30248
|
-
message.
|
|
30296
|
+
message.list_mezon_oauth_client.push(MezonOauthClient.decode(reader, reader.uint32()));
|
|
30249
30297
|
continue;
|
|
30250
30298
|
}
|
|
30251
30299
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -30257,15 +30305,15 @@ export const MezonOauthClientList = {
|
|
|
30257
30305
|
},
|
|
30258
30306
|
fromJSON(object) {
|
|
30259
30307
|
return {
|
|
30260
|
-
|
|
30261
|
-
? object.
|
|
30308
|
+
list_mezon_oauth_client: globalThis.Array.isArray(object?.list_mezon_oauth_client)
|
|
30309
|
+
? object.list_mezon_oauth_client.map((e) => MezonOauthClient.fromJSON(e))
|
|
30262
30310
|
: [],
|
|
30263
30311
|
};
|
|
30264
30312
|
},
|
|
30265
30313
|
toJSON(message) {
|
|
30266
30314
|
const obj = {};
|
|
30267
|
-
if (message.
|
|
30268
|
-
obj.
|
|
30315
|
+
if (message.list_mezon_oauth_client?.length) {
|
|
30316
|
+
obj.list_mezon_oauth_client = message.list_mezon_oauth_client.map((e) => MezonOauthClient.toJSON(e));
|
|
30269
30317
|
}
|
|
30270
30318
|
return obj;
|
|
30271
30319
|
},
|
|
@@ -30274,7 +30322,7 @@ export const MezonOauthClientList = {
|
|
|
30274
30322
|
},
|
|
30275
30323
|
fromPartial(object) {
|
|
30276
30324
|
const message = createBaseMezonOauthClientList();
|
|
30277
|
-
message.
|
|
30325
|
+
message.list_mezon_oauth_client = object.list_mezon_oauth_client?.map((e) => MezonOauthClient.fromPartial(e)) || [];
|
|
30278
30326
|
return message;
|
|
30279
30327
|
},
|
|
30280
30328
|
};
|
|
@@ -31014,6 +31062,655 @@ export const AccountMezon_VarsEntry = {
|
|
|
31014
31062
|
return message;
|
|
31015
31063
|
},
|
|
31016
31064
|
};
|
|
31065
|
+
function createBaseQuickMenuAccess() {
|
|
31066
|
+
return {
|
|
31067
|
+
id: "",
|
|
31068
|
+
bot_id: "",
|
|
31069
|
+
clan_id: "",
|
|
31070
|
+
channel_id: "",
|
|
31071
|
+
menu_name: "",
|
|
31072
|
+
background: "",
|
|
31073
|
+
action_msg: "",
|
|
31074
|
+
menu_type: 0,
|
|
31075
|
+
};
|
|
31076
|
+
}
|
|
31077
|
+
export const QuickMenuAccess = {
|
|
31078
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31079
|
+
if (message.id !== "") {
|
|
31080
|
+
writer.uint32(10).string(message.id);
|
|
31081
|
+
}
|
|
31082
|
+
if (message.bot_id !== "") {
|
|
31083
|
+
writer.uint32(18).string(message.bot_id);
|
|
31084
|
+
}
|
|
31085
|
+
if (message.clan_id !== "") {
|
|
31086
|
+
writer.uint32(26).string(message.clan_id);
|
|
31087
|
+
}
|
|
31088
|
+
if (message.channel_id !== "") {
|
|
31089
|
+
writer.uint32(34).string(message.channel_id);
|
|
31090
|
+
}
|
|
31091
|
+
if (message.menu_name !== "") {
|
|
31092
|
+
writer.uint32(42).string(message.menu_name);
|
|
31093
|
+
}
|
|
31094
|
+
if (message.background !== "") {
|
|
31095
|
+
writer.uint32(50).string(message.background);
|
|
31096
|
+
}
|
|
31097
|
+
if (message.action_msg !== "") {
|
|
31098
|
+
writer.uint32(58).string(message.action_msg);
|
|
31099
|
+
}
|
|
31100
|
+
if (message.menu_type !== 0) {
|
|
31101
|
+
writer.uint32(64).int32(message.menu_type);
|
|
31102
|
+
}
|
|
31103
|
+
return writer;
|
|
31104
|
+
},
|
|
31105
|
+
decode(input, length) {
|
|
31106
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31108
|
+
const message = createBaseQuickMenuAccess();
|
|
31109
|
+
while (reader.pos < end) {
|
|
31110
|
+
const tag = reader.uint32();
|
|
31111
|
+
switch (tag >>> 3) {
|
|
31112
|
+
case 1:
|
|
31113
|
+
if (tag !== 10) {
|
|
31114
|
+
break;
|
|
31115
|
+
}
|
|
31116
|
+
message.id = reader.string();
|
|
31117
|
+
continue;
|
|
31118
|
+
case 2:
|
|
31119
|
+
if (tag !== 18) {
|
|
31120
|
+
break;
|
|
31121
|
+
}
|
|
31122
|
+
message.bot_id = reader.string();
|
|
31123
|
+
continue;
|
|
31124
|
+
case 3:
|
|
31125
|
+
if (tag !== 26) {
|
|
31126
|
+
break;
|
|
31127
|
+
}
|
|
31128
|
+
message.clan_id = reader.string();
|
|
31129
|
+
continue;
|
|
31130
|
+
case 4:
|
|
31131
|
+
if (tag !== 34) {
|
|
31132
|
+
break;
|
|
31133
|
+
}
|
|
31134
|
+
message.channel_id = reader.string();
|
|
31135
|
+
continue;
|
|
31136
|
+
case 5:
|
|
31137
|
+
if (tag !== 42) {
|
|
31138
|
+
break;
|
|
31139
|
+
}
|
|
31140
|
+
message.menu_name = reader.string();
|
|
31141
|
+
continue;
|
|
31142
|
+
case 6:
|
|
31143
|
+
if (tag !== 50) {
|
|
31144
|
+
break;
|
|
31145
|
+
}
|
|
31146
|
+
message.background = reader.string();
|
|
31147
|
+
continue;
|
|
31148
|
+
case 7:
|
|
31149
|
+
if (tag !== 58) {
|
|
31150
|
+
break;
|
|
31151
|
+
}
|
|
31152
|
+
message.action_msg = reader.string();
|
|
31153
|
+
continue;
|
|
31154
|
+
case 8:
|
|
31155
|
+
if (tag !== 64) {
|
|
31156
|
+
break;
|
|
31157
|
+
}
|
|
31158
|
+
message.menu_type = reader.int32();
|
|
31159
|
+
continue;
|
|
31160
|
+
}
|
|
31161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31162
|
+
break;
|
|
31163
|
+
}
|
|
31164
|
+
reader.skipType(tag & 7);
|
|
31165
|
+
}
|
|
31166
|
+
return message;
|
|
31167
|
+
},
|
|
31168
|
+
fromJSON(object) {
|
|
31169
|
+
return {
|
|
31170
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
31171
|
+
bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
|
|
31172
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
31173
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31174
|
+
menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
|
|
31175
|
+
background: isSet(object.background) ? globalThis.String(object.background) : "",
|
|
31176
|
+
action_msg: isSet(object.action_msg) ? globalThis.String(object.action_msg) : "",
|
|
31177
|
+
menu_type: isSet(object.menu_type) ? globalThis.Number(object.menu_type) : 0,
|
|
31178
|
+
};
|
|
31179
|
+
},
|
|
31180
|
+
toJSON(message) {
|
|
31181
|
+
const obj = {};
|
|
31182
|
+
if (message.id !== "") {
|
|
31183
|
+
obj.id = message.id;
|
|
31184
|
+
}
|
|
31185
|
+
if (message.bot_id !== "") {
|
|
31186
|
+
obj.bot_id = message.bot_id;
|
|
31187
|
+
}
|
|
31188
|
+
if (message.clan_id !== "") {
|
|
31189
|
+
obj.clan_id = message.clan_id;
|
|
31190
|
+
}
|
|
31191
|
+
if (message.channel_id !== "") {
|
|
31192
|
+
obj.channel_id = message.channel_id;
|
|
31193
|
+
}
|
|
31194
|
+
if (message.menu_name !== "") {
|
|
31195
|
+
obj.menu_name = message.menu_name;
|
|
31196
|
+
}
|
|
31197
|
+
if (message.background !== "") {
|
|
31198
|
+
obj.background = message.background;
|
|
31199
|
+
}
|
|
31200
|
+
if (message.action_msg !== "") {
|
|
31201
|
+
obj.action_msg = message.action_msg;
|
|
31202
|
+
}
|
|
31203
|
+
if (message.menu_type !== 0) {
|
|
31204
|
+
obj.menu_type = Math.round(message.menu_type);
|
|
31205
|
+
}
|
|
31206
|
+
return obj;
|
|
31207
|
+
},
|
|
31208
|
+
create(base) {
|
|
31209
|
+
return QuickMenuAccess.fromPartial(base ?? {});
|
|
31210
|
+
},
|
|
31211
|
+
fromPartial(object) {
|
|
31212
|
+
const message = createBaseQuickMenuAccess();
|
|
31213
|
+
message.id = object.id ?? "";
|
|
31214
|
+
message.bot_id = object.bot_id ?? "";
|
|
31215
|
+
message.clan_id = object.clan_id ?? "";
|
|
31216
|
+
message.channel_id = object.channel_id ?? "";
|
|
31217
|
+
message.menu_name = object.menu_name ?? "";
|
|
31218
|
+
message.background = object.background ?? "";
|
|
31219
|
+
message.action_msg = object.action_msg ?? "";
|
|
31220
|
+
message.menu_type = object.menu_type ?? 0;
|
|
31221
|
+
return message;
|
|
31222
|
+
},
|
|
31223
|
+
};
|
|
31224
|
+
function createBaseListQuickMenuAccessRequest() {
|
|
31225
|
+
return { bot_id: "", channel_id: "", menu_type: 0 };
|
|
31226
|
+
}
|
|
31227
|
+
export const ListQuickMenuAccessRequest = {
|
|
31228
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31229
|
+
if (message.bot_id !== "") {
|
|
31230
|
+
writer.uint32(10).string(message.bot_id);
|
|
31231
|
+
}
|
|
31232
|
+
if (message.channel_id !== "") {
|
|
31233
|
+
writer.uint32(18).string(message.channel_id);
|
|
31234
|
+
}
|
|
31235
|
+
if (message.menu_type !== 0) {
|
|
31236
|
+
writer.uint32(24).int32(message.menu_type);
|
|
31237
|
+
}
|
|
31238
|
+
return writer;
|
|
31239
|
+
},
|
|
31240
|
+
decode(input, length) {
|
|
31241
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31242
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31243
|
+
const message = createBaseListQuickMenuAccessRequest();
|
|
31244
|
+
while (reader.pos < end) {
|
|
31245
|
+
const tag = reader.uint32();
|
|
31246
|
+
switch (tag >>> 3) {
|
|
31247
|
+
case 1:
|
|
31248
|
+
if (tag !== 10) {
|
|
31249
|
+
break;
|
|
31250
|
+
}
|
|
31251
|
+
message.bot_id = reader.string();
|
|
31252
|
+
continue;
|
|
31253
|
+
case 2:
|
|
31254
|
+
if (tag !== 18) {
|
|
31255
|
+
break;
|
|
31256
|
+
}
|
|
31257
|
+
message.channel_id = reader.string();
|
|
31258
|
+
continue;
|
|
31259
|
+
case 3:
|
|
31260
|
+
if (tag !== 24) {
|
|
31261
|
+
break;
|
|
31262
|
+
}
|
|
31263
|
+
message.menu_type = reader.int32();
|
|
31264
|
+
continue;
|
|
31265
|
+
}
|
|
31266
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31267
|
+
break;
|
|
31268
|
+
}
|
|
31269
|
+
reader.skipType(tag & 7);
|
|
31270
|
+
}
|
|
31271
|
+
return message;
|
|
31272
|
+
},
|
|
31273
|
+
fromJSON(object) {
|
|
31274
|
+
return {
|
|
31275
|
+
bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
|
|
31276
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31277
|
+
menu_type: isSet(object.menu_type) ? globalThis.Number(object.menu_type) : 0,
|
|
31278
|
+
};
|
|
31279
|
+
},
|
|
31280
|
+
toJSON(message) {
|
|
31281
|
+
const obj = {};
|
|
31282
|
+
if (message.bot_id !== "") {
|
|
31283
|
+
obj.bot_id = message.bot_id;
|
|
31284
|
+
}
|
|
31285
|
+
if (message.channel_id !== "") {
|
|
31286
|
+
obj.channel_id = message.channel_id;
|
|
31287
|
+
}
|
|
31288
|
+
if (message.menu_type !== 0) {
|
|
31289
|
+
obj.menu_type = Math.round(message.menu_type);
|
|
31290
|
+
}
|
|
31291
|
+
return obj;
|
|
31292
|
+
},
|
|
31293
|
+
create(base) {
|
|
31294
|
+
return ListQuickMenuAccessRequest.fromPartial(base ?? {});
|
|
31295
|
+
},
|
|
31296
|
+
fromPartial(object) {
|
|
31297
|
+
const message = createBaseListQuickMenuAccessRequest();
|
|
31298
|
+
message.bot_id = object.bot_id ?? "";
|
|
31299
|
+
message.channel_id = object.channel_id ?? "";
|
|
31300
|
+
message.menu_type = object.menu_type ?? 0;
|
|
31301
|
+
return message;
|
|
31302
|
+
},
|
|
31303
|
+
};
|
|
31304
|
+
function createBaseQuickMenuAccessList() {
|
|
31305
|
+
return { list_menus: [] };
|
|
31306
|
+
}
|
|
31307
|
+
export const QuickMenuAccessList = {
|
|
31308
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31309
|
+
for (const v of message.list_menus) {
|
|
31310
|
+
QuickMenuAccess.encode(v, writer.uint32(10).fork()).ldelim();
|
|
31311
|
+
}
|
|
31312
|
+
return writer;
|
|
31313
|
+
},
|
|
31314
|
+
decode(input, length) {
|
|
31315
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31316
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31317
|
+
const message = createBaseQuickMenuAccessList();
|
|
31318
|
+
while (reader.pos < end) {
|
|
31319
|
+
const tag = reader.uint32();
|
|
31320
|
+
switch (tag >>> 3) {
|
|
31321
|
+
case 1:
|
|
31322
|
+
if (tag !== 10) {
|
|
31323
|
+
break;
|
|
31324
|
+
}
|
|
31325
|
+
message.list_menus.push(QuickMenuAccess.decode(reader, reader.uint32()));
|
|
31326
|
+
continue;
|
|
31327
|
+
}
|
|
31328
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31329
|
+
break;
|
|
31330
|
+
}
|
|
31331
|
+
reader.skipType(tag & 7);
|
|
31332
|
+
}
|
|
31333
|
+
return message;
|
|
31334
|
+
},
|
|
31335
|
+
fromJSON(object) {
|
|
31336
|
+
return {
|
|
31337
|
+
list_menus: globalThis.Array.isArray(object?.list_menus)
|
|
31338
|
+
? object.list_menus.map((e) => QuickMenuAccess.fromJSON(e))
|
|
31339
|
+
: [],
|
|
31340
|
+
};
|
|
31341
|
+
},
|
|
31342
|
+
toJSON(message) {
|
|
31343
|
+
const obj = {};
|
|
31344
|
+
if (message.list_menus?.length) {
|
|
31345
|
+
obj.list_menus = message.list_menus.map((e) => QuickMenuAccess.toJSON(e));
|
|
31346
|
+
}
|
|
31347
|
+
return obj;
|
|
31348
|
+
},
|
|
31349
|
+
create(base) {
|
|
31350
|
+
return QuickMenuAccessList.fromPartial(base ?? {});
|
|
31351
|
+
},
|
|
31352
|
+
fromPartial(object) {
|
|
31353
|
+
const message = createBaseQuickMenuAccessList();
|
|
31354
|
+
message.list_menus = object.list_menus?.map((e) => QuickMenuAccess.fromPartial(e)) || [];
|
|
31355
|
+
return message;
|
|
31356
|
+
},
|
|
31357
|
+
};
|
|
31358
|
+
function createBaseListForSaleItemsRequest() {
|
|
31359
|
+
return { page: 0 };
|
|
31360
|
+
}
|
|
31361
|
+
export const ListForSaleItemsRequest = {
|
|
31362
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31363
|
+
if (message.page !== 0) {
|
|
31364
|
+
writer.uint32(8).int32(message.page);
|
|
31365
|
+
}
|
|
31366
|
+
return writer;
|
|
31367
|
+
},
|
|
31368
|
+
decode(input, length) {
|
|
31369
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31370
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31371
|
+
const message = createBaseListForSaleItemsRequest();
|
|
31372
|
+
while (reader.pos < end) {
|
|
31373
|
+
const tag = reader.uint32();
|
|
31374
|
+
switch (tag >>> 3) {
|
|
31375
|
+
case 1:
|
|
31376
|
+
if (tag !== 8) {
|
|
31377
|
+
break;
|
|
31378
|
+
}
|
|
31379
|
+
message.page = reader.int32();
|
|
31380
|
+
continue;
|
|
31381
|
+
}
|
|
31382
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31383
|
+
break;
|
|
31384
|
+
}
|
|
31385
|
+
reader.skipType(tag & 7);
|
|
31386
|
+
}
|
|
31387
|
+
return message;
|
|
31388
|
+
},
|
|
31389
|
+
fromJSON(object) {
|
|
31390
|
+
return { page: isSet(object.page) ? globalThis.Number(object.page) : 0 };
|
|
31391
|
+
},
|
|
31392
|
+
toJSON(message) {
|
|
31393
|
+
const obj = {};
|
|
31394
|
+
if (message.page !== 0) {
|
|
31395
|
+
obj.page = Math.round(message.page);
|
|
31396
|
+
}
|
|
31397
|
+
return obj;
|
|
31398
|
+
},
|
|
31399
|
+
create(base) {
|
|
31400
|
+
return ListForSaleItemsRequest.fromPartial(base ?? {});
|
|
31401
|
+
},
|
|
31402
|
+
fromPartial(object) {
|
|
31403
|
+
const message = createBaseListForSaleItemsRequest();
|
|
31404
|
+
message.page = object.page ?? 0;
|
|
31405
|
+
return message;
|
|
31406
|
+
},
|
|
31407
|
+
};
|
|
31408
|
+
function createBaseForSaleItem() {
|
|
31409
|
+
return { type: 0, preview_url: "" };
|
|
31410
|
+
}
|
|
31411
|
+
export const ForSaleItem = {
|
|
31412
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31413
|
+
if (message.type !== 0) {
|
|
31414
|
+
writer.uint32(8).int32(message.type);
|
|
31415
|
+
}
|
|
31416
|
+
if (message.preview_url !== "") {
|
|
31417
|
+
writer.uint32(18).string(message.preview_url);
|
|
31418
|
+
}
|
|
31419
|
+
return writer;
|
|
31420
|
+
},
|
|
31421
|
+
decode(input, length) {
|
|
31422
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31423
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31424
|
+
const message = createBaseForSaleItem();
|
|
31425
|
+
while (reader.pos < end) {
|
|
31426
|
+
const tag = reader.uint32();
|
|
31427
|
+
switch (tag >>> 3) {
|
|
31428
|
+
case 1:
|
|
31429
|
+
if (tag !== 8) {
|
|
31430
|
+
break;
|
|
31431
|
+
}
|
|
31432
|
+
message.type = reader.int32();
|
|
31433
|
+
continue;
|
|
31434
|
+
case 2:
|
|
31435
|
+
if (tag !== 18) {
|
|
31436
|
+
break;
|
|
31437
|
+
}
|
|
31438
|
+
message.preview_url = reader.string();
|
|
31439
|
+
continue;
|
|
31440
|
+
}
|
|
31441
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31442
|
+
break;
|
|
31443
|
+
}
|
|
31444
|
+
reader.skipType(tag & 7);
|
|
31445
|
+
}
|
|
31446
|
+
return message;
|
|
31447
|
+
},
|
|
31448
|
+
fromJSON(object) {
|
|
31449
|
+
return {
|
|
31450
|
+
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
31451
|
+
preview_url: isSet(object.preview_url) ? globalThis.String(object.preview_url) : "",
|
|
31452
|
+
};
|
|
31453
|
+
},
|
|
31454
|
+
toJSON(message) {
|
|
31455
|
+
const obj = {};
|
|
31456
|
+
if (message.type !== 0) {
|
|
31457
|
+
obj.type = Math.round(message.type);
|
|
31458
|
+
}
|
|
31459
|
+
if (message.preview_url !== "") {
|
|
31460
|
+
obj.preview_url = message.preview_url;
|
|
31461
|
+
}
|
|
31462
|
+
return obj;
|
|
31463
|
+
},
|
|
31464
|
+
create(base) {
|
|
31465
|
+
return ForSaleItem.fromPartial(base ?? {});
|
|
31466
|
+
},
|
|
31467
|
+
fromPartial(object) {
|
|
31468
|
+
const message = createBaseForSaleItem();
|
|
31469
|
+
message.type = object.type ?? 0;
|
|
31470
|
+
message.preview_url = object.preview_url ?? "";
|
|
31471
|
+
return message;
|
|
31472
|
+
},
|
|
31473
|
+
};
|
|
31474
|
+
function createBaseForSaleItemList() {
|
|
31475
|
+
return { for_sale_items: [] };
|
|
31476
|
+
}
|
|
31477
|
+
export const ForSaleItemList = {
|
|
31478
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31479
|
+
for (const v of message.for_sale_items) {
|
|
31480
|
+
ForSaleItem.encode(v, writer.uint32(10).fork()).ldelim();
|
|
31481
|
+
}
|
|
31482
|
+
return writer;
|
|
31483
|
+
},
|
|
31484
|
+
decode(input, length) {
|
|
31485
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31486
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31487
|
+
const message = createBaseForSaleItemList();
|
|
31488
|
+
while (reader.pos < end) {
|
|
31489
|
+
const tag = reader.uint32();
|
|
31490
|
+
switch (tag >>> 3) {
|
|
31491
|
+
case 1:
|
|
31492
|
+
if (tag !== 10) {
|
|
31493
|
+
break;
|
|
31494
|
+
}
|
|
31495
|
+
message.for_sale_items.push(ForSaleItem.decode(reader, reader.uint32()));
|
|
31496
|
+
continue;
|
|
31497
|
+
}
|
|
31498
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31499
|
+
break;
|
|
31500
|
+
}
|
|
31501
|
+
reader.skipType(tag & 7);
|
|
31502
|
+
}
|
|
31503
|
+
return message;
|
|
31504
|
+
},
|
|
31505
|
+
fromJSON(object) {
|
|
31506
|
+
return {
|
|
31507
|
+
for_sale_items: globalThis.Array.isArray(object?.for_sale_items)
|
|
31508
|
+
? object.for_sale_items.map((e) => ForSaleItem.fromJSON(e))
|
|
31509
|
+
: [],
|
|
31510
|
+
};
|
|
31511
|
+
},
|
|
31512
|
+
toJSON(message) {
|
|
31513
|
+
const obj = {};
|
|
31514
|
+
if (message.for_sale_items?.length) {
|
|
31515
|
+
obj.for_sale_items = message.for_sale_items.map((e) => ForSaleItem.toJSON(e));
|
|
31516
|
+
}
|
|
31517
|
+
return obj;
|
|
31518
|
+
},
|
|
31519
|
+
create(base) {
|
|
31520
|
+
return ForSaleItemList.fromPartial(base ?? {});
|
|
31521
|
+
},
|
|
31522
|
+
fromPartial(object) {
|
|
31523
|
+
const message = createBaseForSaleItemList();
|
|
31524
|
+
message.for_sale_items = object.for_sale_items?.map((e) => ForSaleItem.fromPartial(e)) || [];
|
|
31525
|
+
return message;
|
|
31526
|
+
},
|
|
31527
|
+
};
|
|
31528
|
+
function createBaseListChannelMemberRequest() {
|
|
31529
|
+
return { channel_id: "", clan_id: "" };
|
|
31530
|
+
}
|
|
31531
|
+
export const ListChannelMemberRequest = {
|
|
31532
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31533
|
+
if (message.channel_id !== "") {
|
|
31534
|
+
writer.uint32(10).string(message.channel_id);
|
|
31535
|
+
}
|
|
31536
|
+
if (message.clan_id !== "") {
|
|
31537
|
+
writer.uint32(18).string(message.clan_id);
|
|
31538
|
+
}
|
|
31539
|
+
return writer;
|
|
31540
|
+
},
|
|
31541
|
+
decode(input, length) {
|
|
31542
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31543
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31544
|
+
const message = createBaseListChannelMemberRequest();
|
|
31545
|
+
while (reader.pos < end) {
|
|
31546
|
+
const tag = reader.uint32();
|
|
31547
|
+
switch (tag >>> 3) {
|
|
31548
|
+
case 1:
|
|
31549
|
+
if (tag !== 10) {
|
|
31550
|
+
break;
|
|
31551
|
+
}
|
|
31552
|
+
message.channel_id = reader.string();
|
|
31553
|
+
continue;
|
|
31554
|
+
case 2:
|
|
31555
|
+
if (tag !== 18) {
|
|
31556
|
+
break;
|
|
31557
|
+
}
|
|
31558
|
+
message.clan_id = reader.string();
|
|
31559
|
+
continue;
|
|
31560
|
+
}
|
|
31561
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31562
|
+
break;
|
|
31563
|
+
}
|
|
31564
|
+
reader.skipType(tag & 7);
|
|
31565
|
+
}
|
|
31566
|
+
return message;
|
|
31567
|
+
},
|
|
31568
|
+
fromJSON(object) {
|
|
31569
|
+
return {
|
|
31570
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31571
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
31572
|
+
};
|
|
31573
|
+
},
|
|
31574
|
+
toJSON(message) {
|
|
31575
|
+
const obj = {};
|
|
31576
|
+
if (message.channel_id !== "") {
|
|
31577
|
+
obj.channel_id = message.channel_id;
|
|
31578
|
+
}
|
|
31579
|
+
if (message.clan_id !== "") {
|
|
31580
|
+
obj.clan_id = message.clan_id;
|
|
31581
|
+
}
|
|
31582
|
+
return obj;
|
|
31583
|
+
},
|
|
31584
|
+
create(base) {
|
|
31585
|
+
return ListChannelMemberRequest.fromPartial(base ?? {});
|
|
31586
|
+
},
|
|
31587
|
+
fromPartial(object) {
|
|
31588
|
+
const message = createBaseListChannelMemberRequest();
|
|
31589
|
+
message.channel_id = object.channel_id ?? "";
|
|
31590
|
+
message.clan_id = object.clan_id ?? "";
|
|
31591
|
+
return message;
|
|
31592
|
+
},
|
|
31593
|
+
};
|
|
31594
|
+
function createBaseChannelMemberDetail() {
|
|
31595
|
+
return { member_id: "", added_by: "" };
|
|
31596
|
+
}
|
|
31597
|
+
export const ChannelMemberDetail = {
|
|
31598
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31599
|
+
if (message.member_id !== "") {
|
|
31600
|
+
writer.uint32(10).string(message.member_id);
|
|
31601
|
+
}
|
|
31602
|
+
if (message.added_by !== "") {
|
|
31603
|
+
writer.uint32(18).string(message.added_by);
|
|
31604
|
+
}
|
|
31605
|
+
return writer;
|
|
31606
|
+
},
|
|
31607
|
+
decode(input, length) {
|
|
31608
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31609
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31610
|
+
const message = createBaseChannelMemberDetail();
|
|
31611
|
+
while (reader.pos < end) {
|
|
31612
|
+
const tag = reader.uint32();
|
|
31613
|
+
switch (tag >>> 3) {
|
|
31614
|
+
case 1:
|
|
31615
|
+
if (tag !== 10) {
|
|
31616
|
+
break;
|
|
31617
|
+
}
|
|
31618
|
+
message.member_id = reader.string();
|
|
31619
|
+
continue;
|
|
31620
|
+
case 2:
|
|
31621
|
+
if (tag !== 18) {
|
|
31622
|
+
break;
|
|
31623
|
+
}
|
|
31624
|
+
message.added_by = reader.string();
|
|
31625
|
+
continue;
|
|
31626
|
+
}
|
|
31627
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31628
|
+
break;
|
|
31629
|
+
}
|
|
31630
|
+
reader.skipType(tag & 7);
|
|
31631
|
+
}
|
|
31632
|
+
return message;
|
|
31633
|
+
},
|
|
31634
|
+
fromJSON(object) {
|
|
31635
|
+
return {
|
|
31636
|
+
member_id: isSet(object.member_id) ? globalThis.String(object.member_id) : "",
|
|
31637
|
+
added_by: isSet(object.added_by) ? globalThis.String(object.added_by) : "",
|
|
31638
|
+
};
|
|
31639
|
+
},
|
|
31640
|
+
toJSON(message) {
|
|
31641
|
+
const obj = {};
|
|
31642
|
+
if (message.member_id !== "") {
|
|
31643
|
+
obj.member_id = message.member_id;
|
|
31644
|
+
}
|
|
31645
|
+
if (message.added_by !== "") {
|
|
31646
|
+
obj.added_by = message.added_by;
|
|
31647
|
+
}
|
|
31648
|
+
return obj;
|
|
31649
|
+
},
|
|
31650
|
+
create(base) {
|
|
31651
|
+
return ChannelMemberDetail.fromPartial(base ?? {});
|
|
31652
|
+
},
|
|
31653
|
+
fromPartial(object) {
|
|
31654
|
+
const message = createBaseChannelMemberDetail();
|
|
31655
|
+
message.member_id = object.member_id ?? "";
|
|
31656
|
+
message.added_by = object.added_by ?? "";
|
|
31657
|
+
return message;
|
|
31658
|
+
},
|
|
31659
|
+
};
|
|
31660
|
+
function createBaseChannelMemberList() {
|
|
31661
|
+
return { channel_members: [] };
|
|
31662
|
+
}
|
|
31663
|
+
export const ChannelMemberList = {
|
|
31664
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31665
|
+
for (const v of message.channel_members) {
|
|
31666
|
+
ChannelMemberDetail.encode(v, writer.uint32(10).fork()).ldelim();
|
|
31667
|
+
}
|
|
31668
|
+
return writer;
|
|
31669
|
+
},
|
|
31670
|
+
decode(input, length) {
|
|
31671
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31672
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31673
|
+
const message = createBaseChannelMemberList();
|
|
31674
|
+
while (reader.pos < end) {
|
|
31675
|
+
const tag = reader.uint32();
|
|
31676
|
+
switch (tag >>> 3) {
|
|
31677
|
+
case 1:
|
|
31678
|
+
if (tag !== 10) {
|
|
31679
|
+
break;
|
|
31680
|
+
}
|
|
31681
|
+
message.channel_members.push(ChannelMemberDetail.decode(reader, reader.uint32()));
|
|
31682
|
+
continue;
|
|
31683
|
+
}
|
|
31684
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31685
|
+
break;
|
|
31686
|
+
}
|
|
31687
|
+
reader.skipType(tag & 7);
|
|
31688
|
+
}
|
|
31689
|
+
return message;
|
|
31690
|
+
},
|
|
31691
|
+
fromJSON(object) {
|
|
31692
|
+
return {
|
|
31693
|
+
channel_members: globalThis.Array.isArray(object?.channel_members)
|
|
31694
|
+
? object.channel_members.map((e) => ChannelMemberDetail.fromJSON(e))
|
|
31695
|
+
: [],
|
|
31696
|
+
};
|
|
31697
|
+
},
|
|
31698
|
+
toJSON(message) {
|
|
31699
|
+
const obj = {};
|
|
31700
|
+
if (message.channel_members?.length) {
|
|
31701
|
+
obj.channel_members = message.channel_members.map((e) => ChannelMemberDetail.toJSON(e));
|
|
31702
|
+
}
|
|
31703
|
+
return obj;
|
|
31704
|
+
},
|
|
31705
|
+
create(base) {
|
|
31706
|
+
return ChannelMemberList.fromPartial(base ?? {});
|
|
31707
|
+
},
|
|
31708
|
+
fromPartial(object) {
|
|
31709
|
+
const message = createBaseChannelMemberList();
|
|
31710
|
+
message.channel_members = object.channel_members?.map((e) => ChannelMemberDetail.fromPartial(e)) || [];
|
|
31711
|
+
return message;
|
|
31712
|
+
},
|
|
31713
|
+
};
|
|
31017
31714
|
function bytesFromBase64(b64) {
|
|
31018
31715
|
if (globalThis.Buffer) {
|
|
31019
31716
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|