mezon-js-protobuf 1.8.12 → 1.8.14

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
@@ -1237,6 +1237,8 @@ export interface User {
1237
1237
  | undefined;
1238
1238
  /** Mezone id */
1239
1239
  mezon_id: string;
1240
+ /** list clan nick name */
1241
+ list_nick_names: string[];
1240
1242
  }
1241
1243
 
1242
1244
  /** A list of groups belonging to a user, along with the user's role in each group. */
@@ -2453,6 +2455,8 @@ export interface ClanEmoji {
2453
2455
  logo: string;
2454
2456
  /** clan name */
2455
2457
  clan_name: string;
2458
+ /** is for sale */
2459
+ is_for_sale: boolean;
2456
2460
  }
2457
2461
 
2458
2462
  export interface EmojiListedResponse {
@@ -2474,6 +2478,8 @@ export interface ClanSticker {
2474
2478
  logo: string;
2475
2479
  clan_name: string;
2476
2480
  media_type: number;
2481
+ /** is for sale */
2482
+ is_for_sale: boolean;
2477
2483
  }
2478
2484
 
2479
2485
  export interface AllUsersAddChannelRequest {
@@ -3320,6 +3326,10 @@ export interface UnlockItemRequest {
3320
3326
  item_type: number;
3321
3327
  }
3322
3328
 
3329
+ export interface UnlockedItemResponse {
3330
+ source: string;
3331
+ }
3332
+
3323
3333
  export interface ListOnboardingRequest {
3324
3334
  /** clan id */
3325
3335
  clan_id: string;
@@ -11283,6 +11293,7 @@ function createBaseUser(): User {
11283
11293
  is_mobile: false,
11284
11294
  dob: undefined,
11285
11295
  mezon_id: "",
11296
+ list_nick_names: [],
11286
11297
  };
11287
11298
  }
11288
11299
 
@@ -11354,6 +11365,9 @@ export const User = {
11354
11365
  if (message.mezon_id !== "") {
11355
11366
  writer.uint32(178).string(message.mezon_id);
11356
11367
  }
11368
+ for (const v of message.list_nick_names) {
11369
+ writer.uint32(186).string(v!);
11370
+ }
11357
11371
  return writer;
11358
11372
  },
11359
11373
 
@@ -11518,6 +11532,13 @@ export const User = {
11518
11532
 
11519
11533
  message.mezon_id = reader.string();
11520
11534
  continue;
11535
+ case 23:
11536
+ if (tag !== 186) {
11537
+ break;
11538
+ }
11539
+
11540
+ message.list_nick_names.push(reader.string());
11541
+ continue;
11521
11542
  }
11522
11543
  if ((tag & 7) === 4 || tag === 0) {
11523
11544
  break;
@@ -11551,6 +11572,9 @@ export const User = {
11551
11572
  is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
11552
11573
  dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
11553
11574
  mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
11575
+ list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
11576
+ ? object.list_nick_names.map((e: any) => globalThis.String(e))
11577
+ : [],
11554
11578
  };
11555
11579
  },
11556
11580
 
@@ -11622,6 +11646,9 @@ export const User = {
11622
11646
  if (message.mezon_id !== "") {
11623
11647
  obj.mezon_id = message.mezon_id;
11624
11648
  }
11649
+ if (message.list_nick_names?.length) {
11650
+ obj.list_nick_names = message.list_nick_names;
11651
+ }
11625
11652
  return obj;
11626
11653
  },
11627
11654
 
@@ -11652,6 +11679,7 @@ export const User = {
11652
11679
  message.is_mobile = object.is_mobile ?? false;
11653
11680
  message.dob = object.dob ?? undefined;
11654
11681
  message.mezon_id = object.mezon_id ?? "";
11682
+ message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
11655
11683
  return message;
11656
11684
  },
11657
11685
  };
@@ -22720,7 +22748,17 @@ export const RegistrationEmailRequest_VarsEntry = {
22720
22748
  };
22721
22749
 
22722
22750
  function createBaseClanEmoji(): ClanEmoji {
22723
- return { id: "", src: "", shortname: "", category: "", creator_id: "", clan_id: "", logo: "", clan_name: "" };
22751
+ return {
22752
+ id: "",
22753
+ src: "",
22754
+ shortname: "",
22755
+ category: "",
22756
+ creator_id: "",
22757
+ clan_id: "",
22758
+ logo: "",
22759
+ clan_name: "",
22760
+ is_for_sale: false,
22761
+ };
22724
22762
  }
22725
22763
 
22726
22764
  export const ClanEmoji = {
@@ -22749,6 +22787,9 @@ export const ClanEmoji = {
22749
22787
  if (message.clan_name !== "") {
22750
22788
  writer.uint32(66).string(message.clan_name);
22751
22789
  }
22790
+ if (message.is_for_sale !== false) {
22791
+ writer.uint32(72).bool(message.is_for_sale);
22792
+ }
22752
22793
  return writer;
22753
22794
  },
22754
22795
 
@@ -22815,6 +22856,13 @@ export const ClanEmoji = {
22815
22856
 
22816
22857
  message.clan_name = reader.string();
22817
22858
  continue;
22859
+ case 9:
22860
+ if (tag !== 72) {
22861
+ break;
22862
+ }
22863
+
22864
+ message.is_for_sale = reader.bool();
22865
+ continue;
22818
22866
  }
22819
22867
  if ((tag & 7) === 4 || tag === 0) {
22820
22868
  break;
@@ -22834,6 +22882,7 @@ export const ClanEmoji = {
22834
22882
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22835
22883
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
22836
22884
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
22885
+ is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
22837
22886
  };
22838
22887
  },
22839
22888
 
@@ -22863,6 +22912,9 @@ export const ClanEmoji = {
22863
22912
  if (message.clan_name !== "") {
22864
22913
  obj.clan_name = message.clan_name;
22865
22914
  }
22915
+ if (message.is_for_sale !== false) {
22916
+ obj.is_for_sale = message.is_for_sale;
22917
+ }
22866
22918
  return obj;
22867
22919
  },
22868
22920
 
@@ -22879,6 +22931,7 @@ export const ClanEmoji = {
22879
22931
  message.clan_id = object.clan_id ?? "";
22880
22932
  message.logo = object.logo ?? "";
22881
22933
  message.clan_name = object.clan_name ?? "";
22934
+ message.is_for_sale = object.is_for_sale ?? false;
22882
22935
  return message;
22883
22936
  },
22884
22937
  };
@@ -23017,6 +23070,7 @@ function createBaseClanSticker(): ClanSticker {
23017
23070
  logo: "",
23018
23071
  clan_name: "",
23019
23072
  media_type: 0,
23073
+ is_for_sale: false,
23020
23074
  };
23021
23075
  }
23022
23076
 
@@ -23052,6 +23106,9 @@ export const ClanSticker = {
23052
23106
  if (message.media_type !== 0) {
23053
23107
  writer.uint32(80).int32(message.media_type);
23054
23108
  }
23109
+ if (message.is_for_sale !== false) {
23110
+ writer.uint32(88).bool(message.is_for_sale);
23111
+ }
23055
23112
  return writer;
23056
23113
  },
23057
23114
 
@@ -23132,6 +23189,13 @@ export const ClanSticker = {
23132
23189
 
23133
23190
  message.media_type = reader.int32();
23134
23191
  continue;
23192
+ case 11:
23193
+ if (tag !== 88) {
23194
+ break;
23195
+ }
23196
+
23197
+ message.is_for_sale = reader.bool();
23198
+ continue;
23135
23199
  }
23136
23200
  if ((tag & 7) === 4 || tag === 0) {
23137
23201
  break;
@@ -23153,6 +23217,7 @@ export const ClanSticker = {
23153
23217
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
23154
23218
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
23155
23219
  media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
23220
+ is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
23156
23221
  };
23157
23222
  },
23158
23223
 
@@ -23188,6 +23253,9 @@ export const ClanSticker = {
23188
23253
  if (message.media_type !== 0) {
23189
23254
  obj.media_type = Math.round(message.media_type);
23190
23255
  }
23256
+ if (message.is_for_sale !== false) {
23257
+ obj.is_for_sale = message.is_for_sale;
23258
+ }
23191
23259
  return obj;
23192
23260
  },
23193
23261
 
@@ -23206,6 +23274,7 @@ export const ClanSticker = {
23206
23274
  message.logo = object.logo ?? "";
23207
23275
  message.clan_name = object.clan_name ?? "";
23208
23276
  message.media_type = object.media_type ?? 0;
23277
+ message.is_for_sale = object.is_for_sale ?? false;
23209
23278
  return message;
23210
23279
  },
23211
23280
  };
@@ -32144,6 +32213,63 @@ export const UnlockItemRequest = {
32144
32213
  },
32145
32214
  };
32146
32215
 
32216
+ function createBaseUnlockedItemResponse(): UnlockedItemResponse {
32217
+ return { source: "" };
32218
+ }
32219
+
32220
+ export const UnlockedItemResponse = {
32221
+ encode(message: UnlockedItemResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
32222
+ if (message.source !== "") {
32223
+ writer.uint32(10).string(message.source);
32224
+ }
32225
+ return writer;
32226
+ },
32227
+
32228
+ decode(input: _m0.Reader | Uint8Array, length?: number): UnlockedItemResponse {
32229
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32230
+ let end = length === undefined ? reader.len : reader.pos + length;
32231
+ const message = createBaseUnlockedItemResponse();
32232
+ while (reader.pos < end) {
32233
+ const tag = reader.uint32();
32234
+ switch (tag >>> 3) {
32235
+ case 1:
32236
+ if (tag !== 10) {
32237
+ break;
32238
+ }
32239
+
32240
+ message.source = reader.string();
32241
+ continue;
32242
+ }
32243
+ if ((tag & 7) === 4 || tag === 0) {
32244
+ break;
32245
+ }
32246
+ reader.skipType(tag & 7);
32247
+ }
32248
+ return message;
32249
+ },
32250
+
32251
+ fromJSON(object: any): UnlockedItemResponse {
32252
+ return { source: isSet(object.source) ? globalThis.String(object.source) : "" };
32253
+ },
32254
+
32255
+ toJSON(message: UnlockedItemResponse): unknown {
32256
+ const obj: any = {};
32257
+ if (message.source !== "") {
32258
+ obj.source = message.source;
32259
+ }
32260
+ return obj;
32261
+ },
32262
+
32263
+ create<I extends Exact<DeepPartial<UnlockedItemResponse>, I>>(base?: I): UnlockedItemResponse {
32264
+ return UnlockedItemResponse.fromPartial(base ?? ({} as any));
32265
+ },
32266
+ fromPartial<I extends Exact<DeepPartial<UnlockedItemResponse>, I>>(object: I): UnlockedItemResponse {
32267
+ const message = createBaseUnlockedItemResponse();
32268
+ message.source = object.source ?? "";
32269
+ return message;
32270
+ },
32271
+ };
32272
+
32147
32273
  function createBaseListOnboardingRequest(): ListOnboardingRequest {
32148
32274
  return { clan_id: "", guide_type: undefined, limit: undefined, page: undefined };
32149
32275
  }