mezon-sdk 2.7.99 → 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 +645 -99
- package/dist/cjs/api/api.js +878 -50
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/mezon-client/manager/socket_manager.js +0 -2
- package/dist/cjs/mezon-client/manager/socket_manager.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/rtapi/realtime.d.ts +32287 -12006
- package/dist/cjs/rtapi/realtime.js +1471 -7
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/esm/api/api.d.ts +645 -99
- package/dist/esm/api/api.js +856 -42
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/mezon-client/manager/socket_manager.js +0 -2
- package/dist/esm/mezon-client/manager/socket_manager.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/rtapi/realtime.d.ts +32287 -12006
- package/dist/esm/rtapi/realtime.js +1464 -2
- package/dist/esm/rtapi/realtime.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
|
@@ -7079,6 +7079,7 @@ function createBaseUser() {
|
|
|
7079
7079
|
is_mobile: false,
|
|
7080
7080
|
dob: undefined,
|
|
7081
7081
|
mezon_id: "",
|
|
7082
|
+
list_nick_names: [],
|
|
7082
7083
|
};
|
|
7083
7084
|
}
|
|
7084
7085
|
export const User = {
|
|
@@ -7149,6 +7150,9 @@ export const User = {
|
|
|
7149
7150
|
if (message.mezon_id !== "") {
|
|
7150
7151
|
writer.uint32(178).string(message.mezon_id);
|
|
7151
7152
|
}
|
|
7153
|
+
for (const v of message.list_nick_names) {
|
|
7154
|
+
writer.uint32(186).string(v);
|
|
7155
|
+
}
|
|
7152
7156
|
return writer;
|
|
7153
7157
|
},
|
|
7154
7158
|
decode(input, length) {
|
|
@@ -7290,6 +7294,12 @@ export const User = {
|
|
|
7290
7294
|
}
|
|
7291
7295
|
message.mezon_id = reader.string();
|
|
7292
7296
|
continue;
|
|
7297
|
+
case 23:
|
|
7298
|
+
if (tag !== 186) {
|
|
7299
|
+
break;
|
|
7300
|
+
}
|
|
7301
|
+
message.list_nick_names.push(reader.string());
|
|
7302
|
+
continue;
|
|
7293
7303
|
}
|
|
7294
7304
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7295
7305
|
break;
|
|
@@ -7322,6 +7332,9 @@ export const User = {
|
|
|
7322
7332
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
7323
7333
|
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
7324
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
|
+
: [],
|
|
7325
7338
|
};
|
|
7326
7339
|
},
|
|
7327
7340
|
toJSON(message) {
|
|
@@ -7392,6 +7405,9 @@ export const User = {
|
|
|
7392
7405
|
if (message.mezon_id !== "") {
|
|
7393
7406
|
obj.mezon_id = message.mezon_id;
|
|
7394
7407
|
}
|
|
7408
|
+
if (message.list_nick_names?.length) {
|
|
7409
|
+
obj.list_nick_names = message.list_nick_names;
|
|
7410
|
+
}
|
|
7395
7411
|
return obj;
|
|
7396
7412
|
},
|
|
7397
7413
|
create(base) {
|
|
@@ -7421,6 +7437,7 @@ export const User = {
|
|
|
7421
7437
|
message.is_mobile = object.is_mobile ?? false;
|
|
7422
7438
|
message.dob = object.dob ?? undefined;
|
|
7423
7439
|
message.mezon_id = object.mezon_id ?? "";
|
|
7440
|
+
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
7424
7441
|
return message;
|
|
7425
7442
|
},
|
|
7426
7443
|
};
|
|
@@ -17446,7 +17463,17 @@ export const RegistrationEmailRequest_VarsEntry = {
|
|
|
17446
17463
|
},
|
|
17447
17464
|
};
|
|
17448
17465
|
function createBaseClanEmoji() {
|
|
17449
|
-
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
|
+
};
|
|
17450
17477
|
}
|
|
17451
17478
|
export const ClanEmoji = {
|
|
17452
17479
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -17474,6 +17501,9 @@ export const ClanEmoji = {
|
|
|
17474
17501
|
if (message.clan_name !== "") {
|
|
17475
17502
|
writer.uint32(66).string(message.clan_name);
|
|
17476
17503
|
}
|
|
17504
|
+
if (message.is_for_sale !== false) {
|
|
17505
|
+
writer.uint32(72).bool(message.is_for_sale);
|
|
17506
|
+
}
|
|
17477
17507
|
return writer;
|
|
17478
17508
|
},
|
|
17479
17509
|
decode(input, length) {
|
|
@@ -17531,6 +17561,12 @@ export const ClanEmoji = {
|
|
|
17531
17561
|
}
|
|
17532
17562
|
message.clan_name = reader.string();
|
|
17533
17563
|
continue;
|
|
17564
|
+
case 9:
|
|
17565
|
+
if (tag !== 72) {
|
|
17566
|
+
break;
|
|
17567
|
+
}
|
|
17568
|
+
message.is_for_sale = reader.bool();
|
|
17569
|
+
continue;
|
|
17534
17570
|
}
|
|
17535
17571
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17536
17572
|
break;
|
|
@@ -17549,6 +17585,7 @@ export const ClanEmoji = {
|
|
|
17549
17585
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17550
17586
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
17551
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,
|
|
17552
17589
|
};
|
|
17553
17590
|
},
|
|
17554
17591
|
toJSON(message) {
|
|
@@ -17577,6 +17614,9 @@ export const ClanEmoji = {
|
|
|
17577
17614
|
if (message.clan_name !== "") {
|
|
17578
17615
|
obj.clan_name = message.clan_name;
|
|
17579
17616
|
}
|
|
17617
|
+
if (message.is_for_sale !== false) {
|
|
17618
|
+
obj.is_for_sale = message.is_for_sale;
|
|
17619
|
+
}
|
|
17580
17620
|
return obj;
|
|
17581
17621
|
},
|
|
17582
17622
|
create(base) {
|
|
@@ -17592,6 +17632,7 @@ export const ClanEmoji = {
|
|
|
17592
17632
|
message.clan_id = object.clan_id ?? "";
|
|
17593
17633
|
message.logo = object.logo ?? "";
|
|
17594
17634
|
message.clan_name = object.clan_name ?? "";
|
|
17635
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
17595
17636
|
return message;
|
|
17596
17637
|
},
|
|
17597
17638
|
};
|
|
@@ -17715,6 +17756,7 @@ function createBaseClanSticker() {
|
|
|
17715
17756
|
logo: "",
|
|
17716
17757
|
clan_name: "",
|
|
17717
17758
|
media_type: 0,
|
|
17759
|
+
is_for_sale: false,
|
|
17718
17760
|
};
|
|
17719
17761
|
}
|
|
17720
17762
|
export const ClanSticker = {
|
|
@@ -17749,6 +17791,9 @@ export const ClanSticker = {
|
|
|
17749
17791
|
if (message.media_type !== 0) {
|
|
17750
17792
|
writer.uint32(80).int32(message.media_type);
|
|
17751
17793
|
}
|
|
17794
|
+
if (message.is_for_sale !== false) {
|
|
17795
|
+
writer.uint32(88).bool(message.is_for_sale);
|
|
17796
|
+
}
|
|
17752
17797
|
return writer;
|
|
17753
17798
|
},
|
|
17754
17799
|
decode(input, length) {
|
|
@@ -17818,6 +17863,12 @@ export const ClanSticker = {
|
|
|
17818
17863
|
}
|
|
17819
17864
|
message.media_type = reader.int32();
|
|
17820
17865
|
continue;
|
|
17866
|
+
case 11:
|
|
17867
|
+
if (tag !== 88) {
|
|
17868
|
+
break;
|
|
17869
|
+
}
|
|
17870
|
+
message.is_for_sale = reader.bool();
|
|
17871
|
+
continue;
|
|
17821
17872
|
}
|
|
17822
17873
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17823
17874
|
break;
|
|
@@ -17838,6 +17889,7 @@ export const ClanSticker = {
|
|
|
17838
17889
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
17839
17890
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
17840
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,
|
|
17841
17893
|
};
|
|
17842
17894
|
},
|
|
17843
17895
|
toJSON(message) {
|
|
@@ -17872,6 +17924,9 @@ export const ClanSticker = {
|
|
|
17872
17924
|
if (message.media_type !== 0) {
|
|
17873
17925
|
obj.media_type = Math.round(message.media_type);
|
|
17874
17926
|
}
|
|
17927
|
+
if (message.is_for_sale !== false) {
|
|
17928
|
+
obj.is_for_sale = message.is_for_sale;
|
|
17929
|
+
}
|
|
17875
17930
|
return obj;
|
|
17876
17931
|
},
|
|
17877
17932
|
create(base) {
|
|
@@ -17889,6 +17944,7 @@ export const ClanSticker = {
|
|
|
17889
17944
|
message.logo = object.logo ?? "";
|
|
17890
17945
|
message.clan_name = object.clan_name ?? "";
|
|
17891
17946
|
message.media_type = object.media_type ?? 0;
|
|
17947
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
17892
17948
|
return message;
|
|
17893
17949
|
},
|
|
17894
17950
|
};
|
|
@@ -18039,7 +18095,7 @@ export const AllUsersAddChannelResponse = {
|
|
|
18039
18095
|
},
|
|
18040
18096
|
};
|
|
18041
18097
|
function createBaseClanEmojiCreateRequest() {
|
|
18042
|
-
return { clan_id: "", source: "", shortname: "", category: "", id: "" };
|
|
18098
|
+
return { clan_id: "", source: "", shortname: "", category: "", id: "", is_for_sale: false };
|
|
18043
18099
|
}
|
|
18044
18100
|
export const ClanEmojiCreateRequest = {
|
|
18045
18101
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -18058,6 +18114,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
18058
18114
|
if (message.id !== "") {
|
|
18059
18115
|
writer.uint32(42).string(message.id);
|
|
18060
18116
|
}
|
|
18117
|
+
if (message.is_for_sale !== false) {
|
|
18118
|
+
writer.uint32(48).bool(message.is_for_sale);
|
|
18119
|
+
}
|
|
18061
18120
|
return writer;
|
|
18062
18121
|
},
|
|
18063
18122
|
decode(input, length) {
|
|
@@ -18097,6 +18156,12 @@ export const ClanEmojiCreateRequest = {
|
|
|
18097
18156
|
}
|
|
18098
18157
|
message.id = reader.string();
|
|
18099
18158
|
continue;
|
|
18159
|
+
case 6:
|
|
18160
|
+
if (tag !== 48) {
|
|
18161
|
+
break;
|
|
18162
|
+
}
|
|
18163
|
+
message.is_for_sale = reader.bool();
|
|
18164
|
+
continue;
|
|
18100
18165
|
}
|
|
18101
18166
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18102
18167
|
break;
|
|
@@ -18112,6 +18177,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18112
18177
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
18113
18178
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
18114
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,
|
|
18115
18181
|
};
|
|
18116
18182
|
},
|
|
18117
18183
|
toJSON(message) {
|
|
@@ -18131,6 +18197,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
18131
18197
|
if (message.id !== "") {
|
|
18132
18198
|
obj.id = message.id;
|
|
18133
18199
|
}
|
|
18200
|
+
if (message.is_for_sale !== false) {
|
|
18201
|
+
obj.is_for_sale = message.is_for_sale;
|
|
18202
|
+
}
|
|
18134
18203
|
return obj;
|
|
18135
18204
|
},
|
|
18136
18205
|
create(base) {
|
|
@@ -18143,6 +18212,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18143
18212
|
message.shortname = object.shortname ?? "";
|
|
18144
18213
|
message.category = object.category ?? "";
|
|
18145
18214
|
message.id = object.id ?? "";
|
|
18215
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
18146
18216
|
return message;
|
|
18147
18217
|
},
|
|
18148
18218
|
};
|
|
@@ -19284,7 +19354,7 @@ export const CheckDuplicateClanNameResponse = {
|
|
|
19284
19354
|
},
|
|
19285
19355
|
};
|
|
19286
19356
|
function createBaseClanStickerAddRequest() {
|
|
19287
|
-
return { source: "", shortname: "", category: "", clan_id:
|
|
19357
|
+
return { source: "", shortname: "", category: "", clan_id: "", id: "", media_type: 0, is_for_sale: false };
|
|
19288
19358
|
}
|
|
19289
19359
|
export const ClanStickerAddRequest = {
|
|
19290
19360
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -19297,8 +19367,8 @@ export const ClanStickerAddRequest = {
|
|
|
19297
19367
|
if (message.category !== "") {
|
|
19298
19368
|
writer.uint32(26).string(message.category);
|
|
19299
19369
|
}
|
|
19300
|
-
if (message.clan_id !==
|
|
19301
|
-
writer.uint32(
|
|
19370
|
+
if (message.clan_id !== "") {
|
|
19371
|
+
writer.uint32(34).string(message.clan_id);
|
|
19302
19372
|
}
|
|
19303
19373
|
if (message.id !== "") {
|
|
19304
19374
|
writer.uint32(42).string(message.id);
|
|
@@ -19306,6 +19376,9 @@ export const ClanStickerAddRequest = {
|
|
|
19306
19376
|
if (message.media_type !== 0) {
|
|
19307
19377
|
writer.uint32(48).int32(message.media_type);
|
|
19308
19378
|
}
|
|
19379
|
+
if (message.is_for_sale !== false) {
|
|
19380
|
+
writer.uint32(56).bool(message.is_for_sale);
|
|
19381
|
+
}
|
|
19309
19382
|
return writer;
|
|
19310
19383
|
},
|
|
19311
19384
|
decode(input, length) {
|
|
@@ -19334,10 +19407,10 @@ export const ClanStickerAddRequest = {
|
|
|
19334
19407
|
message.category = reader.string();
|
|
19335
19408
|
continue;
|
|
19336
19409
|
case 4:
|
|
19337
|
-
if (tag !==
|
|
19410
|
+
if (tag !== 34) {
|
|
19338
19411
|
break;
|
|
19339
19412
|
}
|
|
19340
|
-
message.clan_id =
|
|
19413
|
+
message.clan_id = reader.string();
|
|
19341
19414
|
continue;
|
|
19342
19415
|
case 5:
|
|
19343
19416
|
if (tag !== 42) {
|
|
@@ -19351,6 +19424,12 @@ export const ClanStickerAddRequest = {
|
|
|
19351
19424
|
}
|
|
19352
19425
|
message.media_type = reader.int32();
|
|
19353
19426
|
continue;
|
|
19427
|
+
case 7:
|
|
19428
|
+
if (tag !== 56) {
|
|
19429
|
+
break;
|
|
19430
|
+
}
|
|
19431
|
+
message.is_for_sale = reader.bool();
|
|
19432
|
+
continue;
|
|
19354
19433
|
}
|
|
19355
19434
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19356
19435
|
break;
|
|
@@ -19364,9 +19443,10 @@ export const ClanStickerAddRequest = {
|
|
|
19364
19443
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
19365
19444
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
19366
19445
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
19367
|
-
clan_id: isSet(object.clan_id) ? globalThis.
|
|
19446
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
19368
19447
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
19369
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,
|
|
19370
19450
|
};
|
|
19371
19451
|
},
|
|
19372
19452
|
toJSON(message) {
|
|
@@ -19380,8 +19460,8 @@ export const ClanStickerAddRequest = {
|
|
|
19380
19460
|
if (message.category !== "") {
|
|
19381
19461
|
obj.category = message.category;
|
|
19382
19462
|
}
|
|
19383
|
-
if (message.clan_id !==
|
|
19384
|
-
obj.clan_id =
|
|
19463
|
+
if (message.clan_id !== "") {
|
|
19464
|
+
obj.clan_id = message.clan_id;
|
|
19385
19465
|
}
|
|
19386
19466
|
if (message.id !== "") {
|
|
19387
19467
|
obj.id = message.id;
|
|
@@ -19389,6 +19469,9 @@ export const ClanStickerAddRequest = {
|
|
|
19389
19469
|
if (message.media_type !== 0) {
|
|
19390
19470
|
obj.media_type = Math.round(message.media_type);
|
|
19391
19471
|
}
|
|
19472
|
+
if (message.is_for_sale !== false) {
|
|
19473
|
+
obj.is_for_sale = message.is_for_sale;
|
|
19474
|
+
}
|
|
19392
19475
|
return obj;
|
|
19393
19476
|
},
|
|
19394
19477
|
create(base) {
|
|
@@ -19399,9 +19482,10 @@ export const ClanStickerAddRequest = {
|
|
|
19399
19482
|
message.source = object.source ?? "";
|
|
19400
19483
|
message.shortname = object.shortname ?? "";
|
|
19401
19484
|
message.category = object.category ?? "";
|
|
19402
|
-
message.clan_id = object.clan_id ??
|
|
19485
|
+
message.clan_id = object.clan_id ?? "";
|
|
19403
19486
|
message.id = object.id ?? "";
|
|
19404
19487
|
message.media_type = object.media_type ?? 0;
|
|
19488
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
19405
19489
|
return message;
|
|
19406
19490
|
},
|
|
19407
19491
|
};
|
|
@@ -20297,6 +20381,7 @@ function createBaseUpdateAppRequest() {
|
|
|
20297
20381
|
token: undefined,
|
|
20298
20382
|
about: "",
|
|
20299
20383
|
app_url: "",
|
|
20384
|
+
is_shadow: "",
|
|
20300
20385
|
};
|
|
20301
20386
|
}
|
|
20302
20387
|
export const UpdateAppRequest = {
|
|
@@ -20322,6 +20407,9 @@ export const UpdateAppRequest = {
|
|
|
20322
20407
|
if (message.app_url !== "") {
|
|
20323
20408
|
writer.uint32(58).string(message.app_url);
|
|
20324
20409
|
}
|
|
20410
|
+
if (message.is_shadow !== "") {
|
|
20411
|
+
writer.uint32(74).string(message.is_shadow);
|
|
20412
|
+
}
|
|
20325
20413
|
return writer;
|
|
20326
20414
|
},
|
|
20327
20415
|
decode(input, length) {
|
|
@@ -20373,6 +20461,12 @@ export const UpdateAppRequest = {
|
|
|
20373
20461
|
}
|
|
20374
20462
|
message.app_url = reader.string();
|
|
20375
20463
|
continue;
|
|
20464
|
+
case 9:
|
|
20465
|
+
if (tag !== 74) {
|
|
20466
|
+
break;
|
|
20467
|
+
}
|
|
20468
|
+
message.is_shadow = reader.string();
|
|
20469
|
+
continue;
|
|
20376
20470
|
}
|
|
20377
20471
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20378
20472
|
break;
|
|
@@ -20390,6 +20484,7 @@ export const UpdateAppRequest = {
|
|
|
20390
20484
|
token: isSet(object.token) ? String(object.token) : undefined,
|
|
20391
20485
|
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
20392
20486
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
20487
|
+
is_shadow: isSet(object.is_shadow) ? globalThis.String(object.is_shadow) : "",
|
|
20393
20488
|
};
|
|
20394
20489
|
},
|
|
20395
20490
|
toJSON(message) {
|
|
@@ -20415,6 +20510,9 @@ export const UpdateAppRequest = {
|
|
|
20415
20510
|
if (message.app_url !== "") {
|
|
20416
20511
|
obj.app_url = message.app_url;
|
|
20417
20512
|
}
|
|
20513
|
+
if (message.is_shadow !== "") {
|
|
20514
|
+
obj.is_shadow = message.is_shadow;
|
|
20515
|
+
}
|
|
20418
20516
|
return obj;
|
|
20419
20517
|
},
|
|
20420
20518
|
create(base) {
|
|
@@ -20429,6 +20527,7 @@ export const UpdateAppRequest = {
|
|
|
20429
20527
|
message.token = object.token ?? undefined;
|
|
20430
20528
|
message.about = object.about ?? "";
|
|
20431
20529
|
message.app_url = object.app_url ?? "";
|
|
20530
|
+
message.is_shadow = object.is_shadow ?? "";
|
|
20432
20531
|
return message;
|
|
20433
20532
|
},
|
|
20434
20533
|
};
|
|
@@ -25834,28 +25933,37 @@ export const TokenSentEvent = {
|
|
|
25834
25933
|
return message;
|
|
25835
25934
|
},
|
|
25836
25935
|
};
|
|
25837
|
-
function
|
|
25838
|
-
return {
|
|
25936
|
+
function createBaseUnlockItemRequest() {
|
|
25937
|
+
return { item_id: "", item_type: 0 };
|
|
25839
25938
|
}
|
|
25840
|
-
export const
|
|
25939
|
+
export const UnlockItemRequest = {
|
|
25841
25940
|
encode(message, writer = _m0.Writer.create()) {
|
|
25842
|
-
if (message.
|
|
25843
|
-
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);
|
|
25844
25946
|
}
|
|
25845
25947
|
return writer;
|
|
25846
25948
|
},
|
|
25847
25949
|
decode(input, length) {
|
|
25848
25950
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
25849
25951
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25850
|
-
const message =
|
|
25952
|
+
const message = createBaseUnlockItemRequest();
|
|
25851
25953
|
while (reader.pos < end) {
|
|
25852
25954
|
const tag = reader.uint32();
|
|
25853
25955
|
switch (tag >>> 3) {
|
|
25854
25956
|
case 1:
|
|
25855
|
-
if (tag !==
|
|
25957
|
+
if (tag !== 10) {
|
|
25856
25958
|
break;
|
|
25857
25959
|
}
|
|
25858
|
-
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();
|
|
25859
25967
|
continue;
|
|
25860
25968
|
}
|
|
25861
25969
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -25866,21 +25974,78 @@ export const WithdrawTokenRequest = {
|
|
|
25866
25974
|
return message;
|
|
25867
25975
|
},
|
|
25868
25976
|
fromJSON(object) {
|
|
25869
|
-
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
|
+
};
|
|
25870
25981
|
},
|
|
25871
25982
|
toJSON(message) {
|
|
25872
25983
|
const obj = {};
|
|
25873
|
-
if (message.
|
|
25874
|
-
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);
|
|
25875
25989
|
}
|
|
25876
25990
|
return obj;
|
|
25877
25991
|
},
|
|
25878
25992
|
create(base) {
|
|
25879
|
-
return
|
|
25993
|
+
return UnlockItemRequest.fromPartial(base ?? {});
|
|
25880
25994
|
},
|
|
25881
25995
|
fromPartial(object) {
|
|
25882
|
-
const message =
|
|
25883
|
-
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 ?? "";
|
|
25884
26049
|
return message;
|
|
25885
26050
|
},
|
|
25886
26051
|
};
|
|
@@ -28158,15 +28323,15 @@ export const WalletLedgerList = {
|
|
|
28158
28323
|
},
|
|
28159
28324
|
};
|
|
28160
28325
|
function createBaseWalletLedgerListReq() {
|
|
28161
|
-
return { limit: undefined,
|
|
28326
|
+
return { limit: undefined, filter: 0, transaction_id: "", page: undefined };
|
|
28162
28327
|
}
|
|
28163
28328
|
export const WalletLedgerListReq = {
|
|
28164
28329
|
encode(message, writer = _m0.Writer.create()) {
|
|
28165
28330
|
if (message.limit !== undefined) {
|
|
28166
28331
|
Int32Value.encode({ value: message.limit }, writer.uint32(10).fork()).ldelim();
|
|
28167
28332
|
}
|
|
28168
|
-
if (message.
|
|
28169
|
-
writer.uint32(
|
|
28333
|
+
if (message.filter !== 0) {
|
|
28334
|
+
writer.uint32(16).int32(message.filter);
|
|
28170
28335
|
}
|
|
28171
28336
|
if (message.transaction_id !== "") {
|
|
28172
28337
|
writer.uint32(26).string(message.transaction_id);
|
|
@@ -28190,10 +28355,10 @@ export const WalletLedgerListReq = {
|
|
|
28190
28355
|
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
28191
28356
|
continue;
|
|
28192
28357
|
case 2:
|
|
28193
|
-
if (tag !==
|
|
28358
|
+
if (tag !== 16) {
|
|
28194
28359
|
break;
|
|
28195
28360
|
}
|
|
28196
|
-
message.
|
|
28361
|
+
message.filter = reader.int32();
|
|
28197
28362
|
continue;
|
|
28198
28363
|
case 3:
|
|
28199
28364
|
if (tag !== 26) {
|
|
@@ -28218,7 +28383,7 @@ export const WalletLedgerListReq = {
|
|
|
28218
28383
|
fromJSON(object) {
|
|
28219
28384
|
return {
|
|
28220
28385
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
28221
|
-
|
|
28386
|
+
filter: isSet(object.filter) ? globalThis.Number(object.filter) : 0,
|
|
28222
28387
|
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
28223
28388
|
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
28224
28389
|
};
|
|
@@ -28228,8 +28393,8 @@ export const WalletLedgerListReq = {
|
|
|
28228
28393
|
if (message.limit !== undefined) {
|
|
28229
28394
|
obj.limit = message.limit;
|
|
28230
28395
|
}
|
|
28231
|
-
if (message.
|
|
28232
|
-
obj.
|
|
28396
|
+
if (message.filter !== 0) {
|
|
28397
|
+
obj.filter = Math.round(message.filter);
|
|
28233
28398
|
}
|
|
28234
28399
|
if (message.transaction_id !== "") {
|
|
28235
28400
|
obj.transaction_id = message.transaction_id;
|
|
@@ -28245,7 +28410,7 @@ export const WalletLedgerListReq = {
|
|
|
28245
28410
|
fromPartial(object) {
|
|
28246
28411
|
const message = createBaseWalletLedgerListReq();
|
|
28247
28412
|
message.limit = object.limit ?? undefined;
|
|
28248
|
-
message.
|
|
28413
|
+
message.filter = object.filter ?? 0;
|
|
28249
28414
|
message.transaction_id = object.transaction_id ?? "";
|
|
28250
28415
|
message.page = object.page ?? undefined;
|
|
28251
28416
|
return message;
|
|
@@ -30108,11 +30273,11 @@ export const MezonOauthClient = {
|
|
|
30108
30273
|
},
|
|
30109
30274
|
};
|
|
30110
30275
|
function createBaseMezonOauthClientList() {
|
|
30111
|
-
return {
|
|
30276
|
+
return { list_mezon_oauth_client: [] };
|
|
30112
30277
|
}
|
|
30113
30278
|
export const MezonOauthClientList = {
|
|
30114
30279
|
encode(message, writer = _m0.Writer.create()) {
|
|
30115
|
-
for (const v of message.
|
|
30280
|
+
for (const v of message.list_mezon_oauth_client) {
|
|
30116
30281
|
MezonOauthClient.encode(v, writer.uint32(10).fork()).ldelim();
|
|
30117
30282
|
}
|
|
30118
30283
|
return writer;
|
|
@@ -30128,7 +30293,7 @@ export const MezonOauthClientList = {
|
|
|
30128
30293
|
if (tag !== 10) {
|
|
30129
30294
|
break;
|
|
30130
30295
|
}
|
|
30131
|
-
message.
|
|
30296
|
+
message.list_mezon_oauth_client.push(MezonOauthClient.decode(reader, reader.uint32()));
|
|
30132
30297
|
continue;
|
|
30133
30298
|
}
|
|
30134
30299
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -30140,15 +30305,15 @@ export const MezonOauthClientList = {
|
|
|
30140
30305
|
},
|
|
30141
30306
|
fromJSON(object) {
|
|
30142
30307
|
return {
|
|
30143
|
-
|
|
30144
|
-
? 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))
|
|
30145
30310
|
: [],
|
|
30146
30311
|
};
|
|
30147
30312
|
},
|
|
30148
30313
|
toJSON(message) {
|
|
30149
30314
|
const obj = {};
|
|
30150
|
-
if (message.
|
|
30151
|
-
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));
|
|
30152
30317
|
}
|
|
30153
30318
|
return obj;
|
|
30154
30319
|
},
|
|
@@ -30157,7 +30322,7 @@ export const MezonOauthClientList = {
|
|
|
30157
30322
|
},
|
|
30158
30323
|
fromPartial(object) {
|
|
30159
30324
|
const message = createBaseMezonOauthClientList();
|
|
30160
|
-
message.
|
|
30325
|
+
message.list_mezon_oauth_client = object.list_mezon_oauth_client?.map((e) => MezonOauthClient.fromPartial(e)) || [];
|
|
30161
30326
|
return message;
|
|
30162
30327
|
},
|
|
30163
30328
|
};
|
|
@@ -30897,6 +31062,655 @@ export const AccountMezon_VarsEntry = {
|
|
|
30897
31062
|
return message;
|
|
30898
31063
|
},
|
|
30899
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
|
+
};
|
|
30900
31714
|
function bytesFromBase64(b64) {
|
|
30901
31715
|
if (globalThis.Buffer) {
|
|
30902
31716
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|