mezon-js-protobuf 1.8.34 → 1.8.35

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
@@ -1133,7 +1133,9 @@ export interface UpdateAccountRequest {
1133
1133
  | string
1134
1134
  | undefined;
1135
1135
  /** update about me */
1136
- about_me: string;
1136
+ about_me:
1137
+ | string
1138
+ | undefined;
1137
1139
  /** date of birth */
1138
1140
  dob:
1139
1141
  | Date
@@ -1143,7 +1145,9 @@ export interface UpdateAccountRequest {
1143
1145
  | string
1144
1146
  | undefined;
1145
1147
  /** splash screen */
1146
- splash_screen: string;
1148
+ splash_screen:
1149
+ | string
1150
+ | undefined;
1147
1151
  /** e2ee encrypt private key */
1148
1152
  encrypt_private_key: string;
1149
1153
  /** The email of the user's account. */
@@ -1375,6 +1379,8 @@ export interface ClanDesc {
1375
1379
  about: string;
1376
1380
  /** short_url */
1377
1381
  short_url: string;
1382
+ /** prevent anonymous */
1383
+ prevent_anonymous: boolean;
1378
1384
  }
1379
1385
 
1380
1386
  /** Clan information */
@@ -1420,10 +1426,14 @@ export interface UpdateClanDescRequest {
1420
1426
  | undefined;
1421
1427
  /** string description */
1422
1428
  description: string;
1423
- /** about */
1429
+ /** About */
1424
1430
  about: string;
1425
- /** short url for community */
1426
- short_url: string | undefined;
1431
+ /** Short url for community */
1432
+ short_url:
1433
+ | string
1434
+ | undefined;
1435
+ /** Prevent anonymous */
1436
+ prevent_anonymous: boolean;
1427
1437
  }
1428
1438
 
1429
1439
  /** Delete a clan the user has access to. */
@@ -10825,10 +10835,10 @@ function createBaseUpdateAccountRequest(): UpdateAccountRequest {
10825
10835
  lang_tag: undefined,
10826
10836
  location: undefined,
10827
10837
  timezone: undefined,
10828
- about_me: "",
10838
+ about_me: undefined,
10829
10839
  dob: undefined,
10830
10840
  logo: undefined,
10831
- splash_screen: "",
10841
+ splash_screen: undefined,
10832
10842
  encrypt_private_key: "",
10833
10843
  email: undefined,
10834
10844
  };
@@ -10854,8 +10864,8 @@ export const UpdateAccountRequest = {
10854
10864
  if (message.timezone !== undefined) {
10855
10865
  StringValue.encode({ value: message.timezone! }, writer.uint32(50).fork()).ldelim();
10856
10866
  }
10857
- if (message.about_me !== "") {
10858
- writer.uint32(58).string(message.about_me);
10867
+ if (message.about_me !== undefined) {
10868
+ StringValue.encode({ value: message.about_me! }, writer.uint32(58).fork()).ldelim();
10859
10869
  }
10860
10870
  if (message.dob !== undefined) {
10861
10871
  Timestamp.encode(toTimestamp(message.dob), writer.uint32(66).fork()).ldelim();
@@ -10863,8 +10873,8 @@ export const UpdateAccountRequest = {
10863
10873
  if (message.logo !== undefined) {
10864
10874
  StringValue.encode({ value: message.logo! }, writer.uint32(74).fork()).ldelim();
10865
10875
  }
10866
- if (message.splash_screen !== "") {
10867
- writer.uint32(82).string(message.splash_screen);
10876
+ if (message.splash_screen !== undefined) {
10877
+ StringValue.encode({ value: message.splash_screen! }, writer.uint32(82).fork()).ldelim();
10868
10878
  }
10869
10879
  if (message.encrypt_private_key !== "") {
10870
10880
  writer.uint32(90).string(message.encrypt_private_key);
@@ -10929,7 +10939,7 @@ export const UpdateAccountRequest = {
10929
10939
  break;
10930
10940
  }
10931
10941
 
10932
- message.about_me = reader.string();
10942
+ message.about_me = StringValue.decode(reader, reader.uint32()).value;
10933
10943
  continue;
10934
10944
  case 8:
10935
10945
  if (tag !== 66) {
@@ -10950,7 +10960,7 @@ export const UpdateAccountRequest = {
10950
10960
  break;
10951
10961
  }
10952
10962
 
10953
- message.splash_screen = reader.string();
10963
+ message.splash_screen = StringValue.decode(reader, reader.uint32()).value;
10954
10964
  continue;
10955
10965
  case 11:
10956
10966
  if (tag !== 90) {
@@ -10983,10 +10993,10 @@ export const UpdateAccountRequest = {
10983
10993
  lang_tag: isSet(object.lang_tag) ? String(object.lang_tag) : undefined,
10984
10994
  location: isSet(object.location) ? String(object.location) : undefined,
10985
10995
  timezone: isSet(object.timezone) ? String(object.timezone) : undefined,
10986
- about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
10996
+ about_me: isSet(object.about_me) ? String(object.about_me) : undefined,
10987
10997
  dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
10988
10998
  logo: isSet(object.logo) ? String(object.logo) : undefined,
10989
- splash_screen: isSet(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
10999
+ splash_screen: isSet(object.splash_screen) ? String(object.splash_screen) : undefined,
10990
11000
  encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
10991
11001
  email: isSet(object.email) ? String(object.email) : undefined,
10992
11002
  };
@@ -11012,7 +11022,7 @@ export const UpdateAccountRequest = {
11012
11022
  if (message.timezone !== undefined) {
11013
11023
  obj.timezone = message.timezone;
11014
11024
  }
11015
- if (message.about_me !== "") {
11025
+ if (message.about_me !== undefined) {
11016
11026
  obj.about_me = message.about_me;
11017
11027
  }
11018
11028
  if (message.dob !== undefined) {
@@ -11021,7 +11031,7 @@ export const UpdateAccountRequest = {
11021
11031
  if (message.logo !== undefined) {
11022
11032
  obj.logo = message.logo;
11023
11033
  }
11024
- if (message.splash_screen !== "") {
11034
+ if (message.splash_screen !== undefined) {
11025
11035
  obj.splash_screen = message.splash_screen;
11026
11036
  }
11027
11037
  if (message.encrypt_private_key !== "") {
@@ -11044,10 +11054,10 @@ export const UpdateAccountRequest = {
11044
11054
  message.lang_tag = object.lang_tag ?? undefined;
11045
11055
  message.location = object.location ?? undefined;
11046
11056
  message.timezone = object.timezone ?? undefined;
11047
- message.about_me = object.about_me ?? "";
11057
+ message.about_me = object.about_me ?? undefined;
11048
11058
  message.dob = object.dob ?? undefined;
11049
11059
  message.logo = object.logo ?? undefined;
11050
- message.splash_screen = object.splash_screen ?? "";
11060
+ message.splash_screen = object.splash_screen ?? undefined;
11051
11061
  message.encrypt_private_key = object.encrypt_private_key ?? "";
11052
11062
  message.email = object.email ?? undefined;
11053
11063
  return message;
@@ -12170,6 +12180,7 @@ function createBaseClanDesc(): ClanDesc {
12170
12180
  description: "",
12171
12181
  about: "",
12172
12182
  short_url: "",
12183
+ prevent_anonymous: false,
12173
12184
  };
12174
12185
  }
12175
12186
 
@@ -12223,6 +12234,9 @@ export const ClanDesc = {
12223
12234
  if (message.short_url !== "") {
12224
12235
  writer.uint32(130).string(message.short_url);
12225
12236
  }
12237
+ if (message.prevent_anonymous !== false) {
12238
+ writer.uint32(136).bool(message.prevent_anonymous);
12239
+ }
12226
12240
  return writer;
12227
12241
  },
12228
12242
 
@@ -12345,6 +12359,13 @@ export const ClanDesc = {
12345
12359
 
12346
12360
  message.short_url = reader.string();
12347
12361
  continue;
12362
+ case 17:
12363
+ if (tag !== 136) {
12364
+ break;
12365
+ }
12366
+
12367
+ message.prevent_anonymous = reader.bool();
12368
+ continue;
12348
12369
  }
12349
12370
  if ((tag & 7) === 4 || tag === 0) {
12350
12371
  break;
@@ -12372,6 +12393,7 @@ export const ClanDesc = {
12372
12393
  description: isSet(object.description) ? globalThis.String(object.description) : "",
12373
12394
  about: isSet(object.about) ? globalThis.String(object.about) : "",
12374
12395
  short_url: isSet(object.short_url) ? globalThis.String(object.short_url) : "",
12396
+ prevent_anonymous: isSet(object.prevent_anonymous) ? globalThis.Boolean(object.prevent_anonymous) : false,
12375
12397
  };
12376
12398
  },
12377
12399
 
@@ -12425,6 +12447,9 @@ export const ClanDesc = {
12425
12447
  if (message.short_url !== "") {
12426
12448
  obj.short_url = message.short_url;
12427
12449
  }
12450
+ if (message.prevent_anonymous !== false) {
12451
+ obj.prevent_anonymous = message.prevent_anonymous;
12452
+ }
12428
12453
  return obj;
12429
12454
  },
12430
12455
 
@@ -12449,6 +12474,7 @@ export const ClanDesc = {
12449
12474
  message.description = object.description ?? "";
12450
12475
  message.about = object.about ?? "";
12451
12476
  message.short_url = object.short_url ?? "";
12477
+ message.prevent_anonymous = object.prevent_anonymous ?? false;
12452
12478
  return message;
12453
12479
  },
12454
12480
  };
@@ -12557,6 +12583,7 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
12557
12583
  description: "",
12558
12584
  about: "",
12559
12585
  short_url: undefined,
12586
+ prevent_anonymous: false,
12560
12587
  };
12561
12588
  }
12562
12589
 
@@ -12601,6 +12628,9 @@ export const UpdateClanDescRequest = {
12601
12628
  if (message.short_url !== undefined) {
12602
12629
  StringValue.encode({ value: message.short_url! }, writer.uint32(106).fork()).ldelim();
12603
12630
  }
12631
+ if (message.prevent_anonymous !== false) {
12632
+ writer.uint32(112).bool(message.prevent_anonymous);
12633
+ }
12604
12634
  return writer;
12605
12635
  },
12606
12636
 
@@ -12702,6 +12732,13 @@ export const UpdateClanDescRequest = {
12702
12732
 
12703
12733
  message.short_url = StringValue.decode(reader, reader.uint32()).value;
12704
12734
  continue;
12735
+ case 14:
12736
+ if (tag !== 112) {
12737
+ break;
12738
+ }
12739
+
12740
+ message.prevent_anonymous = reader.bool();
12741
+ continue;
12705
12742
  }
12706
12743
  if ((tag & 7) === 4 || tag === 0) {
12707
12744
  break;
@@ -12726,6 +12763,7 @@ export const UpdateClanDescRequest = {
12726
12763
  description: isSet(object.description) ? globalThis.String(object.description) : "",
12727
12764
  about: isSet(object.about) ? globalThis.String(object.about) : "",
12728
12765
  short_url: isSet(object.short_url) ? String(object.short_url) : undefined,
12766
+ prevent_anonymous: isSet(object.prevent_anonymous) ? globalThis.Boolean(object.prevent_anonymous) : false,
12729
12767
  };
12730
12768
  },
12731
12769
 
@@ -12770,6 +12808,9 @@ export const UpdateClanDescRequest = {
12770
12808
  if (message.short_url !== undefined) {
12771
12809
  obj.short_url = message.short_url;
12772
12810
  }
12811
+ if (message.prevent_anonymous !== false) {
12812
+ obj.prevent_anonymous = message.prevent_anonymous;
12813
+ }
12773
12814
  return obj;
12774
12815
  },
12775
12816
 
@@ -12791,6 +12832,7 @@ export const UpdateClanDescRequest = {
12791
12832
  message.description = object.description ?? "";
12792
12833
  message.about = object.about ?? "";
12793
12834
  message.short_url = object.short_url ?? undefined;
12835
+ message.prevent_anonymous = object.prevent_anonymous ?? false;
12794
12836
  return message;
12795
12837
  },
12796
12838
  };
@@ -807,13 +807,13 @@ export interface UpdateAccountRequest {
807
807
  /** The timezone set by the user. */
808
808
  timezone: string | undefined;
809
809
  /** update about me */
810
- about_me: string;
810
+ about_me: string | undefined;
811
811
  /** date of birth */
812
812
  dob: Date | undefined;
813
813
  /** logo url */
814
814
  logo: string | undefined;
815
815
  /** splash screen */
816
- splash_screen: string;
816
+ splash_screen: string | undefined;
817
817
  /** e2ee encrypt private key */
818
818
  encrypt_private_key: string;
819
819
  /** The email of the user's account. */
@@ -981,6 +981,8 @@ export interface ClanDesc {
981
981
  about: string;
982
982
  /** short_url */
983
983
  short_url: string;
984
+ /** prevent anonymous */
985
+ prevent_anonymous: boolean;
984
986
  }
985
987
  /** Clan information */
986
988
  export interface CreateClanDescRequest {
@@ -1014,10 +1016,12 @@ export interface UpdateClanDescRequest {
1014
1016
  community_banner: string | undefined;
1015
1017
  /** string description */
1016
1018
  description: string;
1017
- /** about */
1019
+ /** About */
1018
1020
  about: string;
1019
- /** short url for community */
1021
+ /** Short url for community */
1020
1022
  short_url: string | undefined;
1023
+ /** Prevent anonymous */
1024
+ prevent_anonymous: boolean;
1021
1025
  }
1022
1026
  /** Delete a clan the user has access to. */
1023
1027
  export interface DeleteClanDescRequest {
@@ -9509,6 +9513,7 @@ export declare const ClanDesc: {
9509
9513
  description?: string | undefined;
9510
9514
  about?: string | undefined;
9511
9515
  short_url?: string | undefined;
9516
+ prevent_anonymous?: boolean | undefined;
9512
9517
  } & {
9513
9518
  creator_id?: string | undefined;
9514
9519
  clan_name?: string | undefined;
@@ -9526,6 +9531,7 @@ export declare const ClanDesc: {
9526
9531
  description?: string | undefined;
9527
9532
  about?: string | undefined;
9528
9533
  short_url?: string | undefined;
9534
+ prevent_anonymous?: boolean | undefined;
9529
9535
  } & { [K in Exclude<keyof I, keyof ClanDesc>]: never; }>(base?: I | undefined): ClanDesc;
9530
9536
  fromPartial<I_1 extends {
9531
9537
  creator_id?: string | undefined;
@@ -9544,6 +9550,7 @@ export declare const ClanDesc: {
9544
9550
  description?: string | undefined;
9545
9551
  about?: string | undefined;
9546
9552
  short_url?: string | undefined;
9553
+ prevent_anonymous?: boolean | undefined;
9547
9554
  } & {
9548
9555
  creator_id?: string | undefined;
9549
9556
  clan_name?: string | undefined;
@@ -9561,6 +9568,7 @@ export declare const ClanDesc: {
9561
9568
  description?: string | undefined;
9562
9569
  about?: string | undefined;
9563
9570
  short_url?: string | undefined;
9571
+ prevent_anonymous?: boolean | undefined;
9564
9572
  } & { [K_1 in Exclude<keyof I_1, keyof ClanDesc>]: never; }>(object: I_1): ClanDesc;
9565
9573
  };
9566
9574
  export declare const CreateClanDescRequest: {
@@ -9606,6 +9614,7 @@ export declare const UpdateClanDescRequest: {
9606
9614
  description?: string | undefined;
9607
9615
  about?: string | undefined;
9608
9616
  short_url?: string | undefined;
9617
+ prevent_anonymous?: boolean | undefined;
9609
9618
  } & {
9610
9619
  clan_id?: string | undefined;
9611
9620
  clan_name?: string | undefined;
@@ -9620,6 +9629,7 @@ export declare const UpdateClanDescRequest: {
9620
9629
  description?: string | undefined;
9621
9630
  about?: string | undefined;
9622
9631
  short_url?: string | undefined;
9632
+ prevent_anonymous?: boolean | undefined;
9623
9633
  } & { [K in Exclude<keyof I, keyof UpdateClanDescRequest>]: never; }>(base?: I | undefined): UpdateClanDescRequest;
9624
9634
  fromPartial<I_1 extends {
9625
9635
  clan_id?: string | undefined;
@@ -9635,6 +9645,7 @@ export declare const UpdateClanDescRequest: {
9635
9645
  description?: string | undefined;
9636
9646
  about?: string | undefined;
9637
9647
  short_url?: string | undefined;
9648
+ prevent_anonymous?: boolean | undefined;
9638
9649
  } & {
9639
9650
  clan_id?: string | undefined;
9640
9651
  clan_name?: string | undefined;
@@ -9649,6 +9660,7 @@ export declare const UpdateClanDescRequest: {
9649
9660
  description?: string | undefined;
9650
9661
  about?: string | undefined;
9651
9662
  short_url?: string | undefined;
9663
+ prevent_anonymous?: boolean | undefined;
9652
9664
  } & { [K_1 in Exclude<keyof I_1, keyof UpdateClanDescRequest>]: never; }>(object: I_1): UpdateClanDescRequest;
9653
9665
  };
9654
9666
  export declare const DeleteClanDescRequest: {
@@ -9714,6 +9726,7 @@ export declare const ClanDescList: {
9714
9726
  description?: string | undefined;
9715
9727
  about?: string | undefined;
9716
9728
  short_url?: string | undefined;
9729
+ prevent_anonymous?: boolean | undefined;
9717
9730
  }[] | undefined;
9718
9731
  } & {
9719
9732
  clandesc?: ({
@@ -9733,6 +9746,7 @@ export declare const ClanDescList: {
9733
9746
  description?: string | undefined;
9734
9747
  about?: string | undefined;
9735
9748
  short_url?: string | undefined;
9749
+ prevent_anonymous?: boolean | undefined;
9736
9750
  }[] & ({
9737
9751
  creator_id?: string | undefined;
9738
9752
  clan_name?: string | undefined;
@@ -9750,6 +9764,7 @@ export declare const ClanDescList: {
9750
9764
  description?: string | undefined;
9751
9765
  about?: string | undefined;
9752
9766
  short_url?: string | undefined;
9767
+ prevent_anonymous?: boolean | undefined;
9753
9768
  } & {
9754
9769
  creator_id?: string | undefined;
9755
9770
  clan_name?: string | undefined;
@@ -9767,6 +9782,7 @@ export declare const ClanDescList: {
9767
9782
  description?: string | undefined;
9768
9783
  about?: string | undefined;
9769
9784
  short_url?: string | undefined;
9785
+ prevent_anonymous?: boolean | undefined;
9770
9786
  } & { [K in Exclude<keyof I["clandesc"][number], keyof ClanDesc>]: never; })[] & { [K_1 in Exclude<keyof I["clandesc"], keyof {
9771
9787
  creator_id?: string | undefined;
9772
9788
  clan_name?: string | undefined;
@@ -9784,6 +9800,7 @@ export declare const ClanDescList: {
9784
9800
  description?: string | undefined;
9785
9801
  about?: string | undefined;
9786
9802
  short_url?: string | undefined;
9803
+ prevent_anonymous?: boolean | undefined;
9787
9804
  }[]>]: never; }) | undefined;
9788
9805
  } & { [K_2 in Exclude<keyof I, "clandesc">]: never; }>(base?: I | undefined): ClanDescList;
9789
9806
  fromPartial<I_1 extends {
@@ -9804,6 +9821,7 @@ export declare const ClanDescList: {
9804
9821
  description?: string | undefined;
9805
9822
  about?: string | undefined;
9806
9823
  short_url?: string | undefined;
9824
+ prevent_anonymous?: boolean | undefined;
9807
9825
  }[] | undefined;
9808
9826
  } & {
9809
9827
  clandesc?: ({
@@ -9823,6 +9841,7 @@ export declare const ClanDescList: {
9823
9841
  description?: string | undefined;
9824
9842
  about?: string | undefined;
9825
9843
  short_url?: string | undefined;
9844
+ prevent_anonymous?: boolean | undefined;
9826
9845
  }[] & ({
9827
9846
  creator_id?: string | undefined;
9828
9847
  clan_name?: string | undefined;
@@ -9840,6 +9859,7 @@ export declare const ClanDescList: {
9840
9859
  description?: string | undefined;
9841
9860
  about?: string | undefined;
9842
9861
  short_url?: string | undefined;
9862
+ prevent_anonymous?: boolean | undefined;
9843
9863
  } & {
9844
9864
  creator_id?: string | undefined;
9845
9865
  clan_name?: string | undefined;
@@ -9857,6 +9877,7 @@ export declare const ClanDescList: {
9857
9877
  description?: string | undefined;
9858
9878
  about?: string | undefined;
9859
9879
  short_url?: string | undefined;
9880
+ prevent_anonymous?: boolean | undefined;
9860
9881
  } & { [K_3 in Exclude<keyof I_1["clandesc"][number], keyof ClanDesc>]: never; })[] & { [K_4 in Exclude<keyof I_1["clandesc"], keyof {
9861
9882
  creator_id?: string | undefined;
9862
9883
  clan_name?: string | undefined;
@@ -9874,6 +9895,7 @@ export declare const ClanDescList: {
9874
9895
  description?: string | undefined;
9875
9896
  about?: string | undefined;
9876
9897
  short_url?: string | undefined;
9898
+ prevent_anonymous?: boolean | undefined;
9877
9899
  }[]>]: never; }) | undefined;
9878
9900
  } & { [K_5 in Exclude<keyof I_1, "clandesc">]: never; }>(object: I_1): ClanDescList;
9879
9901
  };
@@ -2374,6 +2374,7 @@ export declare const Envelope: {
2374
2374
  description?: string | undefined;
2375
2375
  about?: string | undefined;
2376
2376
  short_url?: string | undefined;
2377
+ prevent_anonymous?: boolean | undefined;
2377
2378
  }[] | undefined;
2378
2379
  } | undefined;
2379
2380
  list_thread_req?: {
@@ -6573,6 +6574,7 @@ export declare const Envelope: {
6573
6574
  description?: string | undefined;
6574
6575
  about?: string | undefined;
6575
6576
  short_url?: string | undefined;
6577
+ prevent_anonymous?: boolean | undefined;
6576
6578
  }[] | undefined;
6577
6579
  } | undefined;
6578
6580
  list_thread_req?: {
@@ -7431,6 +7433,7 @@ export declare const Envelope: {
7431
7433
  description?: string | undefined;
7432
7434
  about?: string | undefined;
7433
7435
  short_url?: string | undefined;
7436
+ prevent_anonymous?: boolean | undefined;
7434
7437
  }[] | undefined;
7435
7438
  } & {
7436
7439
  clandesc?: ({
@@ -7450,6 +7453,7 @@ export declare const Envelope: {
7450
7453
  description?: string | undefined;
7451
7454
  about?: string | undefined;
7452
7455
  short_url?: string | undefined;
7456
+ prevent_anonymous?: boolean | undefined;
7453
7457
  }[] & ({
7454
7458
  creator_id?: string | undefined;
7455
7459
  clan_name?: string | undefined;
@@ -7467,6 +7471,7 @@ export declare const Envelope: {
7467
7471
  description?: string | undefined;
7468
7472
  about?: string | undefined;
7469
7473
  short_url?: string | undefined;
7474
+ prevent_anonymous?: boolean | undefined;
7470
7475
  } & {
7471
7476
  creator_id?: string | undefined;
7472
7477
  clan_name?: string | undefined;
@@ -7484,6 +7489,7 @@ export declare const Envelope: {
7484
7489
  description?: string | undefined;
7485
7490
  about?: string | undefined;
7486
7491
  short_url?: string | undefined;
7492
+ prevent_anonymous?: boolean | undefined;
7487
7493
  } & { [K_197 in Exclude<keyof I["list_data_socket"]["clan_desc_list"]["clandesc"][number], keyof import("../api/api").ClanDesc>]: never; })[] & { [K_198 in Exclude<keyof I["list_data_socket"]["clan_desc_list"]["clandesc"], keyof {
7488
7494
  creator_id?: string | undefined;
7489
7495
  clan_name?: string | undefined;
@@ -7501,6 +7507,7 @@ export declare const Envelope: {
7501
7507
  description?: string | undefined;
7502
7508
  about?: string | undefined;
7503
7509
  short_url?: string | undefined;
7510
+ prevent_anonymous?: boolean | undefined;
7504
7511
  }[]>]: never; }) | undefined;
7505
7512
  } & { [K_199 in Exclude<keyof I["list_data_socket"]["clan_desc_list"], "clandesc">]: never; }) | undefined;
7506
7513
  list_thread_req?: ({
@@ -12238,6 +12245,7 @@ export declare const Envelope: {
12238
12245
  description?: string | undefined;
12239
12246
  about?: string | undefined;
12240
12247
  short_url?: string | undefined;
12248
+ prevent_anonymous?: boolean | undefined;
12241
12249
  }[] | undefined;
12242
12250
  } | undefined;
12243
12251
  list_thread_req?: {
@@ -16437,6 +16445,7 @@ export declare const Envelope: {
16437
16445
  description?: string | undefined;
16438
16446
  about?: string | undefined;
16439
16447
  short_url?: string | undefined;
16448
+ prevent_anonymous?: boolean | undefined;
16440
16449
  }[] | undefined;
16441
16450
  } | undefined;
16442
16451
  list_thread_req?: {
@@ -17295,6 +17304,7 @@ export declare const Envelope: {
17295
17304
  description?: string | undefined;
17296
17305
  about?: string | undefined;
17297
17306
  short_url?: string | undefined;
17307
+ prevent_anonymous?: boolean | undefined;
17298
17308
  }[] | undefined;
17299
17309
  } & {
17300
17310
  clandesc?: ({
@@ -17314,6 +17324,7 @@ export declare const Envelope: {
17314
17324
  description?: string | undefined;
17315
17325
  about?: string | undefined;
17316
17326
  short_url?: string | undefined;
17327
+ prevent_anonymous?: boolean | undefined;
17317
17328
  }[] & ({
17318
17329
  creator_id?: string | undefined;
17319
17330
  clan_name?: string | undefined;
@@ -17331,6 +17342,7 @@ export declare const Envelope: {
17331
17342
  description?: string | undefined;
17332
17343
  about?: string | undefined;
17333
17344
  short_url?: string | undefined;
17345
+ prevent_anonymous?: boolean | undefined;
17334
17346
  } & {
17335
17347
  creator_id?: string | undefined;
17336
17348
  clan_name?: string | undefined;
@@ -17348,6 +17360,7 @@ export declare const Envelope: {
17348
17360
  description?: string | undefined;
17349
17361
  about?: string | undefined;
17350
17362
  short_url?: string | undefined;
17363
+ prevent_anonymous?: boolean | undefined;
17351
17364
  } & { [K_593 in Exclude<keyof I_1["list_data_socket"]["clan_desc_list"]["clandesc"][number], keyof import("../api/api").ClanDesc>]: never; })[] & { [K_594 in Exclude<keyof I_1["list_data_socket"]["clan_desc_list"]["clandesc"], keyof {
17352
17365
  creator_id?: string | undefined;
17353
17366
  clan_name?: string | undefined;
@@ -17365,6 +17378,7 @@ export declare const Envelope: {
17365
17378
  description?: string | undefined;
17366
17379
  about?: string | undefined;
17367
17380
  short_url?: string | undefined;
17381
+ prevent_anonymous?: boolean | undefined;
17368
17382
  }[]>]: never; }) | undefined;
17369
17383
  } & { [K_595 in Exclude<keyof I_1["list_data_socket"]["clan_desc_list"], "clandesc">]: never; }) | undefined;
17370
17384
  list_thread_req?: ({
@@ -28548,6 +28562,7 @@ export declare const ListDataSocket: {
28548
28562
  description?: string | undefined;
28549
28563
  about?: string | undefined;
28550
28564
  short_url?: string | undefined;
28565
+ prevent_anonymous?: boolean | undefined;
28551
28566
  }[] | undefined;
28552
28567
  } | undefined;
28553
28568
  list_thread_req?: {
@@ -29406,6 +29421,7 @@ export declare const ListDataSocket: {
29406
29421
  description?: string | undefined;
29407
29422
  about?: string | undefined;
29408
29423
  short_url?: string | undefined;
29424
+ prevent_anonymous?: boolean | undefined;
29409
29425
  }[] | undefined;
29410
29426
  } & {
29411
29427
  clandesc?: ({
@@ -29425,6 +29441,7 @@ export declare const ListDataSocket: {
29425
29441
  description?: string | undefined;
29426
29442
  about?: string | undefined;
29427
29443
  short_url?: string | undefined;
29444
+ prevent_anonymous?: boolean | undefined;
29428
29445
  }[] & ({
29429
29446
  creator_id?: string | undefined;
29430
29447
  clan_name?: string | undefined;
@@ -29442,6 +29459,7 @@ export declare const ListDataSocket: {
29442
29459
  description?: string | undefined;
29443
29460
  about?: string | undefined;
29444
29461
  short_url?: string | undefined;
29462
+ prevent_anonymous?: boolean | undefined;
29445
29463
  } & {
29446
29464
  creator_id?: string | undefined;
29447
29465
  clan_name?: string | undefined;
@@ -29459,6 +29477,7 @@ export declare const ListDataSocket: {
29459
29477
  description?: string | undefined;
29460
29478
  about?: string | undefined;
29461
29479
  short_url?: string | undefined;
29480
+ prevent_anonymous?: boolean | undefined;
29462
29481
  } & { [K_1 in Exclude<keyof I["clan_desc_list"]["clandesc"][number], keyof import("../api/api").ClanDesc>]: never; })[] & { [K_2 in Exclude<keyof I["clan_desc_list"]["clandesc"], keyof {
29463
29482
  creator_id?: string | undefined;
29464
29483
  clan_name?: string | undefined;
@@ -29476,6 +29495,7 @@ export declare const ListDataSocket: {
29476
29495
  description?: string | undefined;
29477
29496
  about?: string | undefined;
29478
29497
  short_url?: string | undefined;
29498
+ prevent_anonymous?: boolean | undefined;
29479
29499
  }[]>]: never; }) | undefined;
29480
29500
  } & { [K_3 in Exclude<keyof I["clan_desc_list"], "clandesc">]: never; }) | undefined;
29481
29501
  list_thread_req?: ({
@@ -32888,6 +32908,7 @@ export declare const ListDataSocket: {
32888
32908
  description?: string | undefined;
32889
32909
  about?: string | undefined;
32890
32910
  short_url?: string | undefined;
32911
+ prevent_anonymous?: boolean | undefined;
32891
32912
  }[] | undefined;
32892
32913
  } | undefined;
32893
32914
  list_thread_req?: {
@@ -33746,6 +33767,7 @@ export declare const ListDataSocket: {
33746
33767
  description?: string | undefined;
33747
33768
  about?: string | undefined;
33748
33769
  short_url?: string | undefined;
33770
+ prevent_anonymous?: boolean | undefined;
33749
33771
  }[] | undefined;
33750
33772
  } & {
33751
33773
  clandesc?: ({
@@ -33765,6 +33787,7 @@ export declare const ListDataSocket: {
33765
33787
  description?: string | undefined;
33766
33788
  about?: string | undefined;
33767
33789
  short_url?: string | undefined;
33790
+ prevent_anonymous?: boolean | undefined;
33768
33791
  }[] & ({
33769
33792
  creator_id?: string | undefined;
33770
33793
  clan_name?: string | undefined;
@@ -33782,6 +33805,7 @@ export declare const ListDataSocket: {
33782
33805
  description?: string | undefined;
33783
33806
  about?: string | undefined;
33784
33807
  short_url?: string | undefined;
33808
+ prevent_anonymous?: boolean | undefined;
33785
33809
  } & {
33786
33810
  creator_id?: string | undefined;
33787
33811
  clan_name?: string | undefined;
@@ -33799,6 +33823,7 @@ export declare const ListDataSocket: {
33799
33823
  description?: string | undefined;
33800
33824
  about?: string | undefined;
33801
33825
  short_url?: string | undefined;
33826
+ prevent_anonymous?: boolean | undefined;
33802
33827
  } & { [K_189 in Exclude<keyof I_1["clan_desc_list"]["clandesc"][number], keyof import("../api/api").ClanDesc>]: never; })[] & { [K_190 in Exclude<keyof I_1["clan_desc_list"]["clandesc"], keyof {
33803
33828
  creator_id?: string | undefined;
33804
33829
  clan_name?: string | undefined;
@@ -33816,6 +33841,7 @@ export declare const ListDataSocket: {
33816
33841
  description?: string | undefined;
33817
33842
  about?: string | undefined;
33818
33843
  short_url?: string | undefined;
33844
+ prevent_anonymous?: boolean | undefined;
33819
33845
  }[]>]: never; }) | undefined;
33820
33846
  } & { [K_191 in Exclude<keyof I_1["clan_desc_list"], "clandesc">]: never; }) | undefined;
33821
33847
  list_thread_req?: ({
@@ -6321,7 +6321,8 @@ function createBaseClanDesc() {
6321
6321
  community_banner: "",
6322
6322
  description: "",
6323
6323
  about: "",
6324
- short_url: ""
6324
+ short_url: "",
6325
+ prevent_anonymous: false
6325
6326
  };
6326
6327
  }
6327
6328
  var ClanDesc = {
@@ -6374,6 +6375,9 @@ var ClanDesc = {
6374
6375
  if (message.short_url !== "") {
6375
6376
  writer.uint32(130).string(message.short_url);
6376
6377
  }
6378
+ if (message.prevent_anonymous !== false) {
6379
+ writer.uint32(136).bool(message.prevent_anonymous);
6380
+ }
6377
6381
  return writer;
6378
6382
  },
6379
6383
  decode(input, length) {
@@ -6479,6 +6483,12 @@ var ClanDesc = {
6479
6483
  }
6480
6484
  message.short_url = reader.string();
6481
6485
  continue;
6486
+ case 17:
6487
+ if (tag !== 136) {
6488
+ break;
6489
+ }
6490
+ message.prevent_anonymous = reader.bool();
6491
+ continue;
6482
6492
  }
6483
6493
  if ((tag & 7) === 4 || tag === 0) {
6484
6494
  break;
@@ -6504,7 +6514,8 @@ var ClanDesc = {
6504
6514
  community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : "",
6505
6515
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
6506
6516
  about: isSet3(object.about) ? globalThis.String(object.about) : "",
6507
- short_url: isSet3(object.short_url) ? globalThis.String(object.short_url) : ""
6517
+ short_url: isSet3(object.short_url) ? globalThis.String(object.short_url) : "",
6518
+ prevent_anonymous: isSet3(object.prevent_anonymous) ? globalThis.Boolean(object.prevent_anonymous) : false
6508
6519
  };
6509
6520
  },
6510
6521
  toJSON(message) {
@@ -6557,13 +6568,16 @@ var ClanDesc = {
6557
6568
  if (message.short_url !== "") {
6558
6569
  obj.short_url = message.short_url;
6559
6570
  }
6571
+ if (message.prevent_anonymous !== false) {
6572
+ obj.prevent_anonymous = message.prevent_anonymous;
6573
+ }
6560
6574
  return obj;
6561
6575
  },
6562
6576
  create(base) {
6563
6577
  return ClanDesc.fromPartial(base != null ? base : {});
6564
6578
  },
6565
6579
  fromPartial(object) {
6566
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
6580
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
6567
6581
  const message = createBaseClanDesc();
6568
6582
  message.creator_id = (_a = object.creator_id) != null ? _a : "";
6569
6583
  message.clan_name = (_b = object.clan_name) != null ? _b : "";
@@ -6581,6 +6595,7 @@ var ClanDesc = {
6581
6595
  message.description = (_n = object.description) != null ? _n : "";
6582
6596
  message.about = (_o = object.about) != null ? _o : "";
6583
6597
  message.short_url = (_p = object.short_url) != null ? _p : "";
6598
+ message.prevent_anonymous = (_q = object.prevent_anonymous) != null ? _q : false;
6584
6599
  return message;
6585
6600
  }
6586
6601
  };
@@ -6308,7 +6308,8 @@ function createBaseClanDesc() {
6308
6308
  community_banner: "",
6309
6309
  description: "",
6310
6310
  about: "",
6311
- short_url: ""
6311
+ short_url: "",
6312
+ prevent_anonymous: false
6312
6313
  };
6313
6314
  }
6314
6315
  var ClanDesc = {
@@ -6361,6 +6362,9 @@ var ClanDesc = {
6361
6362
  if (message.short_url !== "") {
6362
6363
  writer.uint32(130).string(message.short_url);
6363
6364
  }
6365
+ if (message.prevent_anonymous !== false) {
6366
+ writer.uint32(136).bool(message.prevent_anonymous);
6367
+ }
6364
6368
  return writer;
6365
6369
  },
6366
6370
  decode(input, length) {
@@ -6466,6 +6470,12 @@ var ClanDesc = {
6466
6470
  }
6467
6471
  message.short_url = reader.string();
6468
6472
  continue;
6473
+ case 17:
6474
+ if (tag !== 136) {
6475
+ break;
6476
+ }
6477
+ message.prevent_anonymous = reader.bool();
6478
+ continue;
6469
6479
  }
6470
6480
  if ((tag & 7) === 4 || tag === 0) {
6471
6481
  break;
@@ -6491,7 +6501,8 @@ var ClanDesc = {
6491
6501
  community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : "",
6492
6502
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
6493
6503
  about: isSet3(object.about) ? globalThis.String(object.about) : "",
6494
- short_url: isSet3(object.short_url) ? globalThis.String(object.short_url) : ""
6504
+ short_url: isSet3(object.short_url) ? globalThis.String(object.short_url) : "",
6505
+ prevent_anonymous: isSet3(object.prevent_anonymous) ? globalThis.Boolean(object.prevent_anonymous) : false
6495
6506
  };
6496
6507
  },
6497
6508
  toJSON(message) {
@@ -6544,13 +6555,16 @@ var ClanDesc = {
6544
6555
  if (message.short_url !== "") {
6545
6556
  obj.short_url = message.short_url;
6546
6557
  }
6558
+ if (message.prevent_anonymous !== false) {
6559
+ obj.prevent_anonymous = message.prevent_anonymous;
6560
+ }
6547
6561
  return obj;
6548
6562
  },
6549
6563
  create(base) {
6550
6564
  return ClanDesc.fromPartial(base != null ? base : {});
6551
6565
  },
6552
6566
  fromPartial(object) {
6553
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
6567
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
6554
6568
  const message = createBaseClanDesc();
6555
6569
  message.creator_id = (_a = object.creator_id) != null ? _a : "";
6556
6570
  message.clan_name = (_b = object.clan_name) != null ? _b : "";
@@ -6568,6 +6582,7 @@ var ClanDesc = {
6568
6582
  message.description = (_n = object.description) != null ? _n : "";
6569
6583
  message.about = (_o = object.about) != null ? _o : "";
6570
6584
  message.short_url = (_p = object.short_url) != null ? _p : "";
6585
+ message.prevent_anonymous = (_q = object.prevent_anonymous) != null ? _q : false;
6571
6586
  return message;
6572
6587
  }
6573
6588
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.34",
3
+ "version": "1.8.35",
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",