mezon-js-protobuf 1.8.7 → 1.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api.ts +511 -54
- package/dist/mezon-js-protobuf/api/api.d.ts +265 -51
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1042 -510
- package/dist/mezon-js-protobuf.cjs.js +5 -5
- package/dist/mezon-js-protobuf.esm.mjs +5 -5
- package/package.json +1 -1
- package/rtapi/realtime.ts +6 -6
package/api/api.ts
CHANGED
|
@@ -2473,6 +2473,7 @@ export interface ClanSticker {
|
|
|
2473
2473
|
clan_id: string;
|
|
2474
2474
|
logo: string;
|
|
2475
2475
|
clan_name: string;
|
|
2476
|
+
media_type: number;
|
|
2476
2477
|
}
|
|
2477
2478
|
|
|
2478
2479
|
export interface AllUsersAddChannelRequest {
|
|
@@ -2492,6 +2493,7 @@ export interface ClanEmojiCreateRequest {
|
|
|
2492
2493
|
shortname: string;
|
|
2493
2494
|
category: string;
|
|
2494
2495
|
id: string;
|
|
2496
|
+
is_for_sale: boolean;
|
|
2495
2497
|
}
|
|
2496
2498
|
|
|
2497
2499
|
export interface ClanEmojiGetByClanIdRequest {
|
|
@@ -2590,9 +2592,13 @@ export interface ClanStickerAddRequest {
|
|
|
2590
2592
|
source: string;
|
|
2591
2593
|
shortname: string;
|
|
2592
2594
|
category: string;
|
|
2593
|
-
clan_id:
|
|
2595
|
+
clan_id: string;
|
|
2594
2596
|
/** UNIQUE include type number */
|
|
2595
2597
|
id: string;
|
|
2598
|
+
/** media type for image or audio */
|
|
2599
|
+
media_type: number;
|
|
2600
|
+
/** is for sale */
|
|
2601
|
+
is_for_sale: boolean;
|
|
2596
2602
|
}
|
|
2597
2603
|
|
|
2598
2604
|
export interface ClanStickerListByClanIdRequest {
|
|
@@ -3307,9 +3313,11 @@ export interface TokenSentEvent {
|
|
|
3307
3313
|
transaction_id: string;
|
|
3308
3314
|
}
|
|
3309
3315
|
|
|
3310
|
-
export interface
|
|
3311
|
-
/**
|
|
3312
|
-
|
|
3316
|
+
export interface UnlockItemRequest {
|
|
3317
|
+
/** item id */
|
|
3318
|
+
item_id: string;
|
|
3319
|
+
/** item type */
|
|
3320
|
+
item_type: number;
|
|
3313
3321
|
}
|
|
3314
3322
|
|
|
3315
3323
|
export interface ListOnboardingRequest {
|
|
@@ -3576,8 +3584,15 @@ export interface WalletLedgerList {
|
|
|
3576
3584
|
}
|
|
3577
3585
|
|
|
3578
3586
|
export interface WalletLedgerListReq {
|
|
3579
|
-
limit:
|
|
3580
|
-
|
|
3587
|
+
limit:
|
|
3588
|
+
| number
|
|
3589
|
+
| undefined;
|
|
3590
|
+
/**
|
|
3591
|
+
* filter = 0 for all
|
|
3592
|
+
* filter = 1 for sent
|
|
3593
|
+
* filter = 2 for recieve
|
|
3594
|
+
*/
|
|
3595
|
+
filter: number;
|
|
3581
3596
|
transaction_id: string;
|
|
3582
3597
|
page: number | undefined;
|
|
3583
3598
|
}
|
|
@@ -3710,7 +3725,7 @@ export interface MezonOauthClient {
|
|
|
3710
3725
|
}
|
|
3711
3726
|
|
|
3712
3727
|
export interface MezonOauthClientList {
|
|
3713
|
-
|
|
3728
|
+
list_mezon_oauth_client: MezonOauthClient[];
|
|
3714
3729
|
}
|
|
3715
3730
|
|
|
3716
3731
|
export interface GetMezonOauthClientRequest {
|
|
@@ -3772,6 +3787,29 @@ export interface AccountMezon_VarsEntry {
|
|
|
3772
3787
|
value: string;
|
|
3773
3788
|
}
|
|
3774
3789
|
|
|
3790
|
+
export interface QuickMenuAccessRequest {
|
|
3791
|
+
id: string;
|
|
3792
|
+
menu_name: string;
|
|
3793
|
+
background: string;
|
|
3794
|
+
action_msg: string;
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
export interface QuickMenuAccess {
|
|
3798
|
+
id: string;
|
|
3799
|
+
bot_id: string;
|
|
3800
|
+
menu_name: string;
|
|
3801
|
+
background: string;
|
|
3802
|
+
action_msg: string;
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
export interface ListQuickMenuAccessRequest {
|
|
3806
|
+
bot_id: string;
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
export interface QuickMenuAccessList {
|
|
3810
|
+
list_menus: QuickMenuAccess[];
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3775
3813
|
function createBaseAccount(): Account {
|
|
3776
3814
|
return {
|
|
3777
3815
|
user: undefined,
|
|
@@ -22959,6 +22997,7 @@ function createBaseClanSticker(): ClanSticker {
|
|
|
22959
22997
|
clan_id: "",
|
|
22960
22998
|
logo: "",
|
|
22961
22999
|
clan_name: "",
|
|
23000
|
+
media_type: 0,
|
|
22962
23001
|
};
|
|
22963
23002
|
}
|
|
22964
23003
|
|
|
@@ -22991,6 +23030,9 @@ export const ClanSticker = {
|
|
|
22991
23030
|
if (message.clan_name !== "") {
|
|
22992
23031
|
writer.uint32(74).string(message.clan_name);
|
|
22993
23032
|
}
|
|
23033
|
+
if (message.media_type !== 0) {
|
|
23034
|
+
writer.uint32(80).int32(message.media_type);
|
|
23035
|
+
}
|
|
22994
23036
|
return writer;
|
|
22995
23037
|
},
|
|
22996
23038
|
|
|
@@ -23064,6 +23106,13 @@ export const ClanSticker = {
|
|
|
23064
23106
|
|
|
23065
23107
|
message.clan_name = reader.string();
|
|
23066
23108
|
continue;
|
|
23109
|
+
case 10:
|
|
23110
|
+
if (tag !== 80) {
|
|
23111
|
+
break;
|
|
23112
|
+
}
|
|
23113
|
+
|
|
23114
|
+
message.media_type = reader.int32();
|
|
23115
|
+
continue;
|
|
23067
23116
|
}
|
|
23068
23117
|
if ((tag & 7) === 4 || tag === 0) {
|
|
23069
23118
|
break;
|
|
@@ -23084,6 +23133,7 @@ export const ClanSticker = {
|
|
|
23084
23133
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
23085
23134
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
23086
23135
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
23136
|
+
media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
|
|
23087
23137
|
};
|
|
23088
23138
|
},
|
|
23089
23139
|
|
|
@@ -23116,6 +23166,9 @@ export const ClanSticker = {
|
|
|
23116
23166
|
if (message.clan_name !== "") {
|
|
23117
23167
|
obj.clan_name = message.clan_name;
|
|
23118
23168
|
}
|
|
23169
|
+
if (message.media_type !== 0) {
|
|
23170
|
+
obj.media_type = Math.round(message.media_type);
|
|
23171
|
+
}
|
|
23119
23172
|
return obj;
|
|
23120
23173
|
},
|
|
23121
23174
|
|
|
@@ -23133,6 +23186,7 @@ export const ClanSticker = {
|
|
|
23133
23186
|
message.clan_id = object.clan_id ?? "";
|
|
23134
23187
|
message.logo = object.logo ?? "";
|
|
23135
23188
|
message.clan_name = object.clan_name ?? "";
|
|
23189
|
+
message.media_type = object.media_type ?? 0;
|
|
23136
23190
|
return message;
|
|
23137
23191
|
},
|
|
23138
23192
|
};
|
|
@@ -23301,7 +23355,7 @@ export const AllUsersAddChannelResponse = {
|
|
|
23301
23355
|
};
|
|
23302
23356
|
|
|
23303
23357
|
function createBaseClanEmojiCreateRequest(): ClanEmojiCreateRequest {
|
|
23304
|
-
return { clan_id: "", source: "", shortname: "", category: "", id: "" };
|
|
23358
|
+
return { clan_id: "", source: "", shortname: "", category: "", id: "", is_for_sale: false };
|
|
23305
23359
|
}
|
|
23306
23360
|
|
|
23307
23361
|
export const ClanEmojiCreateRequest = {
|
|
@@ -23321,6 +23375,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
23321
23375
|
if (message.id !== "") {
|
|
23322
23376
|
writer.uint32(42).string(message.id);
|
|
23323
23377
|
}
|
|
23378
|
+
if (message.is_for_sale !== false) {
|
|
23379
|
+
writer.uint32(48).bool(message.is_for_sale);
|
|
23380
|
+
}
|
|
23324
23381
|
return writer;
|
|
23325
23382
|
},
|
|
23326
23383
|
|
|
@@ -23366,6 +23423,13 @@ export const ClanEmojiCreateRequest = {
|
|
|
23366
23423
|
|
|
23367
23424
|
message.id = reader.string();
|
|
23368
23425
|
continue;
|
|
23426
|
+
case 6:
|
|
23427
|
+
if (tag !== 48) {
|
|
23428
|
+
break;
|
|
23429
|
+
}
|
|
23430
|
+
|
|
23431
|
+
message.is_for_sale = reader.bool();
|
|
23432
|
+
continue;
|
|
23369
23433
|
}
|
|
23370
23434
|
if ((tag & 7) === 4 || tag === 0) {
|
|
23371
23435
|
break;
|
|
@@ -23382,6 +23446,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
23382
23446
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
23383
23447
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
23384
23448
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
23449
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
23385
23450
|
};
|
|
23386
23451
|
},
|
|
23387
23452
|
|
|
@@ -23402,6 +23467,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
23402
23467
|
if (message.id !== "") {
|
|
23403
23468
|
obj.id = message.id;
|
|
23404
23469
|
}
|
|
23470
|
+
if (message.is_for_sale !== false) {
|
|
23471
|
+
obj.is_for_sale = message.is_for_sale;
|
|
23472
|
+
}
|
|
23405
23473
|
return obj;
|
|
23406
23474
|
},
|
|
23407
23475
|
|
|
@@ -23415,6 +23483,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
23415
23483
|
message.shortname = object.shortname ?? "";
|
|
23416
23484
|
message.category = object.category ?? "";
|
|
23417
23485
|
message.id = object.id ?? "";
|
|
23486
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
23418
23487
|
return message;
|
|
23419
23488
|
},
|
|
23420
23489
|
};
|
|
@@ -24688,7 +24757,7 @@ export const CheckDuplicateClanNameResponse = {
|
|
|
24688
24757
|
};
|
|
24689
24758
|
|
|
24690
24759
|
function createBaseClanStickerAddRequest(): ClanStickerAddRequest {
|
|
24691
|
-
return { source: "", shortname: "", category: "", clan_id:
|
|
24760
|
+
return { source: "", shortname: "", category: "", clan_id: "", id: "", media_type: 0, is_for_sale: false };
|
|
24692
24761
|
}
|
|
24693
24762
|
|
|
24694
24763
|
export const ClanStickerAddRequest = {
|
|
@@ -24702,12 +24771,18 @@ export const ClanStickerAddRequest = {
|
|
|
24702
24771
|
if (message.category !== "") {
|
|
24703
24772
|
writer.uint32(26).string(message.category);
|
|
24704
24773
|
}
|
|
24705
|
-
if (message.clan_id !==
|
|
24706
|
-
writer.uint32(
|
|
24774
|
+
if (message.clan_id !== "") {
|
|
24775
|
+
writer.uint32(34).string(message.clan_id);
|
|
24707
24776
|
}
|
|
24708
24777
|
if (message.id !== "") {
|
|
24709
24778
|
writer.uint32(42).string(message.id);
|
|
24710
24779
|
}
|
|
24780
|
+
if (message.media_type !== 0) {
|
|
24781
|
+
writer.uint32(48).int32(message.media_type);
|
|
24782
|
+
}
|
|
24783
|
+
if (message.is_for_sale !== false) {
|
|
24784
|
+
writer.uint32(56).bool(message.is_for_sale);
|
|
24785
|
+
}
|
|
24711
24786
|
return writer;
|
|
24712
24787
|
},
|
|
24713
24788
|
|
|
@@ -24740,11 +24815,11 @@ export const ClanStickerAddRequest = {
|
|
|
24740
24815
|
message.category = reader.string();
|
|
24741
24816
|
continue;
|
|
24742
24817
|
case 4:
|
|
24743
|
-
if (tag !==
|
|
24818
|
+
if (tag !== 34) {
|
|
24744
24819
|
break;
|
|
24745
24820
|
}
|
|
24746
24821
|
|
|
24747
|
-
message.clan_id =
|
|
24822
|
+
message.clan_id = reader.string();
|
|
24748
24823
|
continue;
|
|
24749
24824
|
case 5:
|
|
24750
24825
|
if (tag !== 42) {
|
|
@@ -24753,6 +24828,20 @@ export const ClanStickerAddRequest = {
|
|
|
24753
24828
|
|
|
24754
24829
|
message.id = reader.string();
|
|
24755
24830
|
continue;
|
|
24831
|
+
case 6:
|
|
24832
|
+
if (tag !== 48) {
|
|
24833
|
+
break;
|
|
24834
|
+
}
|
|
24835
|
+
|
|
24836
|
+
message.media_type = reader.int32();
|
|
24837
|
+
continue;
|
|
24838
|
+
case 7:
|
|
24839
|
+
if (tag !== 56) {
|
|
24840
|
+
break;
|
|
24841
|
+
}
|
|
24842
|
+
|
|
24843
|
+
message.is_for_sale = reader.bool();
|
|
24844
|
+
continue;
|
|
24756
24845
|
}
|
|
24757
24846
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24758
24847
|
break;
|
|
@@ -24767,8 +24856,10 @@ export const ClanStickerAddRequest = {
|
|
|
24767
24856
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
24768
24857
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
24769
24858
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
24770
|
-
clan_id: isSet(object.clan_id) ? globalThis.
|
|
24859
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
24771
24860
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
24861
|
+
media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
|
|
24862
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
24772
24863
|
};
|
|
24773
24864
|
},
|
|
24774
24865
|
|
|
@@ -24783,12 +24874,18 @@ export const ClanStickerAddRequest = {
|
|
|
24783
24874
|
if (message.category !== "") {
|
|
24784
24875
|
obj.category = message.category;
|
|
24785
24876
|
}
|
|
24786
|
-
if (message.clan_id !==
|
|
24787
|
-
obj.clan_id =
|
|
24877
|
+
if (message.clan_id !== "") {
|
|
24878
|
+
obj.clan_id = message.clan_id;
|
|
24788
24879
|
}
|
|
24789
24880
|
if (message.id !== "") {
|
|
24790
24881
|
obj.id = message.id;
|
|
24791
24882
|
}
|
|
24883
|
+
if (message.media_type !== 0) {
|
|
24884
|
+
obj.media_type = Math.round(message.media_type);
|
|
24885
|
+
}
|
|
24886
|
+
if (message.is_for_sale !== false) {
|
|
24887
|
+
obj.is_for_sale = message.is_for_sale;
|
|
24888
|
+
}
|
|
24792
24889
|
return obj;
|
|
24793
24890
|
},
|
|
24794
24891
|
|
|
@@ -24800,8 +24897,10 @@ export const ClanStickerAddRequest = {
|
|
|
24800
24897
|
message.source = object.source ?? "";
|
|
24801
24898
|
message.shortname = object.shortname ?? "";
|
|
24802
24899
|
message.category = object.category ?? "";
|
|
24803
|
-
message.clan_id = object.clan_id ??
|
|
24900
|
+
message.clan_id = object.clan_id ?? "";
|
|
24804
24901
|
message.id = object.id ?? "";
|
|
24902
|
+
message.media_type = object.media_type ?? 0;
|
|
24903
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
24805
24904
|
return message;
|
|
24806
24905
|
},
|
|
24807
24906
|
};
|
|
@@ -31952,31 +32051,41 @@ export const TokenSentEvent = {
|
|
|
31952
32051
|
},
|
|
31953
32052
|
};
|
|
31954
32053
|
|
|
31955
|
-
function
|
|
31956
|
-
return {
|
|
32054
|
+
function createBaseUnlockItemRequest(): UnlockItemRequest {
|
|
32055
|
+
return { item_id: "", item_type: 0 };
|
|
31957
32056
|
}
|
|
31958
32057
|
|
|
31959
|
-
export const
|
|
31960
|
-
encode(message:
|
|
31961
|
-
if (message.
|
|
31962
|
-
writer.uint32(
|
|
32058
|
+
export const UnlockItemRequest = {
|
|
32059
|
+
encode(message: UnlockItemRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
32060
|
+
if (message.item_id !== "") {
|
|
32061
|
+
writer.uint32(10).string(message.item_id);
|
|
32062
|
+
}
|
|
32063
|
+
if (message.item_type !== 0) {
|
|
32064
|
+
writer.uint32(16).int32(message.item_type);
|
|
31963
32065
|
}
|
|
31964
32066
|
return writer;
|
|
31965
32067
|
},
|
|
31966
32068
|
|
|
31967
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
32069
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UnlockItemRequest {
|
|
31968
32070
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31969
32071
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31970
|
-
const message =
|
|
32072
|
+
const message = createBaseUnlockItemRequest();
|
|
31971
32073
|
while (reader.pos < end) {
|
|
31972
32074
|
const tag = reader.uint32();
|
|
31973
32075
|
switch (tag >>> 3) {
|
|
31974
32076
|
case 1:
|
|
31975
|
-
if (tag !==
|
|
32077
|
+
if (tag !== 10) {
|
|
31976
32078
|
break;
|
|
31977
32079
|
}
|
|
31978
32080
|
|
|
31979
|
-
message.
|
|
32081
|
+
message.item_id = reader.string();
|
|
32082
|
+
continue;
|
|
32083
|
+
case 2:
|
|
32084
|
+
if (tag !== 16) {
|
|
32085
|
+
break;
|
|
32086
|
+
}
|
|
32087
|
+
|
|
32088
|
+
message.item_type = reader.int32();
|
|
31980
32089
|
continue;
|
|
31981
32090
|
}
|
|
31982
32091
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -31987,24 +32096,31 @@ export const WithdrawTokenRequest = {
|
|
|
31987
32096
|
return message;
|
|
31988
32097
|
},
|
|
31989
32098
|
|
|
31990
|
-
fromJSON(object: any):
|
|
31991
|
-
return {
|
|
32099
|
+
fromJSON(object: any): UnlockItemRequest {
|
|
32100
|
+
return {
|
|
32101
|
+
item_id: isSet(object.item_id) ? globalThis.String(object.item_id) : "",
|
|
32102
|
+
item_type: isSet(object.item_type) ? globalThis.Number(object.item_type) : 0,
|
|
32103
|
+
};
|
|
31992
32104
|
},
|
|
31993
32105
|
|
|
31994
|
-
toJSON(message:
|
|
32106
|
+
toJSON(message: UnlockItemRequest): unknown {
|
|
31995
32107
|
const obj: any = {};
|
|
31996
|
-
if (message.
|
|
31997
|
-
obj.
|
|
32108
|
+
if (message.item_id !== "") {
|
|
32109
|
+
obj.item_id = message.item_id;
|
|
32110
|
+
}
|
|
32111
|
+
if (message.item_type !== 0) {
|
|
32112
|
+
obj.item_type = Math.round(message.item_type);
|
|
31998
32113
|
}
|
|
31999
32114
|
return obj;
|
|
32000
32115
|
},
|
|
32001
32116
|
|
|
32002
|
-
create<I extends Exact<DeepPartial<
|
|
32003
|
-
return
|
|
32117
|
+
create<I extends Exact<DeepPartial<UnlockItemRequest>, I>>(base?: I): UnlockItemRequest {
|
|
32118
|
+
return UnlockItemRequest.fromPartial(base ?? ({} as any));
|
|
32004
32119
|
},
|
|
32005
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
32006
|
-
const message =
|
|
32007
|
-
message.
|
|
32120
|
+
fromPartial<I extends Exact<DeepPartial<UnlockItemRequest>, I>>(object: I): UnlockItemRequest {
|
|
32121
|
+
const message = createBaseUnlockItemRequest();
|
|
32122
|
+
message.item_id = object.item_id ?? "";
|
|
32123
|
+
message.item_type = object.item_type ?? 0;
|
|
32008
32124
|
return message;
|
|
32009
32125
|
},
|
|
32010
32126
|
};
|
|
@@ -34524,7 +34640,7 @@ export const WalletLedgerList = {
|
|
|
34524
34640
|
};
|
|
34525
34641
|
|
|
34526
34642
|
function createBaseWalletLedgerListReq(): WalletLedgerListReq {
|
|
34527
|
-
return { limit: undefined,
|
|
34643
|
+
return { limit: undefined, filter: 0, transaction_id: "", page: undefined };
|
|
34528
34644
|
}
|
|
34529
34645
|
|
|
34530
34646
|
export const WalletLedgerListReq = {
|
|
@@ -34532,8 +34648,8 @@ export const WalletLedgerListReq = {
|
|
|
34532
34648
|
if (message.limit !== undefined) {
|
|
34533
34649
|
Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
|
|
34534
34650
|
}
|
|
34535
|
-
if (message.
|
|
34536
|
-
writer.uint32(
|
|
34651
|
+
if (message.filter !== 0) {
|
|
34652
|
+
writer.uint32(16).int32(message.filter);
|
|
34537
34653
|
}
|
|
34538
34654
|
if (message.transaction_id !== "") {
|
|
34539
34655
|
writer.uint32(26).string(message.transaction_id);
|
|
@@ -34559,11 +34675,11 @@ export const WalletLedgerListReq = {
|
|
|
34559
34675
|
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
34560
34676
|
continue;
|
|
34561
34677
|
case 2:
|
|
34562
|
-
if (tag !==
|
|
34678
|
+
if (tag !== 16) {
|
|
34563
34679
|
break;
|
|
34564
34680
|
}
|
|
34565
34681
|
|
|
34566
|
-
message.
|
|
34682
|
+
message.filter = reader.int32();
|
|
34567
34683
|
continue;
|
|
34568
34684
|
case 3:
|
|
34569
34685
|
if (tag !== 26) {
|
|
@@ -34591,7 +34707,7 @@ export const WalletLedgerListReq = {
|
|
|
34591
34707
|
fromJSON(object: any): WalletLedgerListReq {
|
|
34592
34708
|
return {
|
|
34593
34709
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
34594
|
-
|
|
34710
|
+
filter: isSet(object.filter) ? globalThis.Number(object.filter) : 0,
|
|
34595
34711
|
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
34596
34712
|
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
34597
34713
|
};
|
|
@@ -34602,8 +34718,8 @@ export const WalletLedgerListReq = {
|
|
|
34602
34718
|
if (message.limit !== undefined) {
|
|
34603
34719
|
obj.limit = message.limit;
|
|
34604
34720
|
}
|
|
34605
|
-
if (message.
|
|
34606
|
-
obj.
|
|
34721
|
+
if (message.filter !== 0) {
|
|
34722
|
+
obj.filter = Math.round(message.filter);
|
|
34607
34723
|
}
|
|
34608
34724
|
if (message.transaction_id !== "") {
|
|
34609
34725
|
obj.transaction_id = message.transaction_id;
|
|
@@ -34620,7 +34736,7 @@ export const WalletLedgerListReq = {
|
|
|
34620
34736
|
fromPartial<I extends Exact<DeepPartial<WalletLedgerListReq>, I>>(object: I): WalletLedgerListReq {
|
|
34621
34737
|
const message = createBaseWalletLedgerListReq();
|
|
34622
34738
|
message.limit = object.limit ?? undefined;
|
|
34623
|
-
message.
|
|
34739
|
+
message.filter = object.filter ?? 0;
|
|
34624
34740
|
message.transaction_id = object.transaction_id ?? "";
|
|
34625
34741
|
message.page = object.page ?? undefined;
|
|
34626
34742
|
return message;
|
|
@@ -36650,12 +36766,12 @@ export const MezonOauthClient = {
|
|
|
36650
36766
|
};
|
|
36651
36767
|
|
|
36652
36768
|
function createBaseMezonOauthClientList(): MezonOauthClientList {
|
|
36653
|
-
return {
|
|
36769
|
+
return { list_mezon_oauth_client: [] };
|
|
36654
36770
|
}
|
|
36655
36771
|
|
|
36656
36772
|
export const MezonOauthClientList = {
|
|
36657
36773
|
encode(message: MezonOauthClientList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
36658
|
-
for (const v of message.
|
|
36774
|
+
for (const v of message.list_mezon_oauth_client) {
|
|
36659
36775
|
MezonOauthClient.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
36660
36776
|
}
|
|
36661
36777
|
return writer;
|
|
@@ -36673,7 +36789,7 @@ export const MezonOauthClientList = {
|
|
|
36673
36789
|
break;
|
|
36674
36790
|
}
|
|
36675
36791
|
|
|
36676
|
-
message.
|
|
36792
|
+
message.list_mezon_oauth_client.push(MezonOauthClient.decode(reader, reader.uint32()));
|
|
36677
36793
|
continue;
|
|
36678
36794
|
}
|
|
36679
36795
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -36686,16 +36802,16 @@ export const MezonOauthClientList = {
|
|
|
36686
36802
|
|
|
36687
36803
|
fromJSON(object: any): MezonOauthClientList {
|
|
36688
36804
|
return {
|
|
36689
|
-
|
|
36690
|
-
? object.
|
|
36805
|
+
list_mezon_oauth_client: globalThis.Array.isArray(object?.list_mezon_oauth_client)
|
|
36806
|
+
? object.list_mezon_oauth_client.map((e: any) => MezonOauthClient.fromJSON(e))
|
|
36691
36807
|
: [],
|
|
36692
36808
|
};
|
|
36693
36809
|
},
|
|
36694
36810
|
|
|
36695
36811
|
toJSON(message: MezonOauthClientList): unknown {
|
|
36696
36812
|
const obj: any = {};
|
|
36697
|
-
if (message.
|
|
36698
|
-
obj.
|
|
36813
|
+
if (message.list_mezon_oauth_client?.length) {
|
|
36814
|
+
obj.list_mezon_oauth_client = message.list_mezon_oauth_client.map((e) => MezonOauthClient.toJSON(e));
|
|
36699
36815
|
}
|
|
36700
36816
|
return obj;
|
|
36701
36817
|
},
|
|
@@ -36705,7 +36821,7 @@ export const MezonOauthClientList = {
|
|
|
36705
36821
|
},
|
|
36706
36822
|
fromPartial<I extends Exact<DeepPartial<MezonOauthClientList>, I>>(object: I): MezonOauthClientList {
|
|
36707
36823
|
const message = createBaseMezonOauthClientList();
|
|
36708
|
-
message.
|
|
36824
|
+
message.list_mezon_oauth_client = object.list_mezon_oauth_client?.map((e) => MezonOauthClient.fromPartial(e)) || [];
|
|
36709
36825
|
return message;
|
|
36710
36826
|
},
|
|
36711
36827
|
};
|
|
@@ -37529,6 +37645,347 @@ export const AccountMezon_VarsEntry = {
|
|
|
37529
37645
|
},
|
|
37530
37646
|
};
|
|
37531
37647
|
|
|
37648
|
+
function createBaseQuickMenuAccessRequest(): QuickMenuAccessRequest {
|
|
37649
|
+
return { id: "", menu_name: "", background: "", action_msg: "" };
|
|
37650
|
+
}
|
|
37651
|
+
|
|
37652
|
+
export const QuickMenuAccessRequest = {
|
|
37653
|
+
encode(message: QuickMenuAccessRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37654
|
+
if (message.id !== "") {
|
|
37655
|
+
writer.uint32(10).string(message.id);
|
|
37656
|
+
}
|
|
37657
|
+
if (message.menu_name !== "") {
|
|
37658
|
+
writer.uint32(18).string(message.menu_name);
|
|
37659
|
+
}
|
|
37660
|
+
if (message.background !== "") {
|
|
37661
|
+
writer.uint32(26).string(message.background);
|
|
37662
|
+
}
|
|
37663
|
+
if (message.action_msg !== "") {
|
|
37664
|
+
writer.uint32(34).string(message.action_msg);
|
|
37665
|
+
}
|
|
37666
|
+
return writer;
|
|
37667
|
+
},
|
|
37668
|
+
|
|
37669
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuickMenuAccessRequest {
|
|
37670
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37671
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37672
|
+
const message = createBaseQuickMenuAccessRequest();
|
|
37673
|
+
while (reader.pos < end) {
|
|
37674
|
+
const tag = reader.uint32();
|
|
37675
|
+
switch (tag >>> 3) {
|
|
37676
|
+
case 1:
|
|
37677
|
+
if (tag !== 10) {
|
|
37678
|
+
break;
|
|
37679
|
+
}
|
|
37680
|
+
|
|
37681
|
+
message.id = reader.string();
|
|
37682
|
+
continue;
|
|
37683
|
+
case 2:
|
|
37684
|
+
if (tag !== 18) {
|
|
37685
|
+
break;
|
|
37686
|
+
}
|
|
37687
|
+
|
|
37688
|
+
message.menu_name = reader.string();
|
|
37689
|
+
continue;
|
|
37690
|
+
case 3:
|
|
37691
|
+
if (tag !== 26) {
|
|
37692
|
+
break;
|
|
37693
|
+
}
|
|
37694
|
+
|
|
37695
|
+
message.background = reader.string();
|
|
37696
|
+
continue;
|
|
37697
|
+
case 4:
|
|
37698
|
+
if (tag !== 34) {
|
|
37699
|
+
break;
|
|
37700
|
+
}
|
|
37701
|
+
|
|
37702
|
+
message.action_msg = reader.string();
|
|
37703
|
+
continue;
|
|
37704
|
+
}
|
|
37705
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37706
|
+
break;
|
|
37707
|
+
}
|
|
37708
|
+
reader.skipType(tag & 7);
|
|
37709
|
+
}
|
|
37710
|
+
return message;
|
|
37711
|
+
},
|
|
37712
|
+
|
|
37713
|
+
fromJSON(object: any): QuickMenuAccessRequest {
|
|
37714
|
+
return {
|
|
37715
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
37716
|
+
menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
|
|
37717
|
+
background: isSet(object.background) ? globalThis.String(object.background) : "",
|
|
37718
|
+
action_msg: isSet(object.action_msg) ? globalThis.String(object.action_msg) : "",
|
|
37719
|
+
};
|
|
37720
|
+
},
|
|
37721
|
+
|
|
37722
|
+
toJSON(message: QuickMenuAccessRequest): unknown {
|
|
37723
|
+
const obj: any = {};
|
|
37724
|
+
if (message.id !== "") {
|
|
37725
|
+
obj.id = message.id;
|
|
37726
|
+
}
|
|
37727
|
+
if (message.menu_name !== "") {
|
|
37728
|
+
obj.menu_name = message.menu_name;
|
|
37729
|
+
}
|
|
37730
|
+
if (message.background !== "") {
|
|
37731
|
+
obj.background = message.background;
|
|
37732
|
+
}
|
|
37733
|
+
if (message.action_msg !== "") {
|
|
37734
|
+
obj.action_msg = message.action_msg;
|
|
37735
|
+
}
|
|
37736
|
+
return obj;
|
|
37737
|
+
},
|
|
37738
|
+
|
|
37739
|
+
create<I extends Exact<DeepPartial<QuickMenuAccessRequest>, I>>(base?: I): QuickMenuAccessRequest {
|
|
37740
|
+
return QuickMenuAccessRequest.fromPartial(base ?? ({} as any));
|
|
37741
|
+
},
|
|
37742
|
+
fromPartial<I extends Exact<DeepPartial<QuickMenuAccessRequest>, I>>(object: I): QuickMenuAccessRequest {
|
|
37743
|
+
const message = createBaseQuickMenuAccessRequest();
|
|
37744
|
+
message.id = object.id ?? "";
|
|
37745
|
+
message.menu_name = object.menu_name ?? "";
|
|
37746
|
+
message.background = object.background ?? "";
|
|
37747
|
+
message.action_msg = object.action_msg ?? "";
|
|
37748
|
+
return message;
|
|
37749
|
+
},
|
|
37750
|
+
};
|
|
37751
|
+
|
|
37752
|
+
function createBaseQuickMenuAccess(): QuickMenuAccess {
|
|
37753
|
+
return { id: "", bot_id: "", menu_name: "", background: "", action_msg: "" };
|
|
37754
|
+
}
|
|
37755
|
+
|
|
37756
|
+
export const QuickMenuAccess = {
|
|
37757
|
+
encode(message: QuickMenuAccess, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37758
|
+
if (message.id !== "") {
|
|
37759
|
+
writer.uint32(10).string(message.id);
|
|
37760
|
+
}
|
|
37761
|
+
if (message.bot_id !== "") {
|
|
37762
|
+
writer.uint32(18).string(message.bot_id);
|
|
37763
|
+
}
|
|
37764
|
+
if (message.menu_name !== "") {
|
|
37765
|
+
writer.uint32(26).string(message.menu_name);
|
|
37766
|
+
}
|
|
37767
|
+
if (message.background !== "") {
|
|
37768
|
+
writer.uint32(34).string(message.background);
|
|
37769
|
+
}
|
|
37770
|
+
if (message.action_msg !== "") {
|
|
37771
|
+
writer.uint32(42).string(message.action_msg);
|
|
37772
|
+
}
|
|
37773
|
+
return writer;
|
|
37774
|
+
},
|
|
37775
|
+
|
|
37776
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuickMenuAccess {
|
|
37777
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37778
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37779
|
+
const message = createBaseQuickMenuAccess();
|
|
37780
|
+
while (reader.pos < end) {
|
|
37781
|
+
const tag = reader.uint32();
|
|
37782
|
+
switch (tag >>> 3) {
|
|
37783
|
+
case 1:
|
|
37784
|
+
if (tag !== 10) {
|
|
37785
|
+
break;
|
|
37786
|
+
}
|
|
37787
|
+
|
|
37788
|
+
message.id = reader.string();
|
|
37789
|
+
continue;
|
|
37790
|
+
case 2:
|
|
37791
|
+
if (tag !== 18) {
|
|
37792
|
+
break;
|
|
37793
|
+
}
|
|
37794
|
+
|
|
37795
|
+
message.bot_id = reader.string();
|
|
37796
|
+
continue;
|
|
37797
|
+
case 3:
|
|
37798
|
+
if (tag !== 26) {
|
|
37799
|
+
break;
|
|
37800
|
+
}
|
|
37801
|
+
|
|
37802
|
+
message.menu_name = reader.string();
|
|
37803
|
+
continue;
|
|
37804
|
+
case 4:
|
|
37805
|
+
if (tag !== 34) {
|
|
37806
|
+
break;
|
|
37807
|
+
}
|
|
37808
|
+
|
|
37809
|
+
message.background = reader.string();
|
|
37810
|
+
continue;
|
|
37811
|
+
case 5:
|
|
37812
|
+
if (tag !== 42) {
|
|
37813
|
+
break;
|
|
37814
|
+
}
|
|
37815
|
+
|
|
37816
|
+
message.action_msg = reader.string();
|
|
37817
|
+
continue;
|
|
37818
|
+
}
|
|
37819
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37820
|
+
break;
|
|
37821
|
+
}
|
|
37822
|
+
reader.skipType(tag & 7);
|
|
37823
|
+
}
|
|
37824
|
+
return message;
|
|
37825
|
+
},
|
|
37826
|
+
|
|
37827
|
+
fromJSON(object: any): QuickMenuAccess {
|
|
37828
|
+
return {
|
|
37829
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
37830
|
+
bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
|
|
37831
|
+
menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
|
|
37832
|
+
background: isSet(object.background) ? globalThis.String(object.background) : "",
|
|
37833
|
+
action_msg: isSet(object.action_msg) ? globalThis.String(object.action_msg) : "",
|
|
37834
|
+
};
|
|
37835
|
+
},
|
|
37836
|
+
|
|
37837
|
+
toJSON(message: QuickMenuAccess): unknown {
|
|
37838
|
+
const obj: any = {};
|
|
37839
|
+
if (message.id !== "") {
|
|
37840
|
+
obj.id = message.id;
|
|
37841
|
+
}
|
|
37842
|
+
if (message.bot_id !== "") {
|
|
37843
|
+
obj.bot_id = message.bot_id;
|
|
37844
|
+
}
|
|
37845
|
+
if (message.menu_name !== "") {
|
|
37846
|
+
obj.menu_name = message.menu_name;
|
|
37847
|
+
}
|
|
37848
|
+
if (message.background !== "") {
|
|
37849
|
+
obj.background = message.background;
|
|
37850
|
+
}
|
|
37851
|
+
if (message.action_msg !== "") {
|
|
37852
|
+
obj.action_msg = message.action_msg;
|
|
37853
|
+
}
|
|
37854
|
+
return obj;
|
|
37855
|
+
},
|
|
37856
|
+
|
|
37857
|
+
create<I extends Exact<DeepPartial<QuickMenuAccess>, I>>(base?: I): QuickMenuAccess {
|
|
37858
|
+
return QuickMenuAccess.fromPartial(base ?? ({} as any));
|
|
37859
|
+
},
|
|
37860
|
+
fromPartial<I extends Exact<DeepPartial<QuickMenuAccess>, I>>(object: I): QuickMenuAccess {
|
|
37861
|
+
const message = createBaseQuickMenuAccess();
|
|
37862
|
+
message.id = object.id ?? "";
|
|
37863
|
+
message.bot_id = object.bot_id ?? "";
|
|
37864
|
+
message.menu_name = object.menu_name ?? "";
|
|
37865
|
+
message.background = object.background ?? "";
|
|
37866
|
+
message.action_msg = object.action_msg ?? "";
|
|
37867
|
+
return message;
|
|
37868
|
+
},
|
|
37869
|
+
};
|
|
37870
|
+
|
|
37871
|
+
function createBaseListQuickMenuAccessRequest(): ListQuickMenuAccessRequest {
|
|
37872
|
+
return { bot_id: "" };
|
|
37873
|
+
}
|
|
37874
|
+
|
|
37875
|
+
export const ListQuickMenuAccessRequest = {
|
|
37876
|
+
encode(message: ListQuickMenuAccessRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37877
|
+
if (message.bot_id !== "") {
|
|
37878
|
+
writer.uint32(10).string(message.bot_id);
|
|
37879
|
+
}
|
|
37880
|
+
return writer;
|
|
37881
|
+
},
|
|
37882
|
+
|
|
37883
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListQuickMenuAccessRequest {
|
|
37884
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37885
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37886
|
+
const message = createBaseListQuickMenuAccessRequest();
|
|
37887
|
+
while (reader.pos < end) {
|
|
37888
|
+
const tag = reader.uint32();
|
|
37889
|
+
switch (tag >>> 3) {
|
|
37890
|
+
case 1:
|
|
37891
|
+
if (tag !== 10) {
|
|
37892
|
+
break;
|
|
37893
|
+
}
|
|
37894
|
+
|
|
37895
|
+
message.bot_id = reader.string();
|
|
37896
|
+
continue;
|
|
37897
|
+
}
|
|
37898
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37899
|
+
break;
|
|
37900
|
+
}
|
|
37901
|
+
reader.skipType(tag & 7);
|
|
37902
|
+
}
|
|
37903
|
+
return message;
|
|
37904
|
+
},
|
|
37905
|
+
|
|
37906
|
+
fromJSON(object: any): ListQuickMenuAccessRequest {
|
|
37907
|
+
return { bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "" };
|
|
37908
|
+
},
|
|
37909
|
+
|
|
37910
|
+
toJSON(message: ListQuickMenuAccessRequest): unknown {
|
|
37911
|
+
const obj: any = {};
|
|
37912
|
+
if (message.bot_id !== "") {
|
|
37913
|
+
obj.bot_id = message.bot_id;
|
|
37914
|
+
}
|
|
37915
|
+
return obj;
|
|
37916
|
+
},
|
|
37917
|
+
|
|
37918
|
+
create<I extends Exact<DeepPartial<ListQuickMenuAccessRequest>, I>>(base?: I): ListQuickMenuAccessRequest {
|
|
37919
|
+
return ListQuickMenuAccessRequest.fromPartial(base ?? ({} as any));
|
|
37920
|
+
},
|
|
37921
|
+
fromPartial<I extends Exact<DeepPartial<ListQuickMenuAccessRequest>, I>>(object: I): ListQuickMenuAccessRequest {
|
|
37922
|
+
const message = createBaseListQuickMenuAccessRequest();
|
|
37923
|
+
message.bot_id = object.bot_id ?? "";
|
|
37924
|
+
return message;
|
|
37925
|
+
},
|
|
37926
|
+
};
|
|
37927
|
+
|
|
37928
|
+
function createBaseQuickMenuAccessList(): QuickMenuAccessList {
|
|
37929
|
+
return { list_menus: [] };
|
|
37930
|
+
}
|
|
37931
|
+
|
|
37932
|
+
export const QuickMenuAccessList = {
|
|
37933
|
+
encode(message: QuickMenuAccessList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37934
|
+
for (const v of message.list_menus) {
|
|
37935
|
+
QuickMenuAccess.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
37936
|
+
}
|
|
37937
|
+
return writer;
|
|
37938
|
+
},
|
|
37939
|
+
|
|
37940
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuickMenuAccessList {
|
|
37941
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37942
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37943
|
+
const message = createBaseQuickMenuAccessList();
|
|
37944
|
+
while (reader.pos < end) {
|
|
37945
|
+
const tag = reader.uint32();
|
|
37946
|
+
switch (tag >>> 3) {
|
|
37947
|
+
case 1:
|
|
37948
|
+
if (tag !== 10) {
|
|
37949
|
+
break;
|
|
37950
|
+
}
|
|
37951
|
+
|
|
37952
|
+
message.list_menus.push(QuickMenuAccess.decode(reader, reader.uint32()));
|
|
37953
|
+
continue;
|
|
37954
|
+
}
|
|
37955
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37956
|
+
break;
|
|
37957
|
+
}
|
|
37958
|
+
reader.skipType(tag & 7);
|
|
37959
|
+
}
|
|
37960
|
+
return message;
|
|
37961
|
+
},
|
|
37962
|
+
|
|
37963
|
+
fromJSON(object: any): QuickMenuAccessList {
|
|
37964
|
+
return {
|
|
37965
|
+
list_menus: globalThis.Array.isArray(object?.list_menus)
|
|
37966
|
+
? object.list_menus.map((e: any) => QuickMenuAccess.fromJSON(e))
|
|
37967
|
+
: [],
|
|
37968
|
+
};
|
|
37969
|
+
},
|
|
37970
|
+
|
|
37971
|
+
toJSON(message: QuickMenuAccessList): unknown {
|
|
37972
|
+
const obj: any = {};
|
|
37973
|
+
if (message.list_menus?.length) {
|
|
37974
|
+
obj.list_menus = message.list_menus.map((e) => QuickMenuAccess.toJSON(e));
|
|
37975
|
+
}
|
|
37976
|
+
return obj;
|
|
37977
|
+
},
|
|
37978
|
+
|
|
37979
|
+
create<I extends Exact<DeepPartial<QuickMenuAccessList>, I>>(base?: I): QuickMenuAccessList {
|
|
37980
|
+
return QuickMenuAccessList.fromPartial(base ?? ({} as any));
|
|
37981
|
+
},
|
|
37982
|
+
fromPartial<I extends Exact<DeepPartial<QuickMenuAccessList>, I>>(object: I): QuickMenuAccessList {
|
|
37983
|
+
const message = createBaseQuickMenuAccessList();
|
|
37984
|
+
message.list_menus = object.list_menus?.map((e) => QuickMenuAccess.fromPartial(e)) || [];
|
|
37985
|
+
return message;
|
|
37986
|
+
},
|
|
37987
|
+
};
|
|
37988
|
+
|
|
37532
37989
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
37533
37990
|
if ((globalThis as any).Buffer) {
|
|
37534
37991
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|