mezon-js-protobuf 1.8.9 → 1.8.10

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,6 +3809,7 @@ 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 {
@@ -37646,7 +37652,7 @@ export const AccountMezon_VarsEntry = {
37646
37652
  };
37647
37653
 
37648
37654
  function createBaseQuickMenuAccessRequest(): QuickMenuAccessRequest {
37649
- return { id: "", menu_name: "", background: "", action_msg: "" };
37655
+ return { id: "", bot_id: "", clan_id: "", channel_id: "", menu_name: "", background: "", action_msg: "" };
37650
37656
  }
37651
37657
 
37652
37658
  export const QuickMenuAccessRequest = {
@@ -37654,14 +37660,23 @@ export const QuickMenuAccessRequest = {
37654
37660
  if (message.id !== "") {
37655
37661
  writer.uint32(10).string(message.id);
37656
37662
  }
37663
+ if (message.bot_id !== "") {
37664
+ writer.uint32(18).string(message.bot_id);
37665
+ }
37666
+ if (message.clan_id !== "") {
37667
+ writer.uint32(26).string(message.clan_id);
37668
+ }
37669
+ if (message.channel_id !== "") {
37670
+ writer.uint32(34).string(message.channel_id);
37671
+ }
37657
37672
  if (message.menu_name !== "") {
37658
- writer.uint32(18).string(message.menu_name);
37673
+ writer.uint32(42).string(message.menu_name);
37659
37674
  }
37660
37675
  if (message.background !== "") {
37661
- writer.uint32(26).string(message.background);
37676
+ writer.uint32(50).string(message.background);
37662
37677
  }
37663
37678
  if (message.action_msg !== "") {
37664
- writer.uint32(34).string(message.action_msg);
37679
+ writer.uint32(58).string(message.action_msg);
37665
37680
  }
37666
37681
  return writer;
37667
37682
  },
@@ -37685,20 +37700,41 @@ export const QuickMenuAccessRequest = {
37685
37700
  break;
37686
37701
  }
37687
37702
 
37688
- message.menu_name = reader.string();
37703
+ message.bot_id = reader.string();
37689
37704
  continue;
37690
37705
  case 3:
37691
37706
  if (tag !== 26) {
37692
37707
  break;
37693
37708
  }
37694
37709
 
37695
- message.background = reader.string();
37710
+ message.clan_id = reader.string();
37696
37711
  continue;
37697
37712
  case 4:
37698
37713
  if (tag !== 34) {
37699
37714
  break;
37700
37715
  }
37701
37716
 
37717
+ message.channel_id = reader.string();
37718
+ continue;
37719
+ case 5:
37720
+ if (tag !== 42) {
37721
+ break;
37722
+ }
37723
+
37724
+ message.menu_name = reader.string();
37725
+ continue;
37726
+ case 6:
37727
+ if (tag !== 50) {
37728
+ break;
37729
+ }
37730
+
37731
+ message.background = reader.string();
37732
+ continue;
37733
+ case 7:
37734
+ if (tag !== 58) {
37735
+ break;
37736
+ }
37737
+
37702
37738
  message.action_msg = reader.string();
37703
37739
  continue;
37704
37740
  }
@@ -37713,6 +37749,9 @@ export const QuickMenuAccessRequest = {
37713
37749
  fromJSON(object: any): QuickMenuAccessRequest {
37714
37750
  return {
37715
37751
  id: isSet(object.id) ? globalThis.String(object.id) : "",
37752
+ bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
37753
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
37754
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
37716
37755
  menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
37717
37756
  background: isSet(object.background) ? globalThis.String(object.background) : "",
37718
37757
  action_msg: isSet(object.action_msg) ? globalThis.String(object.action_msg) : "",
@@ -37724,6 +37763,15 @@ export const QuickMenuAccessRequest = {
37724
37763
  if (message.id !== "") {
37725
37764
  obj.id = message.id;
37726
37765
  }
37766
+ if (message.bot_id !== "") {
37767
+ obj.bot_id = message.bot_id;
37768
+ }
37769
+ if (message.clan_id !== "") {
37770
+ obj.clan_id = message.clan_id;
37771
+ }
37772
+ if (message.channel_id !== "") {
37773
+ obj.channel_id = message.channel_id;
37774
+ }
37727
37775
  if (message.menu_name !== "") {
37728
37776
  obj.menu_name = message.menu_name;
37729
37777
  }
@@ -37742,6 +37790,9 @@ export const QuickMenuAccessRequest = {
37742
37790
  fromPartial<I extends Exact<DeepPartial<QuickMenuAccessRequest>, I>>(object: I): QuickMenuAccessRequest {
37743
37791
  const message = createBaseQuickMenuAccessRequest();
37744
37792
  message.id = object.id ?? "";
37793
+ message.bot_id = object.bot_id ?? "";
37794
+ message.clan_id = object.clan_id ?? "";
37795
+ message.channel_id = object.channel_id ?? "";
37745
37796
  message.menu_name = object.menu_name ?? "";
37746
37797
  message.background = object.background ?? "";
37747
37798
  message.action_msg = object.action_msg ?? "";
@@ -37750,7 +37801,7 @@ export const QuickMenuAccessRequest = {
37750
37801
  };
37751
37802
 
37752
37803
  function createBaseQuickMenuAccess(): QuickMenuAccess {
37753
- return { id: "", bot_id: "", menu_name: "", background: "", action_msg: "" };
37804
+ return { id: "", bot_id: "", clan_id: "", channel_id: "", menu_name: "", background: "", action_msg: "" };
37754
37805
  }
37755
37806
 
37756
37807
  export const QuickMenuAccess = {
@@ -37761,14 +37812,20 @@ export const QuickMenuAccess = {
37761
37812
  if (message.bot_id !== "") {
37762
37813
  writer.uint32(18).string(message.bot_id);
37763
37814
  }
37815
+ if (message.clan_id !== "") {
37816
+ writer.uint32(26).string(message.clan_id);
37817
+ }
37818
+ if (message.channel_id !== "") {
37819
+ writer.uint32(34).string(message.channel_id);
37820
+ }
37764
37821
  if (message.menu_name !== "") {
37765
- writer.uint32(26).string(message.menu_name);
37822
+ writer.uint32(42).string(message.menu_name);
37766
37823
  }
37767
37824
  if (message.background !== "") {
37768
- writer.uint32(34).string(message.background);
37825
+ writer.uint32(50).string(message.background);
37769
37826
  }
37770
37827
  if (message.action_msg !== "") {
37771
- writer.uint32(42).string(message.action_msg);
37828
+ writer.uint32(58).string(message.action_msg);
37772
37829
  }
37773
37830
  return writer;
37774
37831
  },
@@ -37799,20 +37856,34 @@ export const QuickMenuAccess = {
37799
37856
  break;
37800
37857
  }
37801
37858
 
37802
- message.menu_name = reader.string();
37859
+ message.clan_id = reader.string();
37803
37860
  continue;
37804
37861
  case 4:
37805
37862
  if (tag !== 34) {
37806
37863
  break;
37807
37864
  }
37808
37865
 
37809
- message.background = reader.string();
37866
+ message.channel_id = reader.string();
37810
37867
  continue;
37811
37868
  case 5:
37812
37869
  if (tag !== 42) {
37813
37870
  break;
37814
37871
  }
37815
37872
 
37873
+ message.menu_name = reader.string();
37874
+ continue;
37875
+ case 6:
37876
+ if (tag !== 50) {
37877
+ break;
37878
+ }
37879
+
37880
+ message.background = reader.string();
37881
+ continue;
37882
+ case 7:
37883
+ if (tag !== 58) {
37884
+ break;
37885
+ }
37886
+
37816
37887
  message.action_msg = reader.string();
37817
37888
  continue;
37818
37889
  }
@@ -37828,6 +37899,8 @@ export const QuickMenuAccess = {
37828
37899
  return {
37829
37900
  id: isSet(object.id) ? globalThis.String(object.id) : "",
37830
37901
  bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
37902
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
37903
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
37831
37904
  menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
37832
37905
  background: isSet(object.background) ? globalThis.String(object.background) : "",
37833
37906
  action_msg: isSet(object.action_msg) ? globalThis.String(object.action_msg) : "",
@@ -37842,6 +37915,12 @@ export const QuickMenuAccess = {
37842
37915
  if (message.bot_id !== "") {
37843
37916
  obj.bot_id = message.bot_id;
37844
37917
  }
37918
+ if (message.clan_id !== "") {
37919
+ obj.clan_id = message.clan_id;
37920
+ }
37921
+ if (message.channel_id !== "") {
37922
+ obj.channel_id = message.channel_id;
37923
+ }
37845
37924
  if (message.menu_name !== "") {
37846
37925
  obj.menu_name = message.menu_name;
37847
37926
  }
@@ -37861,6 +37940,8 @@ export const QuickMenuAccess = {
37861
37940
  const message = createBaseQuickMenuAccess();
37862
37941
  message.id = object.id ?? "";
37863
37942
  message.bot_id = object.bot_id ?? "";
37943
+ message.clan_id = object.clan_id ?? "";
37944
+ message.channel_id = object.channel_id ?? "";
37864
37945
  message.menu_name = object.menu_name ?? "";
37865
37946
  message.background = object.background ?? "";
37866
37947
  message.action_msg = object.action_msg ?? "";
@@ -37869,7 +37950,7 @@ export const QuickMenuAccess = {
37869
37950
  };
37870
37951
 
37871
37952
  function createBaseListQuickMenuAccessRequest(): ListQuickMenuAccessRequest {
37872
- return { bot_id: "" };
37953
+ return { bot_id: "", channel_id: "" };
37873
37954
  }
37874
37955
 
37875
37956
  export const ListQuickMenuAccessRequest = {
@@ -37877,6 +37958,9 @@ export const ListQuickMenuAccessRequest = {
37877
37958
  if (message.bot_id !== "") {
37878
37959
  writer.uint32(10).string(message.bot_id);
37879
37960
  }
37961
+ if (message.channel_id !== "") {
37962
+ writer.uint32(18).string(message.channel_id);
37963
+ }
37880
37964
  return writer;
37881
37965
  },
37882
37966
 
@@ -37894,6 +37978,13 @@ export const ListQuickMenuAccessRequest = {
37894
37978
 
37895
37979
  message.bot_id = reader.string();
37896
37980
  continue;
37981
+ case 2:
37982
+ if (tag !== 18) {
37983
+ break;
37984
+ }
37985
+
37986
+ message.channel_id = reader.string();
37987
+ continue;
37897
37988
  }
37898
37989
  if ((tag & 7) === 4 || tag === 0) {
37899
37990
  break;
@@ -37904,7 +37995,10 @@ export const ListQuickMenuAccessRequest = {
37904
37995
  },
37905
37996
 
37906
37997
  fromJSON(object: any): ListQuickMenuAccessRequest {
37907
- return { bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "" };
37998
+ return {
37999
+ bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
38000
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
38001
+ };
37908
38002
  },
37909
38003
 
37910
38004
  toJSON(message: ListQuickMenuAccessRequest): unknown {
@@ -37912,6 +38006,9 @@ export const ListQuickMenuAccessRequest = {
37912
38006
  if (message.bot_id !== "") {
37913
38007
  obj.bot_id = message.bot_id;
37914
38008
  }
38009
+ if (message.channel_id !== "") {
38010
+ obj.channel_id = message.channel_id;
38011
+ }
37915
38012
  return obj;
37916
38013
  },
37917
38014
 
@@ -37921,6 +38018,7 @@ export const ListQuickMenuAccessRequest = {
37921
38018
  fromPartial<I extends Exact<DeepPartial<ListQuickMenuAccessRequest>, I>>(object: I): ListQuickMenuAccessRequest {
37922
38019
  const message = createBaseListQuickMenuAccessRequest();
37923
38020
  message.bot_id = object.bot_id ?? "";
38021
+ message.channel_id = object.channel_id ?? "";
37924
38022
  return message;
37925
38023
  },
37926
38024
  };
@@ -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,12 +3081,15 @@ 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[];
@@ -24237,22 +24243,34 @@ export declare const QuickMenuAccessRequest: {
24237
24243
  toJSON(message: QuickMenuAccessRequest): unknown;
24238
24244
  create<I extends {
24239
24245
  id?: string | undefined;
24246
+ bot_id?: string | undefined;
24247
+ clan_id?: string | undefined;
24248
+ channel_id?: string | undefined;
24240
24249
  menu_name?: string | undefined;
24241
24250
  background?: string | undefined;
24242
24251
  action_msg?: string | undefined;
24243
24252
  } & {
24244
24253
  id?: string | undefined;
24254
+ bot_id?: string | undefined;
24255
+ clan_id?: string | undefined;
24256
+ channel_id?: string | undefined;
24245
24257
  menu_name?: string | undefined;
24246
24258
  background?: string | undefined;
24247
24259
  action_msg?: string | undefined;
24248
24260
  } & { [K in Exclude<keyof I, keyof QuickMenuAccessRequest>]: never; }>(base?: I | undefined): QuickMenuAccessRequest;
24249
24261
  fromPartial<I_1 extends {
24250
24262
  id?: string | undefined;
24263
+ bot_id?: string | undefined;
24264
+ clan_id?: string | undefined;
24265
+ channel_id?: string | undefined;
24251
24266
  menu_name?: string | undefined;
24252
24267
  background?: string | undefined;
24253
24268
  action_msg?: string | undefined;
24254
24269
  } & {
24255
24270
  id?: string | undefined;
24271
+ bot_id?: string | undefined;
24272
+ clan_id?: string | undefined;
24273
+ channel_id?: string | undefined;
24256
24274
  menu_name?: string | undefined;
24257
24275
  background?: string | undefined;
24258
24276
  action_msg?: string | undefined;
@@ -24266,12 +24284,16 @@ export declare const QuickMenuAccess: {
24266
24284
  create<I extends {
24267
24285
  id?: string | undefined;
24268
24286
  bot_id?: string | undefined;
24287
+ clan_id?: string | undefined;
24288
+ channel_id?: string | undefined;
24269
24289
  menu_name?: string | undefined;
24270
24290
  background?: string | undefined;
24271
24291
  action_msg?: string | undefined;
24272
24292
  } & {
24273
24293
  id?: string | undefined;
24274
24294
  bot_id?: string | undefined;
24295
+ clan_id?: string | undefined;
24296
+ channel_id?: string | undefined;
24275
24297
  menu_name?: string | undefined;
24276
24298
  background?: string | undefined;
24277
24299
  action_msg?: string | undefined;
@@ -24279,12 +24301,16 @@ export declare const QuickMenuAccess: {
24279
24301
  fromPartial<I_1 extends {
24280
24302
  id?: string | undefined;
24281
24303
  bot_id?: string | undefined;
24304
+ clan_id?: string | undefined;
24305
+ channel_id?: string | undefined;
24282
24306
  menu_name?: string | undefined;
24283
24307
  background?: string | undefined;
24284
24308
  action_msg?: string | undefined;
24285
24309
  } & {
24286
24310
  id?: string | undefined;
24287
24311
  bot_id?: string | undefined;
24312
+ clan_id?: string | undefined;
24313
+ channel_id?: string | undefined;
24288
24314
  menu_name?: string | undefined;
24289
24315
  background?: string | undefined;
24290
24316
  action_msg?: string | undefined;
@@ -24297,14 +24323,18 @@ export declare const ListQuickMenuAccessRequest: {
24297
24323
  toJSON(message: ListQuickMenuAccessRequest): unknown;
24298
24324
  create<I extends {
24299
24325
  bot_id?: string | undefined;
24326
+ channel_id?: string | undefined;
24300
24327
  } & {
24301
24328
  bot_id?: string | undefined;
24302
- } & { [K in Exclude<keyof I, "bot_id">]: never; }>(base?: I | undefined): ListQuickMenuAccessRequest;
24329
+ channel_id?: string | undefined;
24330
+ } & { [K in Exclude<keyof I, keyof ListQuickMenuAccessRequest>]: never; }>(base?: I | undefined): ListQuickMenuAccessRequest;
24303
24331
  fromPartial<I_1 extends {
24304
24332
  bot_id?: string | undefined;
24333
+ channel_id?: string | undefined;
24305
24334
  } & {
24306
24335
  bot_id?: string | undefined;
24307
- } & { [K_1 in Exclude<keyof I_1, "bot_id">]: never; }>(object: I_1): ListQuickMenuAccessRequest;
24336
+ channel_id?: string | undefined;
24337
+ } & { [K_1 in Exclude<keyof I_1, keyof ListQuickMenuAccessRequest>]: never; }>(object: I_1): ListQuickMenuAccessRequest;
24308
24338
  };
24309
24339
  export declare const QuickMenuAccessList: {
24310
24340
  encode(message: QuickMenuAccessList, writer?: _m0.Writer): _m0.Writer;
@@ -24315,6 +24345,8 @@ export declare const QuickMenuAccessList: {
24315
24345
  list_menus?: {
24316
24346
  id?: string | undefined;
24317
24347
  bot_id?: string | undefined;
24348
+ clan_id?: string | undefined;
24349
+ channel_id?: string | undefined;
24318
24350
  menu_name?: string | undefined;
24319
24351
  background?: string | undefined;
24320
24352
  action_msg?: string | undefined;
@@ -24323,24 +24355,32 @@ export declare const QuickMenuAccessList: {
24323
24355
  list_menus?: ({
24324
24356
  id?: string | undefined;
24325
24357
  bot_id?: string | undefined;
24358
+ clan_id?: string | undefined;
24359
+ channel_id?: string | undefined;
24326
24360
  menu_name?: string | undefined;
24327
24361
  background?: string | undefined;
24328
24362
  action_msg?: string | undefined;
24329
24363
  }[] & ({
24330
24364
  id?: string | undefined;
24331
24365
  bot_id?: string | undefined;
24366
+ clan_id?: string | undefined;
24367
+ channel_id?: string | undefined;
24332
24368
  menu_name?: string | undefined;
24333
24369
  background?: string | undefined;
24334
24370
  action_msg?: string | undefined;
24335
24371
  } & {
24336
24372
  id?: string | undefined;
24337
24373
  bot_id?: string | undefined;
24374
+ clan_id?: string | undefined;
24375
+ channel_id?: string | undefined;
24338
24376
  menu_name?: string | undefined;
24339
24377
  background?: string | undefined;
24340
24378
  action_msg?: string | undefined;
24341
24379
  } & { [K in Exclude<keyof I["list_menus"][number], keyof QuickMenuAccess>]: never; })[] & { [K_1 in Exclude<keyof I["list_menus"], keyof {
24342
24380
  id?: string | undefined;
24343
24381
  bot_id?: string | undefined;
24382
+ clan_id?: string | undefined;
24383
+ channel_id?: string | undefined;
24344
24384
  menu_name?: string | undefined;
24345
24385
  background?: string | undefined;
24346
24386
  action_msg?: string | undefined;
@@ -24350,6 +24390,8 @@ export declare const QuickMenuAccessList: {
24350
24390
  list_menus?: {
24351
24391
  id?: string | undefined;
24352
24392
  bot_id?: string | undefined;
24393
+ clan_id?: string | undefined;
24394
+ channel_id?: string | undefined;
24353
24395
  menu_name?: string | undefined;
24354
24396
  background?: string | undefined;
24355
24397
  action_msg?: string | undefined;
@@ -24358,24 +24400,32 @@ export declare const QuickMenuAccessList: {
24358
24400
  list_menus?: ({
24359
24401
  id?: string | undefined;
24360
24402
  bot_id?: string | undefined;
24403
+ clan_id?: string | undefined;
24404
+ channel_id?: string | undefined;
24361
24405
  menu_name?: string | undefined;
24362
24406
  background?: string | undefined;
24363
24407
  action_msg?: string | undefined;
24364
24408
  }[] & ({
24365
24409
  id?: string | undefined;
24366
24410
  bot_id?: string | undefined;
24411
+ clan_id?: string | undefined;
24412
+ channel_id?: string | undefined;
24367
24413
  menu_name?: string | undefined;
24368
24414
  background?: string | undefined;
24369
24415
  action_msg?: string | undefined;
24370
24416
  } & {
24371
24417
  id?: string | undefined;
24372
24418
  bot_id?: string | undefined;
24419
+ clan_id?: string | undefined;
24420
+ channel_id?: string | undefined;
24373
24421
  menu_name?: string | undefined;
24374
24422
  background?: string | undefined;
24375
24423
  action_msg?: string | undefined;
24376
24424
  } & { [K_3 in Exclude<keyof I_1["list_menus"][number], keyof QuickMenuAccess>]: never; })[] & { [K_4 in Exclude<keyof I_1["list_menus"], keyof {
24377
24425
  id?: string | undefined;
24378
24426
  bot_id?: string | undefined;
24427
+ clan_id?: string | undefined;
24428
+ channel_id?: string | undefined;
24379
24429
  menu_name?: string | undefined;
24380
24430
  background?: string | undefined;
24381
24431
  action_msg?: string | undefined;
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.10",
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",