mezon-js-protobuf 1.8.23 → 1.8.24

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
@@ -1377,6 +1377,10 @@ export interface ClanDesc {
1377
1377
  onboarding_banner: string;
1378
1378
  /** clan order */
1379
1379
  clan_order: number;
1380
+ /** is community */
1381
+ is_community: boolean;
1382
+ /** community banner */
1383
+ community_banner: string;
1380
1384
  }
1381
1385
 
1382
1386
  /** Clan information */
@@ -1397,7 +1401,9 @@ export interface UpdateClanDescRequest {
1397
1401
  /** Clan logo */
1398
1402
  logo: string;
1399
1403
  /** Clan banner */
1400
- banner: string;
1404
+ banner:
1405
+ | string
1406
+ | undefined;
1401
1407
  /** Clan status */
1402
1408
  status: number;
1403
1409
  /** Is onboarding. */
@@ -1407,7 +1413,15 @@ export interface UpdateClanDescRequest {
1407
1413
  /** Welcome channel id. */
1408
1414
  welcome_channel_id: string;
1409
1415
  /** Onboarding_banner. */
1410
- onboarding_banner: string;
1416
+ onboarding_banner:
1417
+ | string
1418
+ | undefined;
1419
+ /** Enable community. */
1420
+ is_community:
1421
+ | boolean
1422
+ | undefined;
1423
+ /** Community banner. */
1424
+ community_banner: string | undefined;
1411
1425
  }
1412
1426
 
1413
1427
  /** Delete a clan the user has access to. */
@@ -1922,8 +1936,14 @@ export interface NotificationSetting {
1922
1936
 
1923
1937
  /** */
1924
1938
  export interface DeletePinMessage {
1939
+ /** */
1940
+ id: string;
1925
1941
  /** */
1926
1942
  message_id: string;
1943
+ /** */
1944
+ channel_id: string;
1945
+ /** */
1946
+ clan_id: string;
1927
1947
  }
1928
1948
 
1929
1949
  /** */
@@ -2379,11 +2399,11 @@ export interface SearchMessageDocument {
2379
2399
  /** The message ID. */
2380
2400
  message_id: string;
2381
2401
  /** The channel ID. */
2382
- channel_id: number;
2402
+ channel_id: string;
2383
2403
  /** The clan ID. */
2384
- clan_id: number;
2404
+ clan_id: string;
2385
2405
  /** The user ID of sender. */
2386
- sender_id: number;
2406
+ sender_id: string;
2387
2407
  /** Message content */
2388
2408
  content: string;
2389
2409
  /** Mention users */
@@ -3317,9 +3337,9 @@ export interface TokenSentEvent {
3317
3337
  amount: number;
3318
3338
  /** note */
3319
3339
  note: string;
3320
- /** */
3340
+ /** extra attribute */
3321
3341
  extra_attribute: string;
3322
- /** */
3342
+ /** transaction id */
3323
3343
  transaction_id: string;
3324
3344
  }
3325
3345
 
@@ -12225,6 +12245,8 @@ function createBaseClanDesc(): ClanDesc {
12225
12245
  welcome_channel_id: "",
12226
12246
  onboarding_banner: "",
12227
12247
  clan_order: 0,
12248
+ is_community: false,
12249
+ community_banner: "",
12228
12250
  };
12229
12251
  }
12230
12252
 
@@ -12263,6 +12285,12 @@ export const ClanDesc = {
12263
12285
  if (message.clan_order !== 0) {
12264
12286
  writer.uint32(88).int32(message.clan_order);
12265
12287
  }
12288
+ if (message.is_community !== false) {
12289
+ writer.uint32(96).bool(message.is_community);
12290
+ }
12291
+ if (message.community_banner !== "") {
12292
+ writer.uint32(106).string(message.community_banner);
12293
+ }
12266
12294
  return writer;
12267
12295
  },
12268
12296
 
@@ -12350,6 +12378,20 @@ export const ClanDesc = {
12350
12378
 
12351
12379
  message.clan_order = reader.int32();
12352
12380
  continue;
12381
+ case 12:
12382
+ if (tag !== 96) {
12383
+ break;
12384
+ }
12385
+
12386
+ message.is_community = reader.bool();
12387
+ continue;
12388
+ case 13:
12389
+ if (tag !== 106) {
12390
+ break;
12391
+ }
12392
+
12393
+ message.community_banner = reader.string();
12394
+ continue;
12353
12395
  }
12354
12396
  if ((tag & 7) === 4 || tag === 0) {
12355
12397
  break;
@@ -12372,6 +12414,8 @@ export const ClanDesc = {
12372
12414
  welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
12373
12415
  onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
12374
12416
  clan_order: isSet(object.clan_order) ? globalThis.Number(object.clan_order) : 0,
12417
+ is_community: isSet(object.is_community) ? globalThis.Boolean(object.is_community) : false,
12418
+ community_banner: isSet(object.community_banner) ? globalThis.String(object.community_banner) : "",
12375
12419
  };
12376
12420
  },
12377
12421
 
@@ -12410,6 +12454,12 @@ export const ClanDesc = {
12410
12454
  if (message.clan_order !== 0) {
12411
12455
  obj.clan_order = Math.round(message.clan_order);
12412
12456
  }
12457
+ if (message.is_community !== false) {
12458
+ obj.is_community = message.is_community;
12459
+ }
12460
+ if (message.community_banner !== "") {
12461
+ obj.community_banner = message.community_banner;
12462
+ }
12413
12463
  return obj;
12414
12464
  },
12415
12465
 
@@ -12429,6 +12479,8 @@ export const ClanDesc = {
12429
12479
  message.welcome_channel_id = object.welcome_channel_id ?? "";
12430
12480
  message.onboarding_banner = object.onboarding_banner ?? "";
12431
12481
  message.clan_order = object.clan_order ?? 0;
12482
+ message.is_community = object.is_community ?? false;
12483
+ message.community_banner = object.community_banner ?? "";
12432
12484
  return message;
12433
12485
  },
12434
12486
  };
@@ -12527,11 +12579,13 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
12527
12579
  clan_id: "",
12528
12580
  clan_name: "",
12529
12581
  logo: "",
12530
- banner: "",
12582
+ banner: undefined,
12531
12583
  status: 0,
12532
12584
  is_onboarding: undefined,
12533
12585
  welcome_channel_id: "",
12534
- onboarding_banner: "",
12586
+ onboarding_banner: undefined,
12587
+ is_community: undefined,
12588
+ community_banner: undefined,
12535
12589
  };
12536
12590
  }
12537
12591
 
@@ -12546,8 +12600,8 @@ export const UpdateClanDescRequest = {
12546
12600
  if (message.logo !== "") {
12547
12601
  writer.uint32(26).string(message.logo);
12548
12602
  }
12549
- if (message.banner !== "") {
12550
- writer.uint32(34).string(message.banner);
12603
+ if (message.banner !== undefined) {
12604
+ StringValue.encode({ value: message.banner! }, writer.uint32(34).fork()).ldelim();
12551
12605
  }
12552
12606
  if (message.status !== 0) {
12553
12607
  writer.uint32(40).int32(message.status);
@@ -12558,8 +12612,14 @@ export const UpdateClanDescRequest = {
12558
12612
  if (message.welcome_channel_id !== "") {
12559
12613
  writer.uint32(58).string(message.welcome_channel_id);
12560
12614
  }
12561
- if (message.onboarding_banner !== "") {
12562
- writer.uint32(66).string(message.onboarding_banner);
12615
+ if (message.onboarding_banner !== undefined) {
12616
+ StringValue.encode({ value: message.onboarding_banner! }, writer.uint32(66).fork()).ldelim();
12617
+ }
12618
+ if (message.is_community !== undefined) {
12619
+ BoolValue.encode({ value: message.is_community! }, writer.uint32(74).fork()).ldelim();
12620
+ }
12621
+ if (message.community_banner !== undefined) {
12622
+ StringValue.encode({ value: message.community_banner! }, writer.uint32(82).fork()).ldelim();
12563
12623
  }
12564
12624
  return writer;
12565
12625
  },
@@ -12597,7 +12657,7 @@ export const UpdateClanDescRequest = {
12597
12657
  break;
12598
12658
  }
12599
12659
 
12600
- message.banner = reader.string();
12660
+ message.banner = StringValue.decode(reader, reader.uint32()).value;
12601
12661
  continue;
12602
12662
  case 5:
12603
12663
  if (tag !== 40) {
@@ -12625,7 +12685,21 @@ export const UpdateClanDescRequest = {
12625
12685
  break;
12626
12686
  }
12627
12687
 
12628
- message.onboarding_banner = reader.string();
12688
+ message.onboarding_banner = StringValue.decode(reader, reader.uint32()).value;
12689
+ continue;
12690
+ case 9:
12691
+ if (tag !== 74) {
12692
+ break;
12693
+ }
12694
+
12695
+ message.is_community = BoolValue.decode(reader, reader.uint32()).value;
12696
+ continue;
12697
+ case 10:
12698
+ if (tag !== 82) {
12699
+ break;
12700
+ }
12701
+
12702
+ message.community_banner = StringValue.decode(reader, reader.uint32()).value;
12629
12703
  continue;
12630
12704
  }
12631
12705
  if ((tag & 7) === 4 || tag === 0) {
@@ -12641,11 +12715,13 @@ export const UpdateClanDescRequest = {
12641
12715
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12642
12716
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
12643
12717
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
12644
- banner: isSet(object.banner) ? globalThis.String(object.banner) : "",
12718
+ banner: isSet(object.banner) ? String(object.banner) : undefined,
12645
12719
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
12646
12720
  is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
12647
12721
  welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
12648
- onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
12722
+ onboarding_banner: isSet(object.onboarding_banner) ? String(object.onboarding_banner) : undefined,
12723
+ is_community: isSet(object.is_community) ? Boolean(object.is_community) : undefined,
12724
+ community_banner: isSet(object.community_banner) ? String(object.community_banner) : undefined,
12649
12725
  };
12650
12726
  },
12651
12727
 
@@ -12660,7 +12736,7 @@ export const UpdateClanDescRequest = {
12660
12736
  if (message.logo !== "") {
12661
12737
  obj.logo = message.logo;
12662
12738
  }
12663
- if (message.banner !== "") {
12739
+ if (message.banner !== undefined) {
12664
12740
  obj.banner = message.banner;
12665
12741
  }
12666
12742
  if (message.status !== 0) {
@@ -12672,9 +12748,15 @@ export const UpdateClanDescRequest = {
12672
12748
  if (message.welcome_channel_id !== "") {
12673
12749
  obj.welcome_channel_id = message.welcome_channel_id;
12674
12750
  }
12675
- if (message.onboarding_banner !== "") {
12751
+ if (message.onboarding_banner !== undefined) {
12676
12752
  obj.onboarding_banner = message.onboarding_banner;
12677
12753
  }
12754
+ if (message.is_community !== undefined) {
12755
+ obj.is_community = message.is_community;
12756
+ }
12757
+ if (message.community_banner !== undefined) {
12758
+ obj.community_banner = message.community_banner;
12759
+ }
12678
12760
  return obj;
12679
12761
  },
12680
12762
 
@@ -12686,11 +12768,13 @@ export const UpdateClanDescRequest = {
12686
12768
  message.clan_id = object.clan_id ?? "";
12687
12769
  message.clan_name = object.clan_name ?? "";
12688
12770
  message.logo = object.logo ?? "";
12689
- message.banner = object.banner ?? "";
12771
+ message.banner = object.banner ?? undefined;
12690
12772
  message.status = object.status ?? 0;
12691
12773
  message.is_onboarding = object.is_onboarding ?? undefined;
12692
12774
  message.welcome_channel_id = object.welcome_channel_id ?? "";
12693
- message.onboarding_banner = object.onboarding_banner ?? "";
12775
+ message.onboarding_banner = object.onboarding_banner ?? undefined;
12776
+ message.is_community = object.is_community ?? undefined;
12777
+ message.community_banner = object.community_banner ?? undefined;
12694
12778
  return message;
12695
12779
  },
12696
12780
  };
@@ -17554,13 +17638,22 @@ export const NotificationSetting = {
17554
17638
  };
17555
17639
 
17556
17640
  function createBaseDeletePinMessage(): DeletePinMessage {
17557
- return { message_id: "" };
17641
+ return { id: "", message_id: "", channel_id: "", clan_id: "" };
17558
17642
  }
17559
17643
 
17560
17644
  export const DeletePinMessage = {
17561
17645
  encode(message: DeletePinMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
17646
+ if (message.id !== "") {
17647
+ writer.uint32(10).string(message.id);
17648
+ }
17562
17649
  if (message.message_id !== "") {
17563
- writer.uint32(10).string(message.message_id);
17650
+ writer.uint32(18).string(message.message_id);
17651
+ }
17652
+ if (message.channel_id !== "") {
17653
+ writer.uint32(26).string(message.channel_id);
17654
+ }
17655
+ if (message.clan_id !== "") {
17656
+ writer.uint32(34).string(message.clan_id);
17564
17657
  }
17565
17658
  return writer;
17566
17659
  },
@@ -17577,8 +17670,29 @@ export const DeletePinMessage = {
17577
17670
  break;
17578
17671
  }
17579
17672
 
17673
+ message.id = reader.string();
17674
+ continue;
17675
+ case 2:
17676
+ if (tag !== 18) {
17677
+ break;
17678
+ }
17679
+
17580
17680
  message.message_id = reader.string();
17581
17681
  continue;
17682
+ case 3:
17683
+ if (tag !== 26) {
17684
+ break;
17685
+ }
17686
+
17687
+ message.channel_id = reader.string();
17688
+ continue;
17689
+ case 4:
17690
+ if (tag !== 34) {
17691
+ break;
17692
+ }
17693
+
17694
+ message.clan_id = reader.string();
17695
+ continue;
17582
17696
  }
17583
17697
  if ((tag & 7) === 4 || tag === 0) {
17584
17698
  break;
@@ -17589,14 +17703,28 @@ export const DeletePinMessage = {
17589
17703
  },
17590
17704
 
17591
17705
  fromJSON(object: any): DeletePinMessage {
17592
- return { message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "" };
17706
+ return {
17707
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
17708
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
17709
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
17710
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
17711
+ };
17593
17712
  },
17594
17713
 
17595
17714
  toJSON(message: DeletePinMessage): unknown {
17596
17715
  const obj: any = {};
17716
+ if (message.id !== "") {
17717
+ obj.id = message.id;
17718
+ }
17597
17719
  if (message.message_id !== "") {
17598
17720
  obj.message_id = message.message_id;
17599
17721
  }
17722
+ if (message.channel_id !== "") {
17723
+ obj.channel_id = message.channel_id;
17724
+ }
17725
+ if (message.clan_id !== "") {
17726
+ obj.clan_id = message.clan_id;
17727
+ }
17600
17728
  return obj;
17601
17729
  },
17602
17730
 
@@ -17605,7 +17733,10 @@ export const DeletePinMessage = {
17605
17733
  },
17606
17734
  fromPartial<I extends Exact<DeepPartial<DeletePinMessage>, I>>(object: I): DeletePinMessage {
17607
17735
  const message = createBaseDeletePinMessage();
17736
+ message.id = object.id ?? "";
17608
17737
  message.message_id = object.message_id ?? "";
17738
+ message.channel_id = object.channel_id ?? "";
17739
+ message.clan_id = object.clan_id ?? "";
17609
17740
  return message;
17610
17741
  },
17611
17742
  };
@@ -22120,9 +22251,9 @@ export const FilterParam = {
22120
22251
  function createBaseSearchMessageDocument(): SearchMessageDocument {
22121
22252
  return {
22122
22253
  message_id: "",
22123
- channel_id: 0,
22124
- clan_id: 0,
22125
- sender_id: 0,
22254
+ channel_id: "",
22255
+ clan_id: "",
22256
+ sender_id: "",
22126
22257
  content: "",
22127
22258
  mentions: "",
22128
22259
  reactions: "",
@@ -22144,14 +22275,14 @@ export const SearchMessageDocument = {
22144
22275
  if (message.message_id !== "") {
22145
22276
  writer.uint32(10).string(message.message_id);
22146
22277
  }
22147
- if (message.channel_id !== 0) {
22148
- writer.uint32(16).int64(message.channel_id);
22278
+ if (message.channel_id !== "") {
22279
+ writer.uint32(18).string(message.channel_id);
22149
22280
  }
22150
- if (message.clan_id !== 0) {
22151
- writer.uint32(24).int64(message.clan_id);
22281
+ if (message.clan_id !== "") {
22282
+ writer.uint32(26).string(message.clan_id);
22152
22283
  }
22153
- if (message.sender_id !== 0) {
22154
- writer.uint32(32).int64(message.sender_id);
22284
+ if (message.sender_id !== "") {
22285
+ writer.uint32(34).string(message.sender_id);
22155
22286
  }
22156
22287
  if (message.content !== "") {
22157
22288
  writer.uint32(42).string(message.content);
@@ -22210,25 +22341,25 @@ export const SearchMessageDocument = {
22210
22341
  message.message_id = reader.string();
22211
22342
  continue;
22212
22343
  case 2:
22213
- if (tag !== 16) {
22344
+ if (tag !== 18) {
22214
22345
  break;
22215
22346
  }
22216
22347
 
22217
- message.channel_id = longToNumber(reader.int64() as Long);
22348
+ message.channel_id = reader.string();
22218
22349
  continue;
22219
22350
  case 3:
22220
- if (tag !== 24) {
22351
+ if (tag !== 26) {
22221
22352
  break;
22222
22353
  }
22223
22354
 
22224
- message.clan_id = longToNumber(reader.int64() as Long);
22355
+ message.clan_id = reader.string();
22225
22356
  continue;
22226
22357
  case 4:
22227
- if (tag !== 32) {
22358
+ if (tag !== 34) {
22228
22359
  break;
22229
22360
  }
22230
22361
 
22231
- message.sender_id = longToNumber(reader.int64() as Long);
22362
+ message.sender_id = reader.string();
22232
22363
  continue;
22233
22364
  case 5:
22234
22365
  if (tag !== 42) {
@@ -22333,9 +22464,9 @@ export const SearchMessageDocument = {
22333
22464
  fromJSON(object: any): SearchMessageDocument {
22334
22465
  return {
22335
22466
  message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
22336
- channel_id: isSet(object.channel_id) ? globalThis.Number(object.channel_id) : 0,
22337
- clan_id: isSet(object.clan_id) ? globalThis.Number(object.clan_id) : 0,
22338
- sender_id: isSet(object.sender_id) ? globalThis.Number(object.sender_id) : 0,
22467
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
22468
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22469
+ sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
22339
22470
  content: isSet(object.content) ? globalThis.String(object.content) : "",
22340
22471
  mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
22341
22472
  reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
@@ -22359,14 +22490,14 @@ export const SearchMessageDocument = {
22359
22490
  if (message.message_id !== "") {
22360
22491
  obj.message_id = message.message_id;
22361
22492
  }
22362
- if (message.channel_id !== 0) {
22363
- obj.channel_id = Math.round(message.channel_id);
22493
+ if (message.channel_id !== "") {
22494
+ obj.channel_id = message.channel_id;
22364
22495
  }
22365
- if (message.clan_id !== 0) {
22366
- obj.clan_id = Math.round(message.clan_id);
22496
+ if (message.clan_id !== "") {
22497
+ obj.clan_id = message.clan_id;
22367
22498
  }
22368
- if (message.sender_id !== 0) {
22369
- obj.sender_id = Math.round(message.sender_id);
22499
+ if (message.sender_id !== "") {
22500
+ obj.sender_id = message.sender_id;
22370
22501
  }
22371
22502
  if (message.content !== "") {
22372
22503
  obj.content = message.content;
@@ -22416,9 +22547,9 @@ export const SearchMessageDocument = {
22416
22547
  fromPartial<I extends Exact<DeepPartial<SearchMessageDocument>, I>>(object: I): SearchMessageDocument {
22417
22548
  const message = createBaseSearchMessageDocument();
22418
22549
  message.message_id = object.message_id ?? "";
22419
- message.channel_id = object.channel_id ?? 0;
22420
- message.clan_id = object.clan_id ?? 0;
22421
- message.sender_id = object.sender_id ?? 0;
22550
+ message.channel_id = object.channel_id ?? "";
22551
+ message.clan_id = object.clan_id ?? "";
22552
+ message.sender_id = object.sender_id ?? "";
22422
22553
  message.content = object.content ?? "";
22423
22554
  message.mentions = object.mentions ?? "";
22424
22555
  message.reactions = object.reactions ?? "";