mezon-js-protobuf 1.8.8 → 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 CHANGED
@@ -2493,6 +2493,7 @@ export interface ClanEmojiCreateRequest {
2493
2493
  shortname: string;
2494
2494
  category: string;
2495
2495
  id: string;
2496
+ is_for_sale: boolean;
2496
2497
  }
2497
2498
 
2498
2499
  export interface ClanEmojiGetByClanIdRequest {
@@ -2591,11 +2592,13 @@ export interface ClanStickerAddRequest {
2591
2592
  source: string;
2592
2593
  shortname: string;
2593
2594
  category: string;
2594
- clan_id: number;
2595
+ clan_id: string;
2595
2596
  /** UNIQUE include type number */
2596
2597
  id: string;
2597
2598
  /** media type for image or audio */
2598
2599
  media_type: number;
2600
+ /** is for sale */
2601
+ is_for_sale: boolean;
2599
2602
  }
2600
2603
 
2601
2604
  export interface ClanStickerListByClanIdRequest {
@@ -3310,9 +3313,11 @@ export interface TokenSentEvent {
3310
3313
  transaction_id: string;
3311
3314
  }
3312
3315
 
3313
- export interface WithdrawTokenRequest {
3314
- /** amount of token */
3315
- amount: number;
3316
+ export interface UnlockItemRequest {
3317
+ /** item id */
3318
+ item_id: string;
3319
+ /** item type */
3320
+ item_type: number;
3316
3321
  }
3317
3322
 
3318
3323
  export interface ListOnboardingRequest {
@@ -3720,7 +3725,7 @@ export interface MezonOauthClient {
3720
3725
  }
3721
3726
 
3722
3727
  export interface MezonOauthClientList {
3723
- listMezonOauthClient: MezonOauthClient[];
3728
+ list_mezon_oauth_client: MezonOauthClient[];
3724
3729
  }
3725
3730
 
3726
3731
  export interface GetMezonOauthClientRequest {
@@ -3782,6 +3787,29 @@ export interface AccountMezon_VarsEntry {
3782
3787
  value: string;
3783
3788
  }
3784
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
+
3785
3813
  function createBaseAccount(): Account {
3786
3814
  return {
3787
3815
  user: undefined,
@@ -23327,7 +23355,7 @@ export const AllUsersAddChannelResponse = {
23327
23355
  };
23328
23356
 
23329
23357
  function createBaseClanEmojiCreateRequest(): ClanEmojiCreateRequest {
23330
- return { clan_id: "", source: "", shortname: "", category: "", id: "" };
23358
+ return { clan_id: "", source: "", shortname: "", category: "", id: "", is_for_sale: false };
23331
23359
  }
23332
23360
 
23333
23361
  export const ClanEmojiCreateRequest = {
@@ -23347,6 +23375,9 @@ export const ClanEmojiCreateRequest = {
23347
23375
  if (message.id !== "") {
23348
23376
  writer.uint32(42).string(message.id);
23349
23377
  }
23378
+ if (message.is_for_sale !== false) {
23379
+ writer.uint32(48).bool(message.is_for_sale);
23380
+ }
23350
23381
  return writer;
23351
23382
  },
23352
23383
 
@@ -23392,6 +23423,13 @@ export const ClanEmojiCreateRequest = {
23392
23423
 
23393
23424
  message.id = reader.string();
23394
23425
  continue;
23426
+ case 6:
23427
+ if (tag !== 48) {
23428
+ break;
23429
+ }
23430
+
23431
+ message.is_for_sale = reader.bool();
23432
+ continue;
23395
23433
  }
23396
23434
  if ((tag & 7) === 4 || tag === 0) {
23397
23435
  break;
@@ -23408,6 +23446,7 @@ export const ClanEmojiCreateRequest = {
23408
23446
  shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
23409
23447
  category: isSet(object.category) ? globalThis.String(object.category) : "",
23410
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,
23411
23450
  };
23412
23451
  },
23413
23452
 
@@ -23428,6 +23467,9 @@ export const ClanEmojiCreateRequest = {
23428
23467
  if (message.id !== "") {
23429
23468
  obj.id = message.id;
23430
23469
  }
23470
+ if (message.is_for_sale !== false) {
23471
+ obj.is_for_sale = message.is_for_sale;
23472
+ }
23431
23473
  return obj;
23432
23474
  },
23433
23475
 
@@ -23441,6 +23483,7 @@ export const ClanEmojiCreateRequest = {
23441
23483
  message.shortname = object.shortname ?? "";
23442
23484
  message.category = object.category ?? "";
23443
23485
  message.id = object.id ?? "";
23486
+ message.is_for_sale = object.is_for_sale ?? false;
23444
23487
  return message;
23445
23488
  },
23446
23489
  };
@@ -24714,7 +24757,7 @@ export const CheckDuplicateClanNameResponse = {
24714
24757
  };
24715
24758
 
24716
24759
  function createBaseClanStickerAddRequest(): ClanStickerAddRequest {
24717
- return { source: "", shortname: "", category: "", clan_id: 0, id: "", media_type: 0 };
24760
+ return { source: "", shortname: "", category: "", clan_id: "", id: "", media_type: 0, is_for_sale: false };
24718
24761
  }
24719
24762
 
24720
24763
  export const ClanStickerAddRequest = {
@@ -24728,8 +24771,8 @@ export const ClanStickerAddRequest = {
24728
24771
  if (message.category !== "") {
24729
24772
  writer.uint32(26).string(message.category);
24730
24773
  }
24731
- if (message.clan_id !== 0) {
24732
- writer.uint32(32).int64(message.clan_id);
24774
+ if (message.clan_id !== "") {
24775
+ writer.uint32(34).string(message.clan_id);
24733
24776
  }
24734
24777
  if (message.id !== "") {
24735
24778
  writer.uint32(42).string(message.id);
@@ -24737,6 +24780,9 @@ export const ClanStickerAddRequest = {
24737
24780
  if (message.media_type !== 0) {
24738
24781
  writer.uint32(48).int32(message.media_type);
24739
24782
  }
24783
+ if (message.is_for_sale !== false) {
24784
+ writer.uint32(56).bool(message.is_for_sale);
24785
+ }
24740
24786
  return writer;
24741
24787
  },
24742
24788
 
@@ -24769,11 +24815,11 @@ export const ClanStickerAddRequest = {
24769
24815
  message.category = reader.string();
24770
24816
  continue;
24771
24817
  case 4:
24772
- if (tag !== 32) {
24818
+ if (tag !== 34) {
24773
24819
  break;
24774
24820
  }
24775
24821
 
24776
- message.clan_id = longToNumber(reader.int64() as Long);
24822
+ message.clan_id = reader.string();
24777
24823
  continue;
24778
24824
  case 5:
24779
24825
  if (tag !== 42) {
@@ -24789,6 +24835,13 @@ export const ClanStickerAddRequest = {
24789
24835
 
24790
24836
  message.media_type = reader.int32();
24791
24837
  continue;
24838
+ case 7:
24839
+ if (tag !== 56) {
24840
+ break;
24841
+ }
24842
+
24843
+ message.is_for_sale = reader.bool();
24844
+ continue;
24792
24845
  }
24793
24846
  if ((tag & 7) === 4 || tag === 0) {
24794
24847
  break;
@@ -24803,9 +24856,10 @@ export const ClanStickerAddRequest = {
24803
24856
  source: isSet(object.source) ? globalThis.String(object.source) : "",
24804
24857
  shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
24805
24858
  category: isSet(object.category) ? globalThis.String(object.category) : "",
24806
- clan_id: isSet(object.clan_id) ? globalThis.Number(object.clan_id) : 0,
24859
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
24807
24860
  id: isSet(object.id) ? globalThis.String(object.id) : "",
24808
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,
24809
24863
  };
24810
24864
  },
24811
24865
 
@@ -24820,8 +24874,8 @@ export const ClanStickerAddRequest = {
24820
24874
  if (message.category !== "") {
24821
24875
  obj.category = message.category;
24822
24876
  }
24823
- if (message.clan_id !== 0) {
24824
- obj.clan_id = Math.round(message.clan_id);
24877
+ if (message.clan_id !== "") {
24878
+ obj.clan_id = message.clan_id;
24825
24879
  }
24826
24880
  if (message.id !== "") {
24827
24881
  obj.id = message.id;
@@ -24829,6 +24883,9 @@ export const ClanStickerAddRequest = {
24829
24883
  if (message.media_type !== 0) {
24830
24884
  obj.media_type = Math.round(message.media_type);
24831
24885
  }
24886
+ if (message.is_for_sale !== false) {
24887
+ obj.is_for_sale = message.is_for_sale;
24888
+ }
24832
24889
  return obj;
24833
24890
  },
24834
24891
 
@@ -24840,9 +24897,10 @@ export const ClanStickerAddRequest = {
24840
24897
  message.source = object.source ?? "";
24841
24898
  message.shortname = object.shortname ?? "";
24842
24899
  message.category = object.category ?? "";
24843
- message.clan_id = object.clan_id ?? 0;
24900
+ message.clan_id = object.clan_id ?? "";
24844
24901
  message.id = object.id ?? "";
24845
24902
  message.media_type = object.media_type ?? 0;
24903
+ message.is_for_sale = object.is_for_sale ?? false;
24846
24904
  return message;
24847
24905
  },
24848
24906
  };
@@ -31993,31 +32051,41 @@ export const TokenSentEvent = {
31993
32051
  },
31994
32052
  };
31995
32053
 
31996
- function createBaseWithdrawTokenRequest(): WithdrawTokenRequest {
31997
- return { amount: 0 };
32054
+ function createBaseUnlockItemRequest(): UnlockItemRequest {
32055
+ return { item_id: "", item_type: 0 };
31998
32056
  }
31999
32057
 
32000
- export const WithdrawTokenRequest = {
32001
- encode(message: WithdrawTokenRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
32002
- if (message.amount !== 0) {
32003
- writer.uint32(8).int32(message.amount);
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);
32004
32065
  }
32005
32066
  return writer;
32006
32067
  },
32007
32068
 
32008
- decode(input: _m0.Reader | Uint8Array, length?: number): WithdrawTokenRequest {
32069
+ decode(input: _m0.Reader | Uint8Array, length?: number): UnlockItemRequest {
32009
32070
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32010
32071
  let end = length === undefined ? reader.len : reader.pos + length;
32011
- const message = createBaseWithdrawTokenRequest();
32072
+ const message = createBaseUnlockItemRequest();
32012
32073
  while (reader.pos < end) {
32013
32074
  const tag = reader.uint32();
32014
32075
  switch (tag >>> 3) {
32015
32076
  case 1:
32016
- if (tag !== 8) {
32077
+ if (tag !== 10) {
32017
32078
  break;
32018
32079
  }
32019
32080
 
32020
- message.amount = reader.int32();
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();
32021
32089
  continue;
32022
32090
  }
32023
32091
  if ((tag & 7) === 4 || tag === 0) {
@@ -32028,24 +32096,31 @@ export const WithdrawTokenRequest = {
32028
32096
  return message;
32029
32097
  },
32030
32098
 
32031
- fromJSON(object: any): WithdrawTokenRequest {
32032
- return { amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0 };
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
+ };
32033
32104
  },
32034
32105
 
32035
- toJSON(message: WithdrawTokenRequest): unknown {
32106
+ toJSON(message: UnlockItemRequest): unknown {
32036
32107
  const obj: any = {};
32037
- if (message.amount !== 0) {
32038
- obj.amount = Math.round(message.amount);
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);
32039
32113
  }
32040
32114
  return obj;
32041
32115
  },
32042
32116
 
32043
- create<I extends Exact<DeepPartial<WithdrawTokenRequest>, I>>(base?: I): WithdrawTokenRequest {
32044
- return WithdrawTokenRequest.fromPartial(base ?? ({} as any));
32117
+ create<I extends Exact<DeepPartial<UnlockItemRequest>, I>>(base?: I): UnlockItemRequest {
32118
+ return UnlockItemRequest.fromPartial(base ?? ({} as any));
32045
32119
  },
32046
- fromPartial<I extends Exact<DeepPartial<WithdrawTokenRequest>, I>>(object: I): WithdrawTokenRequest {
32047
- const message = createBaseWithdrawTokenRequest();
32048
- message.amount = object.amount ?? 0;
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;
32049
32124
  return message;
32050
32125
  },
32051
32126
  };
@@ -36691,12 +36766,12 @@ export const MezonOauthClient = {
36691
36766
  };
36692
36767
 
36693
36768
  function createBaseMezonOauthClientList(): MezonOauthClientList {
36694
- return { listMezonOauthClient: [] };
36769
+ return { list_mezon_oauth_client: [] };
36695
36770
  }
36696
36771
 
36697
36772
  export const MezonOauthClientList = {
36698
36773
  encode(message: MezonOauthClientList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
36699
- for (const v of message.listMezonOauthClient) {
36774
+ for (const v of message.list_mezon_oauth_client) {
36700
36775
  MezonOauthClient.encode(v!, writer.uint32(10).fork()).ldelim();
36701
36776
  }
36702
36777
  return writer;
@@ -36714,7 +36789,7 @@ export const MezonOauthClientList = {
36714
36789
  break;
36715
36790
  }
36716
36791
 
36717
- message.listMezonOauthClient.push(MezonOauthClient.decode(reader, reader.uint32()));
36792
+ message.list_mezon_oauth_client.push(MezonOauthClient.decode(reader, reader.uint32()));
36718
36793
  continue;
36719
36794
  }
36720
36795
  if ((tag & 7) === 4 || tag === 0) {
@@ -36727,16 +36802,16 @@ export const MezonOauthClientList = {
36727
36802
 
36728
36803
  fromJSON(object: any): MezonOauthClientList {
36729
36804
  return {
36730
- listMezonOauthClient: globalThis.Array.isArray(object?.listMezonOauthClient)
36731
- ? object.listMezonOauthClient.map((e: any) => MezonOauthClient.fromJSON(e))
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))
36732
36807
  : [],
36733
36808
  };
36734
36809
  },
36735
36810
 
36736
36811
  toJSON(message: MezonOauthClientList): unknown {
36737
36812
  const obj: any = {};
36738
- if (message.listMezonOauthClient?.length) {
36739
- obj.listMezonOauthClient = message.listMezonOauthClient.map((e) => MezonOauthClient.toJSON(e));
36813
+ if (message.list_mezon_oauth_client?.length) {
36814
+ obj.list_mezon_oauth_client = message.list_mezon_oauth_client.map((e) => MezonOauthClient.toJSON(e));
36740
36815
  }
36741
36816
  return obj;
36742
36817
  },
@@ -36746,7 +36821,7 @@ export const MezonOauthClientList = {
36746
36821
  },
36747
36822
  fromPartial<I extends Exact<DeepPartial<MezonOauthClientList>, I>>(object: I): MezonOauthClientList {
36748
36823
  const message = createBaseMezonOauthClientList();
36749
- message.listMezonOauthClient = object.listMezonOauthClient?.map((e) => MezonOauthClient.fromPartial(e)) || [];
36824
+ message.list_mezon_oauth_client = object.list_mezon_oauth_client?.map((e) => MezonOauthClient.fromPartial(e)) || [];
36750
36825
  return message;
36751
36826
  },
36752
36827
  };
@@ -37570,6 +37645,347 @@ export const AccountMezon_VarsEntry = {
37570
37645
  },
37571
37646
  };
37572
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
+
37573
37989
  function bytesFromBase64(b64: string): Uint8Array {
37574
37990
  if ((globalThis as any).Buffer) {
37575
37991
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
@@ -1953,6 +1953,7 @@ export interface ClanEmojiCreateRequest {
1953
1953
  shortname: string;
1954
1954
  category: string;
1955
1955
  id: string;
1956
+ is_for_sale: boolean;
1956
1957
  }
1957
1958
  export interface ClanEmojiGetByClanIdRequest {
1958
1959
  clan_id: string;
@@ -2038,11 +2039,13 @@ export interface ClanStickerAddRequest {
2038
2039
  source: string;
2039
2040
  shortname: string;
2040
2041
  category: string;
2041
- clan_id: number;
2042
+ clan_id: string;
2042
2043
  /** UNIQUE include type number */
2043
2044
  id: string;
2044
2045
  /** media type for image or audio */
2045
2046
  media_type: number;
2047
+ /** is for sale */
2048
+ is_for_sale: boolean;
2046
2049
  }
2047
2050
  export interface ClanStickerListByClanIdRequest {
2048
2051
  clan_id: string;
@@ -2654,9 +2657,11 @@ export interface TokenSentEvent {
2654
2657
  /** */
2655
2658
  transaction_id: string;
2656
2659
  }
2657
- export interface WithdrawTokenRequest {
2658
- /** amount of token */
2659
- amount: number;
2660
+ export interface UnlockItemRequest {
2661
+ /** item id */
2662
+ item_id: string;
2663
+ /** item type */
2664
+ item_type: number;
2660
2665
  }
2661
2666
  export interface ListOnboardingRequest {
2662
2667
  /** clan id */
@@ -3008,7 +3013,7 @@ export interface MezonOauthClient {
3008
3013
  userinfo_signed_response_alg: string;
3009
3014
  }
3010
3015
  export interface MezonOauthClientList {
3011
- listMezonOauthClient: MezonOauthClient[];
3016
+ list_mezon_oauth_client: MezonOauthClient[];
3012
3017
  }
3013
3018
  export interface GetMezonOauthClientRequest {
3014
3019
  client_id: string;
@@ -3064,6 +3069,25 @@ export interface AccountMezon_VarsEntry {
3064
3069
  key: string;
3065
3070
  value: string;
3066
3071
  }
3072
+ export interface QuickMenuAccessRequest {
3073
+ id: string;
3074
+ menu_name: string;
3075
+ background: string;
3076
+ action_msg: string;
3077
+ }
3078
+ export interface QuickMenuAccess {
3079
+ id: string;
3080
+ bot_id: string;
3081
+ menu_name: string;
3082
+ background: string;
3083
+ action_msg: string;
3084
+ }
3085
+ export interface ListQuickMenuAccessRequest {
3086
+ bot_id: string;
3087
+ }
3088
+ export interface QuickMenuAccessList {
3089
+ list_menus: QuickMenuAccess[];
3090
+ }
3067
3091
  export declare const Account: {
3068
3092
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
3069
3093
  decode(input: _m0.Reader | Uint8Array, length?: number): Account;
@@ -16115,12 +16139,14 @@ export declare const ClanEmojiCreateRequest: {
16115
16139
  shortname?: string | undefined;
16116
16140
  category?: string | undefined;
16117
16141
  id?: string | undefined;
16142
+ is_for_sale?: boolean | undefined;
16118
16143
  } & {
16119
16144
  clan_id?: string | undefined;
16120
16145
  source?: string | undefined;
16121
16146
  shortname?: string | undefined;
16122
16147
  category?: string | undefined;
16123
16148
  id?: string | undefined;
16149
+ is_for_sale?: boolean | undefined;
16124
16150
  } & { [K in Exclude<keyof I, keyof ClanEmojiCreateRequest>]: never; }>(base?: I | undefined): ClanEmojiCreateRequest;
16125
16151
  fromPartial<I_1 extends {
16126
16152
  clan_id?: string | undefined;
@@ -16128,12 +16154,14 @@ export declare const ClanEmojiCreateRequest: {
16128
16154
  shortname?: string | undefined;
16129
16155
  category?: string | undefined;
16130
16156
  id?: string | undefined;
16157
+ is_for_sale?: boolean | undefined;
16131
16158
  } & {
16132
16159
  clan_id?: string | undefined;
16133
16160
  source?: string | undefined;
16134
16161
  shortname?: string | undefined;
16135
16162
  category?: string | undefined;
16136
16163
  id?: string | undefined;
16164
+ is_for_sale?: boolean | undefined;
16137
16165
  } & { [K_1 in Exclude<keyof I_1, keyof ClanEmojiCreateRequest>]: never; }>(object: I_1): ClanEmojiCreateRequest;
16138
16166
  };
16139
16167
  export declare const ClanEmojiGetByClanIdRequest: {
@@ -16607,31 +16635,35 @@ export declare const ClanStickerAddRequest: {
16607
16635
  source?: string | undefined;
16608
16636
  shortname?: string | undefined;
16609
16637
  category?: string | undefined;
16610
- clan_id?: number | undefined;
16638
+ clan_id?: string | undefined;
16611
16639
  id?: string | undefined;
16612
16640
  media_type?: number | undefined;
16641
+ is_for_sale?: boolean | undefined;
16613
16642
  } & {
16614
16643
  source?: string | undefined;
16615
16644
  shortname?: string | undefined;
16616
16645
  category?: string | undefined;
16617
- clan_id?: number | undefined;
16646
+ clan_id?: string | undefined;
16618
16647
  id?: string | undefined;
16619
16648
  media_type?: number | undefined;
16649
+ is_for_sale?: boolean | undefined;
16620
16650
  } & { [K in Exclude<keyof I, keyof ClanStickerAddRequest>]: never; }>(base?: I | undefined): ClanStickerAddRequest;
16621
16651
  fromPartial<I_1 extends {
16622
16652
  source?: string | undefined;
16623
16653
  shortname?: string | undefined;
16624
16654
  category?: string | undefined;
16625
- clan_id?: number | undefined;
16655
+ clan_id?: string | undefined;
16626
16656
  id?: string | undefined;
16627
16657
  media_type?: number | undefined;
16658
+ is_for_sale?: boolean | undefined;
16628
16659
  } & {
16629
16660
  source?: string | undefined;
16630
16661
  shortname?: string | undefined;
16631
16662
  category?: string | undefined;
16632
- clan_id?: number | undefined;
16663
+ clan_id?: string | undefined;
16633
16664
  id?: string | undefined;
16634
16665
  media_type?: number | undefined;
16666
+ is_for_sale?: boolean | undefined;
16635
16667
  } & { [K_1 in Exclude<keyof I_1, keyof ClanStickerAddRequest>]: never; }>(object: I_1): ClanStickerAddRequest;
16636
16668
  };
16637
16669
  export declare const ClanStickerListByClanIdRequest: {
@@ -20542,21 +20574,25 @@ export declare const TokenSentEvent: {
20542
20574
  transaction_id?: string | undefined;
20543
20575
  } & { [K_1 in Exclude<keyof I_1, keyof TokenSentEvent>]: never; }>(object: I_1): TokenSentEvent;
20544
20576
  };
20545
- export declare const WithdrawTokenRequest: {
20546
- encode(message: WithdrawTokenRequest, writer?: _m0.Writer): _m0.Writer;
20547
- decode(input: _m0.Reader | Uint8Array, length?: number): WithdrawTokenRequest;
20548
- fromJSON(object: any): WithdrawTokenRequest;
20549
- toJSON(message: WithdrawTokenRequest): unknown;
20577
+ export declare const UnlockItemRequest: {
20578
+ encode(message: UnlockItemRequest, writer?: _m0.Writer): _m0.Writer;
20579
+ decode(input: _m0.Reader | Uint8Array, length?: number): UnlockItemRequest;
20580
+ fromJSON(object: any): UnlockItemRequest;
20581
+ toJSON(message: UnlockItemRequest): unknown;
20550
20582
  create<I extends {
20551
- amount?: number | undefined;
20583
+ item_id?: string | undefined;
20584
+ item_type?: number | undefined;
20552
20585
  } & {
20553
- amount?: number | undefined;
20554
- } & { [K in Exclude<keyof I, "amount">]: never; }>(base?: I | undefined): WithdrawTokenRequest;
20586
+ item_id?: string | undefined;
20587
+ item_type?: number | undefined;
20588
+ } & { [K in Exclude<keyof I, keyof UnlockItemRequest>]: never; }>(base?: I | undefined): UnlockItemRequest;
20555
20589
  fromPartial<I_1 extends {
20556
- amount?: number | undefined;
20590
+ item_id?: string | undefined;
20591
+ item_type?: number | undefined;
20557
20592
  } & {
20558
- amount?: number | undefined;
20559
- } & { [K_1 in Exclude<keyof I_1, "amount">]: never; }>(object: I_1): WithdrawTokenRequest;
20593
+ item_id?: string | undefined;
20594
+ item_type?: number | undefined;
20595
+ } & { [K_1 in Exclude<keyof I_1, keyof UnlockItemRequest>]: never; }>(object: I_1): UnlockItemRequest;
20560
20596
  };
20561
20597
  export declare const ListOnboardingRequest: {
20562
20598
  encode(message: ListOnboardingRequest, writer?: _m0.Writer): _m0.Writer;
@@ -23472,7 +23508,7 @@ export declare const MezonOauthClientList: {
23472
23508
  fromJSON(object: any): MezonOauthClientList;
23473
23509
  toJSON(message: MezonOauthClientList): unknown;
23474
23510
  create<I extends {
23475
- listMezonOauthClient?: {
23511
+ list_mezon_oauth_client?: {
23476
23512
  access_token_strategy?: string | undefined;
23477
23513
  allowed_cors_origins?: string[] | undefined;
23478
23514
  audience?: string[] | undefined;
@@ -23522,7 +23558,7 @@ export declare const MezonOauthClientList: {
23522
23558
  userinfo_signed_response_alg?: string | undefined;
23523
23559
  }[] | undefined;
23524
23560
  } & {
23525
- listMezonOauthClient?: ({
23561
+ list_mezon_oauth_client?: ({
23526
23562
  access_token_strategy?: string | undefined;
23527
23563
  allowed_cors_origins?: string[] | undefined;
23528
23564
  audience?: string[] | undefined;
@@ -23620,8 +23656,8 @@ export declare const MezonOauthClientList: {
23620
23656
  userinfo_signed_response_alg?: string | undefined;
23621
23657
  } & {
23622
23658
  access_token_strategy?: string | undefined;
23623
- allowed_cors_origins?: (string[] & string[] & { [K in Exclude<keyof I["listMezonOauthClient"][number]["allowed_cors_origins"], keyof string[]>]: never; }) | undefined;
23624
- audience?: (string[] & string[] & { [K_1 in Exclude<keyof I["listMezonOauthClient"][number]["audience"], keyof string[]>]: never; }) | undefined;
23659
+ allowed_cors_origins?: (string[] & string[] & { [K in Exclude<keyof I["list_mezon_oauth_client"][number]["allowed_cors_origins"], keyof string[]>]: never; }) | undefined;
23660
+ audience?: (string[] & string[] & { [K_1 in Exclude<keyof I["list_mezon_oauth_client"][number]["audience"], keyof string[]>]: never; }) | undefined;
23625
23661
  authorization_code_grant_access_token_lifespan?: string | undefined;
23626
23662
  authorization_code_grant_id_token_lifespan?: string | undefined;
23627
23663
  authorization_code_grant_refresh_token_lifespan?: string | undefined;
@@ -23633,29 +23669,29 @@ export declare const MezonOauthClientList: {
23633
23669
  client_secret?: string | undefined;
23634
23670
  client_secret_expires_at?: number | undefined;
23635
23671
  client_uri?: string | undefined;
23636
- contacts?: (string[] & string[] & { [K_2 in Exclude<keyof I["listMezonOauthClient"][number]["contacts"], keyof string[]>]: never; }) | undefined;
23672
+ contacts?: (string[] & string[] & { [K_2 in Exclude<keyof I["list_mezon_oauth_client"][number]["contacts"], keyof string[]>]: never; }) | undefined;
23637
23673
  created_at?: Date | undefined;
23638
23674
  frontchannel_logout_session_required?: boolean | undefined;
23639
23675
  frontchannel_logout_uri?: string | undefined;
23640
- grant_types?: (string[] & string[] & { [K_3 in Exclude<keyof I["listMezonOauthClient"][number]["grant_types"], keyof string[]>]: never; }) | undefined;
23676
+ grant_types?: (string[] & string[] & { [K_3 in Exclude<keyof I["list_mezon_oauth_client"][number]["grant_types"], keyof string[]>]: never; }) | undefined;
23641
23677
  implicit_grant_access_token_lifespan?: string | undefined;
23642
23678
  implicit_grant_id_token_lifespan?: string | undefined;
23643
- jwks?: (string[] & string[] & { [K_4 in Exclude<keyof I["listMezonOauthClient"][number]["jwks"], keyof string[]>]: never; }) | undefined;
23679
+ jwks?: (string[] & string[] & { [K_4 in Exclude<keyof I["list_mezon_oauth_client"][number]["jwks"], keyof string[]>]: never; }) | undefined;
23644
23680
  jwks_uri?: string | undefined;
23645
23681
  jwt_bearer_grant_access_token_lifespan?: string | undefined;
23646
23682
  logo_uri?: string | undefined;
23647
23683
  owner?: string | undefined;
23648
23684
  policy_uri?: string | undefined;
23649
- post_logout_redirect_uris?: (string[] & string[] & { [K_5 in Exclude<keyof I["listMezonOauthClient"][number]["post_logout_redirect_uris"], keyof string[]>]: never; }) | undefined;
23650
- redirect_uris?: (string[] & string[] & { [K_6 in Exclude<keyof I["listMezonOauthClient"][number]["redirect_uris"], keyof string[]>]: never; }) | undefined;
23685
+ post_logout_redirect_uris?: (string[] & string[] & { [K_5 in Exclude<keyof I["list_mezon_oauth_client"][number]["post_logout_redirect_uris"], keyof string[]>]: never; }) | undefined;
23686
+ redirect_uris?: (string[] & string[] & { [K_6 in Exclude<keyof I["list_mezon_oauth_client"][number]["redirect_uris"], keyof string[]>]: never; }) | undefined;
23651
23687
  refresh_token_grant_access_token_lifespan?: string | undefined;
23652
23688
  refresh_token_grant_id_token_lifespan?: string | undefined;
23653
23689
  refresh_token_grant_refresh_token_lifespan?: string | undefined;
23654
23690
  registration_access_token?: string | undefined;
23655
23691
  registration_client_uri?: string | undefined;
23656
23692
  request_object_signing_alg?: string | undefined;
23657
- request_uris?: (string[] & string[] & { [K_7 in Exclude<keyof I["listMezonOauthClient"][number]["request_uris"], keyof string[]>]: never; }) | undefined;
23658
- response_types?: (string[] & string[] & { [K_8 in Exclude<keyof I["listMezonOauthClient"][number]["response_types"], keyof string[]>]: never; }) | undefined;
23693
+ request_uris?: (string[] & string[] & { [K_7 in Exclude<keyof I["list_mezon_oauth_client"][number]["request_uris"], keyof string[]>]: never; }) | undefined;
23694
+ response_types?: (string[] & string[] & { [K_8 in Exclude<keyof I["list_mezon_oauth_client"][number]["response_types"], keyof string[]>]: never; }) | undefined;
23659
23695
  scope?: string | undefined;
23660
23696
  sector_identifier_uri?: string | undefined;
23661
23697
  skip_consent?: boolean | undefined;
@@ -23666,7 +23702,7 @@ export declare const MezonOauthClientList: {
23666
23702
  tos_uri?: string | undefined;
23667
23703
  updated_at?: Date | undefined;
23668
23704
  userinfo_signed_response_alg?: string | undefined;
23669
- } & { [K_9 in Exclude<keyof I["listMezonOauthClient"][number], keyof MezonOauthClient>]: never; })[] & { [K_10 in Exclude<keyof I["listMezonOauthClient"], keyof {
23705
+ } & { [K_9 in Exclude<keyof I["list_mezon_oauth_client"][number], keyof MezonOauthClient>]: never; })[] & { [K_10 in Exclude<keyof I["list_mezon_oauth_client"], keyof {
23670
23706
  access_token_strategy?: string | undefined;
23671
23707
  allowed_cors_origins?: string[] | undefined;
23672
23708
  audience?: string[] | undefined;
@@ -23715,9 +23751,9 @@ export declare const MezonOauthClientList: {
23715
23751
  updated_at?: Date | undefined;
23716
23752
  userinfo_signed_response_alg?: string | undefined;
23717
23753
  }[]>]: never; }) | undefined;
23718
- } & { [K_11 in Exclude<keyof I, "listMezonOauthClient">]: never; }>(base?: I | undefined): MezonOauthClientList;
23754
+ } & { [K_11 in Exclude<keyof I, "list_mezon_oauth_client">]: never; }>(base?: I | undefined): MezonOauthClientList;
23719
23755
  fromPartial<I_1 extends {
23720
- listMezonOauthClient?: {
23756
+ list_mezon_oauth_client?: {
23721
23757
  access_token_strategy?: string | undefined;
23722
23758
  allowed_cors_origins?: string[] | undefined;
23723
23759
  audience?: string[] | undefined;
@@ -23767,7 +23803,7 @@ export declare const MezonOauthClientList: {
23767
23803
  userinfo_signed_response_alg?: string | undefined;
23768
23804
  }[] | undefined;
23769
23805
  } & {
23770
- listMezonOauthClient?: ({
23806
+ list_mezon_oauth_client?: ({
23771
23807
  access_token_strategy?: string | undefined;
23772
23808
  allowed_cors_origins?: string[] | undefined;
23773
23809
  audience?: string[] | undefined;
@@ -23865,8 +23901,8 @@ export declare const MezonOauthClientList: {
23865
23901
  userinfo_signed_response_alg?: string | undefined;
23866
23902
  } & {
23867
23903
  access_token_strategy?: string | undefined;
23868
- allowed_cors_origins?: (string[] & string[] & { [K_12 in Exclude<keyof I_1["listMezonOauthClient"][number]["allowed_cors_origins"], keyof string[]>]: never; }) | undefined;
23869
- audience?: (string[] & string[] & { [K_13 in Exclude<keyof I_1["listMezonOauthClient"][number]["audience"], keyof string[]>]: never; }) | undefined;
23904
+ allowed_cors_origins?: (string[] & string[] & { [K_12 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["allowed_cors_origins"], keyof string[]>]: never; }) | undefined;
23905
+ audience?: (string[] & string[] & { [K_13 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["audience"], keyof string[]>]: never; }) | undefined;
23870
23906
  authorization_code_grant_access_token_lifespan?: string | undefined;
23871
23907
  authorization_code_grant_id_token_lifespan?: string | undefined;
23872
23908
  authorization_code_grant_refresh_token_lifespan?: string | undefined;
@@ -23878,29 +23914,29 @@ export declare const MezonOauthClientList: {
23878
23914
  client_secret?: string | undefined;
23879
23915
  client_secret_expires_at?: number | undefined;
23880
23916
  client_uri?: string | undefined;
23881
- contacts?: (string[] & string[] & { [K_14 in Exclude<keyof I_1["listMezonOauthClient"][number]["contacts"], keyof string[]>]: never; }) | undefined;
23917
+ contacts?: (string[] & string[] & { [K_14 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["contacts"], keyof string[]>]: never; }) | undefined;
23882
23918
  created_at?: Date | undefined;
23883
23919
  frontchannel_logout_session_required?: boolean | undefined;
23884
23920
  frontchannel_logout_uri?: string | undefined;
23885
- grant_types?: (string[] & string[] & { [K_15 in Exclude<keyof I_1["listMezonOauthClient"][number]["grant_types"], keyof string[]>]: never; }) | undefined;
23921
+ grant_types?: (string[] & string[] & { [K_15 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["grant_types"], keyof string[]>]: never; }) | undefined;
23886
23922
  implicit_grant_access_token_lifespan?: string | undefined;
23887
23923
  implicit_grant_id_token_lifespan?: string | undefined;
23888
- jwks?: (string[] & string[] & { [K_16 in Exclude<keyof I_1["listMezonOauthClient"][number]["jwks"], keyof string[]>]: never; }) | undefined;
23924
+ jwks?: (string[] & string[] & { [K_16 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["jwks"], keyof string[]>]: never; }) | undefined;
23889
23925
  jwks_uri?: string | undefined;
23890
23926
  jwt_bearer_grant_access_token_lifespan?: string | undefined;
23891
23927
  logo_uri?: string | undefined;
23892
23928
  owner?: string | undefined;
23893
23929
  policy_uri?: string | undefined;
23894
- post_logout_redirect_uris?: (string[] & string[] & { [K_17 in Exclude<keyof I_1["listMezonOauthClient"][number]["post_logout_redirect_uris"], keyof string[]>]: never; }) | undefined;
23895
- redirect_uris?: (string[] & string[] & { [K_18 in Exclude<keyof I_1["listMezonOauthClient"][number]["redirect_uris"], keyof string[]>]: never; }) | undefined;
23930
+ post_logout_redirect_uris?: (string[] & string[] & { [K_17 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["post_logout_redirect_uris"], keyof string[]>]: never; }) | undefined;
23931
+ redirect_uris?: (string[] & string[] & { [K_18 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["redirect_uris"], keyof string[]>]: never; }) | undefined;
23896
23932
  refresh_token_grant_access_token_lifespan?: string | undefined;
23897
23933
  refresh_token_grant_id_token_lifespan?: string | undefined;
23898
23934
  refresh_token_grant_refresh_token_lifespan?: string | undefined;
23899
23935
  registration_access_token?: string | undefined;
23900
23936
  registration_client_uri?: string | undefined;
23901
23937
  request_object_signing_alg?: string | undefined;
23902
- request_uris?: (string[] & string[] & { [K_19 in Exclude<keyof I_1["listMezonOauthClient"][number]["request_uris"], keyof string[]>]: never; }) | undefined;
23903
- response_types?: (string[] & string[] & { [K_20 in Exclude<keyof I_1["listMezonOauthClient"][number]["response_types"], keyof string[]>]: never; }) | undefined;
23938
+ request_uris?: (string[] & string[] & { [K_19 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["request_uris"], keyof string[]>]: never; }) | undefined;
23939
+ response_types?: (string[] & string[] & { [K_20 in Exclude<keyof I_1["list_mezon_oauth_client"][number]["response_types"], keyof string[]>]: never; }) | undefined;
23904
23940
  scope?: string | undefined;
23905
23941
  sector_identifier_uri?: string | undefined;
23906
23942
  skip_consent?: boolean | undefined;
@@ -23911,7 +23947,7 @@ export declare const MezonOauthClientList: {
23911
23947
  tos_uri?: string | undefined;
23912
23948
  updated_at?: Date | undefined;
23913
23949
  userinfo_signed_response_alg?: string | undefined;
23914
- } & { [K_21 in Exclude<keyof I_1["listMezonOauthClient"][number], keyof MezonOauthClient>]: never; })[] & { [K_22 in Exclude<keyof I_1["listMezonOauthClient"], keyof {
23950
+ } & { [K_21 in Exclude<keyof I_1["list_mezon_oauth_client"][number], keyof MezonOauthClient>]: never; })[] & { [K_22 in Exclude<keyof I_1["list_mezon_oauth_client"], keyof {
23915
23951
  access_token_strategy?: string | undefined;
23916
23952
  allowed_cors_origins?: string[] | undefined;
23917
23953
  audience?: string[] | undefined;
@@ -23960,7 +23996,7 @@ export declare const MezonOauthClientList: {
23960
23996
  updated_at?: Date | undefined;
23961
23997
  userinfo_signed_response_alg?: string | undefined;
23962
23998
  }[]>]: never; }) | undefined;
23963
- } & { [K_23 in Exclude<keyof I_1, "listMezonOauthClient">]: never; }>(object: I_1): MezonOauthClientList;
23999
+ } & { [K_23 in Exclude<keyof I_1, "list_mezon_oauth_client">]: never; }>(object: I_1): MezonOauthClientList;
23964
24000
  };
23965
24001
  export declare const GetMezonOauthClientRequest: {
23966
24002
  encode(message: GetMezonOauthClientRequest, writer?: _m0.Writer): _m0.Writer;
@@ -24194,6 +24230,158 @@ export declare const AccountMezon_VarsEntry: {
24194
24230
  value?: string | undefined;
24195
24231
  } & { [K_1 in Exclude<keyof I_1, keyof AccountMezon_VarsEntry>]: never; }>(object: I_1): AccountMezon_VarsEntry;
24196
24232
  };
24233
+ export declare const QuickMenuAccessRequest: {
24234
+ encode(message: QuickMenuAccessRequest, writer?: _m0.Writer): _m0.Writer;
24235
+ decode(input: _m0.Reader | Uint8Array, length?: number): QuickMenuAccessRequest;
24236
+ fromJSON(object: any): QuickMenuAccessRequest;
24237
+ toJSON(message: QuickMenuAccessRequest): unknown;
24238
+ create<I extends {
24239
+ id?: string | undefined;
24240
+ menu_name?: string | undefined;
24241
+ background?: string | undefined;
24242
+ action_msg?: string | undefined;
24243
+ } & {
24244
+ id?: string | undefined;
24245
+ menu_name?: string | undefined;
24246
+ background?: string | undefined;
24247
+ action_msg?: string | undefined;
24248
+ } & { [K in Exclude<keyof I, keyof QuickMenuAccessRequest>]: never; }>(base?: I | undefined): QuickMenuAccessRequest;
24249
+ fromPartial<I_1 extends {
24250
+ id?: string | undefined;
24251
+ menu_name?: string | undefined;
24252
+ background?: string | undefined;
24253
+ action_msg?: string | undefined;
24254
+ } & {
24255
+ id?: string | undefined;
24256
+ menu_name?: string | undefined;
24257
+ background?: string | undefined;
24258
+ action_msg?: string | undefined;
24259
+ } & { [K_1 in Exclude<keyof I_1, keyof QuickMenuAccessRequest>]: never; }>(object: I_1): QuickMenuAccessRequest;
24260
+ };
24261
+ export declare const QuickMenuAccess: {
24262
+ encode(message: QuickMenuAccess, writer?: _m0.Writer): _m0.Writer;
24263
+ decode(input: _m0.Reader | Uint8Array, length?: number): QuickMenuAccess;
24264
+ fromJSON(object: any): QuickMenuAccess;
24265
+ toJSON(message: QuickMenuAccess): unknown;
24266
+ create<I extends {
24267
+ id?: string | undefined;
24268
+ bot_id?: string | undefined;
24269
+ menu_name?: string | undefined;
24270
+ background?: string | undefined;
24271
+ action_msg?: string | undefined;
24272
+ } & {
24273
+ id?: string | undefined;
24274
+ bot_id?: string | undefined;
24275
+ menu_name?: string | undefined;
24276
+ background?: string | undefined;
24277
+ action_msg?: string | undefined;
24278
+ } & { [K in Exclude<keyof I, keyof QuickMenuAccess>]: never; }>(base?: I | undefined): QuickMenuAccess;
24279
+ fromPartial<I_1 extends {
24280
+ id?: string | undefined;
24281
+ bot_id?: string | undefined;
24282
+ menu_name?: string | undefined;
24283
+ background?: string | undefined;
24284
+ action_msg?: string | undefined;
24285
+ } & {
24286
+ id?: string | undefined;
24287
+ bot_id?: string | undefined;
24288
+ menu_name?: string | undefined;
24289
+ background?: string | undefined;
24290
+ action_msg?: string | undefined;
24291
+ } & { [K_1 in Exclude<keyof I_1, keyof QuickMenuAccess>]: never; }>(object: I_1): QuickMenuAccess;
24292
+ };
24293
+ export declare const ListQuickMenuAccessRequest: {
24294
+ encode(message: ListQuickMenuAccessRequest, writer?: _m0.Writer): _m0.Writer;
24295
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListQuickMenuAccessRequest;
24296
+ fromJSON(object: any): ListQuickMenuAccessRequest;
24297
+ toJSON(message: ListQuickMenuAccessRequest): unknown;
24298
+ create<I extends {
24299
+ bot_id?: string | undefined;
24300
+ } & {
24301
+ bot_id?: string | undefined;
24302
+ } & { [K in Exclude<keyof I, "bot_id">]: never; }>(base?: I | undefined): ListQuickMenuAccessRequest;
24303
+ fromPartial<I_1 extends {
24304
+ bot_id?: string | undefined;
24305
+ } & {
24306
+ bot_id?: string | undefined;
24307
+ } & { [K_1 in Exclude<keyof I_1, "bot_id">]: never; }>(object: I_1): ListQuickMenuAccessRequest;
24308
+ };
24309
+ export declare const QuickMenuAccessList: {
24310
+ encode(message: QuickMenuAccessList, writer?: _m0.Writer): _m0.Writer;
24311
+ decode(input: _m0.Reader | Uint8Array, length?: number): QuickMenuAccessList;
24312
+ fromJSON(object: any): QuickMenuAccessList;
24313
+ toJSON(message: QuickMenuAccessList): unknown;
24314
+ create<I extends {
24315
+ list_menus?: {
24316
+ id?: string | undefined;
24317
+ bot_id?: string | undefined;
24318
+ menu_name?: string | undefined;
24319
+ background?: string | undefined;
24320
+ action_msg?: string | undefined;
24321
+ }[] | undefined;
24322
+ } & {
24323
+ list_menus?: ({
24324
+ id?: string | undefined;
24325
+ bot_id?: string | undefined;
24326
+ menu_name?: string | undefined;
24327
+ background?: string | undefined;
24328
+ action_msg?: string | undefined;
24329
+ }[] & ({
24330
+ id?: string | undefined;
24331
+ bot_id?: string | undefined;
24332
+ menu_name?: string | undefined;
24333
+ background?: string | undefined;
24334
+ action_msg?: string | undefined;
24335
+ } & {
24336
+ id?: string | undefined;
24337
+ bot_id?: string | undefined;
24338
+ menu_name?: string | undefined;
24339
+ background?: string | undefined;
24340
+ action_msg?: string | undefined;
24341
+ } & { [K in Exclude<keyof I["list_menus"][number], keyof QuickMenuAccess>]: never; })[] & { [K_1 in Exclude<keyof I["list_menus"], keyof {
24342
+ id?: string | undefined;
24343
+ bot_id?: string | undefined;
24344
+ menu_name?: string | undefined;
24345
+ background?: string | undefined;
24346
+ action_msg?: string | undefined;
24347
+ }[]>]: never; }) | undefined;
24348
+ } & { [K_2 in Exclude<keyof I, "list_menus">]: never; }>(base?: I | undefined): QuickMenuAccessList;
24349
+ fromPartial<I_1 extends {
24350
+ list_menus?: {
24351
+ id?: string | undefined;
24352
+ bot_id?: string | undefined;
24353
+ menu_name?: string | undefined;
24354
+ background?: string | undefined;
24355
+ action_msg?: string | undefined;
24356
+ }[] | undefined;
24357
+ } & {
24358
+ list_menus?: ({
24359
+ id?: string | undefined;
24360
+ bot_id?: string | undefined;
24361
+ menu_name?: string | undefined;
24362
+ background?: string | undefined;
24363
+ action_msg?: string | undefined;
24364
+ }[] & ({
24365
+ id?: string | undefined;
24366
+ bot_id?: string | undefined;
24367
+ menu_name?: string | undefined;
24368
+ background?: string | undefined;
24369
+ action_msg?: string | undefined;
24370
+ } & {
24371
+ id?: string | undefined;
24372
+ bot_id?: string | undefined;
24373
+ menu_name?: string | undefined;
24374
+ background?: string | undefined;
24375
+ action_msg?: string | undefined;
24376
+ } & { [K_3 in Exclude<keyof I_1["list_menus"][number], keyof QuickMenuAccess>]: never; })[] & { [K_4 in Exclude<keyof I_1["list_menus"], keyof {
24377
+ id?: string | undefined;
24378
+ bot_id?: string | undefined;
24379
+ menu_name?: string | undefined;
24380
+ background?: string | undefined;
24381
+ action_msg?: string | undefined;
24382
+ }[]>]: never; }) | undefined;
24383
+ } & { [K_5 in Exclude<keyof I_1, "list_menus">]: never; }>(object: I_1): QuickMenuAccessList;
24384
+ };
24197
24385
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
24198
24386
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
24199
24387
  [K in keyof T]?: DeepPartial<T[K]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",