mezon-js-protobuf 1.8.9 → 1.8.11

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
@@ -3789,6 +3789,9 @@ export interface AccountMezon_VarsEntry {
3789
3789
 
3790
3790
  export interface QuickMenuAccessRequest {
3791
3791
  id: string;
3792
+ bot_id: string;
3793
+ clan_id: string;
3794
+ channel_id: string;
3792
3795
  menu_name: string;
3793
3796
  background: string;
3794
3797
  action_msg: string;
@@ -3797,6 +3800,8 @@ export interface QuickMenuAccessRequest {
3797
3800
  export interface QuickMenuAccess {
3798
3801
  id: string;
3799
3802
  bot_id: string;
3803
+ clan_id: string;
3804
+ channel_id: string;
3800
3805
  menu_name: string;
3801
3806
  background: string;
3802
3807
  action_msg: string;
@@ -3804,12 +3809,26 @@ export interface QuickMenuAccess {
3804
3809
 
3805
3810
  export interface ListQuickMenuAccessRequest {
3806
3811
  bot_id: string;
3812
+ channel_id: string;
3807
3813
  }
3808
3814
 
3809
3815
  export interface QuickMenuAccessList {
3810
3816
  list_menus: QuickMenuAccess[];
3811
3817
  }
3812
3818
 
3819
+ export interface ListForSaleItemsRequest {
3820
+ page: number;
3821
+ }
3822
+
3823
+ export interface ForSaleItem {
3824
+ type: number;
3825
+ preview_url: string;
3826
+ }
3827
+
3828
+ export interface ForSaleItemList {
3829
+ for_sale_items: ForSaleItem[];
3830
+ }
3831
+
3813
3832
  function createBaseAccount(): Account {
3814
3833
  return {
3815
3834
  user: undefined,
@@ -37646,7 +37665,7 @@ export const AccountMezon_VarsEntry = {
37646
37665
  };
37647
37666
 
37648
37667
  function createBaseQuickMenuAccessRequest(): QuickMenuAccessRequest {
37649
- return { id: "", menu_name: "", background: "", action_msg: "" };
37668
+ return { id: "", bot_id: "", clan_id: "", channel_id: "", menu_name: "", background: "", action_msg: "" };
37650
37669
  }
37651
37670
 
37652
37671
  export const QuickMenuAccessRequest = {
@@ -37654,14 +37673,23 @@ export const QuickMenuAccessRequest = {
37654
37673
  if (message.id !== "") {
37655
37674
  writer.uint32(10).string(message.id);
37656
37675
  }
37676
+ if (message.bot_id !== "") {
37677
+ writer.uint32(18).string(message.bot_id);
37678
+ }
37679
+ if (message.clan_id !== "") {
37680
+ writer.uint32(26).string(message.clan_id);
37681
+ }
37682
+ if (message.channel_id !== "") {
37683
+ writer.uint32(34).string(message.channel_id);
37684
+ }
37657
37685
  if (message.menu_name !== "") {
37658
- writer.uint32(18).string(message.menu_name);
37686
+ writer.uint32(42).string(message.menu_name);
37659
37687
  }
37660
37688
  if (message.background !== "") {
37661
- writer.uint32(26).string(message.background);
37689
+ writer.uint32(50).string(message.background);
37662
37690
  }
37663
37691
  if (message.action_msg !== "") {
37664
- writer.uint32(34).string(message.action_msg);
37692
+ writer.uint32(58).string(message.action_msg);
37665
37693
  }
37666
37694
  return writer;
37667
37695
  },
@@ -37685,20 +37713,41 @@ export const QuickMenuAccessRequest = {
37685
37713
  break;
37686
37714
  }
37687
37715
 
37688
- message.menu_name = reader.string();
37716
+ message.bot_id = reader.string();
37689
37717
  continue;
37690
37718
  case 3:
37691
37719
  if (tag !== 26) {
37692
37720
  break;
37693
37721
  }
37694
37722
 
37695
- message.background = reader.string();
37723
+ message.clan_id = reader.string();
37696
37724
  continue;
37697
37725
  case 4:
37698
37726
  if (tag !== 34) {
37699
37727
  break;
37700
37728
  }
37701
37729
 
37730
+ message.channel_id = reader.string();
37731
+ continue;
37732
+ case 5:
37733
+ if (tag !== 42) {
37734
+ break;
37735
+ }
37736
+
37737
+ message.menu_name = reader.string();
37738
+ continue;
37739
+ case 6:
37740
+ if (tag !== 50) {
37741
+ break;
37742
+ }
37743
+
37744
+ message.background = reader.string();
37745
+ continue;
37746
+ case 7:
37747
+ if (tag !== 58) {
37748
+ break;
37749
+ }
37750
+
37702
37751
  message.action_msg = reader.string();
37703
37752
  continue;
37704
37753
  }
@@ -37713,6 +37762,9 @@ export const QuickMenuAccessRequest = {
37713
37762
  fromJSON(object: any): QuickMenuAccessRequest {
37714
37763
  return {
37715
37764
  id: isSet(object.id) ? globalThis.String(object.id) : "",
37765
+ bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
37766
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
37767
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
37716
37768
  menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
37717
37769
  background: isSet(object.background) ? globalThis.String(object.background) : "",
37718
37770
  action_msg: isSet(object.action_msg) ? globalThis.String(object.action_msg) : "",
@@ -37724,6 +37776,15 @@ export const QuickMenuAccessRequest = {
37724
37776
  if (message.id !== "") {
37725
37777
  obj.id = message.id;
37726
37778
  }
37779
+ if (message.bot_id !== "") {
37780
+ obj.bot_id = message.bot_id;
37781
+ }
37782
+ if (message.clan_id !== "") {
37783
+ obj.clan_id = message.clan_id;
37784
+ }
37785
+ if (message.channel_id !== "") {
37786
+ obj.channel_id = message.channel_id;
37787
+ }
37727
37788
  if (message.menu_name !== "") {
37728
37789
  obj.menu_name = message.menu_name;
37729
37790
  }
@@ -37742,6 +37803,9 @@ export const QuickMenuAccessRequest = {
37742
37803
  fromPartial<I extends Exact<DeepPartial<QuickMenuAccessRequest>, I>>(object: I): QuickMenuAccessRequest {
37743
37804
  const message = createBaseQuickMenuAccessRequest();
37744
37805
  message.id = object.id ?? "";
37806
+ message.bot_id = object.bot_id ?? "";
37807
+ message.clan_id = object.clan_id ?? "";
37808
+ message.channel_id = object.channel_id ?? "";
37745
37809
  message.menu_name = object.menu_name ?? "";
37746
37810
  message.background = object.background ?? "";
37747
37811
  message.action_msg = object.action_msg ?? "";
@@ -37750,7 +37814,7 @@ export const QuickMenuAccessRequest = {
37750
37814
  };
37751
37815
 
37752
37816
  function createBaseQuickMenuAccess(): QuickMenuAccess {
37753
- return { id: "", bot_id: "", menu_name: "", background: "", action_msg: "" };
37817
+ return { id: "", bot_id: "", clan_id: "", channel_id: "", menu_name: "", background: "", action_msg: "" };
37754
37818
  }
37755
37819
 
37756
37820
  export const QuickMenuAccess = {
@@ -37761,14 +37825,20 @@ export const QuickMenuAccess = {
37761
37825
  if (message.bot_id !== "") {
37762
37826
  writer.uint32(18).string(message.bot_id);
37763
37827
  }
37828
+ if (message.clan_id !== "") {
37829
+ writer.uint32(26).string(message.clan_id);
37830
+ }
37831
+ if (message.channel_id !== "") {
37832
+ writer.uint32(34).string(message.channel_id);
37833
+ }
37764
37834
  if (message.menu_name !== "") {
37765
- writer.uint32(26).string(message.menu_name);
37835
+ writer.uint32(42).string(message.menu_name);
37766
37836
  }
37767
37837
  if (message.background !== "") {
37768
- writer.uint32(34).string(message.background);
37838
+ writer.uint32(50).string(message.background);
37769
37839
  }
37770
37840
  if (message.action_msg !== "") {
37771
- writer.uint32(42).string(message.action_msg);
37841
+ writer.uint32(58).string(message.action_msg);
37772
37842
  }
37773
37843
  return writer;
37774
37844
  },
@@ -37799,20 +37869,34 @@ export const QuickMenuAccess = {
37799
37869
  break;
37800
37870
  }
37801
37871
 
37802
- message.menu_name = reader.string();
37872
+ message.clan_id = reader.string();
37803
37873
  continue;
37804
37874
  case 4:
37805
37875
  if (tag !== 34) {
37806
37876
  break;
37807
37877
  }
37808
37878
 
37809
- message.background = reader.string();
37879
+ message.channel_id = reader.string();
37810
37880
  continue;
37811
37881
  case 5:
37812
37882
  if (tag !== 42) {
37813
37883
  break;
37814
37884
  }
37815
37885
 
37886
+ message.menu_name = reader.string();
37887
+ continue;
37888
+ case 6:
37889
+ if (tag !== 50) {
37890
+ break;
37891
+ }
37892
+
37893
+ message.background = reader.string();
37894
+ continue;
37895
+ case 7:
37896
+ if (tag !== 58) {
37897
+ break;
37898
+ }
37899
+
37816
37900
  message.action_msg = reader.string();
37817
37901
  continue;
37818
37902
  }
@@ -37828,6 +37912,8 @@ export const QuickMenuAccess = {
37828
37912
  return {
37829
37913
  id: isSet(object.id) ? globalThis.String(object.id) : "",
37830
37914
  bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
37915
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
37916
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
37831
37917
  menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
37832
37918
  background: isSet(object.background) ? globalThis.String(object.background) : "",
37833
37919
  action_msg: isSet(object.action_msg) ? globalThis.String(object.action_msg) : "",
@@ -37842,6 +37928,12 @@ export const QuickMenuAccess = {
37842
37928
  if (message.bot_id !== "") {
37843
37929
  obj.bot_id = message.bot_id;
37844
37930
  }
37931
+ if (message.clan_id !== "") {
37932
+ obj.clan_id = message.clan_id;
37933
+ }
37934
+ if (message.channel_id !== "") {
37935
+ obj.channel_id = message.channel_id;
37936
+ }
37845
37937
  if (message.menu_name !== "") {
37846
37938
  obj.menu_name = message.menu_name;
37847
37939
  }
@@ -37861,6 +37953,8 @@ export const QuickMenuAccess = {
37861
37953
  const message = createBaseQuickMenuAccess();
37862
37954
  message.id = object.id ?? "";
37863
37955
  message.bot_id = object.bot_id ?? "";
37956
+ message.clan_id = object.clan_id ?? "";
37957
+ message.channel_id = object.channel_id ?? "";
37864
37958
  message.menu_name = object.menu_name ?? "";
37865
37959
  message.background = object.background ?? "";
37866
37960
  message.action_msg = object.action_msg ?? "";
@@ -37869,7 +37963,7 @@ export const QuickMenuAccess = {
37869
37963
  };
37870
37964
 
37871
37965
  function createBaseListQuickMenuAccessRequest(): ListQuickMenuAccessRequest {
37872
- return { bot_id: "" };
37966
+ return { bot_id: "", channel_id: "" };
37873
37967
  }
37874
37968
 
37875
37969
  export const ListQuickMenuAccessRequest = {
@@ -37877,6 +37971,9 @@ export const ListQuickMenuAccessRequest = {
37877
37971
  if (message.bot_id !== "") {
37878
37972
  writer.uint32(10).string(message.bot_id);
37879
37973
  }
37974
+ if (message.channel_id !== "") {
37975
+ writer.uint32(18).string(message.channel_id);
37976
+ }
37880
37977
  return writer;
37881
37978
  },
37882
37979
 
@@ -37894,6 +37991,13 @@ export const ListQuickMenuAccessRequest = {
37894
37991
 
37895
37992
  message.bot_id = reader.string();
37896
37993
  continue;
37994
+ case 2:
37995
+ if (tag !== 18) {
37996
+ break;
37997
+ }
37998
+
37999
+ message.channel_id = reader.string();
38000
+ continue;
37897
38001
  }
37898
38002
  if ((tag & 7) === 4 || tag === 0) {
37899
38003
  break;
@@ -37904,7 +38008,10 @@ export const ListQuickMenuAccessRequest = {
37904
38008
  },
37905
38009
 
37906
38010
  fromJSON(object: any): ListQuickMenuAccessRequest {
37907
- return { bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "" };
38011
+ return {
38012
+ bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
38013
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
38014
+ };
37908
38015
  },
37909
38016
 
37910
38017
  toJSON(message: ListQuickMenuAccessRequest): unknown {
@@ -37912,6 +38019,9 @@ export const ListQuickMenuAccessRequest = {
37912
38019
  if (message.bot_id !== "") {
37913
38020
  obj.bot_id = message.bot_id;
37914
38021
  }
38022
+ if (message.channel_id !== "") {
38023
+ obj.channel_id = message.channel_id;
38024
+ }
37915
38025
  return obj;
37916
38026
  },
37917
38027
 
@@ -37921,6 +38031,7 @@ export const ListQuickMenuAccessRequest = {
37921
38031
  fromPartial<I extends Exact<DeepPartial<ListQuickMenuAccessRequest>, I>>(object: I): ListQuickMenuAccessRequest {
37922
38032
  const message = createBaseListQuickMenuAccessRequest();
37923
38033
  message.bot_id = object.bot_id ?? "";
38034
+ message.channel_id = object.channel_id ?? "";
37924
38035
  return message;
37925
38036
  },
37926
38037
  };
@@ -37986,6 +38097,198 @@ export const QuickMenuAccessList = {
37986
38097
  },
37987
38098
  };
37988
38099
 
38100
+ function createBaseListForSaleItemsRequest(): ListForSaleItemsRequest {
38101
+ return { page: 0 };
38102
+ }
38103
+
38104
+ export const ListForSaleItemsRequest = {
38105
+ encode(message: ListForSaleItemsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38106
+ if (message.page !== 0) {
38107
+ writer.uint32(8).int32(message.page);
38108
+ }
38109
+ return writer;
38110
+ },
38111
+
38112
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListForSaleItemsRequest {
38113
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38114
+ let end = length === undefined ? reader.len : reader.pos + length;
38115
+ const message = createBaseListForSaleItemsRequest();
38116
+ while (reader.pos < end) {
38117
+ const tag = reader.uint32();
38118
+ switch (tag >>> 3) {
38119
+ case 1:
38120
+ if (tag !== 8) {
38121
+ break;
38122
+ }
38123
+
38124
+ message.page = reader.int32();
38125
+ continue;
38126
+ }
38127
+ if ((tag & 7) === 4 || tag === 0) {
38128
+ break;
38129
+ }
38130
+ reader.skipType(tag & 7);
38131
+ }
38132
+ return message;
38133
+ },
38134
+
38135
+ fromJSON(object: any): ListForSaleItemsRequest {
38136
+ return { page: isSet(object.page) ? globalThis.Number(object.page) : 0 };
38137
+ },
38138
+
38139
+ toJSON(message: ListForSaleItemsRequest): unknown {
38140
+ const obj: any = {};
38141
+ if (message.page !== 0) {
38142
+ obj.page = Math.round(message.page);
38143
+ }
38144
+ return obj;
38145
+ },
38146
+
38147
+ create<I extends Exact<DeepPartial<ListForSaleItemsRequest>, I>>(base?: I): ListForSaleItemsRequest {
38148
+ return ListForSaleItemsRequest.fromPartial(base ?? ({} as any));
38149
+ },
38150
+ fromPartial<I extends Exact<DeepPartial<ListForSaleItemsRequest>, I>>(object: I): ListForSaleItemsRequest {
38151
+ const message = createBaseListForSaleItemsRequest();
38152
+ message.page = object.page ?? 0;
38153
+ return message;
38154
+ },
38155
+ };
38156
+
38157
+ function createBaseForSaleItem(): ForSaleItem {
38158
+ return { type: 0, preview_url: "" };
38159
+ }
38160
+
38161
+ export const ForSaleItem = {
38162
+ encode(message: ForSaleItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38163
+ if (message.type !== 0) {
38164
+ writer.uint32(8).int32(message.type);
38165
+ }
38166
+ if (message.preview_url !== "") {
38167
+ writer.uint32(18).string(message.preview_url);
38168
+ }
38169
+ return writer;
38170
+ },
38171
+
38172
+ decode(input: _m0.Reader | Uint8Array, length?: number): ForSaleItem {
38173
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38174
+ let end = length === undefined ? reader.len : reader.pos + length;
38175
+ const message = createBaseForSaleItem();
38176
+ while (reader.pos < end) {
38177
+ const tag = reader.uint32();
38178
+ switch (tag >>> 3) {
38179
+ case 1:
38180
+ if (tag !== 8) {
38181
+ break;
38182
+ }
38183
+
38184
+ message.type = reader.int32();
38185
+ continue;
38186
+ case 2:
38187
+ if (tag !== 18) {
38188
+ break;
38189
+ }
38190
+
38191
+ message.preview_url = reader.string();
38192
+ continue;
38193
+ }
38194
+ if ((tag & 7) === 4 || tag === 0) {
38195
+ break;
38196
+ }
38197
+ reader.skipType(tag & 7);
38198
+ }
38199
+ return message;
38200
+ },
38201
+
38202
+ fromJSON(object: any): ForSaleItem {
38203
+ return {
38204
+ type: isSet(object.type) ? globalThis.Number(object.type) : 0,
38205
+ preview_url: isSet(object.preview_url) ? globalThis.String(object.preview_url) : "",
38206
+ };
38207
+ },
38208
+
38209
+ toJSON(message: ForSaleItem): unknown {
38210
+ const obj: any = {};
38211
+ if (message.type !== 0) {
38212
+ obj.type = Math.round(message.type);
38213
+ }
38214
+ if (message.preview_url !== "") {
38215
+ obj.preview_url = message.preview_url;
38216
+ }
38217
+ return obj;
38218
+ },
38219
+
38220
+ create<I extends Exact<DeepPartial<ForSaleItem>, I>>(base?: I): ForSaleItem {
38221
+ return ForSaleItem.fromPartial(base ?? ({} as any));
38222
+ },
38223
+ fromPartial<I extends Exact<DeepPartial<ForSaleItem>, I>>(object: I): ForSaleItem {
38224
+ const message = createBaseForSaleItem();
38225
+ message.type = object.type ?? 0;
38226
+ message.preview_url = object.preview_url ?? "";
38227
+ return message;
38228
+ },
38229
+ };
38230
+
38231
+ function createBaseForSaleItemList(): ForSaleItemList {
38232
+ return { for_sale_items: [] };
38233
+ }
38234
+
38235
+ export const ForSaleItemList = {
38236
+ encode(message: ForSaleItemList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38237
+ for (const v of message.for_sale_items) {
38238
+ ForSaleItem.encode(v!, writer.uint32(10).fork()).ldelim();
38239
+ }
38240
+ return writer;
38241
+ },
38242
+
38243
+ decode(input: _m0.Reader | Uint8Array, length?: number): ForSaleItemList {
38244
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38245
+ let end = length === undefined ? reader.len : reader.pos + length;
38246
+ const message = createBaseForSaleItemList();
38247
+ while (reader.pos < end) {
38248
+ const tag = reader.uint32();
38249
+ switch (tag >>> 3) {
38250
+ case 1:
38251
+ if (tag !== 10) {
38252
+ break;
38253
+ }
38254
+
38255
+ message.for_sale_items.push(ForSaleItem.decode(reader, reader.uint32()));
38256
+ continue;
38257
+ }
38258
+ if ((tag & 7) === 4 || tag === 0) {
38259
+ break;
38260
+ }
38261
+ reader.skipType(tag & 7);
38262
+ }
38263
+ return message;
38264
+ },
38265
+
38266
+ fromJSON(object: any): ForSaleItemList {
38267
+ return {
38268
+ for_sale_items: globalThis.Array.isArray(object?.for_sale_items)
38269
+ ? object.for_sale_items.map((e: any) => ForSaleItem.fromJSON(e))
38270
+ : [],
38271
+ };
38272
+ },
38273
+
38274
+ toJSON(message: ForSaleItemList): unknown {
38275
+ const obj: any = {};
38276
+ if (message.for_sale_items?.length) {
38277
+ obj.for_sale_items = message.for_sale_items.map((e) => ForSaleItem.toJSON(e));
38278
+ }
38279
+ return obj;
38280
+ },
38281
+
38282
+ create<I extends Exact<DeepPartial<ForSaleItemList>, I>>(base?: I): ForSaleItemList {
38283
+ return ForSaleItemList.fromPartial(base ?? ({} as any));
38284
+ },
38285
+ fromPartial<I extends Exact<DeepPartial<ForSaleItemList>, I>>(object: I): ForSaleItemList {
38286
+ const message = createBaseForSaleItemList();
38287
+ message.for_sale_items = object.for_sale_items?.map((e) => ForSaleItem.fromPartial(e)) || [];
38288
+ return message;
38289
+ },
38290
+ };
38291
+
37989
38292
  function bytesFromBase64(b64: string): Uint8Array {
37990
38293
  if ((globalThis as any).Buffer) {
37991
38294
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
@@ -3071,6 +3071,9 @@ export interface AccountMezon_VarsEntry {
3071
3071
  }
3072
3072
  export interface QuickMenuAccessRequest {
3073
3073
  id: string;
3074
+ bot_id: string;
3075
+ clan_id: string;
3076
+ channel_id: string;
3074
3077
  menu_name: string;
3075
3078
  background: string;
3076
3079
  action_msg: string;
@@ -3078,16 +3081,29 @@ export interface QuickMenuAccessRequest {
3078
3081
  export interface QuickMenuAccess {
3079
3082
  id: string;
3080
3083
  bot_id: string;
3084
+ clan_id: string;
3085
+ channel_id: string;
3081
3086
  menu_name: string;
3082
3087
  background: string;
3083
3088
  action_msg: string;
3084
3089
  }
3085
3090
  export interface ListQuickMenuAccessRequest {
3086
3091
  bot_id: string;
3092
+ channel_id: string;
3087
3093
  }
3088
3094
  export interface QuickMenuAccessList {
3089
3095
  list_menus: QuickMenuAccess[];
3090
3096
  }
3097
+ export interface ListForSaleItemsRequest {
3098
+ page: number;
3099
+ }
3100
+ export interface ForSaleItem {
3101
+ type: number;
3102
+ preview_url: string;
3103
+ }
3104
+ export interface ForSaleItemList {
3105
+ for_sale_items: ForSaleItem[];
3106
+ }
3091
3107
  export declare const Account: {
3092
3108
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
3093
3109
  decode(input: _m0.Reader | Uint8Array, length?: number): Account;
@@ -24237,22 +24253,34 @@ export declare const QuickMenuAccessRequest: {
24237
24253
  toJSON(message: QuickMenuAccessRequest): unknown;
24238
24254
  create<I extends {
24239
24255
  id?: string | undefined;
24256
+ bot_id?: string | undefined;
24257
+ clan_id?: string | undefined;
24258
+ channel_id?: string | undefined;
24240
24259
  menu_name?: string | undefined;
24241
24260
  background?: string | undefined;
24242
24261
  action_msg?: string | undefined;
24243
24262
  } & {
24244
24263
  id?: string | undefined;
24264
+ bot_id?: string | undefined;
24265
+ clan_id?: string | undefined;
24266
+ channel_id?: string | undefined;
24245
24267
  menu_name?: string | undefined;
24246
24268
  background?: string | undefined;
24247
24269
  action_msg?: string | undefined;
24248
24270
  } & { [K in Exclude<keyof I, keyof QuickMenuAccessRequest>]: never; }>(base?: I | undefined): QuickMenuAccessRequest;
24249
24271
  fromPartial<I_1 extends {
24250
24272
  id?: string | undefined;
24273
+ bot_id?: string | undefined;
24274
+ clan_id?: string | undefined;
24275
+ channel_id?: string | undefined;
24251
24276
  menu_name?: string | undefined;
24252
24277
  background?: string | undefined;
24253
24278
  action_msg?: string | undefined;
24254
24279
  } & {
24255
24280
  id?: string | undefined;
24281
+ bot_id?: string | undefined;
24282
+ clan_id?: string | undefined;
24283
+ channel_id?: string | undefined;
24256
24284
  menu_name?: string | undefined;
24257
24285
  background?: string | undefined;
24258
24286
  action_msg?: string | undefined;
@@ -24266,12 +24294,16 @@ export declare const QuickMenuAccess: {
24266
24294
  create<I extends {
24267
24295
  id?: string | undefined;
24268
24296
  bot_id?: string | undefined;
24297
+ clan_id?: string | undefined;
24298
+ channel_id?: string | undefined;
24269
24299
  menu_name?: string | undefined;
24270
24300
  background?: string | undefined;
24271
24301
  action_msg?: string | undefined;
24272
24302
  } & {
24273
24303
  id?: string | undefined;
24274
24304
  bot_id?: string | undefined;
24305
+ clan_id?: string | undefined;
24306
+ channel_id?: string | undefined;
24275
24307
  menu_name?: string | undefined;
24276
24308
  background?: string | undefined;
24277
24309
  action_msg?: string | undefined;
@@ -24279,12 +24311,16 @@ export declare const QuickMenuAccess: {
24279
24311
  fromPartial<I_1 extends {
24280
24312
  id?: string | undefined;
24281
24313
  bot_id?: string | undefined;
24314
+ clan_id?: string | undefined;
24315
+ channel_id?: string | undefined;
24282
24316
  menu_name?: string | undefined;
24283
24317
  background?: string | undefined;
24284
24318
  action_msg?: string | undefined;
24285
24319
  } & {
24286
24320
  id?: string | undefined;
24287
24321
  bot_id?: string | undefined;
24322
+ clan_id?: string | undefined;
24323
+ channel_id?: string | undefined;
24288
24324
  menu_name?: string | undefined;
24289
24325
  background?: string | undefined;
24290
24326
  action_msg?: string | undefined;
@@ -24297,14 +24333,18 @@ export declare const ListQuickMenuAccessRequest: {
24297
24333
  toJSON(message: ListQuickMenuAccessRequest): unknown;
24298
24334
  create<I extends {
24299
24335
  bot_id?: string | undefined;
24336
+ channel_id?: string | undefined;
24300
24337
  } & {
24301
24338
  bot_id?: string | undefined;
24302
- } & { [K in Exclude<keyof I, "bot_id">]: never; }>(base?: I | undefined): ListQuickMenuAccessRequest;
24339
+ channel_id?: string | undefined;
24340
+ } & { [K in Exclude<keyof I, keyof ListQuickMenuAccessRequest>]: never; }>(base?: I | undefined): ListQuickMenuAccessRequest;
24303
24341
  fromPartial<I_1 extends {
24304
24342
  bot_id?: string | undefined;
24343
+ channel_id?: string | undefined;
24305
24344
  } & {
24306
24345
  bot_id?: string | undefined;
24307
- } & { [K_1 in Exclude<keyof I_1, "bot_id">]: never; }>(object: I_1): ListQuickMenuAccessRequest;
24346
+ channel_id?: string | undefined;
24347
+ } & { [K_1 in Exclude<keyof I_1, keyof ListQuickMenuAccessRequest>]: never; }>(object: I_1): ListQuickMenuAccessRequest;
24308
24348
  };
24309
24349
  export declare const QuickMenuAccessList: {
24310
24350
  encode(message: QuickMenuAccessList, writer?: _m0.Writer): _m0.Writer;
@@ -24315,6 +24355,8 @@ export declare const QuickMenuAccessList: {
24315
24355
  list_menus?: {
24316
24356
  id?: string | undefined;
24317
24357
  bot_id?: string | undefined;
24358
+ clan_id?: string | undefined;
24359
+ channel_id?: string | undefined;
24318
24360
  menu_name?: string | undefined;
24319
24361
  background?: string | undefined;
24320
24362
  action_msg?: string | undefined;
@@ -24323,24 +24365,32 @@ export declare const QuickMenuAccessList: {
24323
24365
  list_menus?: ({
24324
24366
  id?: string | undefined;
24325
24367
  bot_id?: string | undefined;
24368
+ clan_id?: string | undefined;
24369
+ channel_id?: string | undefined;
24326
24370
  menu_name?: string | undefined;
24327
24371
  background?: string | undefined;
24328
24372
  action_msg?: string | undefined;
24329
24373
  }[] & ({
24330
24374
  id?: string | undefined;
24331
24375
  bot_id?: string | undefined;
24376
+ clan_id?: string | undefined;
24377
+ channel_id?: string | undefined;
24332
24378
  menu_name?: string | undefined;
24333
24379
  background?: string | undefined;
24334
24380
  action_msg?: string | undefined;
24335
24381
  } & {
24336
24382
  id?: string | undefined;
24337
24383
  bot_id?: string | undefined;
24384
+ clan_id?: string | undefined;
24385
+ channel_id?: string | undefined;
24338
24386
  menu_name?: string | undefined;
24339
24387
  background?: string | undefined;
24340
24388
  action_msg?: string | undefined;
24341
24389
  } & { [K in Exclude<keyof I["list_menus"][number], keyof QuickMenuAccess>]: never; })[] & { [K_1 in Exclude<keyof I["list_menus"], keyof {
24342
24390
  id?: string | undefined;
24343
24391
  bot_id?: string | undefined;
24392
+ clan_id?: string | undefined;
24393
+ channel_id?: string | undefined;
24344
24394
  menu_name?: string | undefined;
24345
24395
  background?: string | undefined;
24346
24396
  action_msg?: string | undefined;
@@ -24350,6 +24400,8 @@ export declare const QuickMenuAccessList: {
24350
24400
  list_menus?: {
24351
24401
  id?: string | undefined;
24352
24402
  bot_id?: string | undefined;
24403
+ clan_id?: string | undefined;
24404
+ channel_id?: string | undefined;
24353
24405
  menu_name?: string | undefined;
24354
24406
  background?: string | undefined;
24355
24407
  action_msg?: string | undefined;
@@ -24358,30 +24410,120 @@ export declare const QuickMenuAccessList: {
24358
24410
  list_menus?: ({
24359
24411
  id?: string | undefined;
24360
24412
  bot_id?: string | undefined;
24413
+ clan_id?: string | undefined;
24414
+ channel_id?: string | undefined;
24361
24415
  menu_name?: string | undefined;
24362
24416
  background?: string | undefined;
24363
24417
  action_msg?: string | undefined;
24364
24418
  }[] & ({
24365
24419
  id?: string | undefined;
24366
24420
  bot_id?: string | undefined;
24421
+ clan_id?: string | undefined;
24422
+ channel_id?: string | undefined;
24367
24423
  menu_name?: string | undefined;
24368
24424
  background?: string | undefined;
24369
24425
  action_msg?: string | undefined;
24370
24426
  } & {
24371
24427
  id?: string | undefined;
24372
24428
  bot_id?: string | undefined;
24429
+ clan_id?: string | undefined;
24430
+ channel_id?: string | undefined;
24373
24431
  menu_name?: string | undefined;
24374
24432
  background?: string | undefined;
24375
24433
  action_msg?: string | undefined;
24376
24434
  } & { [K_3 in Exclude<keyof I_1["list_menus"][number], keyof QuickMenuAccess>]: never; })[] & { [K_4 in Exclude<keyof I_1["list_menus"], keyof {
24377
24435
  id?: string | undefined;
24378
24436
  bot_id?: string | undefined;
24437
+ clan_id?: string | undefined;
24438
+ channel_id?: string | undefined;
24379
24439
  menu_name?: string | undefined;
24380
24440
  background?: string | undefined;
24381
24441
  action_msg?: string | undefined;
24382
24442
  }[]>]: never; }) | undefined;
24383
24443
  } & { [K_5 in Exclude<keyof I_1, "list_menus">]: never; }>(object: I_1): QuickMenuAccessList;
24384
24444
  };
24445
+ export declare const ListForSaleItemsRequest: {
24446
+ encode(message: ListForSaleItemsRequest, writer?: _m0.Writer): _m0.Writer;
24447
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListForSaleItemsRequest;
24448
+ fromJSON(object: any): ListForSaleItemsRequest;
24449
+ toJSON(message: ListForSaleItemsRequest): unknown;
24450
+ create<I extends {
24451
+ page?: number | undefined;
24452
+ } & {
24453
+ page?: number | undefined;
24454
+ } & { [K in Exclude<keyof I, "page">]: never; }>(base?: I | undefined): ListForSaleItemsRequest;
24455
+ fromPartial<I_1 extends {
24456
+ page?: number | undefined;
24457
+ } & {
24458
+ page?: number | undefined;
24459
+ } & { [K_1 in Exclude<keyof I_1, "page">]: never; }>(object: I_1): ListForSaleItemsRequest;
24460
+ };
24461
+ export declare const ForSaleItem: {
24462
+ encode(message: ForSaleItem, writer?: _m0.Writer): _m0.Writer;
24463
+ decode(input: _m0.Reader | Uint8Array, length?: number): ForSaleItem;
24464
+ fromJSON(object: any): ForSaleItem;
24465
+ toJSON(message: ForSaleItem): unknown;
24466
+ create<I extends {
24467
+ type?: number | undefined;
24468
+ preview_url?: string | undefined;
24469
+ } & {
24470
+ type?: number | undefined;
24471
+ preview_url?: string | undefined;
24472
+ } & { [K in Exclude<keyof I, keyof ForSaleItem>]: never; }>(base?: I | undefined): ForSaleItem;
24473
+ fromPartial<I_1 extends {
24474
+ type?: number | undefined;
24475
+ preview_url?: string | undefined;
24476
+ } & {
24477
+ type?: number | undefined;
24478
+ preview_url?: string | undefined;
24479
+ } & { [K_1 in Exclude<keyof I_1, keyof ForSaleItem>]: never; }>(object: I_1): ForSaleItem;
24480
+ };
24481
+ export declare const ForSaleItemList: {
24482
+ encode(message: ForSaleItemList, writer?: _m0.Writer): _m0.Writer;
24483
+ decode(input: _m0.Reader | Uint8Array, length?: number): ForSaleItemList;
24484
+ fromJSON(object: any): ForSaleItemList;
24485
+ toJSON(message: ForSaleItemList): unknown;
24486
+ create<I extends {
24487
+ for_sale_items?: {
24488
+ type?: number | undefined;
24489
+ preview_url?: string | undefined;
24490
+ }[] | undefined;
24491
+ } & {
24492
+ for_sale_items?: ({
24493
+ type?: number | undefined;
24494
+ preview_url?: string | undefined;
24495
+ }[] & ({
24496
+ type?: number | undefined;
24497
+ preview_url?: string | undefined;
24498
+ } & {
24499
+ type?: number | undefined;
24500
+ preview_url?: string | undefined;
24501
+ } & { [K in Exclude<keyof I["for_sale_items"][number], keyof ForSaleItem>]: never; })[] & { [K_1 in Exclude<keyof I["for_sale_items"], keyof {
24502
+ type?: number | undefined;
24503
+ preview_url?: string | undefined;
24504
+ }[]>]: never; }) | undefined;
24505
+ } & { [K_2 in Exclude<keyof I, "for_sale_items">]: never; }>(base?: I | undefined): ForSaleItemList;
24506
+ fromPartial<I_1 extends {
24507
+ for_sale_items?: {
24508
+ type?: number | undefined;
24509
+ preview_url?: string | undefined;
24510
+ }[] | undefined;
24511
+ } & {
24512
+ for_sale_items?: ({
24513
+ type?: number | undefined;
24514
+ preview_url?: string | undefined;
24515
+ }[] & ({
24516
+ type?: number | undefined;
24517
+ preview_url?: string | undefined;
24518
+ } & {
24519
+ type?: number | undefined;
24520
+ preview_url?: string | undefined;
24521
+ } & { [K_3 in Exclude<keyof I_1["for_sale_items"][number], keyof ForSaleItem>]: never; })[] & { [K_4 in Exclude<keyof I_1["for_sale_items"], keyof {
24522
+ type?: number | undefined;
24523
+ preview_url?: string | undefined;
24524
+ }[]>]: never; }) | undefined;
24525
+ } & { [K_5 in Exclude<keyof I_1, "for_sale_items">]: never; }>(object: I_1): ForSaleItemList;
24526
+ };
24385
24527
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
24386
24528
  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 {} ? {
24387
24529
  [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.9",
3
+ "version": "1.8.11",
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",